/* worthitforyou site header, design 31d (inner pages). Source of truth: copy as-is. */
.wi-hdr {
  --ink: #1D1D1F; --ink-2: #424245; --muted: #6E6E73; --line: #E8E8ED; --line-soft: #F2F2F5;
  --chip: #F2F2F5; --key: #D2D2D7; --blue: #0071E3; --blue-hover: #0077ED; --yellow: #FFC21A; --buy: #0b7a45;
  position: sticky; top: 0; z-index: 50;
  background: #ffffff; box-shadow: inset 0 -1px 0 var(--line);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wi-hdr a { text-decoration: none; }
.wi-hdr :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Row 1 */
.wi-hdr__top { height: 76px; padding: 0 48px; display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; align-items: center; gap: 32px; }

.wi-logo { justify-self: start; display: inline-flex; align-items: center; gap: 3px; font-size: 22px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.wi-logo__sticker { display: inline-block; padding: 3px 10px; border-radius: 9px; background: var(--yellow); transform: rotate(-2deg); box-shadow: 0 2px 0 rgba(0,0,0,.08); }

.wi-search { justify-self: center; width: 100%; max-width: 700px; height: 48px; margin: 0; padding: 0 5px 0 16px; box-sizing: border-box;
  border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink), 0 6px 18px rgba(0,0,0,.06);
  display: flex; align-items: center; gap: 10px; transition: box-shadow .15s ease; }
.wi-search:focus-within { box-shadow: inset 0 0 0 2px var(--blue), 0 0 0 4px rgba(0,113,227,.16); }
.wi-search__icon { flex: none; }
.wi-search__input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.wi-search__input::placeholder { color: var(--muted); }
.wi-search__stores { flex: none; display: flex; align-items: center; }
.wi-search__stores img { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.wi-search__stores img + img { margin-left: -6px; }
.wi-search__key { flex: none; font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 7px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--key); color: var(--muted); }
.wi-search:focus-within .wi-search__key { display: none; }
.wi-search__btn { flex: none; height: 38px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.wi-search__btn:hover { background: var(--blue-hover); }

.wi-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.wi-saved { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; background: var(--chip); }
.wi-saved:hover { background: #E8E8ED; }
.wi-app { height: 40px; padding: 0 16px 0 6px; border-radius: 20px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.wi-app:hover { background: #000; }
.wi-app img { width: 28px; height: 28px; border-radius: 8px; }

/* Row 2 */
.wi-hdr__bottom { height: 46px; padding: 0 48px; display: flex; align-items: center; box-shadow: inset 0 1px 0 var(--line-soft); }
.wi-nav { align-self: stretch; display: flex; gap: 32px; }
.wi-nav a { position: relative; display: flex; align-items: center; white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--muted); }
.wi-nav a:hover { color: var(--ink); }
.wi-nav a[aria-current="page"] { font-weight: 600; color: var(--ink); }
.wi-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); }
.wi-live { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.wi-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--buy); box-shadow: 0 0 0 4px rgba(11,122,69,.14); }
.wi-live__sep { color: #C7C7CC; }
.wi-live a { color: var(--blue); }
.wi-live a:hover { color: #0058B0; }

/* Narrower screens */
@media (max-width: 1200px) {
  .wi-hdr__top { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; padding: 0 32px; }
  .wi-hdr__bottom { padding: 0 32px; }
  .wi-search__stores { display: none; }
}
@media (max-width: 960px) {
  .wi-live { display: none; }
  .wi-nav { overflow-x: auto; scrollbar-width: none; gap: 24px; }
  .wi-app span { display: none; }
  .wi-app { padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) { .wi-search { transition: none; } }
/* Mobile / WiApp keep their own chrome — 31d is desktop inner pages only. */
@media (max-width: 767px) {
  .wi-hdr { display: none !important; }
}
.wi-offhome-mobile { display: none !important; }
@media (max-width: 767px) {
  .wi-offhome-mobile { display: block !important; }
}
