/* Tailwise Field Guide. Layout: sticky brand bar + section rail, cream reading page, one 680px column
   for articles, three-up card rows for sections. Single brand theme by design (matches tailwise.dog). */
:root {
  color-scheme: light;
  --green: #2D5338;
  --green-deep: #1b3322;
  --green-acc: #36A934;
  --gold: #EDB93C;
  --cream: #F8F5EF;
  --mint: #D4ECCE;
  --white: #FFFFFF;
  --text-dark: #2D5338;
  --text-body: #3A3A3A;
  --text-muted: #D9E8DA;
  --line: rgba(45, 83, 56, .16);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --gutter: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; background: var(--cream); color: var(--text-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--text-dark); line-height: 1.2; text-wrap: balance; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.wrap   { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(680px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* ── nav ── */
.site-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); border-bottom: 1px solid rgba(0,0,0,.07); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); height: 64px; display: flex; align-items: center; gap: 20px; }
.nav-logo img { height: 30px; width: auto; }
.nav-guide { font-size: 14px; font-weight: 700; color: var(--text-dark); text-decoration: none; padding-left: 20px; border-left: 1px solid var(--line); }
.nav-guide:hover { color: var(--green-acc); }
.btn-gold { display: inline-flex; align-items: center; background: var(--gold); color: var(--green); font-weight: 700; font-size: 14px; text-decoration: none; padding: 10px 18px; border-radius: 8px; white-space: nowrap; }
.btn-gold:hover { opacity: .92; }
.nav-shop { margin-left: auto; }
.sec-nav { border-top: 1px solid rgba(0,0,0,.06); overflow-x: auto; scrollbar-width: none; }
.sec-nav::-webkit-scrollbar { display: none; }
.sec-nav ul { list-style: none; display: flex; gap: 28px; max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
.sec-nav a { display: block; padding: 11px 0; font-size: 14px; font-weight: 500; color: var(--text-dark); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.sec-nav a:hover { color: var(--green-acc); }
.sec-nav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--green); }

/* ── hero ── */
.hero { background: var(--green); padding-block: 64px 56px; }
.hero-sec { padding-block: 40px 44px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.hero h1 { color: var(--white); font-size: clamp(32px, 5vw, 52px); font-weight: 800; line-height: 1.1; max-width: 16ch; }
.hero-sec h1 { font-size: clamp(30px, 4.4vw, 44px); max-width: none; }
.hero-lede { color: var(--text-muted); font-size: 18px; max-width: 60ch; margin-top: 18px; }
.rules { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.18); }
.rules li { color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.rules strong { display: block; color: var(--white); font-size: 15px; margin-bottom: 4px; }

/* ── crumbs ── */
.crumbs { font-size: 13px; margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero .crumbs { color: var(--text-muted); }
.hero .crumbs span[aria-current] { color: var(--white); }
.post-head .crumbs { color: var(--text-body); }
.post-head .crumbs a { color: var(--text-dark); font-weight: 600; }
.post-head .crumbs span[aria-current] { display: none; }

/* ── section blocks + cards ── */
.sec-block { padding-block: 56px 8px; }
.sec-block:last-child { padding-bottom: 72px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 2px solid var(--green); }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; }
.sec-head h2 a { text-decoration: none; }
.sec-line { margin-top: 6px; font-size: 16px; max-width: 62ch; }
.sec-all { font-size: 14px; font-weight: 700; color: var(--text-dark); white-space: nowrap; text-underline-offset: 3px; }
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { min-width: 0; }
.card a { display: flex; flex-direction: column; gap: 12px; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px 22px 20px; text-decoration: none; transition: border-color .15s, transform .15s; }
.card a:hover { border-color: var(--green); transform: translateY(-2px); }
.card h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.card-dek { font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 4px; font-size: 13px; font-weight: 600; color: var(--text-dark); }
.axis { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 100px; }
.ax-long { background: var(--green); color: var(--white); }
.ax-qol  { background: var(--mint); color: var(--green); }
.ax-both { background: var(--white); color: var(--green); box-shadow: inset 0 0 0 1.5px var(--green); }

/* ── article ── */
.post-head { padding-block: 40px 8px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; margin-bottom: 16px; }
.post-head h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; line-height: 1.12; }
.dek { font-size: 20px; line-height: 1.5; color: var(--text-dark); margin-top: 18px; }
.takeaways { background: var(--mint); border-radius: 12px; padding: 22px 24px; margin-block: 32px 8px; }
.takeaways h2 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.takeaways ul { padding-left: 20px; display: grid; gap: 8px; color: var(--text-dark); font-size: 16px; line-height: 1.5; }

.prose { margin-top: 28px; }
.prose h2 { font-size: 26px; font-weight: 800; margin-top: 44px; margin-bottom: 14px; }
.prose h3 { font-size: 19px; font-weight: 700; margin-top: 28px; margin-bottom: 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { padding-left: 22px; margin-bottom: 18px; display: grid; gap: 8px; }
.prose a { color: var(--text-dark); text-underline-offset: 3px; }
.prose sup { font-size: 11px; line-height: 0; margin-left: 1px; }
.prose sup a { text-decoration: none; font-weight: 700; color: var(--green-acc); padding: 0 2px; }
.prose sup a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; margin-block: 8px 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.prose th { background: var(--green); color: var(--white); text-align: left; font-weight: 600; padding: 11px 14px; }
.prose td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: rgba(212, 236, 206, .35); }

