/* Hallmark · v2.0.0 · theme: custom editorial (in-house) · genre: editorial · shape: magazine index with topic hubs · signature: category-coloured cover art that carries each guide */
/* Critique: the cover system does the visual work without stock photography; labels stay in the body face, one accent colour, no decorative chrome. */
/* Hallmark · waive 49b · long guide titles wrap to two or three lines in 320–414px cards · they are editorial post titles, and shortening or nowrap would truncate meaning or overflow. */
/* Hallmark · dismissed 77 · checkout is a two-step flow of hero, form and footer; extra sections would add noise before payment. */
/* Hallmark · waive 79 · the 490px category cover is the article's visual, carrying the topic label and reading time · it is a deliberate full-width visual, not empty space, and the fold lands inside it. */
/*
Theme Name: DesiAbroad
Theme URI: https://desiabroad.example
Author: DesiAbroad Studio
Author URI: https://desiabroad.example
Description: A warm, editorial WordPress theme for a blog helping new immigrants and international students from India settle in abroad. Custom front page, topic hubs, reading progress, table of contents, dark mode and newsletter capture built in.
Version: 1.4.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: desiabroad
Tags: blog, editorial, news, custom-menu, featured-images, threaded-comments, translation-ready, custom-logo, right-sidebar
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --post-copy-size: .92rem;

  --ink: #141b2d;
  --ink-2: #414a63;
  --muted: #5d6579;

  --bg: #fffcf7;
  --surface: #ffffff;
  --surface-2: #fbf4e9;
  --surface-3: #f6ecdd;

  --line: #ece2d3;
  --line-strong: #d9cbb6;

  --brand: #e2681f;
  --brand-600: #c45312;
  --brand-700: #b84c0e;
  --brand-800: #9c3f0b;
  --brand-soft: #fceedf;

  --teal: #0b5a4e;
  --teal-2: #0f766e;
  --teal-soft: #e7f3ef;

  --gold: #f2b138;
  --rose: #be123c;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20, 27, 45, .05), 0 2px 8px rgba(20, 27, 45, .04);
  --shadow-md: 0 6px 18px rgba(20, 27, 45, .07), 0 2px 6px rgba(20, 27, 45, .04);
  --shadow-lg: 0 22px 50px -18px rgba(20, 27, 45, .25);

  --container: 1200px;
  --measure: 58ch;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(48px, 7vw, 92px);

  --header-h: 76px;

  /* On-dark ink and panel surfaces: warm tints, never pure white or black. */
  --on-dark: #fdf8f0;
  --on-dark-soft: #f7efe2;
  --on-dark-dim: #e9dfcf;

  /* Fixed deep surfaces for cover art and dark panels (theme-independent). */
  --teal-deep: #0b5a4e;
  --teal-mid: #0f766e;
  --teal-panel: #106b5c;
  --forest: #10261f;
  --night: #060b14;
  --night-deep: #070c15;
  --ink-solid: #141b2d;
  --gold-bright: #f2a03d;
  --mint: #a7f3d0;
  --wa-green: #0e7568;

  /* Notice surfaces. */
  --notice-bg: #fff7e6;
  --notice-line: #f3d9a4;
  --notice-ink: #7a4b07;
  --notice-dark-bg: #2b2110;
  --notice-dark-line: #4a3a18;
  --notice-dark-ink: #f0cf8f;

  /* Overlays: one alpha scale for light-on-dark and shade layers. */
  --white-05: rgba(253, 248, 240, .05);
  --white-08: rgba(253, 248, 240, .08);
  --white-10: rgba(253, 248, 240, .1);
  --white-12: rgba(253, 248, 240, .12);
  --white-18: rgba(253, 248, 240, .18);
  --white-20: rgba(253, 248, 240, .2);
  --white-22: rgba(253, 248, 240, .22);
  --white-25: rgba(253, 248, 240, .25);
  --white-30: rgba(253, 248, 240, .3);
  --white-40: rgba(253, 248, 240, .4);
  --white-45: rgba(253, 248, 240, .45);
  --white-50: rgba(253, 248, 240, .5);
  --white-55: rgba(253, 248, 240, .55);
  --white-60: rgba(253, 248, 240, .6);
  --white-62: rgba(253, 248, 240, .62);
  --white-65: rgba(253, 248, 240, .65);
  --white-72: rgba(253, 248, 240, .72);
  --white-78: rgba(253, 248, 240, .78);
  --white-80: rgba(253, 248, 240, .8);
  --white-82: rgba(253, 248, 240, .82);
  --white-90: rgba(251, 246, 237, .9);
  --white-94: rgba(253, 248, 240, .94);

  --scrim-05: rgba(12, 19, 33, .05);
  --scrim-18: rgba(12, 19, 33, .18);
  --scrim-62: rgba(12, 19, 33, .62);
  --shade-30: rgba(9, 13, 22, .3);
  --shade-55: rgba(9, 13, 22, .55);
  --brand-glow: rgba(226, 104, 31, .9);
  --gold-glow: rgba(242, 177, 56, .32);
  --mask: #111111;
}

