/* Shared mineral palette. Final primary-colour tokens and overrides are below. */
:root {
  color-scheme: light;
  --bg:#f4ecd8; --paper:#fffaf0; --ink:#243e36; --muted:#56685b;
  --line:#bcc4b1; --gold:#77603a; --green:#316453; --panel:#e4e9db; --active:#d2dfce;
  --jade:#b3cbb5; --bronze:#598574; --sand:#d4c89a;
}
body { --page-wash:#dce5d7; --page-accent:#3b6152; background:var(--bg); color:var(--ink); }
body[data-page=map] { --bg:#edf0e5; --page-wash:#d2dfcf; --page-accent:#3b6152; }
body[data-page=collections] { --bg:#f4ecd8; --page-wash:#e7dec0; --page-accent:#73603d; }
body[data-page=knowledge] { --bg:#edf1e8; --page-wash:#cfded5; --page-accent:#31675e; }
body[data-page=articles] { --bg:#f6efdf; --page-wash:#e7dec9; --page-accent:#796345; }
body[data-page=timeline] { --bg:#eff0e3; --page-wash:#dce2c6; --page-accent:#586341; }
body[data-page=exhibitions] { --bg:#eef1ea; --page-wash:#cdded9; --page-accent:#32645e; }
body[data-page=education] { --bg:#f4f0de; --page-wash:#e1e6cb; --page-accent:#55673e; }
body[data-page=coverage] { --bg:#f0efe7; --page-wash:#dce1d5; --page-accent:#4a6254; }
::selection { background:#d4c89a; color:#243e36; }
body :focus-visible { outline-color:#826324!important; }
a { color:var(--green); }
input::placeholder { color:#627063; opacity:1; }
.site-bar,body[data-page=home] .site-bar { background:#3b6152; border-color:#6b8970; color:#fff8e8; }
.site-bar .brand-name,.site-bar .hero-brand { color:#fff8e8; }
.site-bar .brand-name small { color:#e4e9db; }
.site-bar .brand-mark { border-color:#d4c89a; color:#f4ecd8; }
.site-bar .primary-nav a { color:#f4ecd8; }
.site-bar .primary-nav a:hover,.site-bar .primary-nav a[aria-current=page] { color:#fff; }
.site-bar .primary-nav a[aria-current]::after { background:#e2ce8e; height:2px; }
.site-bar .guide-open,body[data-page=home] .site-bar .guide-open { color:#fff8e8; border-color:#b8c7a6; background:transparent; }
.site-bar .guide-open:hover { background:#4d7462; }
.site-footer { color:var(--muted); border-color:var(--line); }
.site-footer .footer-home { color:var(--ink); }
.motion-toggle { color:#526344; border-color:var(--line); }
.eyebrow,.page-breadcrumb a,.module-count,.time { color:var(--page-accent); }
.page-breadcrumb { color:var(--muted); }
.archive-heading { background:var(--page-wash); padding:28px 32px 30px; margin-bottom:28px; border-left:3px solid var(--page-accent); }
.archive-heading h1,.archive-heading h2,.map-section .map-heading h1,.map-section .map-heading h2 { color:var(--ink); }
.archive-heading p,.map-heading p { color:var(--muted); }
.filters input,.filters select,.map-toolbar input,.map-toolbar select { background:#fffaf0; color:var(--ink); border-color:#9fab94; }
.filters button,.pager button,.map-pagination button,.map-reset { background:var(--page-accent); color:#fffaf0; border-color:var(--page-accent); }
.filters button:hover,.pager button:hover,.map-pagination button:hover,.map-reset:hover { background:#3b6152; color:#fffaf0; }
.resultline,.meta,.boundary,.source,.field label,.map-none { color:var(--muted); }
.tag { color:#705934; }
.textrow { border-color:var(--line); padding:26px 24px; background:#fffbf2; }
.textrow:nth-child(even) { background:var(--page-wash); }
.textrow:hover { background:#e3e9d7; border-color:#889d80; }
.textrow h3,.textrow h3 a,.textrow h2,.textrow strong { color:var(--ink); }
.textrow p,.textrow small,.textrow .description { color:var(--muted); }
.coveragepanel { background:#fffaf0; color:var(--ink); border-color:var(--line); }
.coveragepanel th,.relations th { background:#dce5d7; color:#243e36; }
details summary { color:#6c5630; }
.note { background:#e5e9d5; color:#344c3b; }
.card h3 { color:var(--ink); }
.photo,.photo::after { background:#dce5d7; }
.empty { color:#526353; }

/* Resting collection cards alternate jade, linen and celadon. */
.relic-card.card,.relic-card.map-object { background:#d4dfd0; color:#243e36; border-color:#a4b59b; }
.relic-card.card:nth-child(3n+2),.relic-card.map-object:nth-child(3n+2) { background:#e8dec1; }
.relic-card.card:nth-child(3n),.relic-card.map-object:nth-child(3n) { background:#c9dcd5; }
.relic-card.card:hover,.relic-card.map-object:hover { background:#dce5d7; border-color:#658a73; box-shadow:0 12px 28px #243e3612; }
.relic-card .photo,.relic-card .photo::after { background:transparent; }
.relic-card-title { color:#243e36; }
.relic-card-index,.relic-card-base,.relic-card .photo .empty { color:#4b6250; }
.relic-card-era { color:#5f4d2f; background:#fff9e5d9; border-color:#b6a777; }
.relic-card-arrow { color:#3b6152; border-color:#879a7e; }
.relic-card-panel .relic-card-frost { background:linear-gradient(180deg,#f4ecd800,#f7f2e4f2 24%,#f7f2e4 100%); }
.relic-card-kicker,.relic-card-date,.relic-card-number { color:#4c6251; }
.relic-card-value { color:#243e36; }
.relic-card-action { color:#705329; }

/* Home: a light jade introduction, paper catalogue, teal digital chapter. */
body[data-page=home] { --home-surface:#c5d7c7; --home-line:#a7b99f; --home-ink:#243e36; --home-secondary:#485f4f; --home-muted:#465a44; --home-bronze:#715c36; }
.home-reading .home-hero { background:#dce5d7; background-image:url('./archive-bronze-lines.svg'); background-position:right center; background-size:auto 100%; background-repeat:no-repeat; }
.home-specimen { background:#edf0e0; }
.home-hero .hero-actions .hero-explore { background:#3b6152; border-color:#3b6152; color:#fff8e8; }
.home-hero .hero-actions .hero-explore:hover { background:#4a7560; color:#fff8e8; }
.home-hero .hero-actions .hero-secondary { color:#315541; border-color:#819b7c; background:#f4ecd888; }
.home-index { background:#f4ecd8; }
.home-index .stats a { border-color:#b7bea6; }
.home-index .stats a:nth-child(2) b { color:#796341; }
.home-index .stats a:nth-child(3) b { color:#397168; }
.home-index .stats a:nth-child(4) b { color:#606e45; }
.excavation-shelf { color:#2c473a; }
.shelf-workspace { background:#e5e4cf; border-color:#a7b394; }
.shelf-heading p,.shelf-current-count,.shelf-note,.shelf-topline,.shelf-bottomline,.shelf-progress { color:#52624d; }
.shelf-eyebrow,.shelf-topline a,.shelf-note a,.shelf-current-subtitle { color:#705b37; }
.shelf-navigation button { color:#41644e; }
.shelf-filters button { color:#50634b; }
.shelf-filters button[aria-pressed=true] { color:#294f3c; border-color:#6c8057; }
.shelf-open { color:#fffaf0; background:#3b6152; border-color:#3b6152; }
.shelf-select { background:#f9f5e8; color:#344d3b; border-color:#8b9f7f; }
.shelf-book-face { color:#fff9e8; border-color:#adab7d; }
.shelf-spine small,.shelf-cover-image span { color:#fff9e8; }
.shelf-dialog,.shelf-dialog-bar { background:#f4ecd8; }
.shelf-place-figure { background:#dce5d7; }
.shelf-record { background:#f6f2e4; }
.shelf-record-thumb { background:#d6dfca; }
.shelf-record:nth-child(even) .shelf-record-thumb { background:#e5dbbd; }
.memory-journey { background:#315d54; color:#fff4df; }
.memory-ground { background:#315d54; border:1px solid #638375; }
.memory-copy h2 em,.memory-top a,.memory-top [data-memory-current] { color:#e5d59f; }
.memory-copy p,.memory-widget span { color:#edf0dc; }
.memory-note { background:#3b6152; }
.memory-note>span,.memory-widget small { color:#fff4df; }
.memory-note [data-memory-current],.memory-note a,.memory-links a { color:#fff4df; }
.memory-links a { background:#4d7462; }
.memory-widget { background:#456a57; color:#fff8e8; border:1px solid #91a58b; }
.memory-widget:nth-child(3n+2) { background:#5a6145; }
.memory-widget:nth-child(3n) { background:#456d69f5; }
.memory-bottom button,.memory-status { color:#e4e9d5; }
.memory-bottom button[aria-current] { background:#d4c89a; color:#293e32; }
.memory-journey a:hover { color:#fff; }

/* Map reading tools; the map's own paper/night palette stays independent. */
.map-view-head,.map-place-heading,.map-summary h4,.map-list-heading h3,.map-summary h3 { color:#355641; }
.map-caption,.map-footnote,.fieldmap-view-note { color:#52634d; }
.map-switch { border-color:#9ead92; }
.map-switch button { color:#4b624d; }
.map-switch button[aria-pressed=true] { background:#3b6152; color:#fff8e8; }
.map-place-list button { color:#35513f; border-color:#a7b69c; background:#e3e9d7; }
.map-place-list button span { color:#6c5734; }
.map-place-list button[aria-pressed=true] { background:#3b6152; color:#fff8e8; border-color:#3b6152; }
.map-place-list button[aria-pressed=true] span { color:#f2e4bd; }
.map-metrics b { color:#705b37; }
.map-time-grid>div { background:#dce5d7; border-color:#96a88b; }
.map-time-grid>div:nth-child(2) { background:#e8dfc4; }
.map-bar { background:#f7f4e9; color:#304a39; }
.map-bar .bar-fill { background:#91b19455; }
.map-bar>span:last-child { color:#4c6446; }
.map-bar.selected { border-color:#3b6152; }
.map-campaign,.map-campaign strong { color:#465f4b; }
.map-zoom button { background:#f5f1e4; color:#31513e; border-color:#9cac91; }

/* Dialogs, navigation and the relationship tool are reading surfaces. */
dialog,.home-guide { background:#fff9eb; color:#243e36; border-color:#a0af92; }
dialog::backdrop,.home-guide::backdrop { background:#243e3680; }
.detailheader { background:#dce5d7; }
.detailheader button,.close,.guide-close { color:#36513d; }
.detailbody .gallery { background:#d4dfce; }
.detailbody h3 { color:#6c5631; }
.guide-intro h2,.guide-links a,.guide-links a[aria-current=page] strong { color:#243e36; }
.guide-intro p,.guide-links small,.guide-bottom { color:#52634d; }
.guide-links a { border-color:#b5bfa6; }
.guide-links a>span,.guide-links b,.guide-bottom a { color:#755e33; }
.guide-links a:hover strong { color:#367158; }
.rel-dock { color:#243e36; }
.rel-launch,.rel-dock #rel-panel { background:#f4ecd8; border-color:#8f9f83; box-shadow:0 10px 28px #243e3618; }
.rel-launch span,.rel-head small,.rel-label,.rel-pages,.rel-dock footer { color:#615638; }
.rel-label input,.rel-label select { background:#fffaf0; color:#243e36; border-color:#9cad91; }
.rel-tabs button,.rel-proof { background:#dce5d7; color:#243e36; }
.rel-tabs button[aria-pressed=true] { background:#3b6152; color:#fff8e8; }
.rel-graph { background:#d2dfce; }
.rel-node { background:#f6f0dc; color:#243e36; border-color:#7f9778; }
.rel-node.center,.rel-node[aria-pressed=true] { background:#d4c89a; color:#243e36; }
.rel-proof a,.rel-proof button,.rel-method { color:#405e49; }
@media(max-width:700px) {
  .archive-heading { padding:24px 20px; }
  .home-reading .home-hero { background-image:none; }
}

/* 2026-11-12 revision: #47564C is the dominant surface, with the user's six greens. */
:root {
  color-scheme:dark;
  --brand:#47564c; --forest:#36483f; --bronze:#598574; --pine:#3a6152; --leaf:#648f66; --stone:#7d837a;
  --bg:#47564c; --paper:#36483f; --ink:#f4ecd8; --muted:#dce5d7;
  --line:#7d837a; --gold:#f4ecd8; --green:#f4ecd8; --panel:#3a6152; --active:#598574;
}
body[data-page] { --bg:#47564c; --page-wash:#3a6152; --page-accent:#f4ecd8; background:#47564c; color:#f4ecd8; }
body[data-page=collections],body[data-page=timeline] { --page-wash:#36483f; }
body[data-page=articles],body[data-page=coverage] { --page-wash:#47564c; }
::selection { background:#e8ebe3; color:#07130c; }
body :focus-visible { outline-color:#e8ebe3!important; }
.site-bar,body[data-page=home] .site-bar { background:#36483f; border-color:#7d837a; }
.site-bar .hero-brand .brand-mark { background:#36483f; border-color:#7d837a; }
.site-bar .brand-name,.site-bar .hero-brand,.site-bar .primary-nav a,.site-bar .guide-open,body[data-page=home] .site-bar .guide-open { color:#f4ecd8; border-color:#7d837a; }
.site-bar .primary-nav a[aria-current]::after { background:#dce5d7; }
.site-bar .guide-open:hover { background:#3a6152; }
.site-footer,.site-footer a,.site-footer .footer-home,.motion-toggle,.eyebrow,.page-breadcrumb,.page-breadcrumb a,.module-count,.time { color:#f4ecd8; }
.archive-heading { border-color:#598574; }
.archive-heading h1,.archive-heading h2,.map-section .map-heading h1,.map-section .map-heading h2 { color:#f4ecd8; }
.archive-heading p,.map-heading p { color:#dce5d7; }
.filters input,.filters select,.map-toolbar input,.map-toolbar select { color-scheme:light; background:#e8ebe3; color:#07130c; border-color:#7d837a; }
.filters button,.pager button,.map-pagination button,.map-reset { background:#36483f; color:#f4ecd8; border-color:#7d837a; }
.filters button:hover,.pager button:hover,.map-pagination button:hover,.map-reset:hover { background:#3a6152; }
.resultline,.boundary,.map-none { color:#dce5d7; }
.textrow,.coveragepanel,dialog,.home-guide { --ink:#07130c; --muted:#36483f; --green:#3a6152; --line:#a9b6a7; --gold:#36483f; color-scheme:light; color:#07130c; }
.textrow,.coveragepanel { background:#e8ebe3; }
.textrow:nth-child(even) { background:#d3ddcf; }
.textrow:hover { background:#dce5d7; }
.textrow h3,.textrow h3 a,.textrow h2,.textrow strong,.textrow .time { color:#07130c; }
.textrow p,.textrow small,.textrow .description,.textrow .tag { color:#36483f; }
.coveragepanel th,.relations th,.note { background:#d3ddcf; color:#07130c; }
.relic-card.card,.relic-card.map-object { background:#598574; border-color:#7d837a; color:#07130c; }
.relic-card.card:nth-child(3n+2),.relic-card.map-object:nth-child(3n+2) { background:#7d837a; }
.relic-card.card:nth-child(3n),.relic-card.map-object:nth-child(3n) { background:#648f66; }
.relic-card.card:hover,.relic-card.map-object:hover { background:#648f66; border-color:#dce5d7; }
.relic-card-title,.relic-card-index,.relic-card-base,.relic-card .photo .empty,.relic-card-arrow { color:#07130c; }
.relic-card-era { color:#07130c; background:#e8ebe3; border-color:#47564c; }
.relic-card-panel .relic-card-frost { background:linear-gradient(180deg,#e8ebe300,#e8ebe3f2 24%,#e8ebe3 100%); }
.relic-card-kicker,.relic-card-date,.relic-card-number,.relic-card-value { color:#07130c; }
.relic-card-action { color:#36483f; }
body[data-page=home] { --home-surface:#3a6152; --home-line:#7d837a; --home-ink:#f4ecd8; --home-secondary:#dce5d7; --home-muted:#dce5d7; --home-bronze:#f4ecd8; }
.home-reading .home-hero { background-color:#47564c; }
.home-specimen { background:#36483f; }
.home-hero .hero-actions .hero-explore { background:#e8ebe3; border-color:#e8ebe3; color:#36483f; }
.home-hero .hero-actions .hero-explore:hover { background:#dce5d7; color:#36483f; }
.home-hero .hero-actions .hero-secondary { color:#f4ecd8; border-color:#7d837a; background:#36483f; }
.home-index { background:#36483f; }
.home-index .stats a,.home-index .stats b,.home-index .stats a:nth-child(n) b,.home-index h2 { color:#f4ecd8; border-color:#7d837a; }
.excavation-shelf { color:#f4ecd8; }
.shelf-workspace { background:#598574; border-color:#7d837a; }
.shelf-heading p,.shelf-note,.shelf-eyebrow,.shelf-note a { color:#dce5d7; }
.shelf-workspace .shelf-topline,.shelf-workspace .shelf-bottomline,.shelf-workspace .shelf-progress,.shelf-workspace .shelf-current-count,.shelf-workspace .shelf-current-subtitle,.shelf-workspace .shelf-topline a,.shelf-workspace .shelf-caption,.shelf-navigation button { color:#07130c; }
.shelf-filters button { color:#07130c; border-color:#36483f; }
.shelf-filters button[aria-pressed=true] { color:#f4ecd8; }
.shelf-indicator { background:#36483f; }
.shelf-open { color:#f4ecd8; background:#36483f; border-color:#36483f; }
.shelf-select { color-scheme:light; background:#e8ebe3; color:#07130c; border-color:#47564c; }
.shelf-book-face,.shelf-spine small,.shelf-cover-image span { color:#f4ecd8; border-color:#7d837a; }
.shelf-dialog,.shelf-dialog-bar { background:#e8ebe3; }
.shelf-place-figure,.shelf-record-thumb { background:#c9d4c6; }
.shelf-record { background:#e8ebe3; }
.shelf-record:nth-child(even) .shelf-record-thumb { background:#d6d9d0; }
.memory-journey { background:#36483f; color:#f4ecd8; }
.memory-ground { background:#36483f; border-color:#598574; }
.memory-copy h2 em,.memory-top a,.memory-top [data-memory-current],.memory-note>span,.memory-widget small { color:#f4ecd8; }
.memory-copy p,.memory-widget span { color:#dce5d7; }
.memory-note,.memory-widget { background:#47564c; }
.memory-widget { border-color:#7d837a; color:#f4ecd8; }
.memory-widget:nth-child(3n+2),.memory-links a { background:#3a6152; }
.memory-widget:nth-child(3n) { background:#36483f; }
.memory-note [data-memory-current],.memory-note a,.memory-links a { color:#f4ecd8; }
.memory-bottom button,.memory-status { color:#dce5d7; }
.memory-bottom button[aria-current] { background:#648f66; color:#07130c; }
.map-view-head,.map-place-heading,.map-summary h4,.map-list-heading h3,.map-summary h3,.map-metrics b { color:#f4ecd8; }
.map-caption,.map-footnote,.fieldmap-view-note,.map-campaign,.map-campaign strong { color:#dce5d7; }
.map-switch { border-color:#7d837a; }
.map-switch button { color:#dce5d7; }
.map-switch button[aria-pressed=true],.map-place-list button,.map-zoom button { background:#36483f; color:#f4ecd8; border-color:#7d837a; }
.map-place-list button span { color:#dce5d7; }
.map-place-list button[aria-pressed=true] { background:#648f66; color:#07130c; border-color:#648f66; }
.map-place-list button[aria-pressed=true] span { color:#07130c; }
.map-time-grid>div { background:#648f66; border-color:#7d837a; }
.map-time-grid>div:nth-child(2) { background:#7d837a; }
.map-time-grid>div h4 { color:#07130c; }
.map-bar { background:#e8ebe3; color:#07130c; }
.map-bar .bar-fill { background:#59857455; }
.map-bar>span:last-child { color:#07130c; }
.map-bar.selected { border-color:#36483f; }
dialog,.home-guide { background:#e8ebe3; border-color:#7d837a; }
dialog::backdrop,.home-guide::backdrop { background:#36483fb0; }
dialog :focus-visible,.rel-dock :focus-visible { outline-color:#36483f!important; }
.detailheader,.detailbody .gallery { background:#c9d4c6; }
.detailheader button,.close,.guide-close,.detailbody h3 { color:#36483f; }
.guide-intro h2,.guide-links a,.guide-links a[aria-current=page] strong { color:#07130c; }
.guide-intro p,.guide-links small,.guide-bottom,.guide-links a>span,.guide-links b,.guide-bottom a { color:#36483f; }
.guide-links a:hover strong { color:#3a6152; }
.rel-dock { color:#07130c; }
.rel-launch,.rel-dock #rel-panel { background:#e8ebe3; border-color:#7d837a; }
.rel-launch span,.rel-head small,.rel-label,.rel-pages,.rel-dock footer,.rel-proof a,.rel-proof button,.rel-method { color:#36483f; }
.rel-label input,.rel-label select { color-scheme:light; background:#e8ebe3; color:#07130c; border-color:#7d837a; }
.rel-tabs button,.rel-proof,.rel-graph { background:#c9d4c6; color:#07130c; }
.rel-tabs button[aria-pressed=true] { background:#3a6152; color:#f4ecd8; }
.rel-node { background:#e8ebe3; color:#07130c; border-color:#7d837a; }
.rel-node.center,.rel-node[aria-pressed=true] { background:#648f66; color:#07130c; }

/* The excavation chapter paints the full page width; its content keeps its gutters. */
.home-reading .excavation-shelf {
  max-width:none;
  width:100%;
  background:#47564c;
}
.excavation-shelf .shelf-workspace { background:#47564c; }
.shelf-workspace .shelf-topline,.shelf-workspace .shelf-bottomline,
.shelf-workspace .shelf-progress,.shelf-workspace .shelf-current-count,
.shelf-workspace .shelf-current-subtitle,.shelf-workspace .shelf-topline a,
.shelf-workspace .shelf-caption,.shelf-navigation button { color:#f4ecd8; }
.shelf-filters button { color:#f4ecd8; border-color:#7d837a; }
.shelf-filters button[aria-pressed=true] { color:#07130c; }
.shelf-indicator { background:#e8ebe3; }

/* Selected digital-memory background: outer chapter, sticky viewport and stage. */
.memory-journey,
.memory-journey .memory-pin,
.memory-journey .memory-ground { background:#36483f; }

/* Each place has its own complete illustrated cover and matching spine. */
.shelf-book .shelf-cover { padding:0; background-image:none; }
.shelf-cover img.shelf-artwork { position:absolute; inset:0; width:100%; height:100%; display:block; object-fit:contain; mix-blend-mode:normal; filter:none; margin:0; }
.shelf-book .shelf-book-face,.shelf-book .shelf-spine small,.shelf-book .shelf-spine em,.shelf-book .shelf-spine b { color:var(--book-ink,#f7ecd2); border-color:color-mix(in srgb,var(--book-ink,#f7ecd2) 30%,transparent); }
.shelf-spine b { border-top-color:color-mix(in srgb,var(--book-ink,#f7ecd2) 35%,transparent); }
