/* =====================================================================
   Public site — editorial layout (Ahenfie TV/FM: black · gold · white)
   ===================================================================== */

body { background: var(--white); font-size: 16px; }

.s-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: .5rem 1rem; background: var(--blue-700); color: var(--white); border-radius: 8px; }
.skip-link:focus { left: 8px; color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Gold strip ---- */
.tricolor { height: 4px; background: linear-gradient(90deg, var(--red-700), var(--gold-light) 50%, var(--red-700)); }
.tricolor span { display: none; }

/* ---- Top bar ---- */
.s-topbar { background: var(--blue-950); border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.75); font-size: 13px; }
.s-topbar .s-container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.s-topbar a { color: rgba(255,255,255,.75); }
.s-topbar a:hover { color: var(--white); }
.s-date, .s-topbar-login { display: inline-flex; align-items: center; gap: .4rem; }
.s-date svg, .s-topbar-login svg { width: 14px; height: 14px; }
.s-topbar-right { display: flex; gap: 1.1rem; align-items: center; }
.s-topbar-login { padding-left: 1.1rem; border-left: 1px solid rgba(255,255,255,.18); font-weight: 600; }

/* ---- Header ---- */
.s-header { position: sticky; top: 0; z-index: 50; background: rgba(8,8,8,.97); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(212,161,42,.35); }
.s-header-inner { display: flex; align-items: center; gap: 2rem; min-height: 74px; }

.s-logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--white); flex: none; }
.s-logo:hover { color: var(--white); }
.s-logo img { height: 54px; width: auto; }
.s-footer .s-logo img { height: 72px; }
.s-logo-text { font: 800 24px var(--font-display); letter-spacing: -0.03em; }
.s-logo .brand-mark {
    position: relative; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
    background: var(--blue-700); color: var(--white); font: 800 19px var(--font-display);
}
.s-logo .brand-mark::after {
    content: ""; position: absolute; right: -4px; bottom: -4px; width: 13px; height: 13px;
    border-radius: 50%; background: var(--red-600); border: 3px solid var(--white);
}
.s-logo.light { color: var(--white); }
.s-logo.light .brand-mark { background: var(--white); color: var(--blue-700); }
.s-logo.light .brand-mark::after { border-color: var(--blue-900); }

.s-nav { display: flex; gap: .25rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.s-nav a {
    position: relative; padding: .55rem .8rem; border-radius: 8px;
    color: rgba(255,255,255,.8); font-weight: 600; font-size: 15px; white-space: nowrap;
}
.s-nav a:hover { color: var(--gold-light); background: rgba(255,255,255,.06); }
.s-nav a.active { color: var(--white); }
.s-nav a.active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -14px; height: 3px; border-radius: 3px 3px 0 0; background: var(--red-600); }

.s-header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.s-icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 10px; background: none; color: rgba(255,255,255,.85); cursor: pointer; }
.s-icon-btn:hover { background: rgba(255,255,255,.08); color: var(--gold-light); }
.s-icon-btn svg { width: 21px; height: 21px; }
.s-menu-btn { display: none; }

.s-search-panel { border-top: 1px solid var(--line); background: var(--white); padding: 1rem 0; }
.s-search-panel form { display: flex; align-items: center; gap: .75rem; }
.s-search-panel svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.s-search-panel input { flex: 1; border: 0; outline: 0; font: 500 20px var(--font-body); padding: .5rem 0; color: var(--ink); background: none; min-width: 0; }

.s-flash { padding-top: 1.25rem; }
.s-flash .alert { margin-bottom: 0; }

/* ---- Common pieces ---- */
.s-kicker {
    display: inline-block; margin-bottom: .5rem;
    font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink);
}
.s-kicker:hover { color: var(--blue-700); }
.s-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .6rem; }
.s-eyebrow.light { color: var(--gold-light); }

.s-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: 13.5px; color: var(--muted); }
.s-meta .dot { color: #C9C3B6; }
.s-meta-author { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-2); font-weight: 600; }
.s-meta-author:hover { color: var(--blue-700); }

.s-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover;
    display: inline-grid; place-items: center; background: var(--blue-700); color: var(--white);
    font: 700 14px var(--font-display);
}
.s-avatar.xs { width: 24px; height: 24px; font-size: 10px; }
.s-avatar.lg { width: 64px; height: 64px; font-size: 22px; }
.s-avatar.xl { width: 120px; height: 120px; font-size: 40px; box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--red-600); }

