:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --surface-3: #e6edf5;
  --text: #142231;
  --muted: #607080;
  --line: #d8e1ea;
  --primary: #0b4f6c;
  --primary-2: #0f6d8d;
  --green: #138a72;
  --green-2: #0b6a55;
  --orange: #d96c16;
  --purple: #6b4caf;
  --red: #b84545;
  --yellow: #c78b00;
  --blue-soft: #e8f3f8;
  --green-soft: #e6f5f0;
  --orange-soft: #fff1e5;
  --purple-soft: #f0ecfa;
  --red-soft: #faeaea;
  --shadow-sm: 0 4px 18px rgba(18, 42, 65, .08);
  --shadow-md: 0 16px 42px rgba(18, 42, 65, .12);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1240px;
  --topbar: 76px;
  --transition: 180ms ease;
}

html[data-theme="dark"] {
  --bg: #0f1720;
  --surface: #17222d;
  --surface-2: #1d2b37;
  --surface-3: #263542;
  --text: #edf5fb;
  --muted: #a9bbc9;
  --line: #314350;
  --primary: #4da2c1;
  --primary-2: #6bb8d2;
  --green: #58c5a8;
  --green-2: #7bd8bd;
  --orange: #f4a45e;
  --purple: #a78be2;
  --red: #ef7c7c;
  --yellow: #f1c75b;
  --blue-soft: #183344;
  --green-soft: #17352f;
  --orange-soft: #3a2a1d;
  --purple-soft: #2c2541;
  --red-soft: #3b2326;
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, .18);
  --shadow-md: 0 16px 42px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 24px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  transition: background var(--transition), color var(--transition);
}
button, input, select { font: inherit; }
a { color: inherit; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 9999;
  padding: 10px 14px;
  color: #fff;
  background: #000;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1200;
  background: transparent;
}
.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--primary-2));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--topbar);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 10px clamp(18px, 4vw, 56px);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  backdrop-filter: blur(18px);
}
.brand { display: flex; gap: 11px; align-items: center; min-width: 235px; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--green));
  box-shadow: var(--shadow-sm);
}
.brand-mark svg { width: 30px; height: 30px; stroke: none; fill: #fff; }
.brand-mark .stem { fill: none; stroke: #dff7ee; stroke-width: 3; }
.brand strong { display: block; font-size: 1.03rem; letter-spacing: .02em; }
.brand span { display: block; color: var(--muted); font-size: .78rem; }
.site-nav { display: flex; justify-content: center; gap: 4px; }
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 9px;
  font-size: .86rem;
  font-weight: 650;
  transition: var(--transition);
}
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: var(--blue-soft); }
.top-actions { display: flex; gap: 7px; }
.icon-button, .nav-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 11px;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  cursor: pointer;
  transition: var(--transition);
}
.icon-button:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); }
.nav-toggle { display: none; }
.nav-toggle span { display: block; width: 19px; height: 2px; background: currentColor; margin: 2px 0; border-radius: 2px; }

.search-panel {
  position: fixed;
  inset: var(--topbar) 0 auto 0;
  z-index: 900;
  padding: 28px 18px 36px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}
.search-shell { max-width: 860px; margin: auto; }
.search-shell > label { display: block; font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; }
.search-input-wrap { position: relative; display: flex; align-items: center; }
.search-input-wrap svg { position: absolute; left: 14px; color: var(--muted); }
.search-input-wrap input {
  width: 100%;
  padding: 15px 62px 15px 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.search-input-wrap input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.search-input-wrap kbd { position: absolute; right: 12px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface-2); }
