:root {
  color-scheme: light;
  --ink: #263238;
  --muted: #657177;
  --line: #dce3e2;
  --soft: #f5f7f6;
  --orange: #f47b20;
  --orange-dark: #d65d08;
  --teal: #276d6a;
  --white: #fff;
  --shadow: 0 12px 34px rgba(38, 50, 56, 0.1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: #1f1f1f;
  font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }
a { color: inherit; }

.directory-topbar {
  min-height: 88px;
  padding: 10px 12px 10px 10px;
  background: #fff;
  border-bottom: 0;
  position: relative;
}

.directory-topbar .brand-mark img {
  width: 186px;
  height: 62px;
}

.directory-nav {
  justify-content: center;
  gap: clamp(30px, 5.5vw, 84px);
  margin-inline: auto;
}

.directory-nav a {
  position: relative;
  min-height: 36px;
  padding: 0;
  border-radius: 0;
  color: #56616d;
  font-size: 16px;
  font-weight: 650;
  line-height: 36px;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}
.directory-nav a:hover {
  background: transparent;
  color: #142136;
}
.directory-nav a.is-active {
  background: transparent;
  color: var(--logo-orange, #fd7b03);
}
.directory-nav a.is-active::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #1488dc;
  content: "";
}

.directory-header-spacer {
  flex: 0 0 42px;
  width: 42px;
}

.directory-shell {
  width: 100%;
  margin: 0;
  padding: 20px 20px 48px;
  background: #fff;
}

.directory-page-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.directory-search {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}
.directory-search:focus-within { border-color: #fd7b03; box-shadow: 0 0 0 3px rgba(253, 123, 3, 0.12); }
.directory-search input { width: 100%; border: 0; outline: 0; color: #1f1f1f; background: transparent; }

.directory-category-wrap {
  margin-bottom: 24px;
}

.directory-category-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.directory-category-tile .category-icon {
  border: 1px solid rgba(18, 32, 48, 0.06);
}

.directory-category-tile.is-selected::before,
.directory-category-tile.is-selected::after {
  display: none;
}

.directory-category-tile[data-tone="blue"] .category-icon {
  background: #e5f3ff;
  color: #247fbd;
}

.directory-category-tile[data-tone="yellow"] .category-icon {
  background: #fff1c7;
  color: #d47800;
}

.directory-category-tile .category-icon-symbol {
  font-size: 37px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 40;
}

.directory-category-tile.is-active[data-tone="blue"] .category-icon {
  background: #cce9ff;
  color: #086ba9;
}

.directory-category-tile.is-active[data-tone="yellow"] .category-icon {
  background: #ffe7a0;
  color: #b86100;
}

.directory-view-toggle button, .directory-back {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #56616d;
  cursor: pointer;
  font-weight: 700;
}

.directory-toolbar { min-height: 45px; display: flex; align-items: end; gap: 16px; flex-wrap: wrap; }
.directory-toolbar label { display: grid; gap: 4px; color: var(--muted); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; }
.directory-toolbar select { min-width: 170px; padding: 8px 32px 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
.directory-view-toggle { display: flex; padding: 3px; border-radius: 999px; background: #f1f3f5; }
.directory-view-toggle[hidden] { display: none; }
.directory-view-toggle button { padding: 7px 13px; border: 0; background: transparent; }
.directory-view-toggle button.is-active { background: #fff; color: #d75e00; box-shadow: 0 2px 8px rgba(38, 50, 56, 0.08); }
.directory-count { margin-left: auto; color: var(--muted); font-weight: 700; }
.directory-grid { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.directory-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e6edf4;
  border-radius: 24px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease;
}
.directory-card:hover { transform: translateY(-1px); border-color: #b8c8d8; box-shadow: none; }
.directory-card:focus-visible { outline: 3px solid rgba(244, 123, 32, 0.3); outline-offset: 2px; }
.directory-card-image {
  position: relative;
  display: block;
  height: 220px;
  overflow: hidden;
  background: #fff;
}
.directory-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.directory-card-image img.image-fit-contain {
  padding: 18px;
  background: #fff;
}
.directory-card-image img.fallback-image {
  object-fit: cover;
  padding: 0;
  background: transparent;
}
.directory-card-image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: #f7f9fb;
}
.directory-card-image-fallback .material-symbols-outlined { font-size: 54px; color: #fd7b03; }
.directory-card-body { display: flex; flex: 1; flex-direction: column; padding: 18px 22px 22px; }
.directory-card-kicker { color: #6f7480; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.directory-card h2 { margin: 5px 0 7px; font-family: "Nunito Sans", ui-sans-serif, system-ui, sans-serif; font-size: 24px; line-height: 1.14; }
.directory-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.directory-card-meta { margin-top: 12px; display: flex; gap: 7px; flex-wrap: wrap; }
.directory-tag { padding: 5px 8px; border-radius: 999px; background: #f4f6f8; color: #536166; font-size: 0.76rem; font-weight: 700; }
.directory-status { background: #fff3df; color: #8a5308; }

.directory-empty { margin-top: 22px; padding: 42px 20px; border: 1px dashed #c9d2d0; border-radius: 16px; color: var(--muted); text-align: center; }
.directory-back { margin-bottom: 20px; padding: 9px 14px; display: inline-flex; align-items: center; gap: 6px; }
.directory-detail-card { overflow: hidden; border: 1px solid #e6edf4; border-radius: 24px; background: #fff; box-shadow: none; }
.directory-detail-hero { min-height: 210px; padding: clamp(24px, 5vw, 58px); display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: center; background: #fff; border-bottom: 1px solid #e6edf4; }
.directory-detail-hero img { width: 210px; height: 150px; object-fit: contain; border-radius: 16px; background: var(--white); }
.directory-detail-kicker { margin-bottom: 8px; color: var(--orange-dark); font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.directory-detail-subtitle { margin: 12px 0 0; color: var(--muted); font-size: 1.08rem; }
.directory-detail-body { padding: clamp(22px, 4vw, 44px); display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr); gap: 36px; }
.directory-detail-body h2 { margin: 0 0 10px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; }
.directory-detail-body p { color: #4e5b60; line-height: 1.65; white-space: pre-line; }
.directory-facts { display: grid; gap: 11px; align-content: start; }
.directory-fact { padding: 12px 14px; border-radius: 12px; background: var(--soft); }
.directory-fact span { display: block; color: var(--muted); font-size: 0.74rem; font-weight: 800; text-transform: uppercase; }
.directory-fact strong { display: block; margin-top: 3px; }
.directory-links { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.directory-links a { padding: 10px 14px; border-radius: 10px; background: var(--orange); color: var(--white); font-weight: 800; text-decoration: none; }
.directory-links a.secondary { border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.directory-offering-list { display: grid; gap: 12px; }
.directory-offering-row { padding: 15px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.directory-offering-row:hover { border-color: var(--orange); }
.directory-offering-row strong, .directory-offering-row span { display: block; }
.directory-offering-row span { margin-top: 3px; color: var(--muted); }

@media (max-width: 860px) {
  .directory-detail-hero { grid-template-columns: 1fr; }
  .directory-detail-hero img { width: min(100%, 260px); }
  .directory-detail-body { grid-template-columns: 1fr; }
}

@media (min-width: 860px) {
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1120px) {
  .directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1420px) {
  .directory-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 670px) {
  .directory-topbar {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    min-height: 84px;
    padding: 5px 12px 12px 5px;
  }

  .directory-topbar .brand-mark {
    order: 1;
    min-width: 0;
  }

  .directory-topbar .brand-mark img {
    width: clamp(120px, 37.2vw, 144px);
    height: clamp(41px, 12.6vw, 48px);
  }

  .directory-header-spacer {
    order: 2;
    margin-left: auto;
  }

  .directory-nav {
    order: 4;
    flex: 1 0 100%;
    justify-content: flex-start;
    width: 100%;
    margin-inline: 0;
    gap: 30px;
    overflow-x: auto;
  }
}

@media (max-width: 560px) {
  .directory-shell { width: 100%; padding: 20px 20px 48px; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-card-image { height: 164px; }
  .directory-count { width: 100%; margin-left: 0; }
  .directory-detail-hero, .directory-detail-body { padding: 20px; }
}
