:root {
  --page-bg: #FDF8F0;
  --section-green: #2E7D5B;
  --section-brown: #8B5E3C;
  --section-blue: #2A6B8B;
  --card-warm: #FFF3E0;
  --card-cream: #FFFFFF;
  --card-light-green: #E8F5E9;
  --accent-orange: #F27A2B;
  --accent-blue: #1E73BE;
  --state-new: #4CAF50;
  --state-updating: #FF9800;
  --state-done: #9E9E9E;
  --tag-year: #F57C00;
  --tag-voice: #00838F;
  --tag-quality: #1976D2;
  --tag-subtitle: #7B1FA2;
  --text-dark: #3E2723;
  --text-body: #212121;
  --border: #D7C4A8;
  --focus-ring: #FFD27F;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 24px rgba(62, 39, 35, 0.08);
  --shadow-lift: 0 12px 28px rgba(42, 107, 139, 0.16);
  --font-title: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  min-width: 320px;
}

h1, h2, h3, h4, h5, p, figure, ul, ol, dl, dd {
  margin: 0;
}

ul[class], ol[class] {
  list-style: none;
  padding: 0;
  margin: 0;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

input, button, select, textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--text-dark);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(253, 248, 240, 0.85);
  border-radius: 6px;
}

::selection {
  background: var(--accent-orange);
  color: var(--text-dark);
}

.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

.stack {
  display: grid;
  gap: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#main-content {
  min-width: 0;
}

#main-content:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 300;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-orange);
  color: var(--text-dark);
  font-family: var(--font-title);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-220%);
  transition: transform 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--accent-orange) 0 33.33%,
    var(--accent-blue) 33.33% 66.66%,
    var(--section-brown) 66.66% 100%
  );
}

.site-header__mast {
  position: relative;
  overflow: hidden;
  padding: 44px 0 38px;
  color: #FFF8EE;
  background:
    radial-gradient(circle at 82% 20%, rgba(253, 248, 240, 0.16) 0 5%, rgba(253, 248, 240, 0) 5.5%),
    radial-gradient(ellipse at 12% 118%, rgba(139, 94, 60, 0.45) 0 26%, rgba(139, 94, 60, 0) 27%),
    radial-gradient(ellipse at 78% 124%, rgba(19, 56, 41, 0.42) 0 32%, rgba(19, 56, 41, 0) 33%),
    linear-gradient(135deg, #1E543D 0%, #2B6B4E 55%, #357A60 100%);
  border-radius: 0 0 48px 48px;
}

.site-header__mast-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.site-header__side {
  justify-self: start;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.34em;
  color: rgba(253, 248, 240, 0.72);
  border-right: 1px solid rgba(253, 248, 240, 0.3);
  padding-right: 10px;
  height: 92px;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.site-header__brand-name {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: 0.12em;
  line-height: 1;
  color: #FFF8EE;
  white-space: nowrap;
}

.site-header__brand-sub {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: rgba(253, 248, 240, 0.82);
  white-space: nowrap;
}

.site-header__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-orange);
  color: var(--text-dark);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.site-header__cta::before {
  content: "→";
  font-family: var(--font-mono);
  font-weight: 700;
}

.site-header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12);
  background: #FF8A3C;
}

.site-header__navwrap {
  position: relative;
  background: var(--card-warm);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 3px 0 var(--accent-orange);
  z-index: 90;
}

.site-header__navrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
}

