/* Homepage only (EN + ES): veteran badge in the sticky header and the
   slim Allstate scrolling banner pinned flush under the header. */

/* --- Veteran-owned badge, right after the CA logo --- */
.cx-hdr .cx-vet { display: flex; align-items: center; gap: 8px; min-width: 0; margin-left: 4px; flex: 0 1 auto; }
.cx-vet .cx-vet-ph {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  object-fit: cover; object-position: center 18%;
  border: 1px solid #3A3A3D; display: block;
}
.cx-vet-txt { min-width: 0; line-height: 1.2; }
.cx-vet-txt b {
  display: block; font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 12px; font-weight: 500; color: #F2EFE8;
  letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap;
}
.cx-vet-txt span {
  display: block; font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 10px; font-weight: 400; color: #C9C5BB;
  margin-top: 1px; line-height: 1.3; letter-spacing: 0; white-space: nowrap;
}
@media (min-width: 961px) {
  .cx-hdr .cx-vet { margin-left: 8px; padding-left: 18px; border-left: 1px solid #2A2A2C; }
}
@media (max-width: 960px) {
  .cx-hdr .cx-vet { flex: 1 1 0; }
}
@media (max-width: 360px) {
  .cx-vet-txt span { white-space: normal; }
}

/* --- Stats row: three items after the veteran cell moved to the header --- */
.stats { grid-template-columns: repeat(3, 1fr); }
.stats .stat { text-align: center; }
.stats .stat:nth-child(n) { border-top: 0; border-right: 1px solid var(--line); }
.stats .stat:last-child { border-right: 0; }
@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats .stat { padding: 20px 16px; }
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:nth-child(2) { border-right: 0; }
  .stats .stat:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-right: 0; }
}

/* --- Allstate banner: thin frost band pinned to the top of the hero --- */
.hero a.hero-ab {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6;
  margin: 0; padding: 5px 16px; box-sizing: border-box; width: 100%;
  display: flex; flex-wrap: nowrap; align-items: center; gap: 8px;
  background: rgba(11,11,12,.48);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 0; border-bottom: 1px solid rgba(242,239,232,.16); border-radius: 0;
  text-decoration: none; color: inherit;
  font-family: "Outfit", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-margin-top: 90px;
}
.hero a.hero-ab:focus-visible { outline: 2px solid #FFD23F; outline-offset: -3px; }
.hero-ab em {
  font-style: normal; font-weight: 500; color: #E8E4DB;
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-thickness: 0.6px; text-decoration-color: rgba(242,239,232,.4);
  white-space: nowrap;
}
.hero-ab .ab-scroll {
  flex: 1 1 0; min-width: 0; overflow: hidden; position: relative; height: 17px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent);
}
.hero-ab .ab-track {
  display: flex; width: max-content; align-items: center;
  padding-left: 12px;
  animation: abmarq 28s linear infinite;
  will-change: transform;
}
.hero-ab .ab-item {
  flex: none; padding-right: 56px; white-space: nowrap;
  font-size: 12.5px; line-height: 17px; font-weight: 400;
  color: #D4D0C7; letter-spacing: 0.01em;
}
.hero-ab .ab-arrow {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(27,47,94,.78);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.hero a.hero-ab:hover .ab-arrow, .hero a.hero-ab:focus-visible .ab-arrow { background: #24407D; }
.hero-ab .ab-arrow svg { width: 11px; height: 11px; display: block; }
.hero-ab .ab-arrow svg path { stroke: #FFD23F; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@keyframes abmarq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (hover: hover) { .hero a.hero-ab:hover .ab-track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) {
  .hero-ab .ab-track { animation: none; transform: none; will-change: auto; }
}

/* keep the headline clear of the pinned banner on phones */
@media (max-width: 640px) {
  .hero .wrap.hero-split { padding-top: 52px; }
}
