:root {
  --film: #07090a;
  --charcoal: #171a1b;
  --graphite: #353c3d;
  --lead: #b5bcb7;
  --paper: #f0ede2;
  --steel: #a3bdc4;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Heiti SC", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "SimSun", serif;
  --model: "Avenir Next Condensed", "Arial Narrow", "Franklin Gothic Medium", Impact, "Helvetica Neue", sans-serif;
  --edge: clamp(20px, 4.6vw, 80px);
  --breadth: 1536px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--charcoal); }
body { margin: 0; background: var(--charcoal); color: var(--paper); font: 16px/1.62 var(--sans); }
button, input, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button { background: transparent; border: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible,
[tabindex="0"]:focus-visible { outline: 3px solid var(--steel); outline-offset: 3px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.24; overflow-wrap: anywhere; }
img { display: block; max-width: 100%; }
main { min-height: 58vh; }
main:focus { outline: none; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 9; padding: 10px 18px; background: var(--paper); color: var(--film); transform: translateY(-160%); }
.skip:focus { transform: none; }
.mast { background: var(--film); }
.mast-inner, .foot, .wrap, .gallery { width: min(100%, var(--breadth)); margin-inline: auto; padding-inline: var(--edge); }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 67px; }
.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; font-size: 21px; font-weight: 750; letter-spacing: .05em; }
.imprint { position: relative; display: block; width: 24px; height: 24px; }
.imprint i { position: absolute; width: 16px; height: 16px; border: 2px solid var(--paper); }
.imprint i:first-child { left: 0; top: 0; }
.imprint i:last-child { right: 0; bottom: 0; background: var(--film); border-color: var(--steel); }
.mast nav, .mast-tools, .mast-tools a, .mast-tools button { display: flex; align-items: center; }
.mast nav { align-self: stretch; gap: clamp(17px, 2.6vw, 46px); }
.mast nav a { display: grid; align-content: center; align-self: stretch; min-height: 44px; color: var(--lead); font-size: 15px; white-space: nowrap; }
.mast nav a[aria-current], .mast nav a:hover { color: var(--paper); box-shadow: inset 0 -3px var(--steel); }
.mast-tools { gap: 16px; }
.mast-tools a, .mast-tools button { gap: 7px; min-height: 44px; color: var(--lead); font-size: 14px; }
.mast-tools a:hover, .mast-tools button:hover { color: var(--paper); }
.bookmark-icon { display: inline-block; width: 12px; height: 16px; background: currentColor; clip-path: polygon(0 0,100% 0,100% 100%,50% 73%,0 100%,0 0,16% 13%,16% 78%,50% 57%,84% 78%,84% 13%,16% 13%); }
.num { color: var(--paper); font-variant-numeric: tabular-nums; }
.jump-search { justify-content: center; min-width: 44px; }
.search-icon { position: relative; display: inline-block; width: 15px; height: 15px; flex: none; border: 1.5px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 1.5px; right: -5px; bottom: -2px; background: currentColor; transform: rotate(45deg); }
kbd { margin-left: 2px; color: var(--lead); font: 14px var(--sans); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-block: 30px; color: var(--lead); font-size: 14px; }
.foot-brand { color: var(--paper); font-weight: 700; }
.foot div { display: flex; gap: 25px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* On the viewing table the model, the original photograph and the notes occupy distinct surfaces. */
.gallery { padding-top: clamp(14px, 2vw, 32px); }
.specimen-heading { display: flex; align-items: baseline; gap: clamp(18px, 3vw, 54px); margin-bottom: clamp(15px, 1.5vw, 24px); }
.specimen-heading h1 { font: 850 clamp(72px, 8.4vw, 128px)/.95 var(--model); letter-spacing: -.07em; }
.specimen-heading h2 { font-size: clamp(21px, 2vw, 32px); font-weight: 650; letter-spacing: -.025em; }
.specimen-heading p { margin-top: 5px; color: var(--lead); font-size: 14px; }
.specimen-heading p span { padding: 0 .6em; color: var(--steel); }
.observation-table { display: grid; grid-template-columns: minmax(0, 1fr) clamp(248px, 23%, 347px); gap: clamp(12px, 1.4vw, 22px); }
.photo-mount { min-width: 0; display: flex; flex-direction: column; background: var(--film); }
.exhibit-photo { display: grid; place-items: center; width: 100%; min-width: 0; flex: 1; padding: 12px; cursor: zoom-in; }
.exhibit-photo img { display: block; width: 100%; height: clamp(305px, 41vh, 535px); object-fit: contain; }
.exhibit-M1897 .exhibit-photo img { max-width: 550px; }
.exhibit-Exocet .exhibit-photo img { max-width: 360px; }
.exhibit-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 19px 8px; font-size: 13px; color: var(--lead); }
.exhibit-caption > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; min-width: 0; }
.photo-credit { display: inline; color: var(--lead); font-size: 12px; }
.photo-credit a, .source-list a, .credit-line strong a, .textlink { text-decoration: underline; text-decoration-color: var(--graphite); text-underline-offset: .28em; }
.photo-credit a:hover, .source-list a:hover, .credit-line strong a:hover, .textlink:hover { color: var(--paper); text-decoration-color: var(--steel); }
.exhibit-caption button { white-space: nowrap; min-height: 44px; padding-inline: 5px; font-size: 14px; color: var(--paper); }
.fieldnote { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(23px, 2.2vw, 38px); background: var(--lead); color: var(--film); }
.fieldnote h2 { font-size: 15px; font-weight: 700; }
.fieldnote > p { margin-top: clamp(18px, 1.8vw, 31px); font: 600 clamp(20px, 1.55vw, 27px)/1.68 var(--serif); text-wrap: pretty; }
.note-source { display: flex; align-items: baseline; gap: 0 6px; flex-wrap: wrap; margin-top: 15px; font-size: 13px; }
.note-source a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .22em; }
.note-actions { align-self: stretch; margin-top: auto; padding-top: 25px; }
.note-actions a { display: flex; align-items: center; justify-content: space-between; min-height: 45px; font-size: 15px; font-weight: 650; border-top: 1px solid var(--graphite); }
.fieldnote a:hover { text-decoration: underline; text-underline-offset: .25em; }
.fieldnote a:focus-visible { outline-color: var(--film); }
.contact-sheet { margin-top: 24px; }
.contact-sheet header, .exhibit-arrows { display: flex; align-items: center; }
.contact-sheet header { justify-content: space-between; gap: 16px; padding-bottom: 7px; }
.contact-sheet h2 { font-size: 19px; }
.exhibit-arrows { gap: 12px; }
.exhibit-arrows button { min-height: 44px; font-size: 14px; color: var(--lead); }
.exhibit-arrows button:hover { color: var(--paper); }
.exhibit-index { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: clamp(8px, 1vw, 18px); }
.contact-frame { min-width: 0; }
.contact-frame button { display: grid; width: 100%; text-align: left; padding: 0; border-bottom: 2px solid var(--graphite); }
.contact-frame button[aria-pressed="true"] { border-color: var(--steel); }
.contact-frame img { width: 100%; height: clamp(67px, 7vw, 112px); object-fit: contain; background: var(--film); }
.contact-frame strong { display: block; align-self: end; padding: 7px 0 4px; font: 730 22px/1.1 var(--model); }
.contact-frame a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--lead); }
.contact-frame a:hover { color: var(--paper); text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .moving .exhibit-photo img { animation: reveal .17s ease-out; }
  @keyframes reveal { from { opacity: .78; } to { opacity: 1; } }
}

