/* Hmonster Deals — components (Halcyon v1.0)
   Buttons, badges, header, pill search, tabs, deal card, single-deal hero,
   promo reveal, footer. Tokens drive every color/radius/shadow so a brand
   refresh is a one-file edit in tokens.css. */

/* --- Buttons ------------------------------------------------------------- */
.hmd-btn {
  --hmd-btn-bg: var(--hmd-brand);
  --hmd-btn-bg-hover: var(--hmd-brand-hover);
  --hmd-btn-ink: var(--hmd-brand-ink);
  --hmd-btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--hmd-space-2);
  padding: 6px 14px;
  min-height: 44px;
  border-radius: var(--hmd-radius);
  background: var(--hmd-btn-bg);
  color: var(--hmd-btn-ink);
  border: 1px solid var(--hmd-btn-border);
  font-family: var(--hmd-font-sans);
  font-weight: var(--hmd-weight-semibold);
  font-size: var(--hmd-text-sm);
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--hmd-duration-fast) var(--hmd-ease),
              color            var(--hmd-duration-fast) var(--hmd-ease),
              transform        var(--hmd-duration-fast) var(--hmd-ease),
              box-shadow       var(--hmd-duration-fast) var(--hmd-ease);
}
.hmd-btn:hover,
.hmd-btn:focus-visible { background: var(--hmd-btn-bg-hover); color: var(--hmd-btn-ink); }
.hmd-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.hmd-btn--dark {
  --hmd-btn-bg: var(--hmd-ink);
  --hmd-btn-bg-hover: var(--hmd-ink-soft);
  --hmd-btn-ink: #ffffff;
  --hmd-btn-border: transparent;
}
[data-theme="dark"] .hmd-btn--dark {
  --hmd-btn-bg: var(--hmd-stone-xlt);
  --hmd-btn-bg-hover: var(--hmd-stone-lt);
  --hmd-btn-ink: #1e2a32;
  --hmd-btn-border: transparent;
}
.hmd-btn--secondary {
  --hmd-btn-bg: var(--hmd-surface);
  --hmd-btn-bg-hover: var(--hmd-surface-alt);
  --hmd-btn-ink: var(--hmd-text-strong);
  --hmd-btn-border: var(--hmd-border);
}
.hmd-btn--ghost {
  --hmd-btn-bg: transparent;
  --hmd-btn-bg-hover: var(--hmd-surface-alt);
  --hmd-btn-ink: var(--hmd-text-strong);
  --hmd-btn-border: transparent;
}
.hmd-btn--outline {
  --hmd-btn-bg: transparent;
  --hmd-btn-bg-hover: var(--hmd-surface-alt);
  --hmd-btn-ink: var(--hmd-text-strong);
  --hmd-btn-border: var(--hmd-border-strong);
}
.hmd-btn--lg { padding: 8px 18px; font-size: var(--hmd-text-base); }
.hmd-btn--sm { padding: 6px 12px; font-size: var(--hmd-text-xs); }
.hmd-btn--block { width: 100%; }

/* --- Badges -------------------------------------------------------------- */
.hmd-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--hmd-radius-full);
  background: var(--hmd-surface-alt);
  color: var(--hmd-text-soft);
  font-family: var(--hmd-font-mono);
  font-size: 10px;
  font-weight: var(--hmd-weight-bold);
  letter-spacing: var(--hmd-track-mono);
  text-transform: uppercase;
  line-height: 1.4;
}
.hmd-badge--discount { background: var(--hmd-ink); color: #ffffff; }
[data-theme="dark"] .hmd-badge--discount { background: var(--hmd-slate); }
.hmd-badge--expiring { background: var(--hmd-danger-bg); color: var(--hmd-danger-fg); }
.hmd-badge--success  { background: var(--hmd-success-bg); color: var(--hmd-success-fg); }
.hmd-badge--muted    { background: var(--hmd-surface-alt); color: var(--hmd-text-muted); }

/* --- Eyebrow + display helpers ------------------------------------------ */
.hmd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--hmd-font-mono);
  font-size: var(--hmd-text-xs);
  font-weight: var(--hmd-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--hmd-track-mono);
  color: var(--hmd-text-muted);
}

/* --- Site header -------------------------------------------------------- */
.hmd-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--hmd-bg) 94%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--hmd-border);
}
.hmd-site-header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--hmd-space-6);
  min-height: var(--hmd-header-height);
}

