:root {
  --teal: #66bcc3;
  --teal-dark: #256a70;
  --teal-soft: #eaf5f5;
  --brown: #55483f;
  --brown-soft: #88796f;
  --lime: #8fbd45;
  --action: #256a70;
  --cream: #f7f6f2;
  --paper: #ffffff;
  --ink: #55483f;
  --muted: #88796f;
  --line: #e7e3de;
  --shadow: 0 18px 45px rgba(61, 54, 48, 0.10);
  --radius: 18px;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.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;
}

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #f0ece8; position: relative; z-index: 20; }
.utility-bar { min-height: 48px; display: flex; align-items: center; justify-content: flex-end; }
.utility-links { display: flex; gap: 34px; align-items: center; font-size: 14px; }
.utility-links a { text-decoration: none; color: var(--brown); }
.utility-links .utility-accent { color: var(--teal-dark); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.utility-links .utility-accent span { color: var(--teal); font-size: 20px; vertical-align: -1px; }
.main-header { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; min-width: 260px; }
.brand-tree { width: 70px; height: 58px; position: relative; display: inline-block; flex: 0 0 auto; }
.brand-crown {
  position: absolute; width: 55px; height: 34px; left: 10px; top: 0;
  background: var(--teal); border-radius: 55% 45% 50% 43%; transform: rotate(-6deg);
  box-shadow: -14px 8px 0 -5px var(--teal), 12px 8px 0 -6px var(--teal);
}
.brand-trunk {
  position: absolute; width: 7px; height: 36px; left: 34px; bottom: 0;
  background: linear-gradient(165deg, var(--brown) 0 57%, #a9b64c 58% 100%);
  transform: skew(-12deg);
}
.brand-trunk::after {
  content: ""; position: absolute; width: 46px; height: 4px; left: -19px; bottom: -1px;
  background: #a9b64c; border-radius: 50%; transform: skew(12deg);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 28px; color: #85756b; letter-spacing: .035em; font-weight: 700; }
.brand-copy small { margin-top: 6px; color: #a29286; font-size: 15px; letter-spacing: .035em; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 27px; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--brown); font-family: Georgia, serif; font-size: 13px; white-space: nowrap; padding: 10px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--teal-dark); border-bottom-color: var(--teal); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 9px 12px; color: var(--brown); }
.compact-header .main-header { min-height: 92px; }

/* Hero */
.directory-hero {
  min-height: 390px; overflow: hidden; position: relative; display: flex; align-items: center;
  background:
    linear-gradient(100deg, rgba(22, 73, 78, .94), rgba(75, 159, 168, .86)),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,.18), transparent 37%);
}
.directory-hero::before {
  content: ""; position: absolute; inset: 0; opacity: .15;
  background-image: linear-gradient(125deg, transparent 0 47%, #fff 48% 48.5%, transparent 49% 100%);
  background-size: 210px 210px;
}
.hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 390px; z-index: 2; }
.hero-copy { max-width: 760px; color: #fff; }
.eyebrow { margin: 0 0 12px; color: #cfe78f; font-size: 15px; text-transform: uppercase; letter-spacing: .17em; font-weight: 700; }
.eyebrow.dark { color: var(--teal-dark); }
.hero-copy h1 { margin: 0; font-weight: 300; font-size: clamp(48px, 7vw, 90px); line-height: .96; letter-spacing: -.045em; }
.hero-copy h1 span { color: #bde070; font-weight: 500; }
.hero-copy > p:last-child { max-width: 700px; margin: 24px 0 0; font-size: clamp(17px, 2vw, 22px); color: rgba(255,255,255,.92); }
.hero-mark { font-size: clamp(100px, 15vw, 220px); font-weight: 800; letter-spacing: -.08em; color: rgba(255,255,255,.08); user-select: none; }
.hero-orb { position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.hero-orb-one { width: 330px; height: 330px; right: 6%; top: -110px; }
.hero-orb-two { width: 190px; height: 190px; right: 26%; bottom: -90px; }

/* Directory */
.directory-section { padding: 88px 0 96px; }
.directory-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.directory-intro h2, .profile-content h2, .related-heading h2, .note-inner h2 { margin: 0 0 10px; color: var(--brown); font-size: clamp(34px, 4vw, 52px); font-weight: 400; line-height: 1.08; }
.directory-intro p { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; }
.result-stat { flex: 0 0 auto; padding-left: 34px; border-left: 1px solid var(--line); text-align: right; }
.result-stat strong { display: block; color: var(--teal-dark); font-size: 44px; line-height: 1; font-weight: 400; }
.result-stat span { display: block; color: var(--muted); margin-top: 8px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.directory-toolbar { position: relative; z-index: 10; padding: 20px; margin-bottom: 40px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 35px rgba(64,55,49,.07); backdrop-filter: blur(10px); }
.search-box { display: flex; align-items: center; gap: 12px; background: #fbfaf9; border: 1px solid #ddd7d2; border-radius: 12px; padding: 0 15px; }
.search-box svg { width: 21px; height: 21px; fill: none; stroke: var(--teal-dark); stroke-width: 1.8; }
.search-box input { width: 100%; height: 52px; border: 0; outline: none; background: transparent; color: var(--ink); }
.category-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.filter-pill { border: 1px solid #d9d3ce; background: #fff; color: var(--brown); border-radius: 999px; padding: 8px 14px; transition: .2s ease; }
.filter-pill span { color: #a29a94; margin-left: 5px; font-size: 12px; }
.filter-pill:hover, .filter-pill.active { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.filter-pill.active span { color: #d7f2f4; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.practitioner-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 28px rgba(73,63,55,.06); transition: transform .2s ease, box-shadow .2s ease; }
.practitioner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-photo { position: relative; display: block; aspect-ratio: 1.5/1; overflow: hidden; background: linear-gradient(135deg, var(--teal-soft), #f3f7e8); text-decoration: none; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }
.card-photo .photo-fallback, .profile-photo .photo-fallback, .related-photo .photo-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(14,100,112,.55); font-size: 58px; font-weight: 300; letter-spacing: .04em;
}
.card-body { padding: 24px 24px 26px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.card-tags span { color: var(--teal-dark); background: var(--teal-soft); border-radius: 999px; padding: 5px 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; }
.card-body h3 { margin: 0 0 4px; font-family: Georgia, serif; color: var(--brown); font-size: 27px; font-weight: 400; line-height: 1.15; }
.card-body h3 a { text-decoration: none; }
.card-body h3 a:hover { color: var(--teal-dark); }
.credential { margin: 0 0 5px; color: var(--teal-dark); font-weight: 600; }
.organization { margin: 0 0 14px; color: var(--brown-soft); font-size: 14px; min-height: 22px; }
.card-excerpt { color: var(--muted); margin: 0 0 20px; min-height: 72px; font-size: 14px; }
.text-link { color: var(--teal-dark); text-decoration: none; font-weight: 700; font-size: 14px; }
.text-link span { margin-left: 6px; transition: transform .2s; display: inline-block; }
.text-link:hover span { transform: translateX(4px); }
.no-results { text-align: center; padding: 70px 20px; border: 1px dashed #d4ccc6; border-radius: var(--radius); background: #fbfaf8; }
.no-results strong { color: var(--brown); font-size: 24px; font-weight: 500; }
.no-results p { color: var(--muted); }
.load-more-wrap { display: flex; justify-content: center; padding-top: 38px; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; font-weight: 650; transition: transform .18s ease, opacity .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--teal-dark); border-color: var(--teal-dark); }
.button-outline { color: #fff; border-color: rgba(255,255,255,.72); background: transparent; }
.button-outline-dark { color: var(--brown); border-color: #cfc6bf; background: #fff; }
.button-small { min-height: 40px; padding: 8px 18px; font-size: 14px; }

/* Note/Footer */
.directory-note { padding: 64px 0; background: var(--teal-dark); color: #fff; }
.note-inner { display: flex; align-items: center; justify-content: space-between; gap: 38px; }
.note-inner h2 { color: #fff; margin-bottom: 8px; }
.note-inner p:last-child { margin: 0; color: rgba(255,255,255,.82); max-width: 760px; }
.site-footer { background: #f4f1ee; color: var(--brown); border-top: 1px solid #e5dfda; }
.footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { font-weight: 700; letter-spacing: .08em; }
.footer-brand span { font-weight: 400; color: var(--brown-soft); }
.site-footer p { color: var(--muted); }

/* Profile */
.profile-hero { background: linear-gradient(125deg, #eef8f8 0, #f8fbf5 60%, #fff 100%); border-bottom: 1px solid var(--line); }
.profile-hero-inner { min-height: 440px; display: grid; grid-template-columns: 330px 1fr; align-items: center; gap: 60px; padding-block: 58px; }
.profile-photo-wrap { display: flex; justify-content: center; }
.profile-photo { width: min(100%, 310px); aspect-ratio: 1 / 1; overflow: hidden; border-radius: 50%; position: relative; background: linear-gradient(135deg, var(--teal-soft), #f0f4df); box-shadow: 0 18px 50px rgba(51,82,82,.16); border: 9px solid #fff; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }
.breadcrumb { display: inline-block; color: var(--teal-dark); text-decoration: none; margin-bottom: 22px; font-size: 14px; }
.breadcrumb span { color: var(--teal); margin-left: 4px; }
.profile-tags { margin-bottom: 14px; }
.profile-heading h1 { margin: 0; color: var(--brown); font-family: Georgia, serif; font-size: clamp(44px, 6vw, 76px); font-weight: 400; line-height: 1; }
.profile-credential { margin: 16px 0 0; color: var(--teal-dark); font-size: 20px; font-weight: 650; }
.profile-org { margin: 5px 0 0; color: var(--brown-soft); font-size: 17px; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.profile-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 70px; padding-block: 82px; }
.biography { color: #56514d; font-size: 17px; }
.biography p:first-child { margin-top: 0; }
.biography p { margin: 0 0 1.35em; }
.biography ul, .biography ol { padding-left: 24px; }
.biography a { color: var(--teal-dark); }
.contact-card { position: sticky; top: 25px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 12px 35px rgba(67,58,52,.07); }
.contact-card h2 { margin: 0 0 22px; color: var(--brown); font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.contact-row { display: grid; gap: 5px; padding: 15px 0; border-top: 1px solid var(--line); color: var(--brown); }
.contact-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.contact-row a { color: var(--teal-dark); text-decoration: none; overflow-wrap: anywhere; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.social-links a { color: var(--teal-dark); text-decoration: none; background: var(--teal-soft); border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 700; }
.related-section { background: #f8f6f3; padding: 72px 0 82px; border-top: 1px solid var(--line); }
.related-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 30px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { text-decoration: none; display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 18px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.related-photo { width: 90px; height: 90px; border-radius: 50%; overflow: hidden; position: relative; background: var(--teal-soft); }
.related-photo img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }
.related-photo .photo-fallback { font-size: 26px; }
.related-card strong { display: block; color: var(--brown); font-family: Georgia, serif; font-size: 19px; font-weight: 400; }
.related-card span { display: block; color: var(--teal-dark); margin-top: 5px; font-size: 12px; }
.not-found { padding: 110px 0 140px; }
.not-found h1 { margin: 0 0 15px; color: var(--brown); font-size: 58px; font-weight: 400; }
.not-found p { color: var(--muted); margin-bottom: 28px; }

/* Admin */
.admin-body { background: #f5f3f0; min-height: 100vh; }
.admin-shell { width: min(calc(100% - 32px), 1450px); margin-inline: auto; }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); }
.admin-header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.admin-brand { display: flex; align-items: baseline; gap: 10px; color: var(--brown); text-decoration: none; }
.admin-brand strong { font-size: 21px; letter-spacing: .05em; }
.admin-brand span { color: var(--teal-dark); font-size: 14px; }
.admin-actions { display: flex; gap: 10px; align-items: center; }
.admin-actions a { font-size: 13px; }
.admin-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 28px; padding-block: 28px 60px; align-items: start; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 7px 25px rgba(58,51,46,.05); }
.admin-sidebar { position: sticky; top: 20px; overflow: hidden; }
.admin-sidebar-head { padding: 20px; border-bottom: 1px solid var(--line); }
.admin-sidebar-head h1 { margin: 0 0 12px; color: var(--brown); font-size: 22px; }
.admin-search { width: 100%; height: 42px; border: 1px solid #d8d2cc; border-radius: 9px; padding: 0 12px; outline: none; }
.admin-list { max-height: calc(100vh - 225px); overflow: auto; }
.admin-list a { display: block; padding: 14px 18px; border-bottom: 1px solid #f0ece8; text-decoration: none; }
.admin-list a:hover, .admin-list a.active { background: #f2f9f9; }
.admin-list strong { display: block; color: var(--brown); font-size: 14px; }
.admin-list span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.admin-content { padding: 28px; }
.admin-content h1 { margin: 0; color: var(--brown); font-size: 34px; font-weight: 400; }
.admin-content .subhead { margin: 8px 0 26px; color: var(--muted); }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--brown); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d8d2cc; background: #fff; border-radius: 9px; padding: 10px 12px; outline: none; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(95,186,195,.12); }
.field textarea { min-height: 190px; resize: vertical; }
.field small { color: var(--muted); }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 14px 20px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fbfaf9; }
.checkbox-row label { display: inline-flex; align-items: center; gap: 7px; color: var(--brown); text-transform: none; letter-spacing: 0; }
.admin-form-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.admin-form-actions .left, .admin-form-actions .right { display: flex; flex-wrap: wrap; gap: 10px; }
.button-danger { color: #55483f; background: #fff; border-color: #d7d0ca; }
.notice { padding: 13px 16px; margin-bottom: 20px; border-radius: 10px; font-size: 14px; }
.notice.success { background: #f3f7eb; color: #55743f; border: 1px solid #dbe7c9; }
.notice.error { background: #f7f6f2; color: #55483f; border: 1px solid #d7d0ca; }
.admin-section-title { grid-column: 1 / -1; margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--teal-dark); font-size: 16px; }
.admin-photo-preview { width: 130px; height: 130px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); background: var(--teal-soft); }
.security-box { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.security-box h2 { color: var(--brown); margin: 0 0 15px; font-size: 21px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: linear-gradient(140deg, #e8f5f6, #faf7f3); }
.login-card { width: min(100%, 430px); background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 34px; }
.login-card h1 { margin: 0 0 6px; color: var(--brown); font-weight: 400; font-size: 34px; }
.login-card > p { margin: 0 0 24px; color: var(--muted); }
.login-card .field { margin-bottom: 16px; }
.login-card .button { width: 100%; margin-top: 4px; }
.login-help { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 1100px) {
  .main-header { align-items: flex-start; padding-block: 22px; }
  .main-nav { gap: 14px 20px; }
  .main-nav a { font-size: 12px; }
  .directory-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-main { gap: 40px; }
  .related-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 300px minmax(0,1fr); }
}

@media (max-width: 820px) {
  .utility-bar { display: none; }
  .main-header { min-height: 86px; align-items: center; padding-block: 14px; flex-wrap: wrap; }
  .brand { min-width: 0; }
  .brand-tree { width: 55px; height: 48px; transform: scale(.85); transform-origin: left center; }
  .brand-copy strong { font-size: 22px; }
  .brand-copy small { font-size: 11px; }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .main-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-top: 12px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .hero-mark { display: none; }
  .directory-hero, .hero-inner { min-height: 330px; }
  .directory-intro { align-items: flex-start; flex-direction: column; }
  .result-stat { text-align: left; border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; width: 100%; }
  .directory-toolbar { position: static; }
  .profile-hero-inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .profile-photo { width: 240px; }
  .profile-tags, .profile-actions { justify-content: center; }
  .breadcrumb { margin-bottom: 12px; }
  .profile-main { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .related-heading { align-items: flex-start; flex-direction: column; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .admin-list { max-height: 320px; }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .directory-section { padding-block: 62px 72px; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-toolbar { padding: 14px; }
  .category-filter { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filter-pill { white-space: nowrap; }
  .note-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
  .profile-main { padding-block: 60px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .field.full, .admin-section-title { grid-column: 1; }
  .admin-content { padding: 20px; }
  .admin-header-inner { align-items: flex-start; flex-direction: column; padding-block: 15px; }
}

/* v1.1 directory search */
.search-row { display: flex; gap: 12px; align-items: stretch; }
.search-row .search-box { flex: 1 1 auto; }
.search-submit { border: 0; background: var(--teal-dark); color: #fff; padding: 0 24px; min-height: 54px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 600; }
.search-submit:hover { filter: brightness(.96); }
.clear-search { border: 1px solid var(--line); background: #fff; color: var(--brown); padding: 0 18px; min-height: 54px; border-radius: 8px; cursor: pointer; font: inherit; }
.clear-search:hover { background: #faf9f7; }
@media (max-width: 720px) {
  .search-row { flex-wrap: wrap; }
  .search-row .search-box { flex-basis: 100%; }
  .search-submit, .clear-search { min-height: 48px; }
}


/* v3.1 — Rhodes directory refinements */
.directory-brand-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand-only-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.directory-header-label {
  color: var(--teal-dark);
  font-family: Georgia, serif;
  font-size: 20px;
  letter-spacing: .02em;
}
.directory-back-link {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 600;
}
.directory-back-link:hover { text-decoration: underline; }

/* There is deliberately no pagination or visual card limit. */
.directory-grid .directory-item:not([hidden]) { display: block; }

/* Palette is restricted to Rhodes teal, green, brown, neutrals and white. */
.search-submit { background: var(--teal-dark); border-color: var(--teal-dark); }
.search-submit:hover { background: var(--teal); filter: none; }
.text-link { color: var(--teal-dark); }
.button-primary { background: var(--teal-dark); border-color: var(--teal-dark); }
.button-primary:hover { background: var(--teal); border-color: var(--teal); }
.button-danger { color: var(--brown); background: #fff; border-color: #d7d0ca; }
.notice.error { background: var(--cream); color: var(--brown); border-color: #d7d0ca; }
.notice.success { background: #f3f7eb; color: #55743f; border-color: #dbe7c9; }

@media (max-width: 820px) {
  .brand-only-header { min-height: 84px; padding-block: 12px; }
  .directory-header-label { font-size: 16px; }
}
@media (max-width: 520px) {
  .directory-header-label { display: none; }
  .directory-back-link { font-size: 13px; }
}


/* V3 public page intentionally has no top navigation/header bar. */
.no-topbar-hero { margin-top: 0; }
.is-hidden { display: none !important; }
.filter-pill { text-decoration: none; display: inline-flex; align-items: center; }
.clear-search { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.directory-grid { align-items: stretch; }
.directory-item { min-width: 0; }

/* Admin/login uses the same Rhodes palette: teal, green, brown, white and neutrals. */
.login-brand { margin-bottom: 18px; }
.notice.error { background: #f7f6f2; color: #55483f; border: 1px solid #d7d0ca; }
.notice.success { background: #f3f7eb; color: #55743f; border: 1px solid #dbe7c9; }

/* V8 — CMS-driven hero: long-copy layout + no watermark */
.directory-hero {
  min-height: 0;
  overflow: hidden;
  align-items: stretch;
  background:
    linear-gradient(100deg, rgba(22, 73, 78, .94), rgba(75, 159, 168, .86)),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,.18), transparent 37%);
}
.directory-hero::before {
  opacity: .10;
}
.hero-inner {
  min-height: 0;
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: clamp(68px, 7vw, 112px);
  padding-bottom: clamp(68px, 7vw, 112px);
}
.hero-copy {
  width: min(100%, 980px);
  max-width: 980px;
  color: #fff;
}
.hero-copy h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(50px, 5.5vw, 84px);
  line-height: 1.01;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-copy > p.hero-description,
.hero-copy > p:last-child {
  width: min(100%, 900px);
  max-width: 900px;
  margin: clamp(22px, 2.2vw, 30px) 0 0;
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.58;
  color: rgba(255,255,255,.96);
  white-space: pre-line;
  text-wrap: pretty;
}
.hero-copy .eyebrow {
  margin-bottom: 14px;
}
.hero-mark {
  display: none !important;
}
.directory-hero.has-custom-banner {
  background-size: cover;
  background-position: center;
}

@media (max-width: 980px) {
  .hero-copy {
    width: min(100%, 840px);
  }
  .hero-copy > p.hero-description,
  .hero-copy > p:last-child {
    max-width: 820px;
  }
}

@media (max-width: 820px) {
  .directory-hero,
  .hero-inner {
    min-height: 0;
  }
  .hero-inner {
    padding-top: 58px;
    padding-bottom: 58px;
  }
  .hero-copy h1 {
    font-size: clamp(42px, 10vw, 62px);
  }
  .hero-copy > p.hero-description,
  .hero-copy > p:last-child {
    font-size: 18px;
    line-height: 1.55;
  }
}

@media (max-width: 520px) {
  .hero-inner {
    padding-top: 48px;
    padding-bottom: 50px;
  }
  .hero-copy h1 {
    font-size: clamp(38px, 12vw, 52px);
  }
  .hero-copy > p.hero-description,
  .hero-copy > p:last-child {
    font-size: 17px;
    line-height: 1.5;
  }
}


/* V9 — make the live hero match the CMS preview exactly. */
.directory-hero {
  min-height: 0;
  display: block;
  overflow: hidden;
  background-position: center;
}

/* The preview has no extra watermark/pattern/circle decoration. */
.directory-hero::before,
.directory-hero .hero-orb {
  display: none !important;
}

/* Important: do not override .shell with width:100%.
   Keep the hero aligned to the same centered content column as the directory below. */
.directory-hero .hero-inner {
  width: min(calc(100% - 40px), var(--shell));
  max-width: var(--shell);
  margin-inline: auto;
  min-height: 0;
  padding-top: 60px;
  padding-bottom: 64px;
  display: block;
}

.directory-hero .hero-copy {
  width: min(100%, 940px);
  max-width: 940px;
  color: #fff;
}

.directory-hero .hero-copy .eyebrow {
  margin: 0 0 12px;
  color: #cfe78f;
  font-size: 13px;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .17em;
  font-weight: 700;
}

.directory-hero .hero-copy h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -.04em;
  font-weight: 300;
  text-wrap: balance;
}

.directory-hero .hero-copy h1 span {
  color: #bde070;
  font-weight: 500;
}

.directory-hero .hero-copy > p.hero-description,
.directory-hero .hero-copy > p:last-child {
  width: min(100%, 850px);
  max-width: 850px;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.58;
  color: rgba(255,255,255,.96);
  white-space: pre-line;
  text-wrap: pretty;
}

@media (max-width: 820px) {
  .directory-hero .hero-inner {
    width: min(calc(100% - 32px), var(--shell));
    padding-top: 46px;
    padding-bottom: 50px;
  }
  .directory-hero .hero-copy h1 {
    font-size: clamp(40px, 9vw, 58px);
  }
  .directory-hero .hero-copy > p.hero-description,
  .directory-hero .hero-copy > p:last-child {
    font-size: 16px;
    line-height: 1.58;
  }
}

@media (max-width: 520px) {
  .directory-hero .hero-inner {
    width: min(calc(100% - 28px), var(--shell));
    padding-top: 38px;
    padding-bottom: 42px;
  }
  .directory-hero .hero-copy h1 {
    font-size: clamp(36px, 11vw, 48px);
  }
  .directory-hero .hero-copy > p.hero-description,
  .directory-hero .hero-copy > p:last-child {
    margin-top: 18px;
    font-size: 15.5px;
    line-height: 1.55;
  }
}
