
/* System Design Atlas — responsive and interaction enhancements */
/* Canonical design tokens and typography. docs/DESIGN_SYSTEM.md is the source of truth;
   this block is the only implementation. Pages must not redeclare these. */
:root {
  color-scheme: dark;
  --bg: #07090F;
  --surface: #0D111C;
  --surface2: #111827;
  --line: #243044;
  --text: #F8FAFC;
  --muted: #9AA7BC;
  --yellow: #FACC15;
  --blue: #60A5FA;
  --green: #34D399;
  --purple: #A78BFA;
  --red: #FB7185;
  --atlas-font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}
/* Keep keyboard focus navigation immediate. Per-page smooth-scroll declarations load before this
   common layer and are intentionally normalized here so off-screen focus targets are not delayed. */
html { scroll-behavior: auto; }
body { overflow-x: hidden; font-family: var(--atlas-font); }
a { color: inherit; text-decoration: none; }
/* Page stylesheets also declare .header at the same specificity and load in different orders,
   so the site-wide sticky header is scoped to body to win regardless of order. */
body .header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* The roadmap, tools, legal pages, and briefing keep the landing navigation shell. */
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header {
  height: 82px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(7, 9, 15, .84);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  line-height: 1.55;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .wrap,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .wrap {
  width: min(1280px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -.04em;
  white-space: nowrap;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-mark,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: linear-gradient(145deg, #fde047, #eab308);
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-mark::before,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-mark::after,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .brand-mark::before,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .brand-mark::after {
  content: "";
  position: absolute;
  border: 2px solid #17110a;
  border-radius: 5px;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-mark::before,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .brand-mark::before { inset: 7px 14px 7px 6px; }
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-mark::after,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .brand-mark::after { inset: 7px 6px 7px 18px; }
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-title,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .brand-title { font-size: 18px; }
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .brand-title small,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .brand-title small {
  display: block;
  margin-top: -2px;
  color: #a3a3a3;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .nav,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #b7c0ce;
  font-size: 13px;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .nav a:hover,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .nav a.active,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .nav a:hover,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .nav a.active { color: #fff; }
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .header-actions,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .search,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .search {
  width: 205px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b1019;
  color: #6f7c90;
  font-size: 12px;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .kbd,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .kbd {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid #344057;
  border-radius: 5px;
  background: #151c28;
  color: #9eabbf;
  font-size: 9px;
}
body[data-page="home"] .search-icon,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .search-icon,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .search-icon { flex: 0 0 auto; }
body[data-page="home"] .search-label,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .search-label,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .search-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .btn,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .btn {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #111827;
  color: #eef2f7;
  font-size: 13px;
  font-weight: 700;
}
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .btn.primary,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .btn.primary {
  border-color: #ffe66d;
  background: linear-gradient(180deg, #fde047, #facc15);
  color: #16130a;
  box-shadow: 0 10px 28px rgba(250, 204, 21, .18);
}
body[data-page="home"] section[id] {
  scroll-margin-top: 96px;
}

/* Flat canvas: remove ambient neon/glow backgrounds across every surface. */
html, body {
  background-color: #080b12 !important;
  background-image: none !important;
}

/* Landing page section bands: alternate pure-black and soft-charcoal surfaces. */
body[data-page="home"] {
  --landing-band-dark: #06080c;
  --landing-band-light: #111315;
}
body[data-page="home"] .hero,
body[data-page="home"] #three-lenses,
body[data-page="home"] .workflow {
  background-color: var(--landing-band-dark) !important;
}
body[data-page="home"] .metrics,
body[data-page="home"] .cases,
body[data-page="home"] .cta {
  background-color: var(--landing-band-light) !important;
}
body[data-page="home"] .cta {
  padding-top: 86px;
}
body[data-page="home"] .metrics,
body[data-page="home"] .cases,
body[data-page="home"] .workflow,
body[data-page="home"] .cta {
  border-top: 1px solid rgba(255, 255, 255, .045);
}
body[data-page="home"] .footer {
  background-color: var(--landing-band-dark) !important;
}
body::before, body::after,
body[data-page="home"] .hero::before, body[data-page="home"] .hero::after,
body[data-page="home"] .lens::after,
.utility-hero::before, .utility-hero::after {
  display: none !important;
  background: none !important;
  filter: none !important;
}
body[data-page="home"] .hero,
body[data-page="home"] .cases,
body[data-page="home"] .case.featured,
body[data-page="home"] .workflow,
body[data-page="home"] .cta,
body[data-page="home"] .cta-box,
.chapter-card.ready,
.utility-hero,
.roadmap-section,
.utility-section {
  background-image: none !important;
}
body[data-page="home"] .case.featured { background-color: #0f1623 !important; }
body[data-page="home"] .cta-box { background-color: #111720 !important; }
.chapter-card.ready { background-color: #0f1724 !important; }
.brand-mark, .u-mark, .eyebrow i, .live i { box-shadow: none !important; }

/* Roadmap cards: topic-specific generated artwork with a copy-safe foreground. */
body:is([data-page="roadmap"], [data-page="legal"]) .chapter-card {
  isolation: isolate;
  overflow: hidden;
  background-color: #0f1724;
}
body:is([data-page="roadmap"], [data-page="legal"]) .chapter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(7, 11, 18, .97) 0%, rgba(7, 11, 18, .9) 54%, rgba(7, 11, 18, .55) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, .12) 0%, rgba(7, 11, 18, .88) 100%);
}
body:is([data-page="roadmap"], [data-page="legal"]) .chapter-card-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .78;
  filter: saturate(.78) contrast(1.04) brightness(.82);
  pointer-events: none;
  transition: transform .35s ease, opacity .25s ease;
}
body:is([data-page="roadmap"], [data-page="legal"]) .chapter-card > :not(.chapter-card-art) { position: relative; z-index: 2; }
body:is([data-page="roadmap"], [data-page="legal"]) .chapter-card:hover .chapter-card-art { transform: scale(1.035); opacity: .9; }
body:is([data-page="roadmap"], [data-page="legal"]) #roadmap-grid { margin-top: 28px; }

/* Roadmap hero: category-specific artwork makes each menu context visually distinct. */
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 426px;
  background-color: #080b12 !important;
}
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  filter: saturate(.78) contrast(1.04) brightness(.78);
}
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-scrim {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 10, 16, .99) 0%, rgba(7, 10, 16, .96) 35%, rgba(7, 10, 16, .76) 54%, rgba(7, 10, 16, .35) 100%);
}
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .u-wrap { position: relative; z-index: 2; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero[data-roadmap-filter="foundation"] { --roadmap-hero-accent: #38bdf8; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero[data-roadmap-filter="pattern"] { --roadmap-hero-accent: #a78bfa; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero[data-roadmap-filter="case"] { --roadmap-hero-accent: #facc15; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero[data-roadmap-filter="all"] { --roadmap-hero-accent: #f0b92c; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-stat {
  border-color: color-mix(in srgb, var(--roadmap-hero-accent) 30%, #263247);
  background: rgba(10, 16, 26, .84);
}
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-stats > .hero-stat:nth-child(-n + 2) {
  flex: 0 0 132px;
  min-width: 132px;
}
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero h1 { max-width: 600px; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero p { max-width: 600px; }
/* Reserve the same copy block so a menu-specific title never moves the hero spacing. */
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero [data-roadmap-hero-title] { min-height: 146px; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero [data-roadmap-hero-intro] { min-height: 52px; }
/* The guide button stays in the stat row while the player occupies the hero's right space. */
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-video-text-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 84px;
  border-color: #facc15;
  background: #facc15;
  color: #17130a;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-video-text-button:hover {
  transform: none;
  border-color: #fff2a9;
  background: #ffe36a;
  color: #17130a;
}
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-video-button-eyebrow,
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-video-label {
  display: block;
  color: color-mix(in srgb, var(--roadmap-hero-accent) 74%, #fff);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .1em;
}
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-video-text-button strong { margin-top: 4px; font-size: 13px; line-height: 1.3; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-video-text-button .roadmap-video-button-eyebrow { color: #5b4504; }
body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-video-text-button small { margin-top: 3px; color: #3d3107; font-size: 10px; }
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-player {
  position: absolute;
  z-index: 3;
  top: 50%;
  right: 0;
  width: min(510px, 43%);
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--roadmap-hero-accent) 46%, #3a465a);
  border-radius: 16px;
  background: rgba(8, 13, 22, .9);
  transform: translateY(-50%);
}
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-player .roadmap-video-label { padding: 0 4px 7px; }
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 9px;
  background: #030507;
}
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-player:focus-within {
  border-color: #facc15;
}

@media (max-width: 1200px) {
  body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero [data-roadmap-hero-title] { min-height: 136px; }
  body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-player {
    position: relative;
    top: auto;
    right: auto;
    width: min(100%, 680px);
    margin-top: 28px;
    transform: none;
  }
}
@media (max-width: 680px) {
  body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero .hero-stats > .hero-stat:nth-child(-n + 2) {
    flex-basis: auto;
    min-width: 154px;
  }
  body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero [data-roadmap-hero-title] { min-height: 84px; }
  body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero [data-roadmap-hero-intro] { min-height: 77px; }
}
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 9999;
  padding: 10px 14px; border-radius: 10px; background: #facc15; color: #17130a;
  font-size: 13px; font-weight: 800; transition: none;
}
.skip-link:focus { top: 16px; }
[data-href], [data-search-trigger], .tab, .edit { cursor: pointer; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(250, 204, 21, .85); outline-offset: 3px;
}
.mobile-menu-toggle, .mobile-search-toggle, .article-mobile-toggle, .article-toc-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid #2d394d; border-radius: 11px;
  color: #f8fafc; background: #101722; align-items: center; justify-content: center;
  font: inherit; cursor: pointer;
}
.search-dialog {
  width: min(680px, calc(100vw - 28px)); padding: 0; border: 1px solid #334158;
  border-radius: 18px; background: #0c121d; color: #f8fafc;
  box-shadow: 0 40px 120px rgba(0,0,0,.65);
}
.search-dialog::backdrop { background: rgba(2, 5, 10, .78); backdrop-filter: blur(7px); }
.search-shell { padding: 18px; }
.search-row { display: flex; gap: 10px; align-items: center; }
.search-input {
  width: 100%; height: 52px; border: 1px solid #344158; border-radius: 13px;
  background: #111927; color: #fff; padding: 0 16px; font: inherit; font-size: 15px;
}
.search-close { height: 52px; min-width: 52px; border-radius: 13px; border: 1px solid #344158; background: #111927; color: #d7dfeb; cursor: pointer; }
.search-help { display: flex; justify-content: space-between; color: #718096; font-size: 11px; padding: 10px 4px 0; }
.search-results { max-height: 430px; overflow: auto; padding: 8px 0 0; }
.search-result {
  display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center;
  padding: 13px; margin-top: 7px; border: 1px solid transparent; border-radius: 13px;
  background: #0f1724; color: inherit;
}
.search-result:hover, .search-result.is-active { border-color: rgba(250,204,21,.36); background: #131c2a; }
.search-result-index { width: 38px; height: 38px; border-radius: 10px; background: rgba(250,204,21,.11); color: #facc15; display: grid; place-items: center; font: 700 11px ui-monospace, monospace; }
.search-result b { display: block; font-size: 13px; }
.search-result small { display: block; color: #7f8da1; font-size: 10px; margin-top: 3px; }
.search-result-status { font-size: 9px; color: #8794a7; border: 1px solid #2a3649; border-radius: 999px; padding: 4px 7px; }
.search-empty { color: #8290a4; text-align: center; padding: 50px 15px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 10000; transform: translate(-50%, 18px);
  opacity: 0; pointer-events: none; padding: 11px 16px; border: 1px solid #3a465c;
  border-radius: 12px; background: rgba(13,19,30,.96); color: #e7edf6; font-size: 12px;
  transition: .25s ease; box-shadow: 0 18px 45px rgba(0,0,0,.4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Landing page */
body[data-page="home"] .wrap { width: min(1280px, calc(100% - 40px)); }
body[data-page="home"] .cases {
  background-color: var(--landing-band-light) !important;
  background-image:
    linear-gradient(rgba(92, 108, 116, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 108, 116, .14) 1px, transparent 1px) !important;
  background-position: center top !important;
  background-size: 84px 84px !important;
}
body[data-page="home"] .case[data-href]:hover, body[data-page="home"] .lens[data-href]:hover { transform: translateY(-3px); transition: .22s ease; }
body[data-page="home"] .case.featured .case-chip {
  color: #16130a;
  border-color: #ffe36a;
  background-color: #facc15;
  font-weight: 800;
}
body[data-page="home"] .case-chip {
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
body[data-page="home"] .case:not(.featured)[data-href]:hover .case-chip,
body[data-page="home"] .case:not(.featured)[data-href]:focus-visible .case-chip {
  color: #16130a;
  border-color: #ffe36a;
  background-color: #facc15;
  font-weight: 800;
}

/* Keep artwork inside the card edge and render an opaque outline above it. */
body[data-page="home"] .lens,
body[data-page="home"] .case,
body[data-page="home"] .workflow-box,
body[data-page="home"] .cta-box {
  border-color: transparent !important;
}
body[data-page="home"] .lens {
  background-clip: padding-box !important;
}
body[data-page="home"] .lens::before,
body[data-page="home"] .case::after,
body[data-page="home"] .workflow-box::after,
body[data-page="home"] .cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border: 1px solid #2b323c;
  border-radius: inherit;
  pointer-events: none;
  transition: border-color .22s ease;
}
body[data-page="home"] .cta-box::after {
  border-color: #4f461d;
}
body[data-page="home"] .lens[data-href]:hover::before,
body[data-page="home"] .case[data-href]:hover::after {
  border-color: #5c5125;
}
body[data-page="home"] .lens li,
body[data-page="home"] .case-tags span {
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
body[data-page="home"] .lens[data-href]:hover li,
body[data-page="home"] .case[data-href]:hover .case-tags span {
  color: #f5d96b;
  border-color: #78651e;
  background-color: #24200f;
}
body[data-page="home"] .case-art,
body[data-page="home"] .section-art {
  clip-path: inset(1px round 17px);
}
body[data-page="home"] .workflow-art {
  clip-path: inset(1px round 21px);
}
body[data-page="home"] .cta-art {
  clip-path: inset(1px round 23px);
}
body[data-page="home"] .hero {
  isolation: isolate;
  overflow: hidden;
}
body[data-page="home"] .hero-background-media,
body[data-page="home"] .hero-video-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
body[data-page="home"] .hero-background-media { z-index: 0; background: #080b12; }
body[data-page="home"] .hero-background-media img,
body[data-page="home"] .hero-background-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
body[data-page="home"] .hero-background-media img {
  opacity: .38;
  filter: saturate(.72) contrast(1.06) brightness(.62);
  transition: opacity .35s ease;
}
body[data-page="home"] .hero-background-video {
  opacity: .18;
  filter: saturate(.84) contrast(1.04) brightness(.88);
  transition: opacity .6s ease;
}
body[data-page="home"] .hero-background-media.is-playing img { opacity: 0; }
body[data-page="home"] .hero-background-media.is-playing .hero-background-video { opacity: .82; }
body[data-page="home"] .hero-video-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 11, 18, .97) 0%, rgba(8, 11, 18, .86) 34%, rgba(8, 11, 18, .40) 70%, rgba(8, 11, 18, .46) 100%),
    linear-gradient(180deg, rgba(8, 11, 18, .30) 0%, rgba(8, 11, 18, .12) 46%, rgba(8, 11, 18, .82) 100%);
}
body[data-page="home"] .hero-video-control {
  position: absolute;
  right: max(18px, calc((100% - 1280px) / 2));
  bottom: 16px;
  z-index: 4;
  min-width: 38px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid #343d49;
  border-radius: 999px;
  background: rgba(8, 12, 19, .86);
  color: #aeb8c5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
body[data-page="home"] .hero-video-control:hover,
body[data-page="home"] .hero-video-control:focus-visible {
  color: #f5d96b;
  border-color: #78651e;
  background-color: #24200f;
}
body[data-page="home"] .hero-video-control[data-state="blocked"] {
  color: #f5d96b;
  border-color: #78651e;
}
body[data-page="home"] .hero > .wrap { position: relative; z-index: 2; }
body[data-page="home"] .hero-visual {
  position: relative; min-width: 0; margin: 0;
  overflow: hidden; border: 1px solid #2a3443; border-radius: 24px; background: #15191e; cursor: pointer;
}
body[data-page="home"] .hero-visual:focus-visible { outline: 2px solid #facc15; outline-offset: 4px; }
body[data-page="home"] .hero-visual-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #11151a;
}
body[data-page="home"] .hero-visual img,
body[data-page="home"] .hero-visual-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .28s ease;
}
body[data-page="home"] .hero-visual img { z-index: 0; opacity: 1; }
body[data-page="home"] .hero-visual-video {
  z-index: 1;
  opacity: 0;
  object-fit: contain;
  object-position: center;
  background-color: #11151a;
}
body[data-page="home"] .hero-visual.is-hover-playing img { opacity: 0; }
body[data-page="home"] .hero-visual.is-hover-playing .hero-visual-video { opacity: 1; }
body[data-page="home"] .hero-visual-cue {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid #3b4552;
  border-radius: 999px;
  background: rgba(8, 12, 19, .86);
  color: #c2cbd6;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em;
  backdrop-filter: blur(10px);
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
body[data-page="home"] .hero-visual:hover .hero-visual-cue,
body[data-page="home"] .hero-visual:focus-visible .hero-visual-cue,
body[data-page="home"] .hero-visual.is-hover-playing .hero-visual-cue {
  color: #f5d96b;
  border-color: #78651e;
  background-color: #24200f;
}
body[data-page="home"] .hero-visual figcaption {
  position: relative; left: auto; right: auto; bottom: auto; display: flex; align-items: center;
  justify-content: center; gap: 8px; min-height: 50px; padding: 10px 14px; border: 0; border-top: 1px solid #39414a;
  z-index: 3; border-radius: 0; background: #0c0f13; color: #c2c8cf;
  font: 700 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em;
}
body[data-page="home"] .hero-visual figcaption i { color: #c69f24; font-style: normal; }

/* Featured cases: topic artwork stays decorative beneath a high-contrast copy layer. */
body[data-page="home"] .case {
  isolation: isolate;
  background-color: #0f1623;
}
body[data-page="home"] .case::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 11, 18, .80) 0%, rgba(7, 11, 18, .70) 52%, rgba(7, 11, 18, .94) 100%),
    linear-gradient(105deg, rgba(7, 11, 18, .84) 0%, rgba(7, 11, 18, .40) 100%);
}
body[data-page="home"] .case.featured::before {
  background:
    linear-gradient(180deg, rgba(7, 11, 18, .94) 0%, rgba(7, 11, 18, .76) 30%, rgba(7, 11, 18, .24) 62%, rgba(7, 11, 18, .92) 100%),
    linear-gradient(105deg, rgba(7, 11, 18, .80) 0%, rgba(7, 11, 18, .28) 100%);
}
body[data-page="home"] .case-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .76;
  filter: saturate(.76) contrast(1.05) brightness(.84);
  pointer-events: none;
  transform: scale(1.001);
  transition: transform .35s ease, opacity .25s ease;
}
body[data-page="home"] .case.featured .case-art {
  object-position: center 56%;
  opacity: .84;
}
body[data-page="home"] .case > :not(.case-art) {
  position: relative;
  z-index: 2;
}
body[data-page="home"] .case:hover .case-art {
  transform: scale(1.035);
  opacity: .9;
}

/* Learning flow and roadmap CTA: generated, text-free artwork under copy-safe overlays. */
body[data-page="home"] .workflow-box,
body[data-page="home"] .cta-box {
  isolation: isolate;
  position: relative;
  overflow: hidden;
}
body[data-page="home"] .workflow-box::before,
body[data-page="home"] .cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
body[data-page="home"] .workflow-box::before {
  background:
    linear-gradient(90deg, rgba(8, 12, 19, .96) 0%, rgba(8, 12, 19, .86) 34%, rgba(8, 12, 19, .60) 100%),
    linear-gradient(180deg, rgba(8, 12, 19, .28) 0%, rgba(8, 12, 19, .68) 100%);
}
body[data-page="home"] .cta-box::before {
  background:
    linear-gradient(90deg, rgba(8, 12, 19, .97) 0%, rgba(8, 12, 19, .90) 40%, rgba(8, 12, 19, .58) 68%, rgba(8, 12, 19, .77) 100%),
    linear-gradient(180deg, rgba(8, 12, 19, .20) 0%, rgba(8, 12, 19, .70) 100%);
}
body[data-page="home"] .section-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: saturate(.72) contrast(1.06) brightness(.78);
  transform: scale(1.002);
  transition: transform .5s ease, opacity .3s ease;
}
body[data-page="home"] .workflow-art {
  object-position: center 61%;
  opacity: .72;
}
body[data-page="home"] .cta-art {
  object-position: center 63%;
  opacity: .78;
}
body[data-page="home"] .workflow-box > :not(.section-art),
body[data-page="home"] .cta-box > :not(.section-art) {
  position: relative;
  z-index: 2;
}
body[data-page="home"] .workflow-box:hover .section-art,
body[data-page="home"] .cta-box:hover .section-art {
  transform: scale(1.025);
}
body[data-page="home"] .step-num,
body[data-page="home"] .step b,
body[data-page="home"] .step small {
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
body[data-page="home"] .step:hover .step-num {
  color: #16130a;
  border-color: #ffe36a;
  background-color: #facc15;
  transform: translateY(-3px);
}
body[data-page="home"] .step:hover b {
  color: #f5d96b;
}
body[data-page="home"] .step:hover small {
  color: #c6af61;
}
body[data-page="home"] .cta-actions .btn.ghost {
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
body[data-page="home"] .cta-actions .btn.ghost:hover,
body[data-page="home"] .cta-actions .btn.ghost:focus-visible {
  color: #f7dc73;
  border-color: #7b681f;
  background-color: #24200f;
  transform: translateY(-2px);
}

/* Three lenses: generated, text-free architecture artwork with a copy-safe overlay. */
body[data-page="home"] .lens {
  --lens-image: none;
  background-color: #0c121d;
  background-image:
    linear-gradient(100deg, rgba(7, 11, 18, .97) 0%, rgba(7, 11, 18, .88) 54%, rgba(7, 11, 18, .52) 100%),
    linear-gradient(180deg, rgba(7, 11, 18, .14) 0%, rgba(7, 11, 18, .78) 100%),
    var(--lens-image) !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: transform .22s ease, border-color .22s ease, background-size .32s ease;
}
body[data-page="home"] .lens-understand { --lens-image: url("../images/lenses/concept-understanding.webp"); }
body[data-page="home"] .lens-interview { --lens-image: url("../images/lenses/interview-design.webp"); }
body[data-page="home"] .lens-practice { --lens-image: url("../images/lenses/production-practice.webp"); }
body[data-page="home"] .lens > * { position: relative; z-index: 1; }

/* Primary actions: clear hover, keyboard focus, and press feedback without a neon glow. */
body[data-page="home"] .btn.primary,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .btn.primary,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .btn.primary,
body:is([data-page="roadmap"], [data-page="legal"]) .u-btn.primary,
body:is([data-page="tools"], [data-page="updates"]) .u-btn.primary {
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
body[data-page="home"] .btn.primary:hover,
body[data-page="home"] .btn.primary:focus-visible,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .btn.primary:hover,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .btn.primary:focus-visible,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .btn.primary:hover,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .btn.primary:focus-visible,
body:is([data-page="roadmap"], [data-page="legal"]) .u-btn.primary:hover,
body:is([data-page="roadmap"], [data-page="legal"]) .u-btn.primary:focus-visible,
body:is([data-page="tools"], [data-page="updates"]) .u-btn.primary:hover,
body:is([data-page="tools"], [data-page="updates"]) .u-btn.primary:focus-visible {
  transform: translateY(-2px);
  border-color: #fff0a3;
  background: linear-gradient(180deg, #fff18a, #facc15);
  box-shadow: 0 10px 20px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .48);
}
body[data-page="home"] .btn.primary:active,
body:is([data-page="roadmap"], [data-page="legal"]) .atlas-global-header .btn.primary:active,
body:is([data-page="tools"], [data-page="updates"]) .atlas-global-header .btn.primary:active,
body:is([data-page="roadmap"], [data-page="legal"]) .u-btn.primary:active,
body:is([data-page="tools"], [data-page="updates"]) .u-btn.primary:active {
  transform: translateY(0) scale(.98);
  box-shadow: inset 0 2px 0 rgba(132, 98, 0, .22);
}

/* Featured cases heading follows the same title rhythm as the other landing sections. */
body[data-page="home"] .cases-head h2 {
  margin: 13px 0 12px;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: -.045em;
}
body[data-page="home"] .cases-head p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}

/* Live briefing: a restrained signal board that turns external news into Atlas learning paths. */
body[data-page="home"] .live-briefing {
  position: relative;
  scroll-margin-top: 92px;
  padding: 96px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background-color: #090e15;
  background-image:
    linear-gradient(rgba(102, 125, 151, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 125, 151, .09) 1px, transparent 1px),
    linear-gradient(180deg, rgba(13, 19, 29, .76), rgba(7, 11, 18, .94));
  background-size: 42px 42px, 42px 42px, 100% 100%;
}
body[data-page="home"] .live-briefing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1280px, 100%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(250, 204, 21, .52), transparent);
}
body[data-page="home"] .live-briefing-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 30px;
}
body[data-page="home"] .live-briefing h2 {
  margin: 13px 0 12px;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: -.045em;
}
body[data-page="home"] .live-briefing-head > div:first-child > p {
  max-width: 680px;
  margin: 0;
  color: #8f9caf;
  font-size: 14px;
  line-height: 1.7;
}
body[data-page="home"] .live-briefing-meta {
  display: flex;
  min-width: 250px;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
body[data-page="home"] .live-briefing .updates-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #9eabba;
  font: 700 10px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .02em;
}
body[data-page="home"] .live-briefing .updates-status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, .10);
}
body[data-page="home"] .live-briefing-filter {
  margin-bottom: 18px;
}
body[data-page="home"] .live-briefing-filter button {
  min-height: 34px;
  border-color: #344257;
  background: rgba(12, 18, 28, .86);
  color: #9ca9ba;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
body[data-page="home"] .live-briefing-filter button:hover,
body[data-page="home"] .live-briefing-filter button:focus-visible {
  border-color: #8b7420;
  background-color: #24200f;
  color: #f8df79;
}
body[data-page="home"] .live-briefing-filter button[aria-pressed="true"] {
  border-color: #facc15;
  background: #facc15;
  color: #151108;
}
body[data-page="home"] .live-briefing-grid {
  counter-reset: briefing-card;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
body[data-page="home"] .live-briefing-grid:empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed #344257;
  border-radius: 18px;
  background: rgba(8, 13, 21, .72);
}
body[data-page="home"] .live-briefing-grid:empty::before {
  content: "REST API에서 최신 시스템 디자인 브리핑을 확인하고 있습니다.";
  max-width: 320px;
  color: #758398;
  font: 700 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
}
body[data-page="home"] .live-briefing-grid .updates-list__item {
  counter-increment: briefing-card;
}
body[data-page="home"] .live-briefing-grid .updates-card {
  position: relative;
  min-height: 365px;
  overflow: hidden;
  border-color: #29374a;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(17, 25, 38, .96), rgba(9, 15, 24, .98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
body[data-page="home"] .live-briefing-grid .updates-card::before {
  content: "SIGNAL / " counter(briefing-card, decimal-leading-zero);
  display: block;
  width: max-content;
  margin-bottom: 2px;
  color: #d2b847;
  font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}
body[data-page="home"] .live-briefing-grid .updates-card:hover,
body[data-page="home"] .live-briefing-grid .updates-card:focus-within {
  border-color: #8a7428;
  background:
    linear-gradient(180deg, rgba(31, 29, 15, .96), rgba(14, 16, 17, .98));
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, .10);
}
body[data-page="home"] .live-briefing-grid .updates-card__meta {
  min-height: 48px;
  align-content: flex-start;
  color: #8796aa;
  font-size: 10px;
}
body[data-page="home"] .live-briefing-grid .updates-card__tag {
  border-color: #62551f;
  color: #ead56d;
}
body[data-page="home"] .live-briefing-grid .updates-card h3 {
  display: -webkit-box;
  min-height: 81px;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body[data-page="home"] .live-briefing-grid .updates-card h3 a:hover {
  color: #fde68a;
  text-decoration: none;
}
body[data-page="home"] .live-briefing-grid .updates-card__summary {
  display: -webkit-box;
  overflow: hidden;
  color: #a6b3c4;
  font-size: 13px;
  line-height: 1.7;
  word-break: keep-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
body[data-page="home"] .live-briefing-grid .updates-card__why {
  display: -webkit-box;
  overflow: hidden;
  border-left-width: 2px;
  color: #c5ced9;
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
body[data-page="home"] .live-briefing-grid .updates-card__chapters {
  gap: 6px;
}
body[data-page="home"] .live-briefing-grid .updates-card__chapters a {
  border-color: #315065;
  color: #8ee6f1;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
body[data-page="home"] .live-briefing-grid .updates-card__chapters a:hover,
body[data-page="home"] .live-briefing-grid .updates-card__chapters a:focus-visible {
  border-color: #8a7428;
  background-color: #24200f;
  color: #f8df79;
}
body[data-page="home"] .live-briefing-grid .updates-card__footer {
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: #758398;
  font-size: 10px;
}
body[data-page="home"] .live-briefing-empty,
body[data-page="home"] .live-briefing-noscript {
  color: #9aa7b8;
}
body[data-page="home"] .live-briefing-noscript a { color: #fde68a; }

/* Footer typography: use one readable scale across landing, utility, and article pages. */
body[data-page="home"] .footer {
  height: auto;
  min-height: 0;
  padding: 72px 0;
}
body[data-page="home"] .footer .wrap { height: auto; }
body[data-page="home"] .foot-left p {
  max-width: 430px;
  margin-top: 14px;
  color: #8d99aa;
  font-size: 14px;
  line-height: 1.75;
}
body[data-page="home"] .foot-links {
  grid-template-columns: repeat(3, 138px);
  gap: 28px;
}
body[data-page="home"] .foot-col b {
  margin-bottom: 13px;
  color: var(--yellow);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .02em;
}
body[data-page="home"] .foot-col span {
  margin: 8px 0;
  color: #8c99ab;
  font-size: 13px;
  line-height: 1.5;
}
.utility-footer {
  color: #8592a5;
  font-size: 13px;
  line-height: 1.6;
}
body[data-page="article"] .footer-inner {
  color: #8592a5;
  font-size: 12px;
  line-height: 1.6;
}

/* Article page */
body[data-page="article"] .header { height: 74px; }
body[data-page="article"] .header-inner,
body[data-page="article"] .layout,
body[data-page="article"] .footer-inner {
  width: min(1380px, calc(100% - 36px));
  margin-inline: auto;
}
body[data-page="article"] .header-inner {
  display: flex; align-items: center; height: 74px; padding-inline: 0; gap: 14px;
}
body[data-page="article"] .brand {
  flex: 0 0 260px; width: 260px;
}
body[data-page="article"] .layout {
  display: grid; max-width: none; padding-inline: 0;
  grid-template-columns: 240px minmax(0, 1fr) 210px; gap: 30px;
}
body[data-page="article"] main { min-width: 0; padding-top: 42px; }
body[data-page="article"] section[id] { scroll-margin-top: 94px; }
body[data-page="article"] .diagram { overflow-x: auto; }
body[data-page="article"] .diagram-body { min-width: 820px; }
body[data-page="article"] .diagram > svg { min-height: 0; }
body[data-page="article"] .diagram-head {
  position: relative;
  overflow: hidden;
  gap: 10px;
  padding-right: 10px;
  white-space: nowrap;
}
body[data-page="article"] .diagram-head > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body[data-page="article"] .diagram-head > .diagram-head-title {
  flex: 1 1 auto;
  margin-left: 0;
  overflow: hidden;
  font: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
body[data-page="article"] .diagram-head > span:not(.diagram-head-title) {
  flex: 0 1 auto;
  margin-left: 0;
  text-align: right;
}
body[data-page="article"] .diagram-zoom-trigger {
  position: static;
  z-index: 3;
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 54px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(250, 204, 21, .42);
  border-radius: 8px;
  background: #171a20;
  color: #f8df76;
  font: 800 10px/1 inherit;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
body[data-page="article"] .diagram-zoom-trigger:hover,
body[data-page="article"] .diagram-zoom-trigger:focus-visible {
  border-color: #facc15;
  background: #facc15;
  color: #17130a;
}
.diagram-dialog {
  width: min(1200px, calc(100vw - 40px));
  max-width: none;
  height: min(900px, calc(100dvh - 40px));
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #3b4658;
  border-radius: 20px;
  background: #080d15;
  color: #f5f7fb;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .72);
}
.diagram-dialog::backdrop { background: rgba(2, 5, 10, .84); backdrop-filter: blur(7px); }
.diagram-dialog-shell { display: grid; grid-template-rows: auto minmax(0, 1fr); height: 100%; }
.diagram-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 15px 18px 15px 22px;
  border-bottom: 1px solid #283345;
  background: #0c131e;
}
.diagram-dialog-header small {
  display: block;
  margin-bottom: 5px;
  color: #d5b323;
  font: 800 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}
.diagram-dialog-header h2 { margin: 0; color: #f5f7fb; font-size: 17px; line-height: 1.35; }
.diagram-dialog-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #3a4659;
  border-radius: 11px;
  background: #131b28;
  color: #dce3ed;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.diagram-dialog-close:hover,
.diagram-dialog-close:focus-visible { border-color: #facc15; color: #facc15; }
.diagram-dialog-body {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 22px;
  overscroll-behavior: contain;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    #080d15;
  background-size: 28px 28px;
}
.diagram-dialog-svg {
  display: block;
  width: max(100%, 960px) !important;
  height: auto !important;
  min-width: 960px !important;
  max-width: none !important;
  margin: 0 auto;
}
.diagram-dialog-canvas {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 auto;
  min-width: 0 !important;
  margin: 0 auto;
  transform: none !important;
  transform-origin: top left;
}
.diagram-dialog-canvas .diagram-dialog-svg {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
}
body[data-page="article"] .mode-tabs { position: sticky; top: 74px; z-index: 20; backdrop-filter: blur(14px); }
body[data-page="article"] .tab.saved { color: #6ee7b7; }
body[data-page="article"] .toc a { cursor: pointer; }
body[data-page="article"] .nav-item { text-decoration: none; }
body[data-page="article"] .left {
  position: sticky; top: 74px; align-self: start; display: flex; flex-direction: column;
  width: auto; min-width: 0; height: calc(100dvh - 74px); max-height: calc(100vh - 74px);
  padding: 28px 20px 60px 0; overflow: hidden; overscroll-behavior: contain;
}
body[data-page="article"] :is(.right, .right-rail) { min-width: 0; padding-top: 44px; }
body[data-page="article"] .atlas-learning-nav {
  display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0;
  color: #d8dee8; font-family: inherit;
}
body[data-page="article"] .atlas-learning-head {
  display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px;
  color: #76849a; font: 800 8px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em;
}
body[data-page="article"] .atlas-learning-head b { color: #d0a91f; font-size: 9px; letter-spacing: .04em; }
body[data-page="article"] .atlas-current-topic {
  padding: 13px; border: 1px solid #384253; border-radius: 12px; background: #121925;
}
body[data-page="article"] .atlas-current-topic small { display: block; margin-bottom: 4px; color: #76849a; font-size: 8px; }
body[data-page="article"] .atlas-current-topic strong { display: block; color: #f4f6f9; font-size: 11px; line-height: 1.45; }
body[data-page="article"] .atlas-adjacent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 8px 0 14px; }
body[data-page="article"] .atlas-adjacent-link {
  min-width: 0; padding: 9px; border: 1px solid #2b3546; border-radius: 9px; background: #0e1520;
}
body[data-page="article"] .atlas-adjacent-link small { display: block; color: #69778c; font-size: 7px; }
body[data-page="article"] .atlas-adjacent-link span {
  display: block; overflow: hidden; margin-top: 3px; color: #aeb8c7; font-size: 8px; line-height: 1.35;
  text-overflow: ellipsis; white-space: nowrap;
}
body[data-page="article"] .atlas-adjacent-link.next { text-align: right; }
body[data-page="article"] .atlas-nav-groups {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable;
  padding-right: 4px; border-top: 1px solid #222c3b;
}
body[data-page="article"] .atlas-nav-group { border-bottom: 1px solid #222c3b; }
body[data-page="article"] .atlas-nav-group summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 36px; padding: 0 5px;
  color: #8d9aab; font-size: 9px; font-weight: 750; cursor: pointer; list-style: none;
}
body[data-page="article"] .atlas-nav-group summary::-webkit-details-marker { display: none; }
body[data-page="article"] .atlas-nav-group summary::before { content: "+"; width: 14px; color: #66758a; font: 10px ui-monospace, monospace; }
body[data-page="article"] .atlas-nav-group[open] summary::before { content: "−"; }
body[data-page="article"] .atlas-nav-group summary span { flex: 1; }
body[data-page="article"] .atlas-nav-group summary small { color: #68768b; font: 8px ui-monospace, monospace; }
body[data-page="article"] .atlas-nav-group-links { padding: 0 0 7px; }
body[data-page="article"] .atlas-chapter-link {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 6px;
  min-height: 34px; margin: 2px 0; padding: 5px 7px; border: 1px solid transparent; border-radius: 8px;
  color: #8794a6; font-size: 9px; line-height: 1.35;
}
body[data-page="article"] .atlas-chapter-link:hover { border-color: #354052; background: #121a26; color: #eef2f7; }
body[data-page="article"] .atlas-chapter-link.active {
  border-color: #5c5225; background: #211f16; color: #f4e39d;
}
body[data-page="article"] .atlas-chapter-number { color: #66758b; font: 8px ui-monospace, monospace; }
body[data-page="article"] .atlas-chapter-link.active .atlas-chapter-number { color: #d0a91f; }
body[data-page="article"] .atlas-nav-utilities {
  display: grid; flex: 0 0 auto; grid-template-columns: 1fr; gap: 5px; margin-top: 12px;
}
body[data-page="article"] .atlas-nav-utilities a {
  min-height: 34px; padding: 8px 10px; border: 1px solid #2b3546; border-radius: 8px;
  background: #0e1520; color: #aab5c5; font-size: 9px;
}
body[data-page="article"] .atlas-nav-utilities a:hover { border-color: #4a5568; color: #fff; }
body[data-page="article"] .atlas-progress-card { flex: 0 0 auto; margin-top: 16px; }
body[data-page="home"] .hero-mobile-break { display: none; }

@media (max-width: 1379px) {
  body[data-page="home"] .nav { gap: 18px; }
  body[data-page="home"] .search { width: 170px; }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .nav { gap: 18px; }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .search { width: 170px; }
  body[data-page="home"] h1 { font-size: 52px; }
  body[data-page="article"] .layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  body[data-page="article"] :is(.right, .right-rail) { display: none; }
  body[data-page="article"] .brand { flex-basis: 230px; width: 230px; }
}
@media (max-width: 940px) {
  body[data-page="home"] .header { height: 70px; }
  body[data-page="home"] .nav { display: none; position: fixed; z-index: 90; top: 70px; left: 18px; right: 18px; padding: 14px; border: 1px solid #2c394d; border-radius: 15px; background: rgba(10,15,24,.98); flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
  body[data-page="home"] .nav.is-open { display: flex; }
  body[data-page="home"] .nav a { padding: 12px; border-radius: 9px; }
  body[data-page="home"] .mobile-menu-toggle { display: inline-flex; }
  body[data-page="home"] .mobile-search-toggle { display: inline-flex; }
  body[data-page="home"] .search { display: none; }
  body[data-page="home"] .header-actions .btn { height: 40px; padding: 0 13px; }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header { height: 70px; }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .nav {
    display: none;
    position: fixed;
    z-index: 90;
    top: 70px;
    left: 18px;
    right: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border: 1px solid #2c394d;
    border-radius: 15px;
    background: rgba(10, 15, 24, .98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .nav.is-open { display: flex; }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .nav a { padding: 12px; border-radius: 9px; }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .mobile-menu-toggle { display: inline-flex; }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .mobile-search-toggle { display: inline-flex; }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .search { display: none; }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .header-actions .btn { height: 40px; padding: 0 13px; }
  body[data-page="home"] .hero { padding-top: 54px; }
  body[data-page="home"] .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  body[data-page="home"] .hero-copy br { display: none; }
  body[data-page="home"] .hero-visual { max-width: 700px; width: 100%; margin: 0 auto; }
  body[data-page="home"] .metric-grid { height: auto; grid-template-columns: repeat(2, 1fr); }
  body[data-page="home"] .metric { min-height: 88px; padding-left: 18px; border-bottom: 1px solid rgba(255,255,255,.07); }
  body[data-page="home"] .lens-grid { grid-template-columns: 1fr; }
  body[data-page="home"] .case-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  body[data-page="home"] .case.featured { grid-row: auto; grid-column: 1 / -1; min-height: 430px; }
  body[data-page="home"] .live-briefing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="home"] .live-briefing-head { grid-template-columns: 1fr; gap: 20px; }
  body[data-page="home"] .live-briefing-meta { align-items: flex-start; }
  body[data-page="home"] .workflow-top { grid-template-columns: 1fr; gap: 34px; }
  body[data-page="article"] .crumb { display: none; }
  body[data-page="article"] .layout { grid-template-columns: minmax(0, 1fr); }
  body[data-page="article"] .left { display: none; position: fixed; z-index: 90; left: 0; top: 74px; bottom: 0; width: min(320px, 88vw); overflow: auto; padding: 22px 20px 50px; background: #090e17; border-right: 1px solid #2b374a; box-shadow: 25px 0 70px rgba(0,0,0,.55); }
  body[data-page="article"] .left.is-open { display: block; }
  body[data-page="article"] .article-mobile-toggle { display: inline-flex; margin-right: 10px; }
  body[data-page="article"] .brand { flex: 0 1 auto; width: auto; }
  body[data-page="article"] .top-search { margin-left: auto; }
  body[data-page="article"] main { padding-inline: 8px; }
}
@media (max-width: 680px) {
  body[data-page="home"] .wrap { width: min(100% - 28px, 1280px); }
  body[data-page="home"] .brand-title { font-size: 14px; }
  body[data-page="home"] .brand-title small { display: none; }
  body[data-page="home"] .header-actions .btn.primary { font-size: 0; width: 42px; padding: 0; }
  body[data-page="home"] .header-actions .btn.primary::after { content: "→"; font-size: 17px; }
  body:is([data-page="roadmap"], [data-page="legal"]) #roadmap-grid { margin-top: 22px; }
  body:is([data-page="roadmap"], [data-page="legal"]) .utility-hero { min-height: 0; padding: 62px 0 54px; }
  body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-art { object-position: 67% center; filter: saturate(.68) contrast(1.03) brightness(.64); }
  body:is([data-page="roadmap"], [data-page="legal"]) .roadmap-hero-scrim { background: linear-gradient(90deg, rgba(7, 10, 16, .98) 0%, rgba(7, 10, 16, .93) 57%, rgba(7, 10, 16, .62) 100%); }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .wrap { width: min(100% - 28px, 1280px); }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .brand-title { font-size: 14px; }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .brand-title small { display: none; }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .header-actions .btn.primary { width: 42px; padding: 0; font-size: 0; }
  body:is([data-page="roadmap"], [data-page="tools"], [data-page="legal"], [data-page="updates"]) .atlas-global-header .header-actions .btn.primary::after { content: "→"; font-size: 17px; }
  body[data-page="home"] h1 { font-size: clamp(38px, 12vw, 50px); }
  body[data-page="home"] .hero-mobile-break { display: block; }
  body[data-page="home"] .hero-copy { font-size: 15px; }
  body[data-page="home"] .hero-actions { flex-direction: column; }
  body[data-page="home"] .hero-actions .btn { width: 100%; }
  body[data-page="home"] .micro-row { flex-direction: column; gap: 8px; }
  body[data-page="home"] .hero-visual { border-radius: 17px; }
  body[data-page="home"] .hero-visual figcaption { left: auto; right: auto; bottom: auto; gap: 5px; min-height: 42px; padding: 8px; font-size: 6.5px; }
  body[data-page="home"] .metric-grid { grid-template-columns: 1fr; }
  body[data-page="home"] .metric { border-right: 0; }
  body[data-page="home"] .section, body[data-page="home"] .cases, body[data-page="home"] .live-briefing, body[data-page="home"] .workflow, body[data-page="home"] .cta { padding-top: 64px; padding-bottom: 64px; }
  body[data-page="home"] .section h2 { font-size: 31px; }
  body[data-page="home"] .cases-head h2 { font-size: 31px; }
  body[data-page="home"] .case-grid { grid-template-columns: 1fr; }
  body[data-page="home"] .case.featured { grid-column: auto; min-height: 390px; }
  body[data-page="home"] .live-briefing h2 { font-size: 31px; }
  body[data-page="home"] .live-briefing-grid { grid-template-columns: 1fr; }
  body[data-page="home"] .live-briefing-grid .updates-card { min-height: 0; }
  body[data-page="home"] .live-briefing-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  body[data-page="home"] .live-briefing-filter button { flex: 0 0 auto; white-space: nowrap; }
  body[data-page="home"] .cases-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  body[data-page="home"] .steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  body[data-page="home"] .steps:before { display: none; }
  body[data-page="home"] .workflow-box { padding: 28px 22px; }
  body[data-page="home"] .workflow h2 br { display: block; }
  body[data-page="home"] .cta-box { height: auto; min-height: 0; padding: 34px 24px; flex-direction: column; align-items: flex-start; gap: 24px; }
  body[data-page="home"] .workflow-box::before { background: rgba(8, 12, 19, .80); }
  body[data-page="home"] .cta-box::before { background: linear-gradient(180deg, rgba(8, 12, 19, .74), rgba(8, 12, 19, .91)); }
  body[data-page="home"] .workflow-art { object-position: 62% center; opacity: .58; }
  body[data-page="home"] .cta-art { object-position: 64% center; opacity: .62; }
  body[data-page="home"] .footer { height: auto; padding: 64px 0; }
  body[data-page="home"] .footer .wrap { flex-direction: column; align-items: flex-start; gap: 26px; }
  body[data-page="home"] .foot-links { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  body[data-page="article"] .header-inner { width: calc(100% - 24px); }
  body[data-page="article"] .top-search { width: 42px; font-size: 0; padding: 0; justify-content: center; }
  body[data-page="article"] .top-search::before { content: "⌕"; font-size: 17px; }
  body[data-page="article"] .top-search span { display: none; }
  body[data-page="article"] .top-btn { display: none; }
  body[data-page="article"] .brand { font-size: 12px; }
  body[data-page="article"] .layout { width: calc(100% - 24px); }
  body[data-page="article"] main { padding-top: 36px; }
  body[data-page="article"] h1 { font-size: 36px; }
  body[data-page="article"] .lead { font-size: 14px; }
  body[data-page="article"] .byline { flex-wrap: wrap; line-height: 1.6; }
  body[data-page="article"] .mode-tabs { top: 74px; overflow-x: auto; justify-content: flex-start; }
  body[data-page="article"] .tab { white-space: nowrap; padding-inline: 12px; }
  body[data-page="article"] .summary-grid { grid-template-columns: 1fr; }
  body[data-page="article"] .summary-cell { border-right: 0; border-bottom: 1px solid #27334a; }
  body[data-page="article"] .summary-cell:last-child { border-bottom: 0; }
  body[data-page="article"] .flow-list { grid-template-columns: 1fr; }
  body[data-page="article"] .failure-grid { grid-template-columns: 1fr; }
  body[data-page="article"] .diagram,
  body[data-page="article"] .diagram-body { min-width: 0; }
  body[data-page="article"] .diagram { overflow-x: hidden; }
  body[data-page="article"] .diagram svg:not(.diagram-dialog-svg) {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
  }
  body[data-page="article"] .diagram svg:not(.diagram-dialog-svg) > rect[fill^="url("] { fill: transparent; }
  body[data-page="article"] .diagram.is-fitted-canvas .diagram-body { top: 50px; transform-origin: top left; }
  body[data-page="article"] .diagram-head { padding-right: 10px; }
  body[data-page="article"] .diagram-head > span:not(.diagram-head-title) { display: none; }
  .diagram-dialog { width: calc(100vw - 16px); height: calc(100dvh - 16px); border-radius: 15px; }
  .diagram-dialog-header { min-height: 68px; padding: 12px 12px 12px 16px; }
  .diagram-dialog-header h2 { max-width: 250px; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
  .diagram-dialog-body { padding: 14px; }
  .diagram-dialog-svg { width: 900px !important; min-width: 900px !important; }
  .diagram-dialog-canvas { min-width: 850px !important; }
  .diagram-dialog-canvas .diagram-dialog-svg { width: 100% !important; min-width: 0 !important; }
  body[data-page="article"] .table { overflow-x: auto; }
  body[data-page="article"] .tr { min-width: 680px; }
  body[data-page="article"] .section-title-row { align-items: flex-start; gap: 10px; }
  body[data-page="article"] .section-title-row h2 { font-size: 27px; }
  body[data-page="article"] .interview { padding: 18px; }
  body[data-page="article"] .answer-row { flex-wrap: wrap; }
  body[data-page="article"] .footer { height: auto; padding: 24px 0; }
  body[data-page="article"] .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .hero-background-video { transition: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Publication transparency: every public page exposes policies, and every learning page exposes its source trail. */
.site-legal-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 20px auto 0;
  color: #93a0b3;
  font-size: 12px;
  line-height: 1.5;
}
.site-legal-links a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease;
}
.site-legal-links a:hover,
.site-legal-links a:focus-visible { color: #fde047; }
.site-language-disclosure {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 0;
  color: #8592a5;
  font-size: 12px;
  line-height: 1.65;
}
.site-language-disclosure strong { color: #fde68a; }
body[data-page="home"] .site-language-disclosure { width: min(1280px, calc(100% - 40px)); }
body[data-page="article"] .site-language-disclosure { width: min(1380px, calc(100% - 36px)); font-size: 11px; }
body[data-page="home"] .footer > .site-legal-links {
  width: min(1280px, calc(100% - 40px));
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.utility-footer > .site-legal-links {
  width: min(1180px, calc(100% - 40px));
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
body[data-page="article"] .footer > .site-legal-links {
  width: min(1380px, calc(100% - 36px));
  padding-top: 15px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
}
body[data-page="legal"] .utility-footer { padding: 34px 0; }

body[data-page="article"] .article-provenance {
  margin-top: 32px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid #344055;
  border-radius: 18px;
  background: #0c121c;
}
body[data-page="article"] .article-provenance-head span {
  color: #facc15;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .14em;
}
body[data-page="article"] .article-provenance h2 {
  margin: 10px 0 0;
  color: #f7fafc;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -.04em;
}
body[data-page="article"] .article-provenance h3 {
  margin: 28px 0 10px;
  color: #e9eef6;
  font-size: 16px;
}
body[data-page="article"] .article-provenance-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 20px 0 0;
}
body[data-page="article"] .article-provenance-meta div {
  padding: 13px;
  border: 1px solid #293549;
  border-radius: 11px;
  background: #101824;
}
body[data-page="article"] .article-provenance-meta dt {
  margin-bottom: 5px;
  color: #7e8da2;
  font-size: 10px;
}
body[data-page="article"] .article-provenance-meta dd {
  margin: 0;
  color: #c4cfde;
  font-size: 12px;
  line-height: 1.65;
}
body[data-page="article"] .article-provenance-sources {
  margin: 0;
  padding-left: 18px;
  color: #aebbd0;
  font-size: 12px;
  line-height: 1.75;
}
body[data-page="article"] .article-provenance-sources a,
body[data-page="article"] .article-provenance-correction a { color: #fde68a; text-decoration: underline; text-underline-offset: 3px; }
body[data-page="article"] .article-provenance-correction {
  margin: 18px 0 0;
  color: #93a0b2;
  font-size: 12px;
}

/* Differentiation pilot: a decision record and an interview/practice boundary.
   These are editorial summaries of the existing article, not replacement content or controls. */
body[data-page="article"] section.article-decision-module,
body[data-page="article"] section.article-interview-practice {
  margin: 0 0 42px;
  /* Mobile mode tabs can wrap to a taller sticky row; keep anchor targets clear. */
  scroll-margin-top: 168px;
  padding: clamp(22px, 3.2vw, 32px);
  border: 1px solid #344055;
  border-radius: 18px;
  background: #0c121c;
}
body[data-page="article"] .article-decision-module {
  border-color: rgba(250, 204, 21, .32);
  background: linear-gradient(145deg, rgba(250, 204, 21, .055), #0c121c 44%);
}
body[data-page="article"] .article-decision-head > span,
body[data-page="article"] .article-interview-practice-head > span {
  display: block;
  color: var(--yellow);
  font: 800 10px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}
body[data-page="article"] .article-decision-head h2,
body[data-page="article"] .article-interview-practice-head h2 {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.3;
  letter-spacing: -.04em;
}
body[data-page="article"] .article-decision-head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
body[data-page="article"] .article-decision-assumptions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}
body[data-page="article"] .article-decision-assumption {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #2b374b;
  border-radius: 11px;
  background: #101824;
}
body[data-page="article"] .article-decision-assumption span,
body[data-page="article"] .article-decision-assumption small {
  display: block;
  color: #79879b;
  font-size: 9px;
  line-height: 1.45;
}
body[data-page="article"] .article-decision-assumption strong {
  display: block;
  margin: 5px 0 7px;
  overflow-wrap: anywhere;
  color: #edf2f8;
  font-size: 13px;
  line-height: 1.35;
}
body[data-page="article"] .article-decision-assumption small {
  width: fit-content;
  padding: 2px 6px;
  border: 1px solid rgba(250, 204, 21, .25);
  border-radius: 999px;
  color: #fde68a;
  font-size: 8px;
}
body[data-page="article"] .article-decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
body[data-page="article"] .article-decision-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid #2b374b;
  border-radius: 14px;
  background: #101824;
}
body[data-page="article"] .article-decision-panel.is-choice { border-top-color: var(--yellow); }
body[data-page="article"] .article-decision-panel.is-tradeoff { border-top-color: #7e8da2; }
body[data-page="article"] .article-decision-label,
body[data-page="article"] .article-interview-practice-label {
  display: block;
  color: #fde68a;
  font: 800 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .1em;
}
body[data-page="article"] .article-decision-panel h3 {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: #f4f7fb;
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -.025em;
}
body[data-page="article"] .article-decision-panel p,
body[data-page="article"] .article-interview-practice-grid p {
  margin: 9px 0 0;
  color: #a6b2c2;
  font-size: 11px;
  line-height: 1.7;
}
body[data-page="article"] .article-decision-panel h4 {
  margin: 20px 0 0;
  padding-top: 15px;
  border-top: 1px solid #283449;
  color: #e0e7f0;
  font-size: 11px;
}
body[data-page="article"] .article-decision-panel ul,
body[data-page="article"] .article-interview-practice-grid ul {
  margin: 9px 0 0;
  padding-left: 18px;
  color: #909eb2;
  font-size: 10px;
  line-height: 1.75;
}
body[data-page="article"] .article-decision-panel li + li,
body[data-page="article"] .article-interview-practice-grid li + li { margin-top: 5px; }
body[data-page="article"] .article-editorial-scene {
  margin: 16px 0 0;
  padding: clamp(19px, 2.6vw, 26px);
  border: 1px solid #334159;
  border-left: 3px solid var(--yellow);
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(250, 204, 21, .055), #0d141f 48%);
}
body[data-page="article"] .article-editorial-scene-label {
  display: block;
  color: #fde68a;
  font: 800 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em;
}
body[data-page="article"] .article-editorial-scene h3 {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
  color: #f4f7fb;
  font-size: clamp(17px, 2.2vw, 21px);
  line-height: 1.42;
  letter-spacing: -.03em;
  word-break: keep-all;
}
body[data-page="article"] .article-editorial-scene > p {
  margin: 10px 0 0;
  color: #a9b5c5;
  font-size: 11px;
  line-height: 1.78;
}
body[data-page="article"] .article-editorial-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
body[data-page="article"] .article-editorial-scene-grid div {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #2b374b;
  border-radius: 10px;
  background: rgba(10, 16, 26, .72);
}
body[data-page="article"] .article-editorial-scene-grid span,
body[data-page="article"] .article-editorial-scene-grid strong {
  display: block;
}
body[data-page="article"] .article-editorial-scene-grid span {
  color: #718096;
  font-size: 8px;
  letter-spacing: .06em;
}
body[data-page="article"] .article-editorial-scene-grid strong {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: #dce5f0;
  font-size: 10px;
  line-height: 1.55;
}
body[data-page="article"] .article-interview-practice {
  background: linear-gradient(145deg, rgba(167, 139, 250, .055), #0c121c 45%);
}
body[data-page="article"] .article-interview-practice-head > span { color: #c4b5fd; }
body[data-page="article"] .article-interview-practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
body[data-page="article"] .article-interview-practice-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid #2b374b;
  border-radius: 14px;
  background: #101824;
}
body[data-page="article"] .article-interview-practice-grid article:first-child { border-top-color: #a78bfa; }
body[data-page="article"] .article-interview-practice-grid article:last-child { border-top-color: #60a5fa; }
body[data-page="article"] .article-interview-practice-label { color: #c4b5fd; }
body[data-page="article"] .article-interview-practice-grid article:last-child .article-interview-practice-label { color: #93c5fd; }
@media (max-width: 680px) {
  .site-legal-links { gap: 7px 13px; font-size: 11px; }
  .site-language-disclosure,
  body[data-page="home"] .site-language-disclosure,
  body[data-page="article"] .site-language-disclosure { width: calc(100% - 28px); }
  body[data-page="home"] .footer > .site-legal-links,
  .utility-footer > .site-legal-links { width: calc(100% - 28px); }
  body[data-page="article"] .footer > .site-legal-links { width: calc(100% - 24px); }
  body[data-page="article"] .article-provenance { margin-top: 24px; padding: 20px 17px; }
  body[data-page="article"] .article-provenance-meta { grid-template-columns: 1fr; }
  body[data-page="article"] .article-decision-module,
  body[data-page="article"] .article-interview-practice { margin-bottom: 32px; padding: 20px 17px; }
  body[data-page="article"] .article-decision-assumptions,
  body[data-page="article"] .article-decision-grid,
  body[data-page="article"] .article-editorial-scene-grid,
  body[data-page="article"] .article-interview-practice-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-page="article"] .article-decision-panel,
  body[data-page="article"] .article-interview-practice-grid article { padding: 17px; }
}

/* Shows which document a visitor arrived from when the improvement link carries ?doc=<slug>. */
.contact-document {
  margin: 0 0 20px;
  padding: 12px 15px;
  border: 1px solid rgba(250, 204, 21, .25);
  border-left-width: 3px;
  border-radius: 0 11px 11px 0;
  background: rgba(250, 204, 21, .06);
  color: #cfd7e2;
  font-size: 13px;
  line-height: 1.6;
}
.contact-document a { color: #fde68a; text-decoration: underline; }
.contact-document[hidden] { display: none; }

/* Answer-structure keywords are labels, not controls. They must not look pressable. */
body .answer-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.answer-tag {
  padding: 5px 0 5px 11px;
  border: 0;
  border-left: 2px solid #38455c;
  border-radius: 0;
  background: none;
  color: #93a1b4;
  font-size: 11px;
  font-weight: 500;
  cursor: default;
}
.answer-tag.primary { border-left-color: var(--purple); color: #cbbcff; font-weight: 700; }

/* The interview answer structure is a real disclosure control backed by the manuscript. */
.answer-structure { margin-top: 16px; border: 1px solid #2f3c52; border-radius: 12px; background: rgba(8, 11, 18, .45); }
.answer-structure > summary {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 15px; color: #d7dee9; font-size: 12px; font-weight: 700;
  cursor: pointer; list-style: none;
}
.answer-structure > summary::-webkit-details-marker { display: none; }
.answer-structure > summary::before { content: "▸"; color: var(--yellow); font-size: 11px; transition: transform .15s ease; }
.answer-structure[open] > summary::before { transform: rotate(90deg); }
.answer-structure > summary:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.answer-structure-count { margin-left: auto; color: #7d8b9f; font-size: 10px; font-weight: 500; }
.answer-structure-steps { margin: 0; padding: 0 18px 15px 34px; color: #a9b5c5; font-size: 12px; line-height: 1.75; }
.answer-structure-steps li { margin: 6px 0; }
.answer-structure-note { padding: 0 16px 14px; color: #a9b5c5; font-size: 12px; line-height: 1.75; }
.answer-structure-note p { margin: 0 0 10px; }
.answer-structure-note p:last-child { margin-bottom: 0; }
