/* ==========================================================================
   Components
   ticker · masthead · dock nav · sticker · polaroid-card · pull-quote
   pill-filter · post-card · footer · forms · modal
   ========================================================================== */

/* ---- Ticker (marquee) -------------------------------------------------- */
.ticker {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  background: var(--c-inverse-surface);
  color: var(--c-inverse-on-surface);
  box-shadow: var(--sh-sm);
  user-select: none;
}

.ticker.is-on-surface { background: var(--c-on-surface); color: var(--c-surface); }
.ticker.is-primary-container { background: var(--c-primary-container); color: var(--c-on-primary-container); padding: 0.375rem 0.75rem; }
.ticker.is-static .ticker-track { animation: none; padding: 0 var(--margin); }
.ticker.is-rounded { border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 0.5rem; }

.ticker-track {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  width: max-content;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--ls-widest);
  font-weight: 600;
  text-transform: uppercase;
  animation: marquee var(--ticker-dur) linear infinite;
}

.ticker-track.is-md {
  font-size: var(--t-label-md-size);
  line-height: var(--t-label-md-lh);
  letter-spacing: var(--ls-wider);
  font-weight: 700;
  gap: 0.75rem;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-track > * { flex-shrink: 0; }
.ticker-track .ticker-hot { color: var(--c-tertiary-fixed); font-weight: 700; }
.ticker-track .ticker-lime { color: var(--c-lime); }
.ticker-track .ticker-coral { color: var(--c-coral); }
.ticker-track .ticker-star { color: var(--c-primary-fixed); }
.ticker-track .ticker-star.is-dim { color: rgb(227 226 223 / 0.4); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
}

/* ---- Masthead (fixed header) ------------------------------------------- */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgb(250 249 245 / 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: var(--sh-header);
}

.masthead-inner {
  height: var(--header-h);
  padding: var(--space-xs) var(--margin);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.masthead.is-compact .masthead-inner {
  height: var(--header-compact-h);
  padding: 0 var(--margin);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.masthead.is-reader .masthead-inner {
  height: var(--header-reader-h);
  padding: 0 var(--margin);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.masthead-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 3rem;
}

.masthead-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 0;
}

.masthead-logo {
  height: 2rem;
  width: auto;
  object-fit: contain;
}

.masthead-logo-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  background: var(--c-primary);
  color: var(--c-on-primary);
  font-family: var(--font-display);
  font-weight: 700; /* Syne 800 is too wide: "SMC" overflowed the 2rem square */
  font-size: 0.625rem;
  letter-spacing: -0.05em;
  white-space: nowrap;
  border-radius: var(--r);
  flex-shrink: 0;
}

.masthead-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.masthead-title .site-name {
  font-family: var(--font-display);
  font-size: var(--t-label-md-size);
  font-weight: 700;
  letter-spacing: var(--ls-tighter);
  text-transform: uppercase;
  line-height: 1;
  color: var(--c-on-surface);
  white-space: nowrap;
}

.masthead-title .issue-label {
  margin-top: 0.125rem;
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--ls-widest);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-primary);
  white-space: nowrap;
}

/* compact variant: "SMC MAG [V.07] / VOL. 07 // MONSOON" */
.masthead-compact-brand { display: flex; flex-direction: column; justify-content: center; min-width: 0; flex: 1; }
.masthead-compact-brand .brand-line { display: flex; align-items: center; gap: var(--space-xs); min-width: 0; }
.masthead-compact-brand .brand-line .chip { flex-shrink: 0; display: none; }
@media (min-width: 768px) { .masthead-compact-brand .brand-line .chip { display: inline-flex; } }
.masthead-compact-brand .brand-line .site-name {
  font-family: var(--font-display);
  font-size: clamp(15px, 4.2vw, var(--t-headline-md-size)); /* the full name fits beside three buttons at 390px */
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: var(--ls-tight);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-on-surface);
}
.masthead-compact-brand .brand-sub {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--ls-widest);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-on-surface-variant);
}

/* reader variant */
.masthead-reader-brand { display: flex; align-items: center; gap: var(--space-xs); min-width: 0; }
.masthead-reader-brand .reader-title { display: flex; flex-direction: column; margin-left: 0.25rem; min-width: 0; }
.masthead-reader-brand .reader-title .issue-label {
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--c-primary);
}
.masthead-reader-brand .reader-title .issue-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 150px; }
.masthead-reader-brand .reader-title .reader-name {
  font-family: var(--font-display);
  font-size: var(--t-label-md-size);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  color: var(--c-on-surface);
  max-width: 150px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.masthead-reader-brand .reader-name-italic {
  font-family: var(--font-serif);
  font-size: var(--t-headline-sm-size);
  font-weight: 600;
  font-style: italic;
  letter-spacing: var(--ls-tight);
  max-width: 210px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.icon-btn {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-on-surface);
  transition: color var(--dur) var(--ease);
  border-radius: var(--r-full);
}

.icon-btn:hover { color: var(--c-primary); }
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn.is-lg .icon { width: 24px; height: 24px; }
.icon-btn.is-back { margin-left: -0.25rem; }

.avatar-btn {
  width: 2rem;
  height: 2rem;
  margin-left: 0.25rem;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-on-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-btn .icon { width: 18px; height: 18px; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; }
.avatar-btn.is-hard { box-shadow: var(--sh-hard); }

/* category strip under the cover masthead = secondary navigation */
.masthead-strip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  overflow: hidden;
  padding: 0.25rem 0;
}

.masthead-strip ul {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  color: var(--c-on-surface);
}

.masthead-strip ul::-webkit-scrollbar { display: none; }

.masthead-strip li { display: flex; align-items: center; gap: var(--space-xs); }

.masthead-strip li + li::before {
  content: "✦";
  color: var(--c-primary);
  font-size: 0.75rem;
}

.masthead-strip a {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--ls-widest);
  font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: color var(--dur) var(--ease);
}

