/* Pop's Comics & Collectibles — site styles
   Mobile-first: base rules target phones; wider layouts are layered on with
   min-width breakpoints. Dark "Bronze Age Modern + Dusty Blue" theme.
   The five --brand-* colors come from Shop Settings (js/site.js applyTheme sets them);
   every other color is derived from them below, or is a fixed semantic color (links, errors, success).
   The staff admin has its own stylesheet (admin/base.css + admin/admin.css). */

/* Fonts are served from this site (fonts/), Latin subset only, so no request goes to Google before the page can draw. */
@font-face { font-family: 'Archivo Black'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/archivo-black-latin.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(../fonts/archivo-latin.woff2) format('woff2'); }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/source-sans-3-latin.woff2) format('woff2'); }

:root {
  color-scheme: dark;

  /* Shop Settings → Logo & colors. These are the defaults used if settings can't be read. */
  --brand-primary: #982c21;   /* buttons (white text on this is 7:1) */
  --brand-accent: #e7b84b;    /* gold: banner, badges, highlights */
  --brand-ink: #f4f0ea;       /* text */
  --brand-paper: #121212;     /* page background */
  --brand-footer: #121212;
  --on-primary: #fff;         /* text on the main color; applyTheme switches it to dark for light colors */
  --footer-text: var(--muted);
  --footer-heading: var(--brand-accent);
  --footer-link: var(--teal);

  --ink: var(--brand-ink);
  --paper: var(--brand-paper);
  --gold: var(--brand-accent);
  --red-btn: var(--brand-primary);
  --red-btn-hover: color-mix(in srgb, var(--brand-primary) 85%, black);
  --red: color-mix(in srgb, var(--brand-primary) 55%, #ff5a3d);   /* card top rule */

  /* Neutrals: the text color mixed into the page background */
  --surface: color-mix(in srgb, var(--paper), var(--ink) 4%);
  --raised: color-mix(in srgb, var(--paper), var(--ink) 9%);
  --line: color-mix(in srgb, var(--paper), var(--ink) 17%);        /* soft divider */
  --field-line: color-mix(in srgb, var(--paper), var(--ink) 52%);  /* form-field outline, >=3:1 for accessibility */
  --muted: color-mix(in srgb, var(--paper), var(--ink) 76%);

  /* Fixed colors: links and focus, plus feedback and a cream for headings */
  --cream: #e9e1d3;
  --teal: #91bbdd;
  --teal-hover: #a5c9e5;
  --teal-dark: #182630;
  --error: #ff9585;
  --ok: #9bd7ae;
  --focus: var(--teal);

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-heading: 'Archivo', Arial, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --radius: 5px;
  --border: 1px solid var(--line);
  --shadow: none;
  --shadow-lg: 0 10px 40px rgb(0 0 0 / .6);
  --field-h: 46px;
  --gutter: 16px;
  --max: 1180px;

  /* Type roles below the page title (h1) and section heading (h2): use these instead of one-off sizes. */
  --fs-title: 1.25rem;   /* panel, month, post and dialog titles */
  --fs-sub: 1.1rem;      /* sub-headings: h3, group headings, footer headings */
  --fs-compact: 1rem;    /* titles inside dense lists */
  --space-block: 24px;   /* gap under a page title block */
}
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
  margin: 0;
  font: 16px/1.55 var(--font-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 18px;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration-thickness: 2px; color: var(--teal); text-underline-offset: 5px; }
a:hover { color: var(--teal-hover); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(34px, 5vw, 64px); line-height: .96; letter-spacing: -.045em; text-transform: uppercase; margin: 14px 0 16px; }
h2 { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; line-height: 1.2; letter-spacing: 0; }
h3 { font-size: var(--fs-sub); font-family: var(--font-heading); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 32px; }
.section--alt { background: var(--surface); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: var(--space-block); }
.section__head h1, .section__head h2 { margin: 0; }
.section__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; }
.lede { font-size: 1.1rem; max-width: 84ch; margin-bottom: 4em; color: var(--muted); }
.lede > :last-child, .page-body > :last-child { margin-bottom: 0; }
/* Staff-edited rich text (admin WYSIWYG): a quote block shows as a callout box. */
.lede blockquote, .page-body blockquote, #faq-list blockquote {
  margin: 1em 0;
  padding: 10px 12px;
  font-weight: 700;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--paper);
}
.page-body { margin-bottom: 20px; }
.page-body ul, .page-body ol { padding-left: 1.4em; }
.page-body li { margin-bottom: .35em; }
.prose { max-width: 960px; }
.prose h2 { margin-top: 1.5em; }
/* Formatting from the admin editor (page text, news, events, FAQ) */
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-align-justify { text-align: justify; }
.ql-indent-1 { padding-left: 2em; }
.ql-indent-2 { padding-left: 4em; }
.ql-indent-3 { padding-left: 6em; }
.prose img, [data-content] img, #faq-list img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose .ql-align-center img, [data-content] .ql-align-center img { margin-inline: auto; }
iframe.ql-video { display: block; width: 100%; max-width: 640px; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin: 1em 0; }
.ql-align-center iframe.ql-video, iframe.ql-video.ql-align-center { margin-inline: auto; }
.prose hr, [data-content] hr, #faq-list hr { border: 0; border-top: 2px solid var(--line); margin: 1.5em 0; }
.prose h4 { font-size: 1rem; margin-top: 1.2em; }
/* Image alignment and size set in the editor (width is an inline percentage) */
.img-align-left { float: left; margin: .3em 1.2em .8em 0; }
.img-align-right { float: right; margin: .3em 0 .8em 1.2em; }
.img-align-center { display: block; margin: 1em auto; }
.prose::after, [data-content]::after, #faq-list details > div::after, .ql-editor::after { content: ''; display: table; clear: both; }
.prose h2, .prose h3, .prose h4, .prose hr, .prose table, iframe.ql-video { clear: both; }
@media (max-width: 600px) {
  /* Phones: no text wrapping beside pictures, and small pictures get room to be seen. */
  .prose img, [data-content] img, #faq-list img { float: none; display: block; margin: 1em auto; min-width: min(60%, 100%); }
}
/* Tables from the editor */
.prose table, [data-content] table, #faq-list table { border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose td, .prose th, [data-content] td, #faq-list td { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; background: var(--surface); }
.prose tr:first-child td { font-weight: 700; background: var(--raised); }
@media (max-width: 600px) {
  .prose table, [data-content] table, #faq-list table { display: block; overflow-x: auto; max-width: 100%; }
}
.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: 8px;
  top: -60px;
  padding: 8px 12px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  outline: 3px solid var(--teal);
}
.skip-link:focus { top: 8px; }
/* Bar at the very top: announcements on the left, site search on the right. */
.topbar { background: var(--red-btn-hover); color: var(--on-primary); border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 70%, black); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-block: 8px; }
.topbar__notice { flex: 1 1 240px; margin: 0; line-height: 1.3; color: var(--on-primary); font-size: .85rem; }
.topbar__notice a { text-decoration: underline; color: inherit; font-weight: 700; }
.topbar__notice strong { text-transform: uppercase; font-size: .75rem; color: inherit; letter-spacing: .1em; }
.topbar__search { display: flex; align-items: stretch; gap: 4px; margin-left: auto; flex: 0 1 220px; }
.topbar__search input {
  flex: 1;
  min-width: 0;
  height: 32px;
  min-height: 0;
  padding: 0 10px;
  font: inherit;
  font-size: .9rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--field-line);
  border-radius: 9px;
}
.topbar__btn {
  flex: none;
  width: 32px;
  height: 32px;
  min-height: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  background: var(--gold);
  color: var(--paper);
  border-radius: 9px;
}
.topbar__btn:hover { filter: none; background: color-mix(in srgb, var(--gold), white 25%); }
.demo-banner { margin: 0; padding: 6px var(--gutter); font-size: .85rem; text-align: center; background: var(--gold); color: var(--paper); }
/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .08s, box-shadow .08s, filter .08s;
  min-height: 46px;
  padding: 10px 21px;
  border: 1px solid transparent;
  border-radius: 3px;
  box-shadow: none;
  background: var(--teal);
  color: var(--paper);
  font: 700 14px/1 var(--font-body);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.btn:hover { background: var(--teal-hover); color: var(--paper); transform: none; filter: none; box-shadow: none; }
