:root {
  --page-bg: #F5F6F7;
  --block-bg: #FFFFFF;
  --text-main: #1F2429;
  --text-sub: #5A636B;
  --line: #D8DCE0;
  --alert: #C2410C;
  --link: #0F5C8C;
  --radius: 6px;
  --shell-width: 1120px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Roboto Mono", Consolas, "Courier New", monospace;
}

/* ==========================================================================
   base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--page-bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: #0B4468;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--alert);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

/* ==========================================================================
   layout — shell
   ========================================================================== */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* top fact bar (home only) */

.top-fact-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 10px 24px;
  font-size: 13px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
}

.top-fact-text {
  margin: 0;
}

.top-fact-stage {
  margin: 0;
  color: var(--alert);
  font-weight: 600;
  white-space: nowrap;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--block-bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
}

.brand-logo {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 0;
  letter-spacing: 0;
}

.brand-logo:hover {
  color: var(--link);
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 8px;
}

.nav-item {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  font-size: 15px;
  color: var(--text-main);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  white-space: normal;
}

.nav-link:hover {
  color: var(--link);
  border-bottom-color: var(--line);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--link);
  font-weight: 600;
  border-bottom-color: var(--link);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--block-bg);
  position: relative;
}

.nav-toggle::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 15px;
  height: 2px;
  background-color: var(--text-main);
  box-shadow: 0 6px 0 var(--text-main), 0 12px 0 var(--text-main);
}

.nav-toggle[aria-expanded="true"]::before {
  top: 21px;
  box-shadow: none;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 21px;
  height: 2px;
  background-color: var(--text-main);
  transform: rotate(-45deg);
}

/* breadcrumb */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 0 4px;
  font-size: 13px;
  color: var(--text-sub);
}

.breadcrumb a {
  color: var(--text-sub);
}

.breadcrumb a:hover {
  color: var(--link);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* page header (inner pages) */

.page-header {
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.page-description {
  max-width: 860px;
  font-size: 15px;
  color: var(--text-sub);
}

/* section primitives */

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.section-intro,
.section-desc,
.section-lead,
.section-note {
  max-width: 860px;
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.section-intro a,
.section-desc a,
.section-lead a,
.section-note a {
  color: var(--link);
}

.text-link {
  display: inline-block;
  font-size: 14px;
  color: var(--link);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.text-link:hover {
  text-decoration: none;
}

/* ==========================================================================
   components
   ========================================================================== */

/* --- channel rows (index + channels) --- */

.channel-row-list,
.channel-list {
  display: block;
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 64px minmax(140px, 200px) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 96px;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.channel-row:hover {
  background-color: #FFFFFF;
}

.channel-code,
.channel-no {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--alert);
  padding-top: 2px;
}

.channel-row .channel-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
}

.channel-direction,
.channel-audience,
.channel-caliber {
  font-size: 14px;
  color: var(--text-sub);
}

.channel-direction::before,
.channel-audience::before,
.channel-caliber::before {
  display: block;
  font-size: 12px;
  color: #8A9299;
  margin-bottom: 2px;
}

.channel-direction::before {
  content: "题材方向";
}

.channel-audience::before {
  content: "面向人群";
}

.channel-caliber::before {
  content: "字段口径";
}

.channel-link,
.channel-entry {
  align-self: start;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--link);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--block-bg);
  text-decoration: none;
}

.channel-link:hover,
.channel-entry:hover {
  border-color: var(--link);
  color: var(--link);
  text-decoration: none;
}

/* --- path entries (home) --- */

.path-entry-block {
  margin-top: 40px;
}

.path-entry-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.path-entry {
  padding: 16px;
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.path-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.path-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 10px;
}

.path-suggest {
  font-size: 13px;
  color: var(--text-sub);
}

.path-suggest a {
  color: var(--link);
}

/* --- collection cards --- */

.collection-feature-grid,
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.collection-card:hover {
  border-color: var(--link);
}

.collection-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #E9EBED;
}