body,body *{font-family:var(--font-display)!important}strong,b,main article strong,main article b{color:#ffb36b!important}.article-body p,.article-body li,.entry-content p,.entry-content li,main article p,main article li{font-size:var(--post-copy-size)!important;line-height:1.65}.article-head h1,.article-body h2,.article-body h3,.article-body h4,.card__title{font-family:var(--font-display)!important}.article-body strong,.article-body b,.entry-content strong,.entry-content b,.callout strong,main article strong,main article b{color:#ffb36b!important}

[data-theme="dark"] {
  --ink: #f5f1e8;
  --ink-2: #c3cadb;
  --muted: #98a2b8;

  --bg: #0d1320;
  --surface: #131b2b;
  --surface-2: #182134;
  --surface-3: #1e2940;

  --line: #263149;
  --line-strong: #384663;

  --brand: #ff8a4c;
  --brand-600: #ffa06b;
  --brand-700: #ffb184;
  --brand-800: #ffc2a0;
  --brand-soft: #33200f;

  --teal: #5fd3bd;
  --teal-2: #7ee0cd;
  --teal-soft: #102a27;

  --gold: #f6c25e;
  --rose: #fb7185;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 8px 22px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
}

/* ==========================================================================
   2. 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 { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .55em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: .4em; }

strong { font-weight: 650; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

blockquote {
  margin: 2rem 0;
  padding: .4rem 0 .4rem 1.4rem;
  border-left: 3px solid var(--brand);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink);
}
blockquote cite { display: block; margin-top: .6rem; font-family: var(--font-body); font-size: .82rem; font-style: normal; color: var(--muted); }

code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--surface-2);
  padding: .15em .4em;
  border-radius: 6px;
}

pre {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: .9rem;
  line-height: 1.55;
}
pre code { background: none; padding: 0; }

table { width: 100%; border-collapse: collapse; margin: 1.8rem 0; font-size: .95rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; font-weight: 600; color: var(--muted); }
tbody tr:hover { background: var(--surface-2); }

figure { margin: 2rem 0; }
.article-body figcaption, .wp-block-image figcaption { font-size: .82rem; color: var(--muted); margin-top: .6rem; text-align: center; }

::selection { background: var(--gold); color: var(--ink-solid); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 999;
  transform: translateY(-200%);
  background: var(--ink); color: var(--on-dark); padding: .8rem 1.2rem; border-radius: 8px;
  transition: transform .18s ease;
}
[data-theme="dark"] .skip-link { background: var(--surface-3); color: var(--ink); }
.skip-link:focus { transform: none; }

/* ==========================================================================
   3. Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.section--paper { background: var(--surface); border-block: 1px solid var(--line); }
.section--cream { background: var(--surface-2); }

.stack > * + * { margin-top: 1rem; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.section-head h2,
.card__title,
.article-head h1,
.page-hero h1,
.hero h1,
.article-body h2,
.article-body h3 { overflow-wrap: break-word; min-width: 0; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: clamp(24px, 3vw, 36px); flex-wrap: wrap;
}
.section-head__text { max-width: 46rem; }
.section-head h2 { margin-bottom: .2rem; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.section-head p { color: var(--ink-2); margin: 0; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .92rem; color: var(--teal);
  text-decoration: none; white-space: nowrap;
}
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

.label,
.chip,
.cover__label,
.widget-title,
.widget__title,
.footer-col h3,
th,
.tldr h2,
.toc h2,
.fact-card h2,
.author-box__role,
.brand__tag {
  text-transform: none;
  letter-spacing: 0;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .82rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 600; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand-700); color: var(--on-dark); box-shadow: 0 10px 22px -12px var(--brand-glow); }
.btn--primary:hover { background: var(--brand-800); color: var(--on-dark); }
.btn--primary:active { background: var(--brand-800); transform: translateY(0); }
[data-theme="dark"] .btn--primary,
[data-theme="dark"] .btn--primary:hover,
[data-theme="dark"] .btn--primary:active { color: var(--ink-solid); }
.btn--ghost:active { background: var(--surface-2); transform: translateY(0); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:active { transform: translateY(0); }
[data-theme="dark"] .btn--dark { background: var(--brand); color: var(--ink-solid); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: var(--white-12); color: var(--on-dark); border-color: var(--white-25); }
.btn--light:hover { background: var(--white-20); color: var(--on-dark); }
.btn--sm { padding: .55rem 1rem; font-size: .85rem; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .72rem;
  border-radius: var(--radius-pill);
  font-size: .76rem; font-weight: 550; letter-spacing: 0; text-transform: none;
  background: var(--brand-soft); color: var(--brand-700);
  text-decoration: none; border: 1px solid transparent;
}
.chip:hover { background: var(--brand-700); color: var(--on-dark); }
[data-theme="dark"] .chip { color: var(--brand); }
[data-theme="dark"] .chip:hover { color: var(--ink-solid); }
.chip--teal { background: var(--teal-soft); color: var(--teal); }
[data-theme="dark"] .chip--teal { color: var(--teal); }
.chip--outline { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }
.chip--outline:hover { background: var(--ink); color: var(--bg); }

/* ==========================================================================
   4. Header
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: var(--white-82);
  font-size: .78rem;
  letter-spacing: .01em;
}
[data-theme="dark"] .topbar { background: var(--night); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar__note { display: inline-flex; align-items: center; gap: .5rem; }
.topbar a { color: var(--on-dark); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--white-30); }
.topbar a:hover { border-color: var(--gold); }
.topbar__right { display: flex; align-items: center; gap: 1.1rem; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(150deg, var(--brand), var(--gold-bright) 70%, var(--gold));
  display: grid; place-items: center; color: var(--on-dark);
  box-shadow: inset 0 0 0 1px var(--white-25), 0 8px 18px -10px var(--brand-glow);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 650; letter-spacing: -.03em; }
.brand__tag { font-size: .75rem; letter-spacing: .01em; color: var(--muted); margin-top: .28rem; }

.main-nav ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; margin: 0; }
.main-nav a {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .5rem .7rem; border-radius: 8px;
  font-size: .9rem; font-weight: 550; color: var(--ink-2);
  text-decoration: none; white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); background: var(--surface-2); }
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a,
.main-nav .current_page_item > a { color: var(--ink); background: var(--surface-2); }
.main-nav .menu-item-has-children > a::after {
  content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: .15rem; opacity: .6;
}
.main-nav .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px;
  flex-direction: column; align-items: stretch; gap: 2px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: .5rem; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { padding: .55rem .7rem; font-size: .87rem; width: 100%; }

.header-actions { display: flex; align-items: center; gap: .4rem; }
.menu-item--account,.menu-item--logout { display: none; }
@media (max-width: 1024px) {
  .header-actions .header-account { display: none; }
  .menu-item--account,.menu-item--logout { display: block; }
  .main-nav .menu-item--account a {
    border-top: 1px solid var(--line);
    margin-top: .5rem;
    padding-top: .9rem;
    font-weight: 650;
    color: var(--brand-700);
  }
}
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer; padding: 0;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.header-actions .btn { margin-left: .35rem; }

.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 1024px) {
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + 38px) 0 auto 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gutter) 1.6rem;
    max-height: calc(100vh - 120px); overflow-y: auto;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    box-shadow: var(--shadow-lg); z-index: 55;
  }
  html.js .main-nav:not(.is-open) { opacity: 0; visibility: hidden; }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: .8rem .9rem; font-size: 1rem; border-radius: 10px; }
  .main-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--line);
    border-radius: 0; margin-left: .9rem; padding: .1rem 0 .3rem .6rem; display: none;
  }
  .main-nav li.is-open > .sub-menu { display: flex; }
  .main-nav .menu-item-has-children > a::after { margin-left: auto; }
  .nav-toggle { display: grid; }
  .header-actions .btn--subscribe { display: none; }
}
@media (min-width: 1025px) { .nav-toggle { display: none; } }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  backdrop-filter: blur(6px);
  display: grid; place-items: start center; padding: 12vh var(--gutter) 2rem;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.search-overlay.is-open { opacity: 1; visibility: visible; }
.search-overlay__panel {
  width: min(680px, 100%); background: var(--surface);
  border-radius: 22px; padding: clamp(1.2rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.search-overlay h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.search-overlay p { color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; }
.search-overlay .search-form { display: flex; gap: .5rem; }
.search-overlay .search-field { flex: 1; }
.search-overlay__hint { margin-top: 1.2rem; font-size: .8rem; color: var(--muted); }
.search-overlay__hint a { margin-right: .8rem; }

/* ==========================================================================
   5. Hero / front page
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, color-mix(in srgb, var(--gold) 24%, transparent), transparent 60%),
    radial-gradient(900px 460px at -10% 10%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero__mesh {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 0);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 60% at 50% 30%, var(--mask) 20%, transparent 100%);
}
.hero__inner {
  position: relative; padding-block: clamp(32px, 4.5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero__intro { max-width: 36rem; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.02; margin-bottom: 1rem; }
.hero__lede { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--ink-2); max-width: 46ch; margin-bottom: 1.6rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero__feature { min-width: 0; margin: 0; }
.hero__feature .cover--hero { aspect-ratio: 16 / 10; max-height: 300px; }
.hero__feature .card__body { padding: 1rem 1.15rem 1.15rem; gap: .6rem; }
.hero__feature .card__title { font-size: clamp(1.3rem, 1.9vw, 1.7rem); }
.hero__feature .chip { align-self: flex-start; }

.cover {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(140deg, var(--c1, var(--teal-deep)), var(--c2, var(--teal-mid)));
  color: var(--on-dark); isolation: isolate;
}
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background:
    radial-gradient(120% 90% at 10% 0%, var(--white-22), transparent 55%),
    radial-gradient(90% 70% at 100% 100%, var(--shade-30), transparent 60%);
}
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(var(--white-55) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: linear-gradient(120deg, var(--mask), transparent 65%);
}
.cover__icon { position: absolute; right: -8px; bottom: -14px; width: 45%; max-width: 190px; opacity: .16; color: var(--on-dark); }
.cover--wide .cover__icon { width: 42%; max-width: 460px; right: 2%; bottom: -10%; opacity: .18; }
.cover__icon svg { width: 100%; height: auto; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover--card { aspect-ratio: 16 / 10; }
.cover--hero { aspect-ratio: 16 / 9; max-height: 340px; }
.cover--wide { aspect-ratio: 16 / 7; }
.article-hero--locked .cover--wide { aspect-ratio: 16 / 5; }
.chip--lock svg { width: 12px; height: 12px; }

.cover__label {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--white-94); color: var(--ink-solid);
  font-size: .72rem; font-weight: 600; letter-spacing: 0; text-transform: none;
  padding: .35rem .65rem; border-radius: var(--radius-pill);
}
.cover__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: .5rem; font-size: .74rem;
  color: var(--on-dark); letter-spacing: .01em;
  padding: .7rem 16px;
  background: var(--ink-solid);
}
.cover__meta .dot { width: 1px; height: 10px; border-radius: 0; background: currentColor; opacity: .45; }
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); color: inherit; }
.card__body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
strong, b { color: var(--brand-500) !important; }
html,body,body *{font-family:var(--font-display)!important}strong,b{color:var(--brand-500)!important}.card__title { font-size: 1.12rem; line-height: 1.25; margin: 0; letter-spacing: -.015em; color: inherit; }
.article-head h1,.article-body h2,.article-body h3,.article-body h4 { color: var(--ink); }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--brand-600); }
.card__excerpt { font-size: .87rem; color: var(--ink-2); margin: 0; display: block; max-height: 3.1em; overflow: hidden; }
.card__meta { margin-top: auto; display: flex; align-items: center; gap: .45rem; font-size: .74rem; color: var(--muted); padding-top: .5rem; }
.card__meta .dot { width: 1px; height: 10px; border-radius: 0; background: currentColor; opacity: .45; }
.grid .card__excerpt { display: none; }

.card--feature { border-radius: var(--radius); }
.card--feature .card__body { padding: 1.25rem 1.35rem 1.45rem; }
.card--feature .card__title { font-size: clamp(1.45rem, 2.3vw, 1.95rem); }
.card--feature .card__excerpt { font-size: .95rem; max-height: 4.6em; }
.card--row { flex-direction: row; align-items: stretch; }
.card--row .cover { width: 38%; min-width: 132px; aspect-ratio: auto; border-radius: 0; flex: none; }
.card--row .card__body { padding: .9rem 1rem; }
.card--row .card__title { font-size: .98rem; }
.card--row .card__excerpt { display: none; }
.card--compact .cover__label { display: none; }

/* Topic grid */
.topics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.topic {
  --t1: var(--teal); --t2: var(--teal-2);
  position: relative; display: flex; flex-direction: column; gap: .3rem;
  padding: 1.15rem 1.15rem 1.1rem; min-height: 148px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink); overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.topic::after {
  content: ""; position: absolute; inset: auto -20% -55% auto; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--t1) 22%, transparent), transparent 70%);
  transition: transform .3s ease;
}
.topic:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--t1) 45%, var(--line)); box-shadow: var(--shadow-sm); }
.topic:hover::after { transform: scale(1.25); }
.topic__icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--t1) 12%, transparent); color: var(--t1);
  margin-bottom: .55rem;
}
[data-theme="dark"] .topic__icon { color: var(--t2); background: color-mix(in srgb, var(--t2) 16%, transparent); }
.topic__icon svg { width: 20px; height: 20px; }
.topic__name { font-weight: 650; font-size: .98rem; line-height: 1.25; letter-spacing: -.01em; max-width: 11ch; }
.topic__count {
  position: absolute; top: .95rem; right: 1.1rem; margin: 0;
  font-family: var(--font-display); font-size: 1.15rem; line-height: 1;
  color: color-mix(in srgb, var(--t1) 55%, var(--muted));
  font-variant-numeric: tabular-nums;
}
.topic__arrow { display: flex; margin-top: auto; color: var(--t1); }

