/* Pop's Comics & Collectibles — site styles
   Mobile-first: base rules target phones; wider layouts are layered on with
   min-width breakpoints. Brand colors come from shop settings via --brand-*. */

:root {
  --brand-primary: #c8102e;
  --brand-accent: #ffd100;
  --brand-ink: #161616;
  --brand-paper: #fffaf0;
  --brand-footer: #161616;
  --footer-text: #ffffff;
  --footer-heading: var(--brand-accent);

  --ink: var(--brand-ink);
  --paper: var(--brand-paper);
  --surface: #ffffff;
  --muted: #5b5b5b;
  --line: #e6e0d4;          /* soft divider, not black */
  --field-line: #8a8a8a;    /* form-field outline: ≥3:1 against white for accessibility */
  --focus: #1a5fff;

  --font-display: 'Archivo Black', 'Arial Black', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 6px;
  --border: 1px solid var(--line);
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 4px 14px rgb(0 0 0 / .08);
  --shadow-lg: 0 10px 40px rgb(0 0 0 / .25);
  --field-h: 44px;
  --gutter: 16px;
  --max: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--font-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--brand-primary); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

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(1.9rem, 6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 40px; }
.section--alt { background: var(--surface); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.section__head h2 { margin: 0; }
.section__links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin-bottom: 1em; }
.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; color: var(--ink);
  background: var(--brand-accent); border-radius: var(--radius);
}
.page-body { margin-bottom: 20px; }
.page-body ul, .page-body ol { padding-left: 1.4em; }
.page-body li { margin-bottom: .35em; }
.prose { max-width: 68ch; }
.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: #f6f2ea; }
@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; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip-link:focus { top: 8px; }

.demo-banner { margin: 0; padding: 6px var(--gutter); background: var(--brand-accent); color: #161616; font-size: .85rem; text-align: center; }

/* ---------- Buttons & forms ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px;
  font: 700 1rem/1 var(--font-body);
  color: var(--ink); background: var(--brand-accent);
  border: 0; border-radius: var(--radius); box-shadow: var(--shadow);
  text-decoration: none; cursor: pointer;
  transition: transform .08s, box-shadow .08s, filter .08s;
}
.btn:hover { color: var(--ink); transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 8px 20px rgb(0 0 0 / .1); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.btn--primary { background: var(--brand-primary); color: #fff; }
.btn--primary:hover { color: #fff; }
.btn--ghost { background: var(--surface); box-shadow: inset 0 0 0 1px var(--field-line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: var(--shadow); }

label, .label { display: block; font-weight: 700; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 0 12px;
  font: inherit; line-height: 1.2; color: var(--ink); background-color: var(--surface);
  border: 1px solid var(--field-line); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
}
/* 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(--ink); }
input[type='checkbox'], input[type='radio'] {
  -webkit-appearance: auto; appearance: auto;
  width: 18px; height: 18px; margin: 0; padding: 0; flex: none;
  accent-color: var(--brand-primary); cursor: pointer;
}
.field { margin-bottom: 14px; }
.field__hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.form-error { color: #a4001d; font-weight: 700; }

/* ---------- Header / nav ---------- */

#site-header { background: var(--surface); box-shadow: 0 1px 0 var(--line), 0 2px 10px rgb(0 0 0 / .05); position: sticky; top: 0; z-index: 50; }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand__name { font-family: var(--font-display); font-size: 1.2rem; color: var(--brand-primary); line-height: 1.1; }
.brand__logo { max-height: 48px; width: auto; }

.nav-toggle { width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: var(--brand-accent); cursor: pointer; display: grid; place-items: center; }
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; transition: transform .15s; }
.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 8px 16px rgb(0 0 0 / .08); }
.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 #0001; }
.nav a[aria-current='page'] { color: var(--brand-primary); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  #site-header { box-shadow: 0 1px 0 var(--line); }
  .nav { display: block; position: static; border: 0; background: none; box-shadow: none; }
  .nav ul { display: flex; gap: 4px; padding: 0; }
  .nav a { padding: 8px 10px; border: 0; border-radius: var(--radius); }
  .nav a[aria-current='page'] { background: var(--brand-accent); color: var(--ink); }
}

