/* Royal Pro Rummy — Editorial Stylesheet
 * Magazine-grid layout, ice-blue editorial palette, premium-editorial type.
 * Mobile-first. No frameworks. No build step.
 * Fonts loaded from HTML (non-blocking preconnect + preload + onload swap).
 * Local @font-face block below provides a metric-matched system fallback so
 * the page renders without the Inter font and does not shift when Inter loads.
 */

@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('system-ui');
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--body-mobile);
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--gap-4); color: var(--ink); font-family: var(--font-display); letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: var(--h1-mobile); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: var(--h2-mobile); font-weight: 700; letter-spacing: -0.018em; }
h3 { font-size: var(--h3-mobile); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 var(--gap-4); }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: var(--max-w-narrow); }

/* Eyebrow */
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--gap-3);
  display: inline-block;
}
.eyebrow.muted { color: var(--muted); }

/* === Magazine Masthead === */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--surface);
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
}
.masthead-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.masthead-issue { letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.masthead-dateline { font-style: italic; color: var(--muted); }

/* === Header / Navigation === */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .site-header { overflow: visible; }
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 800; font-size: 16px;
  display: grid; place-items: center; letter-spacing: -0.02em;
  box-shadow: var(--shadow-card);
}
.brand-text { line-height: 1.1; }
.brand-name { font-weight: 800; color: var(--ink); font-size: 17px; letter-spacing: -0.02em; }
.brand-tag { font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: inline-block; padding: 10px 12px; font-size: 14px; font-weight: 600;
  color: var(--text); border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--surface-2); }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; font-size: 14px; font-weight: 700; color: #fff;
  background: var(--primary); border-radius: var(--radius); white-space: nowrap;
  box-shadow: var(--shadow-card);
}
.header-cta:hover { background: var(--primary-hover); color: #fff; }

/* Hamburger */
.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
  position: relative; z-index: var(--z-hamburger);
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--t-base); }
.hamburger span:nth-child(1) { transform: translateY(-5px); }
.hamburger span:nth-child(3) { transform: translateY(5px); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(86vw, 360px);
  background: var(--surface); border-left: 1px solid var(--rule);
  box-shadow: -8px 0 32px rgba(19, 33, 58, 0.10);
  transform: translateX(100%); transition: transform var(--t-base);
  z-index: var(--z-drawer);
  overflow-y: auto; padding: 80px 24px 32px;
  display: none;
}
.mobile-drawer[data-open="true"] { transform: translateX(0); display: block; }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.mobile-drawer a { display: block; padding: 14px 12px; font-weight: 600; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--rule); }
.mobile-drawer a:hover { color: var(--primary); }
.drawer-cta {
  display: block; text-align: center; margin-top: 20px;
  padding: 14px 20px; background: var(--primary); color: #fff; border-radius: 10px; font-weight: 700;
}
.scrim { position: fixed; inset: 0; background: rgba(19,33,58,0.40); opacity: 0; pointer-events: none; transition: opacity var(--t-base); z-index: calc(var(--z-drawer) - 1); }
.scrim[data-open="true"] { opacity: 1; pointer-events: auto; }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; font-size: 15px; font-weight: 700; border-radius: var(--radius); white-space: nowrap; border: 1px solid transparent; cursor: pointer; transition: var(--t-fast); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--primary); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--primary-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: transparent; }
.btn-ghost:hover { color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* === Section frames === */
section { padding: 56px 0; }
section.compact { padding: 40px 0; }
section.tight { padding: 24px 0; }
section[id] { scroll-margin-top: 90px; }

.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: var(--h2-mobile); }
.section-head .lead { color: var(--muted); max-width: 64ch; margin-top: 8px; font-size: 16px; }

.band-paper { background: var(--paper); }
.band-surface { background: var(--surface); }
.band-tint { background: var(--surface-2); }

/* === Hero (compact-feed, split 6/6) === */
.hero { padding: 48px 0 56px; background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero-lede { font-size: 18px; color: var(--muted); margin-bottom: 24px; max-width: 56ch; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; font-size: 12px; color: var(--muted); }
.hero-meta span { padding: 4px 10px; border: 1px solid var(--rule); border-radius: var(--radius-pill); background: var(--surface); letter-spacing: 0.04em; }
.hero-figure { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hero-figure figcaption { padding: 14px 18px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); font-style: italic; }

/* === Trust strip === */
.trust-strip { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 28px 0; }
.trust-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); }
.trust-num { font-family: var(--font-display); font-size: 24px; font-weight: 800; color: var(--primary); letter-spacing: -0.02em; line-height: 1; min-width: 32px; }
.trust-label { font-size: 13px; color: var(--text); line-height: 1.4; }
.trust-label strong { color: var(--ink); display: block; font-size: 14px; margin-bottom: 2px; }