/* Start here panel */
.start-panel {
  position: relative; overflow: hidden;
  background: var(--teal); color: var(--on-dark);
  border-radius: 24px; padding: clamp(1.6rem, 4vw, 3rem);
}
[data-theme="dark"] .start-panel {
  background: linear-gradient(135deg, var(--forest), var(--teal-deep) 65%, var(--teal-panel));
}
.start-panel::before {
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: radial-gradient(var(--on-dark) 1.2px, transparent 1.2px); background-size: 22px 22px;
  mask-image: linear-gradient(100deg, var(--mask), transparent 70%);
}
.start-panel__head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.start-panel h2 { color: var(--on-dark); margin-bottom: .35rem; }
.start-panel p { color: var(--white-78); max-width: 50ch; margin: 0; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.steps li { margin: 0; }
.steps a {
  display: flex; flex-direction: column; gap: .4rem; height: 100%;
  padding: 1rem 0 0;
  border-top: 1px solid var(--white-22);
  color: var(--on-dark); text-decoration: none; transition: border-color .2s ease;
}
.steps a:hover { border-color: var(--gold); color: var(--on-dark); }
.steps a:hover .steps__title { text-decoration: underline; text-underline-offset: 4px; }
.steps__num { font-family: var(--font-display); font-size: .95rem; color: var(--gold); }
.steps__title { font-weight: 650; font-size: .95rem; line-height: 1.3; }
.steps__note { font-size: .78rem; color: var(--white-65); margin-top: auto; }

/* Trending list */
.trend-list { list-style: none; margin: 0; padding: 0; counter-reset: trend; border-top: 1px solid var(--line); }
.trend-list li { counter-increment: trend; display: flex; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.trend-list li::before {
  content: counter(trend, decimal-leading-zero); font-family: var(--font-display);
  font-size: 1.15rem; color: var(--brand); min-width: 2.2rem; line-height: 1.4;
}
.trend-list a { font-weight: 600; font-size: 1rem; line-height: 1.4; text-decoration: none; color: var(--ink); display: block; }
.trend-list a:hover { color: var(--brand-600); }
.trend-list small { display: block; color: var(--muted); font-size: .76rem; margin-top: .2rem; font-weight: 400; }
.trend-list__more { margin-top: 1rem; }
.trend-list { max-width: 62rem; }

/* Closing call to action */
.closing { background: var(--ink); color: var(--on-dark); padding-block: clamp(64px, 9vw, 112px); }
[data-theme="dark"] .closing { background: var(--night-deep); }
.closing__inner {
  max-width: 960px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: clamp(20px, 4vw, 48px);
}
.closing h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: .4rem; color: var(--on-dark); }
.closing p { color: var(--white-78); margin: 0; }
.closing .btn--primary { flex: none; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .8rem; margin: 0;
}
.quote p { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.5; margin: 0; color: var(--ink); }
.quote .quote__answer { font-family: var(--font-body); font-size: .88rem; line-height: 1.55; color: var(--ink-2); }
.quote footer { margin-top: auto; display: flex; align-items: center; gap: .65rem; font-size: .8rem; color: var(--muted); }
.quote__avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--surface-3); color: var(--brand-600); font-weight: 700; font-size: .78rem;
}
.quote__name { font-weight: 600; color: var(--ink); }
.quote__detail { display: block; font-size: .72rem; }

