/* ===========================================================
   SILIB Mauritius — Subpage stylesheet
   Aligned to silib-mauritius.mu design system
   =========================================================== */

:root{
  --royal-dark:#061240;
  --royal:#0a1f5c;
  --royal-mid:#1a3070;
  --royal-light:#1e3a8a;
  --gold:#c9a84c;
  --gold-light:#e2c97e;
  --gold-dark:#a07c2a;
  --ivory:#faf8f3;
  --ivory-dark:#f0ece0;
  --white:#ffffff;
  --text:#1a1a2e;
  --text-muted:#4a5568;
  --text-faint:#718096;
  --border:#d4c89a;
  --border-light:#e8e0c8;
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:'Inter', system-ui, -apple-system, sans-serif;
  --shadow-card:0 1px 3px rgba(6,18,64,.05);
  --shadow-card-hover:0 12px 32px rgba(6,18,64,.10);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--font-body);
  font-weight:400;
  font-size:16px;
  line-height:1.7;
  color:var(--text);
  background:var(--ivory);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:var(--gold-dark);text-decoration:none;transition:color .2s}
a:hover{color:var(--gold)}

::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-track{background:var(--ivory-dark)}
::-webkit-scrollbar-thumb{background:var(--gold);border-radius:6px}

/* ============ NAV ============ */
.nav{
  position:fixed;top:0;left:0;right:0;z-index:50;
  height:72px;
  background:var(--royal-dark);
  border-bottom:1px solid rgba(201,168,76,.25);
}
.nav__inner{
  max-width:1200px;height:100%;
  margin:0 auto;padding:0 1.5rem;
  display:flex;align-items:center;gap:2rem;
}
.nav__brand{display:flex;align-items:center;gap:.75rem;flex-shrink:0}
.nav__logo{width:38px;height:38px}
.nav__brand-text{display:flex;flex-direction:column;line-height:1}
.nav__brand-main{font-family:var(--font-display);font-weight:700;color:var(--gold);font-size:1.15rem;letter-spacing:.02em}
.nav__brand-sub{font-size:.55rem;color:rgba(255,255,255,.7);letter-spacing:.18em;font-weight:600;margin-top:3px}
.nav__links{
  display:flex;align-items:center;gap:1.4rem;
  margin-left:auto;
}
.nav__links a{
  font-size:.72rem;font-weight:500;
  color:rgba(255,255,255,.75);
  text-transform:uppercase;letter-spacing:.06em;
  padding:.4rem 0;
  border-bottom:1px solid transparent;
  transition:color .2s,border-color .2s;
}
.nav__links a:hover,.nav__links a.nav__active{
  color:var(--gold);border-bottom-color:var(--gold);
}
.nav__cta{margin-left:.6rem}
.nav__toggle{
  display:none;background:none;border:0;color:var(--gold);
  font-size:1.5rem;cursor:pointer;margin-left:auto;
}

/* ============ BUTTONS ============ */
.btn{
  display:inline-block;font-family:var(--font-body);
  font-weight:700;font-size:.875rem;letter-spacing:.04em;
  text-transform:uppercase;
  padding:.95rem 1.85rem;border-radius:4px;
  border:1px solid transparent;cursor:pointer;
  transition:transform .2s,box-shadow .2s,background .2s,color .2s,border-color .2s;
  text-align:center;
}
.btn--gold{
  background:var(--gold);color:var(--royal-dark);
  box-shadow:0 4px 16px rgba(201,168,76,.3);
}
.btn--gold:hover{
  background:var(--gold-light);color:var(--royal-dark);
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(201,168,76,.4);
}
.btn--outline{
  background:transparent;color:rgba(255,255,255,.85);
  border-color:rgba(255,255,255,.25);
}
.btn--outline:hover{
  border-color:var(--gold);color:var(--gold);
  background:rgba(201,168,76,.06);
}

