/* =========================================================
   61zone.com · 茄子视频
   base / layout / components / pages / responsive
   ========================================================= */

/* ---------- base : tokens & reset ---------- */
:root {
  --ink: #14161b;
  --paper: #f3f0e8;
  --paper-soft: #eae5d9;
  --red: #d63c1f;
  --blue: #1c3ecb;
  --sand: #dcd6c7;
  --gray: #5c5a53;
  --line: #cfc8b7;
  --header-h: 64px;
  --rail-h: 44px;
  --wrap: 1160px;
  --read: 780px;
  --font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-num: "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: #23262d;
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, ul, ol, dl {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ---------- layout : shell ---------- */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background-color: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid #2b2f37;
}

.header-inner {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-mark {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  color: var(--paper);
  white-space: nowrap;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.brand-mark::before {
  content: "";
  width: 12px;
  height: 12px;
  background-color: var(--red);
  display: inline-block;
}

.site-nav {
  display: flex;
  align-items: center;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.4;
  color: #d8d3c4;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.nav-link:hover {
  color: var(--paper);
}

.nav-link.is-current {
  color: var(--paper);
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #3a3f49;
  background-color: transparent;
  padding: 0;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--paper);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

/* 章节目录条 —— 全站共用 */
.section-bar,
.section-rail,
.chapter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  height: var(--rail-h);
  background-color: var(--paper-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px;
  overflow: hidden;
}

.section-nav,
.section-bar-nav,
.section-toc,
.chapter-nav,
.rail-nav {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar,
.section-bar-nav::-webkit-scrollbar,
.section-toc::-webkit-scrollbar,
.chapter-nav::-webkit-scrollbar,
.rail-nav::-webkit-scrollbar {
  display: none;
}

.section-nav ul,
.section-bar-nav ul,
.section-toc ul,
.chapter-nav ul,
.chapter-list {
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
}

.section-nav a,
.section-bar-nav a,
.section-toc a,
.chapter-nav a,
.chapter-link,
.rail-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--gray);
  padding: 6px 0;
  transition: color .18s ease;
}

.section-nav a:hover,
.section-bar-nav a:hover,
.section-toc a:hover,
.chapter-nav a:hover,
.chapter-link:hover,
.rail-link:hover {
  color: var(--ink);
}

.section-nav a::before,
.section-bar-nav a::before,
.section-toc a::before,
.chapter-nav a::before,
.chapter-link::before,
.rail-link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: transparent;
  flex: 0 0 auto;
  transition: background-color .18s ease;
}

.section-nav a.is-active::before,
.section-bar-nav a.is-active::before,
.section-toc a.is-active::before,
.chapter-nav a.is-active::before,
.chapter-link.is-active::before,
.rail-link.is-current::before {
  background-color: var(--red);
}

.section-nav a.is-active,
.section-bar-nav a.is-active,
.section-toc a.is-active,
.chapter-nav a.is-active,
.chapter-link.is-active,
.rail-link.is-current,
.section-link.is-current {
  color: var(--ink);
  font-weight: 600;
}

.reading-progress,
.section-bar-progress,
.section-progress,
.rail-progress,
.chapter-progress {
  flex: 0 0 120px;
  width: 120px;
  height: 2px;
  background-color: var(--sand);
  overflow: hidden;
  position: relative;
}

.reading-progress-fill,
.section-bar-progress-fill,
.section-progress-fill,
.rail-progress-fill,
.chapter-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background-color: var(--red);
  transition: width .15s linear;
}

/* 主内容 */
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 24px 72px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--gray);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.breadcrumb a:hover {
  color: var(--ink);
  border-bottom-color: var(--red);
}

.breadcrumb-sep {
  color: #a8a293;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 20px;
}

.page-title {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  max-width: 22ch;
}

.page-title-block {
  max-width: var(--read);
  margin-bottom: 40px;
}

.page-summary {
  font-size: 17px;
  line-height: 1.8;
  color: #3a3d44;
  margin-bottom: 12px;
}

.page-updated,
.page-meta {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--gray);
}

.page-meta {
  margin-top: 8px;
}

.page-head {
  max-width: var(--read);
  margin-bottom: 40px;
}

