/* KavachQ v12 — shared site chrome: header (mega-menu, search, theme toggle), footer.
   Loaded by the home page directly and by every inner page via styles.css.
   The chrome is always dark ("Observatory" palette), so its tokens are scoped to the
   chrome roots and never leak into — or inherit from — a page in light mode. */

.q-shell, .search-ov, .q-foot {
  --void: #04060b; --void-2: #080c15; --void-3: #0d1220;
  --glass: rgba(148,170,220,.045); --glass-2: rgba(148,170,220,.075);
  --line: rgba(160,185,235,.11); --line-2: rgba(160,185,235,.2);
  --ink: #edf1f8; --ink-2: #b3bccd; --muted: #7c879c;
  --mint: #7cf3d0; --green: #8ccf4a; --green-d: #496d21; --amber: #ffb547; --clay: #ff6a4d; --indigo: #8a97ff;
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif; --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --wrap: 1240px; --ease: cubic-bezier(.22, 1, .36, 1);
  font-family: var(--sans); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.q-shell *, .search-ov *, .q-foot * { box-sizing: border-box; }
.q-shell a, .q-foot a, .search-ov a { color: inherit; text-decoration: none; }
.q-shell button, .search-ov button { font-family: var(--sans); }
.q-shell :focus-visible, .q-foot :focus-visible, .search-ov :focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 8px; }

/* header shell: sticky (in flow) on inner pages, overlaid on the home hero */
.q-shell { position: sticky; top: 0; z-index: 100; padding: 12px 12px 0; pointer-events: none; }
.q-shell.is-home { position: fixed; left: 0; right: 0; padding-top: 14px; }

/* theme toggle (inner pages only) */
.q-theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer;
  display: inline-grid; place-items: center; transition: color .2s, border-color .2s; flex: none; }
.q-theme:hover { color: var(--ink); border-color: var(--line-2); }
.q-theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.q-theme .ic-sun { display: none; }
:root[data-theme="dark"] .q-theme .ic-sun { display: block; }
:root[data-theme="dark"] .q-theme .ic-moon { display: none; }

