/* Nordhauser — Blog archive
 * Loaded on is_home() (Posts page), non-product archives, and is_singular('post').
 * Tokens shared with main.css :root. Mono = DM Sans (var(--font-mono)).
 * Responsive tail at the bottom — desktop-first, breakpoints 1023 / 639. */

/* Estonian compound words ("kiudtsementplaadid", "puitkarkassile") can
 * exceed grid track widths even with minmax(0, 1fr). Force breaking on every
 * blog heading so a single long word doesn't blow out a card or stat cell.
 * Gotcha 27 picks up the safety net for new grid templates; this picks it up
 * for inline text. */
.nh-blog h1,
.nh-blog h2,
.nh-blog h3,
.nh-blog h4 {
  overflow-wrap: break-word;
}

/* ---------- Breadcrumb (mirrors .nh-cat-crumbs in category.css / shop.css) ----------
 * Same markup contract as the product archive: <div class="container nh-cat-crumbs">
 * wraps WooCommerce's woocommerce_breadcrumb() output. Self-contained here so
 * we don't need to load shop.css on blog routes. */
.nh-blog .woocommerce-breadcrumb {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.04em;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.nh-blog .woocommerce-breadcrumb a {
  color: var(--ink-500);
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  text-decoration: none;
}
.nh-blog .woocommerce-breadcrumb a:hover { color: var(--green-800); }
.nh-blog .nh-cat-crumbs {
  padding-top: 24px;
  padding-bottom: 20px;
  position: relative;
}
/* Full-viewport hairline divider — same trick as .nh-pdp-crumbs::after. */
.nh-blog .nh-cat-crumbs::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  height: 1px;
  background: var(--bone-300);
  pointer-events: none;
}

.blog-hero {
  padding: 36px 0 8px;
}
.blog-hero .title-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--bone-300);
}
.blog-hero .title-row > * { min-width: 0; }
.blog-hero h1 {
  font-family: var(--font-sans);
  font-size: 84px;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.94;
  margin: 0;
}
.blog-hero h1 em {
  font-style: normal;
  color: var(--terra-600);
}
.blog-hero .lede {
  font-size: 16px;
  color: var(--ink-500);
  max-width: 380px;
  line-height: 1.55;
  margin: 0 0 8px auto;
}
.blog-hero .stats {
  display: flex;
  gap: 28px;
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-500);
}
.blog-hero .stats > div { min-width: 0; }
.blog-hero .stats strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin-bottom: 2px;
}

/* ---------- Topic chip row ----------
 * Sticky offset 80 px = header height. Same value used by .sidebar in
 * category.css. On mobile (<640) header goes static (per gotcha 31, also
 * documented at main.css:1533) so the topic-bar drops position too — see
 * mobile override below. */
.topic-bar {
  background: var(--bone-100);
  border-bottom: 1px solid var(--bone-300);
  position: sticky;
  top: 80px;
  z-index: 40;
}
/* .topic-bar > .container handles horizontal alignment with hero/grid;
 * .row only owns vertical padding + chip flex layout. */
.topic-bar .row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 16px;
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.topic-bar .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-500);
  margin-right: 4px;
}
.topic-bar .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--bone-400);
  background: white;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-700);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.topic-bar .chip:hover { border-color: var(--green-700); color: var(--green-800); }
.topic-bar .chip .n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: 0.04em;
}
.topic-bar .chip.active {
  background: var(--green-800);
  color: white;
  border-color: var(--green-800);
}
.topic-bar .chip.active .n { color: rgba(255,255,255,0.7); }
.topic-bar .chip.all.active {
  background: var(--ink-900);
  border-color: var(--ink-900);
}

/* ---------- Featured strip (newest) ---------- */
.featured-strip {
  padding: 40px 0 32px;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
}
.featured-grid > * { min-width: 0; }
.feat-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}
.feat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--bone-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all 0.22s ease;
  /* Gotcha 29 belt — fill the grid track in both axes. <a> can otherwise
   * shrink to content width inside a grid cell on some emission paths. */
  width: 100%;
  height: 100%;
  min-width: 0;
}
.feat-card:hover {
  border-color: var(--green-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feat-card.main { grid-column: 1; }
.feat-card.main .thumb { aspect-ratio: 16 / 11; }
.feat-card.main .body { padding: 32px 36px 36px; }
.feat-card.main h2 {
  font-family: var(--font-sans);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 14px 0 16px;
  text-wrap: pretty;
}
.feat-card.main p {
  font-size: 15.5px;
  color: var(--ink-500);
  line-height: 1.55;
  margin: 0;
  max-width: 60ch;
}
.feat-card.main .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.feat-card.main .card-foot .post-meta { margin-top: 0; }
.feat-card.main .read-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--terra-500);
  color: white;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  width: fit-content;
  flex: 0 0 auto;
}
.feat-card.main .read-cta:hover { background: var(--terra-600); }