.search-results { display: grid; gap: 8px; margin-top: 14px; max-height: 50vh; overflow: auto; }
.search-result { display: block; text-decoration: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.search-result:hover { border-color: var(--primary); }
.search-result strong { display: block; margin-bottom: 2px; }
.search-result span { color: var(--muted); font-size: .9rem; }

main { overflow: hidden; }
.hero, .section, .strip, .cta-section, .footer {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}
.hero {
  min-height: 660px;
  padding: clamp(72px, 9vw, 126px) 0 80px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--green-2);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 850;
}
.eyebrow::before, .section-kicker::before { content: ""; width: 24px; height: 2px; background: currentColor; margin-right: 9px; }
.hero h1 { font-size: clamp(2.55rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: -.045em; margin: 18px 0 24px; max-width: 780px; }
.hero p { font-size: 1.13rem; color: var(--muted); max-width: 700px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 45px;
  padding: 11px 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: var(--transition);
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); }
.button.secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.button.tertiary { background: var(--surface-2); border-color: var(--line); color: var(--primary); }
.hero-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 38px; }
.hero-meta div { padding: 14px 12px; border-left: 2px solid var(--line); }
.hero-meta strong { display: block; color: var(--primary); font-size: 1.55rem; }
.hero-meta span { color: var(--muted); font-size: .78rem; }
.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.orbit { position: relative; width: min(430px, 92vw); aspect-ratio: 1; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--primary) 35%, var(--line)); background: radial-gradient(circle at center, color-mix(in srgb, var(--surface) 100%, transparent) 0 29%, transparent 30% 100%); }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid var(--line); }
.orbit::before { inset: 12%; }
.orbit::after { inset: 29%; background: linear-gradient(135deg, var(--primary), var(--green)); box-shadow: var(--shadow-md); }
.orbit-core { position: absolute; inset: 36%; z-index: 2; display: grid; place-content: center; text-align: center; color: #fff; }
.orbit-core span { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.orbit-core strong { font-size: 1.25rem; }
.orbit-item { position: absolute; z-index: 3; padding: 8px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-sm); font-size: .79rem; font-weight: 750; }
.orbit-item.i1 { top: 2%; left: 40%; }
.orbit-item.i2 { top: 21%; right: 1%; }
.orbit-item.i3 { top: 59%; right: 0; }
.orbit-item.i4 { bottom: 2%; left: 39%; }
.orbit-item.i5 { top: 60%; left: -2%; }
.orbit-item.i6 { top: 21%; left: -3%; }
.orbit-item.i7 { bottom: 12%; left: 17%; }
.hero-note { position: absolute; bottom: 0; right: 0; max-width: 330px; display: flex; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-sm); }
.hero-note p { margin: 0; font-size: .85rem; }
.status-dot { flex: 0 0 10px; height: 10px; border-radius: 50%; background: var(--green); margin-top: 6px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 17%, transparent); }

.strip { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.principles { margin-bottom: 36px; }
.section-heading { margin-bottom: 28px; max-width: 850px; }
.section-heading.compact { margin-bottom: 18px; }
.section-heading h2 { font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.15; letter-spacing: -.025em; margin: 8px 0 10px; }
.section-heading p { margin: 0; color: var(--muted); }
.split-heading { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 26px; }
.principle-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.principle-card { padding: 15px 13px; border-radius: 12px; background: var(--surface-2); min-height: 105px; }
.principle-card span { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--blue-soft); color: var(--primary); font-weight: 900; }
.principle-card strong { display: block; margin-top: 11px; font-size: .88rem; }

.section { padding: 94px 0; }
.section.muted { position: relative; }
.section.muted::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; bottom: 0; width: 100vw; transform: translateX(-50%); background: var(--surface-2); border-block: 1px solid var(--line); }

