/* Homepage refresh: one header menu language, the hero brands strip, the compact
   Calculators & finders section (tool rows, finder chips) and the "Watch how we test" row. */

/* ---------- Header: every desktop menu looks and behaves the same ---------- */
.bs-nav-root .bs-nav-panel--cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  column-gap: 4px;
  width: min(540px, calc(100vw - 24px));
  max-width: none;
  max-height: var(--nav-space, calc(100dvh - 86px));
  padding: 8px;
}
.bs-nav-panel__head {
  grid-column: 1 / -1;
  margin: 6px 12px 6px;
  color: #5b6f82;
  font: 600 11px/1.4 "DM Sans", sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.bs-nav-root .bs-nav-panel--list > a.bs-nav-panel__all {
  grid-column: 1 / -1;
  justify-content: space-between;
  margin-top: 6px;
  border-top: 1px solid var(--nav-border);
  border-radius: 0 0 6px 6px;
  color: var(--nav-blue);
  font-weight: 600;
}
.bs-nav-root .bs-nav-panel--rich { width: min(340px, calc(100vw - 24px)); max-width: none; padding: 6px; }
.bs-nav-root .bs-nav-panel--rich > a:not(.bs-nav-panel__all) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px;
  align-content: center;
  min-height: 60px;
}
.bs-nav-panel--rich > a strong { color: var(--nav-ink); font-weight: 600; }
.bs-nav-panel--rich > a small { grid-column: 1; margin-top: 2px; color: #5b6f82; font: 400 12.5px/1.45 "DM Sans", sans-serif; }
.bs-nav-panel--rich > a .bs-link-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--nav-blue); }
.bs-nav-panel--rich > a:is(:hover, :focus-visible) strong { color: var(--nav-blue); }
.bs-nav-root .bs-nav-panel a:is(:hover, :focus-visible) .bs-link-arrow { transform: translateX(3px); }
.bs-nav-panel .bs-link-arrow { display: inline-block; transition: transform 150ms ease-out; }

