/* LAKANA CANONICAL HEADER — Tier-1 reviewer-critical shell
 *
 * One namespaced stylesheet for the single canonical global header, so
 * Tier-1 pages stop depending on any of the six separate global-header
 * implementations Phase 0 found. Visual language (navy / teal / gold /
 * iris institutional palette) and the responsive-collapse behavior are the
 * already-approved design from assets/lakana-elite-menu.css, carried
 * forward under a strongly namespaced .lakana-canonical-header / .lch-*
 * selector set rather than redesigned. Tier-2 pages do not load this file
 * and are unaffected by it. */
:root{
  --lch-navy:#0A1625;
  --lch-component:#162A45;
  --lch-slate:#345275;
  --lch-ink:#0D1B2A;
  --lch-teal:#0D7377;
  --lch-gold:#CF9D2A;
  --lch-paper:#F4F6F9;
  --lch-pale:#E8EDF2;
  --lch-white:#FFFFFF;
  --lch-iris:#7244C4;
}

.lakana-canonical-header{
  position:sticky;
  top:0;
  z-index:9999;
  background:
    radial-gradient(circle at 7% 0%, rgba(13,115,119,.28), transparent 19rem),
    linear-gradient(135deg, var(--lch-navy), var(--lch-component));
  border-bottom:4px solid var(--lch-teal);
  box-shadow:0 28px 60px rgba(10,22,37,.36);
}

.lch-shell{
  max-width:1480px;
  margin:auto;
  padding:18px 24px;
  display:grid;
  grid-template-columns:minmax(300px,1fr) auto minmax(500px,1.3fr);
  gap:18px;
  align-items:center;
}

.lch-brand{
  display:flex;
  align-items:center;
  gap:16px;
  color:var(--lch-white);
  text-decoration:none;
  min-width:0;
}

.lch-brand-mark{
  width:64px;
  height:64px;
  min-width:64px;
  border-radius:20px;
  display:grid;
  place-items:center;
  color:var(--lch-white);
  background:
    radial-gradient(circle at 25% 18%, rgba(244,246,249,.20), transparent 36%),
    linear-gradient(135deg, var(--lch-teal), #0A6B73 54%, var(--lch-component));
  border:1.8px solid rgba(244,246,249,.18);
  box-shadow:0 20px 48px rgba(0,0,0,.28), inset 0 0 0 1px rgba(255,255,255,.12);
  overflow:hidden;
}

.lch-logo-svg{
  width:40px;
  height:40px;
  color:var(--lch-white);
  display:block;
}

.lch-brand-copy strong{
  display:block;
  color:var(--lch-white);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:clamp(.92rem,2vw,1.2rem);
  line-height:1.05;
}

.lch-brand-copy span{
  display:block;
  color:var(--lch-pale);
  opacity:.82;
  margin-top:6px;
  font-size:.82rem;
  line-height:1.25;
}

.lch-primary{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px;
  border:1px solid rgba(232,237,242,.14);
  background:rgba(232,237,242,.045);
  border-radius:999px;
}

.lch-primary a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  color:var(--lch-white);
  text-decoration:none;
  font-weight:900;
  letter-spacing:.01em;
  border-radius:999px;
  padding:11px 15px;
  border:1px solid transparent;
  white-space:nowrap;
  font-size:.92rem;
}

.lch-primary a:hover{
  border-color:rgba(207,157,42,.42);
  background:rgba(207,157,42,.11);
}

.lch-brand:focus-visible,
.lch-primary a:focus-visible,
.lch-cluster summary:focus-visible,
.lch-card:focus-visible{
  outline:3px solid var(--lch-gold);
  outline-offset:2px;
}

.lch-clusters{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}

.lch-cluster{
  position:relative;
}

.lch-cluster summary{
  list-style:none;
  cursor:pointer;
  border:1.6px solid rgba(13,115,119,.52);
  background:linear-gradient(180deg, rgba(232,237,242,.08), rgba(232,237,242,.035));
  color:var(--lch-white);
  border-radius:20px;
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 15px;
  font-weight:900;
  font-size:.9rem;
  letter-spacing:.01em;
}

.lch-cluster summary::-webkit-details-marker{
  display:none;
}

.lch-cluster summary::after{
  content:"";
  width:8px;
  height:8px;
  border-right:2px solid var(--lch-gold);
  border-bottom:2px solid var(--lch-gold);
  transform:rotate(45deg) translateY(-2px);
  transition:.2s ease;
  margin-left:10px;
  flex:none;
}

.lch-cluster[open] summary{
  border-color:rgba(207,157,42,.72);
  background:linear-gradient(135deg, rgba(13,115,119,.28), rgba(22,42,69,.72));
}

.lch-cluster[open] summary::after{
  transform:rotate(225deg) translateY(-1px);
}

.lch-panel{
  position:absolute;
  right:0;
  top:calc(100% + 10px);
  width:min(380px,88vw);
  background:rgba(244,246,249,.98);
  border:1px solid rgba(52,82,117,.22);
  border-top:4px solid var(--lch-gold);
  border-radius:24px;
  padding:10px;
  box-shadow:0 30px 76px rgba(10,22,37,.28);
  display:grid;
  gap:8px;
}

