/* ==========================================================================
   CampusLoom — base.css
   The one shared stylesheet: brand tokens, light/dark themes, reset,
   typography, layout, shared components, header and footer.
   Pages add their own small stylesheet on top; they never redefine tokens.

   Theme: <html data-theme="dark"> (default) or "light", set before paint by
   the inline snippet in each page's <head> and toggled by site.js.
   Storage key: localStorage["campusloom-theme"].
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand (HSL triplets so alpha blends stay on-brand) */
  --h-orange: 11 100% 65%;      /* #FF6B4A */
  --h-peach: 33 100% 83%;       /* #FFD6A8 */
  --h-canvas: 36 100% 98%;      /* #FFFBF5 */
  --h-ink: 0 0% 10%;            /* #1A1A1A */
  --h-border: 36 27% 89%;       /* #EDE6DC */
  --h-pill: 36 100% 93%;        /* #FFF0D9 */
  --h-brown: 30 85% 29%;        /* #8B4A0C */
  --h-card: 0 0% 100%;
  --h-surface: 36 38% 93%;      /* #F5EFE6 */
  --h-muted: 40 2% 41%;         /* #6B6B66 */

  --orange: hsl(var(--h-orange));
  --peach: hsl(var(--h-peach));
  --canvas: hsl(var(--h-canvas));
  --ink: hsl(var(--h-ink));
  --border: hsl(var(--h-border));
  --pill: hsl(var(--h-pill));
  --brown: hsl(var(--h-brown));
  --card: hsl(var(--h-card));
  --surface: hsl(var(--h-surface));
  --muted: hsl(var(--h-muted));
  --orange-soft: hsl(var(--h-orange) / 0.10);

  --shadow-sm: 0 1px 3px rgb(0 0 0 / 0.04), 0 4px 24px rgb(26 16 0 / 0.05);
  --shadow-lg: 0 20px 50px rgb(139 74 12 / 0.08), 0 1px 0 rgb(255 255 255 / 0.8) inset;
  --glass: hsl(var(--h-canvas) / 0.86);

  /* subject / tool pastels (bg, ink) — shared by nav tiles and pages */
  --tile-blue: #D6E8FF;   --tile-blue-ink: #1B3A7A;
  --tile-green: #D1F0DE;  --tile-green-ink: #0F5132;
  --tile-gold: #FFE8B0;   --tile-gold-ink: #6B4800;
  --tile-coral: #FFE4D6;  --tile-coral-ink: #7A2210;
  --tile-purple: #E4D9FF; --tile-purple-ink: #3D2E7A;
  --tile-yellow: #FFF4C4; --tile-yellow-ink: #6B5000;
  --tile-amber: #FFF0D9;  --tile-amber-ink: #8B4A0C;
  --tile-teal: #CCEFED;   --tile-teal-ink: #0D5C56;
  --tile-slate: #EAEAF4;  --tile-slate-ink: #4A4A7A;
  --tile-rose: #FFE4EE;   --tile-rose-ink: #7A1040;

  /* type */
  --font-d: "Bricolage Grotesque", system-ui, sans-serif;
  --font-b: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-a: "Fraunces", Georgia, serif;

  /* layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 10vw, 120px);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  /* header */
  --nav-top: 14px;
  --nav-h: 60px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --h-orange: 11 100% 69%;      /* #FF7E60 */
  --h-peach: 24 61% 26%;        /* #6B3A1A */
  --h-canvas: 0 0% 4%;          /* #0A0A0A */
  --h-ink: 36 33% 93%;          /* #F4F0E8 */
  --h-border: 0 0% 14%;         /* #222 */
  --h-pill: 36 25% 10%;         /* #1F1A12 */
  --h-brown: 33 67% 65%;        /* #E0A86A */
  --h-card: 0 0% 8%;            /* #141414 */
  --h-surface: 0 0% 12%;        /* #1E1E1E */
  --h-muted: 36 5% 58%;         /* #9A958C */
  --orange-soft: hsl(var(--h-orange) / 0.14);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 24px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 20px 50px rgb(0 0 0 / 0.5), 0 1px 0 rgb(255 255 255 / 0.03) inset;
  --glass: hsl(0 0% 8% / 0.86);
  color-scheme: dark;
}

