:root { font-family: system-ui, sans-serif; color: var(--brand-charcoal, #17221d); background: var(--brand-cream, #f8f3e8); line-height: 1.65; }
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, p, li { overflow-wrap: anywhere; }
body > main, body > footer { width: min(100% - 2.5rem, 51.5rem); margin-inline: auto; }
a { color: #245d40; text-underline-offset: .2em; overflow-wrap: anywhere; }
a:focus-visible { outline: 3px solid #8c4b16; outline-offset: 4px; }
nav:not(.brand-nav) { display: flex; flex-wrap: wrap; gap: 1.5rem; }
main { margin-block: 2rem; }
h1, h2 { font-family: var(--brand-display, Georgia, serif); }
h1 { line-height: 1.2; }
.guide-cards { padding: 0; list-style: none; }
.guide-cards li { padding: 1rem; border: 1px solid #acb8ab; border-radius: .5rem; }
footer { border-top: 1px solid #acb8ab; padding-block: 1rem; }
.skip-link { position: absolute; left: -10000px; }
.skip-link:focus { position: absolute; z-index: 2; left: .75rem; top: .75rem; padding: .4rem .65rem; background: #fff; }
@media print { body { background: white; color: black; } nav, .skip-link { display: none; } a { color: black; } h1, h2, h3 { break-after: avoid; } p, li { orphans: 3; widows: 3; } footer { break-inside: avoid; } }

.editorial-product-comparison .guide-cards {
  display: grid;
  gap: 1rem;
}

.editorial-product-comparison .editorial-product-card {
  padding: clamp(1rem, 3vw, 1.5rem);
  background: #fff;
  border-color: #cedacf;
  border-radius: .875rem;
}

.editorial-product-card:has(.editorial-product-photo) {
  display: grid;
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: start;
}

.editorial-product-photo {
  display: grid;
  place-items: center;
  border-radius: .625rem;
  background: #f4f5f2;
}

.editorial-product-photo img {
  display: block;
  width: 100%;
  max-width: 20rem;
  height: auto;
  border-radius: inherit;
}

.editorial-product-copy h3 {
  margin: 0;
  line-height: 1.25;
  font-size: 1.25rem;
}

.editorial-product-copy p {
  margin: .625rem 0 0;
}

.editorial-product-subtitle {
  color: #385443;
}

.editorial-product-specs {
  font-weight: 700;
}

.editorial-product-copy .editorial-product-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .875rem;
  border-radius: .5rem;
  background: #26382c;
  color: #fff;
  font-weight: 700;
}

.editorial-product-copy .editorial-product-cta:hover {
  background: #385443;
}

@media screen and (min-width: 640px) {
  .editorial-product-card:has(.editorial-product-photo) {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

@media print {
  .editorial-product-card { break-inside: avoid; }
  .editorial-product-copy .editorial-product-cta { color: black; background: transparent; padding: 0; }
}

#battery-comparison-quick, #battery-comparison-details { scroll-margin-top: 1rem; }

.editorial-product-comparison--compact {
  margin-block: 1.5rem;
  padding: clamp(.9rem, 2.5vw, 1.4rem);
  border: 1px solid #dac9ae;
  border-radius: .875rem;
  background: #f0e7d5;
}

.editorial-product-comparison--compact h2 { margin: 0; line-height: 1.2; }
.editorial-product-comparison--compact > p { margin: .65rem 0; }
.editorial-product-comparison--compact .guide-cards { margin: .8rem 0; }

.editorial-product-comparison--compact .editorial-product-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: stretch;
  padding: .85rem;
}

.editorial-product-comparison--compact .editorial-product-photo img {
  width: min(100%, 8rem);
}

.editorial-product-comparison--compact .editorial-product-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.editorial-product-comparison--compact .editorial-product-copy p {
  margin-top: .4rem;
}

.editorial-product-comparison--compact .editorial-product-copy .editorial-product-shop {
  margin-top: auto;
  padding-top: .6rem;
}

.editorial-details-link a {
  display: inline-block;
  font-weight: 700;
}

@media screen and (min-width: 640px) {
  .editorial-product-comparison--compact .guide-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