.btn:active { transform: none; box-shadow: none; }
.btn--primary { background: var(--red-btn); color: var(--on-primary); }
.btn--primary:hover { background: var(--red-btn-hover); color: var(--on-primary); }
.btn--ghost { background: transparent; color: var(--gold); border-color: var(--gold); box-shadow: none; }
.btn--ghost:hover { background: var(--raised); color: var(--gold); box-shadow: none; }
.btn[disabled] {
  cursor: not-allowed;
  transform: none;
  opacity: 1;
  background: var(--raised);
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
}
label, .label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 7px; }
input, select, textarea {
  width: 100%;
  padding: 0 12px;
  font: inherit;
  line-height: 1.2;
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--paper);
  color: var(--ink);
  border: 1px solid var(--field-line);
  border-radius: 9px;
}
/* Text inputs, search, number and select all share one height. */
input, select { height: var(--field-h); }
textarea { padding: 10px 12px; min-height: calc(var(--field-h) * 2); }
input[type='search']::-webkit-search-decoration { -webkit-appearance: none; }
select {
  padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23444' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
input:hover, select:hover, textarea:hover { border-color: var(--teal); }
input[type='checkbox'], input[type='radio'] {
  -webkit-appearance: auto;
  appearance: auto;
  margin: 0;
  padding: 0;
  flex: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  accent-color: var(--teal);
}
.field { margin-bottom: 14px; }
.field__hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-error { font-weight: 700; color: var(--error); }
/* ---------- Header / nav ---------- */
/* Until the script fills the header, hold its usual height (with the search bar, and the announcement wrapped on phones). */
#site-header:empty { min-height: 126px; }
@media (max-width: 520px) { #site-header:empty { min-height: 165px; } }
#site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); box-shadow: none; border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand__name { font-family: var(--font-display); line-height: 1.1; font-size: 1.5rem; letter-spacing: -1px; color: var(--cream); }
.brand__logo { max-height: 48px; width: auto; }
.nav-toggle {
  width: 44px;
  height: 44px;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--gold);
  border-radius: 3px;
}
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  position: relative;
  transition: transform .15s;
  background: var(--paper);
}
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ''; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-open .nav-toggle__icon { background: transparent; }
.nav-open .nav-toggle__icon::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__icon::after { transform: translateY(-6px) rotate(-45deg); }
.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  box-shadow: 0 12px 24px rgb(0 0 0 / .5);
  border-bottom: 1px solid var(--line);
}
.nav-open .nav { display: block; }
.nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.nav a {
  display: block;
  padding: 12px 4px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  color: var(--cream);
  font-size: 14px;
}
.nav a[aria-current='page'] { color: var(--gold); text-decoration: underline; text-decoration-thickness: 2px; }
.nav-badge {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 .45em;
  border-radius: 999px;
  font-size: .8rem;
  line-height: 1.5em;
  text-align: center;
  vertical-align: 1px;
  background: var(--red-btn);
  color: var(--on-primary);
}
.nav a[aria-current='page'] .nav-badge { background: var(--gold); color: var(--paper); }
/* Eight menu links plus the logo need ~1000px; below 1100px the menu stays behind the button. */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  #site-header { box-shadow: none; }
  .nav { display: block; position: static; background: none; box-shadow: none; border: 0; }
  .nav ul { display: flex; gap: 4px; padding: 0; }
  .nav a { padding: 8px 10px; border: 0; min-height: 44px; display: inline-flex; align-items: center; border-radius: 0; }
  .nav a[aria-current='page'] { background: none; color: var(--gold); }
}
/* ---------- Footer ---------- */
#site-footer { padding-top: 32px; background: var(--brand-footer); border-top: 1px solid var(--line); color: var(--footer-text); }
#site-footer a { color: var(--footer-link); }
#site-footer a:hover { color: var(--teal-hover); }
.footer__grid { display: grid; gap: 24px; }
.footer__heading { font-family: var(--font-heading); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--footer-heading); }
.footer__heading--next { margin-top: 20px; }
.footer__links { list-style: none; padding: 0; margin: 0 0 12px; columns: 2; column-gap: 24px; }
.footer__links li { margin-bottom: 6px; break-inside: avoid; }
.footer__legal { padding-block: 20px; margin: 0 auto; text-align: center; font-size: 13px; }
address { font-style: normal; margin-bottom: 1em; }
/* Social icons (footer, Visit page): 44px tap targets, current text color. */
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 12px 0; }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: inherit;
  transition: background .15s, color .15s;
  background: rgb(255 255 255 / .08);
}
.socials a:hover { background: var(--red-btn); color: var(--on-primary); }
.socials svg { width: 20px; height: 20px; fill: currentColor; }
/* Footer: plain icons (no circles), row pulled left so the first glyph lines up
   with the text above; each link keeps its 44px tap area. */
