/* 1. Fonts and design tokens. Self-hosted Fontsource 5.3.0, OFL-1.1. */
@font-face {
  font-family: 'Montserrat Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/montserrat-latin-variable-06b16db7a969.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/inter-latin-variable-3100e775e861.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
  --paper: #EEF4F8;
  --ink: #0B2545;
  --brand: #134074;
  --brand-soft: #d9eafa;
  --accent: #F2A541;
  --muted: #52677e;
  --line: #c9d8e5;
  --white: #fff;
  --on-brand: #fff;
  --error: #943419;
  --focus: #087db8;
  --strong-bg: #0B2545;
  --strong-ink: #EEF4F8;
  --link-hover: #086eaa;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --button-font: 600 .875rem/1.4 'Inter Variable', system-ui, sans-serif;
  --button-padding: 10px 18px;
  --shadow-hover: 0 8px 24px -12px rgb(11 37 69 / .25);
  --step--1: .85rem;
  --step-0: 1.0625rem;
  --step-1: 1.328rem;
  --step-2: 1.66rem;
  --step-3: clamp(1.8rem, 3vw, 2.075rem);
  --step-4: clamp(2.2rem, 4vw, 2.594rem);
  --step-5: clamp(2.5rem, 5.3vw, 4.4rem);
}

/* 2. Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.7 'Inter Variable', system-ui, sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--brand);
  text-underline-offset: 4px;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

h1,h2,h3 {
  line-height: 1.15;
  text-wrap: balance;
}

h1,h2 {
  font-family: 'Montserrat Variable', Arial, sans-serif;
  font-weight: 750;
  letter-spacing: -.03em;
}

h1 {
  font-size: var(--step-5);
  margin: .5rem 0 1.7rem;
}

h2 {
  font-size: var(--step-3);
  margin: 2.8rem 0 1.1rem;
}

h3 {
  font-size: var(--step-1);
}

p {
  margin: 0 0 1.25rem;
}

figure {
  margin: 2rem 0;
}

figcaption {
  font-size: 13px;
  color: var(--muted);
}

iframe,video {
  max-width: 100%;
}

iframe {
  min-height: 320px;
}

table {
  max-width: 100%;
  display: block;
  overflow: auto;
  border-collapse: collapse;
  font-size: 15px;
}

td,th {
  padding: 10px 14px;
  border: 1px solid var(--line);
}

th {
  background: var(--brand-soft);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

button {
  cursor: pointer;
  font: inherit;
}

input,select {
  font: inherit;
  color: var(--ink);
  background:var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 10px;
  width: 100%;
  min-width: 0;
}

/* 3. Layout */

.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1240px; margin: auto; min-height: 80px; padding: 12px 32px; display: flex; align-items: center; gap: 24px; }
.site-header .brand { flex: 0 0 auto; width: 190px; display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 800 22px/1.1 'Montserrat Variable', Arial, sans-serif; letter-spacing: -.03em; }
.brand-mark { width: 36px; height: 36px; }
.site-header .brand strong { color: var(--link-hover); font-weight: 850; }
.desktop-navigation { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.site-header nav a { text-decoration: none; font-size: var(--step--1); font-weight: 650; }
.header-search { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: var(--r-sm); }
.header-search:hover { background: var(--brand-soft); }
.mobile-menu { display: none; }









main {
  max-width: 900px;
  margin: 3rem auto 5rem;
  padding: 0 2rem;
}

main.article {
  max-width: 920px;
}

main.article>p,main.article>ul,main.article>ol {
  max-width: 740px;
}

main.article blockquote {
  border-left: 3px solid var(--brand);
  padding: 1rem 1.6rem;
  margin: 2rem 0;
  background: var(--brand-soft);
}

main img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-sm);
}

.home {
  max-width: 1240px;
  margin-top: 0;
}

.archive {
  max-width: 1240px;
}

footer {
  border-top: 1px solid var(--line);
  max-width: 1240px;
  padding: 2.5rem 2rem 3rem;
  margin: auto;
  font-size: 12px;
  color: var(--muted);
}

footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

footer .footer-brand {
  font-size: 22px;
  color: var(--ink);
  font-weight: 750;
}

footer p {
  max-width: 800px;
  margin: 0;
}

footer a {
  margin-right: 1rem;
}

footer button {
  font-size: 12px;
  margin-top: 1rem;
  background: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  color: var(--brand);
}



