/* Ride Raksha — asphalt, lane-yellow and deep teal. System fonts only. */
:root {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --surface-2: #ebe8df;
  --ink: #17212b;
  --muted: #47525e;
  --line: #d4cfc2;
  --field-border: #8a8475;
  --brand: #0d5c6b;
  --brand-ink: #ffffff;
  --link: #0a4c59;
  --asphalt: #1b242d;
  --lane: #f3c13a;
  --ok: #1d6b3a;
  --warn: #8a5a00;
  --bad: #a3261b;
  --focus: #b06a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 33, 43, .06), 0 4px 14px rgba(23, 33, 43, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.44rem;
  --step-3: 1.75rem;
  --step-4: 2.1rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11171d;
    --surface: #18212a;
    --surface-2: #202b35;
    --ink: #eef1f3;
    --muted: #b6c0c8;
    --line: #34424e;
    --field-border: #6b7b88;
    --brand: #5cc3d3;
    --brand-ink: #0b1a1f;
    --link: #8fd8e4;
    --asphalt: #0b1015;
    --ok: #7fd59a;
    --warn: #f3c13a;
    --bad: #ff9a8f;
    --focus: #f3c13a;
    --shadow: none;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: var(--step-0); line-height: 1.6; overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); color: var(--ink); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.01em; margin: 1.6em 0 .5em; }
h1 { font-size: var(--step-4); margin-top: .4em; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4, .h4 { font-size: var(--step-1); }
p, ul, ol { margin: 0 0 1em; }
.small { font-size: .9rem; color: var(--muted); }
code { font-size: .88em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }

/* Header */
.site-header { background: var(--asphalt); color: #f7f3e8; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #f7f3e8; text-decoration: none; min-height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.2rem; letter-spacing: .01em; }
.brand-tag { font-size: .78rem; color: #cfd6db; }
.lane { height: 6px; background: repeating-linear-gradient(90deg, var(--lane) 0 34px, transparent 34px 58px); background-color: #2a3540; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid #56636f; border-radius: 999px; color: #f7f3e8; font-weight: 600; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary { background: #2a3540; }
.menu nav ul, .nav-wide ul { list-style: none; margin: 0; padding: 0; }
.menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--asphalt); border: 1px solid #3b4955; border-radius: 12px; padding: 6px; z-index: 5; min-width: 220px; }
.menu nav a, .nav-wide a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: #f7f3e8; text-decoration: none; border-radius: 8px; }
.menu nav a:hover, .nav-wide a:hover { background: #2a3540; }
.menu nav a[aria-current="page"], .nav-wide a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--lane); }
.nav-wide { display: none; }
@media (min-width: 900px) {
  .menu { display: none; }
  .nav-wide { display: block; }
  .nav-wide ul { display: flex; flex-wrap: wrap; gap: 2px; }
  .nav-wide a { padding: 0 10px; font-size: .95rem; }
}

/* Main */
main { padding-top: 8px; padding-bottom: 48px; }
.hero { padding: 20px 0 4px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin: 1.2em 0 .2em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 68ch; }
.prose { max-width: 760px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin: 18px 0; }
.card.plain { box-shadow: none; }
.tool { border-top: 6px solid var(--brand); }
.tool h2, .tool h3 { margin-top: .2em; }
.tool-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.tool-progress { font-weight: 600; color: var(--brand); margin: 0 0 .6em; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; grid-column: 1 / -1; }

/* Checklists */
.check-group { border: 0; padding: 0; margin: 0 0 14px; }
.check-group legend { font-weight: 800; font-size: 1.02rem; padding: 0; margin-bottom: 6px; color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; min-height: 44px; border-radius: 10px; background: var(--surface-2); margin-bottom: 6px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--brand); }
.check:has(input:checked) span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--brand); }

