:root {
  --bg-page: #f7f9fa;
  --bg-panel: #ffffff;
  --bg-subtle: #eef2f4;
  --text-main: #1f2a30;
  --text-soft: #55636c;
  --text-faint: #7b8890;
  --line: #dde3e7;
  --line-strong: #c6d0d6;
  --channel-blue: #2f6fb0;
  --collection-green: #2f9e7a;
  --status-orange: #c47b1e;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --shadow-card: 0 1px 2px rgba(31, 42, 48, 0.06);
  --font-sans: "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
  --wrap: 1120px;
  --gap: 24px;
}

/* ============================================================
   base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--channel-blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

button {
  font: inherit;
  color: inherit;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.84em;
  letter-spacing: 0;
}

:focus-visible {
  outline: 2px solid var(--channel-blue);
  outline-offset: 2px;
}

/* ============================================================
   layout
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 24px;
}

.brand {
  flex: 0 0 auto;
  color: var(--text-main);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--channel-blue);
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 8px;
}

.nav-link {
  display: inline-block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.4;
  white-space: normal;
}

.nav-link:hover,
.nav-link:focus-visible {
  background-color: var(--bg-subtle);
  color: var(--channel-blue);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--channel-blue);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--channel-blue);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background-color: var(--text-main);
}

.nav-toggle-bar:first-child {
  margin-top: 0;
}

.nav-toggle-bar:last-child {
  margin-bottom: 0;
}

.site-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.inner-main {
  padding-top: 20px;
}

.site-footer {
  background-color: var(--bg-panel);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(140px, 1fr));
  gap: 28px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 24px 24px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-size: 16px;
  font-weight: 700;
}

.footer-desc {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: none;
}

.footer-list li + li {
  margin-top: 6px;
}

.footer-list a {
  display: inline-block;
  padding: 2px 0;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.5;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--channel-blue);
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px 24px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  color: var(--text-faint);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ============================================================
   components
   ============================================================ */

.section {
  margin-top: 44px;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 22px;
}

.section-desc,
.section-intro {
  margin-top: 8px;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.section-foot {
  margin-top: 16px;
  font-size: 14.5px;
}

.section-foot a {
  font-weight: 700;
}

.subsection-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.btn:hover,
.btn:focus-visible {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--channel-blue);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: #255a90;
  color: #ffffff;
}

.btn-ghost {
  background-color: var(--bg-panel);
  border-color: var(--line-strong);
  color: var(--text-main);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--channel-blue);
  color: var(--channel-blue);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-faint);
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text-main);
}

.page-header {
  padding: 18px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.page-title {
  font-size: 27px;
  line-height: 1.3;
}

.page-description {
  margin-bottom: 10px;
  color: var(--status-orange);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0;
}

.page-lead {
  margin-top: 10px;
  max-width: 780px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  gap: 36px;
  align-items: start;
  margin-top: 32px;
}

.sidebar-left .page-layout {
  grid-template-columns: 288px minmax(0, 1fr);
}

.main-column,
.layout-main {
  min-width: 0;
}

.sidebar,
.layout-sidebar {
  min-width: 0;
}

.sidebar-block {
  padding: 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.sidebar-block + .sidebar-block {
  margin-top: 18px;
}

.sidebar-title {
  font-size: 15px;
}

.sidebar-text {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

.sidebar-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
}

.channel-figure,
.media-figure,
.section-media {
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-panel);
}

.channel-figure img,
.media-figure img,
.section-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.channel-figure figcaption,
.media-figure figcaption,
.media-caption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.6;
}

.scope-table,
.field-table,
.fields-table {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.scope-caption,
.table-caption,
.fields-table caption {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  text-align: left;
}

.scope-table th,
.scope-table td,
.field-table th,
.field-table td,
.fields-table th,
.fields-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.65;
  text-align: left;
  vertical-align: top;
}

.scope-table thead th,
.field-table thead th,
.fields-table thead th {
  background-color: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 700;
  white-space: nowrap;
}

