/* generated from world-sf-coast.css for the rainforest world */
/* ===================== Scene-first layout: the landscape worlds (coast and rivers) =====================
   Linked after world.css on the coastal and rivers world pages, and built on world-sf-mobile.css (the view-tool rail
   --sf-railw, the card width --sf-cardw and the reading column --sf-colw). Every rule is scoped to the coast and
   rivers in the scene-first layout (.w-sf:is([data-world=coast],[data-world=rainforest])), so the classic layout and the
   tectonics globe are unchanged. The rivers world needs no styles of its own.
   The landscape worlds add readouts and charts (HUD), a geology key, a chart dock, feature cards, the context bar and a long,
   thin locator map to the dark glass chrome. Light SVG charts keep a paper backing so their own colours stay readable.
   Colours apply at every width; placement is for laptops and classroom displays (1200px and wider), where tablets and
   phones keep the placement in world-sf-mobile.css. The Coast planner keeps its own styles (world-sf-planner.css). */

/* ---------- time banner: the experiment, the speed of time, the stage phase and the conditions in play ---------- */
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-banner{padding:9px 13px;line-height:1.45;border-left:0}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-banner span:not(.ph){color:var(--sf-ink);font-weight:650;margin-top:3px}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-banner .ph{margin-left:6px}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-banner .ph.today{background:rgba(99,210,159,.2);color:var(--sf-good)}

