/* THE Explore section's look (2026-10-22; approved structure ~/AutoLeads/previews/site-structure/index.html, option
   A "page with sidebar"). Linked by the hub (public/explore/index.html), and every Explore page, through the
   head region scripts/site/sync-site-nav.mjs writes. Two jobs:
   1. On screen, a marketing page wears the homepage's dark look instead of "dark hero, white brochure". The pages'
      own sheet (the kit CSS) still draws them; here only its colour tokens are re-pointed, for `body.web` (the
      website copy) and for screens only. Printing a page (and every brochure PDF) stays the white brochure exactly.
   2. The section's chrome, generated from scripts/site/marketingPages.mjs by scripts/site/exploreChrome.mjs:
      breadcrumb, sidebar (desktop, 1024px and up), the "In Explore" bar that folds it on phones and tablets, the
      "All of Explore" + "Next" cards, the full footer, and the hub's cards. All of it is hidden in print.
   Tokens are the homepage's dark ones (site-nav.css, hire.css): night #07080b, panel #0e1016, panel2 #141720,
   line rgba(255,255,255,.09), nink #f2f2f0, nsoft #9aa1ad. Class names all start with ex- so they never meet a
   page's own. */

@media screen {
  /* ===== 1. the dark look, web only ===== */
  html:has(> body.web) { background: #07080b; }
  body.web { --bg: #07080b; --alt: #0c0e13; --ink: #f2f2f0; --ink2: #b7bcc6; --soft: #8d94a0; --line: rgba(255,255,255,.1);
    background: #07080b; color: #f2f2f0; }
  /* the hero was already dark and its cards are white on purpose: they keep the light tokens */
  body.web .hero { --ink: #0f1115; --ink2: #3c414b; --soft: #6b717d; --line: #e6e7eb; }
  /* white cards and quote boxes become the homepage's dark panels */
  body.web section .c { background: #0e1016; border-color: rgba(255,255,255,.09); }
  body.web section .wow, body.web .alt .wow { background: #0e1016; border: 1px solid rgba(255,255,255,.09); }
  body.web section .beat:before { background: #07080b; }
  body.web section .bar:before, body.web section .bar:after { border-color: #07080b; }
  /* one ground, sections split by a hairline (the homepage's rhythm) instead of grey bands */
  body.web .ex-main section, body.web .ex-main section.alt { background: transparent; border-top: 1px solid rgba(255,255,255,.08); }
  /* the breadcrumb now sits under the menu, so the hero no longer makes room for it */
  body.web .ex-main .hero { padding-top: 32px; }

  /* ===== 2. the chrome ===== */
  .ex-crumb, .ex-side, .ex-insec, .ex-keep, .ex-foot, .ex-hub {
    font-family: 'Schibsted Grotesk', -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
  .ex-h { display: block; font: 500 11.5px/1.25 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: #9aa1ad; margin: 0; }
  .ex-crumb a:focus-visible, .ex-side a:focus-visible, .ex-insec a:focus-visible, .ex-insec summary:focus-visible,
  .ex-keep a:focus-visible, .ex-foot a:focus-visible, .ex-hub a:focus-visible { outline: 2px solid #f2f2f0; outline-offset: 2px; }

  /* breadcrumb: "← Home / Explore / <page>", under the fixed menu */
  .ex-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: 1320px; margin: 0 auto;
    padding: calc(env(safe-area-inset-top, 0px) + 94px) 32px 0; font-size: 14.5px; line-height: 1.5; color: #9aa1ad; }
  .ex-crumb a { color: #9aa1ad; text-decoration: none; } .ex-crumb a:hover { color: #f2f2f0; }
  .ex-crumb .ex-back { color: #f2f2f0; font-weight: 600; }
  .ex-crumb .ex-here { color: #f2f2f0; }

  /* the page layout: sidebar + the page's own content */
  .ex-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; max-width: 1320px; margin: 0 auto; padding-left: 32px; }
  .ex-main { min-width: 0; }
  .ex-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); align-self: start; max-height: calc(100vh - 96px);
    overflow-y: auto; overscroll-behavior: contain; padding: 26px 0 24px; font-size: 14px; line-height: 1.3; scrollbar-width: thin; }
  .ex-side a, .ex-list a { display: block; padding: 5px 10px; border-radius: 6px; color: #9aa1ad; text-decoration: none; }
  .ex-side a:hover, .ex-list a:hover { color: #f2f2f0; background: rgba(255,255,255,.05); }
  .ex-side a.cur, .ex-list a.cur { color: #f2f2f0; background: rgba(255,255,255,.08); font-weight: 600; }
  .ex-side .ex-all, .ex-list .ex-all { color: #f2f2f0; font-weight: 600; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.09); padding-bottom: 12px; margin-bottom: 4px; }
  .ex-side .ex-h, .ex-list .ex-h { margin: 14px 0 4px 10px; }

  /* the phone and tablet fold of the sidebar */
  .ex-insec { display: none; }
  .ex-insec summary { display: flex; align-items: center; gap: 6px; padding: 12px 14px; cursor: pointer;
    list-style: none; font-size: 14.5px; font-weight: 500; color: #9aa1ad; }
  .ex-insec summary::-webkit-details-marker { display: none; }
  .ex-insec summary b { color: #f2f2f0; font-weight: 600; margin-right: auto; }
  .ex-insec summary::after { content: ''; flex: none; width: 7px; height: 7px; margin-right: 4px; border: solid #f2f2f0; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
  .ex-insec[open] summary::after { transform: translateY(2px) rotate(-135deg); }
  .ex-list { padding: 8px 4px 12px; border-top: 1px solid rgba(255,255,255,.09); font-size: 15px; line-height: 1.35; }

  /* the end of a page: back to the section, or on to the next page */
  .ex-keep { max-width: 1120px; margin: 0 auto; padding: 8px 32px 64px; }
  .ex-keep > .ex-h { margin: 0 0 12px; }
  .ex-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .ex-next a { display: block; background: #0e1016; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 16px 18px;
    color: #f2f2f0; text-decoration: none; transition: background .15s, border-color .15s; }
  .ex-next a:hover { background: #141720; border-color: rgba(255,255,255,.18); }
  .ex-next .ex-h { margin-bottom: 6px; }
  .ex-next b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
  .ex-next .ex-r { text-align: right; }

  /* the one footer */
  .ex-foot { background: #07080b; color: #9aa1ad; border-top: 1px solid rgba(255,255,255,.09); padding: 40px 32px 32px; font-size: 14px; line-height: 1.5; }
  .ex-fcols { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; max-width: 1256px; margin: 0 auto; }
  .ex-fcols a { display: block; color: #9aa1ad; padding: 3px 0; text-decoration: none; } .ex-fcols a:hover { color: #f2f2f0; }
  .ex-fcols .ex-h { margin-bottom: 10px; }
  .ex-fcols .ex-logo { color: #f2f2f0; font-weight: 600; font-size: 17px; letter-spacing: -.02em; padding: 0; }
  .ex-fbrand p { margin: 8px 0 0; }
  .ex-fcols .ex-home { color: #f2f2f0; margin-top: 12px; }
  .ex-fbar { display: flex; flex-wrap: wrap; gap: 8px 22px; max-width: 1256px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); font-size: 13.5px; }
  .ex-fbar a { color: #9aa1ad; text-decoration: none; } .ex-fbar a:hover { color: #f2f2f0; }

  /* the hub */
  .ex-hub { max-width: 1180px; margin: 0 auto; padding: 30px 32px 64px; color: #f2f2f0; }
  .ex-hub h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; margin: 10px 0 14px; }
  .ex-lede { color: #9aa1ad; font-size: 18px; line-height: 1.5; max-width: 38em; margin: 0 0 40px; }
  .ex-grp { margin-bottom: 36px; }
  .ex-grp > .ex-h { margin: 0 0 12px; font-weight: 500; }
  .ex-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .ex-cards.ex-roles { grid-template-columns: repeat(6, 1fr); }
  .ex-card { display: flex; flex-direction: column; background: #0e1016; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 18px;
    color: #f2f2f0; text-decoration: none; transition: background .15s, border-color .15s; }
  .ex-card:hover { background: #141720; border-color: rgba(255,255,255,.18); }
  .ex-card b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
  .ex-card span { color: #9aa1ad; font-size: 14.5px; line-height: 1.45; margin-top: 6px; }
  .ex-card i { font-style: normal; font-size: 13.5px; margin-top: auto; padding-top: 14px; }
}

/* ===== phones and tablets: no sidebar; the "In Explore" bar opens the list ===== */
@media screen and (max-width: 1023px) {
  .ex-shell { display: block; padding-left: 0; }
  .ex-side { display: none; }
  .ex-insec { display: block; margin: 14px 32px 0; background: #0e1016; border: 1px solid rgba(255,255,255,.09); border-radius: 8px; }
  .ex-fcols { grid-template-columns: repeat(2, 1fr); }
  .ex-fbrand { grid-column: 1 / -1; }
  .ex-cards { grid-template-columns: repeat(2, 1fr); }
  .ex-cards.ex-roles { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (max-width: 520px) {
  .ex-crumb { padding: calc(env(safe-area-inset-top, 0px) + 84px) 16px 0; }
  .ex-insec { margin: 12px 16px 0; }
  body.web .ex-main .hero { padding-top: 24px; }
  .ex-keep { padding: 8px 16px 48px; }
  .ex-next { grid-template-columns: 1fr; }
  .ex-next .ex-r { text-align: left; }
  .ex-foot { padding: 32px 16px 28px; }
  .ex-hub { padding: 22px 16px 48px; }
  .ex-hub h1 { font-size: 38px; }
  .ex-cards { grid-template-columns: 1fr; }
  .ex-cards.ex-roles { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ex-next a, .ex-card, .ex-insec summary::after { transition: none; } }

/* print: the white brochure, exactly as before; the section's chrome is for screens only */
@media print {
  .ex-crumb, .ex-side, .ex-insec, .ex-keep, .ex-foot { display: none !important; }
}