.scope-table tbody tr:last-child th,
.scope-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.fields-table tbody tr:last-child th,
.fields-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-name,
.field-label {
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.field-sample,
.field-value {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 13px;
}

.entry-steps,
.entry-list,
.step-list,
.path-list {
  display: grid;
  gap: 12px;
}

.entry-step,
.entry-item,
.step-item,
.path-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 16px 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step-index,
.entry-index,
.path-index {
  grid-row: 1 / span 2;
  align-self: start;
  padding: 3px 0;
  color: var(--channel-blue);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.entry-step .step-body,
.step-item .step-title,
.path-step .path-name,
.entry-item .entry-text,
.entry-item .entry-link {
  grid-column: 2;
}

.step-title,
.path-name {
  font-size: 16px;
}

.step-text,
.path-text,
.entry-text {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

.entry-link {
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.faq-question {
  padding: 14px 18px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  float: right;
  margin-left: 12px;
  color: var(--collection-green);
  font-family: var(--font-mono);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 18px 16px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

.archive-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 14px 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.pager-link {
  font-size: 14.5px;
  font-weight: 700;
}

.pager-status {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ============================================================
   pages — 首页
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 44px 0 8px;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  color: var(--collection-green);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0;
}

.hero-title {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.28;
}

.hero-text {
  margin-top: 14px;
  max-width: 560px;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-panel);
  box-shadow: var(--shadow-card);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.6;
}

.hero-next {
  grid-column: 1 / -1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 13.5px;
}

.channel-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-panel);
  overflow: hidden;
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 2.1fr) minmax(0, 2.1fr) auto;
  gap: 8px 20px;
  align-items: baseline;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.channel-row:last-child {
  border-bottom: 0;
}

.channel-row:hover {
  background-color: var(--bg-subtle);
}

.channel-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-main);
}