.s-section { padding: 3rem 0; }
.s-section + .s-section { padding-top: 0; }
.s-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: .85rem; border-bottom: 2px solid var(--ink); position: relative; }
.s-section-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 4px; background: var(--red-600); }
.s-section-head h2 { font-size: 26px; font-weight: 800; margin: 0; }
.s-section-head a { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: .3rem; }
.s-section-head a svg { width: 16px; height: 16px; }

/* ---- Article cards ---- */
.card-article { display: flex; flex-direction: column; gap: .9rem; }
.card-media { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 16 / 10; background: var(--blue-50); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-article:hover .card-media img { transform: scale(1.04); }
.card-media-placeholder {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-950)); color: rgba(255,255,255,.9);
    font: 800 64px var(--font-display);
}
.card-media-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; }
.card-media-placeholder .ph-mark {
    width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); font: 800 26px var(--font-display);
}
.card-media-placeholder .ph-label { font: 700 12px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.card-article.compact .card-media-placeholder .ph-mark { width: 38px; height: 38px; font-size: 17px; border-radius: 10px; }
.card-media-placeholder::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--red-700), var(--gold-light) 50%, var(--red-700)); }
.card-title { font-size: 20px; font-weight: 700; line-height: 1.25; margin: 0 0 .5rem; }
.card-title a { color: var(--ink); background-image: linear-gradient(var(--red-600), var(--red-600)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s; }
.card-title a:hover { color: var(--ink); background-size: 100% 2px; }
.card-excerpt { color: var(--ink-2); margin: 0 0 .8rem; font-size: 15px; }

.card-article.wide { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.card-article.wide .card-title { font-size: 24px; }

.card-article.compact { flex-direction: row; gap: .9rem; align-items: flex-start; }
.card-article.compact .card-media { width: 104px; flex: none; aspect-ratio: 1; border-radius: var(--radius-sm); }
.card-article.compact .card-media-placeholder { font-size: 28px; }
.card-article.compact .card-title { font-size: 15.5px; margin-bottom: .35rem; }
.card-article.compact .s-kicker { font-size: 11px; margin-bottom: .25rem; }

.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.75rem; }
.grid-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---- Hero ---- */
.s-hero { padding: 2.5rem 0 1rem; }
.s-hero-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2rem; }
.s-hero-grid.solo { grid-template-columns: 1fr; }
.s-hero-grid.solo .s-hero-main { min-height: 520px; }
.s-hero-grid.solo .s-hero-main .content { max-width: 820px; }
.s-hero-main { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); min-height: 480px; background: var(--blue-900); color: var(--white); }
.s-hero-main > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.s-hero-main:hover > img { transform: scale(1.03); }
.s-hero-main::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.95) 100%); }
.s-hero-main .content { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 2.25rem; }
.s-hero-main .s-kicker { background: var(--red-600); color: var(--on-accent); padding: .3rem .7rem; border-radius: 6px; }
.s-hero-main h1 { color: var(--white); font-size: clamp(1.8rem, 3.2vw, 2.75rem); font-weight: 800; margin: .35rem 0 .75rem; }
.s-hero-main p { color: rgba(255,255,255,.85); margin: 0 0 1rem; max-width: 620px; font-size: 16.5px; }
.s-hero-main .s-meta, .s-hero-main .s-meta-author { color: rgba(255,255,255,.85); }
.s-hero-main .s-meta .dot { color: rgba(255,255,255,.5); }
.s-hero-main .s-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,.4); }
.s-hero-side { display: flex; flex-direction: column; gap: 1.4rem; }
.s-hero-side .card-article.compact { padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.s-hero-side .card-article.compact:last-child { border-bottom: 0; padding-bottom: 0; }
.s-hero-side .card-article.compact .card-media { width: 120px; aspect-ratio: 4 / 3; }
.s-hero-side h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .25rem; }

