/* Collarless site styles, v5: Morning walk, 2026-11-02.
   Source of truth: Figma file pYzXkzhGezXPwNvO7Undqq. v4 was readable but
   Yeheli found it plain, so v5 keeps its size rules and adds the brand.

   Rules for this file, and why:
   - Body is 20px on a phone and 21px on desktop. Nothing a buyer has to read
     sits under 17px. These carry over from v4.
   - Cream ground, navy text: 13:1, so the warmth costs no legibility.
   - Colours come from the photos: cream linen, navy, honey fur, rust.
   - One colour job each. Navy is the buy button. Green is "yes", red is
     "collar" and "no", always beside a word or icon. Rust is emphasis only.
   - Young Serif has one weight, so headings stay at 400; 700 would fake a bold.
     Its 1 reads like an I, so step numbers and pins use Nunito Sans.
   - Nothing moves on its own. No ticker, no scroll reveal, no hover lift. */

:root {
  --color-bg: #FBF3E4;
  --color-bg-surface: #FFFBF3;
  --color-bg-warm: #F4E7CF;
  --color-bg-tint: #F4E7CF;
  --color-bg-note: #F9E4B5;
  --color-text: #172A4A;
  --color-text-2: #33415C;
  --color-accent: #A5481F;
  --color-brand: #172A4A;
  --color-brand-strong: #172A4A;
  --color-action: #172A4A;
  --color-action-strong: #0E1C33;
  --color-no: #9E2A1C;
  --color-yes: #2A6340;
  --color-mark: #E3A73F;
  --color-line: #E5D3B3;
  --color-line-strong: #8A7C66;
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --r: 14px;
  --r-lg: 20px;
}

* { box-sizing: border-box; }
/* 17px base in a percentage, so a phone set to larger text still scales. */
html { -webkit-text-size-adjust: 100%; font-size: 106.25%; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--sans); font-size: 1.1875rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-brand); text-underline-offset: .16em; }

/* ---------- type ---------- */
h1, h2, h3 {
  font-family: var(--serif); font-weight: 400; color: var(--color-text);
  margin: 0 0 .45em; line-height: 1.16; text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); line-height: 1.12; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0 0 1em; }
ul { padding-left: 20px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.prose { max-width: 680px; }
.center { text-align: center; }
.lede { font-size: 1.3rem; line-height: 1.5; }
.quiet { color: var(--color-text-2); font-size: 1.05rem; }

.eyebrow {
  display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.35;
  color: var(--color-accent); margin-bottom: 10px;
}

/* In the headline the emphasis is rust type; elsewhere a soft honey marker. */
h1 mark { white-space: nowrap; background: none; color: var(--color-accent); padding: 0; }
mark, .hl {
  color: inherit; padding: 0 .08em; border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(transparent 12%, var(--color-bg-note) 12%, var(--color-bg-note) 94%, transparent 94%);
}

/* ---------- announcement + header ---------- */
.bar {
  background: var(--color-brand-strong); color: #fff; font-size: 1rem; line-height: 1.35;
  text-align: center; padding: 9px 16px;
}
.bar strong { font-weight: 700; }
header.top { background: var(--color-bg); border-bottom: 1px solid var(--color-line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  text-decoration: none; color: var(--color-text);
  font-family: var(--serif); font-size: 1.6rem; font-weight: 400;
}
.logo svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 26px; align-items: center; font-size: 1.05rem; }
.nav a:not(.btn) { color: var(--color-text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--color-action); color: #fff; text-decoration: none; font-weight: 700;
  padding: 10px 30px; min-height: 62px; border-radius: 999px; border: 0;
  font-size: 1.25rem; line-height: 1.2; text-align: center; cursor: pointer; font-family: var(--sans);
  transition: background .15s;
}
.btn:hover { background: var(--color-action-strong); }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid var(--color-brand); outline-offset: 2px;
}
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 46px; padding: 6px 20px; font-size: 1.05rem; }
.btn-ghost {
  background: transparent; color: var(--color-brand); border: 2px solid var(--color-brand);
}
.btn-ghost:hover { background: var(--color-bg-note); }
.btn-row { display: flex; gap: 10px 22px; flex-wrap: wrap; align-items: center; margin-bottom: 0; }
.text-link { font-weight: 700; font-size: 1.1rem; padding: 10px 0; display: inline-block; }

