:root {
  --bg: #000;
  --panel: #050505;
  --panel-2: #0a0a0a;
  --text: #f1f1f1;
  --muted: #a3a3a3;
  --muted-2: #707070;
  --line: #252525;
  --line-strong: #3d3d3d;
  --white: #fff;
  --black: #000;
  --max: 1120px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "TheSansMonoSCd", "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: 600;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.nav-inner, .section-inner, .footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  width: min(1360px, calc(100% - 40px));
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 190px;
  padding: 6px 8px 6px 0;
  border-radius: 0;
  transition: color 140ms ease;
}

.brand:hover {
  color: var(--white);
}

.brand-mark {
  width: 64px;
  height: 64px;
  display: block;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.12));
  transition: filter 140ms ease, opacity 140ms ease;
}

.brand:hover .brand-mark {
  opacity: 0.92;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.22));
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-text span {
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

nav ul {
  margin: 0;
  padding: 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 3px;
  max-width: 100%;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

nav a {
  position: relative;
  color: var(--muted);
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

nav a::after {
  display: none;
}

nav a:hover, nav a.active {
  color: var(--text);
  border-color: transparent;
}

nav a[href="/prijave/"] {
  color: var(--muted);
  background: #000;
  border-color: transparent;
  box-shadow: none;
}

nav a:hover,
nav a[href="/prijave/"]:hover {
  color: var(--text);
  background: #141414;
  border-color: var(--line-strong);
}

nav a[href="/prijave/"]::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-search-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: #000;
  color: var(--muted);
  box-shadow: none;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.nav-search-link svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
}

.nav-search-link:hover,
.nav-search-link.active {
  color: var(--text);
  border-color: var(--line-strong);
}

.nav-search-link:hover {
  background: #141414;
}

.nav-search-link.active {
  background: #000;
  box-shadow: none;
}

.lang-switch {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 0;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: 140ms ease;
}

.lang-switch button:hover { color: var(--text); background: #141414; }
.lang-switch button.active { background: #000; color: var(--text); font-weight: 700; }

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  transition: 140ms ease;
}

.mobile-toggle:hover {
  background: #141414;
  border-color: var(--line-strong);
}

.hero {
  padding: 82px 0 64px;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(190px, 20vw, 250px);
  align-items: center;
  gap: clamp(34px, 7vw, 96px);
}

.hero-copy {
  min-width: 0;
}

.hero-emblem {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  justify-self: end;
}

.hero-emblem img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
}

.eyebrow, .kicker {
  color: var(--muted);
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 14px;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 650;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 5.1vw, 4.35rem);
}

h2 {
  max-width: 850px;
  font-size: clamp(1.7rem, 3.3vw, 2.65rem);
}

h3 { font-size: 1.08rem; }

.lead {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.22vw, 1.08rem);
}

.affiliation-note {
  max-width: 700px;
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.affiliation-note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 11px 15px;
  border: 1px solid var(--line-strong);
  background: #000;
  color: var(--text);
  cursor: pointer;
  font-weight: 650;
  transition: 120ms ease;
}

