/* ============================================================
   gafasrojas.com — "Contrast" system
   White silence interrupted by one coral signal (#ff5065).
   Light theme only. Standalone stylesheet (replaces theme.css + engine.css).
   ============================================================ */

/* ---------- Fonts (self-hosted, only files present) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/manrope-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/manrope-700.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* Colors */
  --coral: #ff5065;
  --coral-strong: #ff3b53;
  --ember: #ff7a59;
  --persimmon: #ff5c35;
  --mist: #ffe9eb;
  --ink: #0e0f10;
  --white: #ffffff;
  --fog: #f4f4f8;
  --graphite: #2f3133;
  --slate: #7a7b7c;
  --smoke: #666666;
  --hairline: #ececf1;

  /* Type */
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --w-body: 500;
  --w-bold: 700;

  /* Spacing */
  --s8: 8px; --s16: 16px; --s24: 24px; --s32: 32px; --s40: 40px;
  --s48: 48px; --s56: 56px; --s64: 64px; --s72: 72px; --s80: 80px;
  --s112: 112px; --s120: 120px;

  /* Layout */
  --maxw: 1200px;
  --section-gap: 80px;

  /* Radius */
  --r-nav: 4px;
  --r-sm: 16px;
  --r-card: 24px;
  --r-lg: 40px;
  --r-xl: 120px;
  --r-pill: 100px;

  /* Shadow (single faint token) */
  --shadow: rgba(38, 42, 62, 0.06) 0px 5px 25px 0px;
  --shadow-lift: rgba(38, 42, 62, 0.10) 0px 12px 40px 0px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: var(--w-body);
  font-size: 18px;
  line-height: 1.56;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-weight: var(--w-bold); margin: 0; line-height: 1.11; letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
strong { font-weight: var(--w-bold); }
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-weight: var(--w-bold);
  font-size: 14px;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 760px; }
.section { padding-block: var(--section-gap); }
.section-tight { padding-block: 48px; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: var(--w-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coral-strong);
  background: var(--mist);
  padding: 8px 16px;
  border-radius: var(--r-pill);
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 100px;
  background: var(--coral);
}

.section-eyebrow {
  font-size: 13px;
  font-weight: var(--w-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-strong);
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: var(--w-bold);
  font-size: 16px;
  line-height: 1;
  border-radius: var(--r-pill);
  padding: 15px 28px;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-coral { background: var(--coral); color: var(--white); box-shadow: 0 8px 22px rgba(255, 80, 101, 0.28); }
.btn-coral:hover { background: var(--coral-strong); box-shadow: 0 12px 30px rgba(255, 80, 101, 0.34); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-arrow::after {
  content: "\2192";
  font-weight: var(--w-bold);
  transition: transform .16s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--w-bold);
  font-size: 18px;
}
.brand-mark { width: 34px; height: 34px; }
.brand-name { letter-spacing: -0.01em; }
.brand-name b { color: var(--coral); }

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  font-size: 15px;
  font-weight: var(--w-bold);
  color: var(--ink);
  padding: 9px 14px;
  border-radius: var(--r-pill);
  transition: background .16s ease, color .16s ease;
}
.nav-link:hover { background: var(--fog); }
.nav-link.is-active { color: var(--coral-strong); }
.nav-badge {
  font-size: 11px;
  font-style: italic;
  font-weight: var(--w-bold);
  color: var(--coral);
  margin-left: 4px;
  vertical-align: super;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 15, 16, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 90;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  text-align: center;
  padding-top: 72px;
  padding-bottom: 56px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 420px;
  background: radial-gradient(closest-side, var(--mist), transparent 72%);
  z-index: -1;
  pointer-events: none;
}
.hero-inner { max-width: 820px; margin-inline: auto; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 58px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-top: 24px;
}
.hero h1 .mark { color: var(--coral); }
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--smoke);
  max-width: 620px;
  margin: 24px auto 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--slate);
}

