/* TUF_HOMEPAGE_FINAL_POLISH_V1
 * Scope: homepage-only nav contrast, Product Radar interaction affordance,
 * Product of the Week label, and the lower Free Products cards.
 * Premium Product surfaces are intentionally out of scope.
 */

/* Repair only the homepage nav links that sit across the dark city image. */
body.tuf-b2-home .tuf-header__nav > a[href="/in-short/"],
body.tuf-b2-home .tuf-header__nav > a[href="/about/"] {
  color: #f7fbff !important;
  font-weight: 650;
  text-shadow: 0 1px 3px rgba(0, 8, 18, .92), 0 0 9px rgba(0, 8, 18, .62);
}

body.tuf-b2-home .tuf-header__nav > a[href="/in-short/"]:hover,
body.tuf-b2-home .tuf-header__nav > a[href="/about/"]:hover,
body.tuf-b2-home .tuf-header__nav > a[href="/in-short/"]:focus-visible,
body.tuf-b2-home .tuf-header__nav > a[href="/about/"]:focus-visible {
  color: #ffffff !important;
}

/* Product Radar preview: selected row follows pointer/keyboard focus. */
body.tuf-b2-home .tuf-radar-list > a[data-tuf-home-product] {
  transition: background-color .14s ease, border-color .14s ease;
}

body.tuf-b2-home .tuf-radar-list > a[data-tuf-home-product].is-active {
  background: color-mix(in srgb, var(--tuf-panel-accent) 22%, #07182a) !important;
  box-shadow: inset 2px 0 0 var(--tuf-panel-accent);
}

body.tuf-b2-home .tuf-product-week-label {
  color: var(--tuf-panel-accent);
  letter-spacing: .11em;
  margin: 0 0 5px;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  display: block;
}

body.tuf-b2-home .tuf-radar-detail[data-tuf-weekly-detail] {
  transition: border-color .14s ease, box-shadow .14s ease;
}

body.tuf-b2-home .tuf-radar-detail[data-tuf-weekly-detail]:hover,
body.tuf-b2-home .tuf-radar-detail[data-tuf-weekly-detail]:focus-visible {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tuf-panel-accent) 38%, transparent);
}

/* Lower homepage section now represents the Free Library without changing the site shell. */
body.tuf-b2-home [data-tuf-home-free-products] .tuf-free-home-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto auto;
  border: 1px solid color-mix(in srgb, var(--tuf-control-accent) 45%, var(--tuf-line));
  border-radius: 9px;
  color: var(--tuf-control-accent);
  background: color-mix(in srgb, var(--tuf-control-accent) 8%, var(--tuf-paper));
  place-items: center;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: -.02em;
  display: grid;
}

body.tuf-b2-home [data-tuf-home-free-products] .tuf-home-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body.tuf-b2-home .tuf-home-promo[data-home-promo="free-library"] .tuf-home-promo__link {
  aspect-ratio: 1698 / 696;
}

body.tuf-b2-home .tuf-home-promo[data-home-promo="free-library"] .tuf-home-promo__media {
  transform: none;
}

@media (max-width: 820px) {
  body.tuf-b2-home [data-tuf-home-free-products] .tuf-home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  body.tuf-b2-home [data-tuf-home-free-products] .tuf-home-product-grid {
    grid-template-columns: 1fr;
  }
}

/* TUF_FREE_HOME_CARD_VISUALS_V1 — approved 00A / 00B / 00C artwork */
body.tuf-b2-home [data-tuf-home-free-products] .tuf-free-home-visual {
  width: 100%;
  margin: 0 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #f7f9fc;
  position: relative;
  z-index: 0;
}

body.tuf-b2-home [data-tuf-home-free-products] .tuf-free-home-visual img {
  width: 100%;
  height: auto;
  display: block;
}

body.tuf-b2-home [data-tuf-home-free-products] .tuf-home-product-grid > article {
  padding: 12px;
}

body.tuf-b2-home [data-tuf-home-free-products] .tuf-home-product-grid > article h3 {
  margin-top: 14px;
}

@media (max-width: 520px) {
  body.tuf-b2-home [data-tuf-home-free-products] .tuf-home-product-grid > article {
    padding: 11px;
  }
}