.channel-field {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.channel-field .mono {
  color: var(--text-faint);
}

.channel-link {
  justify-self: end;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.collection-card:hover {
  border-color: var(--line-strong);
}

.collection-media {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.collection-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.collection-name {
  padding: 14px 16px 0;
  font-size: 17px;
}

.collection-theme {
  padding: 8px 16px 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.collection-scope {
  padding: 8px 16px 0;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.7;
}

.collection-link {
  margin: 14px 16px 16px;
  font-size: 14px;
  font-weight: 700;
}

.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.fields-table-wrap {
  min-width: 0;
}

.fields-scope {
  min-width: 0;
  padding: 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--status-orange);
  border-radius: var(--radius-lg);
}

.fields-scope p {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.path-step {
  grid-template-columns: 44px minmax(0, 1fr);
}

.changelog-list {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-panel);
  overflow: hidden;
}

.changelog-item {
  display: grid;
  grid-template-columns: 108px 120px minmax(0, 1fr);
  gap: 6px 16px;
  align-items: baseline;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.changelog-item:last-child {
  border-bottom: 0;
}

.changelog-date {
  color: var(--text-faint);
  font-size: 13px;
}

.changelog-tag {
  justify-self: start;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.changelog-tag-channel {
  background-color: #e6eef7;
  color: var(--channel-blue);
}

.changelog-tag-collection {
  background-color: #e2f2ec;
  color: var(--collection-green);
}

.changelog-tag-field {
  background-color: #f8eeda;
  color: var(--status-orange);
}

.changelog-text {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ============================================================
   pages — 频道分类
   ============================================================ */

.channel-rows {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--bg-panel);
  overflow: hidden;
}

.channel-rows .channel-row {
  display: block;
  padding: 16px 18px;
}

.channel-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.channel-tag {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.channel-tag-blue {
  background-color: #e6eef7;
  color: var(--channel-blue);
}

.channel-rows .channel-field {
  margin-top: 8px;
}

.channel-rows .channel-link {
  display: inline-block;
  margin-top: 10px;
  justify-self: start;
}

.section-scope {
  margin-top: 40px;
}

.section-entry {
  margin-top: 40px;
}

/* ============================================================
   pages — 专题片单
   ============================================================ */

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.playlist-cover {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.playlist-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.playlist-body {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
}

.playlist-name {
  font-size: 17px;
}

.playlist-theme {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.playlist-scope {
  margin-top: 8px;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.7;
}

.detail-list {
  display: grid;
  gap: 14px;
}

.detail-item {
  padding: 16px 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.detail-name {
  font-size: 16px;
}

.detail-text {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.75;
}

.detail-audience {
  margin-top: 8px;
  color: var(--text-faint);
  font-size: 13.5px;
  line-height: 1.7;
}

.section-archive {
  margin-top: 40px;
}

/* ============================================================
   pages — 条目字段说明
   ============================================================ */

.section-fields .section-intro,
.section-boundary .section-intro,
.section-entries .section-intro {
  margin-bottom: 16px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.boundary-card {
  padding: 18px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.boundary-in {
  border-top: 3px solid var(--collection-green);
}

.boundary-out {
  border-top: 3px solid var(--status-orange);
}

.boundary-title {
  font-size: 16px;
}

.boundary-list {
  margin-top: 10px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

.boundary-list li + li {
  margin-top: 8px;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--line-strong);
}

.boundary-in .boundary-list li::before {
  background-color: var(--collection-green);
}

.boundary-out .boundary-list li::before {
  background-color: var(--status-orange);
}

.section-boundary,
.section-entries {
  margin-top: 40px;
}

/* ============================================================
   pages — 观看路径指引
   ============================================================ */

.section-steps .media-figure {
  margin-bottom: 22px;
}

.section-faq {
  margin-top: 40px;
}

/* ============================================================
   pages — 404
   ============================================================ */

.error-main {
  padding-top: 48px;
  padding-bottom: 72px;
}

.error-block {
  max-width: 640px;
  padding: 28px;
  background-color: var(--bg-panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--status-orange);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.error-block h1 {
  font-size: 26px;
}

.error-text {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.8;
}

.error-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.error-list li a {
  font-size: 14.5px;
  font-weight: 700;
}

.error-action {
  margin-top: 22px;
}

.error-home-link {
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--channel-blue);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 700;
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background-color: #255a90;
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1000px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .page-layout,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .channel-row {
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .channel-row .channel-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .fields-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 30px;
  }

  .hero-title {
    font-size: 28px;
  }

  .collection-grid,
  .playlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .changelog-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .changelog-text {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .header-inner {
    align-items: center;
    gap: 10px;
  }

  .nav-toggle {
    display: block;
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    flex: 1 0 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 10px;
    font-size: 15px;
  }

  .nav-link.is-current {
    box-shadow: inset 3px 0 0 var(--channel-blue);
    border-radius: var(--radius-sm);
  }

  .site-main {
    padding: 0 16px 44px;
  }

  .footer-inner {
    padding: 28px 16px 18px;
    gap: 22px 18px;
  }

  .footer-bottom {
    padding: 12px 16px 20px;
  }

  .section {
    margin-top: 34px;
  }

  .section-title {
    font-size: 20px;
  }

  .page-header {
    padding: 14px 0 18px;
  }

  .page-title {
    font-size: 23px;
  }

  .page-layout {
    margin-top: 24px;
  }

  .hero-title {
    font-size: 25px;
  }

  .hero-actions .btn {
    flex: 1 1 180px;
  }

  .collection-grid,
  .playlist-grid,
  .boundary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 14px 16px;
  }

  .channel-row .channel-link {
    grid-column: auto;
  }

  .changelog-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px 16px;
  }

  .changelog-text {
    grid-column: auto;
  }

  .entry-step,
  .step-item,
  .path-step {
    grid-template-columns: 36px minmax(0, 1fr);
    padding: 14px 16px;
  }

  .scope-table,
  .field-table,
  .fields-table {
    display: block;
    overflow-x: auto;
  }

  .scope-table thead th,
  .field-table thead th,
  .fields-table thead th {
    white-space: normal;
  }

  .error-block {
    padding: 22px 18px;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 17px;
  }

  .hero-title {
    font-size: 23px;
  }

  .page-title {
    font-size: 21px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-step,
  .step-item,
  .path-step {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-index,
  .entry-index,
  .path-index {
    grid-row: auto;
  }

  .entry-step .step-body,
  .step-item .step-title,
  .path-step .path-name,
  .entry-item .entry-text,
  .entry-item .entry-link {
    grid-column: auto;
  }
}
