:root {
  color-scheme: light;
  --ink: #17140f;
  --muted: #6c6254;
  --paper: #ece0bf;
  --paper-dark: #d2bc87;
  --line: #242017;
  --accent: #146b5f;
  --accent-2: #b44d2a;
  --highlight: #ffd45a;
  --panel: #fffaf0;
  --shadow: 0 18px 40px rgba(29, 24, 15, 0.22);
  --poster-dark: #16120f;
  --poster-mid: #2a201a;
  --poster-cream: #fff0c2;
  --poster-red: #d14d32;
  --poster-gold: #f2b84b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 16% 0%, rgba(134, 63, 36, 0.36), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(184, 110, 45, 0.18), transparent 28%),
    linear-gradient(180deg, #4b2f20 0%, #3a2318 38%, #271710 70%, #1b100c 100%);
}

.thanks-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.thanks-card {
  width: min(680px, 100%);
  border: 3px solid rgba(255, 240, 194, 0.72);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(42, 32, 26, 0.96), rgba(22, 18, 15, 0.98));
  box-shadow: 0 18px 0 rgba(23, 20, 15, 0.28), var(--shadow);
  color: var(--poster-cream);
  padding: 30px;
}

.thanks-card h1 {
  color: var(--poster-cream);
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1;
  margin: 0 0 14px;
  text-shadow: 2px 3px 0 #000;
}

.thanks-card p {
  font: 18px/1.45 Arial, sans-serif;
  margin: 0 0 18px;
}

.thanks-link {
  display: inline-block;
  border: 2px solid rgba(23, 20, 15, 0.82);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff6ca 0%, #f2d88c 100%);
  color: var(--ink);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.38);
  font: 700 18px/1.1 Georgia, "Times New Roman", serif;
  padding: 12px 18px;
  text-decoration: none;
}

button {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: stretch;
  min-height: 100vh;
}

.map-stage {
  display: grid;
  grid-template-rows: auto auto;
  align-self: start;
  min-width: 0;
  min-height: 100vh;
  background:
    linear-gradient(rgba(255, 248, 222, 0.9), rgba(255, 248, 222, 0.88)),
    url("./assets/full_enhanced.png") center / cover no-repeat;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 12px 6px;
  padding: 18px 86px 17px 20px;
  border: 3px solid rgba(255, 240, 194, 0.78);
  border-radius: 5px;
  background:
    linear-gradient(100deg, rgba(22, 18, 15, 0.98), rgba(58, 37, 28, 0.95)),
    repeating-linear-gradient(0deg, rgba(255, 240, 194, 0.05) 0 1px, transparent 1px 20px);
  box-shadow:
    0 0 0 5px rgba(209, 77, 50, 0.18),
    0 20px 45px rgba(0, 0, 0, 0.36);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--poster-cream);
  font-size: 38px;
  line-height: 1.02;
  font-weight: 700;
  text-shadow:
    2px 2px 0 rgba(0, 0, 0, 0.65),
    0 0 22px rgba(242, 184, 75, 0.18);
}

.title-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.title-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--poster-gold);
  font: 800 12px/1.1 Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.map-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--poster-cream);
  font: 700 13px/1.15 Arial, sans-serif;
}

.stat-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 28px;
  padding: 6px 10px;
  border: 2px solid rgba(255, 240, 194, 0.72);
  border-radius: 5px;
  background: rgba(255, 240, 194, 0.08);
  color: var(--poster-cream);
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font: inherit;
}

.stat-pill:hover,
.stat-pill:focus-visible {
  background: rgba(255, 240, 194, 0.18);
  outline: none;
}