/* Catalogue: image plates and a compact register share one search. */
.page { padding-top: clamp(27px, 4vw, 70px); padding-bottom: 30px; }
.page h1 { font-size: clamp(39px, 5vw, 75px); letter-spacing: -.052em; font-weight: 760; }
.page h2 { font-size: clamp(23px, 2.6vw, 37px); font-weight: 690; letter-spacing: -.035em; }
.page h3 { font-size: 19px; }
.catalogue-heading, .catalog-title, .resultbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.catalogue-heading { justify-content: flex-start; align-items: baseline; gap: 10px 25px; }
.catalogue-heading span, .intro, .meta, .muted { color: var(--lead); }
.cat-bar { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0 17px; margin: 25px 0 19px; border-bottom: 1px solid var(--graphite); }
.cat-bar button { min-height: 48px; padding: 2px 0; color: var(--lead); font-size: 15px; }
.cat-bar button[aria-pressed="true"] { color: var(--paper); box-shadow: inset 0 -3px var(--steel); }
.cat-bar small, .relation-switch small { margin-left: 4px; font-size: .8em; font-variant-numeric: tabular-nums; }
.tools { display: flex; align-items: stretch; flex-wrap: wrap; gap: 8px; }
.searchbox, .selectbox select, .toggle, .pair-select { background: var(--film); color: var(--paper); border: 1px solid var(--graphite); }
.searchbox { display: flex; align-items: center; gap: 15px; min-height: 45px; padding: 0 14px; flex: 1 1 240px; }
.searchbox input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 8px 0; outline-offset: 1px; font-size: 16px; }
.searchbox input::placeholder { color: var(--lead); }
.selectbox select, .toggle { min-height: 45px; padding: 5px 10px; font-size: 14px; }
.toggle[aria-pressed="true"] { color: var(--film); background: var(--steel); }
.catalog-title { margin-top: 30px; }
.view-switch, .relation-switch, .observation-switch { display: flex; align-items: stretch; gap: 4px; flex-wrap: wrap; }
.view-switch button, .relation-switch button, .observation-switch button { min-height: 44px; padding: 7px 14px; color: var(--lead); font-size: 15px; }
.view-switch [aria-pressed="true"], .relation-switch [aria-pressed="true"], .observation-switch [aria-pressed="true"] { color: var(--film); background: var(--steel); }
.resultbar { min-height: 44px; color: var(--lead); font-size: 14px; }
.resultbar button { min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: .22em; }
.catalog-group { margin: 14px 0 32px; }
.catalog-group > h3 { margin-bottom: 12px; color: var(--lead); font-size: 16px; font-weight: 650; }
.plate-index { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px 16px; }
.equipment-card { display: block; min-width: 0; }
.equipment-card:hover strong { color: var(--steel); }
.card-shot { position: relative; width: 100%; aspect-ratio: 4 / 3; min-width: 0; min-height: 0; overflow: hidden; background: #222829; isolation: isolate; }
.card-shot img, .card-shot .photo-preview { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: none; object-fit: contain; }
.card-text { min-width: 0; padding-top: 8px; }
.card-text small, .card-meta { display: block; color: var(--lead); font-size: 13px; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-text strong { display: block; overflow-wrap: anywhere; font-size: 18px; line-height: 1.4; }
.text-register { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: clamp(18px, 3vw, 46px); }
.text-register .card-text, .catalog-list .card-text { display: grid; align-items: center; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr) auto; gap: 6px 16px; min-height: 62px; padding: 10px 0; }
.text-register .equipment-card, .catalog-list .equipment-card { border-top: 1px solid var(--graphite); }
.text-register strong, .catalog-list strong { grid-column: 1; grid-row: 1; }
.text-register small, .catalog-list small { grid-column: 2; }
.catalog-list .equipment-card { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.catalog-list .card-shot { width: 72px; flex: none; }
.catalog-list .card-shot img, .catalog-list .card-shot .photo-preview { height: 100%; }
.catalog-list .card-text { flex: 1; }
.catalog-list .text-only { padding-left: 88px; }
.more { display: flex; justify-content: center; padding-top: 12px; }
.empty { margin: 30px 0; padding: 24px 0; color: var(--lead); }
.empty p { margin: 10px 0; }
.button, .save-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--lead); font-size: 15px; }
.primary, .save-btn[aria-pressed="true"] { background: var(--steel); border-color: var(--steel); color: var(--film); }
.button:hover, .save-btn:hover { border-color: var(--steel); }

