/* ==========================================================================
   Health Digest — site stylesheet
   1. Tokens
   2. Base
   3. Typography helpers
   4. Buttons and pills
   5. Header and navigation
   6. Hero
   7. Topics
   8. Article cards
   9. Newsletter and standards
  10. Article page
  11. Static pages and forms
  12. Footer
  13. Utilities and responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ink: #11201c;
  --ink-2: #2c3f39;
  --muted: #64776f;
  --muted-2: #86958e;
  --paper: #fbfaf7;
  --paper-2: #f4f1e9;
  --surface: #ffffff;
  --line: #e6e2d7;
  --line-2: #d5d0c2;
  --brand: #0f6b57;
  --brand-deep: #0a4739;
  --brand-soft: #e9f2ee;
  --clay: #c4693f;
  --gold: #dfae4e;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 6px -3px rgba(17, 32, 28, 0.18);
  --shadow: 0 18px 40px -26px rgba(17, 32, 28, 0.42);
  --shadow-lg: 0 34px 70px -40px rgba(17, 32, 28, 0.5);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 2. Base ----------------------------------------------------------------- */
* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--brand);
  color: #fff;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: var(--brand-deep);
}

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

hr {
  border-color: var(--line);
  opacity: 1;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1080;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-size: 0.85rem;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

/* 3. Typography ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.14;
  color: var(--ink);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.display-hero {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.4vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
}

.display-hero em {
  font-style: italic;
  color: var(--brand);
}

.h-section {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--brand);
  opacity: 0.6;
}

.eyebrow--plain::before {
  display: none;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.62;
  color: var(--ink-2);
}

.text-muted-ink {
  color: var(--muted) !important;
}

.serif {
  font-family: var(--serif);
}

/* 4. Buttons and pills ---------------------------------------------------- */
.btn {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.94rem;
  border-radius: 999px;
  padding: 0.72rem 1.5rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px -16px rgba(15, 107, 87, 0.95);
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-deep);
  color: #fff;
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover,
.btn-ink:focus {
  background: #000;
  color: #fff;
}

.btn-outline-ink {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}

.btn-outline-ink:hover,
.btn-outline-ink:focus {
  border-color: var(--ink);
  background: rgba(17, 32, 28, 0.04);
  color: var(--ink);
}

.btn-light-ink {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-light-ink:hover,
.btn-light-ink:focus {
  background: #fff;
  color: var(--ink);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-outline-ink.is-filter-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--brand-soft);
  color: var(--brand-deep);
  white-space: nowrap;
}

.pill--sleep { background: #eceff8; color: #2f3f5c; }
.pill--nutrition { background: #eef3e3; color: #47673f; }
.pill--mind { background: #f2ecf6; color: #56456f; }
.pill--fitness { background: #eceff0; color: #2c4a4a; }
.pill--movement { background: var(--brand-soft); color: var(--brand-deep); }
.pill--ghost { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* 5. Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px -26px rgba(17, 32, 28, 0.6);
  background: rgba(251, 250, 247, 0.95);
}

.site-header .navbar {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.brand-text {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.brand-text span {
  color: var(--brand);
}

.brand-sub {
  display: block;
  font-family: var(--sans);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}

.site-header .nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.55rem 0.85rem !important;
}

.site-header .nav-link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.3rem;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--brand);
}

.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0.35rem 0.55rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%2311201c' stroke-width='2' stroke-linecap='round' d='M4 9h22M4 15h22M4 21h22'/%3E%3C/svg%3E");
}

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    border-top: 1px solid var(--line);
    margin-top: 0.75rem;
    padding: 0.5rem 0 1.25rem;
  }
  .site-header .nav-link::after {
    display: none;
  }
}

/* 6. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(15, 107, 87, 0.1) 0%, rgba(15, 107, 87, 0) 68%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.76rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

.hero-badge .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--paper-2);
}

.hero-media img {
  width: 100%;
  display: block;
  aspect-ratio: 10 / 11;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero-float .icon-chip {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.hero-float strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.3;
}

.hero-float span {
  font-size: 0.74rem;
  color: var(--muted);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.trust-item svg {
  color: var(--brand);
  flex: 0 0 auto;
}

/* 7. Topics --------------------------------------------------------------- */
.topic-card {
  display: block;
  height: 100%;
  padding: 1.5rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.topic-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.topic-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 1.1rem;
}

.topic-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.topic-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
  line-height: 1.5;
}

.topic-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.topic-card:hover .topic-link {
  gap: 0.6rem;
}

/* 8. Article cards -------------------------------------------------------- */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}

.post-thumb {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}

.post-thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}

.post-card:hover .post-thumb img {
  transform: scale(1.04);
}

.post-thumb .pill {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.post-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.35rem 1.35rem 1.5rem;
}

.post-body h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: 0.55rem;
}

.post-body h3 a {
  color: var(--ink);
  background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease), color 0.25s var(--ease);
}

.post-card:hover .post-body h3 a,
.post-body h3 a:hover {
  color: var(--brand-deep);
  background-size: 100% 1px;
}

.post-body p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.post-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted-2);
}

.post-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-2);
}

