/* =========================================================
   午夜电影在线观看 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   base：变量、重置、排版、通用元素
   --------------------------------------------------------- */
:root {
  --bg: #ffffff;
  --ink: #1c1f24;
  --ink-soft: #5a6270;
  --line: #e2e6ec;
  --accent: #1f4e8c;
  --accent-deep: #173d70;
  --accent-soft: #eef3fa;
  --wash: #f5f7fa;
  --radius: 6px;
  --wrap: 1120px;
  --gutter: 24px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*,
*::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);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  line-height: 1.35;
  font-weight: 700;
}

strong,
b {
  font-weight: 600;
}

table {
  border-collapse: collapse;
  width: 100%;
}

figcaption {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 16px;
  z-index: 60;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ---------------------------------------------------------
   layout：页头、导航、主容器、面包屑、页标题、页脚
   --------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1 1 0;
}

.nav-list-right {
  justify-content: flex-end;
}

.nav-list a {
  display: inline-block;
  padding: 6px 2px;
  color: var(--ink);
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--accent);
  text-decoration: none;
}

.nav-list a.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 0 auto;
  padding: 0 6px;
  color: var(--ink);
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.site-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.home-main {
  padding-bottom: 8px;
}

.inner-main {
  padding-bottom: 24px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
}

.page-description {
  margin: 12px 0 0;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 16px;
}

.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px var(--gutter) 20px;
}

.footer-brand {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.footer-brand-name {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.footer-brand-desc {
  margin: 0;
  max-width: 640px;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 24px 0 18px;
}

.footer-col-title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col a {
  display: inline-block;
  padding: 3px 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-copyright {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.footer-top {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 6px 0;
}

.footer-top:hover,
.footer-top:focus-visible {
  color: var(--accent);
}

/* ---------------------------------------------------------
   components：区块头、按钮、图片容器、表格、编号清单
   --------------------------------------------------------- */
.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 22px;
}

.section-desc {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--ink-soft);
}

.section-title {
  font-size: 22px;
}

.section-intro,
.section-lead {
  margin: 10px 0 20px;
  max-width: 780px;
  color: var(--ink-soft);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  min-height: 44px;
  line-height: 22px;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--accent-soft);
}

.section-figure {
  margin: 26px 0 0;
}

.section-figure img,
.channel-figure img,
.media-figure img,
.figure-block img,
.step-figure img,
.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--wash);
}

.section-figure img,
.channel-figure img,
.media-figure img,
.figure-block img,
.step-figure img {
  aspect-ratio: 16 / 9;
}

.section-figure figcaption,
.channel-figure figcaption {
  margin-top: 8px;
}

.field-table,
.compare-table {
  font-size: 15px;
}

.field-table caption,
.compare-table caption {
  text-align: left;
  padding-bottom: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.field-table th,
.field-table td,
.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px 12px 0;
  text-align: left;
  vertical-align: top;
}

.field-table thead th,
.compare-table thead th {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 600;
  border-bottom-color: var(--ink-soft);
}

.field-table tbody th,
.compare-table tbody th {
  width: 22%;
  font-weight: 600;
  color: var(--ink);
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.next-step {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.next-step-body p {
  max-width: 780px;
  color: var(--ink-soft);
}

.next-step-links,
.next-step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.next-step-links a,
.next-step-item a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--accent);
  font-size: 15px;
  min-height: 44px;
}

.next-step-links a:hover,
.next-step-links a:focus-visible,
.next-step-item a:hover,
.next-step-item a:focus-visible {
  background: var(--accent-soft);
  text-decoration: none;
}

/* ---------------------------------------------------------
   pages：首页
   --------------------------------------------------------- */
.hero {
  padding: 40px 0 34px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: start;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
}

.hero-lead {
  margin: 16px 0 0;
  max-width: 620px;
  font-size: 17px;
  color: var(--ink);
}

