/* Living Atlas production layer.
   The map stays the primary surface; interface cards behave like printed
   marginalia and never compete with geography. */

:root {
  --atlas-paper: #fbf5e9;
  --atlas-paper-solid: #fffaf0;
  --atlas-paper-light: #fffaf2;
  --atlas-ink: #3b2428;
  --atlas-muted: #78655d;
  --atlas-wine: #6f1538;
  --atlas-gold: #a67a21;
  --atlas-line: rgba(111, 21, 56, 0.18);
  --atlas-line-strong: rgba(111, 21, 56, 0.34);
  --atlas-top: 4.6rem;
}

body {
  background: #eadfc9;
  color: var(--atlas-ink);
}

.world-opening-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--atlas-ink);
}

.world-opening-brand img {
  width: auto;
  height: 2rem;
  object-fit: contain;
}

.world-opening-brand span {
  margin: 0;
  padding-left: .7rem;
  border-left: 1px solid rgba(166, 122, 33, .35);
  color: var(--atlas-ink);
  font: 600 .52rem/1.2 "Playfair Display", Georgia, serif;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.atlas-chrome {
  top: var(--atlas-top);
  left: 1rem;
  max-width: min(44rem, calc(100vw - 10rem));
  min-height: 2.75rem;
  padding: .2rem .75rem;
  overflow: hidden;
  border: 1px solid var(--atlas-line);
  background: rgba(255, 250, 240, .94);
  box-shadow: 0 .5rem 1.75rem rgba(59, 36, 40, .09);
  backdrop-filter: blur(14px);
}

.atlas-crumb {
  min-width: 0;
  min-height: 2.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-tools {
  top: var(--atlas-top);
  right: 1rem;
}

.finder-toggle {
  min-width: 6.3rem;
  border-color: var(--atlas-line);
  background: rgba(255, 250, 240, .95);
}

.atlas-sheet {
  right: auto;
  bottom: 1rem;
  left: 1rem;
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(38vh, 22rem);
  align-items: flex-start;
  gap: .65rem;
  padding: 1.1rem 1.25rem 1.15rem;
  overflow: auto;
  border: 1px solid rgba(166, 122, 33, .3);
  background: rgba(255, 250, 240, .94);
  box-shadow: 0 1rem 3rem rgba(59, 36, 40, .12);
  backdrop-filter: blur(16px) saturate(1.1);
}

.region-caption,
.next-hops {
  align-items: flex-start;
  width: 100%;
  text-align: left;
}

.region-caption-title {
  max-width: 18ch;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  line-height: 1.02;
  letter-spacing: .035em;
  text-wrap: balance;
}

.region-caption-dek {
  max-width: 58ch;
  margin-top: .35rem;
  font-size: .88rem;
  line-height: 1.45;
  letter-spacing: .01em;
}

.region-caption-guide {
  min-height: 2.75rem;
  margin-top: .25rem;
}

.next-hops-pills {
  width: 100%;
  justify-content: flex-start;
}

.next-hop {
  min-height: 2.75rem;
  background: rgba(255, 250, 240, .72);
}

.subregion-legend {
  top: calc(var(--atlas-top) + 3.5rem);
  max-width: min(20rem, calc(100vw - 2rem));
  max-height: min(46vh, 28rem);
  overflow: auto;
  border-color: var(--atlas-line);
  background: rgba(255, 250, 240, .94);
  backdrop-filter: blur(14px);
}

.subregion-legend-list button {
  min-height: 2.75rem;
}

.subregion-legend-list button.has-no-producers {
  color: #695c55;
}

.subregion-legend-list button.has-no-producers i {
  filter: saturate(.35);
}

.subregion-legend-list button.has-no-producers[aria-current="true"] {
  color: var(--burgundy-900);
}

.subregion-legend-list button.has-no-producers[aria-current="true"] i {
  filter: none;
}

.subregion-legend-list button small {
  margin-left: auto;
  color: #7d6f66;
  font: 500 .48rem/1.2 var(--font-label, Arial, sans-serif);
  letter-spacing: .05em;
  white-space: nowrap;
}

.world-choice.has-no-producers {
  color: #74665e;
}

.world-choice-coverage {
  display: block;
  margin-top: .18rem;
  color: #8a7a70;
  font: 500 .46rem/1.2 var(--font-label, Arial, sans-serif);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.subregion-picker { display: none; }

.producer-panel,
.producer-browser,
.registry-panel {
  background: rgba(255, 250, 240, .985);
}

.producer-panel {
  top: 4rem;
  width: min(29rem, 40vw);
  height: calc(100% - 4rem);
  border-left-color: var(--atlas-line);
  box-shadow: -1.25rem 0 3.5rem rgba(59, 36, 40, .14);
}

.producer-panel-name {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1;
}

.producer-panel-description,
.producer-panel-story-body {
  font-size: .98rem;
  line-height: 1.58;
}

body.has-producer-panel .atlas-tools {
  right: calc(min(29rem, 40vw) + 1rem);
}

body.has-producer-panel .atlas-sheet {
  display: none;
}

body.has-producer-panel .subregion-legend { display: none; }

body.has-producer-panel .maplibregl-ctrl-bottom-right {
  right: calc(min(29rem, 40vw) + .5rem);
}

body.has-producer-panel .maplibregl-ctrl-top-right {
  right: calc(min(29rem, 40vw) + .5rem);
}

body.is-world .world-chooser {
  width: min(25rem, 34vw);
  padding: 5.5rem 1.9rem 1.4rem;
  border-right-color: rgba(166, 122, 33, .38);
  background:
    linear-gradient(rgba(255, 250, 240, .965), rgba(255, 250, 240, .965)),
    repeating-linear-gradient(0deg, transparent 0 2rem, rgba(166, 122, 33, .06) 2rem calc(2rem + 1px));
}

body.is-world #map {
  inset: .75rem .75rem .75rem calc(min(25rem, 34vw) + .75rem);
}

body.is-world .plate-vignette,
body.is-world .plate-frame {
  inset: .75rem .75rem .75rem calc(min(25rem, 34vw) + .75rem);
}

body.is-world .atlas-tools {
  top: var(--atlas-top);
  right: 1.5rem;
}

body.is-world .world-opening-title {
  max-width: 8ch;
  font-size: clamp(2.75rem, 4.2vw, 4.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.045em;
}

body.is-world .world-opening-dek {
  max-width: 27rem;
  font-size: .98rem;
  font-style: normal;
  line-height: 1.52;
}

body.is-world .world-opening-brand:not(.plate-imprint) {
  display: none;
}

body.is-world .world-chooser-group--mapped {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

body.is-world .world-index-details[open] {
  min-height: 0;
  overflow: visible;
}

body.is-world .world-index-details[open] {
  display: flex;
  flex: 1;
  flex-direction: column;
}

body.is-world .world-index-details[open] .world-index {
  flex: 1;
  overscroll-behavior: contain;
}

@media (min-width: 701px) and (max-width: 1199px) {
  body.is-world .world-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 701px) {
  body.is-world #world-country-choices {
    display: block;
    overflow: visible;
  }

  body.is-world .world-index-details[open] {
    display: block;
    height: auto;
    max-height: none;
    flex: none;
    overflow: visible;
  }

  body.is-world .world-index-details[open] .world-index {
    display: grid;
    height: auto;
    max-height: none;
    flex: none;
    overflow: visible;
  }

  body.is-world .world-index-details[open] summary::after {
    margin-left: auto;
    content: "Scroll ↓";
  }
}

body.is-world .plate-imprint {
  display: none;
}

.world-country-toggle { display: none; }
.world-mobile-starts { display: none; }

.world-map-key {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1rem 0 0;
  color: var(--atlas-muted);
  font: 600 .56rem/1.4 var(--font-label, Arial, sans-serif);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.world-map-key i,
.producer-map-key i,
.producer-map-key b {
  width: .48rem;
  height: .48rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--atlas-wine);
  box-shadow: 0 0 0 2px rgba(255, 250, 242, .92);
}

.producer-map-key { display: none; }

.maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(77, 45, 29, .2);
  border-radius: 0;
  background: rgba(255, 250, 240, .94);
  box-shadow: 0 .35rem 1.2rem rgba(59, 36, 40, .1);
}

.maplibregl-ctrl-group button {
  width: 2.75rem;
  height: 2.75rem;
}

.maplibregl-ctrl-top-right {
  top: 7rem;
  right: 1rem;
}

body.is-world .finder-toggle {
  width: min(18rem, calc(100vw - min(25rem, 34vw) - 3rem));
}

@media (max-width: 900px) {
  :root { --atlas-top: 4.35rem; }

  .producer-panel {
    width: min(27rem, 54vw);
  }

  body.has-producer-panel .atlas-tools {
    right: calc(min(27rem, 54vw) + 1rem);
  }

  body.has-producer-panel .maplibregl-ctrl-bottom-right {
    right: calc(min(27rem, 54vw) + .5rem);
  }

  body.has-producer-panel .maplibregl-ctrl-top-right {
    right: calc(min(27rem, 54vw) + .5rem);
  }
}

@media (max-width: 700px) {
  :root { --atlas-top: calc(max(.4rem, env(safe-area-inset-top)) + 3.55rem); }

  body.is-world #map,
  body.is-world .plate-vignette,
  body.is-world .plate-frame {
    inset: 9.7rem 0 6.95rem;
  }

  body.is-world .world-chooser {
    inset: 0;
    width: 100%;
    padding: 0 0 calc(env(safe-area-inset-bottom) + .4rem);
    display: block;
    background: transparent;
  }

  body.is-world .world-opening-header {
    min-height: 9.7rem;
    padding: var(--atlas-top) 6rem .5rem 1rem;
    background: rgba(255, 250, 240, .98);
  }

  body.is-world .world-opening-kicker {
    margin-bottom: .35rem;
    font-size: .5rem;
  }

  body.is-world .world-opening-title {
    max-width: none;
    font-size: clamp(1.8rem, 9vw, 2.45rem);
    line-height: .96;
  }

  body.is-world .world-opening-title br { display: none; }

  body.is-world .world-opening-dek {
    max-width: 34rem;
    margin-top: .35rem;
    font-size: .7rem;
    line-height: 1.35;
  }

  body.is-world .world-map-key {
    display: none;
  }

  body.is-world .atlas-tools {
    top: calc(var(--atlas-top) + .1rem);
    right: .65rem;
  }

  body.is-world .finder-toggle {
    display: inline-flex;
    width: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 0;
    color: var(--atlas-wine);
    font-size: 0;
    letter-spacing: .11em;
  }

  body.is-world .finder-toggle::before {
    content: "⌕";
    position: static;
    width: auto;
    color: var(--atlas-wine);
    font: 400 1.25rem/1 Georgia, serif;
  }

  body.is-world .finder-toggle::after { display: none; }

  body.is-world .finder {
    top: calc(100% + .35rem);
    right: 0;
    width: calc(100vw - 1.3rem);
  }

  body.is-world .maplibregl-ctrl-bottom-right {
    top: 10rem;
    right: auto;
    bottom: auto;
    left: .35rem;
  }

  body.is-world .maplibregl-ctrl-top-right {
    top: 10rem;
    right: .35rem;
  }

  body.is-world .world-chooser-group--mapped {
    position: fixed;
    z-index: 18;
    right: .65rem;
    bottom: .65rem;
    left: .65rem;
    display: none;
    max-height: min(64vh, 34rem);
    padding: 1rem;
    overflow: auto;
    border-top: 1px solid rgba(166, 122, 33, .32);
    background: rgba(255, 250, 240, .98);
    box-shadow: 0 -1.2rem 3rem rgba(59, 36, 40, .16);
  }

  body.is-world .world-country-toggle {
    position: fixed;
    z-index: 19;
    right: .65rem;
    bottom: .65rem;
    left: .65rem;
    display: flex;
    min-height: 3.2rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border: 1px solid var(--atlas-line-strong);
    background: rgba(255, 250, 240, .98);
    color: var(--atlas-wine);
    font: 600 .58rem/1 var(--font-label, Arial, sans-serif);
    letter-spacing: .15em;
    text-transform: uppercase;
    pointer-events: auto;
  }

  body.is-world .world-country-toggle[aria-expanded="true"] { bottom: min(64vh, 34rem); }
  body.is-world .world-country-toggle[aria-expanded="true"] + .world-chooser-group--mapped { display: block; }
  body.is-world .world-country-toggle[aria-expanded="true"] ~ .world-mobile-starts { display: none; }

  body.is-world .world-mobile-starts {
    position: fixed;
    z-index: 17;
    right: .65rem;
    bottom: 3.85rem;
    left: .65rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--atlas-line-strong);
    border-bottom: 0;
    background: rgba(255, 250, 240, .98);
    pointer-events: auto;
  }

  body.is-world .world-mobile-starts button {
    min-width: 0;
    min-height: 2.75rem;
    padding: 0 .25rem;
    border: 0;
    border-right: 1px solid var(--atlas-line);
    background: transparent;
    color: var(--atlas-wine);
    font: 600 .72rem/1 var(--font-serif, Georgia, serif);
  }

  body.is-world .world-mobile-starts button:last-child { border-right: 0; }

  body.is-world .world-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: .75rem;
  }

  body.is-world .world-featured .world-choice {
    min-height: 2.75rem;
    font-size: .9rem;
  }

  body.is-world .world-index-label {
    margin-top: .35rem;
  }

  body.is-world .world-index {
    display: flex;
    min-height: 2.75rem;
    overflow-x: auto;
  }

  body.is-world .world-index .world-choice {
    box-sizing: border-box;
    flex: 0 0 50%;
    min-height: 2.75rem;
    padding: 0 .75rem;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  body.is-world .world-index {
    scroll-snap-type: x mandatory;
  }

  body.is-world .world-index-details[open] summary::after {
    margin-left: auto;
    content: "Swipe →";
  }

  body.is-world .world-chooser-group--registry {
    grid-row: 4;
    padding: .4rem .9rem;
    background: rgba(255, 250, 240, .98);
  }

  .atlas-chrome {
    top: var(--atlas-top);
    right: 4.05rem;
    left: .65rem;
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 2.75rem;
    padding: .15rem .45rem;
    overflow: visible;
  }

  .atlas-chrome:has(#region-crumb:not([hidden])) #country-crumb,
  .atlas-chrome:has(#region-crumb:not([hidden])) #country-separator,
  .atlas-chrome #world-crumb { display: none; }

  .atlas-chrome .atlas-separator,
  .atlas-chrome #producer-crumb { display: none; }

  .atlas-chrome .atlas-region {
    overflow: visible;
    font-size: .6rem;
    line-height: 1.25;
    text-overflow: clip;
    white-space: normal;
  }

  .atlas-chrome .atlas-back {
    min-width: 4.75rem;
    margin-left: .25rem;
    padding-left: .55rem;
    white-space: nowrap;
  }

  .atlas-tools {
    top: var(--atlas-top);
    right: .65rem;
  }

  .finder-toggle {
    min-width: 2.75rem;
    width: 2.75rem;
    padding: 0;
    overflow: hidden;
    color: transparent;
    font-size: 0;
  }

  .finder-toggle::before {
    content: "⌕";
    display: block;
    color: var(--atlas-wine);
    font: 400 1.4rem/2.65rem Georgia, serif;
    text-align: center;
  }

  .finder {
    right: 0;
    width: calc(100vw - 1.3rem);
  }

  body:not(.is-world) .maplibregl-ctrl-bottom-right {
    top: auto;
    right: auto;
    bottom: calc(var(--sheet-height, 0px) + .65rem);
    left: .35rem;
  }

  body:not(.is-world) .maplibregl-ctrl-top-right {
    top: 12rem;
    right: .35rem;
  }

  body.has-producer-panel .maplibregl-ctrl-bottom-right {
    bottom: calc(min(29vh, 15.5rem) + .65rem);
  }

  body.has-producer-panel .maplibregl-ctrl-top-right {
    right: .35rem;
  }

  body.has-producer-panel .atlas-tools {
    right: .65rem;
  }

  .maplibregl-ctrl-attrib-button {
    background-position: center;
    background-repeat: no-repeat;
  }

  @media (max-width: 340px) {
    body.is-world .maplibregl-ctrl-bottom-right {
      transform: translateY(3.25rem);
    }
  }

  .atlas-sheet {
    bottom: .65rem;
    left: .65rem;
    width: calc(100vw - 1.3rem);
    height: min(18vh, 8.6rem);
    max-height: min(18vh, 8.6rem);
    justify-content: space-between;
    padding: .85rem 1rem 1rem;
    border-radius: .8rem .8rem .2rem .2rem;
  }

  .atlas-sheet .next-hops { margin-top: auto; }

  body:not(.is-world) .atlas-sheet .next-hop:not([data-browse-producers]) { display: none; }
  body:not(.is-world) .atlas-sheet .next-hops {
    margin-top: .25rem;
    padding-top: 0;
  }
  body:not(.is-world) .atlas-sheet .next-hops-kicker { display: none; }
  body:not(.is-world) .atlas-sheet .next-hops-pills { overflow: visible; }

  .region-caption-title {
    max-width: 21ch;
    font-size: clamp(1.22rem, 6vw, 1.65rem);
    letter-spacing: .025em;
  }

  .region-caption-dek {
    font-size: .78rem;
  }

  .next-hops-pills {
    justify-content: flex-start;
    scroll-snap-type: x proximity;
  }

  .next-hop { scroll-snap-align: start; }

  .subregion-legend {
    top: calc(var(--atlas-top) + 3.35rem);
    right: .65rem;
    bottom: auto;
    left: .65rem;
    max-width: none;
    max-height: none;
    padding: .4rem .45rem;
    overflow: hidden;
  }

  .subregion-legend-title {
    display: block;
    margin: .05rem .3rem .35rem;
    color: var(--atlas-muted);
    font: 600 .5rem/1.2 var(--font-label, Arial, sans-serif);
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .subregion-picker {
    display: block;
    appearance: none;
    width: 100%;
    min-height: 2.75rem;
    padding: .62rem 2.6rem .62rem .8rem;
    border: 1px solid var(--atlas-line-strong);
    border-radius: .2rem;
    background:
      linear-gradient(45deg, transparent 50%, var(--atlas-wine) 50%) calc(100% - 1.05rem) 50% / .36rem .36rem no-repeat,
      linear-gradient(135deg, var(--atlas-wine) 50%, transparent 50%) calc(100% - .8rem) 50% / .36rem .36rem no-repeat,
      var(--atlas-paper-light);
    color: var(--atlas-ink);
    font: 600 .72rem/1.2 var(--font-serif, Georgia, serif);
  }

  .subregion-picker:focus-visible { outline: 2px solid var(--atlas-wine); outline-offset: 2px; }
  .subregion-legend-list {
    display: none;
  }

  .subregion-legend-list button {
    min-height: 2.75rem;
    min-width: 10.75rem;
    padding: .35rem .6rem;
    border: 1px solid var(--atlas-line);
    background: rgba(255, 252, 244, .82);
    font-size: .62rem;
    line-height: 1.15;
  }

  .subregion-legend-list i { flex: 0 0 10px; width: 10px; height: 10px; }

  .producer-panel {
    top: auto;
    bottom: 0;
    width: 100%;
    height: min(61vh, 34rem);
    max-height: calc(100dvh - var(--atlas-top) - .6rem);
    border-radius: 1rem 1rem 0 0;
  }

  .producer-panel.is-expanded {
    height: calc(100dvh - var(--atlas-top) + 3rem);
  }

  .producer-panel.is-compact { height: min(18vh, 9.25rem); }

  .producer-panel.is-compact .producer-panel-description {
    display: none;
  }

  .producer-panel.is-compact .producer-panel-body { display: none; }

  .producer-panel.is-compact .producer-panel-handle::after {
    content: "Read producer profile ↑";
    margin-left: .7rem;
    color: var(--atlas-paper-light);
    font: 600 .56rem/1 var(--font-label, Arial, sans-serif);
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .producer-panel.is-compact .producer-panel-handle {
    min-height: 2.35rem;
    background: var(--atlas-wine);
    color: var(--atlas-paper-light);
    cursor: pointer;
  }

  .producer-panel.is-compact .producer-panel-handle::before {
    width: 1.75rem;
    height: 1px;
    margin: 0;
    background: rgba(255, 250, 242, .68);
  }

  .producer-panel.is-compact .producer-panel-kicker { display: none; }

  body.has-producer-panel .producer-map-key {
    position: fixed;
    z-index: 7;
    top: calc(var(--atlas-top) + 3.3rem);
    left: .65rem;
    display: flex;
    align-items: center;
    gap: .42rem;
    margin: 0;
    padding: .45rem .6rem;
    border: 1px solid rgba(77, 45, 29, .16);
    background: rgba(255, 250, 240, .92);
    color: var(--atlas-muted);
    font: 600 .48rem/1 var(--font-label, Arial, sans-serif);
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .producer-map-key b {
    margin-left: .35rem;
    background: var(--atlas-gold);
    box-shadow: 0 0 0 2px var(--atlas-wine);
  }

  .producer-panel-head {
    padding: .25rem 4.6rem .75rem 1rem;
  }

  .producer-panel-locator { display: none; }

  .producer-panel-close {
    top: 2.25rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--atlas-line);
    background: var(--atlas-paper-light);
    box-shadow: none;
  }

  .producer-panel-name {
    font-size: clamp(1.35rem, 6.4vw, 1.85rem);
  }

  .producer-panel-body {
    padding: .9rem 1rem max(1.25rem, env(safe-area-inset-bottom));
  }

  .producer-browser,
  .registry-panel {
    inset: auto 0 0;
    max-height: min(72vh, 40rem);
    border-radius: 1rem 1rem 0 0;
  }

  .plate-imprint { display: none; }
  .world-chooser > .world-opening-brand { display: none; }

  body.has-producer-panel .atlas-chrome {
    display: flex;
  }

  body.has-producer-panel .atlas-chrome .atlas-crumb,
  body.has-producer-panel .atlas-chrome .atlas-separator {
    display: none !important;
  }

  body.has-producer-panel .atlas-back {
    display: block !important;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

.plate-status.is-error {
  z-index: 30;
  display: grid;
  width: min(26rem, calc(100vw - 2rem));
  gap: .75rem;
  padding: 1.4rem;
  border-color: rgba(104, 16, 47, .38);
  background: rgba(255, 250, 240, .985);
  color: var(--atlas-reading);
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  pointer-events: auto;
}
.plate-status.is-error strong {
  color: var(--atlas-wine);
  font: 500 1.45rem/1.1 var(--font-serif, Georgia, serif);
}
.plate-status.is-error > span:not(.plate-status-actions) {
  font: 400 .92rem/1.5 var(--font-serif, Georgia, serif);
}
.plate-status-actions { display: flex; gap: .55rem; }
.plate-status-actions button,
.plate-status-actions a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  border: 1px solid var(--atlas-wine);
  background: var(--atlas-wine);
  color: var(--atlas-paper-light);
  font: 600 .58rem/1 var(--font-label, Arial, sans-serif);
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.plate-status-actions a { background: transparent; color: var(--atlas-wine); }

/* An unavailable map becomes a single recovery task. Keep inactive map controls
   and country shortcuts out of both the visual and accessibility layers. */
body.has-atlas-error .maplibregl-control-container,
body.has-atlas-error .maplibregl-ctrl-attrib,
body.has-atlas-error .maplibregl-ctrl-attrib-button,
body.has-atlas-error .world-choice,
body.has-atlas-error .world-country-toggle {
  display: none !important;
}

@media (min-width: 701px) and (max-width: 1100px) {
  .plate-imprint { display: none; }

  body.has-producer-panel .atlas-chrome {
    right: auto;
    display: flex;
    max-width: calc(100vw - min(27rem, 54vw) - 7rem);
  }

  body.has-producer-panel .atlas-chrome .atlas-crumb,
  body.has-producer-panel .atlas-chrome .atlas-separator {
    display: none !important;
  }

  body.has-producer-panel .atlas-back {
    display: block !important;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 360px) {
  body.is-world .world-opening-header {
    padding-right: 3.8rem;
  }

  body.is-world .world-opening-title { font-size: 1.95rem; }
  body.is-world .world-opening-dek { font-size: .71rem; }
  body.is-world .world-featured .world-choice { font-size: .82rem; }
  .atlas-crumb { max-width: 8.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .world-chooser,
  .producer-panel,
  .atlas-sheet {
    scroll-behavior: auto;
    transition: none !important;
  }
}