/* ---- Layout with sidebar ---- */
.s-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
.s-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2rem; }
.s-widget h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--ink); position: relative; }
.s-widget h3::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 40px; height: 4px; background: var(--red-600); }
.s-numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.s-numbered li { counter-increment: n; display: flex; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.s-numbered li:last-child { border-bottom: 0; }
.s-numbered li::before { content: counter(n, decimal-leading-zero); font: 800 24px/1 var(--font-display); color: var(--blue-100); min-width: 34px; }
.s-numbered li:first-child::before { color: var(--gold-ink); }
.s-numbered a { color: var(--ink); font-weight: 700; line-height: 1.35; }
.s-numbered a:hover { color: var(--blue-700); }
.s-numbered small { display: block; color: var(--muted); font-size: 12.5px; margin-top: .3rem; }

.s-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.s-tags a { padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.s-tags a:hover { border-color: var(--blue-700); color: var(--blue-700); background: var(--blue-50); }

.s-cat-list { list-style: none; margin: 0; padding: 0; }
.s-cat-list a { display: flex; justify-content: space-between; padding: .6rem 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); font-weight: 600; }
.s-cat-list a:hover { color: var(--blue-700); }
.s-cat-list span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.s-widget-cta { padding: 1.5rem; border-radius: var(--radius); background: linear-gradient(150deg, var(--blue-700), var(--blue-950)); color: var(--white); position: relative; overflow: hidden; }
.s-widget-cta::after { content: ""; position: absolute; right: -30px; bottom: -20px; width: 150px; height: 44px; transform: rotate(-28deg); background: linear-gradient(to bottom, var(--red-600) 0 33%, transparent 33% 66%, var(--red-700) 66%); opacity: .9; }
.s-widget-cta h3 { color: var(--white); border: 0; padding: 0; text-transform: none; letter-spacing: -0.01em; font-size: 20px; }
.s-widget-cta h3::after { display: none; }
.s-widget-cta p { color: rgba(255,255,255,.8); font-size: 14.5px; margin: 0 0 1rem; }
.s-widget-cta .btn { position: relative; z-index: 1; }

/* ---- Page header (category / author / search) ---- */
.s-page-head { padding: 3rem 0 2.25rem; background: var(--bg); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.s-page-head::after { content: ""; position: absolute; right: -80px; top: 30px; width: 380px; height: 90px; transform: rotate(-24deg); background: linear-gradient(to bottom, var(--red-600) 0 33%, transparent 33% 66%, var(--red-700) 66%); opacity: .12; }
.s-page-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: .5rem; }
.s-page-head p { color: var(--ink-2); max-width: 680px; margin: 0; font-size: 17px; }
.s-page-head .s-count { display: inline-block; margin-top: 1rem; font-size: 14px; color: var(--muted); font-weight: 600; }
.s-breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: .9rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.s-breadcrumb a { color: var(--muted); }
.s-breadcrumb a:hover { color: var(--blue-700); }

.s-author-head { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; position: relative; z-index: 1; }
.s-author-stats { display: flex; gap: 2rem; margin-top: 1.1rem; }
.s-author-stats div { font-size: 13px; color: var(--muted); }
.s-author-stats strong { display: block; font: 800 24px var(--font-display); color: var(--ink); }

/* ---- Article page ---- */
.s-article-head { padding: 3rem 0 2rem; }
.s-article-head .inner { max-width: 860px; }
.s-article-head h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.1; margin: .4rem 0 1rem; }
.s-article-head .lede { font-size: 20px; color: var(--ink-2); line-height: 1.5; margin: 0 0 1.5rem; }
.s-byline { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.s-byline .who strong { display: block; font-size: 15px; }
.s-byline .who a { color: var(--ink); }
.s-byline .who a:hover { color: var(--blue-700); }
.s-byline .s-meta { font-size: 13.5px; }
.s-share { margin-left: auto; display: flex; gap: .4rem; }
.s-share a, .s-share button {
    display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 .7rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font: 700 12.5px var(--font-body); cursor: pointer;
}
.s-share a:hover, .s-share button:hover { border-color: var(--blue-700); color: var(--blue-700); }
.s-share svg { width: 16px; height: 16px; }

.s-article-figure { margin: 0 0 2.5rem; }
.s-article-figure img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--radius-lg); }

