/*************************************************
 * HTMB – Featured Story Card
 * Uses fields: title, field_precis, field_featured_image
 *************************************************/

/* Turn off the big outer outline wrapper */
.htmb-block--outline {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* ---------- FEATURED CARD ---------- */

.htmb-featured-card {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 32px 40px 40px;
    border-radius: 28px;
    background:
            radial-gradient(circle at top left, rgba(59,130,246,0.25), transparent 55%),
            radial-gradient(circle at bottom right, rgba(236,72,153,0.25), transparent 55%),
            rgba(2,6,23,0.96);
    box-shadow:
            0 0 0 1px rgba(129,140,248,0.35),
            0 35px 90px rgba(15,23,42,0.95),
            0 0 40px rgba(56,189,248,0.12);
    overflow: hidden;
    color: #e5e7eb;

    /* Enough for ~400 char precis + meta + button, keeps all featured cards same size */
    min-height: 420px;
}

/* Ghost / glitch background image */
.htmb-featured-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.35;
    filter: blur(10px) saturate(1.25);
    transform: scale(1.08);
    pointer-events: none;
}

.htmb-featured-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    mix-blend-mode: screen;
}

/* Foreground layers */
.htmb-featured-pill,
.htmb-featured-layout {
    position: relative;
    z-index: 1;
}

/* “FEATURED STORY” pill */
.htmb-featured-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e5e7eb;

    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(129,140,248,0.6);
    box-shadow: 0 6px 14px rgba(15,23,42,0.85);
    text-shadow: 0 0 4px rgba(191,219,254,0.75);
}

/* Layout: image left, copy right */
.htmb-featured-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Main image */
.htmb-featured-media {
    flex: 0 0 420px;
    max-width: 420px;
    border-radius: 24px;
    padding: 4px;
    background:
            radial-gradient(circle at top left, rgba(59,130,246,0.5), transparent 60%),
            radial-gradient(circle at bottom right, rgba(236,72,153,0.5), transparent 60%);
    box-shadow:
            0 0 0 1px rgba(94,234,212,0.45),
            0 25px 60px rgba(15,23,42,0.9);
}

.htmb-featured-media img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
}

/* Text column */
.htmb-featured-copy {
    flex: 1 1 auto;
    max-width: 600px;
}

/* ---------- FEATURED TITLE (clean neon) ---------- */

.htmb-featured-title {
    position: relative;
    margin: 0 0 18px;
    font-family: "Audiowide", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 24px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    line-height: 1.3;
    background: linear-gradient(90deg, #22d3ee, #a855f7, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow:
            0 0 6px rgba(56,189,248,0.7),
            0 0 18px rgba(37,99,235,0.75);
}

/* Underline bar under the title */
.htmb-featured-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 160px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    box-shadow: 0 0 12px rgba(56,189,248,0.9);
}

/* Precis / intro */
.htmb-featured-precis {
    margin-top: 18px;
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.7;
    color: #e5e7eb;
    background: radial-gradient(circle at top left, rgba(15,23,42,0.95), rgba(15,23,42,0.85));
    padding: 12px 16px;
    border-radius: 18px;
    box-shadow:
            0 0 0 1px rgba(30,64,175,0.65),
            0 16px 36px rgba(15,23,42,0.9);
}

/* Read-more button */
.htmb-featured-readmore {
    margin-top: 4px;
}

.htmb-featured-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #e5e7eb;
    background: radial-gradient(circle at top left, #22d3ee, #6366f1);
    box-shadow:
            0 0 0 1px rgba(191,219,254,0.6),
            0 14px 30px rgba(59,130,246,0.7);
    cursor: default; /* change to pointer once linked */
    white-space: nowrap;
    text-shadow: 0 0 10px rgba(15,23,42,0.95);
}

.htmb-featured-button:hover {
    transform: translateY(-1px);
    box-shadow:
            0 0 0 1px rgba(248,250,252,0.9),
            0 18px 40px rgba(56,189,248,0.9);
}

/* ---------- Responsive (featured) ---------- */