.collection-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-card .collection-title {
  font-size: 16px;
  font-weight: 600;
  margin: 14px 16px 8px;
}

.collection-channels,
.collection-audience,
.collection-note {
  font-size: 14px;
  color: var(--text-sub);
  margin: 0 16px 6px;
}

.collection-card .collection-link {
  align-self: flex-start;
  margin: 10px 16px 16px;
  font-size: 14px;
  color: var(--link);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.collection-card .collection-link:hover {
  text-decoration: none;
}

/* collection card inner body (collections page) */

.collection-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 14px 16px 16px;
}

.collection-index {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--alert);
  margin-bottom: 6px;
}

.collection-body .collection-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
}

.collection-fields {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 4px 12px;
  margin-bottom: 12px;
}

.collection-fields .field-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}

.collection-fields .field-value {
  font-size: 14px;
  color: var(--text-main);
}

.collection-body .collection-link {
  align-self: flex-start;
  margin-top: auto;
  font-size: 14px;
  color: var(--link);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* --- record groups (home + records) --- */

.record-brief-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.record-group {
  padding: 16px;
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.record-stage,
.record-stage-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.record-stage-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--alert);
}

.record-brief-list,
.record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.record-brief-item,
.record-item {
  font-size: 14px;
  color: var(--text-sub);
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.record-summary {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 4px;
}

.record-meta {
  font-size: 13px;
  color: var(--text-sub);
}

.record-channels {
  font-family: var(--font-mono);
  color: var(--alert);
}

.record-more {
  margin-top: 16px;
  font-size: 14px;
}

/* --- caliber / boundary (home) --- */

.caliber-boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.caliber-column,
.boundary-column {
  padding: 20px;
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.column-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.caliber-list {
  display: grid;
  grid-template-columns: minmax(96px, 130px) minmax(0, 1fr);
  gap: 8px 16px;
  margin-bottom: 14px;
}

.caliber-term {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.caliber-desc {
  font-size: 14px;
  color: var(--text-sub);
}

.caliber-more {
  font-size: 14px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-item {
  font-size: 14px;
  color: var(--text-sub);
  padding-left: 14px;
  position: relative;
}

.boundary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--alert);
  border-radius: 50%;
}

/* --- site index (home) --- */

.site-index-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-column {
  padding: 16px;
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.index-heading {
  font-size: 15px;
  font-weight: 600;
}

.index-desc {
  font-size: 13px;
  color: var(--text-sub);
  flex: 1 1 auto;
}

.index-link {
  font-size: 14px;
  color: var(--link);
  border-bottom: 1px solid currentColor;
  align-self: flex-start;
  padding-bottom: 1px;
}

.index-link:hover {
  text-decoration: none;
}

/* --- related task band (home) --- */

.related-task-band {
  background-color: var(--block-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.related-task-title {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 24px 24px 8px;
  font-size: 18px;
  font-weight: 600;
}

.related-task-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px 24px;
}

.related-task-item {
  display: flex;
}

.related-task-link {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--link);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--page-bg);
  text-align: center;
}

.related-task-link:hover {
  border-color: var(--link);
  text-decoration: none;
}

/* --- related band (inner pages) --- */

.related-band {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 8px 24px 32px;
}

.related-band-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.related-band-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.related-band-list,
.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-band-item,
.related-item {
  display: flex;
}

.related-band-item a,
.related-item a {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--link);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--block-bg);
  text-align: center;
}

.related-band-item a:hover,
.related-item a:hover {
  border-color: var(--link);
  text-decoration: none;
}

/* --- FAQ --- */

.faq-list,
.faq-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
}

