:root {
  --ink: #172333;
  --ink-soft: #2c3a4d;
  --paper: #f5f1e8;
  --paper-deep: #ece5d8;
  --brick: #b4492e;
  --brick-dark: #94381f;
  --teal: #5e7c7b;
  --line: #d8d0c3;
  --text: #1d1d1b;
  --text-muted: #5a564e;
  --white: #fffdf8;
  --radius: 8px;
  --radius-sm: 4px;
  --shell: 1180px;
  --shell-narrow: 880px;
  --header-h: 68px;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 56px);
}

body.site-body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body.site-body.menu-locked {
  overflow: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--brick);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

time {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Layout — shared shell
   ========================================================================== */

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.home-main {
  display: block;
}

/* section rhythm used across inner pages */
.inner-main > section,
.inner-main > div.guide-shell > section,
.works-main > section,
.about-main > section,
.rank-main > section {
  margin-bottom: 56px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 24px;
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 2px;
  background-color: var(--brick);
}

.section-head p {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 760px;
}

.section-lead {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 760px;
}

.section-note,
.section-intro {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
  max-width: 760px;
}

.section-more {
  margin-top: 20px;
  font-size: 15px;
}

.section-more a,
.text-link {
  color: var(--brick);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

.section-more a:hover,
.text-link:hover {
  border-bottom-color: var(--brick);
}

/* ==========================================================================
   Components — header / nav
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--ink);
  color: var(--white);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  flex-shrink: 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--white);
}

.brand-mark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--white);
}

.brand-slogan {
  font-family: var(--sans);
  font-size: 12px;
  color: rgba(255, 253, 248, 0.62);
  padding-left: 10px;
  border-left: 1px solid rgba(255, 253, 248, 0.24);
  line-height: 1.3;
  max-width: 130px;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  font-size: 15px;
  color: rgba(255, 253, 248, 0.82);
  border-radius: var(--radius-sm);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--white);
  background-color: rgba(255, 253, 248, 0.1);
}

.main-nav a.is-current {
  color: var(--white);
  background-color: var(--brick);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 253, 248, 0.28);
  border-radius: var(--radius-sm);
  background-color: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--white);
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  background-color: var(--ink);
  border-top: 1px solid rgba(255, 253, 248, 0.14);
  padding: 8px 24px 20px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu ul {
  display: block;
}

.mobile-menu > ul > li > a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 4px;
  color: rgba(255, 253, 248, 0.9);
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 253, 248, 0.1);
}

.mobile-menu > ul > li > a.is-current {
  color: var(--white);
  font-weight: 500;
  box-shadow: inset 3px 0 0 var(--brick);
  padding-left: 12px;
}

.mobile-menu-extra {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.mobile-menu-extra a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: rgba(255, 253, 248, 0.66);
}

.mobile-menu-extra a:hover {
  color: var(--white);
}

/* ==========================================================================
   Components — buttons / breadcrumb / page title
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background-color: var(--brick);
  color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--brick-dark);
  color: var(--white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: var(--ink);
  color: var(--white);
}

.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.62);
}

.hero .btn-ghost:hover,
.hero .btn-ghost:focus-visible {
  background-color: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.feedback-band .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 253, 248, 0.55);
}

.feedback-band .btn-ghost:hover,
.feedback-band .btn-ghost:focus-visible {
  background-color: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.breadcrumb {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brick);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.inner-main > .breadcrumb {
  padding: 0 0 14px;
  max-width: none;
}

.page-header {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px 24px 0;
}

.inner-main > .page-header {
  padding: 0 0 18px;
  max-width: none;
}

.page-title {
  font-size: 32px;
  line-height: 1.3;
  color: var(--ink);
}

.page-title + .page-title,
.page-header + .page-title {
  margin-top: 0;
}

.page-title-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 34px;
}

.inner-main > .page-title .page-title-inner {
  padding: 0 0 34px;
}

.page-kicker {
  font-size: 13px;
  font-weight: 500;
  color: var(--brick);
  margin-bottom: 10px;
  font-family: var(--sans);
}

.page-lead,
.page-title-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 780px;
}

.page-title-media {
  margin: 22px 0 0;
}

.page-title-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
}

.page-title-media figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-title-text .page-lead {
  margin-top: 4px;
}

/* ==========================================================================
   Pages — home
   ========================================================================== */

.home-main {
  display: block;
}

.hero {
  position: relative;
  background-color: var(--ink);
  color: var(--white);
  overflow: hidden;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(23, 35, 51, 0.62);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  align-items: start;
}

.hero-text {
  max-width: 620px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: #e8b9a8;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.28;
  color: var(--white);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 253, 248, 0.84);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-fields {
  background-color: rgba(245, 241, 232, 0.96);
  color: var(--text);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  border-top: 4px solid var(--brick);
}

.hero-fields-title {
  font-size: 17px;
  margin-bottom: 12px;
}

.hero-fields ul li {
  border-top: 1px solid var(--line);
}

.hero-fields ul li:first-child {
  border-top: 0;
}

.hero-fields ul li a {
  display: block;
  padding: 11px 0;
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.hero-fields ul li a::after {
  content: "→";
  float: right;
  color: var(--brick);
  font-weight: 400;
}

.hero-fields ul li a:hover {
  color: var(--brick);
}

/* chapter nav + progress */
.chapter-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.progress-track {
  height: 3px;
  background-color: var(--paper-deep);
  overflow: hidden;
}

.progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background-color: var(--brick);
  transition: width 0.1s linear;
}

.chapter-nav ul {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.chapter-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.chapter-nav a:hover,
.chapter-nav a.is-active {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

/* shared home section container */
.genre-strip,
.cover-wall,
.text-index,
.latest-updates,
.leaderboard,
.reading-path {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px 0;
}

/* genre strip */
.genre-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-tag {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.genre-tag:hover {
  border-color: var(--teal);
  background-color: #fbf8f1;
}

.genre-tag h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.genre-tag p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.genre-tag .genre-meta {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--teal);
}

.genre-tag a {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brick);
}

.genre-tag a:hover {
  color: var(--brick-dark);
}

/* cover wall */
.cover-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.cover-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.cover-card:hover {
  border-color: var(--teal);
  background-color: #fbf8f1;
}

.cover-figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  background-color: var(--paper-deep);
  overflow: hidden;
}

.cover-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-card h3 {
  font-size: 17px;
  padding: 14px 16px 0;
}

.cover-meta {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 16px 0;
}

.cover-card a {
  margin: 12px 16px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brick);
}

.cover-card a:hover {
  color: var(--brick-dark);
}

/* text index table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
}

.index-table {
  min-width: 640px;
  font-size: 14px;
}

.index-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.index-table th,
.index-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.index-table thead th {
  background-color: var(--paper-deep);
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  white-space: nowrap;
}

.index-table tbody th {
  font-weight: 500;
  color: var(--ink);
}

.index-table tbody tr:last-child th,
.index-table tbody tr:last-child td {
  border-bottom: 0;
}

.index-table tbody tr:hover {
  background-color: #fbf8f1;
}

.index-table tbody td a {
  color: var(--brick);
  font-weight: 500;
}

/* latest updates */
.update-list {
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1.4fr) minmax(0, 1fr) 96px auto;
  gap: 16px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.update-item time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
}