.site-nav__link {
  display: block;
  padding: 13px 18px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.site-nav__link:hover {
  background: rgba(242, 122, 43, 0.14);
  color: #A85400;
}

.site-nav__link[aria-current="page"] {
  background: var(--accent-orange);
  color: var(--text-dark);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.site-nav__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: transparent;
}

.site-nav__toggle:hover {
  background: rgba(242, 122, 43, 0.14);
}

.site-nav__toggle-box {
  display: grid;
  gap: 4px;
  width: 18px;
}

.site-nav__toggle-bar {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-footer {
  position: relative;
  margin-top: 72px;
  background:
    radial-gradient(ellipse at 82% 115%, rgba(42, 107, 139, 0.28) 0 30%, rgba(42, 107, 139, 0) 31%),
    radial-gradient(ellipse at 10% 0%, rgba(242, 122, 43, 0.16) 0 24%, rgba(242, 122, 43, 0) 25%),
    linear-gradient(140deg, #6E4A2F 0%, #8B5E3C 55%, #A26B41 100%);
  color: #FFF8EE;
  border-radius: 48px 48px 0 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 36px;
  padding: 52px 0 38px;
}

.site-footer__col {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.site-footer__brand {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.9rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.site-footer__tagline {
  font-size: 0.9rem;
  opacity: 0.88;
  line-height: 1.6;
}

.site-footer__col-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFC078;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(253, 248, 240, 0.2);
}

.site-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.site-footer__links a,
.site-footer__policylinks a {
  color: #FFF8EE;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.site-footer__links a:hover,
.site-footer__policylinks a:hover {
  color: #FFC078;
}

.site-footer__contact {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  opacity: 0.94;
}

.site-footer__icp {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0.82;
}

.site-footer__policylinks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  font-size: 0.86rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(253, 248, 240, 0.16);
  padding: 16px 0;
}

.site-footer__copyline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.82;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: var(--text-dark);
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(62, 39, 35, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  background: #FF8A3C;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.4;
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--orange {
  background: var(--accent-orange);
  color: var(--text-dark);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.btn--orange:hover {
  background: #FF8A3C;
}

.btn--green {
  background: var(--section-green);
  color: #FFF8EE;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
}

.btn--green:hover {
  background: #3A8F6B;
}

.btn--blue {
  background: var(--section-blue);
  color: #FFF8EE;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
}

.btn--blue:hover {
  background: #337FA3;
}

.btn--outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 20px 0 10px;
  font-family: var(--font-title);
  font-size: 0.88rem;
  color: #7A6A5C;
}

.breadcrumb a {
  color: var(--accent-blue);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb__sep {
  color: var(--border);
  font-family: var(--font-mono);
}

.breadcrumb__item[aria-current="page"] {
  color: var(--text-dark);
  font-weight: 700;
}

.page-head {
  padding: 36px 0 8px;
}

.page-title {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: 0.04em;
}

.page-lead {
  margin-top: 10px;
  max-width: 720px;
  font-size: 1.05rem;
  color: #5C5146;
}

.section-band {
  padding: clamp(36px, 6vw, 64px) 0;
}

.section-band--green {
  background:
    radial-gradient(circle at 82% 18%, rgba(253, 248, 240, 0.12) 0 5%, rgba(253, 248, 240, 0) 5.5%),
    radial-gradient(ellipse at 14% 118%, rgba(139, 94, 60, 0.4) 0 26%, rgba(139, 94, 60, 0) 27%),
    linear-gradient(135deg, #1E543D 0%, #2E7D5B 55%, #357A60 100%);
  color: #FFF8EE;
}

.section-band--brown {
  background:
    radial-gradient(ellipse at 82% 115%, rgba(42, 107, 139, 0.28) 0 30%, rgba(42, 107, 139, 0) 31%),
    linear-gradient(140deg, #6E4A2F 0%, #8B5E3C 55%, #A26B41 100%);
  color: #FFF8EE;
}

.section-band--blue {
  background:
    radial-gradient(circle at 18% 20%, rgba(253, 248, 240, 0.12) 0 5%, rgba(253, 248, 240, 0) 5.5%),
    linear-gradient(150deg, #1F5674 0%, #2A6B8B 60%, #347D9E 100%);
  color: #FFF8EE;
}

.section-band--cream {
  background: var(--card-warm);
}

.section-band--green :is(h1, h2, h3, h4, h5),
.section-band--brown :is(h1, h2, h3, h4, h5),
.section-band--blue :is(h1, h2, h3, h4, h5),
.bento-cell--green :is(h1, h2, h3, h4, h5),
.bento-cell--brown :is(h1, h2, h3, h4, h5),
.bento-cell--blue :is(h1, h2, h3, h4, h5) {
  color: #FFF8EE;
}

.section-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 22px;
}

.section-band--green .section-title,
.section-band--brown .section-title,
.section-band--blue .section-title {
  color: #FFF8EE;
}

.section-title__note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--accent-orange);
  text-transform: uppercase;
}

.section-band--green .section-title__note,
.section-band--brown .section-title__note,
.section-band--blue .section-title__note {
  color: #FFC078;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-cell {
  grid-column: span 4;
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--card-cream);
  border: 1px solid var(--border);
  color: var(--text-body);
  min-width: 0;
}

.bento-cell--span3 { grid-column: span 3; }
.bento-cell--span4 { grid-column: span 4; }
.bento-cell--span6 { grid-column: span 6; }
.bento-cell--span8 { grid-column: span 8; }
.bento-cell--span12 { grid-column: span 12; }

.bento-cell--green {
  background: var(--section-green);
  border-color: transparent;
  color: #FFF8EE;
}

.bento-cell--brown {
  background: var(--section-brown);
  border-color: transparent;
  color: #FFF8EE;
}

.bento-cell--blue {
  background: var(--section-blue);
  border-color: transparent;
  color: #FFF8EE;
}

.bento-cell--warm {
  background: var(--card-warm);
}

.bento-cell--lightgreen {
  background: var(--card-light-green);
  border-color: #BBD8B4;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 20px;
}

.media-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: var(--card-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.media-card__cover {
  position: relative;
  display: block;
}

.media-card__cover::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(242, 122, 43, 0.92);
  color: var(--text-dark);
  font-size: 13px;
  padding-left: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.media-card:hover .media-card__cover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.media-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--accent-orange);
  color: var(--text-dark);
  font-family: var(--font-title);
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.media-card__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.45;
}

.media-card__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #7A6A5C;
}

.tile-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  gap: 14px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: var(--card-cream);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.tile--green {
  background: var(--card-light-green);
  border-color: #BBD8B4;
}

.tile--brown {
  background: var(--card-warm);
  border-color: #E2CFA8;
}

.tile--blue {
  background: #E3F0F7;
  border-color: #B9D3E8;
}

.tile__name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-dark);
}

.tile__count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-orange);
}

