/* ==========================================================================
   策驰影院 hfkangxing.com — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --paper: #f6f4ef;
  --ink: #14263c;
  --ink-soft: rgba(20, 38, 60, 0.7);
  --ink-faint: rgba(20, 38, 60, 0.52);
  --brick: #c0502a;
  --moss: #5b7a6a;
  --rule: #d9d3c6;
  --card: #ffffff;
  --deep: #0f1c2b;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

ul,
ol {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  color: var(--brick);
}

code {
  font-family: var(--mono);
  font-size: 0.94em;
}

strong {
  font-weight: 600;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

.mono,
.mono-code,
.mono-tag,
.term-code {
  font-family: var(--mono);
  font-size: 14px;
  background: #efece3;
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--ink);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  transition: top 0.16s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* --------------------------------------------------------------------------
   layout — 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  flex: none;
}

.brand:hover {
  color: var(--brick);
}

.site-nav {
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-drop-trigger {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 10px;
  font-size: 15px;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-drop-trigger:hover {
  color: var(--ink);
  background: #efece3;
}

.nav-item.is-current > a,
.nav-item > a.is-current,
.nav-item.is-current .nav-drop-trigger {
  color: var(--brick);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--brick);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(20, 38, 60, 0.1);
  display: none;
}

.nav-item.is-open .nav-dropdown,
.nav-dropdown.is-open {
  display: block;
}

.nav-dropdown li a {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: 4px;
}

.nav-dropdown li a:hover {
  background: #f4f1e9;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: none;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.site-main {
  display: block;
}

.home-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 14px;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--brick);
}

.breadcrumb-sep {
  color: var(--rule);
}

.breadcrumb-current {
  color: var(--ink-faint);
}

.page-header {
  margin-bottom: 26px;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.page-head {
  margin-bottom: 26px;
}

.page-head .page-lead {
  max-width: 720px;
}

.page-lead {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.page-title-block {
  margin-bottom: 26px;
}

.page-title-block .page-lead {
  max-width: 760px;
}

.page-hero {
  margin-bottom: 26px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 40px;
  align-items: start;
}

.content-main,
.content-column {
  min-width: 0;
  max-width: 720px;
}

.content-aside,
.page-aside,
.sidebar {
  min-width: 0;
  position: sticky;
  top: 20px;
}

/* 侧栏在左的变体 */
.sidebar-left .page-layout {
  grid-template-columns: 240px minmax(0, 1fr);
}

.sidebar-left .content-main,
.sidebar-left .content-column {
  order: 2;
}

.sidebar-left .content-aside,
.sidebar-left .page-aside,
.sidebar-left .sidebar {
  order: 1;
}

/* --------------------------------------------------------------------------
   layout — 页脚
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 56px;
  font-size: 14px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  gap: 32px;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: 0;
}

.footer-col ul {
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.footer-col a:hover {
  color: #fff;
}

.footer-about p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-bottom a:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   components — 通用块
   -------------------------------------------------------------------------- */

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  padding-left: 12px;
  border-left: 4px solid var(--brick);
  line-height: 1.3;
}

.section-sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 760px;
}

.section-foot {
  margin: 16px 0 0;
}

.text-link {
  display: inline-block;
  font-size: 14px;
  color: var(--brick);
  border-bottom: 1px solid rgba(192, 80, 42, 0.35);
}

.text-link:hover {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: var(--brick);
  color: #fff;
}

.btn-primary:hover {
  background: #a84422;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-ghost:hover {
  background: #efece3;
  color: var(--ink);
  border-color: var(--ink-faint);
}

.scope-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scope-tag,
.tag,
.tag-scope {
  display: inline-block;
  font-size: 12px;
  line-height: 1.6;
  padding: 2px 9px;
  color: var(--moss);
  border: 1px solid rgba(91, 122, 106, 0.5);
  border-radius: 3px;
  background: rgba(91, 122, 106, 0.06);
  white-space: nowrap;
}

.section-note,
.table-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 12px 0 0;
}

/* 数据表 */
.data-table,
.terms-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--rule);
  font-size: 14px;
}

.data-table caption,
.terms-table caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  color: var(--ink-faint);
  padding: 0 0 8px;
}