/* ============ HERO ============ */
.hero{
  margin-top:72px;
  background:
    radial-gradient(circle at 18% 22%, rgba(201,168,76,.10), transparent 55%),
    radial-gradient(circle at 82% 78%, rgba(30,58,138,.35), transparent 60%),
    linear-gradient(135deg, var(--royal-dark) 0%, var(--royal) 55%, var(--royal-mid) 100%);
  color:#fff;
  padding:5.5rem 1.5rem 4rem;
  border-bottom:1px solid rgba(201,168,76,.18);
}
.hero__inner{max-width:1100px;margin:0 auto}
.breadcrumb{
  font-size:.78rem;
  color:rgba(255,255,255,.55);
  letter-spacing:.04em;
  margin-bottom:1.6rem;
}
.breadcrumb a{color:rgba(255,255,255,.7)}
.breadcrumb a:hover{color:var(--gold)}
.breadcrumb span{margin:0 .5rem}
.hero h1{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(1.85rem,3.4vw,3rem);
  line-height:1.15;letter-spacing:-.01em;
  margin:.6rem 0 1.2rem;color:#fff;
}
.hero h1 .accent{color:var(--gold)}
.hero__lead{
  font-size:1.125rem;line-height:1.75;
  color:rgba(255,255,255,.78);
  max-width:780px;margin:0 0 2.4rem;
}
.hero__stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;
  padding:1.5rem;
  background:rgba(10,31,92,.5);
  border:1px solid rgba(201,168,76,.22);
  border-radius:10px;
  backdrop-filter:blur(6px);
}
.hero__stat{display:flex;flex-direction:column;gap:.35rem}
.hero__stat-num{font-family:var(--font-display);font-weight:700;color:var(--gold);font-size:1.55rem;line-height:1.1}
.hero__stat-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.65);font-weight:500}

/* ============ SECTION TAGS ============ */
.section-tag{
  display:inline-block;
  font-family:var(--font-body);
  font-weight:700;font-size:.72rem;
  letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold-dark);
  margin-bottom:.7rem;
}
.section-tag--gold{color:var(--gold)}

.gold-divider{
  width:56px;height:3px;
  background:linear-gradient(90deg,var(--gold),var(--gold-light));
  border-radius:2px;
  margin:0 0 1.6rem;
}

/* ============ MAIN PAGE LAYOUT ============ */
.page{
  background:var(--ivory);
  padding:4.5rem 1.5rem 5rem;
}
.page__grid{
  max-width:1200px;margin:0 auto;
  display:grid;grid-template-columns:260px 1fr;gap:3rem;
  align-items:flex-start;
}

/* ============ TOC ============ */
.toc{
  position:sticky;top:96px;
  background:var(--white);
  border:1px solid var(--border-light);
  border-top:3px solid var(--gold);
  border-radius:8px;
  padding:1.5rem 1.4rem;
  box-shadow:var(--shadow-card);
}
.toc__label{
  font-size:.7rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.1em;
  color:var(--text-faint);
  margin-bottom:.9rem;
}
.toc__list{
  list-style:none;margin:0;padding:0;
  border-left:1px solid var(--border-light);
}
.toc__list li{margin:0}
.toc__list a{
  display:block;
  padding:.5rem .9rem;
  margin-left:-1px;
  font-size:.86rem;color:var(--text-muted);
  border-left:2px solid transparent;
  transition:all .2s;
}
.toc__list a:hover{
  color:var(--royal-dark);
  border-left-color:var(--gold);
  background:rgba(201,168,76,.04);
}
.toc__params{
  margin-top:1.4rem;padding-top:1.2rem;
  border-top:1px solid var(--border-light);
}
.toc__params-label{
  font-size:.7rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.1em;
  color:var(--gold-dark);
  margin-bottom:.5rem;
}
.toc__params p{font-size:.78rem;line-height:1.55;color:var(--text-muted);margin:0}