.entry-list {
  display: flex;
  flex-direction: column;
  background: var(--card-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.entry-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  transition: background-color 0.15s ease;
}

.entry-row:last-child {
  border-bottom: 0;
}

.entry-row:hover {
  background: var(--card-warm);
}

.entry-row__main {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.entry-row__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.entry-row__extra {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.rank-number {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent-orange);
}

.rank-number::before {
  content: "#";
  font-size: 0.66em;
  margin-right: 2px;
  opacity: 0.55;
}

.rank-number--top {
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-orange);
  color: var(--text-dark);
  font-size: 1rem;
}

.rank-number--top::before {
  content: none;
}

.meter {
  display: block;
  width: 96px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: #E9DECC;
  overflow: hidden;
}

.meter__fill {
  display: block;
  height: 100%;
  width: var(--meter, 50%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-orange), #FFB64F);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.is-new {
  background: rgba(76, 175, 80, 0.16);
  color: #1F6B2A;
}

.status-badge.is-updating {
  background: rgba(255, 152, 0, 0.16);
  color: #A85400;
}

.status-badge.is-done {
  background: rgba(158, 158, 158, 0.16);
  color: #5D5D5D;
}

@keyframes site-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.status-badge.is-new::before,
.status-badge.is-updating::before {
  animation: site-pulse 2.8s ease-in-out infinite;
}

.tag-block {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.78rem;
  text-decoration: none;
  line-height: 1.5;
}

.tag-chip--year {
  background: #FDEBD3;
  color: #A84A00;
}

.tag-chip--voice {
  background: #E0F2F2;
  color: #00636E;
}

.tag-chip--quality {
  background: #E5EFFA;
  color: #1257A0;
}

.tag-chip--subtitle {
  background: #F1E5F5;
  color: #5E1280;
}

.index-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px 2px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-orange) var(--border);
}