/* ---------- buttons ---------- */
.q-btn {
  --bg: transparent; position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 500 15px/1 var(--sans); text-decoration: none; color: var(--ink); background: var(--bg);
  transition: border-color .2s, background-color .2s, color .2s; cursor: pointer; white-space: nowrap;
}
.q-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.q-btn:hover svg { transform: translateX(3px); }
.q-btn.q-btn-solid { color: #04120a; border-color: transparent;
  background: linear-gradient(180deg, #b6f07a, var(--green)); box-shadow: 0 0 0 1px rgba(140,207,74,.35), 0 10px 40px -10px rgba(140,207,74,.6); }
.q-btn.q-btn-solid:hover { background: linear-gradient(180deg, #c9f79a, #9bdc58); }
.q-btn-ghost:hover { border-color: var(--mint); color: var(--mint); }
.q-btn-lg { padding: 16px 26px; font-size: 16px; }
.q-btn-sm { padding: 9px 15px; font-size: 14px; }

/* ---------- nav ---------- */
.q-nav {
  position: relative; margin: 0 auto; pointer-events: auto;
  width: min(var(--wrap), 100%); display: flex; align-items: center; gap: 24px;
  padding: 10px 10px 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(6, 9, 16, .86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,.6);
}
.q-shell.is-home .q-nav { background: rgba(6, 9, 16, .55); box-shadow: none; }
.q-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -.02em; font-size: 18px; }
.q-brand b { color: var(--green); font-weight: 600; }
.q-mark { width: 24px; height: 24px; border-radius: 7px; position: relative; background: linear-gradient(180deg, var(--green-d), var(--green)); box-shadow: 0 0 18px -2px rgba(140,207,74,.6); }
.q-mark::after { content: ""; position: absolute; inset: 7px; border: 2px solid #fff; border-radius: 2px; transform: rotate(45deg); }
.q-links { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.q-links-cta { display: none; }
.q-trig { display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  font: 400 14px/1 var(--sans); color: var(--ink-2); transition: color .2s, background-color .2s; }
.q-trig svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .25s var(--ease); }
.q-trig:hover, .q-grp.is-open .q-trig { color: var(--ink); background: var(--glass-2); }
.q-grp.is-open .q-trig svg { transform: rotate(180deg); }
.q-grp { position: static; }   /* dropdowns anchor to the header bar, centred, so they never overflow the viewport */
.q-mega { position: absolute; top: calc(100% + 12px); left: 0; right: 0; display: flex; justify-content: center; visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s, transform .25s var(--ease), visibility 0s .25s; }
.q-mega-card { position: relative; }
.q-mega-card::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* hover bridge across the gap */
.q-grp.is-open .q-mega { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .25s var(--ease); }
.q-grp.is-open .q-mega-card { pointer-events: auto; }
.q-mega-list { max-height: calc(100vh - 128px); overflow-y: auto; overscroll-behavior: contain; }
.q-mega-card { display: grid; grid-template-columns: 300px 230px; gap: 10px; padding: 10px; border-radius: 22px; border: 1px solid var(--line-2);
  background: rgba(7,10,18,.96); backdrop-filter: blur(18px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(124,243,208,.04); }
.q-mega-wide .q-mega-card { grid-template-columns: minmax(0, 300px) minmax(0, 300px) 230px; max-width: calc(100vw - 48px); }
.q-mega-wide .q-mega-list { grid-column: span 2; grid-template-columns: 1fr 1fr; }
.q-mega-list { display: grid; gap: 2px; align-content: start; }
.q-mi { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; transition: background-color .15s; }
.q-mi:hover, .q-mi:focus-visible { background: var(--glass-2); }
.q-mi i { grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; position: relative;
  background: color-mix(in srgb, var(--t) 14%, transparent); border: 1px solid color-mix(in srgb, var(--t) 35%, transparent); }
.q-mi i::after { content: ""; position: absolute; inset: 10px; border: 1.5px solid var(--t); border-radius: 2px; transform: rotate(45deg); }
.q-mi b { font-weight: 500; font-size: 14px; color: var(--ink); }
.q-mi span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.q-feat { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; text-decoration: none;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--t) 26%, transparent), transparent 70%), var(--void-3);
  border: 1px solid color-mix(in srgb, var(--t) 30%, transparent); }
.q-feat-l { font: 500 10.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--t); }
.q-feat-t { font-size: 18px; font-weight: 500; letter-spacing: -.015em; line-height: 1.2; }
.q-feat-d { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.q-feat-c { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 500; color: var(--t); }

.q-nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.q-nav-end .q-btn svg { width: 14px; height: 14px; }
.q-search { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font: 13px/1 var(--sans); cursor: pointer; transition: border-color .2s, color .2s; }
.q-search:hover { color: var(--ink); border-color: var(--line-2); }
.q-search svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.q-search kbd { font: 11px/1 var(--mono); padding: 3px 6px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--muted); }
.q-burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.q-burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.q-burger span:first-child { top: 16px; } .q-burger span:last-child { top: 22px; }
.q-burger[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.q-burger[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 1240px) { .q-wide-only { display: none; } .q-search span, .q-search kbd { display: none; } .q-search { width: 38px; padding: 0; justify-content: center; } }
@media (max-width: 900px) {
  .q-burger { display: block; }
  .q-nav { gap: 12px; }
  .q-nav-end .q-btn-solid { padding: 9px 13px; }
  .q-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px;
    max-height: calc(100svh - 96px); overflow-y: auto; overscroll-behavior: contain;
    border-radius: 22px; border: 1px solid var(--line-2); background: #070a12; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
  .q-links.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .25s var(--ease); }
  .q-trig { width: 100%; justify-content: space-between; padding: 14px; font-size: 16px; border-radius: 14px; }
  .q-mega, .q-grp[data-group] .q-mega { position: static; display: none; visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition: none; }
  .q-grp.is-open .q-mega { display: block; }
  .q-mega-card::before { display: none; }
  .q-mega-card, .q-mega-wide .q-mega-card { grid-template-columns: 1fr; background: transparent; border: 0; box-shadow: none; padding: 0 0 8px; backdrop-filter: none; }
  .q-mega-wide .q-mega-list { grid-column: auto; grid-template-columns: 1fr; }
  .q-mega-list { max-height: none; overflow: visible; }
  .q-feat { display: none; }
  .q-links-cta { display: flex; gap: 8px; padding: 10px 6px 6px; border-top: 1px solid var(--line); margin-top: 6px; }
  .q-links-cta .q-btn { flex: 1; justify-content: center; }
}
@media (max-width: 420px) { .q-nav-end .q-btn-solid svg { display: none; } .q-brand span:last-child { font-size: 16px; } }

/* ---------- search ---------- */
.search-ov { position: fixed; inset: 0; z-index: 120; display: grid; place-items: start center; padding: 12vh 16px 16px; background: rgba(2,3,7,.72); backdrop-filter: blur(6px); }
.search-ov[hidden] { display: none; }
.search-box { width: min(620px, 100%); border-radius: 20px; border: 1px solid var(--line-2); background: rgba(8,12,21,.98); overflow: hidden; box-shadow: 0 50px 100px -30px #000, 0 0 60px -20px rgba(124,243,208,.25); }
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-input-row svg { width: 18px; height: 18px; color: var(--mint); flex: none; }
.search-input-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 17px/1.2 var(--sans); }
.search-input-row kbd { font: 11px/1 var(--mono); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.search-results a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; text-decoration: none; color: var(--ink-2); }
.search-results a.sel, .search-results a:hover { background: var(--glass-2); color: var(--ink); }
.search-results a.sel svg { color: var(--mint); }
.search-results svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-empty { padding: 14px; color: var(--muted); }


/* ---------- footer ---------- */
.q-foot .q-wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.q-foot { border-top: 1px solid var(--line); padding: 72px 0 32px; background: var(--void); }
.q-foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 36px; }
@media (max-width: 1000px) { .q-foot-grid { grid-template-columns: repeat(4, 1fr); } .q-foot-brand { grid-column: 1 / -1; } }
.q-foot-brand p { color: var(--muted); font-size: 14px; max-width: 42ch; margin: 18px 0 0; }
.q-foot h2 { margin: 0 0 14px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.q-foot-grid > div:not(.q-foot-brand) a { display: block; text-decoration: none; color: var(--ink-2); font-size: 14px; padding: 5px 0; }
.q-foot-grid > div:not(.q-foot-brand) a:hover { color: var(--mint); }
.q-foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font: 12px/1.5 var(--mono); color: var(--muted); }
@media (max-width: 760px) { .q-foot-grid { grid-template-columns: 1fr 1fr; } .q-foot-brand { grid-column: 1 / -1; } }


