/* Parade: bunting and shopfronts. Painted-shopfront palette on warm paper. */
:root {
  --paper: #F6EEDC;
  --paper-2: #EDE2C8;
  --ink: #1D2740;
  --navy: #1B2C4E;
  --red: #C23B2E;
  --red-deep: #9E2C22;
  --sage: #9DB596;
  --sage-pale: #DDE6D2;
  --mustard: #E3A92B;
  --muted: #55596A;
  --line: #CDBE9C;
  --radius: 14px;
  --f-display: "Bevan", Georgia, "Times New Roman", serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--f-body); overflow-wrap: break-word; padding-bottom: 84px; }
@media (min-width: 860px) { body { padding-bottom: 0; } }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--red-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.top :focus-visible, .foot :focus-visible, .mobile-bar :focus-visible { outline-color: var(--mustard); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .2px; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
ol, ul { padding-left: 1.2em; }
.wrap { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--red-deep); margin: 0 0 10px; }
.lede { font-size: 1.15rem; max-width: 60ch; }
.fine { font-size: 15px; color: var(--muted); }

/* Bunting dividers */
.bunting { height: 40px; background: url(art/bunting.svg) repeat-x center top; }
.bunting + .bunting { display: none; }

/* Header */
.top { background: var(--navy); color: var(--paper); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; flex-wrap: wrap; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font-family: var(--f-display); font-size: 1.45rem; min-height: 44px; }
.mark:hover { color: var(--mustard); }
.mark-icon { width: 34px; height: 34px; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a { color: var(--paper); text-decoration: none; padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.nav a:hover { background: rgba(246, 238, 220, .14); color: var(--paper); }
.nav a[aria-current="page"] { background: var(--mustard); color: var(--ink); }
.nav .nav-cta { margin-left: 8px; background: var(--red); color: #fff; }
.nav .nav-cta[aria-current="page"] { background: var(--mustard); color: var(--ink); }
.mnav { position: relative; }
.mnav summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; padding: 10px 16px; border: 2px solid var(--paper); border-radius: 999px; font-weight: 700; color: var(--paper); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { background: var(--paper); color: var(--navy); }
.mnav-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: var(--radius); padding: 8px; display: grid; gap: 4px; z-index: 10; box-shadow: 6px 6px 0 var(--mustard); }
.mnav-panel a { display: flex; align-items: center; min-height: 48px; padding: 10px 14px; border-radius: 10px; color: var(--ink); font-weight: 700; text-decoration: none; }
.mnav-panel a:hover, .mnav-panel a[aria-current="page"] { background: var(--mustard); }
.mnav-panel .nav-cta { background: var(--red); color: #fff; }
.mnav-panel .nav-cta[aria-current="page"] { background: var(--mustard); color: var(--ink); }
@media (min-width: 860px) { .nav { display: flex; } .mnav { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 700 16px/1.2 var(--f-body); text-decoration: none; border: 2px solid var(--ink); background: var(--ink); color: var(--paper); cursor: pointer; }
.btn:hover { color: var(--paper); filter: brightness(1.1); }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { color: #fff; background: var(--red-deep); border-color: var(--red-deep); }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }

/* Hero and search */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; padding: 36px 0 28px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.05fr .95fr; padding: 60px 0 44px; } }
.hero h1 { margin-bottom: .3em; }
.hero-copy .lede { margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fig { margin: 0; }
.hero-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper-2); }

/* Category tiles */
.section { padding: 40px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 22px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(7, 1fr); } }
.tile { display: flex; flex-direction: column; gap: 14px; min-height: 130px; padding: 16px; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper-2); color: var(--ink); text-decoration: none; box-shadow: 4px 4px 0 var(--ink); }
.tile:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.tile:nth-child(4n+1) { background: var(--red); color: #fff; }
.tile:nth-child(4n+1):hover { color: #fff; }
.tile:nth-child(4n+2) { background: var(--sage-pale); }
.tile:nth-child(4n+3) { background: var(--mustard); }
.tile:nth-child(4n+4) { background: var(--navy); color: var(--paper); }
.tile:nth-child(4n+4):hover { color: var(--paper); }
.tile-icon { align-self: flex-start; width: 48px; height: 48px; padding: 6px; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; }
.tile-name { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.15; }

/* Featured cards */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 5px 5px 0 var(--sage); display: flex; flex-direction: column; }
.card .photo { border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; }
.card-body { padding: 18px 20px 22px; }
.card h3 { font-size: 1.5rem; margin: 8px 0 6px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--red-deep); text-decoration: underline; }
.card-meta { font-size: 15px; color: var(--muted); }
.chip { margin: 0; }
.chip a { display: inline-flex; min-height: 44px; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--sage-pale); color: var(--ink); font-size: 14px; font-weight: 700; text-decoration: none; border: 2px solid var(--ink); }
.more { margin-top: 22px; font-weight: 700; }
.cards-empty, .tiles-empty, .cat-empty { padding: 20px; border: 2px dashed var(--ink); border-radius: var(--radius); background: var(--paper-2); }

