:root {
  --bg: #0f1115;
  --bg-soft: #13161b;
  --card: #1a1d23;
  --card-soft: #20242c;
  --border: #2a2f38;
  --border-strong: #3a414d;
  --text: #e8eaed;
  --muted: #a8adb8;
  --inactive: #7a8290;
  --accent: #34d399;
  --accent-strong: #7bf0bf;
  --archive-yellow: #facc15;
  --danger: #ff8c8c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --ease: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

body.drawer-open,
body.modal-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

button,
a,
input,
select {
  border-radius: var(--radius);
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-140%);
  border: 2px solid var(--accent);
  background: #ffffff;
  color: #06110c;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}

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

.search-mark {
  border-bottom: 2px solid #ffd66e;
  border-radius: 3px;
  background: rgba(255, 214, 110, 0.18);
  color: #fff;
  padding: 0 0.04em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 12, 15, 0.96);
  backdrop-filter: blur(18px);
}

.header-left,
.header-nav,
.brand,
.view-tools,
.drawer-top,
.source-link {
  display: flex;
  align-items: center;
}

.header-left {
  gap: 14px;
}

.brand {
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
}

.brand-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #0f1115;
  font-size: 13px;
  font-weight: 700;
}

.header-nav {
  gap: 24px;
}

.header-nav a,
.header-nav button,
.mega-menu a,
.mega-menu button {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav button:hover,
.mega-menu a:hover,
.mega-menu button:hover {
  color: var(--accent-strong);
}

.header-help,
.mega-menu button {
  border: 0;
  background: transparent;
}

.header-help {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 7px 10px;
}

.header-help svg {
  width: 16px;
  height: 16px;
}

.mega-menu button {
  width: fit-content;
  padding: 0;
  text-align: left;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.menu-button:hover,
.icon-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.mega-menu {
  position: absolute;
  top: 64px;
  left: 40px;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px 28px;
  min-width: 430px;
  border: 1px solid var(--border);
  background: rgba(26, 29, 35, 0.98);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "copy"
    "search"
    "popular"
    "visual";
  gap: 18px;
  align-items: start;
  justify-items: center;
  padding: 76px max(28px, calc((100vw - 1440px) / 2 + 40px)) 42px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(15, 17, 21, 0.4) 0%, rgba(15, 17, 21, 0.74) 54%, rgba(15, 17, 21, 0.98) 100%),
    linear-gradient(135deg, rgba(20, 30, 25, 0.48) 0%, rgba(15, 17, 21, 0.58) 44%, rgba(15, 17, 21, 0.94) 100%),
    url("assets/scrc-hero-aerial.jpg") center 45% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 17, 21, 0.18), transparent 24%, transparent 76%, rgba(15, 17, 21, 0.28)),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 36%);
  pointer-events: none;
}

.hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 1;
  width: min(100%, 1060px);
}

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

.hero h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.18;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hero-lead {
  max-width: 980px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.hero-visual {
  grid-area: visual;
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  min-height: 116px;
  margin-top: 8px;
}

.timeline-era-labels,
.timeline-year-labels {
  position: absolute;
  left: 16px;
  right: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
}

.timeline-era-labels {
  top: 10px;
}

.timeline-year-labels {
  top: 76px;
}

.timeline-era-labels span,
.timeline-year-labels span,
.timeline-caption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.timeline-era-labels span:nth-child(5) {
  color: var(--accent-strong);
}

.timeline-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0;
}

.timeline-line {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 58px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.timeline-dots {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 58px;
  height: 1px;
}

.year-dot {
  appearance: none;
  position: absolute;
  top: 0;
  display: block;
  width: var(--dot-size);
  height: var(--dot-size);
  min-width: var(--dot-size);
  min-height: var(--dot-size);
  padding: 0;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.86;
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.08);
}

.year-dot:hover .year-tooltip,
.year-dot:focus-visible .year-tooltip {
  opacity: 1;
  transform: translate(-50%, -10px);
}

