/* Farmeci Blog — Design System
   Brand: NHS / NICE / Patient.info-style — clean, trustworthy, plain English.
*/

:root {
  --c-primary: #4885B7;
  --c-bright: #0690FE;
  --c-light: #DAEFFF;
  --c-dark: #001E36;
  --c-black: #000000;
  --c-white: #FFFFFF;

  --c-ink: #001E36;
  --c-ink-soft: #3a5773;
  --c-muted: #6b7c91;
  --c-line: #e3edf6;
  --c-bg: #ffffff;
  --c-bg-soft: #f5fafe;

  --font-display: 'League Spartan', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 30, 54, 0.06);
  --shadow-md: 0 6px 18px rgba(0, 30, 54, 0.08);
  --shadow-lg: 0 18px 40px rgba(0, 30, 54, 0.12);

  --container: 1140px;
  --container-narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--c-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--c-dark);
  line-height: 1.18;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li + li { margin-top: 0.35em; }

hr { border: 0; border-top: 1px solid var(--c-line); margin: 2.5rem 0; }

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }

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

.section { padding: 64px 0; }
.section--lg { padding: 96px 0; }
.section--soft { background: var(--c-bg-soft); }
.section--light { background: var(--c-light); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 16px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--c-black);
  padding-left: 4px;
}
@media (min-width: 861px) {
  .site-logo { padding-left: 12px; }
}
.site-logo svg { height: 32px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--c-dark);
  text-decoration: none;
}
.site-nav a:hover { color: var(--c-bright); }
.site-nav a.is-active { color: var(--c-bright); }
.site-nav a.is-active::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 4px;
  background: var(--c-bright);
  border-radius: 1px;
}
.site-nav a.is-active.nav-cta::after { display: none; }
@media (max-width: 860px) {
  .site-nav a.is-active::after { display: none; }
  .site-nav a.is-active { background: var(--c-light); }
}
.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--c-bright);
  color: var(--c-white);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav .nav-cta:hover { background: #0078dd; color: var(--c-white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--c-dark);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--c-line);
    padding: 8px 24px 24px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--c-line); }
  .site-nav .nav-cta { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
}

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 72px;
  /* Editorial motif mosaic on the right + soft brand gradient base.
     The image already carries its own gradient + glows, so it stacks
     on the gradient base only as a fallback for browsers / situations
     where the image is missing. */
  background:
    url('/assets/img/hero-bg.webp') right center / cover no-repeat,
    linear-gradient(180deg, #ffffff 0%, var(--c-light) 100%);
}
/* Tablet: shift the image so a slice of motifs still shows behind the headline */
@media (max-width: 1100px) {
  .hero {
    background:
      url('/assets/img/hero-bg.webp') right -120px center / auto 100% no-repeat,
      linear-gradient(180deg, #ffffff 0%, var(--c-light) 100%);
  }
}
/* Phones: drop the image entirely — the gradient + glows do the work */
@media (max-width: 720px) {
  .hero {
    background:
      radial-gradient(900px 500px at 90% -10%, rgba(6, 144, 254, 0.12), transparent 60%),
      radial-gradient(700px 400px at -10% 110%, rgba(72, 133, 183, 0.12), transparent 60%),
      linear-gradient(180deg, #ffffff 0%, var(--c-light) 100%);
    padding: 64px 0 48px;
  }
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-bright);
  background: var(--c-white);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(6, 144, 254, 0.2);
  margin-bottom: 24px;
}
.hero h1 { max-width: 18ch; margin-bottom: 18px; }
.hero p.lead {
  max-width: 56ch;
  font-size: 1.15rem;
  color: var(--c-ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--c-bright); color: var(--c-white); }
.btn--primary:hover { background: #0078dd; color: var(--c-white); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--c-dark);
  border: 1.5px solid var(--c-dark);
}
.btn--ghost:hover { background: var(--c-dark); color: var(--c-white); }
.btn--white { background: var(--c-white); color: var(--c-dark); }
.btn--white:hover { background: var(--c-light); }

/* Category pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  color: var(--c-dark);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s ease;
}
.pill:hover, .pill.is-active {
  background: var(--c-bright);
  color: var(--c-white);
  border-color: var(--c-bright);
}

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--c-ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(6, 144, 254, 0.3);
}
.post-card__cover {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(6, 144, 254, 0.15), rgba(72, 133, 183, 0.20)),
    var(--c-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}
.post-card__body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card__cat {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-bright);
  margin-bottom: 10px;
}
.post-card h3 { font-size: 1.15rem; margin: 0 0 10px; line-height: 1.3; }
.post-card p { color: var(--c-ink-soft); font-size: 0.95rem; margin: 0 0 16px; }
.post-card__meta {
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Featured post */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: stretch;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 800px) { .featured { grid-template-columns: 1fr; } }
.featured__cover {
  aspect-ratio: 16 / 9;
  background-color: var(--c-light);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
@media (max-width: 800px) {
  .featured__cover {
    aspect-ratio: 16 / 9;
    width: 100%;
  }
}
.featured__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-bright);
  margin-bottom: 12px;
}
.featured h2 { font-size: clamp(1.6rem, 2.2vw, 2rem); margin: 0 0 14px; }
.featured p { color: var(--c-ink-soft); margin: 0 0 20px; }

