/* ==========================================================================
   风车动漫 dengbohuo.cn — 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --bg: #f7f9fb;
  --surface: #ffffff;
  --ink: #1f2430;
  --ink-soft: #4a5262;
  --ink-mute: #77808f;
  --line: #dbe2ea;
  --line-soft: #e8edf3;
  --primary: #2f6fed;
  --primary-ink: #1d4fbb;
  --status: #12a37a;
  --radius: 6px;
  --radius-sm: 4px;
  --container: 1080px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo,
    "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--primary-ink);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt,
figure,
figcaption {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

time {
  font-family: var(--font-mono);
}

code,
.mono {
  font-family: var(--font-mono);
}

/* ==========================================================================
   layout
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  padding: 8px 0;
  flex: 0 0 auto;
}

.brand:hover,
.brand:focus-visible {
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-block;
  width: 10px;
  height: 20px;
  border-radius: 2px;
  background: var(--primary);
  flex: 0 0 auto;
}

.brand-slogan {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink-soft);
  font-size: 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--primary);
  background: #eef3fe;
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
}

.site-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.inner-main {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-mute);
  font-family: var(--font-mono);
}

.page-header {
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-title {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.page-description {
  max-width: 72ch;
  color: var(--ink-soft);
  margin: 0;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 200px minmax(0, 1fr);
}

.content-column,
.content-main {
  min-width: 0;
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr));
  gap: 28px 24px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-about {
  color: var(--ink-mute);
  font-size: 13px;
  margin: 0;
}

.footer-title {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-mute);
  font-weight: 400;
  margin-bottom: 10px;
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--primary);
}

.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px 28px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-mute);
  font-size: 12px;
}

/* ==========================================================================
   components
   ========================================================================== */

.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-desc,
.section-lead,
.section-intro {
  max-width: 72ch;
  color: var(--ink-soft);
  margin: 0 0 20px;
}

.section-head {
  margin-bottom: 20px;
}

.subsection-title {
  font-size: 17px;
  margin-bottom: 10px;
}

.link-inline {
  font-size: 14px;
  font-family: var(--font-mono);
}

.tag {
  display: inline-block;
  padding: 1px 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink-soft);
  background: #eef2f7;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.tag-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.tag-link:hover,
.tag-link:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-ink);
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink-soft);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

/* 表格：字段含义简表 */
.field-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

.field-table caption,
.field-table-caption,
.field-caption {
  caption-side: top;
  text-align: left;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--line-soft);
}

.field-table th,
.field-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.field-table thead th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
  background: #f2f5f9;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody th,
.field-table .field-name {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--ink);
  white-space: nowrap;
}

/* 编号步骤清单（榜单页 / 阅读说明页共用容器，作用域分开） */
.step-list {
  display: grid;
  gap: 14px;
}

.step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.step-index {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 50%;
}

.step-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.step-text {
  margin: 0;
  color: var(--ink-soft);
  min-width: 0;
}

/* 侧栏目录 */
.toc,
.page-aside {
  position: sticky;
  top: 80px;
  font-size: 13px;
}

.toc-title,
.aside-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.toc-list,
.aside-list {
  display: grid;
  gap: 2px;
}

.toc-link,
.aside-list a {
  display: block;
  padding: 6px 0 6px 10px;
  color: var(--ink-soft);
  border-left: 2px solid var(--line);
}

.toc-link:hover,
.toc-link:focus-visible,
.aside-list a:hover,
.aside-list a:focus-visible {
  color: var(--primary);
  border-left-color: var(--primary);
  text-decoration: none;
}

.toc-note {
  margin: 14px 0 0;
  color: var(--ink-mute);
  font-size: 12px;
}

.aside-extra {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.aside-subtitle {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

/* ==========================================================================
   pages — index.html
   ========================================================================== */

.home-main {
  padding-top: 32px;
}

.home-main > section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.home-main > section:last-child {
  border-bottom: 0;
}

/* 首屏 */
.hero {
  padding-top: 8px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.hero-intro {
  min-width: 0;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--status);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-desc {
  max-width: 60ch;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-caption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-mute);
}

/* 最近更新日期轨道 */
.track-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.track-list {
  display: grid;
  gap: 12px;
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.track-item {
  position: relative;
}

.track-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status);
}

.update-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.update-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--status);
  margin-bottom: 4px;
}

