/* ============================================================
   APCNB / NBPAC — Feuille de style
   Palette : bleu nuit (justice) + or sobre + neutres chauds
   ============================================================ */
:root {
  --navy: #15263f;
  --navy-700: #1d3357;
  --navy-600: #284571;
  --gold: #b08a3e;
  --gold-soft: #d9be83;
  --ink: #1b2330;
  --muted: #5b6675;
  --line: #e3e2dc;
  --paper: #faf8f3;
  --paper-2: #f2efe7;
  --white: #ffffff;
  --ok: #2f6f4f;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 14px 40px -22px rgba(21, 38, 63, 0.45);
  --shadow-sm: 0 6px 18px -12px rgba(21, 38, 63, 0.4);
  --maxw: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }

a { color: var(--navy-600); }
img, svg { max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-weight: 600; font-size: 0.97rem;
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  cursor: pointer; border: 1.5px solid transparent; transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #2a2008; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(21,38,63,.25); }
.btn-ghost:hover { background: rgba(21,38,63,.06); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { max-width: 1320px; } /* wider bar so the full nav fits on desktop */
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand-mark { color: var(--gold); display: grid; place-items: center; flex: none; }
.brand-mark img { width: 46px; height: 46px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-acronym { font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }
/* Full bilingual name lives in the hero and footer, not the crowded header */
.brand-full { display: none; }

.main-nav { margin-left: auto; }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 8px 9px; border-radius: 8px; text-decoration: none;
  color: var(--ink); font-weight: 500; font-size: 0.92rem; white-space: nowrap;
}
.nav-list a:hover { background: rgba(21,38,63,.07); color: var(--navy); }

.nav-toggle { display: none; }

.lang-switch { display: flex; align-items: center; gap: 4px; }
.lang-btn {
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  font-weight: 700; font-size: 0.85rem; color: var(--muted); padding: 6px 8px; border-radius: 6px;
}
.lang-btn.is-active { color: var(--navy); background: rgba(176,138,62,.16); }
.lang-btn:hover { color: var(--navy); }
.lang-sep { color: var(--line); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 460px at 78% -8%, rgba(176,138,62,.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #f4f1e9;
  padding: 86px 0 76px;
}
.hero-inner { max-width: 880px; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700;
  color: var(--gold-soft); margin: 0 0 18px;
}
.hero-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0 0 20px; color: #fff; font-weight: 700; }
.hero-lead { font-size: 1.16rem; color: #d7d2c6; max-width: 60ch; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 38px; margin: 46px 0 0; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: #b9b3a4; }
.hero-stats dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.5rem; color: var(--gold-soft); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--paper-2); }
.section-eyebrow {
  text-transform: uppercase; letter-spacing: .15em; font-size: .76rem; font-weight: 700;
  color: var(--gold); margin: 0 0 10px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0 0 18px; color: var(--navy); }
.section-intro { font-size: 1.08rem; color: var(--muted); max-width: 65ch; margin: 0 0 36px; }
.mini-title { font-size: 1.2rem; color: var(--navy); margin: 0 0 16px; }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }

/* ---------- Cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 12px; color: var(--navy); font-size: 1.3rem; }
.value-list, .check-list, .num-list { margin: 0; padding-left: 1.1em; }
.value-list li, .check-list li { margin: 7px 0; }
.check-list { list-style: none; padding-left: 0; }
.check-list li { position: relative; padding-left: 30px; margin: 12px 0; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold);
  font-weight: 700; background: rgba(176,138,62,.14); width: 22px; height: 22px;
  display: grid; place-items: center; border-radius: 6px; font-size: .8rem;
}
.num-list { counter-reset: n; list-style: none; padding-left: 0; }
.num-list li { position: relative; padding-left: 42px; margin: 14px 0; counter-increment: n; }
.num-list li::before {
  content: counter(n); position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; font-family: var(--serif);
}

/* Membership tiers */
.card-tier { display: flex; flex-direction: column; position: relative; }
.tier-price { font-family: var(--serif); font-size: 2rem; color: var(--navy); margin: 4px 0 12px; }
.tier-price small { font-family: var(--sans); font-size: .9rem; color: var(--muted); font-weight: 500; }
.card-featured { border-color: var(--gold); box-shadow: 0 18px 50px -26px rgba(176,138,62,.7); }
.tier-flag {
  position: absolute; top: -12px; right: 22px; background: var(--gold); color: #2a2008;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 12px; border-radius: 999px;
}

.cta-band {
  margin-top: 40px; background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 28px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.cta-band p { margin: 0; font-family: var(--serif); font-size: 1.3rem; }

/* ---------- Documents grid ---------- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.doc-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-soft); }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.doc-links a {
  flex: 1; min-width: 64px; text-align: center; text-decoration: none; font-size: .82rem; font-weight: 600;
  padding: 8px 10px; border-radius: 8px;
}
.doc-links .dl-read { background: rgba(21,38,63,.08); color: var(--navy); flex-basis: 100%; }
.doc-links .dl-read:hover { background: rgba(21,38,63,.14); }
.doc-links .dl-word { background: rgba(43,87,140,.14); color: #1d3b66; }
.doc-links .dl-word:hover { background: rgba(43,87,140,.26); }
.doc-links .dl-pdf { background: rgba(176,138,62,.18); color: #6b5012; }
.doc-links .dl-pdf:hover { background: rgba(176,138,62,.32); }

.doc-subtitle {
  font-family: var(--serif); font-size: 1.5rem; color: var(--navy);
  margin: 56px 0 8px; padding-top: 28px; border-top: 1px solid var(--line);
}

/* ---------- Subpage hero ---------- */
.subpage-hero {
  background:
    radial-gradient(900px 360px at 82% -20%, rgba(176,138,62,.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #f4f1e9; padding: 40px 0 48px;
}
.subpage-hero .eyebrow { color: var(--gold-soft); margin: 14px 0 14px; }
.subpage-title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: #fff; margin: 0 0 14px; }
.subpage-lead { color: #d7d2c6; max-width: 62ch; margin: 0; font-size: 1.08rem; }
.back-link { color: var(--gold-soft); text-decoration: none; font-weight: 600; font-size: .9rem; }
.back-link:hover { color: #fff; }

/* ---------- Public protection (home teaser) ---------- */
.public-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.public-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.public-card h3 { color: var(--navy); margin: 0 0 10px; font-size: 1.25rem; }
.public-card p { color: var(--muted); margin: 0 0 18px; }
.public-card .btn { margin-top: auto; align-self: flex-start; }
.public-ico {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(176,138,62,.16); color: var(--gold);
  display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px;
}
.public-ico svg { width: 24px; height: 24px; stroke-width: 1.9; }

/* ---------- Directory ---------- */
.dir-disclaimer {
  background: #fdf6e3; border: 1px solid var(--gold-soft); border-radius: 10px;
  padding: 12px 16px; color: #6b5012; font-size: .9rem; margin: 0 0 24px;
}
.dir-filters {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 14px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 18px;
}
.dir-field { display: flex; flex-direction: column; }
.dir-field label { font-size: .78rem; font-weight: 600; color: var(--navy); margin-bottom: 5px; }
.dir-field input, .dir-field select {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font: inherit;
  font-size: .92rem; background: #fff; color: var(--ink);
}
.dir-field input:focus, .dir-field select:focus { outline: none; border-color: var(--gold); }
.dir-count { color: var(--muted); font-size: .9rem; font-weight: 600; margin: 0 0 16px; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.dir-empty { color: var(--muted); padding: 30px 0; }

.mem-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.mem-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mem-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; flex: none;
}
.mem-name { margin: 0; font-size: 1.12rem; color: var(--navy); }
.mem-cat { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.mem-badge {
  margin-left: auto; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: rgba(47,111,79,.14); color: var(--ok); display: grid; place-items: center; font-weight: 700;
}
.mem-meta { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.mem-meta dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.mem-meta dd { margin: 0; font-size: .9rem; color: var(--ink); }

@media (max-width: 860px) {
  .public-grid { grid-template-columns: 1fr; }
  .dir-filters { grid-template-columns: 1fr 1fr; }
  .dir-field-wide { grid-column: 1 / -1; }
}

/* ---------- Language blocks (subpages with FR/EN prose) ---------- */
[data-lang-block="en"] { display: none; }
html[lang="en"] [data-lang-block="fr"] { display: none; }
html[lang="en"] [data-lang-block="en"] { display: block; }

/* ---------- Generic content blocks for subpages ---------- */
.content-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 30px; box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.content-card h2 { color: var(--navy); margin: 0 0 12px; font-size: 1.45rem; }
.callout-card {
  background: var(--navy); color: #eef0f4; border-radius: var(--radius);
  padding: 26px 30px; box-shadow: var(--shadow-sm); border-left: 5px solid var(--gold);
}
.callout-card p { margin: 0; }
.callout-card strong { color: var(--gold-soft); }
.content-card > p:last-child { margin-bottom: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-left: 44px; margin: 14px 0; counter-increment: s; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--gold); color: #2a2008; display: grid; place-items: center;
  font-weight: 700; font-family: var(--serif);
}
.reg-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.reg-table th, .reg-table td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); font-size: .94rem; }
.reg-table th { background: var(--navy); color: #fff; font-weight: 600; }
.reg-table .empty-row td { color: var(--muted); text-align: center; font-style: italic; }
.form-card .field input, .form-card .field textarea, .form-card .field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: var(--paper); color: var(--ink);
}
.form-card .field { margin-bottom: 16px; }
.form-card .field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }
.doc-icon {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(21,38,63,.08); color: var(--navy);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 4px;
}
.doc-icon svg { width: 22px; height: 22px; stroke-width: 1.9; }
.doc-name { font-family: var(--serif); font-size: 1.12rem; color: var(--navy); font-weight: 600; }
.doc-desc { font-size: .92rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; }
.contact-list li { margin: 10px 0; }
.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 1rem; background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: #fff; }
.form-note { margin: 14px 0 0; color: var(--ok); font-weight: 600; font-size: .92rem; }

/* ---------- Footer (sitemap) ---------- */
.site-footer { background: var(--navy); color: #cfc9bb; padding: 54px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.1fr 2.4fr; gap: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { flex: none; }
.footer-brand strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; }
.footer-brand span { font-size: .82rem; max-width: 28ch; display: block; color: #b5afa1; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h3 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-soft); margin: 0 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 7px 0; }
.footer-col a { color: #d8d2c5; text-decoration: none; font-size: .9rem; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-legal { margin: 32px 0 0; font-size: .82rem; color: #9b9588; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; }

/* ---------- Header tools (a11y + portal) ---------- */
.header-tools { display: flex; align-items: center; gap: 14px; }
.a11y-controls { display: flex; align-items: center; gap: 3px; }
.a11y-btn {
  background: none; border: 1px solid var(--line); border-radius: 7px; cursor: pointer;
  width: 30px; height: 30px; font-weight: 700; font-size: .82rem; color: var(--navy);
  display: grid; place-items: center; padding: 0;
}
.a11y-btn svg { width: 16px; height: 16px; }
.a11y-btn:hover { background: rgba(21,38,63,.07); }
.a11y-btn.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-portal {
  display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .86rem; padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}
.btn-portal:hover { background: var(--navy-600); }

/* ---------- High-contrast mode ---------- */
html.hc { --paper: #ffffff; --paper-2: #ffffff; --muted: #1b2330; --line: #555; }
html.hc body { background: #fff; color: #000; }
html.hc .site-header { background: #fff; border-bottom: 2px solid #000; }
html.hc .nav-list a, html.hc .lang-btn, html.hc .a11y-btn { color: #000; }
html.hc .hero, html.hc .subpage-hero { background: #000 !important; color: #fff; }
html.hc .hero-title, html.hc .subpage-title { color: #fff; }
html.hc .card, html.hc .doc-card, html.hc .mem-card, html.hc .public-card, html.hc .content-card { border: 1.5px solid #000; box-shadow: none; }
html.hc .btn-primary { background: #000; color: #fff; border-color: #000; }
html.hc .section-title, html.hc .mini-title, html.hc h2, html.hc h3 { color: #000; }
html.hc a { text-decoration: underline; }

/* ---------- News / blog ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.news-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.news-tag { background: rgba(176,138,62,.16); color: #6b5012; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 10px; border-radius: 999px; }
.news-date { color: var(--muted); font-size: .82rem; }
.news-card h3 { color: var(--navy); margin: 0 0 8px; font-size: 1.2rem; }
.news-card p { color: var(--muted); margin: 0 0 16px; font-size: .95rem; }
.news-card .read-more { margin-top: auto; color: var(--navy-600); font-weight: 600; text-decoration: none; font-size: .9rem; }
.news-card .read-more:hover { color: var(--gold); }

/* ---------- Events ---------- */
.event-list { display: flex; flex-direction: column; gap: 18px; }
.event-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.event-date {
  background: var(--navy); color: #fff; border-radius: 12px; text-align: center; padding: 12px 8px;
}
.event-date .d { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.event-date .m { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-soft); margin-top: 4px; }
.event-body h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.2rem; }
.event-body p { margin: 0; color: var(--muted); font-size: .94rem; }
.event-loc { display: inline-block; margin-top: 8px; font-size: .82rem; color: var(--navy-600); font-weight: 600; }
.cal-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.cal-table th, .cal-table td { text-align: left; padding: 11px 14px; border: 1px solid var(--line); font-size: .92rem; }
.cal-table th { background: var(--navy); color: #fff; font-weight: 600; }
.cal-table tr:nth-child(even) td { background: #fff; }

/* ---------- Training / courses ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.course-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.course-badge {
  align-self: flex-start; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 11px; border-radius: 999px; margin-bottom: 12px;
}
.course-badge.sync { background: rgba(21,38,63,.1); color: var(--navy); }
.course-badge.async { background: rgba(176,138,62,.18); color: #6b5012; }
.course-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 1.12rem; }
.course-card .course-desc { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.course-meta { list-style: none; padding: 0; margin: 0 0 4px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.course-meta dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.course-meta dd { margin: 0; font-size: .9rem; color: var(--ink); }
.course-instr { margin-top: auto; padding-top: 12px; font-size: .85rem; color: var(--navy-600); font-weight: 600; }

/* ---------- Careers / jobs ---------- */
.job-list { display: flex; flex-direction: column; gap: 16px; }
.job-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
}
.job-item h3 { margin: 0; color: var(--navy); font-size: 1.15rem; flex: 1 1 240px; }
.job-org { color: var(--muted); font-size: .9rem; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 4px; }
.job-tag { background: rgba(21,38,63,.07); color: var(--navy); font-size: .78rem; font-weight: 600; padding: 4px 11px; border-radius: 999px; }

/* ---------- Member portal ---------- */
.portal-login { max-width: 420px; margin: 0 auto; }
.portal-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.portal-card h2 { margin: 0 0 18px; color: var(--navy); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.dash-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.dash-tile .ico { font-size: 1.6rem; }
.dash-tile h3 { margin: 8px 0 6px; color: var(--navy); font-size: 1.1rem; }
.dash-tile p { margin: 0; color: var(--muted); font-size: .9rem; }
.dash-banner { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.dash-banner strong { font-family: var(--serif); font-size: 1.25rem; }
.dash-banner .pill { background: rgba(255,255,255,.15); border-radius: 999px; padding: 4px 12px; font-size: .82rem; }

/* ---------- Publications ---------- */
.pub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pub-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.pub-card .ico { font-size: 1.8rem; }
.pub-card h3 { margin: 8px 0 6px; color: var(--navy); font-size: 1.12rem; }
.pub-card p { margin: 0 0 14px; color: var(--muted); font-size: .9rem; }
.report-list { list-style: none; padding: 0; margin: 0; }
.report-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.report-list li:last-child { border-bottom: none; }
.report-list a { color: var(--navy-600); font-weight: 600; text-decoration: none; font-size: .9rem; }
.report-list a:hover { color: var(--gold); }

/* ---------- Survey ---------- */
.survey-q { margin-bottom: 18px; }
.survey-q .q-label { font-weight: 600; color: var(--navy); margin: 0 0 10px; display: block; }
.survey-q .opt { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0; cursor: pointer; }
.survey-q .opt input { margin-top: 3px; flex: none; }
.survey-q input[type="text"], .survey-q textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px;
  font: inherit; font-size: 1rem; background: var(--paper); color: var(--ink);
}
.survey-q input[type="text"]:focus, .survey-q textarea:focus { outline: none; border-color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--navy); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--gold); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); }

@media (max-width: 560px) {
  .event-item { grid-template-columns: 1fr; }
  .event-date { display: inline-block; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .cards-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* Collapse the (busier) navigation to a menu earlier */
@media (max-width: 1200px) {
  .main-nav { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; background: none; border: 1px solid var(--line);
    border-radius: 9px; cursor: pointer; position: relative;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; position: absolute; width: 20px; height: 2px; background: var(--navy); border-radius: 2px;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before { top: -6px; left: 0; }
  .nav-toggle-bar::after { top: 6px; left: 0; }
  .nav-list {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px; gap: 2px; box-shadow: var(--shadow); z-index: 90;
  }
  .nav-list.is-open { display: flex; }
  .header-inner { position: relative; }
}

@media (max-width: 680px) {
  .a11y-controls { display: none; }
  .header-tools { gap: 10px; }
}
@media (max-width: 440px) {
  .btn-portal { display: none; }
}

@media (max-width: 520px) {
  .hero-stats { gap: 24px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-cols { grid-template-columns: 1fr; }
}
