/* Shared by the blog pages. Tokens match styles.css. */
:root {
  --ground: #ffffff; --paper: #fbf8f1; --cream: #ede6d3; --sand: #f5f1e6; --line: #e2dac6;
  --ink: #23261a; --body: #4a4a3c; --muted: #66614f; --olive: #4f5b32; --olive-dark: #3e4826;
  --straw: #d2c29a; --sage: #a3ae6f; --night: #1f2416; --night-text: #f5f1e6; --night-muted: #bdb8a2;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: "Geist", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--olive); }
a:hover { color: var(--olive-dark); }
a:focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

/* Header and footer */
.bl-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(35, 38, 26, 0.08); }
.bl-nav { max-width: 1040px; margin: 0 auto; padding: 0 24px; min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.bl-brand { display: flex; align-items: flex-end; gap: 7px; min-height: 44px; padding: 4px 0; text-decoration: none; color: var(--ink); white-space: nowrap; }
.bl-word { display: flex; flex-direction: column; font-size: 17px; font-weight: 800; line-height: 0.88; letter-spacing: -0.01em; padding-bottom: 6px; }
.bl-word span + span { color: var(--olive); }
.bl-links { display: flex; gap: 20px; flex-wrap: wrap; }
.bl-links a { font-size: 14px; color: var(--body); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.bl-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.bl-foot { border-top: 1px solid var(--line); }
.bl-foot > div { max-width: 1040px; margin: 0 auto; padding: 28px 24px 40px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 12px; line-height: 1.5; color: var(--muted); }
.bl-foot a { display: inline-flex; align-items: center; min-height: 44px; }

/* Blog index */
.bl-hero { background: var(--sand); border-bottom: 1px solid var(--line); }
.bl-hero > div { max-width: 1040px; margin: 0 auto; padding: clamp(64px, 9vw, 112px) 24px clamp(56px, 7vw, 88px); display: flex; flex-direction: column; gap: 18px; }
.bl-kicker { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.bl-hero h1 { max-width: 13ch; font-size: clamp(44px, 7vw, 88px); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.bl-hero p { max-width: 34ch; font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--body); }
.bl-posts { max-width: 1040px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 24px; }
.bl-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s; }
.bl-card:hover { transform: translateY(-3px); border-color: var(--olive); color: var(--ink); }
.bl-thumb { position: relative; aspect-ratio: 16 / 9; background: #2a3020; overflow: hidden; }
.bl-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-thumb .bl-over { clip-path: inset(0 0 0 50%); }
.bl-thumb .bl-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; }
.bl-chip { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(31, 36, 22, 0.75); color: var(--night-text); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.bl-chip i { width: 8px; height: 8px; border-radius: 2px; background: #e834aa; box-shadow: 0 0 0 1.5px #fff; }
.bl-card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.bl-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.bl-tag { padding: 3px 12px; border-radius: 999px; background: var(--straw); color: var(--ink); font-size: 13px; font-weight: 500; }
.bl-card h2 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.bl-card p { font-size: 17px; line-height: 1.5; color: var(--body); }
.bl-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bl-card-foot span:first-child { color: var(--muted); }
.bl-card-foot span:last-child { color: var(--olive); font-weight: 500; }

/* Guide */
.pb-top { background: var(--sand); border-bottom: 1px solid var(--line); }
.pb-top > div { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) 24px clamp(40px, 6vw, 64px); display: flex; flex-direction: column; gap: 16px; }
.pb-top .bl-back { align-self: flex-start; font-size: 15px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.pb-top h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -0.035em; text-wrap: balance; }
.pb-top p { font-size: clamp(19px, 2vw, 22px); line-height: 1.45; color: var(--body); }
.pb-text { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 64px) 24px 0; display: flex; flex-direction: column; gap: 18px; font-size: 18px; line-height: 1.6; color: var(--body); }
.pb-text.pb-later { padding-top: clamp(48px, 7vw, 72px); }
.pb-text h2 { margin-top: 12px; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.pb-text h3 { font-size: 19px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.pb-lead { color: var(--ink); }
.pb-small { font-size: 15px; color: var(--muted); }
.pb-faq { display: flex; flex-direction: column; gap: 20px; }
.pb-scroll { overflow-x: auto; }
.pb-tbl { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; min-width: 560px; }
.pb-tbl th { text-align: left; font-weight: 600; color: var(--ink); padding: 10px 12px 10px 0; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.pb-tbl td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
.pb-ref { font-size: 0.8em; text-decoration: none; vertical-align: super; line-height: 0; }
.pb-note { margin: 12px 0; padding: 24px 28px; border-radius: 24px; background: var(--cream); display: flex; flex-direction: column; gap: 6px; }
.pb-note strong { font-size: 15px; font-weight: 600; color: var(--ink); }
.pb-note span { font-size: 17px; line-height: 1.5; color: var(--body); }
.pb-note.pb-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.pb-note .pb-grow { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pb-sources { padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.pb-sources h2 { margin: 0; font-size: 17px; font-weight: 600; }
.pb-sources ol { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; color: var(--body); }
.pb-sources li:target { background: var(--cream); }
/* Links inside text keep their line height but get a 44px touch box (padding adds to the box, not the line) */
.pb-text a:not(.pb-btn), .pb-sources a, .pb-hint a, .pb-end p a { padding-block: 14px; }
.pb-sources h2.pb-disclaimer { margin-top: 8px; font-size: 15px; font-weight: 400; color: var(--muted); }
.pb-chev::after { content: "\203a"; margin-left: 6px; }

/* Buttons */
.pb-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--olive); color: var(--night-text); text-decoration: none; font-size: 17px; font-weight: 500; white-space: nowrap; }
.pb-btn:hover { background: var(--olive-dark); color: var(--night-text); }
.pb-btn.pb-light { background: var(--sage); color: var(--night); }
.pb-btn.pb-light:hover { background: #b4bf80; color: var(--night); }

/* Dark panels and the survey map */
.pb-dark { background: var(--night); color: var(--night-text); margin-top: clamp(48px, 7vw, 80px); }
.pb-dark a:focus-visible { outline-color: var(--sage); }
.pb-dark > div { max-width: 1040px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) 24px; display: flex; flex-direction: column; gap: 28px; }
.pb-dark h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.06; font-weight: 700; letter-spacing: -0.03em; color: var(--night-text); text-wrap: balance; }
.pb-dark p { font-size: 17px; line-height: 1.5; color: var(--night-muted); }
.pb-dark p b { color: var(--night-text); font-weight: 600; }
.pb-intro { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.pb-map { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #2a3020; }
.pb-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-map .pb-divider { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, 0.4); }
.pb-map .pb-chip { position: absolute; bottom: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(31, 36, 22, 0.75); color: var(--night-text); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.pb-map .pb-chip i { width: 10px; height: 10px; border-radius: 3px; background: #e834aa; box-shadow: 0 0 0 1.5px #fff; }
.pb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pb-after { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 24px; border-top: 1px solid rgba(245, 241, 230, 0.14); }
.pb-after p { flex: 1 1 420px; min-width: 0; }

/* Range inputs */
.pb-range, .pb-wipe { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; margin: 0; border-radius: 999px; background: transparent; outline: none; cursor: pointer; }
.pb-range::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: var(--line); }
.pb-range::-moz-range-track { height: 8px; border-radius: 999px; background: var(--line); }
.pb-wipe::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: rgba(245, 241, 230, 0.18); }
.pb-wipe::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(245, 241, 230, 0.18); }
.pb-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--olive); border: 4px solid #fff; box-shadow: 0 0 0 1px #8c8670; }
.pb-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--olive); border: 4px solid #fff; box-shadow: 0 0 0 1px #8c8670; }
.pb-wipe::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--sage); border: 4px solid var(--night); box-shadow: 0 0 0 1px var(--sage); }
.pb-wipe::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--sage); border: 4px solid var(--night); }
.pb-range:focus-visible { outline: 3px solid var(--olive); outline-offset: 2px; }
.pb-wipe:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

