/* NLD theme additions. These only add classes the export doesn't have (live-price
   specials, generic pages, the checkout shell). The export's own styles are untouched
   in site.css, aio*.css and pages/*.css. Same tokens as site.css. */

/* ---- images carry width/height (inc/perf.php) to reserve space; keep their shape unless a rule sizes them ---- */
:where(img[width][height]){height:auto}

/* ---- readability: the faint label grey meets WCAG AA (4.5:1) on every card background ---- */
:root{--faint:#798592;--sans:"Hanken Grotesk","Hanken Grotesk Fallback",system-ui,sans-serif;--mono:"JetBrains Mono","JetBrains Mono Fallback",ui-monospace,monospace}
.url,.frame .url{color:var(--faint)}
/* Links inside running text are underlined, so they don't rely on colour alone. */
.lede a:not([class]),.prose p a:not([class]),.bprose p a:not([class]),.bprose li a:not([class]),.src a:not([class]),figcaption a:not([class]),section p a:not([class]){text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}

/* ---- smooth page-to-page transitions (browsers that support them; off with reduced motion) ---- */
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  ::view-transition-old(root),::view-transition-new(root){animation-duration:.16s}
  .nav{view-transition-name:site-nav}
}

/* ---- live-price specials, shown the way checkout shows them ---- */
.deal{font-size:12.5px;line-height:1.5;color:var(--accent);font-weight:600}
.deal s{color:var(--faint);font-weight:500;margin-right:2px}
.deal em{font-style:normal}
.tier .price .alt{font-size:12.5px;line-height:1.5;color:var(--muted)}
.tier .price .deal[hidden],.tier .price .alt[hidden]{display:none}
.sn .deal{margin-top:2px}
.door .from .deal{font-size:12.5px;margin-left:2px}

/* ---- generic pages (page.php): Support, legal, account ---- */
.phead{padding:clamp(56px,7vw,92px) 0 0;position:relative;overflow:hidden}
.phead::before{content:"";position:absolute;top:-340px;left:50%;transform:translateX(-50%);width:1300px;height:760px;background:radial-gradient(closest-side,rgba(232,163,61,.09),transparent 72%);pointer-events:none}
.phead .wrap{position:relative}
.pbody{padding:clamp(32px,4vw,52px) 0 clamp(72px,9vw,120px)}
.prose{max-width:76ch;font-size:15.5px;line-height:1.7;color:var(--muted);text-wrap:pretty}
.prose.prose-app{max-width:none}
.prose>:first-child{margin-top:0}
.prose h2{color:var(--text);font-size:clamp(22px,2.2vw,28px);font-weight:800;letter-spacing:-.025em;line-height:1.2;margin:48px 0 14px;text-wrap:balance}
.prose h3{color:var(--text);font-size:18px;font-weight:700;letter-spacing:-.015em;line-height:1.3;margin:32px 0 10px}
.prose h4{color:var(--text);font-size:15px;font-weight:700;margin:24px 0 8px}
.prose p,.prose ul,.prose ol,.prose table,.prose blockquote{margin:0 0 16px}
.prose ul,.prose ol{padding-left:22px}
.prose li{margin:6px 0}
.prose li::marker{color:var(--accent)}
.prose strong,.prose b{color:var(--text);font-weight:700}
.prose a{text-decoration:underline;text-decoration-color:rgba(232,163,61,.4);text-underline-offset:3px}
.prose a.btn,.prose a.button,.prose .button{text-decoration:none}
.prose code{font-family:var(--mono);font-size:.88em;background:var(--card);border:1px solid var(--line-2);border-radius:6px;padding:2px 6px;color:var(--text)}
.prose hr{border:0;height:1px;background:var(--line);margin:40px 0}
.prose blockquote{border-left:3px solid var(--accent);padding:4px 0 4px 18px;color:var(--text)}
.prose table{width:100%;border-collapse:collapse;border:1px solid var(--line);font-size:14px}
.prose th{text-align:left;font-family:var(--mono);font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--faint);font-weight:600;padding:11px 14px;background:var(--panel);border-bottom:1px solid var(--line)}
.prose td{padding:11px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.prose .pilotnote{margin:0 0 32px}
.prose mark{background:var(--accent-soft);color:var(--accent);border-radius:4px;padding:1px 5px}
.prose em{color:var(--faint)}
.prose .nld-changelog h3{font-family:var(--mono);font-size:13px;letter-spacing:.06em;color:var(--accent)}
.prose .nld-changelog li{font-size:14px}
.prose .wp-block-buttons,.prose .acts{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}

/* ---- checkout shell (Subscribe page) ---- */
.co-lede{margin:14px 0 34px}
.co-next{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden;margin-top:56px}
.co-next>div{background:var(--card);padding:22px 24px;font-size:13.5px;line-height:1.55;color:var(--muted)}
.co-next b{display:block;color:var(--text);font-size:15px;font-weight:700;letter-spacing:-.01em;margin:8px 0 6px}
.co-next .n{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;color:var(--accent)}
.co-help{margin:20px 0 0}
@media(max-width:900px){.co-next{grid-template-columns:1fr}}

/* "Best viewed on a tablet or desktop" callout. Hidden by default; the ICM demo (aio-demo.css) and the
   Dashboard live-product popup (pages/dashboard.css) show it on phones in place of a screen that needs more room. */
.dmob{display:none;margin:0 0 14px;padding:14px 16px;border:1px solid rgba(232,163,61,.28);background:var(--accent-soft);border-radius:12px;font-size:14px;line-height:1.55;color:var(--text);text-wrap:pretty}
.dmob b{color:var(--text)}

/* ---- phones: keep every page inside the screen ----
   On phones these layouts collapse to one column. A plain 1fr column can't shrink below its widest content (the mock
   browser bars over the screenshots keep their address on one line), so the Dashboard showcase and "Five reasons" rows,
   the NLD ICM back-end pair and the Built for BC article ran past the right edge. minmax(0,1fr) lets them fit, as the
   desktop layouts already do. The header gaps shrink so the menu button fits on 360px-wide phones. */
@media(max-width:980px){.show,.doclayout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){.why,.whyrow,.bk2{grid-template-columns:minmax(0,1fr)}}
@media(max-width:620px){.nav .row{gap:14px}}

/* Text for search engines and screen readers only (e.g. the ICM demo's page heading). */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
