.board-page > section, .locations > section { max-width: 1120px; margin: 0 auto; padding: 44px 24px; }
.board-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.board-hero figure { margin: 0; }
.board-hero img { border-radius: 14px; box-shadow: 0 14px 40px rgba(12, 35, 64, 0.22); }
.supported { font-family: "Cinzel", Georgia, serif; color: var(--gold); font-weight: 700; letter-spacing: 0.04em; margin-top: -4px; }
.meta { color: var(--muted); font-size: 0.95rem; }
.pill { display: inline-block; background: var(--tint); color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; font-size: 0.85rem; font-weight: 600; }
.sponsors .sub { color: var(--muted); margin-top: -4px; }
.board-hero > *, .grid > * { min-width: 0; }
.board-hero { align-items: start; }
.board-hero:not(:has(> figure)) { grid-template-columns: minmax(0, 720px); }
.board-hero h1 { overflow-wrap: anywhere; }

/* the host's own sections */
.host-sections { background: var(--navy); color: #fff; border-radius: 14px; padding: 18px 20px; margin: 0 0 20px; }
.host-sections .sec + .sec { margin-top: 18px; }
.host-sections h2 { color: var(--gold); font-size: 1.3rem; margin: 0 0 10px; }
.sec-rows { list-style: none; margin: 0; padding: 0; }
.sec-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.sec-rows li:last-child { border-bottom: 0; }
.sec-rows .price { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; text-align: right; }
.host-sections .updated { margin: 14px 0 0; font-size: 0.85rem; color: #d9d3c4; }

/* sponsor cards */
.grid { align-items: start; }
.sponsor, .spot-open { border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; scroll-margin-top: 90px; background: #fff; }
.sponsor:target, .spot-open:target { box-shadow: 0 0 0 3px var(--gold); }
.sponsor summary, .spot-open summary { display: flex; gap: 14px; align-items: center; padding: 16px 44px 16px 16px; cursor: pointer; list-style: none; position: relative; border-radius: 8px; }
.sponsor summary::-webkit-details-marker, .spot-open summary::-webkit-details-marker { display: none; }
.sponsor summary::after, .spot-open summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: translateY(-70%) rotate(45deg); }
.sponsor[open] summary::after, .spot-open[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.sponsor summary:focus-visible, .spot-open summary:focus-visible, .btn:focus-visible, .sponsor a:focus-visible, .spot-open a:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.badge { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold); }
.sum-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vertical { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: #8a6d36; font-weight: 700; }
.sum-text .name { font-family: "Cinzel", Georgia, serif; color: var(--navy); font-weight: 700; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.sum-text .offer { font-weight: 600; font-size: 0.95rem; }
.sponsor .detail, .spot-open .detail { padding: 14px 16px 18px; border-top: 1px solid var(--line); }
.sponsor .detail p, .spot-open .detail p { margin: 0 0 10px; font-size: 0.95rem; }
.sponsor .note, .spot-open .note { color: var(--muted); font-style: italic; }
.sponsor .phone a, .spot-open .phone a { font-weight: 700; font-size: 1.05rem; }
.sponsor .actions, .spot-open .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 0; }
.sponsor .btn, .spot-open .btn { padding: 10px 18px; font-size: 0.95rem; }
.open-count { font-weight: 700; color: var(--navy); margin: 0 0 12px; }
.open-line { font-weight: 600; margin: 0 0 6px; }
.sample-listing { border: 1px dashed #cfc8b9; background: var(--tint); border-radius: 12px; padding: 14px 18px; margin-top: 22px; }
.sample-listing p { margin: 0 0 8px; font-weight: 600; }
.sample-listing p:last-child { margin-bottom: 0; }
.spot { background: var(--tint); border: 1px dashed #cfc8b9; border-top: 4px solid var(--gold); border-radius: 12px; padding: 18px; }
.spot h3 { margin: 0 0 10px; }
.spot p { margin: 0 0 8px; }

/* business listing */
.biz-page, .dir-page { max-width: 860px; margin: 0 auto; padding: 28px 24px 56px; }
.biz-page section, .dir-group { margin-top: 28px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.crumbs { margin: 0 0 14px; font-size: 0.9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.crumbs li { min-width: 0; overflow-wrap: anywhere; }
.crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--muted); }
.crumbs [aria-current] { color: var(--muted); }
.board-page > .crumbs { max-width: 1120px; margin: 0 auto; padding: 18px 24px 0; }
.board-page > .crumbs + section { padding-top: 24px; }
.biz-head { display: flex; gap: 20px; align-items: center; }
.biz-head .badge.big { width: 112px; height: 112px; border-width: 3px; }
.biz-head h1 { margin-bottom: 6px; overflow-wrap: anywhere; }
.biz-head .tagline { font-weight: 600; margin: 0 0 4px; }
.biz-head .area { color: var(--muted); margin: 0; font-size: 0.95rem; }
.offer-panel { border: 3px solid var(--gold); border-radius: 14px; background: var(--tint); padding: 16px 20px; margin-top: 22px; }
.offer-label { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.75rem; font-weight: 700; color: #8a6d36; margin: 0 0 4px; }
.offer-text { font-family: "Cinzel", Georgia, serif; color: var(--navy); font-weight: 700; font-size: clamp(1.25rem, 4vw, 1.7rem); line-height: 1.2; margin: 0; }
.photo-ph { margin: 22px 0 0; }
.ph { aspect-ratio: 16 / 9; width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; background: var(--tint); border: 2px dashed #cfc8b9; border-radius: 14px; color: var(--muted); font-size: 0.95rem; }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-up > * { min-width: 0; }
.plain { margin: 0; padding-left: 1.1em; }
.plain li { margin-bottom: 4px; }
.contact .phone { margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; }
.contact .addr { margin: 0 0 14px; }
.biz-cta { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }

/* directory, trade and town pages */
.dir-head p { color: var(--muted); }
.dir-head .count { font-weight: 600; color: var(--navy); }
.dir-head h1 { overflow-wrap: anywhere; }
.dir-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dir-list.wide { grid-template-columns: 1fr; }
.dir-list.cards { grid-template-columns: repeat(3, 1fr); }
.dir-list > li { min-width: 0; }
.dir-list a { display: flex; gap: 14px; align-items: center; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: #fff; }
.dir-list a:hover, .dir-list a:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.dir-list a:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.dir-list .thumb { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid var(--gold); }
.dir-list .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dir-list .name { font-family: "Cinzel", Georgia, serif; color: var(--navy); font-weight: 700; overflow-wrap: anywhere; }
.dir-list .town { color: var(--muted); font-size: 0.9rem; }
.dir-list .offer { font-weight: 600; font-size: 0.95rem; }
.dir-list .summary { color: var(--muted); font-size: 0.92rem; margin-top: 4px; }
.chip-links { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-links a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.chip-links a:hover, .chip-links a:focus-visible { border-color: var(--gold); background: var(--tint); }
.az-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.az-nav a { min-width: 36px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 700; }
.az-nav a:hover, .az-nav a:focus-visible { border-color: var(--gold); background: var(--tint); }
.az-group { margin-bottom: 20px; scroll-margin-top: 90px; }
.az-group h3 { font-size: 1.3rem; border-bottom: 2px solid var(--gold); padding-bottom: 4px; margin-bottom: 12px; }
.filter { display: block; max-width: 520px; margin: 16px 0 4px; }
.filter input { display: block; width: 100%; padding: 12px 16px; border: 1px solid #cfc8b9; border-radius: 999px; font: inherit; }
.related { margin-top: 36px; }
.biz-head .kicker a { color: inherit; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.loc-tools { display: flex; gap: 10px; margin: 14px 0; }
.loc-tools input { flex: 1; padding: 12px 14px; border: 1px solid #cfc8b9; border-radius: 999px; font: inherit; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: 0.9rem; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.loc-body { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; padding-top: 0 !important; }
.loc-list { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow: auto; }
.loc-item a { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; text-decoration: none; color: var(--ink); }
.loc-item a:hover { border-color: var(--gold); }
.loc-item h3 { margin: 0 0 4px; }
.loc-item p { margin: 0 0 6px; }
.loc-item .who { color: var(--muted); font-size: 0.92rem; }
.loc-map { height: 560px; border-radius: 12px; border: 1px solid var(--line); }
.empty { color: var(--muted); padding: 14px; }
@media (max-width: 820px) {
  .board-hero, .loc-body { grid-template-columns: 1fr; }
  .grid, .two-up, .dir-list, .dir-list.cards { grid-template-columns: 1fr; }
  .biz-head { flex-direction: column; align-items: flex-start; }
  .biz-head .badge.big { width: 88px; height: 88px; }
  .loc-map { height: 340px; order: -1; }
  .loc-list { max-height: none; }
}

/* sponsor tiles: same colors as the printed board */
.sponsors .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tile { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 12px; text-decoration: none; scroll-margin-top: 90px;
  background: var(--tile-bg); color: var(--tile-fg); outline: 2px solid var(--tile-fg); outline-offset: -6px; }
.tile:hover { filter: brightness(1.12); }
.tile:target { box-shadow: 0 0 0 3px var(--gold); }
.tile:focus-visible { outline-width: 3px; outline-offset: -3px; }
.tile .badge { width: 72px; height: 72px; border: 2px solid var(--tile-fg); }
.tile-text { display: grid; gap: 2px; min-width: 0; padding-right: 8px; }
.tile-text .label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; font-weight: 700; opacity: 0.85; }
.tile-text .name { font-weight: 700; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.tile-text .line { color: #f0f0ee; font-size: 0.9rem; }

/* listing: picture, name, one big button */
.biz-hero { display: flex; justify-content: center; padding: 24px; margin-top: 14px; border-radius: 14px; background: var(--tile-bg); }
.biz-hero .badge.big { width: 180px; height: 180px; border: 4px solid var(--tile-fg); }
.biz-page .biz-head { display: block; margin-top: 18px; }
.biz-head .phone { margin: 10px 0 0; font-size: 1.35rem; font-weight: 700; }

/* message form on a listing page: hidden until message.js runs */
.message[hidden], #message-link[hidden] { display: none; }
.msg-cta { margin: 12px 0 0; }
.message { max-width: 640px; scroll-margin-top: 90px; }
.message textarea { resize: vertical; }
.message-note { margin-top: 28px; color: var(--muted); }

/* listing picture: the company's own image, with its logo on top */
.biz-hero { position: relative; }
.biz-hero.has-photo { padding: 0; overflow: hidden; aspect-ratio: 16 / 9; justify-content: flex-start; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.biz-hero.has-photo .hero-logo { position: absolute; left: 14px; bottom: 14px; }
.biz-hero.has-photo .badge.big { width: clamp(72px, 20vw, 120px); height: clamp(72px, 20vw, 120px); border-width: 3px; background: #fff; }
.hero-logo { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-label { position: absolute; top: 12px; right: 12px; background: rgba(12, 35, 64, 0.88); color: #fff; font-weight: 700; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; }
.hero-label.small { position: static; font-size: 0.72rem; padding: 3px 9px; white-space: nowrap; }
.message-form input:disabled, .message-form textarea:disabled, .message-form button:disabled { opacity: 0.6; cursor: not-allowed; }
