/* ==========================================================================
   Niwa design system — self-hosted, no CDN, no runtime CSS-in-JS.
   Replaces the Tailwind Play CDN so pages render styled on first paint.
   ========================================================================== */

:root {
  --bg:            #062D10;
  --bg-2:          #04210b;
  --surface:       rgba(6, 78, 59, 0.22);
  --surface-2:     rgba(6, 78, 59, 0.40);
  --border:        rgba(16, 185, 129, 0.20);
  --border-strong: rgba(16, 185, 129, 0.42);
  --green:         #10b981;
  --green-bright:  #34d399;
  --green-soft:    #6ee7b7;
  --green-pale:    #a7f3d0;
  --green-dark:    #064e3b;
  --text:          #f3f4f6;
  --text-2:        #d1d5db;
  --muted:         #9ca3af;
  --muted-2:       #6b7280;
  --amber:         #fbbf24;
  --danger:        #f87171;

  --maxw:    1180px;
  --maxw-rd: 760px;   /* reading measure for articles */
  --radius:  14px;
  --radius-lg: 20px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(120% 90% at 50% -10%, #0d5c2a 0%, rgba(13, 92, 42, 0) 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--green-bright); text-decoration: none; }
a:hover { color: var(--green-soft); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green); color: #04210b; padding: 10px 18px;
  font-weight: 700; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

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

.wrap    { max-width: var(--maxw);    margin-inline: auto; padding-inline: 20px; }
.wrap-rd { max-width: var(--maxw-rd); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-sm { padding-block: clamp(40px, 5vw, 64px); }
.center  { text-align: center; }

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.9rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.12rem, 1.8vw, 1.35rem); }
h4 { font-size: 1rem; }

p { margin: 0 0 1.1em; }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--muted);
  line-height: 1.62;
  max-width: 62ch;
  text-wrap: pretty;
}
.center .lede { margin-inline: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--green-soft);
  margin-bottom: 14px;
}

.muted    { color: var(--muted); }
.small    { font-size: 0.875rem; }
.xsmall   { font-size: 0.8rem; }
.nowrap   { white-space: nowrap; }
.hl       { color: var(--green-bright); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-size: 1rem; font-weight: 650;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(180deg, var(--green) 0%, #0b8f63 100%);
  color: #04210b;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.24);
}
.btn-primary:hover {
  color: #04210b;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.36);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { background: rgba(16, 185, 129, 0.12); color: var(--text); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-row {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
}
.center .btn-row { justify-content: center; }

.appstore-badge { height: 54px; width: auto; transition: transform .18s ease; }
.appstore-badge:hover { transform: translateY(-2px); }

/* ---------- rating ---------- */

.rating { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.center .rating { justify-content: center; }
.stars { color: var(--amber); letter-spacing: 1px; font-size: 0.95rem; }
.rating .val { font-weight: 700; }
.rating .lbl { color: var(--muted); font-size: 0.875rem; }

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

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6, 45, 16, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.13);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 66px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 700; font-size: 1.06rem; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav .btn { padding: 9px 18px; font-size: 0.9rem; border-radius: 11px; }
@media (max-width: 860px) { .nav-links { display: none; } }

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

.hero { padding-block: clamp(44px, 6vw, 84px) clamp(28px, 4vw, 48px); }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 30px; }

.badge-row { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.center .badge-row { justify-content: center; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border-strong);
  background: rgba(16, 185, 129, 0.10);
  color: var(--green-soft);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 0.82rem; font-weight: 600;
}

.hero-media { margin-top: 12px; }
.hero-media img { border-radius: var(--radius-lg); margin-inline: auto; }

/* ---------- cards & grids ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
a.card:hover { border-color: var(--border-strong); transform: translateY(-3px); background: var(--surface-2); }

.card-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--border-strong);
  font-size: 1.15rem;
  margin-bottom: 15px;
}

/* ---------- feature list ---------- */

.feature { display: flex; gap: 15px; align-items: flex-start; }
.feature .card-icon { flex: 0 0 auto; margin-bottom: 0; }
.feature h3 { font-size: 1.06rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; line-height: 1.62; }

/* ---------- steps ---------- */

.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0; display: grid; gap: 18px; }
.steps > li {
  counter-increment: step;
  display: flex; gap: 16px; align-items: flex-start;
}
.steps > li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--border-strong);
  color: var(--green-bright);
  font-weight: 700; font-size: 0.85rem;
  margin-top: 2px;
}
.steps h3 { font-size: 1.02rem; margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 0.94rem; margin-bottom: 0; }

/* ---------- prose (article body) ---------- */

.prose { font-size: 1.03rem; }
.prose > h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin-top: 2.4em; margin-bottom: 0.6em;
  scroll-margin-top: 90px;
}
.prose > h3 {
  font-size: 1.14rem; color: var(--green-pale);
  margin-top: 1.9em; margin-bottom: 0.45em;
  scroll-margin-top: 90px;
}
.prose p, .prose li { color: var(--muted); line-height: 1.78; }
.prose ul, .prose ol { padding-left: 1.35em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.42em; }
.prose li::marker { color: var(--green); }
.prose strong { color: var(--text-2); font-weight: 650; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(52,211,153,0.45); }
.prose a:hover { text-decoration-color: var(--green-soft); }
.prose img { border-radius: var(--radius); margin: 1.6em 0; }
.prose > :first-child { margin-top: 0; }

