:root {
  --cream: #fdf6ed;
  --oat: #efe9e1;
  --paper: #fdf6ed;
  --chestnut: #a06a42;
  --terracotta: #e29a7a;
  --coral: #ff7f50;
  --redwood: #a34843;
  --ink: #2d2926;
  --muted: #6f6258;
  --sage: #a06a42;
  --plum: #a34843;
  --line: rgba(160, 106, 66, 0.24);
  --warm-panel: rgba(226, 154, 122, 0.22);
  --warm-panel-strong: rgba(160, 106, 66, 0.16);
  --orange-glow: 0 0 0 1px rgba(255, 127, 80, 0.18), 0 18px 44px rgba(160, 106, 66, 0.16);
  --shadow: 0 18px 45px rgba(160, 106, 66, 0.16);
  --soft-shadow: 0 10px 28px rgba(160, 106, 66, 0.12);
  --radius: 8px;
  --container: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    repeating-linear-gradient(90deg, rgba(160, 106, 66, 0.035) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(180deg, rgba(160, 106, 66, 0.028) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, var(--cream), var(--oat)),
    var(--cream);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--redwood);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.site-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(160, 106, 66, 0.055) 46% 48%, transparent 48% 100%),
    linear-gradient(45deg, transparent 0 47%, rgba(226, 154, 122, 0.06) 47% 49%, transparent 49% 100%);
  background-size: 180px 180px, 220px 220px;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(160, 106, 66, 0.18);
  background: rgba(253, 246, 237, 0.92);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  flex: 0 0 34px;
  overflow: hidden;
  border: 1px solid rgba(160, 106, 66, 0.35);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(160, 106, 66, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.nav-toggle-lines {
  position: relative;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-lines::before {
  top: -6px;
}

.nav-toggle-lines::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  background: rgba(226, 154, 122, 0.24);
  color: var(--redwood);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--redwood));
  color: var(--cream);
  box-shadow: 0 12px 28px rgba(163, 72, 67, 0.26);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: var(--cream);
  box-shadow: 0 16px 36px rgba(163, 72, 67, 0.34);
}

.btn-secondary {
  background: rgba(253, 246, 237, 0.86);
  border-color: rgba(160, 106, 66, 0.28);
  color: var(--ink);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--paper);
  color: var(--redwood);
}

.btn-mini {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  padding: 84px 0 34px;
  color: var(--cream);
  background:
    linear-gradient(90deg, rgba(45, 41, 38, 0.74), rgba(160, 106, 66, 0.28) 54%, rgba(45, 41, 38, 0.7)),
    url("../img/hero-start-menu.webp") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background:
    repeating-linear-gradient(90deg, rgba(253, 246, 237, 0.18) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(180deg, rgba(253, 246, 237, 0.12) 0 1px, transparent 1px 12px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, var(--cream));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 38px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--terracotta);
  font-size: 14px;
  font-weight: 800;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 48px;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--cream);
  font-size: 20px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 18px;
  color: rgba(253, 246, 237, 0.86);
  font-size: 14px;
}

.hero-panel {
  border: 1px solid rgba(253, 246, 237, 0.34);
  border-radius: var(--radius);
  background: rgba(45, 41, 38, 0.58);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-panel dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;
  margin: 0;
}

.hero-panel dt,
.hero-panel dd {
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(253, 246, 237, 0.15);
}

.hero-panel dt {
  color: var(--terracotta);
  font-weight: 800;
}

.hero-panel dd {
  color: var(--cream);
}

.hero-panel dt:last-of-type,
.hero-panel dd:last-of-type {
  border-bottom: 0;
}

.section {
  position: relative;
  padding: 74px 0;
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(239, 233, 225, 0.7), rgba(253, 246, 237, 0.66)),
    repeating-linear-gradient(90deg, rgba(226, 154, 122, 0.07) 0 1px, transparent 1px 38px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--redwood);
  font-size: 13px;
  font-weight: 900;
}