.masthead-strip a:hover { color: var(--c-primary); }

.masthead-strip a.is-current,
.masthead-strip a.nav-current,
.masthead-strip li.nav-current a {
  background: var(--c-surface-highest);
  color: var(--c-on-surface-variant);
}

/* reading progress */
.progress {
  width: 100%;
  height: 0.25rem;
  background: var(--c-surface-high);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--c-primary);
  transition: width 80ms linear;
}


/* slide-down menu (mobile) */
.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--c-inverse-surface);
  color: var(--c-inverse-on-surface);
  padding: calc(env(safe-area-inset-top, 0px) + 1.5rem) var(--margin) 2rem;
  overflow-y: auto;
  display: none;
  flex-direction: column;
  gap: var(--space-lg);
}

.menu-panel[data-open] { display: flex; }
.menu-panel .menu-head { display: flex; align-items: center; justify-content: space-between; }
.menu-panel .menu-head .icon-btn { color: var(--c-inverse-on-surface); }
.menu-panel .menu-primary { display: flex; flex-direction: column; gap: 0.25rem; }
.menu-panel .menu-primary a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgb(227 226 223 / 0.15);
  font-family: var(--font-display);
  font-size: var(--t-headline-lg-size);
  line-height: 1.1;
  letter-spacing: var(--ls-tight);
  font-weight: 800;
  text-transform: uppercase;
}
.menu-panel .menu-primary a small {
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  letter-spacing: var(--ls-widest);
  color: var(--c-primary-fixed);
}
.menu-panel .menu-primary a:hover { color: var(--c-primary-fixed); }
.menu-panel .menu-secondary { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.menu-panel .menu-secondary a { padding: 0.375rem 0.75rem; border: 1.5px solid rgb(227 226 223 / 0.3); }
.menu-panel .menu-secondary a:hover { background: var(--c-lime); color: var(--c-on-surface); border-color: var(--c-lime); }
.menu-panel .menu-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-sm); }

body.menu-open { overflow: hidden; }

/* ---- Dock (bottom navigation, mobile) ---------------------------------- */
.dock {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.dock-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--dock-h);
  padding: 0 0.5rem;
  max-width: 28rem;
  margin: 0 auto;
  background: rgb(255 255 255 / 0.9);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-radius: var(--r-full);
  box-shadow: var(--sh-dock);
}

.dock-inner ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
}

.dock a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-full);
  color: var(--c-on-surface-variant);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.dock a .icon { width: 20px; height: 20px; }

.dock a span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: var(--ls-wider);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}

.dock a:hover { color: var(--c-on-surface); }
.dock a.nav-current,
.dock a[aria-current="page"] { background: var(--c-primary); color: var(--c-on-primary); }

/* full-bleed bar variant (city / sounds / survival / pitch screens) */
.dock.is-bar { bottom: 0; left: 0; right: 0; }
.dock.is-bar .dock-inner {
  max-width: none;
  border-radius: 0;
  background: rgb(250 249 245 / 0.9);
  box-shadow: 0 -1px 12px rgb(0 0 0 / 0.04);
  padding: 0 0.25rem;
}
.dock.is-bar a { width: auto; min-width: 56px; min-height: 44px; height: auto; border-radius: 0; }
.dock.is-bar a .icon { width: 22px; height: 22px; }
.dock.is-bar a span { font-size: var(--t-label-sm-size); letter-spacing: var(--ls-widest); margin-top: 0.125rem; }
.dock.is-bar a.nav-current,
.dock.is-bar a[aria-current="page"] { background: none; color: var(--c-primary); font-weight: 700; }

/* ---- Sticker (rotated badge) ------------------------------------------- */
.sticker {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--r);
  box-shadow: var(--sh-md);
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--t-label-sm-ls);
  font-weight: 700;
  text-transform: uppercase;
  background: var(--c-primary);
  color: var(--c-on-primary);
  white-space: nowrap;
  transform: rotate(var(--tilt, -2deg));
}

.sticker .icon { width: 13px; height: 13px; }
.sticker.is-md { font-size: var(--t-label-md-size); line-height: var(--t-label-md-lh); letter-spacing: var(--t-label-md-ls); }
.sticker.is-tiny { font-size: 9px; padding: 0.125rem 0.375rem; }
.sticker.is-flat { box-shadow: var(--sh-sm); }
.sticker.is-square { border-radius: 0; }
.sticker.is-pill { border-radius: var(--r-full); }
.sticker.is-white { background: var(--c-surface-lowest); color: var(--c-on-surface); box-shadow: var(--sh-sm); }
.sticker.is-white-primary { background: var(--c-surface-lowest); color: var(--c-primary); }
.sticker.is-tertiary { background: var(--c-tertiary); color: var(--c-on-tertiary); }
.sticker.is-tertiary-container { background: var(--c-tertiary-container); color: var(--c-on-tertiary-container); }
.sticker.is-ink { background: rgb(48 49 46 / 0.9); color: var(--c-inverse-on-surface); }
.sticker.is-ink-solid { background: var(--c-inverse-surface); color: var(--c-inverse-on-surface); }
.sticker.is-on-surface { background: var(--c-on-surface); color: var(--c-surface); }
.sticker.is-lime { background: var(--c-lime); color: var(--c-on-surface); }
.sticker.is-coral { background: var(--c-coral); color: var(--c-surface); }
.sticker.is-high { background: var(--c-surface-highest); color: var(--c-on-surface); }
.sticker.is-highest-muted { background: var(--c-surface-highest); color: var(--c-on-surface-variant); }
.sticker.is-accent { background: var(--section-accent); color: var(--section-on-accent); }
.sticker.is-hard { border: 1.5px solid var(--c-ink); box-shadow: var(--sh-hard); }