.update-work {
  font-weight: 500;
  color: var(--ink);
}

.update-chapter {
  color: var(--text-muted);
}

.update-type {
  display: inline-block;
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--teal);
  background-color: rgba(94, 124, 123, 0.12);
  white-space: nowrap;
}

.update-item a {
  font-weight: 500;
  color: var(--brick);
  white-space: nowrap;
}

/* leaderboard */
.leaderboard-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.leaderboard-group {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.leaderboard-group h3 {
  font-size: 18px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-areas:
    "order work"
    "order reason";
  gap: 2px 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.leaderboard-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rank-order {
  grid-area: order;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--brick);
  line-height: 1.5;
}

.rank-work {
  grid-area: work;
  font-weight: 500;
  color: var(--ink);
  font-size: 15px;
}

.rank-reason {
  grid-area: reason;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* reading path */
.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: path;
}

.path-step {
  position: relative;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
}

.step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
  margin-bottom: 8px;
}

.path-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.path-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.path-step a {
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--brick);
}

/* feedback band */
.feedback-band {
  margin-top: 56px;
  background-color: var(--ink);
  color: var(--white);
}

.feedback-band-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.feedback-band-text h2 {
  font-size: 22px;
  color: var(--white);
  margin-bottom: 8px;
}

.feedback-band-text p {
  font-size: 15px;
  color: rgba(255, 253, 248, 0.78);
  max-width: 640px;
}

.feedback-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* home related links */
.home-main > .related-links {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 14px;
}

