:root {
  --pistachio: #d7e69c;
  --pistachio-deep: #c5d67a;
  --burnt: #d36922;
  --cocoa: #5b3720;
  --cream: #fff1d9;
  --blood: #be3c27;
  --cherry: #af282e;
  --charcoal: #2b2c30;
  --ink: #2b2c30;
  --muted: #5b3720;
  --paper: #fff1d9;
  --card: #fffaf0;
  --line: #5b3720;
  --accent: #d36922;
  --accent-dark: #5b3720;
  --good: #5f7a32;
  --warn: #d36922;
  --gold: #d36922;
  --gold-lite: #fff1d9;
  --parchment: #fff1d9;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Poppins, "Segoe UI", sans-serif;
  background-color: var(--pistachio);
  background-image: repeating-conic-gradient(
    var(--pistachio-deep) 0% 25%,
    var(--pistachio) 0% 50%
  );
  background-size: 88px 88px;
  color: var(--ink);
  min-height: 100vh;
}
a { color: var(--burnt); }
main, footer { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
main {
  margin-top: 22px;
  padding: 28px 32px 40px;
  background: var(--cream);
  border: 4px solid var(--cocoa);
  box-shadow: 6px 6px 0 var(--cocoa);
  overflow-wrap: anywhere;
}
.site-bar {
  width: 100%;
  background: var(--pistachio);
  border-bottom: 6px solid var(--burnt);
  box-shadow: inset 0 -4px 0 var(--cocoa);
}
header {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.brand img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 3px solid var(--cocoa);
  border-radius: 4px;
  background: var(--pistachio);
  box-shadow: 3px 3px 0 var(--cocoa);
}
.brand-text { min-width: 0; }
.brand-name {
  display: block;
  font-family: "Pixelify Sans", Poppins, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--cocoa);
  text-shadow: 2px 2px 0 var(--cream);
}
.brand-tag {
  display: block;
  margin-top: 4px;
  font-family: Poppins, sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--burnt);
}
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--cocoa);
  background: var(--cream);
  border: 3px solid var(--cocoa);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  box-shadow: 3px 3px 0 var(--cocoa);
}
nav a:hover,
nav a[aria-current="page"] {
  background: var(--burnt);
  color: var(--cream);
}
h1, h2, h3 {
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--charcoal);
}
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 22px 0 10px; }
.lede { color: var(--cocoa); max-width: 42rem; line-height: 1.5; }
main > .lede {
  max-width: 42rem;
  white-space: normal;
}
main.legal > .lede {
  max-width: 46rem;
  white-space: normal;
}
.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}
.page-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.92rem;
  background: var(--cream);
  color: var(--cocoa);
  border: 3px solid var(--cocoa);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--cocoa);
}
.page-tabs button.active {
  background: var(--burnt);
  color: var(--cream);
}
.search {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 18px;
}
.search input,
.search select {
  width: 100%;
  min-width: 0;
}
.name-search {
  display: grid;
  gap: 10px;
  margin: 18px 0 18px;
  justify-items: start;
}
.name-field {
  position: relative;
  width: 100%;
  min-height: 54px;
  background: var(--pistachio);
  border: 3px solid var(--cocoa);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--cocoa);
  contain: layout style;
}
.name-field-face {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  font-family: "Pixelify Sans", Poppins, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cocoa);
  pointer-events: none;
}
.name-hints {
  display: inline-flex;
  align-items: center;
}
.name-hint {
  display: none;
  white-space: nowrap;
}
.name-hint.is-on { display: inline; }
.name-field.is-typed .name-hints,
.name-field:focus-within .name-hints { display: none; }
.name-field:not(:has(#q:placeholder-shown)) .name-field-face { display: none; }
.name-cursor {
  display: inline-block;
  width: 10px;
  height: 1.05em;
  margin-left: 2px;
  flex-shrink: 0;
  background: var(--cocoa);
  animation: name-blink 1.05s step-end infinite;
}
@keyframes name-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.name-field input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: var(--cocoa);
  caret-color: var(--cocoa);
  cursor: text;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0 14px;
}
.name-field:has(#q:placeholder-shown) #q {
  caret-color: transparent;
}
.name-field input::placeholder {
  color: transparent;
}
#fine-tune-btn {
  justify-self: start;
  font-size: 0.85rem;
  padding: 6px 10px;
  box-shadow: 2px 2px 0 var(--cocoa);
}
.name-fine {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.name-fine[hidden] {
  display: none;
}
.name-fine input,
.name-fine select {
  width: 100%;
  min-width: 0;
}
.stock-filters {
  align-items: center;
}
.stock-filters .meta {
  margin: 0;
  display: flex;
  align-items: center;
}
.stock-table-wrap {
  overflow: auto;
  max-height: min(70vh, 720px);
  border: 3px solid var(--cocoa);
  border-radius: 8px;
  background: var(--card);
}
.stock-table {
  table-layout: auto;
  font-size: 0.88rem;
  margin: 0;
}
.stock-table th {
  position: sticky;
  top: 0;
  background: var(--pistachio);
  z-index: 1;
  white-space: nowrap;
}
.stock-table td { overflow-wrap: anywhere; }
.stock-id {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 700;
}
input, select, textarea, button {
  font: inherit;
  border: 3px solid var(--cocoa);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
}
button {
  background: var(--burnt);
  color: var(--cream);
  border-color: var(--cocoa);
  cursor: pointer;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--cocoa);
}
button.secondary {
  background: var(--cream);
  color: var(--burnt);
}
button.danger {
  background: var(--cream);
  color: var(--burnt);
  font-size: 0.8rem;
  padding: 4px 8px;
  margin-left: 0;
  box-shadow: 2px 2px 0 var(--cocoa);
}
.meta { color: var(--cocoa); margin-bottom: 16px; }
.grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.result {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.card {
  background: var(--card);
  border: 3px solid var(--cocoa);
  border-radius: 10px;
  padding: 14px 16px;
  box-shadow: 4px 4px 0 var(--pistachio-deep);
  cursor: pointer;
  min-width: 0;
  position: relative;
  z-index: 0;
}
.card:hover,
.card.is-mapped { border-color: var(--burnt); }
.grid > #map-panel,
.result > #map-panel { width: 100%; flex: 0 0 auto; }
.card h3 { margin: 0 0 4px; font-size: 1.15rem; letter-spacing: -0.03em; }
.card p { margin: 0; color: var(--cocoa); }
.shop { margin-top: 10px; font-size: 0.95rem; color: var(--burnt); font-weight: 700; }
.empty { padding: 40px 0; color: var(--cocoa); }
.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
}
.admin-grid > .card {
  cursor: default;
  max-width: 100%;
}
.admin-grid > .card:hover { border-color: var(--cocoa); }
.admin-grid .card h2 { margin-top: 0; }
.store-item { margin: 0 0 14px; }
.store-item:last-of-type { margin-bottom: 0; }
.store-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.store-edit { margin-top: 8px; }
.store-edit:not(.is-open) { display: none; }
.store-edit.is-open { display: grid; }
.store-tags button.secondary {
  font-size: 0.8rem;
  padding: 4px 8px;
  box-shadow: 2px 2px 0 var(--cocoa);
}
.form-grid > input,
.form-grid > textarea,
.form-grid > select,
.form-grid > .address-lookup,
.form-grid > .upload-actions,
.form-grid > .check-row {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.field-label {
  font-weight: 700;
  color: var(--cocoa);
}
.upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0;
  padding: 4px 0 0;
  border: 0;
}
.upload-actions legend {
  padding: 0;
  font-weight: 700;
  color: var(--cocoa);
}
.upload-actions label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  cursor: pointer;
}
.upload-actions input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--cocoa);
}
.upload-hint { margin: 0; }
.upload-progress {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.upload-progress[hidden] { display: none; }
.upload-progress-track {
  height: 18px;
  border: 3px solid var(--cocoa);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--cocoa);
  overflow: hidden;
}
.upload-progress-bar {
  width: 0;
  height: 100%;
  background: var(--burnt);
  transition: width 0.15s linear;
}
.upload-progress-label { margin: 0; }
.address-lookup {
  position: relative;
}
.address-lookup input {
  width: 100%;
}
.address-suggestions {
  position: fixed;
  z-index: 80;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: var(--card);
  border: 3px solid var(--cocoa);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--cocoa);
  max-height: 240px;
  overflow: auto;
}
.address-suggestions li {
  margin: 0;
}
.address-suggestions button {
  display: block;
  width: 100%;
  background: transparent;
  color: var(--ink);
  border: 0;
  box-shadow: none;
  border-radius: 0;
  text-align: left;
  font-weight: 400;
  padding: 8px 12px;
}
.address-suggestions button:hover,
.address-suggestions button:focus {
  background: var(--pistachio);
}
#jobs, #pending, #stores, #ingest-out {
  max-width: 100%;
  overflow-x: auto;
}
#ingest-out {
  white-space: pre-wrap;
}
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.admin-grid table { table-layout: fixed; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--pistachio-deep); vertical-align: top; overflow-wrap: anywhere; }
.pill {
  display: inline-flex;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--pistachio);
  color: var(--cocoa);
  font-size: 0.8rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ok { color: var(--good); }