.page-lead {
  font-size: 17px;
  line-height: 1.8;
  color: #3a3d44;
  margin-bottom: 10px;
}

.page-hero {
  max-width: var(--read);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-hero-lead {
  font-size: 18px;
  line-height: 1.8;
  color: #3a3d44;
  margin-bottom: 12px;
}

/* 页脚 */
.site-footer {
  flex: 0 0 auto;
  background-color: var(--ink);
  color: #c8c3b5;
  padding: 56px 0 28px;
  margin-top: 0;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-intro {
  font-size: 15px;
  line-height: 1.85;
  color: #b9b4a6;
  max-width: 760px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2b2f37;
  margin-bottom: 36px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2b2f37;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  font-size: 14px;
  line-height: 1.6;
  color: #a9a496;
  transition: color .18s ease;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid #2b2f37;
  font-size: 13px;
  color: #8d897c;
  font-family: var(--font-num);
}

/* ---------- components : shared ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn-primary {
  background-color: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background-color: #b93118;
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover {
  background-color: var(--ink);
  color: var(--paper);
}

.btn-outline {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-outline:hover {
  border-color: var(--ink);
  background-color: var(--paper-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}

.text-link::after {
  content: "→";
  font-family: var(--font-num);
  transition: transform .18s ease;
}

.text-link:hover {
  border-bottom-color: var(--blue);
}

.text-link:hover::after {
  transform: translateX(3px);
}

.inline-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.inline-link:hover {
  color: var(--red);
}

.section-head {
  margin-bottom: 28px;
  max-width: var(--read);
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
}

.section-desc,
.section-lead,
.section-note {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray);
}

.section-lead {
  margin-bottom: 24px;
  max-width: var(--read);
}

.visually-plain {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 12px;
}

/* 折叠问答 */
.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  line-height: 1.6;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 400;
  color: var(--red);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--red);
}

.faq-item p,
.faq-answer {
  padding: 0 40px 20px 0;
  font-size: 15px;
  line-height: 1.85;
  color: #3a3d44;
}

/* 相关内容条 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  font-family: var(--font-num);
}

.related-links-item {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color .18s ease, color .18s ease;
}

.related-links-item:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* 图片容器通用 */
.hero-media,
.feature-media,
.focus-media,
.topic-cover,
.about-figure,
.content-figure,
.changelog-media {
  overflow: hidden;
  border-radius: 6px;
  background-color: var(--sand);
}

.hero-media img,
.feature-media img,
.focus-media img,
.topic-cover img,
.about-figure img,
.content-figure img,
.changelog-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   pages : index
   ========================================================= */
.home-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 17px;
  line-height: 1.85;
  color: #3a3d44;
  max-width: 34em;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  aspect-ratio: 4 / 3;
  margin: 0;
}

/* 频道索引 */
.channel-index {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background-color: var(--line);
  border: 1px solid var(--line);
}

.channel-item {
  background-color: var(--paper);
  min-width: 0;
}

.channel-item a {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "num name arrow"
    "note note note";
  align-items: center;
  gap: 4px 12px;
  padding: 22px 20px;
  height: 100%;
  transition: background-color .18s ease, transform .18s ease;
}

.channel-item a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .2s ease;
}

.channel-item a:hover {
  background-color: var(--paper-soft);
  transform: translateY(-2px);
}

.channel-item a:hover::before {
  transform: scaleY(1);
}

.channel-num {
  grid-area: num;
  font-family: var(--font-num);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

.channel-name {
  grid-area: name;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  min-width: 0;
  overflow-wrap: anywhere;
}

.channel-arrow {
  grid-area: arrow;
  font-family: var(--font-num);
  color: var(--gray);
  font-size: 16px;
  transition: color .18s ease, transform .18s ease;
}

.channel-item a:hover .channel-arrow {
  color: var(--red);
  transform: translateX(3px);
}

.channel-note {
  grid-area: note;
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray);
  margin-top: 6px;
}