.year-tooltip {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: max-content;
  opacity: 0;
  transform: translate(-50%, 0);
  border: 1px solid var(--border-strong);
  background: #fff;
  color: #101318;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 800;
  pointer-events: none;
  transition: opacity var(--ease), transform var(--ease);
}

.hero-search {
  grid-area: search;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: min(100%, 560px);
  min-height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(26, 29, 35, 0.76);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  padding: 6px 8px 6px 18px;
}

.search-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
}

.search-label input {
  width: 100%;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: #fff;
  outline: none;
}

.search-label input::placeholder {
  color: var(--inactive);
}

.hero-submit {
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #0f1115;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 800;
}

.filter-toggle {
  display: none;
}

.popular-searches {
  grid-area: popular;
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.popular-searches button,
.filter-chip,
.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
}

.popular-searches button:hover,
.filter-chip:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.archive-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1080px);
  gap: 40px;
  align-items: start;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 80px 40px;
}

.filter-panel {
  position: sticky;
  top: 92px;
  border: 1px solid var(--border);
  background: rgba(26, 29, 35, 0.86);
  padding: 20px;
}

.filter-head {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.filter-head p {
  margin: 0;
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
}

.outline-button,
.drawer-nav button,
.source-link {
  min-height: 42px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  padding: 0 14px;
  font-weight: 800;
}

.outline-button:hover,
.drawer-nav button:hover,
.source-link:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

#clearButton,
.source-link {
  color: var(--archive-yellow);
}

#clearButton:hover,
.source-link:hover {
  border-color: var(--archive-yellow);
  color: var(--archive-yellow);
}

.filter-group {
  min-width: 0;
  margin: 0;
  padding: 22px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

.filter-group legend,
.field-label {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.era-options,
.topic-options {
  display: grid;
  gap: 6px;
}

.era-radio,
.topic-check,
.check-row {
  display: grid;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.era-radio {
  grid-template-columns: 18px minmax(0, 1fr);
  border-left: 4px solid transparent;
  padding: 8px 8px 8px 10px;
}

.era-radio.active {
  border-left-color: var(--accent);
  background: rgba(52, 211, 153, 0.08);
}

.era-radio input,
.topic-check input,
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.era-radio span {
  display: grid;
  gap: 1px;
}

.era-radio strong,
.topic-check span:not(.topic-dot) {
  font-weight: 800;
}

.era-radio small,
.era-radio em,
.topic-check em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.topic-check {
  grid-template-columns: 18px 10px minmax(0, 1fr) auto;
  min-height: 34px;
}

.topic-dot,
.tag-icon {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.range-values {
  display: flex;
  gap: 6px;
  color: var(--accent-strong);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.range-input {
  width: 100%;
  accent-color: var(--accent);
}

.check-row {
  grid-template-columns: 18px 1fr;
  min-height: 34px;
}

select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border-strong);
  background: var(--card-soft);
  color: var(--text);
  padding: 0 12px;
}

.content-column {
  min-width: 0;
}

.control-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip svg {
  width: 14px;
  height: 14px;
}

.view-tools {
  gap: 14px;
  flex: 0 0 auto;
}

.view-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
}

.view-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 800;
}

.view-button.active {
  background: #fff;
  color: #0f1115;
}

.view-button svg {
  width: 17px;
  height: 17px;
}

.page-status {
  margin: 0;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.result-head {
  margin-bottom: 24px;
}

.result-head h2 {
  margin: 0;
  color: #fff;
  font-size: 34px;
  line-height: 1.2;
}

.result-head p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.records-view {
  display: none;
}

.records-view.active {
  display: grid;
}

.list-view {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.record-card,
.gallery-card,
.timeline-card,
.curation-card {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-align: left;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.record-card:hover,
.gallery-card:hover,
.timeline-card:hover,
.curation-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.record-card {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  min-height: 164px;
  padding: 20px;
}

.record-media {
  height: 120px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--card-soft);
}

.record-media img,
.gallery-image img,
.drawer-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.record-body,
.gallery-info,
.curation-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.record-meta,
.gallery-info small,
.drawer-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.record-card strong,
.gallery-card strong,
.timeline-card strong,
.curation-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  line-height: 1.42;
  font-weight: 800;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.record-excerpt,
.timeline-card em,
.curation-body > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  font-style: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.record-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-tag {
  padding: 4px 8px;
  font-size: 12px;
}

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

.gallery-card {
  display: grid;
  overflow: hidden;
}

.gallery-image {
  aspect-ratio: 4 / 3;
  background: var(--card-soft);
}

.gallery-info {
  padding: 14px;
}

.gallery-info strong {
  font-size: 15px;
}

.timeline-view {
  gap: 30px;
}

.timeline-year-group {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 18px;
}

.timeline-year-group h3 {
  margin: 0;
  color: var(--accent-strong);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.timeline-year-group > div {
  display: grid;
  gap: 12px;
  border-left: 1px solid var(--border-strong);
  padding-left: 18px;
}

.timeline-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.timeline-node {
  position: absolute;
  left: -24px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-card small {
  color: var(--muted);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}

.page-button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--text);
  padding: 0 13px;
  font-weight: 800;
}

.page-button[aria-current="page"],
.page-button:disabled[aria-current="page"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #07110d;
}

.page-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.page-ellipsis {
  display: grid;
  place-items: center;
  min-width: 30px;
  color: var(--muted);
  font-weight: 800;
}

.curation-section {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 40px 92px;
}

.curation-section h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 34px;
}

.curation-note {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.curation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.curation-card {
  display: grid;
  overflow: hidden;
  padding: 0;
  min-height: 320px;
  background: #080a0d;
}

.curation-photo {
  position: relative;
  display: block;
  min-height: 320px;
  overflow: hidden;
  background: #05070a;
}

.curation-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.01);
  transition: transform var(--ease), opacity var(--ease);
}

.curation-card:hover .curation-photo img {
  opacity: 0.9;
  transform: scale(1.035);
}

.curation-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 10, 0.16) 0%, rgba(5, 7, 10, 0.48) 42%, rgba(5, 7, 10, 0.92) 100%),
    linear-gradient(90deg, rgba(5, 7, 10, 0.68), transparent 72%);
}

