/* Accessible navigation and shared small-screen fixes. */
:root { color-scheme: light; }
body { line-height: 1.5; }
button, input, select, textarea { font-family: inherit; }
button, .btn { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #24884a; outline-offset: 3px;
}
.skip-link { position: absolute; left: 12px; top: -70px; z-index: 100; padding: 12px; color: #fff; background: #0b2d55; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.topbar { padding: 16px 5vw; gap: 12px 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; white-space: nowrap; }
.header-controls { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.ui-languages { display: flex; flex-wrap: wrap; gap: 3px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; background: var(--soft); }
.ui-language { padding: 7px 10px; color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 650; border-radius: 7px; }
.ui-language[aria-current] { color: #fff; background: var(--navy); }
.topbar .site-nav { width: 100%; gap: 10px 20px; font-size: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.site-nav a { padding: 3px 0; }
.site-nav .btn { padding: 8px 12px; }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-weight: 750; color: var(--navy); }
.hero { gap: 32px; padding-top: 54px; padding-bottom: 54px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.5vw, 62px); line-height: 1.1; max-width: 900px; }
.hero p { font-size: 18px; }
.trust-card { box-shadow: 0 16px 45px #0b2d5510; border-top: 4px solid var(--green); }
.trust-card h3 { margin-top: 0; font-size: 22px; color: var(--navy); }
.trust-card p { padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.trust-card p:last-child { padding-bottom: 0; border-bottom: 0; }
.job-grid, .case-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.job-top { flex-wrap: wrap; }
.case, .source-note, .preserve-lines, .application-policy { overflow-wrap: anywhere; }
.catalog-filters input, .catalog-filters select { min-height: 46px; }
.section, .auth-layout, .portal-head, .form-shell, .engagement-page { min-width: 0; }
.form-grid > *, .skill-grid > *, .split-panel > *, .two-col > *, .hero > * { min-width: 0; }
.empty-state p:first-child { margin-top: 0; }
.source-note { padding: 10px 14px; border-left: 3px solid var(--blue); background: var(--soft); font-size: 14px; }
.home-how-link { display: inline-block; margin-top: 22px; color: var(--navy); font-weight: 700; }
#how-it-works, #jobs { scroll-margin-top: 190px; }
.home-intro { background: var(--soft); }
.home-lead { max-width: 760px; color: var(--muted); font-size: 18px; }
.home-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; margin-top: 30px; }
.home-steps article { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.home-steps h3 { margin-top: 18px; color: var(--navy); font-size: 23px; line-height: 1.2; }
.home-steps p { margin-bottom: 0; }
.home-step-number { display: inline-block; color: var(--green); background: #e8f6ed; border-radius: 10px; padding: 7px 12px; font-weight: 800; }
.home-audiences { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-audiences h2 { font-size: clamp(26px,3vw,36px); line-height: 1.2; }
.home-audiences .btn { margin-top: 12px; }
.email-review { max-width: 1100px; margin: auto; }
.email-review h1 { font-size: clamp(30px,4vw,46px); line-height: 1.15; }
.email-review .application-policy { margin: 24px 0; }
.email-envelope { display: grid; grid-template-columns: minmax(110px,auto) minmax(0,1fr); gap: 8px 24px; padding: 20px; background: var(--soft); border-radius: 12px; }
.email-envelope dt { font-weight: 700; }
.email-envelope dd { margin: 0; overflow-wrap: anywhere; }
.email-message { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; padding: 26px; border: 1px solid var(--line); border-radius: 14px; line-height: 1.7; }
.email-consent { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0; font-weight: 500; }
.email-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; }
.email-confirmation .btn { white-space: normal; }
@media (max-width: 800px) {
  .topbar { position: static; padding: 14px 5vw; gap: 14px; }
  .brand { font-size: 20px; }
  .header-controls { width: 100%; margin-left: 0; justify-content: space-between; gap: 8px; }
  .ui-language { padding: 7px 8px; }
  .topbar .site-nav { display: flex; flex-direction: column; align-items: stretch; gap: 3px; }
  .topbar .site-nav > a { padding: 9px 10px; border-radius: 6px; }
  .site-nav a:hover { background: var(--soft); }
  .nav-enhanced .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .topbar.nav-enhanced .site-nav { display: none; }
  .topbar.nav-enhanced.menu-open .site-nav { display: flex; }
  .site-nav .session-nav .btn { width: 100%; }
  .hero { padding: 32px 5vw; gap: 22px; }
  .hero h1 { font-size: clamp(32px,8.5vw,48px); }
  .hero .actions, .hero .actions .btn { width: 100%; text-align: center; }
  .program-grid, .section { padding-left: 5vw; padding-right: 5vw; }
  .section { padding-top: 28px; padding-bottom: 28px; }
  .section.compact-top { padding-top: 8px; }
  .auth-layout { padding: 18px 5vw; }
  .auth-story h1 { font-size: 34px; }
  .section h2 { font-size: 27px; }
  .auth-card, .profile-form fieldset, .match-card { padding: 18px; }
  .engagement-form input, .engagement-form select, .engagement-form textarea, .profile-form input, .profile-form select { max-width: 100%; min-width: 0; }
  .workspace-tabs { flex-wrap: wrap; }
  .actions { flex-wrap: wrap; }
  .two-col { gap: 22px; }
  .home-steps, .home-audiences { grid-template-columns: 1fr; }
  .home-steps { gap: 16px; }
  .email-envelope { grid-template-columns: 1fr; gap: 4px; }
  .email-envelope dd { margin-bottom: 12px; }
  .email-message { padding: 16px; }
  #how-it-works, #jobs { scroll-margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