/* 专题焦点 */
.feature-strip {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feature-media {
  aspect-ratio: 16 / 10;
  margin: 0 0 16px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.feature-note {
  font-size: 14px;
  line-height: 1.75;
  color: #3a3d44;
  margin-bottom: 10px;
}

.feature-meta {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 14px;
}

.feature-card .text-link {
  margin-top: auto;
}

/* 任务面板 */
.task-panel {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.task-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.task-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.task-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "num name status"
    "num desc desc";
  align-items: start;
  gap: 4px 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.task-num {
  grid-area: num;
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.2;
}

.task-name {
  grid-area: name;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.task-desc {
  grid-area: desc;
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray);
  min-width: 0;
}

.task-status {
  grid-area: status;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  background-color: #e6e9f8;
  padding: 3px 10px;
  border-radius: 4px;
  white-space: nowrap;
  align-self: center;
}

.task-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background-color: var(--paper-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
  min-width: 0;
}

.task-help {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.task-help:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.task-help summary {
  position: relative;
  padding-right: 26px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  line-height: 1.5;
}

.task-help summary::-webkit-details-marker {
  display: none;
}

.task-help summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--font-num);
  font-size: 18px;
  color: var(--red);
  line-height: 1;
}

.task-help[open] summary::after {
  content: "−";
}

.task-help p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
  margin-top: 10px;
}

.task-aside .btn {
  width: 100%;
}

/* 更新摘要 */
.update-summary {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.update-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 24px;
}

.update-col {
  min-width: 0;
}

.update-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.update-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  min-width: 0;
}

.update-date {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--gray);
  white-space: nowrap;
}

.update-text {
  font-size: 14px;
  line-height: 1.7;
  color: #3a3d44;
  min-width: 0;
}

/* 首页问答 */
.faq {
  padding: 64px 0 0;
}

.faq .faq-list {
  max-width: var(--read);
}

/* =========================================================
   pages : channels
   ========================================================= */
.channel-filter {
  margin-bottom: 48px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background-color: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.filter-chip .chip-abbr {
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--gray);
}

.filter-chip:hover {
  border-color: var(--ink);
}

.filter-chip.is-active {
  background-color: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.filter-chip.is-active .chip-abbr {
  color: #b9b4a6;
}

.focus-channels {
  margin-bottom: 64px;
}

.focus-channels > h2,
.channel-list-section > h2,
.naming-rules .rules-title h2,
.related-entry > h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.focus-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background-color: #faf8f2;
}

.focus-media {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  margin: 0;
}

.focus-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
}

