/* Homepage visual system: brand-forward, compact and responsive. */
body.home-page {
  --home-ink: #263746;
  --home-muted: #665f55;
  --home-green: #27ae60;
  --home-green-deep: #1f8d50;
  --home-navy: #2c3e50;
  --home-coral: #e07a45;
  --home-cream: #faf6f0;
  --home-border: #e6dccb;
  --home-shadow: 0 14px 34px rgba(74, 58, 38, 0.10);
  background: var(--home-cream);
  color: var(--home-ink);
}

body.home-page .home-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 20px 64px;
  color: var(--home-ink);
  text-align: left;
  background:
    radial-gradient(circle at 8% 18%, rgba(224, 122, 69, 0.10), transparent 24%),
    radial-gradient(circle at 92% 6%, rgba(39, 174, 96, 0.14), transparent 26%),
    linear-gradient(135deg, #fffaf3 0%, #f7f0e4 58%, #edf8f1 100%);
}

body.home-page .home-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -90px -70px;
  width: 240px;
  height: 240px;
  border: 34px solid rgba(39, 174, 96, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

body.home-page .home-hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, 0.96fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
}

body.home-page .home-hero-copy {
  min-width: 0;
}

body.home-page .home-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--home-navy);
  text-decoration: none;
}

body.home-page .home-brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  color: #fff;
  background: linear-gradient(145deg, #35bd72, #218f50);
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 15px 15px 20px 15px;
  box-shadow: 0 8px 18px rgba(39, 174, 96, 0.22);
  transform: rotate(-2deg);
}

body.home-page .home-brand-mark::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  width: 12px;
  height: 12px;
  background: var(--home-coral);
  border: 2px solid #fffaf3;
  border-radius: 50%;
}

body.home-page .home-brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.home-page .home-brand-name {
  display: grid;
  gap: 1px;
  line-height: 1.15;
}

body.home-page .home-brand-name strong {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

body.home-page .home-brand-name small {
  color: #56806a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.home-page .home-hero-kicker {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 24px 0 10px;
  padding: 5px 12px;
  color: #1e7043;
  background: #e9f7ee;
  border: 1px solid #cce9d6;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

body.home-page .home-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0;
  color: var(--home-navy);
  font-size: clamp(1.95rem, 2.75vw, 2.45rem);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -0.005em;
  text-shadow: none;
}

body.home-page .hero-title-break {
  display: block;
}

body.home-page .home-hero-lead {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 15px 0 0;
  color: var(--home-muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.8;
}

body.home-page .home-hero-visual {
  position: relative;
  min-width: 0;
  height: 330px;
  margin: 0;
  overflow: hidden;
  background: #fff9ed;
  border: 1px solid rgba(214, 195, 164, 0.68);
  border-radius: 32px 32px 84px 32px;
  box-shadow: 0 22px 44px rgba(74, 58, 38, 0.14);
  transform: rotate(1deg);
}

body.home-page .home-hero-visual::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px 24px 70px 24px;
  pointer-events: none;
}

body.home-page .home-hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}

body.home-page .header-nav {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  margin-top: 22px;
  gap: 8px;
}

body.home-page .header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 13px;
  color: #3d3a34;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #ded2bf;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(83, 68, 46, 0.06);
  backdrop-filter: blur(6px);
}

body.home-page .header-nav a:hover {
  color: #176f41;
  background: #fff;
  border-color: #9ed8b5;
  box-shadow: 0 7px 16px rgba(39, 174, 96, 0.12);
}