.update-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.update-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
}

.update-fields dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.update-fields dd {
  color: var(--ink-soft);
}

.track-more,
.ranking-more {
  margin: 0;
}

/* 题材分类总览 */
.genre-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.genre-media {
  min-width: 0;
}

.genre-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.genre-caption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-mute);
}

.genre-list {
  display: grid;
  gap: 0;
}

.genre-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.genre-row:first-child {
  padding-top: 0;
}

.genre-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.genre-name {
  font-size: 16px;
  margin-bottom: 4px;
}

.genre-trait,
.genre-org,
.genre-sample {
  margin: 0 0 4px;
  font-size: 14px;
  color: var(--ink-soft);
}

.genre-sample {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 0;
}

/* 榜单速览 */
.ranking-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

.ranking-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.ranking-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.ranking-basis {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 12px;
}

.ranking-items {
  display: grid;
  gap: 8px;
}

.ranking-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
}

.ranking-items li:first-child {
  padding-top: 0;
  border-top: 0;
}

.ranking-items a {
  min-width: 0;
}

/* 阅读说明摘要 */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.field-table-wrap {
  min-width: 0;
}

.boundary-text {
  min-width: 0;
}

.boundary-text p {
  color: var(--ink-soft);
}

.boundary-link {
  margin: 0;
}

/* 站内页面索引 */
.index-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.index-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.index-title {
  font-size: 15px;
  margin-bottom: 6px;
}

.index-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-mute);
}

/* ==========================================================================
   pages — fcdm/timetable.html
   ========================================================================== */

.update-track .track-day {
  margin-bottom: 28px;
}

.update-track .track-day:last-child {
  margin-bottom: 0;
}

.track-date {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  color: var(--status);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.update-track .track-list {
  padding-left: 18px;
  border-left: 2px solid var(--line);
}

.update-track .track-item {
  position: relative;
  padding-left: 0;
}

.update-track .track-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status);
}

.update-track .update-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.update-cover {
  width: 72px;
  margin: 0;
}

.update-cover img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.update-body {
  min-width: 0;
}

.update-work {
  font-size: 16px;
  margin-bottom: 6px;
}

.update-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--ink-soft);
}

.update-chapter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
}

.update-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.field-notes {
  margin-top: 4px;
}

.field-note-text {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.path-steps {
  display: grid;
  gap: 14px;
  counter-reset: pathstep;
}

.path-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 14px 52px;
}

.path-step::before {
  counter-increment: pathstep;
  content: counter(pathstep);
  position: absolute;
  left: 16px;
  top: 14px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 50%;
}

.path-step-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.path-step p {
  margin: 0;
  color: var(--ink-soft);
}

.path-footer {
  margin: 16px 0 0;
}

/* ==========================================================================
   pages — fcdm/works.html
   ========================================================================== */

.genre-block {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.genre-block:first-of-type {
  padding-top: 0;
}

.genre-block:last-of-type {
  border-bottom: 0;
}

.genre-block-head {
  margin-bottom: 12px;
}

.genre-index .genre-name {
  font-size: 18px;
  margin-bottom: 4px;
}

.genre-note {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.genre-cover {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.genre-cover img {
  width: 120px;
  height: 84px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.genre-cover figcaption {
  font-size: 13px;
  color: var(--ink-mute);
}

.archive-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.archive-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
}

.archive-title {
  font-size: 15px;
  margin-bottom: 8px;
}

.archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.archive-status,
.archive-structure {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ink-soft);
}

.archive-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--status);
}

.archive-structure {
  margin-bottom: 10px;
}

.archive-link {
  font-size: 13px;
  font-family: var(--font-mono);
}

.status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 1px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #eef2f7;
  color: var(--ink-soft);
}

.status-ongoing {
  color: var(--status);
  border-color: #bde6d8;
  background: #eafaf4;
}

.status-finished {
  color: var(--ink-mute);
  background: #f2f5f9;
}

.year-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.year-group {
  min-width: 0;
}

.year-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-mute);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}

.year-items {
  display: grid;
  gap: 8px;
}

.year-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 14px;
}

.year-footnote {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-mute);
}

.year-footnote a {
  margin-right: 12px;
}