/* ---------- Footer ---------- */

#site-footer { background: var(--brand-footer); color: var(--footer-text); padding-top: 32px; }
#site-footer a { color: var(--footer-text); }
#site-footer a:hover { color: var(--brand-accent); }
.footer__grid { display: grid; gap: 24px; }
.footer__heading { font-size: 1.05rem; color: var(--footer-heading); }
.footer__links { list-style: none; padding: 0; margin: 0 0 12px; }
.footer__links li { margin-bottom: 6px; }
.footer__legal { font-size: .85rem; opacity: .7; padding-block: 20px; margin: 0 auto; text-align: center; }
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; background: rgb(127 127 127 / .14); transition: background .15s, color .15s;
}
.socials a:hover { background: var(--brand-primary); color: #fff; }
.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(--brand-accent); }
@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 {
  background:
    radial-gradient(circle, #0002 1.2px, transparent 1.4px) 0 0 / 12px 12px,
    var(--brand-accent);
  padding-block: 48px;
}
.hero h1 { font-size: clamp(2.2rem, 9vw, 4.2rem); margin-bottom: .25em; }
.hero h1 span { color: var(--brand-primary); }
/* Banner photo: a dark overlay keeps the headline readable on any picture. */
.hero--photo {
  background: linear-gradient(90deg, rgb(0 0 0 / .72), rgb(0 0 0 / .45) 60%, rgb(0 0 0 / .25)), var(--hero-image) center / cover no-repeat, var(--brand-ink);
  color: #fff;
  padding-block: 64px;
}
.hero--photo h1 { text-shadow: 0 2px 12px rgb(0 0 0 / .4); }
.hero--photo h1 span { color: var(--brand-accent); }
@media (min-width: 800px) { .hero--photo { padding-block: 96px; } }
.hero p { font-size: 1.15rem; max-width: 46ch; }
.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); }
@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; }
}
.grid--wide { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid--wide { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--wide { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden;
}
.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; }
.card__meta { font-size: .85rem; color: var(--muted); margin: 0; }
.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; border-radius: 4px; background: var(--ink); color: var(--brand-accent); }
.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; letter-spacing: .02em; white-space: nowrap;
  padding: 5px 8px; border-radius: 999px;
  background: var(--ink); color: var(--brand-accent); box-shadow: 0 1px 4px rgb(0 0 0 / .3);
}
@media (min-width: 1080px) { .grid .pick-badge { top: 6px; right: 6px; font-size: .65rem; padding: 4px 6px; } }