.focus-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.focus-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #3a3d44;
  margin-bottom: 14px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tag {
  font-size: 12px;
  line-height: 1.5;
  color: var(--blue);
  background-color: #e6e9f8;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}

.focus-body .inline-link {
  margin-top: auto;
  align-self: flex-start;
}

.channel-list-section {
  margin-bottom: 64px;
}

.channel-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 16px;
  align-items: center;
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.channel-row-head {
  background-color: var(--paper-soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  border-bottom: 1px solid var(--ink);
}

.channel-row-head span {
  min-width: 0;
}

.channel-row [role="cell"] {
  font-size: 14px;
  line-height: 1.6;
  color: #3a3d44;
  min-width: 0;
  overflow-wrap: anywhere;
}

.channel-row .col-name a {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.channel-row .col-name a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.naming-rules {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  margin-bottom: 48px;
}

.rules-title {
  min-width: 0;
}

.rules-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rules-body p {
  font-size: 15px;
  line-height: 1.85;
  color: #3a3d44;
}

.related-entry {
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #faf8f2;
  min-width: 0;
  transition: border-color .18s ease, transform .18s ease;
}

.related-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.related-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.related-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

/* =========================================================
   pages : playlists
   ========================================================= */
.content-wrap {
  max-width: 100%;
}

.playlist-logic {
  margin-bottom: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.logic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
}

.logic-lead {
  min-width: 0;
}

.logic-lead p {
  font-size: 16px;
  line-height: 1.85;
  color: #3a3d44;
}

.logic-points {
  min-width: 0;
}

.logic-points ol {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.logic-point {
  position: relative;
  padding: 16px 0 16px 44px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.8;
  color: #3a3d44;
  counter-increment: logic;
  min-width: 0;
}

.logic-points ol {
  counter-reset: logic;
}

.logic-point::before {
  content: counter(logic, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 16px;
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.4;
}

.duration-filter {
  position: sticky;
  top: calc(var(--header-h) + var(--rail-h) + 8px);
  z-index: 20;
  background-color: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 48px;
}

.duration-filter .section-head {
  margin-bottom: 14px;
}

.duration-filter .section-head h2 {
  font-size: 16px;
  margin-bottom: 4px;
}

.duration-filter .section-desc {
  font-size: 13px;
}

.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 20px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray);
  min-width: 0;
}

.filter-range {
  flex: 1 1 220px;
  min-width: 180px;
  height: 32px;
  accent-color: var(--red);
  cursor: pointer;
}

.filter-number {
  width: 96px;
  min-height: 40px;
  padding: 8px 10px;
  font-family: var(--font-num);
  font-size: 14px;
  color: var(--ink);
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.filter-number:focus {
  border-color: var(--ink);
  outline: none;
}

.filter-reset {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  background-color: transparent;
  transition: border-color .18s ease, background-color .18s ease;
}

.filter-reset:hover {
  border-color: var(--ink);
  background-color: var(--paper);
}

.filter-current {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--ink);
}

.topic-grid-section {
  margin-bottom: 56px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 24px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background-color: #faf8f2;
  min-width: 0;
}

.topic-cover {
  aspect-ratio: 16 / 10;
  border-radius: 0;
  margin: 0;
}

.topic-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 20px 20px;
  min-width: 0;
}

.topic-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.topic-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #3a3d44;
  margin-bottom: 12px;
}

.topic-duration {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 12px;
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.topic-tags li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--blue);
  background-color: #e6e9f8;
  padding: 3px 9px;
  border-radius: 4px;
  white-space: nowrap;
}

.related-entry .related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.related-entry .related-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.related-entry .related-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray);
}

.related-arrow {
  font-family: var(--font-num);
  color: var(--red);
  margin-top: 4px;
}

/* =========================================================
   pages : guide
   ========================================================= */
.page-layout {
  display: block;
}

.sidebar-left .page-layout,
.sidebar-left .page-content {
  min-width: 0;
}

.page-guide .page-layout.sidebar-left,
.sidebar-left .page-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.toc-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--rail-h) + 24px);
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--paper-soft);
}

.toc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  font-family: var(--font-num);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray);
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.toc-link:hover {
  color: var(--ink);
  background-color: var(--paper);
}

.toc-link.is-active {
  color: var(--ink);
  font-weight: 600;
  border-left-color: var(--red);
  background-color: var(--paper);
}

.toc-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray);
}

.page-content {
  min-width: 0;
}

.content-section {
  margin-bottom: 56px;
}

.content-section > h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}

.content-section .section-lead {
  margin-bottom: 22px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: verify;
}

.step-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  min-width: 0;
}

.step-num {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.3;
}

.step-body {
  min-width: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #3a3d44;
}

.step-body strong {
  color: var(--ink);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.col-head {
  min-width: 0;
}

.col-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.col-head p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray);
}

.col-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-figure {
  margin: 0;
  aspect-ratio: 16 / 9;
}

.content-figure figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
  padding: 10px 0 0;
}

.col-body .content-figure {
  border-radius: 6px;
}

.col-body .content-figure figcaption {
  padding: 10px 0 0;
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.note-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.8;
  color: #3a3d44;
  min-width: 0;
}

.note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 2px;
  background-color: var(--red);
}

.page-content .faq-list {
  max-width: var(--read);
}

.trouble-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: trouble;
}

.trouble-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  min-width: 0;
}

.trouble-num {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.trouble-body {
  min-width: 0;
  font-size: 15px;
  line-height: 1.85;
  color: #3a3d44;
}

.related-section {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin-bottom: 0;
}

.related-section .related-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-top: 0;
  padding: 0;
  margin-top: 16px;
}

.related-section .related-links li {
  min-width: 0;
}

.related-section .related-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color .18s ease, color .18s ease;
}

.related-section .related-links a:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* =========================================================
   pages : changelog
   ========================================================= */
