/* =============================================================
   Webber Academy Class of 2027 Graduation Silent Auction
   ============================================================= */

:root {
  /* School colours (from webberacademy.ca) */
  --navy: #113E5D;
  --navy-deep: #0B2A40;
  --navy-ink: #0D2333;
  --red: #D04A3B;
  --red-text: #B23A2D;      /* darker red for readable text on light */
  /* Graduation accent */
  --gold: #C9A55A;
  --gold-light: #E8D39C;
  /* Neutrals */
  --paper: #F3F5F7;
  --white: #FFFFFF;
  --mist: #DCE3EA;
  --muted: #536676;
  --on-dark: #EEF2F5;
  --on-dark-muted: #A9BACA;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(17, 62, 93, 0.06), 0 12px 32px -18px rgba(17, 62, 93, 0.35);
  --shadow-lift: 0 2px 4px rgba(17, 62, 93, 0.06), 0 22px 44px -20px rgba(17, 62, 93, 0.45);

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy-ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.1; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--gold); color: var(--navy-deep); font-weight: 600; text-decoration: none;
  transition: top .3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.6rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; letter-spacing: .01em;
  transition: transform .4s var(--ease), background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #B8402F; }
.btn-ghost { border: 1px solid rgba(232, 211, 156, .45); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ---------- Closed banner ---------- */
.closed-banner {
  background: var(--red); color: var(--white); text-align: center;
  padding: .9rem var(--gutter); font-weight: 500;
}
.closed-banner p { max-width: 70ch; margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column;
  color: var(--on-dark);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(17, 62, 93, .95) 0%, rgba(11, 42, 64, 0) 70%),
    radial-gradient(60% 50% at 85% 100%, rgba(208, 74, 59, .14) 0%, rgba(11, 42, 64, 0) 70%),
    var(--navy-deep);
}
.hero::after {               /* fine double rule framing the hero, like an invitation */
  content: ""; position: absolute; inset: clamp(.75rem, 2vw, 1.5rem); z-index: -1;
  border: 1px solid rgba(201, 165, 90, .28); border-radius: 22px; pointer-events: none;
  box-shadow: inset 0 0 0 5px rgba(11, 42, 64, 1), inset 0 0 0 6px rgba(201, 165, 90, .14);
}

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) calc(var(--gutter) + .75rem) 0;
}
.wordmark {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 500; font-style: italic;
  text-decoration: none; letter-spacing: .01em; color: var(--on-dark);
}
.topnav { display: flex; gap: clamp(.75rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; }
.topnav a {
  text-decoration: none; font-size: .95rem; color: var(--on-dark-muted);
  padding: .5rem .1rem; transition: color .3s var(--ease);
}
.topnav a:hover { color: var(--gold-light); }

.hero-inner {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 3rem var(--gutter) clamp(4rem, 9vw, 6rem);
}
.hero-heading { display: flex; flex-direction: column; align-items: center; font-weight: 400; }
.hero-class {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--gold-light);
}
.hero-year {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(7rem, 26vw, 17rem); line-height: .86; letter-spacing: -.035em;
  font-variation-settings: "opsz" 96;
  background: linear-gradient(176deg, #F4E6BF 8%, #D9B970 46%, #A9823A 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.hero-title {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.8rem, 4.4vw, 3.25rem); letter-spacing: -.01em; color: var(--white);
}
.hero-lede {
  margin-top: 1.25rem; max-width: 46ch;
  color: var(--on-dark-muted); font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.countdown { margin-top: clamp(2rem, 4vw, 2.75rem); }
.countdown-label { font-size: .95rem; color: var(--on-dark-muted); }
.countdown-units { display: flex; justify-content: center; gap: clamp(.5rem, 2vw, 1rem); margin-top: .75rem; }
.cd-unit {
  display: flex; flex-direction: column; align-items: center;
  min-width: clamp(4.25rem, 12vw, 5.5rem); padding: .8rem .5rem .65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(201, 165, 90, .22), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.cd-num {
  font-family: var(--serif); font-size: clamp(1.75rem, 4.5vw, 2.5rem); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums; color: var(--white);
}
.cd-name { margin-top: .35rem; font-size: .8rem; color: var(--on-dark-muted); }
.countdown-tba {
  margin-top: .5rem; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.75rem); color: var(--gold-light);
}

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: clamp(2rem, 4vw, 2.75rem); }

/* Streamer confetti: one burst on load */
.confetti { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.confetti i {
  position: absolute; top: -8vh; display: block;
  width: var(--w, 6px); height: var(--h, 18px); border-radius: 2px;
  background: var(--c, var(--gold)); opacity: 0;
  animation: fall var(--dur, 4s) var(--delay, 0s) cubic-bezier(.25, .46, .45, .94) forwards;
}
@keyframes fall {
  0%   { opacity: 0; transform: translate3d(0, 0, 0) rotate(var(--r0, 0deg)); }
  8%   { opacity: .95; }
  75%  { opacity: .85; }
  100% { opacity: 0; transform: translate3d(var(--dx, 0px), 112vh, 0) rotate(var(--r1, 360deg)); }
}

/* ---------- Info (details + how to bid) ---------- */
.info { padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); }
.info-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; gap: clamp(3rem, 6vw, 6rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .info-grid { grid-template-columns: 5fr 7fr; } }

.info-block h2 { font-size: clamp(2rem, 4vw, 2.75rem); color: var(--navy); }
.info-block { scroll-margin-top: 2rem; }

.facts { margin: 2rem 0 0; display: grid; gap: 0; }
.facts > div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: baseline;
  padding: 1rem 0; border-top: 1px solid var(--mist);
}
.facts > div:last-child { border-bottom: 1px solid var(--mist); }
.facts dt { font-size: .95rem; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; color: var(--navy-ink); }

