/* ==========================================================================
   HostPromoCodes design system
   1. Fonts  2. Tokens  3. Base  4. Layout  5. Components  6. Header/Footer
   7. Page sections  8. Utilities  9. Responsive  10. Motion/print
   Breakpoints: phone < 640px · tablet 640–1023px · desktop ≥ 1024px
   ========================================================================== */

/* 1. Fonts (self-hosted Inter, Latin subset) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-700.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/inter-display-800.woff") format("woff"); }

/* 2. Tokens */
:root {
  /* Brand */
  --c-navy: #0B1630;
  --c-navy-2: #14213F;
  --c-accent: #15803D;          /* primary actions (overridable in Customizer) */
  --c-accent-hover: #166534;
  --c-accent-soft: #DCFCE7;
  --c-accent-ink: #14532D;
  --c-mint: #4ADE80;            /* on-dark accent */
  --c-deal: #C2410C;            /* discounts only */
  --c-deal-soft: #FFF7ED;
  --c-link: #1D4ED8;
  --c-link-hover: #1E3A8A;
  --c-star: #F59E0B;
  --c-danger: #B91C1C;
  --c-danger-soft: #FEF2F2;
  /* Neutrals */
  --c-ink: #0F172A;
  --c-body: #334155;
  --c-muted: #475569;
  --c-subtle: #64748B;
  --c-line: #E2E8F0;
  --c-line-strong: #CBD5E1;
  --c-bg: #F6F8FB;
  --c-surface: #FFFFFF;
  --c-surface-2: #F1F5F9;
  --c-on-dark: #E2E8F0;
  --c-on-dark-muted: #B6C2D4;
  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
  --fs-xs: 0.8125rem;   /* 13 */
  --fs-sm: 0.875rem;    /* 14 */
  --fs-base: 1rem;      /* 16 */
  --fs-md: 1.125rem;    /* 18 */
  --fs-lg: 1.25rem;     /* 20 */
  --fs-xl: 1.5rem;      /* 24 */
  --fs-2xl: clamp(1.625rem, 1.2rem + 1.4vw, 2.125rem);  /* 26–34 */
  --fs-3xl: clamp(2rem, 1.4rem + 2.2vw, 2.75rem);       /* 32–44 */
  --fs-4xl: clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem);     /* 36–56 */
  /* Space (4px scale) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;
  /* Shape */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.06);
  --shadow-2: 0 10px 30px rgba(15,23,42,.10);
  --shadow-pop: 0 18px 44px rgba(15,23,42,.22);
  /* Layout */
  --container: 1240px;
  --gutter: 24px;
  --header-h: 68px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* 3. Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--c-bg); color: var(--c-body); font-family: var(--font-sans); font-size: var(--fs-base); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.2; margin: 0 0 var(--s-3); letter-spacing: -0.015em; }
h1 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-4xl); letter-spacing: -0.03em; line-height: 1.08; }
h2 { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-2xl); letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: var(--fs-lg); }
h4 { font-weight: 700; font-size: var(--fs-base); }
p { margin: 0 0 var(--s-4); }
a { color: var(--c-link); text-underline-offset: 2px; }
a:hover { color: var(--c-link-hover); }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-8) 0; }
:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.screen-reader-text { 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: var(--s-4); top: -60px; z-index: 10000; background: var(--c-surface); color: var(--c-ink); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-weight: 700; box-shadow: var(--shadow-2); }
.skip-link:focus { top: var(--s-4); }

