.directory-page {
  --deep: #091f38;
  --panel: #102e4b;
  --border: #34546f;
  --secondary: #c3d4e5;
  --accent-light: #ffbf66;
  background: var(--deep);
  color: #f5f8fc;
}
.directory-page .site-header {
  background: #0c2b50;
  border-color: #314c6a;
}
.directory-page .site-header .brand {
  background: #fff;
  border-radius: 5px;
}
.directory-page .desktop-nav a:hover,
.directory-page .site-header a[aria-current="page"] {
  color: var(--accent-light);
}
.directory-page .header-cta {
  background: var(--orange);
  color: #102e50;
}
.directory-page .menu-toggle { border-color: #7089a4; }
.directory-page .menu-toggle span { background: #fff; }
.directory-page .mobile-nav,
.directory-page .mobile-nav a { border-color: #385574; }
.directory-page .skip-link { color: #103566; }
.directory-page a:focus-visible,
.directory-page input:focus-visible,
.directory-page button:focus-visible,
.directory-page summary:focus-visible {
  outline: 3px solid #ffbf66;
  outline-offset: 4px;
}
.directory-intro {
  background: #0c2b50;
  border-bottom: 1px solid #34516c;
  padding: 25px 0 39px;
}
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 25px;
  color: var(--secondary);
  font-size: 13px;
}
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.intro-layout,
.directory-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.intro-layout h1 {
  font-size: clamp(42px, 4.6vw, 67px);
  line-height: 1.08;
  max-width: 790px;
  color: #fff;
}
.intro-layout h1 em { color: #ffcb84; font-style: normal; }
.intro-layout p {
  max-width: 640px;
  margin-top: 14px;
  color: #d5e3f1;
  font-size: 16px;
  line-height: 1.65;
}
.catalogue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 10px;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--orange);
  color: #102e50;
  font: 700 14px/1.5 'DM Sans', sans-serif;
  text-align: center;
}
.catalogue-button:hover,
.directory-page .header-cta:hover { background: #ffad37; }
.catalogue-button span { font-size: 18px; }
.directory-content { padding-block: 30px 55px; }
.directory-tools {
  display: flex;
  align-items: end;
  gap: clamp(22px, 4vw, 55px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.search-field { width: min(370px, 100%); flex: 1 1 290px; }
.search-field label,
.type-filter legend {
  margin-bottom: 6px;
  padding: 0;
  color: #d4e3f1;
  font-size: 13px;
  font-weight: 600;
}
.search-field label { display: block; }
.search-field input {
  width: 100%;
  min-height: 46px;
  padding: 9px 14px;
  border: 1px solid #7189a1;
  border-radius: 7px;
  background: #102e4b;
  color: #fff;
  color-scheme: dark;
  font: inherit;
}
.search-field input::placeholder { color: #bacae0; opacity: 1; }
.type-filter { min-width: 0; margin: 0; padding: 0; border: 0; }
.filter-buttons, .section-jumps { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-buttons button, .section-jumps a {
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #70869c;
  border-radius: 7px;
  background: transparent;
  color: #e4eef8;
  font: 600 14px/1.5 'DM Sans', sans-serif;
}
.filter-buttons button[aria-pressed="true"] {
  border-color: #e8f1fa;
  background: #e8f1fa;
  color: #102e50;
}
.filter-buttons button:hover { border-color: var(--accent-light); }
.result-count {
  margin-top: 13px;
  color: var(--secondary);
  font-size: 13px;
}
.provider-section { margin-top: 32px; scroll-margin-top: 15px; }
.provider-section > h2, .directory-help h2, .empty-state h2 {
  font-size: clamp(29px, 3vw, 39px);
  color: #fff;
}
.provider-section > h2 { margin-bottom: 16px; }
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}
.directory-entry { min-width: 0; }
.provider-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  padding: 18px 20px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  overflow-wrap: anywhere;
}
.provider-card:focus-within { border-color: #b2cadf; }
.provider-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}
.provider-identity img {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 5px;
  object-fit: cover;
}
.provider-location {
  margin-bottom: 3px;
  color: #bdcee2;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}
.provider-identity h3 {
  color: #fff;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.25;
  font-weight: 600;
}
.provider-description {
  margin: 12px 0 4px;
  color: #d6e2ef;
  font-size: 14px;
  line-height: 1.55;
}
.provider-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto;
  color: var(--accent-light);
  font-size: 14px;
  font-weight: 700;
}
.provider-link span { font-weight: 500; font-size: 17px; }
.provider-link:hover,
.member-list summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.member-list { width: 100%; color: #d6e2ef; font-size: 13px; }
.member-list summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 8px;
  color: #eef5fc;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.member-list summary::-webkit-details-marker { display: none; }
.member-list summary span { color: var(--accent-light); font-size: 17px; line-height: 1; }
.member-list[open] summary span { transform: rotate(45deg); }
.member-list ul { margin: 2px 0 9px; padding-left: 18px; list-style: disc; }
.member-list li + li { margin-top: 4px; }
.empty-state, .directory-help {
  margin-top: 35px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #10345a;
}
.empty-state p, .directory-help p { margin: 7px 0 0; color: var(--secondary); }
.empty-state .catalogue-button { margin-top: 14px; }
.directory-page .site-footer { border-top: 1px solid var(--border); }
.photo-credits { margin-top: 14px; color: var(--secondary); font-size: 12px; }
.photo-credits summary { width: fit-content; padding-block: 8px; cursor: pointer; }
.photo-credits p { max-width: 760px; margin-top: 4px; }
.photo-credits a { color: var(--accent-light); text-decoration: underline; }

@media (max-width: 960px) {
  .intro-layout { align-items: flex-start; flex-direction: column; gap: 20px; }
  .directory-tools { align-items: start; flex-direction: column; gap: 15px; }
  .search-field { width: min(530px, 100%); flex: 0 1 auto; }
}
@media (max-width: 700px) {
  .directory-intro { padding-block: 16px 27px; }
  .crumbs { margin-bottom: 20px; font-size: 12px; }
  .intro-layout h1 { font-size: clamp(38px, 8.7vw, 51px); }
  .intro-layout p { font-size: 15px; }
  .directory-content { padding-block: 22px 35px; }
  .search-field { width: 100%; }
  .filter-buttons { gap: 6px; }
  .filter-buttons button { padding-inline: 10px; font-size: 13px; }
  .provider-grid { grid-template-columns: 1fr; gap: 10px; }
  .provider-card { padding: 15px 15px 8px; }
  .provider-identity { gap: 12px; }
  .provider-identity img { width: 64px; height: 48px; }
  .provider-description { margin-top: 9px; }
  .provider-section { margin-top: 25px; }
  .directory-help { align-items: flex-start; flex-direction: column; gap: 15px; }
  .empty-state, .directory-help { padding: 20px; }
}
