:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --surface: #fffdf8;
  --ink: #292720;
  --muted: #69635a;
  --line: #d4c8b7;
  --line-strong: #a99d8b;
  --man: #1f665c;
  --man-soft: #dceae5;
  --prado: #95482f;
  --prado-soft: #f2dfd6;
  --greek: #386f85;
  --roman: #756344;
  --focus: #1d5fa8;
  --shadow: 0 12px 32px rgb(53 46 35 / 0.08);
  --radius: 18px;
  --header-height: 92px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input {
  font: inherit;
}

button,
summary,
label,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
.section-heading h2,
.museum-comparison > h2,
.biography-visual > h2,
.panel-block > h2,
.disagreement-ledger > h2,
.packet-links > h2 {
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 10ch;
  margin-bottom: 18px;
  font-size: clamp(3.2rem, 8vw, 6.7rem);
  line-height: 0.93;
}

h2 {
  font-size: clamp(1.75rem, 3.7vw, 2.7rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.23rem;
  line-height: 1.25;
}

.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;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: min(1240px, calc(100% - 48px));
  height: 62px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  place-items: center;
  font-family: ui-serif, Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.02rem;
}

.brand-copy small,
.header-edition {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.integrity-banner {
  margin: 0;
  padding: 5px 24px 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.73rem;
  line-height: 1.35;
  text-align: center;
}

.mobile-nav-trigger {
  display: none;
}

.page-shell {
  display: grid;
  grid-template-columns: 198px minmax(0, 940px);
  gap: 54px;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

.section-rail {
  position: sticky;
  top: calc(var(--header-height) + 34px);
  align-self: start;
  padding-top: 70px;
}

.section-rail nav {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.section-rail nav a {
  display: block;
  margin-left: -1px;
  padding: 9px 0 9px 18px;
  border-left: 3px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.section-rail nav a[aria-current="true"] {
  border-left-color: var(--prado);
  color: var(--ink);
  font-weight: 700;
}

.rail-note {
  margin: 34px 0 0 20px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.75;
}

.rail-note strong {
  color: var(--ink);
}

.tablet-nav {
  display: none;
}

main {
  min-width: 0;
}

.section-block {
  padding: 94px 0 72px;
  border-bottom: 1px solid var(--line);
}

.hero {
  padding-top: 98px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--prado);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-deck {
  max-width: 700px;
  margin-bottom: 30px;
  color: var(--muted);
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(1.2rem, 2.4vw, 1.62rem);
  line-height: 1.38;
}

.hero-actions,
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.filter-trigger,
.mobile-nav-trigger,
.icon-button {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

.button,
.filter-trigger,
.mobile-nav-trigger {
  display: inline-flex;
  padding: 9px 17px;
  align-items: center;
  justify-content: center;
}

.button:hover,
.filter-trigger:hover,
.mobile-nav-trigger:hover {
  border-color: var(--ink);
}

.button-primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button:disabled,
.filter-trigger:disabled,
.mobile-nav-trigger:disabled,
.icon-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.mobile-nav-trigger {
  display: none;
}

.thesis-note {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 18px;
  margin: 56px 0 74px;
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.thesis-note p {
  max-width: 68ch;
  margin: 0;
  font-size: 1.04rem;
}

.note-label,
.comparison-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.museum-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 74px;
}

.museum-comparison > h2 {
  grid-column: 1 / -1;
  margin-bottom: 16px;
}

.comparison-column {
  min-height: 285px;
  padding: 28px;
  border-radius: var(--radius);
}

.comparison-man {
  background: var(--man-soft);
}

.comparison-prado {
  background: var(--prado-soft);
}

.comparison-man .comparison-label {
  color: var(--man);
}

.comparison-prado .comparison-label {
  color: var(--prado);
}

.comparison-column h3 {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.62rem;
}

.control-question {
  margin-top: 24px;
  margin-bottom: 0;
}

.finding-list {
  max-width: 780px;
}

.finding-list > h2 {
  margin-bottom: 22px;
}

.finding-list details,
.disagreement-ledger details {
  border-top: 1px solid var(--line);
}

.finding-list details:last-child,
.disagreement-ledger details:last-child {
  border-bottom: 1px solid var(--line);
}

.finding-list summary,
.disagreement-ledger summary {
  padding: 16px 38px 16px 0;
  cursor: pointer;
  font-weight: 750;
}

.finding-list details p,
.disagreement-ledger details p {
  max-width: 68ch;
  margin: 0 0 18px;
  color: var(--muted);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2 {
  max-width: 16ch;
  margin-bottom: 18px;
}

.section-heading > p:last-child {
  max-width: 68ch;
  color: var(--muted);
}

.image-gate-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  margin: 0 0 22px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--prado);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  align-items: center;
}

.image-gate-bar.is-unlocked {
  border-left-color: var(--man);
}

.image-gate-bar h3 {
  margin-bottom: 4px;
  font-family: ui-serif, Georgia, serif;
}

.image-gate-bar p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.image-gate-kicker {
  margin-bottom: 4px !important;
  color: var(--prado) !important;
  font-size: 0.7rem !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-gate-bar.is-unlocked .image-gate-kicker {
  color: var(--man) !important;
}

.gate-noscript {
  margin: -8px 0 22px;
  padding: 12px 14px;
  border-left: 4px solid var(--prado);
  color: var(--muted);
  font-size: 0.84rem;
}

.object-toolbar {
  display: grid;
  grid-template-columns: auto minmax(270px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.scope-switch {
  display: inline-flex;
  min-width: max-content;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.scope-switch label {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  padding: 7px 13px;
  border-radius: 999px;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
}

.scope-switch label:has(input:checked) {
  background: var(--ink);
  color: var(--paper);
}

.scope-switch label:has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.scope-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.search-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
}

.filter-trigger {
  display: none;
}

.filters-dialog[open] {
  position: static;
  display: block;
  width: auto;
  max-width: none;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--ink);
}

.filter-dialog-heading,
.mobile-filter-apply {
  display: none;
}

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

.filter-grid fieldset,
.more-filters {
  margin: 0;
  padding: 0;
  border: 0;
}

.filter-grid legend,
.more-filters > summary {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filter-grid label {
  display: flex;
  gap: 8px;
  min-height: 32px;
  align-items: center;
  cursor: pointer;
  font-size: 0.88rem;
}

.filter-grid input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--ink);
}

.more-filters {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.more-filters > summary {
  cursor: pointer;
}

.more-filters fieldset {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 16px;
  margin-top: 12px;
}

.more-filters fieldset legend {
  grid-column: 1 / -1;
}

.uncertainty-filter {
  margin-top: 6px;
}

.filter-actions {
  margin-top: 12px;
}

.result-line {
  min-height: 40px;
  padding: 8px 2px;
  color: var(--muted);
  font-size: 0.88rem;
}

.result-line p {
  margin: 0;
}

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

.object-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 0 0 transparent;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.object-card:hover {
  border-color: var(--line-strong);
}

.object-card[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.object-card[hidden] {
  display: none;
}

.object-card > summary {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 190px;
  gap: 9px 22px;
  padding: 22px;
  cursor: pointer;
  list-style: none;
}

.object-card > summary::-webkit-details-marker {
  display: none;
}

.object-kicker {
  display: grid;
  grid-row: 1 / span 4;
  align-content: start;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.object-kicker span:last-child {
  margin-top: 5px;
  color: var(--ink);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

.object-title {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.34rem;
  font-weight: 700;
  line-height: 1.18;
}

.object-date {
  color: var(--muted);
  font-size: 0.78rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag {
  display: inline-flex;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 46%, transparent);
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.display-status {
  align-self: start;
  justify-self: start;
  padding-left: 12px;
  border-left: 3px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.status-confirmed {
  border-left-color: var(--man);
}

.status-not_displayed {
  border-left-color: var(--prado);
}

.object-teaser {
  display: -webkit-box;
  grid-column: 2 / 3;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.86rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.summary-action {
  grid-column: 3;
  grid-row: 4;
  align-self: end;
  justify-self: end;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.summary-action::after {
  content: "＋";
  margin-left: 7px;
}

.close-label,
.object-card[open] .open-label {
  display: none;
}

.object-card[open] .close-label {
  display: inline;
}

.object-card[open] .summary-action::after {
  content: "−";
}

.object-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(230px, 0.9fr);
  gap: 34px;
  padding: 0 22px 28px 172px;
  border-top: 1px solid var(--line);
}

.object-narrative,
.evidence-block {
  padding-top: 26px;
}

.object-narrative h3 {
  margin-bottom: 12px;
  font-family: ui-serif, Georgia, serif;
  font-size: 1.42rem;
}

.object-narrative > p,
.evidence-block p {
  max-width: 68ch;
}

.evidence-block {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  font-size: 0.86rem;
}

.evidence-block h4 {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.evidence-block p {
  margin-bottom: 20px;
}

.register-section {
  color: var(--muted);
  font-size: 0.75rem;
}

.object-image {
  margin: 26px 0 0;
}

.image-open {
  position: relative;
  display: block;
  width: 100%;
  min-height: 220px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--paper) 68%, var(--surface));
  cursor: pointer;
}

.image-open.is-locked,
.image-open.is-ready,
.image-open.is-loading {
  background:
    repeating-linear-gradient(135deg, transparent 0 18px, color-mix(in srgb, var(--line) 34%, transparent) 18px 19px),
    color-mix(in srgb, var(--paper) 68%, var(--surface));
}

.image-open.is-ready {
  border-color: var(--man);
}

.image-open:disabled {
  cursor: default;
}

.image-open.is-revealed {
  min-height: 0;
  cursor: zoom-in;
}

.image-lock-content {
  display: grid;
  min-height: 186px;
  gap: 8px;
  place-content: center;
  text-align: center;
}

.image-lock-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-lock-action {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.image-open.is-revealed .image-lock-content {
  display: none;
}

.image-open .protected-preview {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.object-image figcaption,
.image-link-only {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.zero-results {
  padding: 44px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.timeline-visual {
  margin: 34px 0 68px;
  padding: 28px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.timeline-periods {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-left: 170px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.timeline-lane {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 6px 20px;
  margin-top: 25px;
  align-items: center;
}

.timeline-lane h3 {
  grid-row: 1 / span 2;
  margin: 0;
  font-size: 0.85rem;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  min-height: 42px;
  background-image: linear-gradient(to right, transparent calc(100% - 1px), var(--line) 1px);
  background-size: calc(100% / 7) 100%;
}

.timeline-bar {
  display: flex;
  min-width: 0;
  padding: 8px 14px;
  border-radius: 999px;
  align-items: center;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.bar-punic {
  background: repeating-linear-gradient(135deg, var(--prado) 0 8px, color-mix(in srgb, var(--prado) 82%, #fff) 8px 11px);
}

.bar-greek {
  background: radial-gradient(circle at 8px 8px, rgb(255 255 255 / 0.35) 0 2px, transparent 2.5px), var(--greek);
  background-size: 16px 16px;
}

.bar-roman {
  background: repeating-linear-gradient(0deg, var(--roman) 0 8px, color-mix(in srgb, var(--roman) 78%, #fff) 8px 10px);
}

.bar-museum {
  background: var(--ink);
}

.span-1-4 {
  grid-column: 1 / 5;
}

.span-1-5 {
  grid-column: 1 / 6;
}

.span-4-6 {
  grid-column: 4 / 7;
}

.span-7 {
  grid-column: 7;
}

.timeline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.7rem;
}

.timeline-text {
  display: none;
}

.biography-visual {
  margin-top: 56px;
}

.biography-stage-row,
.biography-case ol {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.biography-stage-row {
  margin-left: 170px;
}

.biography-stage-row span {
  padding: 8px 4px;
  border-bottom: 2px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.biography-case {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  margin-top: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--man-soft);
}

.biography-case:last-child {
  background: color-mix(in srgb, var(--greek) 14%, var(--surface));
}

.biography-case header h3,
.biography-case header p {
  margin-bottom: 3px;
}

.biography-case header p {
  color: var(--muted);
  font-size: 0.7rem;
  overflow-wrap: anywhere;
}

.biography-case ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.biography-case li {
  min-width: 0;
  padding: 6px;
  border-left: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  font-size: 0.68rem;
}

.biography-case li strong,
.biography-case li span {
  display: block;
}

.biography-case li span {
  margin-top: 4px;
  color: var(--muted);
}

.route-columns,
.source-columns,
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.route-museum {
  border-top: 5px solid var(--man);
}

.route-museum:last-child {
  border-top-color: var(--prado);
}

.route-museum > header {
  padding: 22px 0 8px;
}

.route-museum > header p {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.route-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.route-list time {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.route-list p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.visit-warning,
.rights-note,
.known-limits {
  margin-top: 32px;
  padding: 20px 24px;
  border-left: 5px solid var(--prado);
  background: var(--prado-soft);
}

.grade-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 48px;
}

.grade-legend div {
  padding: 18px;
  border-top: 3px solid var(--ink);
  background: var(--surface);
}

.grade-legend dt {
  font-weight: 800;
}

.grade-legend dt span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  place-items: center;
}

.grade-legend dd {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.method-grid > article {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.check-list {
  margin: 0;
  padding-left: 1.2em;
}

.check-list li {
  margin-bottom: 10px;
}

.panel-block {
  margin-top: 68px;
}

.panel-disclosure {
  max-width: 72ch;
  color: var(--muted);
}

.panel-table-wrap {
  margin-top: 26px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

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

th {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rights-note {
  border-left-color: var(--ink);
  background: color-mix(in srgb, var(--line) 28%, transparent);
}

.source-columns article {
  padding-top: 18px;
  border-top: 3px solid var(--ink);
}

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

.source-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.disagreement-ledger,
.packet-links {
  margin-top: 62px;
}

.packet-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.packet-links h2 {
  grid-column: 1 / -1;
}

.packet-links > p {
  max-width: 72ch;
  grid-column: 1 / -1;
  color: var(--muted);
}

.packet-links > a {
  display: flex;
  min-height: 62px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.packet-links > a:hover {
  border-color: var(--ink);
}

.site-footer {
  display: flex;
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 34px 0 50px 252px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
}

.site-footer p {
  margin: 0;
}

dialog {
  color: var(--ink);
}

dialog::backdrop {
  background: rgb(28 25 20 / 0.64);
  backdrop-filter: blur(3px);
}

.sheet-dialog,
.image-dialog {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.image-gate-dialog {
  width: min(580px, calc(100% - 32px));
}

.image-gate-dialog > p {
  max-width: 58ch;
}

.gate-session-note {
  color: var(--muted);
  font-size: 0.82rem;
}

#image-gate-form {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.gate-password-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.gate-password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

#image-gate-password {
  width: 100%;
  min-height: 50px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px 0 0 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
}

.gate-password-visibility {
  min-width: 72px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: color-mix(in srgb, var(--paper) 62%, var(--surface));
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.gate-password-visibility:hover {
  background: var(--surface);
}

.gate-password-visibility:disabled {
  cursor: wait;
  opacity: 0.58;
}

#image-gate-password[aria-invalid="true"] {
  border-color: var(--prado);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--prado) 28%, transparent);
}

.gate-error {
  margin: 2px 0 0;
  color: var(--prado);
  font-size: 0.82rem;
  font-weight: 700;
}

.gate-progress {
  min-height: 1.4em;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.gate-dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  justify-content: flex-end;
}

.dialog-heading {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
}

.filter-dialog-heading {
  display: none;
}

.filter-mode-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.dialog-heading h2,
.dialog-heading h3 {
  margin: 0;
}

.icon-button {
  display: inline-grid;
  min-width: 44px;
  padding: 0;
  place-items: center;
  font-size: 1.4rem;
}

.sections-dialog nav {
  display: grid;
}

.sections-dialog nav a {
  padding: 14px 2px;
  border-top: 1px solid var(--line);
  font-weight: 750;
  text-decoration: none;
}

.image-dialog {
  width: min(1000px, calc(100% - 32px));
}

.image-dialog img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.image-dialog p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 1040px) {
  :root {
    --header-height: 132px;
  }

  .page-shell {
    display: block;
    width: min(900px, calc(100% - 48px));
  }

  .section-rail {
    display: none;
  }

  .tablet-nav {
    position: sticky;
    z-index: 80;
    top: 92px;
    display: flex;
    gap: 22px;
    min-height: 42px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    align-items: center;
  }

  .tablet-nav a {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
  }

  .site-footer {
    width: min(900px, calc(100% - 48px));
    padding-left: 0;
  }
}

@media (max-width: 800px) {
  .object-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .image-gate-bar {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .image-gate-bar .button {
    width: 100%;
  }

  .search-field {
    grid-column: 1 / -1;
    grid-row: 1;
  }

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

  .object-card > summary {
    grid-template-columns: 116px minmax(0, 1fr) 158px;
  }

  .object-detail {
    grid-template-columns: 1fr;
    padding-left: 158px;
  }

  .evidence-block {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .timeline-visual {
    display: none;
  }

  .timeline-text {
    display: grid;
    gap: 0;
    margin: 0 0 54px;
    padding: 0;
    list-style: none;
  }

  .timeline-text li {
    padding: 15px 0;
    border-top: 1px solid var(--line);
  }

  .timeline-text li:last-child {
    border-bottom: 1px solid var(--line);
  }

  .biography-stage-row {
    display: none;
  }

  .biography-case {
    grid-template-columns: 1fr;
  }

  .biography-case ol {
    grid-template-columns: 1fr;
  }

  .biography-case li {
    display: grid;
    grid-template-columns: minmax(110px, 0.36fr) 1fr;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
    border-left: 0;
    font-size: 0.78rem;
  }

  .biography-case li span {
    margin: 0;
  }

  .grade-legend {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 92px;
  }

  body {
    font-size: 16px;
    line-height: 1.56;
  }

  .header-inner {
    width: calc(100% - 32px);
    height: 56px;
  }

  .brand-copy small,
  .header-edition {
    display: none;
  }

  .brand-copy strong {
    font-size: 0.93rem;
  }

  .mobile-nav-trigger {
    display: inline-flex;
    min-height: 38px;
    padding: 6px 13px;
    font-size: 0.8rem;
  }

  .integrity-banner {
    min-height: 36px;
    padding: 4px 16px 5px;
    font-size: 0.66rem;
  }

  .page-shell,
  .site-footer {
    width: calc(100% - 32px);
  }

  .tablet-nav {
    display: none;
  }

  .section-block,
  .hero {
    padding: 64px 0 52px;
  }

  h1 {
    font-size: clamp(3.6rem, 21vw, 5rem);
  }

  .hero-deck {
    font-size: 1.16rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .thesis-note {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 42px 0 54px;
  }

  .museum-comparison,
  .route-columns,
  .source-columns,
  .method-grid,
  .packet-links {
    grid-template-columns: 1fr;
  }

  .museum-comparison > h2,
  .packet-links h2 {
    grid-column: 1;
  }

  .comparison-column {
    min-height: 0;
    padding: 22px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .object-toolbar {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .scope-switch {
    width: 100%;
  }

  .scope-switch label {
    flex: 1;
    justify-content: center;
    font-size: 0.78rem;
  }

  .filter-trigger {
    display: inline-flex;
  }

  .filters-dialog:not(:modal) {
    display: none;
  }

  .filters-dialog[open]:modal {
    position: fixed;
    inset: auto 0 0;
    display: block;
    width: 100%;
    max-width: none;
    max-height: min(86vh, 760px);
    margin: 0;
    padding: 20px 16px calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border: 0;
    border-radius: 22px 22px 0 0;
    background: var(--surface);
  }

  .filter-dialog-heading,
  .mobile-filter-apply {
    display: flex;
  }

  .filter-grid,
  .more-filters fieldset {
    grid-template-columns: 1fr;
  }

  .filter-grid {
    gap: 18px;
  }

  .more-filters fieldset legend {
    grid-column: 1;
  }

  .filter-actions {
    position: sticky;
    bottom: 0;
    padding-top: 12px;
    background: var(--surface);
  }

  .filter-actions .button {
    flex: 1;
  }

  .object-card > summary {
    grid-template-columns: 1fr;
    gap: 9px;
    min-height: 44px;
    padding: 18px;
  }

  .object-kicker {
    display: flex;
    grid-row: auto;
    gap: 8px;
    justify-content: space-between;
  }

  .object-kicker span:last-child {
    margin-top: 0;
  }

  .object-title,
  .object-date,
  .tag-row,
  .display-status,
  .object-teaser,
  .summary-action {
    grid-column: 1;
    grid-row: auto;
  }

  .object-teaser {
    -webkit-line-clamp: 3;
  }

  .summary-action {
    width: 100%;
    min-height: 44px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    align-self: auto;
    justify-self: stretch;
    text-align: center;
  }

  .object-detail {
    display: block;
    padding: 0 18px 24px;
  }

  .image-open {
    padding: 8px;
  }

  .image-open img {
    max-height: 55vh;
  }

  .biography-case li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .route-list li {
    grid-template-columns: 52px 1fr;
  }

  .grade-legend {
    grid-template-columns: 1fr;
  }

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

  .panel-table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .panel-table-wrap tr {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .panel-table-wrap td {
    padding: 3px 0;
    border: 0;
  }

  .panel-table-wrap td:nth-child(1) {
    font-weight: 800;
  }

  .panel-table-wrap td:nth-child(2)::before {
    content: "Competence — ";
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .panel-table-wrap td:nth-child(3)::before {
    content: "Output — ";
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .packet-links > a {
    min-height: 54px;
  }

  .site-footer {
    display: grid;
    gap: 8px;
    padding: 26px 0 38px;
  }

  .sheet-dialog,
  .image-dialog {
    width: calc(100% - 24px);
    padding: 18px;
  }

  .gate-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .gate-dialog-actions .button {
    min-height: 48px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #1e1d19;
    --surface: #282620;
    --ink: #eee8dc;
    --muted: #bbb2a4;
    --line: #4c473e;
    --line-strong: #776e60;
    --man: #79b7a9;
    --man-soft: #233a35;
    --prado: #dc8d70;
    --prado-soft: #472d25;
    --greek: #77aabe;
    --roman: #b29b72;
    --focus: #8fc6ff;
    --shadow: 0 14px 40px rgb(0 0 0 / 0.25);
  }

  .timeline-bar {
    color: #fff;
  }
}

@media print {
  :root {
    --paper: #fff;
    --surface: #fff;
    --ink: #000;
    --muted: #333;
    --line: #aaa;
  }

  .site-header,
  .section-rail,
  .tablet-nav,
  .hero-actions,
  .image-gate-bar,
  .gate-noscript,
  .object-toolbar,
  .filters-dialog,
  .result-line,
  .summary-action,
  .image-open,
  .site-footer,
  dialog {
    display: none !important;
  }

  .page-shell {
    display: block;
    width: 100%;
  }

  .section-block {
    padding: 28px 0;
    break-before: page;
  }

  .hero {
    break-before: auto;
  }

  .object-card,
  .object-card[hidden] {
    display: block !important;
    margin-bottom: 12px;
    box-shadow: none;
    break-inside: avoid;
  }

  .object-detail {
    grid-template-columns: 1fr;
    padding: 0 22px 22px;
  }

  .evidence-block {
    padding-left: 0;
    border-left: 0;
  }

  .object-image img {
    max-height: 340px;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.72em;
    overflow-wrap: anywhere;
  }
}