.s-prose { font-size: 18.5px; line-height: 1.78; color: #1A1A1A; max-width: 740px; }
.s-prose > * { margin-top: 0; margin-bottom: 0; }
.s-prose > * + * { margin-top: 1.35em; }
.s-prose > h2 { font-size: 1.65em; margin-top: 1.8em; }
.s-prose > h3 { font-size: 1.3em; margin-top: 1.6em; }
.s-prose > h4 { font-size: 1.1em; margin-top: 1.4em; }
.s-prose > h2 + *, .s-prose > h3 + *, .s-prose > h4 + * { margin-top: .6em; }
.s-prose a { color: var(--blue-700); text-decoration: underline; text-decoration-color: rgba(168,122,18,.45); text-underline-offset: 3px; }
.s-prose a:hover { color: var(--gold-ink); text-decoration-color: currentColor; }
.s-prose img { border-radius: var(--radius); margin: 1.6em auto; }
.s-prose blockquote { margin: 1.8em 0; padding: .5em 0 .5em 1.4em; border-left: 4px solid var(--red-600); font: 600 1.18em/1.5 var(--font-display); color: var(--blue-900); }
.s-prose ul, .s-prose ol { padding-left: 1.4em; }
.s-prose li + li { margin-top: .45em; }
.s-prose li::marker { color: var(--gold-ink); }
.s-prose pre { background: var(--blue-950); color: #EFEAE0; padding: 1.1em 1.3em; border-radius: var(--radius-sm); overflow-x: auto; font-size: .82em; line-height: 1.6; }
.s-prose code { font-size: .88em; background: var(--bg); padding: .1em .35em; border-radius: 4px; }
.s-prose pre code { background: none; padding: 0; }
.s-prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.s-prose iframe, .s-prose .ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.s-prose .ql-align-center { text-align: center; }
.s-prose .ql-align-right { text-align: right; }
.s-prose .ql-align-justify { text-align: justify; }
.s-prose:not(.plain) > p:first-child::first-letter { float: left; font: 800 3.6em/.85 var(--font-display); color: var(--gold-ink); margin: .06em .12em 0 0; }

.s-article-tags { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 2.5rem 0; padding-top: 1.5rem; border-top: 1px solid var(--line); max-width: 740px; }
.s-article-tags strong { font-size: 14px; margin-right: .25rem; }

.s-author-box { display: flex; gap: 1.25rem; padding: 1.5rem; border-radius: var(--radius); background: var(--bg); border-left: 4px solid var(--blue-700); max-width: 740px; }
.s-author-box .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.s-author-box h3 { font-size: 20px; margin: .15rem 0 .4rem; }
.s-author-box h3 a { color: var(--ink); }
.s-author-box p { margin: 0 0 .6rem; color: var(--ink-2); font-size: 15px; }
.s-author-box .more { font-weight: 700; font-size: 14px; }

.s-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.5rem 0 0; max-width: 740px; }
.s-prevnext a { display: block; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.s-prevnext a:hover { border-color: var(--blue-700); background: var(--blue-50); }
.s-prevnext small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .3rem; }
.s-prevnext strong { font-family: var(--font-display); line-height: 1.3; }
.s-prevnext .next { text-align: right; grid-column: 2; }

/* ---- Comments ---- */
.s-comments { max-width: 740px; margin-top: 3.5rem; }
.s-comments h2 { font-size: 26px; display: flex; align-items: center; gap: .6rem; }
.s-comments h2 .count { font-size: 14px; padding: .15rem .6rem; border-radius: 999px; background: var(--blue-700); color: var(--white); font-family: var(--font-body); }
.s-comment { display: flex; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.s-comment .body { flex: 1; min-width: 0; }
.s-comment .head { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.s-comment .head strong { font-size: 15.5px; }
.s-comment .head time { color: var(--muted); font-size: 13px; }
.s-comment .team { font-size: 11px; font-weight: 700; padding: .1rem .5rem; border-radius: 999px; background: var(--red-600); color: var(--on-accent); text-transform: uppercase; letter-spacing: .05em; }
.s-comment p { margin: .4rem 0 .5rem; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.s-comment .reply-link { border: 0; background: none; padding: 0; color: var(--blue-700); font: 700 13.5px var(--font-body); cursor: pointer; display: inline-flex; gap: .3rem; align-items: center; }
.s-comment .reply-link svg { width: 14px; height: 14px; }
.s-comment .children { margin-top: .5rem; padding-left: 1.25rem; border-left: 2px solid var(--line); }
.s-comment .children .s-comment { border-bottom: 0; padding: 1rem 0 0; }

.s-comment-form { margin-top: 2rem; padding: 1.75rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.s-comment-form h3 { font-size: 21px; margin-bottom: .3rem; }
.s-comment-form .help { color: var(--muted); font-size: 14px; margin: 0 0 1.25rem; }
.s-comment-form .replying { display: none; align-items: center; gap: .5rem; padding: .6rem .9rem; border-radius: var(--radius-sm); background: var(--blue-50); color: var(--blue-800); font-size: 14px; margin-bottom: 1rem; }
.s-comment-form .replying.active { display: flex; }
.s-comment-form .replying button { margin-left: auto; border: 0; background: none; color: var(--danger-700); font-weight: 700; cursor: pointer; }
.s-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.s-form-grid .full { grid-column: 1 / -1; }
.s-closed { padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--bg); color: var(--muted); margin-top: 1.5rem; }

/* ---- Search / filters ---- */
.s-search-big { display: flex; gap: .6rem; margin-top: 1.5rem; max-width: 640px; position: relative; z-index: 1; }
.s-search-big .form-control { font-size: 17px; padding: .85rem 1.1rem; }
.s-filter-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; position: relative; z-index: 1; }
.s-filter-row a { padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.s-filter-row a.active, .s-filter-row a:hover { border-color: var(--blue-700); background: var(--blue-700); color: var(--white); }
mark { background: #FFE9A8; color: inherit; padding: 0 .1em; border-radius: 3px; }

.s-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.s-empty svg { width: 44px; height: 44px; color: var(--blue-100); margin: 0 auto 1rem; }
.s-empty h2 { color: var(--ink); font-size: 24px; }

.s-pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.s-pagination a { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; color: var(--ink); }
.s-pagination a:hover { border-color: var(--blue-700); color: var(--blue-700); }
.s-pagination svg { width: 16px; height: 16px; }
.s-page-info { color: var(--muted); font-size: 14px; }

/* ---- About / Contact ---- */
.s-about-hero { padding: 4.5rem 0 3.5rem; background: linear-gradient(150deg, var(--blue-700), var(--blue-950)); color: var(--white); position: relative; overflow: hidden; }
.s-about-hero::after { content: ""; position: absolute; right: -120px; bottom: -40px; width: 560px; height: 150px; transform: rotate(-24deg); background: linear-gradient(to bottom, var(--red-600) 0 33%, transparent 33% 66%, var(--red-700) 66%); opacity: .95; }
.s-about-hero .inner { position: relative; z-index: 1; max-width: 720px; }
.s-about-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.s-about-hero h1 span { color: var(--gold-light); }
.s-about-hero p { font-size: 19px; color: rgba(255,255,255,.85); margin: 0; }

.s-stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: -2.25rem; position: relative; z-index: 2; }
.s-stats-band div { padding: 1.4rem 1.5rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--blue-700); }
.s-stats-band div:nth-child(even) { border-top-color: var(--red-600); }
.s-stats-band strong { display: block; font: 800 34px/1.1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.s-stats-band span { font-size: 14px; color: var(--muted); font-weight: 600; }

.s-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.s-value { padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); }
.s-value .ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--blue-50); color: var(--blue-700); margin-bottom: 1rem; }
.s-value:nth-child(2) .ico { background: var(--red-50); color: var(--gold-ink); }
.s-value .ico svg { width: 24px; height: 24px; }
.s-value h3 { font-size: 19px; }
.s-value p { color: var(--ink-2); margin: 0; font-size: 15px; }

.s-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.s-team a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 1.75rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink); transition: box-shadow .15s, transform .15s; }
.s-team a:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.s-team strong { font-family: var(--font-display); font-size: 17px; }
.s-team small { color: var(--muted); }