.curation-body {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 0;
}

.curation-card strong {
  color: var(--accent-strong);
  font-size: 21px;
  line-height: 1.35;
  font-weight: 400;
}

.site-footer {
  display: grid;
  gap: 24px;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 0 40px 56px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.footer-channel-area {
  width: min(100%, 960px);
  margin: 0 auto;
}

.footer-kicker {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.footer-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-channels a {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  color: var(--text);
  padding: 18px 22px;
  text-decoration: none;
  text-align: left;
  transition: background var(--ease), color var(--ease);
}

.footer-channels a:last-child {
  border-right: 0;
}

.footer-channels a:hover {
  background: rgba(255, 255, 255, 0.045);
  color: var(--accent-strong);
}

.footer-channel-arrow {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: currentColor;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  opacity: 0.72;
  transition: transform var(--ease), opacity var(--ease);
}

.footer-channels a:hover .footer-channel-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

.footer-channel-copy {
  display: grid;
  gap: 3px;
}

.footer-channel-copy strong {
  color: currentColor;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.footer-channel-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.footer-channels a:hover .footer-channel-copy span {
  color: var(--text);
}

.footer-credit {
  display: grid;
  gap: 7px;
}

.footer-credit p {
  margin: 0;
}

.footer-credit p:first-child {
  color: var(--text);
  font-weight: 500;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  line-height: 1.7;
}

.footer-legal > span {
  display: inline-flex;
  align-items: center;
}

.footer-legal > span + span::before {
  content: "|";
  display: inline-block;
  margin: 0 10px;
  color: rgba(232, 234, 237, 0.38);
  font-weight: 300;
}

.footer-credit-label {
  margin-right: 4px;
  color: var(--muted);
  font-weight: 300;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.56);
}

.help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 120;
  width: min(100%, 480px);
  height: 100vh;
  overflow: auto;
  border-left: 1px solid var(--border);
  background: #151820;
  padding: 24px;
  box-shadow: var(--shadow);
}

.help-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 140;
  width: min(calc(100% - 32px), 640px);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border-strong);
  background: #151820;
  padding: 28px;
  box-shadow: var(--shadow);
}