.feat-card.side .thumb { aspect-ratio: 16 / 9; }
.feat-card.side .body { padding: 18px 22px 22px; }
.feat-card.side h3 {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 10px 0 0;
  text-wrap: pretty;
}

.feat-card .thumb {
  position: relative;
  background: var(--bone-200);
  overflow: hidden;
}
.feat-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feat-card .freshtag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--terra-500);
  color: white;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  z-index: 2;
  font-weight: 500;
}
.feat-card .freshtag::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: white;
  margin-right: 8px;
  vertical-align: middle;
  animation: nh-blog-blink 2s ease-in-out infinite;
}
@keyframes nh-blog-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.feat-card .topic-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-600);
  font-weight: 500;
}
.feat-card .topic-pill::before {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  margin-right: 10px;
}

.post-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 14px;
  flex-wrap: wrap;
}
.post-meta .read-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--bone-400);
  border-radius: 999px;
  color: var(--ink-700);
}
.post-meta .read-time svg { color: var(--ink-500); }
.post-meta .author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--ink-700);
}
.post-meta .author .av {
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--green-700);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

/* ---------- Archive grid ---------- */
.archive-blog {
  padding: 24px 0 32px;
}
.archive-blog .archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 24px;
}
.archive-blog .archive-head h2,
.archive-blog .archive-head__title {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.archive-blog .archive-head .ct {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-500);
  letter-spacing: 0.06em;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: white;
  border: 1px solid var(--bone-300);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
  min-width: 0;
  /* Gotcha 29 belt — see .feat-card for rationale. */
  width: 100%;
  height: 100%;
}
.post-card:hover {
  border-color: var(--green-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.post-card .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bone-200);
  overflow: hidden;
}
.post-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-card .body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.post-card h4 {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
  margin: 6px 0 6px;
  text-wrap: pretty;
}
.post-card p {
  font-size: 13.5px;
  color: var(--ink-500);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .post-meta {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--bone-300);
  width: 100%;
}

/* wide cards span 2 cols and put thumb on the left */
.post-card.wide {
  grid-column: span 2;
  flex-direction: row;
}
.post-card.wide .thumb {
  flex: 1.1;
  aspect-ratio: unset;
  min-height: 100%;
}
.post-card.wide .body {
  flex: 1;
  padding: 28px 32px;
  justify-content: center;
}
.post-card.wide h4 { font-size: 26px; line-height: 1.15; margin: 10px 0 12px; }
.post-card.wide p {
  font-size: 14.5px;
  -webkit-line-clamp: 3;
}
.post-card.wide .post-meta { border-top: 0; padding-top: 0; margin-top: 16px; }

/* ---------- Pagination ---------- */
.archive-blog .pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 44px 0 16px;
  padding: 24px 0;
  border-top: 1px solid var(--bone-300);
  gap: 16px;
  flex-wrap: wrap;
}
.archive-blog .pager .pages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.archive-blog .pager .pages a,
.archive-blog .pager .pages span {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  color: var(--ink-700);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--font-mono);
  letter-spacing: 0;
}
.archive-blog .pager .pages a:hover { background: var(--bone-200); }
.archive-blog .pager .pages .current {
  background: var(--ink-900);
  color: white;
}
.archive-blog .pager .pages .dots { cursor: default; color: var(--ink-400); }
.archive-blog .pager .info {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-500);
  letter-spacing: 0.06em;
}

/* WP's the_posts_pagination wraps in nav.navigation; map its markup to our skin. */
.archive-blog .pager nav.pagination,
.archive-blog .pager nav.navigation {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}
.archive-blog .pager nav .nav-links {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.archive-blog .pager nav .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  color: var(--ink-700);
  text-decoration: none;
  font-family: var(--font-mono);
}
.archive-blog .pager nav a.page-numbers:hover { background: var(--bone-200); }
.archive-blog .pager nav .page-numbers.current {
  background: var(--ink-900);
  color: white;
}
.archive-blog .pager nav .page-numbers.dots { cursor: default; color: var(--ink-400); }

/* ---------- Empty state ---------- */
.posts-grid .empty {
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--bone-400);
  border-radius: var(--radius-lg);
  background: white;
  grid-column: 1 / -1;
}
.posts-grid .empty h3 {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.posts-grid .empty p { color: var(--ink-500); margin: 0 0 22px; font-size: 14.5px; }
.posts-grid .empty .empty-cta {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--green-800);
  color: white;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
}
.posts-grid .empty .empty-cta:hover { background: var(--green-700); }