/* ---------- Hero spectral card (illustration, not photo) ---------- */
.hero-visual {
  margin: 48px auto 0;
  max-width: 940px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 32px;
}
.hero-visual svg { width: 100%; height: auto; display: block; }

/* ---------- Sources marquee band ---------- */
.sources {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding-block: 32px;
}
.sources-label {
  text-align: center;
  font-size: 13px;
  font-weight: var(--w-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 20px;
}
.sources-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 40px;
}
.source-item {
  font-size: 17px;
  font-weight: var(--w-bold);
  color: var(--graphite);
  opacity: 0.72;
  letter-spacing: -0.01em;
}
.source-item span { color: var(--slate); font-weight: var(--w-body); }

/* ---------- Section heading blocks ---------- */
.head-block { max-width: 680px; }
.head-block.center { margin-inline: auto; text-align: center; }
.head-block h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.head-block p {
  margin-top: 16px;
  font-size: 18px;
  color: var(--smoke);
}

/* ---------- Value / feature cards ---------- */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.value-ico {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: var(--mist);
  color: var(--coral);
  margin-bottom: 20px;
}
.value-ico svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 21px; line-height: 1.25; }
.value-card p { margin-top: 10px; font-size: 16px; color: var(--smoke); }

/* ---------- Article cards ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.acard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.acard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.acard-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--fog);
  overflow: hidden;
}
.acard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.acard:hover .acard-media img { transform: scale(1.04); }
.acard-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--white);
  color: var(--coral-strong);
  font-size: 12px;
  font-weight: var(--w-bold);
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow);
}
.acard-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.acard-meta {
  font-size: 13px;
  font-weight: var(--w-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  gap: 10px;
  align-items: center;
}
.acard-meta .dot { width: 4px; height: 4px; border-radius: 100px; background: var(--slate); }
.acard-body h3 { margin-top: 12px; font-size: 22px; line-height: 1.22; letter-spacing: -0.01em; }
.acard:hover .acard-body h3 { color: var(--coral-strong); }
.acard-excerpt { margin-top: 12px; font-size: 16px; color: var(--smoke); flex: 1; }
.acard-more {
  margin-top: 18px;
  font-size: 15px;
  font-weight: var(--w-bold);
  color: var(--coral-strong);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.acard-more::after { content: "\2192"; transition: transform .16s ease; }
.acard:hover .acard-more::after { transform: translateX(4px); }

/* Featured (first) article — wide */
.acard-feature { grid-column: 1 / -1; }
@media (min-width: 860px) {
  .acard-feature { flex-direction: row; align-items: stretch; }
  .acard-feature .acard-media { flex: 0 0 46%; aspect-ratio: auto; }
  .acard-feature .acard-body { justify-content: center; padding: 40px; }
  .acard-feature h3 { font-size: 30px; }
  .acard-feature .acard-excerpt { font-size: 18px; }
}

/* ---------- Rule / summary band (coral-mist) ---------- */
.rule-band { background: var(--mist); border-radius: var(--r-lg); }
.rule-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 48px;
}
@media (min-width: 820px) {
  .rule-inner { grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 48px; }
}
.rule-inner h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.08; letter-spacing: -0.02em; }
.rule-inner h2 span { color: var(--coral); }
.rule-list { display: flex; flex-direction: column; gap: 14px; }
.rule-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.rule-swatch {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: var(--r-pill);
}
.rule-swatch--clear { background: var(--fog); border: 1px solid var(--hairline); }
.rule-swatch--amber { background: var(--ember); }
.rule-swatch--red { background: var(--coral); }
.rule-row strong { display: block; font-size: 16px; }
.rule-row p { font-size: 15px; color: var(--smoke); margin-top: 2px; }