.warn { color: var(--warn); }
footer { padding: 22px 0 32px; color: var(--cocoa); font-weight: 400; }
.shop-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 0 0 10px;
}
.shop-index a {
  color: var(--cocoa);
  font-size: 0.85rem;
  font-weight: 700;
}
.shop-link {
  flex-shrink: 0;
  color: var(--burnt);
  font-weight: 700;
  font-size: 0.9rem;
}
.store-tags .shop-link {
  font-size: 0.8rem;
  padding: 4px 2px;
}
.shop-page .card { cursor: default; }
.shop-page .card:hover { border-color: var(--cocoa); }
.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 22px;
}
.shop-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 3px solid var(--cocoa);
  border-radius: 8px;
  background: var(--cream);
  color: var(--burnt);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--cocoa);
}
.shop-search { margin: 0 0 8px; }
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--cocoa);
}
.check-row input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--cocoa);
}
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0 0 8px;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.legal-tabs a {
  flex: none;
  display: inline;
  min-height: 0;
  padding: 2px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--cocoa);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.75;
  border-right: 1px solid rgba(91, 55, 32, 0.28);
}
.legal-tabs a:last-child { border-right: 0; }
.legal-tabs a:hover,
.legal-tabs a[aria-current="page"] {
  background: transparent;
  color: var(--cocoa);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-note {
  margin: 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.7;
}
.footer-shop {
  margin: 12px 0 0;
  text-align: center;
}
.footer-shop a {
  color: var(--cocoa);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.8;
}
.footer-shop a:hover,
.footer-shop a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal .meta { margin-bottom: 8px; }
.legal-lede { white-space: normal; max-width: 46rem; }
.legal article {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--pistachio-deep);
}
.legal article:first-of-type {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}
.legal h1 { margin-bottom: 12px; }
.legal h2 { margin-top: 1.4em; }
.legal p,
.legal li {
  color: var(--cocoa);
  line-height: 1.55;
  max-width: 46rem;
}
.legal ul { padding-left: 1.2em; max-width: 46rem; }
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.button-row button { margin: 0; }
.form-grid { display: grid; gap: 8px; }
.form-grid > label,
.login-form .field-block > label {
  display: block;
}
.login-form .field-block {
  display: grid;
  gap: 8px;
}
.login-form .field-block[hidden] {
  display: none;
}
.login-form .field-block input,
.login-form .field-block select {
  width: 100%;
  min-width: 0;
}
.login-form .password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}
.login-form .secondary {
  justify-self: start;
  font-size: 0.85rem;
  padding: 6px 10px;
  box-shadow: 2px 2px 0 var(--cocoa);
}
.desk-main {
  max-width: 52rem;
}
.drop-zone {
  position: relative;
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 40px 16px;
  border: 3px dashed var(--cocoa);
  border-radius: 10px;
  background: var(--cream);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--pistachio-deep);
}
.drop-zone strong {
  font-size: 1.15rem;
  color: var(--cocoa);
}
.drop-zone .meta {
  margin: 0;
  max-width: 28rem;
}
.drop-zone input[type="file"] {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
}
.drop-zone.is-drag {
  background: var(--pistachio);
  border-style: solid;
}
.desk-main .stock-table-wrap {
  margin-top: 8px;
}
.upload-main { max-width: 32rem; }
.login-form { margin-top: 12px; }
.map-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin: 8px 0 12px;
  flex-wrap: wrap;
}
.map-toolbar .meta { margin: 0; }
.map-wrap {
  position: relative;
  height: 380px;
  border: 3px solid var(--cocoa);
  border-radius: 10px;
  margin: 0 0 18px;
  box-shadow: 4px 4px 0 var(--pistachio-deep);
  overflow: hidden;
  background: var(--cream);
  contain: strict;
}
.map {
  height: 100%;
  border: 0;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
  background: var(--cream);
}
.map .leaflet-tile-pane {
  filter: saturate(0.35) contrast(0.92) sepia(0.18);
}
.map .leaflet-gl-layer,
.map .maplibregl-map {
  height: 100%;
  width: 100%;
}
.map .maplibregl-canvas {
  filter: saturate(0.5) contrast(0.94) sepia(0.14);
}
.map .leaflet-control-attribution {
  background: rgba(255, 241, 217, 0.85);
  color: var(--cocoa);
  font-size: 0.7rem;
}
.shop-pin span {
  display: block;
  width: 16px;
  height: 16px;
  margin: 3px;
  border-radius: 50%;
  background: var(--burnt);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px var(--cocoa);
}
.map-info {
  position: absolute;
  z-index: 1000;
  max-width: min(340px, calc(100% - 20px));
  max-height: calc(100% - 20px);
  overflow: auto;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--cocoa);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--cocoa);
  padding: 12px 14px;
}
.map-popup h3 { margin: 0 0 4px; font-size: 1.05rem; }
.map-popup.is-compact h3 { margin: 0; font-size: 0.95rem; }
.map-info:has(.map-popup.is-compact) { padding: 7px 10px; }
.map-popup p { margin: 0 0 8px; color: var(--cocoa); }
.map-popup ul { margin: 0; padding-left: 0; list-style: none; }
.map-popup li {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--pistachio-deep);
}
.map-popup li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.map-popup .card-actions { margin-top: 8px; flex-wrap: wrap; }
.map-popup .contact-btn { padding: 5px 10px; font-size: 0.85rem; }
.map-more { margin-top: 8px; color: var(--cocoa); font-size: 0.9rem; }
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
.card-actions .seen {
  min-width: 0;
  flex: 1;
}
.card-actions a.shop-link,
.card-actions button,
.contact-btn {
  flex-shrink: 0;
  white-space: nowrap;
}
.seen { color: var(--cocoa); font-size: 0.9rem; }
.card-actions button { padding: 6px 12px; font-size: 0.95rem; }
.contact-dialog {
  border: 4px solid var(--cocoa);
  border-radius: 12px;
  padding: 20px;
  background: var(--cream);
  color: var(--ink);
  width: min(420px, 92vw);
  box-shadow: 6px 6px 0 var(--cocoa);
}
.contact-dialog::backdrop { background: rgba(43, 44, 48, 0.4); }
.phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0 4px;
}
.phone-row a { font-size: 1.15rem; }
.dialog-actions { display: flex; gap: 8px; }
@media (max-width: 800px) {
  .search, .admin-grid, .name-fine { grid-template-columns: minmax(0, 1fr); }
  header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 0 12px;
  }
  nav { justify-content: stretch; }
  nav a { flex: 1; }
  main { padding: 18px 16px 24px; }
  .map-wrap { height: 260px; }
  main > .lede { white-space: normal; }
}
@media (max-width: 480px) {
  main, footer { width: min(1080px, calc(100% - 20px)); }
  header { width: min(1080px, calc(100% - 16px)); }
  .brand img { width: 44px; height: 44px; }
  .brand-tag { letter-spacing: 0.06em; font-size: 0.58rem; }
  body { background-size: 56px 56px; }
  .map-wrap { height: 220px; }
}
#discover-rows .discover-shelf:first-child { margin-top: 8px; }
.catalogue-cta {
  margin: 36px 0 8px;
  text-align: center;
}
.catalogue-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--cream);
  background: var(--burnt);
  border: 3px solid var(--cocoa);
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--cocoa);
}
.catalogue-btn:hover { background: var(--cocoa); color: var(--cream); }
#map-panel:not(.is-open) {
  display: none;
}
#map-panel.is-open {
  display: block;
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.discover-shelf { margin-top: 28px; }
.discover-shelf h2 { margin-bottom: 12px; }
.discover-carousel { min-width: 0; }
.discover-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 5);
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
  padding: 4px 2px 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.discover-track::-webkit-scrollbar { display: none; }