.related-links-label {
  color: var(--text-muted);
}

.related-links-item {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.related-links-item:hover {
  color: var(--brick);
  border-bottom-color: var(--brick);
}

/* ==========================================================================
   Pages — genres
   ========================================================================== */

.genre-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.genre-intro-col {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.genre-intro-col h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.genre-intro-col p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.genre-intro-col p + p {
  margin-top: 10px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.genre-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.genre-card:hover {
  border-color: var(--teal);
  background-color: #fbf8f1;
}

.genre-card .genre-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: rgba(94, 124, 123, 0.14);
  color: var(--teal);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
  border: 0;
}

.genre-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.genre-focus {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
}

.genre-reader {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.genre-link {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brick);
}

.genre-link:hover {
  color: var(--brick-dark);
}

.genre-work-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  font-size: 14px;
  overflow: hidden;
}

.genre-work-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.genre-work-table th,
.genre-work-table td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.genre-work-table thead th {
  background-color: var(--paper-deep);
  font-size: 13px;
  font-weight: 500;
}

.genre-work-table tbody th {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.genre-work-table tbody tr:last-child th,
.genre-work-table tbody tr:last-child td {
  border-bottom: 0;
}

.genre-work-table tbody td a {
  color: var(--brick);
  font-weight: 500;
}

.genre-updates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.genre-updates-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.genre-updates-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.genre-updates-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.genre-updates-item .text-link {
  margin-top: auto;
  font-size: 14px;
}

/* shared related link grid (genres) */
.related-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-links-grid li a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.related-links-grid li a:hover {
  border-color: var(--teal);
  background-color: #fbf8f1;
}

.related-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.related-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Pages — works
   ========================================================================== */

.works-layout,
.layout-shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.works-layout .inner-main,
.layout-shell .inner-main {
  max-width: none;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.works-layout .breadcrumb,
.layout-shell .breadcrumb {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.works-layout .page-header,
.layout-shell .page-header {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.works-layout .page-title-inner,
.layout-shell .page-title-inner {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

.works-intro {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.works-intro h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.works-intro p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.works-intro p + p {
  margin-top: 10px;
}

.works-intro-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.works-intro-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-label {
  font-size: 12px;
  color: var(--text-muted);
}

.field-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.series-list > h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.series-group {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.series-group:first-of-type {
  margin-top: 20px;
}

.series-group h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.series-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.series-works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.work-card:hover {
  border-color: var(--teal);
  background-color: #fbf8f1;
}

.work-cover {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--paper-deep);
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.work-body h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.work-fields {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.work-summary {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.work-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--brick);
}

.work-link:hover {
  color: var(--brick-dark);
}

.works-fields > h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.works-fields > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.field-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  font-size: 14px;
  overflow: hidden;
}

.field-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.field-table th,
.field-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table thead th {
  background-color: var(--paper-deep);
  font-size: 13px;
  font-weight: 500;
}

.field-table tbody th {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.works-layout .related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
  font-size: 14px;
  padding-top: 8px;
}

.works-aside {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.works-aside h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.works-aside > p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.aside-links li {
  border-top: 1px solid var(--line);
}

.aside-links li a {
  display: block;
  padding: 11px 0;
  font-size: 14px;
  color: var(--ink);
}

.aside-links li a:hover {
  color: var(--brick);
}

.aside-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.aside-note h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.aside-note p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Pages — updates
   ========================================================================== */

.update-summary {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  align-items: start;
}

.update-summary-media {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.update-summary-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.update-summary-text h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.update-summary-text > p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.update-summary-list {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.update-summary-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 16px;
  position: relative;
}

.update-summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--teal);
}

.update-summary-list strong {
  color: var(--ink);
  font-weight: 500;
}

.update-summary-note {
  margin-top: 14px;
  font-size: 14px;
}

.update-summary-note a {
  color: var(--brick);
  font-weight: 500;
}

.timeline-list {
  position: relative;
  padding-left: 26px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background-color: var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 18px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--brick);
  border: 2px solid var(--paper);
}

.timeline-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.timeline-time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.timeline-work {
  font-size: 18px;
  margin-bottom: 6px;
}

.timeline-work a {
  color: var(--ink);
}

.timeline-work a:hover {
  color: var(--brick);
}

.timeline-tag,
.timeline-type {
  display: inline-block;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-right: 8px;
  margin-bottom: 8px;
}

.timeline-tag {
  background-color: rgba(94, 124, 123, 0.14);
  color: var(--teal);
}

.timeline-type {
  background-color: rgba(180, 73, 46, 0.12);
  color: var(--brick);
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 10px;
}

.timeline-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--brick);
}

.timeline-link:hover {
  color: var(--brick-dark);
}

.legend-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  font-size: 14px;
  overflow: hidden;
}

.legend-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.legend-table th,
.legend-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legend-table thead th {
  background-color: var(--paper-deep);
  font-size: 13px;
  font-weight: 500;
}

.legend-table tbody th {
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}

.legend-table tbody tr:last-child th,
.legend-table tbody tr:last-child td {
  border-bottom: 0;
}

.legend-note {
  margin-top: 14px;
  font-size: 14px;
}

.legend-note a {
  color: var(--brick);
  font-weight: 500;
}

.update-related .related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.update-related .related-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.update-related .related-card:hover {
  border-color: var(--teal);
  background-color: #fbf8f1;
}

.update-related .related-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.update-related .related-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Pages — rankings
   ========================================================================== */

.rank-main {
  min-width: 0;
}

.rank-rules {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brick);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.rank-rules h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.rank-rules > p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.rank-rules-list {
  display: grid;
  gap: 8px;
}

.rank-rules-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 18px;
  position: relative;
}

.rank-rules-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--brick);
}