.index-strip__key {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: var(--card-cream);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-dark);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.index-strip__key:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.index-strip__key[aria-current="true"] {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--text-dark);
}

.h-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 220px);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-orange) var(--border);
}

.h-rail__item {
  scroll-snap-align: start;
}

.data-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card-cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.data-table__cell {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 0.92rem;
  min-width: 0;
}

.data-table__cell:nth-child(3n) {
  border-right: 0;
}

.data-table__cell:nth-last-child(-n+3) {
  border-bottom: 0;
}

.data-table__cell[data-th] {
  background: var(--text-dark);
  color: #FFF8EE;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--card-cream);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.filter-btn.is-active,
.filter-btn[aria-pressed="true"] {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: var(--text-dark);
}

.img-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: var(--img-ratio, 16 / 9);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 76% 20%, rgba(253, 248, 240, 0.92) 0 5%, rgba(253, 248, 240, 0) 5.5%),
    radial-gradient(ellipse at 18% 108%, #8B5E3C 0 30%, rgba(139, 94, 60, 0) 31%),
    radial-gradient(ellipse at 82% 112%, #2E7D5B 0 36%, rgba(46, 125, 91, 0) 37%),
    linear-gradient(180deg, #22516C 0%, #2A6B8B 38%, #7FABA4 48%, #3E8C6A 62%, #5E4028 100%);
  position: relative;
  overflow: hidden;
}

.img-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 42%, rgba(253, 248, 240, 0.22) 43.5%, transparent 50%),
    linear-gradient(112deg, transparent 64%, rgba(253, 248, 240, 0.14) 65.5%, transparent 72%);
  pointer-events: none;
}

.img-placeholder--tall { --img-ratio: 3 / 4; }
.img-placeholder--wide { --img-ratio: 16 / 7; }
.img-placeholder--square { --img-ratio: 1 / 1; }

.prose {
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.9;
}

.prose h2 {
  margin-top: 44px;
  margin-bottom: 12px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--text-dark);
}

.prose h3 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.prose p {
  margin-top: 12px;
}

.prose ul,
.prose ol {
  margin-top: 12px;
  padding-left: 1.4em;
}

.prose li {
  margin-top: 6px;
}

.prose a {
  color: var(--accent-blue);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  background: var(--card-cream);
}

@media (max-width: 1000px) {
  .site-header__side {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .site-header__mast {
    padding: 28px 0 24px;
    border-radius: 0 0 28px 28px;
  }

  .site-header__mast-inner {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .site-header__cta {
    justify-self: auto;
  }

  .site-header__navwrap {
    box-shadow: none;
  }

  .site-header__navrow {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding-top: 8px;
  }

  .site-nav__toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 4px 14px;
    background: var(--card-warm);
    border-top: 2px dashed var(--border);
    margin-top: 6px;
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav__link {
    text-align: center;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
  }

  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .bento-cell,
  .bento-cell--span3,
  .bento-cell--span4,
  .bento-cell--span6,
  .bento-cell--span8,
  .bento-cell--span12 {
    grid-column: span 6;
  }
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 32px);
  }

  .site-footer {
    border-radius: 28px 28px 0 0;
    margin-top: 40px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 28px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-cell,
  .bento-cell--span3,
  .bento-cell--span4,
  .bento-cell--span6,
  .bento-cell--span8,
  .bento-cell--span12 {
    grid-column: 1;
  }

  .entry-row {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px 14px;
  }

  .entry-row__extra {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-left: 52px;
  }

  .data-table {
    grid-template-columns: 1fr;
  }

  .data-table__cell {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .data-table__cell:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--border);
  }

  .data-table__cell:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .status-badge.is-new::before,
  .status-badge.is-updating::before {
    animation: none;
  }
}
