/* ===================================================================
   Ritus Candelabrum - components
   Nav, buttons, panels, forms, cart drawer, toasts, footer.
   =================================================================== */

/* =================================================== buttons */
.btn {
  --btn-bg: linear-gradient(168deg, #f6bf5e, #dd8f26 58%, #b96f19);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.7em;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: #21100024;
  color: #2a1403;
  font-family: var(--font-roman);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 30px -14px rgba(233, 169, 63, 0.9);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), filter 0.3s var(--ease);
}

.btn:hover {
  color: #2a1403;
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 16px 38px -14px rgba(233, 169, 63, 0.95);
}

.btn:active { transform: translateY(0); }

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

.btn--ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn--ghost:hover {
  color: var(--gold-hot);
  border-color: var(--gold);
  background: rgba(233, 169, 63, 0.07);
  box-shadow: none;
}

.btn--quiet {
  background: var(--glass-2);
  color: var(--ink-2);
  border: 1px solid var(--line-soft);
  box-shadow: none;
}

.btn--quiet:hover { color: var(--ink-1); background: rgba(255, 233, 205, 0.09); }

.btn--sm { padding: 0.62em 1.15em; font-size: 0.73rem; letter-spacing: 0.14em; }
.btn--lg { padding: 1.05em 2.3em; font-size: 0.82rem; }
.btn--block { display: flex; width: 100%; }

.btn.is-busy {
  pointer-events: none;
  opacity: 0.7;
}

.btn.is-busy::after {
  content: '';
  width: 0.85em;
  height: 0.85em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  font-family: var(--font-roman);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.link-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease-out);
}

.link-arrow:hover::after { transform: translateX(4px); }

/* =================================================== panel / card */
.panel {
  position: relative;
  background:
    linear-gradient(158deg, rgba(255, 233, 205, 0.055), rgba(255, 233, 205, 0.012) 55%),
    rgba(12, 8, 16, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.6vw, 2.2rem);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(14px);
}

.panel--flat { box-shadow: none; backdrop-filter: none; }

/* instrument corner ticks */
.panel--ticked::before,
.panel--ticked::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}

.panel--ticked::before {
  top: 10px; left: 10px;
  border-right: 0; border-bottom: 0;
  border-top-left-radius: 4px;
}

.panel--ticked::after {
  bottom: 10px; right: 10px;
  border-left: 0; border-top: 0;
  border-bottom-right-radius: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.35em 0.8em;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--ink-2);
  background: rgba(255, 233, 205, 0.03);
}

.tag--gold { color: var(--gold-hot); border-color: var(--line-strong); background: rgba(233, 169, 63, 0.08); }

.dot {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--dot, var(--gold));
  box-shadow: 0 0 10px var(--dot, var(--gold));
  flex: none;
}

/* =================================================== card crown
   Each station carries its own two-colour signature: a lit bar across the
   top and a wash bleeding down behind the emblem, so the cards are told
   apart by colour before a single word is read. */
