/* =========================================================================
   SDOH ART Fellowship — Emory design system
   Navy #012169 · Gold #f2a900 · Crimson Pro / Open Sans / Roboto
   ========================================================================= */

:root {
  --navy: #012169;
  --navy-800: #0c2340;
  --royal: #0033a0;
  --blue: #0071b8;
  --sky: #26a3dd;
  --gold: #f2a900;
  --gold-ink: #5c4300;

  --ink: #1d2330;
  --body: #3c4250;
  --muted: #6b7280;
  --line: #e6e8ec;
  --line-2: #f0f2f5;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --tint: #eaeef7;
  --tint-2: #f3f6fb;

  --green: #2c9942;
  --red: #da291c;

  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --ui: "Roboto", system-ui, sans-serif;

  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;

  --sidebar-w: 268px;
  --topbar-h: 60px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.05);
  --shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.18; margin: 0 0 .5rem; }
h1 { font-size: 2.1rem; font-weight: 700; }
h2 { font-size: 1.55rem; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: var(--royal); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .35rem; }

img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--gold); color: var(--navy-800); padding: 10px 16px;
  border-radius: var(--r-sm); font-weight: 700; transition: top .15s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: linear-gradient(180deg, #012169 0%, #001a52 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand { display: block; margin-bottom: 22px; }
.brand .eyebrow {
  font-family: var(--ui); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .58); margin-bottom: 3px;
}
.brand .wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.45rem; color: #fff; line-height: 1.1; }

.nav-group { margin-bottom: 18px; }
.nav-label {
  font-family: var(--ui); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .5); padding: 0 10px; margin-bottom: 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .82); font-size: .95rem; cursor: pointer;
  border: none; background: none; width: 100%; text-align: left; font-family: var(--sans);
  transition: background .14s, color .14s;
}
.nav-item .ico { width: 18px; height: 18px; flex-shrink: 0; opacity: .9; }
.nav-item:hover { background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none; }
.nav-item.active { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 var(--gold); font-weight: 600; }

.sidebar-spacer { flex: 1 1 auto; min-height: 16px; }

.btn-apply {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--gold); color: var(--navy-800);
  font-family: var(--ui); font-weight: 700; font-size: .95rem;
  padding: 12px; border-radius: var(--r); border: none; cursor: pointer; width: 100%;
  transition: filter .14s, transform .05s;
}
.btn-apply:hover { filter: brightness(1.05); text-decoration: none; color: var(--navy-800); }
.btn-apply:active { transform: scale(.99); }
.sidebar-foot { margin-top: 14px; font-size: .72rem; color: rgba(255, 255, 255, .5); line-height: 1.5; text-align: center; }

/* ---------- Main column ---------- */
.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px;
  padding: 0 22px;
}
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--navy); }
.menu-toggle svg { width: 24px; height: 24px; }

.tabs { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; }
.tab {
  font-family: var(--sans); font-size: .94rem; color: var(--body);
  padding: 6px 12px; border: none; background: none; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; border-radius: 0;
  transition: color .14s;
}
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); font-weight: 700; border-bottom-color: var(--gold); }

.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 22px;
  padding: 6px 14px; min-width: 180px;
}
.search svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.search input { border: none; background: none; outline: none; font-family: var(--sans); font-size: .9rem; width: 100%; color: var(--ink); }

.content { padding: 28px 40px 64px; max-width: 1320px; width: 100%; margin: 0 auto; }