/* ============ CONTENT ============ */
.content{min-width:0}
.content section{margin-bottom:4rem;scroll-margin-top:96px}
.content h2{
  font-family:var(--font-display);font-weight:700;
  font-size:clamp(1.55rem,2.4vw,2rem);
  line-height:1.2;color:var(--royal-dark);
  margin:0 0 .6rem;letter-spacing:-.005em;
}
.content h3{
  font-family:var(--font-display);font-weight:600;
  font-size:1.2rem;color:var(--royal);
  margin:1.6rem 0 .8rem;
  padding-bottom:.5rem;
  border-bottom:1px solid var(--border-light);
  position:relative;
}
.content h3::after{
  content:"";position:absolute;bottom:-1px;left:0;
  width:40px;height:2px;background:var(--gold);
}
.content p{margin:0 0 1.05rem;color:var(--text-muted);line-height:1.8}
.content p.lead{font-size:1.08rem;color:var(--text);line-height:1.75}
.content strong{color:var(--royal-dark);font-weight:600}
.content sup a{color:var(--gold-dark);font-size:.7em}

/* ============ CARDS ============ */
.cards-3{
  display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem;
  margin:1.5rem 0 1.8rem;
}
.card{
  background:var(--white);
  border:1px solid var(--border-light);
  border-radius:12px;
  padding:1.6rem 1.5rem;
  box-shadow:var(--shadow-card);
  transition:transform .25s,box-shadow .25s,border-color .25s;
}
.card:hover{
  transform:translateY(-3px);
  box-shadow:var(--shadow-card-hover);
  border-color:var(--border);
}
.card--gold-top{border-top:3px solid var(--gold)}
.card__icon{
  width:48px;height:48px;
  background:linear-gradient(135deg,var(--royal-mid),var(--royal));
  border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;color:var(--gold);
  margin-bottom:1rem;
}
.card h3{
  font-family:var(--font-display);font-weight:600;
  font-size:1.05rem;margin:0 0 .55rem;
  color:var(--royal-dark);border:0;padding:0;
}
.card h3::after{display:none}
.card p{font-size:.9rem;line-height:1.65;margin:0;color:var(--text-muted)}

/* ============ AXES (2 COLS) ============ */
.axes{
  display:grid;grid-template-columns:1fr 1fr;gap:1.3rem;
  margin:1.5rem 0 2rem;
}
.axes__col{
  background:var(--white);
  border:1px solid var(--border-light);
  border-left:3px solid var(--royal);
  border-radius:6px;
  padding:1.4rem 1.5rem;
}
.axes__col h3{margin-top:0;border-bottom-color:var(--border-light)}