.card-crown {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 108px;
  border-radius: inherit;
  pointer-events: none;
  /* behind the text, above the card's own background - the card isolates
     below so this negative index cannot escape into the page */
  z-index: -1;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--tint-a, #e9a93f) 26%, transparent) 0%,
      color-mix(in srgb, var(--tint-b, #ffd892) 9%, transparent) 42%,
      transparent 100%);
  opacity: 0.85;
  transition: opacity 0.45s var(--ease);
}

/* the lit edge itself */
.card-crown::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tint-a, #e9a93f), var(--tint-b, #ffd892));
  box-shadow: 0 0 16px -2px var(--tint-a, #e9a93f);
}

/* browsers without color-mix still get the bar plus a plain wash */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .card-crown {
    background: linear-gradient(180deg, var(--tint-a, #e9a93f) 0%, transparent 70%);
    opacity: 0.22;
  }
}

.station.is-active .card-crown,
.tool:hover .card-crown { opacity: 1; }

/* ring cards sit against a lit sun, so their signature needs more body to
   survive the backlight */
.station .card-crown {
  height: 124px;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--tint-a, #e9a93f) 42%, transparent) 0%,
      color-mix(in srgb, var(--tint-b, #ffd892) 15%, transparent) 46%,
      transparent 100%);
}

.station .card-crown::before { height: 4px; }

/* the emblem picks up the card's own colour */
.station .station__art,
.tool .tool__art { color: var(--tint-b, var(--gold)); }

.station.is-active .station__art,
.tool:hover .tool__art { color: var(--tint-b, var(--gold-hot)); }

/* =================================================== price signal
   One badge used everywhere something costs (or does not cost) an opening.
   The icon carries the meaning; the word only confirms it. */
.cost {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.35em 0.7em 0.35em 0.5em;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  font-family: var(--font-roman);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-3);
  background: rgba(255, 233, 205, 0.03);
}

.cost svg { width: 13px; height: 13px; flex: none; }

.cost--free {
  color: #83c48d;
  border-color: rgba(131, 196, 141, 0.34);
  background: rgba(131, 196, 141, 0.09);
}

.cost--mixed {
  color: #e6b866;
  border-color: rgba(230, 184, 102, 0.34);
  background: rgba(230, 184, 102, 0.1);
}

.cost--token {
  color: var(--gold-hot);
  border-color: var(--line-strong);
  background: rgba(233, 169, 63, 0.12);
}

.cost--shop {
  color: var(--ink-1);
  border-color: var(--line);
  background: rgba(255, 233, 205, 0.06);
}

/* =================================================== nav */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.site-nav.is-stuck {
  background: rgba(9, 6, 12, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
}

.site-nav__inner {
  width: min(100% - 2.5rem, 1400px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink-1);
  font-family: var(--font-roman);
  font-size: 0.86rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand:hover { color: var(--gold-hot); }

.brand__mark {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ffe6ae, #e8901f 46%, #7c2f0c 78%, #2b0d04);
  box-shadow: 0 0 16px rgba(233, 169, 63, 0.55);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
  margin-left: auto;
}

.nav-links a {
  font-family: var(--font-roman);
  font-size: 0.72rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 0.4rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover,
.nav-links a[aria-current='page'] { color: var(--gold-hot); }
.nav-links a:hover::after,
.nav-links a[aria-current='page']::after { transform: scaleX(1); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.95em;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 233, 205, 0.04);
  color: var(--ink-1);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s;
}

.nav-pill:hover {
  color: var(--ink-1);
  border-color: var(--line-strong);
  background: rgba(233, 169, 63, 0.1);
}

.nav-pill__count {
  min-width: 1.5em;
  padding: 0 0.35em;
  height: 1.5em;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: #2a1403;
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nav-pill--empty .nav-pill__count { background: rgba(255, 233, 205, 0.14); color: var(--ink-2); }

.nav-pill.is-bumped { animation: bump 0.45s var(--ease-out); }

@keyframes bump {
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: transparent;
  padding: 0;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1px;
  background: var(--ink-1);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle span + span { margin-top: 4px; }

.site-nav.is-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-nav.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.is-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: grid; order: 3; }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-4) 1.25rem var(--s-6);
    background: rgba(9, 6, 12, 0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
    transform: translateY(-140%);
    transition: transform 0.45s var(--ease-out);
    margin-left: 0;
  }

  .site-nav.is-open .nav-links { transform: none; }

  .nav-links a {
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.8rem;
  }

  .nav-links a::after { display: none; }

  .nav-actions { margin-left: auto; }
  .nav-pill__text { display: none; }
  .nav-pill { padding: 0.5em 0.75em; gap: 0.4em; }
}

.nav-pill__icon { width: 15px; height: 15px; flex: none; }

@media (min-width: 901px) {
  .nav-pill__icon { display: none; }
}

/* below this the wordmark starves the actions, so only the seal stays */
@media (max-width: 560px) {
  .brand span:not(.brand__mark) { display: none; }
  .site-nav__inner { gap: var(--s-3); }
  .nav-links { margin-left: 0; }
}

/* =================================================== forms */
.field {
  display: block;
}

.field > span,
.field-label {
  display: block;
  font-family: var(--font-roman);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.input,
select.input,
textarea.input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(6, 4, 8, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink-1);
  font-size: 0.98rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.input::placeholder { color: var(--ink-4); }

.input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(6, 4, 8, 0.78);
}

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23e9a93f' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}

textarea.input { resize: vertical; min-height: 120px; line-height: 1.55; }

/* =================================================== custom dropdown
   Replaces native selects: the list slides open and shut, which the OS
   popup never can. The native element stays hidden as the value holder. */
.dd { position: relative; }

.dd__native {
  position: absolute !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.dd__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  text-align: left;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23e9a93f' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.4rem;
}

.dd__btn[aria-expanded='true'] { border-color: var(--gold); }

.dd__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dd__panel {
  position: absolute;
  z-index: 70;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(175deg, #1c1322, #0d0912);
  box-shadow: 0 26px 60px -22px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-7px) scaleY(0.96);
  transform-origin: top center;
  transition: opacity 0.18s var(--ease), transform 0.22s var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}

.dd__panel--up {
  top: auto;
  bottom: calc(100% + 6px);
  transform: translateY(7px) scaleY(0.96);
  transform-origin: bottom center;
}

.dd__panel.is-open {
  opacity: 1;
  transform: translateY(0) scaleY(1);
}

.dd__opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.85rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  font-size: 0.95rem;
  transition: background 0.15s var(--ease), color 0.15s;
}

.dd__opt:hover,
.dd__opt.is-active {
  background: rgba(233, 169, 63, 0.12);
  color: var(--ink-1);
}

.dd__opt.is-selected {
  color: var(--gold-hot);
  position: relative;
}

.dd__opt.is-selected::after {
  content: '✓';
  float: right;
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .dd__panel { transition: opacity 0.01ms; transform: none; }
}

.field-hint { font-size: var(--fs-xs); color: var(--ink-3); margin-top: 0.45rem; }

/* segmented choice */
.choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.6em 1em;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  background: rgba(255, 233, 205, 0.02);
}

.choice label:hover { border-color: var(--line-strong); color: var(--ink-1); }

.choice input:checked + label {
  border-color: var(--gold);
  background: rgba(233, 169, 63, 0.14);
  color: var(--gold-hot);
}

.choice input:focus-visible + label { outline: 2px solid var(--gold-hot); outline-offset: 2px; }

/* =================================================== drawer (cart) */
.drawer-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(4, 2, 6, 0.72);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.drawer-scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 90;
  width: min(430px, 100%);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #150e19, #0a070d);
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform 0.5s var(--ease-out);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, 0.95);
}