/* 4. Components */
body>aside {
  font-size: 12px;
  letter-spacing: .04em;
  background: var(--brand-soft);
  color: var(--brand);
  text-align: center;
  padding: .5rem 1rem;
}

.brand-icon {
  width: 35px;
  height: 35px;
  border: 1px solid var(--brand);
  border-radius: 50%;
  display: grid;
  place-items: center;
  letter-spacing: 0;
  font-size: 24px;
}

.article-top {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 3.5rem 0 4rem;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-size: var(--step-5);
  max-width: 580px;
  margin: 1rem 0 1.5rem;
  font-weight: 850;
  letter-spacing: -.03em;
}

.hero h1 em {
  color: var(--focus);
  font-style: italic;
}

.hero .intro {
  max-width: 460px;
  color: var(--muted);
  font-size: 18px;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4/4.5;
  object-fit: cover;
  object-position: 70% center;
  border-radius: var(--r-sm);
}

.photo-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: var(--paper);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  background: var(--brand);
  color:var(--on-brand);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
}

.button:hover {
  background: var(--ink);
  color:var(--on-brand);
}

.text-link {
  font-size: 14px;
  font-weight: 600;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 3rem 0 1.5rem;
}

.section-title h2 {
  margin: 0;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1rem;
}

.topic-card {
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.7rem;
  transition: transform .15s;
}

.topic-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}

.topic-card .number {
  font: 12px ui-monospace,monospace;
  color: var(--muted);
}

.topic-card h3 {
  font-family: 'Montserrat Variable', Arial, sans-serif;
  font-size: var(--step-2);
  font-weight: 500;
  margin: 1.7rem 0 .7rem;
  letter-spacing: -.01em;
}

.topic-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.feature-tool {
  margin: 3.5rem 0;
  background: var(--strong-bg);
  color: var(--strong-ink);
  padding: 2.5rem 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.feature-tool h2 {
  margin: .6rem 0 1rem;
}

.feature-tool p {
  max-width: 640px;
  font-size: 15px;
  color: #d8e7f2;
  margin: 0;
}

.feature-tool .eyebrow {
  color: var(--brand-soft);
}

.feature-tool .button {
  background: var(--brand-soft);
  color: var(--ink);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 2rem 1.4rem;
}

.guide-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.guide-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 0;
}

.guide-body {
  padding: 1.3rem;
}

.guide-card h3 {
  font-family: 'Montserrat Variable', Arial, sans-serif;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.25;
  margin: .7rem 0 1rem;
  letter-spacing: -.01em;
}

.guide-card a {
  text-decoration: none;
}

.guide-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.card-placeholder {
  height: 190px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  font-family: 'Montserrat Variable', Arial, sans-serif;
  font-size: 40px;
  color: var(--brand);
}

.pagination {
  display: inline-block;
  margin: 2rem 0;
}

input[type=range] {
  padding: 0;
  accent-color: var(--brand);
  width: 100%;
  height: 28px;
}

#query {
  margin: 1rem 0;
}

#results {
  padding: 0;
  list-style: none;
}

#results li {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.battery-tool {
  margin: 2rem 0 3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.tool-heading {
  padding: 2.2rem 2.3rem 0;
}

.tool-heading h2 {
  margin: .6rem 0 1rem;
}

.tool-heading p {
  color: var(--muted);
  font-size: 15px;
  max-width: 650px;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  padding: 1rem 2.3rem 2.3rem;
}

.tool-inputs label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 650;
  margin: 1.2rem 0 .5rem;
  gap: 1rem;
}

.tool-inputs label span {
  font-weight: 400;
  color: var(--muted);
}

.tool-inputs small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: .5rem;
}

.tool-result {
  background: var(--brand-soft);
  padding: 2rem;
  border-radius: var(--r-sm);
  align-self: start;
  margin-top: 1.2rem;
}

.capacity {
  font: 500 clamp(3rem,5vw,5rem)/1.2 'Montserrat Variable', Arial, sans-serif;
  letter-spacing: -.05em;
  margin: 1rem 0 .3rem;
  font-family: 'Montserrat Variable', Arial, sans-serif;
  font-weight: 750;
}

.capacity span {
  font-size: 1.6rem;
  letter-spacing: 0;
  color: var(--muted);
}

.capacity-detail {
  font-size: 16px;
  margin-bottom: 1.8rem;
}