.field-boundary-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.field-boundary-cols .field-notes,
.field-boundary-cols .boundary-text {
  min-width: 0;
}

.field-boundary-cols .boundary-text p {
  color: var(--ink-soft);
}

/* ==========================================================================
   pages — fcdm/ranking.html
   ========================================================================== */

.ranking-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ranking-board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
}

.ranking-figure {
  margin: 0 0 12px;
}

.ranking-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.ranking-list .ranking-name {
  font-size: 17px;
  margin-bottom: 10px;
}

.ranking-meta {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 10px;
  font-size: 13px;
}

.ranking-meta dt {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
}

.ranking-meta dd {
  color: var(--ink-soft);
}

.ranking-list .ranking-items {
  display: grid;
  gap: 8px;
}

.ranking-list .ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.item-name {
  min-width: 0;
}

.item-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-mute);
  white-space: nowrap;
}

.scope-note {
  margin-top: 32px;
}

.scope-note p {
  color: var(--ink-soft);
  max-width: 72ch;
}

.ranking-list + .scope-note,
.scope-note + .path-to-works {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.path-to-works {
  margin-top: 32px;
}

/* ==========================================================================
   pages — fcdm/guide.html
   ========================================================================== */

.reading-order .section-intro,
.boundary-note .section-intro,
.faq .section-intro {
  margin-bottom: 20px;
}

.guide-figure {
  margin: 0 0 22px;
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.guide-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-mute);
}

.reading-order .step-list {
  margin-bottom: 24px;
}

.reading-order .step-title {
  font-size: 15px;
  margin-bottom: 4px;
}

.reading-order .step-text {
  margin: 0;
  color: var(--ink-soft);
}

.reading-order .subsection-title {
  margin-top: 8px;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.boundary-col {
  min-width: 0;
}

.boundary-list {
  display: grid;
  gap: 8px;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--ink-soft);
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}

.boundary-note .boundary-text {
  margin: 0;
  color: var(--ink-soft);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-question {
  position: relative;
  padding: 14px 44px 14px 16px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--primary);
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-answer {
  padding: 0 16px 14px;
  border-top: 1px solid var(--line-soft);
}

.faq-answer p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

/* ==========================================================================
   pages — 404.html
   ========================================================================== */

.error-main {
  padding-top: 48px;
}

.error-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin-bottom: 32px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--status);
  margin-bottom: 8px;
}

.error-box h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.error-text {
  max-width: 60ch;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.error-home-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}

.error-home-link:hover,
.error-home-link:focus-visible {
  background: var(--primary-ink);
  color: #ffffff;
  text-decoration: none;
}

.error-routes {
  padding-bottom: 16px;
}

.error-routes h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.error-route-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.error-route-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 14px;
}

.error-route-list a:hover,
.error-route-list a:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .ranking-columns,
  .ranking-layout,
  .year-list,
  .index-layout,
  .error-route-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 0 16px;
    min-height: 56px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex: 0 0 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 10px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 48px;
    padding: 0 4px;
    border-radius: 0;
  }

  .nav-link.is-current {
    box-shadow: inset 2px 0 0 var(--primary);
  }

  .site-main {
    padding: 0 16px 40px;
  }

  .inner-main {
    padding-top: 16px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .toc,
  .page-aside {
    position: static;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 16px;
  }

  .toc-list,
  .aside-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
  }

  .hero-layout,
  .genre-layout,
  .guide-layout,
  .field-boundary-cols,
  .boundary-grid,
  .ranking-columns,
  .ranking-layout,
  .year-list,
  .index-layout,
  .archive-cards,
  .error-route-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

  .genre-media img {
    aspect-ratio: 16 / 10;
  }

  .home-main > section {
    padding: 26px 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 32px 16px 20px;
  }

  .footer-copy {
    padding: 14px 16px 24px;
  }

  .update-track .update-card {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .update-cover,
  .update-cover img {
    width: 64px;
  }

  .update-cover img {
    height: 86px;
  }

  .genre-cover {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .genre-cover img {
    width: 96px;
    height: 68px;
  }

  .field-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .field-table caption,
  .field-table-caption,
  .field-caption {
    white-space: normal;
  }
}

@media (max-width: 420px) {
  .toc-list,
  .aside-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .error-route-list a {
    padding: 0 12px;
  }
}