.drawer.is-open { transform: none; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 1.25rem 1.4rem;
  border-bottom: 1px solid var(--line-soft);
}

.drawer__title {
  font-family: var(--font-roman);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-1);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 1.1rem;
  line-height: 1;
  transition: all 0.25s var(--ease);
}

.icon-btn:hover { color: var(--ink-1); border-color: var(--line-strong); background: rgba(255, 233, 205, 0.06); }

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.drawer__foot {
  padding: 1.2rem 1.4rem calc(1.2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
  background: rgba(8, 5, 11, 0.7);
}

.drawer__empty {
  margin: auto;
  text-align: center;
  color: var(--ink-3);
  padding: 2rem 0;
}

.drawer__empty .brand__mark {
  width: 44px; height: 44px;
  margin: 0 auto 1rem;
  opacity: 0.55;
}

/* cart line */
.line-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}

.line-item__img {
  width: 62px;
  height: 62px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--void-2);
  border: 1px solid var(--line-soft);
}

.line-item__name {
  color: var(--ink-1);
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.2;
}

.line-item__meta { font-size: var(--fs-xs); color: var(--ink-3); }

.line-item__price { color: var(--gold-hot); font-size: 0.88rem; font-variant-numeric: tabular-nums; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.qty button {
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.qty button:hover { background: rgba(233, 169, 63, 0.14); color: var(--gold-hot); }

.qty output {
  min-width: 2ch;
  text-align: center;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-1);
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.total-row__label { font-family: var(--font-roman); font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.total-row__value { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink-1); font-variant-numeric: tabular-nums; }

/* =================================================== toast */
.toast-stack {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(420px, calc(100% - 2rem));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 0.85rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(18, 12, 22, 0.96);
  backdrop-filter: blur(12px);
  color: var(--ink-1);
  font-size: 0.9rem;
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  animation: toast-in 0.45s var(--ease-out);
}

.toast--error { border-color: rgba(208, 82, 28, 0.6); }
.toast--ok { border-color: var(--line-strong); }
.toast.is-out { animation: toast-out 0.35s var(--ease) forwards; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(14px); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(10px); }
}

/* =================================================== footer */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: var(--s-7) var(--s-6);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--s-6);
  align-items: start;
}

