
:root {
  --sky: #cdeeff;
  --sky-soft: #eaf8ff;
  --blue: #015092;
  --blue-bright: #087ac1;
  --blue-dark: #003f75;
  --line: #a9d9f2;
  --ink: #24313d;
  --muted: #607487;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 88px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(205,238,255,.96);
  border-bottom: 1px solid rgba(1,80,146,.10);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--blue);
  font-size: 28px;
  font-weight: 850;
  letter-spacing: -1.2px;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 34px;
  border-radius: 11px 11px 11px 3px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 7px 16px rgba(1,80,146,.18);
}
.brand-mark i { width: 5px; height: 5px; border-radius: 50%; background: white; }
nav { display: flex; align-items: center; gap: 34px; font-weight: 700; color: #173c61; }
nav a { text-decoration: none; }
nav a:not(.nav-button):hover { color: var(--blue-bright); }
.nav-button {
  padding: 14px 21px;
  border-radius: 10px;
  color: white;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(1,80,146,.16);
}
.header-search-toggle {
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #79bee7;
  border-radius: 11px;
  background: rgba(255,255,255,.72);
  cursor: pointer;
}
.header-search-toggle .search-icon {
  position: relative;
  left: auto;
  width: 18px;
  height: 18px;
  border-width: 2px;
}
.header-search-panel {
  position: absolute;
  top: 72px;
  right: 48px;
  width: min(470px, calc(100vw - 44px));
  padding: 10px;
  display: flex;
  gap: 8px;
  border: 1px solid #79bee7;
  border-radius: 13px;
  background: white;
  box-shadow: 0 16px 38px rgba(1,80,146,.18);
}
.header-search-panel[hidden] { display: none; }
.header-search-panel input {
  min-width: 0;
  flex: 1;
  padding: 11px 13px;
  border: 1px solid #b8dff4;
  border-radius: 9px;
  outline: 0;
}
.header-search-panel button {
  padding: 0 18px;
  border: 0;
  border-radius: 9px;
  color: white;
  background: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 670px;
  padding: 66px 40px 40px;
  text-align: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -88px 0 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,255,255,.82), rgba(255,255,255,.12) 48%, transparent 69%),
    linear-gradient(180deg, rgba(255,255,255,.22), transparent);
}
.hero-orb { position: absolute; z-index: -1; border-radius: 50%; border: 62px solid rgba(141,207,248,.22); }
.hero-orb-left { width: 330px; height: 330px; left: -200px; top: 70px; }
.hero-orb-right { width: 620px; height: 620px; right: -330px; top: 230px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(58px, 7vw, 96px);
  line-height: .96;
  letter-spacing: -.065em;
  font-weight: 900;
}
.mobile-break { display: none; }
.hero-copy {
  margin: 22px auto 0;
  color: #173c61;
  font-size: clamp(20px, 2.2vw, 29px);
  font-weight: 700;
  letter-spacing: -.02em;
}
.stats {
  margin: 30px auto 32px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
}
.stats div { min-width: 170px; padding: 4px 34px; display: flex; gap: 7px; align-items: baseline; justify-content: center; }
.stats div + div { border-left: 1px solid #7fc3e7; }
.stats strong { color: var(--blue); font-size: 19px; }
.stats span { color: #38566f; font-size: 15px; }
.search {
  position: relative;
  max-width: 1040px;
  min-height: 100px;
  margin: 0 auto;
  padding: 11px 11px 11px 76px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid #75bff0;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(1,80,146,.12);
}
.search:focus-within { outline: 4px solid rgba(8,122,193,.20); }
.search-icon {
  position: absolute;
  left: 30px;
  width: 25px;
  height: 25px;
  border: 3px solid #62778c;
  border-radius: 50%;
}
.search-icon::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 3px;
  right: -8px;
  bottom: -4px;
  background: #62778c;
  transform: rotate(45deg);
  border-radius: 2px;
}
.search input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); font-size: 21px; background: transparent; }
.search input::placeholder { color: #718296; }
.search button, .empty-state button {
  align-self: stretch;
  min-width: 200px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--blue);
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.search button:hover, .empty-state button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.category-chips { margin: 28px auto 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; }
.category-chips button {
  border: 1px solid var(--blue-bright);
  border-radius: 999px;
  padding: 12px 21px;
  color: var(--blue);
  background: rgba(255,255,255,.75);
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.category-chips button span { margin-right: 9px; }
.category-chips button:hover { background: white; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(1,80,146,.10); }

.directory {
  scroll-margin-top: 20px;
  max-width: 1380px;
  margin: 0 auto;
  padding: 42px 48px 96px;
}
.section-heading { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2, .submit-section h2 { margin: 0; color: #123b61; font-size: clamp(36px, 4vw, 54px); line-height: 1; letter-spacing: -.045em; }
.section-heading p:not(.eyebrow) { margin: 13px 0 0; color: var(--muted); font-size: 17px; }
.directory-controls { display: flex; gap: 10px; align-items: center; }
.directory-controls select, .clear-button {
  height: 46px;
  border: 1px solid #79bee7;
  border-radius: 10px;
  padding: 0 14px;
  background: rgba(255,255,255,.74);
  color: #174b77;
  font-weight: 700;
}
.clear-button { cursor: pointer; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; align-items: start; }
.category-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
  box-shadow: 0 12px 30px rgba(1,80,146,.09);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.category-card:hover { transform: translateY(-4px); border-color: #75bff0; box-shadow: 0 18px 38px rgba(1,80,146,.14); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.category-monogram {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid #9bd3f3;
  border-radius: 13px;
  color: var(--blue);
  background: var(--sky-soft);
  font-weight: 900;
  font-size: 22px;
}
.forum-count { color: #56738d; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.category-card h3 { margin: 19px 0 14px; color: #173753; font-size: 23px; letter-spacing: -.03em; }
.category-card ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #c5e6f7; }
.category-card li { padding: 12px 0 11px; border-bottom: 1px solid #e1f1f9; }
.category-card li a { display: flex; justify-content: space-between; gap: 12px; color: #165287; font-weight: 750; text-decoration: none; }
.category-card li a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-card li a b { transition: transform .16s ease; }
.category-card li a:hover { color: var(--blue-bright); }
.category-card li a:hover b { transform: translate(3px,-3px); }
.category-card small { display: block; margin-top: 4px; color: #718296; line-height: 1.35; }
.more-button {
  width: 100%;
  margin-top: 13px;
  padding: 8px 0 0;
  display: flex;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}
.empty-state { padding: 72px 24px; text-align: center; border: 1px dashed #70b9e4; border-radius: 18px; background: rgba(255,255,255,.52); }
.empty-state > span { width: 54px; height: 54px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-size: 26px; font-weight: 900; }
.empty-state h3 { margin: 18px 0 5px; font-size: 28px; color: #173753; }
.empty-state p { color: var(--muted); }
.empty-state button { min-width: 0; align-self: auto; padding: 13px 20px; margin-top: 10px; font-size: 16px; }

.submit-section {
  max-width: 1284px;
  margin: 0 auto 40px;
  padding: 48px 54px;
  border-radius: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  color: white;
  background: var(--blue);
  box-shadow: 0 18px 44px rgba(1,80,146,.22);
}
.submit-section .eyebrow { color: #a8dcfa; }
.submit-section h2 { color: white; }
.submit-section p:not(.eyebrow) { margin: 13px 0 0; color: #d9effc; font-size: 17px; }
.submit-section > a { flex: 0 0 auto; padding: 15px 20px; border-radius: 11px; color: var(--blue); background: white; text-decoration: none; font-weight: 850; }
.submit-section > a span { margin-left: 10px; }

footer {
  padding: 42px max(48px, calc((100% - 1284px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  border-top: 1px solid #9fd5ef;
  background: rgba(255,255,255,.32);
}
.footer-copy { text-align: right; color: #4e6a82; font-size: 14px; }
.footer-copy p { margin: 5px 0; }
.footer-copy a { color: var(--blue); font-weight: 800; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(8,122,193,.35); outline-offset: 3px; }

@media (max-width: 1080px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .submit-section { margin-inline: 32px; }
}
@media (max-width: 780px) {
  .site-header { height: 74px; padding: 0 22px; }
  .brand { font-size: 23px; gap: 10px; }
  .brand-mark { width: 36px; height: 30px; }
  nav a:not(.nav-button) { display: none; }
  nav { gap: 10px; }
  .nav-button { padding: 11px 14px; font-size: 14px; }
  .header-search-panel { top: 66px; right: 22px; }
  .hero { min-height: 600px; padding: 55px 18px 30px; }
  .hero h1 { font-size: clamp(53px, 15vw, 74px); }
  .mobile-break { display: block; }
  .stats div { min-width: 0; flex: 1; padding: 2px 12px; flex-direction: column; gap: 0; }
  .stats span { font-size: 12px; }
  .search { min-height: 76px; padding: 8px 8px 8px 54px; }
  .search-icon { left: 20px; width: 20px; height: 20px; border-width: 2px; }
  .search input { font-size: 17px; }
  .search button { min-width: 98px; font-size: 16px; }
  .category-chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 4px 3px 12px; }
  .category-chips button { flex: 0 0 auto; }
  .directory { padding: 34px 18px 72px; }
  .section-heading { align-items: start; flex-direction: column; }
  .directory-controls, .directory-controls label, .directory-controls select { width: 100%; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .category-card { padding: 19px; }
  .submit-section { margin: 0 18px 28px; padding: 34px 28px; align-items: flex-start; flex-direction: column; }
  footer { padding: 34px 22px; align-items: flex-start; flex-direction: column; }
  .footer-copy { text-align: left; }
}
@media (max-width: 520px) {
  .site-header .brand > span:last-child { font-size: 20px; }
  .nav-button { font-size: 0; }
  .nav-button::after { content: "Submit"; font-size: 14px; }
  .hero-copy { font-size: 18px; }
  .stats { margin-block: 24px; }
  .stats div { padding-inline: 8px; }
  .stats strong { font-size: 16px; }
  .search { padding-left: 49px; }
  .search button { min-width: 74px; padding-inline: 11px; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card h3 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