.stat-pill strong {
  color: var(--poster-gold);
  font-size: 20px;
  line-height: 1;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.site-notice {
  color: #ffe28a;
  letter-spacing: 0.08em;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.site-menu {
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 25;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 42px;
  border: 2px solid rgba(255, 240, 194, 0.88);
  border-radius: 5px;
  background: rgba(255, 240, 194, 0.96);
  color: var(--ink);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.34);
  cursor: pointer;
  font: 900 24px/1 Arial, sans-serif;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  background: #ffe7a5;
  outline: 3px solid rgba(242, 184, 75, 0.45);
  outline-offset: 2px;
}

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  width: min(280px, calc(100vw - 34px));
  padding: 8px;
  border: 3px solid rgba(255, 240, 194, 0.84);
  border-radius: 5px;
  background:
    linear-gradient(100deg, rgba(22, 18, 15, 0.98), rgba(58, 37, 28, 0.98)),
    repeating-linear-gradient(0deg, rgba(255, 240, 194, 0.05) 0 1px, transparent 1px 20px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

.menu-panel[hidden] {
  display: none;
}

.menu-panel button,
.menu-panel a {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-bottom: 1px solid rgba(255, 240, 194, 0.22);
  background: transparent;
  color: var(--poster-cream);
  cursor: pointer;
  font: 800 15px/1.2 Arial, sans-serif;
  text-align: left;
  text-decoration: none;
}

.menu-panel button:hover,
.menu-panel button:focus-visible,
.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: rgba(255, 240, 194, 0.14);
  color: var(--poster-gold);
  outline: none;
}

.menu-panel > :last-child {
  border-bottom: 0;
}

.icon-button,
.text-button,
.musician-button {
  border: 2px solid rgba(255, 240, 194, 0.85);
  background: rgba(255, 240, 194, 0.95);
  color: var(--ink);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.34);
  cursor: pointer;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.text-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 700;
}

.admin-only {
  display: none;
}

body.can-edit .admin-only {
  display: inline-block;
}

.text-button.is-active {
  background: #ffd45a;
  border-color: var(--accent-2);
}

.map-wrap {
  position: relative;
  overflow: hidden;
  margin: 0 6px 14px;
  border: 4px solid #21130d;
  outline: 1px solid rgba(255, 240, 194, 0.7);
  outline-offset: -3px;
  background: var(--paper);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.82),
    0 0 0 5px rgba(84, 43, 26, 0.58),
    0 14px 30px rgba(54, 31, 20, 0.28);
  min-height: 680px;
}

.map-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 1200px;
  height: 1120px;
  transform-origin: 0 0;
  transition: transform 520ms cubic-bezier(.2,.8,.2,1);
  background:
    linear-gradient(rgba(255, 250, 225, 0.72), rgba(255, 250, 225, 0.78)),
    url("./ylasavonbandit_source.jpg") center / 100% 100% no-repeat;
}

.paper-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(55, 43, 25, 0.06) 0 1px, transparent 1px 38px),
    repeating-linear-gradient(90deg, rgba(55, 43, 25, 0.04) 0 1px, transparent 1px 42px);
  mix-blend-mode: multiply;
}

.links,
.work-grid,
.bands-layer {
  position: absolute;
  inset: 0;
  width: 1200px;
  height: 1120px;
}

.links {
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}

.work-grid {
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}

.work-grid .minor-line {
  stroke: rgba(31, 78, 121, 0.16);
  stroke-width: 1;
}

.work-grid .major-line {
  stroke: rgba(180, 77, 42, 0.33);
  stroke-width: 1.4;
}