@media (max-width: 900px) {
    .htmb-featured-card {
        padding: 24px 20px 28px;
        min-height: 0; /* let it collapse naturally on small screens */
    }

    .htmb-featured-layout {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .htmb-featured-media {
        margin: 0 auto;
        max-width: 360px;
        flex: 0 0 auto;
    }

    .htmb-featured-title {
        font-size: 20px;
        letter-spacing: 0.22em;
    }

    .htmb-featured-title::after {
        width: 130px;
    }
}


/*************************************************
 * HTMB – Latest Blog Posts Feed (Chips)
 * Fixed-height cards with precis gradient fade
 *************************************************/

/* Grid layout for the feed (block_3 only) */
.view-latest-blog-posts.view-display-id-block_3 .view-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    padding: 32px 40px 40px;
}

/* Outer wrapper for each chip (inside the big section card) */
.view-latest-blog-posts.view-display-id-block_3 .htmb-blog-chip-outer {
    padding: 18px 12px;
    border-radius: 24px;
    background: rgba(2,6,23,0.35);
    box-shadow:
            0 0 0 1px rgba(56,189,248,0.08),
            0 18px 45px rgba(15,23,42,0.65);

    min-height: 520px;     /* controls overall card height */
    display: flex;
    flex-direction: column;
}

/* Base chip layout – full clickable area */
.view-latest-blog-posts.view-display-id-block_3 .htmb-blog-chip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;

    color: #e5e7eb;
    text-decoration: none;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;

    height: 100%;
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.view-latest-blog-posts.view-display-id-block_3 .htmb-blog-chip:hover {
    transform: translateY(-4px);
    filter: brightness(1.02);
}

/* Image block */
.view-latest-blog-posts.view-display-id-block_3 .htmb-chip-media {
    width: 100%;
    margin-bottom: 14px;
    border-radius: 18px;
    overflow: hidden;
    background:
            radial-gradient(circle at top left, rgba(59,130,246,0.35), transparent 55%),
            radial-gradient(circle at bottom right, rgba(236,72,153,0.35), transparent 55%);
    box-shadow:
            0 0 0 1px rgba(15,23,42,0.9),
            0 12px 28px rgba(15,23,42,0.85);
}

.view-latest-blog-posts.view-display-id-block_3 .htmb-chip-media img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

/* Body */
.view-latest-blog-posts.view-display-id-block_3 .htmb-chip-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Title – clean, readable */
.view-latest-blog-posts.view-display-id-block_3 .htmb-chip-title {
    margin: 0 0 4px;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #f9fafb;
    text-shadow: 0 0 6px rgba(15,23,42,0.8);
}

/* Author line */
.view-latest-blog-posts.view-display-id-block_3 .htmb-chip-author {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 8px;
}

/* (Optional) Date line if you output it as .htmb-chip-meta */
.view-latest-blog-posts.view-display-id-block_3 .htmb-chip-meta {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 10px;
}

/* Precis (excerpt) with cyberpunk fade-out */
.view-latest-blog-posts.view-display-id-block_3 .htmb-chip-precis {
    position: relative;
    font-size: 0.87rem;
    line-height: 1.55;
    color: #dbeafe;
    margin-bottom: 12px;

    max-height: 120px;          /* controls how many lines show */
    overflow: hidden;
}

/* Fade overlay */
.view-latest-blog-posts.view-display-id-block_3 .htmb-chip-precis::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
    background: linear-gradient(
            to bottom,
            rgba(15,23,42,0) 0%,
            rgba(15,23,42,0.65) 60%,
            rgba(15,23,42,0.95) 100%
    );
    box-shadow: 0 -6px 20px rgba(59,130,246,0.25);
}