/* 4. Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--s-16); }
.section--tight { padding-block: var(--s-12); }
.section--white { background: var(--c-surface); }
.section--dark { background: var(--c-navy); color: var(--c-on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-8); }
.section-head h2 { margin-bottom: var(--s-2); }
.section-head p { margin: 0; color: var(--c-muted); max-width: 640px; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); margin-bottom: var(--s-2); }
.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-8); align-items: start; }
.layout-sidebar--left { grid-template-columns: 260px minmax(0, 1fr); }
.sticky { position: sticky; top: calc(var(--s-6) + var(--admin-bar, 0px)); }
body.admin-bar { --admin-bar: 32px; }

/* 5. Components ------------------------------------------------------------ */

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 44px; padding: 10px 20px; border-radius: var(--r-md); border: 1px solid transparent; font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-hover); color: #fff; }
.btn--secondary { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line-strong); }
.btn--secondary:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn--dark { background: var(--c-navy); color: #fff; }
.btn--dark:hover { background: var(--c-navy-2); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: var(--fs-base); }
.btn--sm { min-height: 36px; padding: 8px 14px; font-size: var(--fs-xs); }
.btn--block { width: 100%; white-space: normal; text-align: center; }
.btn svg { flex: 0 0 auto; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { text-decoration: underline; }

/* Cards */
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: var(--s-6); }
.card--hover { transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.card--hover:hover { box-shadow: var(--shadow-2); border-color: var(--c-line-strong); }
.card--pad-lg { padding: var(--s-8); }
.card h3 { margin-bottom: var(--s-2); }

/* Badges & pills */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; line-height: 1; padding: 6px 10px; border-radius: var(--r-pill); background: #DBEAFE; color: #1E3A8A; white-space: nowrap; }
.badge--accent { background: var(--c-accent-soft); color: var(--c-accent-ink); }
.badge--deal { background: #FFEDD5; color: #9A3412; }
.badge--neutral { background: var(--c-surface-2); color: var(--c-muted); }
.badge--dark { background: rgba(74,222,128,.14); color: #A7F3C0; }
.hpc-mbadge { font-size: 11px; font-weight: 700; line-height: 1; padding: 4px 8px; border-radius: var(--r-pill); background: #FFEDD5; color: #9A3412; white-space: nowrap; }
.hpc-count-num { font-size: 11px; font-weight: 800; line-height: 1; padding: 4px 7px; border-radius: var(--r-pill); background: var(--c-accent); color: #fff; }

/* Logo tile */
.logo-tile { width: 64px; height: 64px; flex: 0 0 auto; border-radius: var(--r-md); background: var(--c-surface); border: 1px solid var(--c-line); display: flex; align-items: center; justify-content: center; overflow: hidden; font-family: var(--font-display); font-weight: 800; font-size: 24px; color: var(--c-muted); }
.logo-tile img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.logo-tile--sm { width: 44px; height: 44px; font-size: 18px; border-radius: 10px; }
.logo-tile--lg { width: 88px; height: 88px; font-size: 32px; border-radius: var(--r-lg); }

/* Stars & scores */
.stars { --pct: 0%; position: relative; display: inline-block; font-size: 16px; line-height: 1; letter-spacing: 2px; color: var(--c-line-strong); white-space: nowrap; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; inset: 0; width: var(--pct); overflow: hidden; color: var(--c-star); }
.stars--lg { font-size: 20px; }
.rating { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--c-muted); flex-wrap: wrap; }
.rating strong { color: var(--c-ink); }
.score { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 64px; padding: var(--s-2) var(--s-3); border-radius: var(--r-md); background: var(--c-navy); color: #fff; line-height: 1.1; }
.score b { font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.score small { font-size: 11px; color: var(--c-on-dark-muted); font-weight: 600; }
.meter { display: grid; grid-template-columns: 120px minmax(0, 1fr) 40px; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); }
.meter__bar { height: 8px; border-radius: var(--r-pill); background: var(--c-surface-2); overflow: hidden; }
.meter__bar span { display: block; height: 100%; border-radius: inherit; background: var(--c-accent); }
.meter b { color: var(--c-ink); text-align: right; }
.meters { display: grid; gap: var(--s-3); }

/* Check lists */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%; background: var(--c-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.5l2.2 2.2 4.8-5' fill='none' stroke='%2315803D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.checks--cons li::before { background: var(--c-danger-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' fill='none' stroke='%23B91C1C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }

/* Forms */
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.input, .select, .textarea, .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--c-line-strong); border-radius: var(--r-md); background: var(--c-surface); color: var(--c-ink); transition: border-color .15s, box-shadow .15s; }
.textarea, .comment-form textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus, .comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.18); }
.input::placeholder, .textarea::placeholder { color: var(--c-subtle); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--c-line-strong); background: var(--c-surface); font-size: var(--fs-sm); font-weight: 600; color: var(--c-body); cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--c-ink); color: var(--c-ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); margin-bottom: var(--s-4); }
.toolbar__label { font-size: var(--fs-sm); color: var(--c-muted); }
.toolbar .select { width: auto; min-width: 180px; }

/* Breadcrumbs */
.breadcrumbs { font-size: var(--fs-xs); margin-bottom: var(--s-4); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li { display: flex; align-items: center; gap: 6px; color: var(--c-subtle); }
.breadcrumbs li + li::before { content: "/"; color: var(--c-line-strong); }
.breadcrumbs a { color: var(--c-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--c-ink); text-decoration: underline; }
.page-hero--dark .breadcrumbs li, .page-hero--dark .breadcrumbs a { color: var(--c-on-dark-muted); }
.page-hero--dark .breadcrumbs a:hover { color: #fff; }

/* Notices / callouts */
.callout { display: flex; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-radius: var(--r-md); background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E3A8A; font-size: var(--fs-sm); }
.callout--accent { background: #F0FDF4; border-color: #BBF7D0; color: var(--c-accent-ink); }
.callout--deal { background: var(--c-deal-soft); border-color: #FED7AA; color: #7C2D12; }
.callout p:last-child { margin: 0; }
.disclosure-note { font-size: var(--fs-xs); color: var(--c-subtle); }
.disclosure-note a { color: inherit; }

/* Empty states */
.empty { text-align: center; padding: var(--s-12) var(--s-6); background: var(--c-surface); border: 1px dashed var(--c-line-strong); border-radius: var(--r-lg); }
.empty__icon { width: 56px; height: 56px; margin: 0 auto var(--s-4); border-radius: 50%; background: var(--c-surface-2); display: flex; align-items: center; justify-content: center; color: var(--c-subtle); }
.empty h3 { margin-bottom: var(--s-2); }
.empty p { color: var(--c-muted); max-width: 460px; margin: 0 auto var(--s-4); }

/* FAQ (details/summary, no JS) */
.faq { display: grid; gap: var(--s-3); }
.faq details { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) var(--s-5); font-weight: 700; color: var(--c-ink); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--c-muted); border-bottom: 2px solid var(--c-muted); transform: rotate(45deg); transition: transform .2s var(--ease); margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq .faq__a { padding: 0 var(--s-5) var(--s-5); color: var(--c-body); }
.faq .faq__a p:last-child { margin: 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface); -webkit-overflow-scrolling: touch; }
.table { min-width: 640px; font-size: var(--fs-sm); }
.table th, .table td { padding: 14px 18px; border-top: 1px solid var(--c-line); text-align: left; vertical-align: middle; }
.table thead th { border-top: 0; background: var(--c-surface-2); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); font-weight: 700; }
.table--compare th, .table--compare td { text-align: center; }
.table--compare th[scope=row] { text-align: left; color: var(--c-body); font-weight: 600; background: var(--c-surface); position: sticky; left: 0; }
.table--compare thead th { text-transform: none; letter-spacing: 0; font-size: var(--fs-base); color: var(--c-ink); }
.table--compare thead th:first-child { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--c-muted); }
.table .is-best { color: var(--c-accent-ink); font-weight: 700; }

/* Host row (rankings) */
.host-list { display: grid; gap: var(--s-4); counter-reset: rank; }
.host-row { position: relative; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 2fr) minmax(0, 1fr) 190px; gap: var(--s-6); align-items: center; padding: var(--s-6); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.host-row:hover { box-shadow: var(--shadow-2); border-color: var(--c-line-strong); }
.host-row[hidden] { display: none; }
.host-row--top { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent) inset; }
.host-row__flag { position: absolute; top: -12px; left: var(--s-6); }
.host-row__id { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.host-row__rank { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); color: var(--c-subtle); min-width: 28px; }
.host-row__name { font-size: var(--fs-lg); margin: 0 0 4px; }
.host-row__name a { color: var(--c-ink); text-decoration: none; }
.host-row__name a:hover { color: var(--c-link); }
.host-row__best { font-size: var(--fs-xs); color: var(--c-muted); margin-top: 4px; }
.host-row .checks { font-size: var(--fs-sm); }
.price { display: grid; gap: 2px; }
.price small { font-size: var(--fs-xs); color: var(--c-subtle); }
.price strong { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--c-ink); letter-spacing: -0.02em; line-height: 1.1; }
.price strong span { font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 500; color: var(--c-subtle); }
.price del { font-size: var(--fs-xs); color: var(--c-subtle); }
.price .price__save { font-size: var(--fs-xs); font-weight: 700; color: var(--c-deal); }
.host-row__cta { display: grid; gap: var(--s-2); text-align: center; }
.host-row__cta .link-arrow { justify-content: center; font-size: var(--fs-sm); padding: 4px; }
.host-row__cta .price { display: none; }
.host-row__cta .btn { white-space: normal; text-align: center; }
.host-row__cta .price__save { font-size: var(--fs-xs); font-weight: 700; color: var(--c-deal); }
.host-row__badge { margin-top: 6px; }

/* Host card (grid) */
.host-card { display: flex; flex-direction: column; gap: var(--s-4); height: 100%; }
.host-card__top { display: flex; align-items: center; gap: var(--s-3); }
.host-card__top h3 { margin: 0; font-size: var(--fs-md); }
.host-card__top h3 a { color: var(--c-ink); text-decoration: none; }
.host-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }

/* Coupon card */
.coupon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: var(--s-5); }
.coupon { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.coupon:hover { box-shadow: var(--shadow-2); border-color: var(--c-line-strong); }
.coupon[hidden] { display: none; }
.coupon__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.coupon__deal { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--c-deal); letter-spacing: -0.02em; line-height: 1.1; }
.coupon__host { font-weight: 700; color: var(--c-ink); text-decoration: none; }
.coupon__host:hover { color: var(--c-link); }
.coupon__desc { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; flex: 1 1 auto; }
.coupon__meta { display: flex; flex-wrap: wrap; gap: var(--s-3); font-size: var(--fs-xs); color: var(--c-subtle); }
.coupon__meta .is-soon { color: var(--c-deal); font-weight: 700; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); border: 2px dashed var(--c-deal); background: var(--c-deal-soft); border-radius: var(--r-md); padding: 6px 6px 6px 14px; }
.code-box[hidden] { display: none; }
.code-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; font-size: 17px; letter-spacing: .06em; color: #7C2D12; overflow-wrap: anywhere; }
.reveal { position: relative; overflow: hidden; }
.reveal__peek { position: absolute; right: 0; top: 0; bottom: 0; width: 64px; display: flex; align-items: center; justify-content: center; border-left: 2px dashed rgba(255,255,255,.6); font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: .08em; background: rgba(255,255,255,.14); }
.reveal .reveal__label { padding-right: 64px; }

