/* ==========================================================================
   The Glucose Field Guide, Ghost theme
   Brand tokens first, everything else references them.
   ========================================================================== */

:root {
  /* Ink and surfaces */
  --thp-ink: #111827;
  --thp-ink-2: #1f2937;
  --thp-muted: #6b7280;
  --thp-faint: #9ca3af;
  --thp-line: #e5e7eb;
  --thp-bg: #f0f0f0;
  --thp-card: #ffffff;
  --thp-tint: #f9fafb;

  /* Signal colours, taken from the newsletter charts */
  --thp-green: #22c55e;
  --thp-green-d: #16a34a;
  --thp-cyan: #06b6d4;
  --thp-purple: #8b5cf6;
  --thp-purple-d: #5b21b6;
  --thp-purple-soft: #ede9fe;
  --thp-red: #ef4444;
  --thp-red-d: #dc2626;
  --thp-red-soft: #fef2f2;
  --thp-green-soft: #f0fdf4;
  --thp-amber: #f59e0b;

  /* Deep hero field */
  --thp-navy: #1e1b4b;
  --thp-navy-2: #312e81;
  --thp-violet: #5b21b6;
  --thp-lilac: #c7d2fe;

  /* Shape */
  --thp-radius: 14px;
  --thp-radius-sm: 10px;
  --thp-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  --thp-shadow-lift: 0 10px 30px rgba(17, 24, 39, 0.12);
  --thp-wrap: 1200px;
  --thp-text: 850px;

  --thp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --thp-grad: linear-gradient(90deg, #22c55e, #06b6d4, #8b5cf6);
}

/* --------------------------------------------------------------- base --- */

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

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

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

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

a { color: var(--thp-purple-d); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0; color: var(--thp-ink); line-height: 1.2; font-weight: 800; }
p { margin: 0 0 14px; }

:focus-visible {
  outline: 3px solid var(--thp-purple);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ------------------------------------------------------------ layout --- */

.thp-wrap {
  width: 100%;
  max-width: var(--thp-wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.thp-wrap-narrow { max-width: calc(var(--thp-text) + 60px); }

.thp-sec { padding: 72px 0; }
.thp-sec-tint { background: #e9e9ec; }
.thp-sec-head { padding-top: 56px; }

.thp-text { max-width: var(--thp-text); }

.thp-headwrap { margin-bottom: 32px; }
.thp-headwrap-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.thp-h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #fff;
}
.thp-h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.thp-lede { font-size: 18px; color: var(--thp-muted); margin: 0; }
.thp-p { font-size: 17px; line-height: 1.75; margin: 0 0 14px; }
.thp-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--thp-muted);
  font-style: italic;
  margin: 14px 0 0;
}

.thp-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--thp-purple-d);
  background: var(--thp-purple-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.thp-pill-light {
  color: var(--thp-lilac);
  background: rgba(255, 255, 255, 0.12);
}

.thp-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  vertical-align: middle;
}

/* ------------------------------------------------------------ header --- */

.thp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
}
.thp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.thp-header-line { height: 2px; background: var(--thp-grad); }

.thp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.thp-brand:hover { text-decoration: none; }
.thp-brand-logo { max-height: 32px; width: auto; }
.thp-brand-mark { display: flex; }
.thp-brand-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--thp-ink);
}

.thp-nav { display: flex; align-items: center; gap: 24px; }
.thp-nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.thp-nav-item a {
  font-size: 15px;
  font-weight: 600;
  color: var(--thp-ink-2);
  text-decoration: none;
}
.thp-nav-item a:hover { color: var(--thp-purple-d); text-decoration: none; }

