:root {
  --bg: #F3F6F2;
  --paper: #FFFFFF;
  --ink: #22302B;
  --ink-soft: #5E6D66;
  --green: #2F5D4E;
  --sand: #C9895A;
  --moss: #DDE8DF;
  --line: #D7E0D9;
  --state: #8A6A3B;
  --radius: 6px;
  --shell: 1180px;
  --read: 720px;
  --font-serif: "Source Han Serif SC", "Songti SC", Georgia, serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-num: "SFMono-Regular", "Consolas", "Menlo", monospace;
}

/* ============================================================
   base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

h1 {
  font-size: 40px;
  line-height: 1.28;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 20px;
  line-height: 1.5;
}

p {
  margin: 0 0 14px;
  color: var(--ink);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--sand);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}

/* ============================================================
   layout — header / nav / shell
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #F3F6F2;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--shell);
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--green);
}

.site-nav {
  min-width: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: var(--radius);
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--green);
  background: var(--moss);
}

.site-nav a.is-current {
  color: var(--green);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--sand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.site-main {
  display: block;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.home-main {
  padding-bottom: 72px;
}

.inner-main {
  min-width: 0;
  padding-bottom: 56px;
}

/* ============================================================
   layout — footer
   ============================================================ */

.site-footer {
  margin-top: 40px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 32px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo {
  margin-bottom: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.footer-scope {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.footer-col h3 {
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.footer-col ul li + li {
  margin-top: 8px;
}

.footer-col a {
  display: inline-block;
  padding: 3px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px 28px;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-nav-line {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav-line a {
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-nav-line a:hover {
  color: var(--green);
}

/* ============================================================
   layout — inner page shell (breadcrumb / page-title / grid)
   ============================================================ */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 22px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-title {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
}

.page-header {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-header .page-title {
  margin: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: start;
}

.page-grid {
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
}

.page-title-inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px 22px;
  border-bottom: 1px solid var(--line);
}

.page-title-inner .page-title {
  margin: 0 0 10px;
}

.site-brand-heading {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.page-lead,
.page-lede {
  max-width: var(--read);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.page-status {
  margin-top: 10px;
  font-size: 13px;
  color: var(--state);
}

.page-kicker {
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.04em;
}

/* ============================================================
   components — buttons / links / tags / status
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: #264a3e;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--moss);
  color: var(--green);
  border-color: var(--green);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--green);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.text-link::after {
  content: "→";
  font-size: 13px;
}

.text-link:hover {
  color: var(--sand);
  border-bottom-color: var(--sand);
}

.cell-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  border-bottom: 1px solid transparent;
}

.cell-link::after {
  content: "→";
  font-size: 12px;
}

.cell-link:hover {
  color: var(--sand);
  border-bottom-color: var(--sand);
}

.status-confirm,
.status-supplement,
.status-hold,
.status-tag,
.status-ok,
.status-pending,
.conclusion-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 999px;
  white-space: nowrap;
}

.status-confirm,
.status-ok,
.conclusion-tag--ok {
  background: var(--moss);
  color: var(--green);
}

.status-supplement,
.status-pending,
.conclusion-tag--pending {
  background: #F6E8D8;
  color: var(--state);
}

.status-hold,
.conclusion-tag--skip {
  background: #EFEFEC;
  color: var(--ink-soft);
}

/* ============================================================
   components — section head / figures
   ============================================================ */

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 40px;
  align-items: end;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
}

.section-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0;
}

.section-more {
  margin-top: 22px;
}

.media-figure,
.band-figure,
.notes-figure,
.prep-figure,
.channel-figure,
.check-figure,
.editorial-figure,
.feature-figure,
.theme-figure,
.hero-visual {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--moss);
}

.media-figure img,
.band-figure img,
.notes-figure img,
.prep-figure img,
.channel-figure img,
.check-figure img,
.editorial-figure img,
.feature-figure img,
.theme-figure img,
.hero-visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ============================================================
   pages — home (index)
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  grid-template-areas:
    "copy tasks"
    "visual tasks";
  gap: 24px 40px;
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  grid-area: copy;
  min-width: 0;
}

.hero-eyebrow {
  margin-bottom: 14px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--green);
}

.hero h1 {
  max-width: 18em;
  margin: 0 0 18px;
}

.hero-lead {
  max-width: 36em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-visual {
  grid-area: visual;
  min-width: 0;
}

.hero-visual img {
  aspect-ratio: 16 / 9;
}

.hero-tasks {
  grid-area: tasks;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-tasks-title {
  margin-bottom: 14px;
  font-size: 17px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.task-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.task-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.task-row:hover {
  color: var(--green);
}

.task-row:hover .task-name {
  text-decoration: underline;
}

.task-index {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--sand);
}

.task-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.task-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.task-desc {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.task-arrow {
  font-size: 14px;
  color: var(--ink-soft);
  text-align: right;
}

/* channel band */

.channel-band {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.channel-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}

.channel-cell:hover {
  border-color: var(--green);
}

.channel-name {
  font-size: 17px;
  margin: 0;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-tags li {
  padding: 2px 8px;
  font-size: 12px;
  color: var(--green);
  background: var(--moss);
  border-radius: 4px;
}

.channel-task {
  flex: 1 1 auto;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.band-figure {
  margin-top: 28px;
}

/* curation feature */

.curation-feature {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 40px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.curation-feature .curation-main {
  min-width: 0;
}

.feature-eyebrow {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--green);
  letter-spacing: 0.04em;
}

.curation-main h2 {
  margin-bottom: 18px;
}

.feature-figure {
  margin-bottom: 20px;
}

.feature-actions {
  margin-top: 18px;
}

.related-list {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-list h3 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}

.related-list ul {
  display: flex;
  flex-direction: column;
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.entry-row:last-child {
  border-bottom: 1px solid var(--line);
}

.entry-topic {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.entry-meta {
  grid-column: 1 / 2;
  font-size: 12px;
  color: var(--ink-soft);
}

.entry-status {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  align-self: center;
}

.related-foot {
  margin-top: 16px;
}

/* selection notes */

.selection-notes {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.dimension-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.dimension-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.dimension-name {
  margin: 0;
  font-size: 18px;
}

.dimension-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.notes-figure {
  margin-top: 26px;
}

/* viewing prep */

.viewing-prep {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.prep-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}

.prep-card:hover {
  border-color: var(--green);
}

.prep-scene {
  margin: 0;
  font-size: 17px;
}

.prep-check {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.prep-note {
  flex: 1 1 auto;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.prep-figure {
  margin-top: 26px;
}

/* list check */

.list-check {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.check-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.check-result {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 6px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.check-label {
  grid-row: 1 / 3;
  align-self: start;
  justify-self: start;
}

.check-fields {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.check-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* editorial summary */

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 40px;
  padding: 56px 0 0;
}

.editorial-main {
  min-width: 0;
}

.editorial-main h2 {
  margin-bottom: 16px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.85em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sand);
}

.editorial-more {
  margin-top: 16px;
}

.update-list {
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.update-list h3 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}

.update-list .update-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.update-date {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--state);
}

.update-page {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.update-note {
  grid-column: 2 / 3;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.update-foot {
  margin-top: 14px;
}

/* ============================================================
   pages — channel-map
   ============================================================ */

.channel-main {
  min-width: 0;
}

.channel-main .breadcrumb {
  padding-top: 0;
}

.channel-overview,
.channel-detail,
.channel-boundary,
.channel-path {
  margin-bottom: 44px;
}

.channel-overview h2,
.channel-detail h2,
.channel-boundary h2,
.channel-path h2 {
  margin-bottom: 12px;
}

.channel-index {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.channel-index-row {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 4px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.channel-index-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.channel-index-desc {
  font-size: 13px;
  color: var(--ink-soft);
}

.channel-index-count {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--state);
  padding: 2px 8px;
  background: #F6E8D8;
  border-radius: 999px;
}

.channel-index-row a {
  font-size: 13px;
  color: var(--green);
}

.channel-index-row a:hover {
  color: var(--sand);
  text-decoration: underline;
}

.channel-figure {
  margin: 24px 0 32px;
}

.channel-block {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.channel-block h3 {
  margin: 0 0 8px;
}

.channel-block-desc {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.subclass-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.subclass-item {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.subclass-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.subclass-task {
  display: block;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.channel-block-link {
  margin: 0;
}

.channel-boundary .boundary-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.channel-boundary .boundary-row h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.boundary-diff {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.boundary-entry {
  margin: 0;
  font-size: 13px;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.path-step {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-step-name {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.path-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.channel-aside,
.curation-aside,
.selection-aside,
.prep-aside,
.check-aside,
.editorial-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* ============================================================
   components — aside blocks (shared)
   ============================================================ */

.aside-block {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-block h2 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}

.aside-intro {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.aside-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: aside-step;
}

.aside-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 26px;
  position: relative;
  counter-increment: aside-step;
}

.aside-step::before {
  content: counter(aside-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--sand);
}

.aside-step-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.aside-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.aside-links,
.aside-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-links li a,
.aside-link-list li a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--green);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.aside-links li a:hover,
.aside-link-list li a:hover {
  background: var(--moss);
  border-color: var(--green);
  color: var(--green);
}

.aside-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ============================================================
   pages — curation
   ============================================================ */

.curation-main {
  min-width: 0;
}

.curation-main .breadcrumb {
  padding-top: 0;
}

.theme-intro {
  margin-bottom: 44px;
}

.theme-intro h2 {
  margin-bottom: 16px;
}

.theme-figure {
  margin-bottom: 20px;
}

.theme-intro h3 {
  margin: 22px 0 10px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
}

.scope-exclude {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scope-exclude li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.scope-exclude li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--sand);
}

.section-intro {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.entry-list {
  margin-bottom: 44px;
}

.entry-list .entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.entry-list .entry-row h3 {
  grid-column: 1 / 2;
  margin: 0;
  font-size: 18px;
}

.entry-list .entry-meta {
  grid-column: 1 / 2;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr;
  gap: 4px 8px;
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.entry-list .entry-meta dt {
  font-weight: 600;
  color: var(--ink);
}

.entry-list .entry-meta dd {
  margin: 0;
  color: var(--ink-soft);
}

.entry-list .entry-row > p:not(.entry-link) {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.entry-list .entry-link {
  grid-column: 1 / -1;
  margin: 6px 0 0;
}

.entry-list .entry-row .status-tag {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  align-self: start;
  justify-self: end;
}

.curation-picks {
  margin-bottom: 24px;
}

.pick-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.pick-row:last-child {
  border-bottom: 1px solid var(--line);
}

.pick-row h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.pick-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.reading-order ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: reading-step;
}

.reading-order li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  counter-increment: reading-step;
}

.reading-order li::before {
  content: counter(reading-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--sand);
}

.reading-order strong {
  color: var(--ink);
  font-weight: 600;
}

.next-read ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.next-read-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.next-read-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.next-read-item a {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
}

.next-read-item a:hover {
  color: var(--sand);
}

.next-read-item p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.next-read-item p + p {
  margin-top: 2px;
}

/* ============================================================
   pages — selection-notes
   ============================================================ */

.selection-main {
  min-width: 0;
}

.selection-main .breadcrumb {
  padding-top: 0;
}

.selection-main .media-figure {
  margin-bottom: 32px;
}

.content-section {
  margin-bottom: 44px;
}

.content-section h2 {
  margin-bottom: 12px;
}

.content-section > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.filter-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.filter-block:last-child {
  border-bottom: 1px solid var(--line);
}

.filter-block h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.filter-meta {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 6px 16px;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
}

.filter-meta dt {
  font-weight: 600;
  color: var(--ink);
}

.filter-meta dd {
  margin: 0;
  color: var(--ink-soft);
}

.order-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.order-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.order-index {
  grid-row: 1 / 4;
  font-family: var(--font-num);
  font-size: 22px;
  color: var(--sand);
  line-height: 1.2;
}

.order-row h3 {
  margin: 0;
  font-size: 17px;
}

.order-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.order-next {
  font-size: 13px;
  color: var(--state);
}

.tradeoff-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tradeoff-row {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sand);
  border-radius: var(--radius);
}

.tradeoff-row h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.tradeoff-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.tradeoff-keep {
  margin-top: 6px;
  font-size: 13px;
  color: var(--state);
}

.bridge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.bridge-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bridge-card h3 {
  margin: 0;
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.bridge-card p {
  flex: 1 1 auto;
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.notes-block .note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.note-item {
  position: relative;
  padding: 10px 12px 10px 30px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--bg);
  border-radius: var(--radius);
}

.note-item::before {
  content: "·";
  position: absolute;
  left: 12px;
  top: 6px;
  font-size: 22px;
  line-height: 1;
  color: var(--sand);
}

/* ============================================================
   pages — viewing-prep
   ============================================================ */

.prep-main {
  min-width: 0;
}

.prep-main .breadcrumb {
  padding-top: 0;
}

.scene-section,
.check-section,
.subtitle-section,
.faq-section {
  margin-bottom: 44px;
}

.scene-section > p,
.check-section > p,
.subtitle-section > p,
.faq-section > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.scene-section .prep-figure {
  margin-bottom: 22px;
}

.scene-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.scene-table {
  min-width: 560px;
  font-size: 14px;
}

.scene-table caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.scene-table thead th {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--moss);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.scene-table tbody th {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.scene-table tbody td {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.scene-table tbody tr:last-child th,
.scene-table tbody tr:last-child td {
  border-bottom: none;
}

.scene-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--state);
}

.check-section h2,
.subtitle-section h2,
.faq-section h2 {
  margin-bottom: 12px;
}

.check-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.check-row:last-child {
  border-bottom: 1px solid var(--line);
}

.check-row h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.check-method {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}

.check-fallback {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--state);
}

.subtitle-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.subtitle-row:last-child {
  border-bottom: 1px solid var(--line);
}

.subtitle-row h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.subtitle-options {
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--ink);
}

.subtitle-scene {
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.subtitle-limit {
  margin: 0;
  font-size: 13px;
  color: var(--state);
}

.faq-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  padding-right: 24px;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--font-num);
  font-size: 18px;
  color: var(--green);
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item summary:hover {
  color: var(--green);
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.selfcheck-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: selfcheck;
}

.selfcheck-list li {
  position: relative;
  padding-left: 28px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
  counter-increment: selfcheck;
}

.selfcheck-list li::before {
  content: counter(selfcheck, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--sand);
}

/* ============================================================
   pages — list-check
   ============================================================ */

.check-main {
  min-width: 0;
}

.check-main .breadcrumb {
  padding-top: 0;
}

.check-table-section,
.missing-section,
.conclusion-section,
.limit-section {
  margin-bottom: 44px;
}

.check-table-section > p,
.missing-section > p,
.conclusion-section > p,
.limit-section > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.check-table-section .check-figure {
  margin-bottom: 22px;
}

.field-table {
  font-size: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--moss);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.field-table tbody th {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.field-table tbody td {
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

.missing-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.missing-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.missing-row h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.missing-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.conclusion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.conclusion-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.conclusion-row p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.limit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.limit-item {
  position: relative;
  padding: 12px 14px 12px 34px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.limit-item::before {
  content: "!";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--state);
  border-radius: 50%;
}

.limit-link {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.check-order {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: check-step;
}

.check-order li {
  position: relative;
  padding-left: 28px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
  counter-increment: check-step;
}

.check-order li::before {
  content: counter(check-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--sand);
}

/* ============================================================
   pages — editorial-notes
   ============================================================ */

.editorial-main {
  min-width: 0;
}

.editorial-main .breadcrumb {
  padding-top: 0;
}

.editorial-section {
  margin-bottom: 44px;
}

.editorial-section h2 {
  margin-bottom: 12px;
}

.editorial-section > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.editorial-section .editorial-figure {
  margin-bottom: 22px;
}

.process-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.process-step {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.process-input,
.process-criteria,
.process-output {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.process-criteria {
  color: var(--ink);
}

.process-output {
  color: var(--state);
}

.rule-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.rule-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.rule-row dt {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.rule-row dd {
  margin: 0;
}

.rule-scope,
.rule-check,
.rule-fail {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.rule-check {
  color: var(--ink);
}

.rule-fail {
  color: var(--state);
}

.boundary-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.boundary-item:last-child {
  border-bottom: 1px solid var(--line);
}

.boundary-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.boundary-action,
.boundary-place {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.boundary-place {
  font-size: 13px;
  color: var(--state);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.related-links-label {
  font-size: 13px;
  color: var(--ink-soft);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--green);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.related-links-item:hover {
  background: var(--moss);
  border-color: var(--green);
  color: var(--green);
}

.editorial-section .related-links {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.editorial-section .related-links li {
  width: 100%;
}

.editorial-section .related-links li a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--green);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.editorial-section .related-links li a:hover {
  background: var(--moss);
  border-color: var(--green);
}

.update-table {
  font-size: 13px;
}

.update-table caption {
  padding-bottom: 10px;
  text-align: left;
  font-size: 12px;
  color: var(--ink-soft);
}

.update-table thead th {
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.update-table tbody td {
  padding: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.update-table tbody td:first-child {
  font-family: var(--font-num);
  color: var(--state);
  white-space: nowrap;
}

.update-table tbody tr:last-child td {
  border-bottom: none;
}

.feedback-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: feedback-step;
}

.feedback-steps li {
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
  counter-increment: feedback-step;
}

.feedback-steps li::before {
  content: counter(feedback-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--sand);
}

.feedback-steps li a {
  color: var(--green);
}

.feedback-steps li a:hover {
  color: var(--sand);
  text-decoration: underline;
}

.feedback-note {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============================================================
   pages — 404
   ============================================================ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 64px 24px 80px;
}

.error-panel {
  width: 100%;
  max-width: 620px;
  padding: 40px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
}

.error-code {
  font-family: var(--font-num);
  font-size: 44px;
  line-height: 1;
  color: var(--sand);
  margin-bottom: 14px;
}

.error-panel h1 {
  font-size: 28px;
  margin-bottom: 14px;
}

.error-lead {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.error-hint {
  font-size: 14px;
  line-height: 1.8;
  color: var(--state);
  margin-top: 10px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.error-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  color: #fff;
  background: var(--green);
  border-radius: var(--radius);
}

.error-home:hover {
  background: #264a3e;
  color: #fff;
}

.error-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-link:hover {
  background: var(--moss);
  border-color: var(--green);
  color: var(--green);
}

/* ============================================================
   components — back to top
   ============================================================ */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 16px;
  color: var(--green);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(34, 48, 43, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top::before {
  content: "↑";
  font-family: var(--font-num);
  font-size: 16px;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--green);
  color: var(--green);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1080px) {
  .channel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subclass-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bridge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
    padding: 10px 20px;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    border-radius: var(--radius);
  }

  .site-nav a.is-current {
    box-shadow: inset 3px 0 0 var(--sand);
  }

  .site-main {
    padding: 0 20px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "visual"
      "tasks";
    gap: 22px;
    padding: 36px 0 44px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-visual img {
    aspect-ratio: 16 / 10;
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curation-feature,
  .editorial {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 44px 0;
  }

  .page-layout,
  .page-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .channel-aside,
  .curation-aside,
  .selection-aside,
  .prep-aside,
  .check-aside,
  .editorial-aside {
    order: 2;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: 36px 20px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 16px 20px 24px;
  }

  .page-title {
    font-size: 32px;
  }

  .page-title-inner {
    padding: 16px 20px 20px;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .channel-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .prep-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .subclass-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .path-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .bridge-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dimension-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .check-result {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .check-label {
    grid-row: auto;
  }

  .channel-index-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .channel-index-desc {
    grid-column: 1 / -1;
  }

  .channel-index-count {
    justify-self: end;
  }

  .channel-index-row a {
    grid-column: 1 / -1;
  }

  .entry-list .entry-meta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .filter-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-meta dt {
    margin-top: 6px;
  }

  .conclusion-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .update-list .update-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-list .update-note {
    grid-column: 1 / -1;
  }

  .order-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .order-index {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  body.site-body {
    font-size: 15px;
  }

  h1,
  .page-title {
    font-size: 28px;
  }

  .hero h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .brand {
    font-size: 18px;
  }

  .site-main {
    padding: 0 16px;
  }

  .hero {
    padding: 28px 0 36px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-tasks {
    padding: 18px 16px 14px;
  }

  .channel-band,
  .curation-feature,
  .selection-notes,
  .viewing-prep,
  .list-check,
  .editorial {
    padding: 36px 0;
  }

  .editorial {
    padding-bottom: 0;
  }

  .section-head {
    margin-bottom: 20px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 28px 16px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px 22px;
  }

  .page-title-inner {
    padding: 14px 16px 18px;
  }

  .page-header {
    padding: 14px 0 18px;
    margin-bottom: 24px;
  }

  .breadcrumb {
    padding-top: 16px;
    font-size: 12px;
  }

  .aside-block {
    padding: 16px;
  }

  .error-panel {
    padding: 28px 20px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-panel h1 {
    font-size: 22px;
  }

  .back-to-top {
    right: 14px;
    bottom: 16px;
  }

  .scene-table {
    min-width: 480px;
  }
}
