/* ---- Local Fonts ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url('/fonts/lora-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url('/fonts/lora-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/fonts/lora-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/fonts/lora-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   CircadianDaily — Design System
   Calm, modern, accessible wellness aesthetic
   ============================================================ */

/* ---- Custom Properties ---- */
:root {
  --color-navy:       #1a2060;
  --color-navy-dark:  #0f1540;
  --color-navy-light: #2d3a8a;
  --color-amber:      #f97316;
  --color-amber-dark: #ea6c08;
  --color-amber-light:#fff3e8;
  --color-bg:         #fdfaf6;
  --color-surface:    #ffffff;
  --color-text:       #1f2937;
  --color-text-muted: #6b7280;
  --color-border:     #e5e7eb;
  --color-info-bg:    #eff6ff;
  --color-info-border:#bfdbfe;
  --color-success:    #059669;

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-size-base: 1rem;
  --line-height: 1.7;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow:    0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);

  --container-max: 1200px;
  --container-pad: clamp(1rem, 4vw, 2rem);

  --header-height: 64px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
}
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-navy);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); }

.prose p  { margin-block: 1rem; }
.prose h2 { margin-block: 2rem 1rem; }
.prose h3 { margin-block: 1.5rem .75rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin-block: 1rem; }
.prose li  { margin-block: .4rem; list-style: disc; }
.prose a   { color: var(--color-navy); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--color-amber-dark); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9375rem;
  transition: background .15s, color .15s, box-shadow .15s, transform .1s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--color-amber);
  color: var(--color-navy);
}
.btn-primary:hover { background: var(--color-amber-dark); }
.btn-outline {
  border: 2px solid var(--color-navy);
  color: var(--color-navy);
}
.btn-outline:hover {
  background: var(--color-navy);
  color: white;
}
.btn-sm { padding: .4rem 1rem; font-size: .875rem; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* ---- Logo ---- */
.site-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-navy);
  text-decoration: none;
}
.logo-mark {
  font-size: 1.5rem;
  color: var(--color-amber);
  line-height: 1;
}
.logo-text { letter-spacing: -.01em; }
.logo-wordmark { display: flex; flex-direction: column; gap: 0; }
.logo-tagline {
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  line-height: 1;
}