.drawer-top {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.help-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.help-dialog h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 28px;
  line-height: 1.25;
}

.help-intro {
  margin: 0 0 22px;
  color: var(--muted);
}

.help-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.help-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.help-list li:last-child {
  border-bottom: 0;
}

.help-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(123, 240, 191, 0.4);
  border-radius: 50%;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
}

.help-list strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
  font-weight: 700;
}

.help-dialog kbd {
  display: inline-block;
  min-width: 1.8em;
  border: 1px solid var(--border-strong);
  border-bottom-color: rgba(232, 234, 237, 0.52);
  background: var(--card);
  color: var(--text);
  padding: 1px 6px;
  font-family: inherit;
  font-size: 0.9em;
  line-height: 1.45;
  text-align: center;
}

.help-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.source-link {
  gap: 8px;
  text-decoration: none;
}

.drawer-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-soft);
  margin-bottom: 18px;
}

.detail-drawer h2 {
  margin: 8px 0 14px;
  color: #fff;
  font-size: 28px;
  line-height: 1.35;
}

.drawer-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin: 22px 0 18px;
}

.drawer-tab {
  min-height: 42px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 800;
}

.drawer-tab.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.drawer-panel p {
  margin: 0 0 16px;
  color: var(--text);
  line-height: 1.8;
}

.summary-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.summary-list li::marker {
  color: var(--accent);
}

.source-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.source-list div {
  border: 1px solid var(--border);
  background: var(--card);
  padding: 12px;
}

.source-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.source-list dd {
  margin: 2px 0 0;
  color: var(--text);
}

.drawer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 26px;
}

.image-empty,
.loading,
.empty-message {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--border-strong);
  background: var(--card-soft);
  color: var(--muted);
  text-align: center;
  padding: 18px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1439px) {
  .archive-workspace {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
  }

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

@media (max-width: 1023px) {
  .site-header {
    padding: 0 20px;
  }

  .header-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "search"
      "popular"
      "visual";
    padding: 64px 24px 40px;
  }

  .archive-workspace {
    grid-template-columns: 1fr;
    padding: 56px 24px;
  }

  .filter-panel {
    position: static;
  }

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

  .record-card {
    grid-template-columns: 1fr;
  }

  .record-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }

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

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

  .hero {
    min-height: 0;
  }

  .hero h1 {
    font-size: 34px;
    white-space: normal;
  }

  .hero-lead {
    white-space: normal;
  }

  .hero-visual {
    min-height: 132px;
  }

  .hero-search {
    grid-template-columns: minmax(0, 1fr) auto 42px;
  }

  .filter-toggle {
    display: inline-grid;
  }

  .timeline-era-labels {
    display: none;
  }

  .timeline-line,
  .timeline-dots {
    top: 48px;
  }

  .control-bar,
  .view-tools {
    display: grid;
    align-items: stretch;
  }

  .view-switch {
    overflow-x: auto;
  }

  .list-view,
  .gallery-view {
    grid-template-columns: 1fr;
  }

  .archive-workspace,
  .curation-section,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer-channels {
    grid-template-columns: 1fr;
  }

  .footer-channels a {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
  }

  .footer-channels a:last-child {
    border-bottom: 0;
  }

  .help-dialog {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    padding: 20px;
  }

  .help-top {
    gap: 12px;
  }

  .help-dialog h2 {
    font-size: 24px;
  }

  .help-list li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
  }

  .filter-panel {
    display: none;
  }

  .filter-panel.open {
    display: block;
    position: fixed;
    inset: 72px 0 0;
    z-index: 100;
    overflow: auto;
    border-radius: 0;
  }

  .timeline-year-group {
    grid-template-columns: 1fr;
  }

  .timeline-year-group > div {
    margin-left: 6px;
  }
}