/* ---------- SEO outro ---------- */
.seo-outro {
  background: var(--bone-200);
  padding: 64px 0;
  border-top: 1px solid var(--bone-300);
}
.seo-outro .grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
.seo-outro .grid > * { min-width: 0; }
.seo-outro h2 {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  line-height: 1.1;
}
.seo-outro .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--terra-600);
  margin-bottom: 12px;
}
.seo-outro p {
  font-size: 14.5px;
  color: var(--ink-700);
  line-height: 1.65;
  margin: 0 0 14px;
}
.seo-outro .col h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
}
.seo-outro .cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

/* ---------- Responsive ---------- */
/* Convention from CHANGELOG 2026-04-27: desktop-first, layered max-width
 * overrides at 1023 (tablet) and 639 (mobile). Touch targets ≥40 px on mobile. */

@media (max-width: 1023px) {
  .blog-hero { padding: 28px 0 8px; }
  .blog-hero h1 { font-size: 56px; line-height: 0.96; }
  .blog-hero .title-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding-bottom: 22px;
  }
  .blog-hero .lede { max-width: 64ch; margin-left: 0; }

  .nh-blog .nh-cat-crumbs { padding-top: 18px; padding-bottom: 16px; }

  /* Header is still sticky at tablet — keep the 80 px offset (gotcha 31). */
  .topic-bar .row { padding-top: 12px; padding-bottom: 12px; }

  .featured-strip { padding: 28px 0 24px; }
  .featured-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .feat-side { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 20px; }
  .feat-card.main .thumb { aspect-ratio: 16 / 9; }
  .feat-card.main .body { padding: 24px 24px 28px; }
  .feat-card.main h2 { font-size: 30px; }
  .feat-card.main p { font-size: 14.5px; }

  .archive-blog { padding: 16px 0 24px; }
  .archive-blog .archive-head h2,
  .archive-blog .archive-head__title { font-size: 24px; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
  .post-card.wide { grid-column: span 2; flex-direction: column; }
  .post-card.wide .thumb { aspect-ratio: 16 / 10; min-height: 0; }
  .post-card.wide .body { padding: 18px 20px 22px; justify-content: flex-start; }
  .post-card.wide h4 { font-size: 22px; }
  .post-card.wide p { -webkit-line-clamp: 2; font-size: 13.5px; }
  .post-card.wide .post-meta { border-top: 1px dashed var(--bone-300); padding-top: 14px; margin-top: auto; }

  .seo-outro { padding: 48px 0; }
  .seo-outro .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .seo-outro h2 { font-size: 28px; }
}