/* ---- Nav ---- */
.main-nav { display: flex; align-items: center; }
.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-links a {
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--color-navy);
  background: var(--color-info-bg);
}
.nav-lang { position: relative; }
.lang-picker summary {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: .3rem .6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: color .15s, background .15s, border-color .15s;
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary::marker { display: none; }
.lang-picker:hover summary,
.lang-picker[open] summary {
  color: var(--color-navy);
  background: var(--color-info-bg);
  border-color: var(--color-info-border);
}
.lang-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + .25rem);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  min-width: 140px;
  z-index: 100;
  padding: .25rem 0;
  list-style: none;
  margin: 0;
}
.lang-dropdown a {
  display: block;
  padding: .45rem .75rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.lang-dropdown a:hover,
.lang-dropdown a[aria-current] {
  background: var(--color-info-bg);
  color: var(--color-navy);
}
.lang-dropdown a[aria-current] { font-weight: 700; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
  border-radius: 2px;
  transition: .2s;
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  top: -99px;
  left: 0;
  background: var(--color-navy);
  color: white;
  padding: .5rem 1rem;
  z-index: 999;
}
.skip-link:focus { top: 0; }

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, #0f1640 0%, #1a2060 40%, #2d1a5e 75%, #5a1f42 100%);
  color: white;
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}
.hero-text { max-width: 560px; }
.hero-eyebrow {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-amber);
  margin-bottom: .75rem;
}
.hero-h1 {
  font-family: var(--font-serif);
  font-style: italic;
  color: white;
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
}
.hero-summary {
  font-size: 1.125rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---- Hero quiz card (replaces decorative badge) ---- */
.hero-quiz-card {
  flex-shrink: 0;
  max-width: 300px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.hero-quiz-eyebrow {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-amber);
  margin-bottom: .6rem;
}
.hero-quiz-heading {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: white;
  line-height: 1.3;
  margin-bottom: .75rem;
}
.hero-quiz-desc {
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* ---- Hero wave divider ---- */
.hero-wave { line-height: 0; }
.hero-wave svg { display: block; width: 100%; height: 56px; }

/* ---- Hub Hero ---- */
.hub-hero {
  background: linear-gradient(135deg, #1a2060 0%, #2d3a8a 100%);
  color: white;
  padding: clamp(2rem, 5vw, 4rem) 0;
}
.hub-hero h1 { color: white; margin-block: .75rem; }
.hub-hero__summary {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  max-width: 640px;
}

/* ---- Static Hero ---- */
.static-hero {
  background: var(--color-info-bg);
  border-bottom: 1px solid var(--color-info-border);
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}
.static-hero h1 { margin-block: .5rem; }
.static-hero__summary { color: var(--color-text-muted); font-size: 1.05rem; max-width: 640px; }

/* ---- Article Hero ---- */
.article-hero {
  background: var(--color-info-bg);
  border-bottom: 1px solid var(--color-info-border);
  padding: 1.5rem 0 0;
}

/* ---- Hub cards / home ---- */
.hubs-section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.hubs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.hub-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow .2s, border-color .2s, transform .15s;
  text-decoration: none;
  color: var(--color-text);
}
.hub-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--color-amber);
  transform: translateY(-2px);
}
.hub-card__icon { font-size: 2rem; margin-bottom: .75rem; color: var(--color-amber); }
.hub-card__title { font-size: 1.2rem; margin-bottom: .5rem; color: var(--color-navy); }
.hub-card__desc { color: var(--color-text-muted); font-size: .925rem; flex: 1; line-height: 1.55; }
.hub-card__arrow { color: var(--color-amber); margin-top: 1rem; font-size: 1.1rem; }

/* ---- Quiz CTA ---- */
.quiz-cta {
  background: var(--color-navy);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}
.quiz-cta-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-content: space-between;
}
.quiz-cta-text { max-width: 560px; }
.quiz-cta h2 { color: white; margin-bottom: 1rem; }
.quiz-cta p { color: rgba(255,255,255,.8); margin-bottom: 1.5rem; line-height: 1.65; }
.quiz-cta-icon { font-size: 6rem; color: var(--color-amber); opacity: .7; flex-shrink: 0; }