.tape {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%) rotate(-1deg);
  width: 7rem;
  height: 1.5rem;
  background: rgb(227 226 223 / 0.8);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: var(--sh-sm);
  z-index: 2;
  pointer-events: none;
}

.tape.is-label {
  width: auto;
  height: auto;
  padding: 0.125rem 1rem;
  background: rgb(233 232 228 / 0.9);
  color: var(--c-on-surface-variant);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  border-radius: var(--r);
  transform: translateX(-50%);
}

.tape.is-corner {
  left: 1.5rem;
  top: 0.5rem;
  width: 4rem;
  height: 1rem;
  transform: rotate(-3deg);
  background: rgb(255 255 255 / 0.7);
  border-radius: var(--r-sm);
}

/* ---- Polaroid card ----------------------------------------------------- */
.polaroid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--c-surface-lowest);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
}

.polaroid.is-square { border-radius: 0; }
.polaroid.is-sm { padding: 0.875rem; box-shadow: var(--sh-sm); border-radius: var(--r-lg); }
.polaroid.is-container { background: var(--c-surface-container); }

.polaroid-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--c-surface-high);
  border-radius: var(--r-lg);
  aspect-ratio: 4 / 3;
}

.polaroid.is-square .polaroid-frame { border-radius: 0; }
.polaroid-frame.is-tall { aspect-ratio: 4 / 5; }
.polaroid-frame.is-sq { aspect-ratio: 1; }
.polaroid-frame.is-56 { aspect-ratio: auto; height: 14rem; }
.polaroid-frame.is-44 { aspect-ratio: auto; height: 11rem; }
.polaroid-frame.is-48 { aspect-ratio: auto; height: 12rem; }
.polaroid-frame.is-52 { aspect-ratio: auto; height: 13rem; }
.polaroid-frame.is-72 { aspect-ratio: auto; height: 18rem; }
.polaroid-frame.is-80 { aspect-ratio: auto; height: 20rem; }

.polaroid-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.polaroid-frame.is-grayscale img {
  filter: grayscale(1) contrast(1.25);
  transition: filter 300ms var(--ease);
}

.polaroid-frame.is-grayscale:hover img { filter: none; }
.polaroid-frame.is-multiply img { mix-blend-mode: multiply; }

.polaroid-frame .stamp-tl { position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2; }
.polaroid-frame .stamp-tr { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; }
.polaroid-frame .stamp-bl { position: absolute; bottom: 0.75rem; left: 0.75rem; z-index: 2; }
.polaroid-frame .stamp-br { position: absolute; bottom: 0.75rem; right: 0.75rem; z-index: 2; }
.polaroid-frame .stamp-bl.is-tight { bottom: 0.5rem; left: 0.5rem; }
.polaroid-frame .stamp-br.is-tight { bottom: 0.5rem; right: 0.5rem; }
.polaroid-frame .stamp-tl.is-tight { top: 0.5rem; left: 0.5rem; }
.polaroid-frame .stamp-tr.is-tight { top: 0.5rem; right: 0.5rem; }

.polaroid-frame .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(48 49 46 / 0.9), transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: var(--c-inverse-on-surface);
}

.polaroid-frame .scrim.is-black { background: linear-gradient(to top, rgb(0 0 0 / 0.8), transparent 55%); }
.polaroid-frame .scrim.is-strong { background: linear-gradient(to top, var(--c-inverse-surface), rgb(48 49 46 / 0.3) 50%, transparent); }
.polaroid-frame .scrim.is-dock { padding: 0.75rem; }

.polaroid-caption {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.polaroid-caption .caption-title {
  font-family: var(--font-serif);
  font-size: var(--t-headline-sm-size);
  line-height: var(--t-headline-sm-lh);
  font-weight: 600;
  font-style: italic;
  color: var(--c-on-surface);
}

.polaroid-caption .caption-note {
  margin-top: 0.125rem;
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--t-label-sm-ls);
  text-transform: uppercase;
  color: var(--c-secondary);
}

.polaroid-caption .caption-num {
  flex-shrink: 0;
  padding: 0.25rem 0.5rem;
  border-radius: var(--r);
  background: var(--c-surface-container);
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  letter-spacing: var(--t-label-sm-ls);
  font-weight: 700;
  color: var(--c-on-surface);
}

/* handwritten tasting log note inside a polaroid */
.note {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--space-sm);
  border-radius: var(--r-lg);
  background: var(--c-surface-low);
}

.note .note-head {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--ls-wider);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-on-surface);
}

.note .note-head .icon { width: 16px; height: 16px; color: var(--c-primary); }

