:root {
  --blue-900: #102f57;
  --blue-700: #1f5f9f;
  --blue-100: #eaf3fb;
  --red: #d52b1e;
  --ink: #1f2933;
  --muted: #64748b;
  --line: #d8e2ec;
  --white: #ffffff;
  --soft: #f7fafc;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  color: var(--blue-900);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-root {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  color: var(--ink);
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 0;
}

.has-children > a::after {
  content: ">";
  color: var(--muted);
  font-size: 0.75rem;
  margin-left: 6px;
}

.nav-dropdown {
  display: none;
  min-width: 230px;
  max-height: 420px;
  overflow: auto;
  position: absolute;
  left: 0;
  top: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(15, 47, 87, 0.14);
  padding: 8px;
  z-index: 30;
}

.nav-dropdown .nav-dropdown {
  left: 100%;
  top: 0;
}

.has-children:hover > .nav-dropdown,
.has-children:focus-within > .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  border-radius: 6px;
  color: var(--ink);
  padding: 8px 10px;
  white-space: nowrap;
}

.nav-dropdown a:hover {
  background: var(--blue-100);
  text-decoration: none;
}

.company-menu {
  min-width: 280px;
}

.page-hero {
  background: linear-gradient(180deg, var(--blue-100), var(--white));
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px;
}

.page-hero.compact { padding: 54px 0 42px; }

.eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1, h2, h3 { color: var(--blue-900); line-height: 1.2; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0; }
h2 { font-size: 1.35rem; margin-top: 1.8rem; }
h3 { font-size: 1.05rem; }

.lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 760px;
  margin: 16px 0 0;
}

.content-section { padding: 48px 0 64px; }
.content-grid { display: grid; gap: 36px; }

.prose {
  max-width: 820px;
  font-size: 1rem;
}

.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.directory-card {
  display: block;
  min-height: 168px;
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 47, 87, 0.06);
}

.directory-card:hover {
  border-color: var(--blue-700);
  text-decoration: none;
  transform: translateY(-2px);
  transition: 160ms ease;
}

.card-kicker {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.directory-card h2 {
  font-size: 1.08rem;
  margin: 0 0 10px;
}

.directory-card p { color: var(--muted); margin: 0; }

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

.profile-content {
  background: var(--white);
}

.sidebar {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--soft);
}

.sidebar h2 { font-size: 1.1rem; margin-top: 0; }

.button {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--blue-700);
  border-radius: 6px;
  font-weight: 700;
}

.button:hover { background: var(--blue-900); text-decoration: none; }

.site-footer {
  color: var(--white);
  background: var(--blue-900);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--white); font-weight: 700; }

@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .site-nav ul { gap: 8px 14px; }
  .site-nav,
  .site-nav li,
  .nav-root {
    width: 100%;
  }
  .nav-root {
    align-items: stretch;
    flex-direction: column;
  }
  .nav-dropdown,
  .nav-dropdown .nav-dropdown {
    box-shadow: none;
    display: block;
    left: auto;
    max-height: 260px;
    position: static;
    width: 100%;
  }
  .page-hero { padding: 48px 0 38px; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}
