:root {
  color-scheme: light;
  --purple: #7c2ae8;
  --deep: #31005d;
  --gold: #ffbd17;
  --background: #faf8fd;
  --ink: #251a33;
  --muted: #665f70;
  --line: #e5d4fa;
  --soft: #f5edff;
  --white: #ffffff;
  --danger: #a33635;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--background);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
body.dialog-open { overflow: hidden; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .6; }
a { color: var(--purple); text-underline-offset: .2em; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--deep); line-height: 1.2; overflow-wrap: anywhere; }
p, dd, a { overflow-wrap: anywhere; }
svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-width { width: min(100% - 72px, 1180px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; padding: 12px 18px; background: var(--deep); color: var(--white); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 93px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--deep); flex: none; }
.brand-mark { position: relative; display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; background: var(--purple); color: var(--white); font-size: .88rem; font-weight: 850; letter-spacing: -.04em; }
.brand-mark span { position: absolute; width: 11px; height: 11px; border: 2px solid var(--white); border-radius: 50%; bottom: -3px; right: -3px; background: var(--gold); }
.brand-name { font-size: .84rem; font-weight: 800; letter-spacing: .075em; line-height: 1.3; }
.header-navigation { display: flex; align-items: center; gap: 28px; }
.directory-navigation { color: var(--deep); font-weight: 750; font-size: .94rem; text-decoration: none; border-bottom: 3px solid var(--gold); padding-block: 6px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; max-width: 100%; padding: 12px 21px; border: 1px solid transparent; border-radius: 11px; background: var(--purple); color: var(--white); font-weight: 750; font-size: .94rem; line-height: 1.45; text-align: center; text-decoration: none; white-space: normal; }
.button:hover:not(:disabled) { background: #6920cb; }
.button-secondary { background: var(--white); color: var(--deep); border-color: #dcc9ef; }
.button-secondary:hover:not(:disabled) { background: var(--soft); border-color: #c5a4e5; }
.button-gold { background: var(--gold); color: var(--deep); }
.button-gold:hover:not(:disabled) { background: #edac00; }
.text-button { border: 0; background: transparent; color: var(--purple); font-size: .9rem; font-weight: 750; padding: 9px 2px; min-height: 44px; text-decoration: underline; text-underline-offset: .22em; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 57px 44px; }
.hero-copy { max-width: 770px; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--purple); font-size: .79rem; letter-spacing: .095em; font-weight: 750; line-height: 1.5; }
.eyebrow > span { width: 8px; height: 8px; background: var(--gold); border-radius: 2px; }
h1 { font-size: clamp(2.3rem, 4.3vw, 3.25rem); letter-spacing: -.045em; max-width: 760px; font-weight: 780; margin-top: 15px; }
h1 > span { color: var(--purple); }
.hero-description { font-size: 1.06rem; line-height: 1.75; color: var(--muted); max-width: 650px; margin-top: 20px; }
.hero-art { width: 236px; flex: none; }
.hero-art svg { width: 100%; height: auto; }
.art-link { stroke: #d5bee9; stroke-width: 2; }
.art-halo { fill: #f0e6fc; stroke: none; }
.art-purple { fill: var(--purple); stroke: none; }
.art-white { fill: var(--white); stroke: var(--line); }
.art-gold { fill: var(--gold); stroke: none; }
.art-soft { fill: #ebddfa; stroke: none; }
.art-person, .art-plus { stroke: var(--deep); stroke-width: 2; }
.art-person-light { stroke: var(--white); }
.search-panel { padding: 25px 27px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 8px 32px #31005d05; }
#directory-search { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 17px; align-items: end; }
.search-field { min-width: 0; }
.search-field label { display: block; margin-bottom: 9px; color: var(--deep); font-size: .9rem; font-weight: 750; }
.query-input, .select-wrap { position: relative; }
.query-input > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-field input, .search-field select { width: 100%; min-width: 0; min-height: 49px; border: 1px solid #d8c9e5; border-radius: 10px; background: var(--white); color: var(--ink); padding: 12px 14px; font-size: 1rem; line-height: 1.5; }
.query-input input { padding-left: 43px; }
.search-field input::placeholder { color: #7d7188; opacity: 1; }
.search-field select { appearance: none; -webkit-appearance: none; padding-right: 40px; }
.select-wrap > svg { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.search-button { min-height: 49px; padding-inline: 25px; }
.search-note { color: var(--muted); font-size: .81rem; margin-top: 13px; }
.directory-section { padding-top: 39px; scroll-margin-top: 24px; }
.results-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 21px; }
.results-heading h2 { font-size: 1.4rem; letter-spacing: -.025em; }
.results-summary { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.profile-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 23px; border: 1px solid var(--line); background: var(--white); border-radius: 17px; }
.profile-card-heading { display: flex; gap: 14px; align-items: flex-start; }
.profile-identity { min-width: 0; flex: 1; }
.profile-logo { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 13px; flex: none; background: var(--soft); border: 1px solid #e9dcf8; color: var(--purple); font-size: 1.02rem; font-weight: 800; overflow: hidden; }
.profile-logo img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: var(--white); }
.profile-card h3 { font-size: 1.14rem; letter-spacing: -.02em; line-height: 1.35; }
.type-label { display: inline-flex; align-items: center; margin-top: 7px; color: var(--purple); font-size: .81rem; font-weight: 700; }
.profile-location { display: flex; align-items: flex-start; gap: 7px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.profile-location svg { width: 17px; height: 17px; margin-top: 3px; }
.profile-location span { min-width: 0; overflow-wrap: anywhere; }
.profile-description { color: var(--muted); font-size: .94rem; line-height: 1.65; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.profile-affiliation { font-size: .87rem; color: var(--ink); }
.profile-affiliation span { display: block; color: var(--muted); font-size: .79rem; margin-bottom: 3px; }
.profile-card .card-action { margin-top: auto; width: 100%; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.profile-tag { background: var(--soft); color: var(--deep); border-radius: 6px; font-size: .8rem; line-height: 1.5; padding: 4px 8px; overflow-wrap: anywhere; }
.state-panel { padding: 42px 25px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); text-align: center; }
.state-panel h3 { font-size: 1.2rem; margin-bottom: 10px; }
.state-panel p { max-width: 560px; margin-inline: auto; color: var(--muted); font-size: .96rem; }
.state-panel .button { margin-top: 21px; }
.state-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 18px; border-radius: 14px; color: var(--purple); background: var(--soft); }
.state-icon svg { width: 25px; height: 25px; }
.state-panel.error .state-icon { color: var(--danger); background: #fbefee; }
.pagination { display: flex; flex-direction: column; align-items: center; gap: 13px; margin-top: 25px; text-align: center; }
.pagination:empty { display: none; }
.secondary-copy { font-size: .87rem; color: var(--muted); }
.community-note { display: flex; align-items: center; gap: 18px; margin: 39px 0 50px; padding: 25px 27px; border: 1px solid #e7d9f4; border-radius: 17px; background: #f0e8fa; }
.community-note > div:nth-child(2) { flex: 1; min-width: 0; }
.community-note h2 { font-size: 1.08rem; line-height: 1.4; }
.community-note p { margin-top: 6px; color: var(--muted); font-size: .92rem; }
.community-note .button { flex: none; }
.note-mark { width: 45px; height: 45px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--white); color: var(--purple); }
.site-footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 25px; color: var(--muted); font-size: .8rem; }
.footer-inner p:first-child { color: var(--deep); font-weight: 750; letter-spacing: .06em; }
.profile-dialog { width: min(740px, calc(100% - 40px)); max-width: none; max-height: min(88dvh, 960px); padding: 0; margin: auto; border: 1px solid var(--line); border-radius: 21px; box-shadow: 0 24px 90px #21003c35; background: var(--white); color: var(--ink); }
.profile-dialog[open] { display: flex; flex-direction: column; }
.profile-dialog::backdrop { background: #24004391; }
.profile-dialog[data-fallback] { position: fixed; z-index: 100; inset: 0; }
.dialog-fallback-backdrop { position: fixed; z-index: 99; inset: 0; background: #24004391; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 19px 27px; border-bottom: 1px solid var(--line); flex: none; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: var(--white); color: var(--deep); flex: none; }
.icon-button:hover { background: var(--soft); }
.icon-button svg { width: 20px; height: 20px; }
.dialog-body { min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 28px; }
.detail-heading { display: flex; align-items: flex-start; gap: 17px; margin-bottom: 23px; }
.detail-heading .profile-logo { width: 70px; height: 70px; border-radius: 16px; font-size: 1.35rem; }
.detail-heading > div:last-child { min-width: 0; flex: 1; }
.detail-heading h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -.03em; }
.detail-heading .type-label { font-size: .9rem; }
.detail-section { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.detail-section h3 { font-size: 1rem; margin-bottom: 11px; }
.detail-description { color: var(--ink); font-size: 1rem; line-height: 1.75; white-space: pre-line; }
.detail-facts { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 13px 18px; margin: 0; font-size: .94rem; }
.detail-facts dt { color: var(--muted); }
.detail-facts dd { margin: 0; min-width: 0; color: var(--deep); }
.public-website { display: inline-flex; max-width: 100%; min-height: 44px; align-items: center; font-size: .94rem; font-weight: 700; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 19px; padding: 21px 27px; background: #faf7fe; border-top: 1px solid var(--line); flex: none; }
.dialog-footer p { font-size: .87rem; line-height: 1.6; color: var(--muted); max-width: 350px; }
.dialog-footer .button { flex: none; }
.skeleton { pointer-events: none; }
.skeleton-block { background: #f0eaf6; border-radius: 7px; }
.skeleton-line { height: 15px; margin-top: 10px; width: 100%; }
.skeleton-line.short { width: 58%; }
.skeleton-line.title { height: 22px; margin-top: 3px; width: 88%; }
.skeleton-action { height: 44px; margin-top: 10px; }

@media (max-width: 1060px) {
  .page-width { width: calc(100% - 48px); }
  .hero { gap: 20px; }
  .hero-art { width: 180px; }
  .hero-description { font-size: 1rem; }
  #directory-search { grid-template-columns: minmax(0, 1fr) 190px auto; gap: 13px; }
  .search-panel { padding-inline: 22px; }
  .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-note { flex-wrap: wrap; }
  .community-note > .button { margin-left: 63px; }
}

@media (max-width: 760px) {
  .page-width { width: calc(100% - 36px); }
  .header-inner { min-height: 80px; gap: 15px; padding-block: 15px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; font-size: .78rem; }
  .brand-name { font-size: .72rem; letter-spacing: .06em; }
  .header-navigation { gap: 14px; }
  .header-navigation .button { padding: 10px 13px; min-height: 44px; font-size: .85rem; }
  .directory-navigation { display: none; }
  .hero { padding-block: 35px 29px; }
  .hero-art { display: none; }
  .eyebrow { font-size: .75rem; letter-spacing: .07em; }
  h1 { font-size: clamp(2.1rem, 6.5vw, 2.75rem); margin-top: 13px; }
  .hero-description { margin-top: 15px; font-size: 1rem; line-height: 1.65; }
  #directory-search { grid-template-columns: minmax(0, 1fr) auto; gap: 17px 13px; }
  .query-field { grid-column: 1 / -1; }
  .type-field { min-width: 0; }
  .search-button { padding-inline: 23px; }
  .search-panel { padding: 21px 19px 18px; border-radius: 15px; }
  .search-field label { font-size: .89rem; }
  .directory-section { padding-top: 29px; }
  .results-heading { align-items: flex-start; margin-bottom: 18px; }
  .results-heading h2 { font-size: 1.3rem; }
  .results-summary { font-size: .88rem; }
  .text-button { font-size: .85rem; flex: none; }
  .profile-grid { gap: 15px; }
  .profile-card { padding: 21px; }
  .community-note { margin: 30px 0 35px; padding: 22px 20px; gap: 14px; }
  .community-note > .button { margin-left: 59px; }
  .footer-inner { flex-direction: column; gap: 6px; padding-block: 22px; }
  .profile-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 17px; }
  .dialog-header { padding: 14px 19px; }
  .dialog-body { padding: 23px 20px; }
  .detail-heading { gap: 13px; }
  .detail-heading .profile-logo { width: 57px; height: 57px; border-radius: 13px; font-size: 1.1rem; }
  .detail-heading h2 { font-size: 1.45rem; }
  .detail-facts { grid-template-columns: 100px minmax(0, 1fr); gap: 12px 13px; font-size: .9rem; }
  .dialog-footer { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 20px; }
  .dialog-footer p { max-width: none; }
}

@media (max-width: 600px) {
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-card { gap: 15px; }
  .profile-card h3 { font-size: 1.16rem; }
  .community-note { align-items: flex-start; }
  .community-note > .button { width: 100%; margin-left: 0; }
  .state-panel { padding: 31px 20px; }
}

@media (max-width: 360px) {
  .page-width { width: calc(100% - 28px); }
  .header-navigation .button { max-width: 124px; padding-inline: 10px; font-size: .81rem; }
  .brand-name { font-size: .66rem; }
  .brand-mark { width: 35px; height: 35px; }
  #directory-search { grid-template-columns: minmax(0, 1fr); }
  .query-field { grid-column: auto; }
  .search-button { width: 100%; }
  .search-panel { padding-inline: 16px; }
  .results-heading { flex-wrap: wrap; gap: 7px; }
  .profile-card { padding: 19px; }
  .detail-facts { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .detail-facts dd:not(:last-child) { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
