/* Before It Breaks — senior-friendly fix library.
   Navy #1F2A44, cream #F7F3EA, action orange #8F4300 (white text meets WCAG AA).
   Bright brand orange #F28C28 is used as a bar and on navy, where contrast holds. */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 18rem;
  scroll-behavior: smooth;
}
html[data-text="large"] { font-size: 112.5%; }
html[data-text="larger"] { font-size: 125%; }
body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans", "Liberation Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  line-height: 1.5;
  background: #F7F3EA;
  color: #1F2A44;
}
img { max-width: 100%; height: auto; display: block; }
button, input { font-family: inherit; }
button { cursor: pointer; }
p, h1, h2, h3 { overflow-wrap: anywhere; }
h1, h2, h3 { scroll-margin-top: 0.5rem; line-height: 1.25; font-weight: 800; }
a { color: #8F4300; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a:hover { text-decoration-thickness: 3px; }

:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 3px solid #1F2A44;
  outline-offset: 3px;
}
#count:focus {
  outline: 3px solid #1F2A44;
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -5rem;
  z-index: 100;
  background: #1F2A44;
  color: #fff;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap { width: min(68rem, calc(100% - 2rem)); margin: 0 auto; }
.wrap.narrow { width: min(42rem, calc(100% - 2rem)); }
#main:focus { outline: none; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Header */
.site-header { background: #F7F3EA; }
.sticky-tools {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 6px solid #F28C28;
  box-shadow: 0 2px 8px rgba(31, 42, 68, 0.08);
}
.tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  padding: 0.75rem 0;
}
.main-nav { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 5.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.75rem;
  border: 2px solid #1F2A44;
  background: #fff;
  color: #1F2A44;
  font-size: 1.125rem;
  font-weight: 800;
  text-decoration: none;
}
.nav-btn:visited { color: #1F2A44; }
.nav-home[aria-current="page"],
.nav-home[aria-current="page"]:visited {
  background: #1F2A44;
  color: #fff;
}
.nav-back.is-disabled,
.nav-back.is-disabled:visited {
  background: #EFE8D8;
  color: #3E4A63;
  border-style: dashed;
  cursor: not-allowed;
}
.search { flex: 1 1 18rem; min-width: min(100%, 16rem); margin: 0; }
.search-label {
  display: block;
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}
.search-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.search-row input {
  flex: 1 1 12rem;
  min-width: 0;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border: 2px solid #1F2A44;
  border-radius: 0.75rem;
  background: #fff;
  color: #1F2A44;
  font-size: 1.125rem;
  font-weight: 500;
}
.search-row input::placeholder { color: #3E4A63; opacity: 1; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-go, .clear-search {
  min-height: 3rem;
  min-width: 5.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 800;
}
.search-go {
  border: 2px solid #8F4300;
  background: #8F4300;
  color: #fff;
}
.search-go:hover, .search-go:focus-visible { background: #6E3200; border-color: #6E3200; }
.clear-search {
  border: 2px solid #1F2A44;
  background: #fff;
  color: #1F2A44;
}
.clear-search:hover, .clear-search:focus-visible { background: #F7F3EA; }

.identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0 0.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  color: #1F2A44;
  text-decoration: none;
}
.brand:visited { color: #1F2A44; }
.brand img { width: 4rem; height: 4rem; border-radius: 50%; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 0.1rem; }
.brand-name { font-weight: 800; font-size: 1.35rem; line-height: 1.2; }
.brand-tag { font-weight: 700; font-size: 1.125rem; color: #8F4300; }
.text-size { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.text-size-label { font-weight: 800; font-size: 1.125rem; }
.text-size button {
  min-height: 3rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.75rem;
  border: 2px solid #1F2A44;
  background: #fff;
  color: #1F2A44;
  font-size: 1.125rem;
  font-weight: 800;
}
html:not([data-text]) .text-size button[data-text="medium"],
html[data-text="medium"] .text-size button[data-text="medium"],
html[data-text="large"] .text-size button[data-text="large"],
html[data-text="larger"] .text-size button[data-text="larger"] {
  background: #1F2A44;
  color: #fff;
}
.more-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.more-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-size: 1.125rem;
  font-weight: 800;
}
.more-nav a[aria-current="page"] { color: #1F2A44; text-decoration-thickness: 3px; }

.disclose-bar {
  margin: 0;
  background: #EFE8D8;
  color: #1F2A44;
  font-size: 1.125rem;
  line-height: 1.5;
  text-align: center;
  padding: 0.85rem 1rem 1rem;
}
.disclose-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 0.15rem;
  font-weight: 800;
}

/* Home */
.hero { padding: 1.35rem 0 0.25rem; }
.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 800;
  color: #8F4300;
}
.hero h1 {
  margin: 0 0 0.6rem;
  font-size: 2.25rem;
  max-width: 18ch;
}
.lede, .fix-lede {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 40rem;
  color: #1F2A44;
}
.noscript-note {
  margin: 1rem 0 0;
  background: #FFF4E6;
  border: 3px solid #8F4300;
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  font-size: 1.125rem;
}
.cats, .section { padding: 0.5rem 0 0.25rem; }
.cats h2, .section h2, .fix-main h2, .prose h2 {
  margin: 0.4rem 0 0.75rem;
  font-size: 1.6rem;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 2px solid #1F2A44;
  background: #fff;
  color: #1F2A44;
  font-size: 1.125rem;
  font-weight: 800;
}
.chip:hover { background: #F7F3EA; }
.chip.is-on, .chip.is-on:hover {
  background: #1F2A44;
  color: #fff;
}
.chip.is-on::before { content: "✓ "; }
.count {
  margin: 0.35rem 0 1rem;
  font-size: 1.25rem;
  font-weight: 800;
}
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.card {
  background: #fff;
  border: 2px solid #C9BFAE;
  border-radius: 1rem;
  min-width: 0;
}
.card-link {
  display: grid;
  grid-template-columns: 7.75rem 1fr;
  column-gap: 1rem;
  row-gap: 0.35rem;
  align-items: start;
  padding: 1rem;
  height: 100%;
  color: #1F2A44;
  text-decoration: none;
}
.card-link:visited { color: #1F2A44; }
.card-link:hover { background: #FFFcf7; }
.card-link img {
  grid-column: 1;
  grid-row: 1 / span 4;
  width: 7.75rem;
  height: 9.75rem;
  object-fit: cover;
  object-position: top;
  border-radius: 0.6rem;
  background: #F7F3EA;
}
.card-link h3,
.card-link .meta,
.card-link .card-summary,
.card-link .open-fix { grid-column: 2; }
.card h3 { margin: 0; font-size: 1.4rem; }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin: 0; align-items: center; }
.tag, .time {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1F2A44;
}
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 2px solid #1F2A44;
  background: #F7F3EA;
}
.card-summary { margin: 0; font-size: 1.125rem; line-height: 1.45; }
.open-fix {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  min-height: 3rem;
  margin-top: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 0.75rem;
  background: #8F4300;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  text-align: center;
}
.card-link:hover .open-fix,
.card-link:focus-visible .open-fix,
.card-link:active .open-fix { background: #6E3200; }
.empty {
  margin: 0.5rem 0 1.5rem;
  background: #fff;
  border: 3px solid #1F2A44;
  border-radius: 1rem;
  padding: 1.15rem;
  font-size: 1.25rem;
}
.empty p { margin: 0 0 0.9rem; }
.empty .btn { margin-bottom: 0.9rem; }

/* Fix page */
.fix-main { padding: 1.25rem 0 2rem; }
.fix-kicker { margin-bottom: 0.75rem; }
.fix-kicker .time { margin: 0 0 0.2rem; font-size: 1.25rem; }
.room-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin: 0.15rem 1rem 0.15rem 0;
  font-size: 1.125rem;
  font-weight: 800;
}
.fix-main h1, .prose h1 {
  margin: 0.2rem 0 0.7rem;
  font-size: 2.15rem;
}
.steps-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.steps-toolbar h2 { margin: 0; }
.steps {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  align-items: start;
  background: #fff;
  border: 2px solid #C9BFAE;
  border-radius: 1rem;
  padding: 1rem;
}
.num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #1F2A44;
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
}
.steps h3 { margin: 0 0 0.25rem; font-size: 1.35rem; }
.steps p { margin: 0; font-size: 1.125rem; line-height: 1.5; }
.safety {
  background: #FFF4E6;
  border: 3px solid #8F4300;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin: 1rem 0 0.4rem;
}
.safety h2 { margin: 0 0 0.35rem; font-size: 1.45rem; }
.safety p { margin: 0; font-size: 1.25rem; line-height: 1.5; font-weight: 700; }
.fix-hero-img {
  margin: 1.25rem 0 0.5rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 2px solid #C9BFAE;
  background: #fff;
  max-width: 28rem;
}
.fix-hero-img img { width: 100%; height: auto; }
.seen { margin: 0.4rem 0 1.25rem; font-size: 1.125rem; }
.seen a {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  font-weight: 800;
}
.products { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1rem; }
.product {
  background: #fff;
  border: 2px solid #C9BFAE;
  border-radius: 1rem;
  padding: 1rem;
}
.product h3 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.why, .price-line, .note, .updated {
  margin: 0 0 0.75rem;
  font-size: 1.125rem !important;
  line-height: 1.5;
  color: #1F2A44 !important;
  font-weight: 500;
}
/* Store buttons: Option A — white fill, site-orange #8F4300 outline.
   Official logos stay unaltered on the white button. Do not use the
   brighter header-bar orange #F28C28 here (it is for navy backgrounds). */
.stores { display: flex; flex-direction: column; gap: 0.85rem; }
@media (min-width: 40rem) {
  .stores { flex-direction: row; align-items: stretch; }
  .store { flex: 1 1 0; }
}
.store {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 5.5rem;
  padding: 0.95rem 1.1rem 0.85rem;
  border-radius: 1.05rem;
  border: 3px solid #8F4300;
  background: #fff;
  color: #1F2A44;
  font-weight: 800;
  font-size: 1.125rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  box-shadow:
    0 1px 2px rgba(31, 42, 68, 0.07),
    0 6px 16px rgba(31, 42, 68, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.store:visited { color: #1F2A44; }
.store:hover, .store:focus-visible {
  background: #FFF8F1;
  transform: translateY(-2px);
  box-shadow:
    0 2px 4px rgba(31, 42, 68, 0.08),
    0 10px 22px rgba(31, 42, 68, 0.15);
}
.store:active {
  transform: translateY(0);
  box-shadow:
    0 1px 2px rgba(31, 42, 68, 0.08),
    0 3px 8px rgba(31, 42, 68, 0.10);
}
.store:focus-visible {
  outline: 3px solid #1F2A44;
  outline-offset: 3px;
}
/* Official logos stay on a white field so their colors stay unaltered. */
.store.primary, .store.primary:visited {
  background: #fff;
  border-color: #8F4300;
  color: #1F2A44;
}
.store.primary:hover, .store.primary:focus-visible {
  background: #FFF8F1;
  border-color: #8F4300;
}
.store-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 1.85rem;
  margin: 0 auto;
  text-align: center;
}
.store-logo {
  display: block;
  width: auto;
  flex: 0 0 auto;
}
.store-amazon .store-logo {
  height: 26px;
  min-width: 140px;
}
.store-logo-frame {
  display: block;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}
.store-logo-frame-ebay {
  /* Official artboard is square; window shows the 24px wordmark plus a little of the built-in clear space. */
  width: 3.85rem;
  height: 1.6rem;
}
.store-logo-frame img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: none;
}
.store-label { font-weight: 800; font-size: 1.125rem; line-height: 1.3; }
.store-ext { flex: 0 0 auto; display: block; width: 1.05rem; height: 1.05rem; }
.note.trademark { font-size: 1rem !important; font-weight: 500; }
.store .btn-note {
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: rgba(31, 42, 68, 0.72);
}
.btn-note { display: block; font-size: 1.125rem; font-weight: 700; }
.page-actions { margin: 1.25rem 0 0.5rem; }
.btn, .btn:visited {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border-radius: 0.75rem;
  border: 2px solid #8F4300;
  background: #8F4300;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  line-height: 1.3;
}
.btn:hover, .btn:focus-visible { background: #6E3200; border-color: #6E3200; color: #fff; }
.btn-secondary, .btn-secondary:visited {
  background: #fff;
  color: #1F2A44;
  border-color: #1F2A44;
}
.btn-secondary:hover, .btn-secondary:focus-visible { background: #F7F3EA; color: #1F2A44; }

.newsletter {
  background: #1F2A44;
  color: #F7F3EA;
  padding: 2.25rem 0;
  margin-top: 1.5rem;
}
.nl-inner { width: min(42rem, calc(100% - 2rem)); margin: 0 auto; text-align: center; }
.newsletter h2 { margin: 0 0 0.5rem; font-size: 1.75rem; color: #F7F3EA; }
.newsletter p {
  margin: 0 auto 1rem;
  max-width: 38rem;
  color: #F7F3EA;
  font-size: 1.25rem;
  line-height: 1.5;
}
.newsletter .btn, .newsletter .btn:visited {
  background: #F7F3EA;
  border-color: #F7F3EA;
  color: #1F2A44;
}
.newsletter .btn:hover, .newsletter .btn:focus-visible { background: #fff; color: #1F2A44; }

.site-footer {
  background: #1F2A44;
  color: #F7F3EA;
  padding: 2rem 0 2.25rem;
}
.footer-inner { text-align: center; }
.footer-name {
  margin: 0 0 0.25rem;
  font-weight: 800;
  font-size: 1.35rem;
}
.footer-tag { margin: 0 0 0.75rem; color: #F28C28; font-weight: 800; font-size: 1.125rem; }
.footer-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 1rem;
}
.footer-nav a, .footer-nav a:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.35rem 0.75rem;
  color: #F7F3EA;
  font-size: 1.125rem;
  font-weight: 700;
}
.footer-disclose, .footer-legal {
  max-width: 40rem;
  margin: 0 auto 0.75rem;
  color: #F7F3EA;
  font-size: 1.125rem;
  line-height: 1.5;
  font-weight: 500;
}
.prose p { margin: 0 0 1rem; font-size: 1.125rem; line-height: 1.55; color: #1F2A44; }
.prose a { font-weight: 800; }
.prose a.btn { font-weight: 800; }

@media (max-width: 560px) {
  .card-link { grid-template-columns: 1fr; }
  .card-link img {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    height: 12rem;
  }
  .card-link h3,
  .card-link .meta,
  .card-link .card-summary,
  .card-link .open-fix { grid-column: 1; }
}
@media (min-width: 860px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .footer-nav { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 700px) {
  .hero h1, .fix-main h1, .prose h1 { font-size: 1.85rem; }
  .main-nav, .search { flex: 1 1 100%; }
  .nav-btn { flex: 1 1 0; }
  .search-row { flex-direction: column; align-items: stretch; }
  .search-row input, .search-go, .clear-search {
    width: 100%;
    flex: 0 0 auto;
    height: auto;
    min-height: 3rem;
  }
}
@media (max-width: 560px) {
  .steps li { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .store:hover, .store:focus-visible, .store:active { transform: none; }
}
@media (prefers-contrast: more) {
  .card, .steps li, .product, .safety, .empty, .store, .nav-btn, .chip, .btn { border-width: 3px; }
}
@media (forced-colors: active) {
  .nav-btn, .chip, .btn, .store, .search-go, .clear-search, .text-size button, .open-fix, .card, .steps li {
    forced-color-adjust: auto;
    border: 2px solid ButtonText;
  }
  :focus-visible { outline: 3px solid Highlight; }
}
@media print {
  .sticky-tools, .disclose-bar, .newsletter, .site-footer, .text-size, .more-nav,
  .page-actions, #print-steps, .search, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .steps li, .safety, .product { break-inside: avoid; }
  a { color: #000; }
}