.work-grid text {
  fill: rgba(23, 20, 15, 0.72);
  font: 13px/1 Arial, sans-serif;
  paint-order: stroke;
  stroke: rgba(255, 248, 219, 0.86);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.work-grid .year-label-bg {
  fill: rgba(255, 248, 219, 0.92);
  stroke: rgba(23, 20, 15, 0.42);
  stroke-width: 1;
}

.work-grid .year-label {
  fill: #17140f;
  font: 700 14px/1 Arial, sans-serif;
  stroke: none;
}

.links path {
  fill: none;
  stroke: rgba(28, 24, 18, 0.78);
  stroke-width: 3.2;
  stroke-linecap: round;
  marker-end: url(#arrow);
  transition: opacity 240ms ease, stroke 240ms ease, stroke-width 240ms ease;
}

.links path.is-active {
  stroke: var(--accent-2);
  stroke-width: 5;
  opacity: 1;
}

.links path.is-dim {
  opacity: 0.12;
}

.links marker path {
  fill: currentColor;
}

.bands-layer {
  z-index: 3;
}

.coordinate-readout {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 5;
  min-width: 118px;
  padding: 6px 9px;
  border: 2px solid rgba(23, 20, 15, 0.75);
  border-radius: 5px;
  background: rgba(255, 248, 219, 0.9);
  color: var(--ink);
  font: 700 14px/1.2 Arial, sans-serif;
  box-shadow: 2px 3px 0 rgba(23, 20, 15, 0.16);
  pointer-events: none;
}

.band-card {
  position: absolute;
  width: 178px;
  min-height: 72px;
  border: 3px solid rgba(18, 15, 10, 0.88);
  border-radius: 4px 9px 5px 7px;
  background: rgba(255, 248, 219, 0.94);
  color: var(--ink);
  box-shadow:
    7px 8px 0 rgba(35, 27, 17, 0.28),
    11px 13px 15px rgba(35, 27, 17, 0.22);
  cursor: pointer;
  transform: translate(-50%, -50%) rotate(var(--tilt));
  transition:
    transform 240ms ease,
    opacity 240ms ease,
    filter 240ms ease,
    background 240ms ease,
    border-color 240ms ease;
}

.is-editing .band-card {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.is-editing .band-card.is-dragging {
  cursor: grabbing;
  z-index: 10;
  opacity: 0.96;
}

.band-card::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(35, 27, 17, 0.16);
  pointer-events: none;
}

.band-card:hover,
.band-card:focus-visible {
  background: #fff3bf;
  outline: none;
  transform: translate(-50%, -50%) rotate(var(--tilt)) scale(1.04);
}

.band-card.is-selected {
  border-color: var(--accent-2);
  background: #ffe28a;
  z-index: 7;
  box-shadow:
    8px 9px 0 rgba(121, 55, 29, 0.34),
    13px 15px 18px rgba(35, 27, 17, 0.24);
  transform: translate(-50%, -50%) rotate(var(--tilt)) scale(1.1);
}

.band-card.is-related {
  border-color: var(--accent);
  background: #d9f0df;
  z-index: 6;
  box-shadow:
    7px 8px 0 rgba(27, 77, 65, 0.24),
    11px 13px 15px rgba(35, 27, 17, 0.2);
}

.band-card.is-dim {
  opacity: 0.28;
  filter: grayscale(0.85);
}

.band-inner {
  position: relative;
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 66px;
  padding: 11px 12px 10px;
}

.band-name {
  font-size: 18px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}

.band-period {
  font-size: 12px;
  color: var(--muted);
  font-family: Arial, sans-serif;
}

.band-hometown {
  font-size: 11px;
  color: #3f392f;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.band-hometown.home-sonkajarvi {
  color: #b3261e;
}

.band-hometown.home-iisalmi {
  color: #1f64b5;
}

.band-hometown.home-vierema {
  color: #2f7d32;
}

.band-hometown.home-lapinlahti {
  color: #b08a00;
}

.detail-panel {
  min-height: 100%;
  border-left: 3px solid rgba(255, 240, 194, 0.72);
  background:
    linear-gradient(rgba(255, 250, 240, 0.94), rgba(255, 250, 240, 0.95)),
    url("./assets/full_enhanced.png") center / cover no-repeat;
  padding: 22px;
  overflow: auto;
  box-shadow: inset 6px 0 0 rgba(209, 77, 50, 0.18);
}

.panel-section {
  padding: 0 0 22px;
  margin: 0 0 20px;
  border-bottom: 2px dashed rgba(23, 20, 15, 0.28);
}

.panel-section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.eyebrow {
  color: var(--poster-red);
  font: 700 12px/1.1 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

#bandTitle {
  font-size: 31px;
  line-height: 1.05;
  margin-bottom: 8px;
}

body.is-archive-view #bandTitle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-right: 2px;
}

.archive-close {
  flex: 0 0 auto;
  min-width: 38px;
  min-height: 38px;
  border: 2px solid rgba(23, 20, 15, 0.72);
  border-radius: 50%;
  background: var(--poster-gold);
  color: var(--ink);
  box-shadow: 3px 4px 0 rgba(23, 20, 15, 0.2);
  cursor: pointer;
  font: 900 22px/1 Arial, sans-serif;
  text-align: center;
}

.archive-close:hover,
.archive-close:focus-visible {
  background: #ffe28a;
  outline: 3px solid rgba(20, 107, 95, 0.28);
}

.detail-panel.is-intro #bandTitle {
  display: block;
  margin-bottom: 0;
  padding: 12px 14px 6px;
  border: 2px solid rgba(242, 184, 75, 0.55);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: rgba(18, 11, 7, 0.94);
  color: var(--poster-gold);
  box-shadow: 3px 0 0 rgba(23, 20, 15, 0.18);
}

