:root {
  color-scheme: light;
  --ink: #153437;
  --muted: #5e7474;
  --line: #d4dfda;
  --paper: #f7f7f2;
  --mint: #dbece3;
  --accent: #a84825;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

.shell { width: min(1540px, calc(100% - 2rem)); margin: 0 auto; }

.masthead {
  padding: 1rem 0 1.5rem;
  background: var(--ink);
  color: var(--white);
}

.masthead-bar, .masthead-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead-bar { padding-bottom: 1.1rem; margin-bottom: 1.4rem; border-bottom: 1px solid rgb(216 228 223 / 25%); }
.masthead-brand { display: inline-flex; align-items: center; gap: .62rem; color: var(--white); text-decoration: none; }
.brand-mark { width: 2.35rem; height: 2.35rem; flex: 0 0 auto; }
.masthead-brand > span { display: grid; gap: .08rem; }
.masthead-brand strong { font-size: 1rem; line-height: 1; letter-spacing: -.03em; }
.masthead-brand small { color: #d8e4df; font-size: .59rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.masthead-nav { display: flex; flex-wrap: wrap; gap: .95rem; }
.masthead-nav a { color: #d8e4df; font-size: .86rem; font-weight: 760; text-decoration: none; }
.masthead-nav a:hover, .masthead-nav a:focus-visible { color: var(--white); text-decoration: underline; text-underline-offset: .22em; }
.masthead-location { flex: 0 0 auto; margin: 0; color: #d8e4df; font-size: .92rem; font-weight: 700; }
.masthead-eyebrow { margin: 0 0 .38rem; color: #f3b189; font-size: .73rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; }

.eyebrow {
  margin: 0 0 .65rem;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: none; margin-bottom: .35rem; font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1; letter-spacing: -.045em; }
h2 { margin-bottom: .35rem; font-size: clamp(1.35rem, 2vw, 1.7rem); letter-spacing: -.035em; }
h3 { margin-bottom: .5rem; font-size: 1.2rem; letter-spacing: -.02em; }
.intro { max-width: none; margin-bottom: 0; color: #d8e4df; font-size: .94rem; }

main { padding: 1.3rem 0 2rem; }
.filters, .provenance { padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: var(--white); }
.filters-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.filters-header h2 { margin: 0; }
.filter-grid { display: grid; grid-template-columns: minmax(17rem, 2fr) repeat(3, minmax(10rem, 1fr)); gap: .75rem; align-items: end; }
label { display: grid; gap: .42rem; color: var(--muted); font-size: .9rem; font-weight: 650; }
.search-field { grid-column: auto; }
input, select, button { font: inherit; }
input, select { width: 100%; min-height: 2.8rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--white); color: var(--ink); }
input:focus, select:focus, a:focus-visible, button:focus-visible { outline: 3px solid #f3b189; outline-offset: 2px; }
.filter-actions, .results-heading { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.filter-actions p { margin: 0; color: var(--muted); }
.quiet-button { border: 0; background: none; color: var(--accent); cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: .18em; }

.results-heading { margin: 1.25rem 0 .75rem; align-items: end; }
.results-heading h2 { margin-bottom: 0; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(520px, 1fr)); gap: 1rem; }
.directory-card, .empty-state { padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); }
.directory-card { display: flex; min-height: 100%; flex-direction: column; }
.card-header { padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.card-header h3 { margin-bottom: .18rem; }
.source-meta { margin: 0; color: var(--muted); font-size: .78rem; }
.source-meta a, .field-sources a { color: var(--accent); }
.card-hours { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; margin-top: .5rem; color: var(--ink); font-size: .84rem; }
.hours-label { color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; padding-top: .8rem; }
.info-field { min-width: 0; }
.info-field-wide { grid-column: 1 / -1; }
.info-label { margin: 0 0 .18rem; color: var(--muted); font-size: .72rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.info-value { color: var(--ink); font-size: .9rem; overflow-wrap: anywhere; }
.contact-list { display: grid; gap: .45rem; }
.contact-row { display: grid; grid-template-columns: minmax(9rem, 1fr) 17.75rem; align-items: center; gap: .35rem .55rem; }
.contact-area { grid-column: 1 / -1; color: var(--muted); font-size: .82rem; }
.contact-number { font-variant-numeric: tabular-nums; }
.contact-actions { display: grid; grid-template-columns: 4.8rem 4.8rem 7.35rem; gap: .35rem; }
.contact-action-placeholder { min-height: 2rem; }
.contact-button { display: inline-flex; align-items: center; justify-content: center; gap: .28rem; min-height: 2rem; padding: .32rem .35rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--white); color: var(--ink); cursor: pointer; font-size: .8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.contact-button:hover { border-color: var(--accent); color: var(--accent); }
.contact-call { color: var(--accent); }
.contact-whatsapp { color: #167147; }
.specialty-box { display: grid; gap: .38rem; }
.specialty-chips { display: flex; flex-wrap: wrap; gap: .32rem; }
.specialty-chip { display: inline-flex; max-width: 100%; padding: .22rem .45rem; border: 1px solid #c7d6cf; border-radius: 999px; background: #eff5f1; color: #26484a; font-size: .8rem; line-height: 1.25; }
.editorial-note { color: var(--muted); font-size: .9rem; font-style: italic; }
.field-sources { margin-top: 1rem; color: var(--muted); font-size: .82rem; }
.field-sources summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.field-sources ul { margin: .5rem 0 0; padding-left: 1.15rem; }
.empty-state { grid-column: 1 / -1; padding: 2.5rem 1.4rem; background: var(--mint); }
.empty-state p { max-width: 65ch; margin-bottom: 0; color: var(--muted); }
.provenance { margin-top: 1.5rem; background: var(--mint); }
.provenance ul { margin-bottom: 0; padding-left: 1.2rem; }
.commercial-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); align-items: center; gap: 1.25rem; margin-top: 1.5rem; padding: 1.1rem; border: 1px solid #c7d6cf; border-radius: .9rem; background: #eff5f1; }
.commercial-contact .eyebrow { margin-bottom: .35rem; }
.commercial-contact h2 { margin-bottom: .35rem; }
.commercial-contact p { margin-bottom: 0; color: #385254; font-size: .92rem; }
.commercial-actions { display: grid; gap: .65rem; }
.commercial-link { display: inline-flex; width: fit-content; min-height: 2.55rem; align-items: center; padding: .55rem .8rem; border-radius: .55rem; background: var(--ink); color: var(--white); font-weight: 760; text-decoration: none; }
.commercial-message { width: fit-content; color: var(--accent); font-size: .92rem; font-weight: 760; text-decoration: underline; text-underline-offset: .18em; }
.footer { margin-top: 2rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .87rem; }
.footer-inner { display: grid; grid-template-columns: auto minmax(13rem, 1fr) auto; align-items: center; gap: 1.25rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .62rem; color: var(--ink); text-decoration: none; }
.footer-brand > span { display: grid; gap: .08rem; }
.footer-brand strong { font-size: .95rem; line-height: 1; letter-spacing: -.03em; }
.footer-brand small { color: var(--muted); font-size: .59rem; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .9rem; }
.footer a { color: var(--ink); font-weight: 760; text-decoration: none; }
.footer a:hover, .footer a:focus-visible { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 720px) {
  .filter-grid, .results, .info-grid { grid-template-columns: 1fr; }
  .masthead-bar, .masthead-title-row, .filters-header { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; align-items: flex-start; }
  .footer nav { justify-content: flex-start; }
  .filter-actions, .results-heading { align-items: flex-start; }
  .info-field-wide { grid-column: auto; }
  .contact-row { grid-template-columns: 1fr; }
  .commercial-contact { grid-template-columns: 1fr; }
  .masthead { padding: 1.25rem 0; }
}

.masthead-nav { flex-wrap: wrap; }