#site-footer .socials { gap: 0; margin-left: -12px; }
#site-footer .socials a { background: none; }
#site-footer .socials a:hover { background: none; color: var(--teal-hover); }
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; max-width: 280px; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
/* ---------- Hero ---------- */
.hero {
  padding-block: 64px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(color-mix(in srgb, var(--paper) 88%, transparent), color-mix(in srgb, var(--paper) 88%, transparent)),
    radial-gradient(#ffffff14 1px, transparent 1px) 0 0 / 7px 7px,
    var(--paper);
}
/* Banner photo: a dark overlay keeps the headline readable on any picture. */
.hero.hero--photo {
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--paper) 92%, transparent), color-mix(in srgb, var(--paper) 78%, transparent) 60%, color-mix(in srgb, var(--paper) 60%, transparent)),
    var(--hero-image) center / cover no-repeat,
    var(--paper);
}
.hero h1 { font-size: clamp(34px, 5vw, 64px); margin: 0 0 16px; text-shadow: none; }
.hero h1 span { color: var(--gold); }
@media (min-width: 800px) { .hero, .hero.hero--photo { padding-block: 96px; } }
.hero p { font-size: 17px; max-width: 620px; color: var(--cream); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
/* A grid still waiting for its titles shows one pulsing block roughly a screen tall, so the content below
   isn't pushed around when the cards arrive. */
[data-page="home"] .grid:empty::before,
#results:empty::before,
#series-list:empty::before {
  content: '';
  grid-column: 1 / -1;
  min-height: 640px;
  border-radius: var(--radius);
  background: var(--raised);
  animation: skeleton-pulse 1.2s ease-in-out infinite alternate;
}
#series-list:empty::before { min-height: 700px; }
#results-count { min-height: 1.6em; }
@keyframes skeleton-pulse { from { opacity: .45; } to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { [data-page="home"] .grid:empty::before, #results:empty::before, #series-list:empty::before { animation: none; } }
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 800px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
/* Desktop: 6 across. Cards are ~175px wide here, so tighten their contents. */
@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .grid .card__body { padding: 10px; gap: 4px; }
  .grid .card__title { font-size: .9rem; }
  .grid .card__variant, .grid .card__meta, .grid .foc { font-size: .75rem; }
  .grid .card .btn { font-size: .85rem; padding: 8px 10px; min-height: 40px; }
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 5px;
  box-shadow: none;
}
.card__body { padding: 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font: 700 1rem/1.25 var(--font-body); margin: 0; font-family: var(--font-heading); font-weight: 700; }
.card__meta { font-size: .85rem; margin: 0; color: var(--muted); }
.card__variant { font-size: .8rem; font-weight: 600; margin: -2px 0 0; }
.show-more { display: flex; margin: 24px auto 0; }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.card .btn { width: 100%; }
.card__media { position: relative; }
.card__media .cover { display: block; }
.card__media .cover--placeholder { display: flex; }
/* Collector chips (1st Appearance, Key Issue, …) */
.chips { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.chips li {
  font-size: .7rem;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  background: var(--raised);
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.pick-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  padding: 5px 8px;
  background: var(--gold);
  color: var(--paper);
  border-radius: 2px;
  box-shadow: none;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* "Top 10" (most reserved) badge: a white circle on the cover's top-right corner; a Staff Pick tag moves to the left. */
.top-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: grid;
  place-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-primary);
  box-shadow: 0 2px 6px rgb(0 0 0 / .4);
  text-align: center;
  line-height: .9;
  font-weight: 800;
}
.top-badge__top { font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; }
.top-badge__num { font-size: 1.35rem; }
.has-top-badge .pick-badge { right: auto; left: 8px; }
@media (min-width: 1080px) {
  .grid .top-badge { top: 6px; right: 6px; width: 40px; height: 40px; }
  .grid .top-badge__num { font-size: 1.15rem; }
  .grid .has-top-badge .pick-badge { right: auto; left: 6px; }
  .grid .pick-badge { top: 6px; right: 6px; font-size: .65rem; padding: 4px 6px; }
}
.cover { width: 100%; aspect-ratio: 6.625 / 10.25; background: var(--raised); object-fit: contain; }
.cover--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  font-weight: 700;
  line-height: 1.2;
  background: radial-gradient(#ffffff0c 1px, transparent 1px) 0 0 / 7px 7px, var(--raised);
  color: var(--muted);
  font-size: 1rem;
}
/* ---------- Status badges (icon + text, never color alone) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border-radius: 2px;
  background: var(--teal);
  color: var(--paper);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .7rem;
  padding: 4px 7px;
}
.badge--available { background: var(--ok); }
.badge--just_arrived, .badge--new_this_wednesday { background: var(--gold); }
.badge--sold_out { background: #3a3632; color: #d6cdbf; }
.badge--backorder { background: var(--cream); }
.badge--pre_order { background: var(--teal); }
.badge--low_stock { background: #f0a35a; }
.badge--sale { background: var(--red-btn); color: var(--on-primary); }
.badge--clearance { background: #f4b6be; }
.foc { font-size: .8rem; font-weight: 700; }
.foc--soon { color: var(--error); }
/* ---------- Filters ---------- */
/* Checkbox dropdown (multi-select filter) — the button matches a <select>. */
.multi { position: relative; }
.multi__button {
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--field-h);
  padding: 0 34px 0 12px;
  font: inherit;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23444' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--field-line);
  background-color: var(--paper);
  color: var(--ink);
  border-radius: 9px;
}
.multi__button:hover { border-color: var(--ink); }
.multi__button[aria-expanded='true'] { border-color: var(--ink); }
.multi__summary { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.multi__panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  width: max(100%, min(300px, calc(100vw - 2 * var(--gutter))));
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  background: var(--raised);
  border: 1px solid var(--line);
}
.multi__search { margin-bottom: 6px; }
.multi__options { border: 0; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.multi__option {
  display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 8px;
  font-weight: 400; margin: 0; border-radius: 4px; cursor: pointer;
}
.multi__option:hover { background: var(--surface); }
.multi__option[hidden] { display: none; }
.multi__divider { border: 0; border-top: var(--border); margin: 6px 8px; }
.multi__actions { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; margin-top: 6px; border-top: var(--border); }
.multi__actions button {
  font: inherit;
  font-weight: 700;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  background: none;
  color: var(--ink);
}
.multi__actions .multi__clear { text-decoration: underline; text-underline-offset: 3px; }
.multi__actions .multi__done { background: var(--gold); color: var(--paper); }
.filters {
  display: grid; gap: 12px; grid-template-columns: 1fr 1fr;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; margin-bottom: 20px;
}
.filters .field { margin: 0; }
.filters .field--search { grid-column: 1 / -1; }
.filters label:not(.multi__option), .filters .label { font-size: .85rem; }
@media (min-width: 800px) {
  /* One row however many filters a page has (Pre-Orders has five). */
  .filters { display: flex; align-items: end; }
  .filters .field { flex: 1 1 0; min-width: 0; }
  .filters .field--search { flex-grow: 1.6; }
}
.results-count { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.empty { padding: 32px; text-align: center; border: 2px dashed #d5cebf; border-radius: var(--radius); color: var(--muted); border-color: #4a443d; }
/* ---------- Dialogs (reservation form, lightbox) ---------- */
dialog {
  box-shadow: var(--shadow-lg);
  padding: 0;
  width: min(520px, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100vh - 32px);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}
dialog::backdrop { background: #000c; }
.dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 16px 0; }
.dialog__head h2 { font-size: var(--fs-title); margin: 0; }
.dialog__body { padding: 16px; }
.dialog__close {
  display: grid;
  place-items: center;
  flex: none;
  background: none;
  border: 1px solid var(--field-line);
  border-radius: 50%;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  margin: 0;
  color: var(--ink);
}
.dialog__close:hover { background: var(--raised); border-color: var(--teal); }
/* Keyboard focus is the blue as the button's background, not an outline (an outline gets clipped at the dialog's edge). */
.dialog__close:focus-visible { outline: none; background: var(--teal); border-color: var(--teal); color: var(--paper); }
/* High-contrast / forced-colors modes drop background colors, so give the focused button a real outline there. */
@media (forced-colors: active) { .dialog__close:focus-visible { outline: 3px solid Highlight; outline-offset: -3px; } }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.confirm { text-align: center; padding: 8px 0; }
.confirm__big { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 8px; color: var(--gold); }
.notice {
  padding: 10px 12px;
  background: var(--teal-dark);
  border: 0;
  border-left: 3px solid var(--teal);
  border-radius: 0;
  font-weight: 400;
  color: var(--ink);
}
.lightbox { width: auto; max-width: calc(100vw - 32px); background: #000; }
.lightbox img { max-height: calc(100vh - 64px); width: auto; }
.lightbox__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: #000; color: #fff; font-size: 1.1rem; cursor: pointer; }
/* ---------- Title details dialog (click a cover) ---------- */
.card__open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.card__open:hover .cover { filter: brightness(1.08); }
.card__title-open { display: inline; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.card__title-open:hover { text-decoration: underline; text-underline-offset: 3px; }
.title-modal { width: min(900px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - 32px); overflow: hidden; }
.title-modal__head { justify-content: flex-end; padding: 8px 8px 0; }
.title-modal .dialog__body { overflow-y: auto; max-height: calc(100vh - 100px); padding: 0 24px 24px; }
.title-modal__layout { display: grid; gap: 20px; }
.title-modal__media .cover { max-width: 240px; margin-inline: auto; border-radius: var(--radius); }
.title-modal__cover { position: relative; max-width: 240px; margin-inline: auto; }
.title-modal__cover .top-badge { top: 8px; right: 8px; }
.title-modal__covers { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0; margin: 12px 0 4px; }
.title-modal__thumb { display: block; width: 52px; aspect-ratio: 6.625 / 10.25; padding: 0; background: var(--raised); border: 2px solid var(--line); border-radius: 3px; cursor: pointer; overflow: hidden; color: var(--muted); }
.title-modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.title-modal__thumb.is-on { border-color: var(--gold); }
.title-modal__thumb:hover { border-color: var(--teal); }
.title-modal__nocover { display: grid; place-items: center; height: 100%; }
.title-modal__media > .card__meta { text-align: center; }
.title-modal__title { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 8px 0 4px; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.title-modal__when { margin: 0 0 8px; }
.title-modal__desc { margin: 16px 0 12px; font-size: 1rem; line-height: 1.55; }
.title-modal .card__foot { margin: 12px 0 4px; }
@media (min-width: 700px) { .title-modal__layout { grid-template-columns: 260px minmax(0, 1fr); gap: 28px; } .title-modal__media .cover, .title-modal__cover { max-width: none; } }
@media (max-width: 600px) { .title-modal { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; } .title-modal .dialog__body { max-height: calc(100vh - 56px); padding: 0 16px 24px; } }
/* ---------- Reservation list ---------- */
.list-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: none;
}
.list-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.list-bar__text { margin: 0; font-size: .95rem; line-height: 1.3; }
.list-bar .btn { flex: none; }
body.has-list-bar { padding-bottom: 76px; }
.list-dialog { width: min(600px, calc(100vw - 2 * var(--gutter))); }
.list-dialog__sub { font-size: var(--fs-sub); margin-top: 20px; }
.list-dialog__names { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 12px; }
@media (min-width: 480px) { .list-dialog__names { grid-template-columns: 1fr 1fr; } }
.list-lines { list-style: none; margin: 0 0 8px; padding: 0; }
.list-line {
  display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; align-items: start;
  padding: 12px 0; border-bottom: var(--border);
}
.list-line .cover { width: 52px; border-radius: 4px; padding: 3px; grid-row: span 2; }
.list-line .cover--placeholder { font-size: .6rem; padding: 3px; }
.list-line__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.list-line__info .foc { margin: 2px 0 0; }
.list-line__controls { display: flex; align-items: center; gap: 12px; }
.list-line__qty { width: 72px; }
.list-line__remove { background: none; border: 0; padding: 8px 4px; min-height: 40px; font: inherit; font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; color: var(--muted); cursor: pointer; }
.list-line__remove:hover { color: var(--gold); }
@media (min-width: 520px) {
  .list-line { grid-template-columns: 52px 1fr auto; align-items: center; }
  .list-line .cover { grid-row: auto; }
}
.confirm__lines { text-align: left; display: inline-block; margin: 0 0 1em; padding-left: 1.2em; }
/* ---------- Calendar ---------- */
.event { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; }
.event + .event { margin-top: 16px; }
.event__date { text-align: center; background: var(--surface); box-shadow: var(--shadow); border-radius: 5px; overflow: hidden; }
.event__month {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 0;
  background: var(--red-btn);
  color: var(--on-primary);
}
.event__day { display: block; font-family: var(--font-display); font-size: 1.6rem; padding: 4px 0; }
.event__type { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); }
.event h3 { margin: 2px 0 4px; }
.event__when { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.event__summary { margin: 0 0 6px; }
.event__more { margin: 0 0 10px; font-weight: 700; }
.event__actions { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.event__img { margin: 8px 0; border-radius: var(--radius); max-width: min(360px, 100%); height: auto; }
/* Event page: the photo sits at the top, with space below it. */
#event .event__img { margin: 8px auto 28px; max-width: min(100%, 560px); }
/* Calendar page: the photo sits to the right of the text on wider screens and is left off phones (it's on the event's page). */
.event__body { display: grid; gap: 10px; }
.event__photo { display: none; }
.event__body .event__img { margin: 0; max-width: 100%; width: 100%; }
@media (min-width: 700px) {
  .event__body--img { grid-template-columns: minmax(0, 1fr) clamp(220px, 34%, 340px); gap: 24px; align-items: start; }
  .event__photo { display: block; }
}
/* Smaller version for the home page's "Coming up" list */
.event--compact { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
.event--compact + .event--compact { margin-top: 12px; }
.event--compact .event__month { font-size: .65rem; padding: 1px 0; }
.event--compact .event__day { font-size: 1.2rem; padding: 2px 0; }
.event--compact .event__type { font-size: .68rem; }
.event--compact h3 { font-size: var(--fs-compact); margin: 1px 0 2px; }
.event--compact h3 a { color: inherit; text-decoration: none; }
.event--compact h3 a:hover { text-decoration: underline; }
.event--compact .event__when { font-size: .85rem; margin-bottom: 0; }
.event--compact:last-child { margin-bottom: 16px; }
.month-heading { font-size: var(--fs-title); padding-bottom: 6px; border-bottom: var(--border); margin: 32px 0 16px; }
.month-heading:first-child { margin-top: 0; }
/* ---------- Misc blocks ---------- */
.info-grid { display: grid; gap: 20px; }
@media (min-width: 800px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-grid--single { grid-template-columns: minmax(0, 640px); }
}
.sell-cols { align-items: start; gap: 32px; }
.sell-cols > * > :first-child { margin-top: 0; }
@media (min-width: 800px) { .sell-cols { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.panel h2 { font-size: var(--fs-title); }
/* A rounded note on a light tint of the accent color, dark text. */
.callout { background: color-mix(in srgb, var(--gold) 45%, #fff); color: #161616; border-radius: var(--radius); padding: 16px 20px; margin: 0; }
.callout a { color: #161616; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.callout a:hover { text-decoration-thickness: 2px; }
.map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--raised); box-shadow: none; }
.map--small { max-width: 480px; aspect-ratio: 16 / 10; margin: 1em 0; }
/* Visit page: fills the right-hand column, at least as tall as the contact details. */
#map { display: flex; flex-direction: column; }
.map--large { flex: 1; min-height: 360px; aspect-ratio: auto; }
@media (min-width: 800px) {
  .map--large { min-height: 480px; }
}
.signup { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }
@media (min-width: 540px) {
  .signup { flex-direction: row; }
  .signup input { flex: 1; }
}
details { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 14px 16px; min-height: 44px; list-style: none; display: flex; align-items: center; gap: 10px; }
summary::-webkit-details-marker { display: none; }
/* One indicator for every show/hide box: a chevron that points down when the box is closed and flips to ^ when it's open. */
summary::after {
  content: ''; flex: none; width: .5em; height: .5em; margin-left: auto; margin-top: -.25em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s;
}
details[open] > summary::after { transform: rotate(225deg); margin-top: .25em; }
@media (prefers-reduced-motion: reduce) {
  summary::after { transition: none; }
  html { scroll-behavior: auto; }
}
details > div { padding: 0 16px 14px; }
.search-hits { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.search-hits li { padding: 10px 14px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.search-hits p { margin: 4px 0 0; }
.search-hits mark { padding: 0 2px; border-radius: 2px; background: var(--gold); color: var(--paper); }
#pages, #faq, #events, #news { margin-top: 32px; }
#series { margin-bottom: 24px; }
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.post-list time { font-size: .85rem; color: var(--muted); }
.post-list__title { font-size: var(--fs-title); margin: 4px 0 8px; }
/* Title links read as titles; the underline appears on hover (same as event and news titles elsewhere). */
.post-list__title a, .event h3 a, .home-news h3 a { text-decoration: none; }
.post-list__title a:hover, .event h3 a:hover { text-decoration: underline; }
.post-list p { margin: 0; }
.home-news { margin-top: 32px; }
.home-news .post-list { gap: 12px; margin-bottom: 12px; }
.home-news h3 { font-size: var(--fs-compact); margin: 2px 0 2px; }
.home-news h3 a { color: inherit; text-decoration: none; }
.home-news h3 a:hover { text-decoration: underline; }
.home-news .post-list p { margin: 0; font-size: .9rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
.newsletter { padding-block: 40px; text-align: center; background: var(--surface); border-top: 1px solid var(--line); }
.newsletter .lede { margin-inline: auto; }
.newsletter #newsletter-form { display: flex; justify-content: center; }
/* Free-form staff text on the homepage; hidden when empty. */
.home-text { padding-block: 24px 0; }
/* Staff text that arrives after the page: hold its usual height until it does, so the sections below don't jump
   (the script hides a block that turns out to be empty). */
[data-content="home-top:body"]:empty { min-height: 700px; }
[data-content="home-preorders:lede"]:empty { min-height: 130px; }
@media (min-width: 800px) {
  [data-content="home-top:body"]:empty { min-height: 390px; }
  [data-content="home-preorders:lede"]:empty { min-height: 55px; }
}
.home-text > :last-child { margin-bottom: 0; }
/* ---------- Customer account ---------- */
.account-panel { max-width: 460px; }
.account-who { margin: 0 0 16px; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; }
.account-grid { display: grid; gap: 20px; }
@media (min-width: 800px) {
  .account-grid { grid-template-columns: 3fr 2fr; align-items: start; }
}
.account-fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.account-fieldset legend { font-weight: 700; padding: 0; }
.account-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field--check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.field--check label { margin: 0; font-weight: 400; }
/* Survey: a question with more than 6 choices lists them in two columns once there is room. */
.survey-choice-other, .survey-choices--cols .field--check { break-inside: avoid; }
@media (min-width: 640px) { .survey-choices--cols { column-count: 2; column-gap: 32px; } }
.account-saved { color: var(--ok); font-weight: 700; margin: 0 0 8px; }
.account-lines { list-style: none; margin: 0; padding: 0; }
.account-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.account-line .card__meta { display: block; }
.account-line__status { flex: none; font-size: .85rem; font-weight: 700; text-align: right; }
.account-line__status--arrived { color: var(--ok); }
.account-line__status--not_ordered { color: var(--gold); }
.account-past { margin-top: 16px; }
.account-group { font-size: var(--fs-sub); margin: 20px 0 4px; padding-bottom: 6px; border-bottom: var(--border); }
.account-group:empty { display: none; }
.account-line .cover { width: 56px; height: auto; flex: none; border-radius: 4px; }
.account-line__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.account-line__info .card__variant { margin: 0; }
.account-line__qty { flex: none; font-size: .9rem; }
.account-move { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* ---------- Follow (signed-in cards): a link on the card, choices in a dialog ---------- */
.follow-open { display: block; width: 100%; margin-top: 6px; padding: 8px 0; min-height: 40px; background: none; border: 0; font: inherit; font-size: .9rem; font-weight: 700; text-align: left; color: var(--teal); cursor: pointer; }
.follow-open:hover { text-decoration: underline; }
.follow-open--on { color: var(--muted); }
.follow-open--on:hover { text-decoration: none; }
a.follow-open { box-sizing: border-box; line-height: 24px; }
@media (max-width: 600px) {
  .follow-open__more { display: none; }
}
.follow-dialog { width: min(560px, calc(100vw - 2 * var(--gutter))); }
.follow-dialog .dialog__body { overflow-y: auto; max-height: calc(100vh - 110px); }
.follow-dialog__for { margin: 0 0 8px; font-weight: 700; color: var(--ink); }
.follow-dialog__intro { margin: 0 0 14px; font-size: .95rem; color: var(--muted); }
.follow-group { margin: 0 0 16px; }
.follow-group h3 { font-size: var(--fs-sub); padding-bottom: 6px; border-bottom: var(--border); margin: 0 0 10px; }
.follow-person { margin: 0 0 14px; }
.follow-person__tag {
  font-size: .75rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  white-space: nowrap;
  background: var(--gold);
  color: var(--paper);
}
.follow-choices { display: grid; gap: 8px; margin-top: 6px; grid-template-columns: 1fr; }
@media (min-width: 440px) {
  .follow-choices { grid-template-columns: 1fr 1fr; }
}
.follow-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  padding: 10px 12px;
  min-height: 52px;
  font: inherit;
  border-radius: var(--radius);
  border: 1px solid var(--field-line);
  cursor: pointer;
  background: var(--paper);
  color: var(--ink);
}
.follow-choice:hover { border-color: var(--teal); }
.follow-choice.is-on { background: var(--gold); color: var(--paper); border-color: var(--gold); }
.follow-choice__label { font-weight: 700; font-size: .95rem; }
.follow-choice__hint { font-size: .8rem; color: var(--muted); }
.follow-choice.is-on .follow-choice__hint { color: var(--paper); }
.follow-choice:disabled { opacity: .6; cursor: progress; }
.follow-dialog__status { min-height: 1.4em; margin: 4px 0 12px; font-weight: 700; color: var(--ok); }
.follow-dialog__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  bottom: -16px;
  margin: 0 -16px -16px;
  padding: 12px 16px;
  border-top: var(--border);
  background: var(--surface);
}
.follow-form { display: grid; gap: 8px; margin-bottom: 14px; }
.follow-form__row { display: flex; gap: 8px; flex-wrap: wrap; }
.follow-form__row input { flex: 1 1 200px; }
.follow-results { list-style: none; margin: 0; padding: 0; }
.follow-results li { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.follow-results__act { display: flex; gap: 6px; flex-wrap: wrap; }
.follow-subs { list-style: none; margin: 0 0 12px; padding: 0; }
.follow-subs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.account-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; min-width: 0; }
.account-lastupdate { margin: -4px 0 10px; }
/* ---------- Pre-orders: collapsible "How it works" ---------- */
.how-it-works { box-shadow: none; margin: 0 0 var(--space-block); background: none; border: 0; }
.how-it-works summary { display: inline-flex; padding: 8px 0; min-height: 44px; color: var(--teal); font-weight: 700; }
.how-it-works summary::after { margin-left: 2px; }
.how-it-works > div { padding: 0; }
.how-it-works .page-body { margin-bottom: 0; }
.follow-item { display: flex; align-items: center; gap: 10px; }
.follow-thumb { width: 36px; height: 54px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); flex: none; }
/* Bronze Age Modern + Dusty Blue — the public-site theme, applied over the rules above.
   Dark page, brick-red buttons, gold accents, dusty-blue links and focus.
   The colors staff pick in Shop Settings are overridden here (!important beats the inline
   values site.js sets), so the whole site keeps one palette. */
/* ---------- Top bar (announcement + search) ---------- */
.topbar__search input::placeholder { color: var(--muted); opacity: 1; }
/* ---------- Header / nav ---------- */
.brand__name span { color: var(--gold); }
.nav a:hover { color: var(--teal); text-decoration: underline; }
/* ---------- Buttons ---------- */
/* ---------- Forms ---------- */
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 20%, transparent); }
input:disabled, select:disabled, textarea:disabled { opacity: 1; color: var(--muted); cursor: not-allowed; }
select, .multi__button {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23bdb4a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.multi__button:hover, .multi__button[aria-expanded='true'] { border-color: var(--teal); }
.field__hint, .field__hint a { font-size: .85rem; }
/* ---------- Sections ---------- */
.section + .section { border-top: 1px solid var(--line); }
/* ---------- Cards ---------- */
/* Status badges: icon + text on light chips with dark text. */
/* ---------- Panels, filters, dialogs ---------- */
.panel, .filters, details, .search-hits li, .event__date { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.panel, .filters { border-radius: 5px; }
/* ---------- Calendar, posts, account ---------- */
/* Staff-edited text */
/* Staff-picked text colors were chosen for a light page; on the dark theme each maps to a readable equivalent,
   and highlighted text goes dark so it reads on its light highlight. */
:is(.prose, [data-content], #faq-list, .page-body, .lede) :is([style*="color: rgb(22, 22, 22)"], [style*="color:#161616"], [style*="color: #161616"]) { color: inherit !important; }
:is(.prose, [data-content], #faq-list, .page-body, .lede) :is([style*="color: rgb(0, 0, 0)"], [style*="color:#000000"], [style*="color: #000000"], [style*="color: #000"]) { color: inherit !important; }
:is(.prose, [data-content], #faq-list, .page-body, .lede) :is([style*="color: rgb(91, 91, 91)"], [style*="color:#5b5b5b"], [style*="color: #5b5b5b"]) { color: var(--muted) !important; }
:is(.prose, [data-content], #faq-list, .page-body, .lede) :is([style*="color: rgb(200, 16, 46)"], [style*="color:#c8102e"], [style*="color: #c8102e"]) { color: #ff9585 !important; }
:is(.prose, [data-content], #faq-list, .page-body, .lede) :is([style*="color: rgb(164, 0, 29)"], [style*="color:#a4001d"], [style*="color: #a4001d"]) { color: #ff9585 !important; }
:is(.prose, [data-content], #faq-list, .page-body, .lede) :is([style*="color: rgb(22, 114, 58)"], [style*="color:#16723a"], [style*="color: #16723a"]) { color: var(--ok) !important; }
:is(.prose, [data-content], #faq-list, .page-body, .lede) :is([style*="color: rgb(26, 95, 255)"], [style*="color:#1a5fff"], [style*="color: #1a5fff"]) { color: var(--teal) !important; }
:is(.prose, [data-content], #faq-list, .page-body, .lede) :is([style*="color: rgb(122, 63, 176)"], [style*="color:#7a3fb0"], [style*="color: #7a3fb0"]) { color: #cdb6ee !important; }
:is(.prose, [data-content], #faq-list, .page-body, .lede) :is([style*="color: rgb(179, 89, 0)"], [style*="color:#b35900"], [style*="color: #b35900"]) { color: #f0a35a !important; }
:is(.prose, [data-content], #faq-list, .page-body, .lede) [style*='background'] { color: var(--paper) !important; }
.lede blockquote a, .page-body blockquote a, #faq-list blockquote a { color: var(--paper); }
/* ---------- Newsletter + footer ---------- */
/* The email-list embed (EmailOctopus) ships its own light styles; recolor it to match. */
#newsletter-form .emailoctopus-form-wrapper { color: var(--ink) !important; }
#newsletter-form .emailoctopus-success-message, #newsletter-form .emailoctopus-error-message, #newsletter-form label { color: var(--muted) !important; }
#newsletter-form .emailoctopus-error-message { color: var(--error) !important; }
#newsletter-form input[type='email'], #newsletter-form input[type='text'] { background: var(--paper) !important; color: var(--ink) !important; border: 1px solid var(--field-line) !important; border-radius: 9px !important; min-height: 46px; }
#newsletter-form input[type='submit'] { background: var(--red-btn) !important; color: var(--on-primary) !important; border: 1px solid transparent !important; border-radius: 3px !important; min-height: 46px; font: 700 14px/1 var(--font-body) !important; letter-spacing: .04em; text-transform: uppercase; }
#newsletter-form input[type='submit']:hover { background: var(--red-btn-hover) !important; }
#newsletter-form a { color: var(--teal) !important; }
#newsletter-form .mastfoot, #newsletter-form .mastfoot * { color: var(--muted) !important; }
@media (forced-colors: active) {
  input, select, textarea, .btn { border: 1px solid ButtonText; }
  .hero { background-image: none; }
  a:focus-visible, button:focus-visible, input:focus, select:focus, textarea:focus { outline: 3px solid Highlight; }
}

/* ---------- Loading spinner ---------- */
/* While anything on the page is loading (aria-busy, or "Loading…" text) the page dims and a small
   spinner sits in the middle of the window. Clicks pass through so a stuck load never traps anyone. */
@keyframes spin { to { transform: rotate(360deg); } }
body:has([aria-busy="true"], .loading)::before {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background: rgb(0 0 0 / .35);
}
body:has([aria-busy="true"], .loading)::after {
  content: ""; position: fixed; top: 50%; left: 50%; z-index: 9999; pointer-events: none;
  width: 28px; height: 28px; margin: -14px 0 0 -14px; box-sizing: border-box;
  border: 3px solid rgb(255 255 255 / .35); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.loading { text-align: center; color: var(--muted); }
.empty.loading { border: 0; }
@media (prefers-reduced-motion: reduce) {
  body:has([aria-busy="true"], .loading)::after { animation-duration: 2s; }
}