/* Buttons and forms */
.btn, .btn-ghost, .shop, .chip { font: inherit; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 18px; border-radius: 999px; cursor: pointer; text-decoration: none; font-weight: 700; }
.btn { background: var(--brand); color: var(--brand-ink); border: 2px solid var(--brand); }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--link); border: 2px solid var(--line); }
.btn-ghost[aria-pressed="true"] { border-color: var(--brand); background: var(--surface-2); }
.shop { background: var(--asphalt); color: #f7f3e8; border: 2px solid var(--asphalt); }
.shop:hover { box-shadow: inset 0 -3px 0 var(--lane); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 620px) { .form-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 600; font-size: .95rem; }
.check-inline { grid-column: 1 / -1; }
input[type="number"], input[type="date"], select { font: inherit; min-height: 44px; padding: 8px 10px; border: 2px solid var(--field-border); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
.result { margin-top: 12px; }
/* Empty live regions stay rendered (so screen readers announce the first result) but take no space. */
.result:empty { padding: 0; border: 0; background: none; margin: 0; }
.result p { margin: 0 0 .4em; }
.result-head { font-weight: 800; font-size: 1.1rem; }
.result, .doc-results li { border-left: 5px solid var(--line); padding: 10px 12px; background: var(--surface-2); border-radius: 0 10px 10px 0; }
[data-tone="match"] { border-left-color: var(--ok); }
[data-tone="high"] { border-left-color: var(--warn); }
[data-tone="low"], [data-tone="error"] { border-left-color: var(--bad); }
.doc-results { list-style: none; padding: 0; border: 0; background: none; }
.doc-results li { margin-bottom: 6px; }
.conv-list { margin: 0; padding-left: 1.2em; }

/* Facts and guides */
.facts { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.fact-big { font-size: 1.25rem; font-weight: 800; color: var(--brand); margin-bottom: .3em; }
.guide-grid { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 44px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); height: 100%; }
.guide:hover { border-color: var(--brand); }
.guide-name { font-weight: 800; color: var(--link); }

/* Notes and citations */
.cite { font-size: .86rem; color: var(--muted); border-left: 3px solid var(--lane); padding-left: 10px; }
.limits { background: var(--surface-2); border-radius: 10px; padding: 12px 14px; margin: 1em 0 1.4em; font-size: .95rem; }
.disclosure { background: #fff7dc; color: #3d2f00; border: 1px solid #ecd27a; border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.disclosure a { color: #3d2f00; }
@media (prefers-color-scheme: dark) { .disclosure { background: #2d2610; color: #f6e7b0; border-color: #5d4c12; } .disclosure a { color: #f6e7b0; } }
.disclosure-label { font-weight: 800; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; margin-right: 4px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; }
.toc h2 { font-size: 1rem; margin: .4em 0; }
.toc ol { margin: 0; padding-left: 1.3em; }
.toc a, .link-list a { display: inline-flex; align-items: center; min-height: 44px; }
.steps li { margin-bottom: .6em; }
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.compare { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px; }
.compare-col h3 { font-size: 1.05rem; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; background: var(--surface); font-size: .95rem; }
caption { text-align: left; font-weight: 700; padding: 6px 0; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--surface-2); }

/* Gear list */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { background: var(--surface); color: var(--ink); border: 2px solid var(--line); font-weight: 600; padding: 0 14px; }
.chip[aria-pressed="true"] { background: var(--asphalt); color: #f7f3e8; border-color: var(--asphalt); }
.kit-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .kit-grid { grid-template-columns: 1fr 1fr; } }
.kit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.kit-card h3 { margin: 0 0 .3em; font-size: 1.15rem; }
.kit-use { color: var(--muted); }
.kit-lists { display: grid; gap: 4px 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .prose .kit-lists { grid-template-columns: 1fr 1fr; } }
.kit-lists h4, .kit-lists .h4 { margin: .4em 0 .3em; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ticks, .crosses { list-style: none; padding: 0; margin: 0 0 .8em; }
.ticks li, .crosses li { position: relative; padding-left: 24px; margin-bottom: .35em; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 10px; height: 6px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.crosses li::before, .crosses li::after { content: ""; position: absolute; left: 4px; top: .75em; width: 13px; height: 3px; background: var(--bad); transform: rotate(45deg); }
.crosses li::after { transform: rotate(-45deg); }
.kit-note { font-size: .93rem; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; }
.kit-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.gear-group { margin-top: 28px; }
.mykit-list { padding-left: 1.2em; }
.mykit-list a { display: inline-flex; align-items: center; min-height: 44px; }
.shopbox { max-width: 760px; margin: 32px 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 12px; }
.shopbox h2 { font-size: 1.3rem; }
.shoplist { list-style: none; padding: 0; margin: 0; }
.shoplist li { display: grid; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .shoplist li { grid-template-columns: 1fr auto; align-items: center; } .shoplist .shop { grid-row: 1 / span 2; grid-column: 2; } }
.shoplist-name { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; justify-self: start; }
.shoplist-why { font-size: .92rem; color: var(--muted); }
.source-list li { margin-bottom: 1em; }
.log { padding-left: 1.2em; }
.contact-mail { margin: 1.4em 0; }

/* Footer */
.site-footer { background: var(--asphalt); color: #dfe4e7; padding: 22px 0 28px; font-size: .92rem; border-top: 6px solid var(--lane); }
.site-footer a { color: #f7f3e8; }
.foot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .shopbox, .tool-actions, .filters { display: none; } }