/* Wordmark — Impact, uppercase, blue dot accent. */
.hmd-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* touch target */
  text-decoration: none;
  color: var(--hmd-text-strong);
  font-family: var(--hmd-font-display);
  font-size: 28px;
  letter-spacing: var(--hmd-track-display);
  line-height: 1;
  text-transform: uppercase;
}
.hmd-wordmark__motif  { width: 36px; height: 36px; flex-shrink: 0; margin-right: -9px; position: relative; z-index: 1; mix-blend-mode: multiply; transition: opacity var(--hmd-duration-fast) var(--hmd-ease); }
[data-theme="dark"] .hmd-wordmark__motif { mix-blend-mode: screen; }
.hmd-wordmark--footer .hmd-wordmark__motif { width: 48px; height: 48px; margin-right: -12px; }
.hmd-wordmark__impact { color: inherit; position: relative; z-index: 2; transition: color var(--hmd-duration-fast) var(--hmd-ease); }
.hmd-wordmark__sans   { color: var(--hmd-brand); margin-left: 7px; position: relative; z-index: 2; transition: color var(--hmd-duration-fast) var(--hmd-ease); }
.hmd-wordmark__dot    { color: var(--hmd-ink); position: relative; z-index: 2; transition: color var(--hmd-duration-fast) var(--hmd-ease); }
.hmd-wordmark img.custom-logo { max-height: 36px; width: auto; }
/* Hover: invert — HMONSTER goes brand-blue, DEALS goes dark, motif dims slightly */
.hmd-wordmark:hover .hmd-wordmark__motif  { opacity: 0.7; }
.hmd-wordmark:hover .hmd-wordmark__impact { color: var(--hmd-brand); }
.hmd-wordmark:hover .hmd-wordmark__sans   { color: var(--hmd-text-strong); }
.hmd-wordmark:hover .hmd-wordmark__dot    { color: var(--hmd-brand); }

/* Footer wordmark: allow inversion, suppress outline and underline only. */
.hmd-wordmark--footer { outline: none; }
.hmd-wordmark--footer:hover,
.hmd-wordmark--footer:focus-visible { outline: none; }
.hmd-site-footer .hmd-wordmark--footer:hover { text-decoration: none; }

/* Center tabs (Home / Deals / Stores / Categories). */
.hmd-tabs {
  display: flex;
  justify-content: center;
  gap: var(--hmd-space-8);
}
.hmd-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  color: var(--hmd-text-soft);
  font-weight: var(--hmd-weight-medium);
  font-size: var(--hmd-text-sm);
  text-decoration: none;
  line-height: 1;
}
.hmd-tab:hover { color: var(--hmd-text-strong); }
.hmd-tab.is-active {
  color: var(--hmd-text-strong);
  font-weight: var(--hmd-weight-semibold);
}
.hmd-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--hmd-text-strong);
  border-radius: 2px;
}

/* Right-side actions */
.hmd-site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--hmd-space-2);
  justify-self: end;
}
.hmd-link-action {
  padding: 10px 14px;
  border-radius: var(--hmd-radius-full);
  color: var(--hmd-text-strong);
  font-weight: var(--hmd-weight-semibold);
  font-size: var(--hmd-text-sm);
  text-decoration: none;
}
.hmd-link-action:hover { background: var(--hmd-surface-alt); color: var(--hmd-text-strong); }
.hmd-iconbtn {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent;
  color: var(--hmd-text-soft);
  border-radius: var(--hmd-radius-full);
  cursor: pointer;
  transition: background-color var(--hmd-duration-fast) var(--hmd-ease),
              color            var(--hmd-duration-fast) var(--hmd-ease);
}
.hmd-iconbtn:hover { background: var(--hmd-surface-alt); color: var(--hmd-text-strong); }

/* Dark-mode toggle: swap sun/moon icon via data-theme on <html>. */
.hmd-darkbtn .hmd-icon-sun  { display: none; }
.hmd-darkbtn .hmd-icon-moon { display: block; }
[data-theme="dark"] .hmd-darkbtn .hmd-icon-sun  { display: block; }
[data-theme="dark"] .hmd-darkbtn .hmd-icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .hmd-darkbtn .hmd-icon-sun  { display: block; }
  html:not([data-theme="light"]) .hmd-darkbtn .hmd-icon-moon { display: none; }
}

.hmd-menubtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 12px; /* 30px avatar + 7px*2 = 44px min touch target */
  border: 1px solid var(--hmd-border);
  background: var(--hmd-surface);
  border-radius: var(--hmd-radius-full);
  color: var(--hmd-text-strong);
  cursor: pointer;
  transition: box-shadow var(--hmd-duration-fast) var(--hmd-ease);
}
.hmd-menubtn:hover { box-shadow: var(--hmd-shadow-sm); }
.hmd-menubtn__avatar {
  display: inline-block;
  width: 30px; height: 30px;
  border-radius: var(--hmd-radius-full);
  background: var(--hmd-text-soft);
  position: relative;
}
.hmd-menubtn__avatar::after {
  content: "";
  position: absolute;
  left: 50%; top: 55%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  border-radius: var(--hmd-radius-full);
  background: #ffffff;
  box-shadow: 0 10px 0 -2px #ffffff;
}