.section h2,
.content-page h1,
.content-page h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
}

.section h2 {
  font-size: 30px;
  line-height: 1.25;
}

.section-lead {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
}

.section-meta {
  margin: 0;
  color: var(--chestnut);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
  text-align: right;
  white-space: pre-line;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card,
.info-card,
.guide-step,
.faq-item,
.timeline-item,
.gallery-item,
.link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(253, 246, 237, 0.9), rgba(226, 154, 122, 0.2)),
    var(--paper);
  box-shadow: var(--orange-glow);
  transform: translate3d(var(--float-x, 0), var(--drift, var(--float-y, 0)), 0) rotate(var(--float-rotate, 0deg));
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.section .grid > *:nth-child(1),
.gallery > *:nth-child(1),
.timeline > *:nth-child(1) {
  --float-y: 0px;
  --float-x: 0px;
  --float-rotate: -0.25deg;
  --float-speed: -0.035;
}

.section .grid > *:nth-child(2),
.gallery > *:nth-child(2),
.timeline > *:nth-child(2) {
  --float-y: 18px;
  --float-x: 8px;
  --float-rotate: 0.25deg;
  --float-speed: 0.025;
}

.section .grid > *:nth-child(3),
.gallery > *:nth-child(3),
.timeline > *:nth-child(3) {
  --float-y: -10px;
  --float-x: -8px;
  --float-rotate: -0.18deg;
  --float-speed: -0.02;
}

.section .grid > *:nth-child(4),
.gallery > *:nth-child(4),
.timeline > *:nth-child(4) {
  --float-y: 24px;
  --float-x: 4px;
  --float-rotate: 0.18deg;
  --float-speed: 0.018;
}

.section .grid > *:nth-child(5) {
  --float-y: -4px;
  --float-x: -5px;
  --float-rotate: 0.16deg;
  --float-speed: -0.014;
}

.card {
  padding: 24px;
}

.card:hover,
.guide-step:hover,
.gallery-item:hover,
.timeline-item:hover,
.link-card:hover,
.link-card:focus-visible {
  border-color: rgba(255, 127, 80, 0.42);
  box-shadow: 0 0 0 1px rgba(255, 127, 80, 0.22), 0 24px 50px rgba(160, 106, 66, 0.2);
}

.card h3,
.info-card h3,
.guide-step h3,
.link-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.card p,
.info-card p,
.guide-step p,
.link-card p {
  margin: 0;
  color: var(--muted);
}

.media-split {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 30px;
  align-items: center;
}

.showcase-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.showcase-layout--intro {
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
}

.showcase-copy,
.showcase-visual {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.showcase-notes .card,
.showcase-mini-grid .card {
  padding: 18px;
}

.showcase-frame figcaption {
  margin: 0;
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 14px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(90deg, rgba(160, 106, 66, 0.08) 0 1px, transparent 1px 14px),
    var(--oat);
  box-shadow: var(--shadow);
  transform: translate3d(var(--float-x, 0), var(--drift, 0), 0) rotate(var(--float-rotate, -0.2deg));
  --float-speed: 0.018;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background:
    repeating-linear-gradient(90deg, rgba(253, 246, 237, 0.38) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(180deg, rgba(160, 106, 66, 0.18) 0 1px, transparent 1px 10px);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.summary-box {
  padding: 22px;
  border-left: 4px solid var(--coral);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(253, 246, 237, 0.9), rgba(226, 154, 122, 0.26));
  box-shadow: var(--soft-shadow);
  transform: translate3d(0, var(--drift, 0), 0);
  --float-speed: -0.012;
}

.summary-box p {
  margin: 0;
  color: var(--chestnut);
}

.entity-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}

.entity-list div {
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(226, 154, 122, 0.14);
}

.entity-list dt {
  color: var(--redwood);
  font-size: 13px;
  font-weight: 900;
}

.entity-list dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(160, 106, 66, 0.22);
  border-radius: var(--radius);
  background: rgba(253, 246, 237, 0.86);
  color: var(--chestnut);
  font-size: 14px;
  font-weight: 800;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--muted);
}