.note p {
  font-family: var(--font-serif);
  font-size: var(--t-body-sm-size);
  line-height: var(--t-body-sm-lh);
  font-style: italic;
  color: var(--c-on-surface-variant);
}

.note.is-tip { flex-direction: row; align-items: flex-start; gap: 0.5rem; padding: 0.5rem; border-radius: var(--r); }
.note.is-tip .icon { width: 18px; height: 18px; color: var(--c-primary); flex-shrink: 0; }
.note.is-tip p { font-family: var(--font-mono); font-style: normal; font-weight: 500; color: var(--c-on-surface); }
.note.is-tip p strong { font-weight: 700; }
.note.is-quote { flex-direction: row; align-items: flex-start; gap: 0.25rem; border-radius: 0; }
.note.is-quote .icon { width: 20px; height: 20px; color: var(--c-primary); margin-top: 0.125rem; flex-shrink: 0; }
.note.is-quote p { font-size: var(--t-body-md-size); line-height: var(--t-body-md-lh); }

/* ---- Pull quote -------------------------------------------------------- */
.pull-quote {
  position: relative;
  overflow: hidden;
  margin: 1rem 0;
  padding: 1.5rem;
  border-radius: var(--r-xl);
  background: var(--c-tertiary-container);
  color: var(--c-on-tertiary-container);
  box-shadow: var(--sh-md);
}

.pull-quote.is-lilac { background: var(--c-lilac); color: var(--c-ink); box-shadow: none; border: 2px solid var(--c-ink); border-radius: 0; }
.pull-quote.is-lg { padding: var(--space-md); border-radius: var(--r-lg); }

.pull-quote .quote-glyph {
  position: absolute;
  right: -0.5rem;
  bottom: -1rem;
  font-family: var(--font-display);
  font-size: 110px;
  line-height: 1;
  font-weight: 800;
  color: currentColor;
  opacity: 0.15;
  user-select: none;
  pointer-events: none;
}

.pull-quote.is-lilac .quote-glyph { font-size: 120px; opacity: 0.2; }

.pull-quote .quote-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--ls-widest);
  font-weight: 600;
  text-transform: uppercase;
}

.pull-quote .quote-head .icon { width: 18px; height: 18px; }

.pull-quote blockquote,
.pull-quote p {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: var(--t-headline-sm-size);
  line-height: var(--t-headline-sm-lh);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  margin: 0;
  padding: 0;
  border: 0;
}

.pull-quote.is-serif-italic p,
.pull-quote.is-serif-italic blockquote {
  font-size: var(--t-body-lg-size);
  line-height: 1.375;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
}

.pull-quote .quote-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--t-label-sm-ls);
  text-transform: uppercase;
  opacity: 0.9;
}

.pull-quote .quote-foot strong { font-weight: 700; }

/* ---- Pill filter ------------------------------------------------------- */
.pill-filter {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0.75rem var(--margin);
}

.pill-filter::-webkit-scrollbar { display: none; }

.pill-filter ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: max-content;
  padding: 0.125rem 0;
}

.pill-filter.is-tight ul { gap: 0.375rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-full);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: var(--t-label-md-size);
  line-height: var(--t-label-md-lh);
  letter-spacing: var(--ls-wider);
  font-weight: 700;
  text-transform: uppercase;
  background: var(--c-surface-high);
  color: var(--c-on-surface);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.pill .icon { width: 14px; height: 14px; }
.pill:hover { background: var(--c-surface-highest); }
.pill.is-active,
.pill[aria-pressed="true"] { background: var(--section-accent); color: var(--section-on-accent); box-shadow: var(--sh-sm); }
.pill.is-ink.is-active,
.pill.is-ink[aria-pressed="true"] { background: var(--c-on-surface); color: var(--c-surface); }
.pill.is-fixed { background: var(--c-primary-fixed); color: var(--c-on-primary-fixed-variant); }
.pill.is-muted { color: var(--c-on-surface-variant); box-shadow: var(--sh-sm); }
.pill.is-muted:hover { color: var(--c-on-surface); }
.pill.is-sm { font-size: var(--t-label-sm-size); line-height: var(--t-label-sm-lh); padding: 0.375rem 0.5rem; }

.pill-filter.is-square .pill { border-radius: var(--r); background: var(--c-surface-container); padding: 0.375rem 0.75rem; }
.pill-filter.is-square .pill.is-active { background: var(--c-inverse-surface); color: var(--c-inverse-on-surface); }
.pill-filter.is-sharp .pill { border-radius: 0; background: var(--c-surface-container); padding: 0.375rem 1rem; }
.pill-filter.is-sharp .pill:hover { background: var(--c-surface-high); }
.pill-filter.is-sharp .pill.is-active { background: var(--c-on-surface); color: var(--c-surface); box-shadow: var(--sh-sm); }

/* ---- Post card --------------------------------------------------------- */
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--c-surface-lowest);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-md);
  overflow: hidden;
}

.post-card.is-container { background: var(--c-surface-container); }
.post-card.is-low { background: var(--c-surface-low); }
.post-card.is-high { background: var(--c-surface-high); }
.post-card.is-highest { background: var(--c-surface-highest); }
.post-card.is-secondary { background: var(--c-secondary-container); color: var(--c-on-secondary-container); }
.post-card.is-ink { background: var(--c-inverse-surface); color: var(--c-inverse-on-surface); box-shadow: var(--sh-xl); }
.post-card.is-flush { padding: 0; }
.post-card.is-square { border-radius: 0; }
.post-card.is-flat { box-shadow: var(--sh-sm); }
.post-card.is-tilt-a { transform: rotate(0.5deg); }
.post-card.is-tilt-b { transform: rotate(-0.5deg); }