.faq-item[open] {
  border-color: var(--line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--alert);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 14px;
  font-size: 14px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.faq-answer a {
  color: var(--link);
}

/* --- figures --- */

.channel-figure,
.guide-figure,
.page-media {
  margin-bottom: 32px;
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.channel-figure img,
.guide-figure img,
.page-media img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.channel-figure-caption,
.audience-figure-caption,
.media-caption,
.guide-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

/* --- field explain (channels) --- */

.field-explain-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-explain-item {
  padding: 16px;
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field-explain-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.field-explain-text {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.field-explain-use {
  font-size: 14px;
  color: var(--text-main);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* channel fields dl (channels page rows) */

.channel-fields {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 4px 12px;
  grid-column: 3 / 6;
}

.channel-fields .field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
}

.channel-fields .field-value {
  font-size: 14px;
  color: var(--text-main);
}

/* --- audience map (channels) --- */

.audience-map-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.audience-map-item {
  padding: 16px;
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.audience-map-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.audience-map-channels {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--alert);
  margin-bottom: 6px;
}

.audience-map-reason {
  font-size: 14px;
  color: var(--text-sub);
}

.audience-figure {
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.audience-figure img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

/* --- compose grid (collections) --- */

.compose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.compose-item {
  padding: 16px;
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compose-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.compose-text {
  font-size: 14px;
  color: var(--text-sub);
}

/* --- mapping table (collections) --- */

.mapping-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.mapping-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-sub);
  border-bottom: 1px solid var(--line);
}

.mapping-table th,
.mapping-table td {
  padding: 12px 16px;
  font-size: 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.mapping-table thead th {
  font-weight: 600;
  color: var(--text-main);
  background-color: #F0F2F4;
}

.mapping-table tbody th {
  font-weight: 600;
  color: var(--text-main);
}

.mapping-table tbody td {
  color: var(--text-sub);
}

.mapping-table tbody tr:last-child th,
.mapping-table tbody tr:last-child td {
  border-bottom: none;
}

.mapping-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-sub);
}

/* --- guide steps --- */

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.step-item {
  padding: 16px;
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--alert);
  border-radius: var(--radius);
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--alert);
  margin-bottom: 8px;
}

.step-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.step-pre {
  font-size: 13px;
  color: var(--text-main);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

/* --- field spec (guide) --- */

.field-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.field-row {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.field-row .field-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.field-row .field-value {
  font-size: 14px;
  color: var(--text-sub);
}

/* --- field example (guide) --- */

.example-card {
  padding: 20px;
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--alert);
  border-radius: var(--radius);
}

.example-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
}

.example-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.example-item {
  display: grid;
  grid-template-columns: minmax(96px, 140px) minmax(0, 1fr);
  gap: 12px;
  font-size: 14px;
}

.example-label {
  font-weight: 600;
  color: var(--text-sub);
}

.example-text {
  color: var(--text-main);
}

.example-verdict {
  font-size: 14px;
  color: var(--text-sub);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.example-verdict a {
  color: var(--link);
}

/* --- records page --- */

.records-block,
.records-standards,
.records-mapping,
.records-faq {
  margin-bottom: 40px;
}

.records-block .record-group {
  margin-bottom: 16px;
}

.standard-list,
.mapping-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.standard-item,
.mapping-item {
  padding: 16px;
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.standard-name,
.mapping-stage {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.standard-desc,
.mapping-channels,
.mapping-collections {
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.mapping-channels {
  font-family: var(--font-mono);
  color: var(--alert);
}

.mapping-link {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

/* ==========================================================================
   pages
   ========================================================================== */

/* --- home --- */

.home-main {
  padding-top: 0;
}

.hero-path-section {
  padding: 32px 0 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

.hero-lead {
  font-size: 15px;
  color: var(--text-sub);
  max-width: 44ch;
}

.hero-note {
  font-size: 13px;
  color: var(--alert);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--text-main);
  color: #FFFFFF;
  border-color: var(--text-main);
}

.btn-primary:hover {
  background-color: #333A41;
  color: #FFFFFF;
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--block-bg);
  color: var(--text-main);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--link);
  color: var(--link);
  text-decoration: none;
}

.hero-media {
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
}

.channel-overview-section,
.collection-feature-section,
.record-brief-section,
.caliber-boundary-section,
.site-index-section {
  padding: 40px 0 0;
}

/* --- inner pages shared shell --- */

.inner-main {
  padding-top: 0;
}

.page-channels .page-header,
.page-collections .page-header,
.page-guide .page-header,
.page-records .page-header {
  padding-top: 12px;
}

/* --- 404 --- */

.site-error .error-main {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 48px 24px 56px;
}

.error-notice {
  margin-bottom: 40px;
}

.error-inner {
  max-width: 640px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: var(--alert);
  line-height: 1.1;
  margin-bottom: 8px;
}

.error-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  color: #FFFFFF;
  background-color: var(--text-main);
  border: 1px solid var(--text-main);
  border-radius: var(--radius);
}

.error-home-link:hover {
  background-color: #333A41;
  color: #FFFFFF;
  text-decoration: none;
}

.error-routes-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.error-routes-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.error-routes-list li {
  display: flex;
}

.error-routes-list a {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--link);
  background-color: var(--block-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.error-routes-list a:hover {
  border-color: var(--link);
  text-decoration: none;
}

/* ==========================================================================
   footer
   ========================================================================== */

.site-footer {
  background-color: var(--block-bg);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 32px 24px 20px;
}

.footer-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-sub);
  max-width: 34ch;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-list a {
  display: inline-block;
  font-size: 14px;
  color: var(--text-sub);
  padding: 4px 0;
}

.footer-list a:hover {
  color: var(--link);
}

.footer-copyright {
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 14px 24px 24px;
  font-size: 13px;
  color: var(--text-sub);
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 8px 20px;
    min-height: 0;
  }

  .nav-toggle {
    display: block;
    order: 2;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 8px 0;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--link);
    padding-left: 10px;
  }

  .site-main {
    padding: 0 20px 40px;
  }

  .top-fact-bar {
    padding: 10px 20px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-title {
    font-size: 26px;
  }

  .path-entry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-row {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .channel-row .channel-name {
    grid-column: 2;
  }

  .channel-direction,
  .channel-audience,
  .channel-caliber {
    grid-column: 2;
  }

  .channel-fields {
    grid-column: 2;
  }

  .channel-link,
  .channel-entry {
    grid-column: 2;
    justify-self: start;
  }

  .collection-feature-grid,
  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-brief-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .caliber-boundary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .related-task-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-band-list,
  .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-explain-list,
  .audience-map-list,
  .compose-grid,
  .standard-list,
  .mapping-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .error-routes-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-main {
    padding: 0 16px 32px;
  }

  .top-fact-bar {
    padding: 10px 16px;
  }

  .header-inner {
    padding: 8px 16px;
  }

  .hero-path-section {
    padding-top: 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .page-title {
    font-size: 22px;
  }

  .path-entry-list,
  .record-brief-groups,
  .site-index-grid,
  .related-task-list,
  .related-band-list,
  .related-list,
  .field-explain-list,
  .audience-map-list,
  .compose-grid,
  .standard-list,
  .mapping-list,
  .step-list,
  .error-routes-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .channel-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .channel-fields .field-value {
    margin-bottom: 6px;
  }

  .caliber-list,
  .field-row,
  .example-item,
  .collection-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }

  .field-row .field-value,
  .example-text,
  .collection-fields .field-value {
    margin-bottom: 6px;
  }

  .mapping-table {
    display: block;
    overflow-x: auto;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 16px 16px;
  }

  .footer-copyright {
    padding: 12px 16px 20px;
  }

  .related-band {
    padding: 8px 16px 24px;
  }

  .related-task-title,
  .related-task-list {
    padding-left: 16px;
    padding-right: 16px;
  }

  .error-code {
    font-size: 36px;
  }

  .error-title {
    font-size: 22px;
  }
}