.data-table th,
.data-table td,
.terms-table th,
.terms-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  line-height: 1.7;
}

.data-table thead th,
.terms-table thead th {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 2px solid var(--rule);
  background: #f4f1e9;
}

.data-table tbody tr:last-child td,
.terms-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 折叠问答 */
.qa-list {
  border-top: 1px solid var(--rule);
}

.qa-item {
  border-bottom: 1px solid var(--rule);
}

.qa-question {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 32px 14px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  min-height: 44px;
}

.qa-question::-webkit-details-marker {
  display: none;
}

.qa-question::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.qa-item[open] > .qa-question::after {
  transform: rotate(-135deg);
}

.qa-question:hover {
  color: var(--brick);
}

.qa-tag {
  flex: none;
  font-size: 12px;
  font-weight: 400;
  color: var(--moss);
  border: 1px solid rgba(91, 122, 106, 0.5);
  border-radius: 3px;
  padding: 0 6px;
  line-height: 1.7;
  margin-top: 2px;
}

.qa-answer {
  padding: 0 32px 14px 4px;
  font-size: 15px;
  color: var(--ink-soft);
}

.qa-answer p:last-child {
  margin-bottom: 0;
}

/* 步骤列表（通用骨架，由父级限定） */
.step-list {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 页内目录 */
.toc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-list li {
  margin-bottom: 2px;
}

.toc-list a {
  display: block;
  padding: 6px 8px;
  font-size: 13px;
  color: var(--ink-soft);
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
}

.toc-list a:hover {
  background: #efece3;
  color: var(--ink);
}

.toc-list a.is-active {
  color: var(--brick);
  border-left-color: var(--brick);
  background: #f4f1e9;
}

.aside-links {
  margin-top: 28px;
}

.aside-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.aside-links li {
  margin-bottom: 6px;
}

.aside-links a {
  font-size: 13px;
  color: var(--ink-soft);
}

.aside-links a:hover {
  color: var(--brick);
}

/* 图片容器 */
.hero-figure,
.archive-figure,
.group-media,
.content-figure,
.figure-block,
.scope-figure,
.feedback-figure {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
}

.hero-figure img,
.archive-figure img,
.group-media img,
.content-figure img,
.figure-block img,
.scope-figure img,
.feedback-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-figure figcaption,
.archive-figure figcaption,
.group-media figcaption,
.content-figure figcaption,
.figure-block figcaption,
.scope-figure figcaption,
.feedback-figure figcaption {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-faint);
  padding: 8px 12px;
  border-top: 1px solid var(--rule);
  background: #fbfaf6;
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

.hero-section {
  padding: 40px 0 36px;
  border-bottom: 1px solid var(--rule);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
  margin: 0 0 10px;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 14px;
}

.hero-lead {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-index-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}

.hero-index-note strong {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink-soft);
  background: #efece3;
  border-radius: 3px;
  padding: 1px 5px;
  margin-right: 2px;
}

.hero-figure img {
  aspect-ratio: 4 / 3;
}

/* 起始三入口条 */
.start-strip {
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

.start-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.start-item {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.start-item:last-child {
  border-right: 0;
}

.start-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  min-height: 44px;
  transition: background 0.16s ease;
}

.start-item a:hover {
  background: #efece3;
}

.start-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brick);
}

.start-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.start-desc {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 频道目录分组索引 */
.channel-index {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}

.channel-group {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}

.channel-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.channel-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 10px;
}

.channel-rows {
  margin: 0;
}

.channel-row {
  border-top: 1px solid var(--rule);
}

.channel-row:first-child {
  border-top: 0;
}

.channel-row a {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 10px 8px;
  min-height: 44px;
  transition: background 0.16s ease;
}

.channel-row a:hover {
  background: #efece3;
}

.row-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.row-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.row-enter {
  font-size: 13px;
  color: var(--brick);
  white-space: nowrap;
}

/* 本期专题片单 */
.featured-archive {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}

.archive-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.archive-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.archive-item:not(.archive-item-lead) {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
}