/* ---------- Diagonal marquee ribbon ---------- */
.ribbon {
  background: var(--mist);
  overflow: hidden;
  transform: rotate(-2deg) scale(1.04);
  margin-block: 8px;
}
.ribbon-track {
  display: flex;
  white-space: nowrap;
  padding-block: 14px;
  animation: ribbon 26s linear infinite;
}
.ribbon-track span {
  font-size: 16px;
  font-weight: var(--w-bold);
  color: var(--coral-strong);
  padding-inline: 22px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
}
.ribbon-track span::after {
  content: "\2726";
  color: var(--coral);
  font-size: 12px;
}
@keyframes ribbon { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; }
}

/* ---------- Niche intro ---------- */
.intro-flow { max-width: 720px; }
.intro-flow p { font-size: 18px; color: var(--smoke); margin-top: 20px; }
.intro-flow p:first-of-type { color: var(--ink); font-size: 20px; }

/* ---------- Dark CTA band ---------- */
.cta-band { background: var(--ink); border-radius: var(--r-lg); color: var(--white); }
.cta-inner {
  padding: 64px 48px;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.cta-inner h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.06; letter-spacing: -0.02em; }
.cta-inner h2 span { color: var(--coral); }
.cta-inner p { margin-top: 16px; color: rgba(255,255,255,0.72); font-size: 18px; }
.cta-inner .btn { margin-top: 28px; }

/* ---------- Newsletter ---------- */
.newsletter { padding-block: 40px; }
.news-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 820px) { .news-card { grid-template-columns: 1fr 1fr; gap: 48px; } }
.news-card h2 { font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.news-card p { margin-top: 12px; color: var(--smoke); font-size: 16px; }
.news-form { display: flex; flex-direction: column; gap: 12px; }
.news-row { display: flex; gap: 12px; flex-wrap: wrap; }
.news-input {
  flex: 1;
  min-width: 200px;
  font-family: inherit;
  font-size: 16px;
  font-weight: var(--w-body);
  padding: 15px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--fog);
  color: var(--ink);
}
.news-input:focus { outline: 3px solid var(--coral); outline-offset: 1px; background: var(--white); }
.news-fine { font-size: 13px; color: var(--slate); }

/* ---------- Footer (dark surface) ---------- */
.footer { background: var(--ink); color: var(--white); padding-block: 64px 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .brand { color: var(--white); }
.footer-brand-desc { margin-top: 16px; color: rgba(255,255,255,0.6); font-size: 15px; max-width: 320px; }
.footer-col h2 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { color: rgba(255,255,255,0.72); font-size: 15px; font-weight: var(--w-body); transition: color .16s ease; }
.footer-link:hover { color: var(--white); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); }

/* ---------- Floating widget (persistent, bottom-left) ---------- */
.floatw {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 80;
  width: 300px;
  max-width: calc(100vw - 48px);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-lift);
  padding: 18px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
}
.floatw.is-in { transform: translateY(0); opacity: 1; }
.floatw-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.floatw-label { font-size: 12px; font-weight: var(--w-bold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral-strong); }
.floatw-close {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: none; background: var(--fog);
  border-radius: 100px; color: var(--slate);
  font-size: 15px; line-height: 1;
}
.floatw-close:hover { background: var(--mist); color: var(--coral); }
.floatw-title { font-size: 16px; font-weight: var(--w-bold); line-height: 1.25; }
.floatw-title + p { font-size: 13px; color: var(--smoke); margin-top: 6px; }
.floatw .btn { margin-top: 14px; }
@media (max-width: 640px) { .floatw { display: none; } }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  width: 380px;
  max-width: calc(100vw - 32px);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lift);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.cookie-banner.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.cookie-banner-text { font-size: 14px; color: var(--smoke); line-height: 1.5; }