/* Family files and the two-photo study use the same mounts as the viewing table. */
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 11px; color: var(--lead); font-size: 14px; margin-bottom: 18px; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: .23em; }
.detail-title { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.meta { margin-top: 10px; font-size: 15px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(260px,.78fr); gap: clamp(22px, 4vw, 64px); align-items: start; margin-top: 24px; }
.dossier-nav { display: flex; gap: 10px 24px; flex-wrap: wrap; margin-top: 24px; border-block: 1px solid var(--graphite); }
.dossier-nav button { min-height: 48px; color: var(--lead); font-size: 15px; }
.dossier-nav button:hover { color: var(--paper); }
#item-album, #recognition, #specs { min-width: 0; scroll-margin: 20px; }
.detail-page { padding-top: 20px; }
.detail-page .detail-title h1 { font-size: clamp(32px,3.3vw,56px); }
.detail-page .crumb { margin-bottom: 6px; font-size: 13px; }
.detail-page .crumb a { min-height: 28px; }
.detail-page .meta { margin-top: 5px; font-size: 14px; }
.detail-page .dossier-nav { margin-top: 12px; }
.detail-page .dossier-nav button { min-height: 44px; }
.detail-page .detail-grid { margin-top: 14px; }
.album-main { min-width: 0; }
.album-stage { position: relative; width: 100%; height: clamp(240px,42vh,420px); min-width: 0; min-height: 0; overflow: hidden; background: #222829; touch-action: pan-y; }
.album-stage .album-enlarge { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; min-width: 0; min-height: 0; cursor: zoom-in; }
.album-stage .album-enlarge img, .album-stage .photo-preview { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; min-width: 0; min-height: 0; object-fit: contain; }
.enlarge-hint { position: absolute; top: 12px; right: 12px; padding: 5px 10px; background: rgb(7 9 10 / 78%); color: var(--paper); font-size: 13px; pointer-events: none; }
.album-stage .album-turn, .zoom-stage .album-turn { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 56px; padding: 0; transform: translateY(-50%); border: 1px solid rgb(240 237 226 / 30%); background: rgb(7 9 10 / 82%); color: var(--paper); cursor: pointer; }
.album-stage .album-turn span, .zoom-stage .album-turn span { display: block; font: 300 38px/1 var(--sans); padding-bottom: 5px; }
.album-stage .album-turn:hover, .zoom-stage .album-turn:hover { color: var(--film); background: var(--paper); }
.album-prev { left: 10px; }
.album-next { right: 10px; }
.album-position { position: absolute; z-index: 1; bottom: 12px; left: 50%; transform: translateX(-50%); min-width: 52px; padding: 3px 10px; text-align: center; background: rgb(7 9 10 / 82%); color: var(--paper); font-size: 13px; font-variant-numeric: tabular-nums; }
.photo-strip { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.photo-strip button { display: block; flex: 0 0 102px; width: 102px; min-width: 0; padding: 1px; scroll-snap-align: start; border: 2px solid transparent; color: var(--lead); text-align: left; }
.photo-strip button[aria-pressed=true] { border-color: var(--steel); color: var(--paper); background: rgb(163 189 196 / 8%); }
.thumb-frame { position: relative; display: block; width: 96px; height: 72px; min-height: 0; overflow: hidden; background: #222829; }
.thumb-frame img, .thumb-frame .photo-preview { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.thumb-label { display: block; margin-top: 5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; line-height: 1.5; }
.album-caption { padding-top: 16px; }
.photo-context { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 5px; font-size: 15px; }
.photo-context strong { font-weight: 500; }
.photo-context span { flex-shrink: 0; color: var(--lead); font-size: 13px; }
.album-description { color: var(--lead); font-size: 14px; line-height: 1.65; }
.album-status { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-top: 6px; color: var(--lead); font-size: 13px; }
.album-status > a { flex-shrink: 0; text-decoration: underline; text-underline-offset: 3px; }
.recognition { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,64px); margin-top: 48px; }
.recognition h2 { font-size: 28px; }
.recognition ul { padding-left: 1.2em; margin-bottom: 0; }
.recognition li { margin-bottom: 12px; line-height: 1.8; max-width: 64ch; }
.section-note { color: var(--lead); margin-top: 10px; }
.specs table { width: 100%; border-collapse: collapse; margin-top: 18px; text-align: left; }
.specs th, .specs td { padding: 15px 14px; border-bottom: 1px solid var(--graphite); vertical-align: top; overflow-wrap: anywhere; }
.specs thead { color: var(--lead); font-size: 14px; }
.specs tbody th { width: 18%; font-weight: 500; }
.specs tbody td:nth-child(2) { width: 42%; }
.specs td a { display: inline-block; color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.solo { max-width: 860px; margin-top: 25px; }
.plate { background: var(--film); min-width: 0; }
.plate button { display: block; width: 100%; padding: 14px; cursor: zoom-in; }
.plate img { width: 100%; height: clamp(245px, 28vw, 440px); object-fit: contain; }
.plate figcaption { padding: 0 18px 13px; color: var(--lead); font-size: 13px; overflow-wrap: anywhere; }
.plate figcaption .photo-credit { display: block; }
.publication { display: grid; gap: 18px; max-width: 74ch; }
.publication h2 { color: var(--lead); font-size: 15px; letter-spacing: 0; }
.publication p { margin-top: 4px; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.relations, .minor-section, .pair-reading { margin-top: clamp(30px, 4.5vw, 70px); }
.relations { scroll-margin: 25px; }
.relations:focus { outline: none; }
.relation-switch, .observation-switch { margin-top: 15px; }
.branch-panel { padding: clamp(17px, 2.5vw, 35px); margin-top: 12px; background: var(--film); }
.branch-panel h3 { margin-bottom: 18px; }
.branch-panel dl > div { display: grid; grid-template-columns: minmax(85px,.35fr) minmax(0,1.65fr); gap: 12px; padding-block: 11px; border-top: 1px solid var(--graphite); }
.branch-panel dt { font-weight: 700; }
.branch-panel dd { color: var(--lead); max-width: 72ch; }
.generation { display: grid; grid-template-columns: minmax(135px,.45fr) minmax(0,1.55fr); gap: 0 clamp(18px, 2.5vw, 38px); }
.generation h3 { grid-column: 1/-1; }
.generation-line { border-left: 2px solid var(--graphite); }
.generation-line button { display: flex; width: 100%; min-height: 44px; justify-content: space-between; align-items: center; gap: 7px; padding: 4px 9px; color: var(--lead); font-size: 15px; }
.generation-line button[aria-pressed="true"] { color: var(--film); background: var(--steel); }
.generation-line small { font-size: 12px; }
.generation-note { align-self: start; max-width: 62ch; padding: 20px clamp(16px, 2.7vw, 44px); background: var(--lead); color: var(--film); }
.generation-note strong { font: 800 clamp(36px, 4vw, 65px)/1.1 var(--model); }
.generation-note p { margin-top: 10px; font: 600 19px/1.72 var(--serif); }
.inline-plates, .pair, .side-notes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(12px, 2.4vw, 38px); }
.inline-plates { margin-top: 16px; }
.plate.small img { height: clamp(205px, 23vw, 345px); }
.reading summary { cursor: pointer; min-height: 44px; font-weight: 650; font-size: 20px; }
.reading small { color: var(--lead); font-size: 14px; }
.source-list { margin: 7px 0; padding-left: 22px; }
.source-list a { display: inline-block; padding-block: 8px; }
.intro { margin: 10px 0 24px; max-width: 70ch; font-size: 17px; }
.comparison { min-width: 0; }
.compare-kicker { display: block; margin-bottom: 5px; color: var(--lead); font-size: 14px; }
.pair-select { width: 100%; min-height: 48px; padding: 6px 10px; margin-bottom: 12px; }
.textlink { display: inline-flex; align-items: center; align-self: start; min-height: 44px; font-size: 15px; }
.no-plate { display: grid; place-items: center; min-height: clamp(205px, 23vw, 345px); background: var(--film); color: var(--lead); }
.pair-reading p { margin-top: 12px; max-width: 72ch; font-size: 18px; }
.side-notes { margin-top: 17px; }
.download-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr 70px; align-items: center; gap: 12px; padding: 19px 1px; border-top: 1px solid var(--graphite); text-align: left; }
.download-row strong { font-size: 20px; }
.download-row span { color: var(--lead); font-size: 15px; }
.download-row small { color: var(--steel); text-align: right; }
.credit-line { display: grid; grid-template-columns: 106px minmax(0,1.5fr) minmax(0,1fr); align-items: center; gap: 17px; padding: 12px 0; border-top: 1px solid var(--graphite); overflow-wrap: anywhere; }
.credit-line strong { font-size: 15px; }
#zoom { width: min(95vw,1380px); max-width: 98vw; max-height: 95dvh; background: var(--film); color: var(--paper); border: 1px solid var(--graphite); padding: 10px 16px; }
#zoom::backdrop { background: var(--film); opacity: .92; }
.zoom-top, .zoom-top div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; }
.zoom-top { padding: 4px 0 8px; }
.zoom-top strong { flex: 1 1 220px; font-size: 15px; }
.zoom-top button { min-height: 44px; padding-inline: 5px; font-size: 15px; }
.zoom-stage { position: relative; min-width: 0; }
#zoom-window { touch-action: pan-y; height: min(72dvh,900px); overflow: auto; background: var(--film); }
#zoom-img { display: block; width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.magnified #zoom-img { width: 200%; max-width: none; height: 200%; cursor: zoom-out; }
#zoom-caption { margin-top: 5px; }
.feedback { position: fixed; right: 16px; bottom: 16px; z-index: 4; color: var(--film); background: var(--paper); }
.feedback:not(:empty) { padding: 9px 16px; }

@media (max-width: 920px) {
  :root { --edge: 26px; }
  .mast-inner { gap: 16px; }
  .mast nav { gap: 18px; }
  .observation-table { grid-template-columns: minmax(0,1fr) 226px; }
  .fieldnote { padding: 20px; }
  .fieldnote > p { font-size: 20px; }
  .plate-index { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .text-register { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  :root { --edge: 18px; }
  .mast-inner { display: grid; grid-template-columns: 1fr auto; min-height: auto; gap: 0 12px; padding-top: 5px; }
  .brand { min-height: 44px; }
  .mast-tools { grid-column: 2; grid-row: 1; gap: 10px; }
  .mast nav { grid-column: 1/-1; justify-content: space-between; gap: 13px; }
  .mast nav a { font-size: 14px; }
  .specimen-heading { align-items: end; gap: 18px; }
  .specimen-heading h1 { font-size: clamp(50px, 11vw, 76px); overflow-wrap: normal; }
  .specimen-heading h2 { font-size: 20px; }
  .specimen-heading p { font-size: 13px; margin-top: 2px; }
  .observation-table { grid-template-columns: 1fr; gap: 0; }
  .exhibit-photo { padding: 8px; }
  .exhibit-photo img { height: clamp(230px, 58vw, 356px); }
  .exhibit-caption { gap: 10px; padding: 0 12px 5px; }
  .exhibit-caption > div { display: block; }
  .exhibit-caption .photo-credit { display: block; }
  .fieldnote { display: grid; grid-template-columns: minmax(0,1fr) max-content; align-items: start; gap: 4px 20px; padding: 14px 16px; }
  .fieldnote h2 { font-size: 14px; }
  .fieldnote > p { grid-column: 1; margin: 0; font-size: 17px; line-height: 1.6; }
  .note-source { grid-column: 1; margin-top: 0; }
  .note-actions { grid-column: 2; grid-row: 1/4; padding: 0; margin: 0; }
  .note-actions a { min-height: 44px; gap: 5px; font-size: 14px; }
  .contact-sheet { margin-top: 12px; }
  .exhibit-index { display: grid; grid-template-columns: repeat(6,minmax(105px,1fr)); overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .contact-frame { scroll-snap-align: start; }
  .contact-frame img { height: 65px; }
  .page { padding-top: 23px; }
  .cat-bar { gap: 0 14px; margin-top: 12px; }
  .cat-bar button { min-height: 44px; font-size: 14px; }
  .searchbox { flex-basis: 100%; }
  .selectbox { flex: 1; min-width: 90px; }
  .selectbox select { width: 100%; }
  .plate-index { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }
  .card-shot img, .card-shot .photo-preview { height: 100%; }
  .album-stage .album-turn, .zoom-stage .album-turn { width: 44px; height: 48px; }
  .album-prev { left: 6px; }
  .album-next { right: 6px; }
  .album-stage { height: clamp(220px,68vw,320px); }
  .photo-strip { gap: 5px; }
  .photo-strip button { flex-basis: 78px; width: 78px; padding: 1px; }
  .thumb-frame { width: 72px; height: 54px; }
  .thumb-label { font-size: 12px; }
  .photo-context { flex-wrap: wrap; gap: 2px 12px; }
  .detail-page .dossier-nav { margin-top: 12px; }
  .detail-page .detail-grid { margin-top: 12px; }
  .detail-page { padding-top: 16px; }
  .detail-grid { grid-template-columns: 1fr; }
  .recognition { grid-template-columns: 1fr; gap: 26px; margin-top: 30px; }
  .specs th, .specs td { padding: 11px 7px; font-size: 14px; }
  .dossier-nav { gap: 0 16px; }
  .dossier-nav button { font-size: 14px; }
  .side-notes { grid-template-columns: 1fr; }
  .detail-actions { margin-top: 2px; }
  .generation { grid-template-columns: minmax(102px,.4fr) minmax(0,1fr); gap: 0 10px; }
  .generation-note { padding: 13px; }
  .generation-note p { font-size: 17px; }
  .inline-plates, .pair { gap: 10px; }
  .plate.small button { padding: 5px; }
  .plate.small img, .no-plate { height: clamp(110px, 25vw, 176px); min-height: 0; }
  .plate.small figcaption { padding: 2px 7px 8px; }
  .pair-select { font-size: 14px; padding-left: 4px; }
  .download-row { grid-template-columns: 1fr 95px auto; }
  .download-row strong { font-size: 17px; }
  .credit-line { grid-template-columns: 90px 1fr; gap: 0 12px; }
  .credit-line > span { grid-column: 2; }
}
@media (max-width: 450px) {
  :root { --edge: 14px; }
  .specimen-heading { gap: 10px; }
  .specimen-heading h1 { font-size: clamp(47px, 14vw, 62px); }
  .specimen-heading h2 { font-size: 17px; }
  .specimen-heading p { font-size: 12px; }
  .fieldnote { gap: 3px 12px; padding: 12px; }
  .note-actions a { gap: 1px; }
  .cat-bar { gap: 0 12px; }
  .text-register .card-text, .catalog-list .card-text { grid-template-columns: minmax(0,1fr) auto; gap: 1px 8px; }
  .text-register small, .catalog-list small { grid-column: 1; grid-row: 2; }
  .text-register .card-meta, .catalog-list .card-meta { grid-column: 2; grid-row: 1/3; font-size: 12px; }
  .catalog-list .equipment-card { gap: 9px; }
  .catalog-list .card-shot { width: 52px; }
  .catalog-list .text-only { padding-left: 61px; }
  .branch-panel { padding: 13px; }
  .branch-panel dl > div { grid-template-columns: minmax(65px,.38fr) minmax(0,1fr); }
  .relation-switch button, .observation-switch button { padding-inline: 8px; font-size: 14px; }
  .generation-note strong { font-size: 34px; }
  .foot div { gap: 14px; }
}