.battery-graphic {
  height: 56px;
  border: 2px solid var(--brand);
  border-radius: var(--r-sm);
  position: relative;
  padding: 3px;
  margin-right: 7px;
}

.battery-graphic:after {
  content: '';
  position: absolute;
  right: -8px;
  top: 17px;
  width: 6px;
  height: 18px;
  background: var(--brand);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

#battery-fill {
  background: var(--brand);
  height: 100%;
  border-radius: var(--r-sm);
  color:var(--on-brand);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  white-space: nowrap;
  transition: width .2s;
}

.battery-key {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: .7rem 0 1.6rem;
  color: var(--muted);
}

.battery-key i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.result-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.formula {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.formula span {
  font-size: 9px;
  letter-spacing: .12em;
  font-weight: 600;
}

.formula p {
  font: 12px/1.6 ui-monospace,monospace;
  margin: .6rem 0 0;
  overflow-wrap: anywhere;
}

.pack-comparison {
  padding: 1.5rem 2.3rem;
  border-top: 1px solid var(--line);
}

.pack-comparison h3 {
  margin: 0 0 .7rem;
}

.pack-comparison p {
  font-size: 12px;
  color: var(--muted);
}

#pack-options {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: .6rem;
}

.pack-option {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .8rem .5rem;
  text-align: center;
  font-size: 13px;
}

.pack-option span {
  display: block;
  font-size: 9px;
  margin-top: .3rem;
  color: var(--muted);
}

.pack-option.fits {
  border-color: var(--link-hover);
  background: var(--brand-soft);
}

.tool-caveat {
  padding: 1.2rem 2.3rem;
  margin: 0;
  background: var(--brand-soft);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.calc-error {
  font-size: 12px;
  color: var(--error);
  margin: 1rem 0 0;
}

.battery-tool noscript p {
  padding: 1rem;
}

.tool-page {
  max-width: 1100px;
}

.tool-page>h1 {
  max-width: 850px;
}

.tool-page>p {
  max-width: 740px;
}

.tool-page h2:not(#tool-heading) {
  font-size: var(--step-3);
}

section[aria-label="Analytics consent"] {
  background: var(--white);
  border-radius: var(--r-sm);
}

section[aria-label="Analytics consent"] button {
  padding: 8px 14px;
  margin-right: 8px;
  border: 1px solid var(--brand);
  border-radius: var(--r-sm);
  background: var(--brand);
  color:var(--on-brand);
  font-size: 13px;
}

section[aria-label="Analytics consent"] button:last-child {
  color: var(--brand);
  background: none;
}

section[aria-label="Analytics consent"][hidden] {
  display: none!important;
}

.cost-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.cost-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.cost-inputs label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  font-weight: 600;
  font-size: .9rem;
}

.cost-inputs input,.cost-inputs select {
  width: 100%;
  min-width: 0;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background:var(--white);
  font: inherit;
  color: var(--ink);
}

.cost-result {
  padding: 2rem;
  background: var(--brand-soft);
  border-radius: var(--r-lg);
  align-self: start;
}

.cost-total {
  font-size: clamp(2rem,5vw,3.5rem);
  font-weight: 700;
  margin: .7rem 0;
}

.cost-bar {
  height: 8px;
  background: var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.cost-bar span {
  display: block;
  height: 100%;
  background: var(--brand);
}

#cost-error {
  color: var(--error);
}

.cost-inputs input:focus-visible,.cost-inputs select:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.article-figure {
  margin: 32px 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-md);
}

.article-figure figcaption {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
  color: var(--muted);
}

h1,h2,.topic-card h3,.guide-card h3 {
  font-family: 'Montserrat Variable', Arial, sans-serif;
  font-weight: 750;
}

