/* Visual refinement layer. Kept separate so this pass can be removed cleanly. */
:root {
  --ink: #17324a;
  --muted: #5f7080;
  --line: #d8e6ee;
  --paper: #ffffff;
  --soft: #f3f9fc;
  --sun: #fff8df;
  --accent: #118fc9;
  --accent-dark: #075d91;
  --gold: #e7a928;
  --coral: #e96963;
  --leaf: #55a47b;
  --shadow: 0 16px 38px rgba(20, 67, 96, 0.11);
}

body {
  color: var(--ink);
  background: #fff;
}

.site-header {
  border-bottom: 1px solid rgba(18, 104, 154, 0.16);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(17, 65, 94, 0.07);
}

.header-inner {
  min-height: 68px;
}

.brand-logo {
  width: min(292px, 34vw);
  max-height: 42px;
}

.global-nav {
  gap: 2px;
}

.global-nav a {
  position: relative;
  border-radius: 4px;
  color: #29465b;
  padding: 10px 11px;
}

.global-nav a::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 5px;
  left: 11px;
  height: 2px;
  background: #159fd2;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.global-nav a:hover {
  color: #075d91;
  background: #f2f9fd;
}

.global-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  border-bottom: 1px solid #d9ebf4;
  background: #f7fbfd;
}

.hero-inner {
  padding-bottom: 50px;
}

.hero-title-banner {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.hero-copy {
  position: relative;
  max-width: 1000px;
  margin-top: 22px;
  color: #fff;
  background: #0876b9;
  font-size: clamp(1.06rem, 1.7vw, 1.34rem);
  line-height: 1.8;
  padding: 18px 24px 18px 30px;
}

.hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 7px;
  background: #ffd45b;
}

.hero-checks {
  max-width: 1000px;
  gap: 12px;
}

.hero-checks li {
  border: 1px solid #cfe3ee;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 67, 96, 0.06);
  padding: 14px 14px 14px 40px;
}

.hero-checks li::before {
  left: 16px;
  top: 20px;
  background: #159fd2;
  box-shadow: 0 0 0 4px #e0f3fb;
}

.button {
  border-radius: 5px;
  min-height: 48px;
  padding-inline: 22px;
}

.button.primary {
  background: #0876b9;
  box-shadow: 0 10px 22px rgba(8, 118, 185, 0.22);
}

.button.secondary {
  color: #075d91;
  border-color: #6eb9dc;
}

.hero-stats {
  max-width: 1000px;
  gap: 0;
  border: 1px solid #d5e7ef;
  background: #fff;
}

.hero-stats li {
  border: 0;
  border-right: 1px solid #d5e7ef;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 18px 22px;
}

.hero-stats li:last-child {
  border-right: 0;
}

.hero-stats strong {
  color: #08689f;
}

.section {
  padding: 70px 0;
}

.best-summary {
  margin-top: 0;
  padding: 58px 0 44px;
  background: #fff;
}

.summary-heading {
  grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
  gap: 10px 30px;
  align-items: center;
  margin-bottom: 22px;
}

.summary-heading .section-kicker {
  color: #0876b9;
}

.summary-heading h2 {
  border-left: 7px solid #ffd45b;
  color: #fff;
  background: #0876b9;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  padding: 12px 18px;
}

.summary-heading p:last-child {
  max-width: none;
  border: 0;
  border-left: 1px solid #b9d7e6;
  border-radius: 0;
  color: #345269;
  background: transparent;
  font-size: 1rem;
  padding: 5px 0 5px 26px;
}

.best-tab-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.best-tab {
  border-radius: 5px;
  background: #eef7fc;
  box-shadow: none;
  padding: 12px 10px;
}

.best-tab.is-active,
.best-tab:hover,
.best-tab:focus-visible {
  border-color: #0876b9;
  background: #0876b9;
  box-shadow: 0 8px 18px rgba(8, 118, 185, 0.18);
}

.best-viewport,
.best-grid article {
  border-radius: 6px;
}