/* ---------- 2. Global baseline ----------
   What every page gets, ported or not. Kept to what the WordPress site also
   gave every page, so the ported pages' own CSS lands on the same ground. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  margin: 0;
  font: 400 16px/1.7 var(--font-b);   /* the WordPress theme's body type, measured on live */
  overflow-wrap: break-word;          /* the theme's: a word too long for its box wraps */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* The WordPress header forced this dark page background on every page
   (the tokens' --canvas stays #0A0A0A for surfaces that use it). */
[data-theme="dark"] body { background-color: #0E0E0E; }
img, video { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
/* the WordPress theme's skip link: off-screen until a keyboard user reaches it */
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100000; padding: 10px 16px;
  background: #1A1A1A; color: #fff; border-radius: 999px; font: 600 14px/1.4 var(--font-b);
}
.skip-link:focus { top: 16px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Sections 2b–7: the site's own design system — reset, type, layout,
   buttons, cards, reveal. Scoped to the pages built for this site (notes,
   blog, 404: body.site-ui). The header, the footer and the ported pages
   don't get it: they carry their own classes, and several reuse these names
   (.container, .btn, .eyebrow, .hl, .section, .theme-toggle…), so unscoped
   they were restyled on top of their own design. :where() adds no
   specificity, so these rules rank among themselves exactly as before.
   ========================================================================== */

:where(.site-ui) * { margin: 0; }
body.site-ui {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-b);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
:where(.site-ui) img, :where(.site-ui) svg, :where(.site-ui) video, :where(.site-ui) canvas { display: block; max-width: 100%; }
:where(.site-ui) img { height: auto; }
:where(.site-ui) input, :where(.site-ui) button, :where(.site-ui) textarea, :where(.site-ui) select { font: inherit; color: inherit; }
:where(.site-ui) button { cursor: pointer; background: none; border: 0; padding: 0; }
:where(.site-ui) a { color: inherit; text-decoration: none; }
:where(.site-ui) ul[role="list"], :where(.site-ui) ol[role="list"] { list-style: none; padding: 0; }
:where(.site-ui) h1, :where(.site-ui) h2, :where(.site-ui) h3, :where(.site-ui) h4 { font-family: var(--font-d); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
:where(.site-ui) p { text-wrap: pretty; }

/* ---------- 3. Layout ---------- */
:where(.site-ui) .container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
:where(.site-ui) .section { padding-block: var(--section); }
:where(.site-ui) .full-bleed { width: 100%; }                 /* real full-width: just don't wrap it in .container */
:where(.site-ui) .visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ---------- 4. Type helpers (signature brand moves) ---------- */
:where(.site-ui) .display { font-size: clamp(2.5rem, 6vw, 4.5rem); }
:where(.site-ui) .h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
:where(.site-ui) .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }
:where(.site-ui) .pop { color: var(--orange); }                                  /* orange last word */
:where(.site-ui) .hl { position: relative; white-space: nowrap; isolation: isolate; }  /* peach highlighter */
:where(.site-ui) .hl::after {
  content: ""; position: absolute; z-index: -1; inset: 58% -0.1em 4% -0.1em;
  background: var(--peach); transform: rotate(-1deg); border-radius: 3px;
}
[data-theme="dark"] :where(.site-ui) .hl::after { opacity: 0.6; }
:where(.site-ui) .accent { font-family: var(--font-a); font-style: italic; font-weight: 400; }  /* Fraunces */

:where(.site-ui) .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--pill); color: var(--brown);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.01em;
}
:where(.site-ui) .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ---------- 5. Buttons ---------- */
:where(.site-ui) .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, color 0.2s;
}
:where(.site-ui) .btn:hover { transform: translateY(-2px); }
:where(.site-ui) .btn-primary { background: var(--ink); color: var(--canvas); }
:where(.site-ui) .btn-secondary { border: 1.5px solid var(--ink); color: var(--ink); }
:where(.site-ui) .btn-secondary:hover { background: var(--ink); color: var(--canvas); }
:where(.site-ui) .btn-orange {
  color: #fff;
  background: linear-gradient(180deg, #FF7A5A, #FF5B34);
  box-shadow: 0 4px 18px hsl(var(--h-orange) / 0.4), 0 1px 0 rgb(255 255 255 / 0.22) inset;
}
:where(.site-ui) .btn-orange:hover { filter: brightness(1.06); }
:where(.site-ui) .btn .arrow {
  display: grid; place-items: center; width: 30px; height: 30px; margin-right: -14px;
  border-radius: 50%; background: rgb(255 255 255 / 0.22);
}
:where(.site-ui) .btn svg { width: 14px; height: 14px; }

/* ---------- 6. Cards & icons ---------- */
:where(.site-ui) .card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
:where(.site-ui) .icon { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none;
        stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:where(.site-ui) .tile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none; }
:where(.site-ui) .tile .icon { width: 16px; height: 16px; }
:where(.site-ui) .tile--blue { background: var(--tile-blue); color: var(--tile-blue-ink); }
:where(.site-ui) .tile--green { background: var(--tile-green); color: var(--tile-green-ink); }
:where(.site-ui) .tile--gold { background: var(--tile-gold); color: var(--tile-gold-ink); }
:where(.site-ui) .tile--coral { background: var(--tile-coral); color: var(--tile-coral-ink); }
:where(.site-ui) .tile--purple { background: var(--tile-purple); color: var(--tile-purple-ink); }
:where(.site-ui) .tile--yellow { background: var(--tile-yellow); color: var(--tile-yellow-ink); }
:where(.site-ui) .tile--amber { background: var(--tile-amber); color: var(--tile-amber-ink); }
:where(.site-ui) .tile--teal { background: var(--tile-teal); color: var(--tile-teal-ink); }
:where(.site-ui) .tile--slate { background: var(--tile-slate); color: var(--tile-slate-ink); }
:where(.site-ui) .tile--rose { background: var(--tile-rose); color: var(--tile-rose-ink); }
:where(.site-ui) .soon-badge {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--orange); background: var(--orange-soft); padding: 2px 7px; border-radius: 999px;
}

/* ---------- 7. Scroll reveal (opt-in: add .reveal) ---------- */
:where(.site-ui) .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
:where(.site-ui) .reveal.is-in { opacity: 1; transform: none; }
.no-js :where(.site-ui) .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   8. Header (static markup in every page; script in header.js)
   Generated by _migration/build-header.py from "02 Pages/01 header.php",
   the live site's header — edit that, not this block. Scoped to
   #site-header; its --p-* tokens stay on :root, where its script swaps
   them when the theme changes.
   ========================================================================== */
:root {
  --p-bg:         rgba(255,251,245,0.88);
  --p-bg-solid:   #FFFBF5;
  --p-surface:    #F5EFE6;
  --p-border:     #EDE6DC;
  --p-text:       #111111;
  --p-muted:      #666666;
  --p-orange:     #FF6B4A;
  --p-active-tx:  #FF6B4A;
  --p-shadow:     0 4px 32px rgba(26,16,0,0.09), 0 1px 0 rgba(255,255,255,0.72) inset;
  --p-shadow-scroll: 0 8px 40px rgba(26,16,0,0.14), 0 1px 0 rgba(255,255,255,0.72) inset;
  --p-bg-scroll:  rgba(255,251,245,0.96);
  --p-top:        14px;
  --p-height:     60px;
  --p-font-d:     'Bricolage Grotesque', sans-serif;
  --p-font-b:     'Plus Jakarta Sans', sans-serif;
}
/* The WordPress theme's element baseline, as the header and footer had it
   on live — both sat at body level under the theme. :where() adds no
   specificity, so their own rules below win exactly as they did. */
/* Blocksy's element layer (its bundle/main.min.css), in its own order and at
   its own selector strength plus the scope — so a page's rules win or lose
   against it exactly as they did on live. Variables resolved to live values;
   sizes measured with _migration/compare-baseline.py. */
