.ypoai-local-updates {
  --ypoai-updates-bar: var(--topbg, var(--band, var(--bg, var(--ink, var(--text, #0b2c47)))));
  --ypoai-updates-ink: var(--topink, var(--onband, var(--ink, var(--text, #f7fbfc))));
  --ypoai-updates-accent: var(--accent, var(--primary, #35c6e8));
  --ypoai-updates-chip: var(--ypoai-updates-accent);
  --ypoai-updates-chip-ink: var(--ypoai-updates-bar);
  color: var(--ypoai-updates-ink);
  background: var(--ypoai-updates-bar);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
  font: inherit;
  position: relative;
  z-index: 20;
  min-height: 40px;
  max-width: 100%;
  overflow: hidden;
  contain: layout inline-size paint;
  box-sizing: border-box;
}

html.ypoai-local-updates-mounted,
html.ypoai-local-updates-mounted body {
  max-width: 100%;
  overflow-x: clip;
}

.ypoai-local-updates[hidden] {
  display: none !important;
}

.ypoai-local-updates--site-top {
  margin-top: 76px;
}

.ypoai-local-updates__inner {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.ypoai-local-updates__heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.ypoai-local-updates__title {
  margin: 0;
  color: inherit;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
}

.ypoai-local-updates__pause {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.ypoai-local-updates__pause[hidden] {
  display: none !important;
}

.ypoai-local-updates__pause:focus-visible,
.ypoai-local-updates a:focus-visible {
  outline: 3px solid var(--focus, #185abc);
  outline-offset: 3px;
}

.ypoai-local-updates__viewport {
  position: relative;
  min-height: 40px;
  overflow-x: hidden;
  overflow-y: hidden;
  contain: layout inline-size paint;
  scrollbar-width: none;
}

.ypoai-local-updates__track {
  position: absolute;
  inset: 0 auto auto 0;
  display: flex;
  width: max-content;
  transform: translateX(0);
}

.ypoai-local-updates__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0 1.25rem 0 0;
  list-style: none;
}

.ypoai-local-updates__item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.7rem;
  max-width: none;
  min-height: 40px;
  padding: 0.5rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: nowrap;
  font-family: var(--display, Georgia, serif);
  font-size: 0.78rem;
  font-weight: 700;
  font-variant: small-caps;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.ypoai-local-updates__item::after {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  margin: 0 1rem;
  border-radius: 50%;
  background: var(--ypoai-updates-accent);
}

.ypoai-local-updates__notice {
  color: inherit;
}

.ypoai-local-updates__notice::before,
.ypoai-local-updates__headline::before {
  content: "GRID WATCH";
  flex: 0 0 auto;
  border-radius: 3px;
  padding: 0.2rem 0.55rem;
  color: var(--ypoai-updates-chip-ink);
  background: var(--ypoai-updates-chip);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.ypoai-local-updates__headline {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.ypoai-local-updates__meta {
  display: none;
}

.ypoai-local-updates[data-running="true"] .ypoai-local-updates__viewport {
  overflow: hidden;
  scrollbar-width: none;
}

.ypoai-local-updates[data-running="true"] .ypoai-local-updates__track {
  animation: ypoai-local-updates-scroll var(--ypoai-updates-duration, 40s) linear infinite;
  will-change: transform;
}

.ypoai-local-updates[data-paused="true"] .ypoai-local-updates__track {
  animation-play-state: paused;
}

@keyframes ypoai-local-updates-scroll {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ypoai-local-updates[data-running="true"] .ypoai-local-updates__track {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 600px) {
  .ypoai-local-updates--site-top {
    margin-top: 72px;
  }

  .ypoai-local-updates__inner {
    width: 100%;
  }

  .ypoai-local-updates__item {
    font-size: 0.72rem;
    white-space: nowrap;
  }
}

/* Preserve the approved catalog hero photos instead of cropping them into
   portrait or square frames. These selectors cover the T-68--T-114 redesign
   pages whose source images are landscape. */
body:is(
  [data-template="T-68"], [data-template="T-69"], [data-template="T-71"],
  [data-template="T-81"], [data-template="T-84"], [data-template="T-86"],
  [data-template="T-89"], [data-template="T-91"], [data-template="T-93"],
  [data-template="T-94"], [data-template="T-96"], [data-template="T-97"],
  [data-template="T-101"], [data-template="T-107"], [data-template="T-112"],
  [data-template="T-113"]
) .hero .media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

body:is(
  [data-template="T-70"], [data-template="T-72"], [data-template="T-79"],
  [data-template="T-82"], [data-template="T-83"], [data-template="T-85"],
  [data-template="T-90"], [data-template="T-98"], [data-template="T-103"],
  [data-template="T-105"], [data-template="T-106"], [data-template="T-108"]
) .hero .media {
  align-self: center;
  height: auto;
  min-height: 0;
}

body:is(
  [data-template="T-70"], [data-template="T-72"], [data-template="T-79"],
  [data-template="T-82"], [data-template="T-83"], [data-template="T-85"],
  [data-template="T-90"], [data-template="T-98"], [data-template="T-103"],
  [data-template="T-105"], [data-template="T-106"], [data-template="T-108"],
  [data-template="T-111"]
) .hero .media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  transform: none;
}

body:is([data-template="T-88"], [data-template="T-104"]) .hero {
  margin-top: 0;
}

body:is([data-template="T-88"], [data-template="T-104"]) .hero .hcopy {
  padding-top: 120px;
}

@media (min-width: 901px) and (max-width: 1100px) {
  body:is(
    [data-template="T-216"], [data-template="T-222"], [data-template="T-223"],
    [data-template="T-226"], [data-template="T-230"], [data-template="T-233"],
    [data-template="T-235"], [data-template="T-244"], [data-template="T-269"],
    [data-template="T-271"], [data-template="T-280"]
  ) #prices .price-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body:is(
    [data-template="T-78"], [data-template="T-88"], [data-template="T-95"],
    [data-template="T-104"], [data-template="T-114"]
  ) .hero {
    display: block;
    min-height: 0;
    background: var(--bleedsolid, var(--ink, #111));
  }

  body:is(
    [data-template="T-78"], [data-template="T-88"], [data-template="T-95"],
    [data-template="T-104"], [data-template="T-114"]
  ) .hero .media {
    position: relative;
    inset: auto;
    height: auto;
  }

  body:is(
    [data-template="T-78"], [data-template="T-88"], [data-template="T-95"],
    [data-template="T-104"], [data-template="T-114"]
  ) .hero .media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  body:is(
    [data-template="T-78"], [data-template="T-88"], [data-template="T-95"],
    [data-template="T-104"], [data-template="T-114"]
  ) .hero .media::after {
    display: none;
  }

  body:is(
    [data-template="T-78"], [data-template="T-88"], [data-template="T-95"],
    [data-template="T-104"], [data-template="T-114"]
  ) .hero .hcopy {
    padding-top: 48px;
  }
}
