/* ==========================================================================
   Design Lab stage: Ag Weather News (/news/, /news/severe/, /news/seasonal/, /news/<slug>).
   Live scripts: v3/templates/news-index.php, news-article.php, and news-404.php (included by both).
   Their styles are one inline <style> from newsSharedCss() in v3/includes/news_lib.php; the 404 uses inline style="".
   Shared tokens and glass recipes are in slate.css. The live page is not edited.

   Surfaces:
     page headline, article title, card titles, section headings ... Source Serif (editorial page, as the homepage headlines)
     article body ........................... Plus Jakarta Sans, soft white, a comfortable size and line height
     article images ......................... untouched, white, in a rounded frame
     listing cards, related cards ........... soft glass panes; mint edge on hover, nothing moves
     card thumbnails ........................ the map image untouched in a rounded frame; no image = a recessed well
     category chips ......................... a dark tint of their colour with light text (the pale chips were the brightest thing on the page)
     share buttons, pager ................... sheets; the current page is the raised pill
     Pro call to action band ................ soft glass pane (the live teal gradient was a wash); the button is rust, the only rust here
     admin draft banner ..................... dark amber tint
     404 ("Article not found") .............. serif headline, the teal button becomes a quiet mint outline
     footer ................................. slate.css

   Most text already follows the re-pointed --ink / --muted / --card / --ring tokens.
   ========================================================================== */

/* ---------- column: slate.css widens every .wrap to the site width; keep the live 1125px reading column ---------- */
html.stage[data-stage="news"] .news-wrap{max-width:calc(1125px + 2 * var(--gut))}

/* ---------- headlines: Source Serif 500 (the live rules named Plus Jakarta 800) ---------- */
html.stage .news-title,
html.stage .news-article__title,
html.stage .news-card__title,
html.stage .news-related h2,
html.stage .news-article__body h2,
html.stage .news-article__body h3{font-family:var(--sans);font-weight:700;letter-spacing:-.02em;color:var(--sg-ink);text-wrap:balance}
html.stage .news-title{font-size:1.9rem;line-height:1.15;margin-bottom:6px}
html.stage .news-article__title{font-size:clamp(1.9rem,4.2vw,2.6rem);line-height:1.12;letter-spacing:-.016em}
html.stage .news-card__title{font-size:1.35rem;line-height:1.22}
html.stage .news-related h2{font-size:1.3rem;line-height:1.2}
html.stage .news-article__body h2{font-size:1.5rem;line-height:1.2}
html.stage .news-article__body h3{font-size:1.25rem;line-height:1.25}

