/* ==========================================================================
   Design Lab stage: the Australia and Canada home pages (/au/ = au/index.php, /ca/ = ca/index.php).
   Shared tokens and glass recipes are in slate.css. The live files are not edited.
   Both pages carry data-stage="region_home"; data-region="au" or "ca" tells them apart.

   Surfaces on these pages:
     Canada Right Now (/ca/ only) .. the card turns soft glass; the poster is drawn weather art in an iframe
                                     (/v3/pixel_wx?embed=1, never restyled) and stays as it is, in a rounded frame
                                     inset in the card
     section headings .............. straight on the slate, Plus Jakarta, as on Weather Maps
     snapshot cards ................ soft glass panes; each published map image sits on white in a rounded frame
                                     (the same recipe as stage/wx_maps.css)
     resource cards ................ soft glass panes holding plain link lists; links in mint (live: browser blue)
     feedback card ................. soft glass pane, centred; its text is inline var(--muted), already the light
                                     label colour on the stage (about 7:1 on the pane)
   No menus, tables, charts, loading or empty states. Signed-out, free and Pro visitors get the same markup
   (only the nav differs, and stage.php builds that). /ca/ also shows the site-wide upgrade floater for
   signed-out and free visitors; slate.css handles it.
   ========================================================================== */

/* ---------- column ----------
   /ca/ has an inline <style> in <main> that drops the .wrap side padding from 1432px up. It comes after this file
   and has the same weight as slate.css's .wrap rule, so it wins and the cards would run past the nav's edges.
   Put the stage gutters back. */
html.stage[data-stage="region_home"] main .section .wrap{padding-left:var(--gut);padding-right:var(--gut)}

/* ---------- sections and headings ---------- */
html.stage[data-stage="region_home"] main .section{padding:18px 0}
html.stage[data-stage="region_home"] main .section > .wrap:not(.grid){margin-bottom:12px}   /* heading block, then its cards */
html.stage[data-stage="region_home"] main .h2{font-family:var(--sans);font-weight:700;font-size:22px;line-height:1.2;letter-spacing:-.02em;color:var(--sg-ink)}

/* ---------- cards: soft glass ---------- */
html.stage[data-stage="region_home"] main .card{background:var(--glass-bg);border-color:var(--glass-border);box-shadow:var(--glass-shadow);border-radius:16px}
html.stage[data-stage="region_home"] main a.card{transition:border-color .15s ease}
html.stage[data-stage="region_home"] main a.card:hover{border-color:rgba(110,231,183,.5);box-shadow:var(--glass-shadow)}
html.stage[data-stage="region_home"] main a.card:focus-visible{outline-offset:3px}
html.stage[data-stage="region_home"] main .card .card__title{color:var(--sg-ink)}
html.stage[data-stage="region_home"] main .card .eyebrow{color:var(--sg-muted);font-weight:600}

/* ---------- snapshot cards: the map on white, in a rounded frame inset 8px ----------
   The faint fill shows only while a lazy image has not arrived, so an empty frame is a quiet slate box.
   The image itself is untouched; its text colour is only for the alt text of a broken image. */
html.stage[data-stage="region_home"] main .card__media{position:relative;margin:8px 8px 0;border-radius:10px;overflow:hidden;min-height:96px;background:rgba(255,255,255,.05);box-shadow:0 0 0 1px rgba(255,255,255,.1)}
html.stage[data-stage="region_home"] main .card__media > img{background:#fff;color:#475569;font-size:13px}
html.stage[data-stage="region_home"] main .card__body{padding:12px 14px 14px}

/* ---------- resource lists and the feedback card: links in mint ----------
   The live page gives these links no colour, so they show in the browser's blue and visited purple. */
html.stage[data-stage="region_home"] main .card:not(a) a{color:var(--sg-link);text-decoration:none;font-weight:500}
html.stage[data-stage="region_home"] main .card:not(a) a:visited{color:var(--sg-link)}
html.stage[data-stage="region_home"] main .card:not(a) a:hover{color:#a7f3d0;text-decoration:underline;text-underline-offset:2px}
html.stage[data-stage="region_home"] main #links .card__body{padding:16px 18px}

/* ---------- Canada Right Now (/ca/ only) ----------
   The card's white ground, border, radius and shadow are inline styles, hence !important.
   The poster stays white art; it sits in a frame inset 8px like the snapshot maps. The iframe keeps the live
   aspect-ratio (480/199), so the frame is exactly the poster, no letterboxing. */
html.stage[data-stage="region_home"] .ca-now-card{background:var(--glass-bg) !important;border:1px solid var(--glass-border) !important;border-radius:16px !important;box-shadow:var(--glass-shadow) !important}
html.stage[data-stage="region_home"] .ca-now-embed{width:calc(100% - 16px);margin:0 8px 8px;border-radius:10px;box-shadow:0 0 0 1px rgba(255,255,255,.1)}

/* ---------- phones ----------
   The live grids drop to one column below 640px (styles_v3.css), kept. Frames and headings tighten. */
@media (max-width:640px){
  html.stage[data-stage="region_home"] main .h2{font-size:20px}
  html.stage[data-stage="region_home"] main .card__media{margin:6px 6px 0;border-radius:8px}
  html.stage[data-stage="region_home"] .ca-now-embed{width:calc(100% - 12px);margin:0 6px 6px;border-radius:8px}
}