.changelog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 48px;
  align-items: start;
}

.page-primary {
  min-width: 0;
}

.changelog-legend,
.changelog-entries,
.changelog-rules {
  margin-bottom: 48px;
}

.changelog-legend h2,
.changelog-entries h2,
.changelog-rules h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 10px;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.legend-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #faf8f2;
  min-width: 0;
}

.legend-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 10px 0 6px;
}

.legend-item p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

.legend-badge {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  padding: 2px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.legend-add .legend-badge {
  color: #fff;
  background-color: var(--blue);
}

.legend-adjust .legend-badge {
  color: #fff;
  background-color: var(--ink);
}

.legend-fix .legend-badge {
  color: #fff;
  background-color: var(--red);
}

.section-note {
  margin-bottom: 20px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.entry-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "badge date"
    "title title"
    "scope scope";
  gap: 4px 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  min-width: 0;
}

.entry-item .legend-badge {
  grid-area: badge;
  justify-self: start;
}

.entry-date {
  grid-area: date;
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--gray);
}

.entry-title {
  grid-area: title;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-top: 6px;
  min-width: 0;
}

.entry-scope {
  grid-area: scope;
  font-size: 14px;
  line-height: 1.75;
  color: #3a3d44;
  min-width: 0;
}

.changelog-media {
  margin: 0 0 48px;
  aspect-ratio: 16 / 9;
}

.changelog-media figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
  padding: 10px 0 0;
}

.changelog-rules p {
  font-size: 15px;
  line-height: 1.85;
  color: #3a3d44;
  margin-bottom: 12px;
}

.page-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--rail-h) + 24px);
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--paper-soft);
}

.page-aside h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.aside-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--gray);
  margin-bottom: 12px;
}

.archive-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.archive-list a {
  display: block;
  padding: 8px 10px;
  font-family: var(--font-num);
  font-size: 14px;
  color: var(--gray);
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.archive-list a:hover {
  color: var(--ink);
  background-color: var(--paper);
  border-left-color: var(--red);
}

.aside-links {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.aside-links h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray);
  font-family: var(--font-num);
  margin-bottom: 10px;
}

.aside-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-links a {
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.aside-links a:hover {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* =========================================================
   pages : about
   ========================================================= */
.about-body {
  max-width: var(--read);
  margin: 0 auto;
}

.about-section {
  margin-bottom: 56px;
}

.about-section-head {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.about-section-head h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.about-section-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray);
  margin-top: 8px;
}

.about-section-content {
  min-width: 0;
}

.about-section-content p {
  font-size: 16px;
  line-height: 1.9;
  color: #3a3d44;
  margin-bottom: 16px;
}

.about-figure {
  margin: 24px 0 0;
  aspect-ratio: 16 / 9;
}

.about-figure figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
  padding: 10px 0 0;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.principle-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  min-width: 0;
}

.principle-index {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.4;
}

.principle-text {
  min-width: 0;
}

.principle-text h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 6px;
}

.principle-text p {
  font-size: 15px;
  line-height: 1.85;
  color: #3a3d44;
}

.relation-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.relation-col {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #faf8f2;
}

.relation-col h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.relation-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.relation-col li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #3a3d44;
  min-width: 0;
}

.relation-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--red);
}

.relation-col-playlist li::before {
  background-color: var(--blue);
}

.relation-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--gray);
  margin-top: 18px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.boundary-item {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.boundary-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 4px;
}

.boundary-item p {
  font-size: 14px;
  line-height: 1.8;
  color: #3a3d44;
}

.about-links {
  max-width: var(--read);
  margin: 0 auto;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.about-links h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 20px;
}

.about-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #faf8f2;
  min-width: 0;
  transition: border-color .18s ease, transform .18s ease;
}

.about-link-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.about-link-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.about-link-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
}

/* =========================================================
   pages : corrections
   ========================================================= */
.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.layout-shell .page-head {
  max-width: var(--read);
}

.correction-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.type-item {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #faf8f2;
  min-width: 0;
}

.type-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.type-desc {
  font-size: 14px;
  line-height: 1.75;
  color: #3a3d44;
  margin-bottom: 10px;
}

