/* NaptimeLedger — marketing site
   Soft blues/greens, professional, mobile-first */

:root {
  --navy: #0f3d4c;
  --navy-deep: #0a2d38;
  --teal: #1a7a6d;
  --teal-mid: #2a9d8f;
  --teal-light: #e6f5f2;
  --sky: #e8f1f5;
  --cream: #f7faf9;
  --sand: #f0ebe3;
  --ink: #1c2b33;
  --muted: #5a6b73;
  --line: #d5e0e4;
  --white: #ffffff;
  --amber: #f4a261;
  --amber-bg: #fff4e8;
  --danger: #c45c4a;
  --danger-bg: #fdf0ee;
  --ok: #1a7a6d;
  --ok-bg: #e6f5f2;
  --shadow: 0 8px 28px rgba(15, 61, 76, 0.08);
  --shadow-sm: 0 2px 10px rgba(15, 61, 76, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1080px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--muted); }
ul { color: var(--muted); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 720px); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: var(--teal); }
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--teal-mid), var(--navy));
  display: grid; place-items: center;
  color: white; font-size: 0.85rem; font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal) !important;
  color: white !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--navy) !important; text-decoration: none !important; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 0.4rem 0.55rem;
  cursor: pointer; color: var(--navy);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.15rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.65rem 0.5rem; }
  .nav-cta { text-align: center; margin-top: 0.35rem; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--navy); color: white; }
.btn-secondary { background: white; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(255,255,255,0.35); color: white; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: white; }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(42,157,143,0.18), transparent),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(15,61,76,0.08), transparent),
    linear-gradient(180deg, var(--sky) 0%, var(--cream) 100%);
  padding: 3.5rem 0 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }
.hero-note { font-size: 0.88rem; color: var(--muted); }
.hero-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.hero-card h3 { margin-bottom: 0.4rem; }
.hero-card ul { margin: 0.6rem 0 0; padding-left: 1.15rem; }
.hero-card li { margin-bottom: 0.35rem; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.stat strong { display: block; color: var(--navy); font-size: 1.15rem; }
.stat span { font-size: 0.78rem; color: var(--muted); }

/* Sections */
.section { padding: 3.25rem 0; }
.section-alt { background: white; border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.25rem; }
.section-head p { margin-bottom: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (min-width: 801px) and (max-width: 980px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card h3 { margin-bottom: 0.35rem; }
.card .price {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0.4rem 0 0.15rem;
}
.card .price small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--amber);
  display: block;
  margin-top: 0.15rem;
}
.card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--teal-light);
  color: var(--teal);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.card .tag.bundle { background: var(--amber-bg); color: #b06a2b; }
.card ul { flex: 1; margin: 0.75rem 0 1.25rem; padding-left: 1.15rem; }
.card li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.feature-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal);
  display: grid; place-items: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) { .proof-grid { grid-template-columns: 1fr; } }