.btn:hover { background: #111; }
.btn-primary { background: #fff; color: #000; border-color: #fff; }
.btn-primary:hover { background: #dcdcdc; }
.btn-small { min-height: 35px; padding: 8px 11px; font-size: 0.84rem; }

section {
  padding: 68px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
}

.report-layout {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 28px;
  align-items: start;
}

.notice, .form-card, .case-panel, .history-item {
  border: 1px solid var(--line);
  background: #050505;
}

.archive-search {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 34%),
    #030303;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.archive-search-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.archive-search-copy {
  display: grid;
  gap: 4px;
  max-width: 660px;
}

.archive-search-copy h2 {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.25;
}

.archive-search-copy span,
.archive-search-count,
.archive-search-empty {
  color: var(--muted);
  font-size: 0.82rem;
}

.archive-search-field {
  position: relative;
}

.archive-search-field input {
  min-height: 52px;
  padding-right: 108px;
  font-size: 1rem;
}

.archive-search-clear {
  position: absolute;
  top: 7px;
  right: 7px;
  min-height: 38px;
}

.archive-search-results {
  display: grid;
  gap: 10px;
}

.archive-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.archive-search-result strong {
  display: block;
  line-height: 1.3;
}

.archive-search-result span,
.archive-search-result p {
  color: var(--muted);
  font-size: 0.78rem;
}

.archive-search-result p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.archive-search-type {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.notice {
  padding: 18px;
  color: var(--muted);
}

.notice strong { color: var(--text); }

.form-card { padding: 20px; }

.form-section {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 22px;
  padding: 18px 0 0;
}

.form-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.form-section legend {
  padding: 0 10px 0 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }

label {
  color: var(--text);
  font-weight: 650;
  font-size: 0.88rem;
}

.hint {
  display: block;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 500;
  margin-top: 2px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #000;
  color: var(--text);
  padding: 11px 12px;
  outline: none;
  transition: 120ms ease;
}

input:focus, select:focus, textarea:focus {
  border-color: #fff;
}

select option { background: #000; color: var(--text); }
textarea { min-height: 130px; resize: vertical; }
input[type="file"] { padding: 13px; cursor: pointer; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.checkbox input {
  width: auto;
  margin-top: 5px;
  accent-color: #fff;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.form-status { color: var(--muted); font-size: 0.9rem; }

.turnstile-wrap[hidden] { display: none; }

.turnstile-shell {
  min-height: 66px;
  display: flex;
  align-items: center;
}

.case-panel {
  padding: 0;
  overflow: hidden;
  transform-origin: center top;
}

.case-header {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 22px;
}

.case-header::-webkit-details-marker {
  display: none;
}

.case-panel:is([open], .is-open) .case-header {
  border-bottom: 1px solid var(--line);
}

.case-header p, .case-body p {
  color: var(--muted);
  margin: 11px 0 0;
}

.formatted-text {
  color: var(--muted);
  margin: 11px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.formatted-text-rich {
  white-space: normal;
  display: grid;
  gap: 14px;
}

.formatted-text-rich p {
  margin: 0;
  overflow-wrap: anywhere;
}

.method-copy {
  max-width: 860px;
  margin: 0;
  display: grid;
  gap: 18px;
  justify-items: start;
  text-align: left;
  padding: 18px 0 0;
}

.method-copy p {
  color: var(--muted);
  margin: 0;
}

#method .section-heading {
  text-align: left;
}

.method-panel {
  max-width: 860px;
}

.method-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 0;
}

.method-panel summary::-webkit-details-marker {
  display: none;
}

.method-panel-expand {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-top: 1px;
  color: transparent;
}

.method-panel-expand::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.12) 12%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.12) 88%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  opacity: 0.92;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.method-panel-expand::after {
  content: "∨";
  display: block;
  color: var(--white);
  text-align: center;
  line-height: 0.9;
  margin-top: -3px;
  transition: transform 180ms ease, opacity 180ms ease, text-shadow 180ms ease;
}

.method-panel summary:hover .method-panel-expand::before {
  opacity: 1;
  transform: scaleX(1.015);
}

.method-panel summary:hover .method-panel-expand::after {
  transform: translateY(2px) scale(1.04);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.method-panel[open] summary {
  display: none;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 0.78rem;
  background: #000;
}

.case-body {
  display: grid;
  gap: 22px;
  padding: 22px;
}

.case-panel-expand {
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  opacity: 0.94;
  transition: transform 180ms ease, opacity 180ms ease;
}

.case-panel:is([open], .is-open) .case-panel-expand {
  opacity: 0.72;
  transform: rotate(45deg);
}

.case-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.case-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.case-section + .case-section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.case-section-title {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-facts {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.fact-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.fact-row:last-child { border-bottom: 0; padding-bottom: 0; }
.fact-row span:first-child { color: var(--muted-2); }
.fact-row span:last-child { color: var(--text); }

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.download-grid .btn {
  justify-content: flex-start;
  width: 100%;
}

.case-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.case-media-card {
  position: relative;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 0%, rgba(255, 255, 255, 0.012) 100%),
    #020202;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.case-media-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.24) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.case-media-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 10px;
}

.case-media-copy {
  min-width: 0;
}

.case-media-copy strong,
.case-media-copy span {
  display: block;
}

.case-media-copy strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

.case-media-copy span {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 5px;
}

.case-media-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 4px 7px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-media-frame {
  padding: 0 14px 14px;
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
}

.case-media-card video {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: contain;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.case-media-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.case-media-fallback {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 20px;
  aspect-ratio: 16 / 9;
  text-align: center;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.case-media-fallback strong {
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
}

.case-media-fallback span {
  max-width: 34ch;
  font-size: 0.84rem;
  line-height: 1.5;
}

.case-media-fallback a {
  color: var(--text);
  text-decoration: underline;
}

.merch-teaser {
  min-height: 320px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin: 76px 0 18px;
  padding: 48px 50px;
  border: 1px solid var(--line);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.74) 46%, rgba(0, 0, 0, 0.32) 100%),
    image-set(
      url("/merch/balkanufomajica2.webp") type("image/webp"),
      url("/merch/balkanufomajica2.png") type("image/png")
    );
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: border-color 140ms ease, transform 140ms ease;
}

.merch-teaser:hover,
.merch-teaser:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.merch-teaser-copy {
  max-width: 700px;
}

.merch-teaser h2 {
  margin: 6px 0 16px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.04;
}

.merch-teaser p {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.merch-teaser-button {
  min-width: 220px;
  justify-self: end;
  text-align: center;
}

.atlas-shell {
  --atlas-map-height: 520px;
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.atlas-panel,
.atlas-map-card {
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    #030303;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.atlas-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-height: var(--atlas-map-height);
  padding: 16px;
}

.atlas-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.atlas-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.atlas-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 14px currentColor;
}

.atlas-dot-current { color: #ff3b30; background: #ff3b30; }
.atlas-dot-history { color: #2f8dff; background: #2f8dff; }

.atlas-selected strong {
  display: block;
  line-height: 1.25;
}

.atlas-selected strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-selected span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 4px;
}

.atlas-selected {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 0;
  align-content: stretch;
}

.atlas-selected-summary {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
  overflow: auto;
}

.atlas-selected .btn {
  justify-self: stretch;
  text-align: center;
}

.atlas-map-card {
  min-height: var(--atlas-map-height);
  padding: 14px;
}

.atlas-map-stage {
  position: relative;
  min-height: calc(var(--atlas-map-height) - 28px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #020305;
}

.atlas-map-status {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.08), transparent 30%),
    #020305;
  z-index: 1;
}

.atlas-map-status[hidden] {
  display: none;
}

.atlas-map-touch-lock {
  display: none;
}

.atlas-map-unlock-button {
  min-height: 43px;
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.atlas-map-stage .maplibregl-ctrl-attrib,
.atlas-map-stage .maplibregl-ctrl button {
  background: rgba(5, 5, 5, 0.78);
  color: var(--muted);
}

.atlas-map-stage .maplibregl-ctrl-attrib a {
  color: var(--text);
}

.atlas-map-stage .maplibregl-popup {
  z-index: 80;
}

.atlas-map-stage .maplibregl-popup-content {
  background: #050505;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
  padding: 0;
}

.atlas-map-stage .maplibregl-popup-tip {
  border-top-color: #050505;
  border-bottom-color: #050505;
}

.atlas-popup-title {
  display: block;
  line-height: 1.3;
  margin-bottom: 6px;
}

.atlas-popup-title-button {
  display: none;
}

.atlas-map-marker {
  --marker-color: #ff3b30;
  position: relative;
  width: 34px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.atlas-map-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 24px;
  height: 24px;
  border: 2px solid #050505;
  border-radius: 999px 999px 999px 0;
  background: var(--marker-color);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--marker-color), transparent 82%), 0 0 22px var(--marker-color);
  transform: translateX(-50%) rotate(-45deg);
}

.atlas-map-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #050505;
  transform: translateX(-50%);
}

.atlas-map-marker.active::before {
  border-color: #fff;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--marker-color), transparent 74%), 0 0 28px var(--marker-color);
}

.atlas-map-marker-secondary {
  opacity: 0.92;
  transform: scale(0.82);
}

.atlas-map-marker-secondary::before {
  background:
    radial-gradient(circle at 50% 50%, #050505 0 34%, transparent 36%),
    var(--marker-color);
}

.atlas-map-marker-history { --marker-color: #2f8dff; }
.atlas-map-marker-current { --marker-color: #ff3b30; }

@media (hover: hover) {
  .case-panel {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  }

  .case-panel:hover {
    transform: translateY(-2px) scale(1.006);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
  }

  .case-media-card {
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }

  .case-media-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
  }
}

.history-item {
  background: #050505;
}

.history-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0;
}

.history-item summary::-webkit-details-marker { display: none; }

.history-summary {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  align-items: stretch;
  padding: 22px;
}

.history-image {
  border: 1px solid var(--line);
  background: #000;
  min-height: 160px;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  overflow: hidden;
}

.history-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
}

.history-image.missing-image::after {
  content: "panadria.jpg";
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.history-summary p, .history-body p {
  color: var(--muted);
  margin: 11px 0 0;
}

.expand-line {
  display: inline-flex;
  margin-top: 16px;
  color: #fff;
  border-bottom: 1px solid #fff;
  font-size: 0.9rem;
}

.details-close {
  position: relative;
  display: block;
  width: 100%;
  margin: 18px 0 0;
  padding: 10px 0 2px;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
}

.details-close::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.12) 12%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.12) 88%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0.92;
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
  pointer-events: none;
}

.details-close::after {
  content: "∧";
  display: block;
  color: var(--white);
  text-align: center;
  line-height: 1;
  margin-top: 0;
  transition: transform 180ms ease, opacity 180ms ease, text-shadow 180ms ease;
}

.details-close:hover::before,
.details-close:focus-visible::before {
  opacity: 1;
  transform: scaleX(1.015);
}

.details-close:hover::after,
.details-close:focus-visible::after {
  transform: translateY(-2px) scale(1.04);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.18);
}

.history-body {
  border-top: 1px solid var(--line);
  padding: 22px;
  max-width: 880px;
}

.history-inline-image {
  margin: 4px 0;
  border: 1px solid var(--line);
  background: #000;
  max-width: 720px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.history-inline-image img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(100%);
}

.history-inline-image figcaption {
  padding: 9px 12px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.035);
}