/* Trust badges */
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
}
@media (max-width: 720px) { .trust-row { grid-template-columns: repeat(2, 1fr); } }
.trust-badge { display: flex; align-items: center; gap: 12px; }
.trust-badge__icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--c-light);
  color: var(--c-bright);
  display: flex; align-items: center; justify-content: center;
}
.trust-badge__icon svg { width: 22px; height: 22px; }
.trust-badge__label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-dark);
  font-size: 0.95rem;
  line-height: 1.25;
}
.trust-badge__sub { color: var(--c-muted); font-size: 0.8rem; }

/* Subscribe */
.subscribe {
  background: var(--c-dark);
  color: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
}
.subscribe h2 {
  color: var(--c-white);
  margin-bottom: 12px;
  line-height: 1.18;
  text-wrap: balance;
}
.subscribe p { color: rgba(255, 255, 255, 0.78); max-width: 56ch; margin: 0 auto 28px; text-wrap: pretty; }

.subscribe__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.subscribe__actions .btn {
  background: var(--c-white);
  color: var(--c-dark);
}
.subscribe__actions .btn:hover { background: var(--c-light); color: var(--c-dark); }

/* Narrow screens — tighten padding so the dark card breathes on mobile */
@media (max-width: 720px) {
  .subscribe { padding: 48px 28px; border-radius: var(--radius-md); }
  .subscribe h2 { font-size: 1.55rem; }
  .subscribe p { font-size: 0.97rem; margin-bottom: 24px; }
}
@media (max-width: 480px) {
  .subscribe { padding: 40px 20px; }
  .subscribe h2 { font-size: 1.35rem; }
  .subscribe p { font-size: 0.93rem; }
  .subscribe__actions .btn { width: 100%; justify-content: center; }
}
.subscribe__form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.subscribe__form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.10);
  color: var(--c-white);
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.15s ease, background 0.15s ease;
}
.subscribe__form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.5); }
.subscribe__form input[type="email"]:focus { background: rgba(255, 255, 255, 0.15); outline-color: var(--c-bright); }
.subscribe__form button { white-space: nowrap; }

/* Footnote under the CTA — give it breathing room from the button
   and keep it readable on every screen size. */
.subscribe__note {
  margin: 32px auto 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  max-width: 52ch;
  text-wrap: pretty;
}
@media (max-width: 720px) {
  .subscribe__note { margin-top: 24px; font-size: 0.85rem; }
}
@media (max-width: 480px) {
  .subscribe__note { margin-top: 20px; font-size: 0.8rem; }
}
.subscribe__success {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 18px;
  max-width: 480px;
  margin: 0 auto;
}
.subscribe__success.is-visible { display: block; }
@media (max-width: 540px) { .subscribe__form { flex-direction: column; } }

/* Footer */
.site-footer {
  background: var(--c-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 28px;
}
.site-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.site-footer a:hover { color: var(--c-white); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-white);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin: 0 0 10px; font-size: 0.92rem; }
.footer-brand p { max-width: 38ch; font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); margin: 16px 0; }
.footer-reg {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
}

/* Footer logo on dark needs white treatment */
.footer-logo svg .logo-wordmark { fill: var(--c-white); }

/* === BLOG ARTICLE === */
.article-wrap { padding: 56px 0 96px; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--c-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-bright); }
.breadcrumb span[aria-hidden="true"] { color: var(--c-line); }

.article-header { margin-bottom: 32px; }
.article-cat {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-bright);
  background: var(--c-light);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  text-decoration: none;
}
.article-header h1 { margin: 0 0 18px; max-width: 22ch; }
.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--c-ink-soft);
  padding: 16px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.article-byline strong { color: var(--c-dark); font-weight: 600; }
.article-byline .dot { color: var(--c-line); }

.article-hero {
  margin: 0 0 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg-soft);
  box-shadow: var(--shadow-sm);
}
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.quick-answer {
  margin: 28px 0;
  background: var(--c-light);
  border-left: 4px solid var(--c-bright);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}
.quick-answer__label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--c-bright);
  margin-bottom: 8px;
}
.quick-answer p { margin: 0; font-size: 1.05rem; color: var(--c-dark); }

