/* ============================================================
   gareaulajoie.ca — site shared stylesheet
   Mayo-inspired, warmer for an individual clinician
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500&family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Mayo-anchored palette, warm cream as background for individual-clinician feel */
  --blue:        #0067B1;
  --blue-deep:   #003C6C;
  --blue-soft:   #E6F0F8;
  --blue-tint:   #F4F8FB;
  --ink:         #14181D;
  --ink-soft:    #2A2F36;
  --muted:       #5B6470;
  --faint:       #8A92A0;
  --line:        #E3DED4;
  --line-soft:   #ECE7DD;
  --paper:       #F8F4EC;
  --paper-2:     #F2EBDD;
  --white:       #FFFFFF;
  --amber:       #C6531F;   /* warmth accent — used sparingly */
  --serif: "Newsreader", "Source Serif Pro", Georgia, serif;
  --sans:  "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --container: 1240px;
  --container-narrow: 760px;
  --radius: 6px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { text-wrap: pretty; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,244,236,0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 32px;
}
.site-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.site-logo:hover { text-decoration: none; }
.site-logo .mark {
  width: 32px; height: 32px;
  background: var(--blue);
  color: white;
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  letter-spacing: -0.02em;
}
.site-logo .mark::after { content: ""; }
.site-logo small {
  display: block; font-family: var(--sans); font-weight: 400;
  font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em;
  text-transform: uppercase; margin-top: 2px;
}
.site-nav {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.site-nav a {
  color: var(--ink-soft);
  font-size: 0.9rem; font-weight: 500;
  padding: 8px 12px; border-radius: 4px;
  transition: background 0.15s;
}
.site-nav a:hover { background: var(--line-soft); text-decoration: none; }
.site-nav a.active { color: var(--blue); }
.lang-toggle {
  margin-left: 12px;
  display: flex; gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--mono); font-size: 0.72rem;
}
.lang-toggle button {
  background: transparent; border: 0;
  padding: 6px 10px;
  cursor: pointer; font: inherit;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.lang-toggle button.on { background: var(--blue); color: white; }

.menu-btn { display: none; }

@media (max-width: 1080px) {
  .site-logo small { display: none; }
  .site-nav a { padding: 8px 8px; font-size: 0.86rem; }
}
@media (max-width: 920px) {
  .site-header-inner { padding: 12px 20px; gap: 12px; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    gap: 2px;
  }
  .site-nav.open a { padding: 12px; border-bottom: 1px solid var(--line-soft); }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-left: auto;
    background: transparent; border: 1px solid var(--line);
    border-radius: 4px; padding: 6px 10px;
    font: inherit; font-size: 0.85rem; color: var(--ink-soft);
    cursor: pointer;
  }
  .lang-toggle { margin-left: 0; }
}

/* ============================================================
   HERO (option 2: blue dominant)
   ============================================================ */