.archive-item-lead {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.archive-item-lead .archive-figure {
  margin: 0;
}

.archive-item-lead .archive-figure img {
  aspect-ratio: 16 / 10;
}

.archive-body {
  min-width: 0;
}

.archive-no {
  display: inline-block;
  margin-bottom: 6px;
}

.archive-name {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.archive-scope {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.archive-item .text-link {
  font-size: 13px;
}

/* 术语速查条 */
.terms-strip {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}

.terms-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.term-item {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.term-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  min-height: 44px;
  transition: background 0.16s ease;
}

.term-item a:hover {
  background: #efece3;
}

.term-name {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 14px;
  background: #efece3;
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--ink);
}

.term-item a:hover .term-name {
  background: #e6e1d4;
}

.term-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* 版本记录摘要 */
.revision-brief {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}

.revision-list {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.revision-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.revision-no {
  justify-self: start;
  align-self: start;
}

.revision-new {
  color: var(--ink);
}

.revision-impact {
  color: var(--ink-soft);
}

/* 观看准备摘要 */
.setup-brief {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}

.setup-lead {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 760px;
  margin: 0 0 20px;
}

.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-step {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 16px 18px;
  min-width: 0;
}

.setup-step .step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brick);
  margin-bottom: 6px;
}

.setup-step .step-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.setup-step .step-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* 常见问答预览 */
.qa-preview {
  padding: 36px 0;
  border-bottom: 1px solid var(--rule);
}

/* 反馈说明条 */
.feedback-strip {
  margin: 36px 0 0;
  padding: 24px 26px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brick);
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.feedback-text {
  min-width: 0;
  flex: 1 1 420px;
}

.feedback-text .section-title {
  font-size: 20px;
  padding-left: 0;
  border-left: 0;
  margin-bottom: 8px;
}

.feedback-text p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 620px;
}

/* --------------------------------------------------------------------------
   pages — 频道目录 channel
   -------------------------------------------------------------------------- */

.section {
  margin-bottom: 40px;
}

.section > h2,
.content-section > h2,
.terms-table-block > h2,
.terms-group > h2,
.confuse-block > h2,
.scope-block > h2,
.qa-group > h2,
.feedback-section > h2,
.feedback-process > h2 {
  font-size: 22px;
  font-weight: 600;
  padding-left: 12px;
  border-left: 4px solid var(--brick);
  margin: 0 0 12px;
  line-height: 1.35;
}

.section > p,
.content-section > p,
.terms-table-block > p,
.terms-group > p,
.confuse-block > p,
.scope-block > p,
.qa-group > p,
.feedback-section > p,
.feedback-process > p {
  color: var(--ink-soft);
}

.section-table {
  margin-bottom: 40px;
}

.section-table .data-table {
  margin-top: 14px;
}

.section-group {
  margin-bottom: 40px;
  scroll-margin-top: 20px;
}

.section-group .group-media {
  margin: 0 0 16px;
}

.section-group .group-media img {
  aspect-ratio: 16 / 9;
}

.group-list {
  margin: 12px 0 0;
  border-top: 1px solid var(--rule);
}

.group-list li {
  border-bottom: 1px solid var(--rule);
}

.group-list a {
  display: block;
  padding: 9px 8px;
  font-size: 14px;
  color: var(--ink-soft);
  min-height: 44px;
  transition: background 0.16s ease;
}

.group-list a:hover {
  background: #efece3;
  color: var(--brick);
}

.section-mapping {
  margin-bottom: 40px;
}

.mapping-list {
  margin-top: 14px;
  border-top: 1px solid var(--rule);
}