.history-body .btn { margin-top: 16px; }

.footer {
  background: #000;
  padding: 34px 0;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-mark {
  width: 46px;
  height: 46px;
  display: block;
  flex: 0 0 auto;
}

.footer-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-brand-copy strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

[data-i18n], [data-i18n-placeholder] { transition: opacity 80ms ease; }

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1220px) {
  nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    z-index: 60;
    display: none;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: #000;
    box-shadow: none;
  }

  nav.open {
    display: block;
    animation: navDrop 160ms ease both;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  nav a {
    justify-content: space-between;
    min-height: 44px;
    padding: 12px 13px;
    border-radius: 0;
    font-size: 0.88rem;
    line-height: 1.2;
  }

  nav a::after {
    display: none;
  }

  .mobile-toggle { display: inline-flex; }
  .brand { min-width: unset; }
  .brand-text span { display: none; }
}

@media (max-width: 980px) {
  .report-layout, .history-summary, .atlas-shell { grid-template-columns: 1fr; }

  .atlas-shell {
    --atlas-map-height: 420px;
  }

  .atlas-map-card {
    min-height: 420px;
  }

  .atlas-map-stage {
    min-height: 392px;
  }

}

@media (max-width: 720px) {
  .nav-inner, .section-inner, .footer-inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .footer-inner, .case-header, .form-grid, .fact-row, .download-grid {
    grid-template-columns: 1fr;
  }

  .archive-search {
    padding: 14px;
  }

  .merch-teaser {
    min-height: 360px;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 22px;
    margin: 54px 0 14px;
    padding: 28px;
    background-image:
      linear-gradient(180deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.72) 62%, rgba(0, 0, 0, 0.42) 100%),
      image-set(
        url("/merch/balkanufomajica2.webp") type("image/webp"),
        url("/merch/balkanufomajica2.png") type("image/png")
      );
  }

  .merch-teaser h2 {
    margin-bottom: 12px;
  }

  .merch-teaser-button {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
  }

  .archive-search-head {
    align-items: flex-start;
  }

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

  .archive-search-result .btn {
    justify-self: stretch;
  }

  .atlas-shell {
    --atlas-map-height: clamp(340px, 62vh, 520px);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "legend"
      "map"
      "selected";
    gap: 12px;
  }

  .atlas-map-card {
    grid-area: map;
  }

  .atlas-panel {
    display: contents;
  }

  .atlas-legend {
    grid-area: legend;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .atlas-legend span {
    min-height: 28px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.72rem;
  }

  .atlas-dot {
    width: 8px;
    height: 8px;
  }

  .atlas-selected {
    grid-area: selected;
    grid-template-rows: auto auto auto auto;
    min-height: auto;
    padding: 12px;
  }

  .atlas-selected strong {
    white-space: normal;
  }

  .atlas-selected-summary {
    max-height: 9.5rem;
  }

  .atlas-map-card {
    padding: 10px;
    min-height: var(--atlas-map-height);
  }

  .atlas-map-stage {
    min-height: calc(var(--atlas-map-height) - 20px);
  }

  .atlas-map-unlock-button {
    min-width: min(220px, 100%);
  }

  .atlas-map-stage .atlas-popup-title {
    display: none;
  }

  .atlas-map-stage .atlas-popup-title-button {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 800;
    line-height: 1.3;
    text-align: left;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
  }

  .atlas-map-stage .atlas-popup-title-button:focus-visible {
    outline: 1px solid #fff;
    outline-offset: 3px;
  }

  .case-panel-expand {
    position: relative;
    display: block;
    justify-self: stretch;
    width: calc(100% + 44px);
    min-width: 0;
    margin: 2px 0 0 -22px;
    padding-top: 1px;
    color: transparent;
    transition: none;
  }

  .case-panel-expand::before {
    content: "";
    position: absolute;
    left: 22px;
    right: 22px;
    top: 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.12) 12%,
      rgba(255, 255, 255, 0.4) 50%,
      rgba(255, 255, 255, 0.12) 88%,
      rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
  }

  .case-panel-expand::after {
    content: "∨";
    display: block;
    color: var(--white);
    text-align: center;
    line-height: 0.9;
    margin-top: -3px;
  }

  .case-panel:is([open], .is-open) .case-panel-expand {
    opacity: 1;
    transform: none;
  }

  .case-panel:is([open], .is-open) .case-panel-expand::after {
    content: "∧";
  }

  .hero {
    padding-top: 58px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-emblem {
    display: grid;
    width: clamp(150px, 46vw, 220px);
    margin-top: 28px;
    justify-self: center;
  }
}