/* ---------- Hero: brands we've reviewed ---------- */
.bs-brands {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: clamp(36px, 4.5vw, 56px);
  padding-top: 22px;
  border-top: 1px solid #e3eaf1;
}
.bs-brands__title {
  flex: none;
  max-width: 9.5em;
  margin: 0;
  color: #4e6275;
  font: 600 12px/1.45 "DM Sans", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bs-brands__viewport {
  display: flex;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.bs-brands__track {
  display: flex;
  flex: none;
  align-items: center;
  gap: 44px;
  margin: 0;
  padding: 0 22px;
  list-style: none;
  animation: bs-brands-scroll 55s linear infinite;
}
.bs-brands__viewport:is(:hover, :focus-within) .bs-brands__track { animation-play-state: paused; }
@keyframes bs-brands-scroll { to { transform: translateX(-100%); } }
.bs-brand { flex: none; margin: 0; padding: 0; }
.hero .bs-brand a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: #6a7b8c;
  font: 600 15px/1 "DM Sans", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease-out;
}
.bs-brand svg { flex: none; fill: currentColor; }
.hero .bs-brand a:is(:hover, :focus-visible) { color: #0d3b6e; }
.hero .bs-brand a:focus-visible { outline: 2px solid #1a6faf; outline-offset: 4px; border-radius: 4px; }

/* ---------- Calculators & finders ---------- */
.bs-tools .bs-tools__header { align-items: flex-end; }
.bs-tools__intro { max-width: 690px; }
.bs-tools__eyebrow {
  margin: 0 0 10px;
  color: var(--tool-blue);
  font: 600 12px/1.3 "DM Sans", sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.bs-tools__lede { margin: 14px 0 0; color: #475a6b; font-size: 17px; line-height: 1.6; }
.bs-tools__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 36px;
  margin: 24px 0 6px;
  padding: 0;
  list-style: none;
}
.bs-tools__facts li { display: flex; align-items: baseline; gap: 8px; margin: 0; color: #526271; font-size: 14px; }
.bs-tools__facts strong { color: var(--tool-navy); font: 400 28px/1 "DM Serif Display", Georgia, serif; }

.bs-tools .bs-tool-rows { list-style: none; margin: 0; padding: 0; }
.bs-tools .bs-tool-rows > li { border-bottom: 1px solid var(--tool-line); }
.bs-tools .bs-tools__list a.bs-tool-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto auto;
  justify-content: stretch;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 10px 2px;
}
.bs-tool-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef4f9;
}
.bs-tool-ico svg { width: 26px; height: 26px; }
.bs-tool-row__text { display: grid; gap: 2px; min-width: 0; }
.bs-tool-row__text strong { color: #213a4d; font-size: 16px; font-weight: 600; line-height: 1.35; }
.bs-tool-row__text small { color: #5b6d7d; font-size: 13.5px; line-height: 1.4; }
.bs-tool-row:is(:hover, :focus-visible) .bs-tool-row__text strong { color: var(--tool-blue); }
.bs-tool-tag {
  padding: 3px 9px;
  border: 1px solid var(--tool-line);
  border-radius: 999px;
  color: #526271;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.bs-finders, .bs-videos { margin-top: clamp(44px, 5vw, 64px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--tool-line); scroll-margin-top: 90px; }
.bs-tools__subhead { margin-bottom: 20px; }
.bs-tools__subhead--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 24px; }
:is(.bs-tools, .bs-watch) .bs-tools__subtitle { margin: 0 0 6px; color: var(--tool-blue); font: 400 clamp(24px, 2.6vw, 30px)/1.15 "DM Serif Display", Georgia, serif; }
.bs-tools__subhead p { margin: 0; color: #526271; font-size: 15.5px; line-height: 1.55; }

.bs-finders__grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bs-finders__grid li { margin: 0; }
.bs-tools a.bs-finder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  padding: 16px 14px 14px;
  border: 1px solid var(--tool-line);
  border-radius: 12px;
  background: var(--tool-surface);
  color: #213a4d;
  text-decoration: none;
  transition: border-color 150ms ease-out, background-color 150ms ease-out, transform 150ms var(--tool-ease);
}
.bs-finder__ico { width: 38px; height: 38px; }
.bs-finder__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.bs-finder__cta { margin-top: auto; color: var(--tool-blue); font-size: 13px; font-weight: 600; }
.bs-tools a.bs-finder:is(:hover, :focus-visible) { border-color: var(--tool-blue); background: #fff; transform: translateY(-2px); }

.bs-videos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.bs-videos__grid li { margin: 0; min-width: 0; }
:is(.bs-tools, .bs-watch) a.bs-video { display: flex; flex-direction: column; gap: 8px; color: #213a4d; text-decoration: none; }
.bs-video__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 4px;
  border-radius: 12px;
  background: #dfe8f0;
}
.bs-video__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 250ms var(--tool-ease); }
.bs-video__play {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(13 59 110 / 88%);
  box-shadow: 0 4px 14px rgb(0 0 0 / 25%);
}
.bs-video__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}
.bs-video__kind { color: #5b6d7d; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.bs-video__title { font-size: 16px; font-weight: 600; line-height: 1.4; }
:is(.bs-tools, .bs-watch) a.bs-video:is(:hover, :focus-visible) .bs-video__title { color: var(--tool-blue); }
:is(.bs-tools, .bs-watch) a.bs-video:is(:hover, :focus-visible) .bs-video__thumb img { transform: scale(1.03); }
:is(.bs-tools, .bs-watch) a.bs-video:is(:hover, :focus-visible) .bs-video__play { background: #f5a623; }

@media (max-width: 1080px) {
  .bs-finders__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bs-videos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .bs-brands { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 18px; }
  .bs-brands__title { max-width: none; text-align: center; }
  .bs-brands__track { gap: 32px; padding: 0 16px; }
  .bs-tools__facts { gap: 8px 24px; }
  .bs-tools__facts strong { font-size: 24px; }
  .bs-tools .bs-tools__list a.bs-tool-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .bs-tool-tag { display: none; }
  .bs-finders__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bs-videos__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 6px; }
  .bs-videos__grid li { flex: 0 0 82%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-brands__track { flex-wrap: wrap; flex: 1; gap: 12px 32px; animation: none; }
  .bs-brands__track[aria-hidden="true"] { display: none; }
  .bs-brands__viewport { -webkit-mask-image: none; mask-image: none; }
  .bs-finder, .bs-video__thumb img { transition: none !important; }
}


/* ---------- Homepage order: reviews first, tools after, trust near About ---------- */
/* Finders shrink to one row of chips so the tools section stays about half its old height. */
.bs-tools .bs-finders { margin-top: clamp(28px, 3.5vw, 40px); padding-top: clamp(22px, 3vw, 30px); }
.bs-tools .bs-finders .bs-tools__subhead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 14px; }
.bs-tools .bs-finders .bs-tools__subtitle { margin: 0; font-size: clamp(21px, 2.2vw, 25px); }
.bs-tools .bs-finders .bs-tools__subhead p { font-size: 14.5px; }
.bs-finders__grid { gap: 10px; }
.bs-tools a.bs-finder {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 10px;
}
.bs-tools a.bs-finder svg { flex: none; width: 26px; height: 26px; }
.bs-tools a.bs-finder .bs-finder__name { font-size: 14.5px; }
.bs-tools a.bs-finder .bs-finder__cta { display: none; }

/* "Watch how we test" is a trust signal, so it sits beside About instead of inside the tools. */
.bs-watch {
  --tool-blue: #1a6faf;
  --tool-line: #d8e3ed;
  --tool-ease: cubic-bezier(.22, 1, .36, 1);
  background: #f7f9fc;
  color: #354858;
  font-family: "DM Sans", sans-serif;
  scroll-margin-top: 82px;
}
.bs-watch .bs-tools__inner { padding-block: clamp(36px, 4.5vw, 60px); }
.bs-watch .bs-videos { margin: 0; padding: 0; border: 0; }
.bs-watch .bs-tools__all { color: var(--tool-blue); }
.bs-watch a:is(:hover, :focus-visible) .bs-link-arrow { transform: translateX(3px); }
.bs-watch a:focus-visible { outline: 2px solid #1a6faf; outline-offset: 4px; border-radius: 6px; }

@media (max-width: 1080px) {
  .bs-finders__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .bs-finders__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .bs-watch .bs-videos__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 6px; }
  .bs-watch .bs-videos__grid li { flex: 0 0 82%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .bs-watch .bs-video__thumb img { transition: none !important; }
}