.post-card .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.post-card .card-index {
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--t-label-sm-ls);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-on-surface-variant);
  white-space: nowrap;
}

.post-card.is-ink .card-index,
.post-card.is-secondary .card-index { color: var(--c-secondary); font-weight: 700; }

.post-card .card-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-surface-high);
  height: 11rem;
}

.post-card.is-square .card-media { border-radius: 0; }
.post-card.is-flush .card-media { border-radius: 0; height: 12rem; }
.post-card .card-media.is-tall { height: 13rem; }
.post-card .card-media.is-taller { height: 18rem; }
.post-card .card-media.is-ratio { height: auto; aspect-ratio: 4 / 3; }
.post-card .card-media.is-ratio-tall { height: auto; aspect-ratio: 4 / 5; }
.post-card .card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card .card-media .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 0.8), transparent 55%);
}
.post-card .card-media .media-caption {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--r);
  background: rgb(48 49 46 / 0.9);
  color: var(--c-inverse-on-surface);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--t-label-sm-ls);
  text-transform: uppercase;
}

.post-card .card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
}

.post-card .card-grid-2 .card-media { height: 9rem; }

.post-card .card-body { display: flex; flex-direction: column; gap: 0.25rem; }
.post-card.is-flush .card-body { padding: var(--space-md); gap: 0.5rem; }

.post-card .card-title {
  font-family: var(--font-serif);
  font-size: var(--t-headline-sm-size);
  line-height: 1.25;
  font-weight: 600;
  color: var(--c-on-surface);
}

.post-card.is-ink .card-title { color: var(--c-inverse-on-surface); }
.post-card .card-title.is-bold { font-weight: 700; }
.post-card .card-title.is-display {
  font-family: var(--font-display);
  font-size: var(--t-headline-lg-size);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  font-weight: 700;
  text-transform: uppercase;
}
.post-card .card-title.is-display-md {
  font-family: var(--font-display);
  font-size: var(--t-headline-md-size);
  line-height: 1.375;
  letter-spacing: var(--ls-tight);
  font-weight: 700;
  text-transform: uppercase;
}
.post-card .card-title a:hover { color: var(--c-primary); }

.post-card .card-excerpt {
  font-family: var(--font-serif);
  font-size: var(--t-body-sm-size);
  line-height: var(--t-body-sm-lh);
  color: var(--c-on-surface-variant);
}

.post-card.is-ink .card-excerpt { color: var(--c-surface-highest); }
.post-card .card-excerpt.is-md { font-size: var(--t-body-md-size); line-height: var(--t-body-md-lh); }
.post-card .card-excerpt.is-lg { font-size: var(--t-body-lg-size); line-height: 1.625; color: var(--c-on-surface); }
.post-card .card-excerpt.is-italic { font-style: italic; }
.post-card .card-excerpt.is-secondary { color: var(--c-secondary); line-height: 1.625; }

.post-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.post-card .card-foot .icon { width: 20px; height: 20px; color: var(--c-primary); }

.post-card .byline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--t-label-sm-ls);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-on-surface);
  min-width: 0;
}

.post-card .byline .initials,
.initials {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--c-surface-highest);
  color: var(--c-on-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  flex-shrink: 0;
  white-space: nowrap;
  text-transform: uppercase;
}

.initials img { width: 100%; height: 100%; object-fit: cover; }
.initials.is-primary { background: var(--c-primary); color: var(--c-on-primary); }
.initials.is-tertiary { background: var(--c-tertiary); color: var(--c-on-tertiary); }
.initials.is-ink { background: var(--c-inverse-surface); color: var(--c-inverse-on-surface); }
.initials.is-secondary { background: var(--c-secondary-container); color: var(--c-on-secondary-container); }
.initials.is-lg { width: 2.75rem; height: 2.75rem; background: var(--c-primary-fixed); box-shadow: var(--sh-sm); }
.initials.is-xl { width: 3.5rem; height: 3.5rem; background: var(--c-surface-dim); box-shadow: var(--sh-sm); }

.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--ls-wider);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-primary);
}

.post-card .read-more .icon { width: 16px; height: 16px; }

.post-card .card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-card .card-link + * ,
.post-card .card-link ~ * { position: relative; }
.post-card .card-link ~ .card-media { z-index: 0; }

/* row card: thumbnail left, text right */
.post-card.is-row {
  flex-direction: row;
  gap: 0.75rem;
  padding: 0.875rem;
  box-shadow: var(--sh-sm);
}

.post-card.is-row .card-thumb {
  position: relative;
  width: 6rem;
  height: 6rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--c-surface-container);
}

.post-card.is-row.is-square .card-thumb { border-radius: 0; }
.post-card.is-row .card-thumb.is-tall { height: 8rem; }
.post-card.is-row .card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card.is-row .card-thumb .stamp {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  padding: 0.0625rem 0.25rem;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--c-on-surface);
  color: var(--c-surface);
}
.post-card.is-row .card-thumb .stamp.is-br { top: auto; left: auto; right: 0.25rem; bottom: 0.25rem; background: rgb(255 255 255 / 0.9); color: var(--c-on-surface); border-radius: var(--r); }
.post-card.is-row .card-thumb .stamp.is-tertiary { background: var(--c-tertiary-container); color: var(--c-on-tertiary-container); }
.post-card.is-row .card-thumb .stamp.is-primary { background: var(--c-primary); color: var(--c-on-primary); }

