/* 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: #e7f0da; }
.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; }
.partner-slot { margin-top: 22px; margin-bottom: 22px; }
.partner-label { text-align: center; font-size: 9px; color: #657368; margin-bottom: 8px; }
.partner-card, .partner-open { border: 1px solid var(--line); border-radius: 8px; min-height: 72px; background: #fafbf8; padding: 16px 22px; gap: 12px 24px; }
.partner-card { text-align: left; justify-content: space-between; }
.partner-copy { flex: 1 1 220px; display: flex; flex-direction: column; gap: 3px; }
.partner-copy strong { font-size: 16px; }
.partner-copy > span { color: var(--muted); font-size: 13px; }
.partner-name { font-size: 11px; font-weight: 600; color: #53694c; }
.partner-cta { font-size: 12px; font-weight: 600; text-underline-offset: 3px; }
.partner-open { 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; }
}

/* Home: preparation articles under the exam guides */
.prep-articles { margin-top: 48px; }
.prep-articles .section-heading { margin-bottom: 0; }
.prep-articles h3 { font-size: 28px; }

/* Specialty filter: one program per line */
.program-rows { list-style: none; padding: 0; margin: 0; width: 100%; border-top: 1px solid #dce2df; }
.program-rows li { display: flex; align-items: center; gap: .9rem; padding: .7rem .25rem; border-bottom: 1px solid #dce2df; white-space: nowrap; overflow: hidden; }
.program-rows .program-row-name { font-weight: 600; flex: 0 1 34%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.program-rows .program-row-place { flex: 0 0 auto; color: #52615c; font-size: .9rem; }
.program-rows .program-row-director { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: .88rem; }
.program-rows .program-row-count { flex: 0 0 auto; font-size: .88rem; color: #52615c; }
.program-rows .official-program-link { margin-left: auto; flex: 0 0 auto; }
.program-rows .route-badge { flex-shrink: 0; }
@media (max-width: 767px) { .program-rows li { flex-wrap: wrap; white-space: normal; } .program-rows .program-row-name { flex-basis: 100%; } }

/* Programs whose website blocked information gathering: name only, in light gray */
.program-unavailable, .program-unavailable a, .program-unavailable h1, .program-unavailable .eyebrow { color: #9aa5a0; }
.program-unavailable .unavailable-note, .unavailable-note { color: #9aa5a0; font-size: .85rem; }
.institution-programs li.program-unavailable > div > a { font-weight: 400; }

/* Exam path: the Steps listed in order, one per row */
.exam-path-list { list-style: none; margin: 0; padding: 0; counter-reset: none; border-top: 1px solid #d8dfdb; }
.exam-path-list li { border-bottom: 1px solid #d8dfdb; }
.exam-path-row { display: flex; align-items: center; gap: 1.5rem; padding: 1.4rem .5rem; color: inherit; text-decoration: none; }
.exam-path-row:hover { background: #f8f9f5; }
.exam-path-row .exam-number { flex: 0 0 3.5rem; font-size: 1.6rem; }
.exam-path-text { display: flex; flex-direction: column; gap: .25rem; flex: 1 1 auto; min-width: 0; }
.exam-path-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 400; line-height: 1.2; }
.exam-path-summary { color: #52615c; font-size: .95rem; }
.exam-path-row .exam-footer { flex: 0 0 auto; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.exam-path-empty { padding: 1.4rem .5rem; }
@media (max-width: 767px) { .exam-path-row { flex-wrap: wrap; gap: .5rem 1rem; } .exam-path-row .exam-number { flex-basis: auto; } .exam-path-text { flex-basis: calc(100% - 4.5rem); } .exam-path-row .exam-footer { margin-left: 4.5rem; } }

/* Simplified main menu: six short items, grouped dropdowns, nothing wraps. */
.navbar { gap: 24px; }
.brand-logo, .footer-logo { width: 211px; height: 50px; object-fit: contain; object-position: left center; }
.navbar-nav { gap: 6px; }
.navbar-nav > .nav-link, .nav-menu > summary { font-size: 14.5px; font-weight: 600; color: #314a40; white-space: nowrap; padding: 10px 12px; border-radius: 8px; }
.navbar-nav > .nav-link:hover, .nav-menu > summary:hover, .nav-menu[open] > summary { background: var(--cream); color: var(--green); }
.nav-menu { position: relative; }
.nav-menu > summary { cursor: pointer; list-style: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::after { content: '⌄'; margin-left: 6px; font-size: 12px; opacity: .7; }
.nav-menu .resource-menu { min-width: 270px; width: max-content; max-width: 320px; }
.resource-menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }
.resource-menu a strong { font-size: 14px; font-weight: 600; color: #20382f; }
.resource-menu a small { font-size: 12px; color: #65716c; }
.resource-menu-end { left: auto; right: 0; }
.menu-logout { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); margin-top: 6px; padding: 12px; font-size: 14px; font-weight: 600; color: #20382f; border-radius: 0 0 8px 8px; }
.menu-logout:hover { background: var(--cream); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; max-width: none; justify-content: flex-end; white-space: nowrap; }
.nav-actions .nav-link { font-size: 14.5px; font-weight: 600; color: #314a40; padding: 10px 12px; }
.nav-actions .btn { min-height: 40px; padding: 9px 22px; }
@media (max-width: 1199px) {
  .navbar-nav { gap: 0; }
  .navbar-nav > .nav-link, .nav-menu > summary { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-menu .resource-menu { position: static; width: 100%; max-width: none; box-shadow: none; background: var(--cream); margin: 4px 0 8px; }
  .resource-menu-end { right: auto; }
  .nav-actions { padding: 14px 0 18px; flex-wrap: wrap; justify-content: flex-start; }
  .brand-logo { width: 185px; height: 44px; }
}

/* Contact form honeypot: present for bots, never for people */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* In-content partner card: looks like the site's other cards, labelled as sponsored */
.partner-inline { margin: 28px 0; }
.partner-inline-card { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid #cfdcc0; border-left: 4px solid #8fae6b; border-radius: 10px; background: #f4f9ea; color: var(--ink); text-decoration: none; }
.partner-inline-card:hover { border-color: #8fae6b; box-shadow: 0 8px 22px #183e350d; }
.partner-inline-card .partner-label { text-align: left; margin: 0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #53694c; }
.partner-inline-card strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; line-height: 1.25; }
.partner-inline-text { color: #52615c; font-size: 14px; }
.partner-inline-by { color: #65716c; font-size: 12px; }
.partner-inline-card .partner-cta { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