.s-contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 3rem; align-items: start; }
.s-contact-info { display: flex; flex-direction: column; gap: 1rem; }
.s-contact-item { display: flex; gap: 1rem; padding: 1.25rem; border-radius: var(--radius); background: var(--bg); }
.s-contact-item .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-700); color: var(--white); flex: none; }
.s-contact-item:nth-child(even) .ico { background: var(--red-600); color: var(--on-accent); }
.s-contact-item .ico svg { width: 20px; height: 20px; }
.s-contact-item strong { display: block; }
.s-contact-item span, .s-contact-item a { color: var(--ink-2); font-size: 15px; }
.s-card-form { padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.s-card-form h2 { font-size: 26px; margin-bottom: .3rem; }
.s-card-form .help { color: var(--muted); margin: 0 0 1.5rem; }

/* ---- 404 ---- */
.s-404 { text-align: center; padding: 5rem 24px; max-width: 640px; }
.s-404-code { display: block; font: 800 120px/1 var(--font-display); background: linear-gradient(90deg, var(--red-700), var(--red-600) 50%, var(--blue-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-404 h1 { font-size: 34px; }
.s-404 p { color: var(--muted); font-size: 17px; }
.s-404-search { display: flex; gap: .5rem; margin: 1.75rem auto 1.25rem; max-width: 460px; }

/* ---- Newsletter ---- */
.s-newsletter { margin-top: 4rem; padding: 3.5rem 0; background: var(--blue-900); color: var(--white); position: relative; overflow: hidden; }
.s-newsletter::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--red-700), var(--gold-light) 50%, var(--red-700)); }
.s-newsletter-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.s-newsletter h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.s-newsletter p { color: rgba(255,255,255,.75); margin: 0; }
.s-subscribe { display: flex; gap: .5rem; padding: .4rem; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.s-subscribe input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--white); font: 16px var(--font-body); padding: .7rem .9rem; }
.s-subscribe input::placeholder { color: rgba(255,255,255,.6); }