.type-point {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.correction-order {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.order-step {
  position: relative;
  padding: 20px 20px 20px 56px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: #faf8f2;
  min-width: 0;
}

.step-index {
  position: absolute;
  left: 20px;
  top: 20px;
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  line-height: 1.2;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.step-body {
  font-size: 14px;
  line-height: 1.75;
  color: #3a3d44;
  margin-bottom: 8px;
}

.step-output {
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.corrections-body .content-figure,
.layout-shell .content-figure {
  margin: 40px 0;
  aspect-ratio: 16 / 9;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.check-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  min-width: 0;
}

.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background-color: var(--ink);
  border-radius: 4px;
  line-height: 1;
}

.check-text {
  font-size: 15px;
  line-height: 1.8;
  color: #3a3d44;
  min-width: 0;
}

.check-text a {
  color: var(--blue);
  border-bottom: 1px solid currentColor;
}

.check-text a:hover {
  color: var(--red);
}

.changelog-cross {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--paper-soft);
}

.changelog-cross h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 10px;
}

.cross-body {
  font-size: 15px;
  line-height: 1.8;
  color: #3a3d44;
  margin-bottom: 14px;
}

.cross-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid currentColor;
}

.cross-link:hover {
  color: var(--red);
}

.corrections .related-links,
.layout-shell .related-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 24px;
}

.related-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.layout-shell .related-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.layout-shell .related-links a {
  font-size: 14px;
  color: var(--blue);
  border-bottom: 1px solid transparent;
}

.layout-shell .related-links a:hover {
  border-bottom-color: var(--blue);
}

/* =========================================================
   pages : 404
   ========================================================= */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.error-code {
  font-family: var(--font-num);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: var(--red);
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 14px;
}

.error-desc {
  font-size: 16px;
  line-height: 1.85;
  color: #3a3d44;
  margin-bottom: 24px;
}

.error-hints {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: var(--paper-soft);
}

.error-hints li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #3a3d44;
}

.error-hints li::before {
  content: "—";
  color: var(--red);
  font-family: var(--font-num);
}