.steps { list-style: none; counter-reset: step; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.75rem; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; row-gap: 2.25rem; } }
.steps li { counter-increment: step; position: relative; padding-left: 3.25rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.15rem;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
  color: var(--white); background: var(--navy);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(201, 165, 90, .6);
}
.steps h3 { font-size: 1.3rem; color: var(--navy-ink); }
.steps p { margin-top: .4rem; color: var(--muted); max-width: 42ch; }

.logistics {
  margin-top: 2.5rem; padding: 1.25rem 1.5rem; border-radius: var(--radius-sm);
  background: var(--white); box-shadow: var(--shadow);
  display: grid; gap: .5rem; color: var(--muted);
}
.logistics strong { color: var(--navy-ink); font-weight: 600; }

/* ---------- Catalog ---------- */
.catalog-section {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem) var(--gutter) clamp(5rem, 10vw, 8rem);
  outline: none; scroll-margin-top: 0;
}
.catalog-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; }
.catalog-head h2 { font-size: clamp(2.5rem, 6vw, 4rem); color: var(--navy); letter-spacing: -.015em; }
.catalog-head p { color: var(--muted); }

.toolbar {
  position: sticky; top: 0; z-index: 20;
  margin: 1.75rem calc(-1 * var(--gutter)) 0; padding: .9rem var(--gutter) .75rem;
  background: rgba(243, 245, 247, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.toolbar.is-stuck { border-bottom-color: var(--mist); }

.toolbar-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

.search {
  flex: 1 1 16rem; position: relative; display: flex; align-items: center;
}
.search svg {
  position: absolute; left: 1rem; width: 1.15rem; height: 1.15rem;
  fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linecap: round; pointer-events: none;
}
.search input {
  width: 100%; min-height: 48px; padding: .7rem 1rem .7rem 2.75rem;
  border: 0; border-radius: 999px; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--mist);
  transition: box-shadow .3s var(--ease);
}
.search input::placeholder { color: #7D8E9C; }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--navy); }

.sort select {
  min-height: 48px; padding: .7rem 2.5rem .7rem 1.1rem; border: 0; border-radius: 999px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23536676' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right .9rem center / 1.1rem;
  box-shadow: inset 0 0 0 1px var(--mist);
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.sort select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.saved-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 48px; padding: .6rem 1.1rem; border: 0; border-radius: 999px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--mist); font-weight: 500;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.saved-toggle svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--red); stroke-width: 1.7; }
.saved-count {
  min-width: 1.5rem; padding: 0 .4rem; border-radius: 999px; text-align: center;
  font-size: .8rem; line-height: 1.5rem; background: var(--paper);
}
.saved-toggle[aria-pressed="true"] { background: var(--navy); color: var(--white); box-shadow: none; }
.saved-toggle[aria-pressed="true"] svg { fill: var(--red); stroke: var(--red); }
.saved-toggle[aria-pressed="true"] .saved-count { background: rgba(255, 255, 255, .15); }

