:root {
  --ink: #12312E;
  --teal: #1F7A8C;
  --orange: #E07A3F;
  --paper: #E8F1EC;
  --bg: #FBF8F2;
  --muted: #5B6B66;
  --line: #D5DEDA;
  --line-soft: #E4EAE6;
  --white: #FFFFFF;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(18, 49, 46, 0.06);
  --shadow-hover: 0 6px 18px rgba(18, 49, 46, 0.10);
  --font-base: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, "Courier New", monospace;
  --header-h: 64px;
  --container: 1180px;
  --main-col: 760px;
  --side-col: 340px;
}

/* ===================================================
   base
   =================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--orange);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

/* ===================================================
   layout — container / main / shell
   =================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.site-main {
  display: block;
  min-height: 40vh;
}

.inner-main {
  padding-bottom: 64px;
}

.layout-shell {
  display: block;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--main-col)) minmax(0, var(--side-col));
  gap: 48px;
  align-items: start;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 20px 0;
}

.content-main,
.main-column {
  min-width: 0;
}

.content-side,
.side-column {
  min-width: 0;
}

/* ===================================================
   site header
   =================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
  font-weight: 700;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--teal);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  background: var(--orange);
}

.brand-text {
  font-size: 18px;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1 1 auto;
  justify-content: flex-end;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 14px;
  border-right: 1px solid var(--line);
}

.nav-group:last-child {
  border-right: 0;
  padding-right: 0;
}

.nav-group:first-child {
  padding-left: 0;
}

.nav-item {
  display: block;
}

.nav-item > a {
  display: inline-block;
  padding: 6px 10px;
  color: var(--ink);
  font-size: 15px;
  border-bottom: 2px solid transparent;
  line-height: 1.5;
}

.nav-item > a:hover {
  color: var(--teal);
}

.nav-item > a.is-current {
  color: var(--orange);
  border-bottom-color: var(--orange);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.menu-toggle .menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 1px;
}

.mobile-nav {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 20px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-title {
  margin: 12px 0 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.mobile-nav-list {
  display: block;
}

.mobile-nav-list > li {
  border-bottom: 1px solid var(--line-soft);
}

.mobile-nav-list > li:last-child {
  border-bottom: 0;
}

.mobile-nav-list > li > a {
  display: block;
  padding: 12px 4px;
  color: var(--ink);
  font-size: 15px;
  min-height: 44px;
}

.mobile-nav-list > li > a.is-current {
  color: var(--orange);
  font-weight: 600;
}

/* ===================================================
   site footer
   =================================================== */

.site-footer {
  margin-top: 64px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-brand-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.footer-links > li {
  margin-bottom: 6px;
}

.footer-links > li > a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--muted);
  min-height: 32px;
  line-height: 1.6;
}

