/* www/public/css/styles.css — styles for every lander page (home, blog, privacy, 404). RTL-safe: logical properties only. */
:root {
  --color-primary: #3fae49;
  --color-primary-lip: #2e8a37;
  --color-primary-highlight: #6ccb5f;
  /* CTA fill: white on Basilico #3fae49 is only 2.85:1, so buttons use a deeper Basilico.
     #2b8034 = 4.95:1, hover #26742f = 5.80:1 (WCAG AA for normal text). */
  --color-cta: #2b8034;
  --color-cta-hover: #26742f;
  --color-cta-lip: #1d5a24;
  --color-brand: #d9663b;
  --color-brand-lip: #b04c27;
  --color-text: #3b3330;
  /* Darkened from #7a6f69 so body copy passes WCAG AA (4.5:1) on both Panna and the canvas background. */
  --color-text-2: #6b605a;
  --color-text-muted: #b3aaa3;
  --color-border: #ece5dc;
  --color-surface: #fffdf9;
  --color-surface-sunken: #f8f4ee;
  --color-bg-canvas: #efe8de;
  --color-info: #2d9cdb;
  --color-warning: #ffd23f;
  --color-streak: #ff7a1a;
  --color-danger: #e8412f;
  --color-success-bg: #dcf5d6;
  --color-illustration-sky: #e2f2fb;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --lip: 4px;
  --font-ui: 'Nunito', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --shadow-modal: 0 8px 30px rgba(0, 0, 0, 0.12);
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-canvas);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--color-info);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.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;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  flex: none;
}
/* Official wordmark (Gilda circle + Solo + B1), from img/brand/wordmark-horizontal-gilda.jpg. */
.logo img {
  height: 44px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--color-text-2);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
}
.nav-links a:hover {
  background: var(--color-surface-sunken);
  color: var(--color-text);
  text-decoration: none;
}
/* Phones: keep the wordmark, the CTA and the language switcher on one row; section links live in the page.
   Direct children only, so the switcher's menu links stay visible. */
@media (max-width: 719px) {
  .nav-links > a:not(.btn) {
    display: none;
  }
  .logo img {
    height: 36px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-xl);
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 var(--lip) 0 var(--lip-color, transparent);
  margin-bottom: var(--lip);
  transition:
    transform 0.1s ease-out,
    box-shadow 0.1s ease-out,
    filter 0.1s;
  user-select: none;
}
.btn:hover {
  filter: brightness(1.04);
  text-decoration: none;
}
.btn:active {
  transform: translateY(var(--lip));
  box-shadow: 0 0 0 var(--lip-color, transparent);
}
.btn-primary,
.nav-links a.btn-primary {
  background: var(--color-cta);
  color: #fff;
  --lip-color: var(--color-cta-lip);
}
/* Hover goes darker (never lighter), so contrast only improves. ".nav-links a.btn-primary" beats the grey
   ".nav-links a" link style, which used to turn the nav CTA text grey. */