/* Header search (replaces newsletter — slightly larger at 44px) */
.hmd-header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--hmd-border);
  border-radius: var(--hmd-radius-full);
  background: var(--hmd-surface);
  overflow: hidden;
  height: 44px;
  transition: box-shadow var(--hmd-duration-fast) var(--hmd-ease),
              border-color var(--hmd-duration-fast) var(--hmd-ease);
}
.hmd-header-search:focus-within { box-shadow: var(--hmd-shadow-sm); border-color: var(--hmd-brand); }
.hmd-header-search__input {
  border: 0;
  background: transparent;
  padding: 0 16px;
  height: 44px;
  flex: 1;
  width: 160px;
  font-size: var(--hmd-text-sm);
  color: var(--hmd-text);
  outline: none;
  font-family: var(--hmd-font-sans);
}
.hmd-header-search__input::placeholder { color: var(--hmd-text-muted); }
.hmd-header-search__input::-webkit-search-decoration,
.hmd-header-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hmd-header-search__btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-left: 1px solid var(--hmd-border);
  background: var(--hmd-ink);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--hmd-duration-fast) var(--hmd-ease);
}
.hmd-header-search__btn:hover { background: var(--hmd-ink-soft); }
[data-theme="dark"] .hmd-header-search__btn { background: var(--hmd-stone-xlt); color: #1e2a32; }

/* Mobile nav toggle — hamburger; full desktop header at ≥1280px */
.hmd-nav-toggle { display: none; }
@media (max-width: 1279px) {
  .hmd-header-search { display: none; }
  .hmd-nav-toggle { display: inline-flex; }
}

/* Nav tab group — wraps a tab + its dropdown. */
.hmd-tab-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.hmd-tab-chevron {
  font-size: 11px;
  margin-left: 3px;
  opacity: 0.6;
  pointer-events: none;
}
.hmd-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: var(--hmd-bg);
  border: 1px solid var(--hmd-border);
  border-radius: var(--hmd-radius-lg);
  box-shadow: var(--hmd-shadow-lg);
  padding: 6px;
  z-index: 200;
  flex-direction: column;
}
.hmd-tab-group:hover .hmd-dropdown,
.hmd-tab-group:focus-within .hmd-dropdown { display: flex; }
.hmd-dropdown__item {
  display: block;
  padding: 8px 12px;
  border-radius: var(--hmd-radius);
  color: var(--hmd-text-strong);
  text-decoration: none;
  font-size: var(--hmd-text-sm);
  font-weight: var(--hmd-weight-regular);
  white-space: nowrap;
  transition: background-color var(--hmd-duration-fast) var(--hmd-ease);
}
.hmd-dropdown__item:hover { background: var(--hmd-surface-alt); color: var(--hmd-text-strong); }
.hmd-dropdown__item--all {
  margin-top: 4px;
  border-top: 1px solid var(--hmd-border);
  padding-top: 10px;
  font-weight: var(--hmd-weight-semibold);
  font-size: var(--hmd-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--hmd-track-mono-sm);
  color: var(--hmd-text-soft);
}
.hmd-dropdown__item--all:hover { color: var(--hmd-text-strong); }

/* Mobile nav drawer — slides open below the header row with a max-height
   transition. Removed display:none so the animation runs smoothly. */
.hmd-mobile-nav {
  max-height: 0;
  overflow: hidden;
  background: var(--hmd-bg);
  transition: max-height var(--hmd-duration-med) var(--hmd-ease-out),
              border-color var(--hmd-duration-med) var(--hmd-ease-out);
  border-top: 0 solid var(--hmd-border);
}
.hmd-mobile-nav[data-open="true"] {
  max-height: 480px;
  border-top-width: 1px;
}
.hmd-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: var(--hmd-space-4) var(--hmd-container-pad);
  display: grid;
  gap: var(--hmd-space-1);
  max-width: var(--hmd-container-max);
  margin-inline: auto;
}
.hmd-mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 44px; /* WCAG 2.5.5 touch target */
  padding: 8px 12px;
  border-radius: var(--hmd-radius);
  color: var(--hmd-text-strong);
  text-decoration: none;
  font-weight: var(--hmd-weight-medium);
  transition: background-color var(--hmd-duration-fast) var(--hmd-ease);
}
.hmd-mobile-nav a:hover { background: var(--hmd-surface-alt); }

/* Hide center tabs + submit-deal link on narrow viewports — matches the
   1279px breakpoint where the hamburger/mobile-nav takes over. */
@media (max-width: 1279px) {
  .hmd-tabs { display: none; }
  .hmd-link-action { display: none; }
}
@media (max-width: 639px) {
  .hmd-iconbtn[data-hmd-globe] { display: none; }
  .hmd-site-header__row { gap: var(--hmd-space-3); }
}

/* --- Deal card (Halcyon "Premium Cotton Shirt" style) ------------------- */
.hmd-card-deal {
  display: flex;
  flex-direction: column;
  background: var(--hmd-surface);
  border: 1px solid var(--hmd-border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: box-shadow var(--hmd-duration-med) var(--hmd-ease),
              transform  var(--hmd-duration-med) var(--hmd-ease),
              border-color var(--hmd-duration-med) var(--hmd-ease);
}
/* Hover effect only on pointer devices — prevents sticky-hover on tap. */
@media (hover: hover) {
  .hmd-card-deal:hover {
    box-shadow: var(--hmd-shadow-lg);
    transform: translateY(-3px);
    border-color: var(--hmd-border-strong);
  }
  .hmd-card-deal:hover .hmd-card-deal__img { transform: scale(1.02); }
}
.hmd-card-deal.is-expired { opacity: 0.75; }
.hmd-card-deal.is-expired .hmd-card-deal__img { filter: grayscale(0.5); }

.hmd-card-deal__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  margin: 8px 8px 0;
  border-radius: 10px;
  background: var(--hmd-surface);
  overflow: hidden;
}
.hmd-card-deal__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  mix-blend-mode: multiply;
  transition: transform var(--hmd-duration-slow) var(--hmd-ease);
}
/* Multiply works in BOTH modes for white-bg product photos:
   white × surface = surface (bg disappears), dark pixels stay dark.
   `isolation: isolate` on the panel keeps the blend scoped. */
