:root {
  --navy: #082f53;
  --navy-dark: #061e35;
  --teal: #0f7a8a;
  --green: #4c812c;
  --ink: #17232b;
  --muted: #68757c;
  --paper: #ffffff;
  --wash: #f3f6f4;
  --line: #d7dedb;
  --line-strong: #aebbb6;
  --accent: #d8e7df;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select, summary { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: inherit; }
.shell { width: min(1380px, calc(100% - 64px)); margin: 0 auto; }
.top-rule { height: 7px; background: linear-gradient(90deg, var(--navy) 0 62%, var(--green) 62% 78%, var(--teal) 78%); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: min(700px, 58vw); max-height: 118px; object-fit: contain; object-position: left center; }
.header-note { display: grid; gap: 3px; padding-left: 28px; border-left: 1px solid var(--line); color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 760; white-space: nowrap; }
.header-note span:first-child { color: var(--navy); }

.hero { position: relative; overflow: hidden; background: var(--wash); border-bottom: 1px solid var(--line); }
.hero-angle { position: absolute; inset: 0 0 0 auto; width: 52%; background: linear-gradient(135deg, var(--navy) 0%, #0b4b68 100%); clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); opacity: .98; }
.hero-angle::after { content: ""; position: absolute; width: 180px; height: 180px; border: 1px solid rgba(255,255,255,.18); right: 8%; top: 50%; transform: translateY(-50%) rotate(45deg); }
.hero-inner { min-height: 230px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 52px; align-items: center; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 10px; color: var(--teal); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 820; }
.hero h1 { margin: 0; max-width: 760px; color: var(--navy-dark); font-size: clamp(2.8rem, 4.9vw, 5.25rem); line-height: .9; letter-spacing: -.065em; font-weight: 820; }
.hero h1 em { color: var(--green); font-style: normal; font-weight: 820; }
.hero-lead { max-width: 680px; margin: 10px 0 0; color: #526068; font-size: 1.06rem; }
.hero-search-block { align-self: center; color: #fff; padding: 16px 0 16px 96px; }
.search-line { display: block; }
.search-label { display: block; margin: 0 0 8px; color: #d8edf1; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 820; }
.search-field { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 0 18px; background: #fff; border: 2px solid #fff; box-shadow: 0 8px 26px rgba(3, 22, 39, .16); }
.search-icon { position: relative; display: block; width: 16px; height: 16px; border: 2px solid var(--teal); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 8px; height: 2px; background: var(--teal); right: -6px; bottom: -3px; transform: rotate(45deg); transform-origin: left center; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--navy-dark); font-size: 1.08rem; }
.search-field input::placeholder { color: #6d7b82; opacity: 1; }
.search-field:focus-within { outline: 3px solid rgba(216, 231, 223, .55); outline-offset: 3px; }
.search-field button { border: 0; border-bottom: 1px solid var(--teal); background: transparent; color: var(--teal); font-weight: 800; padding: 4px 0; }
.hero-meta { margin-top: 10px; display: flex; align-items: baseline; gap: 12px; }
.hero-meta strong { font-size: 2.65rem; line-height: 1; font-weight: 780; }
.hero-meta span { color: #c9dde2; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 760; }

.directory { padding: 38px 0 80px; background: #fff; }
.directory-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; }
.browse-panel { position: sticky; top: 24px; }
.browse-title span { color: var(--teal); text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 820; }
.browse-title h2 { margin: 2px 0 20px; font-size: 1.75rem; color: var(--navy); letter-spacing: -.025em; }
.category-list { border-top: 1px solid var(--line-strong); }
.category-item { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; min-height: 46px; padding: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #4d5a61; text-align: left; font-weight: 700; transition: color .18s ease, border-color .18s ease; }
.category-item b { font-size: .74rem; font-weight: 750; color: #8a969b; transition: color .18s ease; }
.category-item:hover { color: var(--navy); }
.category-item.active { color: var(--navy); border-bottom-color: var(--navy); }
.category-item.active span { position: relative; padding-left: 16px; }
.category-item.active span::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; background: var(--green); transform: translateY(-50%) rotate(45deg); }
.category-item.active b { color: var(--green); }

.results-header { display: flex; justify-content: space-between; gap: 36px; align-items: end; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.results-header-title h2 { margin: 0; color: var(--navy-dark); font-size: clamp(1.4rem, 1.8vw, 1.85rem); line-height: 1.1; letter-spacing: -.03em; }
.results-tools { display: flex; gap: 18px; align-items: end; }
.results-tools label > span { display: block; margin-bottom: 5px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: .64rem; font-weight: 820; }
.results-tools select { min-height: 38px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--ink); padding: 5px 26px 5px 0; }
.view-switch { display: flex; align-items: center; border-bottom: 1px solid var(--line-strong); }
.view-switch button { min-height: 38px; border: 0; background: transparent; color: var(--muted); font-weight: 800; padding: 0 10px; }
.view-switch button.active { color: var(--navy); box-shadow: inset 0 -3px 0 var(--green); }
.mobile-category-wrap { display: none; }
.results-status { min-height: 54px; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--muted); font-size: .84rem; }
.results-copy { display: grid; gap: 2px; }
.results-status p { margin: 0; }
.active-filters { font-size: .78rem; color: var(--teal); }
.results-status button { border: 0; background: transparent; color: var(--teal); font-weight: 800; padding: 0; }

.business-list { border-top: 1px solid var(--line); }
.business-entry { border-bottom: 1px solid var(--line); background: #fff; transition: background .18s ease; }
.business-entry:hover { background: #f8faf9; }
.entry-main { display: grid; grid-template-columns: 204px minmax(0,1fr) 188px; min-height: 176px; }
.logo-panel { display: grid; place-items: center; padding: 6px; overflow: hidden; }
.logo-panel img { display: block; width: 164px; height: 164px; max-width: 164px; max-height: 164px; object-fit: contain; object-position: center center; margin: auto; }
.logo-panel.image-missing { color: var(--navy); font-weight: 800; text-align: center; }
.entry-body { min-width: 0; padding: 24px 26px 22px 18px; border-left: 1px solid var(--line); }
.entry-category { display: block; margin-bottom: 6px; color: var(--green); font-size: .68rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 850; }
.entry-title { margin: 0 0 8px; color: var(--navy-dark); font-size: 1.85rem; line-height: 1.03; letter-spacing: -.03em; }
.entry-summary { margin: 0 0 14px; color: #516068; font-size: .95rem; max-width: 62ch; }
.entry-facts { display: grid; gap: 7px; color: #59666d; font-size: .88rem; }
.entry-fact { display: grid; grid-template-columns: 66px minmax(0,1fr); gap: 12px; }
.entry-fact b { color: #8b969b; text-transform: uppercase; letter-spacing: .07em; font-size: .63rem; padding-top: 3px; }
.entry-fact a { color: var(--teal); text-decoration: none; font-weight: 760; }
.entry-actions { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 24px 0 24px 24px; border-left: 1px solid var(--line); }
.entry-actions a { position: relative; display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; text-decoration: none; font-weight: 800; font-size: .84rem; }
.entry-actions a::after { content: "→"; color: var(--green); }
.entry-actions .action-primary { padding: 0 12px; background: var(--navy); color: #fff; }
.entry-actions .action-primary::after { color: #fff; }
.entry-actions .action-primary:hover { background: var(--teal); }
.entry-actions .action-secondary { color: var(--navy); border-bottom: 1px solid var(--line); }
.entry-actions .action-secondary:hover { color: var(--teal); }
.entry-actions .action-tertiary { color: #59666d; border-bottom: 1px solid var(--line); }
.entry-actions .action-tertiary:hover { color: var(--teal); }
.entry-details { border-top: 1px solid var(--line); background: #fbfcfb; }
.entry-details > summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 18px; color: var(--navy); font-weight: 790; }
.entry-details > summary::-webkit-details-marker { display: none; }
.entry-details > summary::after { content: "More info"; color: var(--teal); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.entry-details[open] > summary::after { content: "Less info"; }
.detail-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 28px; padding: 0 18px 18px; }
.detail-panel { display: grid; gap: 14px; }
.detail-panel p { margin: 0; color: #53626a; }
.detail-list { display: grid; gap: 10px; }
.detail-list .entry-fact { grid-template-columns: 80px minmax(0,1fr); }
.detail-links { display: flex; flex-wrap: wrap; gap: 10px 18px; padding-top: 6px; }
.detail-links a { color: var(--teal); text-decoration: none; font-weight: 800; border-bottom: 1px solid rgba(15,122,138,.35); }
.detail-links a:hover { color: var(--navy); }
.business-list.grid-mode { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 34px; border-top: 1px solid var(--line-strong); }
.business-list.grid-mode .business-entry { display: grid; }
.business-list.grid-mode .entry-main { grid-template-columns: 1fr; min-height: 0; }
.business-list.grid-mode .logo-panel { min-height: 220px; padding: 8px 10px; }
.business-list.grid-mode .logo-panel img { width: min(202px, 100%); height: 202px; max-width: 202px; max-height: 202px; object-fit: contain; }
.business-list.grid-mode .entry-body { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
.business-list.grid-mode .entry-actions { border-left: 0; padding: 0 0 24px; flex-direction: row; flex-wrap: wrap; gap: 14px; }
.business-list.grid-mode .entry-actions a { flex: 1 1 42%; }
.business-list.grid-mode .entry-details { margin-top: -1px; }
.business-list.grid-mode .detail-grid { grid-template-columns: 1fr; }

.message { padding: 28px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.message strong { color: var(--navy); }
.message p { margin: 6px 0 0; }
.message.error { color: #7c4545; }
.message.error button { margin-top: 12px; border: 0; border-bottom: 2px solid #7c4545; background: transparent; color: #7c4545; font-weight: 800; padding: 4px 0; }

.site-footer { background: var(--navy-dark); color: #fff; border-top: 4px solid var(--green); }
.footer-inner { min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-inner div { display: grid; gap: 2px; }
.footer-inner strong { font-size: .98rem; letter-spacing: .02em; }
.footer-inner span, .footer-inner small { color: #a8c2cc; }

@media (max-width: 1050px) {
  .shell { width: min(100% - 40px, 1380px); }
  .header-inner { min-height: 126px; }
  .brand img { width: min(620px, 70vw); max-height: 98px; }
  .header-note { display: none; }
  .hero-inner { min-height: 270px; grid-template-columns: 1fr; gap: 0; padding: 26px 0 0; }
  .hero-angle { width: 100%; top: auto; height: 118px; clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 100%); }
  .hero-angle::after { display: none; }
  .hero-search-block { padding: 24px 0 16px; }
  .directory-shell { grid-template-columns: 1fr; gap: 28px; }
  .browse-panel { display: none; }
  .mobile-category-wrap { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 14px 0 18px; border-bottom: 1px solid var(--line); }
  .mobile-category-wrap label { text-transform: uppercase; letter-spacing: .1em; font-size: .65rem; font-weight: 820; color: var(--muted); }
  .mobile-category-wrap select { border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; padding: 8px 0; }
  .results-status { align-items: start; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1380px); }
  .top-rule { height: 5px; }
  .header-inner { min-height: 104px; }
  .brand img { width: min(100%, 520px); max-height: 82px; }
  .hero-inner { min-height: 250px; padding-top: 22px; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 4.1rem); }
  .hero-lead { font-size: .98rem; margin-top: 14px; }
  .hero-search-block { padding-top: 20px; }
  .search-field { min-height: 54px; padding: 0 14px; }
  .search-field input { font-size: 1rem; }
  .hero-meta strong { font-size: 2.15rem; }
  .directory { padding: 28px 0 60px; }
  .results-header { align-items: start; flex-direction: column; gap: 18px; }
  .results-tools { width: 100%; justify-content: space-between; }
  .results-status { flex-direction: column; gap: 10px; }
  .entry-main { grid-template-columns: 1fr; }
  .logo-panel { min-height: 192px; padding: 8px 10px; }
  .logo-panel img { width: 174px; height: 174px; max-width: 174px; max-height: 174px; object-fit: contain; }
  .entry-body { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0; }
  .entry-title { font-size: 1.55rem; }
  .entry-actions { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 18px; flex-direction: row; flex-wrap: wrap; }
  .entry-actions a { flex: 1 1 46%; }
  .entry-details > summary { padding-inline: 0; }
  .detail-grid { grid-template-columns: 1fr; padding: 0 0 18px; }
  .business-list.grid-mode { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { min-height: 92px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; }
}


/* Finishing pass v10: deliberately no scale/size changes. */
:focus-visible {
  outline: 3px solid rgba(15,122,138,.38);
  outline-offset: 3px;
}
button:focus-visible, select:focus-visible, a:focus-visible, summary:focus-visible {
  outline-color: var(--teal);
}

/* Clear but restrained filter/status feedback. */
.results-copy { display: grid; gap: 2px; }
.active-filters { color: var(--teal); font-weight: 700; }
.results-status button {
  border-bottom: 1px solid rgba(15,122,138,.4);
}
.results-status button:hover { color: var(--navy); border-color: var(--navy); }

/* Subtle interaction polish only. */
.category-item:hover { color: var(--navy); }
.entry-actions a:focus-visible,
.detail-links a:focus-visible { outline-offset: 2px; }
.entry-details > summary:hover { color: var(--navy); }
.entry-details > summary:focus-visible { background: #f5f8f6; }
.detail-links a:hover { color: var(--navy); }

/* Keep actions easy to tap on phones without changing visual scale. */
@media (max-width: 760px) {
  .entry-actions a { min-height: 40px; }
  .results-status { row-gap: 8px; }
}