.footer-links > li > a:hover {
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-copy,
.footer-slogan {
  margin: 0;
}

/* ===================================================
   breadcrumb / page header
   =================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 20px 0;
  font-size: 13px;
  color: var(--muted);
}

.breadcrumb > a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--paper);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.breadcrumb > a:hover {
  color: var(--orange);
}

.breadcrumb-sep {
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb-current {
  display: inline-block;
  padding: 4px 10px;
  background: var(--paper);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.page-header {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 20px 0;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.page-title-block {
  padding-top: 20px;
  padding-bottom: 0;
}

.page-subtitle {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 10px;
  max-width: 720px;
}

.boundary-note {
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.page-title-section {
  padding-top: 16px;
}

.page-hero {
  padding-top: 16px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding-top: 8px;
}

.page-hero-text {
  min-width: 0;
}

.page-lead {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.85;
}

.page-hero-media {
  min-width: 0;
}

.page-hero-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.media-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===================================================
   generic section
   =================================================== */

.section {
  padding-top: 44px;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.section-sub {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.section-desc {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.section-intro {
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.section-lead {
  margin-top: 6px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.section-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.section-note a {
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.section-note a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.subsection-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

/* ===================================================
   home — hero
   =================================================== */

.home-main {
  padding-top: 8px;
}

.hero-section {
  padding-top: 32px;
  padding-bottom: 12px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background: var(--paper);
  border-radius: 999px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 22px;
  max-width: 560px;
}

.hero-chapters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.chapter-entry {
  min-width: 0;
}

.chapter-entry > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 44px;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.chapter-entry > a:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.chapter-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.chapter-name {
  font-size: 14px;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
}

.chapter-desc {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

.hero-visual {
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.hero-visual figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-notes {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.hero-notes > li {
  padding: 10px 12px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.65;
}

/* ===================================================
   home — status pinned
   =================================================== */

.status-pinned {
  padding-top: 40px;
}

.status-pinned .section-title {
  margin-bottom: 14px;
}

.status-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.status-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

.status-num {
  display: inline-block;
  padding: 3px 10px;
  background: var(--paper);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.status-route {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}

.status-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
  min-width: 0;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--orange);
  color: var(--white);
  font-size: 12px;
  border-radius: 999px;
  font-weight: 600;
}

.status-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ===================================================
   home — update timeline
   =================================================== */

.update-timeline {
  padding-top: 44px;
}

.timeline-list {
  display: block;
  border-top: 1px solid var(--line);
}

.timeline-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s ease;
}

.timeline-row:hover {
  background: var(--white);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal);
  font-weight: 600;
}

.timeline-body {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  min-width: 0;
}

.timeline-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  padding: 2px 8px;
  background: var(--paper);
  border-radius: var(--radius-sm);
}

.timeline-route {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.timeline-state {
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
}

/* ===================================================
   home — period index
   =================================================== */

.period-index {
  padding-top: 44px;
}

.period-index .section-title {
  margin-bottom: 4px;
}

.period-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.period-chip {
  min-width: 0;
}

.period-chip > a {
  display: block;
  padding: 16px 16px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}

.period-chip > a:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.period-name {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.period-count {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.period-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
}

.period-chip > a:hover .period-link {
  color: var(--orange);
}

/* ===================================================
   home — route map
   =================================================== */

.route-map {
  padding-top: 48px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.route-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.route-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.route-thumb {
  margin: 0 0 4px;
}

.route-thumb img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}

.route-num {
  display: inline-block;
  padding: 3px 8px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  align-self: flex-start;
}

.route-card .route-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.route-card .route-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.route-card .route-tip {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.7;
  padding: 8px 10px;
  background: var(--paper);
  border-radius: var(--radius-sm);
}

.route-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
}

.route-link:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ===================================================
   home — quick list + entry column
   =================================================== */

.quick-and-entry {
  padding-top: 48px;
}

.quick-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.quick-column,
.entry-column {
  min-width: 0;
}

.quick-column .section-title,
.entry-column .section-title {
  margin-bottom: 14px;
}

.quick-list {
  display: block;
  border-top: 1px solid var(--line);
}

.quick-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 100px auto;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s ease;
}

.quick-row:hover {
  background: var(--white);
}

.quick-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
}

.quick-name {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  min-width: 0;
}

.quick-state {
  font-size: 13px;
  color: var(--muted);
}

.quick-row > a {
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
}

.quick-row > a:hover {
  color: var(--orange);
}

.entry-column .entry-card {
  display: block;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.entry-column .entry-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.entry-column .entry-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.entry-column .entry-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 6px;
}

.entry-column .entry-link {
  display: inline-block;
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
}

.entry-column .entry-card:hover .entry-link {
  color: var(--orange);
}

.correction-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 8px;
}

.correction-note a {
  color: var(--teal);
  border-bottom: 1px solid transparent;
}

.correction-note a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ===================================================
   archive page
   =================================================== */

.page-archive .period-index {
  padding-top: 20px;
}

.period-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.period-tag {
  min-width: 0;
}

.period-tag > a {
  display: block;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
}

.period-tag > a:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.period-code {
  display: inline-block;
  padding: 2px 8px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-bottom: 6px;
}

.period-tag .period-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.period-tag .period-count {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.archive-layout {
  padding-top: 32px;
}

.archive-side {
  position: sticky;
  top: 84px;
}

.side-block {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.side-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.period-block {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 84px;
}

.period-block:last-child {
  border-bottom: 0;
}

.period-head {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

.period-figure {
  min-width: 0;
}

.period-figure img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}

.period-figure figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.period-intro {
  min-width: 0;
}

.period-intro h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.period-intro p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.period-meta {
  margin-top: 8px;
  font-size: 13px;
  color: var(--teal);
  font-family: var(--font-mono);
}

.event-list {
  display: block;
  border-top: 1px solid var(--line-soft);
}

.event-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 110px;
  gap: 16px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.event-row:hover {
  background: var(--white);
}

.event-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
}

.event-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  min-width: 0;
}

.event-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

.related-block .related-links {
  display: block;
}

.related-block .related-links > li {
  border-bottom: 1px solid var(--line-soft);
}

.related-block .related-links > li:last-child {
  border-bottom: 0;
}

.related-block .related-links > li > a {
  display: block;
  padding: 10px 0;
  color: var(--teal);
  font-size: 14px;
  min-height: 40px;
}

.related-block .related-links > li > a:hover {
  color: var(--orange);
}

/* ===================================================
   field table (shared)
   =================================================== */

.field-table {
  width: 100%;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.field-table caption {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 0;
}

.field-table thead th {
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.field-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  line-height: 1.7;
  vertical-align: top;
}

.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.field-table tbody td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

/* ===================================================
   updates page
   =================================================== */

.page-updates .status-top {
  padding-top: 32px;
}

.page-updates .status-top .section-title {
  margin-bottom: 14px;
}

.status-top .status-card {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  border-left: 4px solid var(--orange);
  padding: 20px 24px;
}

.status-card-left {
  min-width: 0;
}

.status-card-right {
  min-width: 0;
  text-align: right;
}

.status-card-id {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.status-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  background: var(--paper);
  color: var(--teal);
  font-size: 12px;
  border-radius: 999px;
  line-height: 1.6;
}

.tag-alt {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.6;
}

.badge-live {
  background: var(--orange);
  color: var(--white);
}

.badge-rest {
  background: var(--paper);
  color: var(--muted);
  border: 1px solid var(--line);
}

.badge-done {
  background: var(--teal);
  color: var(--white);
}

.status-card-field {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.status-card-field .mono {
  color: var(--ink);
  font-weight: 600;
}

.status-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.page-updates .timeline-section {
  padding-top: 44px;
}

.timeline {
  display: block;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}

.timeline-section .timeline-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s ease;
}

.timeline-section .timeline-row:hover {
  background: var(--white);
}

.timeline-section .timeline-date {
  min-width: 0;
}

.timeline-day {
  display: block;
  font-size: 15px;
  color: var(--teal);
  font-weight: 700;
}

.timeline-week {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.timeline-event {
  min-width: 0;
}

.timeline-id {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}

.timeline-name {
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 8px;
}

.timeline-event .tag-row {
  margin-bottom: 8px;
}

.timeline-footnote {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.page-updates .field-section {
  padding-top: 44px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.field-card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.field-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.field-card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.entry-links .entry-link {
  display: inline-block;
  padding: 10px 18px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  line-height: 1.7;
}

.entry-links .entry-link:hover {
  background: var(--orange);
  color: var(--white);
}

.entry-links .entry-link-ghost {
  background: var(--white);
  color: var(--teal);
  border: 1px solid var(--line);
}

.entry-links .entry-link-ghost:hover {
  background: var(--white);
  color: var(--orange);
  border-color: var(--orange);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 16px 20px;
  background: var(--paper);
  border-radius: var(--radius);
}

.related-links-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.related-links-item {
  display: inline-block;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  font-size: 13px;
  min-height: 36px;
  line-height: 1.7;
}

.related-links-item:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ===================================================
   series page
   =================================================== */

.page-series .tag-index-section {
  padding-top: 28px;
}

.tag-index-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.tag-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
  text-align: center;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.tag-chip:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  color: var(--orange);
}

.tag-count {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.series-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
  scroll-margin-top: 84px;
}

.series-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.series-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.series-no {
  display: inline-block;
  padding: 3px 9px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.series-thumb {
  flex-shrink: 0;
}

.series-thumb img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
}

.series-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.series-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.series-tags > li {
  display: inline-block;
  padding: 2px 9px;
  background: var(--paper);
  color: var(--teal);
  font-size: 12px;
  border-radius: 999px;
  line-height: 1.6;
}

.series-status {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
}

.series-summary {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.series-related {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
}

.series-related a {
  color: var(--teal);
  font-weight: 600;
}

.series-related a:hover {
  color: var(--orange);
}

.page-series .field-guide-section {
  padding-top: 44px;
}

.field-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}

.field-table-col,
.related-read-col {
  min-width: 0;
}

.field-table-caption {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.related-steps {
  display: block;
}

.related-steps > li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.related-steps > li:last-child {
  border-bottom: 0;
}

.related-steps .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--paper);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.related-steps .step-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
  min-width: 0;
}

.related-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ===================================================
   genres page
   =================================================== */

.page-genres .page-head {
  padding-top: 16px;
}

.page-head-desc {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.85;
  max-width: 820px;
}

.page-head-boundary {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.genre-route-map {
  padding-top: 40px;
}

.route-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 84px;
}

.route-row:first-of-type {
  border-top: 1px solid var(--line);
}

.route-row-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.route-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.route-row .route-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  padding-top: 6px;
}

.route-row-right {
  min-width: 0;
}

.route-row-right .route-desc {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 8px;
}

.route-row-right .route-tip {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  padding: 8px 12px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.route-entry {
  display: inline-block;
  font-size: 13px;
  color: var(--teal);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  min-height: 32px;
}

.route-entry:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.route-landmarks {
  padding-top: 48px;
}

.landmark-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.landmark-item {
  min-width: 0;
}

.landmark-figure {
  min-width: 0;
}

.landmark-figure img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.landmark-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.route-advice {
  padding-top: 48px;
}

.advice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.advice-item {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.advice-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.advice-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.route-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.route-switch-link {
  display: inline-block;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  line-height: 1.7;
}

.route-switch-link:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ===================================================
   guide page
   =================================================== */

.page-guide .page-title-block {
  padding-top: 16px;
}

.page-guide .guide-section {
  padding-top: 36px;
  scroll-margin-top: 84px;
}

.guide-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.guide-section > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 14px;
}

.step-list {
  display: block;
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.step-item .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.step-item .step-body {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
  min-width: 0;
}

.pref-panel {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.pref-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 90px 40px;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.pref-row:last-child {
  border-bottom: 0;
}

.pref-label {
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}

.pref-control {
  width: 100%;
  min-width: 0;
  accent-color: var(--teal);
}

.pref-number {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
  min-height: 36px;
}

.pref-unit {
  font-size: 13px;
  color: var(--muted);
}

.pref-feedback {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  min-height: 1.7em;
}

.pref-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 12px;
}

.media-figure {
  margin-top: 16px;
}

.media-figure img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.media-figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.field-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.field-legend > li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  min-width: 0;
}

.legend-key {
  display: inline-block;
  padding: 2px 8px;
  background: var(--paper);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-list {
  display: block;
  margin-top: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item > summary {
  padding: 14px 44px 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  min-height: 44px;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--teal);
  line-height: 1;
}

.faq-item[open] > summary::after {
  content: "−";
  color: var(--orange);
}

.faq-item > summary:hover {
  color: var(--orange);
}

.faq-item > p,
.faq-item > div {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.content-side .side-card {
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.side-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.anchor-list {
  display: block;
}

.anchor-list > li {
  border-bottom: 1px solid var(--line-soft);
}

.anchor-list > li:last-child {
  border-bottom: 0;
}

.anchor-list > li > a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--teal);
  min-height: 40px;
}

.anchor-list > li > a:hover {
  color: var(--orange);
}

/* ===================================================
   about page
   =================================================== */

.page-about .section-sources {
  padding-top: 36px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.source-card {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.source-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.source-card-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 8px;
}

.source-card-scope {
  font-size: 13px;
  color: var(--teal);
  line-height: 1.7;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.page-about .section-structure {
  padding-top: 44px;
}

.structure-figure {
  margin-top: 16px;
}

.structure-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.structure-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

.page-about .section-boundary {
  padding-top: 44px;
}

.boundary-list {
  display: block;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}

.boundary-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.boundary-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.7;
}

.boundary-reason {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  min-width: 0;
}

.page-about .section-correction {
  padding-top: 44px;
}

.correction-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 16px;
}

.correction-text,
.correction-entries {
  min-width: 0;
}

.correction-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.correction-steps {
  display: block;
  counter-reset: correction;
}

.correction-step {
  position: relative;
  padding: 10px 0 10px 40px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
}

.correction-step:last-child {
  border-bottom: 0;
}

.correction-step::before {
  counter-increment: correction;
  content: counter(correction);
  position: absolute;
  left: 0;
  top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--paper);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.correction-entries .entry-card {
  display: block;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.correction-entries .entry-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.entry-card-label {
  display: block;
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 4px;
}

.entry-card-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.entry-card-text {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ===================================================
   404
   =================================================== */

.site-error .error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  min-height: 60vh;
}

.error-panel {
  max-width: 560px;
  text-align: center;
  padding: 40px 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  line-height: 1.7;
  text-align: center;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange);
  color: var(--white);
}

.btn-ghost {
  background: var(--white);
  color: var(--teal);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.error-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ===================================================
   responsive — 1080px
   =================================================== */

@media (max-width: 1080px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .archive-side {
    position: static;
  }

  .hero-layout {
    gap: 32px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .quick-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tag-index-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .period-list,
  .period-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-grid,
  .source-grid,
  .advice-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

/* ===================================================
   responsive — 760px
   =================================================== */

@media (max-width: 760px) {
  :root {
    --header-h: 60px;
  }

  .header-inner {
    padding: 0 16px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .container,
  .breadcrumb,
  .page-header,
  .page-layout,
  .related-links {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    height: 220px;
  }

  .hero-chapters {
    grid-template-columns: minmax(0, 1fr);
  }

  .status-card,
  .status-top .status-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 16px 18px;
  }

  .status-meta {
    justify-content: flex-start;
  }

  .status-card-right {
    text-align: left;
  }

  .timeline-row,
  .timeline-section .timeline-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .timeline-state {
    margin-left: 0;
  }

  .quick-row {
    grid-template-columns: 60px minmax(0, 1fr);
    row-gap: 4px;
  }

  .quick-state,
  .quick-row > a {
    grid-column: 2;
  }

  .period-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .event-row {
    grid-template-columns: 80px minmax(0, 1fr);
    row-gap: 4px;
  }

  .event-date {
    grid-column: 2;
    text-align: left;
  }

  .route-grid,
  .series-grid,
  .field-grid,
  .source-grid,
  .advice-list,
  .landmark-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tag-index-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .period-list,
  .period-tags {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .page-hero-media img {
    height: 180px;
  }

  .route-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .route-row .route-name {
    padding-top: 0;
  }

  .field-guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .boundary-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .correction-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .pref-row {
    grid-template-columns: minmax(0, 1fr) 80px 32px;
    gap: 10px;
  }

  .pref-label {
    grid-column: 1 / -1;
  }

  .field-legend {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .related-links {
    gap: 8px;
  }

  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 40px;
  }
}

/* ===================================================
   responsive — 480px
   =================================================== */

@media (max-width: 480px) {
  .page-title {
    font-size: 23px;
  }

  .hero-text h1 {
    font-size: 22px;
  }

  .section-title {
    font-size: 20px;
  }

  .guide-section h2 {
    font-size: 20px;
  }

  .route-row .route-name {
    font-size: 17px;
  }

  .series-name {
    font-size: 16px;
  }

  .brand-text {
    font-size: 16px;
  }

  .tag-index-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .status-main {
    gap: 8px;
  }

  .entry-links {
    flex-direction: column;
  }

  .entry-links .entry-link {
    text-align: center;
    width: 100%;
  }

  .route-switch {
    flex-direction: column;
  }

  .route-switch-link {
    text-align: center;
    width: 100%;
  }

  .error-actions {
    flex-direction: column;
  }
}

/* ===================================================
   motion enhancement — safe, non-blocking
   =================================================== */

@media (prefers-reduced-motion: no-preference) {
  .route-card,
  .series-card,
  .period-chip > a,
  .period-tag > a,
  .chapter-entry > a,
  .entry-column .entry-card,
  .correction-entries .entry-card,
  .tag-chip {
    will-change: transform;
  }
}
