/* =====================================================================
   Axxession — shared design system · version 0.40
   ---------------------------------------------------------------------
   The single source of truth for brand tokens, the reset and base
   typography. Linked by every page BEFORE its inline <style>, so any
   page-specific rule still wins. site-config.js overrides these tokens
   at runtime from window.THEME.

   Note: page-specific component CSS (buttons, headers, cards, the hero
   animation, the admin panel, etc.) still lives inline in each page.
   Those are candidates for a later round of consolidation; the tokens,
   reset and base below are what every page genuinely shares.
   ===================================================================== */
:root{
  /* Brand (Axxession Styleguide 1.0) */
  --ink:#42464D;            /* primary brand grey */
  --blue:#275788;           /* secondary · primary accent */
  --red:#AA0000;            /* risk / alert */
  --green:#006600;
  --gold:#CC9900;
  --magenta:#990066;
  /* Derived neutrals */
  --ink-90:#54585f;
  --muted:#787c84;
  --soft:#f4f5f6;
  --soft-2:#eceef0;
  --line:#e2e4e8;
  --paper:#ffffff;
  --blue-dark:#1d4268;
  --blue-soft:#eef3f8;
  /* Geometry / motion */
  --radius:14px;
  --maxw:1140px;
  --ease:cubic-bezier(.22,.61,.36,1);
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
a{color:inherit;text-decoration:none;}
strong{font-weight:600;}
h1,h2,h3,h4{font-weight:700;line-height:1.15;letter-spacing:-.015em;color:var(--ink);}

/* ---------------------------------------------------------------------
   Shared mega-menu (primary nav dropdowns). Used on index, blog and
   assessment pages. Base .menu positioning/animation stays inline per
   page; these rules style the richer card layout (.menu.mega).
   --------------------------------------------------------------------- */
.menu.mega{min-width:480px;left:-14px;padding:16px;}
.mega-grid{display:grid;grid-template-columns:1fr 1fr;gap:4px;}
.mega-item{display:flex;align-items:flex-start;gap:12px;padding:12px;border-radius:11px;color:var(--ink);}
.mega-item:hover{background:var(--soft);}
.mega-item .mi-ic{flex:none;width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:var(--soft);color:var(--blue);}
.mega-item:hover .mi-ic{background:#fff;}
.mega-item .mi-ic svg{width:19px;height:19px;}
.mega-item .mi-tx{display:flex;flex-direction:column;gap:2px;min-width:0;}
.mega-item .mi-tx strong{font-size:.92rem;font-weight:600;color:var(--ink);line-height:1.2;}
.mega-item .mi-tx span{font-size:.78rem;font-weight:300;color:var(--muted);line-height:1.45;}
.mega-item .mi-more{display:inline-block;margin-top:7px;font-size:.72rem;font-weight:600;color:var(--blue);background:var(--blue-soft);border-radius:999px;padding:2px 10px;width:fit-content;}
.mega-item:hover .mi-more{background:#fff;}
.mega-foot{border-top:1px solid var(--line);margin-top:10px;padding:9px 12px 2px;display:flex;flex-wrap:wrap;gap:4px 16px;align-items:center;}
.mega-foot a{display:inline-flex;align-items:center;gap:6px;font-size:.86rem;font-weight:600;color:var(--blue);}
.mega-foot a:hover{color:var(--blue-dark);}
@media(max-width:820px){
  .menu.mega{min-width:0;padding:4px 0 8px 6px;}
  .mega-grid{grid-template-columns:1fr;}
  .mega-item{padding:10px 8px;}
  .mega-foot{border-top:none;margin-top:2px;padding:6px 8px;}
}