.review-byline {
  font-size: .9rem;
  color: var(--muted);
  padding-bottom: 1rem;
  margin: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

/* Reviewed article template */
main.handbook-article { max-width: 1240px; margin-top: 2rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem .6rem; font-size: var(--step--1); color: var(--muted); margin-bottom: 1.5rem; }
.breadcrumbs > span:last-child { overflow-wrap: anywhere; }
.article-heading { max-width: 940px; }
.handbook-article h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -.03em; margin: .6rem 0 1.2rem; }
.article-dek { font-size: 1.25rem; color: var(--muted); max-width: 850px; line-height: 1.6; }
.article-byline { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: baseline; font-size: var(--step--1); color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin: 1rem 0 1.5rem; }
.article-hero { margin: 1.5rem 0 2.5rem; max-width: 1100px; }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--brand-soft); border-radius: var(--r-md); }
.article-hero figcaption { margin-top: .75rem; max-width: 900px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 740px) minmax(180px, 240px); gap: 3rem; align-items: start; }
.article-column { min-width: 0; }
.article-body h2, .article-sources h2 { font-size: var(--step-3); letter-spacing: -.01em; scroll-margin-top: 100px; }
.key-takeaways { background: var(--brand-soft); padding: 1.5rem; border-left: 4px solid var(--accent); border-radius: var(--r-md); margin-bottom: 2rem; }
.key-takeaways h2 { font-size: var(--step-1); margin: 0 0 1rem; letter-spacing: -.01em; }
.key-takeaways ul { margin: 0; padding-left: 1.2rem; }
.key-takeaways li + li { margin-top: .6rem; }
.article-toc { position: sticky; top: 105px; max-height: calc(100vh - 125px); overflow: auto; border-left: 1px solid var(--line); padding-left: 1.4rem; font-size: var(--step--1); }
.article-toc h2 { font-size: var(--step-0); margin: 0 0 1rem; letter-spacing: -.01em; }
.article-toc ol, .mobile-toc ol { list-style: none; margin: 0; padding: 0; }
.article-toc li + li, .mobile-toc li + li { margin-top: .8rem; }
.article-toc a { display: block; text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }
.mobile-toc { display: none; }
.article-faq details { border-top: 1px solid var(--line); padding: .8rem 0; }
.article-faq summary { min-height: 44px; cursor: pointer; padding: .5rem 0; font-weight: 650; }
.article-faq details p { margin: .7rem 0; }
.article-faq summary:focus-visible, .mobile-toc summary:focus-visible { outline: 3px solid var(--link-hover); outline-offset: 3px; }
.article-tool-cta { margin: 2.5rem 0; border: 1px solid var(--line); padding: 1.5rem; background: var(--white); border-radius: var(--r-md); }
.article-tool-cta h2 { font-size: var(--step-2); margin: .5rem 0 1rem; letter-spacing: -.01em; }
.article-tool-cta .button { min-height: 44px; border-radius: var(--r-sm); align-items: center; }
.article-sources { padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--step--1); }
.article-sources a { overflow-wrap: anywhere; }
.article-related { margin-top: 3rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related-guide { background: var(--white); padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .15s, box-shadow .15s; }
.related-guide:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.related-guide h3 { font-family: 'Montserrat Variable', Arial, sans-serif; font-size: var(--step-1); margin: 0 0 1rem; letter-spacing: -.01em; }
.related-guide h3 a { text-decoration: none; }
.related-guide p { font-size: var(--step--1); color: var(--muted); margin: 0; }
.article-next-step { margin: 2rem 0; }

.sensor-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.sensor-comparison section { border: 1px solid var(--line); background: var(--white); border-radius: var(--r-md); padding: 1rem; }
.sensor-comparison h3 { font-family: 'Montserrat Variable', Arial, sans-serif; font-size: var(--step-1); margin: 0 0 1rem; letter-spacing: -.01em; }
.sensor-comparison svg { display: block; width: 100%; height: auto; }
.sensor-flow figcaption { margin-top: .8rem; }

/* Topic navigation and editorial collections */
.topic-hub { max-width: 1240px; }
.hub-heading { max-width: 900px; margin-bottom: 2rem; }
.hub-heading > svg { color: var(--brand); margin-bottom: 1rem; }
.hub-heading h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); letter-spacing: -.03em; }
.topic-hub > p, .topic-hub > h2 { max-width: 780px; }
.hub-answer { background: var(--brand-soft); padding: 1.5rem; border-left: 4px solid var(--accent); border-radius: var(--r-md); margin-bottom: 2.5rem; }
.hub-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; margin: 1.5rem 0 3rem; }
.hub-guide { display: flex; flex-direction: column; padding: 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); }
.hub-guide h3 { font-family: 'Montserrat Variable', Arial, sans-serif; font-weight: 750; font-size: var(--step-1); letter-spacing: -.01em; margin: .7rem 0 1rem; }
.hub-guide h3 a { text-decoration: none; }
.hub-guide p { font-size: var(--step--1); color: var(--muted); }
.hub-guide small { display: block; margin-top: auto; font-size: .75rem; color: var(--muted); }
.hub-tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.hub-tool { display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--brand-soft); text-decoration: none; }
.hub-tool h3 { font-family: 'Montserrat Variable', Arial, sans-serif; margin: 0 0 1rem; font-size: var(--step-1); letter-spacing: -.01em; }
.hub-tool p { color: var(--muted); font-size: var(--step--1); }
.hub-tool > span { font-weight: 650; margin-top: auto; }
.hub-workbench { margin: 2.5rem 0; }
.topic-next { margin: 3rem 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.topic-next h2 { font-size: var(--step-2); }
.topic-next li { margin: .6rem 0; }
.tool-explainers { margin: 3rem 0; }
.home-topics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-topics .topic-card { display: flex; flex-direction: column; border-radius: var(--r-md); }
.home-topics .topic-card h3 { margin: 1rem 0; font-size: var(--step-1); }
.home-topics .topic-card p { margin-top: auto; }
.topic-count { display: block; margin-top: 1rem; color: var(--muted); font-size: var(--step--1); }
.home-workbench, .home-faq, .home-method { margin-top: 3.5rem; }
.home-method { background: var(--brand-soft); padding: 2rem; border-radius: var(--r-md); }
.home-method h2 { margin-top: .8rem; }
.feature-tool { grid-template-columns: minmax(0, 1fr) auto; }
.mini-tool-preview { grid-column: 1 / -1; max-width: 360px; margin-top: 1rem; }
.mini-tool-preview strong { font-family: 'Montserrat Variable', Arial, sans-serif; font-size: var(--step-4); font-weight: 800; }
.mini-tool-preview strong span { font-size: var(--step-1); }
.mini-tool-preview small { display: block; color: #d8e7f2; margin-top: .7rem; font-size: .75rem; }
.mini-battery { border: 2px solid var(--brand-soft); border-radius: var(--r-sm); padding: 4px; height: 34px; margin-top: .8rem; }
.mini-battery span { display: block; width: 80%; height: 100%; background: var(--brand-soft); border-radius: var(--r-sm); }
.footer-logo { display: block; width: 220px; height: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin: 2rem 0; }
.footer-grid h2 { font-family: 'Montserrat Variable', Arial, sans-serif; font-size: var(--step-0); letter-spacing: -.01em; margin: 0 0 1rem; }
.footer-grid a { display: block; margin: .65rem 0; font-size: var(--step--1); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid p { font-size: var(--step--1); }
.affiliate-disclosure { border-top: 1px solid var(--line); padding-top: 1.5rem; }

.short-answer { max-width: 850px; }
/* 5. Utilities */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 5;
  background:var(--white);
  padding: 10px;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  display: block;
  color: var(--brand);
  font: 600 11px/1.4 'Inter Variable', system-ui;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.article-date {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.article-date a {
  color: inherit;
}

.reading-note {
  font-size: 12px;
  color: var(--muted);
  margin: 1rem 0 2rem;
}

/* 6. Responsive layouts and reduced motion */
@media(max-width:800px) {
.hero{gap:2rem;padding:2rem 0 2.5rem}.hero h1{font-size:var(--step-5)}.hero .intro{font-size:15px}.hero-photo img{aspect-ratio:3/4}.cards{grid-template-columns:repeat(2,1fr)}.topic-card{padding:1.2rem}.topic-card h3{font-size:var(--step-2)}.tool-grid{gap:1.5rem;padding:1rem 1.4rem 1.5rem}.tool-heading{padding:1.6rem 1.4rem 0}.tool-result{padding:1.5rem}.pack-comparison{padding:1.4rem}.tool-caveat{padding:1.3rem}.feature-tool{padding:2rem;grid-template-columns:1fr}
}
@media(max-width:560px) {
main{padding:0 1.2rem;margin-top:2rem}.hero{grid-template-columns:1fr;gap:2rem}.hero h1{font-size:var(--step-5)}.hero-photo img{aspect-ratio:4/3}.hero .intro{font-size:17px}.topic-grid{grid-template-columns:1fr}.topic-card{padding:1.2rem 1.5rem}.topic-card h3{margin:.5rem 0}.cards{grid-template-columns:1fr;gap:1.3rem}.guide-card{display:grid;grid-template-columns:115px 1fr;min-width:0}.guide-card img,.card-placeholder{height:100%;min-height:160px}.guide-card h3{font-size:var(--step-2)}.guide-body{padding:1rem}.guide-body p{font-size:11px}.section-title h2{font-size:1.9rem}.section-title>a{font-size:12px}.feature-tool{padding:1.8rem}.tool-grid{grid-template-columns:1fr;gap:.5rem}.tool-result{margin:1rem 0 0}.capacity{font-size:4.5rem}#pack-options{grid-template-columns:repeat(3,1fr)}.pack-option{font-size:12px}.article-top{padding-bottom:1.4rem;margin-bottom:1.5rem}main.article h1{font-size:var(--step-5)}main.article p{font-size:16px}footer{padding:2rem 1.2rem}.footer-top{flex-wrap:wrap}iframe{width:100%;min-height:260px}.battery-key{flex-wrap:wrap}.photo-caption{font-size:10px}h2{margin-top:2rem}
}
@media(prefers-reduced-motion:reduce) {
html{scroll-behavior:auto}*{transition:none!important}
}
@media(max-width:700px) {
.cost-layout{grid-template-columns:1fr}.cost-result{padding:1.3rem}
}
@media(max-width:400px) {
.cost-inputs{grid-template-columns:1fr}
}
@media(max-width:600px) {

}
@media(max-width:600px) {

}

@media (max-width: 1099px) {
 .header-inner { min-height: 63px; height: 63px; padding: 0 16px; gap: 8px; }
 .desktop-navigation { display: none; }
 .header-search { margin-left: auto; }
 .site-header .brand { width: auto; max-width: 180px; font-size: 20px; }
 .mobile-menu { display: block; }
 .mobile-menu summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 8px; border-radius: var(--r-sm); font-size: 14px; font-weight: 650; list-style: none; }
 .mobile-menu summary::-webkit-details-marker { display: none; }
 .mobile-menu summary::after { content: '+'; padding-left: 6px; }
 .mobile-menu[open] summary::after { content: '−'; }
 .mobile-menu summary:focus-visible { outline: 3px solid var(--link-hover); outline-offset: 2px; }
 .mobile-menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-hover); padding: 12px 16px; display: grid; gap: 4px; }
 .mobile-menu nav a { min-height: 44px; padding: 10px 12px; border-radius: var(--r-sm); }
 .mobile-menu nav a:hover { background: var(--brand-soft); }
}

@media (max-width: 1099px) {
 .article-layout { display: block; }
 .article-column { max-width: 740px; }
 .article-toc { display: none; }
 .mobile-toc { display: block; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-sm); margin: 0 0 2rem; }
 .mobile-toc summary { cursor: pointer; min-height: 44px; padding: .5rem 0; font-weight: 650; }
 .mobile-toc ol { padding-top: .7rem; }
}
@media (max-width: 600px) {
 .related-grid { grid-template-columns: 1fr; }
 .handbook-article .article-dek { font-size: 1.15rem; }
 .article-hero { margin-bottom: 1.5rem; }
 .key-takeaways, .article-tool-cta { padding: 1.2rem; }
 .breadcrumbs { font-size: .75rem; }
}