.check {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 127, 80, 0.15);
  color: var(--redwood);
  font-weight: 900;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.gallery-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(253, 246, 237, 0.92), rgba(226, 154, 122, 0.18)),
    var(--paper);
  box-shadow: var(--orange-glow);
}

.gallery-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.gallery-panel-head p {
  max-width: 720px;
  margin: 0;
  color: var(--chestnut);
}

.gallery-panel-head .pill-row {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: 0;
}

.gallery-board {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
  gap: 18px;
  align-items: stretch;
}

.gallery-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-content: stretch;
}

.gallery-side .gallery-item--wide {
  grid-column: 1 / -1;
}

.gallery-item {
  overflow: hidden;
  margin: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item--feature img {
  aspect-ratio: 16 / 9;
}

.gallery-side .gallery-item img {
  aspect-ratio: 16 / 9;
}

.gallery-item figcaption {
  margin: 0;
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 14px;
}

.guide-step {
  padding: 22px;
}

.step-num {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--chestnut), var(--redwood));
  color: var(--cream);
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 18px;
  padding: 18px;
}

.timeline-time {
  color: var(--redwood);
  font-weight: 900;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 15px 18px;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  border-radius: var(--radius);
  background: rgba(226, 154, 122, 0.28);
  color: var(--redwood);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}

.link-card {
  display: block;
  padding: 20px;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translate3d(var(--float-x, 0), calc(var(--drift, var(--float-y, 0)) - 3px), 0) rotate(var(--float-rotate, 0deg));
}

.link-card .more {
  display: inline-flex;
  margin-top: 14px;
  color: var(--redwood);
  font-weight: 900;
}

.download-band {
  padding: 42px 0;
  background:
    linear-gradient(135deg, rgba(160, 106, 66, 0.88), rgba(226, 154, 122, 0.52), rgba(163, 72, 67, 0.88)),
    url("../img/daily-meal.webp") center / cover no-repeat;
  color: var(--cream);
}

.download-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.download-band h2 {
  margin: 0;
  color: var(--cream);
  font-size: 28px;
}

.download-band p {
  max-width: 680px;
  margin: 8px 0 0;
  color: rgba(253, 246, 237, 0.9);
}

.site-footer {
  padding: 42px 0 28px;
  border-top: 1px solid var(--line);
  background:
    repeating-linear-gradient(90deg, rgba(160, 106, 66, 0.045) 0 1px, transparent 1px 42px),
    var(--oat);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 30px;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

.footer-links,
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.footer-links a,
.friend-links a {
  color: var(--muted);
  font-weight: 700;
}

.footer-links a:hover,
.friend-links a:hover {
  color: var(--redwood);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.content-hero {
  padding: 58px 0 34px;
  background:
    linear-gradient(110deg, rgba(253, 246, 237, 0.97), rgba(226, 154, 122, 0.34), rgba(160, 106, 66, 0.12)),
    url("../img/hall-dialogue.webp") center / cover no-repeat;
}

.content-hero-inner {
  max-width: 860px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  list-style: none;
}

.breadcrumb a {
  color: var(--redwood);
  font-weight: 800;
}

.content-page h1 {
  max-width: 840px;
  font-size: 38px;
  line-height: 1.18;
}

.content-page .lead {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.meta-tag {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(253, 246, 237, 0.82);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(253, 246, 237, 0.92), rgba(226, 154, 122, 0.22));
  box-shadow: var(--orange-glow);
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.toc a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-weight: 800;
}

.toc a:hover {
  color: var(--redwood);
}

.article-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.article-section:first-child {
  padding-top: 0;
}

.article-section:last-child {
  border-bottom: 0;
}

.article-section h2 {
  margin-bottom: 14px;
  font-size: 27px;
}

.article-section h3 {
  margin: 20px 0 8px;
  font-size: 20px;
}

.article-section p {
  margin: 0 0 14px;
  color: var(--muted);
}

.article-section ul,
.article-section ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.article-section li + li {
  margin-top: 8px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(253, 246, 237, 0.94), rgba(226, 154, 122, 0.14));
  box-shadow: var(--soft-shadow);
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  width: 180px;
  color: var(--redwood);
  background: rgba(226, 154, 122, 0.22);
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

.notice {
  padding: 16px 18px;
  border: 1px solid rgba(160, 106, 66, 0.28);
  border-radius: var(--radius);
  background: rgba(226, 154, 122, 0.18);
  color: var(--chestnut);
}

.back-home {
  display: inline-flex;
  margin-top: 20px;
  color: var(--redwood);
  font-weight: 900;
}

.not-found {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  font-size: 48px;
}

.not-found p {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--muted);
}

.not-found-grid {
  margin-top: 24px;
  text-align: left;
}

.not-found-guide {
  max-width: 780px;
  margin: 24px auto 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(253, 246, 237, 0.9), rgba(226, 154, 122, 0.2));
  color: var(--muted);
  text-align: left;
  box-shadow: var(--soft-shadow);
}