.hero {
  background: var(--blue-deep);
  color: white;
  padding: 80px 0 88px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 110% -20%, rgba(255,255,255,0.10), transparent 50%),
    radial-gradient(ellipse at -10% 120%, rgba(0,103,177,0.50), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: rgba(255,255,255,0.5);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  color: white;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero h1 em { font-style: italic; color: #B8D5EB; font-weight: 500; }
.hero-lede {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  line-height: 1.55;
  margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s, background 0.15s, color 0.15s;
}
.btn-primary { background: white; color: var(--blue-deep); }
.btn-primary:hover { background: #F0F4F8; text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); text-decoration: none; }
.btn-solid { background: var(--blue); color: white; }
.btn-solid:hover { background: var(--blue-deep); text-decoration: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--white); text-decoration: none; }

.hero-portrait {
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #1d4f7a 0%, #0a2a47 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-portrait .placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.32);
  font-family: var(--serif); font-size: 8rem; font-weight: 300;
  letter-spacing: -0.04em;
}
.hero-portrait .placeholder span { display: block; }
.hero-portrait .caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  display: flex; justify-content: space-between; gap: 12px;
}
.hero-portrait .fleur {
  position: absolute; right: 14px; bottom: 10px;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: rgba(255,255,255,0.65);
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  user-select: none;
}

@media (max-width: 900px) {
  .hero { padding: 60px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { max-width: 360px; }
}

/* ============================================================
   IDENTITY STRIP (factual claims under hero)
   ============================================================ */
.facts {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.fact {
  padding: 28px 28px;
  border-right: 1px solid var(--line-soft);
}
.fact:last-child { border-right: 0; }
.fact-label {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.fact-value {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.4rem; color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.fact-sub { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

@media (max-width: 820px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { border-bottom: 1px solid var(--line-soft); }
  .fact:nth-child(2n) { border-right: 0; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.section.tight { padding: 56px 0; }
.section.cream { background: var(--paper); }
.section.white { background: var(--white); }
.section.blue-tint { background: var(--blue-tint); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head .label {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  max-width: 600px;
  margin: 0;
}
.section-head .lead {
  font-size: 1rem; color: var(--muted);
  max-width: 380px; margin: 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) {
  .card-grid.cols-3, .card-grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  display: flex; flex-direction: column;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}
.card:hover {
  border-color: var(--blue);
  text-decoration: none;
  box-shadow: 0 18px 40px -24px rgba(0,60,108,0.25);
  transform: translateY(-2px);
}
.card .num {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--blue);
  letter-spacing: 0.16em;
  margin-bottom: 16px;
}
.card .kicker {
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 8px;
}
.card .kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.card h3 {
  font-family: var(--serif);
  font-size: 1.18rem; font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  line-height: 1.25;
}
.card p {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}
.card .meta {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--faint);
  letter-spacing: 0.06em;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.card .arrow {
  color: var(--blue); font-family: var(--sans);
  font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0;
  transition: transform 0.15s;
}
.card:hover .arrow { transform: translateX(4px); }

/* Pillar card variant — numbered, more architectural */
.pillar-card { padding: 36px 32px 32px; }
.pillar-card h3 { font-size: 1.32rem; margin-bottom: 14px; }
.pillar-card .num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.4rem;
  color: var(--blue);
  letter-spacing: -0.03em;
  display: block;
  line-height: 1;
  margin-bottom: 24px;
}

/* ============================================================
   APPEARANCE / LIST ITEMS
   ============================================================ */
.appearance-list { display: flex; flex-direction: column; }
.appearance {
  display: grid;
  grid-template-columns: 110px 130px 1fr auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.appearance:last-child { border-bottom: 0; }
.appearance .yr {
  font-family: var(--mono); font-size: 0.85rem;
  color: var(--blue); font-weight: 500;
  letter-spacing: 0.05em;
}
.appearance .typ {
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
}
.appearance .title {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 500;
  color: var(--ink);
  margin: 0 0 4px;
  line-height: 1.3;
}
.appearance .title a { color: inherit; }
.appearance .title a:hover { color: var(--blue); text-decoration: none; }
.appearance .org { font-size: 0.85rem; color: var(--muted); }
.appearance .desc { font-size: 0.92rem; color: var(--muted); margin: 6px 0 0; line-height: 1.5; max-width: 720px; }
.appearance .ext {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--blue); white-space: nowrap;
  letter-spacing: 0.04em;
}
@media (max-width: 820px) {
  .appearance { grid-template-columns: 80px 1fr; gap: 14px 16px; }
  .appearance .typ { grid-column: 2; }
  .appearance .body { grid-column: 1 / -1; }
  .appearance .ext { grid-column: 1 / -1; margin-top: 4px; }
}

/* ============================================================
   PAGE HEADER (non-home pages)
   ============================================================ */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.page-hero .breadcrumb {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.page-hero .breadcrumb a { color: var(--muted); }
.page-hero .breadcrumb a:hover { color: var(--blue); }
.page-hero .breadcrumb .sep { color: var(--faint); }
.page-hero .breadcrumb .here { color: var(--blue); }
.page-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  margin: 0 0 18px;
  max-width: 820px;
}
.page-hero .description {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.55;
  margin: 0;
}
.page-hero .meta {
  display: flex; gap: 24px; margin-top: 28px;
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--muted); letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.page-hero .meta strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   ARTICLE / LONG-FORM
   ============================================================ */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 28px 96px;
  font-family: var(--sans);
}
.article-wide {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}
.article h2 {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 600;
  margin: 48px 0 16px;
  letter-spacing: -0.012em;
  padding-top: 8px;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-family: var(--serif);
  font-size: 1.18rem; font-weight: 600;
  margin: 32px 0 10px;
}
.article p, .article li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.article p { margin: 0 0 1.2em; }
.article ul, .article ol { padding-left: 1.2em; margin: 0 0 1.5em; }
.article li { margin-bottom: 0.5em; }
.article strong { color: var(--ink); font-weight: 600; }
.article em { font-family: var(--serif); font-style: italic; font-size: 1.06em; }
.article a { color: var(--blue); border-bottom: 1px solid rgba(0,103,177,0.25); }
.article a:hover { border-bottom-color: var(--blue); text-decoration: none; }

.callout {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  padding: 20px 24px;
  margin: 28px 0;
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
}
.callout.warm {
  background: #FBF1E6;
  border-left-color: var(--amber);
}
.callout strong { color: var(--ink); }

.disclosure {
  margin-top: 56px;
  padding: 20px 24px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  color: var(--muted);
}
.disclosure strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   ARTICLE — pillar/research detail enhancements
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}
.article-layout .article {
  padding: 0;
  max-width: none;
  margin: 0;
}
.article-toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 0.88rem;
}
.article-toc .toc-label {
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.article-toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.article-toc a {
  display: block;
  padding: 6px 10px 6px 12px;
  color: var(--muted);
  border-left: 2px solid transparent;
  line-height: 1.4;
  font-size: 0.86rem;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.article-toc a:hover { color: var(--blue); border-left-color: var(--blue); text-decoration: none; }
.article-toc a.active { color: var(--blue); border-left-color: var(--blue); }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-toc { position: static; display: none; }
}

/* Lead "réponse courte" treatment — first h2 + p */
.article .lead-answer {
  background: var(--blue-soft);
  border-left: 3px solid var(--blue);
  padding: 24px 28px;
  margin: 0 0 40px;
  border-radius: 0 6px 6px 0;
}
.article .lead-answer-label {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
  font-weight: 500;
}
.article .lead-answer p { margin: 0; font-size: 1.06rem; line-height: 1.65; color: var(--ink); }

/* Section divider before h2 */
.article h2.section-h {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.article h2.section-h::before {
  content: attr(data-n);
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue);
  font-weight: 500;
  background: none;
  flex-shrink: 0;
  padding-top: 4px;
}

/* Pillar nav strip */
.pillar-nav {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.pillar-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.pillar-nav-grid a {
  display: flex; flex-direction: column;
  padding: 14px 0;
  color: var(--muted);
  text-decoration: none;
  border-top: 2px solid var(--line);
  transition: color .15s, border-color .15s;
  gap: 4px;
}
.pillar-nav-grid a:hover { color: var(--blue); border-top-color: var(--blue); text-decoration: none; }
.pillar-nav-grid a.current { color: var(--ink); border-top-color: var(--blue); }
.pillar-nav-grid .pn-num { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--faint); }
.pillar-nav-grid .pn-label { font-family: var(--serif); font-weight: 500; font-size: 0.92rem; line-height: 1.25; }
@media (max-width: 900px) {
  .pillar-nav-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Related cards inside article — when we want a card grid mid-article */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 40px;
  not-prose: 1;
}
.related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .2s;
}
.related-card:hover {
  border-color: var(--blue);
  text-decoration: none;
  box-shadow: 0 12px 24px -16px rgba(0,60,108,0.2);
  transform: translateY(-1px);
}
.related-card .rc-kicker {
  font-family: var(--mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 6px;
}
.related-card .rc-title {
  font-family: var(--serif); font-weight: 500;
  font-size: 1rem; line-height: 1.35;
  color: var(--ink);
}
.related-card:hover .rc-title { color: var(--blue); }
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* Section header inside article for related-grid wrappers */
.article .grid-label {
  font-family: var(--mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--blue);
  margin: 48px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

/* External link pill / source row */
.source-row {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 14px;
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--blue);
  margin: 8px 0;
}
.source-row::before { content: "↗"; font-family: var(--sans); }
.source-row:hover { border-color: var(--blue); text-decoration: none; background: var(--blue-soft); }

/* Pillar / category tags */
.pill {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 3px;
  font-weight: 500;
}
.pill.warm { background: #FBF1E6; color: var(--amber); }
.pill.dark { background: var(--ink); color: white; }
.pill.outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ============================================================
   FAQ list
   ============================================================ */
.qa-list { list-style: none; padding: 0; margin: 0; }
.qa-list li { border-bottom: 1px solid var(--line); }
.qa-list li:last-child { border-bottom: 0; }
.qa-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.15s;
}
.qa-list a:hover { color: var(--blue); text-decoration: none; }
.qa-list a::after { content: "→"; color: var(--faint); font-family: var(--sans); transition: transform 0.15s, color 0.15s; }
.qa-list a:hover::after { color: var(--blue); transform: translateX(4px); }

/* ============================================================
   TABLE (authority registry)
   ============================================================ */
.reg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.reg-table td {
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.5;
}
.reg-table td:first-child {
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  width: 220px;
  white-space: normal;
  padding-right: 24px;
}
.reg-table td a { color: var(--blue); }
@media (max-width: 720px) {
  .reg-table, .reg-table tbody, .reg-table tr, .reg-table td { display: block; width: 100%; }
  .reg-table td:first-child { padding: 12px 0 4px; border-bottom: 0; }
  .reg-table td:last-child { padding: 0 0 14px; border-bottom: 1px solid var(--line-soft); }
}

/* Citation block */
.citation {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 28px;
  margin: 32px 0;
}
.citation h4 {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.citation .fmt {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px 16px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  align-items: baseline;
}
.citation .fmt .lbl {
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue);
}
.citation .fmt code {
  font-family: var(--mono); font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--paper-2); padding: 2px 6px; border-radius: 3px;
  line-height: 1.6;
  white-space: normal; word-break: break-word;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 40px;
  font-size: 0.92rem;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand h4 {
  font-family: var(--serif); color: white; font-size: 1.2rem; margin: 0 0 8px;
}
.footer-brand p { margin: 0 0 16px; line-height: 1.55; color: rgba(255,255,255,0.65); }
.footer-col h5 {
  font-family: var(--mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55); font-weight: 500;
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--mono); font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
.footer-bottom .meta { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ============================================================
   Misc utilities
   ============================================================ */
.divider-rule {
  height: 1px;
  background: var(--line);
  margin: 32px 0;
}
.eyebrow {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }

[hidden] { display: none !important; }

/* Skip link */
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: white; padding: 8px 14px; border-radius: 4px; z-index: 100; }

/* ============================================================
   IMAGE BANNERS / STRIPS (page-hero photo bands)
   ============================================================ */
.image-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--blue-deep);
}
.image-banner img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}
.image-banner.short { aspect-ratio: 21 / 7; }
.image-banner.tall  { aspect-ratio: 16 / 9; }
.image-banner.slim  { aspect-ratio: 24 / 5; }
.image-banner .ib-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,40,75,0.55) 0%, rgba(0,40,75,0.05) 55%, transparent 100%);
  pointer-events: none;
}
.image-banner .ib-caption {
  position: absolute; left: 28px; bottom: 22px;
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

/* Candid photo blocks for About */
.candid-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin: 56px 0;
}
.candid-strip figure {
  position: relative; margin: 0;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--blue-deep);
}
.candid-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.candid-strip figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.12em; text-transform: uppercase;
}
@media (max-width: 820px) {
  .candid-strip { grid-template-columns: 1fr; }
  .candid-strip figure { aspect-ratio: 16/10; }
}

/* Media kit asset cards */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.asset-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.asset-card .asset-image {
  aspect-ratio: 4/3;
  background: var(--blue-deep);
  overflow: hidden;
}
.asset-card .asset-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-card .asset-meta {
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line-soft);
}
.asset-card .asset-title {
  font-family: var(--serif); font-weight: 600; font-size: 1rem;
  color: var(--ink); margin: 0 0 4px; line-height: 1.3;
}
.asset-card .asset-sub {
  font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.08em; color: var(--muted);
  margin: 0 0 12px;
}
.asset-card .asset-dl {
  font-family: var(--mono); font-size: 0.74rem;
  letter-spacing: 0.06em; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.asset-card .asset-dl::before { content: "↓"; }

/* Decorative bookmark accent for section starters */
.bookmark-accent {
  position: absolute;
  width: 28px;
  pointer-events: none;
  opacity: 0.9;
}

/* lang switching: hide elements not matching current lang */
html[data-lang="fr"] [data-lang="en"],
html[data-lang="en"] [data-lang="fr"] { display: none !important; }

/* Language switch controls use data-lang as state metadata; keep both buttons clickable. */
html[data-lang] .lang-toggle button[data-lang] { display: inline-block !important; }