/* “More” dots */
.view-latest-blog-posts.view-display-id-block_3 .htmb-chip-more {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.view-latest-blog-posts.view-display-id-block_3 .htmb-chip-more span {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(148,163,184,0.6);
    box-shadow: 0 0 4px rgba(59,130,246,0.45);
}

/* Read story link – always anchored at the bottom */
.view-latest-blog-posts.view-display-id-block_3 .htmb-chip-read {
    margin-top: auto;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #93c5fd;
    text-decoration: none;
}

.view-latest-blog-posts.view-display-id-block_3 .htmb-blog-chip:hover .htmb-chip-read {
    color: #bfdbfe;
    text-shadow: 0 0 6px rgba(59,130,246,0.65);
    transform: translateX(2px);
}

/* When there is no precis, hide precis + dots */
.htmb-blog-chip--no-precis .htmb-chip-precis,
.htmb-blog-chip--no-precis .htmb-chip-more {
    display: none;
}

/* Responsive tweaks for chips */
@media (max-width: 900px) {
    .view-latest-blog-posts.view-display-id-block_3 .view-content {
        padding: 24px 20px 32px;
        gap: 24px;
    }

    .view-latest-blog-posts.view-display-id-block_3 .htmb-blog-chip-outer {
        min-height: 0;
    }
}


/*************************************************
 * Disable the chip wrapper around the Featured Story (block_2)
 *************************************************/

.view-latest-blog-posts.view-display-id-block_2 .htmb-blog-chip,
.view-latest-blog-posts.view-display-id-block_2 .htmb-blog-chip-inner {
    display: contents !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    animation: none !important;
    transition: none !important;
}


/*************************************************
 * HTMB – Latest Blog Posts Header Row
 *************************************************/

.htmb-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 40px 8px;
    padding-top: 8px;
}

.htmb-feed-title {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #e5e7eb;
    position: relative;
}

/* subtle neon underline on the section label */
.htmb-feed-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 120px;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    box-shadow: 0 0 10px rgba(56,189,248,0.7);
    opacity: 0.7;
}

/* “View all” link on the right (optional – hide in markup if you don’t want it) */
.htmb-feed-more {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9ca3af;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.3);
    background: rgba(15,23,42,0.7);
    box-shadow:
            0 0 0 1px rgba(15,23,42,0.9),
            0 10px 22px rgba(15,23,42,0.9);
    transition:
            color 0.18s ease,
            border-color 0.18s ease,
            box-shadow 0.18s ease,
            transform 0.18s ease;
}

.htmb-feed-more:hover {
    color: #e5e7eb;
    border-color: rgba(96,165,250,0.9);
    box-shadow:
            0 0 0 1px rgba(59,130,246,0.8),
            0 16px 34px rgba(15,23,42,0.98);
    transform: translateY(-1px);
}

/* mobile tweak */
@media (max-width: 900px) {
    .htmb-feed-header {
        margin: 0 20px 6px;
    }

    .htmb-feed-title::after {
        width: 90px;
    }
}/* --- HTMB GHOST SIGNAL: THE FINAL HUD --- */

.htmb-feed-hero-inner {
    overflow: hidden;
    padding: 100px 0;
    position: relative;
    width: 100%;
}

.htmb-feed-title-main {
    display: block !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 30px 0 !important;
    text-align: center;
    transform: rotate(-3deg);

    /* THE OBLIVION FADE: Seamless edge dissolution */
    -webkit-mask-image: linear-gradient(to right,
    transparent 5%,
    black 35%,
    black 65%,
    transparent 95%);
    mask-image: linear-gradient(to right,
    transparent 5%,
    black 35%,
    black 65%,
    transparent 95%);

    /* ZERO BOX: Total background transparency */
    background: transparent !important;
    border: none !important;

    color: #ffffff !important;
    /* Phosphor Glow: White core with a Cyan aura */
    text-shadow:
            0 0 10px rgba(255, 255, 255, 0.3),
            0 0 20px rgba(0, 243, 255, 0.5),
            0 0 40px rgba(0, 243, 255, 0.2);

    font-family: 'Courier New', monospace !important;
    font-weight: 900;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    letter-spacing: -2px;
    position: relative;
    z-index: 10;

    animation: signalGlitch 12s infinite ease-in-out;
}

/* --- THE FLICKERING SCANLINE (Holographic Beam) --- */
.htmb-feed-title-main::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(
            to bottom,
            transparent 0%,
            rgba(0, 243, 255, 0.15) 50%,
            transparent 100%
    );
    animation: scanPulse 4.5s ease-in-out infinite, flickerPulse 0.15s infinite;
    pointer-events: none;
    z-index: 11;
}

/* --- THE FLOATING HAZARD STRIPES --- */
.htmb-feed-title-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 3px; /* Sleeker line */
    background: repeating-linear-gradient(
            45deg,
            rgba(0, 243, 255, 0.4),
            rgba(0, 243, 255, 0.4) 15px,
            transparent 15px,
            transparent 30px
    );
    animation: moveStripes 55s linear infinite;
}