.handbook-article .topic-card h2 { font-size: var(--step-1); margin: .8rem 0; letter-spacing: -.01em; }
.handbook-article table { display: table; width: 100%; font-variant-numeric: tabular-nums; }
.handbook-article th, .handbook-article td { text-align: left; }
.handbook-article tbody tr:nth-child(even) { background: var(--paper); }
@media (max-width: 600px) {
 .sensor-comparison { grid-template-columns: 1fr; }
 .handbook-article table, .handbook-article tbody { display: block; }
 .handbook-article thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
 .handbook-article tbody tr { display: block; border: 1px solid var(--line); border-radius: var(--r-sm); margin: 0 0 1rem; padding: .5rem; }
 .handbook-article td { display: grid; grid-template-columns: minmax(85px, 30%) minmax(0, 1fr); gap: 1rem; border: 0; padding: .6rem; }
 .handbook-article td::before { content: attr(data-label); font-weight: 650; }
}

@media (max-width: 1099px) {
 .home-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
 .home-topics, .footer-grid { grid-template-columns: 1fr; }
 .feature-tool { grid-template-columns: 1fr; }
 .hub-tool-grid { grid-template-columns: 1fr; }
 .home-method { padding: 1.5rem; }
}

.hero-photo img { aspect-ratio: 4 / 3; object-fit: contain; }
.photo-caption { position: static; margin-top: .7rem; padding: 0; background: none; color: var(--muted); }
.card-date { display: block; font-size: .7rem; color: var(--muted); margin-top: .4rem; }
.guide-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* Responsive image wrappers preserve the established card grid and hero geometry. */
picture.responsive-media { display: block; max-width: 100%; }
.guide-card > a > picture.responsive-media { width: 100%; min-width: 0; }
@media (max-width: 700px) {
 .guide-card > a[aria-hidden="true"] { display: block; position: relative; min-height: 160px; }
 .guide-card > a > picture.responsive-media { position: absolute; inset: 0; height: 100%; }
}