:where(#site-header, #site-footer) :is(p, h1, h2, h3, h4, h5, h6, em, ol, ul, li, tr, th, td, dl, ins, sub, sup, big, cite, form, small, label, table, figure, button, legend, strike, address, caption, fieldset, blockquote) { margin: 0; padding: 0; border: none; font: inherit; }
:where(#site-header, #site-footer) :is(b, strong) { font-weight: bold; }
:where(#site-header, #site-footer) small { font-size: 80%; }
:where(#site-header, #site-footer) hr { height: 1px; border: none; background-color: #E1E8ED; }
:where(#site-header, #site-footer) img { height: auto; max-width: 100%; vertical-align: middle; }
:where(#site-header, #site-footer) :is(figure, textarea) { display: block; }
:where(#site-header, #site-footer) hr { margin: 0; }
:where(#site-header, #site-footer) table { max-width: 100%; }
:where(#site-header, #site-footer) :is(code, kbd, samp) { padding: 3px 6px; background: #F2F5F7; border-radius: 3px; }
:where(#site-header, #site-footer) :is(table, th, td) { border: 1px solid #E1E8ED; }
:where(#site-header, #site-footer) :is(th, td) { padding: 0.7em 1em; }
:where(#site-header, #site-footer) th { font-weight: 600; }
:where(#site-header, #site-footer) h1 { color: #FF6B4A; font-family: "Bricolage Grotesque", sans-serif; font-size: 40px; }
:where(#site-header, #site-footer) h2 { color: #1A1A1A; font-family: "Bricolage Grotesque", sans-serif; font-size: 35px; }
:where(#site-header, #site-footer) h3 { color: #1A1A1A; font-family: "Plus Jakarta Sans", sans-serif; font-size: 30px; }
:where(#site-header, #site-footer) h4 { color: #FFFBF5; font-size: 25px; }
:where(#site-header, #site-footer) h5 { color: #FFFBF5; font-size: 20px; }
:where(#site-header, #site-footer) h6 { color: #FFFBF5; font-size: 16px; }
:where(#site-header, #site-footer) :is(h1, h2, h3, h4, h5, h6) { font-weight: 700; line-height: 1.5; }
:where(#site-header, #site-footer) p { margin-block-end: 1.5em; }
:where(#site-header, #site-footer) :is(ul, ol) { padding-inline-start: 2.5em; margin-block-end: 1.5em; }
:where(#site-header, #site-footer) :is(h1, h2, h3, h4, h5, h6) { margin-block-end: calc(.3em + 10px); }
:where(#site-header, #site-footer) :is(h1, h2, h3, h4, h5, h6):where(:last-child) { margin-block-end: 0; }
:where(#site-header, #site-footer) ul:last-child, :where(#site-header, #site-footer) ol:last-child, :where(#site-header, #site-footer) ul li:last-child, :where(#site-header, #site-footer) ol li:last-child, :where(#site-header, #site-footer) label:last-child { margin-bottom: 0; }
:where(#site-header, #site-footer) a { color: #FF6B4A; }
:where(#site-header, #site-footer) select, :where(#site-header, #site-footer) textarea, :where(#site-header, #site-footer) input:is([type="url"], [type="tel"], [type="text"], [type="time"], [type="date"], [type="datetime"], [type="datetime-local"], [type="email"], [type="number"], [type="search"], [type="password"]) {
  appearance: none; width: 100%; height: 40px; padding: 0 15px; color: #1A1A1A;
  background-color: transparent; border: 1px solid #E1E8ED; border-radius: 3px;
  font-family: inherit; font-size: 16px; font-weight: 400; line-height: inherit;
  transition: color .12s, outline .12s, border-color .12s, background .12s; }
:where(#site-header, #site-footer) select { padding-inline-end: 25px; }
:where(#site-header, #site-footer) textarea { line-height: 1.5; resize: vertical; padding: 12px 15px; }
:where(#site-header, #site-footer) label { font-size: 15px; line-height: inherit; cursor: pointer; margin: 0 0 0.5em; }
:where(#site-header, #site-footer) blockquote:where(:not(.is-style-plain):not(.has-text-align-center):not(.has-text-align-right)) { padding-inline-start: 1.5em; border-inline-start: 4px solid #FF6B4A; }
:where(#site-header, #site-footer) [type="submit"] { appearance: none; height: 40px; padding: 5px 20px; border: 0; border-radius: 3px; color: #fff; background-color: #FF6B4A; font-size: 15px; font-weight: 500; }
:where(#site-header) { color-scheme: normal; }   /* live never set a dark color-scheme */
/* ─── tokens ─── */


/* ─── Elementor / theme reset ─── */



/* ─── hidden state checkbox ─── */
#site-header #clv3-chk {
  position: fixed; left: -9999px;
  opacity: 0; pointer-events: none; width: 0; height: 0;
}
/* ── Spacer ── */
#site-header #clv3-spacer {
  height: calc(var(--p-top) + var(--p-height) + 12px);
  width: 100%; display: block;
  background: transparent !important; pointer-events: none;
}
/* ══════════════════════════════════════
   THE PILL
══════════════════════════════════════ */
#site-header #clv3 {
  position: fixed;
  top: var(--p-top); left: 50%; transform: translateX(-50%);
  width: 88vw; max-width: 1280px; height: var(--p-height);
  border-radius: 999px;
  background: var(--p-bg);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow);
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 0 1.5rem;
  padding: 0 8px 0 18px;
  z-index: 999999; font-family: var(--p-font-b);
  transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
#site-header #clv3.scrolled { box-shadow: var(--p-shadow-scroll); background: var(--p-bg-scroll); }
/* ─── Logo ─── */
#site-header .clv3-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
#site-header .clv3-logo img { height: 40px; width: auto; display: block; transition: opacity 0.2s; }
#site-header .clv3-logo:hover img { opacity: 0.78; }
#site-header .clv3-logo-name {
  font-family: var(--p-font-d); font-size: 20px; font-weight: 700;
  color: var(--p-text); letter-spacing: -0.04em; line-height: 1; white-space: nowrap;
}
/* ─── Centre nav ─── */
#site-header .clv3-nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
/* ─── Nav link ─── */
#site-header .clv3-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border: none; background: transparent;
  border-radius: 999px; font-family: var(--p-font-b);
  font-size: 13.5px; font-weight: 500; color: var(--p-muted);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  line-height: 1; transition: background 0.18s, color 0.18s;
}
#site-header .clv3-link:hover { background: var(--p-surface); color: var(--p-text); }
#site-header .clv3-link.active { color: var(--p-active-tx) !important; font-weight: 600; background: rgba(255,107,74,0.10); }
#site-header .clv3-m-link.active, #site-header .clv3-sum.active { color: var(--p-active-tx) !important; font-weight: 600; background: rgba(255,107,74,0.10); }
/* Icons */
#site-header .clv3-link .ic, #site-header .clv3-sum .ic {
  width: 15px; height: 15px; stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; opacity: 0.72; transition: opacity 0.2s;
}
#site-header .clv3-link:hover .ic { opacity: 1; }
/* Chevron */
#site-header .clv3-chev {
  width: 12px; height: 12px; stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.45; transition: transform 0.22s; flex-shrink: 0;
}
/* ════════════════════════════════════════
   HOVER-REVEAL "Coming Soon" pill
   — invisible at rest on pointer devices
   — always visible (muted) on touch devices
════════════════════════════════════════ */
#site-header .clv3-soon-h {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--p-orange);
  background: rgba(255,107,74,0.10);
  padding: 2px 7px 2px 5px;
  border-radius: 999px; line-height: 1; flex-shrink: 0;
  white-space: nowrap; overflow: hidden;
  /* hidden at rest */
  max-width: 0; opacity: 0;
  transition: max-width 0.28s ease, opacity 0.22s ease, margin-left 0.28s ease;
}
#site-header .clv3-soon-h::before {
  content: '';
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--p-orange); flex-shrink: 0;
}
/* Reveal on hover (mouse) or click (touch — via JS .soon-active) */
@media (hover: hover) {
  #site-header .clv3-link:hover .clv3-soon-h {
    max-width: 90px; opacity: 1; margin-left: 2px;
  }
}
/* Click/tap reveal — works on both desktop pill and touch */
#site-header .clv3-link.soon-active .clv3-soon-h { max-width: 90px; opacity: 1; margin-left: 2px; }
/* ════════════════════════════════════════
   DROPDOWN WRAPPER
════════════════════════════════════════ */
#site-header .clv3-wrap { position: relative; display: inline-block; }
#site-header .clv3-wrap:hover .clv3-chev { transform: rotate(180deg); }
#site-header .clv3-wrap:hover > .clv3-panel { display: flex; }
/* ════════════════════════════════════════
   PANEL DROPDOWN — used for BOTH JEE and College Toolkit
   tile icon + label + one-line descriptor
════════════════════════════════════════ */
#site-header .clv3-panel {
  display: none; flex-direction: column;
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%);
  width: 360px; padding: 10px; gap: 3px;
  background: var(--p-bg-solid);
  border: 1px solid var(--p-border); border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
  z-index: 1000000; animation: hd-clv3-drop 0.16s ease-out;
}
#site-header .clv3-panel::before {
  content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px;
}
/* Panel row */
#site-header .clv3-pi {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 12px;
  text-decoration: none; cursor: pointer;
  transition: background 0.14s;
}
#site-header .clv3-pi:hover { background: var(--p-surface); }
/* Disabled/soon row inside panel */
#site-header .clv3-pi.soon {
  cursor: default; pointer-events: none; opacity: 0.48;
}
/* Pastel tile */
#site-header .clv3-pi-tile {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#site-header .clv3-pi-tile svg {
  width: 16px !important; height: 16px !important;
  fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.85;
}
/* Tile colour palette */
/* College Toolkit */
#site-header .tile-ph { background: #D6E8FF; color: #1B3A7A; }
/* blue       — predictor       */
#site-header .tile-gr { background: #D1F0DE; color: #0F5132; }
/* green      — eval guide      */
#site-header .tile-pg { background: #FFE8B0; color: #6B4800; }
/* peach-gold — branch vs col   */
#site-header .tile-or { background: #FFE4D6; color: #7A2210; }
/* coral      — branch compass  */
#site-header .tile-pu { background: #E4D9FF; color: #3D2E7A; }
/* purple     — branch catalog  */
#site-header .tile-ye { background: #FFF4C4; color: #6B5000; }
/* yellow     — explore         */
/* JEE */
#site-header .tile-am { background: #FFF0D9; color: #8B4A0C; }
/* amber  — study res     */
#site-header .tile-tl { background: #CCEFED; color: #0D5C56; }
/* teal   — adv analysis  */
#site-header .tile-sl { background: #EAEAF4; color: #4A4A7A; }
/* slate  — mains (soon)  */
#site-header .tile-pi { background: #FFE4EE; color: #7A1040; }
/* rose   — other exams   */

/* Cluster eyebrow pill inside a panel */
#site-header .clv3-panel-eyebrow {
  display: inline-flex;
  align-self: flex-start;   /* ← stops the pill from stretching full-width */
  margin: 10px 8px 2px;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--p-muted);
  background: var(--p-surface);
  border-radius: 999px;
  padding: 3px 10px;
  line-height: 1;
}
/* Divider before the second cluster */
#site-header .clv3-panel-div {
  display: block; height: 1px;
  background: var(--p-border);
  margin: 6px 10px 2px;
}
/* Text block */
#site-header .clv3-pi-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
#site-header .clv3-pi-label { font-size: 13.5px; font-weight: 600; color: var(--p-text); line-height: 1.2; white-space: nowrap; }
#site-header .clv3-pi-desc { font-size: 11.5px; font-weight: 400; color: var(--p-muted); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Soon badge inside a panel row */
#site-header .clv3-pi-soon {
  margin-left: auto; flex-shrink: 0;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--p-orange);
  background: rgba(255,107,74,0.10);
  padding: 2px 7px; border-radius: 999px; line-height: 1.4;
}
/* ─── Right rail ─── */
#site-header .clv3-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
/* ─── CTA ─── */
#site-header .clv3-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 6px 6px 16px; border-radius: 999px;
  font-family: var(--p-font-b); font-size: 13.5px; font-weight: 700;
  color: #fff !important; text-decoration: none; white-space: nowrap; border: none;
  background: linear-gradient(160deg, rgba(255,255,255,0.18) 0%, transparent 55%),
              linear-gradient(180deg, #FF7A5A 0%, #FF5B34 100%);
  box-shadow: 0 4px 18px rgba(255,107,74,0.42),
              0 1px 0 rgba(255,255,255,0.22) inset,
              0 -1px 0 rgba(0,0,0,0.1) inset;
  position: relative; overflow: hidden;
  transition: transform 0.22s, box-shadow 0.22s, filter 0.22s;
}
#site-header .clv3-cta::before {
  content: ''; position: absolute; inset: 0; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22); pointer-events: none;
}
#site-header .clv3-cta:hover { transform: translateY(-2px); filter: brightness(1.07); }
#site-header .clv3-cta-label { position: relative; z-index: 1; }
#site-header .clv3-cta-arrow {
  width: 30px; height: 30px; background: rgba(255,255,255,0.22);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; position: relative; z-index: 1; transition: background 0.2s;
}
#site-header .clv3-cta:hover .clv3-cta-arrow { background: rgba(255,255,255,0.32); }
#site-header .clv3-cta-arrow svg { width: 13px; height: 13px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
/* ─── Dark toggle ─── */
#site-header .clv3-dark-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--p-border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--p-muted); flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
#site-header .clv3-dark-btn:hover { background: var(--p-surface); border-color: var(--p-text); color: var(--p-text); }
#site-header .clv3-dark-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
#site-header .clv3-dark-btn:hover svg { animation: hd-clv3-spin 2.5s linear infinite; }
#site-header .clv3-dark-btn.clicking svg { animation: hd-clv3-spin 0.4s linear 1; }
#site-header .clv3-m-dark { display: none; }
/* ─── Hamburger ─── */
#site-header .clv3-ham {
  display: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--p-border); background: transparent;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--p-muted); flex-shrink: 0;
  transition: background 0.2s, color 0.2s; user-select: none;
}
#site-header .clv3-ham:hover { background: var(--p-surface); color: var(--p-text); }
#site-header .clv3-ham svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
#site-header .clv3-ham .icon-close { display: none; }
/* ══════════════════════════════════════
   MOBILE DRAWER
══════════════════════════════════════ */
#site-header .clv3-drawer {
  display: none; position: fixed;
  top: calc(var(--p-top) + var(--p-height) + 8px); left: 50%;
  transform: translateX(-50%);
  width: 88vw; max-width: 1280px;
  max-height: calc(100vh - var(--p-top) - var(--p-height) - 28px);
  overflow-y: auto;
  background: var(--p-bg-solid); border: 1px solid var(--p-border);
  border-radius: 24px; box-shadow: 0 12px 48px rgba(26,16,0,0.14);
  z-index: 999998; flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem; gap: 2px;
  animation: hd-clv3-drawer-in 0.22s cubic-bezier(0.16,1,0.3,1);
}
#site-header .clv3-m-link {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 12px; font-family: var(--p-font-b); font-size: 14.5px; font-weight: 500;
  color: var(--p-muted); text-decoration: none; transition: background 0.15s, color 0.15s;
}
#site-header .clv3-m-link:hover { background: var(--p-surface); color: var(--p-text); }
#site-header .clv3-m-link .ic { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; opacity: 0.7; }
/* Reset browser default button styles for .clv3-m-link buttons */
#site-header button.clv3-m-link {
  -webkit-appearance: none; appearance: none;
  background: transparent !important; border: none !important;
  width: 100%; text-align: left; cursor: pointer;
}
#site-header button.clv3-m-link:hover { background: var(--p-surface) !important; }
/* Sub-link small tile icon (mobile drawer) */
#site-header .clv3-sl-tile {
  width: 28px; height: 28px; border-radius: 7px;
  display: inline-flex !important; align-items: center; justify-content: center;
  flex-shrink: 0;
}
#site-header .clv3-sl-tile svg {
  width: 13px !important; height: 13px !important;
  fill: none !important; stroke: currentColor !important;
  stroke-width: 2 !important; stroke-linecap: round !important; stroke-linejoin: round !important;
  display: block !important; overflow: visible !important;
}
/* Force-show all drawer icons — override Elementor/theme SVG interference */
#site-header .clv3-drawer .ic, #site-header .clv3-drawer .clv3-chev {
  display: inline-block !important;
  overflow: visible !important;
  width: 16px !important; height: 16px !important;
  stroke: currentColor !important; fill: none !important;
  stroke-width: 1.9 !important; flex-shrink: 0 !important;
  visibility: visible !important; opacity: 0.7 !important;
}
#site-header .clv3-drawer .clv3-chev {
  width: 12px !important; height: 12px !important;
  stroke-width: 2 !important; opacity: 0.45 !important;
}
/* Mobile soon — hidden by default, revealed by media or JS class */
#site-header .clv3-m-soon {
  margin-left: auto; flex-shrink: 0;
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--p-orange);
  opacity: 0;
  transition: opacity 0.2s ease;
}
/* Small mobile (≤640px): always visible */
@media (max-width: 640px) {
  #site-header .clv3-m-soon { opacity: 0.55; }
}
/* Revealed on tap/click in tablet drawer */
#site-header .clv3-m-link.soon-active .clv3-m-soon { opacity: 0.75; }
#site-header .clv3-detail { display: block; }
#site-header .clv3-sum {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-radius: 12px; font-family: var(--p-font-b); font-size: 14.5px; font-weight: 500;
  color: var(--p-muted); cursor: pointer; list-style: none;
  transition: background 0.15s, color 0.15s;
}
#site-header .clv3-sum::-webkit-details-marker, #site-header .clv3-sum::marker { display: none; }
#site-header .clv3-sum:hover { background: var(--p-surface); color: var(--p-text); }
#site-header .clv3-sum .clv3-chev { margin-left: auto; transition: transform 0.22s; }
#site-header .clv3-detail[open] .clv3-sum .clv3-chev { transform: rotate(180deg); }
#site-header .clv3-detail[open] .clv3-sum { color: var(--p-text); }
/* Drawer accordion: explicit open/closed control (overrides UA + theme conflicts) */
#site-header .clv3-detail:not([open]) > .clv3-sub-items { display: none !important; }
#site-header .clv3-detail[open] > .clv3-sub-items { display: flex !important; flex-direction: column !important; gap: 2px !important; padding: 4px 0 4px 20px !important; }
#site-header .clv3-sub-link {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  padding: 7px 12px; border-radius: 10px; font-family: var(--p-font-b);
  font-size: 13px; font-weight: 500; color: var(--p-muted); text-decoration: none;
  transition: background 0.14s, color 0.14s;
}
#site-header .clv3-sub-link:hover { background: var(--p-surface); color: var(--p-text); }
#site-header .clv3-sub-link .badge { margin-left: auto; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--p-orange); }
#site-header .clv3-drawer-divider { height: 1px; background: var(--p-border); margin: 10px 0 0; flex-shrink: 0; }
#site-header .clv3-drawer-footer { display: flex; align-items: center; gap: 8px; padding-top: 12px; margin-top: 2px; }
#site-header .clv3-drawer-footer .clv3-cta { flex: 1; width: 100%; justify-content: space-between; }
#site-header .clv3-backdrop {
  display: none; position: fixed; inset: 0;
  z-index: 999997; background: rgba(0,0,0,0.2);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