.view-toggle {
  display: inline-flex; padding: 4px; border-radius: 999px; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--mist);
}
.view-toggle button {
  width: 40px; height: 40px; border: 0; border-radius: 999px; background: transparent;
  display: grid; place-items: center; color: var(--muted);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.view-toggle svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.view-toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.chips {
  display: flex; gap: .5rem; margin-top: .75rem; padding-bottom: .25rem;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 40px; padding: .45rem 1rem; border: 0; border-radius: 999px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--mist); color: var(--navy-ink);
  font-size: .95rem; white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); box-shadow: none; }
.chip-count { margin-left: .35rem; opacity: .6; font-size: .85em; }

.results-count { margin: 1.25rem 0 1rem; font-size: .95rem; color: var(--muted); }

.catalog {
  display: grid; gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  grid-auto-flow: dense;
}

/* Item card */
.item {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; scroll-margin-top: 9.5rem;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
@media (hover: hover) {
  .item:not(.is-open):hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
}

.item-media { position: relative; background: var(--navy); }
.gallery-main { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: .4rem;
  background:
    radial-gradient(90% 90% at 30% 20%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 60%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--gold-light);
}
.placeholder svg { width: 2.5rem; height: 2.5rem; fill: none; stroke: currentColor; stroke-width: 1.1; opacity: .7; }
.placeholder span { font-family: var(--serif); font-style: italic; font-size: 1.15rem; opacity: .85; }

.gallery-thumbs { display: none; }

.fav {
  position: absolute; top: .75rem; right: .75rem; z-index: 3;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px -6px rgba(11, 42, 64, .5);
  transition: transform .4s var(--ease);
}
.fav svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: var(--red-text); stroke-width: 1.7; transition: fill .3s var(--ease); }
.fav:active { transform: scale(.88); }
.fav[aria-pressed="true"] svg { fill: var(--red); stroke: var(--red); }
.fav.pop svg { animation: pop .45s var(--ease-soft); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }

.item-body { display: flex; flex-direction: column; flex: 1; padding: 1.1rem 1.25rem 1.3rem; }
.item-no { font-family: var(--serif); font-style: italic; color: var(--red-text); font-size: 1rem; }
.item-title { margin-top: .2rem; font-size: 1.4rem; font-weight: 500; line-height: 1.2; color: var(--navy-ink); }
.item-toggle {
  all: unset; cursor: pointer; text-align: left;
}
.item-toggle::after {          /* whole card is clickable when closed */
  content: ""; position: absolute; inset: 0; z-index: 2;
}
.item-toggle:focus-visible { outline: none; }
.item:has(.item-toggle:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.item-donor, .item-value { margin-top: .35rem; color: var(--muted); font-size: .95rem; }
.item-donor + .item-value { margin-top: .1rem; }
.item-bid {
  margin-top: auto; padding-top: 1rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
}
.item-bid-label { font-size: .9rem; color: var(--muted); }
.item-bid-amount { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--navy); font-variant-numeric: lining-nums; }

.item-details { display: none; }

/* ---------- Expanded item ---------- */
.item.is-open {
  grid-column: 1 / -1;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(201, 165, 90, .5);
}
.item.is-open .item-toggle::after { content: none; }
.item.is-open .item-details { display: block; animation: reveal .55s var(--ease-soft) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.item.is-open .gallery-thumbs {
  display: flex; gap: .5rem; padding: .6rem; background: var(--navy-deep); overflow-x: auto;
}
.thumb {
  flex: none; width: 64px; height: 48px; padding: 0; border: 0; border-radius: 8px; overflow: hidden;
  opacity: .55; box-shadow: 0 0 0 2px transparent;
  transition: opacity .3s var(--ease), box-shadow .3s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--gold); }