.phase-filter, .role-selector, .quality-tabs, .alphabet-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip, .tab-button {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  padding: 8px 12px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: .85rem;
  transition: var(--transition);
}
.chip:hover, .chip.active, .tab-button:hover, .tab-button[aria-selected="true"] { color: var(--primary); border-color: var(--primary); background: var(--blue-soft); }
.process-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); gap: 22px; align-items: start; }
.process-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stage-card {
  position: relative; padding: 16px; min-height: 146px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; color: var(--text); transition: var(--transition); overflow: hidden;
}
.stage-card::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--phase-color, var(--primary)); transform: scaleX(0); transform-origin: left; transition: var(--transition); }
.stage-card:hover, .stage-card.active { border-color: var(--phase-color, var(--primary)); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.stage-card.active::after { transform: scaleX(1); }
.stage-card .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; background: var(--phase-color, var(--primary)); font-weight: 850; font-size: .8rem; }
.stage-card .phase-label { position: absolute; top: 17px; right: 14px; color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.stage-card strong { display: block; margin: 15px 0 5px; font-size: .95rem; }
.stage-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.stage-detail { position: sticky; top: calc(var(--topbar) + 20px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.stage-detail-head { padding: 23px; color: #fff; background: linear-gradient(135deg, var(--stage-color, var(--primary)), color-mix(in srgb, var(--stage-color, var(--primary)) 65%, #061a28)); }
.stage-detail-head .stage-index { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.stage-detail-head h3 { font-size: 1.65rem; line-height: 1.15; margin: 6px 0 7px; }
.stage-detail-head p { margin: 0; opacity: .85; }
.stage-detail-body { padding: 22px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.detail-block { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.detail-block.full { grid-column: 1 / -1; }
.detail-block small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 5px; }
.detail-block strong { display: block; }
.detail-list { margin: 7px 0 0; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.detail-list li + li { margin-top: 4px; }
.chapter-ref { display: inline-flex; margin-top: 14px; padding: 6px 9px; border-radius: 8px; background: var(--blue-soft); color: var(--primary); font-size: .75rem; font-weight: 800; }

.role-selector { gap: 10px; }
.role-selector .tab-button { border-radius: 12px; padding: 11px 14px; }
.role-panel { display: grid; grid-template-columns: .72fr 1.28fr; gap: 18px; }
.role-summary, .role-actions-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; }
.role-avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--role-color, var(--primary)), color-mix(in srgb, var(--role-color, var(--primary)) 64%, #06253a)); font-size: 1.2rem; font-weight: 900; box-shadow: var(--shadow-sm); }
.role-summary h3 { margin: 16px 0 6px; font-size: 1.5rem; }
.role-summary p { color: var(--muted); }
.role-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.role-tag { padding: 6px 9px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: .76rem; font-weight: 700; }
.role-actions-panel h3 { margin-top: 0; }
.role-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.role-columns h4 { margin: 0 0 8px; font-size: .9rem; color: var(--primary); }
.role-columns ul { margin: 0; padding-left: 18px; color: var(--muted); }
.role-columns li + li { margin-top: 7px; }
.role-alert { margin-top: 18px; padding: 14px; border-left: 4px solid var(--orange); border-radius: 10px; background: var(--orange-soft); }

.filter-tools { display: grid; grid-template-columns: minmax(220px, 1fr) 160px 160px; gap: 9px; min-width: min(100%, 650px); }
.field span { display: block; margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: 750; }
.field input, .field select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 8px 11px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent); }
.artifact-summary { margin-bottom: 15px; color: var(--muted); font-size: .88rem; }
.artifact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.artifact-card { position: relative; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-height: 180px; transition: var(--transition); }
.artifact-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.artifact-code { display: inline-flex; padding: 5px 8px; border-radius: 7px; color: #fff; background: var(--artifact-color, var(--primary)); font-size: .72rem; font-weight: 850; }
.artifact-card h3 { margin: 12px 0 6px; font-size: 1rem; }
.artifact-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.artifact-meta { display: grid; gap: 5px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); font-size: .76rem; }
.artifact-meta span { color: var(--muted); }
.artifact-meta strong { color: var(--text); }
.empty-state { padding: 32px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); }

.gate-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gate-card { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.gate-card::before { content: ""; position: absolute; top: 30px; left: -13px; width: 13px; height: 2px; background: var(--line); }
.gate-card:nth-child(4n + 1)::before { display: none; }
.gate-badge { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 8px; transform: rotate(45deg); border-radius: 7px; color: #253044; background: #ffd45c; font-weight: 900; font-size: .72rem; }
.gate-badge span { transform: rotate(-45deg); }
.gate-card h3 { margin: 15px 0 7px; font-size: 1rem; }
.gate-card p { margin: 0; color: var(--muted); font-size: .82rem; }
.gate-output { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); }
.gate-output small { color: var(--muted); }
.callout { display: flex; gap: 13px; margin-top: 20px; padding: 17px; border-radius: 13px; border: 1px solid var(--line); }
.callout.warning { background: var(--orange-soft); border-color: color-mix(in srgb, var(--orange) 38%, var(--line)); }
.callout-icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--orange); font-weight: 900; }
.callout p { margin: 3px 0 0; color: var(--muted); }

.tool-map { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.tool-card { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tool-head { display: flex; align-items: center; gap: 11px; }
.tool-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--tool-color, var(--primary)); font-weight: 900; }
.tool-card h3 { margin: 0; font-size: 1rem; }
.tool-card p { color: var(--muted); font-size: .84rem; }
.tool-card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: .8rem; }
.traceability-path { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; padding: 18px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), var(--green)); color: #fff; }
.traceability-path span { padding: 6px 9px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; background: rgba(255,255,255,.08); font-size: .78rem; font-weight: 750; }
.traceability-path i { width: 23px; height: 1px; background: rgba(255,255,255,.6); position: relative; }
.traceability-path i::after { content: ""; position: absolute; right: -1px; top: -3px; border-left: 5px solid rgba(255,255,255,.75); border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent; }