[data-theme="dark"] .hmd-card-deal__media { isolation: isolate; }
.hmd-card-deal__placeholder {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--hmd-text-faint);
  background:
    radial-gradient(circle at 30% 20%, var(--hmd-surface-alt), var(--hmd-bg-alt));
}
.hmd-card-deal__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  pointer-events: none;
}
.hmd-card-deal__badges .hmd-badge { box-shadow: var(--hmd-shadow-sm); }

.hmd-card-deal__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px 12px;
  flex: 1 1 auto;
}
.hmd-card-deal__store {
  margin: 0;
  font-family: var(--hmd-font-mono);
  font-size: var(--hmd-text-xs);
  font-weight: var(--hmd-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--hmd-track-mono);
  color: var(--hmd-text-muted);
  min-height: 1.4em; /* always occupies one line even without a store name */
}
.hmd-card-deal__store a {
  color: inherit;
  text-decoration: none;
  /* Expand tap area to 44×44 without visual shift (WCAG 2.5.5). */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  margin-inline: -8px;
}
.hmd-card-deal__store a:hover { color: var(--hmd-text-strong); text-decoration: underline; }

.hmd-card-deal__title {
  margin: 2px 0 0;
  font-family: var(--hmd-font-sans);
  /* 10% smaller than --hmd-text-lg (18px) for denser latest-deal cards. */
  font-size: 1rem;
  font-weight: var(--hmd-weight-bold);
  letter-spacing: var(--hmd-track-tight);
  line-height: var(--hmd-leading-snug);
  color: var(--hmd-text-strong);
  min-height: 2.6em;
  overflow: hidden;
}
.hmd-card-deal__title a {
  color: inherit;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* Tap-area trick: padding lifts the link to ≥44px (WCAG 2.5.5) without
     altering visible layout. Negative margin neutralises the padding so the
     parent's vertical rhythm is unchanged. */
  padding-block: 12px;
  margin-block: -12px;
}
.hmd-card-deal__title a:hover { color: var(--hmd-brand); }

.hmd-card-deal__price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 4px 0 0;
  gap: var(--hmd-space-2);
}
.hmd-card-deal__price {
  margin: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--hmd-space-2);
}
.hmd-card-deal__date {
  font-family: var(--hmd-font-mono);
  font-size: var(--hmd-text-xs);
  font-weight: var(--hmd-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--hmd-track-mono);
  color: var(--hmd-text-muted);
  white-space: nowrap;
  margin-left: auto;
}
.hmd-card-deal__price-sale {
  font-family: var(--hmd-font-display);
  font-size: 1.72rem; /* --hmd-text-xl × 1.25 */
  font-weight: var(--hmd-weight-regular);
  color: var(--hmd-text-strong);
  letter-spacing: -0.01em;
}
.hmd-card-deal__price-original {
  font-family: var(--hmd-font-display);
  font-size: var(--hmd-text-sm);
  font-weight: var(--hmd-weight-regular);
  color: var(--hmd-text-muted);
  text-decoration: line-through;
  letter-spacing: -0.01em;
}
.hmd-card-deal__cta { margin-top: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Featured deal card — parallax + floating product image ------------- */
@keyframes hmd-bounce-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.hmd-card-featured {
  position: relative;
  cursor: pointer;
  perspective: 900px;
}
.hmd-card-featured__tilt {
  position: relative;
  border-radius: 16px;
  transform: rotateX(var(--hmd-rx, 0deg)) rotateY(var(--hmd-ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 120ms var(--hmd-ease),
              box-shadow var(--hmd-duration-med) var(--hmd-ease);
  will-change: transform;
}
.hmd-card-featured__float {
  position: absolute;
  top: -52px;
  right: 12px;
  width: 140px;
  height: 140px;
  z-index: 20;
  pointer-events: none;
  animation: hmd-bounce-float 3s ease-in-out infinite;
}
.hmd-card-featured__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.22));
}
.hmd-card-featured__surface {
  position: relative;
  z-index: 10;
  background: var(--hmd-surface);
  border: 1px solid var(--hmd-border);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow var(--hmd-duration-med) var(--hmd-ease),
              border-color var(--hmd-duration-med) var(--hmd-ease);
}
.hmd-card-featured__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* badges/store/price size to content, not card width */
  gap: 6px;
  padding: 100px 18px 20px; /* 100px top leaves room for floating image */
}
/* CTA needs to span full width despite align-items: flex-start on parent. */
.hmd-card-featured__body .hmd-btn--block { align-self: stretch; }

@media (hover: hover) {
  .hmd-card-featured:hover .hmd-card-featured__tilt {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
  }
  .hmd-card-featured:hover .hmd-card-featured__surface {
    border-color: var(--hmd-border-strong);
  }
  .hmd-card-featured:hover .hmd-card-featured__img {
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.30));
  }
}

.hmd-card-featured.is-expired { opacity: 0.75; }
.hmd-card-featured.is-expired .hmd-card-featured__img { filter: grayscale(0.5); }

