/* Black Card presentation for the production map (src/components/RangeGuide.astro and
   experiments/timeline-replay/range/range.css). The map is drawn from ten variables; this file
   maps them onto the kit's tokens. The favored path takes the Maps layer color; the other two
   kinds take iris and ember, the kit's full-strength text colors. What could go wrong is always a dashed line at full
   strength, so the case against never reads as the weaker path. */
.layer-map main.range-guide{
  --bg:var(--theme-bg);--ink:var(--theme-ink);--panel:var(--raise);--control:var(--raise);
  --muted:var(--mu);--edge:var(--ru);
  --cyan:var(--c);--violet:var(--c-iris);--amber:var(--c-ember);
  --active:color-mix(in srgb,var(--c) 18%,var(--raise));
  color-scheme:inherit;position:relative;z-index:2;font-family:var(--f);color:var(--theme-ink);
}
.layer-map .range-guide :is(.edition,.eyebrow,.map-label,.history-point span,.path-choice .kind,.source-ref,.evidence-row time,.history-mobile time,.guide-jumps){font-family:var(--fm)}
.layer-map .range-guide .opening h1{font:300 clamp(36px,5.4vw,84px)/1 var(--f);letter-spacing:-.045em;text-wrap:balance}
.layer-map .range-guide .opening h1::before{content:"";display:block;width:40px;height:3px;background:var(--c);margin-bottom:28px}
.layer-map .range-guide :is(h2,h3){font-family:var(--f);font-weight:500;letter-spacing:-.02em}
.layer-map .range-guide a{color:var(--theme-ink);text-decoration-color:var(--c)}
.layer-map .range-guide a:hover{color:var(--c)}
.layer-map .range-guide :is(button,a,summary):focus-visible{outline-color:var(--theme-ink)}
.layer-map .guide-jumps{font-size:11px;letter-spacing:.1em;text-transform:uppercase}
.layer-map .guide-jumps a{text-decoration:none;color:var(--mu)}
.layer-map .guide-jumps a:hover{color:var(--c)}
/* The risk kind is the one the map script colors with --amber. */
.layer-map .range-guide g[style*="var(--amber)"] .range-line{stroke-dasharray:9 6}
.layer-map .range-guide .path-choice[style*="var(--amber)"] .kind::before{content:"";display:inline-block;width:22px;border-top:2px dashed currentColor;vertical-align:middle;margin-right:8px}
/* Color at home-page scale. The three kinds of path each take a full-strength color: favored is
   the Maps straw, an opportunity iris, a risk ember and still dashed, so no kind reads as weaker. */
.layer-map{background:linear-gradient(180deg,transparent 0,var(--theme-bg) 560px),linear-gradient(115deg,color-mix(in srgb,var(--cf) 50%,transparent),color-mix(in srgb,var(--f-ember) 20%,transparent) 40%,color-mix(in srgb,var(--f-iris) 20%,transparent) 68%,color-mix(in srgb,var(--f-cobalt) 24%,transparent))}
.layer-map{background-size:100% 560px;background-repeat:no-repeat}
.layer-map main.range-guide{background:none}
.layer-map .range-guide .opening h1::before{width:112px;height:6px;background:linear-gradient(90deg,var(--f-ember) 0 25%,var(--f-iris) 25% 50%,var(--f-cobalt) 50% 75%,var(--f-straw) 75%)}
.layer-map .practice-grid>div:first-child{border-top:6px solid var(--f-straw);background:color-mix(in srgb,var(--f-straw) 16%,var(--raise));padding:18px 20px}
.layer-map .practice-grid>div:last-child{border-top:6px solid var(--f-ember);background:color-mix(in srgb,var(--f-ember) 14%,var(--raise));padding:18px 20px}
/* The chart's graphics take the fills, as the mark does: bands are the fill color, and in light
   mode a line is the fill shaded toward black so a 3px stroke holds about 3:1 on the panel. Labels
   keep the text colors above. In dark mode fill and text colors are the same values. */
.layer-map{--line-straw:color-mix(in srgb,var(--f-straw) 78%,black);--line-iris:color-mix(in srgb,var(--f-iris) 78%,black);--line-ember:color-mix(in srgb,var(--f-ember) 78%,black)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .layer-map{--line-straw:var(--f-straw);--line-iris:var(--f-iris);--line-ember:var(--f-ember)}}
:root[data-theme="dark"] .layer-map{--line-straw:var(--f-straw);--line-iris:var(--f-iris);--line-ember:var(--f-ember)}
.layer-map .range-guide g[style*="var(--cyan)"] .range-ribbon{fill:var(--f-straw)}
.layer-map .range-guide g[style*="var(--violet)"] .range-ribbon{fill:var(--f-iris)}
.layer-map .range-guide g[style*="var(--amber)"] .range-ribbon{fill:var(--f-ember)}
.layer-map .range-guide g[style*="var(--cyan)"] .range-line{stroke:var(--line-straw)}
.layer-map .range-guide g[style*="var(--violet)"] .range-line{stroke:var(--line-iris)}
.layer-map .range-guide g[style*="var(--amber)"] .range-line{stroke:var(--line-ember)}
/* The shared header stays at the top of the screen at every width, so a section reached by its link stops below it.
   The map's own offset allowed for that only on narrow screens, where its old header was fixed. */
.layer-map main.range-guide section[id]{scroll-margin-top:96px}