/* ============ QUADRANT ============ */
.quadrant{
  display:grid;grid-template-columns:1fr 1fr;gap:1rem;
  margin:1.5rem 0 1rem;
}
.quadrant__cell{
  background:var(--white);
  border:1px solid var(--border-light);
  border-radius:8px;
  padding:1.2rem 1.3rem;
  position:relative;
}
.quadrant__cell--strong{
  border:1px solid var(--gold);
  background:linear-gradient(135deg,#fffaf0 0%,var(--white) 100%);
  box-shadow:0 4px 16px rgba(201,168,76,.15);
}
.quadrant__cell--mid{border-left:3px solid var(--royal)}
.quadrant__cell--weak{opacity:.92}
.quadrant__tag{
  display:inline-block;
  font-size:.65rem;font-weight:700;
  letter-spacing:.12em;text-transform:uppercase;
  padding:.2rem .55rem;border-radius:3px;
  background:var(--ivory-dark);color:var(--text-faint);
  margin-bottom:.6rem;
}
.quadrant__cell--strong .quadrant__tag{background:var(--gold);color:var(--royal-dark)}
.quadrant__cell--mid .quadrant__tag{background:var(--royal);color:var(--gold-light)}
.quadrant__cell h4{
  font-family:var(--font-display);font-weight:700;
  font-size:1rem;color:var(--royal-dark);
  margin:0 0 .5rem;
}
.quadrant__cell p{font-size:.85rem;line-height:1.6;margin:0;color:var(--text-muted)}

/* ============ ARCHETYPES ============ */
.archetype{
  background:var(--white);
  border:1px solid var(--border-light);
  border-radius:10px;
  padding:1.6rem 1.7rem;
  margin:1.2rem 0;
  transition:border-color .2s,box-shadow .2s;
}
.archetype:hover{border-color:var(--border);box-shadow:var(--shadow-card-hover)}
.archetype--featured{
  border:1px solid var(--gold);
  border-top:3px solid var(--gold);
  background:linear-gradient(180deg,#fffaf0 0%,var(--white) 70%);
  box-shadow:0 6px 24px rgba(201,168,76,.12);
}
.archetype__head{
  display:flex;align-items:center;gap:1rem;flex-wrap:wrap;
  margin-bottom:.8rem;
}
.archetype__num{
  width:36px;height:36px;flex-shrink:0;
  background:var(--royal-dark);color:var(--gold);
  font-family:var(--font-display);font-weight:700;font-size:1.05rem;
  display:flex;align-items:center;justify-content:center;
  border-radius:6px;
}
.archetype--featured .archetype__num{background:var(--gold);color:var(--royal-dark)}
.archetype__head h3{
  margin:0;flex:1;
  font-family:var(--font-display);font-weight:600;
  font-size:1.1rem;color:var(--royal-dark);
  border:0;padding:0;
}
.archetype__head h3::after{display:none}
.archetype p{font-size:.95rem;line-height:1.7;margin:0 0 .8rem}
.archetype__note{
  background:var(--ivory-dark);
  border-left:3px solid var(--royal);
  padding:.85rem 1.1rem;border-radius:0 4px 4px 0;
  font-size:.88rem;
}
.archetype__note--strong{
  background:rgba(201,168,76,.08);
  border-left-color:var(--gold);
}

/* badges */
.badge{
  display:inline-block;
  font-size:.66rem;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;
  padding:.25rem .65rem;border-radius:100px;
  white-space:nowrap;
}
.badge--weak{background:rgba(113,128,150,.12);color:var(--text-faint)}
.badge--mid{background:rgba(30,58,138,.12);color:var(--royal)}
.badge--strong{background:rgba(201,168,76,.18);color:var(--gold-dark);border:1px solid rgba(201,168,76,.3)}

/* check list */
.check-list{
  list-style:none;padding:0;margin:.8rem 0 1rem;
  display:grid;grid-template-columns:1fr 1fr;gap:.6rem 1.4rem;
}
.check-list li{
  position:relative;padding-left:1.6rem;
  font-size:.9rem;line-height:1.55;color:var(--text-muted);
}
.check-list li::before{
  content:"✓";
  position:absolute;left:0;top:-1px;
  color:var(--gold);font-weight:700;font-size:1rem;
}

/* ============ RANKING ============ */
.rank{margin:1.5rem 0 1.5rem;display:flex;flex-direction:column;gap:1rem}
.rank__row{
  display:grid;grid-template-columns:90px 1fr;gap:1.3rem;
  background:var(--white);
  border:1px solid var(--border-light);
  border-radius:10px;
  padding:1.3rem 1.5rem;
  align-items:flex-start;
  transition:transform .2s,box-shadow .2s;
}
.rank__row:hover{transform:translateX(3px);box-shadow:var(--shadow-card-hover)}
.rank__row--1{
  border:1px solid var(--gold);
  background:linear-gradient(135deg,#fffaf0 0%,var(--white) 100%);
  box-shadow:0 4px 18px rgba(201,168,76,.18);
}
.rank__pos{display:flex;flex-direction:column;align-items:center;gap:.4rem;padding-top:.2rem}
.rank__num{
  font-family:var(--font-display);font-weight:700;
  font-size:2.4rem;line-height:1;
  color:var(--royal);
}
.rank__row--1 .rank__num{color:var(--gold-dark)}
.rank__medal{
  font-size:1.3rem;color:var(--gold);
}
.rank__body h3{
  font-family:var(--font-display);font-weight:600;
  font-size:1.08rem;color:var(--royal-dark);
  margin:0 0 .55rem;border:0;padding:0;
  display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;
}
.rank__body h3::after{display:none}
.rank__body p{margin:0;font-size:.92rem;line-height:1.7}
.rank__pill{
  font-size:.65rem;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;
  padding:.22rem .6rem;border-radius:100px;
}
.rank__pill--gold{background:var(--gold);color:var(--royal-dark)}
.rank__pill--mid{background:rgba(30,58,138,.12);color:var(--royal)}
.rank__pill--weak{background:rgba(113,128,150,.12);color:var(--text-faint)}

/* ============ INFO BOXES ============ */
.info-box{
  border-radius:6px;
  padding:1.1rem 1.3rem;
  margin:1.3rem 0;
}
.info-box--blue{
  border-left:4px solid var(--royal);
  background:rgba(10,31,92,.04);
}
.info-box--gold{
  border-left:4px solid var(--gold);
  background:rgba(201,168,76,.07);
}
.info-box__label{
  font-family:var(--font-body);font-weight:700;
  font-size:.72rem;letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--gold-dark);
  margin-bottom:.5rem;
}
.info-box--blue .info-box__label{color:var(--royal)}
.info-box p{margin:.3rem 0;color:var(--text)}
.info-box p:last-child{margin-bottom:0}

/* ============ ADVANTAGES (numbered) ============ */
.adv{
  display:grid;grid-template-columns:54px 1fr;gap:1.2rem;
  background:var(--white);
  border:1px solid var(--border-light);
  border-radius:10px;
  padding:1.4rem 1.5rem;
  margin:1rem 0;
  transition:transform .2s,box-shadow .2s,border-color .2s;
}
.adv:hover{transform:translateY(-2px);box-shadow:var(--shadow-card-hover);border-color:var(--border)}
.adv__num{
  width:46px;height:46px;
  background:linear-gradient(135deg,var(--royal),var(--royal-dark));
  color:var(--gold);
  font-family:var(--font-display);font-weight:700;font-size:1.15rem;
  display:flex;align-items:center;justify-content:center;
  border-radius:8px;
  border:1px solid rgba(201,168,76,.25);
}
.adv__body h3{
  margin:0 0 .5rem;
  font-family:var(--font-display);font-weight:600;
  font-size:1.08rem;color:var(--royal-dark);
  border:0;padding:0;
}
.adv__body h3::after{display:none}
.adv__body p{margin:0;font-size:.93rem;line-height:1.7}

/* ============ TABLE ============ */
.table-wrap{
  overflow-x:auto;
  border:1px solid var(--border-light);
  border-radius:8px;
  margin:1.3rem 0;
  background:var(--white);
}
.matrix{
  width:100%;border-collapse:collapse;
  font-size:.86rem;min-width:760px;
}
.matrix thead th{
  background:var(--royal);
  color:var(--gold-light);
  font-family:var(--font-body);font-weight:600;
  font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;
  text-align:left;
  padding:.95rem 1rem;
  border-bottom:1px solid rgba(201,168,76,.25);
  vertical-align:top;
}
.matrix thead th small{
  display:block;font-weight:400;font-size:.68rem;
  color:rgba(226,201,126,.7);text-transform:none;
  letter-spacing:0;margin-top:.2rem;
}
.matrix thead th.matrix__hl{background:var(--royal-dark);color:var(--gold)}
.matrix tbody td{
  padding:.85rem 1rem;
  border-bottom:1px solid var(--border-light);
  color:var(--text-muted);
  vertical-align:top;
  line-height:1.55;
}
.matrix tbody td:first-child{
  color:var(--royal-dark);font-weight:500;
  background:var(--ivory);
  width:24%;
}
.matrix tbody td.matrix__hl{
  background:rgba(201,168,76,.06);
  color:var(--royal-dark);
  font-weight:500;
}
.matrix tbody tr:hover td{background:rgba(201,168,76,.04)}
.matrix tbody tr:hover td.matrix__hl{background:rgba(201,168,76,.10)}
.matrix tbody tr:hover td:first-child{background:var(--ivory-dark)}
.matrix tbody tr:last-child td{border-bottom:0}

/* ============ CTA ============ */
.cta{
  margin-top:2.5rem;
  background:linear-gradient(135deg,var(--royal-dark),var(--royal));
  color:#fff;
  border-radius:12px;
  padding:2.2rem 2.4rem;
  border:1px solid rgba(201,168,76,.25);
  text-align:center;
}
.cta h3{
  font-family:var(--font-display);font-weight:700;
  font-size:1.35rem;color:#fff;
  margin:0 0 .6rem;border:0;padding:0;
}
.cta h3::after{display:none}
.cta p{
  color:rgba(255,255,255,.78);
  font-size:1rem;max-width:560px;
  margin:0 auto 1.5rem;
}
.cta__btns{display:flex;gap:.9rem;justify-content:center;flex-wrap:wrap}

/* ============ FOOTNOTES ============ */
.footnotes{
  margin-top:3.5rem;padding-top:2rem;
  border-top:1px solid var(--border-light);
}
.footnotes h3{
  font-family:var(--font-display);font-weight:600;
  font-size:1rem;color:var(--royal);
  margin:0 0 1rem;border:0;padding:0;
}
.footnotes h3::after{display:none}
.footnotes ol{
  margin:0;padding-left:1.4rem;
  font-size:.82rem;line-height:1.65;color:var(--text-muted);
}
.footnotes ol li{margin-bottom:.45rem}
.footnotes em{color:var(--royal)}
.footnotes__note{
  margin-top:1.2rem;
  padding:.9rem 1.1rem;
  background:var(--ivory-dark);
  border-left:3px solid var(--text-faint);
  font-size:.78rem;line-height:1.6;color:var(--text-faint);
}

/* ============ FOOTER ============ */
.footer{
  background:var(--royal-dark);
  color:rgba(255,255,255,.7);
  padding:3.5rem 1.5rem 1.4rem;
  border-top:1px solid rgba(201,168,76,.2);
}
.footer__inner{max-width:1200px;margin:0 auto}
.footer__cols{
  display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:2.5rem;
  padding-bottom:2.4rem;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.footer__col h4{
  font-family:var(--font-display);font-weight:700;
  font-size:1.15rem;color:var(--gold);
  margin:0 0 .8rem;
}
.footer__col h5{
  font-family:var(--font-body);font-weight:700;
  font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold);
  margin:0 0 1rem;
}
.footer__col p{font-size:.86rem;line-height:1.65;color:rgba(255,255,255,.6);margin:0 0 .8rem}
.footer__attrib{font-style:italic;font-size:.78rem !important;color:rgba(255,255,255,.5) !important}
.footer__col ul{list-style:none;margin:0;padding:0}
.footer__col ul li{margin-bottom:.55rem}
.footer__col ul a{
  color:rgba(255,255,255,.65);font-size:.85rem;
  transition:color .2s;
}
.footer__col ul a:hover{color:var(--gold)}
.footer__bottom{
  display:flex;justify-content:space-between;align-items:center;
  flex-wrap:wrap;gap:.6rem;
  padding:1.4rem 0 .9rem;
  font-size:.78rem;color:rgba(255,255,255,.5);
}
.footer__credit a{color:var(--gold)}
.footer__disclaimer{
  font-size:.72rem;line-height:1.55;
  color:rgba(255,255,255,.3);
  margin:.6rem 0 0;
}
.footer__disclaimer a{color:rgba(201,168,76,.55);margin-left:.4rem}

/* ============ RESPONSIVE ============ */
@media (max-width:1024px){
  .page__grid{grid-template-columns:1fr;gap:2rem}
  .toc{position:static;order:-1}
  .hero__stats{grid-template-columns:repeat(2,1fr)}
  .footer__cols{grid-template-columns:1fr 1fr;gap:2rem}
}
@media (max-width:900px){
  .nav__links{
    display:none;
    position:absolute;top:72px;left:0;right:0;
    flex-direction:column;align-items:stretch;
    gap:0;
    background:var(--royal-dark);
    padding:.8rem 1.5rem 1.2rem;
    border-bottom:1px solid rgba(201,168,76,.25);
  }
  .nav__links--open{display:flex}
  .nav__links a{padding:.7rem 0;border-bottom:1px solid rgba(255,255,255,.08)}
  .nav__cta{display:none}
  .nav__toggle{display:block}
}
@media (max-width:760px){
  .cards-3{grid-template-columns:1fr}
  .axes{grid-template-columns:1fr}
  .quadrant{grid-template-columns:1fr}
  .check-list{grid-template-columns:1fr}
  .hero{padding:4rem 1.25rem 3rem}
  .hero__stats{grid-template-columns:1fr 1fr;padding:1.1rem}
  .page{padding:3rem 1.25rem 4rem}
  .rank__row{grid-template-columns:60px 1fr;gap:1rem;padding:1.1rem 1.2rem}
  .rank__num{font-size:2rem}
  .adv{grid-template-columns:42px 1fr;gap:.9rem;padding:1.2rem 1.2rem}
  .adv__num{width:38px;height:38px;font-size:1rem}
  .footer__cols{grid-template-columns:1fr;gap:1.6rem}
  .cta{padding:1.7rem 1.4rem}
  .cta h3{font-size:1.15rem}
}
@media (max-width:480px){
  .hero__stats{grid-template-columns:1fr}
  .breadcrumb span+span{display:none}
}

/* ============================================================
   MARKET PAGE — additional components
   ============================================================ */

/* Vehicle cards */
.vehicle {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.vehicle:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(6,18,64,.08); }
.vehicle--featured {
  border: 2px solid var(--gold);
  box-shadow: 0 8px 28px rgba(201,168,76,.18);
  background: linear-gradient(180deg, #fffdf6 0%, #ffffff 60%);
}
.vehicle__head {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}
.vehicle__rank {
  flex: 0 0 auto;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--royal-dark);
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--gold);
}
.vehicle--featured .vehicle__rank {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--royal-dark);
}
.vehicle__title-block { flex: 1 1 auto; min-width: 0; }
.vehicle__title-block h3 {
  margin: .35rem 0 .15rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--royal-dark);
  border: 0;
  padding: 0;
}
.vehicle__title-block h3::after { display: none; }
.vehicle__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: .95rem;
  font-style: italic;
}
.vehicle__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 4px;
}
.vehicle__tag--strong { background: var(--gold); color: var(--royal-dark); }
.vehicle__tag--mid    { background: #e2c97e; color: var(--royal-dark); }
.vehicle__tag--weak   { background: #e8e0c8; color: var(--text-muted); }

.vehicle__meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .35rem 1rem;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: .92rem;
}
.vehicle__meta dt { color: var(--text-faint); font-weight: 600; }
.vehicle__meta dd { margin: 0; color: var(--text); }

/* Score bars */
.scores {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  margin-top: 1rem;
}
.score {
  display: grid;
  grid-template-columns: 160px 1fr 50px;
  align-items: center;
  gap: .85rem;
  font-size: .9rem;
}
.score__label { color: var(--text-muted); font-weight: 500; }
.score__bar {
  position: relative;
  height: 8px;
  background: #f1ecd9;
  border-radius: 4px;
  overflow: hidden;
}
.score__bar i {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 100%);
  border-radius: 4px;
  display: block;
}
.vehicle--featured .score__bar i {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
}
.score__num {
  text-align: right;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--royal-dark);
  font-size: .95rem;
}