/* ---------- sections + bands ---------- */
section { padding: 72px 0; }
.band { background: var(--color-bg-warm); }
.band-tint { background: var(--color-bg-tint); }
.sec-head { max-width: 760px; margin: 0 auto 36px; text-align: center; }
.sec-head p { font-size: 1.2rem; }

/* ---------- cards + grids ---------- */
.card { background: var(--color-bg-surface); border: 1.5px solid var(--color-line); border-radius: var(--r-lg); }
.grid2 { display: grid; gap: 32px; }
.grid4 { display: grid; gap: 16px; }
@media (min-width: 800px) {
  .grid2 { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .grid2.start { align-items: start; }
  .grid2.rev > :first-child { order: 2; }
  .grid4 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 1040px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }

.feature { padding: 22px; }
.feature .ic {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-brand); color: var(--color-mark); display: grid; place-items: center; margin-bottom: 14px;
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; font-size: 1.1rem; line-height: 1.5; }

/* ---------- trust row ---------- */
.trust { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.trust li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.1rem; line-height: 1.4; }
.trust svg { width: 26px; height: 26px; flex: none; color: var(--color-brand); margin-top: 1px; }
.trust strong { display: block; font-weight: 700; }
@media (min-width: 800px) { .trust.four { grid-template-columns: repeat(2, 1fr); } }

/* ---------- hero ----------
   The grid exists for the phone: headline, then the dog, then the text.
   In v3 the photo started 939px down, so a buyer who clicked a picture of
   a dog got a screen of words. */
.hero { padding: 28px 0 56px; }
.hero-grid { display: grid; gap: 22px; }
.hero-head h1 { margin-bottom: 0; }
.hero figure { margin: 0; }
.hero-shot {
  width: 100%; aspect-ratio: 896 / 1100; object-fit: cover; object-position: 50% 60%;
  /* The arch: the one shape the hero photo always sits in. */
  border-radius: 50vw 50vw var(--r-lg) var(--r-lg);
}
.hero figcaption { font-weight: 700; color: var(--color-text); font-size: 1.1rem; margin-top: 10px; }
@media (min-width: 800px) {
  .hero-shot { border-radius: 300px 300px var(--r-lg) var(--r-lg); }
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr .82fr; gap: 12px 56px; align-items: start; }
  .hero-head { grid-column: 1; grid-row: 1; }
  .hero-body { grid-column: 1; grid-row: 2; }
  .hero figure { grid-column: 2; grid-row: 1 / span 2; }
  .hero-shot { aspect-ratio: 896 / 1152; object-position: 50% 50%; }
}

/* ---------- breed list ---------- */
.breeds {
  background: var(--color-bg-tint); padding: 20px; text-align: center;
  font-size: 1.15rem; line-height: 1.7; font-weight: 700; color: var(--color-text);
}
.breeds p { max-width: 900px; margin: 0 auto; }
.breeds span { white-space: nowrap; }
.breeds span:not(:last-child)::after { content: " \00B7 "; font-weight: 400; }

/* ---------- figures ---------- */
figure { margin: 0; }
figure img { border-radius: var(--r-lg); }
figcaption { font-size: 1.05rem; line-height: 1.45; color: var(--color-text-2); margin-top: 10px; }
.callout {
  background: var(--color-bg-note);
  padding: 18px 22px; border-radius: var(--r-lg); margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- how it works ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 26px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.steps .n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--color-brand); color: var(--color-mark); font-weight: 700; font-size: 1.25rem;
}
.steps strong { display: block; margin-bottom: 4px; font-size: 1.3rem; line-height: 1.3; font-family: var(--serif); font-weight: 400; }
.steps p { margin: 0; }

