/* ============================================================
   AI in AV refresh layer
   Scoped homepage styles plus the cleaner public header mark.
   ============================================================ */

:root {
    --refresh-ink: #15202b;
    --refresh-muted: #5c6a78;
    --refresh-soft: #f5f7fa;
    --refresh-panel: #ffffff;
    --refresh-line: #dbe3ea;
    --refresh-blue: #2268b8;
    --refresh-teal: #2f9d8f;
    --refresh-gold: #c58a2a;
    --refresh-navy: #102235;
    --refresh-shadow: 0 18px 50px rgba(22, 36, 50, 0.12);
    --refresh-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --refresh-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

body {
    font-family: var(--refresh-body);
}

.site-header {
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(219, 227, 234, 0.95);
    box-shadow: 0 10px 30px rgba(16, 34, 53, 0.08);
    backdrop-filter: blur(16px);
}

.logo-nav {
    width: auto;
    height: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.12rem;
    text-decoration: none;
}

.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.36rem;
    color: var(--refresh-ink);
    font-family: var(--refresh-mono);
    font-weight: 700;
    font-size: clamp(1.18rem, 2vw, 1.62rem);
    line-height: 1;
    letter-spacing: 0;
}

.brand-ai {
    color: var(--refresh-blue);
}

.brand-in {
    color: var(--refresh-muted);
    font-size: 0.62em;
    text-transform: uppercase;
}

.brand-av {
    color: var(--refresh-ink);
}

.brand-tagline {
    color: var(--refresh-muted);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-links a {
    color: var(--refresh-ink);
    font-weight: 700;
}

.nav-links {
    gap: 1.15rem;
}

.nav-links a:hover {
    color: var(--refresh-blue);
}

.nav-tip-btn {
    background: var(--refresh-navy);
    border-color: var(--refresh-navy);
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(16, 34, 53, 0.18);
}

.nav-tip-btn:hover {
    background: var(--refresh-blue);
    border-color: var(--refresh-blue);
}

.nav-search-link {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--refresh-ink);
}

.nav-search-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-search-link:hover {
    border-color: var(--refresh-blue);
    background: #eef6fb;
    color: var(--refresh-blue);
}

.nav-toggle span {
    background: var(--refresh-ink);
}

.refresh-home {
    background: #ffffff;
    color: var(--refresh-ink);
    font-family: var(--refresh-body);
}

.refresh-home * {
    box-sizing: border-box;
}

.refresh-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.refresh-hero {
    position: relative;
    min-height: 76vh;
    padding: 8.5rem 0 4.5rem;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 250, 0.94)),
        radial-gradient(circle at 78% 22%, rgba(47, 157, 143, 0.18), transparent 30%),
        radial-gradient(circle at 14% 72%, rgba(34, 104, 184, 0.13), transparent 32%);
}

.refresh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 34, 53, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 34, 53, 0.055) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 88%);
    pointer-events: none;
}

.refresh-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: 3rem;
    align-items: center;
}

.refresh-kicker {
    margin: 0 0 1rem;
    color: var(--refresh-blue);
    font-family: var(--refresh-mono);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0;
}

.refresh-hero h1,
.refresh-section h2 {
    margin: 0;
    color: var(--refresh-ink);
    font-family: var(--refresh-body);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
}

.refresh-hero h1 {
    max-width: 760px;
    font-size: clamp(4rem, 8vw, 7.4rem);
}

.refresh-hero-subtitle {
    max-width: 680px;
    margin: 1.4rem 0 0;
    color: var(--refresh-muted);
    font-size: 1.18rem;
    line-height: 1.65;
}

.refresh-hero-actions,
.cta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.refresh-hero-actions {
    margin-top: 2rem;
}

.refresh-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0.84rem 1.05rem;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.refresh-btn:hover {
    transform: translateY(-1px);
}

.refresh-btn-primary {
    background: var(--refresh-navy);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(16, 34, 53, 0.2);
}

.refresh-btn-primary:hover {
    background: var(--refresh-blue);
    color: #ffffff;
}

.refresh-btn-secondary {
    background: rgba(255, 255, 255, 0.82);
    border-color: var(--refresh-line);
    color: var(--refresh-ink);
}

.refresh-btn-secondary:hover {
    border-color: var(--refresh-blue);
    color: var(--refresh-blue);
}