@media (prefers-reduced-motion: reduce) {
  .hmd-card-featured__float { animation: none; }
  .hmd-card-featured__tilt  { transition: none; }
}

/* --- Single-deal hero --------------------------------------------------- */
.hmd-deal-single { display: block; }

.hmd-deal-hero {
  display: grid;
  gap: var(--hmd-space-8);
  grid-template-columns: 1fr;
  margin-bottom: var(--hmd-space-12);
}
@media (min-width: 900px) {
  /* align-items: start so the 4:3 media panel keeps its column width.
     With `stretch`, aspect-ratio would derive width from the row height
     (driven by body content) and overflow into the right column. */
  .hmd-deal-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
}
/* Image is fully contained — never cropped, never distorted. Letterboxing
   is acceptable. Aspect-ratio drives container height across breakpoints. */
.hmd-deal-hero__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--hmd-surface);
  border-radius: 16px;
  overflow: hidden;
  padding: 24px;
  box-shadow: var(--hmd-shadow-md);
}
.hmd-deal-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  /* Product photos ship with white backgrounds. Multiply makes white
     pixels take the surface colour (white × dark = dark, white × light =
     light), so the box appears to sit directly on the panel — works in
     both light and dark mode without an override. */
  mix-blend-mode: multiply;
}
[data-theme="dark"] .hmd-deal-hero__media { isolation: isolate; }
@media (max-width: 639px) {
  .hmd-deal-hero__media { padding: 16px; border-radius: 12px; }
}
.hmd-deal-hero__img--placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--hmd-text-faint);
}
.hmd-deal-hero__flag {
  position: absolute;
  top: 16px;
  left: 16px;
  box-shadow: var(--hmd-shadow-sm);
}

.hmd-deal-hero__body {
  display: flex;
  flex-direction: column;
  gap: var(--hmd-space-4);
}
.hmd-deal-hero__eyebrow {
  margin: 0;
  display: flex;
  gap: var(--hmd-space-3);
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--hmd-font-mono);
  font-size: var(--hmd-text-xs);
  font-weight: var(--hmd-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--hmd-track-mono);
  color: var(--hmd-text-muted);
}
.hmd-deal-hero__store a {
  color: var(--hmd-text-strong);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  margin-inline: -8px;
}
.hmd-deal-hero__store a:hover { text-decoration: underline; }
.hmd-deal-hero__title {
  margin: 0;
  font-size: clamp(2.25rem, 4vw + 1rem, 4rem);
}
.hmd-deal-hero__rating {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--hmd-space-2);
  color: #f59e0b;
  font-size: var(--hmd-text-lg);
  letter-spacing: 0.05em;
}

.hmd-price-hero {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--hmd-space-3);
  padding: 18px 20px;
  background: var(--hmd-bg-alt);
  border: 1px solid var(--hmd-border);
  border-radius: var(--hmd-radius-lg);
}
.hmd-price-hero__sale {
  font-family: var(--hmd-font-display);
  font-size: 3rem;
  font-weight: var(--hmd-weight-regular);
  text-transform: uppercase;
  letter-spacing: var(--hmd-track-display);
  color: var(--hmd-text-strong);
  line-height: 1;
}
.hmd-price-hero__original {
  color: var(--hmd-text-muted);
  text-decoration: line-through;
  font-size: var(--hmd-text-lg);
}
.hmd-price-hero__save { align-self: center; }

/* Promo-code reveal tile. */
.hmd-promo {
  border: 1px dashed var(--hmd-border-strong);
  background: var(--hmd-accent-bg);
  padding: 16px 18px;
  border-radius: var(--hmd-radius-lg);
}
.hmd-promo__label {
  font-family: var(--hmd-font-mono);
  font-size: 10px;
  font-weight: var(--hmd-weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--hmd-track-mono);
  color: var(--hmd-accent-fg);
  margin-bottom: var(--hmd-space-2);
}
.hmd-promo__row {
  display: flex;
  align-items: center;
  gap: var(--hmd-space-3);
  flex-wrap: wrap;
}
.hmd-promo__code {
  font-family: var(--hmd-font-mono);
  font-size: var(--hmd-text-xl);
  font-weight: var(--hmd-weight-bold);
  letter-spacing: 0.08em;
  background: var(--hmd-surface);
  padding: 10px 16px;
  border-radius: var(--hmd-radius);
  border: 1px solid var(--hmd-border);
  color: var(--hmd-text-strong);
}
.hmd-promo.is-copied .hmd-btn--secondary {
  background: var(--hmd-success-bg);
  color: var(--hmd-success-fg);
  border-color: var(--hmd-success);
}
.hmd-promo__hint { margin: var(--hmd-space-2) 0 0; font-size: var(--hmd-text-sm); color: var(--hmd-text-muted); }

.hmd-deal-hero__cta {
  display: flex;
  flex-direction: column;
  gap: var(--hmd-space-3);
  margin-top: var(--hmd-space-2);
}

.hmd-deal-content {
  max-width: 70ch;
  margin: 0 auto var(--hmd-space-12);
  font-size: var(--hmd-text-lg);
  line-height: var(--hmd-leading-loose);
  color: var(--hmd-text);
}
.hmd-deal-content p,
.hmd-deal-content ul,
.hmd-deal-content ol { margin-bottom: var(--hmd-space-4); }