/* Group accordion (details/summary) */
.grp {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: .85rem;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.grp[open] { box-shadow: 0 6px 20px rgba(6,18,64,.06); }
.grp > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  user-select: none;
}
.grp > summary::-webkit-details-marker { display: none; }
.grp__num {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--royal-dark);
  color: var(--gold-light);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.grp__title {
  flex: 1 1 auto;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--royal-dark);
  font-weight: 600;
}
.grp__chev {
  flex: 0 0 auto;
  color: var(--gold-dark);
  font-size: 1rem;
  transition: transform .2s ease;
}
.grp[open] .grp__chev { transform: rotate(180deg); }

/* Layer cards inside accordion */
.layer {
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
}
.layer--featured {
  background: linear-gradient(180deg, #fffdf6 0%, #ffffff 100%);
  border-left: 3px solid var(--gold);
}
.layer__num {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-dark);
  text-align: center;
}
.layer__body h4 {
  margin: 0 0 .35rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--royal-dark);
}
.layer__body p { margin: .35rem 0; }
.layer__legal {
  display: block;
  font-size: .82rem;
  color: var(--text-faint);
  margin-top: .35rem;
  font-style: italic;
}
.layer__avail {
  display: inline-block;
  margin-top: .5rem;
  padding: .25rem .55rem;
  background: #f7f2e1;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: .8rem;
  color: var(--text-muted);
}
.layer--featured .layer__avail {
  background: var(--gold);
  color: var(--royal-dark);
  border-color: var(--gold-dark);
  font-weight: 600;
}