.cookie-banner-text a { color: var(--coral-strong); font-weight: var(--w-bold); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; margin-top: 16px; }
.cookie-banner-btn {
  flex: 1;
  font-family: inherit;
  font-weight: var(--w-bold);
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--ink);
}
.cookie-banner-btn--accept { background: var(--coral); border-color: var(--coral); color: var(--white); }
.cookie-banner-btn--accept:hover { background: var(--coral-strong); }
.cookie-banner-btn--reject { background: var(--white); color: var(--ink); }
.cookie-banner-btn--reject:hover { background: var(--fog); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { margin-bottom: 24px; }
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  font-size: 14px;
  font-weight: var(--w-bold);
  color: var(--slate);
}
.breadcrumb-list li { display: flex; align-items: center; gap: 8px; }
.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  color: var(--hairline);
}
.breadcrumb-list a { color: var(--slate); }
.breadcrumb-list a:hover { color: var(--coral-strong); }
.breadcrumb-list [aria-current="page"] { color: var(--ink); }

/* ---------- Prose (legal + article body) ---------- */
.prose { font-size: 18px; line-height: 1.7; color: #23262b; }
.prose > * + * { margin-top: 22px; }
.prose h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.08; letter-spacing: -0.02em; margin-top: 8px; }
.prose h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  margin-top: 52px;
  scroll-margin-top: 96px;
  padding-top: 4px;
}
.prose h3 { font-size: 23px; line-height: 1.24; margin-top: 36px; scroll-margin-top: 96px; }
.prose h4 { font-size: 19px; margin-top: 28px; scroll-margin-top: 96px; }
.prose p { color: #23262b; }
.prose a { color: var(--coral-strong); font-weight: var(--w-bold); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 10px; }
.prose li { padding-left: 4px; }
.prose ul li::marker { color: var(--coral); }
.prose ol li::marker { color: var(--coral); font-weight: var(--w-bold); }
.prose img {
  width: 100%;
  height: auto;
  border-radius: var(--r-card);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
  margin-block: 12px;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--fog);
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--persimmon);
}
.prose hr { border: none; border-top: 1px solid var(--hairline); margin-block: 40px; }

/* Blockquote → notice box (YMYL / disclaimers) */
.prose blockquote {
  margin: 28px 0;
  background: var(--mist);
  border-left: 4px solid var(--coral);
  border-radius: var(--r-sm);
  padding: 24px 28px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
}
.prose blockquote > * + * { margin-top: 12px; }
.prose blockquote strong { color: var(--coral-strong); }
.prose blockquote a { color: var(--coral-strong); }

/* Tables → horizontal scroll on mobile */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  margin-block: 12px;
  min-width: 520px;
}
.prose .table-wrap {
  overflow-x: auto;
  margin-block: 16px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}
