/* Research experience: search results, record page, page viewer */
.results-section { min-height: 50vh; }
.results-status { font-size: 1.1rem; font-weight: 500; }
.results-summary { font-size: 1.2rem; padding: var(--s-4) var(--s-5); border: var(--rule) solid var(--black); border-left: 10px solid var(--gold); background: var(--white); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.res-group { margin-top: var(--s-6); }
.res-group__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; background: var(--black); color: var(--gold); padding: 14px 20px; border-bottom: 6px solid var(--gold); }
.res-group__head h2 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: .95; margin: 0; font-weight: 400; }
.res-list { list-style: none; margin: 0; padding: 0; border: var(--rule) solid var(--black); border-top: 0; background: var(--white); }
.res { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px; border-top: 1px solid var(--border); }
.res:first-child { border-top: 0; }
.res__thumb { display: block; border: 2px solid var(--black); background: var(--parchment); aspect-ratio: 240 / 190; overflow: hidden; }
.res__thumb:hover, .res__thumb:focus-visible { border-color: var(--gold); outline: 3px solid var(--gold); }
.res__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.res__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.res__name { font-weight: 700; font-size: 1.2rem; color: var(--black); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.res__name:hover { background: var(--gold); text-decoration-color: var(--black); }
.res__meta { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-small); white-space: pre-wrap; }
.res__act { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.btn-link { font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--black); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 4px; min-height: 32px; display: inline-flex; align-items: center; }
.btn-link:hover { background: var(--gold); }
.res-more { margin-top: var(--s-4); }
@media (min-width: 720px) { .res { grid-template-columns: 140px 1fr; gap: 20px; padding: 18px 20px; } }
.empty ul { padding-left: 1.2em; }
.empty li { margin: 6px 0; }
.h-sm { font-family: var(--font-serif); text-transform: none; font-size: var(--fs-h3); font-weight: 600; letter-spacing: 0; line-height: 1.2; }

/* record */
.rec-title { font-size: clamp(2rem, 6vw, 4rem); }
.rec-grid { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .rec-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.rec-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; border: var(--rule) solid var(--black); background: var(--white); }
.rec-facts dt, .rec-facts dd { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.rec-facts dt { font-weight: 700; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; background: var(--ivory); }
.rec-facts dt:last-of-type, .rec-facts dd:last-of-type { border-bottom: 0; }
.rec-page { display: block; border: var(--rule) solid var(--black); border-top: 8px solid var(--gold); background: var(--parchment); }
.rec-page img { display: block; width: 100%; height: auto; }
.rec-cap { font-size: var(--fs-small); color: var(--muted); margin: 0; }
.rel { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); }
.rel:first-child { border-top: 0; }
.rel__src { color: var(--muted); font-size: var(--fs-small); }

/* viewer */
.viewer { padding-block: var(--s-6) var(--s-8); }
.viewer__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s-4); margin-bottom: var(--s-4); }
.viewer__title { font-size: clamp(1.6rem, 4.5vw, 3rem); margin: 0; }
.viewer__sub, .viewer__loc { margin: 6px 0 0; color: var(--on-dark-muted); }
.viewer__loc a { color: var(--gold); text-decoration: underline; }
.viewer__back { margin: 0; }
.viewer__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 0; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .8rem; }
.viewer__bar .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.viewer__go { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; }
.viewer__go input { width: 84px; min-height: 44px; border: var(--rule) solid var(--white); background: #121212; color: var(--white); padding: 0 8px; font: inherit; text-align: center; border-radius: 0; }
.viewer__go input:focus-visible { outline: 3px solid var(--gold); }
.viewer__sep { width: 1px; height: 28px; background: var(--line-dark); margin: 0 6px; }
.viewer__stage { position: relative; overflow: hidden; background: #1a1a1a; border: var(--rule) solid var(--gold); cursor: grab; touch-action: none; min-height: 320px; }
.viewer__stage.is-drag { cursor: grabbing; }
.viewer__stage:focus-visible { outline: 4px solid var(--white); outline-offset: 2px; }
.viewer__canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.viewer__canvas img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.viewer__hl { position: absolute; border: 3px solid var(--gold); background: rgba(255, 185, 31, .22); pointer-events: none; }
.viewer__note { color: var(--on-dark-muted); font-size: var(--fs-small); margin-top: var(--s-4); max-width: 70ch; }

/* compact search hero so results start near the fold */
.page-hero .search { margin-top: var(--s-6); }
.page-hero:has(.search) { padding-block: var(--s-7) var(--s-6); }
.page-hero:has(.search) h1 { font-size: clamp(2rem, 5.5vw, 4rem); }
.results-section { padding-top: var(--s-6); }

.crumb { margin: 0 0 var(--s-4); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.crumb a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.crumb a:hover { color: var(--white); }
.page-hero--compact { padding-block: var(--s-6) var(--s-5) !important; }
.page-hero--compact h1 { font-size: clamp(1.8rem, 4.5vw, 3rem) !important; }
.refine { padding-block: var(--s-5); border-bottom: var(--rule) solid var(--black); }
.refine__row { display: grid; gap: var(--s-3); grid-template-columns: 1fr; align-items: end; }
@media (min-width: 720px) { .refine__row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .refine__row { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr auto; } }
.refine input[type="search"] { width: 100%; min-height: var(--tap); border: var(--rule) solid var(--black); background: var(--white); color: var(--black); padding: 0 14px; font-weight: 500; font-size: 1rem; border-radius: 0; -webkit-appearance: none; appearance: none; }
.refine input[type="search"]:focus-visible { outline: 4px solid var(--gold); outline-offset: 0; }
.refine .btn { min-height: var(--tap); }

/* About page */
.about-prose p { font-size: 1.1rem; line-height: 1.65; }
.pull { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.25; border-left: 10px solid var(--gold); padding: var(--s-2) 0 var(--s-2) var(--s-5); max-width: 28ch; }
.pull--lines { font-style: italic; font-weight: 400; }
.about-close { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.4; font-weight: 600; }
.about-vision .prose p { color: #EDE8DC; }
.vision-sign { font-family: var(--font-display); text-transform: uppercase; color: var(--gold); font-size: clamp(1.6rem, 4.5vw, 3rem); line-height: .95; margin-top: var(--s-6); }

/* Slogan in the footer */
.footer__slogan { font-family: var(--font-display); text-transform: uppercase; color: var(--gold); font-size: clamp(2rem, 6vw, 4.25rem); line-height: .9; letter-spacing: -0.005em; padding-bottom: var(--s-7); margin: 0 0 var(--s-7); border-bottom: 1px solid var(--line-dark); }