.best-grid article {
  border: 1px solid #d6e4eb;
  box-shadow: var(--shadow);
}

.best-grid article > img {
  object-fit: cover;
  background: #f6fafc;
}

.best-grid article > div {
  border-left: 5px solid #eef5f8;
  padding: 30px;
}

.best-rank {
  border-radius: 3px;
  background: #e5aa2b;
}

.best-grid h3 {
  color: #17324a;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

.quick-search {
  border-color: #eddfb6;
  background: #fff8df;
  padding: 28px 0;
}

.search-inner h2 {
  color: #17324a;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.filter-button {
  border-radius: 5px;
  border-color: #cbdde6;
  box-shadow: 0 4px 12px rgba(20, 67, 96, 0.04);
}

.filter-button.is-active {
  border-color: #0876b9;
  background: #0876b9;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 32px;
  border: 0;
  border-left: 7px solid #159fd2;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 2px 0 2px 22px;
}

.section-heading .section-kicker,
.advice-copy .section-kicker {
  border-radius: 3px;
  color: #075d91;
  background: #e8f5fb;
  padding: 4px 9px;
}

.section-heading h2,
.advice-copy h2 {
  display: block;
  width: fit-content;
  border-radius: 0;
  color: #17324a;
  background: transparent;
  box-shadow: none;
  padding: 0 0 7px;
}

.section-heading h2::before,
.advice-copy h2::before {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg, #159fd2 0 72px, #ffd45b 72px 108px, #d8e6ee 108px 100%);
  box-shadow: none;
}

.section-heading h2.image-heading,
.section-heading h2.image-heading img {
  border-radius: 0;
  box-shadow: none;
}

.pro-check-section {
  background: #f3f9fc;
}

.advice-row {
  border: 0;
  border-left: 7px solid #159fd2;
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.advice-copy p {
  border: 0;
  border-radius: 4px;
  color: #29485d;
  background: #edf7fc;
  padding: 16px 18px;
}

.advice-copy li {
  border-left-color: #55a47b;
  background: #eef8f2;
}

.advice-balloon p {
  border-radius: 4px;
  background: #fffaf0;
}

.photo-section {
  background: #fff;
}

.photo-grid {
  gap: 18px;
}

.photo-grid figure {
  border-radius: 5px;
  border-color: #d6e4eb;
  box-shadow: 0 12px 26px rgba(20, 67, 96, 0.09);
}

.photo-grid img {
  transition: transform 240ms ease;
}

.photo-grid figure:hover img {
  transform: scale(1.025);
}

.photo-grid figcaption {
  border-top: 3px solid #159fd2;
  background: #fff;
}

.criteria-section {
  border-top: 1px solid #d8e8f0;
  border-bottom: 1px solid #d8e8f0;
  background: #f3f9fc;
}

.criteria-section .section-heading .section-kicker {
  color: #fff;
  background: #075d91;
}

.criteria-section .section-heading h2 {
  color: #17324a;
  background: transparent;
  padding: 0 0 9px;
}

.criteria-grid {
  gap: 16px;
}

.criteria-grid article {
  border: 1px solid #cfe0e9;
  border-top: 5px solid #118fc9;
  border-left-width: 1px;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(20, 67, 96, 0.05);
  padding: 20px;
}

.criteria-grid span {
  color: #075d91;
  background: #e7f5fb;
}

.criteria-note {
  border: 0;
  border-left: 5px solid #e5aa2b;
  background: #fff8df;
  padding: 14px 16px;
}

.ranking-section {
  background: #f5fafc;
}

.ranking-heading {
  border-left: 0;
  padding-left: 0;
}

.ranking-heading::after {
  height: 3px;
  background: linear-gradient(90deg, #0876b9 0 74%, #ffd45b 74% 100%);
}

.ranking-heading .section-kicker {
  color: #fff;
  background: #075d91;
}

#ranking-title.image-heading img,
#photos-title.image-heading img {
  height: clamp(96px, 9vw, 118px);
}

.ranking-heading h2.image-heading img {
  border: 1px solid #d3e4ed;
}

.ranking-heading p:last-child {
  border-left: 7px solid #ffd45b;
  background: #0876b9;
  box-shadow: 0 10px 24px rgba(8, 118, 185, 0.14);
}

.ranking-list {
  gap: 26px;
}

.rank-card {
  border-radius: 6px;
  border-color: #d4e2e9;
  box-shadow: 0 15px 34px rgba(20, 67, 96, 0.09);
}

.rank-card-top {
  border-top: 5px solid #e5aa2b;
}

.rank-heading {
  border-bottom-color: #d5e5ed;
  background: #fff;
  padding: 18px 24px;
}

.rank-heading img {
  width: 64px;
  height: 64px;
}

.rank-heading h3 {
  color: #17324a;
}

.rank-visual {
  min-height: 220px;
  background: #edf5f9;
}

.rank-visual > img {
  max-height: 330px;
  aspect-ratio: 16 / 6;
}

.rank-content {
  padding: 26px;
}

.company-area {
  border: 0;
  border-left: 7px solid #118fc9;
  border-radius: 0;
  background: #edf7fc;
  padding: 12px 15px;
}

.source-note {
  border: 0;
  border-bottom: 1px solid #dbe8ee;
  background: transparent;
  color: #69808e;
  font-size: 0.82rem;
  padding: 4px 0 12px;
}

.rank-content > .company-area + p,
.rank-content > .source-note + p {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #314d60;
  padding: 4px 2px;
}

.point-list {
  border: 0;
  border-left: 5px solid #55a47b;
  border-radius: 0;
  background: #f1f8f4;
  box-shadow: none;
  padding: 15px 18px;
}

.point-list li {
  border-left: 0;
  border-bottom: 1px solid #d7e9dd;
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
}

.point-list li:last-child {
  border-bottom: 0;
}

.score-list {
  border: 0;
  border-radius: 4px;
  background: #eef5f8;
  box-shadow: none;
  padding: 16px;
}

.score-list div {
  border-color: #d5e4eb;
  border-radius: 3px;
}

.review-box {
  border: 0;
  border-radius: 4px;
  background: #f2f8fb;
  box-shadow: none;
  padding: 20px;
}

.review-box h4 {
  border-left: 6px solid #118fc9;
  border-radius: 0;
  color: #173f58;
  background: #e1f1f8;
  padding: 11px 14px;
}

.review-note {
  border: 0;
  border-bottom: 1px solid #d5e5ed;
  background: transparent;
  color: #647b89;
  padding: 2px 0 12px;
}

.review-item p {
  border-radius: 4px;
}

.company-facts {
  border: 1px solid #c8e2d2;
  border-radius: 4px;
  background: #f2f9f5;
  box-shadow: none;
}

.company-facts h4 {
  background: #338b64;
}

.company-facts dt {
  border-radius: 3px;
  background: #d7eee0;
}

.company-map {
  border-radius: 4px;
  box-shadow: none;
}

.company-map h4 {
  border-bottom: 1px solid #d5e5ed;
  background: #edf6fa;
}

.card-button {
  background: #173f58;
}

.compare-section,
.faq-section {
  background: #f3f9fc;
}

.table-wrap {
  border-radius: 4px;
  background: #fff;
}

th {
  background: #173f58;
}

.guide-list article,
.article-grid article {
  border-radius: 4px;
}

.guide-list article {
  border-left: 5px solid #118fc9;
  box-shadow: none;
}

.guide-list h3 {
  background: none;
}

.guide-list p {
  border-left: 4px solid #d5e7ef;
  border-radius: 0;
  background: #f1f7fa;
}

.contact-panel {
  border-radius: 4px;
  background: #f7fbfd;
}

.trivia-section {
  background: #fffaf0;
}

.trivia-grid article {
  border-radius: 4px;
  background: #fff;
}

.trivia-grid h3 {
  background: none;
}

.trivia-grid p {
  border-left: 4px solid #e5aa2b;
  border-radius: 0;
  background: #fffaf0;
}

details {
  border-radius: 4px;
  box-shadow: none;
}

summary {
  background: #edf7fc;
}

summary::after {
  border-radius: 3px;
  background: #118fc9;
}

details[open] summary {
  color: #075d91;
  background: #dff1f8;
}

details p {
  background: #fff;
}

.site-footer {
  background: #15364b;
}

.footer-grid section {
  border-color: rgba(177, 220, 240, 0.22);
  background: rgba(255, 255, 255, 0.045);
}

@media (max-width: 980px) {
  .brand-logo {
    width: min(272px, 54vw);
    max-height: 40px;
  }

  .summary-heading {
    grid-template-columns: 1fr;
  }

  .summary-heading p:last-child {
    border-left: 5px solid #b9d7e6;
    padding: 10px 0 10px 18px;
  }

  .best-grid article > div {
    border-top: 5px solid #eef5f8;
    border-left: 0;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .header-inner,
  .section-inner {
    width: min(100% - 24px, 1140px);
  }

  .header-inner {
    min-height: 62px;
  }

  .brand-logo {
    width: min(235px, 66vw);
    max-height: 34px;
  }

  .global-nav {
    top: 62px;
  }

  .hero-inner {
    width: 100%;
    padding-bottom: 38px;
  }

  .hero-copy {
    width: calc(100% - 24px);
    margin-top: 14px;
    font-size: 1rem;
    line-height: 1.75;
    padding: 15px 14px 15px 20px;
  }

  .hero-checks,
  .hero-actions,
  .hero-stats {
    width: calc(100% - 24px);
  }

  .hero-checks {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats li {
    border-right: 0;
    border-bottom: 1px solid #d5e7ef;
  }

  .hero-stats li:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 54px 0;
  }

  .best-summary {
    padding: 46px 0 34px;
  }

  .summary-heading h2 {
    width: 100%;
    font-size: 1.45rem;
  }

  .best-tab-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .best-tab {
    min-width: 0;
    font-size: 0.76rem;
    white-space: nowrap;
    padding: 10px 3px;
  }

  .best-grid article > img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .best-grid article > div {
    padding: 21px 18px 24px;
  }

  .search-inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-button {
    min-width: 0;
    padding-inline: 8px;
  }

  .section-heading {
    padding-left: 15px;
  }

  .section-heading h2,
  .advice-copy h2,
  .guide-main h2,
  .contact-panel h2,
  .faq-layout h2 {
    font-size: 1.65rem;
  }

  #ranking-title.image-heading img,
  #photos-title.image-heading img {
    height: 92px;
  }

  .advice-row,
  .advice-row-alt {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .advice-row-alt .advice-copy,
  .advice-row-alt .advice-balloon {
    grid-column: auto;
    grid-row: auto;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .criteria-grid,
  .article-grid,
  .trivia-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-heading {
    gap: 10px;
    padding: 14px;
  }

  .rank-heading img {
    width: 52px;
    height: 52px;
  }

  .rank-heading h3 {
    font-size: 1.42rem;
  }

  .rank-visual {
    min-height: 0;
  }

  .rank-visual > img {
    aspect-ratio: 16 / 8;
  }

  .rank-content {
    padding: 18px 14px;
  }

  .score-list {
    grid-template-columns: 1fr;
  }

  .review-box {
    padding: 16px 12px;
  }

  .review-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
  }

  .review-avatar {
    width: 34px;
    height: 34px;
  }

  .company-facts div,
  .company-map-layout,
  .company-map dl div,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .company-facts dt {
    width: fit-content;
  }

  .table-wrap {
    margin-inline: -12px;
    border-right: 0;
    border-left: 0;
  }

  .guide-list article {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 15px;
  }

  .faq-layout {
    gap: 22px;
  }

  .site-footer {
    padding: 36px 0 28px;
  }
}
