/* ==========================================================================
   Expert / authority pages — Dr. Mohamed HOUSNI
   Light editorial theme aligned with brand.css (paper, ink, orange, blue)
   ========================================================================== */

:root {
  --paper: #f4efe6;
  --paper-2: #ebe2d3;
  --paper-3: #faf7f1;
  --ink: #14141f;
  --ink-2: #1d1d2b;
  --muted: #5b5750;
  --line: rgba(20, 20, 31, 0.14);
  --orange: #ff6b45;
  --orange-deep: #b84725;
  --yellow: #ffde59;
  --blue: #00569e;
  --blue-soft: #e6eef6;
  --green: #0f7a5a;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 18px 44px -20px rgba(20, 20, 31, 0.22);
  --max: 1160px;
}

* { box-sizing: border-box; }

html, body { overflow-x: clip; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 107, 69, 0.09), transparent 30%),
    radial-gradient(circle at 2% 70%, rgba(0, 86, 158, 0.06), transparent 34%),
    var(--paper);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 5000;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip:focus { top: 12px; }

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

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(244, 239, 230, 0.97);
  border-bottom: 1px solid rgba(20, 20, 31, 0.14);
  color: var(--ink);
}
.topbar__inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__badge {
  background: var(--orange);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 7px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand__text strong { font-size: 0.95rem; font-weight: 800; white-space: nowrap; color: var(--ink); }
.brand__text span { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: rgba(20, 20, 31, 0.06); }
.nav a.is-cta {
  background: var(--orange);
  color: var(--ink);
  margin-left: 6px;
}
.nav a.is-cta:hover { background: #e25432; }

.nav select {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(20, 20, 31, 0.22);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.8rem;
  font-weight: 700;
}
.nav select option { background: var(--paper); color: var(--ink); }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(20, 20, 31, 0.22);
  background: transparent;
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Hero */
.hero { padding: 64px 0 52px; border-bottom: 1px solid var(--line); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 48px;
  align-items: center;
}
.kicker {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--orange-deep);
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero h1 em { font-style: italic; color: var(--orange-deep); }
.hero__lede {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 680px;
  margin: 0 0 26px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease;
}
.btn:hover { transform: none; }
.btn--primary { background: var(--orange); color: var(--ink); box-shadow: none; }
.btn--primary:hover { background: #e25432; }

.article__body a.btn--primary {
  color: var(--ink);
  text-decoration: none;
}
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--blue); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper-3); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: #003e75; }

.on-dark-muted { color: #cfc9c0; }

.card.dark-card {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.card.dark-card h2,
.card.dark-card h3 { color: var(--paper); }

.card.dark-card p { color: #cfc9c0; }

.hero h1 em { font-style: normal; color: var(--orange-deep); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
.hero__meta span::before { content: none; }

.section__tag,
.card__num {
  text-transform: none;
  letter-spacing: 0;
}

.portrait {
  position: relative;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.portrait img { border-radius: 12px; width: 100%; aspect-ratio: 4 / 4.7; object-fit: cover; object-position: center 18%; }
.portrait__caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  background: rgba(20, 20, 31, 0.9);
  color: #fff;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.72rem;
  line-height: 1.4;
  font-weight: 600;
}
.portrait__caption strong { color: var(--yellow); display: block; font-size: 0.78rem; }

/* Sections */
.section { padding: 68px 0; border-bottom: 1px solid var(--line); }
.section--alt { background: rgba(250, 247, 241, 0.62); }
.section--dark { background: var(--ink); color: var(--paper); border-bottom: none; }
.section__head { max-width: 760px; margin-bottom: 34px; }
.section__tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 8px;
}
.section--dark .section__tag { color: var(--yellow); }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.3vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.section__head p { margin: 0; color: var(--muted); font-size: 1rem; }
.section--dark .section__head p { color: #cfc9c0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.card {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { border-color: rgba(20, 20, 31, 0.28); }
.card__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--orange-deep);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}
.card h3 {
  font-size: 1.12rem;
  line-height: 1.3;
  margin: 0 0 9px;
  font-weight: 800;
}
.card p { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.88rem; }
.card li { margin-bottom: 5px; }
.card__link { font-size: 0.85rem; font-weight: 800; color: var(--blue); }
.card__link:hover { text-decoration: underline; }

.stat {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 22px 18px;
  border-top: 3px solid var(--orange);
}
.stat strong { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1; margin-bottom: 6px; color: #fff; }
.stat span { font-size: 0.78rem; color: #cfc9c0; line-height: 1.4; display: block; }

/* Proof strip */
.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.proof li {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper-3);
  border: 1px solid var(--line);
  padding: 7px 11px;
  border-radius: 999px;
}
.proof li::before { content: "✓"; color: var(--green); margin-right: 6px; }

/* Audience split */
.audience {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.audience:last-child { border-bottom: 1px solid var(--line); }
.audience h3 { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; }
.audience .audience__label { display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 6px; }
.audience p { margin: 0 0 8px; color: var(--muted); font-size: 0.94rem; }
.audience ul { margin: 0; padding-left: 18px; font-size: 0.9rem; color: var(--ink); columns: 2; column-gap: 28px; }
.audience li { margin-bottom: 4px; break-inside: avoid; }

/* Process */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; padding-top: 14px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--orange-deep);
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}
.step h3 { font-size: 1rem; margin: 0 0 6px; }
.step p { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* Quote */
.quote {
  border-left: 4px solid var(--orange);
  background: var(--paper-3);
  padding: 24px 28px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0 0;
}
.quote p {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.45;
  margin: 0 0 10px;
  font-style: italic;
}
.quote cite { font-style: normal; font-size: 0.82rem; font-weight: 700; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 0.94rem; max-width: 820px; }

/* CTA / contact */
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 38px; align-items: start; }
.cta-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: 26px;
}
.section--dark .cta-panel p { color: #cfc9c0; }
.contact-list { list-style: none; padding: 0; margin: 18px 0 0; }
.contact-list li { margin-bottom: 12px; font-size: 0.92rem; color: #cfc9c0; }
.contact-list strong { color: #fff; display: block; font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 2px; }
.contact-list a { color: var(--yellow); font-weight: 700; }
.contact-list a:hover { text-decoration: underline; }

.form { display: grid; gap: 12px; }
.form label { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; color: #cfc9c0; }
.form input, .form select, .form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  padding: 11px 12px;
  font-size: 0.92rem;
}
.form textarea { min-height: 96px; resize: vertical; }
.form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.form__status { font-size: 0.84rem; margin: 2px 0 0; color: #cfc9c0; }
.form__status.success { color: #7ee2bd; }
.form__status.error { color: #ffb4a4; }
.form button { margin-top: 4px; }

/* Language switcher row on hub pages */
.lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 18px;
}
.section--dark .lang-row,
.section--dark .lang-row span {
  color: #cfc9c0;
}

.lang-row a, .lang-row strong {
  color: var(--ink);
  padding: 5px 9px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--paper-3);
  font-weight: 700;
}
.lang-row strong { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Footer */
.footer { background: #0f0f18; color: #cfc9c0; padding: 44px 0 26px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer h3 { color: #fff; font-size: 0.95rem; margin: 0 0 10px; }
.footer p { margin: 0; font-size: 0.86rem; line-height: 1.6; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 7px; font-size: 0.86rem; }
.footer a:hover { color: var(--yellow); }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.76rem;
  color: #9a958c;
}

/* Article */
.article { padding: 54px 0 20px; }
.article__head { max-width: 820px; }
.article h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 10px 0 16px;
}
.article__meta { font-size: 0.82rem; color: var(--muted); font-weight: 600; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.article__body { max-width: 780px; margin: 34px 0 0; font-size: 1.02rem; }
.article__body h2 { font-family: var(--serif); font-size: 1.7rem; line-height: 1.2; margin: 38px 0 12px; }
.article__body h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.article__body p { margin: 0 0 16px; }
.article__body ul, .article__body ol { margin: 0 0 18px; padding-left: 22px; }
.article__body li { margin-bottom: 7px; }
.article__body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  background: var(--paper-3);
  border-left: 4px solid var(--orange);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}
.article__body a { color: var(--blue); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article__body .callout {
  background: var(--blue-soft);
  border: 1px solid rgba(0, 86, 158, 0.18);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.92rem;
  margin: 22px 0;
}
.article__body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.88rem; }
.article__body th, .article__body td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.article__body th { background: var(--paper-3); }
.toc {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 26px 0;
  font-size: 0.9rem;
}
.toc strong { display: block; font-size: 0.8rem; letter-spacing: 0; text-transform: none; color: var(--orange-deep); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc a { color: var(--ink); font-weight: 600; text-decoration: none; }
.toc a:hover { color: var(--blue); }
.signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 11px 12px;
  border: 1px solid rgba(20, 20, 31, 0.22);
  border-radius: 8px;
  background: var(--paper-3);
  color: var(--ink);
  font: inherit;
}

.signup-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.signup-status {
  margin-top: 8px;
  font-size: 0.84rem;
}

.signup-status.success { color: var(--green); }
.signup-status.error { color: #a12d16; }

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin: 24px 0 8px;
  font-size: 0.84rem;
  font-weight: 700;
}

.share-row a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.author-box {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 36px 0 10px;
}
.author-box img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex-shrink: 0; }
.author-box p { margin: 0; font-size: 0.86rem; color: var(--muted); }
.author-box strong { display: block; color: var(--ink); font-size: 0.95rem; }

/* RTL */
html[dir="rtl"] body { font-family: var(--sans); }
html[dir="rtl"] .hero h1,
html[dir="rtl"] .section h2,
html[dir="rtl"] .article h1,
html[dir="rtl"] .article__body h2 { font-family: "Geeza Pro", "Al Nile", "Segoe UI", Tahoma, serif; }
html[dir="rtl"] .hero__meta span::before { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] .card ul,
html[dir="rtl"] .audience ul,
html[dir="rtl"] .article__body ul,
html[dir="rtl"] .article__body ol { padding-left: 0; padding-right: 20px; }
html[dir="rtl"] .quote { border-left: none; border-right: 4px solid var(--orange); border-radius: var(--radius) 0 0 var(--radius); }
html[dir="rtl"] .article__body a { text-decoration: none; }
html[dir="rtl"] .audience ul { columns: 1; }

/* Responsive */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .portrait { max-width: 360px; order: -1; transform: rotate(0.8deg); }
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: var(--paper); padding: 12px 18px 18px; flex-direction: column; align-items: stretch; border-bottom: 1px solid rgba(20, 20, 31, 0.14); }
  .nav.open { display: flex; }
  .nav a { padding: 11px 10px; }
  .menu-btn { display: block; }
  .grid-4, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .section { padding: 50px 0; }
  .hero { padding: 42px 0 38px; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; gap: 10px; padding: 22px 0; }
  .audience ul { columns: 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .form .form-row { grid-template-columns: 1fr; }
  .brand__text span { display: none; }
  .brand__text strong { font-size: 0.88rem; }
  .article { padding-top: 38px; }
  .article__body { font-size: 0.98rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .portrait { transform: none; }
}


/* Print: briefings and press kit */
@media print {
  html, body { background: #fff !important; color: #111 !important; }
  .topbar, .footer, .hero__actions, .form, .lang-row, .author-box, .card__link, .btn, .skip, .signup-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 11px 12px;
  border: 1px solid rgba(20, 20, 31, 0.22);
  border-radius: 8px;
  background: var(--paper-3);
  color: var(--ink);
  font: inherit;
}

.signup-note {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--muted);
}

.signup-status {
  margin-top: 8px;
  font-size: 0.84rem;
}

.signup-status.success { color: var(--green); }
.signup-status.error { color: #a12d16; }

.share-row { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .article { padding: 0; }
  .article__head { max-width: none; }
  .article__body { max-width: none; font-size: 11pt; line-height: 1.5; }
  .article__body h2 { font-size: 16pt; margin-top: 20pt; }
  .article__body h3 { font-size: 12pt; margin-top: 14pt; }
  .article__body a { color: #111 !important; text-decoration: none; }
  .hero { border: 0; padding: 0 0 12pt; }
  .hero h1 { font-size: 26pt; }
  .section { padding: 18pt 0; border: 0; }
  .section--alt, .section--dark { background: #fff !important; color: #111 !important; }
  .card, .dark-card, .cta-panel { background: #fff !important; color: #111 !important; border: 1px solid #bbb !important; box-shadow: none !important; }
  .card h3, .dark-card h3, .dark-card p, .on-dark-muted { color: #111 !important; }
  .quote { border-left: 2px solid #999; }
  .article__body table, .article__body th, .article__body td { border-color: #bbb; }
  .callout { background: #f3f3f3 !important; border: 1px solid #bbb; }
  .toc { break-inside: avoid; }
  .card, .author-box, .callout { break-inside: avoid; }
}


/* Training session page */
.session-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.session-fact {
  border-top: 2px solid var(--orange);
  padding-top: 10px;
}

.session-fact strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.session-fact span {
  font-size: 0.8rem;
  color: var(--muted);
}

.agenda {
  border-top: 1px solid var(--line);
}

.agenda__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.agenda__time {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--orange-deep);
  padding-top: 2px;
}

.agenda__row h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.agenda__row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.track {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.track h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.track ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.track li { margin-bottom: 6px; }

@media (max-width: 720px) {
  .session-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agenda__row { grid-template-columns: 1fr; gap: 6px; }
  .track-grid { grid-template-columns: 1fr; }
}


.level-ladder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.level-step {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.level-step--now {
  border-color: rgba(255, 107, 69, 0.65);
  background: #fffdf8;
}

.level-step__num {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--orange-deep);
  margin-bottom: 8px;
}

.level-step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.level-step p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.level-step small {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .level-ladder { grid-template-columns: 1fr; }
}