/* ---- Footer ---- */
.s-footer { background: var(--blue-950); color: rgba(255,255,255,.7); padding-top: 3.5rem; font-size: 15px; }
.s-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.s-footer-brand p { margin: 1rem 0 1.25rem; max-width: 340px; }
.s-footer h3 { color: var(--white); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.s-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.s-footer a { color: rgba(255,255,255,.7); }
.s-footer a:hover { color: var(--white); }
.s-socials { display: flex; gap: .5rem; flex-wrap: wrap; }
.s-socials a { padding: .35rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-size: 13px; font-weight: 600; }
.s-socials a:hover { background: var(--red-600); border-color: var(--red-600); color: var(--on-accent); }
.s-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.25rem 0; font-size: 13.5px; }
.s-footer-bottom .s-container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---- Archive ---- */
.s-archive-list { list-style: none; margin: 0; padding: 0; }
.s-archive-day { margin: 2rem 0 .25rem; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); font: 800 15px var(--font-display); letter-spacing: .02em; text-transform: uppercase; color: var(--ink); }
.s-archive-day:first-child { margin-top: 0; }
.s-archive-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.s-archive-item time { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: .15rem; font-variant-numeric: tabular-nums; }
.s-archive-item h3 { font-size: 19px; margin: 0 0 .35rem; line-height: 1.3; }
.s-archive-item h3 a { color: var(--ink); }
.s-archive-item h3 a:hover { color: var(--blue-700); }
.s-archive-item .s-kicker { margin-bottom: .25rem; }
.s-archive-item .s-meta a { color: var(--ink-2); font-weight: 600; }
.s-archive-year { border-bottom: 1px solid var(--line); }
.s-archive-year summary { display: flex; justify-content: space-between; padding: .7rem 0; font: 800 17px var(--font-display); cursor: pointer; list-style: none; }
.s-archive-year summary::-webkit-details-marker { display: none; }
.s-archive-year summary::after { content: "+"; color: var(--gold-ink); margin-left: .75rem; }
.s-archive-year[open] summary::after { content: "−"; }
.s-archive-year summary span { margin-left: auto; color: var(--muted); font: 600 14px var(--font-body); }
.s-archive-year .s-cat-list { padding: 0 0 .75rem .75rem; }
.s-cat-list a.current { color: var(--gold-ink); }

