/* =========================================================
   Seluravexon — main stylesheet
   Light theme is the default. Dark theme is applied with
   <html data-theme="dark"> (saved in localStorage).
   ========================================================= */

:root {
  --bg: #f7f4ee;
  --bg-grad-1: #e7f1ea;
  --bg-grad-2: #fbeee4;
  --surface: #ffffff;
  --surface-2: #f0ebe1;
  --surface-3: #e9f2ec;
  --text: #1b2621;
  --text-2: #33403a;
  --muted: #5d6963;
  --border: #e2dccf;
  --border-strong: #cfc7b7;
  --brand-1: #1f6b52;
  --brand-2: #3a9e7b;
  --brand-ink: #ffffff;
  --accent: #d9693f;
  --link: #1b6a50;
  --link-hover: #0f4a37;
  --focus: #e07a52;
  --success-bg: #e5f4ec;
  --success-text: #165b42;
  --error-bg: #fbe9e5;
  --error-text: #9a2e1b;
  --shadow-sm: 0 1px 2px rgba(27, 38, 33, .06), 0 1px 1px rgba(27, 38, 33, .04);
  --shadow: 0 10px 30px -12px rgba(27, 38, 33, .18), 0 2px 6px rgba(27, 38, 33, .05);
  --shadow-lg: 0 30px 60px -24px rgba(27, 38, 33, .28);
  --blob-1: #bfe3cf;
  --blob-2: #f6cdb5;
  --blob-3: #cfd8f2;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --container: 1200px;
  --narrow: 760px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0e1613;
  --bg-grad-1: #102119;
  --bg-grad-2: #1a1712;
  --surface: #15201b;
  --surface-2: #1b2722;
  --surface-3: #183026;
  --text: #e8eee9;
  --text-2: #cdd7d1;
  --muted: #9fada6;
  --border: #26342e;
  --border-strong: #35463f;
  --brand-1: #52c79d;
  --brand-2: #2b8c69;
  --brand-ink: #07140f;
  --accent: #f0956f;
  --link: #74d6b1;
  --link-hover: #a5ead0;
  --focus: #f0956f;
  --success-bg: #12301f;
  --success-text: #9be3c1;
  --error-bg: #3a1a14;
  --error-text: #ffb4a3;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 12px 30px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .8);
  --blob-1: #1d4a38;
  --blob-2: #4a2a1d;
  --blob-3: #22294a;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 100% -10%, var(--bg-grad-2), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, var(--bg-grad-1), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; color: var(--text); letter-spacing: -0.01em; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
main { display: block; outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--brand-1); color: var(--brand-ink); padding: .6rem 1rem; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 1rem; color: var(--brand-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container--narrow { max-width: calc(var(--narrow) + 2.5rem); }
@media (min-width: 768px) { .container { padding: 0 2rem; } .container--narrow { max-width: calc(var(--narrow) + 4rem); } }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-weight: 600; font-size: .98rem; padding: .78rem 1.35rem; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; line-height: 1.2; }
.btn--primary { background: var(--brand-1); color: var(--brand-ink); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--brand-1) 70%, transparent); }
.btn--primary:hover { background: color-mix(in srgb, var(--brand-1) 86%, #000); color: var(--brand-ink); transform: translateY(-1px); }
[data-theme="dark"] .btn--primary:hover { background: color-mix(in srgb, var(--brand-1) 85%, #fff); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--brand-1); color: var(--brand-1); }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow span { display: inline-block; transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand__mark { width: 36px; height: 36px; border-radius: 12px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.42rem; letter-spacing: -0.02em; }
.main-nav { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.main-nav__list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav__list > li > a, .main-nav__toggle { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem .85rem; border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .98rem; background: none; border: 0; font-family: inherit; cursor: pointer; }
.main-nav__list > li > a:hover, .main-nav__toggle:hover, .main-nav__list > li > a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.has-menu { position: relative; }
.main-nav__toggle svg { transition: transform .2s ease; }
.main-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(620px, 92vw); display: none; grid-template-columns: 1fr 1fr; gap: .25rem; list-style: none; margin: 0; padding: .7rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.mega.is-open { display: grid; }
.mega a { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 12px; color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; }
.mega a:hover { background: var(--surface-2); }
.mega__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); flex-shrink: 0; }
.mega__icon .icon { width: 20px; height: 20px; }
.nav-search { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .15rem .2rem .15rem .9rem; }
.nav-search input { border: 0; background: transparent; color: var(--text); font: inherit; font-size: .92rem; width: 150px; padding: .4rem 0; outline: none; }
.nav-search input::placeholder { color: var(--muted); }
.nav-search button { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.nav-search button:hover { color: var(--brand-1); }
.nav-search:focus-within { border-color: var(--brand-1); }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.theme-toggle, .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.theme-toggle:hover { border-color: var(--brand-1); color: var(--brand-1); transform: rotate(-12deg); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; gap: 4px; align-content: center; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-search input { width: 110px; }
}
@media (max-width: 960px) {
  .menu-toggle { display: grid; }
  .header-actions { margin-left: auto; }
  .main-nav { position: fixed; inset: 72px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem 1.25rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); max-height: calc(100vh - 72px); overflow-y: auto; margin: 0; }
  .main-nav.is-open { display: flex; }
  .main-nav__list { flex-direction: column; align-items: stretch; }
  .main-nav__list > li > a, .main-nav__toggle { width: 100%; justify-content: space-between; padding: .85rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .mega { position: static; transform: none; width: 100%; grid-template-columns: 1fr; box-shadow: none; margin-top: .25rem; background: var(--surface); }
  .nav-search { order: -1; }
  .nav-search input { width: 100%; flex: 1; font-size: 1rem; }
}

/* ---------- Tags & chips ---------- */
.tag { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tag, var(--brand-1)); background: color-mix(in srgb, var(--tag, var(--brand-1)) 12%, transparent); padding: .3rem .65rem; border-radius: 999px; text-decoration: none; }
[data-theme="dark"] .tag { color: color-mix(in srgb, var(--tag, var(--brand-1)) 55%, #fff); background: color-mix(in srgb, var(--tag, var(--brand-1)) 22%, transparent); }
.tag:hover { filter: brightness(.92); }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; }
.chip-list--top { margin-bottom: 2rem; }
.chip { display: inline-block; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .93rem; transition: border-color .2s, color .2s, background .2s; }
.chip:hover { border-color: var(--c, var(--brand-1)); color: var(--c, var(--brand-1)); }
[data-theme="dark"] .chip:hover { color: color-mix(in srgb, var(--c, var(--brand-1)) 55%, #fff); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .75; }
.blob--1 { width: 460px; height: 460px; background: var(--blob-1); top: -120px; right: 8%; }
.blob--2 { width: 360px; height: 360px; background: var(--blob-2); bottom: -140px; right: 32%; opacity: .6; }
.blob--3 { width: 300px; height: 300px; background: var(--blob-3); top: 30%; left: -120px; opacity: .55; }
.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.1rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 1.2rem; font-weight: 600; }
.hero__title em { font-style: italic; color: var(--brand-1); font-weight: 500; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 36em; margin-bottom: 1.8rem; }
.hero-search { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .4rem .4rem .4rem 1.1rem; box-shadow: var(--shadow); max-width: 560px; }
.hero-search svg { color: var(--muted); flex-shrink: 0; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); padding: .6rem .2rem; outline: none; }
.hero-search input::placeholder { color: var(--muted); }
.hero-search:focus-within { border-color: var(--brand-1); }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1.2rem 0 0; }
.hero__chips a { display: inline-block; font-size: .88rem; padding: .35rem .85rem; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--border); color: var(--text-2); text-decoration: none; }
.hero__chips a:hover { border-color: var(--brand-1); color: var(--brand-1); }
.hero__feature { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: var(--shadow-lg); transform: rotate(1.2deg); transition: transform .3s ease, box-shadow .3s ease; }
.hero__feature:hover { transform: rotate(0) translateY(-4px); color: var(--text); }
.hero__feature-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero__feature-body { display: grid; gap: .7rem; padding: 1.4rem 1.5rem 1.6rem; }
.hero__feature-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.2; }
.hero__feature-meta { color: var(--muted); font-size: .92rem; font-weight: 500; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__feature { transform: none; max-width: 560px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(2.8rem, 6vw, 4.5rem) 0; }
.section--tint { background: color-mix(in srgb, var(--surface-2) 60%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.section__title { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 0; }
.section__title--sm { font-size: 1.4rem; margin: 2.5rem 0 1rem; }
.section--tint .section__title--sm, .section .container > .section__title--sm:first-child { margin-top: 0; }

/* Topic grid */
.topic-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.topic { position: relative; display: grid; gap: .35rem; height: 100%; padding: 1.4rem 1.3rem 1.3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; overflow: hidden; }
.topic::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--c) 10%, transparent); transition: transform .3s ease; }
.topic:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 50%, var(--border)); box-shadow: var(--shadow); color: var(--text); }
.topic:hover::after { transform: scale(1.3); }
.topic__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); margin-bottom: .6rem; }
[data-theme="dark"] .topic__icon { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 25%, transparent); }
.topic__icon .icon { width: 26px; height: 26px; }
.topic__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1.25; }
.topic__count { font-size: .88rem; color: var(--muted); }
@media (max-width: 980px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .topic-grid { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--featured { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
.grid--featured .card--lead { grid-row: span 2; }
@media (max-width: 980px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--featured { grid-template-columns: 1fr 1fr; } .grid--featured .card--lead { grid-column: span 2; grid-row: auto; } }
@media (max-width: 640px) { .grid--3, .grid--featured { grid-template-columns: 1fr; } .grid--featured .card--lead { grid-column: auto; } }

.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.card__media { display: block; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: .55rem; padding: 1.2rem 1.3rem 1.35rem; flex: 1; align-items: flex-start; }
.card__title { font-size: 1.22rem; line-height: 1.28; margin: .15rem 0 0; }
.card__title a { color: var(--text); text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s ease; }
.card__title a:hover { background-size: 100% 1px; color: var(--text); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card .tag { position: relative; z-index: 2; }
.card__excerpt { color: var(--muted); font-size: .97rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin: auto 0 0; padding-top: .4rem; font-size: .85rem; color: var(--muted); }
.card--lead .card__title { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.card--lead .card__media img { aspect-ratio: 16 / 10; }
.card--lead .card__body { padding: 1.5rem 1.7rem 1.7rem; }

/* Latest + popular aside */
.with-aside { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.with-aside .grid--3 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .with-aside { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .with-aside .grid--3 { grid-template-columns: 1fr; } }
.popular { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 96px; }
.popular__title { font-size: 1.3rem; margin-bottom: 1rem; }
.popular__list { list-style: none; counter-reset: pop; padding: 0; margin: 0; display: grid; gap: 1rem; }
.popular__list li { counter-increment: pop; display: grid; grid-template-columns: 2.2rem 1fr; gap: .2rem .6rem; }
.popular__list li::before { content: counter(pop, decimal-leading-zero); grid-row: span 2; font-family: var(--font-display); font-size: 1.4rem; color: var(--accent); font-weight: 600; line-height: 1.1; }
.popular__list a { color: var(--text); text-decoration: none; font-weight: 600; line-height: 1.35; }
.popular__list a:hover { color: var(--link); }
.popular__list span { font-size: .82rem; color: var(--muted); }

/* Approach */
.approach { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.approach__intro p { color: var(--text-2); font-size: 1.08rem; margin: 1rem 0 1.5rem; }
.approach__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.approach__list li { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1.2rem; padding: 1.4rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.approach__num { grid-row: span 2; font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--brand-1); line-height: 1; }
.approach__list h3 { font-size: 1.15rem; margin: 0; }
.approach__list p { margin: 0; color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .approach { grid-template-columns: 1fr; } }

/* Newsletter */
.newsletter { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 3.2rem); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-1), color-mix(in srgb, var(--brand-2) 80%, #0b3d2e)); color: #fff; box-shadow: var(--shadow-lg); }
[data-theme="dark"] .newsletter { background: linear-gradient(135deg, #17463a, #0f2c24); border: 1px solid var(--border); }
.newsletter::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, .08); right: -120px; top: -160px; }
.newsletter h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.newsletter p { color: rgba(255, 255, 255, .88); margin: 0; }
.newsletter__form { position: relative; display: flex; flex-wrap: wrap; gap: .6rem; }
.newsletter__form input[type="email"] { flex: 1 1 220px; min-width: 0; font: inherit; padding: .85rem 1.2rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .14); color: #fff; outline: none; }
.newsletter__form input::placeholder { color: rgba(255, 255, 255, .7); }
.newsletter__form input:focus { border-color: #fff; background: rgba(255, 255, 255, .2); }
.newsletter .btn--primary { background: #fff; color: #11402f; box-shadow: none; }
.newsletter .btn--primary:hover { background: #f1efe7; color: #11402f; }
.newsletter__fine { width: 100%; font-size: .82rem; }
.newsletter__fine a { color: #fff; }
.newsletter .notice { position: relative; }
@media (max-width: 820px) { .newsletter { grid-template-columns: 1fr; } }

/* Notices */
.notice { padding: .9rem 1.1rem; border-radius: 12px; font-weight: 500; margin: 0 0 1rem; }
.notice ul { margin: 0; padding-left: 1.1em; }
.notice--success { background: var(--success-bg); color: var(--success-text); }
.notice--error { background: var(--error-bg); color: var(--error-text); width: 100%; }

/* ---------- Page hero (category, static pages) ---------- */
.page-hero { padding: clamp(2.4rem, 5vw, 3.8rem) 0 clamp(2rem, 4vw, 2.8rem); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, color-mix(in srgb, var(--c, var(--brand-1)) 9%, transparent), transparent); }
.page-hero--center { text-align: center; border: 0; }
.page-hero--center .inline-search { margin-inline: auto; }
.page-hero__row { display: flex; gap: 1.4rem; align-items: flex-start; }
.page-hero__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; flex-shrink: 0; color: var(--c); background: color-mix(in srgb, var(--c) 15%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
[data-theme="dark"] .page-hero__icon { color: color-mix(in srgb, var(--c) 55%, #fff); }
.page-hero__icon .icon { width: 36px; height: 36px; }
.page-hero__title { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: .6rem; letter-spacing: -0.025em; }
.page-hero__lead { font-size: 1.12rem; color: var(--text-2); max-width: 46em; margin-bottom: .6rem; }
.page-hero__count { color: var(--muted); font-size: .95rem; font-weight: 500; margin: .4rem 0 0; }
@media (max-width: 600px) { .page-hero__row { flex-direction: column; gap: 1rem; } .page-hero__icon { width: 56px; height: 56px; } }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1.2rem; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--link); text-decoration: underline; }
.breadcrumb li[aria-current] { color: var(--text-2); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.inline-search { display: flex; gap: .5rem; max-width: 560px; margin-top: 1.2rem; }
.inline-search input { flex: 1; min-width: 0; font: inherit; padding: .75rem 1.1rem; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); }
.inline-search input:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 20%, transparent); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.pagination__info { color: var(--muted); font-size: .95rem; }
.empty { padding: 2rem; border: 1px dashed var(--border-strong); border-radius: var(--radius); text-align: center; color: var(--muted); }

/* ---------- Article ---------- */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.reading-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand-1), var(--accent)); }
.preview-bar { margin: 0; text-align: center; background: #fff3cd; color: #6b4e00; padding: .6rem; font-weight: 600; }
.article__header { padding: clamp(2rem, 5vw, 3.4rem) 0 1.6rem; }
.article__title { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; letter-spacing: -0.028em; margin: 1rem 0 .9rem; }
.article__dek { font-size: clamp(1.08rem, 1.7vw, 1.25rem); color: var(--text-2); line-height: 1.55; margin-bottom: 1.3rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; color: var(--muted); padding-top: 1.1rem; border-top: 1px solid var(--border); }
.article__meta a { color: var(--text-2); font-weight: 600; text-decoration: none; }
.article__meta a:hover { text-decoration: underline; }
.article__hero { margin: 0 0 2.5rem; }
.article__hero img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); box-shadow: var(--shadow); }
.article__hero figcaption { font-size: .88rem; color: var(--muted); margin-top: .7rem; text-align: center; }
.article__layout { display: grid; grid-template-columns: 240px minmax(0, var(--narrow)); gap: 3rem; justify-content: center; padding-bottom: 3.5rem; }
.article__layout:not(:has(.toc)) { grid-template-columns: minmax(0, var(--narrow)); }
.toc { position: relative; }
.toc__box { position: sticky; top: 96px; font-size: .9rem; }
.toc__box summary { font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; margin-bottom: .8rem; list-style: none; }
.toc__box summary::-webkit-details-marker { display: none; }
.toc__box ol { list-style: none; padding: 0 0 0 .9rem; margin: 0; border-left: 2px solid var(--border); display: grid; gap: .55rem; }
.toc__box a { color: var(--muted); text-decoration: none; line-height: 1.35; display: block; }
.toc__box a:hover, .toc__box a.is-active { color: var(--link); }
.toc__box a.is-active { font-weight: 600; }
@media (max-width: 1080px) {
  .article__layout { grid-template-columns: minmax(0, var(--narrow)); }
  .toc__box { position: static; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; }
  .toc__box summary { margin: 0; }
  .toc__box[open] summary { margin-bottom: .8rem; }
  .toc__box summary::after { content: " +"; }
  .toc__box[open] summary::after { content: " –"; }
}

/* Prose (article body + static pages) */
.prose { font-size: 1.1rem; line-height: 1.75; color: var(--text-2); min-width: 0; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: 2.4rem 0 .9rem; scroll-margin-top: 96px; color: var(--text); }
.prose h3 { font-size: 1.3rem; margin: 1.9rem 0 .7rem; color: var(--text); scroll-margin-top: 96px; }
.prose h4 { font-size: 1.1rem; margin: 1.5rem 0 .5rem; }
.prose > h2:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--brand-1); }
.prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 40%, transparent); }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 1.8rem 0; padding: 1rem 1.4rem; border-left: 4px solid var(--brand-1); background: var(--surface-3); border-radius: 0 12px 12px 0; font-style: italic; }
.prose blockquote p:last-child { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.prose figure { margin: 2rem 0; }
.prose figure img, .prose > img, .prose p img { border-radius: var(--radius); width: 100%; height: auto; }
.prose figcaption { font-size: .9rem; color: var(--muted); text-align: center; margin-top: .6rem; }
.prose .table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose .table-wrap th, .prose .table-wrap td { border: 0; border-bottom: 1px solid var(--border); }
.prose .table-wrap tr:last-child td { border-bottom: 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: .65rem .85rem; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 650; }
.prose .key-takeaways, .prose .callout { background: var(--surface-3); border: 1px solid color-mix(in srgb, var(--brand-1) 25%, var(--border)); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 0 0 2rem; }
.prose .key-takeaways h2, .prose .callout h2 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 .7rem; color: var(--brand-1); }
.prose .key-takeaways ul { margin: 0; }
.prose .callout--warn { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.prose .faq h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin-top: 1.4rem; }
.prose .sources { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--border); font-size: .95rem; }
.prose .sources h2 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; margin-top: 0; }
.prose .sources li { margin-bottom: .35rem; overflow-wrap: anywhere; }