.thp-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 9px;
  background: none;
  border: 1px solid var(--thp-line);
  border-radius: var(--thp-radius-sm);
  cursor: pointer;
}
.thp-burger span {
  display: block;
  height: 2px;
  background: var(--thp-ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.thp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.thp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.thp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------- buttons, forms --- */

.thp-btn {
  display: inline-block;
  padding: 13px 22px;
  border: none;
  border-radius: var(--thp-radius-sm);
  background: var(--thp-ink);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.thp-btn:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--thp-shadow-lift);
}
.thp-btn-sm { padding: 10px 16px; font-size: 14px; }
.thp-btn-light { background: var(--thp-green); color: #04260f; }
.thp-btn-light:hover { background: #1db153; color: #04260f; }
.thp-btn-ghost {
  background: transparent;
  color: var(--thp-ink);
  border: 1.5px solid var(--thp-ink);
}
.thp-btn-ghost:hover { background: var(--thp-ink); color: #fff; }

.thp-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 22px 0 0;
}
.thp-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 13px 16px;
  border-radius: var(--thp-radius-sm);
  border: 1.5px solid var(--thp-line);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--thp-ink);
}
.thp-input::placeholder { color: var(--thp-faint); }
.thp-form-light .thp-input { border-color: rgba(255, 255, 255, 0.25); }

.thp-success,
.thp-error {
  flex: 1 0 100%;
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 600;
  display: none;
}
.thp-success { color: var(--thp-green); }
.thp-error { color: #fca5a5; }
form[data-members-form].success .thp-success { display: block; }
form[data-members-form].error .thp-error { display: block; }

/* -------------------------------------------------------------- hero --- */

.thp-hero {
  background: linear-gradient(135deg, var(--thp-navy) 0%, var(--thp-navy-2) 55%, var(--thp-violet) 100%);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.thp-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--thp-grad);
}
.thp-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: start;
}
.thp-hero-copy { max-width: var(--thp-text); }
.thp-hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--thp-lilac);
  margin: 0;
  max-width: 54ch;
}
.thp-hero-fine { font-size: 13px; color: rgba(199, 210, 254, 0.8); margin: 12px 0 0; }

.thp-hero-chart {
  margin: 0;
  background: #fff;
  border-radius: var(--thp-radius);
  padding: 16px 6px 8px;
  box-shadow: var(--thp-shadow-lift);
}
.thp-chartbox { min-height: 240px; }
.thp-chartbox svg { display: block; width: 100%; height: auto; }
.thp-chart-caption {
  text-align: center;
  font-size: 12px;
  color: var(--thp-faint);
  font-style: italic;
  padding: 6px 10px 4px;
  margin: 0;
}
.thp-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 6px 2px;
  font-size: 13px;
  color: var(--thp-ink-2);
}
.thp-legend-item { display: flex; align-items: center; gap: 6px; }
.thp-legend-dot { width: 14px; height: 2px; border-radius: 1px; }

/* ------------------------------------------------------------- split --- */

.thp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.thp-split-visual { position: sticky; top: 96px; }

/* ----------------------------------------------------- compare device --- */