.btn-primary:hover,
.nav-links a.btn-primary:hover {
  background: var(--color-cta-hover);
  color: #fff;
  filter: none;
}
.btn-outline {
  background: var(--color-surface);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  --lip-color: var(--color-border);
}
.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}
.btn:disabled {
  background: var(--color-border);
  color: var(--color-text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* Hero */
.hero {
  padding: 48px 0 24px;
}
.hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 28px;
  box-shadow: 0 6px 0 var(--color-border);
  padding: 32px 28px;
  overflow: hidden;
}
@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    padding: 48px 44px;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-illustration-sky);
  color: #1f7ab0;
  border: 2px solid #8ecbee;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  color: var(--color-brand);
}
.lead {
  font-size: 19px;
  line-height: 1.45;
  color: var(--color-text-2);
  font-weight: 600;
  margin: 0 0 24px;
  max-width: 38ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.hero-note {
  color: var(--color-text-2);
  font-size: 14px;
  font-weight: 600;
}
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}
.hero-blob {
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(circle at 40% 40%, #e2f2fb, #dcf5d6 60%, transparent 70%);
  border-radius: 50%;
  filter: blur(4px);
}
/* Hero Gilda. .gilda is the visible window (25:36) onto the 512×512 idle.json frame: the poster image is
   that window pre-cropped (x 25–75 %, y 27–99 % of the frame), and .gilda-anim is the full frame scaled
   to 200 % of the window and shifted by the same crop, so frame 0 lands exactly on the poster. */
.gilda {
  position: relative;
  width: min(70%, 290px);
  aspect-ratio: 25 / 36;
}
.gilda::after {
  /* soft floor shadow under her feet */
  content: '';
  position: absolute;
  inset-inline: 18%;
  bottom: -2%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 51, 48, 0.16), transparent);
  z-index: -1;
}
.gilda img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  transition: opacity 0.3s;
}
.gilda-anim {
  position: absolute;
  width: 200%;
  aspect-ratio: 1;
  inset-inline-start: -50%;
  top: -37.5%;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.gilda-anim.is-live {
  opacity: 1;
}
.gilda-anim.is-live + picture img {
  opacity: 0;
}
/* Stacked hero (phones, tablets): centre the copy. */
@media (max-width: 879px) {
  .hero-copy {
    text-align: center;
  }
  .hero-copy .lead {
    margin-inline: auto;
  }
  .hero-cta {
    justify-content: center;
  }
}
.sticker {
  position: absolute;
  font-family: 'Permanent Marker', cursive;
  background: var(--color-warning);
  color: var(--color-text);
  padding: 8px 14px;
  border-radius: 12px;
  transform: rotate(-8deg);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
  font-size: 18px;
  z-index: 2;
}
.sticker-brava {
  top: 18px;
  inset-inline-start: 8px;
}
.sticker-nonna {
  bottom: 28px;
  inset-inline-end: 4px;
  transform: rotate(6deg);
  background: #fee4c3;
}

/* Sections */
.section {
  padding: 56px 0;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.section-sub {
  color: var(--color-text-2);
  font-size: 18px;
  margin: 0 0 28px;
  max-width: 52ch;
}
/* Centred section heading + intro (home page). */
.section-head {
  text-align: center;
}
.section-head .section-title {
  max-width: 30ch;
  margin-inline: auto;
  text-wrap: balance;
}
.section-head .section-sub {
  max-width: 60ch;
  margin-inline: auto;
}
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 0 var(--color-border);
  padding: 22px 20px 24px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}
.card p {
  margin: 0;
  color: var(--color-text-2);
  font-size: 16px;
}
.card-center {
  text-align: center;
}
/* Icon box that holds a card Lottie (lottie/icons/*.json). */
.card-icon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  background: var(--color-surface-sunken);
  border: 2px solid var(--color-border);
}
.card-icon .lottie {
  width: 68px;
  height: 68px;
  opacity: 0;
  transition: opacity 0.3s;
}
.card-icon .lottie.is-live {
  opacity: 1;
}

.steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}
@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: 0 4px 0 var(--color-border);
  padding: 22px;
  position: relative;
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--color-cta);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 3px 0 var(--color-cta-lip);
  /* Corner badge, so the step icon (Lottie) can sit centred at the top of the card. */
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
}
.step h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}
.step p {
  margin: 0;
  color: var(--color-text-2);
}

.band {
  background: var(--color-surface);
  border-top: 2px solid var(--color-border);
  border-bottom: 2px solid var(--color-border);
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin-inline: auto;
}
.faq details {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--color-border);
  padding: 4px 16px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  font-size: 17px;
  padding: 14px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
