
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { overflow-wrap: break-word; word-break: normal; }
h1, h2, h3 { margin-top: 0; line-height: 1.02; letter-spacing: -0.035em; }
h1 { margin-bottom: 0; font-size: clamp(3rem, 7vw, 6.2rem); }
h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { margin-bottom: 0; font-size: 1.15rem; }
p { margin-top: 0; }
code { padding: 2px 6px; border-radius: 5px; background: #edf1ed; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  padding: 22px 0;
  color: white;
  transform: translateX(-50%);
}
.brand, .subpage-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  font-size: .78rem;
}
.nav-links, .subpage-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; font-size: .9rem; font-weight: 800; }
.mobile-nav { display: none; position: relative; margin-left: auto; }
.mobile-nav summary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e2d2c1; border-radius: 999px; background: #fff; padding: 0 16px; color: var(--teal-dark); cursor: pointer; font-weight: 900; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: " +"; }
.mobile-nav[open] summary::after { content: " −"; }
.mobile-nav-links { position: absolute; z-index: 40; top: calc(100% + 10px); right: 0; display: grid; width: min(290px, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft, 0 18px 50px rgba(12,28,31,.18)); padding: 8px; }
.mobile-nav-links a { min-height: 44px; display: flex; align-items: center; border-radius: 12px; padding: 8px 12px; color: var(--ink); font-weight: 850; }
.mobile-nav-links a:hover, .mobile-nav-links a:focus-visible { background: #fff1e2; color: var(--teal-dark); }
.nav-links a { opacity: .88; }
.nav-links a:hover, .nav-links a:focus-visible { opacity: 1; text-decoration: underline; }

.hero {
  position: relative;
  min-height: 850px;
  overflow: hidden;
  isolation: isolate;
  background: #11272a;
}
.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 25, 28, .9) 0%, rgba(8, 25, 28, .66) 48%, rgba(8, 25, 28, .5) 100%),
    image-set(
      url("assets/potch-hero.avif") type("image/avif"),
      url("assets/potch-hero.webp") type("image/webp")
    ) center / cover no-repeat;
  content: "";
  transform: scale(1.01);
}
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(5,24,26,.34));
  content: "";
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .72fr);
  gap: 56px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 850px;
  margin: 0 auto;
  padding: 120px 0 84px;
}
.hero-copy { max-width: 760px; color: white; }
.hero-copy h1 { max-width: 730px; }
.hero-text { max-width: 650px; margin: 24px 0 0; color: rgba(255,255,255,.87); font-size: 1.16rem; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: .74rem; font-weight: 950; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow.light { color: #b4e0cc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 17px;
  cursor: pointer;
  font-weight: 900;
}
.button.primary { border-color: var(--coral); background: var(--coral); color: white; }
.button.primary:hover, .button.primary:focus-visible { background: #913421; border-color: #913421; }
.button.ghost { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); color: white; backdrop-filter: blur(8px); }
.button.ghost:hover, .button.ghost:focus-visible { background: rgba(255,255,255,.17); }
.button.secondary { border-color: #d9c5af; background: white; color: var(--ink); }
.button.secondary:hover, .button.secondary:focus-visible { border-color: var(--teal); color: var(--teal); }

.search-panel {
  min-width: 0;
  border: 1px solid rgba(255,255,255,.54);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.search-panel-heading { padding: 26px 26px 0; }
.search-panel-heading h2 { font-size: 2rem; }
.search-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 26px 14px; }
.field { display: grid; gap: 6px; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.field-wide, .search-button { grid-column: 1 / -1; }
.field span { color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(242,140,40,.12); }
.search-button { width: 100%; }
.quick-links { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 26px 25px; }
.quick-links button { border: 1px solid #dfcebc; border-radius: 999px; background: #f5f8f5; padding: 7px 10px; cursor: pointer; font-size: .84rem; font-weight: 800; }
.quick-links button:hover, .quick-links button:focus-visible { border-color: var(--teal); color: var(--teal); }

.result-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 40px));
  margin: -36px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 15px 45px rgba(20,35,37,.1);
}
.result-strip div { display: grid; gap: 2px; padding: 23px 25px; background: white; }
.result-strip strong { font-size: 1.8rem; line-height: 1; }
.result-strip span { color: var(--muted); }

.alert-band {
  display: grid;
  grid-template-columns: .7fr 1.8fr auto;
  gap: 28px;
  align-items: center;
  margin-top: 72px;
  padding: 36px max(20px, calc((100vw - 1180px) / 2));
  background: #0d4f4b;
  color: white;
}
.alert-band .eyebrow { color: #a9d6c7; }
.alert-band h2 { font-size: 2rem; }
.contact-rail { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.contact-chip { display: flex; justify-content: space-between; gap: 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.08); padding: 12px; }
.contact-chip span { color: rgba(255,255,255,.78); font-size: .82rem; font-weight: 750; }
.contact-chip a { flex: 0 0 auto; font-weight: 950; }
.light-link { color: white !important; white-space: nowrap; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 90px 0 18px; }
.soft-section { width: 100%; max-width: none; margin-top: 72px; padding: 82px max(20px, calc((100vw - 1180px) / 2)); background: #f8eee2; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.split-heading { display: grid; grid-template-columns: 1fr .85fr; align-items: end; }
.section-note { max-width: 520px; margin: 0; color: var(--muted); font-weight: 620; }
.text-link { display: inline-flex; margin-top: 25px; color: var(--teal); font-weight: 900; }
.text-link:hover, .text-link:focus-visible { text-decoration: underline; }

.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; }
.guide-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 22px; }
.guide-card h3, .guide-card h2 { margin-bottom: 12px; font-size: 1.2rem; }
.guide-card p { margin: 0; color: var(--muted); }

.area-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.area-group { border: 1px solid #e0d0be; border-radius: var(--radius); background: rgba(255,255,255,.73); padding: 22px; }
.area-group h3 { margin-bottom: 14px; }
.area-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.area-chips a { display: inline-flex; gap: 6px; align-items: center; border: 1px solid #dfcebc; border-radius: 999px; background: white; padding: 7px 10px; font-size: .85rem; font-weight: 800; }
.area-chips a span { color: var(--muted); font-size: .75rem; }
.area-chips a:hover, .area-chips a:focus-visible { border-color: var(--teal); color: var(--teal); }

.category-grid, .listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.category-card, .listing-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 28px rgba(15,30,32,.05); }
.category-card { display: grid; grid-template-rows: auto auto auto 1fr auto; min-height: 245px; padding: 22px; }
.category-card .category-count { margin-bottom: 24px; color: var(--coral); font-size: .78rem; font-weight: 950; text-transform: uppercase; }
.category-card h3 { margin-bottom: 11px; font-size: 1.28rem; }
.category-card h3 a { color: var(--teal); }
.category-card p { color: var(--muted); }
.category-card button { justify-self: start; border: 0; background: transparent; padding: 0; color: var(--teal); cursor: pointer; font-weight: 900; }
.category-card button:hover, .category-card button:focus-visible, .category-card h3 a:hover { text-decoration: underline; }

.feature-band { width: 100%; max-width: none; margin-top: 70px; padding: 84px max(20px, calc((100vw - 1180px) / 2)); background: #e7edeb; }
.listing-card { display: flex; min-height: 225px; flex-direction: column; justify-content: space-between; gap: 24px; padding: 21px; }
.listing-illustration,
.category-card-illustration,
.category-index-illustration,
.category-page-illustration,
.detail-illustration { position: relative; margin: 0; overflow: hidden; background: #e8eeea; }
.listing-illustration picture,
.category-card-illustration picture,
.category-index-illustration picture,
.category-page-illustration picture,
.detail-illustration picture { display: block; }
.listing-illustration img,
.category-card-illustration img,
.category-index-illustration img,
.category-page-illustration img,
.detail-illustration img { display: block; width: 100%; height: 100%; object-fit: cover; }
.listing-card > .listing-illustration { aspect-ratio: 3 / 2; margin: -21px -21px 0; border-bottom: 1px solid var(--line); }
.category-card > .category-card-illustration { aspect-ratio: 3 / 2; margin: -22px -22px 20px; border-bottom: 1px solid var(--line); }
.listing-illustration figcaption,
.category-card-illustration figcaption,
.category-index-illustration figcaption { position: absolute; right: 10px; bottom: 10px; border-radius: 999px; background: rgba(12,42,40,.88); padding: 5px 9px; color: white; font-size: .67rem; font-weight: 900; letter-spacing: .02em; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.listing-label { display: inline-flex; color: var(--teal); font-size: .73rem; font-weight: 950; }
.status-badge { display: inline-flex; align-items: center; border: 1px solid; border-radius: 999px; padding: 4px 8px; font-size: .69rem; font-weight: 950; white-space: nowrap; }
.evidence-first-party-checked, .evidence-centre-directory-checked { border-color: rgba(68,123,59,.28); background: rgba(68,123,59,.1); color: #37682f; }
.evidence-third-party-listing-only, .evidence-published-source-only, .evidence-chamber-listing-only { border-color: rgba(65,111,153,.28); background: rgba(65,111,153,.1); color: #315d85; }
.evidence-requires-confirmation { border-color: rgba(211,94,67,.35); background: rgba(211,94,67,.1); color: #9c3c28; }
.evidence-historical-reference, .evidence-reference-only { border-color: rgba(173,122,30,.28); background: rgba(173,122,30,.1); color: #845d15; }
.listing-card h3 { margin-bottom: 8px; font-size: 1.22rem; }
.listing-card h3 a, .directory-listing-card h3 a, .inline-link, .detail-list a { color: var(--teal); }
.listing-card h3 a:hover, .directory-listing-card h3 a:hover, .inline-link:hover, .detail-list a:hover { text-decoration: underline; }
.listing-card p, .directory-listing-card p { margin: 0; color: var(--muted); }
.card-footer { display: flex; align-items: end; justify-content: space-between; gap: 15px; padding-top: 14px; border-top: 1px solid var(--line); }
.card-contact { min-width: 0; color: var(--muted); font-size: .82rem; font-weight: 750; overflow-wrap: anywhere; }
a.card-contact:hover { color: var(--teal); text-decoration: underline; }
.card-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.card-map-link { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; border: 1px solid rgba(242,140,40,.28); border-radius: 999px; background: #f1f8f6; padding: 6px 10px; color: var(--teal); font-size: .75rem; font-weight: 900; white-space: nowrap; }
.card-map-link:hover, .card-map-link:focus-visible { border-color: var(--teal); background: var(--teal); color: white; text-decoration: none; }
.card-arrow { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #eff4f0; color: var(--teal); font-weight: 950; }
.card-arrow:hover, .card-arrow:focus-visible { background: var(--teal); color: white; }
.load-more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.no-results { grid-column: 1 / -1; border: 1px dashed #adbbb3; border-radius: var(--radius); background: rgba(255,255,255,.7); padding: 24px; color: var(--muted); font-weight: 800; }

.data-section { display: grid; grid-template-columns: .8fr 1.1fr; gap: 60px; align-items: start; padding-bottom: 82px; }
.data-copy p { color: var(--muted); font-size: 1.02rem; }
.data-copy .button { margin-top: 10px; }

.site-footer { display: grid; grid-template-columns: 1fr auto auto; gap: 30px; align-items: center; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 31px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.site-footer div { display: grid; }
.site-footer strong { color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 850; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--teal); }

/* Generated and information pages */
.directory-page { background: var(--paper); }
.subpage-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 20px 0; border-bottom: 1px solid var(--line); }
.subpage-brand { color: var(--teal); }
.subpage-brand span { color: var(--ink); }
.subpage-nav { color: var(--muted); }
.subpage-nav a:hover, .subpage-nav a:focus-visible { color: var(--teal); }
.subpage-main { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 65px 0 48px; }
.wide-main { width: min(1180px, calc(100% - 40px)); }
.subpage-main > h1 { max-width: 950px; color: var(--ink); font-size: clamp(2.8rem, 6vw, 5.1rem); }
.subpage-lede { max-width: 820px; margin: 20px 0 42px; color: var(--muted); font-size: 1.12rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 32px; color: var(--muted); font-size: .82rem; font-weight: 800; }
.breadcrumb a { color: var(--teal); }

.listing-section { margin-top: 48px; scroll-margin-top: 20px; }
.listing-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.listing-section-heading h2 { font-size: 2rem; }
.listing-section-heading span { color: var(--muted); font-size: .86rem; font-weight: 850; }
.directory-list-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.directory-listing-card { display: flex; min-width: 0; min-height: 196px; overflow: hidden; flex-direction: column; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 20px; }
.directory-listing-card > .listing-illustration { aspect-ratio: 3 / 2; margin: -20px -20px 0; border-bottom: 1px solid var(--line); }
.directory-listing-card h3 { margin-bottom: 8px; }
.empty-directory { border: 1px dashed #aebcb3; border-radius: var(--radius); background: white; padding: 23px; color: var(--muted); }

.index-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.index-card { position: relative; display: grid; align-content: start; min-height: 130px; gap: 7px; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 20px 50px 20px 20px; }
.category-index-card { overflow: hidden; }
.category-index-card > .category-index-illustration { aspect-ratio: 3 / 2; margin: -20px -50px 10px -20px; border-bottom: 1px solid var(--line); }
.index-card strong { color: var(--teal); font-size: 1.07rem; }
.index-card span { color: var(--muted); font-size: .82rem; font-weight: 800; }
.index-card p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.index-card b { position: absolute; right: 19px; bottom: 17px; color: var(--teal); }
.index-card.tall { min-height: 205px; }
.index-card:hover, .index-card:focus-visible { border-color: var(--teal); transform: translateY(-1px); }
.alphabet-nav { display: flex; flex-wrap: wrap; gap: 5px; margin: 30px 0; }
.alphabet-nav a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 7px; background: white; color: var(--teal); font-size: .8rem; font-weight: 900; }
.alphabet-nav a:hover { border-color: var(--teal); }

.listing-detail { max-width: 900px; }
.category-page-illustration,
.detail-illustration { width: 100%; margin: 28px 0 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 14px 34px rgba(15,30,32,.07); }
.category-page-illustration picture,
.detail-illustration picture { aspect-ratio: 3 / 2; }
.category-page-illustration figcaption,
.detail-illustration figcaption { border-top: 1px solid var(--line); background: #f8faf8; padding: 11px 14px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 23px 0 18px; }
.status-explainer { color: var(--muted); font-size: .86rem; font-weight: 700; }
.detail-description { max-width: 800px; margin-bottom: 28px; color: var(--muted); font-size: 1.1rem; }
.listing-map-panel { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 18px; align-items: center; margin: 0 0 24px; border: 1px solid rgba(242,140,40,.25); border-radius: var(--radius); background: linear-gradient(135deg,#f3faf8,#ffffff); padding: 20px; box-shadow: 0 10px 28px rgba(15,30,32,.05); }
.map-pin { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-size: 1.65rem; font-weight: 950; }
.map-panel-copy h2 { margin-bottom: 5px; font-size: 1.16rem; }
.map-panel-copy p { margin: 0; color: var(--muted); font-size: .88rem; }
.map-panel-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.map-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; border: 1px solid var(--teal); border-radius: 999px; background: var(--teal); padding: 9px 15px; color: white; font-size: .82rem; font-weight: 900; white-space: nowrap; }
.map-button.secondary { background: white; color: var(--teal); }
.map-button:hover, .map-button:focus-visible { background: #055f5a; color: white; text-decoration: none; }
.map-button.secondary:hover, .map-button.secondary:focus-visible { border-color: #055f5a; background: #eaf5f2; color: #055f5a; }
.detail-list { display: grid; gap: 1px; overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.detail-list div { display: grid; grid-template-columns: minmax(145px,.32fr) minmax(0,1fr); gap: 22px; padding: 18px 20px; background: white; }
.detail-list dt { color: var(--muted); font-weight: 900; }
.detail-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.verification-note { margin-top: 28px; border-left: 4px solid var(--amber); border-radius: 0 var(--radius) var(--radius) 0; background: #fff9e9; padding: 20px 22px; }
.verification-note h2 { margin-bottom: 8px; font-size: 1.2rem; }
.verification-note p { margin: 0; color: #665628; }
.urgent-note { border-left-color: var(--coral); background: #fff2ee; }
.urgent-note p { color: #6e4035; }

.guide-page-grid { margin: 38px 0; }
.guide-page-grid .guide-card h2 { font-size: 1.3rem; }
.content-panel { margin-top: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 28px; }
.content-panel > h2 { margin-bottom: 22px; font-size: 2rem; }
.content-panel p { color: var(--muted); }
.two-column-copy { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 35px; }
.two-column-copy h2 { margin-bottom: 12px; font-size: 1.55rem; }
.two-column-copy p { margin-bottom: 0; }
.emergency-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.emergency-card { display: grid; min-height: 230px; align-content: start; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 23px; }
.emergency-card p { margin-bottom: 18px; color: var(--muted); font-size: .8rem; font-weight: 950; text-transform: uppercase; }
.emergency-card > a:first-of-type { color: var(--coral); font-size: 2rem; font-weight: 950; letter-spacing: -.03em; }
.emergency-card span { margin: 12px 0 20px; color: var(--muted); }
.emergency-card > a:last-child { align-self: end; color: var(--teal); font-size: .83rem; font-weight: 850; }
.source-list { display: grid; gap: 8px; }
.source-list article { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 15px 17px; }
.source-list article div { display: grid; }
.source-list span { color: var(--muted); font-size: .78rem; }
.source-list a { flex: 0 0 auto; color: var(--teal); font-weight: 850; }
.subpage-footer { margin-top: 40px; }

@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: 1fr; align-items: end; gap: 34px; }
  .hero-copy { padding-top: 56px; }
  .search-panel { max-width: 720px; }
  .alert-band { grid-template-columns: 1fr 2fr; }
  .alert-band > a { grid-column: 2; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .category-grid, .listing-grid, .index-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer > span { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .site-header { width: min(100% - 28px, 1180px); padding-top: 15px; }
  .nav-links { gap: 11px; font-size: .78rem; }
  .nav-links a:nth-child(3), .nav-links a:nth-child(5) { display: none; }
  .hero, .hero-inner { min-height: 880px; }
  .hero-inner { width: min(100% - 28px, 1180px); padding: 98px 0 52px; }
  .hero-text { font-size: 1rem; }
  .search-form { grid-template-columns: 1fr; padding-inline: 18px; }
  .field, .field-wide, .search-button { grid-column: auto; }
  .search-panel-heading { padding-inline: 18px; }
  .quick-links { padding-inline: 18px; }
  .result-strip { grid-template-columns: 1fr; width: min(100% - 28px, 1180px); margin-top: -24px; }
  .alert-band { grid-template-columns: 1fr; padding-inline: 14px; }
  .alert-band > a { grid-column: auto; }
  .contact-rail { grid-template-columns: 1fr; }
  .section { width: min(100% - 28px, 1180px); padding-top: 66px; }
  .soft-section, .feature-band { width: 100%; padding: 66px 14px; }
  .section-heading, .split-heading { display: flex; flex-direction: column; align-items: flex-start; }
  .section-note { max-width: none; }
  .guide-grid, .category-grid, .listing-grid, .area-groups, .directory-list-grid, .index-card-grid, .emergency-grid, .two-column-copy { grid-template-columns: 1fr; }
  .data-section { grid-template-columns: 1fr; gap: 25px; }
  .site-footer { display: flex; width: min(100% - 28px, 1180px); flex-direction: column; align-items: flex-start; }
  .subpage-header, .subpage-main { width: min(100% - 28px, 1180px); }
  .subpage-header { align-items: flex-start; flex-direction: column; }
  .subpage-nav { gap: 12px; font-size: .78rem; }
  .subpage-main { padding-top: 50px; }
  .detail-list div { grid-template-columns: 1fr; gap: 5px; }
  .listing-section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .source-list article { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 470px) {
  .brand > span:last-child { display: none; }
  .nav-links a:nth-child(4) { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .quick-links button { flex: 1 1 calc(50% - 7px); }
  .card-topline { align-items: flex-start; flex-direction: column; }
  .emergency-card > a:first-of-type { font-size: 1.65rem; }
}

/* Retail-census additions */
.card-centre {
  margin-top: 0.35rem !important;
  font-size: 0.86rem;
}
.card-centre a {
  color: inherit;
  font-weight: 700;
}
.centre-evidence {
  margin-bottom: 2rem;
}
.historical-section {
  border-top: 2px dashed var(--line, #d5d0c5);
  padding-top: 2rem;
}
.section-note {
  max-width: 70ch;
}
.coverage-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.coverage-stats span {
  display: grid;
  gap: 0.2rem;
  padding: 1rem;
  border: 1px solid var(--line, #d5d0c5);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.55);
}
.coverage-stats strong {
  font-size: 1.65rem;
}
@media (max-width: 720px) {
  .listing-map-panel { grid-template-columns: auto minmax(0,1fr); align-items: start; }
  .map-panel-actions { grid-column: 1 / -1; justify-content: stretch; }
  .map-button { flex: 1 1 180px; }
  .coverage-stats { grid-template-columns: 1fr; }
}

.tenant-warning {
  margin-top: .55rem;
  padding: .45rem .6rem;
  border-left: 3px solid currentColor;
  font-size: .82rem;
  font-weight: 700;
  opacity: .82;
}


@media (max-width: 760px) {
  .result-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Audit remediation: accessibility, evidence states and responsive assets */
.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  box-shadow: var(--shadow);
  font-weight: 900;
}
.skip-link:focus { transform: translateY(0); }
.unresolved-section { border-top: 2px dashed var(--coral); padding-top: 2rem; }
.tenant-unresolved { color: #8e3725; background: #fff2ee; }
.availability-label { display: inline-flex; width: max-content; border-radius: 999px; background: #fff1e2; padding: 4px 8px; color: var(--teal-dark); font-size: .72rem; }
.detail-list small { color: var(--muted); }
.emergency-section + .emergency-section { margin-top: 44px; }
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* Full-audit remediation */
.noscript-note {
  margin: 0 26px 24px;
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  background: #fff7df;
  padding: 11px 13px;
  color: #54451f;
  font-size: .88rem;
}
.noscript-note a { color: var(--teal-dark); text-decoration: underline; font-weight: 850; }
.category-search-link { align-self: end; justify-self: start; color: var(--teal); font-weight: 900; }
.category-search-link:hover, .category-search-link:focus-visible { text-decoration: underline; }
.contact-warning { color: #6e4b12; background: #fff8e7; }
.alphabet-index-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}
.alphabet-index-card {
  display: grid;
  gap: 6px;
  min-height: 116px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 18px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(15,30,32,.04);
}
.alphabet-index-card strong { color: var(--teal-dark); font-size: 2rem; line-height: 1; }
.alphabet-index-card span { color: var(--muted); font-size: .78rem; font-weight: 800; }
.alphabet-index-card:hover, .alphabet-index-card:focus-visible { border-color: var(--teal); transform: translateY(-2px); }
.pagination {
  display: grid;
  grid-template-columns: minmax(100px,1fr) auto minmax(100px,1fr);
  gap: 16px;
  align-items: center;
  margin: 40px 0 8px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.pagination > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.pagination a, .pagination strong {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 7px 11px;
  color: var(--teal-dark);
  font-weight: 900;
}
.pagination strong { border-color: var(--teal); background: var(--teal); color: white; }
.pagination-next { justify-self: end; }
.pagination-prev { justify-self: start; }
@media (max-width: 780px) {
  .alphabet-index-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .pagination { grid-template-columns: 1fr 1fr; }
  .pagination > div { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 420px) {
  .alphabet-index-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* MyPotch design system */
:root {
  --ink: #171411;
  --muted: #66594e;
  --paper: #faf5ef;
  --surface: #ffffff;
  --surface-soft: #fffaf5;
  --line: #e5d8ca;
  --orange: #f28c28;
  --orange-dark: #a95400;
  --orange-soft: #fff0df;
  --red: #c94b2d;
  --green: #2f7a45;
  --black: #171411;
  --teal: var(--orange);
  --teal-dark: var(--orange-dark);
  --coral: var(--red);
  --amber: #b9690e;
  --blue: #2f2a25;
  --shadow: 0 22px 60px rgba(42, 26, 8, .12);
  --shadow-soft: 0 10px 30px rgba(42, 26, 8, .08);
  --radius: 18px;
}

html { scroll-padding-top: 90px; }
body { background: radial-gradient(circle at top left, #fffdf7 0, var(--paper) 38rem); color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(242, 140, 40, .35); outline-offset: 3px; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { font-size: clamp(2.65rem, 6vw, 5.65rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.85rem, 3.8vw, 3.1rem); }
.text-link, .inline-link, .detail-list a, .content-panel a, .source-list a, .breadcrumb a { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.content-panel a, .detail-list a, .source-list a, .breadcrumb a { text-decoration: underline; }

.site-header, .subpage-header {
  width: min(1220px, calc(100% - 40px));
}
.subpage-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border: 1px solid rgba(221, 230, 223, .8);
  border-radius: 0 0 22px 22px;
  background: rgba(255, 250, 241, .94);
  box-shadow: 0 10px 30px rgba(42, 26, 8, .07);
  backdrop-filter: blur(18px);
  padding: 14px 18px;
}
.subpage-brand { color: var(--teal-dark); }
.subpage-nav { gap: 8px; font-size: .84rem; }
.subpage-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 10px;
  color: #3b3026;
}
.subpage-nav a:hover, .subpage-nav a:focus-visible { border-color: #e2d2c1; background: white; color: var(--teal-dark); }
.brand-mark { border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }

.hero { min-height: auto; background: #20140a; }
.hero::before {
  background:
    linear-gradient(110deg, rgba(6, 31, 33, .94) 0%, rgba(6, 31, 33, .76) 48%, rgba(6, 31, 33, .36) 100%),
    image-set(url("assets/potch-hero.avif") type("image/avif"), url("assets/potch-hero.webp") type("image/webp")) center / cover no-repeat;
}
.hero-inner {
  width: min(1220px, calc(100% - 40px));
  min-height: 760px;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .72fr);
  gap: 48px;
  padding: 115px 0 80px;
}
.hero-copy h1 { max-width: 780px; }
.hero-text { max-width: 710px; font-size: clamp(1.04rem, 2vw, 1.24rem); color: rgba(255,255,255,.9); }
.button { border-radius: 999px; min-height: 48px; padding: 0 20px; }
.button.primary { border-color: var(--coral); background: var(--coral); }
.button.primary:hover, .button.primary:focus-visible { background: #8f321f; border-color: #8f321f; }
.button.secondary { background: var(--surface-soft); }
.search-panel { border-radius: 24px; background: rgba(255, 253, 248, .96); }
.search-panel-heading { padding: 28px 28px 0; }
.search-panel-heading h2 { font-size: 2.1rem; }
.search-form { gap: 12px; padding: 20px 28px 16px; }
.field { border-radius: 14px; padding: 12px 14px; background: #fff; }
.archive-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px dashed #dfcbb6;
  background: #fffaf5;
  color: #514438;
  cursor: pointer;
}
.archive-toggle input { width: 18px; height: 18px; accent-color: var(--teal); }
.archive-toggle span { letter-spacing: 0; text-transform: none; font-size: .88rem; color: #514438; }
.quick-links { padding: 0 28px 28px; }
.quick-links button { padding: 8px 12px; background: #fff7ee; }

.result-strip {
  width: min(1220px, calc(100% - 40px));
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}
.result-strip div { padding: 24px 26px; }
.result-strip strong { color: var(--teal-dark); }
.alert-band { background: linear-gradient(135deg, #a95400, #c94b2d); }
.contact-chip { border-radius: 14px; }
.section { width: min(1220px, calc(100% - 40px)); }
.soft-section, .feature-band { background: linear-gradient(180deg, #fff6ec, #f8eee2); }
.guide-card, .area-group, .category-card, .content-panel, .index-card, .emergency-card {
  border-color: rgba(54, 36, 17, .11);
  box-shadow: 0 10px 26px rgba(42, 26, 8, .045);
}
.category-card { border-radius: 24px; transition: transform .16s ease, box-shadow .16s ease; }
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.category-card-illustration { border-radius: 18px; margin: -4px -4px 18px; max-height: 150px; }
.category-card-illustration figcaption, .category-index-illustration figcaption { font-size: .72rem; }
.category-count { color: var(--teal-dark) !important; }

.directory-list-grid, .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.directory-listing-card {
  display: flex;
  min-height: 0;
  border-radius: 22px;
  border: 1px solid rgba(54, 36, 17, .12);
  background: var(--surface);
  padding: 18px;
  gap: 18px;
  box-shadow: 0 10px 26px rgba(42, 26, 8, .05);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.directory-listing-card:hover { transform: translateY(-2px); border-color: rgba(242, 140, 40, .28); box-shadow: var(--shadow-soft); }
.directory-listing-card > .listing-illustration { display: none; }
.directory-listing-card h3 { margin: 8px 0 8px; font-size: 1.16rem; line-height: 1.18; letter-spacing: -.025em; }
.directory-listing-card h3 a { color: #171411; }
.directory-listing-card .card-main { display: grid; gap: 2px; }
.card-topline { gap: 8px; }
.listing-label { background: #fff1e2; color: var(--teal-dark); border: 0; border-radius: 999px; padding: 5px 9px; font-size: .68rem; }
.status-badge { border-radius: 999px; padding: 5px 9px; font-size: .68rem; letter-spacing: .02em; }
.status-verified, .evidence-two-source-current-verification, .evidence-authoritative-current-source-verification { border-color: rgba(47,122,69,.25); background: #eaf7ee; color: #1e6834; }
.status-needs-confirmation, .evidence-partially-verified-stronger-current-evidence-required { border-color: rgba(143,98,23,.28); background: #fff5df; color: #795210; }
.status-uncertain, .evidence-uncertain-current-sources-conflict { border-color: rgba(169,67,47,.32); background: #fff0ec; color: #8f321f; }
.status-closed, .evidence-closed-current-closure-evidence { border-color: #cbd1d2; background: #f1f3f3; color: #4d5b5e; }
.status-archive, .evidence-excluded-stale-duplicate-or-non-permanent-record { border-color: #d7d0c5; background: #f7f2ea; color: #6b5d4b; }
.archive-card { background: #fbfaf6; }
.card-footer { display: grid; gap: 12px; align-items: end; }
.card-contact { color: #435b5f; font-size: .86rem; font-weight: 780; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.card-action, .card-map-link, .card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid #d3ded7;
  border-radius: 999px;
  background: #fff;
  padding: 0 11px;
  color: #23464a;
  font-size: .78rem;
  font-weight: 900;
}
.card-action.primary { border-color: rgba(242,140,40,.32); background: #fff1e2; color: var(--teal-dark); }
.card-action:hover, .card-arrow:hover, .card-map-link:hover { border-color: var(--teal); color: var(--teal-dark); text-decoration: none; }
.card-centre a { text-decoration: underline; text-underline-offset: 2px; }
.tenant-warning { border-radius: 12px; padding: 9px 10px; font-weight: 800; opacity: 1; }
.tenant-archive { background: #f3eee5; color: #5e5346; }
.archive-note, .archive-banner {
  border: 1px solid #e0d6c7;
  border-radius: 18px;
  background: #fff8ed;
  color: #5f4b2f;
  padding: 15px 17px;
}
.archive-banner { display: grid; gap: 4px; margin: 0 0 20px; }
.archive-banner strong { color: #3c3327; }

.listing-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}
.listing-hero-panel h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.quick-action-card {
  border: 1px solid rgba(242,140,40,.18);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f4fbf8);
  box-shadow: var(--shadow-soft);
  padding: 20px;
}
.quick-action-grid { display: grid; gap: 9px; }
.quick-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  border: 1px solid #e2d2c1;
  border-radius: 999px;
  background: white;
  padding: 0 14px;
  font-weight: 900;
  color: #173f42;
}
.quick-action.primary { border-color: var(--teal); background: var(--teal); color: white; }
.quick-action.unavailable { border-style: dashed; color: var(--muted); }
.detail-description { max-width: 78ch; color: #5f5348; font-size: 1.03rem; }
.listing-map-panel { border-radius: 22px; box-shadow: var(--shadow-soft); }
.map-button { border-radius: 999px; }
.detail-list { border-radius: 22px; }
.detail-list div { grid-template-columns: minmax(160px, .30fr) minmax(0, 1fr); }
.verification-note { border-radius: 22px; }

.site-footer { border-top: 1px solid var(--line); background: #171411; color: rgba(255,255,255,.86); }
.site-footer strong { color: #fff; }
.site-footer a { color: white; text-decoration: underline; text-underline-offset: 3px; }
.site-footer span { color: rgba(255,255,255,.76); }

.data-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.correction-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.correction-form > label { display: grid; gap: 7px; color: var(--ink); font-weight: 850; }
.correction-form > label:has(textarea), .correction-form > .form-consent, .correction-form > button { grid-column: 1 / -1; }
.correction-form input, .correction-form select, .correction-form textarea {
  width: 100%; border: 1px solid #ddc7af; border-radius: 12px; background: #fff;
  padding: 12px 13px; color: var(--ink); font: inherit;
}
.correction-form textarea { resize: vertical; min-height: 150px; }
.correction-form input:focus-visible, .correction-form select:focus-visible, .correction-form textarea:focus-visible {
  outline: 3px solid rgba(242,140,40,.22); outline-offset: 2px; border-color: var(--teal);
}
.correction-form small { color: #5f5348; font-weight: 650; }
.form-consent { grid-template-columns: auto 1fr !important; align-items: start; border-radius: 14px; background: #fff8ef; padding: 14px; }
.form-consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); }
.form-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


@media (max-width: 980px) {
  .hero-inner, .listing-hero-panel { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; padding-top: 96px; }
  .search-panel { order: -1; }
  .directory-list-grid, .listing-grid, .category-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .alert-band { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-header, .subpage-header, .hero-inner, .result-strip, .section { width: min(100% - 28px, 1220px); }
  .subpage-header { position: static; border-radius: 0 0 18px 18px; }
  .subpage-nav { display: none; }
  .mobile-nav { display: block; }
  h1 { font-size: clamp(2.3rem, 14vw, 3.6rem); }
  .hero-inner { gap: 24px; padding: 86px 0 48px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr; padding: 18px; }
  .search-panel-heading { padding: 22px 18px 0; }
  .quick-links { padding: 0 18px 20px; }
  .result-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -20px; }
  .result-strip div { padding: 18px; }
  .contact-rail, .directory-list-grid, .listing-grid, .category-grid, .guide-grid, .area-groups, .index-card-grid, .emergency-grid { grid-template-columns: 1fr; }
  .section-heading, .split-heading { display: grid; align-items: start; }
  .soft-section, .feature-band { padding-left: 14px; padding-right: 14px; }
  .directory-listing-card { padding: 16px; }
  .card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-action, .card-arrow { width: 100%; }
  .listing-map-panel { grid-template-columns: 1fr; }
  .detail-list div { grid-template-columns: 1fr; gap: 5px; }
  .correction-form { grid-template-columns: 1fr; }
  .correction-form > label, .correction-form > .form-consent, .correction-form > button { grid-column: 1; }
}


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



/* Brand, navigation and responsive interaction refinements */
html { scroll-padding-top: 82px; }
body { background: radial-gradient(circle at top left, #fffdf8 0, var(--paper) 38rem); color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(242, 140, 40, .38);
  outline-offset: 3px;
}
.subpage-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1220px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  border: 1px solid rgba(229, 216, 202, .9);
  border-radius: 0 0 20px 20px;
  background: rgba(250, 245, 239, .96);
  box-shadow: 0 10px 28px rgba(42, 26, 8, .08);
  padding: 10px 16px;
  backdrop-filter: blur(16px);
}
.subpage-brand-wrap { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.brand-mark { display: none; }
.brand, .subpage-brand {
  display: inline-flex;
  align-items: center;
  color: var(--orange);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 950;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.brand-wordmark { color: var(--orange); }
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 14px;
  color: var(--black);
  font-size: .86rem;
  font-weight: 900;
  white-space: nowrap;
}
.back-link:hover, .back-link:focus-visible { border-color: var(--orange); color: var(--orange-dark); }
.subpage-nav { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-left: auto; }
.subpage-nav a { border: 1px solid transparent; border-radius: 999px; padding: 8px 10px; color: #3b3026; font-size: .84rem; font-weight: 850; }
.subpage-nav a:hover, .subpage-nav a:focus-visible { border-color: var(--line); background: #fff; color: var(--orange-dark); }
.mobile-nav { display: none; position: relative; margin-left: auto; flex: 0 0 auto; }
.mobile-nav summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 14px;
  color: var(--black);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: " +"; }
.mobile-nav[open] summary::after { content: " −"; }
.mobile-nav-links { position: absolute; z-index: 50; top: calc(100% + 9px); right: 0; display: grid; width: min(280px, calc(100vw - 28px)); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); padding: 8px; }
.mobile-nav-links a { min-height: 44px; display: flex; align-items: center; border-radius: 12px; padding: 8px 12px; color: var(--black); font-weight: 850; }
.mobile-nav-links a:hover, .mobile-nav-links a:focus-visible { background: var(--orange-soft); color: var(--orange-dark); }

.hero { min-height: auto; background: #20140a; }
.hero::before {
  background:
    linear-gradient(108deg, rgba(31, 18, 6, .94) 0%, rgba(31, 18, 6, .74) 50%, rgba(31, 18, 6, .34) 100%),
    image-set(url("assets/potch-hero.avif") type("image/avif"), url("assets/potch-hero.webp") type("image/webp")) center / cover no-repeat;
}
.hero-inner {
  width: min(1220px, calc(100% - 40px));
  min-height: 650px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: 44px;
  padding: 94px 0 58px;
}
.hero-copy h1 { max-width: 760px; }
.eyebrow { color: var(--orange-dark); }
.eyebrow.light { color: #ffd2a0; }
.button { min-height: 48px; border-radius: 999px; padding: 0 20px; }
.button.primary, .quick-action.primary { border-color: var(--orange); background: var(--orange); color: #171411; }
.button.primary:hover, .button.primary:focus-visible, .quick-action.primary:hover, .quick-action.primary:focus-visible { border-color: #d87312; background: #d87312; color: #171411; }
.button.secondary { border-color: var(--line); background: #fff; color: var(--black); }
.button.secondary:hover, .button.secondary:focus-visible { border-color: var(--orange); color: var(--orange-dark); }
.field:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(242, 140, 40, .16); }
.quick-links button:hover, .quick-links button:focus-visible { border-color: var(--orange); color: var(--orange-dark); }
.alert-band { background: linear-gradient(135deg, #25160a, var(--red)); }
.alert-band .eyebrow { color: #ffd2a0; }
.soft-section, .feature-band { background: linear-gradient(180deg, #fff8f0, #f8eee2); }
.text-link, .inline-link, .detail-list a, .breadcrumb a { color: var(--orange-dark); }

.category-card { min-height: 0; border-radius: 22px; padding: 22px; }
.category-symbol {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-dark);
  font-weight: 950;
}
.category-card h3 { margin-bottom: 10px; }
.category-card button, .category-search-link { color: var(--orange-dark); font-weight: 900; }
.category-card-illustration, .category-page-illustration, .category-index-illustration, .category-count { display: none !important; }

.directory-list-grid, .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.directory-listing-card {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(54, 36, 17, .12);
  border-radius: 22px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(42, 26, 8, .055);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.directory-listing-card:hover { transform: translateY(-2px); border-color: rgba(242, 140, 40, .46); box-shadow: var(--shadow-soft); }
.directory-listing-card h3 { margin: 8px 0; font-size: 1.16rem; line-height: 1.2; letter-spacing: -.025em; }
.directory-listing-card h3 a { color: var(--black); }
.listing-label { display: inline-flex; width: fit-content; border: 0; border-radius: 999px; background: var(--orange-soft); padding: 5px 9px; color: var(--orange-dark); font-size: .68rem; font-weight: 900; }
.status-badge, .status-current { display: none !important; }
.card-footer { display: grid; gap: 14px; margin-top: auto; }
.card-contact { color: #42372d; font-size: .92rem; font-weight: 800; overflow-wrap: anywhere; }
.phone-contact, .detail-phone-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; }
.phone-icon { color: var(--orange-dark); }
.card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.card-action, .card-map-link, .card-arrow {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfcebc;
  border-radius: 999px;
  background: #fff;
  padding: 0 12px;
  color: #2e241b;
  font-size: .8rem;
  font-weight: 900;
  text-align: center;
}
.card-action.primary { border-color: rgba(242, 140, 40, .48); background: var(--orange-soft); color: #8a4700; }
.card-action.details-action { border-color: var(--black); background: var(--black); color: #fff; }
.card-action:hover, .card-map-link:hover, .card-arrow:hover { border-color: var(--orange); color: var(--orange-dark); text-decoration: none; }
.card-action.details-action:hover, .card-action.details-action:focus-visible { border-color: #3d2b1d; background: #3d2b1d; color: #fff; }

.listing-hero-panel { grid-template-columns: minmax(0, 1fr) minmax(300px, 390px); gap: 30px; }
.quick-action-card { border-radius: 22px; background: #fff; box-shadow: var(--shadow-soft); }
.quick-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.quick-action { min-width: 0; min-height: 46px; justify-content: center; text-align: center; }
.listing-map-panel { display: none !important; }
.detail-list { border-radius: 22px; }

.index-card, .alphabet-index-card { border-color: var(--line); }
.index-card:hover, .alphabet-index-card:hover { border-color: var(--orange); }
.pagination a, .pagination strong { color: var(--orange-dark); }
.pagination strong { border-color: var(--orange); background: var(--orange); color: #171411; }

.site-footer { border-top: 1px solid #32251b; background: #171411; color: rgba(255,255,255,.86); }
.site-footer strong { color: #ffb45e; }
.site-footer a { color: white; text-decoration: underline; text-underline-offset: 3px; }
.site-footer span { color: rgba(255,255,255,.76); }

@media (max-width: 980px) {
  .hero-inner, .listing-hero-panel { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; padding-top: 84px; }
  .search-panel { order: -1; }
  .directory-list-grid, .listing-grid, .category-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .subpage-header { width: 100%; min-height: 64px; flex-direction: row; align-items: center; border-width: 0 0 1px; border-radius: 0; padding: 9px 14px; }
  .subpage-nav { display: none; }
  .mobile-nav { display: block; }
  .subpage-brand-wrap { gap: 8px; }
  .back-link { min-height: 40px; padding: 0 11px; font-size: .8rem; }
  .brand, .subpage-brand { font-size: 1.3rem; }
  .hero-inner { width: min(100% - 28px, 1220px); gap: 22px; padding: 72px 0 38px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr; padding: 18px; }
  .search-panel-heading { padding: 22px 18px 0; }
  .quick-links { padding: 0 18px 20px; }
  .directory-list-grid, .listing-grid, .category-grid, .guide-grid, .area-groups, .index-card-grid, .emergency-grid { grid-template-columns: 1fr; }
  .card-actions, .quick-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-listing-card { padding: 16px; }
  .section-heading, .split-heading { display: grid; align-items: start; }
  .soft-section, .feature-band { padding-left: 14px; padding-right: 14px; }
  .detail-list div { grid-template-columns: 1fr; gap: 5px; }
}
@media (max-width: 360px) {
  .back-link { padding: 0 9px; }
  .subpage-brand-wrap { gap: 6px; }
  .brand, .subpage-brand { font-size: 1.18rem; }
  .mobile-nav summary { padding: 0 11px; }
  .card-actions, .quick-action-grid { grid-template-columns: 1fr; }
}

/* Static verified opening-hours panel */
.opening-hours-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid #ead6bd;
  border-radius: 16px;
  background: #fff8ef;
  padding: 15px;
}
.opening-hours-card[hidden] { display: none; }
.hours-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hours-heading > div { display: grid; gap: 2px; }
.hours-heading strong { font-size: .96rem; }
.hours-heading span { color: var(--muted); font-size: .76rem; }
.hours-clock {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 36px;
  border-radius: 50%;
  background: #f28c28;
  color: #171411 !important;
  font-size: 1.15rem !important;
  font-weight: 950;
}
.hours-status.open { color: #28642f; }
.hours-status.closed { color: #a23f26; }
.opening-hours-card > p { margin: 0; color: #4b3d31; font-size: .84rem; font-weight: 750; }
.opening-hours-card details { border-top: 1px solid #ead6bd; padding-top: 10px; }
.opening-hours-card summary { cursor: pointer; color: #6d3500; font-size: .82rem; font-weight: 900; }
.weekly-hours { display: grid; gap: 4px; margin: 10px 0 0; }
.weekly-hours > div { display: grid; grid-template-columns: minmax(84px, .8fr) 1.2fr; gap: 12px; padding: 5px 0; }
.weekly-hours > div.today { font-weight: 900; color: #8a4700; }
.weekly-hours dt, .weekly-hours dd { margin: 0; font-size: .8rem; }
.weekly-hours dd { text-align: right; }

/* Final brand and state polish */
.subpage-brand .brand-wordmark { color: var(--orange) !important; }
.mobile-nav summary::after, .mobile-nav[open] summary::after { content: ""; }
.card-actions > .details-action:last-child:nth-child(odd),
.quick-action-grid > .quick-action:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hours-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hours-status::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}
.hours-status.open { color: #28642f; }
.hours-status.closing { color: #a95400; }
.hours-status.closed { color: #a23f26; }

/* Full-bleed footer correction — keep the black footer edge-to-edge and at the
   bottom of short pages while retaining the existing 1180px content rhythm. */
html, body { min-height: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { width: 100%; flex: 1 0 auto; }
body > .site-footer {
  width: 100%;
  margin: 40px 0 0;
  padding: 31px max(20px, calc((100vw - 1180px) / 2)) 40px;
  flex-shrink: 0;
  border-top: 1px solid #242424;
  background: #000;
  color: rgba(255,255,255,.86);
}
body > .site-footer strong { color: #ffb45e; }
body > .site-footer a { color: #fff; }
body > .site-footer span { color: rgba(255,255,255,.76); }
@media (max-width: 720px) {
  body > .site-footer {
    width: 100%;
    margin: 32px 0 0;
    padding: 28px 20px 34px;
  }
}

/* Opening-hours completeness and source context */
.hours-unavailable-card {
  border-color: #dfd7cf;
  background: #f7f6f4;
}
.hours-unavailable-card .hours-clock {
  background: #eee8e1;
  color: #6b5f55 !important;
}
.hours-source-warning {
  display: grid;
  gap: 2px;
  padding: 10px 11px;
  border-left: 4px solid #b96712;
  border-radius: 8px;
  background: #fff2df;
  color: #5d3a16;
  font-size: .78rem;
}
.hours-source-warning strong { font-size: .82rem; }
.hours-source-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid #ead6bd;
  color: var(--muted);
  font-size: .73rem;
}
.hours-source-link { font-weight: 850; }
.card-hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  align-items: center;
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #eef8f1;
  color: #28642f;
  font-size: .78rem;
}
.card-hours[hidden] { display: none; }
.card-hours .hours-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.card-hours strong { min-width: 0; }
.card-hours small { grid-column: 2; color: #735a3f; }
.card-hours.unknown {
  background: #f3f3f2;
  color: #6c6760;
}
.card-hours[data-state="closed"] { background: #fff1ed; color: #a23f26; }
.card-hours[data-state="closing"] { background: #fff4df; color: #a95400; }
.card-hours .hours-status::before { display: none; }
.hours-report-link {
  display: inline-flex;
  margin-top: .75rem;
  color: #7c2d12;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: .18em;
}