.rank-rules-list strong {
  color: var(--ink);
  font-weight: 500;
}

.rank-group {
  margin-top: 36px;
}

.rank-group-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
}

.rank-group-head h2 {
  font-size: 22px;
  margin-bottom: 4px;
}

.rank-group-head p {
  font-size: 14px;
  color: var(--text-muted);
}

.rank-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  align-items: start;
}

.rank-item:last-child {
  margin-bottom: 0;
}

.rank-thumb {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--paper-deep);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-body {
  min-width: 0;
}

.rank-body .rank-order {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  background-color: var(--brick);
  padding: 1px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
  line-height: 1.7;
}

.rank-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.rank-body .rank-reason {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.rank-fields {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  margin: 0 0 12px;
  font-size: 13px;
}

.rank-fields dt {
  color: var(--text-muted);
  white-space: nowrap;
}

.rank-fields dd {
  margin: 0;
  color: var(--ink);
}

.rank-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--brick);
}

.rank-link:hover {
  color: var(--brick-dark);
}

.rank-order-summary h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.rank-order-summary > p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.order-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.order-block {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.order-block h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.order-block p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.order-block a {
  margin-top: auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--brick);
}

.rank-entry h2 {
  font-size: 22px;
  margin-bottom: 6px;
}

.rank-entry > p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.entry-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.entry-links a:hover {
  border-color: var(--brick);
  color: var(--brick);
}

.rank-aside {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 22px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.aside-block {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.aside-block:last-child {
  border-bottom: 0;
}

.aside-block h2 {
  font-size: 16px;
  margin-bottom: 6px;
}

.aside-block p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Pages — reading guide
   ========================================================================== */

.guide-shell {
  max-width: var(--shell-narrow);
}

.guide-steps > h2,
.chapter-entry > h2,
.guide-follow > h2,
.guide-faq > h2,
.guide-shell .related-links > h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.step-item {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.step-item .step-no {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--brick);
  margin-bottom: 8px;
}

.step-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.step-item p a {
  color: var(--brick);
  font-weight: 500;
}

.guide-figure {
  margin: 18px 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--paper-deep);
}

.guide-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-top: 0;
}

.chapter-entry-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.entry-col {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.entry-col h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.entry-col p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.entry-col p + p {
  margin-top: 10px;
}

.follow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.follow-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.follow-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.follow-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.faq-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "+";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--brick);
}

.faq-item[open] summary::before {
  content: "−";
}

.faq-item[open] summary {
  color: var(--brick);
}

.faq-item p {
  padding: 0 4px 16px 38px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-item p a {
  color: var(--brick);
  font-weight: 500;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.related-list li a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.related-list li a:hover {
  border-color: var(--brick);
  color: var(--brick);
}

/* ==========================================================================
   Pages — feedback
   ========================================================================== */

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scope-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.scope-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.scope-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.scope-card .text-link {
  margin-top: auto;
  font-size: 14px;
}

.process-media {
  margin: 0 0 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--paper-deep);
}

.process-media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.process-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-top: 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.process-step {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px;
}

.process-step .step-no {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 8px;
}

.process-step h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.checklist-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
  font-size: 14px;
  overflow: hidden;
}