.thp-compare {
  display: flex;
  border-radius: var(--thp-radius);
  overflow: hidden;
  border: 1px solid var(--thp-line);
  background: #fff;
}
.thp-compare-side { flex: 1 1 0; min-width: 0; padding: 22px 10px; text-align: center; }
.thp-compare-bad { background: var(--thp-red-soft); }
.thp-compare-good { background: var(--thp-green-soft); }
.thp-compare-emoji { font-size: 34px; line-height: 1; }
.thp-compare-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 8px;
  color: var(--thp-ink-2);
}
.thp-compare-bad .thp-compare-label { color: var(--thp-red-d); }
.thp-compare-good .thp-compare-label { color: var(--thp-green-d); }
.thp-compare-value { font-size: clamp(26px, 6vw, 34px); font-weight: 800; margin-top: 6px; line-height: 1; }
.thp-compare-bad .thp-compare-value { color: var(--thp-red); }
.thp-compare-good .thp-compare-value { color: var(--thp-green); }
.thp-compare-unit { font-size: 11px; color: var(--thp-faint); margin-top: 4px; }
.thp-compare-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 0 10px;
  z-index: 1;
}
.thp-compare-badge-num {
  color: var(--thp-green);
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.thp-compare-badge-label { font-size: 10px; font-weight: 600; color: var(--thp-faint); margin-top: 5px; }

/* ------------------------------------------------------- myth reveals --- */

.thp-myths { display: flex; flex-direction: column; gap: 10px; max-width: var(--thp-text); }
.thp-myth {
  border-radius: 12px;
  border: 1.5px solid var(--thp-line);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.thp-myth.is-open { border-color: #fecaca; background: var(--thp-red-soft); }
.thp-myth-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.thp-myth-emoji { font-size: 30px; flex-shrink: 0; line-height: 1; }
.thp-myth-info { flex: 1; min-width: 0; }
.thp-myth-name { display: block; font-size: 16px; font-weight: 700; color: var(--thp-ink); }
.thp-myth-sub { display: block; font-size: 14px; color: var(--thp-muted); margin-top: 3px; }
.thp-myth.is-open .thp-myth-sub { color: var(--thp-red-d); font-weight: 700; }
.thp-myth-tap { font-size: 12px; font-weight: 700; color: var(--thp-faint); flex-shrink: 0; }
.thp-myth-chart { padding: 0 10px 12px; }
.thp-myth-chart-inner { background: var(--thp-tint); border-radius: var(--thp-radius-sm); padding: 10px 2px 6px; }
.thp-myth-chart-inner svg { display: block; width: 100%; height: auto; }

/* -------------------------------------------------------- pull quote --- */

.thp-quote {
  margin: 28px 0 0;
  max-width: var(--thp-text);
  padding: 20px 22px;
  border-left: 4px solid var(--thp-purple);
  background: var(--thp-purple-soft);
  border-radius: 0 var(--thp-radius-sm) var(--thp-radius-sm) 0;
}
.thp-quote-text {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.45;
  color: var(--thp-purple-d);
}

/* ---------------------------------------------------------- day tabs --- */

.thp-days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-width: var(--thp-text);
}
.thp-day {
  background: #fff;
  border: 1.5px solid var(--thp-line);
  border-radius: 12px;
  padding: 16px 6px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.thp-day:hover { transform: translateY(-2px); box-shadow: var(--thp-shadow); }
.thp-day.is-active { border-color: var(--thp-purple); background: #faf5ff; }
.thp-day-emoji { display: block; font-size: 24px; line-height: 1; }
.thp-day-letter {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--thp-muted);
}
.thp-day.is-active .thp-day-letter { color: var(--thp-purple-d); }

.thp-day-panel {
  margin-top: 14px;
  max-width: var(--thp-text);
  background: #fff;
  border: 1px solid var(--thp-line);
  border-radius: var(--thp-radius);
  padding: 22px;
  box-shadow: var(--thp-shadow);
}
.thp-day-panel-name { font-size: 18px; font-weight: 800; color: var(--thp-ink); margin-bottom: 8px; }
.thp-day-panel-desc { margin: 0; font-size: 16px; line-height: 1.65; color: var(--thp-ink-2); }

/* ------------------------------------------------------- post cards --- */

.thp-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.thp-card {
  background: var(--thp-card);
  border-radius: var(--thp-radius);
  box-shadow: var(--thp-shadow);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.thp-card:hover { transform: translateY(-3px); box-shadow: var(--thp-shadow-lift); }
.thp-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.thp-card-link:hover { text-decoration: none; }
.thp-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--thp-tint); }
.thp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.thp-card-body { padding: 20px; }
.thp-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--thp-faint);
  margin-bottom: 10px;
}
.thp-card-title { font-size: 19px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.thp-card-excerpt { font-size: 15px; line-height: 1.6; color: var(--thp-muted); margin: 0 0 12px; }
.thp-card-more, .thp-post-row-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--thp-purple-d);
}
.thp-card:hover .thp-card-more { text-decoration: underline; }

/* --------------------------------------------------------- archive --- */