/* ---- Featured articles ---- */
.featured-articles {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--color-surface);
}
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* ---- Article card ---- */
.article-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .15s;
}
.article-card:hover { box-shadow: var(--shadow); border-color: var(--color-navy-light); transform: translateY(-2px); }
.article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: var(--color-text);
}
.article-card__image {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.article-card__image--sleep            { background: linear-gradient(135deg, #0d1640, #1e2878); }
.article-card__image--light            { background: linear-gradient(135deg, #7c3808, #f97316); }
.article-card__image--circadian-rhythm { background: linear-gradient(135deg, #1a2060, #4a2d6e); }
.article-card__image--jetlag           { background: linear-gradient(135deg, #0f4c75, #1b6ca8); }
.article-card__image--tools            { background: linear-gradient(135deg, #065f46, #059669); }
.article-card__image--shift-work       { background: linear-gradient(135deg, #1f1a40, #3d2878); }
.article-card__image--nutrition        { background: linear-gradient(135deg, #3a1f08, #92400e); }
.article-card__image--default          { background: linear-gradient(135deg, #1a2060, #2d3a8a); }
.article-card__image-icon {
  font-size: 3rem;
  color: rgba(255,255,255,.55);
  line-height: 1;
}
.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.5rem 1.5rem;
}
.article-card__category {
  font-size: .775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-amber-dark);
  margin-bottom: .5rem;
}
.article-card__title { font-size: 1.05rem; color: var(--color-navy); margin-bottom: .6rem; }
.article-card__summary { color: var(--color-text-muted); font-size: .9rem; line-height: 1.55; flex: 1; }
.article-card__cta { color: var(--color-navy); font-size: .875rem; font-weight: 600; margin-top: 1rem; }

/* ---- Content wrapper ---- */
.content-wrapper {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}
.content-wrapper--article {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}

/* ---- Article header ---- */
.article-header { margin-bottom: 2rem; }
.article-category {
  font-size: .775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-amber-dark);
  display: block;
  margin-bottom: .5rem;
}
.article-summary {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-block: 1rem;
  line-height: 1.6;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: .75rem;
  margin-bottom: 2rem;
}

/* ---- Content sections ---- */
.content-intro { font-size: 1.1rem; color: var(--color-text); margin-bottom: 1.5rem; line-height: 1.75; }
.content-section { margin-block: 2rem; }
.content-subsection { margin-block: 1.5rem; }
.callout {
  background: var(--color-info-bg);
  border-left: 4px solid var(--color-navy);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
}
.callout h3 { margin-bottom: .5rem; font-size: 1rem; color: var(--color-navy); }
.disclaimer {
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: .9rem;
  color: #713f12;
  margin-block: 1.5rem;
}

/* ---- Subscribe box ---- */
.subscribe-box {
  background: var(--color-info-bg);
  border: 1px solid var(--color-navy);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-block: 1.5rem;
}
.subscribe-box__heading { margin-bottom: .5rem; font-size: 1.15rem; color: var(--color-navy); }
.subscribe-box__desc { margin-bottom: 1rem; color: var(--color-text-muted); font-size: .95rem; }
.subscribe-box__form { display: flex; flex-direction: column; gap: .75rem; }
.subscribe-box__row { display: flex; gap: .5rem; flex-wrap: wrap; }
.subscribe-box__input {
  flex: 1 1 220px;
  padding: .6rem .9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  background: var(--color-surface);
  color: var(--color-text);
}
.subscribe-box__input:focus { outline: 2px solid var(--color-navy); outline-offset: 2px; }
.subscribe-box__btn { white-space: nowrap; }
.subscribe-box__gdpr { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; color: var(--color-text-muted); cursor: pointer; }
.subscribe-box__gdpr input[type="checkbox"] { margin-top: .15rem; flex-shrink: 0; }
.subscribe-box__link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.subscribe-box__success { color: var(--color-success, #166534); font-weight: 600; margin: 0; }
.subscribe-box__error { color: var(--color-error, #991b1b); font-size: .9rem; margin-top: .5rem; }

/* ---- FAQ ---- */
.faq-section { margin-block: 3rem; }
.faq-section h2 { margin-bottom: 1.5rem; }
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  display: block;
  padding: 1rem 1.25rem;
  font-weight: 600;
  background: var(--color-info-bg);
  color: var(--color-navy);
  font-size: 1rem;
}
.faq-answer {
  padding: 1rem 1.25rem;
  color: var(--color-text-muted);
  font-size: .95rem;
  line-height: 1.65;
}

/* ---- Hub articles ---- */
.hub-articles { margin-block: 3rem; }
.hub-articles h2 { margin-bottom: 1.5rem; }

/* ---- Breadcrumbs ---- */
.breadcrumbs { padding-block: 1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: .35rem; font-size: .875rem; }
.breadcrumbs a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumbs a:hover { color: white; }
.breadcrumbs [aria-current="page"] { color: rgba(255,255,255,.9); font-weight: 500; }
.breadcrumb-sep { color: rgba(255,255,255,.4); }
.static-hero .breadcrumbs a { color: var(--color-navy-light); }
.static-hero .breadcrumbs [aria-current="page"] { color: var(--color-text); }
.static-hero .breadcrumb-sep { color: var(--color-text-muted); }
.article-hero .breadcrumbs a { color: var(--color-navy); }
.article-hero .breadcrumbs [aria-current="page"] { color: var(--color-text); }
.article-hero .breadcrumb-sep { color: var(--color-text-muted); }

/* ---- Sidebar ---- */
.article-sidebar { position: sticky; top: calc(var(--header-height) + 1.5rem); }
.sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.sidebar-widget h3 { margin-bottom: 1rem; font-size: 1rem; }
.sidebar-links { display: flex; flex-direction: column; gap: .5rem; }
.sidebar-links li a {
  font-size: .9rem;
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1.45;
}
.sidebar-links li a:hover { color: var(--color-amber-dark); }
.sidebar-cta { background: var(--color-info-bg); border-color: var(--color-info-border); }
.sidebar-cta p { font-size: .9rem; color: var(--color-text-muted); margin-block: .75rem; }

/* ---- Reviewed badge (below H1) ---- */
.reviewed-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  border-radius: var(--radius-sm);
  padding: .4rem .875rem;
  font-size: .875rem;
  color: #065f46;
  margin-block: .75rem;
}
.reviewed-badge__check {
  font-weight: 700;
  color: var(--color-success);
  flex-shrink: 0;
  font-size: 1rem;
}

/* ---- Meta references pill ---- */
.meta-references {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--color-info-bg);
  border: 1px solid var(--color-info-border);
  border-radius: var(--radius-sm);
  padding: .15rem .55rem;
  font-size: .8rem;
  color: var(--color-navy);
  font-weight: 600;
}

/* ---- Inline citation superscripts ---- */
.cite {
  font-size: .72em;
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
  vertical-align: super;
  line-height: 0;
  margin-left: .1em;
}
.cite:hover { color: var(--color-amber-dark); text-decoration: underline; }

/* ---- References section ---- */
.references-section {
  border-top: 1px solid var(--color-border);
  margin-top: 3rem;
  padding-top: 2rem;
}
.references-section h2 { margin-bottom: 1.25rem; }
.references-list {
  list-style: decimal;
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.reference-item {
  font-size: .875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}
.reference-link {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: .35rem;
  font-size: .8rem;
}
.reference-link:hover { color: var(--color-amber-dark); }

/* ---- Author box ---- */
.author-box {
  display: flex;
  gap: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin-block: 2rem;
  align-items: flex-start;
}
.author-box__avatar { border-radius: 50%; width: 64px; height: 64px; flex-shrink: 0; object-fit: cover; }
.author-box__name { font-size: .95rem; color: var(--color-text-muted); margin-bottom: .25rem; }
.author-box__title { font-size: .875rem; color: var(--color-text-muted); }
.author-box__bio { font-size: .9rem; color: var(--color-text-muted); margin-block: .5rem; }
.author-box__reviewer {
  margin-top: .75rem;
  padding: .6rem .875rem;
  background: #d1fae5;
  border-left: 3px solid var(--color-success);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.author-box__reviewer-label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #065f46;
  margin-bottom: .2rem;
}
.author-box__reviewer-name { font-size: .9rem; color: var(--color-text); margin: 0; }
.author-box__reviewer-title { font-size: .825rem; color: var(--color-text-muted); margin: 0; }

/* ---- Related articles ---- */
.related-articles { margin-block: 2rem; padding-block: 2rem; border-top: 1px solid var(--color-border); }
.related-articles h2 { margin-bottom: 1.25rem; }
.related-list { display: flex; flex-direction: column; gap: .75rem; }
.related-link {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
  text-decoration: none;
  color: var(--color-text);
}
.related-link:hover { border-color: var(--color-navy); box-shadow: var(--shadow-sm); }
.related-title { font-weight: 600; color: var(--color-navy); font-size: .975rem; }
.related-summary { font-size: .875rem; color: var(--color-text-muted); }

/* ---- Not Found ---- */
.not-found-page { min-height: 60vh; display: flex; align-items: center; padding-block: 4rem; }
.not-found-inner { text-align: center; max-width: 480px; margin-inline: auto; }
.not-found-icon { font-size: 5rem; display: block; margin-bottom: 1.5rem; color: var(--color-amber); }
.not-found-inner h1 { margin-bottom: 1rem; }
.not-found-inner p { color: var(--color-text-muted); margin-bottom: 2rem; }
.not-found-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.site-footer { background: var(--color-navy); color: rgba(255,255,255,.85); margin-top: auto; }
.footer-inner {
  display: flex;
  gap: 3rem;
  padding-block: 3rem;
  flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.site-logo--footer { color: white; margin-bottom: 1rem; }
.site-logo--footer .logo-mark { color: var(--color-amber); }
.footer-tagline { font-size: .9rem; color: rgba(255,255,255,.65); line-height: 1.6; margin-top: .75rem; }
.footer-nav { display: flex; gap: 3rem; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.footer-col h3 { color: white; font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .85rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-size: .9rem; color: rgba(255,255,255,.65); transition: color .15s; }
.footer-col a:hover { color: var(--color-amber); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.45); text-align: center; }

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--color-navy-dark);
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  padding: 1rem var(--container-pad);
  z-index: 200;
  box-shadow: 0 -4px 16px rgba(0,0,0,.2);
}
.cookie-banner__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cookie-banner__actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-banner__text {
  font-size: .9rem;
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.cookie-banner__text a {
  color: var(--color-amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__btn {
  background: var(--color-amber);
  color: var(--color-navy);
  padding: .5rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.cookie-banner__btn:hover { background: var(--color-amber-dark); }
.cookie-banner__btn--secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.85);
}
.cookie-banner__btn--secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
}

/* ---- Cookie consent panel (privacy policy) ---- */
.cookie-consent-panel {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--color-info-bg);
  border: 1px solid var(--color-info-border);
  border-radius: var(--radius);
}
.cookie-consent-panel__heading {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 .5rem;
  color: var(--color-navy);
}
.cookie-consent-panel__status {
  font-size: .95rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  min-height: 1.4em;
}
.cookie-consent-panel__actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.cookie-consent-panel__btn { font-size: .9rem; }

/* ---- Blazor reconnect ---- */
#blazor-error-ui {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fbbf24;
  color: #1f2937;
  padding: 1rem var(--container-pad);
  text-align: center;
  z-index: 999;
}
#blazor-error-ui .reload { font-weight: 600; text-decoration: underline; margin-left: .5rem; }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }

/* ---- Utility ---- */
.loading-placeholder { min-height: 60vh; }
.visually-hidden { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .content-wrapper--article {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-quiz-card { max-width: 100%; width: 100%; }
  .quiz-cta-icon { display: none; }
  .quiz-cta-inner { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-nav { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem;
    gap: .25rem;
    box-shadow: var(--shadow);
  }
  .nav-links.nav-open { display: flex; }
  .nav-links a { width: 100%; padding: .65rem 1rem; }
  .lang-dropdown { position: static; box-shadow: none; border: none; border-top: 1px solid var(--color-border); min-width: 0; width: 100%; border-radius: 0; }
  .lang-picker summary { width: 100%; border: none; padding: .65rem 1rem; border-radius: 0; }
  .hubs-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .author-box { flex-direction: column; }
  .footer-nav { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 400px) {
  .hubs-grid { grid-template-columns: 1fr; }
}

/* ---- Ad placeholders ---- */
.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  overflow: hidden;
}
.ad-placeholder__label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .5;
}
.ad-placeholder--rectangle {
  width: 300px;
  height: 250px;
}
.ad-placeholder--leaderboard {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin-inline: auto;
}
@media (max-width: 640px) {
  .ad-placeholder--leaderboard {
    max-width: 320px;
    height: 50px;
  }
}

/* ---- Home ad banner wrapper ---- */
.home-ad-banner {
  padding-block: 1.5rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ---- Focus styles (accessibility) ---- */
:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 3px;
  border-radius: 3px;
}