body.home-page .top-search {
  position: relative;
  z-index: 4;
  width: 100%;
  margin: -34px auto 0;
  padding: 0 16px 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.home-page .top-search-inner {
  max-width: 940px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dfd4c3;
  border-radius: 20px;
  box-shadow: var(--home-shadow);
  backdrop-filter: blur(12px);
}

body.home-page .top-search h2 {
  margin: 0 0 8px;
  color: var(--home-navy);
  font-size: 1.03rem;
}

body.home-page .top-search-form {
  grid-template-columns: minmax(0, 1fr) 124px;
  gap: 10px;
}

body.home-page .top-search-input {
  height: 50px;
  color: var(--home-ink);
  background: #fff;
  border: 1.5px solid #d6c8b4;
  border-radius: 13px;
  padding: 9px 16px;
  font-weight: 600;
}

body.home-page .top-search-button {
  height: 50px;
  background: linear-gradient(135deg, #31b96d, #218f50);
  border-radius: 13px;
  box-shadow: 0 7px 16px rgba(39, 174, 96, 0.25);
}

body.home-page .trust-summary {
  max-width: 880px;
  margin: 8px auto 12px;
  gap: 10px;
}

body.home-page .trust-item {
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e1d6c6;
  border-top: 3px solid #43b87a;
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(83, 68, 46, 0.08);
}

body.home-page .hero-assurance {
  margin: 2px auto 10px;
}

body.home-page .hero-assurance span {
  color: #4f5d54;
  background: #fff;
  border-color: #dfd4c3;
}

body.home-page .site-promo-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  width: calc(100% - 32px);
  max-width: 848px;
  margin: 0 auto 14px;
  padding: 9px 13px;
  color: #594a36;
  background: #fffaf0;
  border: 1px solid #eadabd;
  border-left: 4px solid #d9902e;
  border-radius: 11px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.65;
  text-align: left;
}

body.home-page .site-promo-label {
  flex: 0 0 auto;
  margin-top: 1px;
  padding: 1px 7px;
  color: #8a4a1f;
  background: #ffedcf;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

body.home-page .conversion-panel {
  margin-top: 0;
}

body.home-page main {
  width: min(880px, calc(100% - 32px));
}

body.home-page .home-section {
  --section-accent: var(--home-green);
  position: relative;
  overflow: hidden;
  border-color: rgba(205, 190, 168, 0.58);
  box-shadow: 0 10px 24px rgba(82, 65, 43, 0.07);
}

body.home-page .home-section::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: -38px;
  right: -34px;
  width: 112px;
  height: 112px;
  border: 22px solid color-mix(in srgb, var(--section-accent) 10%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

body.home-page .home-section > * {
  position: relative;
  z-index: 1;
}

body.home-page .home-section h2,
body.home-page .home-section--featured .home-section-head h2 {
  border-left-color: var(--section-accent);
}

body.home-page .home-section--featured {
  --section-accent: #27ae60;
  background: #fff;
}

body.home-page .home-section--categories {
  --section-accent: #e07a45;
  background: linear-gradient(145deg, #fffdf9, #fff6ec);
}

body.home-page .home-section--rankings {
  --section-accent: #3a78b8;
  background: linear-gradient(145deg, #fbfdff, #eff6fd);
}

body.home-page .home-section--keywords {
  --section-accent: #2d9c73;
  background: linear-gradient(145deg, #fbfffc, #edf9f2);
}

body.home-page .home-section--municipalities {
  --section-accent: #d99a32;
  background: linear-gradient(145deg, #fffefa, #fff8e9);
}

body.home-page .home-section--guides {
  --section-accent: #7b68b4;
  background: linear-gradient(145deg, #fefeff, #f3f0fb);
}

body.home-page .home-section--rules {
  --section-accent: #66737f;
  background: #f8faf9;
}

body.home-page .home-section--categories .discovery-chip,
body.home-page .home-section--rankings .popular-ranking-card,
body.home-page .home-section--keywords .discovery-chip,
body.home-page .home-section--municipalities .municipality-chip,
body.home-page .home-section--guides .discovery-chip {
  background: rgba(255, 255, 255, 0.90);
  border-color: color-mix(in srgb, var(--section-accent) 24%, #ded7cd);
}

body.home-page .home-section--rankings .popular-ranking-card {
  border-radius: 15px;
  box-shadow: 0 5px 14px rgba(58, 120, 184, 0.08);
}

body.home-page .home-section--guides .discovery-chip.priority {
  color: #514482;
  background: rgba(255, 255, 255, 0.92);
  border-color: #d5cdef;
}

body.home-page .home-section--rules .rule-grid > div {
  background: #fff;
  border-color: #dfe5e1;
}

body.home-page .home-item-cta {
  background: linear-gradient(135deg, #258fd8, #1478bf);
}

body.home-page a:focus-visible,
body.home-page button:focus-visible,
body.home-page input:focus-visible,
body.home-page summary:focus-visible {
  outline: 3px solid rgba(39, 174, 96, 0.34);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  body.home-page .home-hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 24px;
  }

  body.home-page .home-hero-visual {
    height: 290px;
  }

  body.home-page .home-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 820px) {
  body.home-page .home-hero-shell {
    display: block;
  }

  body.home-page .home-hero-copy {
    max-width: 680px;
    margin: 0 auto;
  }

  body.home-page .home-hero-visual {
    display: none;
  }
}

@media (max-width: 700px) {
  body.home-page .home-hero {
    padding: 16px 14px 42px;
  }

  body.home-page .home-hero-shell {
    display: block;
  }

  body.home-page .home-hero-visual {
    display: none;
  }

  body.home-page .home-brand-mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px 12px 16px 12px;
  }

  body.home-page .home-brand-mark svg {
    width: 21px;
    height: 21px;
  }

  body.home-page .home-brand-name strong {
    font-size: 0.9rem;
  }

  body.home-page .home-brand-name small {
    font-size: 0.64rem;
  }

  body.home-page .home-hero-kicker {
    margin: 14px 0 7px;
    padding: 4px 9px;
    font-size: 0.68rem;
  }

  body.home-page .home-hero h1 {
    max-width: 350px;
    font-size: 1.48rem;
    line-height: 1.34;
  }

  body.home-page .hero-title-break {
    display: block;
  }

  body.home-page .home-hero-lead {
    max-width: 340px;
    margin-top: 9px;
    font-size: 0.82rem;
    line-height: 1.65;
  }

  body.home-page .header-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: calc(100vw - 28px);
    max-width: none;
    margin-top: 13px;
    padding: 0 0 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.home-page .header-nav::-webkit-scrollbar {
    display: none;
  }

  body.home-page .header-nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  body.home-page .top-search {
    margin-top: -24px;
    padding: 0 14px 6px;
  }

  body.home-page .top-search-inner {
    padding: 12px;
    border-radius: 16px;
  }

  body.home-page .top-search h2 {
    margin-bottom: 6px;
    font-size: 0.92rem;
  }

  body.home-page .top-search-form {
    grid-template-columns: minmax(0, 1fr) 86px;
    gap: 7px;
  }

  body.home-page .top-search-input,
  body.home-page .top-search-button {
    height: 44px;
  }

  body.home-page .top-search-input {
    min-width: 0;
    padding: 8px 11px;
    font-size: 0.84rem;
  }

  body.home-page .top-search-button {
    font-size: 0.86rem;
  }

  body.home-page .trust-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 4px auto 8px;
    padding: 0 14px;
    gap: 8px;
  }

  body.home-page .trust-item {
    min-height: 60px;
    padding: 8px 7px;
    border-radius: 13px;
  }

  body.home-page .trust-label {
    margin-bottom: 1px;
    font-size: 0.63rem;
  }

  body.home-page .trust-value {
    font-size: 0.94rem;
  }

  body.home-page .hero-assurance {
    margin: 0 auto 8px;
    padding: 0 14px;
    gap: 5px;
  }

  body.home-page .hero-assurance span {
    padding: 3px 8px;
    font-size: 0.66rem;
  }

  body.home-page .site-promo-note {
    display: block;
    width: calc(100% - 28px);
    margin-bottom: 10px;
    padding: 8px 10px;
    font-size: 0.70rem;
    line-height: 1.55;
  }

  body.home-page .site-promo-label {
    display: inline-block;
    margin: 0 7px 2px 0;
  }

  body.home-page .conversion-panel {
    padding: 0 14px;
  }

  body.home-page .conversion-panel-inner {
    padding: 13px;
  }

  body.home-page .conversion-panel h2 {
    margin-bottom: 9px;
    font-size: 0.96rem;
  }

  body.home-page .conversion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.home-page .conversion-link,
  body.home-page .conversion-link.featured {
    grid-column: span 1;
    min-height: 61px;
    padding: 8px 7px 8px 38px;
    border-radius: 12px;
    font-size: 0.74rem;
    line-height: 1.45;
  }

  body.home-page .conversion-link.featured {
    grid-column: 1 / -1;
    min-height: 52px;
  }

  body.home-page .conversion-icon {
    left: 8px;
    width: 23px;
    height: 23px;
  }

  body.home-page main {
    display: block;
    width: calc(100% - 28px);
  }

  body.home-page .home-section {
    margin-bottom: 12px;
    padding: 14px 12px;
    border-radius: 16px;
  }

  body.home-page .home-section::after {
    width: 88px;
    height: 88px;
    border-width: 17px;
  }

  body.home-page .home-item-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  body.home-page .home-item-image {
    min-height: 0;
    height: 214px;
    aspect-ratio: auto;
  }

  body.home-page .home-item-body {
    gap: 9px;
  }

  body.home-page .home-item-title {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  body.home-page .home-item-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.home-page .home-item-stats > div,
  body.home-page .home-item-stats .home-item-rate {
    min-width: 0;
    min-height: 64px;
    padding: 8px 9px;
  }

  body.home-page .home-item-actions {
    width: 100%;
  }

  body.home-page .home-item-cta {
    width: 100%;
    min-height: 43px;
    justify-content: center;
  }

  body.home-page .home-section--categories .discovery-grid,
  body.home-page .home-section--keywords .discovery-grid,
  body.home-page .home-section--guides .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  body.home-page .home-section--categories .discovery-chip,
  body.home-page .home-section--keywords .discovery-chip,
  body.home-page .home-section--guides .discovery-chip {
    min-height: 39px;
    padding: 7px 9px;
    border-radius: 12px;
    font-size: 0.74rem;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  body.home-page .home-hero h1 {
    font-size: 1.38rem;
  }

  body.home-page .top-search-form {
    grid-template-columns: minmax(0, 1fr) 80px;
  }

  body.home-page .home-item-image {
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page .home-hero-visual {
    transform: none;
  }
}

/* Homepage v2: category-first navigation and premium data UI. */
html:has(body.home-page) {
  scroll-padding-top: 78px;
}

body.home-page {
  font-variant-numeric: tabular-nums;
}

body.home-page .visually-hidden {
  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;
  white-space: nowrap !important;
  border: 0 !important;
}

body.home-page .home-skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--home-navy);
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

body.home-page .home-skip-link:focus {
  transform: translateY(0);
}

body.home-page .home-sticky-nav {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  min-height: 64px;
  padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  color: var(--home-ink);
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid rgba(213, 199, 179, 0.76);
  box-shadow: 0 7px 22px rgba(61, 48, 31, 0.08);
  backdrop-filter: blur(14px);
}

body.home-page .home-sticky-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  width: min(1120px, 100%);
  margin: 0 auto;
}

body.home-page .home-sticky-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  color: var(--home-navy);
  text-decoration: none;
}

body.home-page .home-sticky-brand > span:last-child {
  display: grid;
  line-height: 1.1;
}

body.home-page .home-sticky-brand strong {
  font-size: 0.88rem;
  font-weight: 900;
}

body.home-page .home-sticky-brand small {
  color: #56806a;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body.home-page .home-sticky-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(145deg, #35bd72, #218f50);
  border-radius: 12px 12px 16px 12px;
  box-shadow: 0 6px 14px rgba(39, 174, 96, 0.22);
  font-weight: 900;
}

body.home-page .home-sticky-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 1vw, 10px);
  min-width: 0;
}

body.home-page .home-sticky-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px clamp(8px, 1vw, 13px);
  color: #4f4a42;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

body.home-page .home-sticky-links a:hover {
  color: #176f41;
  background: #eaf7ef;
}

body.home-page .home-sticky-search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 84px;
  min-height: 44px;
  padding: 8px 14px;
  color: #fff;
  background: var(--home-navy);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 7px 16px rgba(44, 62, 80, 0.17);
  font: inherit;
  font-size: 0.79rem;
  font-weight: 900;
  cursor: pointer;
}

body.home-page .home-sticky-search svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

body.home-page main.home-main {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 24px;
}

body.home-page .home-main > section,
body.home-page .home-main > .hero-assurance,
body.home-page .home-main > .site-promo-note {
  width: min(1120px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

body.home-page .home-category-launcher {
  position: relative;
  z-index: 6;
  margin-top: -38px;
  margin-bottom: 18px;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--home-border);
  border-radius: 26px;
  box-shadow: 0 22px 48px rgba(74, 58, 38, 0.13);
  backdrop-filter: blur(12px);
  scroll-margin-top: 82px;
}

body.home-page .home-category-launcher-head,
body.home-page .conversion-panel-head,
body.home-page .top-search-heading {
  min-width: 0;
}

body.home-page .home-category-launcher-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

body.home-page .home-section-kicker {
  display: block;
  margin-bottom: 5px;
  color: #967027;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

body.home-page .home-category-launcher h2,
body.home-page .top-search h2,
body.home-page .conversion-panel h2 {
  margin: 0;
  color: var(--home-navy);
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.35;
}

body.home-page .home-category-launcher-head p,
body.home-page .home-section-head p {
  margin: 7px 0 0;
  color: var(--home-muted);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.7;
}

body.home-page .home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.home-page .home-category-card {
  --category-color: #4d8b68;
  --category-soft: #edf7f1;
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon copy arrow"
    "icon data arrow"
    "diff diff diff";
  align-items: center;
  gap: 7px 10px;
  min-width: 0;
  min-height: 137px;
  padding: 15px;
  overflow: hidden;
  color: var(--home-ink);
  background: linear-gradient(145deg, #fff, var(--category-soft));
  border: 1px solid color-mix(in srgb, var(--category-color) 24%, #e5ddd1);
  border-radius: 18px;
  box-shadow: 0 8px 19px rgba(68, 54, 37, 0.07);
  text-decoration: none;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

body.home-page .home-category-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 82px;
  height: 82px;
  border: 16px solid color-mix(in srgb, var(--category-color) 9%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

body.home-page .home-category-card--rice { --category-color: #b6842e; --category-soft: #fff8e8; }
body.home-page .home-category-card--daily { --category-color: #6f78a8; --category-soft: #f2f3fb; }
body.home-page .home-category-card--seafood { --category-color: #3d88ae; --category-soft: #edf8fc; }
body.home-page .home-category-card--meat { --category-color: #b95f54; --category-soft: #fff1ef; }
body.home-page .home-category-card--fruit { --category-color: #d27556; --category-soft: #fff3ed; }
body.home-page .home-category-card--drinks { --category-color: #5b83a6; --category-soft: #eff6fb; }
body.home-page .home-category-card--travel { --category-color: #7c68a3; --category-soft: #f4f0fa; }
body.home-page .home-category-card--vegetables { --category-color: #4f9361; --category-soft: #eef8f0; }

body.home-page .home-category-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--category-color);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--category-color) 20%, #eee5d9);
  border-radius: 15px;
  box-shadow: 0 5px 12px color-mix(in srgb, var(--category-color) 12%, transparent);
}

body.home-page .home-category-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.home-page .home-category-copy {
  grid-area: copy;
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

body.home-page .home-category-copy strong {
  color: var(--home-navy);
  font-size: 1rem;
  font-weight: 900;
}

body.home-page .home-category-copy small,
body.home-page .home-category-data small {
  margin-top: 3px;
  color: var(--home-muted);
  font-size: 0.67rem;
  font-weight: 700;
}

body.home-page .home-category-data {
  grid-area: data;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 8px;
}

body.home-page .home-category-data strong {
  color: var(--category-color);
  font-size: 0.82rem;
  font-weight: 900;
}

body.home-page .home-category-diff {
  grid-area: diff;
  width: fit-content;
  padding: 3px 8px;
  color: color-mix(in srgb, var(--category-color) 78%, #263746);
  background: color-mix(in srgb, var(--category-color) 9%, #fff);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
}

body.home-page .home-category-arrow {
  grid-area: arrow;
  align-self: start;
  color: var(--category-color);
  font-size: 1.05rem;
  font-weight: 900;
}

body.home-page .home-category-more {
  margin-top: 14px;
  padding-top: 12px;
  border-top-color: var(--home-border);
}

body.home-page .home-category-more summary,
body.home-page .conversion-more summary {
  width: fit-content;
  min-height: 44px;
  padding: 10px 13px;
  color: #2a7650;
  background: #f0f8f3;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

body.home-page .top-search {
  z-index: 8;
  margin-top: 0;
  margin-bottom: 14px;
  padding: 0;
  scroll-margin-top: 82px;
}

body.home-page .top-search-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  gap: 9px 22px;
  max-width: none;
  margin: 0;
  padding: 20px 22px;
  border-radius: 20px;
}

body.home-page .top-search-heading {
  grid-row: 1 / span 3;
  align-self: center;
}

body.home-page .top-search-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 9px;
}

body.home-page .top-search-field {
  position: relative;
  min-width: 0;
}

body.home-page .top-search-input,
body.home-page .top-search-button {
  min-height: 52px;
}

body.home-page .home-suggest-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: min(430px, 62vh);
  padding: 7px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid #d8ccba;
  border-radius: 15px;
  box-shadow: 0 18px 42px rgba(57, 45, 31, 0.18);
}

body.home-page .home-suggest-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 9px 11px;
  border-radius: 10px;
  cursor: pointer;
}

body.home-page .home-suggest-option.is-active,
body.home-page .home-suggest-option:hover {
  background: #edf8f1;
}

body.home-page .home-suggest-copy {
  display: grid;
  min-width: 0;
}

body.home-page .home-suggest-copy strong {
  overflow: hidden;
  color: var(--home-navy);
  font-size: 0.84rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-page .home-suggest-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--home-muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home-page .home-suggest-arrow {
  color: var(--home-green-deep);
  font-weight: 900;
}

body.home-page .home-suggest-empty {
  padding: 13px;
  color: var(--home-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

body.home-page .top-search-hint {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.5;
}

body.home-page .top-search-quick {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--home-muted);
  font-size: 0.68rem;
  font-weight: 700;
}

body.home-page .top-search-quick a {
  min-height: 28px;
  padding: 4px 8px;
  color: #2a7650;
  background: #edf8f1;
  border-radius: 999px;
  text-decoration: none;
}

body.home-page .trust-summary {
  max-width: 1080px;
  margin-top: 0;
}

body.home-page .hero-assurance {
  max-width: 1080px;
}

body.home-page .site-promo-note {
  max-width: 1048px;
}

body.home-page .conversion-panel {
  max-width: 1120px;
  margin-top: 0;
  margin-bottom: 18px;
  padding: 0;
}

body.home-page .conversion-panel-inner {
  padding: 20px 22px;
  border-radius: 20px;
}

body.home-page .conversion-panel-head {
  margin-bottom: 13px;
}

body.home-page .conversion-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.home-page .conversion-link,
body.home-page .conversion-link.featured {
  display: flex;
  flex-direction: column;
  justify-content: center;
  grid-column: auto;
  min-height: 82px;
  padding: 12px 14px 12px 62px;
  border-radius: 15px;
}

body.home-page .conversion-link small {
  color: #736a5e;
  font-size: 0.66rem;
  font-weight: 700;
}

body.home-page .conversion-link.featured small {
  color: rgba(255, 255, 255, 0.82);
}

body.home-page .conversion-more {
  margin-top: 11px;
}

body.home-page .conversion-more-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 9px;
}

body.home-page .conversion-more-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  color: #4f4a42;
  background: #fbf8f3;
  border: 1px solid var(--home-border);
  border-radius: 11px;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

body.home-page .home-section {
  width: min(1120px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
  padding: clamp(20px, 3vw, 28px);
  border-radius: 22px;
}

body.home-page .home-section h2,
body.home-page .home-section--featured .home-section-head h2 {
  padding-left: 0;
  border-left: 0;
  color: var(--home-navy);
  font-size: clamp(1.16rem, 2vw, 1.42rem);
}

body.home-page .home-featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

body.home-page .home-item-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  padding: 13px;
  overflow: hidden;
  background: #fff;
  border-radius: 18px;
}

body.home-page .home-item-pick {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 22px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(44, 62, 80, 0.90);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(44, 62, 80, 0.2);
  font-size: 0.64rem;
  font-weight: 900;
}

body.home-page .home-item-image {
  width: 100%;
  min-height: 0;
  height: 190px;
  aspect-ratio: auto;
  border-radius: 13px;
}

body.home-page .home-item-body {
  flex: 1;
  gap: 9px;
  padding: 0;
}

body.home-page .home-item-title {
  color: var(--home-navy);
  font-size: 0.88rem;
  line-height: 1.55;
}

body.home-page .home-item-meta {
  gap: 4px;
}

body.home-page .home-item-meta span {
  padding: 2px 7px;
  color: #436151;
  background: #edf7f1;
  font-size: 0.62rem;
}

body.home-page .home-item-saving {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 52px;
  padding: 9px 10px;
  color: #704d12;
  background: linear-gradient(135deg, #fff9e9, #fff2cc);
  border: 1px solid #ecd79b;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 800;
}

body.home-page .home-item-saving strong {
  color: #b85b22;
  font-size: 1.2rem;
  font-weight: 900;
}

body.home-page .home-item-stats {
  gap: 6px;
}

body.home-page .home-item-stats > div,
body.home-page .home-item-stats .home-item-rate {
  min-height: 55px;
  padding: 7px 8px;
  border-color: #e7ded2;
}

body.home-page .home-item-cta {
  width: 100%;
  min-height: 44px;
}

body.home-page .home-trust-section {
  background: #f8faf9;
}

body.home-page .home-trust-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 4px;
  cursor: pointer;
  list-style: none;
}

body.home-page .home-trust-details > summary::-webkit-details-marker {
  display: none;
}

body.home-page .home-trust-details > summary > span:first-child {
  display: grid;
  gap: 3px;
}

body.home-page .home-trust-details > summary small {
  color: #63766b;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

body.home-page .home-trust-details > summary strong {
  color: var(--home-navy);
  font-size: 1.05rem;
  font-weight: 900;
}

body.home-page .home-details-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #315c46;
  background: #e8f4ed;
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 700;
  transition: transform 160ms ease;
}

body.home-page .home-trust-details[open] .home-details-arrow {
  transform: rotate(45deg);
}

body.home-page .home-trust-details .rule-grid {
  margin-top: 12px;
}

body.home-page .home-trust-details > p {
  margin: 12px 0 0;
  color: var(--home-muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.75;
}

@media (hover: hover) and (pointer: fine) {
  body.home-page .home-category-card:hover {
    z-index: 2;
    border-color: color-mix(in srgb, var(--category-color) 55%, #d9cdbd);
    box-shadow: 0 15px 28px color-mix(in srgb, var(--category-color) 15%, transparent);
    transform: translateY(-3px);
  }
}

@media (max-width: 920px) {
  body.home-page .home-sticky-inner {
    gap: 10px;
  }

  body.home-page .home-sticky-brand > span:last-child {
    display: none;
  }

  body.home-page .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-page .top-search-inner {
    grid-template-columns: 1fr;
  }

  body.home-page .top-search-heading {
    grid-row: auto;
  }

  body.home-page .conversion-more-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-page .home-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home-page .home-item-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 7px);
  }
}

@media (max-width: 700px) {
  html:has(body.home-page) {
    scroll-padding-top: 66px;
  }

  body.home-page .home-sticky-nav {
    min-height: 58px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body.home-page .home-sticky-inner {
    grid-template-columns: auto 1fr auto;
  }

  body.home-page .home-sticky-links {
    justify-content: flex-end;
  }

  body.home-page .home-sticky-links a:not(:first-child) {
    display: none;
  }

  body.home-page .home-sticky-links a:first-child {
    min-height: 44px;
    padding: 7px 10px;
  }

  body.home-page .home-sticky-search {
    min-width: 48px;
    width: 48px;
    padding: 8px;
  }

  body.home-page .home-sticky-search span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  body.home-page .home-hero {
    padding-bottom: 52px;
  }

  body.home-page main.home-main {
    padding-bottom: 12px;
  }

  body.home-page .home-main > section,
  body.home-page .home-main > .hero-assurance,
  body.home-page .home-main > .site-promo-note,
  body.home-page .home-section {
    width: calc(100% - 28px);
  }

  body.home-page .home-category-launcher {
    margin-top: -30px;
    margin-bottom: 12px;
    padding: 16px 12px;
    border-radius: 19px;
    scroll-margin-top: 70px;
  }

  body.home-page .home-category-launcher-head {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  body.home-page .home-category-launcher-head p {
    max-width: 270px;
    font-size: 0.73rem;
  }

  body.home-page .home-category-grid {
    gap: 8px;
  }

  body.home-page .home-category-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-areas:
      "icon copy arrow"
      "data data data"
      "diff diff diff";
    gap: 6px 7px;
    min-height: 142px;
    padding: 11px 9px;
    border-radius: 14px;
  }

  body.home-page .home-category-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  body.home-page .home-category-icon svg {
    width: 23px;
    height: 23px;
  }

  body.home-page .home-category-copy strong {
    font-size: 0.86rem;
  }

  body.home-page .home-category-copy small {
    font-size: 0.60rem;
    line-height: 1.35;
  }

  body.home-page .home-category-data {
    align-self: end;
  }

  body.home-page .home-category-data strong {
    font-size: 0.75rem;
  }

  body.home-page .home-category-data small,
  body.home-page .home-category-diff {
    font-size: 0.58rem;
  }

  body.home-page .home-category-diff {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.home-page .top-search {
    margin-bottom: 10px;
    scroll-margin-top: 70px;
  }

  body.home-page .top-search-inner {
    gap: 9px;
    padding: 15px 12px;
    border-radius: 17px;
  }

  body.home-page .top-search h2,
  body.home-page .home-category-launcher h2,
  body.home-page .conversion-panel h2 {
    font-size: 1.08rem;
  }

  body.home-page .top-search-form {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 7px;
  }

  body.home-page .top-search-input,
  body.home-page .top-search-button {
    min-height: 48px;
    height: 48px;
  }

  body.home-page .top-search-input {
    padding: 8px 11px;
    font-size: 0.82rem;
  }

  body.home-page .top-search-button {
    font-size: 0.78rem;
  }

  body.home-page .top-search-hint {
    display: none;
  }

  body.home-page .top-search-quick {
    gap: 4px;
  }

  body.home-page .top-search-quick a {
    min-height: 32px;
    padding: 6px 8px;
  }

  body.home-page .conversion-panel {
    padding: 0;
  }

  body.home-page .conversion-panel-inner {
    padding: 15px 12px;
    border-radius: 17px;
  }

  body.home-page .conversion-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  body.home-page .conversion-link,
  body.home-page .conversion-link.featured {
    grid-column: auto;
    min-height: 62px;
    padding: 9px 10px 9px 52px;
  }

  body.home-page .conversion-more-links {
    grid-template-columns: 1fr;
  }

  body.home-page .home-section {
    padding: 16px 12px;
    border-radius: 17px;
  }

  body.home-page .home-section-head {
    align-items: flex-start;
  }

  body.home-page .home-featured-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  body.home-page .home-item-card,
  body.home-page .home-item-card:last-child {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    width: 100%;
    gap: 9px;
    padding: 10px;
  }

  body.home-page .home-item-pick {
    top: 15px;
    left: 15px;
    padding: 4px 6px;
    font-size: 0.55rem;
  }

  body.home-page .home-item-image {
    width: 104px;
    height: 104px;
    min-height: 104px;
    grid-column: 1;
    grid-row: 1;
  }

  body.home-page .home-item-body {
    grid-column: 2;
    grid-row: 1 / span 2;
    gap: 6px;
  }

  body.home-page .home-item-title {
    -webkit-line-clamp: 2;
    font-size: 0.78rem;
    line-height: 1.5;
  }

  body.home-page .home-item-meta span {
    font-size: 0.56rem;
  }

  body.home-page .home-item-meta .home-checked-date {
    flex-basis: 100%;
    width: fit-content;
  }

  body.home-page .home-item-saving {
    justify-content: flex-start;
    min-height: 42px;
    padding: 6px 8px;
    font-size: 0.59rem;
  }

  body.home-page .home-item-saving strong {
    font-size: 1rem;
  }

  body.home-page .home-item-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  body.home-page .home-item-stats > div:nth-child(1),
  body.home-page .home-item-stats > div:nth-child(4) {
    display: none;
  }

  body.home-page .home-item-stats > div,
  body.home-page .home-item-stats .home-item-rate {
    min-height: 48px;
    padding: 6px;
  }

  body.home-page .home-item-stats dt {
    font-size: 0.56rem;
  }

  body.home-page .home-item-stats dd {
    font-size: 0.72rem;
  }

  body.home-page .home-item-cta {
    min-height: 42px;
    font-size: 0.72rem;
  }

  body.home-page .home-trust-details .rule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 370px) {
  body.home-page .home-category-card {
    min-height: 150px;
  }

  body.home-page .home-category-data {
    display: grid;
    gap: 0;
  }

  body.home-page .home-item-card,
  body.home-page .home-item-card:last-child {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  body.home-page .home-item-image {
    width: 92px;
    height: 92px;
    min-height: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(body.home-page) {
    scroll-behavior: auto;
  }

  body.home-page *,
  body.home-page *::before,
  body.home-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