@media (min-width: 820px) {
  .item.is-open { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .item.is-open { grid-template-rows: auto 1fr; }
  .item.is-open .item-media { display: flex; flex-direction: column; grid-column: 1; grid-row: 1 / span 2; }
  .item.is-open .item-body { grid-column: 2; grid-row: 1; }
  .item.is-open .gallery-main { flex: 1; aspect-ratio: auto; min-height: 360px; }
  .item.is-open .item-body { padding: 2rem 2.25rem 1rem; }
  .item.is-open .item-details { padding: 0 2.25rem 2.25rem; grid-column: 2; }
  .item.is-open .item-text { grid-column: 2; }
}
.item.is-open .item-title { font-size: clamp(1.75rem, 3vw, 2.4rem); padding-right: 3rem; }
.item.is-open .item-bid { margin-top: 1.25rem; justify-content: flex-start; gap: .75rem; }
.item.is-open .item-bid-amount { font-size: 2rem; }

.item-details { padding: 0 1.25rem 1.5rem; }
.item-desc { color: var(--navy-ink); max-width: 62ch; white-space: pre-line; }
.item-facts { margin: 1.5rem 0 0; display: grid; }
.item-facts > div {
  display: grid; grid-template-columns: minmax(7rem, 38%) 1fr; gap: 1rem;
  padding: .7rem 0; border-top: 1px solid var(--mist);
}
.item-facts > div:last-child { border-bottom: 1px solid var(--mist); }
.item-facts dt { color: var(--muted); font-size: .95rem; }
.item-facts dd { margin: 0; font-weight: 500; }
.item-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.item-actions button {
  min-height: 44px; padding: .55rem 1.15rem; border: 0; border-radius: 999px;
  background: var(--paper); color: var(--navy-ink); font-weight: 500;
  transition: background-color .3s var(--ease);
}
.item-actions button:hover { background: var(--mist); }
.item-actions .close-btn { background: var(--navy); color: var(--white); }
.item-actions .close-btn:hover { background: var(--navy-deep); }

/* ---------- List view ---------- */
.catalog.is-list { grid-template-columns: 1fr; gap: .75rem; }
.catalog.is-list .item:not(.is-open) {
  flex-direction: row; align-items: center; border-radius: var(--radius-sm);
}
.catalog.is-list .item:not(.is-open) .item-media {
  flex: none; width: 92px; margin: .6rem; border-radius: 10px; overflow: hidden;
}
.catalog.is-list .item:not(.is-open) .gallery-main { aspect-ratio: 1; }
.catalog.is-list .item:not(.is-open) .placeholder svg { width: 1.6rem; height: 1.6rem; }
.catalog.is-list .item:not(.is-open) .placeholder span { display: none; }
.catalog.is-list .item:not(.is-open) .fav {
  top: 50%; right: .75rem; transform: translateY(-50%); background: var(--paper); box-shadow: none;
}
.catalog.is-list .item:not(.is-open) .fav:active { transform: translateY(-50%) scale(.88); }
.catalog.is-list .item:not(.is-open) .item-body {
  padding: .6rem 4.25rem .6rem .25rem;
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.catalog.is-list .item:not(.is-open) .item-title { font-size: 1.15rem; }
.catalog.is-list .item:not(.is-open) .item-bid { padding-top: .3rem; justify-content: flex-start; gap: .5rem; }
.catalog.is-list .item:not(.is-open) .item-bid-amount { font-size: 1.15rem; }
@media (min-width: 720px) {
  .catalog.is-list .item:not(.is-open) .item-body {
    grid-template-columns: 1fr auto; align-items: center; column-gap: 2rem;
  }
  .catalog.is-list .item:not(.is-open) .item-text { grid-column: 1; }
  .catalog.is-list .item:not(.is-open) .item-bid { grid-column: 2; grid-row: 1; padding: 0; flex-direction: column; align-items: flex-end; gap: 0; }
}
@media (hover: hover) {
  .catalog.is-list .item:not(.is-open):hover { transform: translateX(2px); }
}

/* ---------- Empty and loading ---------- */
.empty {
  padding: 4rem 1.5rem; text-align: center; border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow);
}
.empty h3 { font-size: 1.6rem; color: var(--navy); }
.empty p { margin-top: .5rem; color: var(--muted); }
.empty button {
  margin-top: 1.25rem; min-height: 44px; padding: .6rem 1.3rem; border: 0; border-radius: 999px;
  background: var(--navy); color: var(--white); font-weight: 600;
}

.skeleton { min-height: 340px; background: linear-gradient(100deg, #fff 30%, #EEF2F5 50%, #fff 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* ---------- Footer ---------- */
.footer {
  padding: clamp(3.5rem, 7vw, 5rem) var(--gutter);
  background: var(--navy-deep); color: var(--on-dark-muted); text-align: center;
  display: grid; gap: .6rem;
}
.footer-mark { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold-light); }
.footer-small { font-size: .9rem; opacity: .8; }

/* ---------- Small screens ---------- */
.topnav a, .wordmark { white-space: nowrap; }
@media (max-width: 560px) {
  .topnav li:first-child { display: none; }
  .wordmark { font-size: 1.05rem; }
  .topnav a { font-size: .9rem; }
  .saved-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .saved-toggle { padding-inline: .9rem; }
  .toolbar-row .search { flex-basis: 100%; }
  .sort { flex: 1; }
  .sort select { width: 100%; }
  .facts > div { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .confetti { display: none; }
}

/* ---------- Closed state ---------- */
body.is-closed .countdown-label { display: none; }