/* Commute comparison keeps costs, assumptions and emissions scope together. */
.commute-layout { display:grid; grid-template-columns:minmax(280px,1fr) minmax(320px,1.2fr); gap:2rem; align-items:start; margin:2rem 0; }
.commute-inputs,.commute-output { min-width:0; padding:1.5rem; border:1px solid var(--line); border-radius:var(--r-md); background:var(--white); }
.commute-layout label { display:grid; gap:.4rem; margin:.8rem 0; }
.commute-layout input,.commute-layout select,.commute-layout textarea { width:100%; min-width:0; box-sizing:border-box; font:inherit; padding:.65rem; border:1px solid var(--line); border-radius: var(--r-sm); background:var(--white); color:var(--ink); }
.baseline-options { border:0; padding:0; display:flex; gap:1rem; flex-wrap:wrap; }
.baseline-options legend { font-weight:700; }
.baseline-options label { display:flex; align-items:center; padding:.7rem; background:var(--brand-soft); border-radius: var(--r-sm); }
.baseline-options input { width:auto; }
.commute-output table { width:100%; }
.commute-output th,.commute-output td { padding:.65rem; }
.commute-output .cost-total { font-size:clamp(1.8rem,3vw,2.8rem); overflow-wrap:anywhere; }
.commute-chart p { margin:.7rem 0 .25rem; }
.commute-bar-track { height:1rem; border-radius: var(--r-sm); overflow:hidden; background:var(--brand-soft); }
.commute-bar-track span { display:block; height:100%; background:var(--brand); }
#cs-bar-bike { background:var(--ink); }
#cs-error { color:var(--error); font-weight:600; }
#cs-output[data-stale] { border:2px solid var(--error); }
@media(max-width:850px){.commute-layout {grid-template-columns:1fr;} .commute-inputs,.commute-output {padding:1rem;} }