@media (max-width: 639px) {
  .nh-blog .nh-cat-crumbs { padding-top: 14px; padding-bottom: 12px; }
  .nh-blog .woocommerce-breadcrumb { font-size: 11px; }

  .blog-hero { padding: 20px 0 4px; }
  .blog-hero h1 { font-size: 36px; letter-spacing: -0.03em; }
  /* Stats stay 3-up on mobile (mirrors .cat-head .stats convention in
   * category.css). The longest value, "26. veebr 2026", wraps at its single
   * space when the cell is ≈100 px wide; numbers-only stats stay one line. */
  .blog-hero .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    font-size: 10px;
  }
  .blog-hero .stats strong { font-size: 17px; line-height: 1.05; margin-bottom: 2px; }

  /* Topic bar — un-stickied + horizontal scroll strip pattern (matches PDP
   * bundle filter chips per CHANGELOG 2026-04-27 "horizontal scroll strip"). */
  .topic-bar { position: static; }
  .topic-bar .row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .topic-bar .row::-webkit-scrollbar { display: none; }
  .topic-bar .lbl { display: none; }
  .topic-bar .chip {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 14px;
  }

  /* Featured strip — give the main card real presence at phone width.
   * Taller 4/5 thumb (was 16/9 from tablet) + bigger H2; side cards drop to
   * a 2-up row underneath so the cascade reads big-feature → 2 secondary →
   * compact grid below. */
  .featured-strip { padding: 20px 0 24px; }
  .featured-grid { gap: 14px; }
  .feat-card.main .thumb { aspect-ratio: 4 / 5; }
  .feat-card.main .body { padding: 22px 22px 24px; }
  .feat-card.main h2 { font-size: 28px; line-height: 1.1; margin: 12px 0 12px; }
  .feat-card.main p { font-size: 14px; }
  .feat-card.main .card-foot { margin-top: 18px; gap: 12px; }
  .feat-card.main .read-cta { min-height: 44px; }
  .feat-card .freshtag { top: 12px; left: 12px; padding: 6px 11px; }

  .feat-side { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .feat-card.side .thumb { aspect-ratio: 4 / 3; }
  .feat-card.side .body { padding: 14px 14px 16px; }
  .feat-card.side h3 { font-size: 15px; line-height: 1.2; }
  .feat-card.side .post-meta { gap: 10px; font-size: 10.5px; }

  /* Posts grid — 2-up at phone width. Cards stay scannable: thumb +
   * topic-pill + tight title + meta. Excerpt is dropped (the wide card keeps
   * it for editorial rhythm). */
  .archive-blog .archive-head { gap: 12px; }
  .archive-blog .archive-head h2,
  .archive-blog .archive-head__title { font-size: 22px; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .post-card .body { padding: 12px 14px 16px; gap: 6px; }
  .post-card h4 { font-size: 15px; line-height: 1.22; margin: 4px 0 2px; }
  .post-card p { display: none; }
  .post-card .post-meta { gap: 8px; padding-top: 10px; font-size: 10.5px; }
  .post-card .post-meta .read-time { padding: 3px 7px; font-size: 10px; }
  /* Wide card: full-row feature card. Keeps its excerpt as the editorial
   * pause between scan-rows. */
  .post-card.wide { grid-column: 1 / -1; }
  .post-card.wide .body { padding: 16px 18px 20px; gap: 8px; }
  .post-card.wide h4 { font-size: 20px; line-height: 1.2; margin: 6px 0 6px; }
  .post-card.wide p { display: -webkit-box; -webkit-line-clamp: 2; font-size: 13px; }
  .post-card.wide .post-meta { font-size: 11px; padding-top: 12px; }

  .archive-blog .pager {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 32px 0 8px;
    padding: 20px 0;
  }
  .archive-blog .pager nav.pagination,
  .archive-blog .pager nav.navigation { justify-content: flex-start; }
  .archive-blog .pager nav .page-numbers,
  .archive-blog .pager .pages a,
  .archive-blog .pager .pages span { min-height: 40px; }

  .posts-grid .empty { padding: 56px 20px; }
  .posts-grid .empty h3 { font-size: 20px; }
  .posts-grid .empty .empty-cta { min-height: 44px; padding: 14px 22px; }

  .seo-outro { padding: 36px 0; }
  .seo-outro h2 { font-size: 24px; }
  .seo-outro .cols { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* ================================================================
 * SINGLE POST
 * Editorial layout: hero · cover · 3-col article · related · newsletter.
 * Reading-progress bar pinned at viewport top via fixed position.
 * Responsive: desktop ≥1024 / tablet 640-1023 / mobile <640 (Gotcha 33).
 * ================================================================ */

.nh-article .read-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}
.nh-article .read-progress .bar {
  height: 100%;
  width: 0%;
  background: var(--terra-600);
  transition: width 0.1s linear;
}

/* ---------- Hero ----------
 * H1 + dek + meta-line span the full .container width so they align with
 * the breadcrumb above and the article grid below. Reading-comfort is
 * compromised at very wide viewports but visual coherence wins.
 */
.post-hero { padding: 56px 0 40px; background: var(--bone-100); }
.post-hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--ink-900);
  text-wrap: balance;
}
.post-hero .dek {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-700);
  margin: 0 0 40px;
  text-wrap: pretty;
}
.post-hero .meta-line {
  display: flex; gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--bone-300);
  font-size: 13.5px;
  color: var(--ink-700);
}
.post-hero .meta-line strong { color: var(--ink-900); font-weight: 700; }

/* ---------- Cover ---------- */
.cover-v3 {
  padding: 0 0 56px;
  background: var(--bone-100);
  border-bottom: 1px solid var(--bone-300);
}
.cv3-fig {
  margin: 0;
  aspect-ratio: 21/9;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  background: var(--bone-200);
}
.cv3-fig img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Article grid ---------- */
.article-wrap { padding: 80px 0 100px; background: white; }
.article-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px) 320px;
  gap: 60px;
  align-items: start;
}
.article-grid--no-toc {
  grid-template-columns: minmax(0, 760px) 320px;
}

/* Page variant — no rail. Cap the prose track at 760px so body text stays
 * at a comfortable reading width (~92 chars/line at 17px) instead of
 * stretching to the full 1fr container width (was edge-to-edge feeling).
 * 760 matches the original `.article-grid--no-toc` prose width.
 *
 * With TOC: left-align — TOC anchors to the container's left edge; empty
 * space sits to the right of the prose.
 * Without TOC: center the prose so the empty whitespace is balanced left
 * and right (otherwise the lone prose column hugs the left edge). */