.thp-posts-list { display: flex; flex-direction: column; gap: 14px; max-width: var(--thp-text); }
.thp-post-row {
  background: var(--thp-card);
  border-radius: var(--thp-radius);
  box-shadow: var(--thp-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.thp-post-row:hover { transform: translateY(-2px); box-shadow: var(--thp-shadow-lift); }
.thp-post-row-link { display: block; padding: 22px; color: inherit; text-decoration: none; }
.thp-post-row-link:hover { text-decoration: none; }
.thp-post-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--thp-faint);
  margin-bottom: 8px;
}
.thp-post-row-title { font-size: 21px; font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.thp-post-row-excerpt { font-size: 15px; line-height: 1.6; color: var(--thp-muted); margin: 0 0 10px; }
.thp-post-row:hover .thp-post-row-more { text-decoration: underline; }

.thp-empty {
  grid-column: 1 / -1;
  background: var(--thp-card);
  border: 1.5px dashed var(--thp-line);
  border-radius: var(--thp-radius);
  padding: 44px 28px;
  text-align: center;
}
.thp-empty-mark { display: inline-flex; margin-bottom: 12px; }
.thp-empty-title { font-size: 20px; margin-bottom: 8px; }
.thp-empty-text {
  font-size: 15px;
  color: var(--thp-muted);
  max-width: 44ch;
  margin: 0 auto 18px;
}

.thp-page-intro { margin-bottom: 28px; }

/* --------------------------------------------------------- article --- */

.thp-article { background: #fff; }
.thp-article-head { padding: 56px 0 0; }
.thp-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--thp-faint);
  margin-bottom: 14px;
  padding: 0 30px;
}
.thp-article-tag { color: var(--thp-purple-d); }
.thp-article-title {
  font-size: clamp(28px, 4.6vw, 42px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.18;
  padding: 0 30px;
}
.thp-article-excerpt {
  font-size: 19px;
  line-height: 1.6;
  color: var(--thp-muted);
  margin: 16px 0 0;
  padding: 0 30px;
}
.thp-article-rule {
  height: 2px;
  background: var(--thp-grad);
  border-radius: 1px;
  margin: 26px 30px 0;
}

.thp-article-image { margin: 26px 30px 30px; }
.thp-article-image img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--thp-radius);
}
.thp-article-image figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--thp-faint);
  font-style: italic;
  margin-top: 10px;
}

/* Post body: top padding 0, sides 30px desktop */
.thp-article-body { padding: 0 30px; font-size: 18px; line-height: 1.75; color: var(--thp-ink-2); }
.thp-article-body > * { max-width: var(--thp-text); margin-left: auto; margin-right: auto; }
.thp-article-body p { margin: 0 0 20px; }
.thp-article-body h2 { font-size: 26px; margin: 38px 0 14px; }
.thp-article-body h3 { font-size: 21px; margin: 30px 0 12px; }
.thp-article-body ul, .thp-article-body ol { margin: 0 0 20px; padding-left: 24px; }
.thp-article-body li { margin-bottom: 8px; }
.thp-article-body a { text-decoration: underline; }
.thp-article-body img { border-radius: var(--thp-radius); }
.thp-article-body figure { margin: 28px auto; }
.thp-article-body figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--thp-faint);
  font-style: italic;
  margin-top: 10px;
}
.thp-article-body blockquote {
  margin: 28px auto;
  padding: 18px 22px;
  border-left: 4px solid var(--thp-purple);
  background: var(--thp-purple-soft);
  border-radius: 0 var(--thp-radius-sm) var(--thp-radius-sm) 0;
  font-style: italic;
  font-weight: 600;
  color: var(--thp-purple-d);
}
.thp-article-body blockquote p:last-child { margin-bottom: 0; }
.thp-article-body hr {
  border: none;
  height: 2px;
  background: var(--thp-line);
  margin: 38px auto;
}

/* Ghost wide and full cards reach past the text column */
.thp-article-body .kg-width-wide { max-width: 1040px; }
.thp-article-body .kg-width-full { max-width: 100%; }
.thp-article-body .kg-card { margin-bottom: 26px; }

.thp-article-foot {
  padding: 34px 30px 64px;
  max-width: var(--thp-text);
  margin: 0 auto;
}
.thp-article-disclaimer {
  font-size: 13px;
  font-style: italic;
  color: var(--thp-faint);
  border-top: 1px solid var(--thp-line);
  padding-top: 18px;
  margin: 0 0 16px;
}
.thp-article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.thp-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--thp-purple-d);
  background: var(--thp-purple-soft);
  padding: 5px 11px;
  border-radius: 999px;
}
.thp-tag:hover { text-decoration: none; background: #ddd6fe; }
.thp-article-back { font-size: 14px; font-weight: 700; }

/* -------------------------------------------------------------- cta --- */

.thp-cta-sec { padding-bottom: 80px; }
.thp-cta {
  background: linear-gradient(135deg, var(--thp-navy) 0%, var(--thp-navy-2) 55%, var(--thp-violet) 100%);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.thp-cta-line { height: 3px; background: var(--thp-grad); }
.thp-cta-body { padding: 48px 40px 44px; }
.thp-cta-title { color: #fff; max-width: 20ch; }
.thp-cta-sub { color: var(--thp-lilac); font-size: 17px; margin: 0; max-width: 52ch; }
.thp-cta-fine { font-size: 13px; color: rgba(199, 210, 254, 0.8); margin: 12px 0 0; }

/* ----------------------------------------------------------- footer --- */

.thp-footer { background: #fff; border-top: 1px solid var(--thp-line); padding: 48px 0 32px; }
.thp-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.thp-footer-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--thp-ink);
}
.thp-footer-desc { font-size: 15px; color: var(--thp-muted); margin: 8px 0 0; max-width: 42ch; }
.thp-footer-nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.thp-footer-nav a { font-size: 15px; font-weight: 600; color: var(--thp-ink-2); }
.thp-footer-nav a:hover { color: var(--thp-purple-d); }

.thp-footer-note {
  border-top: 1px solid var(--thp-line);
  padding-top: 20px;
  margin-bottom: 20px;
}
.thp-footer-note p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--thp-faint);
  margin: 0;
  max-width: 76ch;
}

