/* ETNOMON 2.0 — local, responsive public and administration styles. */
:root {
    --et-paper: #f8f5ef;
    --et-white: #fffdf9;
    --et-tint: #f0ebe2;
    --et-ink: #282825;
    --et-muted: #68665e;
    --et-line: #ddd6ca;
    --et-wine: #7c283c;
    --et-wine-dark: #5f1c2c;
    --et-gold: #a27b40;
    --et-serif: Georgia, "Times New Roman", serif;
    --bs-primary: #7c283c;
    --bs-primary-rgb: 124, 40, 60;
    --bs-body-color: #282825;
    --bs-body-bg: #f8f5ef;
    --bs-link-color: #7c283c;
    --bs-link-hover-color: #5f1c2c;
    --bs-border-color: #ddd6ca;
    --bs-border-radius: .35rem;
    --bs-focus-ring-color: rgba(124,40,60,.2);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 7rem; }
body { color: var(--et-ink); background: var(--et-paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 1rem; line-height: 1.65; }
a { text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
::selection { background: #e6cbd0; color: #461323; }
:focus-visible { outline: 3px solid var(--et-wine); outline-offset: 4px; }
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 400; }
.public-body h1, .public-body h2, .public-body h3, .public-body h4, .admin-main h1, .admin-main h2 { font-family: var(--et-serif); }
h1 { font-size: clamp(2.25rem,4.5vw,4.25rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem,2.8vw,2.7rem); letter-spacing: -.025em; }
h3 { font-size: 1.55rem; letter-spacing: -.015em; }
.container { max-width: 1280px; }
.muted, .text-muted { color: var(--et-muted) !important; }
.prose { max-width: 76ch; line-height: 1.85; overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.btn { min-height: 42px; font-weight: 600; font-size: .9rem; padding: .68rem 1.1rem; border-radius: .25rem; letter-spacing: .01em; }
.btn-sm { min-height: 34px; padding: .4rem .75rem; font-size: .8rem; }
.btn-primary { --bs-btn-bg: var(--et-wine); --bs-btn-border-color: var(--et-wine); --bs-btn-hover-bg: var(--et-wine-dark); --bs-btn-hover-border-color: var(--et-wine-dark); --bs-btn-active-bg: var(--et-wine-dark); --bs-btn-active-border-color: var(--et-wine-dark); --bs-btn-disabled-bg: var(--et-wine); --bs-btn-disabled-border-color: var(--et-wine); --bs-btn-focus-shadow-rgb: 124,40,60; }
.btn-outline-primary { --bs-btn-color: var(--et-wine); --bs-btn-border-color: var(--et-wine); --bs-btn-hover-bg: var(--et-wine); --bs-btn-hover-border-color: var(--et-wine); --bs-btn-active-bg: var(--et-wine-dark); --bs-btn-active-border-color: var(--et-wine-dark); --bs-btn-focus-shadow-rgb: 124,40,60; }
.btn-outline-secondary { --bs-btn-color: var(--et-muted); --bs-btn-border-color: var(--et-line); --bs-btn-hover-bg: var(--et-ink); --bs-btn-hover-border-color: var(--et-ink); }
.form-control, .form-select { background-color: var(--et-white); border-color: var(--et-line); min-height: 44px; font-size: .9rem; }
.form-control:focus, .form-select:focus { border-color: var(--et-wine); box-shadow: 0 0 0 .2rem rgba(124,40,60,.1); background-color: #fff; }
.form-label { font-size: .82rem; font-weight: 650; margin-bottom: .35rem; }
.skip-link { position: absolute; z-index: 1200; left: 1rem; top: -6rem; padding: .75rem 1.25rem; background: var(--et-wine); color: white; }
.skip-link:focus { top: .5rem; color: white; }
.site-header { position: relative; z-index: 100; background: var(--et-paper); border-bottom: 1px solid var(--et-line); }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 100px; gap: 2rem; }
.brand { display: inline-flex; gap: .8rem; align-items: center; color: var(--et-ink); text-decoration: none; }
.brand:hover { color: var(--et-wine); }
.brand-mark { width: 37px; height: 44px; stroke: var(--et-wine); stroke-width: 1.7; fill: none; }
.brand-copy { display: flex; flex-direction: column; }
.brand-name { font-family: var(--et-serif); font-size: 1.8rem; letter-spacing: .03em; line-height: 1.1; }
.brand-name > span { color: var(--et-wine); }
.brand-subtitle { color: var(--et-muted); font-size: .63rem; letter-spacing: .08em; margin-top: .4rem; text-transform: uppercase; }
.site-nav { align-items: center; gap: 1.9rem; }
.site-nav-link { color: var(--et-ink); font-size: .86rem; font-weight: 550; text-decoration: none; padding: .5rem 0; position: relative; }
.site-nav-link:hover, .site-nav-link.active { color: var(--et-wine); }
.site-nav-link.active:after { content: ""; height: 2px; position: absolute; left: 0; right: 0; bottom: 0; background: var(--et-wine); }
.language-switch { color: var(--et-ink); border: 1px solid var(--et-line); padding: .38rem .6rem; border-radius: .15rem; font-size: .7rem; font-weight: 650; text-decoration: none; }
.mobile-menu-toggle { display: none; padding: .6rem; }
.mobile-menu-toggle span { width: 22px; height: 2px; background: var(--et-ink); display: block; margin: 5px 0; }
.eyebrow { color: var(--et-wine); text-transform: uppercase; font-size: .67rem; font-weight: 700; letter-spacing: .15em; margin: 0 0 1rem; line-height: 1.7; }
.hero-section { padding: 3.8rem 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 4.4rem; align-items: center; }
.hero-copy { padding: 1rem 0 2rem; }
.hero-copy > .eyebrow { display: flex; align-items: center; gap: .8rem; }
.hero-copy > .eyebrow > span { width: 22px; height: 1px; background: var(--et-wine); flex: none; }
.hero-copy h1 { font-size: clamp(2.8rem,4.6vw,4.35rem); margin-bottom: 1.6rem; line-height: 1.1; }
.hero-copy h1 em { font-weight: 400; color: var(--et-wine); }
.hero-lead { color: var(--et-muted); font-size: .98rem; line-height: 1.8; max-width: 52ch; margin-bottom: 1.8rem; }
.hero-search { display: flex; align-items: center; gap: .6rem; padding: .45rem; border: 1px solid var(--et-line); background: var(--et-white); margin-bottom: 1.2rem; box-shadow: 0 4px 16px rgba(48,34,20,.025); }
.hero-search svg { width: 19px; height: 19px; flex: none; stroke: var(--et-muted); fill: none; stroke-width: 1.5; margin-left: .4rem; }
.hero-search input { width: 0; min-width: 0; flex: 1; border: 0; background: transparent; font-size: .82rem; padding: .5rem 0; color: var(--et-ink); outline-offset: 1px; }
.hero-search .btn { font-size: .78rem; padding: .75rem 1rem; white-space: nowrap; }
.text-link { display: inline-flex; align-items: center; gap: .55rem; font-size: .84rem; font-weight: 600; color: var(--et-wine); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.hero-image { margin: 0; position: relative; padding-bottom: 3.1rem; }
.hero-image > a { display: block; background: var(--et-tint); height: 420px; overflow: hidden; border-radius: 1px; }
.hero-image > a > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-image > a:hover > img { transform: scale(1.025); }
.hero-image figcaption { position: absolute; bottom: 0; left: 1.4rem; right: -1rem; background: var(--et-white); border: 1px solid var(--et-line); padding: 1.2rem 1.5rem; box-shadow: 0 8px 24px rgba(41,31,19,.06); display: flex; flex-direction: column; gap: .2rem; }
.hero-image figcaption .eyebrow { margin: 0; font-size: .58rem; }
.hero-image figcaption > a { font-family: var(--et-serif); font-size: 1.3rem; color: var(--et-ink); text-decoration: none; display: flex; justify-content: space-between; gap: 1rem; line-height: 1.3; }
.hero-image figcaption > span:last-child { font-size: .73rem; color: var(--et-muted); }
.hero-archive-panel { min-height: 420px; border: 1px solid var(--et-line); background: var(--et-tint); padding: 3rem; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.archive-kicker { font-family: var(--et-serif); font-size: .8rem; letter-spacing: .3em; color: var(--et-wine); }
.archive-number { font-family: var(--et-serif); font-size: 6.5rem; color: var(--et-wine); line-height: 1.4; }
.archive-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.archive-rule { width: 60px; height: 1px; background: var(--et-gold); margin: 1.8rem auto; }
.hero-archive-panel p { color: var(--et-muted); max-width: 30ch; font-family: var(--et-serif); font-style: italic; }
.collection-stats { margin-top: 3.6rem; border-top: 1px solid var(--et-line); border-bottom: 1px solid var(--et-line); display: grid; grid-template-columns: repeat(4,1fr); padding: 1.6rem 0; }
.collection-stats > div { display: flex; flex-direction: column; align-items: center; padding: .25rem 1rem; }
.collection-stats > div + div { border-left: 1px solid var(--et-line); }
.collection-stats strong { font-family: var(--et-serif); font-size: 2.1rem; line-height: 1.25; color: var(--et-wine); font-weight: 400; }
.collection-stats span { font-size: .68rem; color: var(--et-muted); margin-top: .25rem; letter-spacing: .04em; }
.section-space { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.section-tinted { background: var(--et-tint); border-top: 1px solid var(--et-line); border-bottom: 1px solid var(--et-line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading .eyebrow { margin-bottom: .65rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 38ch; font-size: .84rem; color: var(--et-muted); margin: 0; }
.section-heading > a { flex: none; }
.category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.category-card, .explanation-card { border: 1px solid var(--et-line); background: var(--et-white); padding: 2rem; text-decoration: none; color: var(--et-ink); transition: border-color .2s,box-shadow .2s; display: flex; flex-direction: column; }
.category-card:hover { border-color: var(--et-wine); color: var(--et-ink); box-shadow: 0 8px 28px rgba(41,31,19,.04); }
.category-number { font-family: var(--et-serif); font-size: .85rem; color: var(--et-gold); margin-bottom: 1.8rem; letter-spacing: .05em; }
.category-card h3, .explanation-card h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.category-card p, .explanation-card p { color: var(--et-muted); font-size: .86rem; line-height: 1.8; margin-bottom: 1.5rem; }
.category-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--et-line); font-size: .73rem; color: var(--et-wine); }
.category-footer > span:last-child { font-size: 1.3rem; }
.monument-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.6rem; }
.monument-card { border: 1px solid var(--et-line); background: var(--et-white); min-width: 0; display: flex; flex-direction: column; transition: border-color .2s; }
.monument-card:hover { border-color: #b5a493; }
.monument-card-image { display: block; position: relative; aspect-ratio: 4/3; overflow: hidden; text-decoration: none; background: var(--et-tint); }
.monument-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.monument-card:hover .monument-card-image img { transform: scale(1.035); }
.type-tag { display: inline-flex; padding: .35rem .65rem; background: #fffdf9; color: var(--et-wine); border: 1px solid var(--et-line); font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; line-height: 1.3; border-radius: 2px; }
.monument-card-image .type-tag { position: absolute; left: .8rem; bottom: .8rem; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.type-con { color: #4a5b3f; }
.type-ins { color: #745324; }
.no-image { display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--et-muted); }
.no-image > span:not(.type-tag) { font-size: .65rem; }
.empty-photo-icon { width: 80px; height: 80px; fill: none; stroke: #b9af9d; stroke-width: 1; margin-bottom: .6rem; }
.monument-card-body { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.card-location { color: var(--et-muted); font-size: .66rem; letter-spacing: .03em; margin: 0 0 .6rem; line-height: 1.5; }
.monument-card h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.monument-card h3 a { color: var(--et-ink); text-decoration: none; }
.monument-card h3 a:hover { color: var(--et-wine); text-decoration: underline; }
.card-dating { color: var(--et-muted); font-size: .75rem; margin-bottom: 1rem; }
.card-museum { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--et-line); color: var(--et-muted); font-size: .7rem; line-height: 1.6; }
.card-museum a { color: var(--et-muted); text-decoration: none; }
.card-museum a:hover { color: var(--et-wine); text-decoration: underline; }
.about-banner { border-left: 3px solid var(--et-wine); padding: .5rem 0 .5rem 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.about-banner h2 { max-width: 19ch; }
.about-banner p:not(.eyebrow) { color: var(--et-muted); font-size: .9rem; line-height: 1.9; }
.about-banner .btn { margin-top: .8rem; }
.site-footer { background: #292923; color: #eee9de; padding-top: 3rem; font-size: .8rem; }
.site-footer a { color: #eee9de; }
.footer-main { display: flex; justify-content: space-between; gap: 3rem; padding-bottom: 2.4rem; }
.footer-wordmark { font-family: var(--et-serif); font-size: 1.65rem; letter-spacing: .05em; text-decoration: none; }
.footer-intro p { max-width: 44ch; color: #bebbad; margin: 1rem 0 0; line-height: 1.8; }
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { text-decoration: none; font-size: .78rem; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #494940; padding: 1.25rem 0; display: flex; justify-content: space-between; gap: 2rem; color: #bebbad; font-size: .66rem; }
.footer-bottom a { color: #bebbad; text-decoration: none; }
.page-heading { padding-top: 3.5rem; padding-bottom: 2.6rem; }
.page-heading h1 { margin: 0 0 1rem; }
.page-heading > p:last-child { color: var(--et-muted); font-size: .94rem; max-width: 78ch; margin: 0; }
.page-heading.compact { padding: 1rem 0 2rem; }
.catalog-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 2.5rem; align-items: start; }
.filter-panel { padding: 1.3rem; border: 1px solid var(--et-line); background: var(--et-white); }
.filter-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: 1.2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--et-line); }
.filter-panel-heading h2 { font-family: inherit; font-size: .83rem; font-weight: 650; margin: 0; letter-spacing: 0; }
.filter-panel-heading > a { font-size: .66rem; }
.filter-panel .form-select, .filter-panel .form-control { font-size: .78rem; min-height: 40px; }
.filter-panel .form-label { font-size: .72rem; }
.filter-control { display: flex; align-items: stretch; gap: .35rem; }
.filter-control select { min-width: 0; }
.filter-clear { flex: none; width: 26px; background: var(--et-tint); border: 1px solid var(--et-line); border-radius: 3px; color: var(--et-wine); font-size: 1.15rem; padding: 0; }
.filter-clear:hover { background: #eddfe0; }
.filter-extra { border-top: 1px solid var(--et-line); margin-top: 1.25rem; padding-top: 1rem; }
.filter-help { font-size: .65rem; line-height: 1.7; color: var(--et-muted); margin: 1rem 0 0; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--et-line); }
.results-heading p { margin: 0; font-size: .86rem; }
.results-heading strong { font-size: 1rem; color: var(--et-wine); }
.results-heading > span { color: var(--et-muted); font-size: .74rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filter-chip { background: #ede3e3; color: var(--et-wine); font-size: .68rem; border: 1px solid #dec9ce; border-radius: 2px; display: inline-flex; align-items: center; gap: .75rem; padding: .3rem .55rem; text-decoration: none; overflow-wrap: anywhere; }
.filter-chip:hover { background: #e4d2d6; color: var(--et-wine-dark); }
.filter-chip > span { font-size: 1.1rem; line-height: 1; }
.catalog-grid { gap: 1.15rem; }
.catalog-grid .monument-card h3 { font-size: 1.2rem; }
.catalog-grid .monument-card-body { padding: 1.05rem; }
.catalog-pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.pagination { --bs-pagination-color: var(--et-wine); --bs-pagination-bg: var(--et-white); --bs-pagination-border-color: var(--et-line); --bs-pagination-hover-color: var(--et-wine); --bs-pagination-hover-bg: var(--et-tint); --bs-pagination-active-bg: var(--et-wine); --bs-pagination-active-border-color: var(--et-wine); --bs-pagination-disabled-bg: var(--et-paper); }
.page-link { font-size: .75rem; padding: .5rem .75rem; min-height: 38px; }
.pagination-note { color: var(--et-muted); font-size: .7rem; white-space: nowrap; }
.empty-state { padding: 4rem 2rem; border: 1px dashed #c7bcab; text-align: center; background: var(--et-white); }
.empty-state h2 { font-size: 1.8rem; }
.empty-state p { color: var(--et-muted); max-width: 70ch; margin: 1rem auto 1.5rem; font-size: .9rem; }
.empty-state.compact { padding: 2rem; }
.empty-state.compact p { margin: 0 auto; }
.detail-page { padding-top: 1.7rem; padding-bottom: 3rem; }
.breadcrumb-nav { display: flex; gap: .65rem; align-items: baseline; flex-wrap: wrap; color: var(--et-muted); font-size: .72rem; margin-bottom: 2rem; }
.breadcrumb-nav a { color: var(--et-muted); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--et-wine); text-decoration: underline; }
.detail-heading { display: flex; align-items: start; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.detail-heading h1 { font-size: clamp(2.2rem,4.3vw,4rem); margin: .9rem 0 .75rem; max-width: 27ch; }
.local-name { color: var(--et-muted); font-family: var(--et-serif); font-size: 1.35rem; font-style: italic; margin-bottom: .65rem; }
.detail-museum { font-size: .86rem; margin-bottom: 0; }
.detail-museum a { color: var(--et-wine); text-decoration: none; }
.print-button { flex: none; margin-top: 1.5rem; }
.detail-jump-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; border-top: 1px solid var(--et-line); border-bottom: 1px solid var(--et-line); padding: 1rem 0; margin-bottom: 2.75rem; }
.detail-jump-nav a { font-size: .76rem; font-weight: 600; color: var(--et-muted); text-decoration: none; }
.detail-jump-nav a:hover { color: var(--et-wine); }
.detail-jump-nav a > span { font-size: .6rem; color: var(--et-wine); margin-left: .2rem; }
.detail-overview { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr); gap: 4rem; align-items: start; margin-bottom: 2rem; }
.detail-description h2 { font-size: 2rem; margin-bottom: 1.2rem; }
.detail-description .prose { font-size: .95rem; }
.summary-card { border: 1px solid var(--et-line); background: var(--et-white); padding: 1.8rem; }
.summary-card > .eyebrow { margin-bottom: 1.3rem; }
.metadata-grid { margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 2rem; }
.metadata-item { padding: .8rem 0; border-bottom: 1px solid var(--et-line); min-width: 0; }
.metadata-item dt { font-size: .7rem; font-weight: 600; color: var(--et-muted); margin-bottom: .2rem; }
.metadata-item dd { font-size: .87rem; margin: 0; overflow-wrap: anywhere; white-space: normal; }
.summary-card .metadata-grid, .location-card .metadata-grid { grid-template-columns: 1fr; }
.summary-card .metadata-item { padding: .65rem 0; }
.summary-term { margin-top: 1rem; }
.summary-term h3 { font: 600 .7rem/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; color: var(--et-muted); margin-bottom: .4rem; letter-spacing: 0; }
.summary-term p { font-size: .82rem; margin: 0; }
.term-links { display: flex; gap: .4rem; flex-wrap: wrap; }
.term-links a { background: var(--et-paper); border: 1px solid var(--et-line); color: var(--et-wine); padding: .15rem .5rem; font-size: .7rem; text-decoration: none; }
.record-section { padding: 3.1rem 0; border-top: 1px solid var(--et-line); scroll-margin-top: 2rem; }
.record-section h2 { font-size: 2.2rem; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.location-card { position: relative; background: var(--et-white); border: 1px solid var(--et-line); padding: 2rem; }
.location-card h3 { font-size: 1.6rem; margin-bottom: .75rem; padding-right: 2rem; }
.location-number { position: absolute; right: 1.5rem; top: 1.5rem; color: var(--et-gold); font-family: var(--et-serif); font-size: .9rem; }
.section-caption { color: var(--et-muted); font-size: .8rem; }
.location-site { font-family: var(--et-serif); font-size: 1.3rem; margin-top: 1.2rem; }
.location-card .text-link { margin-top: 1rem; }
.heading-count { color: var(--et-muted); font: 400 .8rem/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; border: 1px solid var(--et-line); padding: .15rem .5rem; vertical-align: middle; margin-left: .25rem; }
.photo-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.gallery-figure { margin: 0; min-width: 0; }
.gallery-link { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--et-tint); border: 1px solid var(--et-line); }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-link:hover img { transform: scale(1.04); }
.gallery-expand { position: absolute; bottom: .6rem; right: .6rem; width: 30px; height: 30px; color: var(--et-ink); background: var(--et-white); border: 1px solid var(--et-line); text-align: center; line-height: 28px; font-size: 1.1rem; }
.gallery-figure figcaption { font-size: .68rem; color: var(--et-muted); padding-top: .65rem; line-height: 1.6; }
.gallery-link.is-loading:after { content: ""; position: absolute; left: calc(50% - 15px); top: calc(50% - 15px); width: 30px; height: 30px; border-radius: 50%; border: 3px solid white; border-top-color: var(--et-wine); animation: et-spin .8s linear infinite; }
.gallery-status { font-size: .8rem; color: var(--et-wine); padding: .5rem 0; }
@keyframes et-spin { to { transform: rotate(360deg); } }
.image-failed { display: flex !important; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; background: var(--et-tint); }
.image-failed-message { font-size: .72rem; color: var(--et-muted); text-align: center; padding: 1rem; }
.pswp__custom-caption { background: rgba(25,25,23,.85); color: white; padding: 12px 20px; position: absolute; left: 15%; right: 15%; bottom: 15px; max-height: 30%; overflow: auto; font-size: .85rem; text-align: center; border-radius: 4px; }
.documentation-groups { display: grid; gap: 2rem; }
.documentation-group { background: var(--et-white); padding: 1.75rem 2rem; border: 1px solid var(--et-line); }
.documentation-group h3 { font-size: 1.5rem; margin-bottom: .7rem; }
.component-records { margin-top: 1.5rem; }
.component-record { border: 1px solid var(--et-line); border-bottom: 0; background: var(--et-white); }
.component-record:last-child { border-bottom: 1px solid var(--et-line); }
.component-record summary { padding: 1rem 1.5rem; cursor: pointer; font-size: .9rem; font-weight: 600; }
.component-record[open] summary { color: var(--et-wine); border-bottom: 1px solid var(--et-line); }
.component-record-body { padding: 1rem 1.5rem 1.5rem; }
.parent-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-bottom: 2rem; }
.parent-link { position: relative; padding: 1.4rem 3rem 1.4rem 1.4rem; border: 1px solid var(--et-line); background: var(--et-white); text-decoration: none; display: flex; flex-direction: column; gap: .4rem; }
.parent-link > span:first-child { color: var(--et-muted); font-size: .7rem; }
.parent-link strong { font-family: var(--et-serif); font-weight: 400; font-size: 1.3rem; line-height: 1.4; }
.parent-link > span:last-child { position: absolute; right: 1.4rem; top: 1.5rem; }
.subsection-heading { margin: 2rem 0 1.5rem; font-size: 1.6rem; }
.record-timeline { border-left: 1px solid var(--et-line); margin-left: .4rem; padding-left: 1.8rem; }
.timeline-entry { display: grid; grid-template-columns: 165px minmax(0,1fr); gap: 1.5rem; position: relative; padding: 0 0 2rem; }
.timeline-entry:before { content: ""; width: 7px; height: 7px; background: var(--et-wine); position: absolute; border-radius: 50%; left: -2.05rem; top: .6rem; }
.timeline-date { color: var(--et-muted); font-size: .8rem; padding-top: .3rem; }
.timeline-body h4 { font-size: 1.35rem; margin-bottom: .6rem; }
.timeline-body .prose { font-size: .88rem; }
.byline { color: var(--et-muted); font-size: .76rem; }
.record-note { padding: 1rem; border-left: 2px solid var(--et-gold); background: var(--et-tint); margin-top: 1rem; font-size: .8rem; }
.record-note p { margin: .35rem 0 0; }
.reference-list { padding-left: 1.5rem; max-width: 100ch; }
.reference-list li { padding-left: .5rem; margin-bottom: 1.25rem; font-size: .9rem; line-height: 1.9; }
.reference-list li::marker { color: var(--et-gold); font-family: var(--et-serif); }
.reference-locator { color: var(--et-muted); }
.document-list { display: flex; flex-direction: column; gap: .65rem; margin-top: 1.5rem; }
.document-link { display: flex; align-items: center; gap: 1.2rem; padding: 1.1rem 1.4rem; border: 1px solid var(--et-line); background: var(--et-white); text-decoration: none; }
.document-link:hover { border-color: var(--et-wine); }
.document-symbol { color: var(--et-wine); font-size: 1.6rem; flex: none; }
.document-link strong { font-size: .85rem; font-weight: 600; }
.document-link small { display: block; font-size: .7rem; color: var(--et-muted); margin-top: .15rem; }
.record-authorship { background: var(--et-tint); padding: 2rem; margin-bottom: 1.5rem; }
.record-authorship h2 { font-size: 1.75rem; margin-bottom: 1.5rem; }
.record-authors { display: grid; gap: 1.5rem; }
.record-authors h3 { font-size: 1.2rem; }
.contribution-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin: 1.5rem 0 0; }
.contribution-list li { display: flex; flex-direction: column; }
.contribution-list strong { font-size: .8rem; font-weight: 600; }
.contribution-list span { font-size: .7rem; color: var(--et-muted); }
.record-identifier { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .65rem; color: var(--et-muted); }
.record-identifier code { color: var(--et-muted); overflow-wrap: anywhere; }
.directory-search { display: flex; gap: .7rem; max-width: 700px; margin-bottom: 2rem; }
.directory-search .form-control, .directory-search .form-select { min-width: 0; }
.directory-search .btn { flex: none; }
.directory-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.4rem; }
.institution-card { border: 1px solid var(--et-line); background: var(--et-white); padding: 2rem; display: flex; flex-direction: column; }
.institution-card .eyebrow { color: var(--et-muted); font-size: .6rem; margin-bottom: 1rem; min-height: 1em; }
.institution-card h2, .institution-card h3 { font-size: 1.75rem; margin-bottom: 1.2rem; }
.institution-card h2 a, .institution-card h3 a { text-decoration: none; color: var(--et-ink); }
.institution-card h2 a:hover, .institution-card h3 a:hover { color: var(--et-wine); text-decoration: underline; }
.institution-card > p:not(.eyebrow) { color: var(--et-muted); font-size: .83rem; }
.institution-card-footer { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem 1.3rem; border-top: 1px solid var(--et-line); padding-top: 1.1rem; margin-top: auto; font-size: .72rem; color: var(--et-muted); }
.institution-card-footer strong { color: var(--et-wine); }
.arrow-link { margin-left: auto; color: var(--et-wine); font-size: 1.3rem; text-decoration: none; }
.institution-overview { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(250px,1fr); gap: 4rem; margin: 1rem 0 3rem; }
.institution-count { background: var(--et-white); border: 1px solid var(--et-line); padding: 1.8rem; display: flex; flex-direction: column; gap: .5rem; }
.institution-count > strong { color: var(--et-wine); font: 400 3rem/1.2 var(--et-serif); }
.institution-count > span { color: var(--et-muted); font-size: .8rem; }
.institution-count > a { font-size: .8rem; margin-top: .6rem; }
.institution-address { color: var(--et-muted); margin-top: 1.5rem; font-size: .9rem; }
.institution-parent { font-size: .85rem; color: var(--et-muted); }
.verification-note { font-size: .72rem; color: #7a5b23; background: #f5eedc; padding: .65rem; margin-top: 1rem; }
.about-page { padding-bottom: 2rem; }
.about-intro { display: grid; grid-template-columns: .8fr 1.3fr; gap: 4rem; padding: 0 0 3.5rem; }
.about-intro > h2 { max-width: 20ch; }
.explanation-card { padding: 1.6rem; }
.explanation-card h3 { font-size: 1.45rem; }
.explanation-card p { margin-bottom: 0; }
/* Administration shares the same visual vocabulary. */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; flex: 0 0 250px; background: #292923; color: #eee9de; padding: 1.5rem 1rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-sidebar .navbar-brand { color: var(--et-white); font: 400 1.7rem/1.3 var(--et-serif); padding: .25rem .7rem .8rem; }
.admin-sidebar .navbar-brand small { font: 400 .7rem/1.8 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; color: #bebbad; letter-spacing: .06em; }
.admin-sidebar .nav-link { color: #d4d0c4; font-size: .8rem; border-radius: .25rem; padding: .55rem .7rem; }
.admin-sidebar .nav-link:hover { color: white; background: #3b3a32; }
.admin-sidebar .nav-link.active { color: white; background: var(--et-wine); }
.admin-main { min-width: 0; flex: 1; }
.admin-topbar { background: var(--et-white); font-size: .83rem; min-height: 73px; }
.admin-main h1 { font-size: clamp(1.9rem,3vw,2.6rem); }
.admin-main h2 { font-size: 1.7rem; }
.admin-main .page-heading { padding: .25rem 0 1.4rem; }
.surface, .panel, .admin-card, .stat-card { background: var(--et-white); border: 1px solid var(--et-line); border-radius: .3rem; }
.surface, .panel, .admin-card { padding: 1.4rem; }
.stat-card { padding: 1.5rem; }
.stat-card .stat-value, .stat-card strong { font-family: var(--et-serif); color: var(--et-wine); font-size: 2rem; }
.admin-main .card { --bs-card-bg: var(--et-white); --bs-card-border-color: var(--et-line); }
.admin-main .table { --bs-table-bg: transparent; --bs-table-color: var(--et-ink); --bs-table-border-color: var(--et-line); font-size: .8rem; }
.admin-main .table th { font-weight: 650; font-size: .73rem; color: var(--et-muted); white-space: nowrap; padding-top: .8rem; padding-bottom: .8rem; }
.admin-main .table td { vertical-align: middle; overflow-wrap: anywhere; }
.admin-main .form-control, .admin-main .form-select { font-size: .86rem; }
.admin-main .form-text { font-size: .72rem; color: var(--et-muted); }
.admin-main fieldset { min-width: 0; }
.admin-main legend { font-family: var(--et-serif); font-size: 1.5rem; }
.admin-main .nav-tabs { --bs-nav-tabs-link-active-bg: var(--et-white); --bs-nav-tabs-link-active-color: var(--et-wine); font-size: .85rem; }
.status-published { background: #e4eddf; color: #355326; }
.status-draft { background: #e9e6df; color: #615c51; }
.status-review { background: #f6ebd3; color: #795815; }
.status-archived { background: #e8dfe3; color: #6b4050; }
.admin-main pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--et-tint); padding: 1rem; font-size: .75rem; max-height: 500px; overflow-y: auto; }
@media (min-width: 992px) { .site-nav { display: flex !important; } }
@media (max-width: 1199.98px) {
    .hero-grid { gap: 2.5rem; }
    .hero-image > a { height: 380px; }
    .hero-image figcaption { right: 0; }
    .catalog-layout { grid-template-columns: 230px minmax(0,1fr); gap: 1.5rem; }
    .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .detail-overview { gap: 2rem; }
    .site-nav { gap: 1.3rem; }
}
@media (max-width: 991.98px) {
    .site-header-inner { min-height: 86px; flex-wrap: wrap; gap: 0; padding-top: 1rem; padding-bottom: 1rem; }
    .mobile-menu-toggle { display: block; }
    .site-nav { width: 100%; flex-basis: 100%; padding-top: 1rem; }
    .site-nav.show, .site-nav.collapsing { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; }
    .site-nav-link { font-size: .85rem; }
    .hero-section { padding-top: 2.5rem; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .hero-copy h1 { font-size: 2.8rem; }
    .hero-lead { font-size: .87rem; }
    .hero-copy>.eyebrow { font-size: .59rem; }
    .hero-image>a { height: 340px; }
    .hero-search { flex-wrap: wrap; }
    .hero-search input { min-width: 120px; }
    .hero-search .btn { width: 100%; }
    .hero-image figcaption { padding: 1rem; left: .7rem; }
    .hero-image figcaption>a { font-size: 1.15rem; }
    .section-heading { gap: 1.5rem; }
    .section-space { padding-top: 3rem; padding-bottom: 3rem; }
    .category-card { padding: 1.4rem; }
    .category-card h3 { font-size: 1.55rem; }
    .monument-grid { gap: 1.1rem; }
    .monument-card h3 { font-size: 1.25rem; }
    .monument-card-body { padding: 1rem; }
    .about-banner { gap: 2rem; padding-left: 1.5rem; }
    .catalog-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .filter-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1rem; }
    .filter-panel-heading, .filter-help, .filter-extra, .filter-panel>button { grid-column: 1/-1; }
    .filter-extra { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 1rem; }
    .filter-extra label { grid-row: 1; }
    .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .detail-overview { grid-template-columns: minmax(0,1.3fr) minmax(260px,1fr); }
    .summary-card { padding: 1.3rem; }
    .detail-jump-nav { gap: .75rem 1.2rem; }
    .location-card { padding: 1.5rem; }
    .institution-overview { gap: 2rem; }
    .about-intro { gap: 2rem; }
    .admin-shell { display: block; }
    .admin-sidebar { width: 100%; height: auto; position: static; padding: .7rem 1rem; }
    .admin-sidebar .navbar-brand { margin-bottom: .35rem !important; font-size: 1.25rem; padding: 0; }
    .admin-sidebar .navbar-brand small { display: inline !important; margin-left: .7rem; }
    .admin-sidebar nav { flex-direction: row !important; flex-wrap: nowrap; overflow-x: auto; padding-bottom: .2rem; }
    .admin-sidebar .nav-link { white-space: nowrap; font-size: .72rem; }
}
@media (max-width: 767.98px) {
    .container { padding-left: 1.2rem; padding-right: 1.2rem; }
    .brand-name { font-size: 1.6rem; }
    .brand-subtitle { font-size: .56rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-copy { padding-bottom: .5rem; }
    .hero-copy h1 { font-size: clamp(2.55rem,7.7vw,3.7rem); }
    .hero-lead { font-size: .96rem; max-width: none; }
    .hero-copy>.eyebrow { font-size: .6rem; }
    .hero-search { flex-wrap: nowrap; }
    .hero-search .btn { width: auto; }
    .hero-search input { min-width: 0; }
    .hero-image>a { height: 340px; }
    .hero-image figcaption { left: 1rem; right: 1rem; }
    .hero-archive-panel { min-height: 320px; }
    .collection-stats { margin-top: 2rem; grid-template-columns: repeat(2,1fr); row-gap: 1.5rem; padding: 1.5rem 0; }
    .collection-stats > div:nth-child(3) { border-left: 0; }
    .collection-stats strong { font-size: 1.9rem; }
    .section-heading { align-items: start; flex-direction: column; gap: .9rem; }
    .section-heading > p { max-width: none; }
    .category-grid { grid-template-columns: 1fr; gap: 1rem; }
    .category-card { padding: 1.5rem; position: relative; }
    .category-card .category-number { position: absolute; right: 1.5rem; top: 1.5rem; }
    .category-card h3 { padding-right: 2rem; font-size: 1.7rem; }
    .category-card p { margin-bottom: 1rem; }
    .monument-grid, .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .about-banner { grid-template-columns: 1fr; gap: 1rem; }
    .about-banner h2 { max-width: none; }
    .footer-main { flex-direction: column; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: .6rem; }
    .page-heading { padding-top: 2.4rem; padding-bottom: 2rem; }
    .detail-heading { display: block; }
    .print-button { margin-top: 1rem; }
    .detail-heading h1 { max-width: none; }
    .detail-overview { grid-template-columns: 1fr; gap: 2rem; }
    .summary-card .metadata-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 1.5rem; }
    .location-grid { grid-template-columns: 1fr; gap: 1rem; }
    .record-section { padding: 2.5rem 0; }
    .record-section h2 { font-size: 1.9rem; }
    .photo-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
    .parent-links { grid-template-columns: 1fr; }
    .timeline-entry { grid-template-columns: 1fr; gap: .5rem; }
    .documentation-group { padding: 1.3rem; }
    .directory-grid { grid-template-columns: 1fr; }
    .institution-card { padding: 1.5rem; }
    .institution-overview { grid-template-columns: 1fr; gap: 1.5rem; }
    .about-intro { grid-template-columns: 1fr; gap: 1rem; }
    .about-intro > h2 { max-width: none; }
    .record-authorship { padding: 1.5rem; }
    .catalog-pagination { flex-direction: column; align-items: start; }
    .pswp__custom-caption { left: 10px; right: 10px; bottom: 8px; font-size: .75rem; }
}
@media (max-width: 479.98px) {
    .monument-grid, .catalog-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    .monument-card h3 { font-size: 1.55rem; }
    .monument-card-body { padding: 1.3rem; }
    .monument-card-image { aspect-ratio: 1.5; }
    .hero-image>a { height: 285px; }
    .hero-copy h1 { font-size: 2.55rem; }
    .hero-search input { font-size: .75rem; }
    .hero-search .btn { padding: .65rem .8rem; }
    .filter-panel { display: block; }
    .filter-extra { display: block; }
    .summary-card .metadata-grid, .metadata-grid { grid-template-columns: 1fr; }
    .photo-gallery { gap: .75rem; }
    .gallery-figure figcaption { font-size: .6rem; }
    .directory-search { flex-wrap: wrap; }
    .directory-search .form-control, .directory-search .form-select { flex-basis: 100%; }
    .site-nav.show { gap: .5rem 1rem; }
    .site-nav-link { font-size: .78rem; }
    .brand-mark { width: 31px; }
    .brand { gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media print {
    body { background: white; color: black; font-size: 10pt; }
    .site-header, .site-footer, .detail-jump-nav, .print-button, .breadcrumb-nav, .admin-sidebar, .admin-topbar, .skip-link { display: none !important; }
    .container { max-width: none; width: 100%; padding: 0; }
    .detail-page { padding: 0; }
    .detail-heading h1 { font-size: 28pt; }
    h2, .record-section h2 { font-size: 19pt; }
    h3 { font-size: 14pt; }
    .record-section { padding: 1rem 0; }
    .detail-overview, .location-grid { gap: 1rem; }
    .summary-card, .location-card, .documentation-group { break-inside: avoid; padding: 1rem; }
    .record-authorship { padding: 1rem; }
    .photo-gallery { grid-template-columns: repeat(3,1fr); }
    .gallery-figure { break-inside: avoid; }
    .monument-grid { grid-template-columns: repeat(3,1fr); }
    a { color: inherit; }
    details > * { display: block !important; }
}