.nh-article--page .article-grid {
  grid-template-columns: 220px minmax(0, 760px);
}
.nh-article--page .article-grid--no-toc {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}
/* Legal H2/H3 carry their own numbering ("1. Üldsätted") — auto-`01`
 * chip would read as visual stutter. Hide the chip in the page TOC. */
.nh-article--page .toc .n { display: none; }
.nh-article--page .toc a { gap: 0; }

/* ---------- TOC ---------- */
.nh-article .toc { position: sticky; top: 24px; padding-top: 6px; }
.nh-article .toc details { border: 0; }
.nh-article .toc summary,
.nh-article .toc .lbl {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  font-weight: 600;
  margin-bottom: 18px;
  list-style: none;
  cursor: default;
}
.nh-article .toc summary::-webkit-details-marker { display: none; }
.nh-article .toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--bone-300);
}
.nh-article .toc ol ol.children {
  margin-left: 14px;
  margin-top: 2px;
  margin-bottom: 4px;
  border-left: 1px solid var(--bone-200);
}
.nh-article .toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0 10px 18px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-500);
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.nh-article .toc ol ol.children a {
  font-size: 12.5px;
  padding: 6px 0 6px 14px;
  color: var(--ink-500);
}
.nh-article .toc a:hover { color: var(--ink-900); }
.nh-article .toc a.active {
  color: var(--ink-900);
  border-left-color: var(--terra-600);
  font-weight: 600;
}
.nh-article .toc a .n {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--terra-600);
  flex-shrink: 0;
}
.nh-article .toc .progress-mini {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-500);
}
.nh-article .toc .progress-mini .b {
  margin-top: 8px;
  height: 3px;
  background: var(--bone-300);
  border-radius: 2px;
  overflow: hidden;
}
.nh-article .toc .progress-mini .b span {
  display: block;
  height: 100%;
  background: var(--terra-600);
  transition: width 0.1s linear;
}

/* ---------- Prose ---------- */
.prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-700);
  min-width: 0;
}
.prose .lead {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-900);
  margin: 0 0 40px;
  font-weight: 400;
  text-wrap: pretty;
}
.prose .lead em { font-style: italic; color: var(--terra-600); font-weight: 500; }
.prose h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 64px 0 20px;
  color: var(--ink-900);
  scroll-margin-top: 120px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--ink-900);
  scroll-margin-top: 120px;
}
.prose p { margin: 0 0 18px; text-wrap: pretty; }
.prose strong { font-weight: 700; color: var(--ink-900); }
.prose em { font-style: italic; }
.prose a {
  color: var(--terra-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--green-800); }
.prose ul,
.prose ol {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
  counter-reset: nh-ol;
}
.prose ul li,
.prose ol li {
  padding: 10px 0 10px 36px;
  border-top: 1px solid var(--bone-200);
  position: relative;
}
.prose ul li:first-child,
.prose ol li:first-child { border-top: 0; padding-top: 4px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 22px;
  width: 14px;
  height: 1.5px;
  background: var(--terra-600);
}
.prose ol li { counter-increment: nh-ol; }
.prose ol li::before {
  content: counter(nh-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 11px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--terra-600);
  font-weight: 600;
}

/* ---------- Spec block ---------- */
.spec-block {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--bone-300);
  border-radius: 4px;
  margin: 28px 0 32px;
  background: var(--bone-100);
}
.spec-block[data-cols="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.spec-block[data-cols="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spec-block[data-cols="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.spec-block[data-cols="6"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.spec-block .s {
  padding: 22px 20px;
  border-right: 1px solid var(--bone-300);
}
.spec-block .s:last-child { border-right: 0; }
.spec-block .k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 10px;
  font-weight: 600;
}
.spec-block .v {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-900);
  letter-spacing: -0.015em;
}
.spec-block .v small {
  display: block;
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- Callouts ---------- */
.callout {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
  padding: 22px 24px;
  margin: 28px 0;
  border-radius: 4px;
  align-items: start;
}
.callout.tip  { background: var(--green-50);  border-left: 3px solid var(--green-800); }
.callout.note { background: var(--bone-100);  border-left: 3px solid var(--ink-700); }
.callout.warn { background: var(--terra-50);  border-left: 3px solid var(--terra-600); }
.callout .ic {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
}
.callout.tip  .ic { background: var(--green-800); }
.callout.note .ic { background: var(--ink-700); }
.callout.warn .ic { background: var(--terra-600); }
.callout > div:last-child { font-size: 14.5px; line-height: 1.55; color: var(--ink-700); }
.callout strong {
  display: block;
  font-size: 13px;
  color: var(--ink-900);
  margin-bottom: 6px;
  font-weight: 700;
}

/* ---------- Pullquote ---------- */
.pullquote {
  padding: 36px 0 32px;
  margin: 36px 0;
  border-top: 1px solid var(--ink-900);
  border-bottom: 1px solid var(--ink-900);
  position: relative;
}
.pullquote::before {
  content: "“";
  position: absolute;
  top: -8px;
  left: -4px;
  font-size: 96px;
  line-height: 1;
  color: var(--terra-600);
  font-family: Georgia, serif;
}
.pullquote p {
  font-size: 26px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--ink-900);
  margin: 0 0 16px 56px;
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-style: italic;
}
.pullquote .who {
  display: block;
  margin-left: 56px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-500);
  text-transform: uppercase;
}