/* active section in the header */
.q-grp.is-active > .q-trig { color: var(--ink); }
.q-grp.is-active > .q-trig::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); margin-right: 2px; }

/* footer lead capture */
.q-foot-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.q-foot-mail { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.q-foot .q-foot-mail a { color: var(--mint); border-bottom: 1px solid rgba(124,243,208,.35); }
.q-foot .q-foot-mail a:hover { border-color: var(--mint); }
.q-top { text-decoration: none; }
.q-top.is-active { color: var(--ink); }
.q-top.is-active::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); margin-right: 2px; }
@media (min-width: 901px) and (max-width: 1100px) { .q-trig { padding: 9px 8px; } }


/* ==========================================================================
   House style (2026-11-18): the header and footer on every page. One typeface,
   one accent, solid surfaces, small corners.
   ========================================================================== */
.q-shell, .search-ov, .q-foot { --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif; --mint: #8ccf4a; }
.q-nav, .q-shell.is-home .q-nav { border-radius: 12px; background: rgba(6,9,16,.94); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.q-mark { box-shadow: none; }
.q-trig, .q-search { border-radius: 8px; }
.q-mega-card { border-radius: 12px; background: #0a0e18; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: 0 24px 48px -24px rgba(0,0,0,.8); }
.q-feat { border-radius: 8px; background-image: none; }
.q-feat-l { font: 500 13px/1.2 var(--sans); letter-spacing: 0; text-transform: none; color: var(--muted); }
.q-feat-c { color: var(--ink); }
.q-feat-d { font-size: 14px; }
.q-shell .q-btn, .q-foot .q-btn { border-radius: 8px; font-weight: 600; }
.q-shell .q-btn.q-btn-solid { background: var(--green); box-shadow: none; }
.q-shell .q-btn.q-btn-solid:hover { background: #a2dc66; }
.q-foot h2 { font: 600 14px/1.2 var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.q-foot li, .q-foot li a { font-size: 14px; }
.q-foot-bottom { font: 400 14px/1.5 var(--sans); }