/* --- Site footer -------------------------------------------------------- */
.hmd-site-footer {
  /* Halved top + bottom whitespace (was space-20/space-20/space-8). */
  margin-top: var(--hmd-space-10);
  padding: var(--hmd-space-10) 0 var(--hmd-space-4);
  border-top: 1px solid var(--hmd-border);
  background: var(--hmd-bg);
  color: var(--hmd-text-soft);
}
.hmd-site-footer a { color: var(--hmd-text-strong); text-decoration: none; }
.hmd-site-footer a:hover { text-decoration: underline; }
.hmd-site-footer__cols {
  display: grid;
  gap: var(--hmd-space-12);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .hmd-site-footer__cols { grid-template-columns: 2fr 1fr 1fr; gap: var(--hmd-space-16); }
}
.hmd-wordmark--footer { font-size: 40px; color: var(--hmd-text-strong); }
.hmd-site-footer__tagline {
  max-width: 44ch;
  color: var(--hmd-text-muted);
  margin: var(--hmd-space-4) 0 var(--hmd-space-5);
  font-size: var(--hmd-text-sm);
}
.hmd-site-footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--hmd-text-soft);
}
@keyframes hmd-statusdot-pulse {
  /* rgba fallbacks for Safari <17, Firefox <108 (no color-mix support). */
  0%, 100% {
    box-shadow: 0 0 0 0   rgba(16, 185, 129, 0.40);
    box-shadow: 0 0 0 0   color-mix(in srgb, var(--hmd-success) 40%, transparent);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--hmd-success) 0%,  transparent);
  }
}
.hmd-statusdot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: var(--hmd-radius-full);
  background: var(--hmd-success);
  animation: hmd-statusdot-pulse 2.4s var(--hmd-ease) infinite;
}
@media (prefers-reduced-motion: reduce) { .hmd-statusdot { animation: none; } }
.hmd-site-footer__col-title {
  margin: 0 0 var(--hmd-space-4);
  color: var(--hmd-text-strong);
  font-size: var(--hmd-text-xs);
}
.hmd-site-footer__menu {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: var(--hmd-space-2);
  font-size: var(--hmd-text-sm);
}
.hmd-site-footer__menu a {
  color: var(--hmd-text);
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* WCAG 2.5.5 touch target */
  min-width: 44px;  /* short words like "About" still meet 44×44 */
  padding-block: 4px;
  padding-inline: 8px;
  margin-inline: -8px; /* preserve visual alignment with column heads */
}
.hmd-site-footer__menu a:hover { color: var(--hmd-text-strong); }
.hmd-site-footer__bottom {
  /* Halved gap between columns and bottom legal row (was space-16). */
  margin-top: var(--hmd-space-8);
  padding-top: var(--hmd-space-6);
  border-top: 1px solid var(--hmd-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--hmd-space-4);
  justify-content: space-between;
  color: var(--hmd-text-muted);
  font-size: 11px; /* min readable size for legal/meta copy */
}

/* --- Horizontal deal card (Littoral "Product Card — Horizontal") --------- */
/*
 * Layout: text body left (flex-col, space-between), product image panel right.
 * Image floats to the bottom edge of the card with a drop-shadow — matching
 * the Littoral hprod-card reference in brand_assets/littoral-brand.html.
 * Used in the Latest deals right column (2-up stack).
 */
.hmd-card-horiz {
  display: flex;
  align-items: stretch;
  background: var(--hmd-surface);
  border: 1px solid var(--hmd-border);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
  transition: box-shadow var(--hmd-duration-med) var(--hmd-ease),
              transform  var(--hmd-duration-med) var(--hmd-ease),
              border-color var(--hmd-duration-med) var(--hmd-ease);
}
@media (hover: hover) {
  .hmd-card-horiz:hover {
    box-shadow: var(--hmd-shadow-lg);
    transform: translateY(-2px);
    border-color: var(--hmd-border-strong);
  }
}
.hmd-card-horiz.is-expired { opacity: 0.75; }

/* Left body — fills remaining width, stacks top/bottom groups. */
.hmd-card-horiz__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 16px 20px 20px;
  gap: 12px;
  min-width: 0;
}

.hmd-card-horiz__top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hmd-card-horiz__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hmd-card-horiz__store {
  margin: 0;
  font-family: var(--hmd-font-mono);
  font-size: var(--hmd-text-xs);
  font-weight: var(--hmd-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--hmd-track-mono);
  color: var(--hmd-text-muted);
  min-height: 1.4em;
}
.hmd-card-horiz__store a { color: inherit; text-decoration: none; }
.hmd-card-horiz__store a:hover { color: var(--hmd-text-strong); text-decoration: underline; }