/* Market day band */
.band { background: var(--sage); border-block: 2px solid var(--ink); padding: 40px 0; }
.band-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
@media (min-width: 900px) { .band-in { grid-template-columns: 1.2fr .8fr; } }
.band h2 { margin-bottom: .3em; }
.band .eyebrow { color: var(--ink); }
.band-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.band-list li { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 14px 18px; }
.band-list strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; color: var(--red-deep); }

/* Ask to be listed */
.ask { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: center; padding: 44px 0; }
@media (min-width: 800px) { .ask { grid-template-columns: 1fr auto; } }
.ask h2 { margin-bottom: .3em; }
.ask p { margin: 0; max-width: 62ch; }

/* Page heads */
.page-head { padding: 40px 0 16px; }
.page-head h1 { margin-bottom: .3em; }
.jump { margin-top: 24px; }
.jump-label { font-weight: 700; margin-bottom: 8px; }
.jump-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jump-list li { margin: 0; }
.jump-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; }
.jump-list a:hover { background: var(--mustard); }

/* Directory */
.cat-blocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 20px; }
.cat-block { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px 22px 14px; box-shadow: 5px 5px 0 var(--line); }
.cat-head h2 { margin-bottom: .2em; }
.cat-head h2 a { color: var(--ink); text-decoration: none; }
.cat-head h2 a:hover { color: var(--red-deep); text-decoration: underline; }
.cat-blurb { color: var(--muted); margin-bottom: 12px; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 12px 0; border-top: 1px dashed var(--line); }
.rows li:first-child { border-top: 0; }
.row-name { font-weight: 700; flex: 1 1 220px; }
.row-name a { color: var(--ink); }
.row-street, .row-phone, .row-hours { color: var(--muted); font-size: 15px; }
.rows-big li { padding: 16px 0; }
.rows-big .row-name { font-size: 1.1rem; }

/* Map */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 8px 0 40px; }
@media (min-width: 900px) { .map-wrap { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.map-fig { margin: 0; }
.map-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.key-block h2 { font-size: 1.7rem; }
.key { list-style: none; padding: 0; margin: 0 0 16px; counter-reset: k; }
.key li { padding: 12px 0 12px 48px; border-top: 1px dashed var(--line); position: relative; counter-increment: k; }
.key li::before { content: counter(k); position: absolute; left: 0; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ink); }
.key strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.2rem; }

/* Join */
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 8px 0 40px; }
@media (min-width: 900px) { .join-grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.ticks, .steps { padding-left: 0; list-style: none; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; background: var(--sage); border: 2px solid var(--ink); border-radius: 4px; }
.steps { counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--mustard); border: 2px solid var(--ink); font-weight: 700; display: grid; place-items: center; }
.listing-slot, .listing-form { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: 6px 6px 0 var(--mustard); }
.listing-slot h2 { font-size: 1.7rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 4px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { font: 400 17px/1.4 var(--f-body); color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; padding: 11px 12px; min-height: 48px; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.hint { font-size: 14px; color: var(--muted); }

/* About and privacy */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 8px 0 40px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.6fr 1fr; } }
.about-side { background: var(--paper-2); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; align-self: start; }
.prose { max-width: 70ch; padding-bottom: 40px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.2em; }

/* Item pages */
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; padding-top: 22px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.crumbs a { color: var(--ink); }
.item { padding: 16px 0 24px; }
.item-head h1 { margin: 10px 0 .25em; }
.item-since { color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.item-fig { margin: 0 0 24px; }
.item-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 900px) { .item-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.blurb { font-size: 1.15rem; }
.facts { margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 6px 20px; box-shadow: 5px 5px 0 var(--sage); }
.facts > div { padding: 14px 0; border-top: 1px dashed var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-weight: 600; }
.facts a { font-weight: 700; }
.item-back { padding-bottom: 8px; font-weight: 700; }
.item-back a { color: var(--ink); }

/* Footer */
.foot { background: var(--navy); color: var(--paper); margin-top: 0; padding: 44px 0 0; }
.foot a { color: var(--paper); }
.foot a:hover { color: var(--mustard); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 32px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.foot-name { font-family: var(--f-display); font-size: 1.6rem; margin: 0 0 8px; }
.foot-tag { color: #CBD3E2; }
.foot-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--mustard); margin-bottom: 6px; }
.foot-addr { font-style: normal; }
.foot-phone { font-size: 1.2rem; font-weight: 700; }
.foot-social a { display: inline-flex; min-height: 44px; align-items: center; margin-right: 12px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; border-top: 1px solid rgba(246, 238, 220, .25); padding: 18px 0 22px; font-size: 14px; color: #CBD3E2; }
.foot-bottom a { min-height: 44px; display: inline-flex; align-items: center; }
.foot .btn-red { color: #fff; }

/* Mobile action bar: three actions, reserved padding keeps content clear */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--navy); border-top: 3px solid var(--mustard); padding-bottom: env(safe-area-inset-bottom); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 6px; color: var(--paper); font-weight: 700; text-align: center; text-decoration: none; }
.mobile-bar a:hover { color: var(--mustard); }
@media (min-width: 860px) { .mobile-bar { display: none; } }

/* Lists: hide the empty state next to real items */
[data-pl-item]:not(template) ~ [data-pl-empty] { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .tile:hover { transform: none; }
}