.hero-note {
  margin: 12px 0 0;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-index {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.hero-index-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.channel-index {
  display: flex;
  flex-direction: column;
}

.channel-index li {
  border-bottom: 1px solid var(--line);
}

.channel-index li:first-child {
  border-top: 1px solid var(--line);
}

.channel-index a {
  display: block;
  padding: 12px 2px;
  min-height: 44px;
}

.channel-index a:hover,
.channel-index a:focus-visible {
  background: var(--accent-soft);
  text-decoration: none;
}

.channel-index-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.channel-index-desc {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
}

.hero-figure {
  margin: 34px 0 0;
}

.hero-figure img {
  aspect-ratio: 21 / 9;
}

.hero-figure figcaption {
  margin-top: 8px;
}

.channel-overview,
.featured-collections,
.field-summary,
.path-overview,
.boundary-feedback {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.channel-rows {
  display: flex;
  flex-direction: column;
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1.4fr) minmax(0, 1.4fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.channel-row:first-child {
  border-top: 1px solid var(--line);
}

.channel-row-name {
  font-size: 17px;
  font-weight: 700;
}

.channel-row-focus,
.channel-row-scope {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.channel-row-scope {
  color: var(--ink);
}

.channel-row-link {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 0;
}

.collection-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.collection-column {
  padding-top: 16px;
  border-top: 2px solid var(--accent);
}

.collection-title {
  font-size: 18px;
  font-weight: 700;
}

.collection-scope {
  margin: 8px 0 10px;
  font-size: 14px;
  color: var(--accent);
}

.collection-desc {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--ink-soft);
}

.collection-link {
  display: inline-block;
  padding: 8px 0;
  font-size: 15px;
  font-weight: 600;
}

.field-summary-more,
.path-overview-more {
  margin: 18px 0 0;
}

.field-summary-more a,
.path-overview-more a {
  font-weight: 600;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.path-step {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.path-step-num {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.path-step-name {
  font-size: 17px;
  font-weight: 700;
}

.path-step-text {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.boundary-feedback {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}

.boundary-feedback .section-head {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.boundary-block p {
  color: var(--ink-soft);
}

.boundary-block p:last-child {
  margin-bottom: 0;
}

.feedback-block {
  padding: 20px;
  background: var(--wash);
  border-radius: var(--radius);
}

.feedback-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feedback-steps {
  counter-reset: feedback;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feedback-steps li {
  counter-increment: feedback;
  position: relative;
  padding-left: 30px;
  min-height: 28px;
}

.feedback-steps li::before {
  content: counter(feedback);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}

.boundary-feedback .section-figure {
  grid-column: 1 / -1;
  margin-top: 0;
}

/* ---------------------------------------------------------
   pages：题材频道（pindao）
   --------------------------------------------------------- */
.channel-detail {
  padding: 30px 0 8px;
}

.channel-entry {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.channel-figure {
  margin: 0;
}

.channel-body {
  min-width: 0;
}

.channel-name {
  font-size: 19px;
  font-weight: 700;
}

.channel-orient,
.channel-scope,
.channel-sample {
  margin: 10px 0 0;
  font-size: 15px;
}

.channel-orient {
  color: var(--ink);
}

.channel-scope {
  color: var(--ink-soft);
}

.channel-sample {
  color: var(--ink-soft);
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.channel-compare {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.compare-table tbody th {
  width: 18%;
}

.compare-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   pages：专题片单（zhuanti）
   --------------------------------------------------------- */
.collection-organization,
.ordering-basis,
.collection-scope {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.media-figure {
  margin: 0 0 24px;
}

.media-caption {
  margin-top: 8px;
}

.collection-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.collection-item {
  padding-top: 14px;
  border-top: 2px solid var(--accent);
}

.collection-name {
  font-size: 18px;
  font-weight: 700;
}

.collection-org {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--ink);
}

.collection-cover {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.section-note {
  margin: 18px 0 0;
  font-size: 15px;
}

.ordering-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  margin-bottom: 26px;
}

.ordering-item {
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.ordering-name {
  font-size: 16px;
  font-weight: 700;
}

.ordering-desc {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.scope-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.scope-block:last-child {
  border-bottom: 1px solid var(--line);
}

.scope-name {
  font-size: 17px;
  font-weight: 700;
}

.scope-desc {
  margin: 8px 0 0;
  max-width: 780px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   pages：条目字段说明（zidian）
   --------------------------------------------------------- */
.field-list,
.field-example,
.misread-note {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.figure-block {
  margin: 0 0 24px;
}

.figure-block figcaption {
  margin-top: 8px;
}

.field-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.field-item:first-of-type {
  border-top: 1px solid var(--line);
}

.field-name {
  font-size: 17px;
  font-weight: 700;
}

.field-desc {
  margin: 8px 0 0;
  max-width: 780px;
  font-size: 15px;
  color: var(--ink-soft);
}

.note-item {
  border-bottom: 1px solid var(--line);
}

.note-item:first-of-type {
  border-top: 1px solid var(--line);
}

.note-item summary {
  padding: 14px 26px 14px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  min-height: 44px;
  list-style: none;
}

.note-item summary::-webkit-details-marker {
  display: none;
}

.note-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
}

.note-item[open] summary::after {
  content: "−";
}

.note-item p {
  margin: 0 0 16px;
  max-width: 780px;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------------------------------------------------------
   pages：查阅路径（lujing）
   --------------------------------------------------------- */
.step-list-block,
.step-detail-block {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-item {
  padding-top: 14px;
  border-top: 2px solid var(--accent);
}

.step-index {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.step-name {
  font-size: 17px;
  font-weight: 700;
}

.step-desc {
  margin: 8px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.step-figure {
  margin: 0 0 26px;
}

.step-figure figcaption {
  margin-top: 8px;
}

.step-detail {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.step-detail-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-detail-col {
  min-width: 0;
}

.step-detail-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.step-detail-col p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.boundary-block {
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
}

.boundary-block > p {
  max-width: 780px;
  color: var(--ink-soft);
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0;
  max-width: 780px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.boundary-back {
  margin: 16px 0 0;
}

.boundary-back a {
  font-weight: 600;
}

/* ---------------------------------------------------------
   pages：404
   --------------------------------------------------------- */
.error-main {
  padding-top: 60px;
  padding-bottom: 60px;
}

.error-block {
  max-width: 640px;
}

.error-code {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.error-block h1 {
  font-size: 28px;
}

.error-lead {
  margin: 14px 0 22px;
  color: var(--ink-soft);
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.error-links a {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  min-height: 44px;
}

.error-links a:hover,
.error-links a:focus-visible {
  background: var(--accent-soft);
  text-decoration: none;
}

/* ---------------------------------------------------------
   responsive：平板与手机
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-index {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 20px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 18px;
  }

  .channel-row-name {
    grid-column: 1 / -1;
  }

  .channel-row-link {
    grid-column: 1 / -1;
  }

  .collection-columns,
  .path-steps,
  .collection-list,
  .step-list,
  .step-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ordering-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .boundary-feedback {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 12px 18px;
  }

  .site-main {
    padding: 0 18px;
  }

  .footer-inner {
    padding: 28px 18px 18px;
  }

  .site-nav {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .nav-toggle {
    display: flex;
    order: 1;
  }

  .brand {
    order: 2;
    flex: 1 1 auto;
  }

  .nav-list {
    order: 3;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-list a {
    display: block;
    padding: 12px 2px;
    min-height: 44px;
  }

  .nav-list a.is-current {
    border-bottom-color: transparent;
    color: var(--accent);
    font-weight: 600;
  }

  .brand-name {
    font-size: 17px;
    white-space: normal;
  }

  .brand-tagline {
    white-space: normal;
  }

  .hero {
    padding: 28px 0 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-head h2,
  .section-title {
    font-size: 20px;
  }

  .channel-overview,
  .featured-collections,
  .field-summary,
  .path-overview,
  .boundary-feedback,
  .channel-detail,
  .channel-compare,
  .collection-organization,
  .ordering-basis,
  .collection-scope,
  .field-list,
  .field-example,
  .misread-note,
  .step-list-block,
  .step-detail-block,
  .boundary-block {
    padding: 24px 0;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .field-table,
  .compare-table {
    font-size: 14px;
  }

  .field-table th,
  .field-table td,
  .compare-table th,
  .compare-table td {
    padding: 10px 10px 10px 0;
  }

  .field-table tbody th,
  .compare-table tbody th {
    width: 28%;
  }

  .error-main {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}

@media (max-width: 420px) {
  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .field-table tbody th,
  .compare-table tbody th {
    width: 34%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