/* Featured card */
.post-card--featured {
  border-radius: var(--radius-lg);
}

.post-card--featured .post-thumb img {
  aspect-ratio: 2 / 1;
}

.post-card--featured .post-body {
  padding: 1.75rem 1.9rem 1.9rem;
}

.post-card--featured .post-body h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.15;
}

.post-card--featured .post-body p {
  font-size: 1rem;
  max-width: 56ch;
}

.avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* 9. Newsletter and standards --------------------------------------------- */
.band-dark {
  position: relative;
  background: var(--ink);
  color: #eef3f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.band-dark::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(223, 174, 78, 0.28), rgba(223, 174, 78, 0) 65%);
  pointer-events: none;
}

.band-dark h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.band-dark p {
  color: #b7c6c0;
}

.newsletter-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.newsletter-form .form-control {
  flex: 1 1 220px;
  min-width: 0;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  padding: 0 1.25rem;
  font-size: 0.94rem;
}

.newsletter-form .form-control::placeholder {
  color: #93a49d;
}

.newsletter-form .form-control:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none;
  color: #fff;
}

.newsletter-note {
  font-size: 0.74rem;
  color: #8fa199;
  margin-top: 0.85rem;
  margin-bottom: 0;
}

.standard-item {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.standard-item .num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--brand);
  display: block;
  margin-bottom: 0.75rem;
}

.standard-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.standard-item p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* 10. Article page -------------------------------------------------------- */
.progress-track {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1040;
  background: transparent;
  pointer-events: none;
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width 0.1s linear;
}

.article-head {
  padding: clamp(2rem, 4vw, 3.25rem) 0 0;
}

.breadcrumb-plain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--muted-2);
  margin-bottom: 1.35rem;
  padding: 0;
  list-style: none;
}

.breadcrumb-plain a {
  color: var(--muted);
}

.breadcrumb-plain a:hover {
  color: var(--brand);
}

.article-title {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 500;
  margin-bottom: 1rem;
}

.article-dek {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 46ch;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}

.byline strong {
  color: var(--ink);
  font-weight: 600;
}

.byline .avatar {
  width: 36px;
  height: 36px;
  font-size: 0.72rem;
}

.byline .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-2);
}

.article-figure {
  margin: clamp(1.75rem, 3.5vw, 2.5rem) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.article-figure img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.article-figure figcaption {
  padding: 0.75rem 1.15rem;
  font-size: 0.76rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.article-layout {
  padding: clamp(2.25rem, 4vw, 3.25rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.article-body {
  font-size: 1.06rem;
  line-height: 1.78;
  color: var(--ink-2);
  max-width: 66ch;
}

.article-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 0.86;
  padding: 0.15rem 0.35rem 0 0;
  color: var(--brand);
  font-weight: 500;
}

.article-body h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.72rem);
  margin: 2.5rem 0 0.85rem;
  scroll-margin-top: 100px;
}

.article-body h3 {
  font-size: 1.14rem;
  margin: 1.9rem 0 0.6rem;
  scroll-margin-top: 100px;
}

.article-body p {
  margin-bottom: 1.15rem;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.35rem;
  padding-left: 1.2rem;
}

.article-body li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}

.article-body li::marker {
  color: var(--brand);
}

.article-body strong {
  color: var(--ink);
  font-weight: 600;
}

.article-body a {
  border-bottom: 1px solid rgba(15, 107, 87, 0.35);
}

.article-body a:hover {
  border-bottom-color: var(--brand);
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 0.35rem 0 0.35rem 1.5rem;
  border-left: 2px solid var(--brand);
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.45;
  color: var(--ink);
}

.article-body blockquote p {
  margin-bottom: 0.35rem;
}

