main{max-width:960px}header nav{max-width:960px}.intro{border-left:4px solid #d7b46b;padding:1rem clamp(1rem,4vw,2.4rem);margin-bottom:2.4rem;background:linear-gradient(110deg,#123c40,#071523)}.intro h1{line-height:1.05}.intro h1 span{color:#9de4d5}.intro p{max-width:54ch;margin:.9rem 0 0}.filters,#list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem}label{display:grid;gap:.35rem;font-weight:650}input,select,textarea,button{box-sizing:border-box;font:inherit;padding:.65rem;border-radius:.4rem}input,select,textarea{width:100%;min-width:0;background:#0c2233;color:#fff;border:1px solid #647c84}textarea{min-height:5rem;resize:vertical}button{background:#9de4d5;color:#09272d;font-weight:700;border:0}button:disabled{opacity:.55}article,fieldset{padding:1rem 1.2rem;border:1px solid #39626a;border-radius:.7rem;background:#102b36;overflow-wrap:anywhere}article h3{margin:.2rem 0;font-size:1.4rem}article summary{cursor:pointer;padding:.5rem 0}article h4{margin:.6rem 0 .15rem}.town{color:#e6c981;font-size:.9rem}#owners{margin-top:3rem;max-width:700px}fieldset{margin:1rem 0;display:grid;gap:1rem;min-width:0}legend{font-weight:700}.check{display:flex;align-items:baseline;gap:.5rem}.check input{width:auto}#status,#receipt{margin:1rem 0}


body {background:#002b30;color:#fff7e8}
header {background:#00282c;border-bottom:2px solid #d8af51;padding:.45rem 0}
header nav {max-width:1440px;width:94%}
.brand {font-size:clamp(1.65rem,3vw,2.55rem);letter-spacing:-.06em}
.site-links {display:flex;flex-wrap:wrap;gap:clamp(.6rem,2vw,2.4rem)}
.site-links a {color:#fff;text-decoration:none;font-weight:700;padding:.4em 0}
.site-links a:last-child {color:#75f3e6;text-decoration:underline}
main {width:100%;max-width:1536px;padding:0 0 3rem}
.sr,.poster p {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%)}
.poster-art,.illustration,.shore,.megaphone {background-image:url("images/shop-local-poster.webp");background-repeat:no-repeat}
.poster-art {aspect-ratio:1536/360;background-size:100% auto;background-position:0 12.87%}
.content {width:96%;max-width:1460px;margin:auto}
.search-bar {display:grid;grid-template-columns:minmax(9rem,.7fr) minmax(10rem,1fr) minmax(12rem,1.5fr) auto;gap:1rem;align-items:center;border:2px solid #87f5ec;border-radius:1.1rem;padding:.9rem 1.2rem;background:#073c40;box-shadow:0 0 12px #53d9d64a}
.search-bar h2 {margin:0;border-left:4px solid #f8bf48;padding-left:.7rem;font-size:clamp(1.2rem,2vw,2rem);line-height:1.05}
.search-bar label {font-size:.85rem}
.search-bar input,.search-bar select {color:white;background:#032e33;border-color:#9bc3c1;font-size:1rem}
.gold {display:inline-flex;justify-content:center;align-items:center;gap:.7rem;background:linear-gradient(#ffe39a,#ffc339);border-radius:2rem;padding:.65rem 1.15rem;min-height:44px;color:#192321;font-weight:800;text-decoration:none}
.market {margin:1rem 0;display:grid;grid-template-columns:3fr 2fr;gap:1.3rem;align-items:stretch}
.aisles {display:flex;flex-direction:column;min-width:0}
.categories {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}
.category {background:#fff1d4;color:#172825;border-radius:1.25rem;border:3px solid #ffeac3;overflow:hidden;padding:0 0 .35rem;line-height:1.1;font-weight:850;font-size:clamp(.95rem,1.45vw,1.35rem)}
.illustration {display:block;width:100%;aspect-ratio:196/114;margin-bottom:.35rem;background-size:783.67% auto}
.food .illustration {background-position:2.98% 73.1%}
.home .illustration {background-position:19.33% 73.1%}
.retail .illustration {background-position:35.67% 73.1%}
.professional .illustration {background-position:51.87% 73.1%}
.category:hover,.category[aria-pressed=true] {border-color:#6bf8e8;box-shadow:0 0 0 2px #00645d}
.category[aria-pressed=true] {background:#a7edde}
.shore {flex:1;min-height:55px;max-height:150px;background-size:170.67% auto;background-position:left bottom;border-radius:0 0 .7rem .7rem}
.invitation {background:#fff1d4;color:#052e31;border-radius:1.4rem;padding:clamp(1rem,2vw,2rem)}
.invitation h2 {display:flex;align-items:center;gap:.5rem;font:bold italic clamp(1.75rem,3vw,3rem)/.95 Georgia,serif;margin:0}
.megaphone {width:21%;aspect-ratio:145/104;background-size:1059.31% auto;background-position:69.05% 71.7%}
.invitation p {margin:.75rem 0;max-width:52ch}
#results,#owners {scroll-margin:1rem}
#results {border-top:1px solid #40837c}
#list article {background:#08393b;border-color:#497e78}
#owners {margin:2.5rem auto 0}
#owners fieldset {background:#073438}
#owners label {color:#fff7e8}
#owners button {background:#ffcb58}
@media(max-width:850px) {
 .search-bar {grid-template-columns:1fr 1fr}
 .market {grid-template-columns:1fr}
 .shore {aspect-ratio:8;max-height:105px;flex:auto}
 .invitation h2 br {display:none}
 .megaphone {width:4rem}
}
@media(max-width:640px) {
 header nav {gap:.4rem}.site-links {gap:.4rem .9rem;font-size:.85rem}
 .poster {background:#003036}
 .poster-art {aspect-ratio:820/285;background-size:187.32% auto;background-position:0 11.03%}
 .poster p {position:static;width:auto;height:auto;margin:0;padding:.55rem 4% .9rem;clip-path:none;font-size:.95rem}
 .content {width:94%}
 .search-bar {grid-template-columns:1fr;gap:.6rem;padding:.85rem}
 .categories {grid-template-columns:repeat(2,minmax(0,1fr))}
 .category {font-size:1.05rem}
 .shore {min-height:48px}
}
@media(max-width:640px) {
 .poster::after {content:"";display:block;height:clamp(70px,20vw,120px);margin-bottom:.6rem;background:url("images/shop-local-poster.webp") no-repeat right 42%;background-size:220% auto}
}


/* Keep each listing readable at phone width and at the size of a printed card. */
#list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  align-items: start;
  gap: 1.6rem;
}
#list article[data-look] {
  position: relative;
  min-width: 0;
  padding: 1.4rem;
  color: #263538;
  box-shadow: 0 .35rem .8rem #001b2054;
}
#list [data-look] :is(a, summary, .town) { color: var(--ink); }
#list [data-look] :is(a, summary):focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
#list [data-look] > a { display: inline-block; margin-top: .6rem; font-weight: 700; }
#list [data-look] h3 { line-height: 1.12; margin: .4rem 0 .85rem; }
#list [data-look] .town { font-weight: 700; }

/* A checked counter edge and a double-rule cream menu cover. */
#list article[data-look="food"] {
  --ink: #8c292b;
  border: 5px double #ac4945;
  border-radius: 1.1rem;
  background: #fff4d9;
  padding-top: 2.1rem;
  overflow: hidden;
}
#list [data-look="food"]::before {
  content: ""; position: absolute; inset: 0 0 auto; height: .8rem;
  background: repeating-conic-gradient(#ab3534 0 25%, #fff5da 0 50%) 0 0 / .8rem .8rem;
}
#list [data-look="food"] h3 {
  color: var(--ink); font: bold italic 2.1rem/1.04 Georgia, serif;
  border-bottom: 3px double #a34640; padding-bottom: .6rem;
}
#list [data-look="food"] .town { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }

/* Thermal paper, ruled sections and a torn lower edge. */
#list article[data-look="home"] {
  --ink: #37462f;
  border: 0; border-top: .4rem solid #d78c39; border-radius: 0;
  background: #faf7e9; font-family: ui-monospace, monospace; padding-bottom: 1.7rem;
}
#list [data-look="home"]::after {
  content: ""; position: absolute; inset: 100% 0 auto; height: .45rem;
  background: linear-gradient(135deg,#faf7e9 25%,transparent 25%) 0 0 / .9rem .9rem,
              linear-gradient(225deg,#faf7e9 25%,transparent 25%) 0 0 / .9rem .9rem;
}
#list [data-look="home"] h3 { text-transform: uppercase; border-block: 1px dashed #777b67; padding-block: .65rem; }
#list [data-look="home"] details { border-top: 1px dashed #777b67; }

/* A paper shopping bag with a cord handle and folded side gusset. */
#list article[data-look="retail"] {
  --ink: #6d2a45;
  margin-top: 1.65rem; padding-right: 2.15rem;
  border: 1px solid #b98579; border-radius: .15rem .15rem .45rem .45rem;
  background: linear-gradient(82deg,#f8dfc9 0 87%,#ebbea9 87% 92%,#dbab99 92%);
}
#list [data-look="retail"]::before {
  content: ""; position: absolute; bottom: 100%; left: calc(50% - 2rem);
  width: 4rem; height: 1.55rem; border: .25rem solid #e7b67e;
  border-bottom: 0; border-radius: 3rem 3rem 0 0;
}
#list [data-look="retail"] h3 { font: bold 1.85rem/1.1 Georgia,serif; color: var(--ink); }
#list [data-look="retail"] .town { display: inline-block; padding: .15rem .6rem; background: #fff6e6; border: 1px solid #bd907d; }

/* A presentation title band, slide body and contrasting footer rule. */
#list article[data-look="professional"] {
  --ink: #164a78;
  border: 1px solid #94acbf; border-bottom: .4rem solid #34888d; border-radius: .2rem;
  background: #f6fbff;
}
#list [data-look="professional"] h3 {
  margin: .55rem -1.4rem 1rem; padding: .9rem 1.4rem; color: white;
  background: linear-gradient(125deg,#163653 0 78%,#23516d 78% 92%,#286a79 92%);
  font: 700 1.7rem/1.15 system-ui,sans-serif;
}
#list [data-look="professional"] details { border-top: 1px solid #bdcdda; }

.shop-town-field {display:grid;gap:.25rem;min-width:0}
#shopLocation {justify-self:start;min-height:2.75rem;padding:.25rem .7rem;border:1px solid #85c6be;border-radius:2rem;background:#10464c;color:#f4ffff;font:650 .94rem/1.2 system-ui;cursor:pointer}
#shopLocation[hidden],#shopLocationStatus:empty {display:none}
#shopLocationStatus {grid-column:1/-1;margin:0;color:#fff4ce}

#list .business-directions {display:grid;justify-items:start;gap:.2rem;margin:.7rem 0;font:1rem/1.4 system-ui}
#list .business-map-links {display:flex;flex-wrap:wrap;gap:.4rem;margin:.2rem 0}
#list .business-map-links a {display:inline-flex;align-items:center;min-height:44px;padding:.25rem .7rem;border:1px solid currentColor;border-radius:.45rem;font-weight:700;text-decoration:none}
#list .business-map-links a:hover {text-decoration:underline}