/* ==========================================================================
   6. Newsletter
   ========================================================================== */
.newsletter { position: relative; overflow: hidden; }
.newsletter__panel {
  position: relative; overflow: hidden; max-width: 1120px; margin-inline: auto; min-height: 260px;
  background: linear-gradient(120deg, var(--forest), var(--teal-deep) 60%, var(--teal-panel));
  color: var(--on-dark); border-radius: 26px; padding: clamp(1.8rem, 4.5vw, 3.4rem);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(1.4rem, 4vw, 3rem); align-items: center;
}
.newsletter__panel::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -140px; top: -180px;
  background: radial-gradient(circle, var(--gold-glow), transparent 65%); border-radius: 50%;
}
.newsletter h2 { color: var(--on-dark); margin-bottom: .5rem; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.newsletter p { color: var(--white-78); margin: 0; font-size: .95rem; }
.newsletter__form { position: relative; display: grid; gap: .6rem; }
.newsletter__form .field { display: flex; gap: .5rem; background: transparent; padding: 0; border: 0; }
.newsletter__form input[type="email"] {
  flex: 1; min-width: 0; background: var(--scrim-62); border: 1px solid var(--white-45);
  border-radius: var(--radius-pill); color: var(--on-dark);
  padding: .6rem .9rem; font-family: var(--font-body); font-size: .95rem; outline: none;
}
.newsletter__form input[type="email"]::placeholder { color: var(--white-72); }
.newsletter__form .btn { flex: none; }
.newsletter__fine { font-size: .72rem; color: var(--white-60); }
.newsletter__msg { font-size: .85rem; color: var(--gold); }
.newsletter__msg--ok { color: var(--mint); }
.newsletter--inline .newsletter__panel { padding: 1.5rem; grid-template-columns: 1fr; border-radius: 18px; }
.newsletter--inline h2 { font-size: 1.3rem; }
.newsletter--inline p { font-size: .85rem; }

/* ==========================================================================
   7. Blog listing / archive
   ========================================================================== */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at 90% 0%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 65%),
    var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(32px, 5vw, 64px);
}
.page-hero h1 { margin-bottom: .6rem; }
.page-hero p { color: var(--ink-2); max-width: 62ch; margin: 0; font-size: 1.02rem; }
.page-hero__meta { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1.3rem; font-size: .8rem; color: var(--muted); }
.page-hero__meta span { display: inline-flex; align-items: center; gap: .4rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .45rem; padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.filter-bar a { font-size: .82rem; font-weight: 600; text-decoration: none; padding: .35rem .75rem; border-radius: var(--radius-pill); color: var(--ink-2); border: 1px solid transparent; }
.filter-bar a:hover { background: var(--surface-2); color: var(--ink); }
.filter-bar a.is-active { background: var(--ink); color: var(--bg); }

.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.posts-grid .card:first-child { grid-column: 1 / -1; }
.posts-grid .card:first-child .cover { aspect-ratio: 16 / 7; }
.posts-grid .card:first-child .card__title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.posts-grid .card:first-child .card__excerpt { -webkit-line-clamp: 2; font-size: .92rem; }
.posts-grid--even .card:first-child { grid-column: auto; }
.posts-grid--even .card:first-child .cover { aspect-ratio: 16 / 10; }
.posts-grid--even .card:first-child .card__title { font-size: 1.12rem; }
.posts-grid--even .card:first-child .card__excerpt { font-size: .87rem; }

.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.4rem; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; }
.widget__title, .widget-title {
  font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--muted); margin: 0 0 .9rem;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); margin: 0; font-size: .9rem; }
.widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget li a { text-decoration: none; color: var(--ink); font-weight: 550; }
.widget li a:hover { color: var(--brand-600); }
.widget li .count, .widget .count { color: var(--muted); font-size: .78rem; }
.widget--about { background: var(--surface-2); }
.widget--about p { font-size: .87rem; color: var(--ink-2); }
.widget--about .btn { margin-top: .4rem; }
.widget--subscribe { background: var(--teal-deep); color: var(--on-dark); border: 0; }
.widget--subscribe h2 { color: var(--on-dark); }
.widget--subscribe p { color: var(--white-78); font-size: .87rem; }
.widget--subscribe input[type="email"] { width: 100%; margin-bottom: .5rem; }
.widget--subscribe .btn { width: 100%; }

/* Pagination */
.pagination { margin-top: clamp(24px, 4vw, 44px); }
.pagination .nav-links { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.pagination .page-numbers {
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 .8rem; border-radius: 10px; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink-2); font-size: .9rem; font-weight: 550; background: var(--surface);
}
.pagination .page-numbers:hover { border-color: var(--line-strong); color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pagination .page-numbers.dots { border: 0; background: none; }

/* ==========================================================================
   8. Single post
   ========================================================================== */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--brand), var(--gold)); z-index: 90; }

