/* Campaign passport: keep the three labels in independent tracks. */
.edition .map .tile {
  --tile-edge:#dfd3ad;
  --tile-surface:#fff9e8;
  --tile-ink:#23443a;
  --tile-chip:#f0e5c7;
  --tile-chip-ink:#5f5435;
  display:grid;
  grid-template-columns:3rem minmax(0,1fr) clamp(4.5rem,24%,5.75rem);
  column-gap:12px;
  min-height:46px;
  margin:4px 0;
  padding:6px 8px;
  align-items:center;
  text-align:left;
  color:var(--tile-ink);
  background:var(--tile-surface);
  border:1px solid var(--tile-edge);
  border-radius:11px;
  box-shadow:none;
  line-height:1.2;
}
.edition .map .tile-number {
  display:block;
  min-width:0;
  width:3rem;
  padding:5px 2px;
  border-radius:7px;
  background:var(--tile-chip);
  color:var(--tile-chip-ink);
  text-align:center;
  white-space:nowrap;
  font:800 clamp(.82rem,3.8vw,1.02rem)/1.05 system-ui,sans-serif;
  font-variant-numeric:tabular-nums lining-nums;
  letter-spacing:.04em;
}
.edition .map .tile-title,
.edition .map .tile > span:nth-child(2) {
  min-width:0;
  font-weight:760;
  overflow-wrap:anywhere; /* at 320px, exceptionally long words still stay out of the badge */
  line-height:1.24;
  hyphens:auto;
}
.edition .map .tile .tile-status {
  min-width:0;
  display:block;
  padding:4px 4px;
  border-radius:7px;
  text-align:center;
  white-space:normal;
  overflow-wrap:break-word;
  color:#355741;
  background:#e8efd9;
  font-size:clamp(.65rem,2.7vw,.76rem);
  font-weight:760;
  font-variant-numeric:tabular-nums;
  line-height:1.18;
}
.edition .map .tile .tile-status.gold { color:#704712;background:#f8e3ae; }
.edition .map .tile .tile-status.silver { color:#385767;background:#e4eced; }
.edition .map .tile .tile-status.bronze { color:#734c38;background:#f4e3d3; }
.edition .map .tile[data-finale="true"]:not(:disabled) {
  --tile-surface:#fff2cf;
  --tile-edge:#e5ca86;
}
.edition .map .tile[data-starter="true"] {outline:none}
.edition .map .tile[data-current="true"]:not(:disabled) {
  --tile-surface:#edf3df;
  --tile-edge:#7c9a6d;
  --tile-chip:#315a48;
  --tile-chip-ink:#fff8df;
  box-shadow:inset 3px 0 #567b50;
}
.edition .map .tile[data-current="true"]:not(:disabled) .tile-status {
  color:#29513c;
  background:#d8e6c6;
}
.edition .map .tile:not(:disabled):focus-visible {
  outline:2px solid #2e6350;
  outline-offset:-2px;
}
.edition .map .tile:is(:disabled,[data-playable="false"]) {
  --tile-surface:#eeeae1;
  --tile-edge:#ded8cd;
  --tile-ink:#605e57;
  --tile-chip:#e6e1d7;
  --tile-chip-ink:#57554e;
  opacity:1;
  box-shadow:none;
  cursor:not-allowed;
}
.edition .map .zone.bells-rows .tile:disabled,
.edition .map .tile:is(:disabled,[data-playable="false"]) {
  background:var(--tile-surface);
}
.edition .map .tile:is(:disabled,[data-playable="false"]) .tile-status {
  color:#5f5b52;
  background:transparent;
}
.edition .map .tile:is(:disabled,[data-playable="false"]) .tile-status::before {
  content:"";
  display:inline-block;
  vertical-align:-.08em;
  width:.78em;
  height:.82em;
  margin-inline-end:.28em;
  background:center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 13'%3E%3Cpath fill='none' stroke='%235f5b52' stroke-width='1.5' d='M3.3 5.2V3.9a2.7 2.7 0 0 1 5.4 0v1.3'/%3E%3Crect x='1.1' y='4.9' width='9.8' height='7.4' rx='1.7' fill='%235f5b52'/%3E%3C/svg%3E");
}
.edition .map:has(> #map-route-note:not([hidden])) {
  grid-template-rows:auto auto auto auto minmax(0,1fr) auto;
}
.edition .map #map-route-note {
  padding:6px 9px;
  border-inline-start:3px solid #8a9d6d;
  border-radius:6px;
  background:#eee8cd;
  color:#3e5544;
  font-size:clamp(.72rem,2.9vw,.84rem);
  font-weight:680;
  line-height:1.26;
}
@media (max-width:350px) {
  .edition .map .tile {
    grid-template-columns:2.75rem minmax(0,1fr) 4.25rem;
    padding-inline:6px;
  }
  .edition .map .tile-number { width:2.75rem; }
}
.edition .map #map-route-note {display:flex;align-items:center;justify-content:space-between;gap:8px;}
.edition .map #map-resume {width:auto;min-width:76px;min-height:44px;flex-shrink:0;white-space:nowrap;margin:0;padding:4px 8px;color:#23483f;background:#d9e7c8;box-shadow:none;font-size:clamp(.72rem,2.9vw,.84rem);}
/* One scroll surface: a short mobile viewport must never clip the final rows. */
.edition .map,
.edition .map:has(> #map-route-note:not([hidden])) {
  display:flex;
  flex-direction:column;
  align-items:stretch;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  overflow-anchor:none;
  scroll-padding-block:clamp(12px,4.4vw,25px);
  touch-action:pan-y;
}
.edition .map > * { flex:none; }
.edition .map .map-list { overflow:visible; }
.edition .map #map-tail {
  align-self:flex-end;
  min-height:44px;
  padding-inline:12px;
  background:#e9dfba;
}