/* Small "?" badge before each question. The "/ ''" alt text keeps screen readers from reading it. */
.faq summary::before {
  content: '?';
  content: '?' / '';
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #fee4c3;
  color: var(--color-brand-lip);
  font-weight: 900;
  font-size: 16px;
}
/* Chevron: points down when closed, up when open (a rotated border corner, so it needs no icon file). */
.faq summary::after {
  content: '';
  flex: none;
  margin-inline-start: auto;
  width: 9px;
  height: 9px;
  border-right: 3px solid var(--color-brand);
  border-bottom: 3px solid var(--color-brand);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.faq details p {
  margin: 0 0 16px;
  color: var(--color-text-2);
  font-weight: 600;
}

/* Waitlist form */
.waitlist {
  background: linear-gradient(160deg, #fffdf9 0%, #e2f2fb 55%, #dcf5d6 100%);
  border: 2px solid var(--color-border);
  border-radius: 28px;
  box-shadow: 0 6px 0 var(--color-border);
  padding: 32px 24px;
}
@media (min-width: 720px) {
  .waitlist {
    padding: 40px 44px;
  }
}
.waitlist h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
}
.waitlist .sub {
  margin: 0 0 22px;
  color: var(--color-text-2);
  max-width: 48ch;
}
.form-row {
  display: grid;
  gap: 12px;
}
@media (min-width: 640px) {
  .form-row.email-row {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--color-text-2);
}
.field input,
.field select {
  height: 52px;
  border-radius: 14px;
  border: 2px solid var(--color-border);
  background: var(--color-surface-sunken);
  padding: 0 14px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text);
  outline: none;
  width: 100%;
}
.field input:focus,
.field select:focus {
  border-color: var(--color-info);
  background: #fff;
}
.hp {
  position: absolute;
  inset-inline-start: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
.form-msg {
  margin-top: 14px;
  font-weight: 700;
  min-height: 1.4em;
}
.form-msg.ok {
  color: var(--color-primary-lip);
}
.form-msg.err {
  color: var(--color-danger);
}
.legal-tiny {
  margin-top: 12px;
  font-size: 13px;
  color: var(--color-text-2);
}
.legal-tiny a {
  color: #1d6a96;
  text-decoration: underline;
}
/* Two selects side by side (why are you learning · language). */
@media (min-width: 640px) {
  .form-row.pair {
    grid-template-columns: 1fr 1fr;
  }
}
/* Free-PDF card chrome, shared by the home waitlist cards and the blog lead-magnet block. */
.waitlist-head {
  text-align: center;
}
.waitlist-head .sub {
  margin-inline: auto;
}
.waitlist form {
  max-width: 680px;
  margin-inline: auto;
}
.field-submit {
  align-self: end;
}
.pdf-tag {
  display: inline-block;
  background: var(--color-brand-lip);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.pdf-sub {
  font-family: 'Permanent Marker', cursive;
  color: var(--color-brand-lip);
  font-size: 20px;
  margin: 0 0 10px;
}
.lead-magnet {
  margin-top: 32px;
}

/* Article page: prose + lead-magnet side panel (js/lead-panel.js). The panel column exists from the first paint
   and the panel only toggles visibility, so showing it never shifts the article. */
.article-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}
.lead-panel {
  visibility: hidden;
  opacity: 0;
}
.lead-panel.is-visible {
  visibility: visible;
  opacity: 1;
}
.lead-panel.is-dismissed {
  display: none;
}
.lead-card {
  position: relative;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 4px 0 var(--color-border);
  padding: 20px;
}
.lead-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 900;
}
.lead-card .sub {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--color-text-2);
}
.lead-card .form-row.email-row {
  grid-template-columns: 1fr;
}
.lead-card .form-row.pair {
  grid-template-columns: 1fr;
}
.lead-close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface-sunken);
  color: var(--color-text-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.lead-dismiss {
  display: block;
  margin: 10px auto 0;
  border: 0;
  background: none;
  color: var(--color-text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .lead-panel {
    position: sticky;
    top: 88px;
    transition: opacity 0.3s;
  }
}
/* Phones and tablets: a bottom sheet that slides up (the slide is skipped under prefers-reduced-motion). */
@media (max-width: 1023px) {
  .lead-panel {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 70;
    max-height: 80vh;
    overflow: auto;
    transform: translateY(100%);
    transition:
      transform 0.3s ease-out,
      opacity 0.3s,
      visibility 0.3s;
  }
  .lead-panel.is-visible {
    transform: none;
  }
  .lead-card {
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.14);
  }
}
@media (prefers-reduced-motion: reduce) {
  .lead-panel {
    transition: none;
  }
}

/* Footer */
.site-footer {
  padding: 36px 0 48px;
  color: var(--color-text-2);
  font-size: 14px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid var(--color-border);
  padding-top: 24px;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--color-text-2);
  font-weight: 700;
}
.footer-note {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  max-width: 80ch;
}

