/* Law records and field evidence share one two-panel layout. */
.map-switch {
  display:grid;grid-template-columns:auto auto;align-items:stretch;
  width:fit-content;max-width:100%;margin:0 0 1.2rem;border-bottom:1px solid #bfc6ba;
}
.map-switch a {
  display:flex;align-items:center;justify-content:center;text-align:center;
  min-width:0;min-height:44px;margin-bottom:-1px;padding:.45rem .85rem;
  border-bottom:3px solid transparent;color:#43594f;
  font:600 .96rem/1.3 var(--sans);text-decoration:none;
}
.map-switch a[aria-current] {border-bottom-color:currentColor;color:#1d302e}
.map-switch a:hover {background:#e8e8de}
.map-switch a:focus-visible {position:relative;z-index:1;outline:2px solid var(--focus);outline-offset:2px}
.map-pair {--pane-padding:clamp(1rem,1.7vw,1.5rem);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:clamp(1rem,2vw,1.6rem)}
.map-pair > .map-pane {box-sizing:border-box;position:static;align-self:stretch;min-width:0;margin:0;border:1px solid #bfc6ba;border-radius:6px;background:#faf8f2;box-shadow:none;order:0}
.map-pair > .map-pane-visual {padding:0;overflow:hidden}
.map-pair > .map-pane-detail {padding:var(--pane-padding);overflow-wrap:anywhere}
@media(min-width:56rem) {
 .map-pair > .map-pane-detail {contain:size;min-height:0;overflow-y:auto;scrollbar-gutter:stable}
}
@media(max-width:55.999rem) {
 .map-pair {grid-template-columns:minmax(0,1fr)}
 .map-pair > .map-pane-detail {overflow:visible}
}
#view-map .coverage-details {max-width:75ch;margin:.65rem 0 1.1rem}
#view-map .coverage-details summary,#view-map #small summary {width:fit-content;cursor:pointer;font-weight:600;padding:.4rem 0}
#view-map .atlas-controls {align-items:end;padding:.65rem 0 1rem;gap:.8rem 1rem}
#view-map #country-search {flex:1.5 1 19rem;margin:0}
#view-map #country-search label {font-size:.94rem;font-weight:600;color:var(--ink)}
#view-map .search-line input {min-width:4rem;background:#fffdf7}
#view-map .search-line button {flex-shrink:0;color:white;background:#213c34;font-weight:600}
#view-map .map-pane-visual .atlas-map-tools {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.5rem 1rem;padding:.85rem var(--pane-padding)}
#view-map .atlas-map-tools[hidden],#view-map .map-zoom [hidden] {display:none}
#view-map #map-layer-title {font-weight:650}
#view-map .map-zoom {position:static;max-width:100%;display:flex;flex-wrap:wrap;gap:.3rem}
#view-map .map-zoom button {min-height:44px;min-width:44px;background:transparent;border:1px solid #8c9a91}
#view-map #mapcard,#view-map #panel {order:0}
#view-map #mapcard .fig {aspect-ratio:540/296;height:auto;margin:0;background:#edf1eb;border-block:1px solid #c6cbbf}
#view-map #list-wrap {max-height:32rem;overflow:auto}
#view-map #small summary {font-size:.94rem}
#view-map .map-pane-visual > .note {padding:0 var(--pane-padding);margin:.7rem 0}
#view-map .map-pane-visual .legend {
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));
  align-items:stretch;gap:0 .9rem;padding-inline:var(--pane-padding);
}
#view-map .map-pane-visual .lg {
  display:grid;grid-template-columns:.875rem minmax(0,1fr) max-content;gap:.5rem;
  text-align:start;min-height:44px;padding:.45rem .25rem;
  border:0;border-bottom:1px solid #d5dacd;border-radius:0;
}
#view-map .map-pane-visual .lg:hover {background:#edece2}
#view-map .map-pane-visual .lg[aria-pressed=true] {
  background:#e2e8de;box-shadow:inset 0 -2px #436452;font-weight:650;
}
#view-map .map-pane-visual .lg:focus-visible {position:relative;z-index:1;outline:2px solid var(--focus);outline-offset:1px}
#view-map .map-pane-visual .lg small {font-size:inherit;font-variant-numeric:tabular-nums}
#view-map .map-pane-visual .lgfoot {grid-column:1/-1;margin-top:.6rem}
#view-map .map-pane-detail :is(.ph,.sec,.atlas-actions) {padding-inline:0}
#view-map .map-pane-detail .ph {padding-top:0}
#view-map .map-pane-detail .ph h2 {font:500 clamp(2rem,3vw,2.8rem)/1.08 var(--serif);margin:.22em 0}
#view-map .map-pane-detail .atlas-section summary {padding-inline:0}
#view-map .map-pane-detail .task-limits td {text-align:right}
.country-evidence {margin:1rem 0}
.country-task-chart {margin:0}
.country-task-chart figcaption {font-weight:600;margin-bottom:.7rem}
.country-task-chart dl {display:grid;grid-template-columns:minmax(0,1fr);gap:.6rem;font-size:.95rem}
.country-task-chart dt {color:var(--ink)}
.country-task-chart dd {display:grid;grid-template-columns:minmax(0,1fr) 4rem;align-items:center;gap:.55rem;margin:0}
.country-task-chart dd > span:last-child {text-align:right;font-variant-numeric:tabular-nums}
.country-task-chart .task-track {display:block;height:.5rem;background:#e0e3da}
.country-task-chart .task-track i {display:block;height:100%;background:#345f51}
.country-task-chart .task-reference .task-track i {background:#87503b}
.country-protection {margin-block:1rem 0}
.country-protection summary {cursor:pointer;font-weight:600;padding:.5rem 0}
#view-map .map-pane-visual #who.on {max-height:13rem;overflow-y:auto}
#view-map .map-record-actions {margin-block:1.5rem 0}
@media(max-width:40.625rem) {
 #view-map .atlas-controls {display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 #view-map #country-search {grid-column:1/-1}
 #view-map .search-line button {padding-inline:.6rem}
}
@media(max-width:28rem) {
 .map-switch {width:100%;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr)}
 .map-switch a {padding-inline:.4rem}
}
