/* A quiet scorecard language: the existing dimples, fine rules and measured typography. */
:root {
  --h-masthead-height: clamp(90px, 6.6vw, 98px);
  --h-dimples: radial-gradient(circle at 6px 4px, currentColor 1.7px, transparent 2px), radial-gradient(circle at 12px 4px, currentColor 1.7px, transparent 2px), radial-gradient(circle at 9px 9px, currentColor 1.7px, transparent 2px);
}
header.luxury-header.social-header { height: var(--h-masthead-height); }
.social-header .main-navigation a { min-width: 44px; justify-content: center; }
.social-header .main-navigation a, .social-mobile-nav a { transition: color 150ms var(--h-ease); }
.social-header .main-navigation a.active::after,
.social-mobile-nav a[aria-current=page]::after { animation: homer-mark-settle 180ms var(--h-ease); }
:is(.shop-heading,.saved-heading,.daily-nameplate,.edit-selection .social-section-head) { position: relative; }
:is(.shop-heading,.saved-heading,.daily-nameplate,.edit-selection .social-section-head)::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -7px;
  width: 20px;
  height: 14px;
  border-left: 8px solid var(--h-paper);
  background-color: var(--h-paper);
  background-image: var(--h-dimples);
  background-repeat: no-repeat;
  color: var(--h-ink);
  pointer-events: none;
}
.edit-home .edit-selection .social-section-head { border-bottom: 1px solid var(--h-rule); padding-bottom: 16px; }
.home-issue-copy .daily-publication-label,
.daily-issue-line .daily-publication > span {
  font-size: .625rem;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.home-issue-copy time, .daily-issue-line time, .daily-edition-caption time {
  font-size: .6875rem;
  letter-spacing: .025em;
  font-variant-numeric: tabular-nums;
}
.daily-block-label > span:first-child { font-variant-numeric: tabular-nums; letter-spacing: .055em; }
.product-browse-position, .saved-count, #shop-result-count { font-variant-numeric: tabular-nums; }
#toast.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--h-rule);
  border-radius: 3px;
  background: var(--h-paper);
  color: var(--h-ink);
  box-shadow: 0 4px 20px #052e2210;
  font: 500 .8125rem/1.5 var(--h-sans);
}
#toast.toast::before {
  content: '';
  width: 20px;
  height: 14px;
  flex: 0 0 20px;
  background-image: var(--h-dimples);
  background-repeat: no-repeat;
}
.shop-bookmark.homer-saved-feedback svg { animation: homer-bookmark-settle 300ms var(--h-ease); }
.member-save.homer-saved-feedback { animation: homer-save-settle 300ms var(--h-ease); }
@keyframes homer-mark-settle { from { opacity: .35; transform: translateY(-2px); } to { opacity: 1; transform: none; } }
@keyframes homer-bookmark-settle { 0% { transform: scale(.8); } 55% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes homer-save-settle { 0% { box-shadow: 0 0 0 0 #052e2224; } 100% { box-shadow: 0 0 0 5px #052e2200; } }

/* The sentinel reveals a fixed compact bar only at the results; it never shifts the grid. */
#shop-dock-edge { display: block; height: 0; }
.shop-browse-dock {
  position: fixed;
  top: var(--h-dock-top, var(--h-masthead-height));
  inset-inline: 0;
  height: 0;
  z-index: 90;
  pointer-events: none;
}
.shop-dock-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
  align-items: center;
  gap: 22px;
  min-height: 70px;
  padding: 7px max(var(--h-gutter), calc((100% - var(--h-width)) / 2 + var(--h-gutter)));
  border-block: 1px solid var(--h-rule);
  background: var(--h-paper);
  box-shadow: 0 4px 8px #052e2207;
  visibility: hidden;
  opacity: 0;
  transition: opacity 140ms ease-out;
}
.shop-browse-dock.is-visible .shop-dock-inner { visibility: visible; opacity: 1; pointer-events: auto; }
.shop-dock-inner label { display: grid; gap: 0; min-width: 0; font: 400 .625rem/1.35 var(--h-sans); color: var(--h-muted); letter-spacing: .025em; }
.shop-dock-inner :is(select,input) {
  width: 100%; min-width: 0; min-height: 44px; padding: 4px 0;
  border: 0; border-radius: 0; background: transparent; color: var(--h-ink);
  font: 400 .875rem/1.4 var(--h-sans); text-overflow: ellipsis;
}
.shop-dock-filter {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 8px 11px; border: 1px solid var(--h-rule); border-radius: 3px;
  color: var(--h-ink); background: transparent; font: 500 .8125rem/1.4 var(--h-sans);
}
.shop-dock-filter span { min-width: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.shop-dock-filter[data-active=true] { border-color: var(--h-ink); }
#shop-dock-count { color: var(--h-muted); font: 400 .75rem/1.4 var(--h-sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-browse-dock :focus-visible { outline: 2px solid var(--h-ink); outline-offset: 2px; }
.shop-page:not(.discover-catalog) .shop-grid :is(a,button) { scroll-margin-top: calc(var(--h-masthead-height) + 88px); }
@media (hover:hover) {
  .shop-dock-filter:hover { border-color: var(--h-ink); background: #eeede5; }
}
@media (max-width: 900px) {
  #shop-dock-count { display: none; }
  .shop-dock-inner { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px; }
}
@media (max-width: 760px) {
  :root { --h-masthead-height: calc(76px + env(safe-area-inset-top)); }
  .social-mobile-nav { height: var(--h-masthead-height); }
  .shop-dock-inner { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; min-height: 65px; padding-block: 4px; gap: 10px; }
  .shop-dock-search { display: none !important; }
  .shop-dock-inner :is(select,input) { font-size: 1rem; }
  .shop-dock-filter { gap: 5px; padding: 8px; }
  .shop-page:not(.discover-catalog) .shop-grid :is(a,button) { scroll-margin-top: calc(var(--h-masthead-height) + 82px); }
}
@media (prefers-reduced-motion: reduce) {
  .homer-saved-feedback, .homer-saved-feedback svg,
  .social-header .main-navigation a::after, .social-mobile-nav a::after { animation: none !important; }
  .shop-dock-inner, .social-header .main-navigation a, .social-mobile-nav a { transition: none; }
}
@media (max-width: 380px) {
  .shop-dock-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; }
}