/* Summary box (review sidebar) */
.summary { display: grid; gap: var(--s-4); }
.summary__head { display: flex; align-items: center; gap: var(--s-3); }
.summary__head h2 { font-size: var(--fs-lg); margin: 0; font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.01em; }
.summary__score { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: var(--c-surface-2); }
.summary dl { margin: 0; display: grid; gap: var(--s-2); font-size: var(--fs-sm); }
.summary dl div { display: flex; justify-content: space-between; gap: var(--s-3); padding-bottom: var(--s-2); border-bottom: 1px solid var(--c-line); }
.summary dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.summary dt { color: var(--c-muted); }
.summary dd { margin: 0; font-weight: 600; color: var(--c-ink); text-align: right; }

/* Jump nav / TOC */
.jumpnav { max-width: 100%; display: flex; gap: var(--s-1); overflow-x: auto; padding: 6px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); margin-bottom: var(--s-8); scrollbar-width: thin; }
.jumpnav a { flex: 0 0 auto; padding: 8px 14px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); text-decoration: none; }
.jumpnav a:hover, .jumpnav a.is-active { background: var(--c-surface-2); color: var(--c-ink); }
.toc { font-size: var(--fs-sm); }
.toc h2 { font-family: var(--font-sans); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--c-subtle); margin-bottom: var(--s-3); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--c-line); }
.toc a { display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--c-muted); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--c-ink); border-left-color: var(--c-accent); }
.toc .toc__sub a { padding-left: 24px; }

/* Prose (articles, reviews, pages) */
.prose { color: var(--c-body); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 { font-size: var(--fs-xl); margin-top: 2em; scroll-margin-top: 90px; }
.prose h3 { font-size: var(--fs-lg); margin-top: 1.6em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; padding: var(--s-4) var(--s-6); border-left: 4px solid var(--c-accent); background: var(--c-surface-2); border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--c-ink); }
.prose img { border-radius: var(--r-md); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: var(--fs-xs); color: var(--c-subtle); margin-top: var(--s-2); text-align: center; }
.prose table { font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--c-surface-2); }
.prose code { background: var(--c-surface-2); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose a { font-weight: 600; }
.prose .wp-block-button__link { background: var(--c-accent); color: #fff; border-radius: var(--r-md); padding: 12px 22px; text-decoration: none; font-weight: 700; }

/* Author box */
.author-box { display: flex; gap: var(--s-4); align-items: flex-start; }
.author-box img { border-radius: 50%; width: 56px; height: 56px; }
.author-box h3 { font-size: var(--fs-base); margin: 0 0 2px; }
.author-box p { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); color: var(--c-muted); }
.byline img { border-radius: 50%; width: 28px; height: 28px; }
.byline strong { color: var(--c-ink); }

/* Post cards */
.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; height: 100%; }
.post-card__img { aspect-ratio: 16 / 9; background: var(--c-surface-2); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.03); }
.post-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1 1 auto; }
.post-card__body h3 { font-size: var(--fs-md); margin: 0; }
.post-card__body h3 a { color: var(--c-ink); text-decoration: none; }
.post-card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card { position: relative; }
.post-card__meta { font-size: var(--fs-xs); color: var(--c-subtle); margin-top: auto; }

/* User reviews */
.reviews-summary { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.reviews-summary__big { text-align: center; }
.reviews-summary__big b { display: block; font-family: var(--font-display); font-size: 52px; font-weight: 800; color: var(--c-ink); line-height: 1; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.review-item { padding: var(--s-5); border: 1px solid var(--c-line); border-radius: var(--r-lg); background: var(--c-surface); }
.review-item__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.review-item__who { display: flex; align-items: center; gap: var(--s-3); }
.review-item__who img { border-radius: 50%; }
.review-item__who b { color: var(--c-ink); display: block; }
.review-item__who small { color: var(--c-subtle); font-size: var(--fs-xs); }
.review-item__pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-3); font-size: var(--fs-sm); }
.review-item__pc b { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.review-item .awaiting { font-size: var(--fs-xs); color: var(--c-deal); font-weight: 700; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; border: 0; padding: 0; margin: 0; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 30px; line-height: 1; color: var(--c-line-strong); cursor: pointer; padding: 4px; min-width: 40px; min-height: 40px; text-align: center; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--c-star); }
.star-input input:focus-visible + label { outline: 3px solid #2563EB; border-radius: 6px; }
.comment-form { display: grid; gap: var(--s-4); }
.comment-form p { margin: 0; display: grid; gap: 6px; }
.comment-form label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); }
.comment-form .comment-form-cookies-consent { display: flex; gap: var(--s-2); align-items: flex-start; font-weight: 400; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; color: var(--c-muted); }
.comment-form .form-submit input { background: var(--c-accent); color: #fff; border: 0; border-radius: var(--r-md); min-height: 48px; padding: 12px 24px; font-weight: 700; cursor: pointer; }
.comment-form .form-submit input:hover { background: var(--c-accent-hover); }
.hpc-hp { position: absolute !important; left: -9999px !important; }
.form-row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }

/* Pagination */
.pagination, .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2); margin-top: var(--s-8); }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.page-numbers:hover { border-color: var(--c-ink); }
.page-numbers.current { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }

/* 6. Header / Footer ------------------------------------------------------- */
.site-header { position: sticky; top: var(--admin-bar, 0px); z-index: 900; background: var(--c-navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header__bar { display: flex; align-items: center; gap: var(--s-6); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; flex: 0 0 auto; }
.brand:hover { color: #fff; }
.brand__word > span { color: var(--c-mint); }
.custom-logo-link { display: flex; align-items: center; flex: 0 0 auto; }
.custom-logo { height: 40px; width: auto; max-width: 240px; }
.site-header__actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-md); border: 0; background: transparent; color: #fff; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.menu-toggle { display: none; }

/* Primary nav (desktop) */
.primary-nav { flex: 1 1 auto; min-width: 0; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav > ul { display: flex; align-items: center; gap: 2px; }
.primary-nav li { position: relative; }
.primary-nav > ul > li > a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); color: var(--c-on-dark); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.primary-nav > ul > li > a:hover, .primary-nav > ul > li.is-open > a, .primary-nav > ul > li.current-menu-item > a { background: rgba(255,255,255,.08); color: #fff; }
.primary-nav > ul > .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; opacity: .75; transition: transform .2s var(--ease); }
.primary-nav > ul > li.is-open > a::after { transform: rotate(-135deg) translateY(-1px); }
.primary-nav .sub-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; display: grid; gap: 0; padding: var(--s-2); background: var(--c-surface); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility 0s linear .16s; z-index: 1000; }
.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu, .primary-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.primary-nav .sub-menu a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px 12px; border-radius: var(--r-sm); color: var(--c-ink); font-size: var(--fs-sm); font-weight: 500; text-decoration: none; }
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu a:focus-visible { background: var(--c-surface-2); color: var(--c-ink); }
.primary-nav .sub-menu .hpc-see-all a { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--c-line); border-radius: 0 0 var(--r-sm) var(--r-sm); color: var(--c-link); font-weight: 700; }
.primary-nav .sub-menu .hpc-see-all a::after { content: "→"; }