.discover-scroll {
  height: 5px;
  margin: 2px 2px 0;
  border-radius: 99px;
  background: #c9a57c;
  overflow: hidden;
}
.discover-scroll i {
  display: block;
  height: 100%;
  width: 20%;
  border-radius: 99px;
  background: #5b3720;
}
.discover-track:focus { outline: none; }
.discover-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 3px solid var(--cocoa);
  box-shadow: 3px 3px 0 var(--cocoa);
}
.discover-card:hover { background: var(--pistachio); }
.discover-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 2 / 3;
  background: var(--cocoa);
  color: var(--cream);
  font-family: "Pixelify Sans", Poppins, sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  overflow: hidden;
}
.discover-cover-letter { pointer-events: none; }
.discover-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--cocoa);
}
.discover-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px 10px;
  min-height: 7.5rem;
}
.discover-card-body strong {
  font-size: 0.92rem;
  line-height: 1.25;
}
.discover-card-body em {
  font-style: normal;
  color: var(--cocoa);
  font-size: 0.82rem;
}
.discover-shop {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--burnt);
  font-weight: 700;
}
.discover-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--burnt);
  padding: 2px 6px;
}
@media (max-width: 900px) {
  .discover-track { grid-auto-columns: calc((100% - 20px) / 3); }
}
@media (max-width: 640px) {
  .discover-track { grid-auto-columns: calc((100% - 10px) / 2); }
}
.how-page .lede { margin-bottom: 26px; }
.how-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.how-step {
  position: relative;
  margin: 0;
  padding: 16px 16px 18px;
  background: var(--card);
  border: 3px solid var(--cocoa);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--cocoa);
}
.how-num {
  position: absolute;
  top: -12px;
  left: -8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: "Pixelify Sans", Poppins, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  background: var(--burnt);
  border: 3px solid var(--cocoa);
  box-shadow: 3px 3px 0 var(--cocoa);
}
.how-art {
  display: grid;
  place-items: center;
  height: 176px;
  margin: 8px 0 14px;
  background: var(--pistachio);
  background-image: repeating-conic-gradient(
    var(--pistachio-deep) 0% 25%,
    var(--pistachio) 0% 50%
  );
  background-size: 22px 22px;
  border: 3px solid var(--cocoa);
  border-radius: 8px;
  overflow: hidden;
}
.how-art svg {
  width: min(96%, 380px);
  height: 150px;
}
.how-art svg rect {
  shape-rendering: crispEdges;
}
.how-split {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 12px;
  padding: 16px 22px 16px 14px;
  height: 176px;
}
.how-split svg {
  width: auto;
  height: 100%;
  max-width: 100%;
  justify-self: center;
}
.how-ticket {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 7.4rem;
  margin: 0;
  padding: 16px 12px;
  background: var(--card);
  border: 3px solid var(--cocoa);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--cocoa);
}
.how-ticket b,
.how-ticket span {
  display: block;
  font-family: Poppins, sans-serif;
  font-size: 1.12rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.how-ticket b { color: var(--cocoa); }
.how-ticket span { color: var(--burnt); }
.how-step h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.how-scan {
  animation: how-scan 2.4s ease-in-out infinite;
}
.how-cam {
  animation: how-cam 2.8s ease-in-out infinite;
}
.how-flash,
.how-flash-wash {
  opacity: 0;
  pointer-events: none;
}
.how-flash {
  animation: how-flash 5.2s ease-out infinite;
}
.how-flash-wash {
  animation: how-flash-wash 5.2s ease-out infinite;
}
@keyframes how-scan {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(42px); }
}
@keyframes how-cam {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes how-flash {
  0%, 68%, 80%, 100% { opacity: 0; }
  70% { opacity: 0.95; }
  73% { opacity: 0.4; }
}
@keyframes how-flash-wash {
  0%, 68%, 80%, 100% { opacity: 0; }
  70% { opacity: 0.55; }
  73% { opacity: 0.12; }
}
.how-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.how-cta-shop {
  background: var(--cream);
  color: var(--cocoa);
}
.how-cta-shop:hover {
  background: var(--cocoa);
  color: var(--cream);
}
@media (max-width: 800px) {
  .how-steps { grid-template-columns: 1fr; }
}
