/* A quiet first screen gives way to a readable, grouped directory. */
.wrap { max-width: 1200px; position: relative; }
.top { position: absolute; z-index: 2; top: 0; left: 40px; right: 40px; padding-top: 0; }
.hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; position: relative; padding: 110px 0 100px; }
.hero-content { width: min(100%, 660px); text-align: center; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); font-weight: 400; letter-spacing: -.055em; line-height: 1.12; margin: 0 0 30px; }
.search-box { display: flex; align-items: center; gap: 16px; min-height: 106px; padding: 20px 22px 20px 28px; text-align: left; background: rgb(247 248 244 / 44%); border: 1px solid rgb(100 126 151 / 25%); border-radius: 24px; box-shadow: 0 12px 45px rgb(61 77 68 / 8%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.search-box:focus-within { border-color: #6c9ac2; box-shadow: 0 12px 45px rgb(50 78 103 / 12%), 0 0 0 3px rgb(84 142 191 / 16%); }
.search-box input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; color: inherit; font-size: 17px; }
.search-box input::placeholder { color: #748797; opacity: 1; }
.search-box button { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgb(80 119 153 / 20%); border-radius: 50%; background: rgb(255 255 255 / 25%); color: inherit; transition: background .2s, border-color .2s, transform .2s; }
.search-box button svg { width: 21px; height: 21px; }
.search-box button:hover { background: rgb(80 119 153 / 18%); transform: translateY(-2px); }
.discover { position: absolute; bottom: 38px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.discover span:last-child { font-size: 21px; transition: transform .2s; }
.discover:hover span:last-child { transform: translateY(4px); }
.directory-area { min-height: 100vh; padding: 72px 0 40px; scroll-margin-top: 0; }
.directory-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.directory-intro h2 { margin: 4px 0 8px; font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -.04em; }
.directory-intro p { color: var(--muted); font-size: 13px; }
.directory-intro .eyebrow { font-size: 10px; letter-spacing: .18em; font-weight: 600; }
.manage-link, .back-top { color: var(--muted); font-size: 12px; white-space: nowrap; }
.manage-link:hover, .back-top:hover { text-decoration: underline; }
.result-count { margin: 0 0 15px; text-align: left; color: var(--muted); font-size: 11px; }
.directory { display: grid; grid-template-columns: 1fr; gap: 14px; }
.directory section { min-width: 0; padding: 22px; border-radius: 18px; }
.sec-head { padding: 0 2px 15px; }
.sec-head h2 { font-size: 15px; font-weight: 600; }
.group-count { font-size: 11px; }
.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.card { min-width: 0; display: flex; flex-direction: row; align-items: flex-start; gap: 13px; text-align: left; padding: 14px; border: 1px solid transparent; border-radius: 12px; transition: background .2s, border-color .2s, transform .2s; }
.card:hover { background: var(--hover); border-color: var(--panel-border); transform: translateY(-2px); }
.icon { flex: none; width: 42px; height: 42px; margin: 0; border-radius: 11px; }
.service-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; gap: 4px; }
.service-name { display: block; min-height: 0; font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.service-description { color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.tag { flex: none; margin: 2px 0 0; font-size: 9px; letter-spacing: .04em; }
.empty-results { text-align: center; padding: 55px 20px; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 18px; backdrop-filter: blur(12px); }
.empty-results button { margin-top: 12px; border: 0; background: transparent; color: inherit; text-decoration: underline; }
.back-top { display: inline-block; margin-top: 32px; }
:is([data-ocean-theme="night"], [data-ocean-theme="ocean"]) .search-box { background: rgb(17 40 57 / 44%); border-color: rgb(183 217 235 / 25%); }
:is([data-ocean-theme="night"], [data-ocean-theme="ocean"]) .search-box input::placeholder { color: #b4c9d3; }
:is([data-ocean-theme="night"], [data-ocean-theme="ocean"]) .search-box button { background: rgb(210 232 242 / 10%); border-color: rgb(210 232 242 / 25%); }
@media(max-width:850px) { .top { left: 28px; right: 28px; } .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:600px) { .top { left: 18px; right: 18px; } .hero { padding: 120px 0 90px; } .hero h1 { margin-bottom: 24px; } .search-box { min-height: 88px; padding: 14px 15px 14px 20px; border-radius: 20px; } .search-box input { font-size: 15px; } .search-box button { width: 44px; height: 44px; } .directory-area { padding-top: 58px; } .directory-intro { align-items: start; } .directory section { padding: 17px 12px; } .grid { grid-template-columns: 1fr; gap: 3px; } .card { padding: 12px 8px; } .service-name { font-size: 14px; white-space: normal; } .service-description { font-size: 12px; } .icon { width: 40px; height: 40px; } .tag { font-size: 9px; } }
@media(max-width:360px) { .top { left: 12px; right: 12px; } .hero h1 { font-size: 30px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } .card, .search-box button, .discover span:last-child { transition: none; } }

/* About is a separately maintained closing section for the space. */
.about-section { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.5fr); gap: clamp(32px, 7vw, 96px); margin-top: 42px; padding: clamp(28px, 5vw, 58px); border-radius: 22px; scroll-margin-top: 24px; }
.about-heading .eyebrow { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .18em; }
.about-heading h2 { margin-top: 12px; font-size: clamp(29px, 3.5vw, 42px); font-weight: 500; letter-spacing: -.04em; }
.about-signature { margin-top: 28px; color: var(--muted); font-size: 10px; letter-spacing: .15em; }
.about-content { max-width: 630px; }
.about-content p { margin: 0 0 19px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.about-content .about-lead { color: inherit; font-size: clamp(18px, 2vw, 22px); font-weight: 500; line-height: 1.6; }
.about-contact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 24px; margin-top: 29px; padding-top: 22px; border-top: 1px solid var(--panel-border); }
.about-contact > span { color: var(--muted); font-size: 12px; }
.about-contact a { font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.about-contact a:hover { text-decoration: underline; }
.back-top { margin: 28px 0 40px; }
@media(max-width:600px) { .nav .about-nav { display: block; } .about-section { grid-template-columns: 1fr; gap: 26px; margin-top: 20px; padding: 28px 22px; } .about-signature { margin-top: 12px; } .about-content p { font-size: 13px; } .about-content .about-lead { font-size: 18px; } }

/* Anchor targets should not gain a large outline after an in-page jump. */
#directory:focus, #about:focus { outline: none; }
@media (hover: none) { .search-box:focus-within { box-shadow: 0 12px 45px rgb(50 78 103 / 12%); } }

/* Compact header: keep session controls in settings on small or short touch screens. */
.settings-session { display: none; }
@media (max-width: 600px), (max-height: 500px) and (pointer: coarse) {
  .top { height: 60px; min-height: 60px; flex-wrap: nowrap; gap: 14px; padding: 0; }
  .top-actions { width: auto; margin-left: auto; flex: none; flex-wrap: nowrap; }
  .top-actions .ocean-switch, .top-actions .session-header-slot, .top-actions .local-date { display: none; }
  .settings-button { width: 40px; height: 40px; }
  .nav { gap: 16px; }
  .settings-session { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0; }
  .settings-session .session-panel { justify-content: flex-end; gap: 10px; font-size: 12px; }
  .settings-session .session-action { min-height: 36px; padding: 5px 10px; font-size: 12px; }
}
@media (max-width: 360px) { .top { gap: 11px; } .nav { gap: 12px; } }