.error-path {
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--ink);
  word-break: break-all;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.error-links {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.error-links a {
  font-size: 14px;
  color: var(--blue);
  border-bottom: 1px solid transparent;
}

.error-links a:hover {
  border-bottom-color: var(--blue);
}

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 960px) {
  .header-inner {
    padding: 0 20px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background-color: var(--ink);
    border-top: 1px solid #2b2f37;
    padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(20, 22, 27, .28);
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-y: auto;
  }

  .site-nav li {
    border-bottom: 1px solid #2b2f37;
  }

  .site-nav .nav-link {
    display: block;
    min-height: 48px;
    padding: 14px 8px;
    line-height: 1.4;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }

  .site-nav .nav-link.is-current {
    border-left-color: var(--red);
    border-bottom-color: transparent;
  }

  .section-bar,
  .section-rail,
  .chapter-bar {
    padding: 0 20px;
    gap: 16px;
  }

  .reading-progress,
  .section-bar-progress,
  .section-progress,
  .rail-progress,
  .chapter-progress {
    flex: 0 0 72px;
    width: 72px;
  }

  .inner-main {
    padding: 24px 20px 56px;
  }

  .home-main {
    padding: 0 20px 56px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px 0 48px;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .task-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .update-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 12px;
  }

  .channel-row .col-rhythm {
    display: none;
  }

  .channel-row-head .col-rhythm {
    display: none;
  }

  .naming-rules {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logic-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .page-guide .page-layout.sidebar-left,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .toc-aside {
    display: none;
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .changelog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-aside {
    position: static;
  }

  .legend-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .correction-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .correction-order {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
    --rail-h: 42px;
  }

  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .brand-mark {
    font-size: 18px;
  }

  .section-bar,
  .section-rail,
  .chapter-bar {
    padding: 0 16px;
    gap: 12px;
  }

  .section-nav ul,
  .section-bar-nav ul,
  .section-toc ul,
  .chapter-nav ul,
  .chapter-list {
    gap: 16px;
  }

  .section-nav a,
  .section-bar-nav a,
  .section-toc a,
  .chapter-nav a,
  .chapter-link,
  .rail-link {
    font-size: 13px;
  }

  .reading-progress,
  .section-bar-progress,
  .section-progress,
  .rail-progress,
  .chapter-progress {
    flex: 0 0 48px;
    width: 48px;
  }

  .inner-main {
    padding: 20px 16px 48px;
  }

  .home-main {
    padding: 0 16px 48px;
  }

  .page-title {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
    max-width: none;
  }

  .page-summary,
  .page-lead,
  .page-hero-lead {
    font-size: 15px;
  }

  .hero {
    padding: 32px 0 40px;
    gap: 24px;
  }

  .hero-text h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.6rem);
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .channel-index,
  .feature-strip,
  .task-panel,
  .update-summary {
    padding: 40px 0;
  }

  .faq {
    padding: 40px 0 0;
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-item a {
    padding: 16px 14px;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num name"
      "note note";
    gap: 4px 10px;
  }

  .channel-num {
    font-size: 22px;
  }

  .channel-name {
    font-size: 15px;
  }

  .channel-arrow {
    display: none;
  }

  .channel-note {
    font-size: 12px;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .task-step {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num name"
      "num desc"
      "num status";
    gap: 4px 14px;
  }

  .task-status {
    justify-self: start;
    align-self: start;
  }

  .update-item {
    grid-template-columns: auto 1fr;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 16px 34px 16px 0;
  }

  .faq-item p,
  .faq-answer {
    padding: 0 0 18px;
    font-size: 14px;
  }

  .related-links {
    padding: 20px 0;
    margin-top: 32px;
  }

  .channel-filter {
    margin-bottom: 32px;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .focus-channels {
    margin-bottom: 40px;
  }

  .focus-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .channel-list-section {
    margin-bottom: 40px;
  }

  .channel-table {
    border-top: 0;
  }

  .channel-row-head {
    display: none;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 10px;
    background-color: #faf8f2;
  }

  .channel-row .col-name {
    font-size: 15px;
  }

  .channel-row .col-genre,
  .channel-row .col-rhythm,
  .channel-row .col-scene {
    font-size: 13px;
    color: var(--gray);
  }

  .channel-row .col-rhythm {
    display: block;
  }

  .channel-row [role="cell"]::before {
    content: attr(data-label);
    display: inline-block;
    margin-right: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
  }

  .naming-rules {
    padding: 32px 0;
    margin-bottom: 32px;
  }

  .related-grid,
  .related-entry .related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .playlist-logic {
    margin-bottom: 40px;
    padding-bottom: 32px;
  }

  .duration-filter {
    position: static;
    padding: 16px;
    margin-bottom: 36px;
  }

  .filter-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .filter-range {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
  }

  .filter-number {
    width: 100%;
  }

  .filter-reset {
    width: 100%;
  }

  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .content-section {
    margin-bottom: 40px;
  }

  .step-item,
  .trouble-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  .step-num {
    font-size: 18px;
  }

  .trouble-num {
    font-size: 17px;
  }

  .step-body,
  .trouble-body {
    font-size: 14px;
  }

  .legend-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .entry-item {
    padding: 14px 0;
  }

  .entry-title {
    font-size: 15px;
  }

  .changelog-media {
    margin-bottom: 32px;
  }

  .about-body {
    max-width: none;
  }

  .about-section {
    margin-bottom: 40px;
  }

  .principle-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  .principle-index {
    font-size: 17px;
  }

  .relation-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .about-links-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .correction-types {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .correction-order {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .order-step {
    padding: 16px 16px 16px 48px;
  }

  .step-index {
    left: 16px;
    top: 16px;
    font-size: 19px;
  }

  .changelog-cross {
    padding: 18px;
  }

  .check-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
  }

  .error-main {
    padding: 48px 16px 64px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .site-footer {
    padding: 40px 0 24px;
  }

  .footer-inner {
    padding: 0 16px;
  }

  .footer-intro {
    font-size: 14px;
    padding-bottom: 22px;
    margin-bottom: 28px;
  }

  .footer-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    font-size: 12px;
  }
}