.cover { aspect-ratio: 2 / 3; width: 100%; object-fit: contain; background: #fff; }
.cover--placeholder {
  display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center;
  background: #ffb52e; color: var(--brand-ink);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 700; line-height: 1.2;
}

/* ---------- Status badges (icon + text, never color alone) ---------- */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 700; line-height: 1; letter-spacing: .02em;
  padding: 5px 8px; border-radius: 999px;
  background: #fff; color: var(--ink); white-space: nowrap;
}
.badge--available    { background: #d9f5df; }
.badge--just_arrived,
.badge--new_this_wednesday { background: var(--brand-accent); }
.badge--sold_out     { background: #e4e4e4; color: #444; }
.badge--backorder    { background: #e3ecff; }
.badge--pre_order    { background: #f1e3ff; }
.badge--low_stock    { background: #ffe6cc; }
.badge--sale         { background: var(--brand-primary); color: #fff; }
.badge--clearance    { background: #ffd6de; }

.foc { font-size: .8rem; font-weight: 700; }
.foc--soon { color: #a4001d; }

/* ---------- 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; color: var(--ink); 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); border-radius: var(--radius);
}
.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))));
  background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-lg);
  padding: 8px;
}
.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: #f5f1e8; }
.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(--brand-accent); }

.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); }

/* ---------- Dialogs (reservation form, lightbox) ---------- */

dialog { border: 0; border-radius: 10px; box-shadow: var(--shadow-lg); padding: 0; width: min(520px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - 32px); color: var(--ink); background: var(--surface); }
dialog::backdrop { background: #000a; }
.dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 16px 0; }
.dialog__head h2 { font-size: 1.3rem; margin: 0; }
.dialog__body { padding: 16px; }
.dialog__close { background: none; border: 0; font-size: 1.4rem; cursor: pointer; width: 44px; height: 44px; margin: -10px -10px 0 0; }
.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; color: var(--brand-primary); margin-bottom: 8px; }
.notice { background: var(--brand-accent); border-radius: var(--radius); padding: 10px 12px; font-weight: 700; }

.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; }

/* ---------- Reservation list ---------- */

.list-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--line), 0 -6px 20px rgb(0 0 0 / .08);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
}
.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: 1.05rem; margin-top: 20px; }
.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(--brand-primary); }
@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 1fr; gap: 14px; align-items: start; }
.event + .event { margin-top: 16px; }
.event__date { text-align: center; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.event__month { display: block; background: var(--brand-primary); color: #fff; font-size: .75rem; font-weight: 700; text-transform: uppercase; padding: 2px 0; }
.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(--brand-primary); }
.event h3 { margin: 2px 0 4px; }
.event__when { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.event__actions { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; }
.event__img { margin: 8px 0; border-radius: var(--radius); max-width: 360px; }
/* Smaller version for the home page's "Coming up" list */
.event--compact { grid-template-columns: 48px 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: 1rem; 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: 1.2rem; 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); } }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.panel h2 { font-size: 1.25rem; }
.map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); background: #e8e4dc; }
.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; }
details > div { padding: 0 16px 14px; }

.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.post-list time { font-size: .85rem; color: var(--muted); }
.home-news { margin-top: 32px; }
.home-news .post-list { gap: 12px; margin-bottom: 12px; }
.home-news h3 { font-size: 1rem; 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 { background: var(--surface); padding-block: 40px; text-align: center; }
.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; }
.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(--brand-primary); 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; }
.field--check label { margin: 0; font-weight: 400; }
.account-saved { color: #1a6b2f; font-weight: 700; margin: 0 0 8px; }
.account-lines { list-style: none; margin: 0; padding: 0; }
.account-line { display: flex; justify-content: space-between; 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: #1a6b2f; }
.account-past { margin-top: 16px; }
.account-group { font-size: 1rem; margin: 18px 0 0; padding-bottom: 4px; border-bottom: 2px solid var(--brand-accent); }
.account-group:empty { display: none; }
.account-line { align-items: center; }
.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-line { gap: 12px; }
.account-move { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Follow menu (signed-in cards) ---------- */
.follow { margin-top: 8px; font-size: .9rem; }
.follow summary { cursor: pointer; color: var(--brand-primary); font-weight: 700; padding: 6px 0; min-height: 32px; }
.follow__list { list-style: none; margin: 4px 0 0; padding: 0; }
.follow__list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 6px 0; border-top: 1px solid var(--line); }
.follow__what { flex: 1 1 100%; }
.follow__btn { font: inherit; font-size: .85rem; font-weight: 700; padding: 6px 10px; min-height: 36px; border-radius: var(--radius); border: 1px solid var(--field-line); background: var(--surface); cursor: pointer; }
.follow__btn:hover { border-color: var(--ink); }
.follow__btn.is-on { background: var(--brand-accent); border-color: var(--ink); }
.follow__list .follow__note { color: var(--muted); font-size: .8rem; display: block; }
.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; gap: 20px; min-width: 0; }