/* Shared action and card components: primary is the default action. */
button,.button {
 min-height:44px; min-width:44px; padding:var(--button-padding);
 border:1px solid var(--brand); border-radius:var(--r-sm);
 font:var(--button-font); background:var(--brand); color:var(--on-brand);
 text-align:center; align-items:center; justify-content:center;
}
.button--primary { background:var(--brand); color:var(--on-brand); }
.button--secondary,button:is(#bike-reset,#rack-clear,#bike-clear-compare),.bike-selected-list button {
 background:var(--white); color:var(--brand); border-color:var(--brand);
}
.button--ghost,.header-search,footer button { background:transparent; color:var(--brand); }
button:hover,.button:hover { background:var(--ink); color:var(--on-brand); }
button:disabled { cursor:default; opacity:.6; }
.guide-card,.topic-card { border-radius:var(--r-md); transition:transform .15s,box-shadow .15s; }
.guide-card:hover,.topic-card:hover,.hub-guide:hover,.hub-tool:hover,.bike-card:hover,.rack-card:hover {
 transform:translateY(-3px); box-shadow:var(--shadow-hover);
}
.hub-guide,.hub-tool,.bike-card,.rack-card { transition:transform .15s,box-shadow .15s; }
@media(prefers-reduced-motion:reduce) {
 .guide-card:hover,.topic-card:hover,.hub-guide:hover,.hub-tool:hover,.bike-card:hover,.rack-card:hover { transform:none; }
 .guide-card,.topic-card,.hub-guide,.hub-tool,.bike-card,.rack-card { transition:none; }
}