/* ---------- Comparison table ---------- */
.cmp {
  margin: 28px 0 32px;
  border: 1px solid var(--bone-300);
  border-radius: 4px;
  overflow: hidden;
  font-size: 13px;
}
.cmp .cmp-head {
  display: grid;
  background: var(--ink-900);
  color: white;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}
.cmp .cmp-head > div {
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
}
.cmp .cmp-head > div:last-child { border-right: 0; }
.cmp .cmp-head .best { color: var(--terra-400); position: relative; }
.cmp .cmp-head .best::after { content: "★"; margin-left: 6px; }
.cmp-row {
  display: grid;
  border-top: 1px solid var(--bone-200);
}
.cmp-row > div {
  padding: 14px 16px;
  border-right: 1px solid var(--bone-200);
  display: flex;
  align-items: center;
  min-width: 0;
}
.cmp-row > div:last-child { border-right: 0; }
.cmp-row .lbl {
  font-weight: 600;
  color: var(--ink-900);
  background: var(--bone-100);
}
.cmp-row .v { color: var(--ink-700); font-weight: 500; }
.cmp-row .v.good { color: var(--green-800); font-weight: 700; }
.cmp-row .v.warn { color: var(--terra-600); font-weight: 600; }
.cmp-row .v.bad  { color: var(--ink-500); font-weight: 500; opacity: 0.7; }
.cmp-row.foot { background: var(--bone-100); }
.cmp-row.foot .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.cmp-row.foot .price small {
  font-size: 11px;
  color: var(--ink-500);
  font-weight: 500;
  margin-left: 4px;
}

/* ---------- Rail ---------- */
.nh-article .rail {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.rail-card {
  background: white;
  border: 1px solid var(--bone-300);
  padding: 22px;
  border-radius: 4px;
}
.rail-card.calc {
  background: var(--terra-600);
  color: white;
  border-color: var(--terra-600);
}
.rail-card .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--terra-600);
}
.rail-card.calc .lbl { color: rgba(255, 255, 255, 0.75); }
.rail-card h5 {
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}
.rail-card.calc h5 { color: white; }
.rail-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-700);
  margin: 0;
}
.rail-card.calc p { color: rgba(255, 255, 255, 0.85); }
.rail-card .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-900);
  border-bottom: 1.5px solid var(--ink-900);
  padding-bottom: 3px;
  cursor: pointer;
  text-decoration: none;
}
.rail-card.calc .cta { color: white; border-color: white; }
.rail-card.calc .cta:hover { opacity: 0.92; }
.mini-prod {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--bone-200);
  text-decoration: none;
}
.mini-prod:first-of-type { border-top: 0; }
.mini-prod .thumb {
  width: 52px;
  height: 52px;
  border-radius: 4px;
  background: var(--bone-200);
  position: relative;
  overflow: hidden;
}
.mini-prod .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mini-prod .name {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-900);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* Mini-product price.
 * WC's get_price_html() emits two shapes:
 *   - Regular: single .woocommerce-Price-amount span.
 *   - On sale: <del>old</del><ins>new</ins> with screen-reader-text siblings.
 * Layout the wrapper as a baseline-aligned flex row so the struck-through
 * original price + bold sale price sit side by side and wrap on narrow rails
 * (tablet inline-cards layout halves the available width).
 *
 * Don't use `all: unset` on <del>/<ins> — it strips the line-through and
 * leaves the default <ins> underline. Style each explicitly. */