/* --- TERMINAL TAGLINE --- */
.htmb-feed-hero-copy p {
    text-align: right;
    margin-top: 60px;
    padding-right: 15%;
    font-family: 'Courier New', monospace;
    color: rgba(0, 243, 255, 0.9);
    text-shadow: 0 0 12px rgba(0, 243, 255, 0.5);
    font-size: 1.2rem;

    border-right: 8px solid rgba(0, 243, 255, 1);
    padding-right: 30px;
}

/* --- ANIMATIONS --- */

@keyframes scanPulse {
    0% { top: -50%; }
    100% { top: 150%; }
}

@keyframes flickerPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
    55% { opacity: 0.8; }
}

@keyframes signalGlitch {
    0%, 98% { transform: rotate(-3deg) translate(0,0); filter: brightness(1); }
    99% { transform: rotate(-2.8deg) translate(4px, -1px); filter: brightness(1.5) blur(1px); }
    100% { transform: rotate(-3deg) translate(0,0); }
}

@keyframes moveStripes {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
/* --- OVERRIDE THE SOLO THEME BOX --- */

/* 1. Target the main list wrapper */
ul.solo-clear.pager__items {
    background: transparent !important;
    border: none !important;
    display: flex !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 50px 0 !important;
    box-shadow: none !important; /* Removes any wrapper shadows */
}

/* 2. Target the list items (The button containers) */
.solo-button.pager__item {
    background: transparent !important;
    border: none !important;
    margin: 0 8px !important;
    padding: 0 !important;
}

/* 3. Target the actual links (The "Phosphor" Buttons) */
.solo-button.pager__item a {
    background: rgba(0, 243, 255, 0.03) !important;
    color: rgba(0, 243, 255, 0.8) !important;
    border: 1px solid rgba(0, 243, 255, 0.3) !important;
    font-family: 'Courier New', monospace !important;
    text-transform: uppercase;
    font-weight: 900;
    padding: 10px 20px !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.2s ease-in-out;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

/* 4. Target the Active Page (The current selection) */
.solo-button.pager__item.is-active a,
.solo-button.pager__item.solo-active-pager a {
    background: rgba(0, 243, 255, 0.15) !important;
    color: #ffffff !important;
    border-color: #00f3ff !important;
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
    text-shadow: 0 0 10px #00f3ff;
}

/* 5. Hover Effects */
.solo-button.pager__item a:hover {
    background: rgba(0, 243, 255, 0.1) !important;
    color: #ffffff !important;
    border-color: rgba(0, 243, 255, 0.8) !important;
    transform: translateY(-2px);
}

/* 6. Clean up the "Visually Hidden" text so it doesn't create gaps */
.solo-button.pager__item .visually-hidden {
    display: none !important;
}
/* --- DATA CARD HUD TREATMENT --- */
.node--type-article, .views-row, .card {
    background: rgba(0, 243, 255, 0.02) !important; /* Ghostly tint */
    border: 1px solid rgba(0, 243, 255, 0.1) !important;
    position: relative;
    padding: 20px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

/* Corner Brackets for that "Scanned" look */
.node--type-article::before, .node--type-article::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: rgba(0, 243, 255, 0.5);
    border-style: solid;
}

.node--type-article::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.node--type-article::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.node--type-article:hover {
    background: rgba(0, 243, 255, 0.05) !important;
    border-color: rgba(0, 243, 255, 0.4) !important;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}
/* --- TERMINAL INPUT --- */
input[type="text"], input[type="search"] {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid rgba(0, 243, 255, 0.3) !important;
    color: #00f3ff !important;
    font-family: 'Courier New', monospace !important;
    padding: 10px 5px !important;
    outline: none !important;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    border-bottom-color: #00f3ff !important;
    box-shadow: 0 5px 15px -5px rgba(0, 243, 255, 0.4);
}
/* --- NAV SELECTION PULSE --- */
.nav-link:hover, .nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 10px #00f3ff;
}

.nav-link::after {
    content: "";
    display: block;
    width: 0;
    height: 1px;
    background: #00f3ff;
    transition: width 0.3s;
    box-shadow: 0 0 8px #00f3ff;
}

.nav-link:hover::after {
    width: 100%;
    animation: flickerPulse 0.2s infinite; /* Uses the flicker from our News Bar! */
}
/* --- CYBER SCROLLBAR --- */
::-webkit-scrollbar {
    width: 6px;
    background: #030305;
}

::-webkit-scrollbar-track {
    background: #030305;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 243, 255, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(0, 243, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 243, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.4);
}
/* --- IMAGE SCANLINE OVERLAY --- */
.node__content img, .card img {
    filter: brightness(0.9) contrast(1.1) sepia(20%) hue-rotate(140deg);
    position: relative;
    transition: all 0.5s ease;
}

/* Subtle interlace effect on hover */
.node__content img:hover {
    filter: brightness(1.1) contrast(1.2) sepia(0%);
}
/* --- CYBER-NOIR READABILITY OVERHAUL --- */

/* 1. THE MAIN TITLE - High Visibility Phosphor */
.selene-blog-title span {
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace !important;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
}

/* 2. SELENE’S PRECIS (TL;DR Box) - High Contrast Ghosting */


/* 3. THE ARTICLE BODY - The "Readability" Core */
.selene-blog-body p {
    color: rgba(255, 255, 255, 0.9) !important; /* Slightly off-white for eye comfort */
    font-family: 'Georgia', serif !important; /* Serif is actually better for long reading */
    font-size: 1.25rem !important;
    line-height: 1.8 !important; /* Generous spacing prevents "text wall" */
    margin-bottom: 1.5rem !important;
    max-width: 750px; /* Limits line length for easier tracking */
}

/* 4. THE BYLINE - Metadata Style */
.selene-blog-kicker, .selene-blog-byline-text {
    font-family: 'Courier New', monospace !important;
    color: rgba(0, 243, 255, 0.7) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* 5. THE DIVIDER - Signal Line */
hr.selene-blog-divider {
    border: none !important;
    height: 1px !important;
    background: linear-gradient(to right, #00f3ff, transparent) !important;
    opacity: 0.3;
    margin: 30px 0 !important;
}
/* --- THE EMERGENCY SHARPNESS RESET --- */

/* 1. Target the absolute root of the precis to kill any parent blur bleed */
.selene-blog-precis {
    /* Hard reset: no filters, no blurs, no tilts */
    filter: none !important;
    backdrop-filter: none !important;
    transform: none !important;
    -webkit-filter: none !important;

    /* Ensure it has a high-contrast background */
    background: #020617 !important;
    border: 1px solid #1e3a8a !important;
    opacity: 1 !important;
    position: relative;
    z-index: 999; /* Force it to the very top layer */
}

/* 2. Target the specific Drupal field items */
.selene-blog-precis-body,
.selene-blog-precis-body .field__item,
.selene-blog-precis-body p {
    /* KILL THE GLOW */
    text-shadow: none !important;
    filter: none !important;

    /* SHARP FONT DEFAULTS */
    color: #ffffff !important; /* Pure white for max contrast */
    font-family: Arial, sans-serif !important; /* Most reliable font for testing */
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;

    /* DISABLE ALL BROWSER 'SMOOTHING' */
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeSpeed !important; /* 'Speed' usually bypasses fancy/blurry effects */

    /* FORCE 2D RENDERING (Avoids GPU 'texture' blur) */
    transform: translateZ(0);
}

/* 3. Kill the scanline overlay - we need to see raw text first */
.selene-blog-precis::after,
.selene-blog-precis::before {
    display: none !important;
}

/* Dispatches feed: minimal avatar + blog type stamp, scoped to block_2 only */
.view-latest-blog-posts.view-display-id-block_2 .htmb-featured-inner {
    position: relative;
}

.view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 20;
    pointer-events: none;
}

.view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity__avatar-wrap {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity__avatar {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: block;
    object-fit: cover;
    border: 2px solid rgba(244, 114, 182, 0.9);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.9),
        0 0 18px rgba(244, 114, 182, 0.45);
    background: rgba(2, 6, 23, 0.9);
}

.view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity__avatar--fallback {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
    border: 2px solid rgba(244, 114, 182, 0.9);
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.9),
        0 0 18px rgba(244, 114, 182, 0.45);
    background: radial-gradient(circle at 30% 30%, rgba(30, 41, 59, 0.95), rgba(2, 6, 23, 0.98));
}

.view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(96, 165, 250, 0.75);
    background: rgba(15, 23, 42, 0.78);
    color: #dbeafe;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.18);
}