/* Shared semantic comparison tables. The wrapper owns desktop scrolling. */
.table-scroll { max-width:100%; overflow:auto; margin:1.5rem 0; }
.table-scroll:focus-visible { outline:3px solid var(--focus); outline-offset:3px; }
main table.responsive-table { display:table; width:100%; overflow:visible; font-variant-numeric:tabular-nums; }
main table.responsive-table th,main table.responsive-table td { text-align:left; vertical-align:top; }
main table.responsive-table tbody tr:nth-child(even) { background:var(--paper); }
main table.responsive-table caption { text-align:left; padding:.75rem 0; font-weight:600; }
@media(max-width:600px) {
 .table-scroll { overflow:visible; }
 main table.responsive-table,main table.responsive-table tbody { display:block; min-width:0; width:100%; }
 main table.responsive-table thead { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); }
 main table.responsive-table tbody tr { display:block; margin:0 0 1rem; padding:.5rem; border:1px solid var(--line); border-radius:var(--r-md); background:var(--white); }
 main table.responsive-table tbody tr[hidden] { display:none; }
 main table.responsive-table tbody th,main table.responsive-table tbody td { display:block; width:auto; border:0; padding:.65rem; overflow-wrap:anywhere; }
 main table.responsive-table tbody :is(th,td)::before { display:block; content:attr(data-label); font-size:.75rem; font-weight:700; color:var(--muted); margin-bottom:.3rem; }
 main table.responsive-table caption { display:block; }
}

/* System appearance works without JavaScript; explicit reader choices override it. */
:root { color-scheme:light; }
@media(prefers-color-scheme:dark) { :root:not([data-theme="light"]) { --paper:#0B1A2E; --ink:#E6EEF5; --brand:#A7CDF5; --brand-soft:#18334F;
 --muted:#B4C4D5; --line:#6B88A4; --white:#122740; --on-brand:#0B1A2E;
 --link-hover:#C7E5FF; --error:#FFB5A3; --focus:#6AC9FF;
 --strong-bg:#193D60; --strong-ink:#E6EEF5; --shadow-hover:0 8px 24px -12px rgb(0 0 0 / .7);
 color-scheme:dark; } }
:root[data-theme="dark"] { --paper:#0B1A2E; --ink:#E6EEF5; --brand:#A7CDF5; --brand-soft:#18334F;
 --muted:#B4C4D5; --line:#6B88A4; --white:#122740; --on-brand:#0B1A2E;
 --link-hover:#C7E5FF; --error:#FFB5A3; --focus:#6AC9FF;
 --strong-bg:#193D60; --strong-ink:#E6EEF5; --shadow-hover:0 8px 24px -12px rgb(0 0 0 / .7);
 color-scheme:dark; }
.site-appearance { display:flex; flex-wrap:wrap; align-items:center; gap:.75rem; margin-top:1.5rem; }
.site-appearance label { font-weight:600; }
.site-appearance select { width:auto; min-height:44px; max-width:100%; }
.site-appearance small { color:var(--muted); font-size:.75rem; }
.feature-tool .eyebrow,.mini-tool-preview small { color:var(--strong-ink); }
.mini-battery { border-color:var(--strong-ink); }
.mini-battery span { background:var(--strong-ink); }

#bt-rating { font-variant-numeric:tabular-nums; font-size:clamp(2rem,5vw,3.5rem); margin:.6rem 0 1.5rem; }
#bt-error,#bt-link-warning { color:var(--error); font-weight:600; }
#bt-output[data-stale] { border:2px solid var(--error); }
.commute-output #bt-summary { font-size:.85rem; padding:1rem; background:var(--brand-soft); border-radius:var(--r-sm); }
#bt-form input:disabled { opacity:.6; }

.flight-gates { display:none; }
@media(max-width:600px) { .article-hero img.flight-diagram {display:none;} .flight-gates {display:grid;gap:1rem;} .flight-gates section {padding:1.25rem;background:var(--white);border:1px solid var(--line);border-radius:var(--r-md);} .flight-gates h3 {font-size:1.2rem;margin:0 0 1rem;} .flight-gates p {font-size:1rem;margin:0;} .flight-gate-conclusion {padding:1rem;border-left:4px solid var(--accent);background:var(--brand-soft);} }

/* Ownership planning links retain readable, responsive controls. */
.cost-result label { display:grid; gap:.4rem; margin-top:1rem; font-size:.9rem; font-weight:600; }
.cost-result input,.cost-result textarea { width:100%; min-width:0; box-sizing:border-box; padding:.8rem; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--white); color:var(--ink); font:inherit; }
.cost-result textarea { resize:vertical; min-height:8rem; }
.cost-result input:focus-visible,.cost-result textarea:focus-visible { outline:3px solid var(--brand); outline-offset:2px; }
.cost-result button { max-width:100%; white-space:normal; }