.post-card.is-row .card-body { flex: 1; min-width: 0; justify-content: space-between; }
.post-card.is-row .card-title { font-size: 18px; line-height: 1.25; font-weight: 700; }
.post-card.is-row .card-title.is-base { font-size: 16px; }

/* quote card (confessions: posts without a feature image) */
.post-card.is-quote .card-quote {
  font-family: var(--font-serif);
  font-size: var(--t-body-lg-size);
  line-height: 1.375;
  color: var(--c-on-surface);
}

.post-card.is-quote .card-quote.is-md { font-size: var(--t-body-md-size); line-height: var(--t-body-md-lh); font-style: italic; }
.post-card.is-ink.is-quote .card-quote { color: var(--c-inverse-on-surface); }

.post-card .mood {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: var(--space-xs);
  border-radius: var(--r-lg);
  background: var(--c-surface-low);
}

.post-card.is-ink .mood { background: rgb(227 226 223 / 0.2); }
.post-card.is-container .mood { background: var(--c-surface-lowest); box-shadow: var(--sh-sm); }

.post-card .mood .mood-place {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--t-label-sm-ls);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-on-surface);
}

.post-card.is-ink .mood .mood-place { color: var(--c-inverse-on-surface); }
.post-card .mood .mood-place .icon { width: 16px; height: 16px; color: var(--c-primary); flex-shrink: 0; }
.post-card.is-ink .mood .mood-place .icon { color: var(--c-tertiary-fixed-dim); }
.post-card .mood .mood-tag {
  padding: 0.125rem 0.375rem;
  border-radius: var(--r);
  background: var(--c-surface-variant);
  color: var(--c-on-surface-variant);
  font-family: var(--font-mono);
  font-size: 10px;
  white-space: nowrap;
}
.post-card.is-ink .mood .mood-tag { background: rgb(227 226 223 / 0.4); color: var(--c-inverse-on-surface); }
.post-card.is-container .mood .mood-tag { background: var(--c-primary-fixed); color: var(--c-on-primary-fixed); }

.post-card .react {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--r-full);
  background: var(--c-surface-container);
  color: var(--c-on-surface);
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--t-label-sm-ls);
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: var(--sh-sm);
}

.post-card .react .icon { width: 16px; height: 16px; color: var(--c-primary); }
.post-card.is-ink .react { background: rgb(227 226 223 / 0.3); color: var(--c-inverse-on-surface); }
.post-card.is-ink .react .icon { color: var(--c-primary-fixed); }
.post-card .react:hover { background: var(--c-primary-fixed); color: var(--c-on-primary-fixed); }

.post-card .meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--ls-widest);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--c-on-surface-variant);
}

.post-card .meta-line .is-primary { color: var(--c-primary); font-weight: 700; }

/* badge rows (lineup tags etc) */
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }

/* big numbered list rows (protocol steps / rules) */
.step {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding: var(--space-sm);
  border-radius: var(--r-xl);
  background: var(--c-surface-lowest);
  box-shadow: var(--sh-sm);
}

.step .step-num {
  font-family: var(--font-display);
  font-size: var(--t-display-lg-size);
  line-height: 1;
  font-weight: 800;
  color: var(--c-primary);
  flex-shrink: 0;
}

.step .step-num.is-sm { font-family: var(--font-mono); font-size: var(--t-label-lg-size); font-weight: 700; color: var(--c-primary-fixed-dim); }
.step .step-body { display: flex; flex-direction: column; }
.step .step-title { font-family: var(--font-mono); font-size: var(--t-label-md-size); line-height: var(--t-label-md-lh); letter-spacing: var(--t-label-md-ls); font-weight: 700; text-transform: uppercase; color: var(--c-on-surface); }
.step .step-body p { margin-top: 0.125rem; font-family: var(--font-mono); font-size: var(--t-body-sm-size); line-height: var(--t-body-sm-lh); color: var(--c-on-surface-variant); }
.step.is-ink { background: var(--c-inverse-surface); color: var(--c-surface-variant); border-radius: 0; box-shadow: none; }
.step.is-ink .step-title { color: var(--c-surface); font-size: var(--t-label-sm-size); }
.step.is-ink .step-body p { color: inherit; margin-top: 0; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer {
  width: 100%;
  margin-top: var(--space-xl);
  padding: var(--space-xl) var(--margin);
  background: var(--c-surface-low);
}

.site-footer .footer-inner { display: flex; flex-direction: column; gap: var(--space-md); }

.site-footer .footer-brand {
  font-family: var(--font-display);
  font-size: var(--t-headline-sm-size);
  line-height: 1.2;
  letter-spacing: var(--ls-tighter);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--c-primary);
}

.site-footer .footer-tag {
  font-family: var(--font-serif);
  font-size: var(--t-body-sm-size);
  line-height: var(--t-body-sm-lh);
  font-style: italic;
  color: var(--c-on-surface-variant);
}

.site-footer .footer-chips { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); }
.site-footer .footer-about .footer-chips { margin-top: 0.75rem; }
.site-footer .footer-chips .chip { padding: 0.25rem 0.5rem; }
.site-footer .footer-chips .chip:nth-child(3n+2) { background: var(--c-primary); color: var(--c-on-primary); }
.site-footer .footer-chips .chip:nth-child(3n) { background: var(--c-tertiary); color: var(--c-on-tertiary); }
.site-footer .footer-chips .chip:nth-child(3n+1) { background: var(--c-surface-high); color: var(--c-on-surface); }