.article-head { padding-top: clamp(24px, 4vw, 44px); padding-bottom: clamp(16px, 3vw, 28px); }
.breadcrumb { font-size: .76rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1rem; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-600); }
.breadcrumb__sep { opacity: .45; }
.article-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: .7rem; }
.article-dek { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-2); max-width: 62ch; margin-bottom: 1.5rem; }
.byline { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.byline__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
.byline__text { font-size: .82rem; line-height: 1.45; }
.byline__name { display: block; font-weight: 650; font-size: .88rem; color: var(--ink); }
.byline__meta { color: var(--muted); display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.meta-sep { width: 1px; height: 10px; background: currentColor; opacity: .4; }
.byline__share { margin-left: auto; display: flex; gap: .4rem; }
.share-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .8rem; border-radius: var(--radius-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: .78rem; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.share-btn:hover { border-color: var(--line-strong); color: var(--ink); background: var(--surface-2); }
.share-btn--wa { color: var(--wa-green); }
.share-btn svg { width: 15px; height: 15px; }

.article-hero { margin-bottom: clamp(24px, 4vw, 40px); }
.article-hero .cover { border-radius: 22px; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 60px); align-items: start; }
.article-layout--locked { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin-inline: auto; }
.article-body { max-width: var(--measure); min-width: 0; font-size: 1.045rem; line-height: 1.75; }
.article-body > *:first-child { margin-top: 0; }
.article-body h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-top: 2.4rem; margin-bottom: .7rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.article-body h3 { font-size: 1.24rem; margin-top: 1.9rem; margin-bottom: .5rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.article-body h4 { font-size: 1.05rem; margin-top: 1.6rem; }
.article-body ul, .article-body ol { margin: 0 0 1.3em; }
.article-body ul li::marker { color: var(--brand); }
.article-body ol li::marker { color: var(--brand); font-weight: 650; }
.article-body a { color: var(--teal); text-decoration-color: color-mix(in srgb, var(--teal) 40%, transparent); }
.article-body a.btn { text-decoration: none; }
.article-body a.btn--primary,
.article-body a.btn--primary:hover { color: var(--on-dark); }
[data-theme="dark"] .article-body a.btn--primary,
[data-theme="dark"] .article-body a.btn--primary:hover { color: var(--ink-solid); }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { margin-block: 0; }
.article-body a:hover { color: var(--brand-600); }
.article-body img, .article-body .wp-block-image img { border-radius: 12px; }
.article-body .wp-block-image { margin: 2rem 0; }
.article-body .wp-block-quote { margin: 2rem 0; padding-left: 1.4rem; }
.article-body .alignwide { max-width: 110%; }
.article-body figcaption { text-align: left; }

.tldr {
  background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.3rem; margin: 0 0 2rem; font-size: .97rem;
}
.tldr h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--brand-700); margin: 0 0 .6rem; }
.tldr ul { margin: 0; padding-left: 1.1rem; }
.tldr li { margin-bottom: .35rem; }
.tldr li:last-child { margin-bottom: 0; }
[data-theme="dark"] .tldr h2 { color: var(--brand); }

.callout {
  display: flex; gap: .9rem; padding: 1.05rem 1.2rem; margin: 1.8rem 0;
  background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 20%, transparent);
  border-radius: var(--radius-sm); font-size: .95rem;
}
.callout__icon { flex: none; color: var(--teal); margin-top: .1rem; }
.callout p { margin: 0; }
.callout strong { color: var(--teal); }

.checklist { list-style: none; padding: 0; margin: 1.4rem 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: var(--teal-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5a4e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 62%; background-position: center; background-repeat: no-repeat;
}

.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 1.2rem; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; }
.toc h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0 0 .75rem; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; font-size: .85rem; }
.toc li { counter-increment: toc; margin: 0; padding: .32rem 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); display: flex; gap: .55rem; }
.toc li:last-child { border-bottom: 0; }
.toc li::before { content: counter(toc, decimal-leading-zero); color: var(--brand); font-size: .72rem; font-weight: 700; padding-top: .12rem; }
.toc a { text-decoration: none; color: var(--ink-2); line-height: 1.4; }
.toc a:hover { color: var(--brand-600); }
.toc li.is-active a { color: var(--ink); font-weight: 600; }

.fact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; }
.fact-card h2 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); margin: 0 0 .7rem; }
.fact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.fact-list li { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; margin: 0; }
.fact-list dt, .fact-list .k { color: var(--muted); }
.fact-list .v { font-weight: 600; text-align: right; }

.author-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; margin-top: 2.6rem;
}
.author-box__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: var(--on-dark); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; flex: none; }
.author-box h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.author-box p { font-size: .87rem; color: var(--ink-2); margin: 0; }
.author-box__role { font-size: .76rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--brand-600); margin-bottom: .3rem; }

.article-foot { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.tag-list span { font-size: .75rem; color: var(--muted); margin-right: .2rem; }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.2rem; }
.post-nav a { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; background: var(--surface); }
.post-nav a:hover { border-color: var(--line-strong); }
.post-nav small { font-size: .74rem; font-weight: 600; color: var(--muted); }
.post-nav strong { font-size: .92rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.post-nav__next { text-align: right; align-items: flex-end; }

.related { margin-top: clamp(36px, 5vw, 60px); padding-bottom: clamp(80px, 9vw, 130px); }
.related h2 { margin-bottom: 1.2rem; }

/* Comments */
.comments-area { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); padding-top: 1.6rem; }
.comments-title, .comment-reply-title { font-size: 1.35rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .comment { padding: 1.1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.comment-list .children { list-style: none; margin: .8rem 0 0 1.2rem; padding: 0; border-left: 2px solid var(--line); padding-left: 1rem; }
.comment-author { display: flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 650; }
.comment-author img { border-radius: 50%; }
.comment-meta { font-size: .75rem; color: var(--muted); margin: .2rem 0 .5rem; }
.comment-content { font-size: .93rem; }
.comment-content p { margin-bottom: .6em; }
.comment-respond { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.comment-form { display: grid; gap: .8rem; }
.comment-form label { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-2); margin-bottom: .3rem; }
.comment-form .comment-form-comment { grid-column: 1 / -1; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: .72rem .85rem; border-radius: 10px; border: 1px solid var(--muted);
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: .93rem;
}
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .submit { justify-self: start; }

/* ==========================================================================
   9. Forms, pages, misc
   ========================================================================== */
input[type="text"], input[type="email"], input[type="search"], input[type="url"], input[type="password"], input[type="tel"], select, textarea {
  font-family: var(--font-body);
}
.search-form { display: flex; gap: .4rem; }
.search-field {
  flex: 1; min-width: 0; padding: .68rem .9rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: .9rem;
}
.search-field::placeholder { color: var(--muted); }
.search-submit { flex: none; }

.page-body { padding-block: clamp(32px, 5vw, 64px); }
.page-body .article-body { max-width: 74ch; }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.2rem, 3vw, 2rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--muted);
  background: var(--bg); color: var(--ink); font-size: .93rem;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: .7rem; }
.form-alert { padding: .9rem 1.1rem; border-radius: 10px; font-size: .9rem; margin-bottom: 1.2rem; background: var(--teal-soft); color: var(--teal); border: 1px solid color-mix(in srgb, var(--teal) 25%, transparent); }

