/*
 * The fixes of this theme to landing.css. landing.css holds Don's v10 <style> blocks byte for byte,
 * so the fixes go in this file, which loads after it.
 */

/* The labels of the layered drawing sit at fixed percentages of its height, and the drawing gets
   shorter as the screen gets narrower. At 380px wide or less, the wrapped labels overlap: at 360px,
   "Planning, designations and easements" covers its neighbours. There the drawing takes the full
   width, and the 5 layer labels go under it as a list, from the top layer to the bottom one.
   The drawing hides its 5 leader lines to the labels: the paths from x = 6 to x = -32 and their dots.
   The curve from the clay to the risk line stays, and the risk label stays on its end, as in Don's layout.
   .sv2 is a grid, and the list has display: contents. So the risk label shares the cell of the drawing,
   the 5 layer labels take the rows under it, and the inline top of each label has no effect.
   The curve ends at x = -32, y = 510 of the viewBox "-32 0 328 540": the left edge, 30/328 of the
   width above the bottom. A percentage margin is a share of the width, so margin-bottom 9.146% puts
   the label's bottom edge on that point, and translateY(50%) centres the label on it. */
@media(max-width:380px){
.story9 .sv2{display:grid;grid-template-columns:minmax(0,1fr)}
.story9 .sv2 .strata-svg{grid-area:1/1;width:100%;margin-left:0}
.story9 .sv2 .strata-svg path[d^="M6 "][d$="H-32"],.story9 .sv2 .strata-svg circle[cx="6"]{display:none}
.story9 .sv2-tags{display:contents}
.story9 .sv2-tags li{position:static;transform:none;width:auto;justify-self:start;margin-top:var(--st-2)}
.story9 .sv2-tags li:first-child{margin-top:var(--st-5)}
.story9 .sv2-tags li::after{content:none}
.story9 .sv2-tags li.out{grid-area:1/1;align-self:end;margin:0 0 9.146%;transform:translateY(50%)}
}
/* At 304px wide or less, the risk label on one line reaches the clay layer. There it breaks
   between "Risk line 01 ·" and the range, and each part stays on one line. */
@media(max-width:304px){
.story9 .sv2-tags li.out{max-width:min-content}
.story9 .sv2-tags li.out .svp{white-space:normal}
}
/* The caption over the output pills, "Every line gives you", starts at the left edge of the pills and is wider than
   them. In a 900px page, the pills end at x = 890 and the caption ends at x = 912, so the page scrolls sideways.
   From 861px wide, the caption ends at the right edge of the pills. Up to 860px wide, landing.css centres it. */
@media(min-width:861px){
.fl3-pills.out::before{left:auto;right:0}
}