.mini-prod .price {
  font-size: 13px;
  font-weight: 700;
  color: var(--terra-600);
  line-height: 1.25;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.mini-prod .price > small {
  font-size: 10px;
  color: var(--ink-500);
  font-weight: 500;
  margin-left: 3px;
}
.mini-prod .price del {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-500);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.mini-prod .price del .woocommerce-Price-amount,
.mini-prod .price del .woocommerce-Price-currencySymbol {
  color: inherit;
  font-weight: inherit;
}
.mini-prod .price ins {
  text-decoration: none;
  font-weight: 700;
  color: var(--terra-600);
  background: transparent;
}

/* ---------- FAQ ---------- */
.faq { margin: 24px 0 32px; border-top: 1px solid var(--bone-300); }
.faq details { border-bottom: 1px solid var(--bone-300); }
.faq summary {
  padding: 22px 4px;
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pl {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--bone-400);
  display: grid; place-items: center;
  color: var(--ink-700);
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.faq details[open] summary .pl {
  transform: rotate(45deg);
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: white;
}
.faq .a { padding: 0 4px 22px; font-size: 14.5px; line-height: 1.6; color: var(--ink-700); }

/* ---------- Tag/share strip ---------- */
.tag-share {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 48px 0 32px;
  padding: 24px 0;
  border-top: 1px solid var(--bone-300);
  border-bottom: 1px solid var(--bone-300);
  flex-wrap: wrap;
}
.tag-share .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-share .tag {
  padding: 6px 12px;
  border: 1px solid var(--bone-400);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--ink-700);
  font-family: var(--font-mono);
  text-decoration: none;
}
.tag-share .tag:hover { color: var(--ink-900); border-color: var(--ink-900); }
.tag-share .share { display: flex; gap: 6px; align-items: center; }
.tag-share .share span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-right: 8px;
}
.tag-share .share a,
.tag-share .share button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--bone-400);
  background: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-700);
  text-decoration: none;
  padding: 0;
}
.tag-share .share a:hover,
.tag-share .share button:hover {
  background: var(--ink-900);
  color: white;
  border-color: var(--ink-900);
}

/* ---------- Helpful ---------- */
.helpful {
  background: var(--bone-100);
  padding: 24px 28px;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
}
.helpful .q { font-size: 15px; font-weight: 600; color: var(--ink-900); }
.helpful .btns { display: flex; gap: 8px; }
.helpful .btns button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  min-height: 40px;
  border: 1px solid var(--bone-400);
  background: white;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-700);
}
.helpful .btns button:hover { border-color: var(--ink-900); color: var(--ink-900); }
.helpful .btns button.picked.yes { background: var(--green-800); border-color: var(--green-800); color: white; }
.helpful .btns button.picked.no  { background: var(--ink-900);   border-color: var(--ink-900);   color: white; }

/* ---------- Related band ---------- */
.related { padding: 80px 0; background: var(--bone-100); border-top: 1px solid var(--bone-300); }
.related .head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.related .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-600);
  margin-bottom: 10px;
  font-weight: 600;
}
.related h2 {
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
  color: var(--ink-900);
}
.related .all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  min-height: 44px;
  border: 1px solid var(--ink-900);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}