/* ---------- tables ---------- */

.table-wrap {
  overflow-x: auto;
  margin: 1.9em 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 460px; }
thead { background: rgba(6, 78, 59, 0.55); }
th {
  text-align: left; padding: 11px 15px;
  color: var(--green-soft); font-weight: 650;
  font-size: 0.74rem; letter-spacing: 0.07em; text-transform: uppercase;
  white-space: nowrap;
}
td { padding: 10px 15px; color: var(--muted); border-top: 1px solid rgba(16, 185, 129, 0.11); }
tbody tr:hover { background: rgba(16, 185, 129, 0.045); }
td:first-child { color: var(--text-2); font-weight: 550; }

/* ---------- callout ---------- */

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 1.9em 0;
}
.callout p { color: var(--green-pale); margin-bottom: 0; }
.callout p + p { margin-top: 0.7em; }
.callout strong { color: #d1fae5; }

/* ---------- key-takeaway box (answer-engine friendly) ---------- */

.answer {
  background: linear-gradient(180deg, rgba(16,185,129,0.11), rgba(16,185,129,0.045));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 2em;
}
.answer .eyebrow { margin-bottom: 8px; }
.answer p { color: var(--text-2); font-size: 1.04rem; line-height: 1.68; margin-bottom: 0; }
.answer p + p { margin-top: 0.7em; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 12px; margin-top: 30px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 22px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--border-strong); background: var(--surface-2); }
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 30px 18px 0;
  font-weight: 620; color: var(--text-2); font-size: 1rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--green); font-size: 1.4rem; font-weight: 400; line-height: 1;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--text); }
.faq .faq-body { padding: 0 0 20px; }
.faq .faq-body p { color: var(--muted); font-size: 0.95rem; line-height: 1.72; margin-bottom: 0.8em; }
.faq .faq-body p:last-child { margin-bottom: 0; }
.faq .learn-more { font-weight: 600; font-size: 0.9rem; }
.faq .learn-more::after { content: " →"; }

/* ---------- reviews carousel ----------
   Native scroll-snap does the scrolling, so touch and trackpad work with no JS.
   The arrows and dots are progressive enhancement layered on top. --edge matches
   .wrap's inline padding so cards can bleed to the viewport edge while the first
   one still lines up with the text above it. */

.carousel { --edge: 20px; --card: 430px; --gap: 20px; position: relative; }

.carousel-track {
  display: flex;
  align-items: stretch;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: var(--edge);
  margin-inline: calc(-1 * var(--edge));
  padding: 4px var(--edge) 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 4px; border-radius: var(--radius); }

.review {
  flex: 0 0 min(86vw, var(--card));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  margin: 0;
  transition: border-color .2s ease;
}
.review:hover { border-color: var(--border-strong); }
.review h3 { font-size: 1.05rem; margin: 0; letter-spacing: -0.01em; }
.review blockquote {
  margin: 0; flex: 1;
  color: var(--muted); font-size: 0.97rem; line-height: 1.75;
  text-wrap: pretty;
}
.review figcaption {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: 4px; border-top: 1px solid var(--border);
}
.review .who { color: var(--text-2); font-size: 0.9rem; font-weight: 600; }
.review .src { color: var(--muted-2); font-size: 0.78rem; }

.carousel-controls {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 22px;
}
.carousel-btn {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--green-bright);
  font-size: 1.1rem; line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, opacity .18s ease;
}
.carousel-btn:hover:not(:disabled) { background: rgba(16, 185, 129, 0.14); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }

.carousel-dots { display: flex; gap: 9px; align-items: center; }
.carousel-dots button {
  width: 8px; height: 8px; padding: 0;
  border-radius: 50%; border: 0; cursor: pointer;
  background: var(--border-strong);
  transition: background .2s ease, transform .2s ease, width .2s ease;
}
.carousel-dots button[aria-current="true"] {
  background: var(--green-bright); width: 22px; border-radius: 999px;
}

@media (max-width: 620px) {
  .carousel { --card: 340px; }
  .review { padding: 26px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
}

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(180deg, rgba(6,78,59,0.55), rgba(6,78,59,0.28));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 52px);
  text-align: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lede { margin-bottom: 26px; }

/* ---------- comparison table highlight ---------- */

.col-niwa { background: rgba(16, 185, 129, 0.085); }
th.col-niwa { color: var(--green-bright); }
.yes { color: var(--green-bright); font-weight: 700; }
.no  { color: var(--danger); }
.partial { color: var(--amber); }

/* ---------- breadcrumb ---------- */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--muted-2); margin-bottom: 22px; padding: 0; list-style: none; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--muted-2); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green-bright); }

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

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--muted-2); margin-bottom: 18px; }
.meta .chip { padding: 4px 12px; font-size: 0.76rem; }