.not-found-guide h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
}

.not-found .hero-actions {
  justify-content: center;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--cream);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: space-between;
    min-height: 44px;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-inner,
  .media-split,
  .showcase-layout,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 88px 0 42px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-panel {
    max-width: 540px;
  }

  .grid.three,
  .grid.four,
  .grid.five,
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-layout--intro,
  .gallery-board {
    grid-template-columns: 1fr;
  }

  .gallery-panel-head {
    align-items: start;
    flex-direction: column;
  }

  .gallery-panel-head .pill-row {
    justify-content: flex-start;
  }

  .gallery-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toc {
    position: static;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand span:last-child {
    max-width: 184px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-nav {
    top: 66px;
    left: 14px;
    right: 14px;
  }

  .hero {
    padding: 72px 0 34px;
    background-position: 58% center;
  }

  .hero h1,
  .content-page h1,
  .not-found h1 {
    font-size: 31px;
  }

  .hero-subtitle,
  .content-page .lead {
    font-size: 16px;
  }

  .hero-actions,
  .download-band .container,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .section-meta {
    text-align: left;
  }

  .hero-actions .btn,
  .download-band .btn {
    width: 100%;
  }

  .hero-panel dl,
  .entity-list,
  .timeline-item,
  .grid.two,
  .grid.three,
  .grid.four,
  .grid.five,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-side {
    grid-template-columns: 1fr;
  }

  .gallery-panel {
    padding: 14px;
  }

  .gallery-panel-head {
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .hero-panel dt,
  .hero-panel dd {
    padding: 10px 14px;
  }

  .card,
  .guide-step,
  .gallery-item,
  .timeline-item,
  .link-card,
  .media-frame,
  .summary-box {
    --float-x: 0px;
    --float-y: 0px;
    --float-rotate: 0deg;
    transform: translate3d(0, var(--drift, 0), 0);
  }

  .section {
    padding: 52px 0;
  }

  .section h2,
  .download-band h2 {
    font-size: 25px;
  }

  .article-section h2 {
    font-size: 24px;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table th {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .card,
  .guide-step,
  .gallery-item,
  .timeline-item,
  .link-card,
  .media-frame,
  .summary-box {
    transform: none;
  }
}

/* Whitehat protocol additions. Existing site selectors remain unchanged. */
.my-news-home, .my-news-page {
  --my-news-surface: var(--paper, #fdf6ed);
  --my-news-text: var(--ink, #2d2926);
  --my-news-muted: var(--muted, #6f6258);
  --my-news-accent: var(--redwood, #a34843);
  --my-news-line: var(--line, rgba(160, 106, 66, 0.24));
}
.my-news-home { width: 100%; padding: 26px 16px 42px; color: var(--my-news-text); }
.my-news-home .my-news-shell, .my-news-page .my-news-shell { width: min(var(--container, var(--max, 1180px)), calc(100% - 0px)); margin: 0 auto; }
.my-news-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--my-news-line); }
.my-news-kicker { margin: 0 0 3px; color: var(--my-news-accent); font-size: .78rem; font-weight: 800; letter-spacing: .13em; }
.my-news-heading h2, .my-news-page h1, .my-news-page h2, .my-news-card h2, .my-news-card h3 { color: var(--my-news-text); }
.my-news-heading h2 { margin: 0; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.25; }
.my-news-all-link, .my-news-card a, .my-news-back { display: inline-flex; align-items: center; width: fit-content; color: var(--my-news-text); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--my-news-accent); }
.my-news-all-link:hover, .my-news-card a:hover, .my-news-back:hover { color: var(--my-news-accent); }
.my-news-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.my-news-card { display: flex; flex-direction: column; min-width: 0; min-height: 196px; padding: 20px; color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 14px 36px rgba(0,0,0,.18)); }
.my-news-card h2, .my-news-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.my-news-card time { display: block; margin: 10px 0 0; color: var(--my-news-muted); font-size: .86rem; }
.my-news-card p { margin: 10px 0 16px; color: var(--my-news-muted); }
.my-news-card a { margin-top: auto; }
.my-news-empty { grid-column: 1 / -1; margin: 0; padding: 20px; color: var(--my-news-muted); background: var(--my-news-surface); border: 1px dashed var(--my-news-line); border-radius: var(--radius, 8px); }
.my-news-page { min-height: 100vh; padding: 44px 16px 64px; color: var(--my-news-text); background: var(--bg, var(--cream, #fff)); }
.my-news-page .my-news-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; color: var(--my-news-muted); }
.my-news-page .my-news-brand { margin: 0; color: var(--my-news-muted); font-size: .93rem; }
.my-news-page .my-news-intro { max-width: 760px; margin: 0 0 24px; color: var(--my-news-muted); }
.my-news-page .my-news-detail { max-width: 820px; padding: clamp(22px, 5vw, 44px); color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 14px 36px rgba(0,0,0,.18)); }
.my-news-page .my-news-detail h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.22; }
.my-news-page .my-news-detail time { display: block; margin: 16px 0 24px; color: var(--my-news-muted); }
.my-news-page .my-news-summary { margin: 0 0 20px; color: var(--my-news-muted); font-size: 1.05rem; }
.my-news-page .my-news-content { margin: 0; color: var(--my-news-text); white-space: pre-wrap; }
.my-news-page .my-news-footer { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.my-friend-link { color: inherit; }
.download-confirm-backdrop { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.64); }
.download-confirm-panel { width: min(460px, 100%); padding: 24px; color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 24px 70px rgba(0,0,0,.35)); }
.download-confirm-panel h2 { margin: 0 0 10px; color: var(--my-news-text); font-size: 1.3rem; }
.download-confirm-panel p { margin: 0; color: var(--my-news-muted); }
.download-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.download-confirm-actions button { min-height: 40px; padding: 0 16px; font: inherit; font-weight: 700; color: var(--my-news-text); background: transparent; border: 1px solid var(--my-news-line); border-radius: 6px; cursor: pointer; }
.download-confirm-actions .download-confirm-primary { color: #19120a; background: var(--my-news-accent); border-color: var(--my-news-accent); }
@media (max-width: 640px) { .my-news-home { padding-inline: 12px; } .my-news-heading, .my-news-page .my-news-topbar { align-items: flex-start; flex-direction: column; } .my-news-page { padding: 26px 12px 44px; } .my-news-card { min-height: 0; } }