.hmd-card-horiz__title {
  margin: 0;
  font-family: var(--hmd-font-sans);
  font-size: var(--hmd-text-lg);
  font-weight: var(--hmd-weight-bold);
  letter-spacing: var(--hmd-track-tight);
  line-height: var(--hmd-leading-snug);
  color: var(--hmd-text-strong);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hmd-card-horiz__title a { color: inherit; text-decoration: none; display: block; }
.hmd-card-horiz__title a:hover { color: var(--hmd-brand); }

.hmd-card-horiz__badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hmd-card-horiz__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
}
.hmd-card-horiz__price-sale {
  font-family: var(--hmd-font-display);
  font-size: var(--hmd-text-xl);
  font-weight: var(--hmd-weight-regular);
  color: var(--hmd-text-strong);
  letter-spacing: -0.01em;
}
.hmd-card-horiz__price-original {
  font-family: var(--hmd-font-display);
  font-size: var(--hmd-text-sm);
  font-weight: var(--hmd-weight-regular);
  color: var(--hmd-text-muted);
  text-decoration: line-through;
  letter-spacing: -0.01em;
}

.hmd-card-horiz__cta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Right image panel — fixed width, image anchored to bottom edge.
   In the 300px latest-grid sidebar the column is tighter, so image is 100px. */
.hmd-card-horiz__media {
  width: 120px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--hmd-surface-alt);
  position: relative;
  text-decoration: none;
}
.hmd-card-horiz__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.14));
}
[data-theme="dark"] .hmd-card-horiz__media { isolation: isolate; }
.hmd-card-horiz__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--hmd-text-faint);
}

/* --- Empty state -------------------------------------------------------- */
.hmd-empty {
  text-align: center;
  padding: var(--hmd-space-20) var(--hmd-space-4);
}
.hmd-empty h1,
.hmd-empty h2 { margin-bottom: var(--hmd-space-2); }
.hmd-empty p { color: var(--hmd-text-muted); max-width: 48ch; margin-inline: auto; }
.hmd-empty__actions {
  margin-top: var(--hmd-space-6);
  display: flex;
  gap: var(--hmd-space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Latest two-column header ------------------------------------------ */
.hmd-latest-header {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: end;
  margin-bottom: var(--hmd-space-6);
}
.hmd-latest-header__main {
  display: flex;
  flex-direction: column;
  gap: var(--hmd-space-2);
}
.hmd-latest-header__title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--hmd-space-4);
}
.hmd-latest-header__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--hmd-space-1);
  padding-bottom: 4px; /* align baseline with h2 */
}

/* --- Latest sort filter ------------------------------------------------ */
.hmd-latest-sort {
  display: flex;
  align-items: center;
  gap: var(--hmd-space-2);
  flex-shrink: 0;
}
.hmd-latest-sort__label {
  font-family: var(--hmd-font-mono);
  font-size: var(--hmd-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--hmd-track-mono-sm);
  color: var(--hmd-text-muted);
  white-space: nowrap;
}
.hmd-latest-sort__select {
  font-family: var(--hmd-font-body);
  font-size: var(--hmd-text-sm);
  font-weight: var(--hmd-weight-medium);
  color: var(--hmd-text-strong);
  background: var(--hmd-surface);
  border: 1px solid var(--hmd-border);
  border-radius: var(--hmd-radius);
  padding: 10px 28px 10px 12px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
  /* WCAG 2.5.5 — minimum 44×44 touch target. */
  min-height: 44px;
  transition: border-color var(--hmd-duration-fast) var(--hmd-ease);
}
.hmd-latest-sort__select:focus {
  outline: 2px solid var(--hmd-brand);
  outline-offset: 1px;
  border-color: var(--hmd-brand);
}
[data-theme="dark"] .hmd-latest-sort__select {
  background-color: var(--hmd-surface);
  border-color: var(--hmd-border);
  color: var(--hmd-text-strong);
}

/* --- Latest sidebar title ---------------------------------------------- */
.hmd-latest-sidebar__title {
  margin: 0;
  font-family: var(--hmd-font-display);
  font-weight: var(--hmd-weight-regular);
  text-transform: uppercase;
  letter-spacing: var(--hmd-track-display);
  font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  line-height: 0.95;
  color: var(--hmd-text-strong);
}

/* ============================================================================
   Archive / search / static-page shells (Day 8c)
   ============================================================================ */

.hmd-archive,
.hmd-page {
  padding-block: var(--hmd-space-8) var(--hmd-space-16);
}

.hmd-archive__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--hmd-space-6);
  margin-bottom: var(--hmd-space-8);
  padding-bottom: var(--hmd-space-6);
  border-bottom: 1px solid var(--hmd-border);
}

.hmd-archive__heading {
  display: flex;
  flex-direction: column;
  gap: var(--hmd-space-2);
  min-width: 0;
}

.hmd-archive__title {
  margin: 0;
  font-size: clamp(2.25rem, 4vw + 0.5rem, 4rem);
  line-height: 0.95;
  color: var(--hmd-text-strong);
}
.hmd-archive__title em {
  font-style: normal;
  color: var(--hmd-brand);
}

.hmd-archive__sub {
  margin: 0;
  color: var(--hmd-text-muted);
  font-size: var(--hmd-text-sm);
}
.hmd-archive__sub p:last-child { margin-bottom: 0; }