.tonight, .callout, .calc { border-radius: 12px; padding: 22px 24px; margin-block: 28px; }
.tonight h3, .callout h3, .calc h3 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
.tonight { background: var(--green); color: var(--text-muted); }
.tonight h3 { color: var(--gold); }
.tonight p, .tonight li { color: var(--text-muted); }
.tonight strong { color: var(--white); }
.tonight sup a, .tonight a { color: var(--gold); }
.callout { background: var(--white); border: 1.5px solid var(--gold); }
.tonight p:last-child, .callout p:last-child, .tonight ul:last-child, .callout ul:last-child { margin-bottom: 0; }

.calc { background: var(--white); border: 1px solid var(--line); }
.calc label { display: block; font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.calc input { font: inherit; font-size: 20px; font-weight: 700; color: var(--text-dark); width: 120px; max-width: 100%; padding: 8px 12px; border: 1.5px solid var(--green); border-radius: 8px; background: var(--cream); }
.calc dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0 0; }
.calc dt { font-size: 13px; line-height: 1.4; }
.calc dd { margin: 4px 0 0; font-size: 36px; font-weight: 800; line-height: 1; color: var(--text-dark); font-variant-numeric: tabular-nums; }
.calc-note { font-size: 13px; margin-top: 14px; }

.faq, .sources { margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--green); }
.faq > h2, .sources > h2 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.qa { margin-bottom: 18px; }
.qa h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.qa p { font-size: 16px; }
.sources ol { padding-left: 22px; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.sources li { overflow-wrap: anywhere; scroll-margin-top: 130px; }
.sources a { color: var(--text-dark); text-underline-offset: 3px; }
.formula { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.5; }
.formula p { flex: 1 1 320px; min-width: 0; }
.formula a { font-weight: 700; color: var(--text-dark); white-space: nowrap; text-underline-offset: 3px; }
.editorial { margin-top: 32px; font-size: 14px; line-height: 1.55; }
.signature { margin-top: 28px; font-size: 22px; font-weight: 800; color: var(--text-dark); letter-spacing: -.01em; }

/* ── footer ── */
.site-footer { background: var(--green-deep); padding: 60px var(--gutter) 36px; margin-top: 24px; }
.footer-grid { max-width: 1160px; margin: 0 auto 44px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.f-logo img { height: 26px; width: auto; margin-bottom: 14px; }
.f-blurb { font-size: 14px; color: var(--text-muted); line-height: 1.6; max-width: 280px; }
.f-col h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--white); margin-bottom: 14px; }
.f-col ul { list-style: none; display: grid; gap: 8px; }
.f-col a { font-size: 14px; color: var(--text-muted); text-decoration: none; }
.f-col a:hover { color: var(--white); }
.footer-bottom { max-width: 1160px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 13px; color: var(--text-muted); line-height: 1.7; display: grid; gap: 6px; }
.f-note { max-width: 80ch; }

@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  .nav-guide { display: none; }
  .hero { padding-block: 44px 40px; }
  .dek { font-size: 18px; }
  .prose { margin-top: 28px; }
.prose h2 { font-size: 23px; }
  .sec-nav ul { gap: 22px; }
  .calc dl { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card a { transition: none; } }

/* ── product FAQ ── */
.nav-faq { border-left: 0; padding-left: 0; font-weight: 500; }
.nav-guide[aria-current="page"] { color: var(--green-acc); }
.rules a { color: var(--white); text-underline-offset: 3px; }
.faq-page { padding-block: 32px 64px; }
.fq-toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.fq-toc a { display: inline-block; font-size: 14px; font-weight: 600; color: var(--text-dark); text-decoration: none; padding: 7px 14px; border: 1.5px solid var(--green); border-radius: 100px; }
.fq-toc a:hover { background: var(--green); color: var(--white); }
.fq-group { margin-top: 44px; scroll-margin-top: 130px; }
.fq-group > h2 { font-size: 24px; font-weight: 800; padding-bottom: 12px; border-bottom: 2px solid var(--green); }
.fq { border-bottom: 1px solid var(--line); }
.fq summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 0; }
.fq summary::-webkit-details-marker { display: none; }
.fq summary::after { content: '+'; flex: none; font-size: 24px; line-height: 1; font-weight: 500; color: var(--text-dark); }
.fq[open] summary::after { content: '\2212'; }
.fq summary h3 { font-size: 18px; font-weight: 700; line-height: 1.35; }
.fq-a { padding-bottom: 20px; display: grid; gap: 10px; }
.fq-a .more { font-size: 15px; font-weight: 700; color: var(--text-dark); text-underline-offset: 3px; }
.fq-cta { margin-top: 28px; }
@media (max-width: 560px) { .nav-faq { display: inline; font-size: 13px; } .nav-shop { padding: 9px 12px; font-size: 13px; } }
@media (max-width: 560px) { .nav-inner { gap: 12px; } .nav-logo img { height: 24px; } .nav-faq { white-space: nowrap; } }

/* ── images ── */
.card a { padding: 0 0 20px; overflow: hidden; }
.card a > *:not(.card-img) { margin-inline: 22px; }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-fig { max-width: 908px; margin: 28px auto 0; padding-inline: var(--gutter); }
.post-fig img { width: 100%; border-radius: 12px; aspect-ratio: 16 / 9; object-fit: cover; }
.post-fig figcaption { font-size: 12px; margin-top: 8px; opacity: .75; }