/* ---- Explore ---- */
.s-explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.s-explore-card { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--blue-700); transition: box-shadow .15s, transform .15s; }
.s-explore-card:nth-child(even) { border-top-color: var(--red-600); }
.s-explore-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.s-explore-card .head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--ink); }
.s-explore-card .head h3 { font-size: 22px; margin: 0; }
.s-explore-card .head span { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.s-explore-card > p { color: var(--ink-2); font-size: 14.5px; margin: .6rem 0 0; }
.s-explore-card .latest { margin-top: 1.1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--bg); }
.s-explore-card .latest small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .25rem; }
.s-explore-card .latest a { display: block; color: var(--ink); font-weight: 700; line-height: 1.35; }
.s-explore-card .latest a:hover { color: var(--blue-700); }
.s-explore-card .latest time { font-size: 12.5px; color: var(--muted); }
.s-explore-card .more { margin-top: auto; padding-top: 1.1rem; display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: 14px; }
.s-explore-card .more svg { width: 16px; height: 16px; }

.s-letter-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.75rem; }
.s-letter-nav a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); font-weight: 800; color: var(--ink-2); }
.s-letter-nav a:hover { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.s-az { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem 2rem; }
.s-az-group { scroll-margin-top: 100px; }
.s-az-group h3 { font-size: 28px; color: var(--gold-ink); margin-bottom: .6rem; }
.s-az-group .s-tags small { color: var(--muted); font-weight: 500; font-size: 12px; }

/* ---- Ads ---- */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; }
.ad-label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #A39D90; }
.ad-body { width: 100%; display: flex; justify-content: center; }
.ad-body img { max-width: 100%; height: auto; border-radius: 6px; }
.ad-body a { display: inline-block; line-height: 0; }
.ad-body a:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; border-radius: 6px; }
.ad-body ins, .ad-body iframe { max-width: 100%; }
.ad-body ins.adsbygoogle { width: 100%; min-height: 90px; }
.s-sidebar .ad-body ins.adsbygoogle { min-height: 250px; }
/* Hide the whole slot (label included) when Google has no ad to fill it */
.ad-slot:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }

.ad-wrap-header { padding-top: 1.25rem; }
.ad-wrap-header .ad-slot { padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.ad-wrap-footer { margin-top: 3rem; }
.ad-wrap-footer .ad-slot { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.ad-wrap-article { max-width: 740px; margin: 2.5rem 0; }
.s-prose .ad-slot { margin: 2em 0; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.s-prose .ad-slot img { margin: 0; border-radius: 6px; }
.s-sidebar .ad-slot { padding: 1rem; border-radius: var(--radius); background: var(--bg); }
.grid-cards > .ad-slot { grid-column: 1 / -1; padding: 1.25rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Device targeting */
@media (max-width: 767px)  { .ad-device-desktop { display: none !important; } }
@media (min-width: 768px)  { .ad-device-mobile  { display: none !important; } }

/* ---- Audio by Carbonatix player ---- */
.s-listen-player { margin: 0 0 2rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--blue-100); }
.s-listen-head { display: flex; align-items: center; gap: .8rem; }
.s-listen-head .ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-700); color: var(--gold-light); }
.s-listen-head .ico svg { width: 19px; height: 19px; }
.s-listen-head strong { display: block; font: 700 16px var(--font-display); color: var(--ink); }
.s-listen-head span { font-size: 13px; color: var(--muted); }
.s-listen-embed { margin-top: .85rem; min-height: 40px; }
.s-listen-embed:empty { display: none; }
.s-listen-embed iframe { max-width: 100%; }

/* ---- Built-in reader (assets/js/listen.js) ---- */
.s-tts { padding: .9rem 1rem; background: var(--blue-950); border-color: var(--blue-950); color: var(--white); transition: box-shadow .2s; }
.s-tts.is-active { position: sticky; top: 86px; z-index: 30; box-shadow: 0 16px 40px -18px rgba(0,0,0,.6); }
.s-tts-row { display: flex; align-items: center; gap: .9rem; }
.s-tts-play { position: relative; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer; background: var(--red-600); color: var(--on-accent); transition: background .15s, transform .1s; }
.s-tts-play:hover { background: var(--gold-light); }
.s-tts-play:active { transform: scale(.95); }
.s-tts-play .ico::before { /* play triangle */
    content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
    border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor;
}
.s-tts-play[data-state="playing"] .ico::before, .s-tts-play[data-state="playing"] .ico::after { /* pause bars */
    content: ""; position: absolute; top: 50%; width: 5px; height: 17px; border: 0; border-radius: 2px; background: currentColor; transform: translate(0, -50%);
}
.s-tts-play[data-state="playing"] .ico::before { left: calc(50% - 7px); }
.s-tts-play[data-state="playing"] .ico::after { left: calc(50% + 2px); }
.s-tts-main { flex: 1; min-width: 0; }
.s-tts-top { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .45rem; }
.s-tts-top strong { font: 700 15.5px var(--font-display); color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-tts-time { flex: none; font-size: 12.5px; color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; }
.s-tts-track { position: relative; height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); cursor: pointer; }
.s-tts-track::before { content: ""; position: absolute; inset: -8px 0; } /* bigger hit area */
.s-tts-track:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.s-tts-fill { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--red-700), var(--gold-light)); transition: width .4s ease; }
.s-tts-tools { display: flex; align-items: center; gap: .3rem; flex: none; }
.s-tts-btn { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 .5rem; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: transparent; color: rgba(255,255,255,.85); font: 700 13px var(--font-body); cursor: pointer; }
.s-tts-btn:hover { border-color: var(--gold-light); color: var(--gold-light); }
.s-tts-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-tts-rate { min-width: 48px; font-variant-numeric: tabular-nums; }