.mapping-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.mapping-channel {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.mapping-archive {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.section-feedback {
  margin-bottom: 0;
}

.feedback-list {
  margin-top: 14px;
}

.feedback-item {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.feedback-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.feedback-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.feedback-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages — 片单档案 archive
   -------------------------------------------------------------------------- */

.content-section {
  margin-bottom: 40px;
  scroll-margin-top: 20px;
}

.content-section:last-child {
  margin-bottom: 0;
}

.rule-list {
  margin: 14px 0 0;
  border-top: 1px solid var(--rule);
}

.rule-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.rule-row .mono-code {
  justify-self: start;
}

.rule-body {
  min-width: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.rule-body p {
  margin: 0 0 6px;
}

.rule-body p:last-child {
  margin-bottom: 0;
}

.archive-entry {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.archive-entry:first-of-type {
  border-top: 1px solid var(--rule);
}

.archive-entry-featured {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.archive-entry-featured .archive-figure {
  margin: 0;
}

.archive-entry-featured .archive-figure img {
  aspect-ratio: 16 / 10;
}

.archive-entry .archive-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 6px;
}

.archive-entry .archive-body p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.archive-entry .archive-scope {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}

.archive-points {
  margin: 8px 0 0;
  padding-left: 18px;
  list-style: disc;
  font-size: 14px;
  color: var(--ink-soft);
}

.archive-points li {
  margin-bottom: 4px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.scope-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 16px;
  min-width: 0;
}

.scope-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
}

.scope-card ul {
  margin: 0;
  padding-left: 16px;
  list-style: disc;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.scope-card li {
  margin-bottom: 4px;
}

.term-link-list {
  margin: 14px 0 0;
  border-top: 1px solid var(--rule);
}

.term-link-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.term-link-row .mono-code {
  justify-self: start;
}

.term-link-row p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* 片单档案 — 步骤列表 */
.step-list .step-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.step-list .step-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.step-list .step-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brick);
  padding-top: 2px;
}

.step-body {
  min-width: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.step-body p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages — 术语速查 terms
   -------------------------------------------------------------------------- */

.terms-table-block {
  margin-bottom: 40px;
}

.terms-table {
  margin-top: 14px;
}

.terms-table td:first-child {
  white-space: nowrap;
}

.terms-table .term-code {
  font-size: 13px;
}

.terms-group {
  margin-bottom: 40px;
}

.term-item {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.term-item:first-of-type {
  border-top: 0;
  padding-top: 4px;
}

.term-item h3 {
  margin: 0 0 6px;
}

.term-item h3 .term-code {
  font-size: 15px;
  font-weight: 600;
  padding: 1px 6px;
}

.term-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}

.term-item p:last-child {
  margin-bottom: 0;
}

.confuse-block {
  margin-bottom: 40px;
}

.confuse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.confuse-col {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 16px 18px;
  min-width: 0;
}

.confuse-col h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.confuse-col p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.confuse-col p strong {
  color: var(--ink);
}

.confuse-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--rule);
}

.scope-block {
  margin-bottom: 0;
}

.scope-figure {
  margin: 16px 0;
}

.scope-figure img {
  aspect-ratio: 16 / 9;
}

.scope-list {
  margin: 14px 0 0;
  padding-left: 18px;
  list-style: disc;
  font-size: 14px;
  color: var(--ink-soft);
}

.scope-list li {
  margin-bottom: 6px;
}

.scope-links {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
}

.scope-links a {
  color: var(--brick);
  border-bottom: 1px solid rgba(192, 80, 42, 0.35);
}

.scope-links a:hover {
  border-bottom-color: var(--brick);
}

/* --------------------------------------------------------------------------
   pages — 观看准备 setup
   -------------------------------------------------------------------------- */

.point-list {
  margin: 12px 0 0;
  padding-left: 18px;
  list-style: disc;
  font-size: 15px;
  color: var(--ink-soft);
}

.point-list li {
  margin-bottom: 6px;
}

/* 观看准备 — 步骤（与片单档案步骤作用域区分） */
#prep-three .step-item,
#record .step-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "no title"
    "no desc"
    "no check";
  gap: 2px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

#prep-three .step-item:first-child,
#record .step-item:first-child {
  border-top: 0;
  padding-top: 4px;
}

#prep-three .step-no,
#record .step-no {
  grid-area: no;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brick);
  padding-top: 2px;
}

#prep-three .step-title,
#record .step-title {
  grid-area: title;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

#prep-three .step-desc,
#record .step-desc {
  grid-area: desc;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

#prep-three .step-check {
  grid-area: check;
  font-size: 13px;
  color: var(--moss);
  margin: 4px 0 0;
}

.verify-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.verify-col {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 16px 18px;
}

.verify-col h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.verify-col-yes h3 {
  color: var(--moss);
}

.verify-col-no h3 {
  color: var(--brick);
}