/* ---------- index header: description and the "Showing posts tagged" line ---------- */
html.stage .news-sub{color:var(--sg-soft)}
html.stage .news-filter{color:var(--sg-muted)}
html.stage .news-filter strong{color:var(--sg-ink)}
html.stage .news-filter a{color:var(--sg-link)}
html.stage .news-filter a:hover{color:#a7f3d0}
html.stage .news-date{color:var(--sg-muted)}

/* ---------- category chips: dark tint, light text. Severe = soft red, Seasonal = mint ---------- */
html.stage .news-chip--severe{background:rgba(248,113,113,.15);color:#fca5a5;box-shadow:inset 0 0 0 1px rgba(248,113,113,.28)}
html.stage .news-chip--seasonal{background:rgba(110,231,183,.13);color:#6ee7b7;box-shadow:inset 0 0 0 1px rgba(110,231,183,.28)}
html.stage a.news-chip{transition:background-color .2s ease}
html.stage a.news-chip:hover{filter:none}
html.stage a.news-chip--severe:hover{background:rgba(248,113,113,.24)}
html.stage a.news-chip--seasonal:hover{background:rgba(110,231,183,.22)}

/* ---------- listing cards: soft glass panes. Live hover lifted the card; here only the edge turns mint ---------- */
html.stage .news-card{background:var(--glass-bg);border-color:var(--glass-border);box-shadow:var(--glass-shadow);border-radius:16px;transition:border-color .15s ease}
html.stage .news-card:hover{transform:none;border-color:rgba(110,231,183,.5);box-shadow:var(--glass-shadow)}
html.stage .news-card:hover .news-card__title{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
html.stage .news-card:focus-visible{outline-offset:3px}
html.stage .news-card__dek{color:var(--sg-soft)}
/* thumbnail: the map image untouched in a rounded frame. The faint fill shows only while a lazy image loads */
html.stage .news-card__thumb{background:rgba(255,255,255,.05);box-shadow:0 0 0 1px rgba(255,255,255,.1);border-radius:10px}
html.stage .news-card__thumb img{background:#fff;color:#475569;font-size:13px}   /* colour only for a broken image's alt text, on the white */
/* no image: the category icon in a recessed well */
html.stage .news-card__thumb:not(:has(img)){background:var(--well-bg);box-shadow:var(--well-shadow);color:var(--sg-muted)}

/* ---------- pager ---------- */
html.stage .news-pager a,html.stage .news-pager span{background:var(--sheet-bg);border-color:var(--sheet-border);color:var(--sg-ink);border-radius:99px;transition:background-color .2s ease}
html.stage .news-pager a:hover{background:rgba(255,255,255,.14)}
html.stage .news-pager span.is-current{background:var(--pill-bg);border-color:rgba(255,255,255,.22);box-shadow:var(--pill-shadow);color:#fff}

/* ---------- empty state ---------- */
html.stage .news-empty{color:var(--sg-muted)}

/* ---------- article: byline and body ---------- */
html.stage .news-article__byline{color:var(--sg-muted);border-bottom-color:rgba(255,255,255,.12)}
html.stage .news-article__byline span{color:var(--sg-soft)}
html.stage .news-article__body{color:var(--sg-soft);font-size:1.075rem;line-height:1.75}
html.stage .news-article__body p{margin-bottom:1.15em}
html.stage .news-article__body strong{color:var(--sg-ink)}
html.stage .news-article__body em{color:var(--sg-soft)}            /* live greyed italics; on dark that sank too far */
html.stage .news-article__body a{color:var(--sg-link);text-underline-offset:2px}
html.stage .news-article__body a:hover{color:#a7f3d0}
html.stage .news-article__body hr{border:0;border-top:1px solid rgba(255,255,255,.14);margin:1.8em 0}
html.stage .news-article__body blockquote{margin:1.2em 0;padding:2px 0 2px 18px;border-left:2px solid rgba(110,231,183,.5);color:var(--sg-soft)}
html.stage .news-article__body li{margin-bottom:.4em}
/* images and charts: untouched, white, in a rounded frame */
html.stage .news-article__body img{border:0;border-radius:10px;background:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.1),0 14px 30px -18px rgba(0,0,0,.7)}

/* ---------- share row: sheet pills, white text ---------- */
html.stage .news-share__label{color:var(--sg-muted)}
html.stage .news-share a,html.stage .news-share button{background:var(--sheet-bg);border-color:var(--sheet-border);box-shadow:var(--sheet-shadow);color:var(--sg-ink);transition:background-color .2s ease}
html.stage .news-share a:hover,html.stage .news-share button:hover{background:rgba(255,255,255,.14);color:#fff}

/* ---------- Pro call to action (signed out / trial-eligible only): soft glass pane, rust button ---------- */
html.stage .news-cta{background:var(--glass-bg);border:1px solid var(--glass-border);box-shadow:var(--glass-shadow);border-radius:16px;color:var(--sg-soft)}
html.stage .news-cta strong{color:var(--sg-ink)}
html.stage .news-cta a{background:var(--pro);color:#fff;transition:var(--pro-ease)}
html.stage .news-cta a:hover{background:var(--pro-h);box-shadow:var(--pro-glow)}
html.stage .news-cta a:active{background:var(--pro-d);box-shadow:none;transition-duration:.08s}

/* ---------- related posts: hairline above, small glass cards ---------- */
html.stage .news-related{border-top-color:rgba(255,255,255,.12)}
html.stage .news-related__card{background:var(--glass-bg);border-color:var(--glass-border);box-shadow:var(--glass-shadow);border-radius:12px;transition:border-color .15s ease}
html.stage .news-related__card:hover{border-color:rgba(110,231,183,.5);box-shadow:var(--glass-shadow)}
html.stage .news-related__card:hover strong{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
html.stage .news-related__card strong{color:var(--sg-ink)}

/* ---------- admin draft / scheduled preview banner ---------- */
html.stage .news-draft-banner{background:rgba(251,191,36,.12);border-color:rgba(252,211,77,.4);color:#fcd34d}
html.stage .news-draft-banner a{color:#fde68a;text-decoration:underline;text-underline-offset:2px}

/* ---------- 404 (news-404.php, inline styles). The button's inline teal needs !important to be replaced ---------- */
/* slate.css pads every .wrap with var(--gut) (up to 104px a side); inside the inline 600px border-box that left a ~390px column */
html.stage[data-stage="news"] main .wrap[style*="max-width:600px"]{padding-left:16px;padding-right:16px}
html.stage[data-stage="news"] main .wrap[style*="max-width:600px"] h1{font-family:var(--sans);font-weight:700;letter-spacing:-.02em;color:var(--sg-ink)}
html.stage[data-stage="news"] main .wrap[style*="max-width:600px"] p{color:var(--sg-soft) !important}   /* inline var(--muted) */
html.stage[data-stage="news"] main .wrap[style*="max-width:600px"] a[href="/news/"]{background:transparent !important;color:var(--sg-link) !important;box-shadow:inset 0 0 0 1px rgba(110,231,183,.6);font-weight:600 !important;transition:background-color .2s ease}
html.stage[data-stage="news"] main .wrap[style*="max-width:600px"] a[href="/news/"]:hover{background:rgba(110,231,183,.12) !important;color:#a7f3d0 !important}

/* ---------- phones (live breakpoint 640px: cards stack, thumbnail full width) ---------- */
@media (max-width:640px){
  html.stage .news-title{font-size:1.7rem}
  html.stage .news-card__title{font-size:1.25rem}
  html.stage .news-article__body{font-size:1.04rem;line-height:1.7}
}