/* Inner pages */
.page-hero {
  padding: 40px 0 20px;
}
.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
}
.prose {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 20px;
  box-shadow: 0 4px 0 var(--color-border);
  padding: 28px 24px;
  max-width: 760px;
}
.prose h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 28px 0 10px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  color: var(--color-text-2);
}
.prose ul {
  padding-inline-start: 1.2em;
}

.blog-empty {
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
}
.blog-empty h2 {
  margin: 0 0 8px;
  font-weight: 900;
}
.blog-empty p {
  margin: 0;
  color: var(--color-text-2);
}

/* 404 */
.gone {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}
.gone h1 {
  font-size: 64px;
  margin: 0;
  font-weight: 900;
  color: var(--color-brand);
}

/* --- i18n / RTL readiness (logical properties) --- */
.lang-switch {
  position: relative;
  margin-inline-start: 4px;
}
.lang-switch summary {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-text-2);
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
}
.lang-switch summary::-webkit-details-marker {
  display: none;
}
.lang-switch .flag {
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(59, 51, 48, 0.12);
}
.lang-switch[open] summary {
  color: var(--color-text);
}
.lang-switch ul {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--color-border);
  min-width: 200px;
  z-index: 60;
}
.lang-switch li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
}
.lang-switch li a:hover {
  background: var(--color-surface-sunken);
}
.lang-switch li .flag {
  flex: none;
}
.lang-switch .lang-name {
  white-space: nowrap;
}

/* Arabic / Urdu (RTL) — the script fonts are loaded by chrome.mjs (fontsHref); other scripts use the system stack. */
html[lang='ar'] body {
  font-family: 'IBM Plex Sans Arabic', 'Nunito', system-ui, sans-serif;
}
html[lang='ur'] body {
  font-family: 'Noto Nastaliq Urdu', 'IBM Plex Sans Arabic', 'Nunito', system-ui, sans-serif;
  line-height: 1.9;
}
/* Switcher menu: up to 14 entries, scroll past 60vh; visible keyboard focus. */
.lang-switch ul {
  max-height: 60vh;
  overflow: auto;
}
.lang-switch summary:focus-visible,
.lang-switch li a:focus-visible {
  outline: 2px solid var(--color-info);
  outline-offset: 2px;
}
/* Flex/grid rows, stickers and list markers use logical properties, so dir="rtl" mirrors them with no overrides. */

/* Blog (generated by www/scripts/build-site.mjs): breadcrumbs, article list, article meta and sources. */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-2);
}
.crumbs li + li::before {
  content: '›';
  margin-inline-end: 8px;
  color: var(--color-text-muted);
}
.crumbs a {
  color: var(--color-text-2);
}
.post-list {
  display: grid;
  gap: 16px;
}
.post-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.post-card h2 a {
  color: var(--color-text);
}
.post-meta {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--color-text-2);
}
.prose h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 22px 0 8px;
}
.prose blockquote {
  margin: 16px 0;
  padding-inline-start: 16px;
  border-inline-start: 4px solid var(--color-border);
  color: var(--color-text-2);
}
.prose pre {
  overflow-x: auto;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--color-surface-sunken);
}
.prose img {
  border-radius: 12px;
}
.prose .table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}
.md-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}
.md-table th,
.md-table td {
  text-align: start;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 2px solid var(--color-border);
}
.md-table th {
  font-weight: 800;
}
.article-sources {
  padding-inline-start: 1.2em;
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* Cookie consent bar (js/analytics.js). Fixed to the bottom, Panna surface, brand buttons; the lead side panel
   on phones sits below it in z-order so the choice is always reachable. */
.consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 24px rgba(59, 51, 48, 0.08);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.consent-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}
.consent-text {
  flex: 1 1 260px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-2);
}
.consent-text a {
  color: var(--color-text);
  font-weight: 800;
  text-decoration: underline;
}
.consent-actions {
  display: flex;
  align-items: center;
  gap: 8px 16px;
}
.consent .btn-link {
  background: none;
  border: 0;
  padding: 8px 4px;
  font: inherit;
  font-weight: 700;
  color: var(--color-text-2);
  cursor: pointer;
}
.consent .btn-link:hover {
  color: var(--color-text);
}
