/* Shifting Boundaries (mb2023.org) - cold academic blue-grey, light sans-serif */
:root {
  --navy-dark: #1F2638;
  --navy-text: #C9CFDA;
  --navy-active: #6B7A99;
  --banner-bg: #BEC3CC;
  --title-navy: #1F2A44;
  --subtitle: #6B7A99;
  --footer-bg: #1E2537;
  --accent: #3A4763;
  --text: #2A2E36;
  --border: #D7DAE1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito Sans', 'Lato', Arial, sans-serif;
  font-weight: 300;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Lato', Arial, sans-serif; font-weight: 300; margin: 0 0 16px; color: var(--title-navy); }
a { color: var(--accent); }
.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header { background: var(--navy-dark); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { color: #fff; text-decoration: none; font-size: 18px; letter-spacing: 3px; text-transform: uppercase; font-weight: 300; }
.main-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.main-nav a { color: var(--navy-text); text-decoration: none; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.main-nav a[aria-current="page"] { background: var(--navy-active); color: #fff; padding: 6px 10px; border-radius: 2px; }
.main-nav { display: flex; align-items: center; gap: 24px; }
.pill-btn { background: var(--navy-active); color: #fff; text-decoration: none; padding: 8px 16px; border-radius: 2px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.burger { display: none; background: none; border: none; color: #fff; font-size: 24px; }

/* ---------- Hero (home) ---------- */
.hero-banner { background: var(--banner-bg); text-align: center; padding: 48px 20px 24px; }
.hero-title { font-size: 34px; letter-spacing: 4px; text-transform: uppercase; color: var(--title-navy); margin: 0 0 8px; font-weight: 300; max-width: 760px; margin-left: auto; margin-right: auto; }
.hero-title.hero-title-long { font-size: 22px; letter-spacing: 1.5px; max-width: 640px; }
@media (max-width: 640px) { .hero-title { font-size: 20px; letter-spacing: 1px; } }
.hero-sub { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--subtitle); margin: 0; }
.hero-photo { width: 100%; height: 480px; background-size: cover; background-position: center; }

/* ---------- Stats band ---------- */
.stats-band { background: #fff; padding: 48px 0; border-bottom: 1px solid var(--border); }
.stats-row { display: flex; }
.stat { flex: 1; text-align: center; padding: 0 24px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: none; }
.stat-num { display: block; font-size: 44px; color: var(--title-navy); font-weight: 300; }
.stat p { margin: 6px 0 0; color: var(--subtitle); font-size: 14px; }

/* ---------- Intro / split block ---------- */
.intro-text { max-width: 760px; margin: 40px auto; text-align: center; }
.split-block { display: flex; width: 100%; min-height: 420px; }
.split-photo { flex: 1; background-size: cover; background-position: center; }
.split-text { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; background: #F4F5F7; }

/* ---------- Page banner ---------- */
.page-banner { background: var(--banner-bg); padding: 36px 0; }
.page-banner h1 { font-size: 28px; margin: 6px 0 0; }

/* ---------- Wide cover (publications) ---------- */
.wide-cover { position: relative; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; }
.wide-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.wide-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.55)); z-index: 1; }
.wide-cover-content { position: relative; z-index: 2; padding-bottom: 28px; }
.wide-cover h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.5); font-size: 30px; }
.wide-cover .breadcrumbs a, .wide-cover .breadcrumbs span { color: #e4e7ec; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 12px; color: var(--subtitle); margin-bottom: 8px; }
.breadcrumbs a { color: var(--subtitle); text-decoration: none; }
.breadcrumbs .sep { margin: 0 6px; }

/* ---------- Article ---------- */
.article-col { max-width: 760px; margin: 40px auto; }
.article-meta { font-size: 13px; color: var(--subtitle); margin-bottom: 16px; }
.article-photo { width: 100%; border-radius: 2px; margin-bottom: 24px; object-fit: cover; height: auto; }
.inline-figure { margin: 28px 0; }
.inline-figure img { width: 100%; border-radius: 2px; object-fit: cover; height: auto; display: block; }
.inline-figure figcaption { font-size: 13px; color: var(--subtitle); margin-top: 8px; line-height: 1.5; }
.article-col h2 { font-size: 22px; margin-top: 36px; }
.article-col h3 { font-size: 17px; margin-top: 24px; }
.article-col p, .article-col li { line-height: 1.7; font-size: 16px; }
.article-col table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-col th, .article-col td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; font-size: 14px; }
.disclaimer-note { background: #EEF1F4; border-left: 3px solid var(--navy-active); padding: 12px 16px; font-size: 14px; color: var(--subtitle); margin-bottom: 24px; }

/* ---------- Related reading / cards ---------- */
.lire-aussi { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 20px; }
.lire-aussi h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--subtitle); }
.lire-aussi ul { list-style: none; padding: 0; margin: 0; }
.lire-aussi li { margin-bottom: 6px; }

.post-grid-section { background: #F4F5F7; padding: 48px 0; margin-top: 40px; }
.section-title { text-align: center; font-size: 22px; margin-bottom: 28px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--border); }
.post-card-gated { opacity: .6; }
.post-card-gated .post-card-img { cursor: default; }
.post-card-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; height: auto; }
.post-card-body { padding: 16px; }
.post-card-body h3 { font-size: 16px; margin: 0 0 8px; }
.post-card-body h3 a { color: var(--title-navy); text-decoration: none; }
.excerpt { font-size: 14px; color: #555; margin: 0 0 12px; }
.btn { display: inline-block; background: var(--navy-active); color: #fff; text-decoration: none; padding: 10px 18px; font-size: 13px; letter-spacing: .5px; border-radius: 2px; }
.btn-outline { background: none; border: 1px solid var(--navy-active); color: var(--navy-active); }

/* ---------- Contact form ---------- */
.contact-form div { margin-bottom: 16px; }
.contact-form label { display: block; margin-bottom: 4px; font-size: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 10px; border: 1px solid var(--border); font-family: inherit; font-size: 14px;
}
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: #555; margin-bottom: 16px; }

/* ---------- Error pages ---------- */
.error-body { text-align: center; padding: 60px 0; }
.error-links { list-style: none; padding: 0; display: flex; gap: 20px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: #B7BCC9; padding: 48px 0 24px; margin-top: 48px; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.footer-brand { color: #fff; font-size: 16px; letter-spacing: 1px; text-transform: uppercase; margin: 0 0 8px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #B7BCC9; text-decoration: none; font-size: 14px; }
.footer-disclaimer { font-size: 12px; color: #8990A3; margin-top: 32px; border-top: 1px solid #343B52; padding-top: 16px; }
.footer-copy { font-size: 12px; color: #8990A3; margin-top: 8px; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .split-block { flex-direction: column; }
  .split-photo { min-height: 240px; }
  .stats-row { flex-direction: column; gap: 24px; }
  .stat { border-left: none; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .hero-photo { height: 240px; }
}
