/* MedFellows public site. Navy and gold, serif headlines, after the program brochure. */
:root {
  --navy: #16233f;
  --navy-2: #22355c;
  --gold: #c8a55a;
  --gold-ink: #7d5f1c;      /* gold dark enough for text on light backgrounds */
  --ink: #1c2333;
  --muted: #55607a;
  --paper: #fbf9f4;
  --tint: #f3efe6;
  --card: #ffffff;
  --line: #ddd6c6;
  --error: #a4281b;
  --ok: #1d6b45;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: Lato, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--navy-2); }
a:hover { color: var(--navy); }
[hidden] { display: none !important; }

.wf h1, .wf h2, .wf h3, .wf p { margin: 0; }
.wf h1, .wf h2 { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; }
.wf h1 { font-size: clamp(36px, 5.2vw, 58px); line-height: 1.06; }
.wf h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; }
.wf h3 { font-size: 18.5px; line-height: 1.3; font-weight: 700; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.sec { padding: 72px 0; border-bottom: 1px solid var(--line); }
.sec.tint { background: var(--tint); }
.muted { color: var(--muted); }
.tag { display: block; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin-bottom: 6px; }

.g2, .g3, .g4, .g5 { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 26px; min-height: 68px; }
.brand { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: .08em; }
.brand:hover { color: #fff; }
.brand small { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; color: var(--gold); font-weight: 700; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.site-nav a { color: #e9edf5; text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.site-nav a.btn { padding: 10px 20px; border-bottom: 0; color: var(--navy); }
.nav-toggle { display: none; }
.nav-button { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid #56658a; border-radius: 6px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.nav-button span { display: block; width: 20px; height: 2px; background: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-block; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; padding: 13px 24px; border-radius: 5px; background: var(--gold); color: var(--navy); border: 1.5px solid var(--gold); }
.btn:hover { filter: brightness(1.06); color: var(--navy); }
.btn.alt { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn:focus-visible, a:focus-visible, .field:focus-visible, summary:focus-visible, .nav-button:focus-visible { outline: 3px solid #e6c98a; outline-offset: 2px; }

/* ---------- hero ---------- */
.sec.hero { background: var(--navy); color: #fff; border-bottom: 4px solid var(--gold); padding: 64px 0 72px; }
.hero .tag { color: var(--gold); }
.hero .muted { color: #c5cee0; }
.hero p { color: #e4e9f3; }
.hero img { border-radius: 6px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); }
.hero .btn.alt { color: #fff; border-color: #fff; }
.hero .btn.alt:hover { color: #fff; }
.hero .box.navy { background: var(--navy-2); border-color: var(--navy-2); border-top-color: var(--gold); }

/* ---------- cards ---------- */
.box { background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 6px; padding: 22px; }
.box h3 + p, .wf h3 + p.muted { margin-top: 6px; }
.box.tint { background: var(--tint); }
.box.navy { background: var(--navy); color: #fff; border-color: var(--navy); border-top-color: var(--gold); }
.box.navy .tag { color: var(--gold); }
.box.navy p, .box.navy span { color: #eef1f7; }
.sec.navy { background: var(--navy); color: #fff; }
.sec.navy p { color: #e4e9f3; }
.card { display: flex; gap: 18px; align-items: flex-start; }
.avatar { width: 120px; height: 120px; flex: none; border-radius: 6px; background: var(--navy); color: var(--gold); font-family: var(--serif); font-size: 44px; display: flex; align-items: center; justify-content: center; }
.wf img { border-radius: 6px; }
figure.illus { margin: 0; }
figure.illus figcaption, .credit { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* ---------- film ---------- */
.film { position: relative; width: 100%; max-width: 980px; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(22, 35, 63, .6); }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- lists, tables, FAQ ---------- */
.chk { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chk li { padding-left: 24px; position: relative; }
.chk li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--card); }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--navy); color: #fff; font-weight: 700; }
.tbl tbody th { width: 190px; background: var(--tint); font-weight: 700; }
.tbl.itinerary { min-width: 680px; }
.tbl.itinerary td:first-child, .tbl.itinerary th:first-child { white-space: nowrap; }
.tbl.itinerary td:nth-child(2) { color: var(--gold-ink); }
.scroll-x { overflow-x: auto; }
.num { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 14px 34px 14px 0; position: relative; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 6px; top: 10px; font-size: 24px; font-weight: 400; color: var(--gold-ink); }
details.faq[open] summary::after { content: "\2013"; }
details.faq p { padding: 0 0 16px; color: var(--muted); max-width: 820px; }

/* ---------- forms ---------- */
.wf label { font-size: 13.5px; font-weight: 700; display: block; margin-bottom: 6px; }
.field { border: 1px solid #a9a290; border-radius: 5px; min-height: 46px; background: #fff; width: 100%; font: inherit; color: inherit; padding: 10px 12px; }
textarea.field { min-height: 96px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; color: var(--error); min-height: 1.4em; }
.form-thanks { padding: 12px 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #d5dcea; padding: 48px 0 40px; font-size: 15px; }
.site-footer h3 { font-family: var(--serif); font-size: 26px; letter-spacing: .1em; color: #fff; font-weight: 600; margin: 0 0 6px; }
.site-footer p { margin: 0 0 8px; }
.site-footer a { color: #fff; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0; }
.site-footer .fine { font-size: 13px; color: #aab4c9; margin-top: 18px; }

/* ---------- phone: Apply bar that stays on screen ---------- */
.apply-bar { display: none; }

@media (max-width: 900px) {
  .g4, .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: 1fr; }
  .nav-button { display: flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 20px; border-bottom: 4px solid var(--gold); }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid #33456e; }
  .site-nav a.btn { margin-top: 14px; text-align: center; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
}
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .sec { padding: 48px 0; }
  .sec.hero { padding: 40px 0 48px; }
  .wrap { padding: 0 20px; }
  .g2, .chk { grid-template-columns: 1fr; }
  .g5 { grid-template-columns: 1fr; }
  .card { flex-direction: column; }
  .tbl tbody th { width: 120px; }
  .apply-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: #fff; border-top: 1px solid var(--line); padding: 10px 20px; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
  .apply-bar span { flex: 1; }
  .apply-bar .btn { padding: 10px 20px; }
  body.has-apply-bar { padding-bottom: 68px; }
}