.view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity__badge--book-review {
    border-color: rgba(251, 191, 36, 0.75);
    color: #fde68a;
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.18);
}

.view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity__badge--dispatch {
    border-color: rgba(96, 165, 250, 0.75);
    color: #dbeafe;
}

.view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity__badge--project-update {
    border-color: rgba(244, 114, 182, 0.75);
    color: #fbcfe8;
    box-shadow: 0 0 16px rgba(244, 114, 182, 0.18);
}

@media (max-width: 900px) {
    .view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity {
        top: 14px;
        right: 14px;
    }

    .view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity__avatar,
    .view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity__avatar--fallback {
        width: 52px;
        height: 52px;
    }

    .view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity__badge {
        min-height: 30px;
        padding: 0 14px;
        font-size: 0.82rem;
    }
}

/* =========================================================
   SELENE BLOG DETAIL + FEED POLISH
   Added to address badge alignment, precis readability,
   Amazon CTA styling, and tag layout cleanup.
   ========================================================= */

/* ---------------------------------
   1. FEED CARD: avatar + type badge side by side
   --------------------------------- */
.view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity {
    top: 18px;
    right: 20px;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end;
    gap: 10px !important;
    width: auto !important;
}

.view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity__avatar-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto !important;
    flex: 0 0 auto;
}