/* Numbered pins sit on the photo at a fixed size, so they stay readable on
   a phone. The numbers match the steps beside the photo. */
.pinned { position: relative; }
.pinned img { width: 100%; }
.pin {
  position: absolute; width: 38px; height: 38px; margin: -19px 0 0 -19px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--color-brand); color: var(--color-mark); font-weight: 700; font-size: 1.1rem;
  border: 2.5px solid #fff;
}
.ring {
  position: absolute; border: 3px dashed var(--color-yes); border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.ring-label {
  position: absolute; background: var(--color-yes); color: #fff; font-weight: 700;
  font-size: 1rem; line-height: 1.2; padding: 6px 11px; border-radius: 8px;
}

.pull { display: grid; gap: 14px; margin-top: 18px; }
@media (min-width: 560px) { .pull { grid-template-columns: 1fr 1fr; } }
.pull > div { padding: 16px 18px; border-radius: var(--r); border: 1.5px solid var(--color-line); background: var(--color-bg-surface); }
.pull .k { font-weight: 700; font-size: 1.05rem; }
.pull .no-k { color: var(--color-no); }
.pull .yes-k { color: var(--color-yes); }
.pull strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.25; margin: 2px 0; }
.pull p { margin: 0; font-size: 1.05rem; line-height: 1.4; }