.checklist-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.checklist-table th,
.checklist-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.checklist-table thead th {
  background-color: var(--paper-deep);
  font-size: 13px;
  font-weight: 500;
}

.checklist-table tbody tr:last-child td {
  border-bottom: 0;
}

.checklist-table tbody td:first-child {
  font-weight: 500;
  color: var(--ink);
}

.checklist-table tbody td a {
  color: var(--brick);
  font-weight: 500;
}

.note-inner {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brick);
  border-radius: var(--radius);
  padding: 24px;
}

.note-inner h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.note-inner > p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.note-list {
  display: grid;
  gap: 8px;
}

.note-list li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 18px;
  position: relative;
}

.note-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--teal);
}

.feedback-checklist .related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feedback-checklist .related-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.feedback-checklist .related-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.feedback-checklist .related-card h3 a {
  color: var(--ink);
}

.feedback-checklist .related-card h3 a:hover {
  color: var(--brick);
}

.feedback-checklist .related-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Pages — about
   ========================================================================== */

.about-main {
  min-width: 0;
}

.about-purpose h2,
.about-principles h2,
.about-boundaries h2,
.about-columns h2,
.about-feedback h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.about-purpose p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.85;
}

.about-purpose p + p {
  margin-top: 10px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.principle-card {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.principle-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.principle-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.principle-card .text-link {
  margin-top: auto;
  font-size: 14px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.boundary-list li {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.boundary-list li h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.boundary-list li p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.column-table-wrap {
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--white);
}

.column-table {
  min-width: 560px;
  font-size: 14px;
}

.column-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line);
}

.column-table th,
.column-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.column-table thead th {
  background-color: var(--paper-deep);
  font-size: 13px;
  font-weight: 500;
}

.column-table tbody tr:last-child th,
.column-table tbody tr:last-child td {
  border-bottom: 0;
}

.column-table tbody td a {
  color: var(--brick);
  font-weight: 500;
}

.about-feedback {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.about-feedback p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-aside {
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.about-aside > h2 {
  font-size: 18px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.fact-list {
  margin: 0;
  display: grid;
  gap: 10px;
}

.fact-list dt {
  font-size: 12px;
  color: var(--text-muted);
}

.fact-list dd {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}

.about-aside .aside-links {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.about-aside .aside-links h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

/* ==========================================================================
   Components — footer
   ========================================================================== */

.site-footer {
  background-color: var(--ink);
  color: rgba(255, 253, 248, 0.78);
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 460px;
}

.footer-about p + p {
  margin-top: 10px;
}

.footer-copy {
  color: rgba(255, 253, 248, 0.5);
  font-size: 13px !important;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.footer-group-title {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-group ul {
  display: grid;
  gap: 4px;
}

.footer-group a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-size: 14px;
  color: rgba(255, 253, 248, 0.72);
}

.footer-group a:hover {
  color: var(--white);
}

/* ==========================================================================
   Pages — 404
   ========================================================================== */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.error-block {
  max-width: 640px;
}

.error-code {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--brick);
  margin-bottom: 10px;
}

.error-block h1 {
  font-size: 32px;
  margin-bottom: 14px;
}

.error-text {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.error-links li a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.error-links li a:hover {
  border-color: var(--brick);
  color: var(--brick);
}

.error-note {
  font-size: 14px;
  color: var(--text-muted);
}

.error-note a {
  color: var(--brick);
  font-weight: 500;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px;
    padding: 56px 24px 48px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .genre-tags,
  .genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cover-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .leaderboard-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .leaderboard-group:last-child {
    grid-column: span 2;
  }

  .works-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }

  .series-works {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-blocks,
  .principle-grid,
  .process-steps,
  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-related .related-grid,
  .related-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    margin-top: calc(var(--header-h) * -1);
    padding-top: var(--header-h);
  }

  .chapter-nav {
    top: var(--header-h);
  }
}

@media (max-width: 760px) {
  body.site-body {
    font-size: 15px;
    line-height: 1.75;
  }

  .header-inner {
    padding: 0 16px;
    gap: 12px;
  }

  .brand-slogan {
    display: none;
  }

  .brand-mark {
    font-size: 19px;
  }

  .mobile-menu {
    padding: 8px 16px 20px;
  }

  .breadcrumb {
    padding: 14px 16px 0;
  }

  .page-header {
    padding: 16px 16px 0;
  }

  .page-title {
    font-size: 26px;
  }

  .page-title-inner {
    padding: 0 16px 26px;
  }

  .inner-main {
    padding: 0 16px 48px;
  }

  .inner-main > section,
  .inner-main > div.guide-shell > section,
  .works-main > section,
  .about-main > section,
  .rank-main > section {
    margin-bottom: 40px;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .section-head h2 {
    font-size: 21px;
  }

  .section-head p,
  .section-lead,
  .section-note,
  .section-intro {
    font-size: 14px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 40px 16px 36px;
  }

  .hero h1 {
    font-size: 27px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-fields {
    padding: 18px;
  }

  .chapter-nav ul {
    padding: 0 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .chapter-nav ul::-webkit-scrollbar {
    display: none;
  }

  .chapter-nav a {
    white-space: nowrap;
    padding: 0 10px;
  }

  .genre-strip,
  .cover-wall,
  .text-index,
  .latest-updates,
  .leaderboard,
  .reading-path {
    padding: 40px 16px 0;
  }

  .genre-tags,
  .genre-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .cover-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cover-card h3 {
    font-size: 15px;
    padding: 12px 12px 0;
  }

  .cover-meta {
    padding: 4px 12px 0;
    font-size: 12px;
  }

  .cover-card a {
    margin: 10px 12px 12px;
    font-size: 13px;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "time type"
      "work work"
      "chapter link";
    gap: 4px 12px;
    padding: 14px 2px;
  }

  .update-item time {
    grid-area: time;
  }

  .update-work {
    grid-area: work;
    font-size: 15px;
  }

  .update-chapter {
    grid-area: chapter;
    font-size: 13px;
  }

  .update-type {
    grid-area: type;
    justify-self: end;
  }

  .update-item a {
    grid-area: link;
    justify-self: end;
    font-size: 13px;
  }

  .leaderboard-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .leaderboard-group:last-child {
    grid-column: auto;
  }

  .path-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .feedback-band-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 32px 16px;
  }

  .feedback-band-text h2 {
    font-size: 20px;
  }

  .home-main > .related-links {
    padding: 22px 16px;
  }

  .genre-intro-grid,
  .genre-updates-grid,
  .chapter-entry-cols,
  .follow-grid,
  .scope-grid,
  .related-links-grid,
  .update-related .related-grid,
  .feedback-checklist .related-grid,
  .boundary-list,
  .principle-grid,
  .order-blocks,
  .process-steps,
  .step-list,
  .related-list,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .works-layout,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 0 16px 48px;
  }

  .works-layout .breadcrumb,
  .layout-shell .breadcrumb {
    padding: 14px 0 0;
  }

  .works-layout .page-header,
  .layout-shell .page-header {
    padding: 16px 0 0;
  }

  .works-layout .page-title-inner,
  .layout-shell .page-title-inner {
    padding: 0 0 26px;
  }

  .works-aside,
  .about-aside,
  .rank-aside {
    position: static;
  }

  .works-intro {
    padding: 18px;
  }

  .works-intro-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .series-works {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .work-card {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .update-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }

  .update-summary-media img {
    height: 160px;
  }

  .timeline-list {
    padding-left: 20px;
  }

  .timeline-item::before {
    left: -20px;
    top: 20px;
  }

  .timeline-card {
    padding: 16px;
  }

  .rank-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .rank-fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .guide-figure img,
  .process-media img {
    height: 190px;
  }

  .page-title-media img {
    height: 170px;
  }

  .faq-item summary {
    font-size: 15px;
    min-height: 50px;
  }

  .faq-item p {
    padding-left: 34px;
    font-size: 14px;
  }

  .note-inner {
    padding: 18px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 16px 32px;
  }

  .footer-links {
    gap: 20px;
  }

  .error-main {
    padding: 48px 16px 72px;
  }

  .error-block h1 {
    font-size: 26px;
  }
}

@media (max-width: 400px) {
  .cover-grid {
    gap: 12px;
  }

  .cover-card h3 {
    font-size: 14px;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "time"
      "work"
      "chapter"
      "type"
      "link";
    gap: 2px;
  }

  .update-type,
  .update-item a {
    justify-self: start;
  }

  .work-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .work-cover {
    max-width: 120px;
  }

  .rank-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .rank-thumb {
    max-width: 110px;
  }

  .footer-links {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 程序验收反馈：修复网格孤项 */
@media (min-width: 769px) {
  .cover-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