.view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity__badge {
    min-height: 30px;
    padding: 0 14px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    line-height: 1;
    flex: 0 0 auto;
    align-self: center;
}

@media (max-width: 900px) {
    .view-latest-blog-posts.view-display-id-block_2 .htmb-feed-identity {
        position: static !important;
        margin: 0 0 14px auto;
        justify-content: flex-end;
    }
}

/* ---------------------------------
   2. DETAIL PAGE: make Selene's precis readable
   --------------------------------- */
.selene-blog-precis {
    max-width: 760px;
    margin: 2rem 0 2.25rem !important;
    padding: 18px 22px !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(6, 14, 32, 0.96), rgba(3, 9, 24, 0.98)) !important;
    border: 1px solid rgba(34, 211, 238, 0.28) !important;
    box-shadow:
        0 0 0 1px rgba(6, 182, 212, 0.08),
        0 12px 34px rgba(0, 0, 0, 0.35),
        inset 0 0 30px rgba(34, 211, 238, 0.04) !important;
}

.selene-blog-precis-title,
.selene-blog-precis strong,
.selene-blog-precis b {
    display: block;
    margin-bottom: 10px;
    color: #67e8f9 !important;
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase !important;
    text-shadow: none !important;
}

.selene-blog-precis-body,
.selene-blog-precis-body .field__item,
.selene-blog-precis-body p,
.selene-blog-precis p {
    color: rgba(255, 255, 255, 0.96) !important;
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.75 !important;
    letter-spacing: 0.01em !important;
    text-shadow: none !important;
    max-width: none !important;
    margin: 0 !important;
}

/* ---------------------------------
   3. AMAZON LINK: make it a real CTA button
   --------------------------------- */