/* ---------- table of contents ---------- */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 2.2em;
}
.toc p { font-weight: 650; color: var(--text-2); font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 5px; }
.toc a { color: var(--muted); font-size: 0.94rem; text-decoration: none; }
.toc a:hover { color: var(--green-bright); }

/* ---------- calculator widgets ---------- */

.calc {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 34px);
  margin: 2em 0;
}
.calc-grid { display: grid; gap: 18px 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 0.82rem; font-weight: 620; color: var(--text-2); letter-spacing: 0.01em; line-height: 1.3; }

/* Labels and hints vary in length, and a two-line label would otherwise push its
   input out of line with the fields beside it. Subgrid puts every label, input
   and hint on a shared row, so alignment holds whatever the copy does.
   Browsers without subgrid fall back to the plain flex column above. */
@supports (grid-template-rows: subgrid) {
  .calc-grid { gap: 0 16px; }
  .field {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    gap: 7px;
    margin-bottom: 18px;
  }
  .field label { align-self: end; }
}
.field input, .field select {
  font: inherit; font-size: 0.98rem;
  background: rgba(4, 33, 11, 0.7);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 11px;
  padding: 12px 14px;
  width: 100%;
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2334d399' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 38px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(16,185,129,0.16); }
.field .hint { font-size: 0.76rem; color: var(--muted-2); line-height: 1.35; text-wrap: pretty; }

.result {
  margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--border);
}
.result-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.stat {
  background: rgba(4, 33, 11, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stat .num {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700;
  color: var(--green-bright); line-height: 1.1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
/* two lines reserved so tiles with a one-line label keep the same height */
.stat .lab { font-size: 0.78rem; color: var(--muted); margin-top: 5px; line-height: 1.3; min-height: 2.6em; }

/* visual square-foot grid preview */
.sfg-grid { display: grid; gap: 4px; margin-top: 20px; }
.sfg-cell {
  aspect-ratio: 1;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 0.7rem; color: var(--green-soft); text-align: center; padding: 3px;
  line-height: 1.2;
}

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

.site-footer {
  border-top: 1px solid rgba(16, 185, 129, 0.14);
  background: rgba(4, 33, 11, 0.5);
  padding-block: 52px 30px;
  margin-top: 40px;
}
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1.4fr repeat(3, 1fr); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); margin-bottom: 14px; font-weight: 650; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer li a { color: var(--muted); font-size: 0.89rem; }
.site-footer li a:hover { color: var(--text); }
.footer-about p { color: var(--muted); font-size: 0.89rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(16, 185, 129, 0.12);
  margin-top: 38px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--muted-2); font-size: 0.82rem;
}
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--text-2); }

/* ---------- article components ----------
   Ported from the per-page inline <style> blocks the blog posts used to carry,
   rebuilt on tokens so both the guides and the new pages share one source. */

.pair-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 1.6em 0; }
.pair-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.pair-card.good { border-left: 3px solid var(--green); }
.pair-card.bad  { border-left: 3px solid var(--danger); }
.pair-title { font-size: 0.95rem; font-weight: 620; color: var(--text-2); margin: 0 0 5px; }
.pair-card.good .pair-title::before { content: "✓ "; color: var(--green-bright); font-weight: 700; }
.pair-card.bad  .pair-title::before { content: "✕ "; color: var(--danger); font-weight: 700; }
.pair-body { font-size: 0.87rem; color: var(--muted); line-height: 1.65; margin: 0; }

.info-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 14px;
}
.info-card :last-child { margin-bottom: 0; }
.info-title { font-size: 1rem; font-weight: 620; color: var(--text-2); margin: 0 0 6px; display: flex; align-items: baseline; gap: 11px; flex-wrap: wrap; }
.info-body { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin: 0; }
.info-sub { font-size: 0.85rem; color: var(--green-bright); font-weight: 550; margin: 0 0 6px; }

.marker {
  flex: 0 0 auto;
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #04210b;
  font-size: 0.82rem; font-weight: 700; line-height: 1;
}

.eyebrow-sm {
  display: block;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--green-bright); margin-bottom: 6px;
}

.badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  font-size: 0.75rem; font-weight: 600; color: var(--green-soft);
  padding: 2px 10px; margin-left: 8px;
}

.callout.warning {
  background: rgba(120, 53, 15, 0.3);
  border-color: rgba(245, 158, 11, 0.32);
  border-left-color: var(--amber, #f59e0b);
}
.callout.warning p { color: #fed7aa; }
.callout.warning strong { color: #ffedd5; }

/* mini square-foot bed diagram used inside guides */
.bed-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; max-width: 340px; margin: 1.5em 0 0.6em; }
.bed-grid div {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 9px 4px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-2);
  line-height: 1.25;
}
.figcap { font-size: 0.78rem; color: var(--muted-2); margin: 0 0 1.6em; }

/* ---------- utilities ---------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-s { margin-top: 14px; }
.mt-m { margin-top: 26px; }
.mt-l { margin-top: 44px; }
.stack > * + * { margin-top: 16px; }

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