.period,
.description {
  color: #4d4539;
  font: 15px/1.45 Arial, sans-serif;
}

.description {
  white-space: pre-line;
}

.detail-panel.is-intro .description {
  margin-top: 0;
  padding: 6px 14px 15px;
  border: 2px solid rgba(242, 184, 75, 0.55);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: rgba(18, 11, 7, 0.94);
  color: var(--poster-cream);
  box-shadow: 3px 4px 0 rgba(23, 20, 15, 0.18);
}

.detail-panel.is-intro .description a {
  color: var(--poster-gold);
  font-weight: 700;
  text-decoration-color: rgba(255, 211, 107, 0.75);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.detail-panel.is-intro .description a:hover,
.detail-panel.is-intro .description a:focus-visible {
  color: #fff4c8;
}

.intro-note {
  display: grid;
  gap: 11px;
  margin-top: 16px;
  padding: 14px 14px 15px;
  border: 2px solid rgba(23, 20, 15, 0.22);
  border-radius: 6px;
  background: rgba(255, 248, 222, 0.76);
  color: #4d4539;
  font: 14px/1.45 Arial, sans-serif;
  box-shadow: 3px 4px 0 rgba(23, 20, 15, 0.18);
}

.intro-note[hidden] {
  display: none;
}

.intro-signature {
  color: var(--ink);
  font-weight: 700;
}

.intro-feedback {
  padding-top: 10px;
  border-top: 1px dashed rgba(23, 20, 15, 0.32);
  color: var(--accent-2);
  font-weight: 700;
}

.intro-feedback a {
  color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.feedback-page {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(255, 248, 222, 0.88), rgba(255, 248, 222, 0.88)),
    url("./assets/full_enhanced.png") center / cover fixed no-repeat;
}

.feedback-page-shell {
  width: min(920px, 100%);
}

.feedback-back {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 10px 14px;
  border: 2px solid rgba(255, 240, 194, 0.85);
  border-radius: 5px;
  background: rgba(30, 22, 17, 0.96);
  color: var(--poster-cream);
  box-shadow: 3px 4px 0 rgba(23, 20, 15, 0.25);
  font: 800 15px/1.1 Arial, sans-serif;
  text-decoration: none;
}

.feedback-back:hover,
.feedback-back:focus-visible {
  color: var(--poster-gold);
  outline: 3px solid rgba(242, 184, 75, 0.35);
  outline-offset: 2px;
}

.feedback-section {
  grid-column: 1 / -1;
  padding: 22px 16px;
  border-top: 3px solid rgba(255, 240, 194, 0.72);
  background:
    linear-gradient(rgba(255, 248, 222, 0.92), rgba(255, 248, 222, 0.92)),
    url("./assets/full_enhanced.png") center / cover no-repeat;
}

.feedback-inner {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(340px, 1.25fr);
  gap: 24px;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 20px;
  border: 2px solid rgba(23, 20, 15, 0.35);
  border-radius: 6px;
  background: rgba(255, 248, 222, 0.84);
  box-shadow: 4px 5px 0 rgba(23, 20, 15, 0.15);
}

.feedback-heading h2 {
  margin: 0 0 9px;
  color: var(--accent-2);
  font-size: 24px;
  line-height: 1.08;
}

.feedback-page .feedback-heading h1 {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 34px;
  line-height: 1.08;
  text-shadow: none;
}

.feedback-heading > p:last-child {
  color: #4d4539;
  font: 14px/1.45 Arial, sans-serif;
}

.feedback-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.feedback-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font: 700 14px/1.2 Arial, sans-serif;
}