.refresh-signal-panel,
.assessment-card,
.featured-intel-card,
.intel-card,
.topic-grid article,
.network-card {
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    background: var(--refresh-panel);
    box-shadow: var(--refresh-shadow);
}

.refresh-signal-panel {
    padding: 1.1rem;
}

.signal-panel-header,
.signal-metric,
.intel-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.signal-panel-header {
    align-items: center;
    margin-bottom: 0.5rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--refresh-line);
    color: var(--refresh-muted);
    font-family: var(--refresh-mono);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.signal-panel-header strong {
    color: var(--refresh-teal);
}

.signal-metric {
    padding: 1rem 0;
    border-bottom: 1px solid var(--refresh-line);
}

.signal-metric:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.signal-metric span {
    color: var(--refresh-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.signal-metric strong {
    max-width: 230px;
    color: var(--refresh-ink);
    font-size: 0.96rem;
    line-height: 1.35;
    text-align: right;
}

.refresh-strip {
    border-top: 1px solid var(--refresh-line);
    border-bottom: 1px solid var(--refresh-line);
    background: var(--refresh-navy);
}

.refresh-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.strip-link {
    min-height: 112px;
    padding: 1.35rem 1.1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;
}

.strip-link:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.strip-link span {
    display: block;
    margin-bottom: 0.45rem;
    color: #97d4cb;
    font-family: var(--refresh-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.strip-link strong {
    display: block;
    font-size: 1rem;
    line-height: 1.35;
}

.strip-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.refresh-section {
    padding: 4.8rem 0;
}

.refresh-muted {
    background: var(--refresh-soft);
}

.refresh-two-column,
.cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: 2.5rem;
    align-items: center;
}

.refresh-section h2 {
    max-width: 820px;
    font-size: clamp(2.1rem, 4.4vw, 4.6rem);
}

.refresh-section p {
    color: var(--refresh-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.assessment-card {
    padding: 1.7rem;
}

.assessment-card h3,
.featured-intel-card h3,
.intel-card h3,
.topic-grid h3,
.network-card strong {
    margin: 0;
    color: var(--refresh-ink);
    line-height: 1.2;
}

.assessment-card h3 {
    font-size: 1.45rem;
}

.assessment-card .refresh-btn {
    margin-top: 0.5rem;
}

.refresh-section-heading {
    margin-bottom: 2rem;
}

.refresh-section-heading.split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
}

.topic-grid,
.intel-grid,
.network-grid {
    display: grid;
    gap: 1rem;
}

.topic-grid {
    grid-template-columns: repeat(4, 1fr);
}

.topic-grid article {
    min-height: 260px;
    padding: 1.25rem;
    box-shadow: none;
}

.topic-grid span {
    display: inline-block;
    margin-bottom: 1.4rem;
    color: var(--refresh-gold);
    font-family: var(--refresh-mono);
    font-weight: 800;
}

.topic-grid h3 {
    font-size: 1.18rem;
}

.featured-intel-card {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1.6rem;
}

.sponsored-hero-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: center;
    overflow: hidden;
    margin-bottom: 1rem;
    padding: clamp(1.6rem, 4vw, 3rem);
    border: 1px solid rgba(30, 41, 59, 0.18);
    border-radius: 8px;
    background:
        radial-gradient(circle at 84% 18%, rgba(47, 157, 255, 0.28), transparent 30%),
        linear-gradient(135deg, #0d1726 0%, #172338 58%, #101827 100%);
    box-shadow: var(--refresh-shadow);
    color: #ffffff;
}

.sponsored-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,0.75), transparent 86%);
}

.sponsor-hero-copy,
.sponsor-hero-mark,
.sponsor-hero-monogram {
    position: relative;
    z-index: 1;
}

.sponsored-label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.7rem;
    color: var(--refresh-muted);
    font-family: var(--refresh-mono);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sponsored-label-row span {
    color: var(--refresh-gold);
}

.sponsored-label-row strong {
    color: inherit;
}

.sponsored-hero-card .sponsored-label-row {
    color: rgba(255,255,255,0.76);
}

.sponsored-hero-card .sponsored-label-row strong {
    color: #ffffff;
}

.sponsored-hero-card h3 {
    max-width: 860px;
    margin: 0;
    color: #ffffff;
    font-family: var(--refresh-body);
    font-size: clamp(1.75rem, 3.2vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

.sponsored-hero-card .sponsored-summary {
    max-width: 860px;
    margin: 1rem 0 1.4rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.7;
}

.sponsor-hero-btn {
    width: fit-content;
    border-color: rgba(255,255,255,0.22);
    background: #ffffff;
    color: #101827;
}

.sponsor-hero-btn:hover {
    transform: translateY(-1px);
    background: var(--refresh-gold);
    color: #101827;
}

.sponsor-hero-mark {
    display: grid;
    place-items: center;
    min-height: 190px;
    padding: 1.2rem;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

.sponsor-hero-mark img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.sponsor-hero-monogram {
    display: grid;
    place-items: center;
    min-height: 190px;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.86);
    font-family: var(--refresh-mono);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0;
}

.featured-intel-card h3 {
    max-width: 860px;
    font-size: clamp(1.7rem, 3vw, 3rem);
}

.featured-intel-card h3 a,
.intel-card h3 a {
    color: inherit;
    text-decoration: none;
}

.featured-intel-card h3 a:hover,
.intel-card h3 a:hover {
    color: var(--refresh-blue);
}

.intel-meta-row {
    align-items: center;
    color: var(--refresh-muted);
    font-family: var(--refresh-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.intel-grid {
    grid-template-columns: repeat(3, 1fr);
}

.sponsor-detail-page,
.sponsors-archive-page {
    background: var(--refresh-bg);
}

.sponsor-detail-hero {
    padding: clamp(3rem, 7vw, 6rem) 0;
    background:
        radial-gradient(circle at 84% 20%, rgba(47, 157, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #0d1726 0%, #172338 58%, #101827 100%);
    color: #ffffff;
}

.sponsor-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 420px);
    gap: clamp(1.5rem, 5vw, 4rem);
    align-items: center;
}

.sponsor-detail-copy h1 {
    max-width: 980px;
    margin: 0 0 1rem;
    color: #ffffff;
    font-family: var(--refresh-body);
    font-size: clamp(2.2rem, 5vw, 5rem);
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0;
}

.sponsor-detail-summary {
    max-width: 820px;
    margin: 0 0 1.5rem;
    color: rgba(255,255,255,0.78);
    font-size: 1.12rem;
    line-height: 1.75;
}

.sponsor-detail-media {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 1.4rem;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
}

.sponsor-detail-media img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
}

.sponsor-detail-monogram {
    color: rgba(255,255,255,0.86);
    font-family: var(--refresh-mono);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: 0;
}

.sponsor-detail-body-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.sponsor-detail-article {
    padding: clamp(1.5rem, 4vw, 2.4rem);
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--refresh-shadow);
}

.sponsor-detail-article p {
    margin: 0 0 1.15rem;
    color: var(--refresh-ink);
    font-size: 1.04rem;
    line-height: 1.8;
}

.sponsor-detail-article p:last-child {
    margin-bottom: 0;
}

.sponsor-disclosure {
    margin-bottom: 1.2rem;
    color: var(--refresh-gold);
    font-family: var(--refresh-mono);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.sponsor-detail-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--refresh-shadow);
}

.sponsor-detail-sidebar h2 {
    margin: 0;
    color: var(--refresh-ink);
    font-size: 1.2rem;
    letter-spacing: 0;
}

.sponsor-detail-sidebar p,
.sponsor-detail-empty p {
    margin: 0;
    color: var(--refresh-muted);
    line-height: 1.65;
}

.sponsor-detail-empty {
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.sponsor-detail-empty h1 {
    color: var(--refresh-ink);
    letter-spacing: 0;
}

.sponsors-archive-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(47,157,255,0.14), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #edf4fb 100%);
}

.sponsor-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.sponsor-archive-card {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--refresh-shadow);
}

.sponsor-archive-card img {
    width: 100%;
    max-height: 150px;
    object-fit: contain;
    padding: 0.8rem;
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    background: #f8fafc;
}

.sponsor-archive-card h2 {
    margin: 0;
    color: var(--refresh-ink);
    font-size: 1.18rem;
    letter-spacing: 0;
    line-height: 1.25;
}

.sponsor-archive-card p {
    margin: 0;
    color: var(--refresh-muted);
    line-height: 1.65;
}

.intel-card {
    min-height: 250px;
    padding: 1.2rem;
    box-shadow: none;
}

.intel-card h3 {
    margin-top: 0.85rem;
    font-size: 1.15rem;
}

.refresh-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.refresh-tag-list span {
    border: 1px solid var(--refresh-line);
    border-radius: 999px;
    padding: 0.28rem 0.58rem;
    color: var(--refresh-muted);
    font-family: var(--refresh-mono);
    font-size: 0.68rem;
    font-weight: 700;
}

.refresh-text-link {
    color: var(--refresh-blue);
    font-weight: 800;
    text-decoration: none;
}

.refresh-text-link:hover {
    color: var(--refresh-teal);
}

.refresh-empty {
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    padding: 2rem;
    background: var(--refresh-panel);
}

.network-grid {
    grid-template-columns: repeat(3, 1fr);
}

.network-card {
    display: block;
    min-height: 238px;
    padding: 1.25rem;
    color: var(--refresh-ink);
    text-decoration: none;
    box-shadow: none;
}

.network-card span {
    display: block;
    margin-bottom: 1.1rem;
    color: var(--refresh-blue);
    font-family: var(--refresh-mono);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.network-card strong {
    display: block;
    font-size: 1.22rem;
}

.network-card:hover {
    border-color: rgba(34, 104, 184, 0.42);
    transform: translateY(-1px);
}

.refresh-cta {
    background: var(--refresh-navy);
    color: #ffffff;
}

.refresh-cta h2,
.refresh-cta p {
    color: #ffffff;
}

.refresh-cta p {
    color: rgba(255, 255, 255, 0.76);
}

.refresh-cta .refresh-kicker {
    color: #97d4cb;
}

.refresh-cta .refresh-btn-primary {
    justify-self: end;
    background: #ffffff;
    color: var(--refresh-navy);
}

.refresh-cta .refresh-btn-primary:hover {
    background: #dff4f1;
    color: var(--refresh-navy);
}

@media (max-width: 980px) {
    .refresh-hero-grid,
    .refresh-two-column,
    .cta-grid,
    .sponsored-hero-card,
    .sponsor-detail-grid,
    .sponsor-detail-body-grid {
        grid-template-columns: 1fr;
    }

    .refresh-strip-grid,
    .topic-grid,
    .intel-grid,
    .network-grid,
    .sponsor-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .refresh-cta .refresh-btn-primary {
        justify-self: start;
    }

    .sponsor-detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-links {
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--refresh-line);
    }

    .brand-tagline {
        white-space: normal;
        font-size: 0.62rem;
    }

    .refresh-hero {
        min-height: auto;
        padding: 7rem 0 3rem;
    }

    .refresh-shell {
        width: min(100% - 28px, 1180px);
    }

    .refresh-hero h1 {
        font-size: 4rem;
    }

    .refresh-hero-subtitle {
        font-size: 1.03rem;
    }

    .refresh-section {
        padding: 3.4rem 0;
    }

    .refresh-section-heading.split {
        display: block;
    }

    .refresh-strip-grid,
    .topic-grid,
    .intel-grid,
    .network-grid,
    .sponsor-archive-grid {
        grid-template-columns: 1fr;
    }

    .sponsored-hero-card {
        padding: 1.35rem;
    }

    .sponsor-hero-mark,
    .sponsor-hero-monogram {
        min-height: 150px;
    }

    .strip-link,
    .strip-link:first-child {
        border-left: 1px solid rgba(255, 255, 255, 0.16);
        border-right: 1px solid rgba(255, 255, 255, 0.16);
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .signal-panel-header,
    .signal-metric,
    .intel-meta-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .signal-metric strong {
        max-width: none;
        text-align: left;
    }
}

/* Public article/archive refresh */
body {
    background: #ffffff;
    background-image: none;
    color: var(--refresh-ink);
}

body a {
    color: var(--refresh-blue);
}

body a:hover {
    color: var(--refresh-teal);
}

.page-hero {
    height: auto;
    min-height: 310px;
    margin-top: 64px;
    padding: 5.5rem 1.5rem 4rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 250, 0.94)),
        radial-gradient(circle at 80% 22%, rgba(47, 157, 143, 0.16), transparent 30%),
        radial-gradient(circle at 18% 78%, rgba(34, 104, 184, 0.12), transparent 34%);
    border-bottom: 1px solid var(--refresh-line);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(16, 34, 53, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 34, 53, 0.055) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.hero-canvas-bg {
    display: none;
}

.page-hero-title {
    color: var(--refresh-ink);
    font-family: var(--refresh-body);
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0;
    text-shadow: none;
    text-transform: none;
}

.page-hero-sub {
    max-width: 680px;
    margin: 1rem auto 0;
    color: var(--refresh-muted);
    font-size: 1.05rem;
    letter-spacing: 0;
}

.section {
    max-width: 1180px;
    padding: 4rem 1.5rem;
}

.section-title {
    color: var(--refresh-ink);
    font-family: var(--refresh-body);
    font-weight: 800;
    letter-spacing: 0;
}

.section-title::after {
    background: linear-gradient(90deg, var(--refresh-blue), var(--refresh-teal));
}

.section-subtitle {
    color: var(--refresh-muted) !important;
}

.posts-grid {
    gap: 1rem;
}

.post-card {
    min-height: 260px;
    background: var(--refresh-panel);
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    box-shadow: none;
    backdrop-filter: none;
}

.post-card:hover {
    border-color: rgba(34, 104, 184, 0.42);
    box-shadow: var(--refresh-shadow);
    transform: translateY(-2px);
}

.post-card-category,
.post-single-category {
    color: var(--refresh-blue);
    font-family: var(--refresh-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
}

.post-card-title,
.post-single-title,
.post-single-content h2,
.post-single-content h3 {
    color: var(--refresh-ink);
    font-family: var(--refresh-body);
    letter-spacing: 0;
}

.post-card-title {
    font-size: 1.12rem;
    line-height: 1.28;
}

.post-card-title a:hover {
    color: var(--refresh-blue);
}

.post-card-excerpt,
.post-card-date,
.post-single-meta {
    color: var(--refresh-muted);
}

.post-card-meta {
    border-top: 1px solid var(--refresh-line);
}

.read-more {
    color: var(--refresh-blue);
    font-family: var(--refresh-body);
    font-weight: 800;
    letter-spacing: 0;
}

.read-more:hover {
    color: var(--refresh-teal);
}

.tag {
    background: #f4f8fb;
    border: 1px solid var(--refresh-line);
    color: var(--refresh-muted);
    font-family: var(--refresh-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
}

.pagination {
    margin-top: 2.5rem;
}

.page-btn {
    border-color: var(--refresh-line);
    color: var(--refresh-muted);
    font-family: var(--refresh-body);
    font-weight: 800;
}

.page-btn:hover {
    border-color: var(--refresh-blue);
    background: #eef6fb;
    color: var(--refresh-blue);
}

.page-btn-active {
    background: var(--refresh-navy);
    border-color: var(--refresh-navy);
    color: #ffffff;
}

.post-single {
    max-width: 920px;
    padding: 8rem 1.5rem 4rem;
}

.post-single-header {
    margin-bottom: 2rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid var(--refresh-line);
}

.post-single-title {
    max-width: 880px;
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    font-weight: 800;
    line-height: 1;
}

.post-single-meta {
    font-size: 0.92rem;
}

.post-single-content {
    color: var(--refresh-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.12rem;
    line-height: 1.84;
}

.post-single-content p {
    margin-bottom: 1.35rem;
}

.post-single-content h2,
.post-single-content h3 {
    margin-top: 2.4rem;
    margin-bottom: 0.85rem;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
}

.post-single-content ul,
.post-single-content ol {
    margin: 1.15rem 0 1.4rem 1.3rem;
}

.post-single-content li {
    margin-bottom: 0.65rem;
}

.post-single-content blockquote {
    border-left: 4px solid var(--refresh-teal);
    background: #f6fafb;
    margin: 1.8rem 0;
    padding: 1.1rem 1.4rem;
    color: var(--refresh-muted);
}

.source-attribution {
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    background: #f7fafc;
    color: var(--refresh-muted);
}

.article-lead-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    margin: 2.6rem 0;
    padding: 1.5rem;
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    background: var(--refresh-navy);
    color: #ffffff;
}

.article-lead-card span {
    display: block;
    margin-bottom: 0.7rem;
    color: #97d4cb;
    font-family: var(--refresh-mono);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
}

.article-lead-card h2 {
    margin: 0;
    color: #ffffff;
    font-family: var(--refresh-body);
    font-size: clamp(1.35rem, 2.5vw, 2.1rem);
    line-height: 1.15;
}

.article-lead-card p {
    margin: 0.85rem 0 0;
    color: rgba(255, 255, 255, 0.74);
}

.article-lead-card .refresh-btn-primary {
    background: #ffffff;
    color: var(--refresh-navy);
    white-space: nowrap;
}

.article-lead-card .refresh-btn-primary:hover {
    background: #dff4f1;
    color: var(--refresh-navy);
}

.related-posts {
    margin-top: 3rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--refresh-line);
}

.article-back-link {
    margin-top: 2rem;
    font-weight: 800;
}

.site-footer {
    background: var(--refresh-navy);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 820px) {
    .article-lead-card {
        grid-template-columns: 1fr;
    }

    .article-lead-card .refresh-btn-primary {
        justify-self: start;
        white-space: normal;
    }

    .post-single {
        padding-top: 7rem;
    }
}

/* Search */
.search-section {
    max-width: 980px;
}

.site-search-form {
    margin-bottom: 2.2rem;
    padding: 1.35rem;
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    background: var(--refresh-panel);
    box-shadow: var(--refresh-shadow);
}

.site-search-form label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--refresh-ink);
    font-family: var(--refresh-mono);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.site-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.site-search-row input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--refresh-ink);
    font: 600 1rem/1.3 var(--refresh-body);
    padding: 0.78rem 0.9rem;
}