.prose .table-wrap table { margin-block: 0; border-radius: 0; }
.prose thead th {
  background: var(--ink);
  color: var(--white);
  text-align: left;
  font-weight: var(--w-bold);
  padding: 14px 18px;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.prose thead th:first-child { border-top-left-radius: 12px; }
.prose thead th:last-child { border-top-right-radius: 12px; }
.prose tbody td { padding: 14px 18px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose tbody tr:nth-child(even) { background: var(--fog); }
.prose tbody td a { color: var(--coral-strong); }

/* Legal page updated line */
.legal-updated { color: var(--slate); font-size: 15px; font-weight: var(--w-bold); }

/* ---------- Page header (listing / static pages) ---------- */
.page-head { padding-top: 64px; padding-bottom: 24px; text-align: center; }
.page-head h1 {
  font-size: clamp(34px, 5.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 20px;
}
.page-head p { max-width: 560px; margin: 18px auto 0; color: var(--smoke); font-size: 18px; }

/* ---------- Article page ---------- */
.article-hero { padding-top: 40px; }
.article-head { max-width: 780px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.article-tag {
  font-size: 12px;
  font-weight: var(--w-bold);
  color: var(--coral-strong);
  background: var(--mist);
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.article-title {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.article-standfirst { margin-top: 20px; font-size: 20px; line-height: 1.5; color: var(--smoke); max-width: 680px; }
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 28px;
  padding-block: 20px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--slate);
  font-weight: var(--w-bold);
}
.byline .author { color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.byline .avatar {
  width: 34px; height: 34px;
  border-radius: 100px;
  background: var(--coral);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 14px; font-weight: var(--w-bold);
}
.byline .sep { width: 4px; height: 4px; border-radius: 100px; background: var(--slate); }

.article-cover {
  margin-top: 32px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow);
}
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}
@media (min-width: 1000px) {
  .article-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
}
.toc { position: static; }
@media (min-width: 1000px) { .toc { position: sticky; top: 96px; } }
.toc-inner {
  background: var(--fog);
  border-radius: var(--r-card);
  padding: 24px;
}
.toc-label {
  font-size: 12px;
  font-weight: var(--w-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-strong);
  margin-bottom: 14px;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 4px; counter-reset: toc; }
.toc-list a {
  display: block;
  font-size: 14px;
  font-weight: var(--w-bold);
  color: var(--smoke);
  padding: 8px 12px;
  border-radius: 10px;
  line-height: 1.35;
  transition: background .16s ease, color .16s ease;
}
.toc-list a:hover, .toc-list a.is-active { background: var(--white); color: var(--coral-strong); box-shadow: var(--shadow); }

.article-body { min-width: 0; }

/* Related */
.related { border-top: 1px solid var(--hairline); }
.related h2 { font-size: 30px; letter-spacing: -0.02em; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}
@media (min-width: 760px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  box-shadow: var(--shadow);
  padding: 32px;
}
.contact-card .value-ico { margin-bottom: 18px; }
.contact-card h2 { font-size: 22px; }
.contact-card p { margin-top: 10px; color: var(--smoke); font-size: 16px; }
.contact-card a { color: var(--coral-strong); font-weight: var(--w-bold); }

/* ---------- Sitemap ---------- */
.sitemap-group { margin-top: 40px; }
.sitemap-group h2 {
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-strong);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.sitemap-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.sitemap-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--fog);
  font-weight: var(--w-bold);
  font-size: 17px;
}
.sitemap-list a:hover { color: var(--coral-strong); }
.sitemap-list .when { font-size: 13px; color: var(--slate); font-weight: var(--w-body); white-space: nowrap; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: 96px; }
.notfound .code {
  font-size: clamp(90px, 20vw, 180px);
  line-height: 0.9;
  color: var(--coral);
  letter-spacing: -0.04em;
}
.notfound h1 { font-size: clamp(28px, 5vw, 40px); margin-top: 8px; letter-spacing: -0.02em; }
.notfound p { max-width: 480px; margin: 18px auto 0; color: var(--smoke); font-size: 18px; }
.notfound .btn { margin-top: 28px; }

/* ---------- About ---------- */
.about-lead { font-size: 22px; line-height: 1.5; color: var(--ink); }
.about-flow p { margin-top: 20px; font-size: 18px; color: var(--smoke); }
.about-values { margin-top: 48px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { grid-template-columns: auto auto; height: 64px; }
  .nav-actions .btn-ghost { display: none; }
  .nav-links {
    position: fixed;
    top: 64px; right: 0;
    width: min(320px, 82vw);
    height: calc(100dvh - 64px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 6px;
    background: var(--white);
    border-left: 1px solid var(--hairline);
    padding: 24px;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1);
    z-index: 95;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 18px; padding: 14px 16px; }
  .nav-toggle { display: flex; }
  .nav-actions { display: none; }
}

@media (max-width: 640px) {
  :root { --section-gap: 56px; }
  .container { padding-inline: 20px; }
  .hero { padding-top: 48px; }
  .hero-visual { padding: 18px; }
  .rule-inner, .cta-inner, .news-card { padding: 28px; }
  .cta-inner { padding-block: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .acard-feature .acard-body { padding: 24px; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