/* ---------- compare table ----------
   On a phone v3 hid the Collarless column off the side of the screen (table
   414px wide in a 335px box). Here each row label takes a full line and the
   three answers sit under it, so all three columns stay in view. */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--color-bg-surface); border: 1.5px solid var(--color-line); border-radius: var(--r-lg);
  overflow: hidden; font-size: 1.1rem; line-height: 1.3;
}
.compare th, .compare td { padding: 14px 12px; border-bottom: 1px solid var(--color-line); text-align: center; vertical-align: middle; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { background: var(--color-bg-warm); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.compare td:first-child, .compare th:first-child { text-align: start; font-weight: 700; }
.compare th.us { background: var(--color-brand); color: var(--color-mark); }
.compare td.us { background: var(--color-bg-note); font-weight: 700; }
.compare .no { color: var(--color-no); font-weight: 700; }
.compare .yes { color: var(--color-yes); font-weight: 700; }
.compare .no::before { content: "\2715\00A0"; }
.compare .yes::before { content: "\2713\00A0"; }
@media (max-width: 719px) {
  .compare { display: block; font-size: 1.02rem; }
  .compare thead, .compare tbody { display: block; }
  .compare tr { display: grid; grid-template-columns: repeat(3, 1fr); }
  .compare thead th:first-child { display: none; }
  .compare th { padding: 10px 6px; font-size: 1rem; display: flex; align-items: center; justify-content: center; text-align: center; }
  /* Block, not flex: the tick is ::before and would split from wrapped text. */
  .compare td { padding: 10px 6px; display: block; align-content: center; text-align: center; }
  .compare td:first-child { grid-column: 1 / -1; background: var(--color-bg-warm); text-align: start; padding: 10px 12px; }
  .compare tr:last-child td:first-child { border-bottom: 1px solid var(--color-line); }
}

/* ---------- size cards ---------- */
.sizes { display: grid; gap: 12px; }
@media (min-width: 800px) { .sizes { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.size { padding: 18px 20px; display: grid; grid-template-columns: 62px 1fr; gap: 0 12px; align-items: center; }
.size .k { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--color-accent); font-weight: 400; }
.size .w { font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
.size .b { grid-column: 1 / -1; font-size: 1.08rem; line-height: 1.4; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--color-line); }
@media (min-width: 800px) { .size { display: block; } .size .w { margin-top: 8px; } }

/* ---------- offer card ---------- */
.offer { padding: 28px; }
.offer .price { font-family: var(--serif); font-size: 3.2rem; line-height: 1; font-weight: 400; }
.was { color: var(--color-text-2); text-decoration: line-through; font-size: 1.25rem; margin-inline-start: 12px; }
.save {
  display: inline-block; background: var(--color-bg-note); color: var(--color-text); font-weight: 700;
  border: 1.5px solid var(--color-mark); font-size: 1.02rem; line-height: 1.2; padding: 4px 10px; border-radius: 8px;
  margin-inline-start: 10px; vertical-align: middle;
}
.offer ul:not(.guar) { padding-left: 0; list-style: none; margin: 22px 0 24px; }
.offer ul:not(.guar) li { display: flex; gap: 12px; margin: 12px 0; line-height: 1.4; }
.offer ul:not(.guar) li svg { width: 24px; height: 24px; color: var(--color-yes); flex: none; margin-top: 2px; }
.sub-cta { font-size: 1.05rem; line-height: 1.4; margin: 14px 0 0; text-align: center; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1.5px solid var(--color-line); }
.faq details:first-child { border-top: 1.5px solid var(--color-line); }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.2rem; line-height: 1.35; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 60px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.9rem; line-height: 1; color: var(--color-accent); font-weight: 400; flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 20px; }

/* ---------- honest block ---------- */
.honest { padding: 26px; border-inline-start: 6px solid var(--color-brand); }
.honest p { font-size: 1.1rem; }

/* ---------- footer ---------- */
footer { padding: 36px 0 120px; border-top: 1px solid var(--color-line); font-size: 1.05rem; line-height: 1.5; color: var(--color-text-2); background: var(--color-bg-warm); }
footer p { margin: 0 0 12px; }
footer a { color: var(--color-text); display: inline-block; padding: 10px 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; }

/* ---------- sticky mobile bar ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--color-bg-surface); border-top: 1.5px solid var(--color-line);
  padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 14px;
}
.sticky .sp { font-family: var(--serif); font-size: 1.5rem; line-height: 1.1; flex: none; }
.sticky .sp small { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--color-text-2); margin-top: 1px; }
.sticky .btn { flex: 1; min-height: 54px; padding: 6px 12px; }
@media (max-width: 899px) { .sticky { display: flex; } .nav { display: none; } }

/* ---------- PDP (order page) ---------- */
.pdp { display: grid; gap: 28px; padding: 26px 0 48px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.gallery .main { border-radius: var(--r-lg); background: var(--color-bg-warm); aspect-ratio: 1; object-fit: cover; width: 100%; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 3px solid transparent; border-radius: 10px; background: var(--color-bg-warm); cursor: pointer; overflow: hidden; aspect-ratio: 1; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.thumbs button[aria-pressed="true"] { border-color: var(--color-brand); }
.buybox { padding: 24px 20px; }
.buybox { background: var(--color-bg-surface); }
.buybox h1 { font-size: clamp(2rem, 3.4vw, 2.5rem); margin-bottom: 8px; }
.rating { display: flex; align-items: center; gap: 9px; font-size: 1.1rem; line-height: 1.4; margin-bottom: 12px; }
.rating svg { width: 24px; height: 24px; color: var(--color-brand); flex: none; }
.pricerow { display: flex; align-items: center; gap: 4px 0; flex-wrap: wrap; margin: 8px 0 18px; }
.pricerow .now { font-family: var(--serif); font-size: 2.8rem; line-height: 1; font-weight: 400; }
label.lbl { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); font-weight: 400; margin: 24px 0 10px; font-size: 1.3rem; line-height: 1.3; }
label.lbl span { font-family: var(--sans); font-weight: 400; font-size: 1.1rem; }

/* Colours carry their name under the swatch; v3 showed an unlabelled dot. */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { width: 72px; min-height: 86px; border-radius: var(--r); border: 2px solid var(--color-line); background: var(--color-bg-surface); cursor: pointer; padding: 6px 2px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; font: inherit; font-size: 1rem; line-height: 1.2; color: var(--color-text); }
.sw[aria-pressed="true"] { border-color: var(--color-brand); background: var(--color-bg-note); box-shadow: inset 0 0 0 1px var(--color-brand); font-weight: 700; }
.sw img { width: 50px; height: 50px; border-radius: 8px; object-fit: cover; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 560px) { .chips { grid-template-columns: repeat(4, 1fr); } }
.chip { border: 2px solid var(--color-line); background: var(--color-bg-surface); border-radius: var(--r); padding: 10px 6px; min-height: 68px; cursor: pointer; font: inherit; color: var(--color-text); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.chip b { font-size: 1.3rem; }
.chip small { font-size: 1rem; margin-top: 3px; }
.chip[aria-pressed="true"] { border-color: var(--color-brand); background: var(--color-bg-note); box-shadow: inset 0 0 0 1px var(--color-brand); }
.sizes-hint { outline: 3px solid var(--color-mark); outline-offset: 5px; border-radius: var(--r); }
.row { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.row .quiet { margin: 0; }
input[type="number"], select { font: inherit; font-size: 1.2rem; min-height: 54px; padding: 8px 12px; border: 2px solid var(--color-line-strong); border-radius: var(--r); background: var(--color-bg-surface); color: var(--color-text); }
input[type="number"] { width: 112px; }
.helper { background: var(--color-bg-tint); border-radius: var(--r); padding: 12px 16px; margin: 10px 0 4px; font-size: 1.1rem; line-height: 1.4; }
.helper.warn { background: var(--color-bg-note); }
.toggle { display: grid; gap: 10px; margin: 10px 0 0; }
.opt { border: 2px solid var(--color-line); background: var(--color-bg-surface); border-radius: var(--r); padding: 14px; cursor: pointer; display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; }
.opt input { margin: 4px 0 0; width: 22px; height: 22px; accent-color: var(--color-brand); }
.opt[data-on="true"] { border-color: var(--color-brand); border-width: 3px; background: var(--color-bg-note); }
.opt .t { font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.opt .d { font-size: 1.05rem; line-height: 1.4; }
.opt .p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; font-weight: 400; white-space: nowrap; text-align: end; }
.opt .p s { display: block; color: var(--color-text-2); font-size: 1.05rem; font-family: var(--sans); font-weight: 400; }
.summary { border-top: 1.5px solid var(--color-line); margin-top: 22px; padding-top: 14px; font-size: 1.1rem; line-height: 1.4; }
.summary .line { display: flex; justify-content: space-between; padding: 4px 0; gap: 16px; }
.summary .line > :last-child { text-align: end; flex: none; max-width: 50%; }
.summary .total { font-weight: 700; font-size: 1.35rem; border-top: 1.5px solid var(--color-line); margin-top: 10px; padding-top: 12px; }
.notice { font-size: 1.05rem; line-height: 1.4; text-align: center; margin: 12px 0 0; }
.guar { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.guar li { display: flex; gap: 10px; align-items: center; font-size: 1.08rem; line-height: 1.35; }
.guar svg { width: 24px; height: 24px; color: var(--color-brand); flex: none; }
@media (min-width: 560px) { .guar { grid-template-columns: 1fr 1fr; } }

@media (max-width: 799px) {
  section { padding: 52px 0; }
}
@media (min-width: 800px) {
  body { font-size: 1.25rem; }
}

/* ---------- blog (added 2026-11-07) ----------
   Same type sizes as the advertorial: body never under 17px, because the
   reader is the same worried owner on a phone. The column is narrow (720px)
   so a line stays readable at 21px. Photos are cropped wide on posts so a
   tall dog portrait does not push the text off the first screen. */
.post { max-width: 760px; padding-top: 28px; padding-bottom: 64px; }
.crumbs { font-size: 1rem; color: var(--color-text-2); margin-bottom: 18px; }
.crumbs a { color: var(--color-text-2); }
.post h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.post-meta { color: var(--color-text-2); font-size: 1.02rem; margin: 0 0 24px; }
.answer {
  background: var(--color-bg-surface); border: 1.5px solid var(--color-line);
  border-inline-start: 6px solid var(--color-mark); border-radius: var(--r-lg);
  padding: 18px 22px; margin: 0 0 28px;
}
.answer p:last-child { margin: 0; }
.answer-k { font-weight: 700; color: var(--color-accent); margin: 0 0 6px; font-size: 1.05rem; }
.post-hero { margin: 0 0 32px; }
.post-hero img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 40%; }
.post-body h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); margin-top: 1.6em; }
.post-body h3 { margin-top: 1.4em; }
.post-body ul, .post-body ol { padding-left: 24px; margin: 0 0 1.1em; }
.post-body li { margin: 0 0 .5em; }
.post-body table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 1.05rem; line-height: 1.4;
  background: var(--color-bg-surface); border: 1.5px solid var(--color-line); border-radius: var(--r);
  display: block; overflow-x: auto;
}
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid var(--color-line); text-align: start; vertical-align: top; }
.post-body th { background: var(--color-bg-warm); font-weight: 700; }
.post-body tr:last-child td { border-bottom: 0; }
.post-body figure { margin: 1.6em 0; }
.post-body blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-inline-start: 4px solid var(--color-line-strong); color: var(--color-text-2); }
.post-faq { margin-top: 48px; }
.post-faq h2, .post-sources h2, .post-related h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.post-cta {
  background: var(--color-bg-note); border-radius: var(--r-lg); padding: 24px; margin: 48px 0;
}
.post-cta-h { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; margin: 0 0 10px; }
.post-sources { margin-top: 40px; }
.post-sources ol { padding-left: 24px; font-size: 1.05rem; line-height: 1.45; }
.post-sources li { margin: 0 0 .6em; overflow-wrap: anywhere; }
.post-note { font-size: 1.02rem; line-height: 1.5; color: var(--color-text-2); margin-top: 20px; }
.post-related { margin-top: 40px; }
.post-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.post-related li a { display: block; font-weight: 700; padding: 6px 0 2px; }
.post-related li span { display: block; font-size: 1.02rem; line-height: 1.45; color: var(--color-text-2); }