/* ── Checkbox state machine ── */
#site-header #clv3-chk:checked ~ .clv3-drawer { display: flex !important; }
#site-header #clv3-chk:checked ~ .clv3-backdrop { display: block !important; }
#site-header #clv3-chk:checked ~ #clv3 .icon-open { display: none  !important; }
#site-header #clv3-chk:checked ~ #clv3 .icon-close { display: flex  !important; }
/* ══════════════════════════════════════
   DARK MODE
══════════════════════════════════════ */
[data-theme="dark"] #site-header #clv3, [data-theme="dark"] #site-header #clv3 {
  --p-bg:        rgba(20,20,20,0.88) !important;
  --p-bg-solid:  #141414 !important;
  --p-bg-scroll: rgba(20,20,20,0.96) !important;
  --p-surface:   #1E1E1E !important;
  --p-border:    #2A2A2A !important;
  --p-text:      #F0F0F0 !important;
  --p-muted:     #888888 !important;
  --p-shadow:    0 4px 32px rgba(0,0,0,0.4), 0 1px 0 rgba(255,255,255,0.04) inset !important;
  --p-shadow-scroll: 0 8px 40px rgba(0,0,0,0.5), 0 1px 0 rgba(255,255,255,0.04) inset !important;
}
[data-theme="dark"] #site-header .clv3-drawer, [data-theme="dark"] #site-header .clv3-drawer, [data-theme="dark"] #site-header .clv3-panel, [data-theme="dark"] #site-header .clv3-panel {
  --p-bg-solid: #141414 !important;
  --p-surface:  #1E1E1E !important;
  --p-border:   #2A2A2A !important;
  --p-text:     #F0F0F0 !important;
  --p-muted:    #888888 !important;
}
/* ── Mobile overrides ── */
@media (max-width: 1024px) {
  #site-header #clv3 {
    display: flex; flex-wrap: nowrap;
    justify-content: flex-start; align-items: center;
    height: var(--p-height); padding: 0 8px 0 16px; gap: 0;
  }
  #site-header .clv3-nav { display: none !important; }
  #site-header .clv3-right { display: none !important; }
  #site-header .clv3-m-dark { display: flex !important; margin-left: auto; }
  #site-header .clv3-ham { display: flex !important; margin-left: 6px; }
}
/* ── Animations ── */
@keyframes hd-clv3-spin { to { transform: rotate(360deg); } }
@keyframes hd-clv3-drop {
  from { opacity: 0; transform: translateY(-8px) translateX(-50%); }
  to   { opacity: 1; transform: translateY(0)    translateX(-50%); }
}
@keyframes hd-clv3-drawer-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==========================================================================
   9. Tools panel + footer (rendered by site.js into #site-footer)
   Generated by _migration/build-footer-css.py from "02 Pages/02 footer.html",
   the live site's footer — edit that script or the source, not this block.
   Every rule is scoped to #site-footer, because pages reuse these class
   names. The !important wall and the 100vw full-bleed hack are gone; the
   footer is dark in both themes, exactly as live.
   ========================================================================== */
/* The theme's footer widget area on live (Blocksy .ct-widget), which the
   footer sat inside: its own line-height, list and link resets, no space
   under a column's last paragraph, and 24px after each of the two blocks.
   Measured with a probe inside the live footer. */
:where(#site-footer) { line-height: 1.65; color-scheme: normal; }
:where(#site-footer) > :is(.cl-tools-dropdown-wrap, #cl-footer) { margin-block-end: 24px; }
:where(#site-footer) ul { list-style: none; padding-inline-start: 0; margin-block-end: 0; }
:where(#site-footer) a { color: #1A1A1A; }
:where(#site-footer) p:last-child { margin-bottom: 0; }
/* the footer itself sat in the theme's fluid container (.ct-container-fluid);
   the tools panel above escapes it with its own full-bleed rule */
:where(#site-footer) > #cl-footer { width: 88vw; margin-inline: auto; }
@media (min-width: 690px) { :where(#site-footer) > #cl-footer { width: 90vw; } }
@media (min-width: 1000px) { :where(#site-footer) > #cl-footer { width: calc(100vw - 60px); } }
#site-footer #cl-footer {
  --bg: #111115;
  --border: rgba(255, 255, 255, 0.08);
  --t1: #EEEAE4;
  --t2: #999999;
  --orange: #FF6B4A;
  --font-d: 'Bricolage Grotesque', sans-serif;
  --font-b: 'Plus Jakarta Sans', sans-serif;
}
/* ─── FOOTER ─── */
#site-footer #cl-footer {
  background: var(--bg);
  color: var(--t1);
  border-top: 1px solid var(--border);
  padding: 64px 64px 0;
  font-family: var(--font-b);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow: hidden;
}
/* Subtle background glow to match the theme */
#site-footer #cl-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,74,0.15), transparent);
  pointer-events: none;
}
#site-footer .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
#site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
/* Brand Section */
#site-footer .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  text-decoration: none;
  width: fit-content;
}
#site-footer .footer-logo img {
  height: 52px;
  width: auto;
  display: block;
}
#site-footer .footer-logo-name {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--t1);
}
#site-footer .footer-tagline {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 16px;
}
#site-footer .footer-tagline strong {
  color: var(--t1);
  font-weight: 600;
}
#site-footer .footer-builder {
  font-size: 12px;
  color: var(--t2);
  margin-bottom: 12px;
}
#site-footer .footer-builder span {
  color: var(--orange);
  font-weight: 600;
}
#site-footer .footer-contact {
  font-size: 12.5px;
  color: var(--t2);
  line-height: 1.6;
}
#site-footer .footer-contact a {
  color: var(--orange);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
  display: inline-block;
}
#site-footer .footer-contact a:hover {
  color: #ff5430;
  text-decoration: underline;
}
/* Navigation Columns */
#site-footer #cl-footer .footer-col-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFD6A8;
  margin-bottom: 20px;
  opacity: 1;
}
#site-footer #cl-footer .footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#site-footer #cl-footer .footer-links li a {
  font-size: 13.5px;
  color: var(--t2);
  text-decoration: none;
  transition: color 0.18s, transform 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
}
#site-footer #cl-footer .footer-links li a:hover {
  color: var(--t1);
  transform: translateX(2px);
}
/* Bottom Copy */
#site-footer .footer-bottom {
  padding: 24px 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#site-footer .footer-copy {
  font-size: 12.5px;
  color: var(--t2);
}
#site-footer .footer-copy em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--orange);
  font-size: 14px;
}
/* Responsive Breakpoints */
@media (max-width: 960px) {
  #site-footer #cl-footer {
    padding: 48px 32px 0;
  }
  #site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    padding-bottom: 36px;
  }
  #site-footer .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 12px;
  }
  #site-footer .footer-tagline {
    max-width: 100%;
  }
}
@media (max-width: 560px) {
  #site-footer #cl-footer {
    padding: 40px 20px 0;
  }
  #site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  #site-footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 28px;
  }
  #site-footer .footer-copy {
    text-align: center;
  }
  #site-footer .footer-links li a:hover {
    transform: none; /* Disable shift on hover on mobile */
  }
}
/* ─── TOOLS DROPDOWN SECTION ─── */
#site-footer .cl-tools-dropdown-wrap {
  --bg:        #FFFBF5;
  --bg2:       #FFF8F0;
  --surface:   #FFFFFF;
  --surface2:  #FDF8F2;
  --txt:       #1A1A1A;
  --txt2:      rgba(26,26,26,0.58);
  --txt3:      rgba(26,26,26,0.32);
  --bdr:       rgba(26,26,26,0.08);
  --bdr2:      rgba(26,26,26,0.13);
  --card-bg:   #FFFFFF;
  --card-bdr:  rgba(26,26,26,0.09);
  --orange:    #FF6B4A;
  --pill:      rgba(255,107,74,0.10);
  --brown:     #8B4A0C;
  
  background: var(--bg);
  box-sizing: border-box;
  padding: 48px 0;
  transition: background 0.4s, color 0.4s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