@media (hover: none) and (pointer: coarse) {
  .atlas-map-stage.atlas-map-has-items:not(.atlas-map-unlocked) .atlas-map-touch-lock {
    position: absolute;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
    touch-action: pan-y;
  }

  .atlas-map-stage.atlas-map-has-items:not(.atlas-map-unlocked) .maplibregl-canvas-container,
  .atlas-map-stage.atlas-map-has-items:not(.atlas-map-unlocked) .maplibregl-control-container {
    pointer-events: none;
  }

  .atlas-map-stage.atlas-map-has-items:not(.atlas-map-unlocked) .atlas-map-unlock-button {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: transparent;
    opacity: 0;
    touch-action: pan-y;
  }
}

@media (max-width: 460px) {
  html {
    scroll-padding-top: 82px;
  }

  .nav-inner {
    min-height: 74px;
    gap: 8px;
  }

  .brand {
    gap: 8px;
    padding-right: 0;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 0;
  }

  .brand-text strong {
    max-width: 122px;
    font-size: 0.74rem;
    letter-spacing: 0.075em;
  }

  .lang-switch {
    gap: 2px;
    padding: 3px;
  }

  .lang-switch button {
    padding: 7px 8px;
    font-size: 0.72rem;
  }

  .nav-search-link {
    width: 38px;
    height: 38px;
  }

  .nav-search-link svg {
    width: 16px;
    height: 16px;
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
  }

  nav {
    top: calc(100% + 8px);
  }

  .atlas-shell {
    --atlas-map-height: clamp(320px, 58vh, 430px);
  }

  .atlas-map-card {
    padding: 8px;
  }

  .atlas-legend {
    gap: 5px;
  }

  .atlas-legend span {
    gap: 6px;
    min-height: 26px;
    padding: 5px 6px;
    font-size: 0.66rem;
  }

  .atlas-map-stage {
    min-height: calc(var(--atlas-map-height) - 16px);
  }

  .atlas-map-marker {
    width: 30px;
    height: 38px;
  }

  .atlas-map-marker::before {
    width: 22px;
    height: 22px;
  }
}