.disclaimer-box { margin: 2.5rem 0 1.5rem; padding: 1.1rem 1.3rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); font-size: .95rem; line-height: 1.6; color: var(--text-2); }
.disclaimer-box strong { color: var(--text); }
.disclaimer-box--alert { background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); margin-top: 0; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .92rem; color: var(--muted); margin-top: 1.5rem; }
.share__btn { font: inherit; font-size: .88rem; font-weight: 600; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); text-decoration: none; cursor: pointer; }
.prose .share__btn { text-decoration: none; color: var(--text-2); }
.share__btn:hover, .prose .share__btn:hover { border-color: var(--brand-1); color: var(--brand-1); }

/* ---------- Forms ---------- */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.card-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow-sm); }
.contact-aside h2 { font-size: 1.35rem; }
.contact-aside p { color: var(--text-2); }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: .4rem; }
.form label { font-weight: 600; font-size: .95rem; color: var(--text); }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .95rem; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-1) 20%, transparent); }
.form__hint { font-size: .85rem; color: var(--muted); margin: 0; }
.form .btn { justify-self: start; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 3.5rem 0 1.5rem; background: var(--surface); border-top: 1px solid var(--border); font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1.3fr 1fr 1fr; gap: 2.5rem; }
.site-footer__about p { color: var(--muted); margin-top: 1rem; }
.site-footer__note { font-size: .86rem; }
.site-footer__title { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer nav a { color: var(--text-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--link); text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .88rem; }
.site-footer__bottom p { margin: 0; }
.brand--footer .brand__mark { width: 32px; height: 32px; border-radius: 10px; }
.brand--footer .brand__name { font-size: 1.25rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__about { grid-column: span 2; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } .site-footer__about { grid-column: auto; } }

/* Ads (Google Auto ads) — keep them visually separated */
ins.adsbygoogle { margin: 2rem auto; }

@media print {
  .site-header, .site-footer, .share, .toc, #newsletter, .reading-progress, .section--tint { display: none !important; }
  body { background: #fff; color: #000; }
}
[hidden]{display:none !important}
.card--lead .card__media { flex: 1; min-height: 260px; }
.card--lead .card__media img { height: 100%; aspect-ratio: auto; }
@media (max-width: 980px) { .card--lead .card__media { flex: none; } .card--lead .card__media img { aspect-ratio: 16 / 9; height: auto; } }