/* ---------- readouts (HUD) on dark glass (not the Coast planner's, which has its own) ---------- */
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-hud:not(:has(.pl-hud)){padding:10px 13px;font-size:12.5px;line-height:1.45}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-hudrow{gap:12px;align-items:baseline}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-hudrow span{color:var(--sf-muted);flex:none;max-width:55%}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-hudrow span:only-child{max-width:none}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-hudrow b{color:var(--sf-ink);text-align:right;font-weight:650}
/* lesson colours chosen for a light card (temperature, wind) brightened for dark glass */
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-hud b[style*=color]{filter:brightness(1.9) saturate(.85)}
/* energy and stability bars: a faint track, so a short bar no longer reads as a full one */
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-energy{grid-template-columns:72px 1fr;color:var(--sf-ink)}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-energy i{height:10px;background:linear-gradient(90deg,#7cc9da var(--e),rgba(255,255,255,.13) var(--e))}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-energy i.hi{background:linear-gradient(90deg,#f0784a var(--e),rgba(255,255,255,.13) var(--e))}
/* small SVG charts (tide gauge, feedback cycle, dune zones, cliff retreat, wave and farm sections): a paper backing */
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-hud:not(:has(.pl-hud)) svg,.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-chartbody svg{display:block;max-width:100%;height:auto;margin:6px 0 4px;padding:4px;background:#f7f5ee;border-radius:8px;box-sizing:border-box}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-hud:not(:has(.pl-hud)) svg text,.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-chartbody svg text{font-family:Arial,Helvetica,sans-serif}

/* ---------- the geology key (G) ---------- */
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-legend{background:var(--sf-glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--sf-line);border-radius:12px;color:var(--sf-ink);padding:10px 13px;font-size:12px;gap:5px 9px}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-legend i{width:18px;height:11px;border-color:rgba(255,255,255,.35)}

/* ---------- feature cards ("i" markers) on dark glass, with a green (or amber, extension) rule ----------
   From 721px wide world.js puts the card at the top of the stack, above the time banner and readouts; on phones it
   stays where world-sf-mobile.css puts it, above the guide sheet. */
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-card{padding:13px 16px 14px;background:var(--sf-glass);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid var(--sf-line);border-top:3px solid var(--sf-good);border-radius:14px;box-shadow:0 14px 40px rgba(0,0,0,.3);color:var(--sf-ink)}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-stack>.w-card{pointer-events:auto;width:auto}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-card.ext{border-top-color:var(--sf-amber)}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-card .k{color:var(--sf-good)}.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-card.ext .k{color:var(--sf-amber2)}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-card h3{font-size:22px;color:var(--sf-ink);padding-right:26px}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-card p{font-size:13.5px;line-height:1.6;color:#e9e5da}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-card .x{color:var(--sf-muted);border-radius:8px;right:8px;top:8px}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-card .x:hover{background:rgba(255,255,255,.1);color:var(--sf-ink)}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-card .row button{background:var(--sf-ink);border-color:var(--sf-ink);color:#13202a;border-radius:10px;padding:7px 13px;font-size:13px}

/* ---------- the chart dock (wide charts: wave types, managed realignment) on dark glass ---------- */
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-chart{background:var(--sf-glass);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid var(--sf-line);border-radius:14px;box-shadow:0 14px 40px rgba(0,0,0,.3);color:var(--sf-ink)}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-chartbar{background:none;border-bottom-color:var(--sf-line);padding:5px 6px 5px 12px}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-chartgrip{color:var(--sf-muted)}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-chartbar b{color:var(--sf-amber2);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-chartmin{background:rgba(255,255,255,.1);color:var(--sf-ink);box-shadow:none;border-radius:8px}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-chart.ping .w-chartmin{background:var(--sf-amber);color:#1d1407}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-chartbody{padding:6px 12px 10px;color:var(--sf-ink)}
/* placement (above the map at the right, clear of the guide card) is shared by every world: world-sf-tools.css */

/* ---------- live charts in the guide card (#w-live) ---------- */
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf:not(.sf-dock) .w-live .rv-chart{border-color:var(--sf-line);background:#f7f5ee}

/* ---------- conditions buttons in the card: room to read, and clear which one is on ---------- */
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf:not(.sf-dock) .w-cond{border:1px solid var(--sf-line);border-radius:12px;padding:11px 12px;gap:7px}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf:not(.sf-dock) .w-cond button{padding:7px 13px;font-size:13px;text-align:left;line-height:1.3}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf:not(.sf-dock) .w-cond button:hover:not([aria-pressed=true]){background:rgba(255,255,255,.1)}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-cond button[aria-pressed=true]::before{content:"✓ "}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf:not(.sf-dock) .w-cond + .w-small strong{color:var(--sf-ink)}

/* ---------- the coastal locator map: a long, thin strip, framed like the rest of the chrome ---------- */
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-locator:not(.collapsed){border:1px solid rgba(255,255,255,.28);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.28)}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-locator.collapsed .w-loctog{border-radius:999px;min-height:40px;padding:6px 14px}

/* ---------- the context bar: which scene (and conditions) the model shows as evidence while explaining and checking ---------- */
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-context span{display:block;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--sf-amber2);font-weight:700}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-context strong{font-size:14px;font-weight:650;color:var(--sf-ink)}
.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-context small{display:inline;font-size:12.5px;color:var(--sf-muted);margin-left:6px}

/* ---------- laptops and classroom displays (1200px and wider): placement ---------- */
@media (min-width:1200px){
 /* the stack (feature card, banner, readouts, geology key) beside the view-tool rail, one width for all its parts */
 .w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-stack{top:66px;width:min(340px,30%);max-width:calc(100% - var(--sf-cardw) - var(--sf-railw) - 62px);gap:8px;align-items:stretch}
 .w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf.sf-dock .w-stack{left:14px;right:auto}
 /* the context bar: a small glass label centred in the open strip between the guide card (or, docked, the stack) and the stack */
 #world.w-sf:is([data-world=coast],[data-world=rainforest]):is([data-step=check],[data-step=explain]) .w-stage.sf .w-context:not([hidden]){display:block;position:absolute;top:66px;left:calc(var(--sf-cardw) + 28px);right:calc(24px + var(--sf-railw) + min(340px,30%) + 12px);width:fit-content;max-width:none;margin:0 auto;z-index:36;padding:6px 14px 7px;border:1px solid var(--sf-line);border-radius:12px;background:var(--sf-glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:var(--sf-ink);text-align:center;pointer-events:none}
 #world.w-sf:is([data-world=coast],[data-world=rainforest]):is([data-step=check],[data-step=explain]) .w-stage.sf.sf-dock .w-context:not([hidden]){left:calc(14px + min(340px,30%) + 12px);right:calc(var(--sf-colw) + 24px + var(--sf-railw))}
 /* the map, a little wider for the long coast; the caption keeps to the strip between the card and the map */
 .w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-locator:not(.collapsed){width:min(290px,24%)}
 .w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf:has(.w-locator:not(.collapsed)) .w-caption{right:calc(min(290px,24%) + 28px)}
}
/* smaller laptops and classroom displays (up to 1300px wide or 780px high): a slimmer stack and map */
@media (min-width:1200px) and (max-width:1300px),(min-width:1200px) and (max-height:780px){
 .w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-stack{width:min(300px,28%)}
 .w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-hud:not(:has(.pl-hud)),.w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-banner{font-size:12px;padding:8px 11px}
 .w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-card h3{font-size:19px}
 .w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-card p{font-size:13px;line-height:1.5}
 .w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf .w-locator:not(.collapsed){width:min(250px,22%)}
 .w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf:has(.w-locator:not(.collapsed)) .w-caption{right:calc(min(250px,22%) + 28px)}
 .w-sf:is([data-world=coast],[data-world=rainforest]) .w-stage.sf:has(.w-locator:not(.collapsed)) .w-chart{--sf-maph:104px}
 #world.w-sf:is([data-world=coast],[data-world=rainforest]):is([data-step=check],[data-step=explain]) .w-stage.sf .w-context:not([hidden]){right:calc(24px + var(--sf-railw) + min(300px,28%) + 12px)}
 #world.w-sf:is([data-world=coast],[data-world=rainforest]):is([data-step=check],[data-step=explain]) .w-stage.sf.sf-dock .w-context:not([hidden]){left:calc(14px + min(300px,28%) + 12px)}
}