.site-footer h4 {
  font-family: var(--font-roman);
  font-size: var(--fs-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-3);
}

.site-footer ul { display: grid; gap: 0.55rem; }
.site-footer li a { color: var(--ink-2); font-size: 0.9rem; }
.site-footer li a:hover { color: var(--gold-hot); }

.site-footer__base {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  color: var(--ink-4);
  font-size: var(--fs-xs);
}

@media (max-width: 780px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ===================================================================
   MOBILE
   Phones get fingers, not cursors. Everything tappable is brought up to
   a ~44px target, and the layouts that only make sense side by side are
   stacked properly instead of squeezed.
   =================================================================== */
@media (max-width: 900px) {
  /* --- legibility ------------------------------------------------- */
  /* the slide-down menu is the primary navigation; 12.8px was too small */
  .nav-links a {
    font-size: 1rem;
    letter-spacing: 0.14em;
    min-height: 52px;
    display: flex;
    align-items: center;
  }

  /* price badges carry meaning, so they must not be the smallest thing
     on the screen */
  .cost { font-size: 0.78rem; }
  .cost svg { width: 14px; height: 14px; }
  .nav-pill__count { font-size: 0.75rem; }

  /* the logo shrinks to the seal alone - keep a full-size hit area */
  .brand {
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: flex-start;
  }

  .site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  /* small tracked labels sit right on the edge of legible on a phone */
  .eyebrow,
  .balance__label,
  .info-strip h4,
  .site-footer h4 { font-size: 0.82rem; }

  /* standalone contact links in the footer are not mid-sentence text */
  .site-footer__brand-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  /* --- tap targets ------------------------------------------------ */
  .btn {
    min-height: 46px;
    padding-inline: 1.5rem;
  }

  .btn--sm {
    min-height: 42px;
    padding-inline: 1.25rem;
    font-size: 0.76rem;
  }

  .nav-pill {
    min-height: 42px;
    padding-inline: 0.8rem;
  }

  .nav-toggle {
    width: 46px;
    height: 46px;
  }

  .icon-btn {
    width: 44px;
    height: 44px;
  }

  .brand__mark {
    width: 30px;
    height: 30px;
  }

  /* footer links were 17px tall - unhittable */
  .site-footer li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.95rem;
  }

  .site-footer ul { gap: 0; }

  .site-footer__base { font-size: 0.8rem; line-height: 1.7; }

  /* --- cart drawer ------------------------------------------------ */
  .drawer { width: 100%; }

  .qty button { width: 38px; height: 38px; }

  .line-item {
    grid-template-columns: 56px 1fr;
    grid-template-areas: 'img body' 'qty qty';
    gap: 0.8rem;
  }

  .line-item__img { grid-area: img; }
  .line-item > div:nth-child(2) { grid-area: body; }
  .line-item > div:last-child {
    grid-area: qty;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* --- forms ------------------------------------------------------ */
  .input,
  .dd__btn {
    min-height: 48px;
    font-size: 16px;   /* anything smaller makes iOS zoom on focus */
  }

  .dd__opt { min-height: 46px; display: flex; align-items: center; }

  .choice label { min-height: 44px; }
}

/* =================================================== misc */
.notice {
  display: flex;
  gap: 0.8rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(233, 169, 63, 0.06);
  font-size: 0.9rem;
  color: var(--ink-2);
}

.notice strong { color: var(--ink-1); font-weight: 600; }
.notice--warn { border-color: rgba(208, 82, 28, 0.45); background: rgba(208, 82, 28, 0.08); }

.spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

[hidden] { display: none !important; }