.article-body { font-size: 1.05rem; }
.article-body h2 { font-size: 1.6rem; margin-top: 2.2em; }
.article-body h3 { font-size: 1.2rem; margin-top: 1.8em; color: var(--c-dark); }
.article-body ul li, .article-body ol li { margin-bottom: 0.4em; }
.article-body blockquote {
  margin: 1.6em 0;
  padding: 18px 24px;
  border-left: 3px solid var(--c-primary);
  background: var(--c-bg-soft);
  font-style: italic;
  color: var(--c-ink-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.safety-callout {
  margin: 32px 0;
  background: var(--c-light);
  border-left: 4px solid var(--c-bright);
  border-radius: var(--radius-md);
  padding: 22px 26px;
}
.safety-callout__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-dark);
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.safety-callout__title svg { width: 20px; height: 20px; color: var(--c-bright); }
.safety-callout p { margin: 0; color: var(--c-ink); font-size: 0.97rem; }

.faq { margin-top: 48px; }
.faq h2 { margin-bottom: 18px; }
.faq details {
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 12px;
  background: var(--c-white);
}
.faq details[open] { border-color: rgba(6, 144, 254, 0.3); box-shadow: var(--shadow-sm); }
.faq summary {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--c-bright);
  flex: none;
}
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 14px 0 0; color: var(--c-ink-soft); }

/* Consultation CTA at end of article */
.cta-card {
  margin: 56px 0 0;
  padding: 48px 40px;
  background: linear-gradient(135deg, var(--c-bright) 0%, var(--c-primary) 100%);
  color: var(--c-white);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.cta-card h2 { color: var(--c-white); margin: 0 0 12px; font-size: 1.6rem; }
.cta-card p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 50ch;
  margin: 0 auto 24px;
  font-size: 1.02rem;
}
.cta-card .btn { background: var(--c-white); color: var(--c-dark); }
.cta-card .btn:hover { background: var(--c-light); color: var(--c-dark); }

/* Related posts */
.related { margin-top: 64px; }
.related h2 { font-size: 1.5rem; margin-bottom: 24px; }

/* Category landing page */
.cat-hero {
  padding: 72px 0 48px;
  background: linear-gradient(180deg, var(--c-light), #fff);
}
.cat-hero .container { max-width: 880px; }
.cat-hero h1 { margin-bottom: 16px; }
.cat-hero p { color: var(--c-ink-soft); font-size: 1.1rem; max-width: 60ch; }
.cat-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* About + team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}
@media (max-width: 800px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  padding: 24px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
}
.team-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-dark);
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.team-card__role { color: var(--c-bright); font-weight: 600; font-size: 0.92rem; margin: 0 0 8px; }
.team-card__reg { color: var(--c-muted); font-size: 0.85rem; }

/* Prose pages (legal, contact, about body) */
.prose {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 48px 0 80px;
}
.prose h1 { margin-bottom: 12px; }
.prose .updated { color: var(--c-muted); font-size: 0.9rem; margin-bottom: 32px; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul, .prose ol { margin-bottom: 1.2em; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Print */
@media print {
  .site-header, .site-footer, .cta-card, .subscribe, .related, .nav-toggle { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* ============================================================================
   Article tools — TTS + comprehensive sharing (v1)
   ========================================================================= */

.article-tools {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px 28px;
  margin: 0 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-white);
}

/* ----- TTS pill cluster ----- */
.tts-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: var(--c-light);
  border-radius: var(--radius-pill);
  min-height: 44px;
}

.tts-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: var(--c-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.tts-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(6, 144, 254, 0.28);
  background: var(--c-bright);
}
.tts-btn.icon {
  background: transparent;
  color: var(--c-primary);
  padding: 8px 10px;
}
.tts-btn.icon:hover { background: rgba(255, 255, 255, 0.55); box-shadow: none; color: var(--c-dark); }
.tts-btn svg { width: 16px; height: 16px; }
.tts-btn:focus-visible,
.tts-select:focus-visible,
.share-btn:focus-visible {
  outline: 2px solid var(--c-bright);
  outline-offset: 2px;
}

/* Custom-styled selects — strip OS chrome */
.tts-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%234885B7' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-pill);
  color: var(--c-dark);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 7px 28px 7px 12px;
  cursor: pointer;
  max-width: 180px;
  text-overflow: ellipsis;
}
.tts-select:hover { border-color: var(--c-primary); }

.tts-status {
  font-size: 0.85rem;
  color: var(--c-ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
}
.tts-status.is-active::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-bright);
  animation: tts-pulse 1.2s ease-in-out infinite;
}
@keyframes tts-pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50%      { transform: scale(1.1); opacity: 1; }
}