.notice {
  background: var(--notice-bg); border: 1px solid var(--notice-line); color: var(--notice-ink);
  border-radius: 12px; padding: .9rem 1.1rem; font-size: .85rem; margin-top: 1.4rem;
}
[data-theme="dark"] .notice { background: var(--notice-dark-bg); border-color: var(--notice-dark-line); color: var(--notice-dark-ink); }

.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state h1 { margin-bottom: .6rem; }
.empty-state p { color: var(--ink-2); max-width: 44ch; margin: 0 auto 1.4rem; }

/* Contact layout */
.contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.contact-info { display: grid; gap: 1rem; }
.contact-info__item { display: flex; gap: .8rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.contact-info__item svg { color: var(--brand); flex: none; margin-top: .15rem; }
.contact-info__item strong { display: block; font-size: .9rem; }
.contact-info__item span, .contact-info__item a { font-size: .86rem; color: var(--ink-2); }

/* About page */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
.about-hero__art { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.about-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.about-grid .quote { background: var(--bg); }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.stat { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.stat span { font-size: .78rem; color: var(--muted); display: block; margin-top: .4rem; }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--white-72); margin-top: 0; }
[data-theme="dark"] .site-footer { background: var(--night-deep); }
.site-footer a { color: var(--white-80); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding-block: clamp(36px, 5vw, 64px); }
.footer-brand .brand { color: var(--on-dark); margin-bottom: 1rem; }
.footer-brand .brand__tag { color: var(--white-45); }
.footer-brand p { font-size: .87rem; line-height: 1.65; max-width: 34ch; color: var(--white-62); }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--white-18); color: var(--white-80);
}
.footer-social a:hover { background: var(--white-10); border-color: var(--white-40); color: var(--on-dark); }
.footer-social svg { width: 17px; height: 17px; }
.footer-col h3 { font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--white-55); margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .45rem; font-size: .87rem; }
.footer-col p { font-size: .85rem; color: var(--white-62); }
.footer-bottom {
  border-top: 1px solid var(--white-12);
  padding-block: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .78rem; color: var(--white-50);
}
.footer-bottom__links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-disclaimer { font-size: .78rem; color: var(--white-55); max-width: 70ch; margin-top: .6rem; }

/* Back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); border: 0; cursor: pointer;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  box-shadow: var(--shadow-md);
}
html.js .to-top:not(.is-visible) { opacity: 0; visibility: hidden; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   11. WordPress block / classic editor compatibility
   ========================================================================== */
