/* Tochter der werkstatt kesslfligga. Originaldateien aus deren lokaler Schriftbibliothek. */
@font-face { font-family: "Playfair Display"; src: url('/assets/fonts/PlayfairDisplay-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url('/assets/fonts/EBGaramond-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --admiral-black: #121C2B;
  --admiral-dark: #203750;
  --admiral: #305373;
  --gold: #CCC18B;
  --cream: #F5F0E6;
  --paper: #FFFDF8;
  --ink: var(--admiral-black);
  --muted: #4F5B68;
  --line: #CCD0D3;
  --font-title: "Playfair Display", Georgia, serif;
  --font-text: "EB Garamond", Georgia, serif;
  --font-ui: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow: 0 6px 22px rgb(18 28 43 / 8%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-ui); line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(18px, 4vw, 64px); background: var(--admiral-black); color: var(--paper); border-bottom: 1px solid var(--gold); }
.site-identity { min-width: 0; }
.brand { display: flex; align-items: center; gap: 14px; width: fit-content; text-decoration: none; }
.brand img { width: 74px; height: 48px; object-fit: contain; }
.brand span { display: block; font-family: var(--font-title); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 400; line-height: 1.2; }
.brand-origin { margin: 0 0 0 88px; font-size: .875rem; line-height: 1.6; }
.brand-origin a { display: inline-block; color: var(--gold); text-underline-offset: 4px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-size: .94rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--gold); text-decoration: underline; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, audio:focus-visible, video:focus-visible { outline: 3px solid var(--admiral); outline-offset: 4px; }
.site-header :focus-visible, footer :focus-visible, .player :focus-visible { outline-color: var(--gold); }

.narrow { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.eyebrow { margin: 0 0 10px; color: var(--admiral-black); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 400; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; hyphens: none; overflow-wrap: normal; }
h1 { font-size: clamp(2.45rem, 7vw, 5.7rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.7rem); }
h3 { font-size: clamp(1.35rem, 3vw, 2rem); }
.lead { font-family: var(--font-text); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.5; color: var(--ink); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border: 0; border-radius: 8px; padding: 12px 23px; background: var(--admiral-black); color: #fff; font-weight: 780; text-decoration: none; cursor: pointer; box-shadow: none; }
.button:hover, .button:focus-visible { background: var(--admiral-dark); }
.quiet-link { color: var(--admiral-black); font-weight: 720; text-underline-offset: 4px; }

.home-hero { min-height: 640px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); background: var(--cream); }
.home-hero-image { background: linear-gradient(90deg, transparent 70%, var(--cream)), url('/img/Titelbild.jpeg') center/cover no-repeat; min-height: 540px; }
.home-hero-copy { align-self: center; min-width: 0; padding: 56px clamp(28px, 4vw, 64px) 56px 24px; }
.home-hero-copy h1 { font-size: clamp(2.5rem, 4.15vw, 4rem); margin-bottom: 28px; color: var(--admiral-black); }
.home-hero-copy > p:not(.eyebrow) { max-width: 38ch; margin-bottom: 30px; font-family: var(--font-text); font-size: 1.4rem; line-height: 1.5; }

.map-section { padding: 90px 0 0; background: var(--cream); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading h2 { margin-bottom: 0; color: var(--admiral-black); }
.section-heading > p { max-width: 38ch; margin-bottom: 8px; color: var(--muted); }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: -15px; margin-bottom: 22px; color: var(--muted); font-size: .86rem; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-symbol { display: inline-block; width: 16px; height: 16px; border-radius: 5px; }
.legend-symbol--published { background: var(--admiral-black); }
.legend-symbol--open { border: 2px solid var(--admiral); background: transparent; }
#bankerl-map { height: min(72vh, 690px); min-height: 480px; width: 100%; overflow: hidden; background: var(--cream); border-block: 1px solid var(--line); z-index: 1; }
.bankerl-popup { width: 220px; }
.bankerl-popup img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.bankerl-popup strong { display: block; font-family: var(--font-title); font-size: 1.12rem; margin-bottom: 3px; }
.bankerl-popup a { display: inline-block; margin-top: 8px; color: var(--admiral-black); font-weight: 800; min-height: 44px; padding-top: 10px; }
.leaflet-marker-icon.bankerl-marker { background: var(--paper); border: 2px solid var(--admiral-black); border-radius: 8px; box-shadow: 0 2px 6px rgb(18 28 43 / 15%); }
.leaflet-marker-icon.bankerl-marker--open { border-color: var(--admiral); background: rgba(255,253,248,.9); box-shadow: 0 2px 5px rgb(18 28 43 / 8%); }
.leaflet-container .leaflet-marker-pane .bankerl-marker-drawing { position: absolute; left: 3px; bottom: 3px; width: 56px; height: auto; pointer-events: none; }
.bankerl-marker--open .bankerl-marker-drawing { opacity: .46; }
.bankerl-marker-number { position: absolute; top: 1px; left: 50%; margin-left: -12px; display: flex; width: 24px; height: 23px; align-items: center; justify-content: center; border-radius: 6px; background: var(--admiral-black); color: #fff; font-weight: 800; font-size: 13px; line-height: 1; pointer-events: none; }
.bankerl-marker--open .bankerl-marker-number { border: 2px solid var(--admiral); background: var(--paper); color: var(--admiral-black); }
.popup-status { display: block; color: var(--muted); }
.popup-status--open { color: var(--muted); font-weight: 700; }

.bench-section { padding-block: 95px; }
.bench-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bench-card { display: grid; grid-template-columns: 112px 38px 1fr 22px; gap: 16px; align-items: center; min-height: 112px; padding: 10px 18px 10px 10px; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.bench-card:hover, .bench-card:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.bench-card img { width: 112px; height: 90px; object-fit: cover; border-radius: 12px; }
.bench-number { color: var(--admiral-black); font-weight: 820; }
.bench-copy strong, .bench-copy small { display: block; }
.bench-copy strong { font-size: 1.06rem; }
.bench-copy small { color: var(--muted); }
.bench-card--open { border-color: var(--admiral); background: var(--paper); }
.status-badge { display: inline-flex; width: max-content; margin: 8px 0 2px; padding: 7px 11px; border-radius: 999px; font-size: .84rem; font-weight: 780; }
.status-badge--open { border: 1px solid var(--admiral); background: var(--paper); color: var(--admiral-black); }

.about-section { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(38px, 8vw, 110px); padding-block: 80px 110px; }
.about-section img { width: 100%; max-height: 480px; object-fit: contain; border-radius: var(--radius); }
.about-section h2 { color: var(--admiral-black); }
.about-section p:last-child { max-width: 62ch; font-family: var(--font-text); font-size: 1.4rem; line-height: 1.5; }

.detail { padding-bottom: 100px; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 580px; background: var(--cream); }
.detail-hero > img { width: 100%; height: 100%; max-height: 700px; object-fit: cover; }
.detail-copy { min-width: 0; align-self: center; padding: clamp(28px, 3.2vw, 50px); }
.detail-copy h1 { color: var(--admiral-black); font-size: clamp(2rem, 3.3vw, 3.15rem); hyphens: none; overflow-wrap: normal; }
.detail-copy .inventory-area { display: inline-flex; align-items: center; width: max-content; max-width: 100%; margin: -4px 0 18px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; background: transparent; color: var(--admiral-black); font-size: .82rem; font-weight: 720; line-height: 1.25; }
.detail-copy .status-badge { max-width: 100%; }
.detail-copy .button { margin-top: 12px; }
.detail-copy .detail-map-link { display: block; width: max-content; margin-top: 18px; }
.story-section { width: min(1000px, calc(100% - 36px)); margin: 90px auto; }
.story-picker { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--line); border-radius: 22px; background: var(--cream); }
.story-picker-label { margin-bottom: 12px; color: var(--admiral-black); font-size: .82rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.story-list { display: grid; gap: 10px; }
.story-card { width: 100%; display: grid; grid-template-columns: 42px 1fr 28px; align-items: center; gap: 14px; min-height: 68px; padding: 10px 15px 10px 10px; border: 2px solid transparent; border-radius: 14px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.story-card:hover, .story-card:focus-visible { border-color: var(--admiral); box-shadow: 0 7px 20px rgb(18 28 43 / 6%); }
.story-card.is-active { border-color: var(--admiral-black); background: var(--paper); box-shadow: none; }
.story-number { display: flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 50%; background: var(--cream); color: var(--admiral-black); font-size: .78rem; font-weight: 820; }
.story-card.is-active .story-number { background: var(--admiral-black); color: #fff; }
.story-choice-copy strong, .story-choice-copy small { display: block; }
.story-choice-copy strong { font-family: var(--font-title); font-size: 1.15rem; font-weight: 400; line-height: 1.22; }
.story-choice-copy small { margin-top: 3px; color: var(--muted); font-size: .78rem; font-weight: 720; }
.story-card.is-active .story-choice-copy small, .story-card.is-active .play-symbol { color: var(--admiral-black); }
.play-symbol { color: var(--admiral); font-weight: 820; text-align: center; }
.player { display: grid; grid-template-columns: 230px 1fr; margin-top: 16px; overflow: hidden; border-radius: 22px; background: var(--admiral-black); color: #fff; box-shadow: var(--shadow); }
.player-art { min-height: 230px; background: var(--admiral-black); }
.player-art img { width: 100%; height: 100%; object-fit: cover; }
.player-main { align-self: center; padding: clamp(26px, 4vw, 44px); }
.player-kicker { margin-bottom: 6px; color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.player-main h3 { margin-bottom: 8px; }
.player-main p[data-player-summary] { margin-bottom: 0; color: var(--cream); font-family: var(--font-text); font-size: 1.25rem; line-height: 1.5; }
.player audio { display: block; width: 100%; margin: 12px 0 16px; accent-color: var(--admiral-black); }
.story-text { font-family: var(--font-text); font-size: 1.25rem; line-height: 1.55; max-width: 68ch; margin-inline: auto; margin-top: 24px; padding: 26px; border-radius: 16px; background: var(--cream); white-space: pre-line; }
.story-text.poem { max-width: 42rem; white-space: normal; }
.story-text.poem p { margin-bottom: 1.4em; font-family: var(--font-text); font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.55; overflow-wrap: anywhere; }
.story-text.poem p:last-child { margin-bottom: 0; }
.video-section { margin-block: 70px; }
.video-section h2 { color: var(--admiral-black); }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--cream); }
.video-card + .video-card { margin-top: 24px; }
.video-card video { display: block; width: 100%; max-height: 70vh; background: var(--admiral-black); }
.video-card > div { padding: 22px 24px; }
.video-card h3 { margin-bottom: 7px; color: var(--admiral-black); }
.video-card p { margin-bottom: 0; color: var(--muted); }
.related-links { margin-block: 70px; }
.related-card { display: flex; justify-content: space-between; gap: 20px; padding: 20px; border-block: 1px solid var(--line); text-decoration: none; }
.related-card strong, .related-card small { display: block; }
.related-card small { color: var(--muted); }
.empty-state { padding-block: 120px; text-align: center; }

footer { display: grid; grid-template-columns: 1fr auto; gap: 28px; padding: 52px clamp(20px, 5vw, 70px); background: var(--admiral-black); color: #f5f0e6; }
footer > div:first-child strong, footer > div:first-child span { display: block; }
footer > div:last-of-type { display: flex; gap: 24px; }
footer small { grid-column: 1 / -1; color: var(--cream); }
.footer-origin { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 20px; }
.footer-origin img { width: 44px; height: 44px; }
.footer-origin__copy { border-left: 1px solid var(--gold); padding-left: 20px; }

.admin-body { min-height: 100vh; background: var(--cream); }
.admin-main { padding: clamp(30px, 6vw, 80px) 18px; }
.admin-panel { width: min(760px, 100%); margin: 0 auto; padding: clamp(26px, 5vw, 56px); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.admin-panel + .admin-panel { margin-top: 26px; }
.login-panel { width: min(480px, 100%); }
.admin-panel h1 { margin-bottom: 12px; color: var(--admiral-black); font-size: clamp(2.3rem, 6vw, 4rem); }
.admin-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.section-navigation { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; }
.section-navigation a { color: var(--admiral-black); font-weight: 720; text-underline-offset: 4px; }
.section-navigation a[aria-current="page"] { color: var(--admiral-black); }
.admin-panel form { display: grid; gap: 20px; margin-top: 30px; }
.admin-panel label { display: grid; gap: 7px; font-weight: 760; }
.admin-panel input, .admin-panel select, .admin-panel textarea { width: 100%; border: 1px solid #bfc7c2; border-radius: 10px; padding: 13px 14px; background: #fff; color: var(--ink); }
.admin-panel input:focus, .admin-panel select:focus, .admin-panel textarea:focus { outline: 3px solid var(--admiral); outline-offset: 3px; border-color: var(--admiral); }
.admin-panel label small { color: var(--muted); font-weight: 500; }
.publish-form .step { display: grid; grid-template-columns: 38px 1fr; align-items: start; gap: 14px; }
.publish-form .step > span { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--admiral-black); color: #fff; font-weight: 800; }
.publish-form details { margin-left: 52px; padding: 14px 0; border-block: 1px solid var(--line); }
.publish-form summary { color: var(--admiral-black); font-weight: 760; cursor: pointer; }
.optional-fields { display: grid; gap: 20px; padding-top: 20px; }
.publish-button { margin-left: 52px; justify-self: start; }
.notice { padding: 13px 15px; margin: 22px 0 0; border-radius: 10px; }
.notice.success { background: #e4f3e9; color: #174d2c; }
.notice.error { background: #fae7e1; color: #7f2d1c; }
.resonance-panel { width: min(920px, 100%); }
.resonance-panel h2 { margin-bottom: 10px; color: var(--admiral-black); }
.resonance-table-wrap { margin-top: 24px; overflow-x: auto; }
.resonance-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.resonance-table th, .resonance-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.resonance-table th:first-child { text-align: left; }
.resonance-table thead th { color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.resonance-table tbody th { font-weight: 700; }
.resonance-detail-table tbody th { display: grid; gap: 2px; }
.resonance-detail-table tbody th small { color: var(--muted); font-weight: 500; }
.resonance-details { margin-top: 24px; }
.resonance-details summary { color: var(--admiral-black); font-weight: 760; cursor: pointer; }
.inventory-panel { width: min(1120px, 100%); }
.inventory-tools { display: grid; gap: 16px; margin-top: 28px; }
.filter-list { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-chip { min-height: 44px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px; background: var(--paper); color: var(--admiral-black); font-weight: 720; cursor: pointer; }
.filter-chip:hover, .filter-chip:focus-visible, .filter-chip.is-active { border-color: var(--admiral-black); background: var(--admiral-black); color: #fff; }
.inventory-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.inventory-card { min-width: 0; display: grid; gap: 15px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.inventory-card[hidden] { display: none; }
.inventory-card__heading { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 16px; }
.inventory-card h3 { overflow-wrap: anywhere; margin: 4px 0 0; font-size: 1.45rem; }
.inventory-number { color: var(--admiral-black); font-size: .78rem; font-weight: 820; letter-spacing: .07em; }
.inventory-area { margin: -8px 0 0; color: var(--muted); }
.status-pill { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 32px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: .78rem; font-weight: 780; }
.status-pill--public { border-color: var(--admiral); background: var(--admiral); color: #fff; }
.status-pill--withdrawn { border-style: dashed; color: var(--muted); }
.inventory-facts { display: grid; gap: 8px; margin: 0; }
.inventory-facts div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 7px; border-bottom: 1px solid var(--line); }
.inventory-facts dt { color: var(--muted); }
.inventory-facts dd { margin: 0; font-weight: 720; text-align: right; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: .88rem; }
.check-list li::before { display: inline-block; width: 1.25em; color: var(--admiral); content: "✓"; font-weight: 820; }
.check-list .is-missing { color: var(--muted); }
.check-list .is-missing::before { color: var(--admiral-black); content: "○"; }
.card-actions, .form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.button--secondary { justify-self: start; border: 1px solid var(--admiral-black); background: transparent; color: var(--admiral-black); box-shadow: none; }
.button--secondary:hover, .button--secondary:focus-visible { background: var(--admiral-black); color: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.field-feedback { min-height: 1.5em; margin: -12px 0 0; color: var(--muted); }
.form-actions--sticky { position: sticky; bottom: 10px; z-index: 4; margin-inline: -12px; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 253, 248, .96); box-shadow: var(--shadow); }

@media (max-width: 780px) {
  .site-header { min-height: 66px; }
  .site-header { flex-wrap: wrap; gap: 10px; }
  .site-identity { width: 100%; }
  .brand { gap: 10px; }
  .brand-origin { margin-left: 0; margin-top: 7px; font-size: .875rem; }
  .site-header nav { gap: 24px; }
  .brand img { width: 52px; height: 36px; }
  .site-header nav a { font-size: .86rem; }

  .admin-navigation { flex-wrap: wrap; justify-content: flex-end; }
  .home-hero { min-height: auto; grid-template-columns: 1fr; }
  .home-hero-image { min-height: 45vh; background-image: linear-gradient(0deg, var(--cream), transparent 38%), url('/img/Titelbild.jpeg'); }
  .home-hero-copy { padding: 18px 22px 54px; }
  .home-hero-copy h1 { font-size: clamp(2.35rem, 7.2vw, 3.4rem); }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 16px; }
  .map-legend { gap: 8px 16px; }
  .map-legend span { max-width: 100%; }
  #bankerl-map { min-height: 430px; height: min(68svh, 620px); }
  .bankerl-popup { width: min(220px, calc(100vw - 76px)); }
  .leaflet-container .leaflet-marker-pane .bankerl-marker-drawing { left: 3px; bottom: 3px; width: 47px; }
  .bankerl-marker-number { width: 21px; height: 20px; margin-left: -10.5px; border-radius: 5px; font-size: 11.5px; }
  .bench-grid { grid-template-columns: 1fr; }
  .bench-card { grid-template-columns: 86px 30px 1fr 18px; gap: 11px; }
  .bench-card img { width: 86px; height: 76px; }
  .about-section { grid-template-columns: 1fr; }
  .about-section img { max-width: 360px; margin-inline: auto; }
  .detail-hero { grid-template-columns: 1fr; min-height: 0; }
  .detail-hero > img { height: 34vh; min-height: 260px; }
  .detail-copy { padding: 34px 20px 46px; }
  .story-section { width: min(100% - 28px, 1000px); margin-block: 64px; }
  .story-picker { padding: 14px; border-radius: 18px; }
  .story-card { grid-template-columns: 38px 1fr 24px; gap: 11px; min-height: 62px; padding: 8px 11px 8px 8px; }
  .story-number { width: 34px; height: 34px; }
  .story-choice-copy strong { font-size: 1rem; }
  .player { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .player-art { min-height: 0; height: clamp(204px, 60vw, 252px); padding: 12px 16px 0; }
  .player-art img { object-fit: contain; }
  .player-main { min-width: 0; padding: 18px 20px 24px; }
  .player-main h3 { margin-bottom: 0; font-size: 1.55rem; line-height: 1.2; overflow-wrap: anywhere; }
  .player audio { min-height: 54px; color-scheme: light; }
  .player-main p[data-player-summary] { font-size: 1.125rem; line-height: 1.5; overflow-wrap: anywhere; }
  .video-card > div { padding: 18px; }
  footer { grid-template-columns: 1fr; }
  footer small { grid-column: auto; }
  .admin-heading { display: block; }
  .publish-form details, .publish-button { margin-left: 0; }
  .admin-main { padding: 18px 10px 44px; }
  .admin-panel { padding: 22px 16px; border-radius: 18px; }
  .admin-heading .button { width: 100%; margin-top: 12px; }
  .inventory-card { padding: 17px; }
  .inventory-card__heading { align-items: center; }
  .check-list { grid-template-columns: 1fr 1fr; }
  .card-actions .button { flex: 1; }
  .form-actions--sticky .button { flex: 1; }
}

@media (max-width: 480px) {
  .leaflet-container .leaflet-marker-pane .bankerl-marker-drawing { left: 2px; bottom: 2px; width: 42px; }
  .bankerl-marker-number { width: 19px; height: 18px; margin-left: -9.5px; border-radius: 4px; font-size: 10.5px; }
}

@media (min-width: 781px) {
  .inventory-grid, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bench-card, .story-card { transition: none; }
}

/* Shared rhythm and accessible interaction details. */
.home-hero-copy h1 span { display: inline-block; white-space: nowrap; }
.home-hero-copy h1 { max-width: 100%; }
.button:active { background: var(--admiral); }
.quiet-link:hover, .related-card:hover { color: var(--admiral); }
footer > div:first-child strong { font-family: var(--font-title); font-size: 1.5rem; font-weight: 400; margin-bottom: 8px; }
footer > div:first-child a { color: var(--gold); display: inline-block; text-underline-offset: 4px; }
footer > div:last-of-type { flex-wrap: wrap; }
footer > div:last-of-type a { min-height: 44px; display: inline-flex; align-items: center; }
.story-picker, .player, .story-text, .video-card { border-radius: var(--radius); }
.story-card { border-radius: 8px; }
.story-choice-copy { min-width: 0; }
.story-card.is-active { border-color: var(--admiral-black); }
.story-card.is-active .play-symbol { color: var(--admiral-black); }
.status-badge { width: fit-content; border-radius: 8px; }
.related-card { align-items: center; }
.section-heading > p, .video-card p { font-family: var(--font-text); font-size: 1.25rem; line-height: 1.5; }
.leaflet-container { font-family: var(--font-ui); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--paper); color: var(--ink); }
.leaflet-container a { color: var(--admiral-black); }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink); width: 44px; height: 44px; display: grid; place-content: center; }
.leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; }
.bankerl-popup strong { font-weight: 400; }
.admin-body .brand span { font-size: clamp(1.5rem, 2.5vw, 2rem); }
@media (max-width: 780px) {
  .home-hero { min-height: auto; }
  .home-hero-copy > p:not(.eyebrow), .about-section p:last-child { font-size: 1.25rem; }
  .detail-copy h1 { font-size: clamp(2rem, 5.5vw, 2.8rem); }
  .detail-copy .lead { font-size: 1.25rem; }
  .bench-card { grid-template-columns: 70px 24px minmax(0, 1fr) 16px; gap: 10px; }
  .bench-card img { width: 70px; height: 76px; }
  .bench-copy strong { font-size: 1rem; overflow-wrap: break-word; }
  .admin-body .site-header { align-items: start; }
  .admin-navigation { justify-content: flex-start; }
}