.selene-blog-buy a,
.selene-blog-amazon a,
.selene-blog-body a[href*="amazon."],
.selene-blog-body a[href*="amzn.to"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 20px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #f59e0b, #f97316) !important;
    color: #fff7ed !important;
    border: 1px solid rgba(255, 237, 213, 0.45) !important;
    box-shadow:
        0 0 0 1px rgba(249, 115, 22, 0.25),
        0 10px 24px rgba(249, 115, 22, 0.28),
        0 0 22px rgba(245, 158, 11, 0.22) !important;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.selene-blog-buy a::before,
.selene-blog-amazon a::before,
.selene-blog-body a[href*="amazon."]::before,
.selene-blog-body a[href*="amzn.to"]::before {
    content: "Buy on Amazon";
}

.selene-blog-buy a:hover,
.selene-blog-amazon a:hover,
.selene-blog-body a[href*="amazon."]:hover,
.selene-blog-body a[href*="amzn.to"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        0 0 0 1px rgba(255, 247, 237, 0.5),
        0 16px 34px rgba(249, 115, 22, 0.35),
        0 0 28px rgba(245, 158, 11, 0.3) !important;
}

.selene-blog-buy a,
.selene-blog-amazon a,
.selene-blog-body a[href*="amazon."],
.selene-blog-body a[href*="amzn.to"] {
    font-size: 0 !important;
}

.selene-blog-buy a::before,
.selene-blog-amazon a::before,
.selene-blog-body a[href*="amazon."]::before,
.selene-blog-body a[href*="amzn.to"]::before {
    font-size: 0.76rem !important;
}

/* ---------------------------------
   4. TAGS AREA: fix overlap and make it read
      Tags: tag tag tag
   --------------------------------- */
.selene-blog-tags,
.node__links .links.inline,
.taxonomy-term-reference,
.field--name-field-tags {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px !important;
    padding-top: 14px;
}

.selene-blog-tags h2,
.selene-blog-tags h3,
.selene-blog-tags .field__label,
.field--name-field-tags .field__label,
.taxonomy-term-reference .field__label {
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    font-size: 0.82rem !important;
    line-height: 1 !important;
    color: #93c5fd !important;
    text-transform: none !important;
    letter-spacing: 0.04em !important;
    position: static !important;
    float: none !important;
    display: inline !important;
}

.selene-blog-tags h2::after,
.selene-blog-tags h3::after,
.selene-blog-tags .field__label::after,
.field--name-field-tags .field__label::after,
.taxonomy-term-reference .field__label::after {
    content: ":";
    margin-left: 2px;
}

.selene-blog-tags a,
.node__links .links.inline a,
.taxonomy-term-reference a,
.field--name-field-tags a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(8, 47, 73, 0.68);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #dbeafe !important;
    text-decoration: none !important;
    font-size: 0.73rem !important;
    line-height: 1 !important;
    white-space: nowrap;
}

.selene-blog-tags * {
    clear: none !important;
}

/* =========================================================
   SELENE BLOG DETAIL + FEED POLISH V2
   stronger selectors for Amazon CTA and Tags row
   ========================================================= */

/* ---------------------------------
   AMAZON CTA: broader catch for actual Drupal markup
   --------------------------------- */
.selene-blog-body p a[href*="amazon."],
.selene-blog-body p a[href*="amzn.to"],
.node__content p a[href*="amazon."],
.node__content p a[href*="amzn.to"],
a[href*="amazon."][href*="/dp/"],
a[href*="amazon."][href*="/gp/"],
a[href*="amzn.to"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 44px !important;
    padding: 12px 22px !important;
    margin-top: 12px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 48%, #ea580c 100%) !important;
    color: #fff7ed !important;
    border: 1px solid rgba(255, 237, 213, 0.55) !important;
    box-shadow:
        0 0 0 1px rgba(124, 45, 18, 0.24),
        0 12px 28px rgba(234, 88, 12, 0.34),
        0 0 30px rgba(251, 191, 36, 0.22) !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 0 !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.selene-blog-body p a[href*="amazon."]::before,
.selene-blog-body p a[href*="amzn.to"]::before,
.node__content p a[href*="amazon."]::before,
.node__content p a[href*="amzn.to"]::before,
a[href*="amazon."][href*="/dp/"]::before,
a[href*="amazon."][href*="/gp/"]::before,
a[href*="amzn.to"]::before {
    content: "Buy on Amazon";
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
}

.selene-blog-body p a[href*="amazon."]:hover,
.selene-blog-body p a[href*="amzn.to"]:hover,
.node__content p a[href*="amazon."]:hover,
.node__content p a[href*="amzn.to"]:hover,
a[href*="amazon."][href*="/dp/"]:hover,
a[href*="amazon."][href*="/gp/"]:hover,
a[href*="amzn.to"]:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.06) !important;
    box-shadow:
        0 0 0 1px rgba(255, 247, 237, 0.65),
        0 18px 36px rgba(234, 88, 12, 0.4),
        0 0 34px rgba(251, 191, 36, 0.28) !important;
}

/* ---------------------------------
   TAGS: force inline label + pills on same row
   --------------------------------- */