[data-theme="dark"] #site-footer .cl-tools-dropdown-wrap, [data-theme="dark"] #site-footer .cl-tools-dropdown-wrap {
  --bg:        #0E0B08;
  --bg2:       #130F0B;
  --surface:   #1A1612;
  --surface2:  #201C18;
  --txt:       #F0EBE3;
  --txt2:      rgba(240,235,227,0.55);
  --txt3:      rgba(240,235,227,0.28);
  --bdr:       rgba(240,235,227,0.07);
  --bdr2:      rgba(240,235,227,0.12);
  --card-bg:   #181410;
  --card-bdr:  rgba(240,235,227,0.08);
  --pill:      rgba(255,107,74,0.13);
}
#site-footer .cl-tools-dropdown-wrap .cl-tools-trigger-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
#site-footer .cl-tools-dropdown-wrap .cl-tools-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  background: #FF6B4A;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
  letter-spacing: 0px;
}
#site-footer .cl-tools-dropdown-wrap .cl-tools-trigger:hover {
  background: #e85a38;
}
#site-footer .cl-tools-dropdown-wrap .cl-tools-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  transition: max-height 0.38s cubic-bezier(.4,0,.2,1), opacity 0.28s ease, margin-top 0.28s ease;
  margin-top: 0;
}
#site-footer .cl-tools-dropdown-wrap .cl-tools-panel.cl-open {
  max-height: 800px;
  opacity: 1;
  pointer-events: auto;
  margin-top: 18px;
  padding-top: 8px;
}
#site-footer .cl-tools-dropdown-wrap .cl-tools-panel-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4px;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-card {
  background: var(--card-bg);
  border: 1px solid var(--card-bdr);
  border-radius: 22px;
  padding: 22px;
  cursor: pointer;
  text-decoration: none;
  color: var(--txt);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.32s cubic-bezier(0.16,1,0.3,1), background 0.28s ease, border-color 0.28s ease, box-shadow 0.32s ease;
  -webkit-tap-highlight-color: transparent;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-card::before {
  content: '';
  position: absolute;
  top: 0; left: 18px; right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,74,0.55), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 5;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(255,107,74,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 3;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):nth-child(odd):hover {
  transform: translateY(-6px) rotate(-0.6deg);
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 18px 42px rgba(255,107,74,0.28), 0 6px 16px rgba(255,107,74,0.14), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):nth-child(even):hover {
  transform: translateY(-6px) rotate(0.6deg);
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 18px 42px rgba(255,107,74,0.28), 0 6px 16px rgba(255,107,74,0.14), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):active {
  transform: scale(0.97) translateY(-2px);
  background: var(--orange);
  border-color: var(--orange);
}
#site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):hover::before, #site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):active::before { opacity: 1; }
#site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):hover::after, #site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):active::after { opacity: 1; }
#site-footer .cl-tools-dropdown-wrap .cl-td-pill {
  display: inline-flex;
  align-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
  position: relative;
  z-index: 2;
  background: rgba(255,107,74,0.10);
  color: var(--orange);
  border: 1px solid rgba(255,107,74,0.20);
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
[data-theme="dark"] #site-footer .cl-tools-dropdown-wrap .cl-td-pill, [data-theme="dark"] #site-footer .cl-tools-dropdown-wrap .cl-td-pill {
  background: rgba(255,107,74,0.13);
  color: #FF9A78;
  border-color: rgba(255,107,74,0.22);
}
#site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):hover .cl-td-pill, #site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):active .cl-td-pill {
  background: rgba(255,255,255,0.20);
  color: #fff;
  border-color: transparent;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--txt);
  position: relative;
  z-index: 2;
  max-width: 85%;
  transition: color 0.25s;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):hover .cl-td-name, #site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):active .cl-td-name { color: #fff; }