.feedback-form label span {
  color: var(--muted);
  font-weight: 400;
}

.feedback-message {
  grid-column: 1 / -1;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  border: 2px solid rgba(23, 20, 15, 0.35);
  border-radius: 4px;
  background: rgba(255, 253, 239, 0.96);
  color: var(--ink);
  font: 16px/1.4 Arial, sans-serif;
  padding: 10px;
}

.feedback-form textarea {
  min-height: 130px;
  resize: vertical;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(20, 107, 95, 0.18);
}

.feedback-submit {
  align-self: end;
  min-height: 42px;
  padding: 9px 15px;
  border: 2px solid rgba(23, 20, 15, 0.72);
  border-radius: 5px;
  background: var(--poster-gold);
  color: var(--ink);
  box-shadow: 3px 4px 0 rgba(23, 20, 15, 0.25);
  cursor: pointer;
  font: 800 15px/1.1 Arial, sans-serif;
}

.feedback-submit:hover,
.feedback-submit:focus-visible {
  background: #ffe28a;
  outline: none;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.share-section {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 18px 16px 22px;
  border-top: 3px solid rgba(255, 240, 194, 0.72);
  background:
    linear-gradient(rgba(255, 248, 222, 0.92), rgba(255, 248, 222, 0.92)),
    url("./assets/full_enhanced.png") center / cover no-repeat;
  color: #4d4539;
  font: 700 14px/1.2 Arial, sans-serif;
}

.share-section a,
.share-copy {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 2px solid rgba(23, 20, 15, 0.35);
  border-radius: 5px;
  background: rgba(255, 248, 222, 0.92);
  color: var(--ink);
  box-shadow: 2px 3px 0 rgba(23, 20, 15, 0.14);
  cursor: pointer;
  font: 700 14px/1.1 Arial, sans-serif;
  text-decoration: none;
}

.share-section a:hover,
.share-section a:focus-visible,
.share-copy:hover,
.share-copy:focus-visible {
  background: #ffe7a5;
  outline: none;
}

.share-status {
  min-width: 86px;
  color: var(--poster-red);
  font-weight: 700;
}

.band-photo {
  margin: 14px 0 0;
  border: 2px solid rgba(23, 20, 15, 0.65);
  border-radius: 6px;
  background: rgba(255, 248, 222, 0.8);
  overflow: hidden;
  box-shadow: 3px 4px 0 rgba(23, 20, 15, 0.14);
}

.band-photo img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  cursor: zoom-in;
}

.band-photo figcaption,
.modal-photo-frame figcaption {
  padding: 8px 10px;
  color: #4d4539;
  font: 14px/1.35 Arial, sans-serif;
  background: rgba(255, 248, 222, 0.92);
}

.photo-open-hint {
  padding: 0 10px 10px;
  color: var(--accent-2);
  font: 700 13px/1.3 Arial, sans-serif;
  background: rgba(255, 248, 222, 0.92);
}

.sample-link {
  display: block;
  margin-top: 12px;
  padding: 11px 12px;
  border: 2px solid rgba(23, 20, 15, 0.82);
  border-radius: 6px;
  background: var(--poster-gold);
  color: var(--ink);
  box-shadow: 3px 4px 0 rgba(23, 20, 15, 0.18);
  font: 700 15px/1.2 Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}

.sample-link[hidden] {
  display: none;
}

.sample-link:hover,
.sample-link:focus-visible {
  background: #ffe28a;
  outline: 3px solid rgba(20, 107, 95, 0.32);
}


.article-links {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px dashed rgba(83, 71, 50, 0.34);
}

.article-links[hidden] {
  display: none;
}

