:root {
  --paper: #f7f7f4;
  --paper-strong: #ffffff;
  --paper-deep: #ecebe5;
  --ink: #20201d;
  --muted: #666960;
  --line: rgba(32, 32, 29, 0.14);
  --brand: #7a2e2a;
  --brand-deep: #55201d;
  --accent: #2f6f63;
  --accent-soft: rgba(47, 111, 99, 0.1);
  --forest: #2f6f63;
  --forest-soft: rgba(47, 111, 99, 0.1);
  --danger: #9d3a2f;
  --success: #2f6a50;
  --warning: #9a6a1f;
  --shadow-xl: none;
  --shadow-lg: none;
  --shadow-md: none;
  --radius-xl: 8px;
  --radius-lg: 8px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --header-height: 92px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  min-height: 100vh;
}

body::selection {
  background: rgba(123, 47, 29, 0.14);
}

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

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

h1,
h2,
h3,
h4 {
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  letter-spacing: 0;
}

p,
li,
label,
input,
textarea,
select,
button {
  font-size: 1rem;
}

.site-shell {
  position: relative;
  min-height: 100vh;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 22%),
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.52), transparent 18%);
  opacity: 0.8;
}

.shell-inner {
  width: min(1200px, calc(100% - 2.2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(249, 244, 236, 0.8);
  border-bottom: 1px solid rgba(71, 48, 31, 0.08);
}

.header-row {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
}

.brand-mark {
  display: inline-grid;
  gap: 0.12rem;
  color: var(--ink);
}

.brand-kicker,
.eyebrow,
.footer-label,
.status-chip,
.metric-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-kicker,
.eyebrow,
.footer-label {
  color: var(--brand);
}

.brand-mark strong {
  font-size: 1.28rem;
  line-height: 1.1;
}

.brand-note {
  font-size: 0.86rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.site-nav a,
.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: rgba(34, 28, 24, 0.9);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.header-link:hover {
  transform: translateY(-1px);
  background: rgba(123, 47, 29, 0.08);
  color: var(--brand-deep);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 45;
  backdrop-filter: blur(18px);
  background: rgba(25, 42, 41, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-topbar-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.admin-topbar .brand-mark strong,
.admin-topbar .brand-kicker,
.admin-topbar .brand-note,
.admin-topbar .header-link,
.admin-topbar .admin-user {
  color: #f7fbfa;
}

.admin-topbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.page-body {
  position: relative;
  padding: 2rem 0 4rem;
}

.page-body > * {
  animation: section-rise 0.55s ease both;
}

.page-body > *:nth-child(2) {
  animation-delay: 0.06s;
}

.page-body > *:nth-child(3) {
  animation-delay: 0.12s;
}

.page-body > *:nth-child(4) {
  animation-delay: 0.18s;
}

.site-footer {
  padding: 0 0 2.2rem;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr;
  gap: 1.4rem;
  padding: 1.8rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, rgba(85, 29, 18, 0.98), rgba(123, 47, 29, 0.93)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  color: #fff5ee;
  box-shadow: var(--shadow-lg);
}

.footer-layout h2 {
  margin: 0.35rem 0 0.85rem;
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}

.footer-layout p,
.footer-column a {
  color: rgba(255, 245, 238, 0.8);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.footer-column a:hover {
  color: #fff5ee;
}

.admin-strip {
  background: linear-gradient(90deg, rgba(53, 88, 86, 0.96), rgba(38, 63, 61, 0.96));
  color: #f7fbfa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-strip-inner {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-strip-inner strong {
  display: block;
  font-size: 1rem;
}

.admin-strip-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.admin-user {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.button-primary,
.button-secondary,
.button-ghost,
.button-danger,
.search-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.82rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button-primary,
.search-submit-button {
  background: linear-gradient(135deg, #d19745, #ebbc62);
  color: #2d1b0b;
  box-shadow: 0 16px 30px rgba(198, 139, 58, 0.24);
}

.button-secondary {
  background: rgba(123, 47, 29, 0.08);
  color: var(--brand-deep);
}

.button-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.button-danger {
  background: rgba(157, 58, 47, 0.12);
  color: var(--danger);
}

.button-small {
  min-height: 40px;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
}

.button-primary:hover,
.button-secondary:hover,
.button-ghost:hover,
.button-danger:hover,
.search-submit-button:hover,
button:hover {
  transform: translateY(-1px);
}

.launch-hero,
.page-header,
.section-panel,
.surface-card,
.form-shell,
.search-shell,
.entry-story,
.admin-summary,
.timeline-shell,
.auth-shell {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.launch-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.78fr);
  gap: 2rem;
  min-height: calc(100svh - var(--header-height) - 3rem);
  padding: clamp(2rem, 4vw, 3.2rem);
  background:
    radial-gradient(circle at 78% 18%, rgba(198, 139, 58, 0.22), transparent 20%),
    radial-gradient(circle at 16% 84%, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(85, 29, 18, 0.98), rgba(119, 43, 27, 0.95) 55%, rgba(55, 88, 86, 0.9));
  color: #fff7ef;
}

.search-landing {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  grid-template-columns: 1fr;
  min-height: 700px;
  padding: 4.5rem max(1.1rem, calc((100vw - 1200px) / 2));
  border-radius: 0;
  border-left: none;
  border-right: none;
  background:
    linear-gradient(90deg, rgba(47, 24, 17, 0.9) 0%, rgba(47, 24, 17, 0.72) 42%, rgba(47, 24, 17, 0.18) 72%),
    linear-gradient(180deg, rgba(47, 24, 17, 0.12), rgba(47, 24, 17, 0.38)),
    url("/media/site/home-archive-hero.png") center / cover no-repeat;
  box-shadow: none;
}

.landing-copy {
  width: min(100%, 620px);
  margin: 0;
  text-align: left;
  align-content: center;
  position: relative;
  z-index: 1;
}

.landing-copy .hero-lead {
  margin-left: 0;
  margin-right: 0;
}

.search-landing h1 {
  font-size: 5.4rem;
  letter-spacing: 0;
}

.search-landing .hero-actions,
.search-landing .hero-meta {
  justify-content: flex-start;
}

.search-landing .button-secondary {
  background: rgba(255, 250, 242, 0.12);
  color: #fff7ef;
  border: 1px solid rgba(255, 250, 242, 0.24);
}

.search-landing .button-secondary:hover {
  background: rgba(255, 250, 242, 0.18);
  color: #ffffff;
}

.search-landing::after {
  display: none;
}

.landing-search-shell {
  width: min(100%, 780px);
  margin: 0 auto;
}

.launch-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -20% auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  filter: blur(6px);
}

.hero-copy {
  max-width: 720px;
  display: grid;
  align-content: center;
  gap: 1rem;
}

.launch-hero h1,
.page-header h1,
.feature-header h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.02;
}

.hero-lead,
.page-header p {
  max-width: 46rem;
  margin: 0;
  color: rgba(255, 247, 239, 0.82);
  font-size: 1.02rem;
  line-height: 1.85;
}

.launch-hero .hero-lead {
  max-width: 38rem;
}

.hero-actions,
.form-actions,
.utility-actions,
.history-actions,
.page-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-meta,
.metric-row,
.chip-row,
.pill-grid,
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-meta span,
.metric-chip,
.pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.hero-rail {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  gap: 1rem;
}

.hero-note,
.metric-panel,
.surface-card,
.section-panel,
.form-shell,
.search-shell,
.auth-shell,
.admin-summary,
.timeline-shell,
.empty-state,
.entry-story,
.media-panel,
.detail-grid-block {
  background: rgba(255, 250, 242, 0.88);
  backdrop-filter: blur(10px);
}

.hero-note,
.metric-panel,
.section-panel,
.surface-card,
.search-shell,
.entry-story,
.admin-summary,
.timeline-shell,
.detail-grid-block {
  padding: 1.35rem;
}

.hero-note {
  background: rgba(255, 249, 241, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-note p,
.hero-note li {
  color: rgba(255, 247, 239, 0.78);
}

.metric-panel {
  display: grid;
  gap: 0.9rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.metric-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-card strong {
  display: block;
  margin-top: 0.3rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.metric-card span,
.metric-card p {
  color: rgba(255, 247, 239, 0.76);
  margin: 0;
}

.content-section {
  margin-top: 2rem;
}

.feature-header,
.section-heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.feature-header h2,
.section-heading h2,
.surface-card h3,
.section-panel h3,
.entry-story h2,
.timeline-shell h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.feature-header p,
.section-heading p,
.surface-card p,
.section-panel p,
.muted,
.metric-caption {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.split-layout,
.two-column,
.three-column,
.stats-grid,
.result-grid,
.directory-grid,
.detail-grid,
.story-grid,
.dashboard-grid {
  display: grid;
  gap: 1rem;
}

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

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

.result-grid,
.detail-grid,
.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.story-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.surface-card,
.section-panel,
.entry-story,
.admin-summary,
.timeline-shell,
.auth-shell,
.search-shell,
.form-shell,
.page-header,
.empty-state {
  border: 1px solid var(--line);
}

.surface-card,
.section-panel {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.surface-card:hover,
.section-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 47, 29, 0.24);
  box-shadow: var(--shadow-md);
}

.page-header {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background:
    radial-gradient(circle at right top, rgba(198, 139, 58, 0.18), transparent 26%),
    rgba(255, 250, 242, 0.92);
}

.page-header p {
  color: var(--muted);
}

.page-header .meta-list,
.entry-overview .meta-list {
  margin-top: 1rem;
}

.meta-list span,
.status-chip,
.pill {
  min-height: 38px;
  padding: 0 0.95rem;
  border-radius: 999px;
  background: rgba(123, 47, 29, 0.08);
  color: var(--brand-deep);
  border: 1px solid rgba(123, 47, 29, 0.08);
}

.status-chip.pending,
.tag.status-pending,
.status-old.status-pending,
.status-new.status-pending {
  background: rgba(198, 139, 58, 0.12);
  color: var(--warning);
  border-color: rgba(198, 139, 58, 0.18);
}

.status-chip.revision,
.tag.status-revision,
.status-old.status-revision,
.status-new.status-revision {
  background: rgba(157, 58, 47, 0.12);
  color: var(--danger);
  border-color: rgba(157, 58, 47, 0.18);
}

.status-chip.approved,
.tag.status-approved,
.status-old.status-approved,
.status-new.status-approved {
  background: rgba(47, 106, 80, 0.12);
  color: var(--success);
  border-color: rgba(47, 106, 80, 0.18);
}

.status-chip.rejected,
.tag.status-rejected,
.status-old.status-rejected,
.status-new.status-rejected {
  background: rgba(157, 58, 47, 0.12);
  color: var(--danger);
  border-color: rgba(157, 58, 47, 0.18);
}

.search-shell {
  padding: 1rem;
}

.search-form {
  display: grid;
  gap: 0.9rem;
}

.search-main-row,
.search-filter-row {
  display: grid;
  gap: 0.9rem;
}

.search-main-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

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

.search-keyword-input,
.search-select-input,
.field-input {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(71, 48, 31, 0.14);
  background: #fffdf8;
  color: var(--ink);
}

.field-input {
  min-height: 50px;
}

textarea.field-input {
  min-height: 150px;
  resize: vertical;
}

.search-keyword-input:focus,
.search-select-input:focus,
.field-input:focus {
  outline: none;
  border-color: rgba(123, 47, 29, 0.36);
  box-shadow: 0 0 0 4px rgba(123, 47, 29, 0.08);
}

.field-group {
  display: grid;
  gap: 0.45rem;
}

.field-group label,
.field-label {
  font-weight: 700;
}

.field-hint,
.field-error,
.validation-summary,
.helper-copy {
  font-size: 0.92rem;
}

.field-hint,
.helper-copy {
  color: var(--muted);
}

.detail-grid-block h3,
.media-panel h3,
.location-panel h3,
.auth-shell h2,
.admin-summary h2 {
  margin: 0.3rem 0 0;
}

.detail-grid-block p,
.media-panel p,
.location-panel p {
  margin: 0.4rem 0 0;
}

.field-error,
.validation-summary {
  color: #b42318;
}

.form-shell {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.entry-form,
.auth-form,
.review-form,
.bulk-form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-section {
  display: grid;
  gap: 0.6rem;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(71, 48, 31, 0.08);
}

.form-section h3 {
  margin: 0;
}

.surface-link,
.list-link {
  display: grid;
  gap: 0.6rem;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 242, 0.9);
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.surface-link:hover,
.list-link:hover {
  transform: translateY(-2px);
  border-color: rgba(123, 47, 29, 0.24);
  box-shadow: var(--shadow-md);
}

.surface-link-head,
.submission-head,
.timeline-head,
.entry-meta-row,
.utility-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.surface-link h3,
.list-link h3,
.surface-link h2,
.section-panel h2,
.entry-story h2,
.auth-shell h2,
.admin-summary h2 {
  margin: 0;
}

.entry-story {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.entry-overview {
  display: grid;
  gap: 1rem;
}

.entry-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-height) + 1.2rem);
}

.detail-list,
.compact-list,
.ordered-list,
.source-list,
.info-list {
  margin: 0;
  padding-left: 1.2rem;
}

.compact-list li,
.ordered-list li,
.source-list li,
.info-list li {
  margin-bottom: 0.55rem;
  line-height: 1.7;
}

.source-list {
  padding-left: 0;
  list-style: none;
}

.source-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(71, 48, 31, 0.08);
}

.source-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.oral-quote {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--brand-deep);
  font-size: 1.05rem;
  line-height: 1.8;
}

.empty-state {
  padding: 1.6rem;
  text-align: center;
  border-style: dashed;
}

.empty-state h3 {
  margin: 0 0 0.5rem;
}

.auth-shell {
  max-width: 540px;
  margin: 0 auto;
  padding: 1.6rem;
}

.dashboard-grid {
  margin-top: 1.2rem;
}

.submission-card {
  display: grid;
  gap: 1rem;
}

.submission-card .surface-card {
  height: 100%;
}

.submission-body {
  display: grid;
  gap: 0.75rem;
}

.submission-body p,
.submission-body li {
  margin: 0;
  line-height: 1.7;
}

.submission-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(53, 88, 86, 0.06);
}

.submission-checkbox-row input {
  width: 18px;
  height: 18px;
}

.media-panel,
.location-panel,
.detail-grid-block {
  border-radius: var(--radius-md);
  border: 1px solid rgba(71, 48, 31, 0.08);
}

.media-panel,
.location-panel {
  padding: 0.95rem 1rem;
}

.media-links {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.media-links li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(71, 48, 31, 0.08);
}

.media-links li:last-child {
  border-bottom: none;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.media-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: rgba(71, 48, 31, 0.08);
  border: 1px solid rgba(71, 48, 31, 0.08);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.media-thumb:hover img {
  transform: scale(1.03);
}

.media-link-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}

.media-link-card {
  display: grid;
  gap: 0.28rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(53, 88, 86, 0.08);
  border: 1px solid rgba(53, 88, 86, 0.1);
}

.media-kind {
  font-size: 0.78rem;
  color: var(--forest);
  font-weight: 700;
}

.media-links a,
.surface-link a,
.list-link a,
.footer-column a,
.text-link {
  color: var(--brand-deep);
}

.media-links a:hover,
.surface-link a:hover,
.list-link a:hover,
.text-link:hover {
  color: var(--brand);
}

.bulk-shell {
  margin-top: 1.2rem;
}

.bulk-form-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
}

.bulk-controls {
  display: grid;
  gap: 1rem;
}

.bulk-select-panel {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(53, 88, 86, 0.08);
}

.bulk-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-shell {
  padding: 1.4rem;
}

.timeline-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(123, 47, 29, 0.12);
}

.timeline-card {
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 250, 242, 0.96);
  border: 1px solid rgba(71, 48, 31, 0.1);
}

.timeline-time {
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-summary {
  margin-top: 0.5rem;
  color: var(--ink);
}

.timeline-note {
  margin-top: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(53, 88, 86, 0.08);
}

.timeline-note strong {
  display: block;
  margin-bottom: 0.35rem;
}

.status-flow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.history-arrow {
  color: var(--muted);
}

.policy-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.copy-stack {
  display: grid;
  gap: 0.85rem;
}

.copy-stack p,
.copy-stack li {
  margin: 0;
  line-height: 1.7;
}

.copy-stack .compact-list,
.copy-stack .utility-actions {
  margin-top: 0.2rem;
}

.admin-mode .page-body {
  padding-top: 1.6rem;
}

.public-mode .page-body {
  padding-top: 1.8rem;
}

.admin-page-body {
  padding-top: 2rem;
}

@keyframes section-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .header-row,
  .admin-topbar-inner,
  .footer-layout,
  .launch-hero,
  .story-grid,
  .three-column,
  .policy-grid,
  .stats-grid,
  .directory-grid,
  .bulk-form-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .entry-sidebar {
    position: static;
  }
}

@media (max-width: 820px) {
  .split-layout,
  .two-column,
  .form-grid,
  .search-main-row,
  .search-filter-row,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .header-row {
    padding: 1rem 0;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-topbar-actions {
    justify-content: flex-start;
  }

  .launch-hero {
    min-height: auto;
  }

  .search-landing {
    min-height: 500px;
    padding: 3.5rem 1.1rem;
    background-position: 58% center;
  }
}

@media (max-width: 640px) {
  .shell-inner {
    width: min(100% - 1rem, 1200px);
  }

  .site-nav {
    gap: 0.25rem;
  }

  .site-nav a,
  .header-link {
    padding: 0 0.72rem;
  }

  .page-body {
    padding-bottom: 3rem;
  }

  .launch-hero,
  .page-header,
  .section-panel,
  .surface-card,
  .form-shell,
  .search-shell,
  .entry-story,
  .admin-summary,
  .timeline-shell,
  .auth-shell {
    border-radius: 24px;
  }

  .search-landing {
    border-radius: 0;
    min-height: 455px;
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
  }

  .search-landing h1 {
    font-size: 2.8rem;
  }
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
}

.brand-note {
  max-width: 22rem;
}

.knowledge-hero {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--paper-strong);
}

.knowledge-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.06;
}

.knowledge-hero p {
  max-width: 56rem;
  color: var(--muted);
  line-height: 1.85;
}

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

.breadcrumb-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb-line a {
  color: var(--brand-deep);
}

.detail-block {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-block:first-child {
  padding-top: 0;
}

.detail-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-block h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.detail-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.definition-list {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0.65rem 1rem;
  margin: 0;
}

.definition-list dt {
  color: var(--muted);
  font-weight: 700;
}

.definition-list dd {
  margin: 0;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-list article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.link-list a {
  color: var(--brand-deep);
  font-weight: 700;
}

.footer-layout {
  background: #fff;
  color: var(--ink);
}

.footer-layout p,
.footer-column a {
  color: var(--muted);
}

.footer-column a:hover {
  color: var(--brand-deep);
}

.button-primary,
.search-submit-button {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}

.button-secondary {
  border: 1px solid var(--line);
  background: #fff;
}

.hero-meta span,
.meta-list span,
.pill,
.status-chip {
  border-radius: var(--radius-sm);
}

@media (max-width: 1080px) {
  .browse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .browse-grid,
  .definition-list {
    grid-template-columns: 1fr;
  }
}