/* Calculator */
.pb-calc { max-width: 1040px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) 24px 0; }
.pb-calc-box { border-radius: 32px; background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 48px); }
.pb-inputs { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.pb-inputs h3 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.pb-field { display: flex; flex-direction: column; gap: 4px; }
.pb-field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pb-field label { font-size: 15px; font-weight: 500; }
.pb-field output { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pb-hint { font-size: 13px; line-height: 1.5; color: #6e6956; }
.pb-out { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--night); color: var(--night-text); }
.pb-out .pb-label { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: var(--sage); }
.pb-bar-row { display: flex; flex-direction: column; gap: 10px; }
.pb-bar-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.pb-bar-top b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pb-track { height: 14px; border-radius: 999px; background: rgba(245, 241, 230, 0.1); overflow: hidden; }
.pb-bar { height: 100%; border-radius: 999px; background: var(--sage); transition: width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pb-bar.pb-full { width: 100%; background: var(--night-muted); }
.pb-rule { height: 1px; background: rgba(245, 241, 230, 0.14); }
.pb-result { display: flex; flex-direction: column; gap: 4px; }
.pb-result span { font-size: 17px; color: var(--night-muted); }
.pb-result .pb-big { font-size: clamp(48px, 6vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--night-text); }
.pb-result .pb-loads { margin-top: 8px; font-size: 15px; }

/* End cards */
.pb-end { max-width: 1040px; margin: 0 auto; padding: clamp(48px, 7vw, 72px) 24px; display: flex; flex-direction: column; gap: 24px; }
.pb-end h2 { max-width: 22ch; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.pb-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.pb-product { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 4vw, 40px); border-radius: 24px; background: var(--cream); color: var(--ink); }
.pb-product.pb-night { background: var(--night); color: var(--night-text); }
.pb-product .pb-label { font-size: 15px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.pb-product.pb-night .pb-label { color: var(--sage); }
.pb-product h3 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.pb-product p { font-size: 17px; line-height: 1.5; color: var(--body); }
.pb-product.pb-night p { color: var(--night-muted); }
.pb-product .pb-btn { align-self: flex-start; margin-top: auto; }
.pb-product .pb-hint { color: var(--muted); }

/* Serrated tussock guide: year calendar, bullet list and the note heading */
.pb-list { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.pb-cal { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; font-size: 13px; }
.pb-cal thead th { font-weight: 400; color: var(--muted); text-align: center; }
.pb-cal thead td, .pb-cal tbody th { width: 200px; }
.pb-cal tbody th { text-align: left; font-size: 15px; font-weight: 400; line-height: 1.3; color: var(--ink); }
.pb-cal td { position: relative; height: 28px; padding: 0; border-radius: 6px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.pb-cal thead td { background: none; box-shadow: none; }
.pb-cal td.pb-map { background: var(--straw); box-shadow: none; }
.pb-cal td.pb-spray { background: var(--olive); box-shadow: none; }
.pb-note h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.pb-note p { font-size: 17px; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .bl-card { transition: none; }
  .bl-card:hover { transform: none; }
  .pb-bar { transition: none; }
}