.lch-cluster:not([open]) .lch-panel{
  display:none;
}

.lch-card{
  display:block;
  text-decoration:none;
  border-radius:18px;
  padding:13px 14px;
  background:var(--lch-white);
  border:1px solid rgba(52,82,117,.16);
  color:var(--lch-ink);
  /* Named properties only, never the "all" shorthand: a blanket transition
     also animates outline-width/outline-color, so a keyboard focus ring
     fades in over the transition duration instead of appearing instantly --
     real Chromium confirmed getComputedStyle reads 0px mid-fade immediately
     after a Tab keypress. Focus visibility must never depend on timing. */
  transition:transform .16s ease, box-shadow .16s ease;
  border-left:6px solid var(--lch-slate);
}

.lch-card:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 30px rgba(10,22,37,.12);
}

.lch-card b{
  display:block;
  font-size:.94rem;
  color:var(--lch-ink);
}

/* -------- collapse: closed by default, never expanded-in-flow past the
   breakpoint. Progressive enhancement ONLY -- see lakana-canonical-header.js
   for the .lch-js-ready gate; with JavaScript unavailable the full-width,
   fully-expanded, in-flow layout above is exactly what renders, taller but
   never hidden and never unreachable. */
@media(max-width:1420px){
  .lch-shell{ grid-template-columns:1fr; }
  .lch-primary{ justify-content:flex-start; overflow-x:auto; }
  .lch-clusters{ grid-template-columns:1fr; }
  .lch-panel{ position:relative; top:auto; right:auto; width:100%; margin-top:8px; }
  .lch-cluster:not([open]) .lch-panel{ display:none; }
}

.lch-toggle{
  display:none;
  min-width:44px;
  min-height:44px;
  justify-self:end;
  align-self:center;
  border:1.6px solid rgba(13,115,119,.58);
  color:var(--lch-white);
  background:rgba(232,237,242,.07);
  border-radius:999px;
  padding:10px 16px;
  font-family:inherit;
  font-weight:900;
  font-size:.84rem;
  cursor:pointer;
}

.lch-toggle:hover{
  border-color:rgba(207,157,42,.6);
  background:rgba(207,157,42,.14);
}

.lch-toggle:focus-visible{
  outline:3px solid var(--lch-gold);
  outline-offset:2px;
}

@media(max-width:1420px){
  .lch-js-ready .lch-shell{ grid-template-columns:1fr auto; align-items:center; }
  .lch-js-ready .lch-toggle{ display:inline-flex; align-items:center; justify-content:center; }
  .lch-js-ready .lch-primary,
  .lch-js-ready .lch-clusters{ display:none; }

  /* The shared ancestor becomes the single fixed, scrollable overlay --
     not two independently-positioned panels sharing coordinates (that bug,
     found and fixed once already in the elite-menu predecessor, is not
     being reintroduced here). */
  .lch-js-ready[data-lch-open="true"]{
    position:fixed;
    inset:0;
    height:100vh;
    overflow-y:auto;
    background:linear-gradient(180deg,var(--lch-navy),var(--lch-component));
    box-shadow:0 30px 60px rgba(10,22,37,.4);
  }
  .lch-js-ready[data-lch-open="true"] .lch-shell{ grid-template-columns:1fr auto; align-items:start; padding-bottom:20px; }
  .lch-js-ready[data-lch-open="true"] .lch-primary{
    grid-column:1 / -1; display:flex; flex-direction:column; align-items:stretch; gap:6px; margin-top:12px;
  }
  .lch-js-ready[data-lch-open="true"] .lch-primary a{ padding:14px 16px; border-radius:16px; background:rgba(232,237,242,.06); }
  .lch-js-ready[data-lch-open="true"] .lch-clusters{
    grid-column:1 / -1; display:grid; grid-template-columns:1fr; gap:9px; margin-top:10px;
  }
}

@media(max-width:1420px) and (prefers-reduced-motion:no-preference){
  .lch-js-ready[data-lch-open="true"]{ animation:lch-drawer-in .16s ease; }
}

@keyframes lch-drawer-in{
  from{opacity:0;transform:translateY(-6px)}
  to{opacity:1;transform:none}
}

@media(max-width:740px){
  .lch-shell{ padding:14px; gap:12px; }
  .lch-brand-mark{ width:56px; height:56px; min-width:56px; border-radius:18px; }
  .lch-logo-svg{ width:36px; height:36px; }
  .lch-brand-copy strong{ font-size:1rem; letter-spacing:.13em; }
  .lch-brand-copy span{ font-size:.76rem; }
  .lch-primary{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border-radius:20px; padding:6px; }
  .lch-primary a{ text-align:center; padding:11px 6px; font-size:.88rem; }
  .lch-cluster summary{ min-height:52px; border-radius:18px; font-size:.92rem; }
}