.entry-content > *:first-child { margin-top: 0; }
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8rem; color: var(--muted); text-align: center; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.gallery-item { margin: 0; }
.wp-block-table { overflow-x: auto; }
.wp-block-button__link { border-radius: var(--radius-pill); }
.wp-block-group.has-background { border-radius: var(--radius); }
.wp-block-quote cite { color: var(--muted); }
.wp-block-pullquote { border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); padding: 1.6rem 0; }
.wp-block-separator { border-color: var(--line); }
:where(.wp-block-post-content) a { color: var(--teal); }

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .topics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) minmax(0, .8fr); }
  .footer-col--news { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__intro { max-width: 40rem; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-aside .toc { grid-column: 1 / -1; }
  .quotes { grid-template-columns: 1fr; }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter__panel { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-hero { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  :root { --header-h: 66px; }
  .topbar__right { display: none; }
  .topbar { font-size: .72rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .posts-grid .card:first-child .cover { aspect-ratio: 16 / 10; }
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .article-aside { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .byline__share { margin-left: 0; width: 100%; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav__next { text-align: left; align-items: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .newsletter__form .field { flex-direction: column; background: transparent; border: 0; padding: 0; gap: .6rem; }
  .newsletter__form input[type="email"] { background: var(--white-10); border: 1px solid var(--white-20); border-radius: var(--radius-pill); }
  .footer-main { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-head h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .brand__tag { display: none; }
}

/* ==========================================================================
   13. Component finishing
   ========================================================================== */
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover--photo::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, var(--scrim-18) 0%, var(--scrim-05) 45%, var(--scrim-62) 100%);
}
.cover__label, .cover__meta { z-index: 3; }
.cover__icon { z-index: 0; }

.card__cover-link { display: block; text-decoration: none; color: inherit; overflow: hidden; }
.card--row .card__cover-link { width: 38%; min-width: 148px; flex: none; }
.card--row .cover { height: 100%; min-height: 128px; aspect-ratio: auto; border-radius: 0; }
.card--row:hover .cover img { transform: none; }
.cover img { transition: none; }
.card:hover .cover img, .card--feature:hover .cover img { transform: none; }

.theme-icon { display: flex; }
.theme-icon--sun { display: none; }
[data-theme="dark"] .theme-icon--sun { display: flex; }
[data-theme="dark"] .theme-icon--moon { display: none; }

.nav-icon { display: flex; }
.nav-icon--close { display: none; }
.nav-toggle.is-active .nav-icon--open { display: none; }
.nav-toggle.is-active .nav-icon--close { display: flex; }

body.nav-open { overflow: hidden; }

.article-body .tldr h2 { margin-top: 0; }
.article-body .callout strong { color: inherit; }
.article-body .checklist li { margin-bottom: .7rem; }
.hero__aside ol li > div { min-width: 0; }
.page-hero .filter-bar { margin-top: 1.4rem; border-bottom: 0; padding-bottom: 0; }

.widget--subscribe .newsletter__form input[type="email"] {
  background: var(--white-10);
  border: 1px solid var(--white-55);
  border-radius: var(--radius-pill);
  color: var(--on-dark);
  min-height: 44px;
}
.widget--subscribe .newsletter__form input[type="email"]::placeholder { color: var(--white-72); }
.widget--subscribe .newsletter__form { display: grid; gap: .5rem; }
.widget--subscribe .newsletter__msg { color: var(--mint); font-size: .85rem; }

.quote footer .link-arrow { font-size: .85rem; }
.trend-list__more .link-arrow { font-size: .88rem; }

.form-card .cluster { align-items: flex-start; }

.comments-area .comment-form-author,
.comments-area .comment-form-email,
.comments-area .comment-form-url { margin-bottom: 0; }

.wp-block-image figcaption { text-align: left; }

@media (max-width: 680px) {
  .card--row .card__cover-link { width: 34%; min-width: 112px; }
  .card--row .cover { min-height: 110px; }
  .page-hero { padding-block: 32px; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar a { flex: none; }
}

/* Print */
@media print {
  .site-header, .topbar, .site-footer, .article-aside, .newsletter, .to-top, .progress, .related, .comments-area, .byline__share, .post-nav { display: none !important; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  body { background: var(--bg); color: var(--ink); font-size: 11pt; }
  .article-body { max-width: none; }
  a { color: var(--ink); text-decoration: underline; }
}

/* ==========================================================================
   14. Membership: pricing, checkout, account, paywall
   ========================================================================== */

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px 24px;
  box-shadow: var(--shadow-sm);
}
.plan--featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand-soft) 0%, var(--surface) 42%);
  box-shadow: 0 26px 54px -34px var(--brand-glow);
}
.plan--dark {
  background: var(--ink-solid);
  border-color: var(--ink-solid);
  color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
[data-theme="dark"] .plan--dark {
  background: var(--surface-2);
  border-color: var(--line-strong);
}
.plan--custom {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-strong);
}
.plan__badge {
  position: absolute;
  top: -11px;
  left: 22px;
  background: var(--brand-700);
  color: var(--on-dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .28rem .6rem;
  border-radius: var(--radius-pill);
}
[data-theme="dark"] .plan__badge { color: var(--ink-solid); }
.plan__name {
  font-size: 1.45rem;
  margin: 0 0 .25rem;
}
.plan--dark .plan__name { color: var(--on-dark); }
.plan__summary {
  font-size: .85rem;
  color: var(--muted);
  margin: 0 0 1rem;
  min-height: 2.6em;
}
.plan--dark .plan__summary { color: var(--white-65); }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.plan--dark .plan__price { border-color: var(--white-12); }
.plan__amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--ink);
}
.plan--dark .plan__amount { color: var(--on-dark); }
.plan__amount--word { font-size: 1.6rem; }
.plan__period { font-size: .82rem; color: var(--muted); }
.plan--dark .plan__period { color: var(--white-55); }
.plan__features {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: 0;
  font-size: .84rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.plan__features svg { flex: none; margin-top: .18rem; color: var(--teal); }
.plan--dark .plan__features li { color: var(--white-82); }
.plan--dark .plan__features svg { color: var(--mint); }
.plan--dark .btn--light {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink-solid);
}
.plan--dark .btn--light:hover { background: #ffc857; color: var(--ink-solid); }
.plan__cta { margin-top: auto; padding-top: .4rem; }
.plan__cta .btn { width: 100%; justify-content: center; }
.plan__note { font-size: .72rem; color: var(--muted); margin: .7rem 0 0; text-align: center; }
.plan--dark .plan__note { color: var(--white-55); }
.membership-signin {
  text-align: center;
  font-size: .88rem;
  color: var(--muted);
  margin: 1.6rem 0 0;
}
.membership-hero__note {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  margin-top: 1.3rem;
  font-size: .8rem;
  font-weight: 550;
  color: var(--ink-2);
}
.membership-hero__note span { display: inline-flex; align-items: center; gap: .4rem; }
.membership-hero__note svg { color: var(--brand-600); }

/* Comparison table */
.compare-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.compare { margin: 0; min-width: 700px; font-size: .88rem; }
.compare th, .compare td { padding: .8rem .9rem; border-bottom: 1px solid var(--line); }
.compare thead th {
  font-family: var(--font-body);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  background: var(--surface-2);
}
.compare tbody th { font-weight: 550; color: var(--ink); font-size: .86rem; }
.compare tbody td { text-align: center; color: var(--ink-2); font-size: .82rem; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .is-yes { display: inline-flex; color: var(--teal); }
.compare .is-no { color: var(--line-strong); }
.compare tbody tr:hover { background: var(--surface-2); }

/* Fairness section + FAQ */
.membership-columns {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
}
.membership-columns h2 { margin-bottom: .6rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.membership-columns p { color: var(--ink-2); }
.section-head--compact { margin-bottom: 20px; }
.section-head--compact h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.faq { border-top: 1px solid var(--line); }
.faq details:not([open]) > *:not(summary) { display: none; }
.faq details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--brand-600);
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { font-size: .87rem; color: var(--ink-2); margin: .6rem 0 0; }
.membership-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  background: var(--teal-deep);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.8rem);
}
.membership-cta h2 { color: var(--on-dark); margin-bottom: .3rem; }
.membership-cta p { color: var(--white-78); margin: 0; }
.membership-cta__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.membership-cta .btn--ghost { color: var(--on-dark); border-color: var(--white-40); }
.membership-cta .btn--ghost:hover { color: var(--on-dark); border-color: var(--on-dark); background: var(--white-10); }

/* Checkout */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .8fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: start;
}
.checkout-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.checkout-panel h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); margin-bottom: .5rem; }
.checkout-panel__lead { color: var(--ink-2); font-size: .92rem; margin-bottom: 1.3rem; }
.checkout-panel__foot {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .8rem;
  color: var(--muted);
  margin: 1.3rem 0 0;
}
.checkout-panel__foot svg { flex: none; color: var(--teal); }
.checkout-identity {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 0 1.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
}
.checkout-identity div { display: flex; flex-direction: column; line-height: 1.3; }
.checkout-identity strong { font-size: .92rem; }
.checkout-identity span { font-size: .8rem; color: var(--muted); }
.checkout-identity > a { margin-left: auto; font-size: .78rem; }
.test-banner {
  background: var(--notice-bg);
  border: 1px solid var(--notice-line);
  color: var(--notice-ink);
  border-radius: 10px;
  padding: .8rem 1rem;
  font-size: .84rem;
  margin-bottom: 1.2rem;
}
.test-banner strong { text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; margin-right: .3rem; }
[data-theme="dark"] .test-banner { background: var(--notice-dark-bg); border-color: var(--notice-dark-line); color: var(--notice-dark-ink); }
.form-alert--error {
  background: color-mix(in srgb, var(--rose) 10%, var(--surface));
  color: var(--rose);
  border-color: color-mix(in srgb, var(--rose) 30%, transparent);
}
[data-theme="dark"] .form-alert--error { background: color-mix(in srgb, var(--rose) 14%, var(--surface)); color: #fda4af; }
.checkline {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .84rem;
  color: var(--ink-2);
  margin-top: .2rem;
}
.checkline input { width: auto; margin: .2rem 0 0; flex: none; }
.order-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.order-card h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); margin-bottom: .3rem; }
.order-card__summary { font-size: .85rem; color: var(--ink-2); margin-bottom: 1rem; }
.order-card__price {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}
.order-card__price span:first-child {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}
.order-card__price span:last-child { font-size: .8rem; color: var(--muted); }
.order-card .plan__features { margin-bottom: 1.1rem; }
.order-lines { border-top: 1px solid var(--line); padding-top: .9rem; }
.order-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .82rem;
  color: var(--ink-2);
  padding: .2rem 0;
}
.order-total {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 650;
  font-size: .9rem;
  margin-top: .6rem;
  padding-top: .6rem;
  border-top: 1px dashed var(--line-strong);
}
.order-card__note { font-size: .74rem; color: var(--muted); margin: 1rem 0 0; }
.checkout-custom {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(22px, 4vw, 48px);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.6rem);
}
.checkout-custom h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); margin: .3rem 0 .7rem; }
.checkout-custom p { color: var(--ink-2); }
.checkout-custom .btn { margin-top: 1.1rem; }
.checkout-custom__note {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 1.3rem;
  font-size: .85rem;
  color: var(--ink-2);
}
.checkout-custom__note svg { color: var(--teal); margin-bottom: .6rem; }