/* === Hub grid (asymmetric 3+3+2) === */
.hub-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hub-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); transition: var(--t-base);
}
.hub-card:hover { border-color: var(--primary); box-shadow: var(--shadow-deep); transform: translateY(-2px); }
.hub-card-icon {
  width: 72px; height: 72px; border-radius: 14px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: grid; place-items: center; color: var(--primary); font-size: 28px;
  border: 1px solid var(--rule);
}
.hub-card h3 { margin: 0 0 4px; font-size: 17px; }
.hub-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.hub-card .arrow { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* === Longform chapter with side diagram === */
.chapter { padding: 64px 0; }
.chapter-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.chapter-body { font-size: 17px; line-height: 1.75; }
.chapter-body p { margin-bottom: 18px; }
.chapter-body h2 { margin: 32px 0 12px; }
.chapter-body h3 { margin: 28px 0 10px; }
.chapter-body ul, .chapter-body ol { padding-left: 22px; margin: 0 0 18px; }
.chapter-body li { margin-bottom: 8px; }
.chapter-body blockquote {
  margin: 24px 0; padding: 18px 22px;
  border-left: 4px solid var(--primary);
  background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text);
}
.callout {
  padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.callout h4 { margin: 0 0 10px; font-size: 14px; color: var(--primary); letter-spacing: 0.08em; text-transform: uppercase; }
.meld-diagram {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 16px; background: var(--surface-2); border-radius: var(--radius);
}
.meld-tile {
  aspect-ratio: 2 / 3; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--border-strong);
  display: grid; place-items: center; font-weight: 800; color: var(--ink); font-size: 18px;
}
.meld-tile.joker { background: linear-gradient(135deg, #FCE6B4, #F4D27A); color: #7A4A06; border-color: #E6B95C; }
.meld-label { font-size: 11px; color: var(--muted); text-align: center; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }

/* === Cinematic chapter break (signature device) === */
.chapter-break {
  position: relative; min-height: 320px; margin: 32px 0;
  border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(135deg, #0A1628 0%, #13213A 50%, #1B3A6E 100%);
  color: #DCE9FB;
}
.chapter-break::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(23, 105, 232, 0.25), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(14, 165, 168, 0.18), transparent 60%);
}
.chapter-break-inner { position: relative; padding: 56px 32px; }
.chapter-num { font-size: 12px; letter-spacing: 0.2em; color: #6FA8F7; margin-bottom: 14px; }
.chapter-break h2 { color: #fff; font-size: 28px; margin: 0 0 14px; max-width: 22ch; }
.chapter-break p { color: #B8C8E0; max-width: 52ch; margin: 0; }

/* === Annotated gallery === */
.gallery { display: grid; grid-template-columns: 1fr; gap: 18px; }
.gallery-card { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.gallery-card figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.gallery-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-card h3 { margin: 0 0 6px; font-size: 18px; }
.gallery-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.gallery-card .annotation {
  display: inline-block; padding: 4px 10px; background: var(--surface-2);
  color: var(--primary); border-radius: var(--radius-pill); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; margin-bottom: 8px;
}

/* === Comparison ledger === */
.ledger { display: grid; gap: 14px; }
.ledger-row { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.ledger-row header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ledger-row h3 { margin: 0; font-size: 17px; }
.verdict-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
}
.verdict-chip.yes { background: rgba(14, 165, 168, 0.12); color: #0E6F71; border: 1px solid rgba(14, 165, 168, 0.30); }
.verdict-chip.no { background: rgba(232, 70, 90, 0.10); color: #B22339; border: 1px solid rgba(232, 70, 90, 0.30); }
.verdict-chip.neutral { background: var(--surface-2); color: var(--primary); border: 1px solid var(--border); }
.ledger-row p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* === Portfolio (card-hand reading) === */
.portfolio { display: grid; grid-template-columns: 1fr; gap: 18px; }
.portfolio-card { position: relative; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.portfolio-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.portfolio-card .overlay {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(6px);
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px 14px;
}
.portfolio-card .overlay h4 { margin: 0 0 4px; font-size: 14px; }
.portfolio-card .overlay p { margin: 0; font-size: 12px; color: var(--muted); }
.probability-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 6px 10px; background: var(--primary); color: #fff;
  border-radius: var(--radius-pill); font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em;
}

/* === Review shelf === */
.review-shelf { display: grid; grid-template-columns: 1fr; gap: 14px; }
.review-row {
  display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: center;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface);
}
.review-score {
  font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--primary);
  letter-spacing: -0.02em; line-height: 1;
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
}
.review-row h4 { margin: 0 0 4px; font-size: 15px; }
.review-row p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* === Helpline card === */
.helpline {
  padding: 28px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--surface-2), var(--paper));
  border: 1px solid var(--border); display: grid; gap: 14px;
}
.helpline-num { font-size: 36px; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; line-height: 1; }
.helpline h3 { margin: 0; }
.helpline ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.helpline li { font-size: 14px; color: var(--text); padding-left: 18px; position: relative; }
.helpline li::before { content: '—'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* === Newsroom story rail (horizontal) === */
.story-rail-clip { width: 100%; overflow: hidden; }
.story-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%;
  gap: 14px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.story-rail > * { scroll-snap-align: start; }
.story-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-card);
}
.story-card time { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.story-card h4 { margin: 0; font-size: 16px; }
.story-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.story-card .read-more { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: 0.06em; text-transform: uppercase; }

/* === Editorial FAQ (Q&A with footnotes) === */
.editorial-faq { display: grid; gap: 18px; }
.faq-item { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.faq-item h3 { margin: 0 0 10px; font-size: 18px; color: var(--ink); }
.faq-item p { margin: 0 0 10px; color: var(--text); }
.faq-source { font-size: 12px; color: var(--muted); font-style: italic; border-top: 1px solid var(--rule); padding-top: 8px; margin-top: 8px; }

/* === Colophon === */
.colophon { padding: 48px 0; background: var(--ink); color: #DCE9FB; }
.colophon h3 { color: #fff; font-size: 18px; }
.colophon p { color: #B8C8E0; font-size: 14px; line-height: 1.65; margin: 0 0 12px; }
.colophon a { color: #6FA8F7; }
.colophon-rule { height: 1px; background: rgba(255,255,255,0.12); margin: 24px 0; }

/* === Footer === */
.site-footer { background: var(--surface); border-top: 1px solid var(--rule); padding: 48px 0 24px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 32px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 12px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted-soft); }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); }
.footer-social a:hover { color: var(--primary); border-color: var(--primary); }

/* === Sticky mobile CTA === */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky-cta);
  background: var(--surface); border-top: 1px solid var(--border-strong);
  padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px);
  box-shadow: 0 -4px 20px rgba(19, 33, 58, 0.08);
  display: flex; gap: 8px; align-items: center;
}
.sticky-cta .sticky-text { font-size: 12px; color: var(--muted); line-height: 1.3; flex: 1; min-width: 0; }
.sticky-cta .sticky-text strong { color: var(--ink); display: block; font-size: 13px; }
.sticky-cta .sticky-btn {
  flex: 1 1 0; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 10px; background: var(--primary); color: #fff;
  border-radius: 10px; font-weight: 700; font-size: 13px; line-height: 1.15; letter-spacing: 0.01em;
  text-align: center; white-space: normal; word-break: keep-all;
}
.sticky-cta .sticky-btn-primary { background: var(--primary); color: #fff; }
.sticky-cta .sticky-btn-primary:hover { background: var(--primary-hover); color: #fff; }
.sticky-cta .sticky-btn-secondary {
  background: var(--surface-2); color: var(--primary-deep);
  border: 1px solid var(--border);
}
.sticky-cta .sticky-btn-secondary:hover { background: var(--surface); color: var(--primary-deep); border-color: var(--primary-deep); }
body { padding-bottom: 76px; }

/* === Article / hub page layouts === */
.page-banner {
  background: var(--surface); border-bottom: 1px solid var(--rule);
  padding: 56px 0 40px;
}
.page-banner h1 { max-width: 22ch; }
.page-banner .lead { max-width: 64ch; color: var(--muted); font-size: 17px; margin-top: 12px; }
.page-banner .meta-row { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 18px; }
.page-banner .meta-row span { padding-left: 14px; border-left: 1px solid var(--rule); }
.page-banner .meta-row span:first-child { padding-left: 0; border-left: 0; }

.toc { padding: 20px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.toc h4 { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 22px; color: var(--text); font-size: 14px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); }

.callout-warning {
  padding: 18px; border-radius: var(--radius); background: rgba(232, 70, 90, 0.06);
  border: 1px solid rgba(232, 70, 90, 0.20); color: var(--text); font-size: 14px;
}
.callout-warning strong { color: #B22339; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--surface-2); color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.data-table td { color: var(--text); }
.data-table tr:hover td { background: var(--paper); }
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .data-table { min-width: 540px; }
@media (max-width: 719px) {
  .table-scroll .data-table { font-size: 12px; }
  .table-scroll .data-table th, .table-scroll .data-table td { padding: 8px 10px; }
  .story-rail { grid-auto-columns: 70%; }
}

/* Step / instruction blocks */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.step h4 { margin: 0 0 4px; font-size: 15px; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* Resource link card */
.resource-link { display: block; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.resource-link:hover { border-color: var(--primary); background: var(--paper); }
.resource-link strong { color: var(--ink); display: block; font-size: 14px; margin-bottom: 4px; }
.resource-link span { color: var(--muted); font-size: 12px; }

/* Skip-link */
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: var(--z-modal); font-size: 13px; }
.skip-link:focus { left: 8px; }

/* === Responsive — tablet+ === */
@media (min-width: 720px) {
  body { font-size: var(--body-desktop); }
  h1 { font-size: var(--h1-desktop); }
  h2 { font-size: var(--h2-desktop); }
  .hero-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; }
  .trust-row { grid-template-columns: repeat(2, 1fr); }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .review-shelf { grid-template-columns: repeat(2, 1fr); }
  .ledger-row { grid-template-columns: 200px 1fr; align-items: center; gap: 18px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .chapter-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; }
  .chapter-break-inner { padding: 72px 56px; }
  .chapter-break h2 { font-size: 36px; }
  .chapter-break { min-height: 360px; }
  .hero-figure img { aspect-ratio: 16 / 9; }
  section { padding: 72px 0; }
  .hero { padding: 72px 0 80px; }
}

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .hamburger { display: none; }
  .trust-row { grid-template-columns: repeat(5, 1fr); }
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .portfolio { grid-template-columns: repeat(3, 1fr); }
  .review-shelf { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
  .story-rail { grid-auto-columns: 32%; }
  .hero-figure img { aspect-ratio: 16 / 9; }
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
}

@media (min-width: 1280px) {
  .chapter-break-inner { padding: 96px 72px; }
  .chapter-break h2 { font-size: 44px; }
}

/* === Mobile-only collapses === */
@media (max-width: 719px) {
  .hero { padding: 36px 0 48px; min-height: auto; }
  .hero-grid { gap: 24px; }
  .hero-figure img { aspect-ratio: 16 / 9; }
  .hero-lede { font-size: 16px; }
  .chapter-break-inner { padding: 40px 24px; }
  .chapter-break h2 { font-size: 24px; }
  .chapter-break { min-height: 280px; }
  .meld-diagram { grid-template-columns: repeat(4, 1fr); }
  .meld-tile { font-size: 14px; }
  .main-nav { display: none; }
  .header-cta { display: none; }
}

/* === Image utilities === */
.img-responsive { width: 100%; height: auto; }
.img-rounded { border-radius: var(--radius-lg); }
.img-border { border: 1px solid var(--border); }

/* === A11y utilities === */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* === Route card grids (responsible / safety / strategy) === */
.responsible-grid,
.safety-grid,
.strategy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.responsible-card,
.safety-card,
.strategy-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: var(--t-fast);
}
.responsible-card:hover,
.safety-card:hover,
.strategy-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-deep);
  transform: translateY(-2px);
}
.responsible-card h3,
.safety-card h3,
.strategy-card h3 {
  margin: 0;
  font-size: var(--h3-desktop);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.responsible-card p,
.safety-card p,
.strategy-card p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
}

@media (min-width: 720px) {
  .responsible-grid,
  .safety-grid,
  .strategy-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .responsible-grid,
  .safety-grid,
  .strategy-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .responsible-card,
  .safety-card,
  .strategy-card {
    padding: 28px 26px;
  }
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