.verify-list {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.verify-list li {
  margin-bottom: 6px;
}

.content-figure {
  margin: 16px 0;
}

.content-figure img {
  aspect-ratio: 16 / 9;
}

.caution-list {
  margin: 16px 0 0;
}

.caution-item {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.caution-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 4px;
}

.caution-item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.help-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 16px 0 0;
}

.help-item {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 16px;
}

.help-item a {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--brick);
  min-height: 44px;
  line-height: 1.6;
}

.help-item p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 4px 0 0;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.sidebar-title + .toc {
  margin-bottom: 24px;
}

.sidebar-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-links li {
  margin-bottom: 6px;
}

.sidebar-links a {
  font-size: 13px;
  color: var(--ink-soft);
}

.sidebar-links a:hover {
  color: var(--brick);
}

/* --------------------------------------------------------------------------
   pages — 版本记录 revision
   -------------------------------------------------------------------------- */

.inline-toc {
  margin-top: 16px;
  padding: 12px 16px;
  background: #efece3;
  border-radius: 6px;
}

.inline-toc-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
  margin: 0 0 8px;
}

.inline-toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inline-toc a {
  font-size: 13px;
  color: var(--ink-soft);
}

.inline-toc a:hover {
  color: var(--brick);
}

#rule .rule-row {
  grid-template-columns: 150px minmax(0, 1fr);
}

#rule .mono-tag {
  justify-self: start;
}

.rule-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.revision-entry {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.revision-entry:last-child {
  margin-bottom: 0;
}

.revision-fields {
  display: grid;
  gap: 8px;
}

.revision-field {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--rule);
}

.revision-field:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.revision-field dt {
  font-size: 13px;
  color: var(--ink-faint);
}

.revision-field dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
  min-width: 0;
}

.revision-field dd .mono-tag {
  font-size: 12px;
}

.figure-block {
  margin: 16px 0;
}

.figure-block img {
  aspect-ratio: 16 / 9;
}

.structure-note {
  padding: 14px 0;
  border-top: 1px solid var(--rule);
}

.structure-note h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.structure-note p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.wording-list {
  margin: 14px 0 0;
  border-top: 1px solid var(--rule);
}

.wording-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}

.wording-where {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

.wording-why {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.reread-list {
  margin: 14px 0 0;
  border-top: 1px solid var(--rule);
}

.reread-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.reread-row a {
  font-size: 14px;
  font-weight: 600;
  color: var(--brick);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.reread-row p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages — 常见问答 qa
   -------------------------------------------------------------------------- */

.qa-group {
  margin-bottom: 40px;
}

.qa-group .qa-list,
.qa-group details:first-of-type {
  border-top: 1px solid var(--rule);
}

.feedback-section {
  margin-bottom: 40px;
}

.feedback-figure {
  margin: 16px 0;
}

.feedback-figure img {
  aspect-ratio: 16 / 9;
}

.feedback-checklist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: fb;
}

.feedback-checklist li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
  counter-increment: fb;
}

.feedback-checklist li::before {
  content: counter(fb);
  position: absolute;
  left: 0;
  top: 9px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brick);
  background: #efece3;
  border-radius: 3px;
  padding: 0 5px;
  line-height: 1.7;
}

.feedback-process {
  margin-bottom: 40px;
}

.process-steps {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.process-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "idx title"
    "idx desc";
  gap: 2px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.process-step:first-child {
  border-top: 0;
  padding-top: 4px;
}

.process-step .step-index {
  grid-area: idx;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brick);
  padding-top: 2px;
}