.site-search-row input:focus {
    border-color: var(--refresh-blue);
    box-shadow: 0 0 0 3px rgba(34, 104, 184, 0.14);
    outline: none;
}

.search-results-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.3rem;
}

.search-results-header h2,
.search-empty-state h2 {
    margin: 0;
    color: var(--refresh-ink);
    font-family: var(--refresh-body);
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

.search-empty-state {
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    background: #f7fafc;
    padding: 1.5rem;
}

.search-empty-state p {
    max-width: 680px;
    margin: 0.7rem 0 0;
    color: var(--refresh-muted);
    line-height: 1.65;
}

.search-results-list {
    display: grid;
    gap: 1rem;
}

.search-result-card {
    display: grid;
    gap: 0.8rem;
    padding: 1.25rem;
    border: 1px solid var(--refresh-line);
    border-radius: 8px;
    background: var(--refresh-panel);
}

.search-result-card h3 {
    margin: 0;
    color: var(--refresh-ink);
    font-family: var(--refresh-body);
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: 0;
}

.search-result-card h3 a {
    color: inherit;
    text-decoration: none;
}

.search-result-card h3 a:hover {
    color: var(--refresh-blue);
}

.search-result-card p {
    margin: 0;
    color: var(--refresh-muted);
    line-height: 1.65;
}

@media (max-width: 700px) {
    .site-search-row,
    .search-results-header {
        grid-template-columns: 1fr;
        display: grid;
    }

    .site-search-row .refresh-btn {
        width: 100%;
    }
}

/* Admin readability after the public light-theme refresh */
.admin-wrap {
    color: var(--refresh-ink);
}

.admin-header {
    border-bottom-color: var(--refresh-line);
}

.admin-header h1 {
    color: var(--refresh-ink);
    font-family: var(--refresh-body);
    font-weight: 800;
    letter-spacing: 0;
}

.admin-nav a,
.admin-nav span {
    color: var(--refresh-muted) !important;
}

.admin-nav a:hover {
    color: var(--refresh-blue) !important;
}

.tabs {
    border-bottom-color: var(--refresh-line);
}

.tab-btn {
    color: var(--refresh-muted);
    font-family: var(--refresh-body);
    font-weight: 800;
    letter-spacing: 0;
}

.tab-btn.active {
    color: var(--refresh-blue);
    border-bottom-color: var(--refresh-blue);
}

.tab-btn:hover {
    color: var(--refresh-blue);
}

.admin-card {
    background: #ffffff !important;
    border-color: var(--refresh-line) !important;
    box-shadow: var(--refresh-shadow);
}

.admin-card h2 {
    color: var(--refresh-blue) !important;
    font-family: var(--refresh-body) !important;
    letter-spacing: 0 !important;
}

.admin-table th {
    color: var(--refresh-blue);
    border-bottom-color: var(--refresh-line);
    font-family: var(--refresh-body);
    letter-spacing: 0;
}

.admin-table td {
    color: var(--refresh-ink);
    border-bottom-color: var(--refresh-line);
}

.admin-table tr:hover td {
    background: #f7fafc;
}

.admin-table .title-cell,
.admin-table .title-cell a {
    color: var(--refresh-ink) !important;
}

.admin-table .excerpt-cell {
    color: var(--refresh-muted);
}

.status-badge {
    border: 1px solid transparent;
    font-weight: 800;
    letter-spacing: 0;
}

.status-draft {
    background: #fff4d8;
    border-color: #f3cc73;
    color: #7a4f00;
}

.status-published {
    background: #e7f7ef;
    border-color: #8bd6ad;
    color: #176b3b;
}

.status-archived {
    background: #eef2f5;
    border-color: var(--refresh-line);
    color: var(--refresh-muted);
}

.admin-wrap .form-group label {
    color: var(--refresh-muted);
}

.admin-wrap .form-group input,
.admin-wrap .form-group textarea,
.admin-wrap .form-group select {
    background: #ffffff;
    border-color: var(--refresh-line);
    color: var(--refresh-ink);
}

.admin-wrap .form-group input:focus,
.admin-wrap .form-group textarea:focus,
.admin-wrap .form-group select:focus {
    border-color: var(--refresh-blue);
    box-shadow: 0 0 0 3px rgba(34, 104, 184, 0.14);
}

/* Sponsor admin table: explicit light-theme overrides */
.sponsor-admin-table,
.sponsor-admin-table tbody,
.sponsor-admin-table tr,
.sponsor-admin-table td {
    background: #ffffff;
}

.sponsor-admin-table th {
    color: var(--refresh-blue) !important;
    background: #ffffff;
}

.sponsor-admin-table td,
.sponsor-admin-table .sponsor-name-cell,
.sponsor-admin-table .spotlight-title-cell {
    color: var(--refresh-ink) !important;
}

.sponsor-admin-table .sponsor-name-cell,
.sponsor-admin-table .spotlight-title-cell {
    font-weight: 800;
}

.sponsor-admin-table td[style*="var(--gray)"] {
    color: var(--refresh-muted) !important;
}

.sponsor-admin-table tr:hover td {
    background: #f7fafc;
}

/* Final sponsor overrides: keep the old dark site stylesheet out of sponsor placements. */
.refresh-home .sponsored-hero-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 320px) !important;
    background:
        radial-gradient(circle at 84% 18%, rgba(47, 157, 255, 0.28), transparent 30%),
        linear-gradient(135deg, #0d1726 0%, #172338 58%, #101827 100%) !important;
    color: #ffffff !important;
}