/* Header search */
.header-search { background: var(--c-navy-2); border-top: 1px solid rgba(255,255,255,.06); }
.header-search[hidden] { display: none; }
.header-search form { display: flex; gap: var(--s-2); padding-block: var(--s-3); }
.header-search .input { background: #fff; }

/* Footer */
.site-footer { background: var(--c-navy); color: var(--c-on-dark-muted); padding-top: var(--s-16); font-size: var(--fs-sm); }
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: var(--s-8); }
.footer-brand p { margin: var(--s-4) 0; max-width: 320px; }
.site-footer h2 { font-family: var(--font-sans); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: #fff; margin-bottom: var(--s-4); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.site-footer ul a { display: inline-block; padding: 2px 0; }
.footer-bottom { margin-top: var(--s-12); padding-block: var(--s-6); border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); font-size: var(--fs-xs); }
.footer-trust { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* 7. Page sections --------------------------------------------------------- */
.page-hero { padding-block: var(--s-12) var(--s-10); background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.page-hero h1 { font-size: var(--fs-3xl); margin-bottom: var(--s-3); }
.page-hero__lead { font-size: var(--fs-md); color: var(--c-muted); max-width: 720px; margin: 0; }
.page-hero__meta { margin-top: var(--s-5); }
.page-hero--dark { background: var(--c-navy); border-bottom: 0; color: var(--c-on-dark); }
.page-hero--dark h1 { color: #fff; }
.page-hero--dark .page-hero__lead { color: var(--c-on-dark-muted); }

/* Home hero */
.hero { background: var(--c-navy); color: var(--c-on-dark); padding-block: var(--s-16) calc(var(--s-20) + var(--s-6)); text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center top, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center top, #000 20%, transparent 75%); pointer-events: none; }
.hero > .container { position: relative; }
.hero h1 { color: #fff; max-width: 900px; margin: var(--s-5) auto var(--s-4); }
.hero h1 em { font-style: normal; color: var(--c-mint); }
.hero__lead { font-size: var(--fs-md); color: var(--c-on-dark-muted); max-width: 660px; margin: 0 auto; }
.hero-search { max-width: 820px; margin: var(--s-8) auto 0; display: flex; flex-wrap: wrap; gap: var(--s-2); padding: var(--s-2); background: #fff; border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero-search .input { flex: 1 1 260px; border: 0; min-height: 52px; font-size: var(--fs-base); }
.hero-search .input:focus { box-shadow: none; }
.hero-search .select { flex: 0 1 210px; min-height: 52px; background: var(--c-surface-2); border-color: transparent; }
.hero-search .btn { min-height: 52px; padding-inline: 28px; }
.hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3) var(--s-8); margin-top: var(--s-6); font-size: var(--fs-sm); color: var(--c-on-dark-muted); }
.hero__trust span { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero__trust svg { color: var(--c-mint); }

.cat-strip { position: relative; margin-top: calc(-1 * var(--s-16)); z-index: 2; }
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-2); padding: var(--s-4); background: var(--c-surface); border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.cat { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border-radius: var(--r-md); color: var(--c-ink); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); line-height: 1.3; transition: background-color .15s; }
.cat:hover { background: var(--c-surface-2); color: var(--c-ink); }
.cat__icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: #EEF4FF; color: var(--c-link); display: flex; align-items: center; justify-content: center; }

.steps { counter-reset: step; }
.step__n { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--c-navy); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: var(--s-4); }
.step p { color: var(--c-muted); margin: 0; font-size: var(--fs-sm); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); padding: var(--s-10); background: var(--c-navy); border-radius: var(--r-xl); color: var(--c-on-dark-muted); }
.cta-band h2 { color: #fff; margin-bottom: var(--s-2); }
.cta-band p { margin: 0; }
.newsletter { display: flex; flex-wrap: wrap; gap: var(--s-2); flex: 1 1 380px; max-width: 520px; }
.newsletter .input { flex: 1 1 220px; border-color: transparent; }

.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.stat { padding: var(--s-5); border-radius: var(--r-lg); background: var(--c-surface); border: 1px solid var(--c-line); }
.stat b { display: block; font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800; color: var(--c-ink); }
.stat span { font-size: var(--fs-sm); color: var(--c-muted); }

/* Verdict (vs pages) */
.verdict { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.verdict .card { display: grid; gap: var(--s-3); align-content: start; }
.verdict__winner { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent) inset; }
.vs-head { display: flex; align-items: center; justify-content: center; gap: var(--s-6); flex-wrap: wrap; margin-top: var(--s-6); }
.vs-head__vs { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: var(--fs-sm); }
.vs-head__host { display: flex; align-items: center; gap: var(--s-3); color: #fff; font-weight: 700; font-size: var(--fs-lg); }

/* Compare tool */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-3); }
.picker label { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3); border: 1px solid var(--c-line); border-radius: var(--r-md); background: var(--c-surface); cursor: pointer; font-weight: 600; color: var(--c-ink); min-height: 56px; }
.picker label:hover { border-color: var(--c-line-strong); }
.picker input { width: 18px; height: 18px; accent-color: var(--c-accent); }
.picker label:has(input:checked) { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent) inset; background: #F0FDF4; }
.picker input:disabled + .logo-tile, .picker label:has(input:disabled:not(:checked)) { opacity: .5; cursor: not-allowed; }

/* 404 */
.err { text-align: center; padding-block: var(--s-20); }
.err__code { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 3rem + 8vw, 9rem); line-height: 1; color: var(--c-line-strong); letter-spacing: -0.04em; }

