:root {
  --ink: #172421;
  --muted: #58645f;
  --line: #d7ddda;
  --paper: #f4f6f3;
  --surface: #ffffff;
  --brand: #1d4a43;
  --brand-strong: #153832;
  --gold: #9a6b25;
  --care: #2f6b59;
  --health: #865340;
  --home: #536879;
  --education: #665a91;
  --icon-stroke: 2.25;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header,
.site-footer,
main {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-strong);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 21px;
  height: 18px;
  display: inline-flex;
  align-items: stretch;
  gap: 2px;
  transform: skewY(-10deg);
}

.brand-mark i {
  width: 5px;
  display: block;
  background: currentColor;
}

.brand-mark i:nth-child(2) {
  opacity: 0.55;
  transform: translateY(2px);
}

.header-meta {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 64px;
  align-items: end;
  padding: 64px 0 48px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1;
}

.lede {
  max-width: 600px;
  margin: 0 0 4px;
  color: #46534f;
  font-size: 18px;
  line-height: 1.55;
}

.directory {
  padding: 34px 0 64px;
  border-top: 1px solid var(--line);
}

.directory-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.search {
  width: min(340px, 100%);
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  color: #71807a;
  background: var(--surface);
  border: 1px solid #cbd3cf;
  border-radius: 6px;
}

.search:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 74, 67, 0.12);
}

.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search > svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke-width: var(--icon-stroke);
}

.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 22px 0 4px;
}

.filter {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 7px 13px;
  color: #35433f;
  background: var(--surface);
  border: 1px solid #ccd4d0;
  border-radius: 6px;
  cursor: pointer;
}

.filter:hover {
  border-color: #8b9b94;
}

.filter.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.result-count {
  margin: 18px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.map-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.map-card:hover,
.map-card:focus-visible {
  border-color: #8e9d97;
  box-shadow: 0 8px 22px rgba(31, 47, 42, 0.1);
  transform: translateY(-2px);
  outline: 0;
}

.map-card[hidden] {
  display: none;
}

.map-shot,
.map-band {
  height: 138px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #dce4df;
  border-bottom: 1px solid var(--line);
}

.map-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.map-band {
  display: flex;
  align-items: end;
  padding: 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  background-color: #435e6e;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 26px 26px;
}

.education-band {
  background-color: #5b527e;
}

.care-band {
  background-color: #2f6756;
}

.cosmetic-band {
  background-color: #805543;
}

.eye-band {
  background-color: #3f6878;
}

.map-body {
  min-height: 218px;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.card-top,
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-top {
  color: #69756f;
  font-size: 11px;
  font-weight: 700;
}

.category {
  color: var(--health);
  text-transform: uppercase;
}

.category.care {
  color: var(--care);
}

.category.home {
  color: var(--home);
}

.category.education {
  color: var(--education);
}

.map-card h3 {
  margin: 14px 0 8px;
  font-size: 21px;
}

.map-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.card-foot {
  margin-top: auto;
  padding-top: 18px;
  color: #46544f;
  font-size: 12px;
  font-weight: 700;
}

.card-foot span:last-child {
  color: var(--brand);
}

.card-foot span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-foot svg {
  width: 14px;
  height: 14px;
  flex: none;
  stroke-width: var(--icon-stroke);
}

.empty {
  padding: 80px 24px;
  text-align: center;
  border-top: 1px solid var(--line);
}

.empty h3 {
  margin: 0 0 14px;
}

.empty button,
.command {
  padding: 9px 14px;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.standards {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 64px;
  padding: 54px 0 68px;
  border-top: 1px solid var(--line);
}

.standards-grid {
  display: grid;
  gap: 0;
}

.standards-grid p {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.standards-grid p:first-child {
  padding-top: 0;
}

.standards-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.not-found {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
}

.not-found h1 {
  margin-bottom: 28px;
}

.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: 960px) {
  .intro,
  .standards {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 28px, 1280px);
  }

  .site-header {
    min-height: 64px;
  }

  .header-meta span:first-child {
    display: none;
  }

  .intro {
    padding: 42px 0 34px;
  }

  h1 {
    font-size: 40px;
  }

  .directory-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    width: 100%;
  }

  .map-grid {
    grid-template-columns: 1fr;
  }

  .map-shot,
  .map-band {
    height: 154px;
  }

  .standards-grid p {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }
}