/* Use-case cards */
.usecase {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
  border-left: 3px solid var(--gold);
}
.usecase__if {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.usecase h3 {
  margin: 0;
  border: 0; padding: 0;
  font-size: 1.1rem;
  color: var(--royal-dark);
  font-family: 'Playfair Display', serif;
}
.usecase h3::after { display: none; }
.usecase__use {
  margin: .25rem 0 0;
  font-size: .92rem;
  color: var(--text-muted);
}

/* Layer-stacking matrix variant */
.matrix--stack th,
.matrix--stack td { text-align: center; }
.matrix--stack td:first-child,
.matrix--stack th:first-child { text-align: left; }
.stack-bar {
  display: inline-block;
  min-width: 28px;
  padding: .15rem .45rem;
  border-radius: 4px;
  background: #f1ecd9;
  color: var(--text-muted);
  font-weight: 600;
  font-size: .85rem;
}
.stack__featured .stack-bar,
.matrix--stack td.stack__featured {
  background: var(--gold);
  color: var(--royal-dark);
  font-weight: 700;
}
.matrix--stack td.stack__featured { background: rgba(201,168,76,.18); }

/* Source citations */
.src {
  font-size: .8rem;
  color: var(--text-faint);
  font-style: italic;
}
.src a { color: var(--gold-dark); text-decoration: none; border-bottom: 1px dotted var(--gold-dark); }
.src a:hover { color: var(--royal-dark); border-bottom-color: var(--royal-dark); }

/* Responsive */
@media (max-width: 720px) {
  .vehicle { padding: 1.25rem; }
  .vehicle__head { flex-direction: column; gap: .85rem; }
  .vehicle__rank { width: 48px; height: 48px; font-size: 1.2rem; }
  .score { grid-template-columns: 110px 1fr 40px; gap: .5rem; font-size: .82rem; }
  .score__label { font-size: .8rem; }
  .layer { grid-template-columns: 1fr; }
  .layer__num { text-align: left; }
  .vehicle__meta { grid-template-columns: 1fr; gap: .15rem .5rem; }
  .vehicle__meta dt { margin-top: .5rem; }
}