/* Admin hint (only shown to editors) */
.admin-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border: 1px dashed #93C5FD; border-radius: var(--r-md); background: #EFF6FF; color: #1E3A8A; font-size: var(--fs-sm); }
.admin-hint b { color: #1E3A8A; }

@media (min-width: 1024px) { .hpc-toc-mobile { display: none; } }

/* 8. Utilities */
.u-mt-0 { margin-top: 0 !important; } .u-mb-0 { margin-bottom: 0 !important; }
.u-mt-4 { margin-top: var(--s-4); } .u-mt-6 { margin-top: var(--s-6); } .u-mt-8 { margin-top: var(--s-8); } .u-mt-12 { margin-top: var(--s-12); }
.u-center { text-align: center; }
.u-muted { color: var(--c-muted); }
.u-small { font-size: var(--fs-sm); }
.u-stack { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
.u-stack-lg { display: grid; gap: var(--s-8); grid-template-columns: minmax(0, 1fr); }
.u-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

/* 9. Responsive ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .host-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr) 170px; }
  .host-row .price { display: none; }
  .host-row__cta .price { display: grid; }
}

/* Tablet & below: drawer navigation */
@media (max-width: 1023px) {
  :root { --header-h: 62px; }
  .menu-toggle { display: inline-flex; }
  .site-header__cta { display: none; }
  .primary-nav { position: fixed; inset: calc(var(--header-h) + var(--admin-bar, 0px)) 0 0 0; background: var(--c-navy); overflow-y: auto; padding: var(--s-4) var(--gutter) var(--s-12); opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; z-index: 899; }
  .primary-nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .primary-nav > ul > li > a { justify-content: space-between; min-height: 56px; padding: 14px 4px; font-size: var(--fs-md); border-radius: 0; }
  .primary-nav > ul > li > a:hover { background: transparent; }
  .primary-nav .sub-menu { position: static; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(255,255,255,.04); border-radius: var(--r-md); margin: 0 0 var(--s-3); transition: none; }
  .primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: none; }
  .primary-nav li.is-open > .sub-menu { display: grid; }
  .primary-nav .sub-menu a { color: var(--c-on-dark); min-height: 44px; }
  .primary-nav .sub-menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .primary-nav .sub-menu .hpc-see-all a { color: #93C5FD; border-top-color: rgba(255,255,255,.1); }
  .primary-nav__cta { display: block !important; margin-top: var(--s-6); }
  body.nav-open { overflow: hidden; }
  .layout-sidebar, .layout-sidebar--left { grid-template-columns: minmax(0, 1fr); }
  .layout-sidebar > aside { order: -1; }
  .layout-sidebar .sticky { position: static; }
  .layout-sidebar--toc > aside { order: 0; display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .host-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .host-row__features { grid-column: 1 / -1; order: 3; }
  .host-row__cta { grid-column: 2; grid-row: 1; }
}
.primary-nav__cta { display: none; }

/* Phone */
@media (max-width: 639px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .section { padding-block: var(--s-12); }
  .section--tight { padding-block: var(--s-8); }
  .section-head { margin-bottom: var(--s-6); }
  .grid-2, .grid-3, .grid-4, .verdict, .form-row-2, .review-item__pc { grid-template-columns: minmax(0, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--s-2); }
  .cat { flex-direction: column; text-align: center; gap: var(--s-2); padding: var(--s-3) var(--s-2); font-size: var(--fs-xs); }
  .hero { padding-block: var(--s-10) calc(var(--s-16) + var(--s-4)); }
  .hero-search { padding: var(--s-2); }
  .hero-search .select, .hero-search .btn { flex: 1 1 100%; }
  .hero__trust { gap: var(--s-2) var(--s-4); font-size: var(--fs-xs); }
  .host-row { grid-template-columns: minmax(0, 1fr); padding: var(--s-5); gap: var(--s-4); }
  .host-row__cta { grid-column: auto; grid-row: auto; display: grid; grid-template-columns: auto 1fr; align-items: center; text-align: left; gap: var(--s-3); }
  .host-row__cta .btn { grid-column: 2; }
  .host-row__cta .price { grid-row: 1 / span 2; }
  .host-row__cta .link-arrow { grid-column: 2; }
  .cta-band { padding: var(--s-6); }
  .reviews-summary { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .meter { grid-template-columns: 96px minmax(0, 1fr) 36px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
  .card { padding: var(--s-5); }
  .card--pad-lg { padding: var(--s-6); }
  .toolbar { padding: var(--s-3); }
  .toolbar .select { width: 100%; }
  .toolbar > .u-row { width: 100%; flex-wrap: nowrap; }
  .toolbar > .u-row .select { flex: 1 1 auto; min-width: 0; }
  .page-hero { padding-block: var(--s-8); }
  .prose { font-size: 16px; }
  .brand { font-size: 19px; }
  .custom-logo { height: 34px; }
}


/* ==========================================================================
   Host coupon pages (/coupons/<host>/)
   ========================================================================== */
.chero { padding-block: var(--s-8) var(--s-10); }
.chero__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2) var(--s-6); }
.chero__top .breadcrumbs { margin-bottom: 0; }
.chero__links { display: flex; gap: var(--s-5); font-size: var(--fs-xs); }
.chero__links a { color: var(--c-on-dark-muted); }
.chero__links a:hover { color: #fff; }
.chero__main { display: flex; gap: var(--s-6); align-items: flex-start; margin-top: var(--s-6); }
.chero__main .logo-tile { background: #fff; border: 0; }
.chero h1 { margin-bottom: var(--s-3); }
.chero__stats { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.chero__stat { display: inline-flex; align-items: center; gap: var(--s-2); padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: var(--c-on-dark); font-size: var(--fs-sm); text-decoration: none; }
a.chero__stat:hover { background: rgba(255,255,255,.12); color: #fff; }
.chero__stat strong { color: #fff; }
.chero__stat svg { color: var(--c-mint); }

.cpage { grid-template-columns: 300px minmax(0, 1fr); }
.cpage__aside-title { font-family: var(--font-sans); font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.01em; margin-bottom: var(--s-2); }
.cfilter { border: 0; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: 2px; }
.cfilter legend { font-size: var(--fs-sm); font-weight: 600; color: var(--c-ink); margin-bottom: var(--s-2); }
.cfilter label { display: flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 6px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: var(--fs-sm); color: var(--c-body); }
.cfilter label:hover { background: var(--c-surface-2); }
.cfilter label:has(input:checked) { background: #F0FDF4; color: var(--c-accent-ink); font-weight: 600; }
.cfilter input { accent-color: var(--c-accent); width: 16px; height: 16px; margin: 0; }
.cfilter__n { margin-left: auto; min-width: 26px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--c-surface-2); color: var(--c-muted); font-size: 12px; font-weight: 700; text-align: center; }
.cpage__links { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: 2px; }
.cpage__links a { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: 8px 10px; border-radius: var(--r-sm); color: var(--c-body); text-decoration: none; font-size: var(--fs-sm); }
.cpage__links a:hover { background: var(--c-surface-2); color: var(--c-ink); }

/* Coupon row */
.crow-list { display: grid; gap: var(--s-5); }
.crow { position: relative; display: grid; grid-template-columns: 132px minmax(0, 1fr) 220px; gap: var(--s-5); align-items: center; padding: var(--s-6) var(--s-6) 0; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); transition: box-shadow .2s var(--ease), border-color .2s var(--ease); }
.crow:hover { box-shadow: var(--shadow-2); border-color: var(--c-line-strong); }
.crow[hidden] { display: none; }
.crow--top { border-color: var(--c-accent); box-shadow: 0 0 0 1px var(--c-accent) inset; }
.crow__n { position: absolute; top: -12px; left: -12px; width: 28px; height: 28px; border-radius: 50%; background: var(--c-surface); border: 1px solid var(--c-line-strong); display: flex; align-items: center; justify-content: center; font-size: var(--fs-xs); font-weight: 800; color: var(--c-ink); }
.crow--top .crow__n { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.crow__flag { position: absolute; top: -12px; left: 24px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: var(--r-pill); background: var(--c-accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.crow__brand { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-align: center; align-self: start; }
.crow__brand .logo-tile { width: 76px; height: 76px; }
.crow__kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--c-subtle); }
.crow__body { min-width: 0; }
.crow__title { font-size: var(--fs-md); line-height: 1.35; margin: 0 0 var(--s-2); }
.crow__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--s-2); }
.crow__meta { display: flex; flex-wrap: wrap; gap: 4px var(--s-4); font-size: var(--fs-xs); color: var(--c-subtle); margin: 0 0 var(--s-2); }
.crow__vote { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2); font-size: var(--fs-xs); color: var(--c-muted); }
.crow__vote-q { font-weight: 600; }
.vote { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid var(--c-line); background: var(--c-surface); color: var(--c-muted); font-size: var(--fs-xs); font-weight: 600; cursor: pointer; }
.vote[data-dir="up"]:hover, .vote[data-dir="up"].is-on { border-color: #86EFAC; background: #F0FDF4; color: var(--c-accent-ink); }
.vote[data-dir="down"]:hover, .vote[data-dir="down"].is-on { border-color: #FCA5A5; background: var(--c-danger-soft); color: var(--c-danger); }
.vote:disabled { cursor: default; }
.crow__vote-thanks { color: var(--c-accent-ink); font-weight: 600; }
.crow__action { display: grid; gap: var(--s-2); justify-items: stretch; text-align: center; padding-left: var(--s-5); border-left: 1px dashed var(--c-line-strong); align-self: stretch; align-content: center; padding-bottom: var(--s-6); }
.crow__deal { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: var(--c-accent); }
.crow__exp { font-size: var(--fs-xs); color: var(--c-subtle); }
.crow__oldcode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 700; letter-spacing: .06em; color: var(--c-subtle); text-decoration: line-through; }
.crow .code-box { padding: 4px 4px 4px 10px; }
.crow .code-box code { font-size: 15px; }
.crow__details { grid-column: 1 / -1; margin: 0 calc(-1 * var(--s-6)); border-top: 1px solid var(--c-line); }
.crow__details summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; cursor: pointer; font-size: var(--fs-xs); font-weight: 700; color: var(--c-muted); }
.crow__details summary::-webkit-details-marker { display: none; }
.crow__details summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.crow__details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.crow__details summary:hover { color: var(--c-ink); background: var(--c-surface-2); }
.crow__details[open] summary { border-bottom: 1px solid var(--c-line); }
.crow__details-body { padding: var(--s-4) var(--s-6) var(--s-5); font-size: var(--fs-sm); color: var(--c-body); }
.crow__details-body p { margin-bottom: var(--s-3); }
.crow__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.crow__facts b { color: var(--c-ink); }
.crow--expired { padding-bottom: var(--s-6); background: var(--c-surface-2); opacity: .85; }
.crow--expired .crow__deal { color: var(--c-subtle); }
.crow--expired .crow__action { padding-bottom: 0; }
.crow--expired:hover { box-shadow: none; }

.countdown { display: flex; justify-content: center; gap: 6px; }
.countdown span { display: inline-flex; align-items: baseline; gap: 1px; padding: 4px 8px; border-radius: var(--r-sm); background: var(--c-danger-soft); color: var(--c-danger); font-size: 11px; font-weight: 700; }
.countdown b { font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }

.cexpired { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 0 var(--s-5); }
.cexpired summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 60px; cursor: pointer; font-weight: 700; color: var(--c-ink); }
.cexpired summary::-webkit-details-marker { display: none; }
.cexpired[open] { padding-bottom: var(--s-5); }
.cexpired .crow-list { gap: var(--s-3); }

.howto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.howto li { display: flex; gap: var(--s-4); padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.howto .step__n { flex: 0 0 auto; margin: 0; }
.howto h3 { font-size: var(--fs-base); margin-bottom: 4px; }
.howto p { margin: 0; font-size: var(--fs-sm); color: var(--c-muted); }

.facts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: 0; }
.facts-grid div { padding: var(--s-3) var(--s-4); background: var(--c-surface-2); border-radius: var(--r-md); }
.facts-grid dt { font-size: var(--fs-xs); color: var(--c-muted); }
.facts-grid dd { margin: 2px 0 0; font-weight: 700; color: var(--c-ink); }

.orec { display: grid; gap: var(--s-3); text-decoration: none; color: var(--c-ink); }
.orec:hover { color: var(--c-ink); }
.orec__deal { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 800; color: var(--c-accent); }

.chip .logo-tile--sm { width: 24px; height: 24px; border-radius: 6px; font-size: 12px; border: 0; }
.chip .logo-tile img { padding: 2px; }

@media (max-width: 1023px) {
  .cpage { grid-template-columns: minmax(0, 1fr); }
  .cpage .cpage__aside .card:not(:first-child) { display: none; }
  .cpage .cpage__aside .card:first-child { padding: var(--s-4); }
  .cpage .cpage__aside .card:first-child > .cpage__aside-title, .cpage .cpage__aside .card:first-child > p { display: none; }
  .cfilter { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; }
  .cfilter legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cfilter label { border: 1px solid var(--c-line-strong); border-radius: var(--r-pill); padding: 6px 12px; min-height: 40px; }
  .cfilter label:has(input:checked) { border-color: var(--c-accent); }
  .cfilter input { position: absolute; opacity: 0; width: 1px; height: 1px; }
  .cfilter label:has(input:focus-visible) { outline: 3px solid #2563EB; outline-offset: 2px; }
  .cfilter__n { margin-left: 2px; min-width: 0; padding: 1px 7px; }
  .crow { grid-template-columns: 96px minmax(0, 1fr); }
  .crow__action { grid-column: 1 / -1; border-left: 0; border-top: 1px dashed var(--c-line-strong); padding: var(--s-4) 0 var(--s-5); grid-template-columns: auto minmax(0, 1fr); align-items: center; text-align: left; }
  .crow__action .crow__deal { grid-row: span 2; padding-right: var(--s-4); }
  .crow__brand .logo-tile { width: 64px; height: 64px; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .chero__main { flex-direction: column; gap: var(--s-4); }
  .chero__main .logo-tile--lg { width: 64px; height: 64px; }
  .chero__links { display: none; }
  .crow { grid-template-columns: minmax(0, 1fr); padding: var(--s-5) var(--s-5) 0; gap: var(--s-3); }
  .crow__brand { flex-direction: row; align-items: center; text-align: left; }
  .crow__brand .logo-tile { width: 44px; height: 44px; font-size: 18px; }
  .crow__action { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .crow__action .crow__deal { grid-row: auto; padding-right: 0; }
  .crow__details { margin: 0 calc(-1 * var(--s-5)); }
  .crow__n { left: -8px; }
  .howto, .facts-grid { grid-template-columns: minmax(0, 1fr); }
}


/* "Copy code" button with folded corner (code peeks out behind it) */
.peel { position: relative; display: block; width: 100%; height: 48px; padding: 0; border: 2px dashed var(--c-accent); border-radius: var(--r-md); background: #F0FDF4; cursor: pointer; overflow: hidden; font: inherit; color: inherit; }
.peel__code { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; font-weight: 800; letter-spacing: .08em; color: var(--c-accent-ink); white-space: nowrap; }
.peel__btn { position: absolute; top: -2px; bottom: -2px; left: -2px; right: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 22px 0 12px; background: var(--c-accent); color: #fff; font-weight: 700; font-size: var(--fs-sm); border-radius: var(--r-md) 0 0 var(--r-md); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); transition: right .22s var(--ease), background-color .15s var(--ease); }
.peel__btn::after { content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px; background: linear-gradient(to top right, rgba(0,0,0,.32) 50%, transparent 50%); border-bottom-left-radius: 3px; }
.peel:hover .peel__btn, .peel:focus-visible .peel__btn { right: 60px; background: var(--c-accent-hover); }
.peel.is-revealed { border-style: solid; cursor: copy; }
.peel.is-revealed .peel__btn { display: none; }
.peel.is-revealed .peel__code { left: 0; right: 0; text-align: center; font-size: 16px; }

/* Code popup */
.cmodal { position: fixed; width: min(460px, calc(100% - 32px)); max-height: calc(100vh - 32px); overflow: auto; padding: var(--s-8) var(--s-6) var(--s-6); border: 0; border-radius: var(--r-xl); background: var(--c-surface); color: var(--c-body); box-shadow: var(--shadow-pop); text-align: center; }
.cmodal::backdrop { background: rgba(11,22,48,.62); }
.cmodal[open] { animation: cmodal-in .18s var(--ease); }
@keyframes cmodal-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.cmodal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--c-surface-2); color: var(--c-muted); font-size: 24px; line-height: 1; cursor: pointer; }
.cmodal__close:hover { background: var(--c-line); color: var(--c-ink); }
.cmodal__logo { display: flex; justify-content: center; margin-bottom: var(--s-3); }
.cmodal__logo .logo-tile { width: 64px; height: 64px; }
.cmodal__host { margin: 0; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-subtle); }
.cmodal__title { margin: 4px 0 0; font-family: var(--font-sans); font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.cmodal__code { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin: var(--s-5) 0 var(--s-2); padding: 6px 6px 6px 16px; border: 2px dashed var(--c-accent); border-radius: var(--r-md); background: #F0FDF4; }
.cmodal__code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; font-weight: 800; letter-spacing: .08em; color: var(--c-accent-ink); overflow-wrap: anywhere; text-align: left; }
.cmodal__status { min-height: 20px; margin: 0 0 var(--s-3); font-size: var(--fs-xs); font-weight: 600; color: var(--c-accent-ink); }
.cmodal__steps { margin: 0 0 var(--s-5); padding: var(--s-4) var(--s-4) var(--s-4) var(--s-8); text-align: left; background: var(--c-surface-2); border-radius: var(--r-md); font-size: var(--fs-sm); color: var(--c-body); display: grid; gap: 4px; }
.cmodal__vote { justify-content: center; margin-top: var(--s-4); }
.crow__host { font-size: var(--fs-sm); font-weight: 700; color: var(--c-ink); text-decoration: none; line-height: 1.2; }
.crow__host:hover { color: var(--c-link); text-decoration: underline; }


/* ==========================================================================
   Blog: single post + archive
   ========================================================================== */
.read-progress { position: fixed; top: var(--admin-bar, 0px); left: 0; right: 0; height: 3px; z-index: 950; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: var(--c-mint); transition: width .1s linear; }
.pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: var(--r-pill); background: #EEF4FF; color: #1E3A8A; font-size: 12px; font-weight: 700; text-decoration: none; letter-spacing: .02em; }
a.pill:hover { background: #DBEAFE; color: #1E3A8A; }
.pill--accent { background: var(--c-accent-soft); color: var(--c-accent-ink); }

.post-hero { background: var(--c-surface); padding: var(--s-10) 0 var(--s-8); }
.post-hero__inner { max-width: 900px; }
.post-hero__cats { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.post-hero__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.12; margin-bottom: var(--s-4); }
.post-hero__lead { font-size: var(--fs-md); line-height: 1.6; color: var(--c-muted); margin: 0 0 var(--s-6); max-width: 760px; }
.post-hero__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--c-line); }
.post-author { display: flex; align-items: center; gap: var(--s-3); }
.post-author__img, .post-author img { border-radius: 50%; width: 44px; height: 44px; }
.post-author__name { display: block; font-weight: 700; color: var(--c-ink); text-decoration: none; }
.post-author__name:hover { color: var(--c-link); }
.post-author__sub { font-size: var(--fs-sm); color: var(--c-muted); }

.share { display: flex; align-items: center; gap: var(--s-2); }
.share__label { font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted); margin-right: 2px; }
.share__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink); cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s, color .15s; }
.share__btn:hover { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.share__btn.is-copied { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }

.post-cover { margin: 0 auto; padding-top: var(--s-2); max-width: 1100px; }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.post-cover figcaption { margin-top: var(--s-2); font-size: var(--fs-xs); color: var(--c-subtle); text-align: center; }

.post-layout { display: grid; grid-template-columns: 240px minmax(0, 720px) 280px; justify-content: space-between; gap: var(--s-10); padding-top: var(--s-12); padding-bottom: var(--s-16); align-items: start; }
.post-layout--no-toc { grid-template-columns: minmax(0, 760px) 300px; }
.post-layout__main { min-width: 0; }
.post-layout__toc, .post-layout__rail { align-self: stretch; }
.post-toc { position: sticky; top: calc(var(--header-h) + var(--admin-bar, 0px) + var(--s-6)); max-height: calc(100vh - var(--header-h) - var(--admin-bar, 0px) - 48px); overflow-y: auto; padding-right: var(--s-2); scrollbar-width: thin; }
.post-toc .toc a { font-size: 13px; line-height: 1.4; padding: 6px 12px; }
.post-toc .toc .toc__sub a { padding-left: 22px; font-size: 12.5px; }
.post-toc .toc a.is-active { font-weight: 700; background: #F0FDF4; }
.post-toc-mobile { display: none; margin-bottom: var(--s-6); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); }
.post-toc-mobile summary { list-style: none; display: flex; align-items: center; gap: var(--s-2); min-height: 52px; padding: 0 var(--s-4); font-weight: 700; color: var(--c-ink); cursor: pointer; }
.post-toc-mobile summary::-webkit-details-marker { display: none; }
.post-toc-mobile .toc { padding: 0 var(--s-4) var(--s-4); max-height: 60vh; overflow-y: auto; }
.post-rail { position: sticky; top: calc(var(--header-h) + var(--admin-bar, 0px) + var(--s-6)); display: grid; gap: var(--s-5); }

/* Article typography */
.post-prose { font-size: 18px; line-height: 1.8; color: #2B3648; }
.post-prose > p:first-child { font-size: 1.12em; color: var(--c-ink); }
.post-prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--c-line); }
.post-prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.post-prose h3 { font-size: 1.3rem; margin-top: 1.9em; }
.post-prose h2 + h3 { margin-top: 1em; }
.post-prose strong { color: var(--c-ink); }
.post-prose a { color: var(--c-link); text-decoration-color: rgba(29,78,216,.35); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.post-prose a:hover { text-decoration-color: currentColor; }
.post-prose ul { list-style: none; padding-left: 0; }
.post-prose ul > li { position: relative; padding-left: 1.6em; }
.post-prose ul > li::before { content: ""; position: absolute; left: .35em; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-accent); }
.post-prose ol { padding-left: 1.4em; }
.post-prose ol > li::marker { color: var(--c-accent); font-weight: 700; }
.post-prose figure, .post-prose .wp-block-image { margin: 2em 0; }
.post-prose img { border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.post-prose .wp-block-image figcaption, .post-prose figcaption { font-size: var(--fs-sm); color: var(--c-subtle); text-align: center; margin-top: var(--s-3); }
.post-prose blockquote { font-size: 1.05em; font-style: normal; }
.post-prose hr { margin: 2.5em 0; }
.post-prose .wp-block-table { overflow-x: auto; margin: 2em 0; }
.post-prose .wp-block-table table { display: table; min-width: 520px; border-radius: var(--r-md); overflow: hidden; }
.post-prose table { font-size: var(--fs-sm); }

.post-tags { margin-top: var(--s-8); }
.post-share-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-top: var(--s-8); padding: var(--s-4) var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.post-share-end strong { color: var(--c-ink); }
.post-author-box { display: flex; gap: var(--s-5); align-items: flex-start; margin-top: var(--s-6); padding: var(--s-6); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.post-author-box img { border-radius: 50%; flex: 0 0 auto; }
.post-author-box h2 { font-family: var(--font-sans); font-size: var(--fs-lg); margin: 2px 0 var(--s-2); }
.post-author-box h2 a { color: var(--c-ink); text-decoration: none; }
.post-author-box p { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: var(--s-3); }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-6); }
.post-nav__item { display: grid; gap: 4px; padding: var(--s-4) var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.post-nav__item:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-2); }
.post-nav__item span { font-size: var(--fs-xs); font-weight: 700; color: var(--c-subtle); text-transform: uppercase; letter-spacing: .06em; }
.post-nav__item strong { color: var(--c-ink); line-height: 1.35; }
.post-nav__item--next { text-align: right; }

.rail-card { padding: var(--s-5); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.rail-card__title { font-family: var(--font-sans); font-size: var(--fs-base); font-weight: 700; letter-spacing: -0.01em; margin-bottom: var(--s-4); }
.rail-card p { font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.rail-card--dark { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-on-dark-muted); }
.rail-card--dark .rail-card__title { color: #fff; margin-bottom: var(--s-2); }
.rail-card__icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: var(--r-md); background: rgba(74,222,128,.14); color: var(--c-mint); margin-bottom: var(--s-3); }
.rail-card .social { margin: 0; }
.rail-hosts { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: grid; gap: var(--s-3); }
.rail-hosts li { display: grid; grid-template-columns: 14px 40px minmax(0, 1fr) auto; align-items: center; gap: var(--s-2); }
.rail-hosts .logo-tile--sm { width: 40px; height: 40px; }
.rail-hosts__n { font-weight: 800; color: var(--c-subtle); font-size: var(--fs-sm); }
.rail-hosts__info { display: grid; min-width: 0; }
.rail-hosts__info a { font-weight: 700; color: var(--c-ink); text-decoration: none; font-size: var(--fs-sm); line-height: 1.3; overflow-wrap: anywhere; }
.rail-hosts__info .rating { font-size: 12px; gap: 4px; }
.rail-hosts__info .stars { font-size: 12px; letter-spacing: 1px; }

/* Blog archive */
.blog-hero { background: var(--c-surface); border-bottom: 1px solid var(--c-line); padding: var(--s-10) 0 var(--s-6); }
.blog-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-6); }
.blog-hero__text { max-width: 720px; }
.blog-hero__avatar img { border-radius: 50%; margin-bottom: var(--s-3); }
.blog-hero h1 { font-size: var(--fs-3xl); margin-bottom: var(--s-3); }
.blog-hero__lead { font-size: var(--fs-md); color: var(--c-muted); margin: 0 0 var(--s-2); }
.blog-hero__count { font-size: var(--fs-sm); color: var(--c-subtle); margin: 0; }
.blog-search { position: relative; display: flex; gap: var(--s-2); flex: 0 1 420px; padding: 6px; background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.blog-search > svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--c-subtle); }
.blog-search .input { border: 0; background: transparent; padding-left: 38px; }
.blog-search .input:focus { box-shadow: none; }
.blog-cats { margin-top: var(--s-6); }
.chip__n { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: var(--r-pill); background: var(--c-surface-2); color: var(--c-muted); }
.chip.is-active .chip__n { background: rgba(255,255,255,.18); color: #fff; }
.blog-subhead { font-family: var(--font-sans); font-size: var(--fs-lg); margin: var(--s-12) 0 var(--s-5); }

.post-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-xl); overflow: hidden; transition: box-shadow .2s var(--ease); }
.post-feature:hover { box-shadow: var(--shadow-2); }
.post-feature__img { display: block; min-height: 320px; background: var(--c-surface-2); overflow: hidden; }
.post-feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-feature:hover .post-feature__img img { transform: scale(1.03); }
.post-feature__ph, .pcard__ph { display: flex; width: 100%; height: 100%; min-height: 200px; align-items: center; justify-content: center; color: var(--c-line-strong); }
.post-feature__body { display: flex; flex-direction: column; justify-content: center; gap: var(--s-4); padding: var(--s-10); }
.post-feature__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.2; margin: 0; }
.post-feature__title a { color: var(--c-ink); text-decoration: none; }
.post-feature__title a:hover { color: var(--c-link); }
.post-feature__excerpt { color: var(--c-muted); margin: 0; }
.post-feature .btn { align-self: flex-start; }
.post-meta { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-sm); color: var(--c-muted); line-height: 1.4; }
.post-meta img { border-radius: 50%; flex: 0 0 auto; }
.post-meta strong { color: var(--c-ink); }