.quality-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.quality-panel-head { padding: 22px 24px; background: linear-gradient(135deg, var(--quality-color, var(--primary)), color-mix(in srgb, var(--quality-color, var(--primary)) 64%, #092338)); color: #fff; }
.quality-panel-head h3 { margin: 0 0 5px; }
.quality-panel-head p { margin: 0; opacity: .86; }
.quality-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.quality-item { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quality-item:nth-child(3n) { border-right: none; }
.quality-item h4 { margin: 0 0 7px; }
.quality-item p { margin: 0; color: var(--muted); font-size: .85rem; }
.quality-meta { display: grid; gap: 5px; margin-top: 12px; font-size: .77rem; }
.quality-meta span { color: var(--muted); }

.decision-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.decision-card { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.decision-card .decision-num { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--primary); font-weight: 900; }
.decision-card h3 { margin: 13px 0 6px; }
.decision-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.decision-card dl { margin: 13px 0 0; font-size: .78rem; }
.decision-card dt { color: var(--muted); }
.decision-card dd { margin: 0 0 8px; font-weight: 700; }

.glossary-search { min-width: 290px; }
.alphabet-filter .chip { width: 35px; height: 35px; padding: 0; display: grid; place-items: center; }
.glossary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.glossary-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.glossary-card h3 { margin: 0 0 6px; color: var(--primary); font-size: 1rem; }
.glossary-card p { margin: 0; color: var(--muted); font-size: .84rem; }

.checklist-progress { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 16px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.checklist-progress strong { display: block; font-size: 1.55rem; color: var(--green); }
.checklist-progress span { color: var(--muted); font-size: .78rem; }
.progress-track { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--green), var(--primary-2)); transition: width .3s ease; }
.checklist-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); cursor: pointer; }
.check-item input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--green); }
.check-item strong { display: block; }
.check-item span { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.check-item:has(input:checked) { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); }
.check-item:has(input:checked) strong { text-decoration: line-through; opacity: .75; }

.faq-list { display: grid; gap: 9px; }
.faq-item { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); overflow: hidden; }
.faq-question { width: 100%; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 17px 18px; border: none; background: transparent; color: var(--text); text-align: left; font-weight: 780; cursor: pointer; }
.faq-question span:last-child { font-size: 1.2rem; color: var(--primary); transition: transform var(--transition); }
.faq-question[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
.faq-answer { padding: 0 18px 18px; color: var(--muted); }
.faq-answer p { margin: 0; }

.cta-section { margin-top: 18px; margin-bottom: 60px; padding: 34px; display: flex; justify-content: space-between; gap: 24px; align-items: center; color: #fff; background: linear-gradient(135deg, #073951, #0d6d65); border-radius: 22px; box-shadow: var(--shadow-md); }
.cta-section h2 { margin: 7px 0 8px; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.cta-section p { margin: 0; max-width: 750px; color: rgba(255,255,255,.78); }
.cta-section .section-kicker { color: #bdebdc; }
.cta-actions { display: flex; flex-direction: column; gap: 9px; min-width: 220px; }
.cta-section .button.secondary { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); color: #fff; }

.footer { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 40px; border-top: 1px solid var(--line); }
.footer strong, .footer span { display: block; }
.footer span { color: var(--muted); font-size: .8rem; }
.footer a { color: var(--primary); font-weight: 750; text-decoration: none; }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 500; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--primary); box-shadow: var(--shadow-md); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: var(--transition); }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 1300; transform: translate(-50%, 18px); padding: 11px 15px; color: #fff; background: #142231; border-radius: 10px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: var(--transition); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1120px) {
  .site-nav { display: none; }
  .topbar { grid-template-columns: auto 1fr auto auto; }
  .nav-toggle { display: grid; }
  .site-nav.open { position: absolute; top: calc(100% + 1px); left: 18px; right: 18px; display: grid; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-md); }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 900px; }
  .hero-visual { min-height: 470px; }
  .principle-grid { grid-template-columns: repeat(3, 1fr); }
  .process-layout { grid-template-columns: 1fr; }
  .stage-detail { position: static; }
  .artifact-grid { grid-template-columns: repeat(2, 1fr); }
  .gate-timeline { grid-template-columns: repeat(2, 1fr); }
  .gate-card:nth-child(4n + 1)::before { display: block; }
  .gate-card:nth-child(2n + 1)::before { display: none; }
  .tool-map, .quality-grid, .glossary-grid { grid-template-columns: repeat(2, 1fr); }
  .quality-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .quality-item:nth-child(2n) { border-right: none; }
  .decision-grid { grid-template-columns: repeat(2, 1fr); }
  .split-heading { align-items: stretch; flex-direction: column; }
  .filter-tools { min-width: 0; }
}