.blog-head { padding: 48px 0 8px; }
.blog-head .wrap { max-width: 820px; }
.blog-list { padding-top: 32px; }
.post-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--color-text);
  background: var(--color-bg-surface); border: 1.5px solid var(--color-line); border-radius: var(--r-lg); overflow: hidden;
}
.post-card a:hover .post-card-h { text-decoration: underline; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.post-card .eyebrow { margin: 16px 20px 6px; }
.post-card-h { font-family: var(--serif); font-size: 1.4rem; line-height: 1.22; margin: 0 20px 8px; }
.post-card-d { font-size: 1.05rem; line-height: 1.45; color: var(--color-text-2); margin: 0 20px 12px; }
.post-card-m { font-size: 1rem; color: var(--color-text-2); margin: auto 20px 18px; }
/* Phone: each table row becomes a card. The first cell is the row's title;
   the others carry their column name from data-label (set by the blog build). */
@media (max-width: 640px) {
  .post-body table { display: block; border: 0; background: none; overflow: visible; }
  .post-body thead { display: none; }
  .post-body tbody, .post-body tr, .post-body td { display: block; }
  .post-body tr { background: var(--color-bg-surface); border: 1.5px solid var(--color-line); border-radius: var(--r); margin: 0 0 12px; padding: 4px 0; }
  .post-body td { border: 0; padding: 6px 14px; }
  .post-body td:first-child { font-weight: 700; font-family: var(--serif); font-size: 1.2rem; padding-top: 10px; }
  .post-body td:not(:first-child)::before { content: attr(data-label); display: block; font-weight: 700; font-size: .95rem; color: var(--color-accent); }
  .post-body td[data-label=""]::before { display: none; }
}