.pcard { display: flex; flex-direction: column; height: 100%; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.pcard:hover { box-shadow: var(--shadow-2); border-color: var(--c-line-strong); transform: translateY(-2px); }
.pcard__img { display: block; aspect-ratio: 16 / 9; background: var(--c-surface-2); overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__body { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); flex: 1 1 auto; }
.pcard__cat { align-self: flex-start; }
.pcard__title { font-size: var(--fs-md); line-height: 1.35; margin: 0; }
.pcard__title a { color: var(--c-ink); text-decoration: none; }
.pcard__title a:hover { color: var(--c-link); }
.pcard__excerpt { font-size: var(--fs-sm); color: var(--c-muted); margin: 0; }
.pcard__meta { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--c-line); font-size: var(--fs-xs); }

@media (max-width: 1279px) {
  .post-layout { grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-8); }
  .post-layout--no-toc { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
  .post-layout__rail { grid-column: 2; }
  .post-layout--no-toc .post-layout__rail { grid-column: 1; }
  .post-rail { position: static; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}
@media (max-width: 1023px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; padding-top: var(--s-8); }
  .post-layout__toc { display: none; }
  .post-layout__rail { grid-column: 1; }
  .post-toc-mobile { display: block; }
  .post-feature { grid-template-columns: minmax(0, 1fr); }
  .post-feature__img { min-height: 0; aspect-ratio: 16 / 9; }
  .post-feature__body { padding: var(--s-6); }
}
@media (max-width: 639px) {
  .post-hero { padding: var(--s-6) 0; }
  .post-hero__meta { flex-direction: column; align-items: flex-start; }
  .post-cover { padding-inline: 0; }
  .post-cover img { border-radius: 0; max-height: 320px; }
  .post-prose { font-size: 17px; }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav__item--next { text-align: left; }
  .post-author-box { flex-direction: column; padding: var(--s-5); }
  .blog-hero { padding: var(--s-6) 0 var(--s-5); }
  .blog-search { flex-basis: 100%; }
  .blog-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .blog-cats .chip { flex: 0 0 auto; }
}

/* Social icons */
.social { list-style: none; margin: 0 0 var(--s-4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }
.social a { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-width: 40px; height: 40px; border-radius: var(--r-md); text-decoration: none; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.social--dark a { background: rgba(255,255,255,.08); color: var(--c-on-dark); }
.social--dark a:hover { background: rgba(255,255,255,.16); color: #fff; text-decoration: none; }
.social--light a { border: 1px solid var(--c-line-strong); background: var(--c-surface); color: var(--c-ink); }
.social--light a:hover { border-color: var(--c-ink); color: var(--c-ink); }
.social--labels a { padding: 0 14px; height: 44px; font-weight: 600; font-size: var(--fs-sm); }
.social--labels { margin-bottom: 0; }
.site-footer ul.social { display: flex; margin: 0 0 var(--s-4); }
.site-footer .social a { display: inline-flex; padding: 0; }

/* 10. Motion & print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .jumpnav, .toc, .btn, .newsletter { display: none !important; }
  body { background: #fff; }
}

/* Editor-only draft notes inside page content */
.hpc-draft-note { padding: var(--s-3) var(--s-4); border: 1px dashed #F59E0B; background: #FFFBEB; border-radius: var(--r-md); color: #92400E; font-size: var(--fs-sm); }
