/* Guide pages (website/guides/*). One stylesheet for all of them, so a style
   change is one edit. Based on terms.html's inline styles; keep the two in
   step by eye. Paths are absolute because guides live in a subfolder. */

* { box-sizing: border-box; }
body { margin: 0; background: #fff; font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #0f172a; -webkit-font-smoothing: antialiased; }
a { color: #1e40af; text-decoration: none; }
a:hover { color: #0f172a; }
h1, h2, h3 { text-wrap: pretty; }

.nav { border-bottom: 1px solid #e4e9f2; background: rgba(255,255,255,0.92); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 40px; max-width: 1240px; margin: 0 auto; font-size: 14.5px; font-weight: 500; color: #475569; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-inner > :first-child { flex: 1; }
.nav-inner::after { content: ""; flex: 1; }
.nav-inner a { color: #475569; }

.back-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid #e4e9f2; background: #fff; color: #64748b; flex: none; }
.back-btn:hover { color: #0f172a; border-color: #cbd5e1; }
.back-btn .mdi { font-size: 19px; }

.head { background: linear-gradient(180deg, #f4f7fc, #fff); border-bottom: 1px solid #e4e9f2; }
.head-inner { padding: 40px 40px 44px; max-width: 1100px; margin: 0 auto; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: #94a3b8; margin-bottom: 22px; }
.crumbs a { color: #64748b; }
.crumbs a:hover { color: #0f172a; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #1e40af; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
h1 { font-size: 46px; line-height: 1.06; font-weight: 800; margin: 0 0 18px; letter-spacing: -1.6px; max-width: 820px; }
.lede { font-size: 18px; line-height: 1.62; color: #475569; margin: 0 0 22px; max-width: 660px; }
.stamp { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #e4e9f2; border-radius: 100px; padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: #475569; }
.stamp .mdi { font-size: 17px; color: #1e40af; }

.body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 48px 40px 80px; max-width: 1100px; margin: 0 auto; align-items: start; }
.body--single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.toc-h { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; color: #94a3b8; margin-bottom: 4px; }
.toc a { color: #475569; line-height: 1.4; }
main { max-width: 740px; }

.guide h2 { font-size: 27px; line-height: 1.16; font-weight: 800; margin: 44px 0 14px; letter-spacing: -0.9px; scroll-margin-top: 90px; }
.guide h3 { font-size: 19px; line-height: 1.3; font-weight: 700; margin: 28px 0 10px; }
.guide p, .guide li { font-size: 16.5px; line-height: 1.7; color: #475569; }
.guide p { margin: 0 0 16px; }
.guide ul, .guide ol { margin: 0 0 18px; padding-left: 22px; }
.guide li { margin-bottom: 8px; }
.guide strong { color: #0f172a; font-weight: 650; }
.guide a { text-decoration: underline; text-decoration-color: rgba(30,64,175,0.35); text-underline-offset: 2px; }
.guide a:hover { text-decoration-color: currentColor; }

.guide .answer { font-size: 18.5px; line-height: 1.6; color: #0f172a; background: #f4f7fc; border-left: 4px solid #1e40af; border-radius: 0 14px 14px 0; padding: 18px 22px; margin: 0 0 8px; }
.guide .note { background: #f4f7fc; border: 1px solid #e4e9f2; border-radius: 14px; padding: 18px 20px; margin: 0 0 18px; }
.guide .note p { font-size: 15.5px; }
.guide .note p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 4px 0 22px; border: 1px solid #e4e9f2; border-radius: 14px; }
table.chart { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.chart caption { caption-side: top; text-align: left; padding: 14px 16px; font-size: 14px; line-height: 1.5; color: #64748b; border-bottom: 1px solid #e4e9f2; }
table.chart th, table.chart td { padding: 9px 16px; text-align: left; white-space: nowrap; border-bottom: 1px solid #f1f5f9; }
table.chart thead th { position: sticky; top: 0; background: #f4f7fc; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #475569; white-space: normal; vertical-align: bottom; }
table.chart tbody th { font-weight: 700; color: #0f172a; }
table.chart td { color: #475569; }
table.chart tbody tr:last-child th, table.chart tbody tr:last-child td { border-bottom: none; }
table.chart tbody tr:nth-child(even) { background: #fafbfd; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 48px 0 0; padding: 26px 28px; border-radius: 18px; background: #0b1220; color: #e8eef7; }
.cta-h { font-size: 20px; font-weight: 800; letter-spacing: -0.4px; margin-bottom: 6px; color: #fff; }
.cta p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #9fb0c9; max-width: 440px; }
.cta-badges { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cta-badges a { display: inline-flex; }
.cta-badges img { display: block; }

.related { display: flex; flex-direction: column; gap: 10px; margin-top: 36px; padding-top: 26px; border-top: 1px solid #e4e9f2; font-size: 16px; }
.related-h { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; color: #94a3b8; text-transform: uppercase; }

.guide-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.guide-list li { margin: 0; }
.guide-list a { display: block; padding: 20px 22px; border: 1px solid #e4e9f2; border-radius: 16px; text-decoration: none; transition: border-color 150ms ease, box-shadow 150ms ease; }
.guide-list a:hover { border-color: #b8c6e0; box-shadow: 0 10px 26px rgba(15,30,60,0.07); }
.guide-t { display: block; font-size: 19px; font-weight: 750; color: #0f172a; margin-bottom: 6px; letter-spacing: -0.3px; }
.guide-s { display: block; font-size: 15.5px; line-height: 1.6; color: #475569; }

/* /guides: brand-size slider ("one foot, different sizes") */
.spot { margin: 0 0 44px; padding: 28px 28px 24px; border-radius: 20px; background: linear-gradient(160deg, #f4f7fc 0%, #eaf0fb 100%); border: 1px solid #dfe6f3; }
.spot-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #1e40af; margin-bottom: 10px; }
.guide .spot h2 { margin: 0 0 10px; font-size: 30px; }
.guide .spot > p { margin-bottom: 18px; }
.spot-ctl { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.spot-ctl label { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #475569; }
.spot-ctl output { font-variant-numeric: tabular-nums; }
.spot-cm { font-size: 26px; font-weight: 800; color: #0f172a; letter-spacing: -0.5px; }
.spot-in { font-size: 15px; font-weight: 600; color: #64748b; margin-left: 4px; }
#spot-len { --fill: 37%; width: 100%; height: 32px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; touch-action: pan-y; }
#spot-len:focus-visible { outline: 3px solid rgba(30,64,175,0.45); outline-offset: 4px; border-radius: 8px; }
#spot-len::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #1e40af var(--fill), #cfd8ea var(--fill)); }
#spot-len::-moz-range-track { height: 8px; border-radius: 99px; background: #cfd8ea; }
#spot-len::-moz-range-progress { height: 8px; border-radius: 99px; background: #1e40af; }
#spot-len::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid #1e40af; box-shadow: 0 3px 10px rgba(15,30,60,0.25); }
#spot-len::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #1e40af; box-shadow: 0 3px 10px rgba(15,30,60,0.25); }
.spot-range { display: flex; justify-content: space-between; font-size: 12.5px; color: #94a3b8; margin: 2px 0 14px; font-variant-numeric: tabular-nums; }
.guide .spot-std { margin: 0 0 12px; font-size: 15.5px; }
.spot-brands { list-style: none; padding: 0 !important; margin: 0 0 16px !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.guide .spot-b { margin: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 12px; border-radius: 14px; background: #fff; border: 1px solid #dfe6f3; border-top: 4px solid #94a3b8; line-height: 1.3; }
.spot-b--up { border-top-color: #d97706 !important; }
.spot-b--down { border-top-color: #0e7490 !important; }
.spot-b--same { border-top-color: #047857 !important; }
.spot-bn { font-size: 14px; font-weight: 700; color: #0f172a; }
.spot-bs { font-size: 30px; font-weight: 800; color: #0f172a; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; }
.spot-bf { font-size: 13px; color: #64748b; }
.spot-bf b { font-weight: 700; color: #0f172a; white-space: nowrap; }
.spot-tick { animation: spot-tick 260ms ease-out; }
@keyframes spot-tick { from { transform: scale(1.12); color: #1e40af; } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .spot-tick { animation: none; } }
.guide .spot-fine { font-size: 13.5px; line-height: 1.55; color: #64748b; margin: 0 0 8px; }
.guide .spot-app { font-size: 15.5px; margin: 0; color: #0f172a; font-weight: 600; }
.guide .list-h { margin-top: 0; }
.guide .guide-list { padding: 0; }
.guide-list--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-list--cards a { height: 100%; display: flex; flex-direction: column; }
.guide-i { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #eaf0fb; color: #1e40af; font-size: 23px; margin-bottom: 14px; }
.guide-list--cards .guide-s { flex: 1; }
.guide-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14.5px; font-weight: 650; color: #1e40af; }
@media (max-width: 700px) {
  .spot { padding: 22px 18px 20px; }
  .guide .spot h2 { font-size: 24px; }
  .spot-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-list--cards { grid-template-columns: minmax(0, 1fr); }
}
body.dark .spot { background: linear-gradient(160deg, #131c2e 0%, #0f1828 100%); border-color: #233149; }
body.dark .spot-eyebrow, body.dark .guide-go { color: #8ab0ff; }
body.dark .spot-ctl label, body.dark .spot-in, body.dark .spot-bf, body.dark .guide .spot-fine { color: #9fb0c9; }
body.dark .spot-cm, body.dark .spot-bn, body.dark .spot-bs, body.dark .spot-bf b, body.dark .guide .spot-app { color: #fff; }
body.dark .guide .spot-b { background: #0b1220; border-color: #233149; }
body.dark .spot-b--up { border-top-color: #f59e0b !important; }
body.dark .spot-b--down { border-top-color: #22d3ee !important; }
body.dark .spot-b--same { border-top-color: #34d399 !important; }
body.dark #spot-len::-webkit-slider-runnable-track { background: linear-gradient(90deg, #8ab0ff var(--fill), #233149 var(--fill)); }
body.dark #spot-len::-moz-range-track { background: #233149; }
body.dark #spot-len::-moz-range-progress { background: #8ab0ff; }
body.dark #spot-len::-webkit-slider-thumb, body.dark #spot-len::-moz-range-thumb { background: #0b1220; border-color: #8ab0ff; }
body.dark .guide-i { background: #1c2a45; color: #8ab0ff; }
@keyframes spot-tick-dark { from { transform: scale(1.12); color: #8ab0ff; } to { transform: scale(1); } }
body.dark .spot-tick { animation-name: spot-tick-dark; }

footer { background: #0b1220; color: #4d5f7d; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 40px 10px; max-width: 1100px; margin: 0 auto; font-size: 13.5px; }
.foot-legal { max-width: 1100px; margin: 0 auto; padding: 0 40px 28px; font-size: 12.5px; line-height: 1.6; color: #4d5f7d; }
footer a { color: #9fb0c9; }
footer a:hover { color: #fff; }

@media (max-width: 900px) {
  .body { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc { position: static; flex-flow: row wrap; gap: 8px 16px; }
  .toc-h { width: 100%; margin-bottom: 0; }
}
@media (max-width: 700px) {
  .nav-inner, .head-inner, .body, .foot-inner, .foot-legal { padding-left: 20px; padding-right: 20px; }
  .nav-inner { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .nav-inner > :first-child { flex: 0 1 auto; }
  .nav-inner::after { display: none; }
  .nav-links { flex-wrap: wrap; justify-content: center; gap: 16px; row-gap: 10px; font-size: 13.5px; }
  .head-inner { padding-top: 28px; padding-bottom: 32px; }
  h1 { font-size: 33px; letter-spacing: -1.1px; }
  .guide h2 { font-size: 23px; }
  .cta { flex-direction: column; align-items: flex-start; }
  table.chart th, table.chart td { padding: 8px 12px; }
}

/* dark mode */

.theme-toggle { position: relative; width: 58px; height: 30px; border-radius: 999px; border: 1px solid #e4e9f2; background: #f4f7fc; cursor: pointer; padding: 0; flex: none; }
.theme-toggle .knob { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(15,30,60,0.22); display: flex; align-items: center; justify-content: center; transition: left 180ms ease, background 180ms ease; }
.theme-toggle .knob .mdi { font-size: 14px; color: #1e40af; }
body.dark .theme-toggle { background: #1c2a45; border-color: #233149; }
body.dark .theme-toggle .knob { left: 30px; background: #0d1b30; }
body.dark .theme-toggle .knob .mdi { color: #8ab0ff; }

body.dark { background: #0b1220; color: #e8eef7; }
body.dark a { color: #8ab0ff; }
body.dark .nav { background: rgba(11,18,32,0.92); border-bottom-color: #1c2a45; }
body.dark .nav-inner, body.dark .nav-inner a { color: #9fb0c9; }
body.dark .nav-inner a[aria-current="page"] { color: #fff !important; }
body.dark .nav img:not(.app-badge) { content: url("/assets/parsnip-logo-light.svg"); }
body.dark .back-btn { background: #131c2e; border-color: #233149; color: #9fb0c9; }
body.dark .back-btn:hover { color: #fff; }
body.dark .head { background: radial-gradient(120% 100% at 78% 0%, #16233f 0%, #0b1220 58%); border-bottom-color: #1c2a45; }
body.dark .crumbs, body.dark .crumbs a { color: #7e8ea8; }
body.dark h1, body.dark .guide h2, body.dark .guide h3, body.dark .guide strong, body.dark .guide-t { color: #fff; }
body.dark .lede, body.dark .guide p, body.dark .guide li, body.dark .guide-s, body.dark .toc a { color: #9fb0c9; }
body.dark .stamp, body.dark .guide .note { background: #131c2e; border-color: #233149; color: #9fb0c9; }
body.dark .stamp .mdi { color: #8ab0ff; }
body.dark .guide .answer { background: #131c2e; color: #e8eef7; border-left-color: #8ab0ff; }
body.dark .guide a { text-decoration-color: rgba(138,176,255,0.4); }
body.dark .table-wrap { border-color: #233149; }
body.dark table.chart caption { color: #7e8ea8; border-bottom-color: #233149; }
body.dark table.chart thead th { background: #131c2e; color: #9fb0c9; }
body.dark table.chart th, body.dark table.chart td { border-bottom-color: #1c2a45; }
body.dark table.chart tbody th { color: #e8eef7; }
body.dark table.chart td { color: #9fb0c9; }
body.dark table.chart tbody tr:nth-child(even) { background: #0f1828; }
body.dark .cta { background: #131c2e; border: 1px solid #233149; }
body.dark .related { border-top-color: #1c2a45; }
body.dark .guide-list a { border-color: #233149; background: #0f1828; }
body.dark .guide-list a:hover { border-color: #3a4d70; box-shadow: none; }
body.dark footer { border-top: 1px solid #1c2a45; }

/* Two store badges: on phones they shrink so the nav stays compact. */
.nav-links a { white-space: nowrap; }
@media (max-width: 760px) {
  .nav .app-badge { height: 30px; width: auto; }
  .nav-links { gap: 12px; }
}
