/* Shared editorial finish. System fonts keep every page fast and self-hosted. */
:root {
  --ink: #183e35;
  --green: #245747;
  --muted: #56675f;
  --lime: #deebba;
  --cream: #f6f7f2;
  --line: #dce3dc;
  --serif: Georgia, 'Times New Roman', serif;
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
body { font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
p { max-width: 75ch; }
a, button { -webkit-tap-highlight-color: transparent; }
.container-xl { max-width: 1240px; }
.eyebrow { font-size: 11px; letter-spacing: .13em; }
.topline { padding: 9px 0; font-size: 10px; }
.navbar { min-height: 92px; gap: 26px; }
.brand-logo, .footer-logo { width: 180px; height: 46px; object-fit: contain; }
.navbar-nav { align-items: center; gap: 18px; }
.nav-link, .nav-resources summary { font-size: 13px; font-weight: 600; color: #425a50; }
.nav-link:hover, .nav-link.active { color: var(--green); }
.nav-link.active { text-decoration: underline; text-underline-offset: 8px; }
.nav-actions { gap: 16px; }
.nav-resources { position: relative; }
.nav-resources summary { cursor: pointer; padding: 10px 0; list-style: none; }
.nav-resources summary::-webkit-details-marker { display: none; }
.nav-resources summary::after { content: '⌄'; margin-left: 7px; }
.resource-menu { position: absolute; top: calc(100% + 8px); left: 0; width: 260px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 40px #183e3514; border-radius: 12px; padding: 8px; z-index: 30; }
.resource-menu a { display: block; padding: 11px 12px; font-size: 13px; border-radius: 6px; }
.resource-menu a:hover, .resource-menu a:focus-visible { background: var(--cream); }
.navbar-toggler { border-color: var(--line); padding: 9px; border-radius: 8px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 13px; padding: 12px 20px; transition: background-color .18s, border-color .18s, box-shadow .18s; }
.btn-lg { min-height: 50px; padding: 15px 22px; }
.btn-outline-dark { background: #ffffff50; }
.btn-outline-dark:hover { background: var(--ink); border-color: var(--ink); }
.btn-light:hover { background: #edf4d8; border-color: #edf4d8; }
.hero { padding: 76px 0; background: #f4f5ef; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3.4rem, 5.4vw, 4.8rem); letter-spacing: -.055em; line-height: 1.06; margin: 25px 0; }
.hero h1 > span { color: #657d52; }
.hero-copy { font-size: 17px; line-height: 1.8; max-width: 490px; margin-bottom: 30px; }
.hero .eyebrow { display: flex; align-items: center; gap: 11px; font-size: 10px; }
.hero-status { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #708b51; box-shadow: 0 0 0 5px #e2e9d8; }
.hero-note { font-size: 11px; flex-wrap: wrap; gap: 10px; margin-top: 24px; color: #58694f; }
.path-panel { background: var(--ink); color: #f6f8ef; padding: 32px; border: 1px solid #ffffff1a; border-radius: 14px; box-shadow: 0 18px 35px #183e3512; position: relative; }
.path-panel-heading { display: flex; justify-content: space-between; align-items: center; color: #d4e4b7; font-size: 10px; letter-spacing: .16em; margin-bottom: 24px; }
.path-panel-heading > span:last-child { font-size: 23px; }
.path-panel h2 { font-family: var(--serif); font-size: 2.35rem; font-weight: 400; letter-spacing: -.035em; margin-bottom: 24px; }
.path-step { display: flex; align-items: center; gap: 16px; padding: 19px 0; border-top: 1px solid #ffffff24; color: #fff; }
.path-step:hover { color: var(--lime); }
.path-number { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #ffffff30; border-radius: 50%; font-size: 10px; color: #c9ddb0; }
.path-step strong { display: block; font-size: 18px; font-weight: 500; }
.path-step small { display: block; font-size: 10px; letter-spacing: .07em; color: #c6d5cb; margin-top: 3px; }
.path-arrow { margin-left: auto; font-size: 20px; }
.path-destination { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; background: var(--lime); color: var(--ink); border-radius: 8px; padding: 16px 18px; font-size: 11px; }
.path-destination:hover { background: #edf4d8; color: var(--ink); }
.path-destination strong { display: block; font-size: 16px; margin-top: 3px; }
.path-destination > span:last-child { font-size: 24px; }
.trust-strip { background: #fff; padding: 22px 0; font-size: 12px; }
.trust-strip b { color: var(--green); font-weight: 600; font-size: 10px; border: 1px solid var(--line); border-radius: 50%; padding: 5px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.section-heading { margin-bottom: 32px; }
.section-heading h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.04em; }
.text-link { font-size: 13px; text-underline-offset: 4px; }
.exam-section { background: #fff; border-top: 0; }
.exam-card, .career-guide-card, .study-group-card, .sidebar-card, .poll-card, .program-card, .related-program, .application-card { border-radius: 12px; }
.exam-card { display: flex; flex-direction: column; padding: 28px; border-top: 3px solid #9caf83; background: #f8f9f5; }
.exam-2 { background: #f0f4ed; border-top-color: #678768; }
.exam-3 { background: #e9f0e8; border-top-color: #2e5c48; }
.exam-top { margin-bottom: 32px; }
.exam-number { font-family: var(--serif); font-size: 32px; color: #657e55; }
.exam-card .eyebrow { font-size: 10px; }
.exam-card h3 { font-size: 28px; }
.exam-card p { font-size: 14px; margin-bottom: 24px; }
.exam-footer { margin-top: auto; font-size: 12px; }
.exam-card:hover, .career-guide-card:hover { box-shadow: 0 10px 24px #183e350b; transform: translateY(-3px); }
.policy-strip { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.policy-link { border-radius: 10px; }
.policy-link strong { font-size: 16px; }
.policy-link small { font-size: 13px; }
.official-panel { background: #f5f7f1; border-radius: 12px; padding: 28px; }
.official-item h3 { font-size: 20px; font-weight: 500; }
.official-item:hover h3, .news-item:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.news-meta { font-size: 10px; color: #526d51; }
.news-item h3 { font-size: 17px; font-weight: 500; }
.residency-home { background: #edf2ec; color: var(--ink); padding: 56px 0; border-bottom: 1px solid var(--line); }
.residency-home h2 { font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); }
.residency-home p { color: var(--muted); font-size: 16px; }
.residency-home .eyebrow { color: var(--green); }
.residency-home .btn-light { background: var(--ink); border-color: var(--ink); color: #fff; }
.residency-home .btn-light:hover { background: var(--green); }
.residency-home-stats { background: #ffffff80; border: 1px solid #d2ddd0; border-radius: 12px; }
.residency-home-stats span { border-color: #d2ddd0; padding: 22px 16px; }
.residency-home-stats strong { font-family: inherit; font-size: 20px; font-weight: 600; }
.residency-home-stats small { color: var(--muted); font-size: 12px; }
.page-hero, .directory-hero, .program-detail > header { background: var(--cream); padding: 56px 0; }
.page-hero h1, .directory-hero h1, .program-detail h1, .social-login h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 4.6vw, 3.9rem); line-height: 1.12; letter-spacing: -.04em; }
.page-hero p, .directory-hero p { font-size: 17px; line-height: 1.8; }
.breadcrumb-link { margin-bottom: 24px; }
.prose { font-size: 17px; line-height: 1.9; }
.prose h2 { margin-top: 2rem; line-height: 1.3; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; }
.filter-row { flex-wrap: wrap; }
.filter-chip { min-height: 44px; display: inline-flex; align-items: center; }
.form-panel, .social-login-panel { border-radius: 14px; background: #fff; }
.form-control, .form-select { min-height: 48px; border-radius: 7px; background-color: #fff; font-size: 15px; }
.form-text { font-size: 12px; }
.residency-filters, .state-map-panel, .directory-note, .source-panel, .contact-details { border-radius: 12px; }
.state-map-panel { background: #f7f8f3; border-color: var(--line); }
.state-tile { border-radius: 5px; }
.program-card h4 { font-size: 1.4rem; line-height: 1.25; font-weight: 400; }
.institution-programs li { grid-template-columns: minmax(0, 1fr); }
.institution-programs li > div { justify-content: space-between; align-items: flex-start; }
.institution-programs li > div > a { font-size: 14px; font-weight: 600; }
.institution-programs .route-badge { flex-shrink: 0; }
.official-program-link { justify-self: start; }
.social-login { background: var(--cream); }
.social-button, .current-study-group, .study-group-note { border-radius: 9px; }
.social-button small { text-align: right; }
.ad-placement { margin-top: 22px; margin-bottom: 22px; }
.ad-label { text-align: center; font-size: 9px; color: #657368; margin-bottom: 8px; }
.ad-content, .ad-placeholder { border: 1px solid var(--line); border-radius: 8px; min-height: 72px; background: #fafbf8; padding: 16px 22px; gap: 12px 24px; }
.ad-content { text-align: left; justify-content: space-between; }
.ad-copy { flex: 1 1 220px; display: flex; flex-direction: column; gap: 3px; }
.ad-copy strong { font-size: 16px; }
.ad-copy > span { color: var(--muted); font-size: 13px; }
.ad-sponsor { font-size: 11px; font-weight: 600; color: #53694c; }
.ad-cta { font-size: 12px; font-weight: 600; text-underline-offset: 3px; }
.ad-placeholder { min-height: 60px; font-size: 12px; color: #5c6b60; }
.community-panel, .match-feature { border-radius: 14px; }
.community-panel h2 { font-family: var(--serif); font-weight: 400; }
.community-panel p { font-size: 15px; }
.community-note { font-size: 11px; }
footer { padding-top: 56px; background: #f5f6f0; }
footer h2 { font-size: 11px; color: #566c55; }
footer p, footer .col-6 > a, .footer-link-button { font-size: 13px; }
footer .col-6 > a, .footer-link-button { padding: 5px 0; margin-bottom: 3px; }
footer a:hover, .footer-link-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-link-button { color: var(--ink); min-height: 32px; }
.footer-bottom { font-size: 11px; line-height: 1.8; }
.footer-bottom p { font-size: 11px; }
.cookie-banner { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px #183e351a; gap: 20px; }
.cookie-banner strong { font-family: inherit; font-size: 14px; }
.cookie-banner p { font-size: 12px; line-height: 1.6; }
.cookie-banner a { text-decoration: underline; }
.cookie-actions .btn { white-space: normal; min-height: 44px; }
.privacy-policy { max-width: 860px; }
.privacy-policy .table { font-size: 14px; }
:focus-visible { outline: 3px solid #7c9650; outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 2px; }
a, button, input, summary, section[id] { scroll-margin-top: 24px; }
.skip-link { z-index: 1100; }
@media (min-width: 1200px) {
  .nav-actions { max-width: 280px; flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 1199px) {
  .navbar-nav { align-items: stretch; gap: 0; padding: 12px 0; }
  .navbar-nav > .nav-link, .nav-resources summary { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .resource-menu { position: static; width: 100%; box-shadow: none; background: var(--cream); margin: 8px 0; }
  .nav-actions { padding-bottom: 16px; flex-wrap: wrap; }
  .navbar-collapse { width: 100%; padding: 0; }
}
@media (max-width: 991px) {
  .hero { padding: 52px 0; }
  .hero h1 { max-width: 680px; }
  .hero-copy { max-width: 600px; }
  .path-panel { max-width: 680px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 767px) {
  .container-xl { padding-left: 22px; padding-right: 22px; }
  .container-xl > .row.g-5 { --bs-gutter-x: 2rem; }
  .navbar { min-height: 76px; gap: 12px; }
  .brand-logo { width: 158px; height: 42px; }
  .topline span { font-size: 8px; letter-spacing: .04em; }
  .topline a { font-size: 9px; letter-spacing: 0; }
  .hero h1 { font-size: clamp(2.8rem, 10.5vw, 4.3rem); }
  .hero-copy { font-size: 16px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .08em; }
  .hero-note { font-size: 10px; gap: 8px; }
  .hero .btn-lg { font-size: 12px; }
  .path-panel { padding: 26px; }
  .path-panel h2 { font-size: 2rem; }
  .trust-strip .container-xl { flex-direction: column; gap: 15px !important; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-heading h2 { font-size: 2rem; }
  .residency-home { padding: 44px 0; }
  .residency-home-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .residency-home-stats span { padding: 18px 10px; border-bottom: 0; border-right: 1px solid #d2ddd0; }
  .residency-home-stats strong { font-size: 17px; }
  .residency-home-stats small { font-size: 11px; }
  .page-hero, .directory-hero, .program-detail > header { padding: 40px 0; }
  .prose { font-size: 16px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; max-height: calc(100dvh - 24px); overflow: auto; }
  .cookie-actions { display: flex; gap: 10px; }
  .cookie-actions .btn { flex: 1; font-size: 12px; }
  .privacy-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-details { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 374px) {
  .container-xl { padding-left: 18px; padding-right: 18px; }
  .topline .container-xl > span { max-width: 150px; }
  .hero h1 { font-size: 2.7rem; }
  .hero .btn-lg { width: 100%; }
  .path-panel { padding: 22px; }
  .panel-label { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