/* ----- Share buttons ----- */
.share-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.share-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: var(--c-white);
  color: var(--c-ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.share-btn:hover {
  background: var(--c-light);
  border-color: var(--c-primary);
  color: var(--c-primary);
  transform: translateY(-1px);
}
.share-btn svg { width: 16px; height: 16px; display: block; }
.share-btn.is-copied {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.share-btn.is-copied::after {
  content: 'Copied';
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-dark);
  color: #fff;
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
}
.share-btn.is-copied::before {
  content: '';
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 6px; height: 6px;
  background: var(--c-dark);
  pointer-events: none;
}

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .article-tools {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .share-controls { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .tts-controls {
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }
  .tts-controls::-webkit-scrollbar { display: none; }
}
@media (max-width: 480px) {
  .tts-select { max-width: 96px; font-size: 0.82rem; padding: 6px 24px 6px 10px; }
  .share-btn { width: 32px; height: 32px; }
  .share-btn svg { width: 14px; height: 14px; }
}

@media print {
  .article-tools { display: none !important; }
}

/* ============================================================================
   Author bio pages + team grid (v1)
   ========================================================================= */

.author-hero {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 32px;
}
.author-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  color: #fff;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-md);
}
.author-hero__body h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}
.author-role {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-bright);
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.author-gphc {
  font-size: 0.95rem;
  color: var(--c-muted);
  margin: 0;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .author-hero {
    grid-template-columns: 100px 1fr;
    gap: 20px;
  }
  .author-avatar {
    width: 100px;
    height: 100px;
    font-size: 2.2rem;
  }
}

/* Team grid on /authors/ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.team-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(6, 144, 254, 0.3);
}
.team-card__avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-bright));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.03em;
}
.team-card__body h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.team-card__role {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-bright);
  margin: 0 0 4px;
}
.team-card__gphc, .team-card__meta {
  font-size: 0.82rem;
  color: var(--c-muted);
  margin: 0;
}

/* ============================================================================
   Pillar page — category hub long-form guide (v1)
   ========================================================================= */

.pillar {
  padding: 40px 0 24px;
  background: linear-gradient(180deg, var(--c-bg-soft) 0%, var(--c-white) 100%);
  border-bottom: 1px solid var(--c-line);
}
.pillar .prose {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--c-ink);
}
.pillar .prose .lede {
  font-size: 1.15rem;
  color: var(--c-ink-soft);
  padding: 20px 24px;
  background: var(--c-light);
  border-left: 4px solid var(--c-bright);
  border-radius: var(--radius-md);
  margin: 0 0 32px;
}
.pillar .prose h2 {
  margin-top: 2em;
  font-size: 1.5rem;
}
.pillar .prose h3 {
  margin-top: 1.6em;
  font-size: 1.15rem;
}
.pillar .prose a {
  color: var(--c-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pillar-faq {
  padding: 32px 0 8px;
  background: var(--c-white);
}

/* ============================================================================
   TOC + pillar backlink (v1)
   ========================================================================= */

.toc {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--c-bg-soft);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--c-primary);
}
.toc__label {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--c-primary);
  margin-bottom: 12px;
}
.toc ol {
  margin: 0;
  padding-left: 22px;
  counter-reset: toc-counter;
  list-style: none;
}
.toc ol li {
  counter-increment: toc-counter;
  position: relative;
  margin: 6px 0;
  padding-left: 8px;
  color: var(--c-ink-soft);
  font-size: 0.98rem;
}
.toc ol li::before {
  content: counter(toc-counter);
  position: absolute;
  left: -22px;
  top: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--c-bright);
  font-size: 0.85rem;
}
.toc a {
  color: var(--c-ink);
  text-decoration: none;
}
.toc a:hover { color: var(--c-bright); text-decoration: underline; }

.pillar-backlink {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  font-size: 0.92rem;
}
.pillar-backlink a {
  color: var(--c-bright);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
}
.pillar-backlink a:hover { text-decoration: underline; }

/* ============================================================================
   Search (v1)
   ========================================================================= */
.search-box {
  margin: 24px 0;
}
.search-box input {
  width: 100%;
  padding: 16px 22px;
  font: inherit;
  font-size: 1.1rem;
  border: 2px solid var(--c-line);
  border-radius: var(--radius-pill);
  background: var(--c-white);
  color: var(--c-ink);
}
.search-box input:focus {
  outline: none;
  border-color: var(--c-bright);
  box-shadow: 0 0 0 4px rgba(6, 144, 254, 0.14);
}
.search-results {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.search-result {
  display: block;
  padding: 18px 20px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-result:hover {
  transform: translateY(-1px);
  border-color: var(--c-primary);
  box-shadow: var(--shadow-md);
}
.search-result__meta {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.search-result__type { color: var(--c-bright); }
.search-result__cat { color: var(--c-primary); }
.search-result h3 { margin: 0 0 4px; font-size: 1.05rem; }
.search-result p { margin: 0; color: var(--c-ink-soft); font-size: 0.92rem; }
.search-empty { color: var(--c-ink-soft); padding: 24px 0; text-align: center; }