.refresh-home .sponsored-hero-card h1,
.refresh-home .sponsored-hero-card h2,
.refresh-home .sponsored-hero-card h3,
.refresh-home .sponsored-hero-card h4,
.refresh-home .sponsored-hero-card p,
.refresh-home .sponsored-hero-card span,
.refresh-home .sponsored-hero-card strong {
    color: #ffffff !important;
}

.refresh-home .sponsored-hero-card .sponsored-label-row span {
    color: #f2b653 !important;
}

.refresh-home .sponsored-hero-card .sponsored-summary {
    color: rgba(255, 255, 255, 0.78) !important;
}

.refresh-home .sponsored-hero-card .sponsor-hero-btn {
    display: inline-flex !important;
    width: fit-content !important;
    background: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #101827 !important;
}

.refresh-home .sponsored-hero-card .sponsor-hero-btn:hover {
    background: #f2b653 !important;
    color: #101827 !important;
}

.refresh-home .sponsor-hero-mark,
.refresh-home .sponsor-hero-monogram {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

.sponsor-detail-page .sponsor-detail-hero {
    background:
        radial-gradient(circle at 84% 20%, rgba(47, 157, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #0d1726 0%, #172338 58%, #101827 100%) !important;
    color: #ffffff !important;
}

.sponsor-detail-page .sponsor-detail-hero h1,
.sponsor-detail-page .sponsor-detail-hero p,
.sponsor-detail-page .sponsor-detail-hero span,
.sponsor-detail-page .sponsor-detail-hero strong {
    color: #ffffff !important;
}

.sponsor-detail-page .sponsor-detail-summary {
    color: rgba(255, 255, 255, 0.78) !important;
}

@media (max-width: 980px) {
    .refresh-home .sponsored-hero-card {
        grid-template-columns: 1fr !important;
    }
}