.article-links h3 {
  margin: 0 0 9px;
  color: var(--accent-2);
  font: 800 14px/1.2 Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-list {
  display: grid;
  gap: 8px;
}

.article-list a {
  display: block;
  padding: 10px 11px;
  border: 2px solid rgba(23, 20, 15, 0.72);
  border-radius: 6px;
  background: rgba(255, 248, 222, 0.94);
  color: var(--ink);
  box-shadow: 3px 4px 0 rgba(23, 20, 15, 0.16);
  font: 700 14px/1.25 Arial, sans-serif;
  text-decoration: none;
}

.article-list a:hover,
.article-list a:focus-visible {
  background: #fff3bf;
  outline: 3px solid rgba(20, 107, 95, 0.32);
}


.archive-panel {
  margin-top: 14px;
}

.archive-list {
  display: grid;
  gap: 8px;
}

.archive-intro {
  margin: 0 0 12px;
  color: #4d4539;
  font: 15px/1.4 Arial, sans-serif;
}

.archive-button,
.archive-sample a,
.archive-photo figcaption button {
  width: 100%;
  border: 2px solid rgba(23, 20, 15, 0.72);
  border-radius: 6px;
  background: rgba(255, 248, 222, 0.94);
  color: var(--ink);
  box-shadow: 3px 4px 0 rgba(23, 20, 15, 0.16);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.archive-button {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.archive-button:hover,
.archive-button:focus-visible,
.archive-sample a:hover,
.archive-sample a:focus-visible,
.archive-photo figcaption button:hover,
.archive-photo figcaption button:focus-visible {
  background: #fff3bf;
  outline: none;
}

.archive-title {
  font: 700 16px/1.2 Arial, sans-serif;
}

.archive-meta {
  color: var(--muted);
  font: 13px/1.3 Arial, sans-serif;
}

.archive-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.archive-photo {
  margin: 0;
  border: 2px solid rgba(23, 20, 15, 0.65);
  border-radius: 6px;
  background: rgba(255, 248, 222, 0.84);
  overflow: hidden;
  box-shadow: 3px 4px 0 rgba(23, 20, 15, 0.14);
}

.archive-photo img {
  display: block;
  width: 100%;
  max-height: 135px;
  object-fit: contain;
  background: rgba(25, 20, 14, 0.92);
  cursor: zoom-in;
}

.archive-photo figcaption {
  display: grid;
  gap: 7px;
  padding: 9px 10px 10px;
  color: #4d4539;
  font: 13px/1.35 Arial, sans-serif;
}

.archive-photo figcaption button {
  padding: 7px 8px;
  font-weight: 700;
  text-align: center;
}

.archive-photo figcaption span {
  display: block;
}

.archive-sample {
  display: grid;
  gap: 6px;
}

.archive-sample a {
  display: block;
  padding: 9px 10px;
  background: var(--poster-gold);
  font: 700 14px/1.2 Arial, sans-serif;
  text-align: center;
}

.musician-path-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 44px;
  background: rgba(18, 15, 10, 0.88);
}

.photo-modal[hidden] {
  display: none;
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 248, 222, 0.9);
  border-radius: 50%;
  background: rgba(255, 248, 222, 0.96);
  color: var(--ink);
  font: 700 24px/1 Arial, sans-serif;
  cursor: pointer;
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.22);
}