/* Paragraph being read aloud */
.s-tts-reading { background: var(--red-50); border-radius: 6px; box-shadow: 0 0 0 .4em var(--red-50); transition: background .3s, box-shadow .3s; }
h1.s-tts-reading, .lede.s-tts-reading { background: transparent; box-shadow: none; text-decoration: underline; text-decoration-color: var(--red-600); text-decoration-thickness: 3px; text-underline-offset: 6px; }

@media (max-width: 600px) {
    .s-tts.is-active { top: 72px; }
    .s-tts-row { flex-wrap: wrap; }
    .s-tts-main { flex-basis: calc(100% - 64px); }
    .s-tts-tools { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
    .s-tts-fill, .s-tts-reading { transition: none; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
    .s-layout { grid-template-columns: 1fr; }
    .s-sidebar { position: static; }
    .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .s-hero-grid { grid-template-columns: 1fr; }
    .s-footer-grid { grid-template-columns: 1fr 1fr; }
    .s-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .s-menu-btn { display: grid; }
    .s-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; gap: 0; padding: .5rem 16px 1rem; background: var(--blue-950);
        border-bottom: 1px solid rgba(212,161,42,.35); box-shadow: var(--shadow);
    }
    .s-nav.open { display: flex; }
    .s-nav a { padding: .8rem .5rem; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
    .s-nav a.active::after { display: none; }
    .s-nav a.active { color: var(--gold-light); }
    .s-header-inner { gap: 1rem; min-height: 64px; }
    .s-newsletter-inner { grid-template-columns: 1fr; }
    .card-article.wide { grid-template-columns: 1fr; }
    .s-stats-band { grid-template-columns: repeat(2, 1fr); }
    .s-values { grid-template-columns: 1fr; }
    .s-share { margin-left: 0; width: 100%; }
}

@media (max-width: 600px) {
    .s-container { padding: 0 16px; }
    .s-topbar .s-date { display: none; }
    .s-topbar .s-container { justify-content: flex-end; }
    .s-topbar-right a:not(.s-topbar-login) { display: none; }
    .s-topbar-login { border: 0; padding: 0; }
    .s-logo-text { font-size: 20px; }
    .s-logo img { height: 44px; }
    .s-subscribe-btn { display: none; }
    .grid-cards, .grid-cards.two { grid-template-columns: 1fr; gap: 2rem; }
    .s-hero { padding-top: 1.25rem; }
    .s-hero-main { min-height: 400px; border-radius: var(--radius); }
    .s-hero-main .content { padding: 1.4rem; }
    .s-hero-side .card-article.compact .card-media { width: 96px; }
    .s-article-head { padding-top: 2rem; }
    .s-article-head .lede { font-size: 18px; }
    .s-prose { font-size: 17.5px; }
    .s-prevnext { grid-template-columns: 1fr; }
    .s-prevnext .next { grid-column: 1; }
    .s-form-grid { grid-template-columns: 1fr; }
    .s-comment-form, .s-card-form { padding: 1.25rem; }
    .s-footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .s-subscribe { flex-direction: column; }
    .s-404-code { font-size: 90px; }
    .s-author-stats { gap: 1.25rem; }
    .s-search-big { flex-direction: column; }
}