.process-step h3 {
  grid-area: title;
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.process-step p {
  grid-area: desc;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

.feedback-links {
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
}

.feedback-links a {
  color: var(--brick);
  border-bottom: 1px solid rgba(192, 80, 42, 0.35);
}

.feedback-links a:hover {
  border-bottom-color: var(--brick);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 14px;
}

.related-links-label {
  font-size: 13px;
  color: var(--ink-faint);
}

.related-links-item {
  color: var(--brick);
  border-bottom: 1px solid rgba(192, 80, 42, 0.35);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.related-links-item:hover {
  border-bottom-color: var(--brick);
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.error-inner {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 40px 36px;
}

.error-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--brick);
  margin: 0 0 8px;
}

.error-title {
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.error-paths {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.error-paths a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 14px;
  text-align: center;
  color: var(--ink);
  background: #f4f1e9;
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.error-paths a:hover {
  background: #efece3;
  color: var(--brick);
}

.error-action {
  margin: 0 0 16px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--brick);
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
}

.error-home-link:hover {
  background: #a84422;
  color: #fff;
}

.error-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}

.error-note a {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
}

.error-note a:hover {
  color: var(--brick);
}

/* --------------------------------------------------------------------------
   responsive — 960px
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(20, 38, 60, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item > a,
  .nav-drop-trigger {
    display: flex;
    width: 100%;
    height: 44px;
    padding: 0 10px;
    justify-content: flex-start;
  }

  .nav-item.is-current > a,
  .nav-item > a.is-current,
  .nav-item.is-current .nav-drop-trigger {
    box-shadow: inset 3px 0 0 var(--brick);
    background: #efece3;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 4px 16px;
  }

  .nav-item.is-open .nav-dropdown,
  .nav-dropdown.is-open {
    display: block;
  }

  .home-main,
  .inner-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 9;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .content-main,
  .content-column {
    max-width: none;
  }

  .content-aside,
  .page-aside,
  .sidebar {
    position: static;
    border-top: 1px solid var(--rule);
    padding-top: 20px;
  }

  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar-left .content-main,
  .sidebar-left .content-column {
    order: 1;
  }

  .sidebar-left .content-aside,
  .sidebar-left .page-aside,
  .sidebar-left .sidebar {
    order: 2;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 36px 16px 24px;
  }

  .footer-bottom {
    padding: 16px 16px 24px;
  }

  .start-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .start-item {
    border-right: 0;
  }

  .terms-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .setup-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .scope-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .archive-item-lead,
  .archive-entry-featured {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .channel-row a {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 6px 14px;
  }

  .row-enter {
    grid-column: 2;
  }

  .revision-item {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 4px 14px;
  }

  .revision-impact {
    grid-column: 2;
  }

  .confuse-grid,
  .verify-columns,
  .help-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .mapping-row {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .error-main {
    padding: 40px 16px 48px;
  }

  .error-inner {
    padding: 28px 22px;
  }
}

/* --------------------------------------------------------------------------
   responsive — 640px
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    height: 60px;
  }

  .brand {
    font-size: 17px;
  }

  .site-nav {
    top: 60px;
  }

  .hero-section {
    padding: 28px 0 26px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 140px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title,
  .section > h2,
  .content-section > h2,
  .terms-table-block > h2,
  .terms-group > h2,
  .confuse-block > h2,
  .scope-block > h2,
  .qa-group > h2,
  .feedback-section > h2,
  .feedback-process > h2 {
    font-size: 20px;
  }

  .start-strip,
  .channel-index,
  .featured-archive,
  .terms-strip,
  .revision-brief,
  .setup-brief,
  .qa-preview {
    padding: 26px 0;
  }

  .channel-row a {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .row-enter {
    grid-column: 1;
  }

  .terms-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .revision-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 12px 0;
  }

  .revision-impact {
    grid-column: 1;
    color: var(--ink-faint);
    font-size: 13px;
  }

  .archive-item:not(.archive-item-lead) {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .feedback-strip {
    padding: 20px 18px;
    flex-direction: column;
    align-items: stretch;
  }

  .feedback-text {
    flex: 1 1 auto;
  }

  .feedback-strip .btn {
    width: 100%;
  }

  .rule-row,
  .term-link-row,
  .wording-row,
  .reread-row,
  .mapping-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .revision-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .data-table,
  .terms-table {
    font-size: 13px;
  }

  .data-table th,
  .data-table td,
  .terms-table th,
  .terms-table td {
    padding: 8px 9px;
  }

  .table-caption,
  .data-table caption,
  .terms-table caption {
    font-size: 12px;
  }

  .qa-question {
    font-size: 15px;
    padding-right: 28px;
  }

  .qa-answer {
    padding-right: 8px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-paths {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-toc ul {
    gap: 4px 14px;
  }
}