.thp-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--thp-faint);
}
.thp-footer-legal { display: flex; gap: 16px; }
.thp-footer-legal a { color: var(--thp-faint); }
.thp-footer-legal a:hover { color: var(--thp-purple-d); }

/* ------------------------------------------------------- pagination --- */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  font-size: 15px;
  font-weight: 600;
}
.pagination a { color: var(--thp-purple-d); }
.page-number { color: var(--thp-muted); }

/* --------------------------------------------------------- charting --- */

@keyframes thpPulse { 0% { r: 5; opacity: 0.5; } 100% { r: 22; opacity: 0; } }
.thp-pulse { animation: thpPulse 2s infinite; }
@keyframes thpFade { from { opacity: 0; } to { opacity: 1; } }
.thp-area { opacity: 0; animation: thpFade 0.8s ease-out forwards; }
.thp-ann { opacity: 0; animation: thpFade 0.5s ease-out forwards; }

/* ------------------------------------------------------- responsive --- */

@media (max-width: 980px) {
  .thp-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .thp-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .thp-split-visual { position: static; }
  .thp-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .thp-wrap { padding: 0 18px; }
  .thp-sec { padding: 52px 0; }
  .thp-hero { padding: 52px 0 60px; }

  .thp-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--thp-line);
    padding: 8px 18px 18px;
    display: none;
    box-shadow: var(--thp-shadow);
  }
  .thp-header.is-open .thp-nav { display: flex; }
  .thp-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .thp-nav-item a {
    display: block;
    padding: 13px 2px;
    border-bottom: 1px solid var(--thp-line);
    font-size: 16px;
  }
  .thp-nav-cta { margin-top: 14px; }
  .thp-burger { display: flex; }
  .thp-header-inner { position: relative; }

  .thp-posts-grid { grid-template-columns: minmax(0, 1fr); }
  .thp-days { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .thp-day { padding: 12px 2px; }
  .thp-day-emoji { font-size: 20px; }
  .thp-day-letter { font-size: 10px; letter-spacing: 0.04em; }

  .thp-compare-side { padding: 18px 6px; }
  .thp-compare-label { font-size: 11px; }

  /* Post body: sides 20px on mobile, top stays 0 */
  .thp-article-head { padding-top: 38px; }
  .thp-article-meta,
  .thp-article-title,
  .thp-article-excerpt { padding: 0 20px; }
  .thp-article-rule { margin: 22px 20px 0; }
  .thp-article-image { margin: 20px 20px 20px; }
  .thp-article-body { padding: 0 20px; font-size: 17px; }
  .thp-article-body h2 { font-size: 23px; }
  .thp-article-body h3 { font-size: 19px; }
  .thp-article-foot { padding: 28px 20px 48px; }

  .thp-cta-body { padding: 36px 24px 34px; }
  .thp-footer-top { flex-direction: column; gap: 20px; }
}

@media (max-width: 420px) {
  .thp-day-letter { font-size: 9px; }
  .thp-myth-btn { padding: 13px; gap: 10px; }
  .thp-myth-emoji { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .thp-area, .thp-ann { opacity: 1; }
  .thp-line { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  .thp-pulse { opacity: 0; }
}