.article-body blockquote cite {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-style: normal;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.callout {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.callout h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout--warn {
  border-left-color: var(--clay);
  background: #fdf7f3;
  border-color: #f0ddd2;
  border-left-color: var(--clay);
}

.callout--warn h4 {
  color: #a8562f;
}

.takeaway {
  margin: 2.25rem 0;
  padding: 1.6rem 1.75rem;
  background: var(--brand-soft);
  border-radius: var(--radius);
}

.takeaway h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.takeaway ul {
  margin-bottom: 0;
  padding-left: 1.1rem;
}

.takeaway li {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-bottom: 0.4rem;
}

.table-wrap {
  margin: 1.75rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  margin: 0;
  font-size: 0.88rem;
}

.table-wrap thead th {
  background: var(--paper-2);
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table-wrap tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}

.table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap tbody tr:hover {
  background: rgba(15, 107, 87, 0.03);
}

.refs {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.refs h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.refs ol {
  padding-left: 1.1rem;
  margin: 0;
}

.refs li {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.refs a {
  color: var(--muted);
  border-bottom: 1px solid var(--line-2);
  word-break: break-word;
}

.refs a:hover {
  color: var(--brand);
}

/* Sidebar */
.aside-stack {
  position: sticky;
  top: 96px;
}

.aside-stack .side-card {
  position: static;
}

.side-card {
  position: sticky;
  top: 100px;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-card + .side-card {
  margin-top: 1.25rem;
}

.side-card h4 {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1rem;
}

.toc {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--line);
}

.toc li {
  margin: 0;
}

.toc a {
  display: block;
  padding: 0.4rem 0 0.4rem 1rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.toc a:hover,
.toc a.is-active {
  color: var(--brand);
  border-left-color: var(--brand);
}

.toc a.is-active {
  font-weight: 500;
}

.side-fact {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.side-fact strong {
  color: var(--ink);
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.15rem;
}

/* Author box */
.author-box {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.author-box .avatar {
  width: 54px;
  height: 54px;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.author-box h5 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.author-box .role {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.author-box p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.related-strip {
  padding: clamp(2.25rem, 4vw, 3.5rem) 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* 11. Static pages and forms ---------------------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 58ch;
  color: var(--ink-2);
}

.legal-body {
  padding: clamp(2.25rem, 4vw, 3.5rem) 0 clamp(3rem, 6vw, 5rem);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.legal-body h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  margin: 2.25rem 0 0.75rem;
  scroll-margin-top: 100px;
}

.legal-body h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.5rem;
  scroll-margin-top: 100px;
}

.legal-body p,
.legal-body li {
  margin-bottom: 0.9rem;
  max-width: 68ch;
}

.legal-body ul {
  padding-left: 1.2rem;
  margin-bottom: 1.2rem;
}

.legal-body li::marker {
  color: var(--brand);
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  border: 1px solid #c9c3b3;
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.95rem;
  font-size: 0.94rem;
  background: #fdfcfa;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.form-control:hover,
.form-select:hover {
  border-color: #b3ac99;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 87, 0.12);
  background: var(--surface);
  color: var(--ink);
}

.form-control::placeholder {
  color: var(--muted-2);
}

.form-text {
  font-size: 0.76rem;
  color: var(--muted-2);
}

.contact-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
}

.contact-card a {
  margin-top: auto;
  padding-top: 0.35rem;
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.contact-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact-card a {
  font-size: 0.88rem;
  font-weight: 500;
}

.form-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.team-card {
  height: 100%;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.team-card .avatar {
  width: 46px;
  height: 46px;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}

.team-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.1rem;
}

.team-card .role {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
}

.step-row {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.step-row .step-num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--brand);
  flex: 0 0 2.2rem;
  line-height: 1.4;
}

.step-row h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.step-row p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* FAQ */
.faq-list {
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.4;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--brand);
  flex: 0 0 auto;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0;
  padding-bottom: 1.25rem;
  max-width: 68ch;
  font-size: 0.92rem;
  color: var(--muted);
}

/* 12. Footer -------------------------------------------------------------- */
.site-footer {
  background: #0d1a16;
  color: #a8b8b1;
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.75rem;
}

.site-footer .brand-text {
  color: #fff;
}

.site-footer .brand-text span {
  color: var(--gold);
}

.site-footer .brand-sub {
  color: #6e8079;
}

.footer-blurb {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #93a49d;
  max-width: 32ch;
  margin-top: 1.1rem;
}

.footer-title {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e8079;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.55rem;
}

.footer-list a {
  font-size: 0.87rem;
  color: #c3d0ca;
}

.footer-list a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
  color: #6e8079;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal li {
  display: flex;
  align-items: center;
  font-size: 0.78rem;
}

.footer-legal li + li::before {
  content: "|";
  color: #3a4a44;
  margin: 0 0.7rem;
}

.footer-legal a {
  color: #c3d0ca;
}

.footer-legal a:hover {
  color: #fff;
}

.footer-note {
  margin: 1.5rem 0 0;
  font-size: 0.73rem;
  line-height: 1.6;
  color: #7c8d86;
  max-width: 92ch;
}

/* 13. Utilities and responsive -------------------------------------------- */
.bg-paper-2 { background-color: var(--paper-2); }
.bg-surface { background-color: var(--surface); }
.border-line { border: 1px solid var(--line); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.stack-lg > * + * { margin-top: 1.25rem; }
.max-60 { max-width: 60ch; }
.max-68 { max-width: 68ch; }
.section-pad { padding: clamp(2.75rem, 5.5vw, 4.5rem) 0; }
.section-pad-sm { padding: clamp(2rem, 3.5vw, 3rem) 0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--brand);
}

.link-arrow svg {
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.section-head p {
  margin: 0.5rem 0 0;
  font-size: 0.94rem;
  color: var(--muted);
  max-width: 52ch;
}

.footer-logo-mark {
  filter: none;
  opacity: 1;
}

@media (max-width: 767.98px) {
  .hero {
    padding-top: 1.75rem;
  }
  .hero-media {
    margin-top: 0.5rem;
  }
  .hero-float {
    position: static;
    margin: -3.25rem 1rem 0;
  }
  .trust-row {
    gap: 1rem 1.5rem;
  }
  .article-body > p:first-of-type::first-letter {
    float: none;
    font-size: 1rem;
    line-height: inherit;
    padding: 0;
    color: inherit;
  }
  .byline .sep {
    display: none;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .step-row {
    gap: 0.75rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .article-title {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .side-card,
  .related-strip,
  .progress-track {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .article-body {
    font-size: 11pt;
  }
}