.field--name-field-tags,
.field--name-field-tags .field__items,
.field--name-field-tags .field__item,
.field--name-field-tags .field__label {
    float: none !important;
    clear: none !important;
}

.field--name-field-tags {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 18px !important;
    padding-top: 14px !important;
}

.field--name-field-tags .field__label {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #38bdf8 !important;
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
}

.field--name-field-tags .field__label::after {
    content: ":";
    margin-left: 2px;
}

.field--name-field-tags .field__items {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px 12px !important;
    margin: 0 !important;
}

.field--name-field-tags .field__item {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
}

.field--name-field-tags .field__item a,
.field--name-field-tags a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 28px !important;
    padding: 0 14px !important;
    border-radius: 999px !important;
    background: rgba(8, 47, 73, 0.72) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    color: #38bdf8 !important;
    text-decoration: none !important;
    font-size: 0.76rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* =========================================================
   SELENE BLOG DETAIL + FEED POLISH V3
   fallback selectors when Drupal markup differs
   ========================================================= */

/* ---------------------------------
   AMAZON CTA FALLBACKS
   Catch a lone body link under the Buy the Book section
   even if the href is not matching amazon patterns cleanly.
   --------------------------------- */
.node__content .field--name-body p > a:only-child,
.node__content .field--type-text-with-summary p > a:only-child,
.node__content .field--type-text-long p > a:only-child,
article.node a[href*="amazon"],
article.node a[href*="amzn"],
article.node .field--name-body a[href*="amazon"],
article.node .field--name-body a[href*="amzn"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 46px !important;
    padding: 12px 22px !important;
    margin-top: 12px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #ea580c 100%) !important;
    color: #fff7ed !important;
    border: 1px solid rgba(255, 237, 213, 0.58) !important;
    box-shadow: 0 0 0 1px rgba(124, 45, 18, 0.28), 0 12px 28px rgba(234, 88, 12, 0.34), 0 0 30px rgba(251, 191, 36, 0.24) !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    font-family: "Inter", system-ui, sans-serif !important;
    font-size: 0 !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease !important;
}

.node__content .field--name-body p > a:only-child::before,
.node__content .field--type-text-with-summary p > a:only-child::before,
.node__content .field--type-text-long p > a:only-child::before,
article.node a[href*="amazon"]::before,
article.node a[href*="amzn"]::before,
article.node .field--name-body a[href*="amazon"]::before,
article.node .field--name-body a[href*="amzn"]::before {
    content: "Buy on Amazon";
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
}

.node__content .field--name-body p > a:only-child:hover,
.node__content .field--type-text-with-summary p > a:only-child:hover,
.node__content .field--type-text-long p > a:only-child:hover,
article.node a[href*="amazon"]:hover,
article.node a[href*="amzn"]:hover,
article.node .field--name-body a[href*="amazon"]:hover,
article.node .field--name-body a[href*="amzn"]:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.06) !important;
    box-shadow: 0 0 0 1px rgba(255, 247, 237, 0.7), 0 18px 36px rgba(234, 88, 12, 0.4), 0 0 34px rgba(251, 191, 36, 0.28) !important;
}

/* ---------------------------------
   TAGS FALLBACKS
   Force label and pills into one row if a parent or child
   is carrying width:100% or block flow from Drupal/theme CSS.
   --------------------------------- */
.field--name-field-tags,
.field--name-field-tags .field__items,
.field--name-field-tags .field__label,
.field--name-field-tags .field__item,
.field--name-field-tags .field__item a,
article.node .field--name-field-tags,
article.node .field--name-field-tags .field__items,
article.node .field--name-field-tags .field__label,
article.node .field--name-field-tags .field__item {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    flex-basis: auto !important;
}

.field--name-field-tags {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    column-gap: 12px !important;
    row-gap: 10px !important;
}

.field--name-field-tags .field__label {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

.field--name-field-tags .field__items {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    white-space: normal !important;
}

.field--name-field-tags .field__item {
    display: inline-flex !important;
    align-items: center !important;
}

/* If Drupal outputs tags as an inline list rather than field items */
.field--name-field-tags ul,
.field--name-field-tags ol,
.field--name-field-tags .links,
.field--name-field-tags .links.inline {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
}

.field--name-field-tags li,
.field--name-field-tags .links.inline li {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}