#site-footer .cl-tools-dropdown-wrap .cl-td-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12.5px;
  color: var(--txt2);
  line-height: 1.55;
  position: relative;
  z-index: 2;
  margin-top: 7px;
  max-width: 85%;
  transition: color 0.25s;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):hover .cl-td-desc, #site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):active .cl-td-desc { color: rgba(255,255,255,0.82); }
#site-footer .cl-tools-dropdown-wrap .cl-td-desc-mobile { display: none; }
#site-footer .cl-tools-dropdown-wrap .cl-td-bottom {
  margin-top: auto;
  padding-top: 18px;
  width: 100%;
  position: relative;
  z-index: 2;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--txt2);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: var(--surface2);
  border: 1px solid var(--bdr);
  padding: 4px 10px;
  border-radius: 999px;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):hover .cl-td-tag, #site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):active .cl-td-tag {
  background: rgba(255,255,255,0.18);
  border-color: transparent;
  color: #fff;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  transition: background 0.25s;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):hover .cl-td-dot, #site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):active .cl-td-dot { background: #fff; }
#site-footer .cl-tools-dropdown-wrap .cl-td-icon {
  position: absolute;
  bottom: -16px; right: -16px;
  width: 88px; height: 88px;
  background: var(--surface2);
  border: 1px solid var(--bdr);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt3);
  z-index: 1;
  transform: rotate(-4deg);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-icon svg {
  width: 44px; height: 44px;
  stroke-width: 1.8; opacity: 0.85;
}
#site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):hover .cl-td-icon, #site-footer .cl-tools-dropdown-wrap .cl-td-card:not(.cl-td-soon):active .cl-td-icon {
  background: rgba(255,255,255,0.92);
  border-color: transparent;
  color: var(--orange);
  transform: scale(1.12) rotate(-12deg) translateY(-8px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
}
@media (max-width: 900px) {
  #site-footer .cl-tools-dropdown-wrap .cl-tools-panel-inner { grid-template-columns: repeat(2, 1fr); }
  #site-footer .cl-tools-dropdown-wrap .cl-tools-panel.cl-open { max-height: 700px; }
}
@media (max-width: 560px) {
  #site-footer .cl-tools-dropdown-wrap { padding: 32px 16px; }
  #site-footer .cl-tools-dropdown-wrap .cl-tools-panel-inner { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  #site-footer .cl-tools-dropdown-wrap .cl-tools-panel.cl-open { max-height: 700px; }
  #site-footer .cl-tools-dropdown-wrap .cl-td-card { padding: 15px; min-height: 140px; border-radius: 16px; }
  #site-footer .cl-tools-dropdown-wrap .cl-td-pill { font-size: 9px; padding: 4px 8px; margin-bottom: 8px; }
  #site-footer .cl-tools-dropdown-wrap .cl-td-name { font-size: 14px; max-width: 90%; }
  #site-footer .cl-tools-dropdown-wrap .cl-td-desc { font-size: 11px; line-height: 1.4; max-width: 90%; }
  #site-footer .cl-tools-dropdown-wrap .cl-td-desc-desktop { display: none; }
  #site-footer .cl-tools-dropdown-wrap .cl-td-desc-mobile { display: inline; }
  #site-footer .cl-tools-dropdown-wrap .cl-td-icon { width: 70px; height: 70px; bottom: -12px; right: -12px; }
  #site-footer .cl-tools-dropdown-wrap .cl-td-icon svg { width: 34px; height: 34px; }
  #site-footer .cl-tools-dropdown-wrap .cl-td-bottom { display: none; }
}

/* ==========================================================================
   Leaflet (vendored in /assets/vendor/leaflet/). Only the bits the site
   restyles: the map credit Esri asks for, kept quiet in the corner.
   ========================================================================== */
/* Esri's dark canvas remapped to the CARTO dark-matter look the maps were
   designed on (the filter is defined in site.js). */
img.leaflet-tile[src*="Dark_Gray"] { filter: url(#cl-dark-tiles); }
.leaflet-control-attribution {
  background: color-mix(in srgb, var(--card) 80%, transparent);
  color: var(--muted);
  font: 400 0.65rem/1.6 var(--font-b);
  padding: 2px 8px;
  border-radius: 6px 0 0 0;
}
.leaflet-control-attribution a { color: var(--muted); }
.leaflet-control-attribution a:hover { color: var(--orange); }