@media (max-width: 760px) {
  :root { --topbar: 68px; }
  .topbar { grid-template-columns: 1fr auto auto; gap: 8px; padding: 9px 14px; }
  .brand { min-width: 0; }
  .brand-mark { width: 42px; height: 42px; }
  .brand span { display: none; }
  .top-actions .icon-button:nth-child(2) { display: none; }
  .hero, .section, .strip, .cta-section, .footer { width: min(100% - 24px, var(--max)); }
  .hero { min-height: auto; padding: 62px 0 54px; }
  .hero h1 { font-size: clamp(2.25rem, 11vw, 3.6rem); }
  .hero-meta { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { min-height: 390px; }
  .orbit { width: min(360px, 94vw); }
  .orbit-item { font-size: .68rem; padding: 6px 8px; }
  .hero-note { position: static; margin-top: 12px; }
  .section { padding: 70px 0; }
  .strip { padding: 22px; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .process-rail { grid-template-columns: repeat(2, 1fr); }
  .role-panel, .role-columns, .filter-tools, .artifact-grid, .tool-map, .glossary-grid, .checklist-grid { grid-template-columns: 1fr; }
  .gate-timeline, .decision-grid { grid-template-columns: 1fr; }
  .gate-card::before { display: none !important; }
  .quality-grid { grid-template-columns: 1fr; }
  .quality-item, .quality-item:nth-child(2n), .quality-item:nth-child(3n) { border-right: none; }
  .checklist-progress { grid-template-columns: 90px 1fr; }
  .cta-section, .footer { flex-direction: column; align-items: stretch; }
  .cta-actions { min-width: 0; }
}

@media (max-width: 480px) {
  .process-rail { grid-template-columns: 1fr; }
  .principle-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-block.full { grid-column: auto; }
  .phase-filter, .role-selector, .quality-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .chip, .tab-button { flex: 0 0 auto; }
  .orbit-item.i7 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f5f5f5; --surface-3: #eee; --text: #111; --muted: #444; --line: #ccc; }
  body { background: #fff; font-size: 10pt; }
  .topbar, .search-panel, .reading-progress, .back-to-top, .toast, .hero-actions, .phase-filter, .role-selector, .filter-tools, .alphabet-filter, .quality-tabs, .button, .nav-toggle { display: none !important; }
  .hero, .section, .strip, .cta-section, .footer { width: 100%; }
  .hero { min-height: auto; padding: 0 0 22px; grid-template-columns: 1fr; }
  .hero h1 { font-size: 28pt; }
  .hero-visual { display: none; }
  .section { padding: 26px 0; break-before: page; }
  .strip { box-shadow: none; border-radius: 0; }
  .section.muted::before { display: none; }
  .process-layout, .role-panel { display: block; }
  .stage-detail { margin-top: 16px; position: static; box-shadow: none; }
  .stage-card, .artifact-card, .gate-card, .tool-card, .decision-card, .glossary-card, .check-item, .faq-item { break-inside: avoid; box-shadow: none; }
  .artifact-grid, .glossary-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-answer { display: block !important; }
  .cta-section { color: #111; background: #fff; border: 2px solid #111; border-radius: 0; break-before: page; }
  .cta-section p { color: #333; }
  a[href]::after { content: none !important; }
}