/* Sort/filter controls inside the archive header */
.hmd-archive__sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hmd-archive__sort label {
  font-size: var(--hmd-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--hmd-track-mono);
  color: var(--hmd-text-muted);
}
.hmd-archive__sort select {
  font-family: var(--hmd-font-sans);
  font-size: var(--hmd-text-sm);
  font-weight: var(--hmd-weight-medium);
  padding: 10px 34px 10px 14px;
  min-height: 44px;
  border: 1px solid var(--hmd-border);
  border-radius: var(--hmd-radius);
  background: var(--hmd-surface);
  color: var(--hmd-text-strong);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a8a96' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.hmd-archive__sort select:focus {
  outline: 2px solid var(--hmd-ring);
  outline-offset: 2px;
  border-color: var(--hmd-brand);
}

.hmd-archive__searchform {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.hmd-archive__searchform input[type="search"] {
  font-family: var(--hmd-font-sans);
  font-size: var(--hmd-text-sm);
  padding: 10px 14px;
  min-height: 44px;
  width: 240px;
  max-width: 100%;
  border: 1px solid var(--hmd-border);
  border-radius: var(--hmd-radius);
  background: var(--hmd-surface);
  color: var(--hmd-text-strong);
}
.hmd-archive__searchform input[type="search"]:focus {
  outline: 2px solid var(--hmd-ring);
  outline-offset: 2px;
  border-color: var(--hmd-brand);
}

@media (max-width: 767px) {
  .hmd-archive__head {
    grid-template-columns: 1fr;
    gap: var(--hmd-space-4);
  }
  .hmd-archive__searchform input[type="search"] {
    width: 100%;
    flex: 1;
  }
}

/* --- Static page (page.php) --------------------------------------------- */
.hmd-page__head {
  display: flex;
  flex-direction: column;
  gap: var(--hmd-space-2);
  margin-bottom: var(--hmd-space-6);
  padding-bottom: var(--hmd-space-5);
  border-bottom: 1px solid var(--hmd-border);
}
.hmd-page__title {
  margin: 0;
  font-size: clamp(2.25rem, 4vw + 0.5rem, 4rem);
  line-height: 0.95;
  color: var(--hmd-text-strong);
}
.hmd-page__body,
.hmd-page__intro {
  max-width: 70ch;
}
.hmd-page__intro {
  margin-bottom: var(--hmd-space-8);
  color: var(--hmd-text-soft);
}
.hmd-page__intro p:last-child { margin-bottom: 0; }

/* --- Form: submit-a-deal ----------------------------------------------- */
.hmd-page--form .hmd-form { max-width: 720px; }

.hmd-form {
  margin-top: var(--hmd-space-8);
  display: flex;
  flex-direction: column;
  gap: var(--hmd-space-6);
}

/* Honeypot — visually hidden but not display:none (bots skip display:none). */
.hmd-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hmd-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hmd-space-5);
}
@media (max-width: 639px) {
  .hmd-form__grid { grid-template-columns: 1fr; }
}

.hmd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.hmd-field--full { grid-column: 1 / -1; }
.hmd-field--row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--hmd-space-5);
}
@media (max-width: 639px) {
  .hmd-field--row { grid-template-columns: 1fr; }
}

.hmd-field__label {
  font-family: var(--hmd-font-mono);
  font-size: var(--hmd-text-xs);
  font-weight: var(--hmd-weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--hmd-track-mono);
  color: var(--hmd-text-muted);
}
.hmd-field__req { color: var(--hmd-danger-fg); margin-left: 2px; }

.hmd-field__input {
  font-family: var(--hmd-font-sans);
  font-size: var(--hmd-text-base);
  padding: 12px 14px;
  min-height: 44px;
  border: 1px solid var(--hmd-border);
  border-radius: var(--hmd-radius);
  background: var(--hmd-surface);
  color: var(--hmd-text-strong);
  width: 100%;
}
.hmd-field__input:focus {
  outline: 2px solid var(--hmd-ring);
  outline-offset: 2px;
  border-color: var(--hmd-brand);
}
.hmd-field__textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--hmd-font-sans);
  line-height: var(--hmd-leading-normal);
}

.hmd-form__actions {
  display: flex;
  align-items: center;
  gap: var(--hmd-space-4);
  flex-wrap: wrap;
}
.hmd-form__hint {
  color: var(--hmd-text-muted);
  font-size: var(--hmd-text-xs);
  letter-spacing: var(--hmd-track-mono-sm);
  text-transform: uppercase;
  margin: 0;
}

/* Notices (success / error on the submit page). */
.hmd-notice {
  padding: 14px 18px;
  border-radius: var(--hmd-radius);
  font-size: var(--hmd-text-sm);
  line-height: var(--hmd-leading-normal);
  margin-bottom: var(--hmd-space-6);
  border: 1px solid transparent;
}
.hmd-notice strong { font-weight: var(--hmd-weight-semibold); margin-right: 4px; }
.hmd-notice--success {
  background: var(--hmd-success-bg);
  color: var(--hmd-success-fg);
  border-color: color-mix(in srgb, var(--hmd-success-fg) 20%, transparent);
}
.hmd-notice--error {
  background: var(--hmd-danger-bg);
  color: var(--hmd-danger-fg);
  border-color: color-mix(in srgb, var(--hmd-danger-fg) 20%, transparent);
}

/* Screen-reader-only helper (used by search.php inline label). */
.hmd-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