.site-footer .footer-pitch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: var(--space-md);
  border-radius: var(--r-lg);
  background: var(--c-surface-container);
}

.site-footer .footer-pitch:hover { background: var(--c-surface-high); }
.site-footer .footer-pitch .pitch-title { font-family: var(--font-display); font-size: var(--t-body-sm-size); font-weight: 700; text-transform: uppercase; color: var(--c-on-surface); }
.site-footer .footer-pitch .pitch-sub { font-family: var(--font-mono); font-size: var(--t-label-sm-size); line-height: var(--t-label-sm-lh); letter-spacing: var(--t-label-sm-ls); color: var(--c-on-surface-variant); }
.site-footer .footer-pitch .icon { width: 24px; height: 24px; color: var(--c-primary); }

.site-footer .footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  line-height: var(--t-label-sm-lh);
  letter-spacing: var(--t-label-sm-ls);
  text-transform: uppercase;
  color: var(--c-on-surface-variant);
}

.site-footer .footer-legal a:hover { color: var(--c-primary); }

/* small centred colophon (chow / survival / profile screens) */
.colophon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  padding: 2rem var(--margin) 1rem;
}

.colophon .rule { width: 2.5rem; height: 2px; background: var(--c-outline-variant); margin-bottom: 0.5rem; }
.colophon .rule.is-primary { width: 3rem; background: var(--c-primary); }
.colophon .colophon-title { font-family: var(--font-mono); font-size: var(--t-label-sm-size); letter-spacing: var(--ls-widest); font-weight: 700; text-transform: uppercase; color: var(--c-on-surface-variant); }
.colophon p { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; color: var(--c-on-surface-variant); max-width: 24rem; }
.colophon p.is-serif { font-family: var(--font-serif); font-size: var(--t-body-md-size); line-height: var(--t-body-md-lh); font-style: italic; }

/* ---- Forms ------------------------------------------------------------- */
.field {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: var(--r-lg);
  background: var(--c-surface-lowest);
  color: var(--c-on-surface);
  font-family: var(--font-mono);
  font-size: var(--t-body-sm-size);
  line-height: var(--t-body-sm-lh);
  box-shadow: var(--sh-inner);
  outline: none;
}

.field::placeholder { color: rgb(91 64 59 / 0.6); }
.field:focus { box-shadow: 0 0 0 2px var(--c-primary); }
.field.is-square { border-radius: 0; }
.field.is-underline { border-radius: 0; box-shadow: none; border-bottom: 2px solid var(--c-ink); }
.field.is-underline:focus { border-bottom-width: 3px; }

.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-family: var(--font-mono); font-size: var(--t-label-sm-size); line-height: var(--t-label-sm-lh); letter-spacing: var(--ls-wider); font-weight: 700; text-transform: uppercase; }
.form-hint { font-family: var(--font-mono); font-size: var(--t-label-sm-size); line-height: var(--t-label-sm-lh); color: var(--c-on-surface-variant); }

.form-success,
.form-error { display: none; align-items: center; gap: 0.5rem; padding: var(--space-sm); border-radius: var(--r-lg); font-family: var(--font-mono); font-size: var(--t-label-sm-size); letter-spacing: var(--t-label-sm-ls); text-transform: uppercase; }
.form-success { background: var(--c-surface-lowest); color: var(--c-on-surface); }
.form-success .icon { width: 20px; height: 20px; color: var(--c-primary); }
.form-error { background: var(--c-error-container); color: var(--c-on-error-container); }
form.success .form-success { display: flex; }
form.success .form-fields { display: none; }
form.error .form-error { display: flex; }
form.loading button[type="submit"] { opacity: 0.6; pointer-events: none; }

/* ---- Pagination -------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-md) var(--margin);
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  letter-spacing: var(--ls-widest);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--c-on-surface-variant);
}

.pagination a { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.5rem 0.75rem; background: var(--c-surface-container); color: var(--c-on-surface); }
.pagination a:hover { background: var(--c-primary); color: var(--c-on-primary); }
.pagination .icon { width: 14px; height: 14px; }

/* ---- Share dock (sticky, bottom of article) ---------------------------- */
.share-dock {
  position: sticky;
  bottom: 0;
  z-index: 40;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem var(--margin);
  background: rgb(255 255 255 / 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 -2px 10px rgb(0 0 0 / 0.06);
}

.share-dock .share-label { display: flex; align-items: center; gap: 0.375rem; font-family: var(--font-mono); font-size: var(--t-label-sm-size); letter-spacing: var(--t-label-sm-ls); font-weight: 700; text-transform: uppercase; color: var(--c-on-surface); }
.share-dock .share-label .icon { width: 20px; height: 20px; color: var(--c-primary); }
.share-dock .share-actions { display: flex; align-items: center; gap: 0.5rem; }
.share-dock .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  border-radius: var(--r-lg);
  background: var(--c-surface-container);
  color: var(--c-on-surface);
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  letter-spacing: var(--t-label-sm-ls);
  font-weight: 700;
  text-transform: uppercase;
}
.share-dock .share-btn .icon { width: 16px; height: 16px; color: var(--c-primary); }
.share-dock .share-btn:hover { background: var(--c-surface-high); }
.share-dock .share-btn.is-tertiary { background: var(--c-tertiary); color: var(--c-on-tertiary); box-shadow: var(--sh-sm); }
.share-dock .share-btn.is-tertiary .icon { color: inherit; }
.share-dock .share-btn.is-icon { width: 2rem; height: 2rem; padding: 0; justify-content: center; }
.share-dock .share-btn.is-icon .icon { width: 18px; height: 18px; color: var(--c-on-surface); }
.share-dock .share-btn.is-icon:hover .icon { color: var(--c-primary); }