/* ---------- Page header ---------- */
.page-head { margin-bottom: 22px; }
.page-head .eyebrow {
  font-family: var(--ui); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); font-weight: 500; margin-bottom: 6px;
}
.page-head .sub { color: var(--muted); font-size: 1rem; max-width: 62ch; }
.count-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pill {
  font-family: var(--ui); font-size: .78rem; font-weight: 500;
  background: var(--tint); color: var(--navy); border-radius: 20px; padding: 4px 12px;
}
.pill.gold { background: #fdf0d2; color: var(--gold-ink); }

/* ---------- Avatars (monogram) ---------- */
.avatar {
  border-radius: 50%; background: var(--tint); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ui); font-weight: 700; flex-shrink: 0; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.core-card .avatar img { object-position: center 10%; }
[data-fid="ken-hepburn"] .avatar img { transform: scale(1.9); transform-origin: center 48%; }
[data-fid="jacob-kariuki"] .avatar img { transform: scale(0.84); }
.avatar.sm { width: 36px; height: 36px; font-size: .78rem; }
.avatar.md { width: 50px; height: 50px; font-size: .92rem; }
.avatar.fac { width: 78px; height: 78px; font-size: 1.4rem; }
.avatar.core { width: 112px; height: 112px; font-size: 2rem; }
.avatar.lg { width: 104px; height: 104px; font-size: 1.9rem; border-radius: 16px; }
.avatar.solid { background: var(--navy); color: #fff; }

/* ---------- Master–detail directory ---------- */
.directory { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.dir-list {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); max-height: calc(100vh - 200px); overflow-y: auto;
}
.dir-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; border: none; background: none; cursor: pointer; text-align: left;
  border-bottom: 1px solid var(--line-2); transition: background .12s;
}
.dir-item:last-child { border-bottom: none; }
.dir-item:hover { background: var(--tint-2); }
.dir-item.active { background: var(--tint); box-shadow: inset 3px 0 0 var(--navy); }
.dir-item .who { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dir-item .nm { font-size: .92rem; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-item .inst { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.detail {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.detail-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.detail-head .who h2 { margin-bottom: 4px; }
.detail-head .who .role { color: var(--blue); font-weight: 600; font-size: .95rem; }
.detail-head .who .inst { color: var(--body); font-size: .95rem; margin-top: 2px; }
.badge {
  display: inline-block; margin-top: 10px;
  font-family: var(--ui); font-size: .72rem; font-weight: 600;
  border-radius: 20px; padding: 4px 12px; background: #e6f1fb; color: #0c447c;
}
.badge.fy { background: #fdf0d2; color: var(--gold-ink); }
.detail-grid { border-top: 1px solid var(--line); margin-top: 4px; }
.detail-row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.detail-row .k { color: var(--muted); font-size: .85rem; font-family: var(--ui); }
.detail-row .v { color: var(--ink); font-size: .95rem; }
.detail-bio { margin-top: 18px; color: var(--body); }
.detail-bio h3 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }

/* ---------- Card grids (faculty / news) ---------- */
.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Featured core (Dr. Hamilton) */
.fac-card.core-card {
  flex-direction: row; align-items: center; text-align: left; gap: 26px;
  max-width: 720px; margin: 0 auto 32px; padding: 26px 30px;
  background: linear-gradient(180deg, #fffdf5, #ffffff);
  border: 1px solid #f0d99a; border-radius: 18px;
}
.core-info { min-width: 0; }
.core-eyebrow { font-family: var(--ui); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin-bottom: 3px; }
.core-name { font-family: var(--serif); font-size: 1.55rem; font-weight: 700; color: var(--navy); line-height: 1.15; }

/* Mentor grid */
.fac-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fac-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px 18px 20px; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s;
}
.fac-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fac-name { font-weight: 700; color: var(--ink); font-size: 1rem; line-height: 1.25; }
.fac-profile { color: inherit; text-decoration: none; }
.fac-profile:hover, .fac-profile:focus-visible { text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.fac-profile .ext { font-size: .7em; margin-left: 4px; opacity: .45; vertical-align: super; }
.fac-profile:hover .ext { opacity: .9; }
.fac-desg { font-size: .85rem; color: var(--ink); font-weight: 600; line-height: 1.3; }
.fac-inst { font-size: .8rem; color: var(--muted); line-height: 1.3; margin-top: 1px; }
.fac-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.core-card .fac-tags { justify-content: flex-start; margin-top: 8px; }
.fac-tags .tag { font-family: var(--ui); font-size: .72rem; background: var(--tint); color: var(--navy); border-radius: 20px; padding: 3px 10px; }
.fac-tags .ph { color: #aab0ba; font-style: italic; font-size: .8rem; }
.fac-li-wrap { position: absolute; top: 14px; right: 14px; }
.fac-li { color: #0a66c2; display: inline-flex; align-items: center; }
.fac-li:hover { color: #084a8c; }
.fac-li.disabled { color: #d2d6dd; cursor: default; }
@media (max-width: 1100px) { .fac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) { .fac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fac-card.core-card { flex-direction: column; text-align: center; } .fac-card.core-card .fac-tags { justify-content: center; } }
@media (max-width: 480px) { .fac-grid { grid-template-columns: 1fr; } }

.news-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s;
}
.news-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.news-card .thumb { background: var(--bg); object-fit: contain; width: 100%; height: 100%; min-height: 250px; padding: 10px; }
.news-card .body { padding: 18px 20px; }
.news-card .outlet { font-family: var(--ui); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.news-card h3 { color: var(--navy); margin: 4px 0 6px; }
.news-card .ex { color: var(--body); font-size: .9rem; }
.news-card .go { color: var(--royal); font-weight: 600; font-size: .85rem; margin-top: 8px; display: inline-flex; gap: 4px; align-items: center; }

/* ---------- Editorial (about) ---------- */
.editorial { max-width: 76ch; }
.editorial .lead { font-size: 1.2rem; color: var(--navy); font-family: var(--serif); margin-bottom: 1.4rem; }
.editorial h2 { margin-top: 1.8rem; }
.editorial strong { color: var(--ink); }

/* ---------- About: benefits / course / eligibility / contact ---------- */
.about-sec { margin-top: 38px; max-width: 980px; }
.about-sec > h2 { margin-bottom: 6px; }
.sec-sub { color: var(--muted); margin-bottom: 16px; max-width: 70ch; }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; margin-top: 14px; }
.benefit { display: flex; gap: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.benefit:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.benefit-ic { color: var(--gold); flex-shrink: 0; line-height: 0; margin-top: 1px; }
.benefit h4 { font-family: var(--sans); font-size: 1rem; color: var(--navy); margin: 0 0 4px; font-weight: 700; line-height: 1.3; }
.benefit p { margin: 0; font-size: .9rem; color: var(--body); line-height: 1.55; }
.course-list { list-style: none; padding: 0; margin: 6px 0 0; }
.course-day { display: flex; gap: 16px; padding: 0 0 20px 22px; position: relative; }
.course-day:last-child { padding-bottom: 4px; }
.course-day::before { content: ''; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid var(--surface); z-index: 1; }
.course-day:not(:last-child)::after { content: ''; position: absolute; left: -1px; top: 9px; bottom: -9px; width: 2px; background: var(--line); }
.cd-day { font-family: var(--ui); font-weight: 700; color: var(--navy); min-width: 52px; font-size: .85rem; padding-top: 1px; flex-shrink: 0; }
.cd-body { display: flex; flex-direction: column; gap: 2px; }
.cd-body strong { color: var(--ink); font-size: .98rem; }
.cd-body span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.elig-list { columns: 2; column-gap: 36px; margin: 10px 0 0; padding-left: 1.1rem; }
.elig-list li { margin-bottom: 9px; break-inside: avoid; color: var(--body); }
.contact-card { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 24px; box-shadow: var(--shadow-sm); margin-top: 12px; }
.contact-card strong { color: var(--navy); font-size: 1.08rem; }
.contact-card p { margin: 5px 0 0; color: var(--body); font-size: .9rem; max-width: 62ch; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) { .elig-list { columns: 1; } }

/* ---------- Framework ---------- */
.fw-top { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: center; margin-bottom: 30px; }
.fw-puzzle { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-sm); }
.fw-puzzle img { width: 100%; display: block; }
.fw-domains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fw-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s;
}
.fw-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fw-card.wide { grid-column: 1 / -1; }
.fw-card .bar { height: 6px; }
.fw-card .inner { padding: 18px 20px; }
.fw-head { display: flex; align-items: center; gap: 11px; margin-bottom: 7px; }
.fw-piece { width: 30px; height: 30px; flex-shrink: 0; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .2)); }
.fw-card h3 { font-size: 1.12rem; margin: 0; }
.fw-card .blurb { color: var(--muted); font-size: .88rem; margin-bottom: 12px; line-height: 1.5; }
.fw-card ul { padding-left: 1.1rem; margin: 0; }
.fw-card li { font-size: .9rem; color: var(--body); line-height: 1.55; margin-bottom: 3px; }
.fw-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 34px; }
.fw-part h4 { font-size: .92rem; margin: 0 0 7px; font-weight: 700; }

/* ---------- Photo booth ---------- */
.booth { max-width: 980px; }
.booth-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--navy-800);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow);
}
.booth-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.booth-slide img { width: 100%; height: 100%; object-fit: cover; }
.booth-slide.active { opacity: 1; }
.booth-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(2, 12, 35, .82), rgba(2, 12, 35, 0));
  color: #fff; padding: 40px 22px 16px; font-size: .95rem;
}
.booth-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.booth-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: none; cursor: pointer; padding: 0; transition: background .14s, transform .14s; }
.booth-dot.active { background: var(--navy); transform: scale(1.25); }
.booth-btn { background: var(--surface); border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.booth-btn:hover { background: var(--tint); }

/* ---------- Forms (apply / inquiry) ---------- */
.form-wrap { max-width: 720px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.form-note { background: var(--tint-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; font-size: .88rem; color: var(--body); margin-bottom: 20px; }
.form-note strong { color: var(--navy); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; margin-bottom: 6px; }
.field .req { color: var(--red); margin-left: 2px; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.field input[type=text], .field input[type=email], .field input[type=tel],
.field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: .95rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; background: #fff;
  transition: border-color .12s, box-shadow .12s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(38, 163, 221, .18);
}
.field input[type=file] { font-size: .88rem; color: var(--body); }
.field.check { display: flex; align-items: flex-start; gap: 10px; }
.field.check input { margin-top: 4px; }
.field.check label { margin: 0; font-weight: 400; color: var(--body); }

.btn {
  font-family: var(--ui); font-weight: 700; font-size: .95rem; cursor: pointer;
  border-radius: var(--r); padding: 12px 22px; border: 1px solid transparent; transition: filter .14s, transform .05s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); text-decoration: none; color: #fff; }
.btn-gold { background: var(--gold); color: var(--navy-800); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--tint); }
.btn:active { transform: scale(.99); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.form-success {
  background: #eaf7ef; border: 1px solid #b7e2c6; color: #15693a;
  border-radius: var(--r); padding: 16px 18px; margin-bottom: 18px; font-weight: 600;
}

/* ---------- Apply: status banner, circular, gated link ---------- */
.apply-status { border-radius: var(--r); padding: 13px 16px; margin-bottom: 18px; font-size: .93rem; line-height: 1.55; }
.apply-status strong { font-weight: 700; }
.apply-status.closed { background: #fdf2e3; border: 1px solid #f1cf93; color: #7a5212; }
.apply-status.open { background: #eaf7ef; border: 1px solid #b7e2c6; color: #15693a; }
.form-card { margin-bottom: 18px; }
.form-card > h3 { margin-bottom: 4px; }
.muted-note { color: var(--muted); font-size: .88rem; margin-bottom: 12px; }
.pdf-frame { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg); margin-bottom: 14px; }
.pdf-frame iframe { width: 100%; height: 620px; border: 0; display: block; }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.btn[disabled]:hover, .btn:disabled:hover { filter: none; transform: none; }
@media (max-width: 560px) { .pdf-frame iframe { height: 440px; } }

/* ---------- Home / hero landing ---------- */
.content.is-home { padding: 0; max-width: none; }
.hero {
  position: relative; min-height: calc(100vh - var(--topbar-h));
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: 48px clamp(32px, 6vw, 80px);
  background: #061634;
}
.hero-wrap {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(32px, 5vw, 72px); width: 100%; max-width: 1200px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(125deg, #051c4d 0%, #0a3370 24%, #1050a0 46%, #1a63bd 62%, #0a3a86 82%, #061634 100%);
  background-size: 200% 200%;
  animation: heroGradient 28s ease-in-out infinite, heroContrast 19s ease-in-out infinite;
}
@keyframes heroGradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes heroContrast { 0%, 100% { filter: saturate(1) brightness(.98) contrast(1); } 50% { filter: saturate(1.22) brightness(1.07) contrast(1.08); } }
.hero-art {
  position: relative; z-index: 2; flex: 0 0 auto;
  width: min(42%, 410px);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 20px; padding: 18px;
  box-shadow: 0 26px 62px rgba(0, 0, 0, .4);
  animation: heroFade 1s ease-out both, heroZoom 7s ease-in-out 1.2s infinite;
}
.hero-art img { width: 100%; display: block; }
.hero-glow { display: none; }
.hero-inner { position: relative; z-index: 3; flex: 0 1 560px; max-width: 560px; animation: heroUp .8s ease-out both; }
.hero-eyebrow { font-family: var(--ui); letter-spacing: .15em; text-transform: uppercase; font-size: .78rem; color: var(--gold); margin-bottom: 16px; }
.hero-title { font-family: var(--serif); color: #fff; font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin: 0 0 18px; }
.hero-tag { color: rgba(255, 255, 255, .9); font-size: 1.2rem; line-height: 1.5; max-width: 30ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-ghost { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroZoom { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes heroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-art, .hero-inner, .hero::before { animation: none; } }

/* ---------- Loading ---------- */
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- Responsive ---------- */
.scrim { display: none; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; width: 280px; height: 100vh; z-index: 60;
    transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(2, 12, 35, .45); z-index: 50; }
  .menu-toggle { display: inline-flex; }
  .directory { grid-template-columns: 1fr; }
  .dir-list { max-height: none; }
  .fw-top { grid-template-columns: 1fr; }
  .fw-domains { grid-template-columns: 1fr; }
  .fw-card.wide { grid-column: auto; }
  .fw-parts { grid-template-columns: 1fr; }
  .content { padding: 22px 18px 56px; }
  .content.is-home { padding: 0; }
  .search { display: none; }
  .hero { flex-direction: column; align-items: stretch; justify-content: center; padding: 36px 24px 44px; }
  .hero-wrap { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero-art { width: 240px; max-width: 72%; animation: none; }
  .hero-inner { flex: 0 1 auto; max-width: 100%; }
}

@media (max-width: 560px) {
  h1 { font-size: 1.7rem; }
  .detail-head { flex-direction: column; }
  .detail-row { grid-template-columns: 1fr; gap: 2px; }
  .news-card { grid-template-columns: 1fr; }
  .news-card .thumb { min-height: 320px; }
}