.proof {
  background: var(--sky);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.proof strong { color: var(--navy); display: block; margin-bottom: 0.35rem; }
.proof span { font-size: 0.88rem; color: var(--muted); font-style: italic; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  color: white;
  padding: 2.75rem 0;
  text-align: center;
}
.cta-band h2 { color: white; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 34em; margin: 0 auto 1.35rem; }
.cta-band .hero-actions { justify-content: center; }

/* Forms */
.form-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  max-width: 480px;
  margin: 0 auto;
}
label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.35rem;
}
input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: white;
  margin-bottom: 1rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(42,157,143,0.35);
  border-color: var(--teal-mid);
}
.field-hint { font-size: 0.8rem; color: var(--muted); margin: -0.65rem 0 1rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.checkbox-row {
  display: flex; gap: 0.55rem; align-items: flex-start;
  margin-bottom: 1rem; font-size: 0.88rem; color: var(--muted);
}
.checkbox-row input { margin-top: 0.25rem; }

/* Calculator */
.calc-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
}
.calc-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}
.calc-panel h3 {
  font-size: 1.05rem;
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.8rem;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.room-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.room-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.35rem 0.35rem 0.55rem;
  border-bottom: 1px solid var(--line);
}
.room-table td { padding: 0.35rem; vertical-align: middle; }
.room-table input, .room-table select {
  margin: 0; padding: 0.5rem 0.55rem; font-size: 0.88rem;
}
.room-table .col-name { width: 28%; }
.room-table .col-sqft { width: 18%; }
.room-table .col-use { width: 42%; }
.room-table .col-del { width: 12%; text-align: center; }
.btn-icon {
  background: transparent; border: none; color: var(--muted);
  cursor: pointer; font-size: 1.1rem; padding: 0.25rem 0.4rem;
  border-radius: 6px;
}
.btn-icon:hover { background: var(--danger-bg); color: var(--danger); }
.hours-grid { display: grid; gap: 0.85rem; }
.hours-row {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 0.7fr 0.7fr;
  gap: 0.5rem;
  align-items: end;
}
@media (max-width: 640px) {
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row .hrs-label { grid-column: 1 / -1; }
}
.hrs-label { font-size: 0.85rem; color: var(--ink); font-weight: 500; margin-bottom: 0.2rem; }
.hrs-total {
  font-size: 0.85rem; color: var(--muted); text-align: right; padding-bottom: 0.7rem;
}
.hrs-total strong { color: var(--navy); }
.switch-row {
  display: flex; align-items: center; gap: 0.65rem;
  margin: 0.5rem 0 1rem;
}
.results-sticky { position: sticky; top: 5.5rem; }
.result-hero {
  background: linear-gradient(145deg, var(--navy), var(--teal));
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.result-hero .label { font-size: 0.82rem; opacity: 0.85; margin-bottom: 0.35rem; }
.result-hero .big {
  font-size: clamp(2.4rem, 6vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0.2rem 0 0.5rem;
}
.result-hero .sub { font-size: 0.88rem; opacity: 0.9; }
.result-lines {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}
.result-line {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.result-line:last-child { border-bottom: none; }
.result-line span { color: var(--muted); }
.result-line strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.result-line.highlight {
  background: var(--teal-light);
}
.result-line.highlight span, .result-line.highlight strong { color: var(--navy); font-weight: 700; }
.alert {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}
.alert-warn { background: var(--amber-bg); color: #7a4a18; border: 1px solid #f0d4a8; }
.alert-info { background: var(--sky); color: var(--navy); border: 1px solid var(--line); }
.alert-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #b8e0d8; }
.disclaimer-box {
  background: var(--sand);
  border: 1px solid #e2d8c8;
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.25rem 0;
}
.example-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem;
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  color: var(--navy);
  font-weight: 600;
}
.example-chip:hover { border-color: var(--teal); color: var(--teal); }

/* Page hero (inner) */
.page-hero {
  background: linear-gradient(180deg, var(--sky), var(--cream));
  padding: 2.5rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
}
.page-hero p { max-width: 40em; margin-bottom: 0; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }

/* Product detail */
.product-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
  padding: 2.5rem 0;
}
@media (max-width: 800px) { .product-hero { grid-template-columns: 1fr; } }
.product-visual {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  min-height: 280px;
  display: flex; flex-direction: column; justify-content: center;
}
.fake-sheet {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.78rem;
}
.fake-sheet .bar {
  background: var(--navy);
  color: white;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
}
.fake-sheet .row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.fake-sheet .row:nth-child(even) { background: var(--sky); }
.fake-sheet .row.hl { background: var(--teal-light); font-weight: 700; color: var(--navy); }
.include-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.include-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.85rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
}
.include-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0.55rem;
  width: 22px; height: 22px;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 50%;
  font-size: 0.75rem; font-weight: 800;
  display: grid; place-items: center;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 2.75rem 0 1.5rem;
  margin-top: 0;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.site-footer h4 { color: white; font-size: 0.9rem; margin-bottom: 0.75rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: white; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-brand { font-weight: 700; color: white; font-size: 1.05rem; margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.15rem;
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
}
.legal-note { max-width: 52em; font-size: 0.78rem; opacity: 0.7; margin-top: 0.75rem; }

/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.draft-badge {
  display: inline-block;
  background: var(--amber-bg);
  color: #9a5a1a;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  vertical-align: middle;
  margin-left: 0.35rem;
}

/* Guides (long-form SEO) */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 760px;
  margin: 0 auto;
}
.guide-article {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.85rem 2rem;
  box-shadow: var(--shadow-sm);
}
.guide-article h2 {
  margin-top: 2rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}
.guide-article h2:first-of-type {
  margin-top: 1.25rem;
  border-top: none;
  padding-top: 0;
}
.guide-article h3 { margin-top: 1.35rem; }
.guide-article p, .guide-article li { color: var(--ink); font-size: 1.02rem; }
.guide-article p { color: var(--muted); }
.guide-article ul, .guide-article ol { padding-left: 1.25rem; margin: 0 0 1.1rem; }
.guide-article li { margin-bottom: 0.45rem; color: var(--muted); }
.guide-article strong { color: var(--ink); }
.guide-meta {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem;
  font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem;
}
.guide-toc {
  background: var(--sky);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
}
.guide-toc strong {
  display: block; color: var(--navy); font-size: 0.88rem;
  margin-bottom: 0.5rem;
}
.guide-toc ol { margin: 0; padding-left: 1.2rem; }
.guide-toc li { margin-bottom: 0.35rem; font-size: 0.92rem; }
.guide-cta {
  background: linear-gradient(145deg, var(--teal-light), var(--sky));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1.75rem 0;
}
.guide-cta h3 { margin-bottom: 0.35rem; }
.guide-cta p { margin-bottom: 0.85rem; }
.guide-cta .hero-actions { margin: 0; }
.sources {
  font-size: 0.9rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-top: 2rem;
}
.sources h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.sources ul { margin: 0; padding-left: 1.15rem; }
.sources li { margin-bottom: 0.4rem; font-size: 0.88rem; }
.related-guides {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.related-guides ul { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.related-guides li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
.related-guides a { font-weight: 600; color: var(--navy); }
.related-guides a:hover { color: var(--teal); }
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.checklist li {
  position: relative;
  padding: 0.55rem 0.5rem 0.55rem 2rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  margin: 0;
}
.checklist li::before {
  content: "☐";
  position: absolute;
  left: 0.15rem;
  top: 0.5rem;
  color: var(--teal);
  font-size: 1.05rem;
}
.formula-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  background: var(--navy-deep);
  color: rgba(255,255,255,0.92);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
  line-height: 1.55;
}
.guides-index-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}
@media (max-width: 700px) {
  .guides-index-grid { grid-template-columns: 1fr; }
  .guide-article { padding: 1.25rem 1.15rem 1.5rem; }
}
.guide-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.guide-card .tag { margin-bottom: 0.65rem; }
.guide-card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.guide-card h3 a { color: var(--navy); text-decoration: none; }
.guide-card h3 a:hover { color: var(--teal); text-decoration: underline; }
.guide-card p { flex: 1; font-size: 0.95rem; margin-bottom: 0.85rem; }
.guide-card .read-link { font-weight: 600; font-size: 0.92rem; }