/* ---- Story image sheet (assets/js/story.js) ----------------------------- */
.story-sheet { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: var(--space-md); background: rgb(27 28 26 / 0.82); }
.story-sheet.is-open { display: flex; }
.story-sheet-box { position: relative; display: flex; flex-direction: column; gap: var(--space-sm); width: min(100%, 22rem); max-height: 100%; overflow-y: auto; padding: var(--space-md); border-radius: var(--r-xl); background: var(--c-surface); box-shadow: var(--sh-2xl); }
.story-sheet-close { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 1; width: 2.25rem; height: 2.25rem; border: 0; border-radius: 999px; cursor: pointer; background: var(--c-surface-high); color: var(--c-on-surface); font-size: 1.5rem; line-height: 1; }
.story-sheet-frame { position: relative; align-self: center; height: min(40vh, 22rem); aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-lg); background: var(--c-inverse-surface, #30312e); box-shadow: var(--sh-md); }
.story-sheet-img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 200ms var(--ease); }
.story-sheet-wait { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-mono); font-size: var(--t-label-sm-size); letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--c-surface-variant); }
.story-sheet.is-ready .story-sheet-img { opacity: 1; }
.story-sheet.is-ready .story-sheet-wait { display: none; }
.story-sheet:not(.is-ready) .story-sheet-share, .story-sheet:not(.is-ready) .story-sheet-save { pointer-events: none; opacity: 0.5; }
.story-sheet-hint { font-size: var(--t-body-sm-size); line-height: var(--t-body-sm-lh); color: var(--c-on-surface-variant); }
.story-sheet-share[hidden] { display: none; }
.story-sheet-looks { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: var(--space-xs); }
.story-look { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.25rem; border: 0; border-radius: var(--r-lg); background: none; color: var(--c-on-surface-variant); font-family: var(--font-mono); font-size: var(--t-label-sm-size); letter-spacing: var(--ls-widest); text-transform: uppercase; cursor: pointer; }
.story-look img { display: block; width: 100%; max-width: 3.5rem; aspect-ratio: 9 / 16; border-radius: var(--r); background: var(--c-surface-high); object-fit: cover; box-shadow: var(--sh-sm); }
.story-look[aria-pressed="true"] { color: var(--c-primary); font-weight: 700; }
.story-look[aria-pressed="true"] img { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.story-sheet-by { display: flex; flex-direction: column; gap: 0.25rem; font-family: var(--font-mono); font-size: var(--t-label-sm-size); letter-spacing: var(--ls-widest); text-transform: uppercase; color: var(--c-on-surface-variant); }
.story-sheet-by input { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid var(--c-outline-variant, #e4beb6); border-radius: var(--r); background: var(--c-surface-lowest, #fff); color: var(--c-on-surface); font: inherit; font-family: var(--font-sans, inherit); letter-spacing: normal; text-transform: none; font-size: 1rem; }
.story-sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xs); }

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-h) + 2.5rem);
  transform: translate(-50%, 1rem);
  z-index: 70;
  padding: 0.5rem 0.875rem;
  background: var(--c-inverse-surface);
  color: var(--c-lime);
  font-family: var(--font-mono);
  font-size: var(--t-label-sm-size);
  letter-spacing: var(--ls-widest);
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--r);
  box-shadow: var(--sh-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* brand-collab disclosure: posts with the internal tag #collab (paid) or #gifted (free product).
   Lime on ink text reads on light and dark cards alike (14.6:1). */
.collab-tag {
  display: table;
  margin: 0 0 0.375rem;
  padding: 0.2rem 0.45rem;
  border-radius: var(--r-sm);
  background: var(--c-lime);
  color: #1b1c1a;
  font: 700 0.625rem/1.2 var(--font-mono);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  white-space: nowrap;
}
.collab-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; font-family: var(--font-mono); font-size: 0.9375rem; color: var(--c-on-surface); }
.collab-note .collab-tag { margin: 0; padding: 0.3rem 0.6rem; font-size: 0.75rem; }

/* fest dates: assets/js/fests.js fills these from the post's "#fest <dates>" tag; hide the publish-date stand-in until then */
[data-fest^="hash-fest-"]:not(.fest-ready) [data-fest-when] { visibility: hidden; }
.post-card.is-fest.is-past, .dk-fest.is-past { opacity: 0.6; }
/* lists that fests.js sorts and trims (data-fest-max): before it runs, show only the first few; after, its hidden ones stay hidden */
[data-fest-max="1"] > [data-fest]:nth-child(n+2):not(.fest-ready),
[data-fest-max="3"] > [data-fest]:nth-child(n+4):not(.fest-ready),
[data-fest-max="4"] > [data-fest]:nth-child(n+5):not(.fest-ready),
[data-fest-max="5"] > [data-fest]:nth-child(n+6):not(.fest-ready),
[data-fest-sort] > [hidden] { display: none !important; }