.related .all-link:hover { background: var(--ink-900); color: white; }
.rel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.rel-card {
  background: white;
  border: 1px solid var(--bone-300);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.rel-card:hover { transform: translateY(-2px); }
.rel-card .thumb {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--bone-200);
}
.rel-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.rel-card .body { padding: 20px; }
.rel-card .topic {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra-600);
  margin-bottom: 10px;
  font-weight: 600;
}
.rel-card h4 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  text-wrap: balance;
}
.rel-card .meta {
  display: flex;
  gap: 14px;
  font-size: 11.5px;
  color: var(--ink-500);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* ---------- Responsive: tablet ≤1023 ---------- */
@media (max-width: 1023px) {
  .post-hero { padding: 40px 0 28px; }
  .post-hero h1 { font-size: 44px; }
  .post-hero .dek { font-size: 17px; margin-bottom: 28px; }
  .post-hero .meta-line { gap: 18px; }

  .cover-v3 { padding: 0 0 36px; }
  .cv3-fig { aspect-ratio: 16/9; }

  .article-wrap { padding: 48px 0 64px; }
  .article-grid,
  .article-grid--no-toc {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  /* Page variant collapses to a single 760-cap column, centered. TOC moves
   * to the top of article as `<details>` (existing rule below); the prose
   * track caps + centers so it doesn't stretch full-bleed at tablet either.
   * `minmax(0, 760px)` shrinks naturally below 760 on narrower viewports. */
  .nh-article--page .article-grid,
  .nh-article--page .article-grid--no-toc {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
  }
  .nh-article .toc {
    position: static;
    border: 1px solid var(--bone-300);
    border-radius: 4px;
    padding: 4px 16px;
  }
  .nh-article .toc summary {
    cursor: pointer;
    padding: 14px 0;
    margin-bottom: 0;
  }
  .nh-article .toc details[open] summary { margin-bottom: 12px; }
  .nh-article .toc details[open] { padding-bottom: 16px; }
  .nh-article .toc .progress-mini { display: none; }

  /* Rail stacks vertically below the article (calc card and products card
   * have very different heights — side-by-side leaves an awkward gap below
   * the shorter card). */
  .nh-article .rail {
    position: static;
    flex-direction: column;
    gap: 16px;
  }

  .prose h2 { font-size: 26px; margin: 48px 0 16px; }
  .prose h3 { font-size: 17px; margin: 28px 0 8px; }
  .prose .lead { font-size: 19px; margin-bottom: 28px; }

  .spec-block { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-block .s { border-right: 1px solid var(--bone-300); }
  .spec-block .s:nth-child(2n) { border-right: 0; }
  .spec-block .s:not(:nth-last-child(-n+2)) { border-bottom: 1px solid var(--bone-300); }

  .pullquote p { font-size: 22px; }
  .pullquote::before { font-size: 80px; }

  .related { padding: 56px 0; }
  .related h2 { font-size: 28px; }
  /* When title + all-link can't share a row, the all-link drops to its own
   * line. align-self left so it doesn't centre under the title. */
  .related .head { gap: 12px 16px; }
  .related .head .all-link { align-self: flex-start; }
  .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .rel-card h4 { font-size: 16px; }
}

/* ---------- Responsive: mobile <640 ---------- */
@media (max-width: 639px) {
  .post-hero { padding: 28px 0 20px; }
  .post-hero h1 { font-size: 32px; }
  .post-hero .dek { font-size: 15.5px; margin-bottom: 22px; }
  .post-hero .meta-line { gap: 14px; font-size: 12.5px; padding-top: 16px; }

  .cover-v3 { padding: 0 0 24px; }

  .article-wrap { padding: 32px 0 48px; }
  .article-grid,
  .article-grid--no-toc { gap: 24px; }

  .nh-article .rail { flex-direction: column; }
  /* Header is non-sticky on mobile (gotcha 31). 120px scroll-margin overshoots
   * with a ~120px empty band above the heading after a TOC click — tighten
   * to 24px so the heading lands near the top of the viewport. */
  .prose h2,
  .prose h3 { scroll-margin-top: 24px; }

  /* Rail CTAs (calc card "Proovi kalkulaatorit" + products card "Vaata kõiki
   * tooteid") are inline-flex links ~22px tall — bump tappable area to the
   * 40px floor (gotcha 33) without breaking the underlined visual. */
  .rail-card .cta {
    min-height: 40px;
    padding: 8px 0;
    align-items: center;
  }

  .prose { font-size: 15.5px; line-height: 1.65; }
  .prose .lead { font-size: 17.5px; margin-bottom: 24px; }
  .prose h2 { font-size: 22px; margin: 40px 0 14px; }
  .prose h3 { font-size: 16px; }
  .prose ul li,
  .prose ol li { padding: 10px 0 10px 30px; }

  .spec-block { grid-template-columns: minmax(0, 1fr); }
  .spec-block .s { border-right: 0; border-bottom: 1px solid var(--bone-300); }
  .spec-block .s:last-child { border-bottom: 0; }
  .spec-block .v { font-size: 24px; }

  .callout { padding: 16px 18px; gap: 12px; }
  .callout > div:last-child { font-size: 14px; }

  .pullquote p { font-size: 18px; margin-left: 36px; }
  .pullquote .who { margin-left: 36px; }
  .pullquote::before { font-size: 64px; left: -2px; }

  /* Comparison: collapse to a stacked card-per-row layout. The grid is too
   * wide for 360px; we render each row as a labeled stack. The head row of
   * 4 stacked column labels (Tunnus / Eternit / Swisspearl / Fibrodah) is
   * redundant once cells stack — hide it; each row's own .lbl carries the
   * meaning. */
  .cmp { font-size: 12.5px; }
  .cmp .cmp-head { display: none; }
  .cmp-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .cmp-row > div { padding: 8px 14px; border-right: 0; }
  .cmp-row .lbl { background: var(--bone-100); border-bottom: 1px solid var(--bone-200); }

  .faq summary { font-size: 15px; padding: 18px 4px; }
  .faq summary .pl { width: 32px; height: 32px; }

  .helpful { padding: 18px 20px; gap: 14px; }
  .helpful .btns { width: 100%; }
  .helpful .btns button { flex: 1; justify-content: center; }

  .tag-share { gap: 16px; margin: 32px 0 24px; padding: 18px 0; }
  .tag-share .share span { display: none; }
  .tag-share .share a,
  .tag-share .share button { width: 40px; height: 40px; }

  .related { padding: 36px 0; }
  .related h2 { font-size: 22px; }
  .related .all-link { padding: 10px 18px; font-size: 12.5px; }
  .rel-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rel-card .body { padding: 16px; }
  .rel-card h4 { font-size: 17px; margin-bottom: 12px; }
}