/* Auth cards */
.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
  max-width: 960px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem);
}
.auth-card h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); margin-bottom: .4rem; }
.auth-card__lead { font-size: .86rem; color: var(--muted); margin-bottom: 1.2rem; }
.auth-card .form-field { margin-bottom: .8rem; }
.auth-card .form-field input { width: 100%; }

/* Account */
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(22px, 3vw, 34px);
  align-items: start;
}
.account-main { display: grid; gap: 22px; }
.plan-panel {
  background: var(--teal-deep);
  color: var(--on-dark);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.1rem);
}
.plan-panel--free {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.plan-panel__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .6rem;
}
.plan-panel__kicker {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white-65);
}
.plan-panel--free .plan-panel__kicker { color: var(--muted); }
.plan-panel h2 { color: var(--on-dark); font-size: 1.7rem; margin: .2rem 0 0; }
.plan-panel--free h2 { color: var(--ink); }
.plan-panel__badge {
  font-size: .7rem;
  font-weight: 650;
  padding: .25rem .6rem;
  border-radius: var(--radius-pill);
  background: var(--white-18);
  color: var(--on-dark);
  white-space: nowrap;
}
.plan-panel--free .plan-panel__badge { background: var(--brand-soft); color: var(--brand-700); }
.plan-panel__price { display: flex; align-items: baseline; gap: .3rem; margin: .3rem 0 .4rem; }
.plan-panel__price span:first-child {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
}
.plan-panel__price span:last-child { font-size: .8rem; color: var(--white-65); }
.plan-panel__meta-line { font-size: .85rem; color: var(--white-78); margin: 0 0 1rem; }
.plan-panel--free .plan-panel__meta-line { color: var(--ink-2); }
.plan-panel__features {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.plan-panel__features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin: 0;
  font-size: .84rem;
  color: var(--white-82);
}
.plan-panel__features svg { flex: none; margin-top: .15rem; color: var(--mint); }
.plan-panel--free .plan-panel__features li { color: var(--ink-2); }
.plan-panel--free .plan-panel__features svg { color: var(--teal); }
.plan-panel__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--white-18);
}
.plan-panel--free .plan-panel__actions { border-color: var(--line); }
.plan-panel__switch { font-size: .8rem; color: var(--on-dark-dim); }
.plan-panel__switch:hover { color: var(--on-dark); }
.plan-panel--free .plan-panel__switch { color: var(--teal); }
.account-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.2rem, 3vw, 1.8rem);
}
.account-section h2 { font-size: 1.2rem; margin-bottom: .9rem; }
.account-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}
.account-section__head h2 { margin: 0; }
.billing-wrap { overflow-x: auto; }
.billing-table { margin: 0; font-size: .86rem; min-width: 460px; }
.billing-table th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; }
.billing-table td { padding: .65rem .7rem; }
.billing-table tbody tr:last-child td { border-bottom: 0; }
.billing-status {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: .1rem .5rem;
  border-radius: var(--radius-pill);
  background: var(--teal-soft);
  color: var(--teal);
}
.billing-status--pending { background: var(--notice-bg); color: var(--notice-ink); }
[data-theme="dark"] .billing-status--pending { background: var(--notice-dark-bg); color: var(--notice-dark-ink); }
.billing-status--replaced { background: var(--surface-3); color: var(--muted); }
.account-empty { font-size: .87rem; color: var(--muted); margin: 0; }
.account-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.account-details div { display: flex; flex-direction: column; gap: .2rem; }
.account-details span { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.account-details strong { font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.account-details__note { font-size: .82rem; color: var(--muted); margin: 1rem 0 0; }
.account-aside { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 20px); }
.account-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
}
.account-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.account-card p { font-size: .84rem; color: var(--ink-2); margin-bottom: .8rem; }
.account-card--quiet { background: transparent; }
.account-card .btn { width: 100%; justify-content: center; }

/* Paywall */
.paywall { margin-top: .4rem; }
.paywall__teaser { position: relative; }
.paywall__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .3rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
  margin-top: 1.1rem;
  position: relative;
}
.paywall__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-700);
  flex: none;
}
.paywall__eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.paywall__card h2 { font-size: 1.35rem; margin: .2rem 0 .4rem; }
.paywall__card p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.paywall__list {
  grid-column: 1 / -1;
  list-style: none;
  margin: 1.1rem 0 0;
  padding: .9rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: .4rem;
}
.paywall__list li {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  margin: 0;
  font-size: .83rem;
  color: var(--ink-2);
}
.paywall__list svg { flex: none; margin-top: .18rem; color: var(--teal); }
.paywall__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.2rem;
}
.paywall__actions .btn { line-height: 1.2; padding-block: .8rem; }
.paywall__foot { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); margin: 1rem 0 0; }
.paywall__foot a { font-weight: 600; }
[data-theme="dark"] .paywall__icon { background: rgba(255, 138, 76, .14); color: var(--brand-600); }

/* Member widget */
.widget--member { background: var(--teal-deep); color: var(--on-dark); border: 0; }
.widget-kicker {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .3rem;
}
.widget--member h2 { color: var(--on-dark); font-size: 1.25rem; margin-bottom: .4rem; }
.widget--member p { color: var(--white-78); font-size: .85rem; }
.widget--member .btn { margin-top: .2rem; }

/* Card lock */
.card__lock {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-left: auto;
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-soft);
  padding: .1rem .45rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.card__lock svg { width: 12px; height: 12px; }

/* Membership responsive */
@media (max-width: 1120px) {
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-grid { grid-template-columns: 1fr; }
  .account-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-card { position: static; }
}
@media (max-width: 900px) {
  .membership-columns { grid-template-columns: 1fr; }
  .checkout-custom { grid-template-columns: 1fr; }
  .auth-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 16px; }
  .plan { padding: 22px 20px; }
  .account-aside { grid-template-columns: 1fr; }
  .account-details { grid-template-columns: 1fr; }
  .paywall__card { grid-template-columns: 1fr; }
  .paywall__icon { margin-bottom: .5rem; }
  .paywall__actions .btn { width: 100%; justify-content: center; }
  .compare {
    display: block;
    min-width: 0;
    font-size: .9rem;
  }
  .compare thead { display: none; }
  .compare tbody { display: block; }
  .compare tr {
    display: block;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--line);
  }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare th,
  .compare td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .24rem 0;
    border: 0;
  }
  .compare tbody th {
    font-size: .95rem;
    padding-bottom: .45rem;
  }
  .compare tbody td {
    text-align: left;
    font-size: .86rem;
  }
  .compare tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: .8rem;
  }
  .compare tbody tr:hover { background: transparent; }
}

t e s t  
 