.modal-photo-frame {
  margin: 0;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  border: 3px solid rgba(255, 248, 222, 0.82);
  border-radius: 6px;
  background: rgba(255, 248, 222, 0.96);
  overflow: hidden;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.modal-photo-frame img {
  display: block;
  width: 100%;
  max-height: calc(90vh - 58px);
  object-fit: contain;
  background: #111;
}

.musician-list {
  display: grid;
  gap: 8px;
}

.musician-button {
  width: 100%;
  border-radius: 6px;
  padding: 9px 10px;
  text-align: left;
  background: rgba(255, 248, 222, 0.94);
  font: 15px/1.25 Arial, sans-serif;
}

.musician-button.is-active {
  background: var(--highlight);
  border-color: var(--accent-2);
}

.musician-role {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.related-list {
  display: grid;
  gap: 8px;
  color: #4d4539;
  font: 15px/1.4 Arial, sans-serif;
}

.related-pill {
  display: block;
  padding: 8px 9px;
  border-left: 5px solid var(--accent);
  background: rgba(255, 248, 222, 0.82);
}

@media (max-width: 960px) {
  .map-wrap {
    touch-action: none;
  }

  .map-canvas {
    transition: none;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  body.is-archive-view .detail-panel {
    grid-row: 2;
    margin: 0 14px 12px;
    border: 2px solid rgba(23, 20, 15, 0.3);
    border-radius: 6px;
  }

  .detail-panel {
    border-left: 0;
    border-top: 3px solid rgba(23, 20, 15, 0.82);
    max-height: none;
  }

  body.is-archive-view .map-stage {
    display: contents;
  }

  body.is-archive-view .topbar {
    grid-row: 1;
  }

  body.is-archive-view .map-wrap {
    grid-row: 3;
  }

  .map-wrap {
    min-height: clamp(360px, 72vw, 620px);
    margin-inline: 14px;
  }

  .band-photo img {
    max-height: none;
    object-fit: contain;
  }

  .archive-gallery {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding-inline: 14px;
  }

  h1 {
    font-size: 23px;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 14px;
  }

  .title-kicker,
  .topbar h1 {
    padding-right: 58px;
  }

  .map-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .stat-pill {
    justify-content: center;
    min-width: 0;
    padding-inline: 6px;
    text-align: center;
  }

  .stat-pill span {
    min-width: 0;
  }

  .toolbar {
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
  }

  .detail-panel.is-intro #bandTitle {
    font-size: 23px;
    line-height: 1.08;
    padding: 10px 12px 5px;
  }

  .map-wrap {
    min-height: clamp(330px, 78vw, 520px);
  }

  .detail-panel {
    padding: 18px 14px;
  }

  .share-section {
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .feedback-section {
    padding-inline: 14px;
  }

  .feedback-inner {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .feedback-page {
    padding: 16px 12px;
  }

  .feedback-page .feedback-heading h1 {
    font-size: 27px;
  }

  .feedback-form {
    grid-template-columns: 1fr;
  }

  .feedback-message {
    grid-column: auto;
  }
}

@media (orientation: landscape) and (max-height: 620px) and (max-width: 960px) {
  .map-wrap {
    min-height: 0;
    touch-action: pan-y;
  }
}

.mobile-map-return {
  display: none;
}

.mobile-zoom-hint {
  display: none;
}

@media (max-width: 960px) {
  .mobile-zoom-hint {
    position: fixed;
    z-index: 30;
    left: 50%;
    bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    max-width: calc(100vw - 28px);
    padding: 11px 12px 11px 16px;
    border: 2px solid rgba(23, 20, 15, 0.82);
    border-radius: 999px;
    background: #fff3bf;
    color: var(--ink);
    box-shadow: 4px 5px 0 rgba(23, 20, 15, 0.24);
    transform: translateX(-50%);
    font: 700 16px/1.2 Arial, sans-serif;
  }

  .mobile-zoom-hint[hidden] {
    display: none;
  }

  .mobile-zoom-hint button {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(23, 20, 15, 0.1);
    color: var(--ink);
    cursor: pointer;
    font: 900 20px/1 Arial, sans-serif;
  }

  body.has-mobile-selection .app-shell {
    grid-template-columns: 1fr;
  }

  body.has-mobile-selection .map-stage {
    display: contents;
  }

  body.has-mobile-selection .topbar {
    grid-row: 1;
  }

  body.has-mobile-selection .detail-panel {
    grid-row: 2;
    border-left: 0;
    border-top: 3px solid rgba(23, 20, 15, 0.82);
    max-height: none;
  }

  body.has-mobile-selection .map-wrap {
    grid-row: 3;
  }

  body.has-mobile-selection .mobile-map-return {
    grid-row: 4;
    display: flex;
    justify-content: center;
    padding: 14px;
    background:
      linear-gradient(rgba(255, 248, 222, 0.9), rgba(255, 248, 222, 0.88)),
      url("./assets/full_enhanced.png") center / cover no-repeat;
  }

  body.has-mobile-selection .mobile-map-return[hidden] {
    display: none;
  }

  body.has-mobile-selection .mobile-map-return .text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 56px);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 17px;
    line-height: 1.05;
    text-align: center;
    white-space: nowrap;
  }

  body.has-mobile-selection .share-section {
    grid-row: 5;
  }
}
