:root {
  color-scheme: light;
  --background: #ffffff;
  --ink: #182d25;
  --forest: #245b45;
  --forest-hover: #194b37;
  --muted: #65736d;
  --line: #dfe5df;
  --surface: #f4f6f3;
  --surface-hover: #edf2ec;
  --focus: #347f60;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --page-width: 1240px;
  --gutter: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body, main, section, article, aside, nav, div { min-width: 0; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-hover); }
button, input, select, summary { font-family: var(--sans); }
button, input, select { font-size: 16px; line-height: 1.3; }
button, summary, select { cursor: pointer; }
button, input, select { min-width: 0; }
button { appearance: none; }
input, select { color: var(--ink); }
input::placeholder { color: var(--muted); opacity: 1; }
svg { display: block; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }
.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: fixed;
  top: 10px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--forest);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); color: white; }

/* The archive shares one quiet editorial shell across every screen. */
.topbar { padding-inline: var(--gutter); }
.topbar-inner {
  width: min(var(--page-width), 100%);
  height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.3px;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.nav-mobile { display: none; }
.topbar nav { display: flex; align-self: stretch; gap: 35px; }
.topbar nav a {
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  padding: 2px 4px 0;
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}
.topbar nav a:hover { color: var(--ink); }
.topbar nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--forest); }
.layout { width: min(var(--page-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.footer {
  width: min(var(--page-width), calc(100% - var(--gutter) * 2));
  margin: 48px auto 0;
  padding: 25px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer div { display: flex; flex-wrap: wrap; gap: 24px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.mobile-profile-nav { display: none; }
.profile-head.no-photo { grid-template-columns: minmax(0, 1fr); }
.profile-head.no-photo .profile-photo { width: auto; justify-self: start; }

/* Directory masthead and native search controls. */
.intro { padding-top: 28px; }
h1, h2, h3 { font-family: var(--serif); }
.intro h1 {
  margin: 0;
  font-size: clamp(44px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -2.1px;
  line-height: 1.12;
}
.intro p { margin: 5px 0 24px; color: var(--muted); font-family: var(--serif); font-size: 24px; line-height: 1.45; }
.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px;
  height: 54px;
  margin: 0;
}
.search-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #cfd9d1;
  border-right: 0;
  border-radius: 5px 0 0 5px;
  padding-inline: 17px;
  color: var(--muted);
  background: white;
}
.search-field:focus-within { box-shadow: inset 0 0 0 1px var(--forest); border-color: var(--forest); }
.search-field > svg { width: 22px; height: 22px; }
.search-field input {
  flex: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
}
.search-field input:focus-visible { outline: none; }
.search-shortcut {
  display: grid;
  place-items: center;
  width: 23px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #859087;
  font-size: 13px;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border: 1px solid var(--forest);
  border-radius: 4px;
  padding: 11px 20px;
  background: var(--forest);
  color: white;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.primary-button:hover { background: var(--forest-hover); border-color: var(--forest-hover); color: white; }
.primary-button:disabled { cursor: wait; }
.search-form > .primary-button { border-radius: 0 5px 5px 0; }
.profession-nav {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 38px;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.profession-nav > a, .more-professions > summary {
  display: flex;
  align-items: center;
  position: relative;
  margin: 0;
  padding: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.profession-nav > a::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
}
.profession-nav > a:hover { color: var(--forest); }
.profession-nav > a[aria-current="page"] { color: var(--forest); font-weight: 600; }
.profession-nav > a[aria-current="page"]::after { background: var(--forest); }
.more-professions { display: flex; position: relative; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.more-professions > summary { gap: 10px; height: 100%; }
.more-professions > summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.more-professions[open] > summary { color: var(--forest); }
.more-professions[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.profession-menu {
  position: absolute;
  top: calc(100% - 10px);
  left: -18px;
  z-index: 10;
  display: grid;
  min-width: 225px;
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px;
  background: white;
  box-shadow: 0 8px 22px rgb(24 45 37 / 10%);
}
.profession-menu a { border-radius: 3px; padding: 9px 12px; font-size: 15px; text-decoration: none; }
.profession-menu a:hover, .profession-menu a[aria-current="page"] { background: var(--surface); }

/* Open result rows retain a reading rhythm instead of card chrome. */
.content-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; }
.rail {
  padding: 26px 24px 30px;
  background: var(--surface);
  min-height: 654px;
}
.rail h2 { margin: 0 0 16px; font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.4px; }
.filter-disclosure { border-bottom: 1px solid #d6ded5; padding-bottom: 19px; }
.filter-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 3px 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
}
.filter-disclosure > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 4px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.filter-disclosure[open] > summary::before { transform: translateY(-2px) rotate(135deg); }
.filter-fields { display: grid; gap: 7px; padding-top: 18px; }
.filter-fields label { color: var(--muted); font-size: 13px; font-weight: 600; }
.filter-fields label:not(:first-child) { margin-top: 7px; }
.filter-fields input, .filter-fields select {
  width: 100%;
  height: 40px;
  border: 1px solid #cbd6cb;
  border-radius: 4px;
  padding: 8px 10px;
  background: white;
  font-size: 14px;
}
.filter-fields select { padding-right: 24px; }
.apply-filters { width: 100%; margin-top: 10px; font-size: 14px; }
.reset-filters { justify-self: center; padding: 5px 0 0; font-size: 13px; text-decoration: none; }
.reset-filters:hover { text-decoration: underline; }
.heritage-disclosure { margin-top: 19px; }
.heritage-disclosure > summary { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.3; }
.term-list { display: grid; margin-top: 16px; }
.term-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #d8e0d7;
  padding: 8px 0;
  font-size: 16px;
  line-height: 1.4;
  text-decoration: none;
}
.term-list a:last-child { border-bottom: 0; }
.term-list a:hover { color: var(--forest-hover); background: var(--surface-hover); }
.term-list a[aria-current] > span:first-child { font-weight: 600; text-decoration: underline; }
.term-count { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rail-note { border-top: 1px solid #d6ded5; margin: 22px 0 0; padding-top: 19px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.results { padding-top: 17px; }
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 2px; }
.results-toolbar h2 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.75px; line-height: 1.2; }
.results-toolbar p { margin: 3px 0 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.result-range { color: var(--muted); font-size: 13px; }
.sort-control { flex-shrink: 0; }
.sort-control select {
  min-width: 146px;
  width: 154px;
  height: 38px;
  border: 1px solid #d2dcd3;
  border-radius: 5px;
  padding: 7px 31px 7px 12px;
  background-color: white;
  font-size: 15px;
}
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 15px 0 10px; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; border: 1px solid #d6e0d6; border-radius: 4px; padding: 6px 9px; background: var(--surface); font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.filter-chip:hover { background: #e8eee6; }
.clear-all { margin-left: 4px; padding: 6px 0; font-size: 13px; }
.result-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) 30px; align-items: center; gap: 24px; min-height: 138px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.portrait-link { display: block; text-decoration: none; }
.portrait {
  position: relative;
  overflow: hidden;
  width: 88px;
  height: 110px;
  border-radius: 2px;
  background: #e9eee7;
}
.portrait img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.portrait-initials { position: absolute; inset: 0; display: grid; place-items: center; color: #68806d; font-family: var(--serif); font-size: 30px; }
.portrait.image-unavailable img, .portrait.image-error img { display: none; }
.result-info { align-self: center; }
.result-info h3 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.55px; line-height: 1.14; }
.result-info h3 a { color: var(--ink); text-decoration: none; }
.result-info h3 a:hover { color: var(--forest); text-decoration: underline; }
.result-info p { margin: 3px 0 0; font-size: 16px; line-height: 1.45; }
.profession { color: #35443c; }
.heritage-summary { color: var(--muted); overflow-wrap: anywhere; }
.birthplace { display: flex; align-items: baseline; gap: 8px; color: var(--muted); }
.birthplace svg { align-self: flex-start; margin-top: 3px; }
.birthplace span { min-width: 0; overflow-wrap: anywhere; }
.snippet { color: var(--muted); }
mark { border-radius: 2px; padding: 0 2px; background: #e4eddc; color: var(--ink); }
.row-arrow { display: grid; place-items: center; width: 30px; min-height: 44px; color: var(--muted); text-decoration: none; }
.row-arrow:hover { color: var(--forest); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; min-height: 78px; padding: 15px 0; font-size: 14px; }
.pager > span { color: var(--muted); text-align: center; }
.pager a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.pager a:last-child { justify-self: start; }
.pager a:first-child { justify-self: end; }
.pager a:hover { text-decoration: underline; }
.empty { padding: 62px 20px 66px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%; background: var(--surface); color: var(--forest); }
.empty h1, .empty h3 { margin: 0; font-size: 34px; line-height: 1.2; letter-spacing: -.75px; }
.empty p { margin: 13px 0 24px; color: var(--muted); }
.empty .primary-button { margin: 0 auto; }
.empty .search-example { margin-top: 24px; font-size: 14px; }

/* Profile reading view: facts, contextual heritage, and original sources. */
.profile-layout { padding-top: 31px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.profile-head { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 54px; align-items: start; margin-top: 23px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.profile-head h1 { margin: 0; font-size: clamp(42px, 4.3vw, 60px); font-weight: 700; letter-spacing: -1.9px; line-height: 1.12; overflow-wrap: anywhere; }
.profile-profession { margin: 6px 0 0; color: var(--muted); font-size: 20px; line-height: 1.45; }
.profile-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 31px 0 25px; }
.profile-facts > div { padding: 0 23px; border-left: 1px solid var(--line); }
.profile-facts > div:first-child { border-left: 0; padding-left: 0; }
.profile-facts > div:nth-child(4) { border-left: 0; padding: 19px 0 0; }
.profile-facts dt { margin: 0 0 6px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .045em; line-height: 1.3; text-transform: uppercase; }
.profile-facts dd { margin: 0; color: #4d5e54; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.heritage-panel { padding: 20px 24px 22px; border-radius: 2px; background: var(--surface); }
.heritage-panel h2 { margin: 0 0 13px; font-size: 32px; font-weight: 700; letter-spacing: -.7px; line-height: 1.2; }
.heritage-panel > p { margin: 0; color: #4d5e54; font-size: 16px; line-height: 1.6; }
.heritage-line { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 21px; padding: 11px 0 13px; }
.heritage-line + .heritage-line { border-top: 1px solid #d3ddd2; padding-bottom: 0; }
.heritage-line h3 { margin: 3px 0 0; color: var(--muted); font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .045em; line-height: 1.3; text-transform: uppercase; }
.heritage-line p { margin: 0; color: #4d5e54; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.profile-photo { margin: 0; }
.profile-photo .portrait-large { width: 100%; height: auto; aspect-ratio: 4 / 5; }
.profile-photo .portrait-initials { font-size: 72px; }
.profile-photo figcaption { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.source-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 7px; font-size: 15px; line-height: 1.5; text-decoration: none; }
.source-link:hover { text-decoration: underline; }
.profile-columns { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 54px; padding-top: 27px; }
.profile-body { color: #4d5e54; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.profile-body > h2, .profile-body section > h2 { margin: 0 0 12px; color: var(--ink); font-size: 32px; font-weight: 700; letter-spacing: -.7px; line-height: 1.25; }
.profile-body p { margin: 0 0 18px; }
.profile-body h2 { margin-top: 30px; }
.profile-body h3 { margin: 27px 0 10px; color: var(--ink); font-size: 24px; line-height: 1.3; }
.profile-body strong { color: #34483d; font-weight: 600; }
.profile-body blockquote { margin: 24px 0; border-left: 3px solid #8aaa91; padding: 6px 0 6px 24px; color: #50655a; font-family: var(--serif); font-size: 21px; font-style: italic; line-height: 1.65; }
.profile-body blockquote p:last-child { margin-bottom: 0; }
.profile-body ul, .profile-body ol { padding-left: 24px; margin: 0 0 22px; }
.profile-body li { margin-bottom: 8px; }
.profile-body a { text-decoration-color: #a9bcae; }
.profile-body a:hover { text-decoration-color: var(--forest); }
.biography-sources { margin-top: 25px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 15px; line-height: 1.7; }
.biography-sources p { margin-bottom: 13px; }
.profile-side { align-self: start; margin-left: -26px; border-left: 1px solid var(--line); padding-left: 26px; }
.profile-side h2 { margin: 0 0 15px; font-size: 23px; font-weight: 700; letter-spacing: -.5px; line-height: 1.3; }
.profile-side nav { display: grid; gap: 8px; }
.profile-side nav h2 { margin-bottom: 4px; }
.profile-side nav a { justify-self: start; font-size: 15px; text-decoration: none; }
.profile-side nav a:hover { text-decoration: underline; }
.profile-side > section { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips a { border: 1px solid #d5dfd6; border-radius: 5px; padding: 7px 12px; background: white; font-size: 13px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.chips a:hover { background: var(--surface); border-color: #b9ccbe; }
.profile-side .rail-note { border-color: var(--line); font-size: 13px; line-height: 1.6; }
.profile-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.profile-gallery figure { margin: 0; }
.profile-gallery .portrait-large { width: 100%; height: auto; aspect-ratio: 4 / 5; }
.profile-gallery figcaption { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* About uses the same readable, unframed article language. */
.about-layout { max-width: 820px; padding-top: 31px; }
.about-layout h1 { margin: 25px 0 10px; font-size: clamp(40px, 4.1vw, 56px); font-weight: 700; letter-spacing: -1.7px; line-height: 1.15; }
.about-lead { margin: 0 0 33px; color: var(--muted); font-size: 20px; line-height: 1.5; }
.about-layout section { margin-top: 30px; }
.about-layout h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.6px; line-height: 1.3; }
.about-layout section p { margin: 0 0 18px; color: #4d5e54; font-size: 17px; line-height: 1.75; }
.about-layout .chips { margin-top: 16px; }

@media (max-width: 1000px) {
  :root { --gutter: 24px; }
  .content-grid { grid-template-columns: 226px minmax(0, 1fr); gap: 27px; }
  .rail { padding-inline: 20px; }
  .result-row { gap: 18px; }
  .result-range { display: none; }
  .profile-head, .profile-columns { grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; }
  .profile-facts > div { padding-inline: 15px; }
  .profile-side { margin-left: -17px; padding-left: 17px; }
  .heritage-line { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .topbar-inner { height: 68px; gap: 20px; }
  .brand { font-size: 28px; letter-spacing: -1.1px; }
  .topbar nav { gap: 19px; }
  .topbar nav a { font-size: 14px; padding-inline: 0; }
  .intro { padding-top: 25px; }
  .intro h1 { font-size: 44px; letter-spacing: -1.6px; line-height: 1.12; }
  .intro p { max-width: 540px; margin-top: 9px; margin-bottom: 22px; font-size: 17px; line-height: 1.5; }
  .search-form { grid-template-columns: minmax(0, 1fr) 104px; }
  .search-field { gap: 10px; padding-inline: 13px; }
  .search-shortcut { display: none; }
  .profession-nav { gap: 29px; min-height: 70px; }
  .profession-nav > a, .more-professions > summary { font-size: 15px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rail { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; min-height: 0; margin-top: 18px; padding: 17px 20px; }
  .rail h2 { grid-column: 1 / -1; margin-bottom: 12px; font-size: 19px; }
  .filter-disclosure { border-bottom: 0; padding-bottom: 0; }
  .filter-disclosure > summary, .heritage-disclosure > summary { font-family: var(--sans); font-size: 14px; font-weight: 600; }
  .filter-disclosure > summary { gap: 10px; padding-block: 3px; }
  .heritage-disclosure { margin-top: 0; }
  .heritage-disclosure > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 3px; }
  .heritage-disclosure > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  .heritage-disclosure[open] > summary::after { transform: translateY(2px) rotate(225deg); }
  .rail:has(.filter-disclosure[open]) { grid-template-columns: minmax(0, 1fr); }
  .rail:has(.filter-disclosure[open]) .heritage-disclosure { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 15px; }
  .filter-fields { grid-template-columns: minmax(0, 1fr); max-width: 100%; }
  .term-list { margin-top: 12px; }
  .term-list a { font-size: 14px; }
  .rail-note { display: none; }
  .results { padding-top: 24px; }
  .results-toolbar { gap: 15px; }
  .results-toolbar h2 { font-size: 29px; }
  .results-toolbar p { font-size: 14px; }
  .sort-control select { min-width: 135px; font-size: 14px; }
  .result-row { grid-template-columns: 78px minmax(0, 1fr) 24px; gap: 16px; min-height: 130px; padding-block: 15px; }
  .portrait { width: 78px; height: 100px; }
  .result-info h3 { font-size: 24px; }
  .result-info p { font-size: 14px; }
  .row-arrow { width: 24px; }
  .empty { padding-inline: 0; }
  .footer { flex-direction: column; gap: 12px; margin-top: 30px; font-size: 12px; }
  .footer div { gap: 21px; }
  .profile-layout { padding-top: 25px; }
  .profile-head { grid-template-columns: minmax(0, 1fr) 180px; gap: 25px; margin-top: 22px; }
  .profile-head h1 { font-size: 44px; }
  .profile-profession { font-size: 17px; }
  .profile-facts { grid-template-columns: minmax(0, 1fr); gap: 15px; margin: 24px 0; }
  .profile-facts > div, .profile-facts > div:first-child, .profile-facts > div:nth-child(4) { border: 0; padding: 0; }
  .profile-facts dt { margin-bottom: 3px; }
  .profile-facts dd { font-size: 15px; }
  .heritage-panel { padding: 18px 20px; }
  .heritage-panel h2 { font-size: 28px; }
  .heritage-line { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-top: 10px; }
  .heritage-line h3 { margin-top: 0; }
  .heritage-line p { font-size: 15px; }
  .profile-columns { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .profile-body { font-size: 16px; }
  .profile-body > h2, .profile-body section > h2 { font-size: 29px; }
  .profile-side { margin-left: 0; border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .profile-side nav { display: none; }
  .mobile-profile-nav { display: flex; flex-wrap: wrap; gap: 22px; margin: 20px 0 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .mobile-profile-nav a { text-decoration: none; }
  .mobile-profile-nav a:hover { text-decoration: underline; }
  .profile-side nav h2 { flex-basis: 100%; }
  .profile-side .rail-note { display: block; }
  .about-layout h1 { font-size: 44px; }
}

@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .topbar-inner { height: 65px; gap: 14px; }
  .brand { font-size: 25px; letter-spacing: -.9px; }
  .topbar nav { gap: 16px; }
  .topbar nav a { font-size: 14px; }
  .nav-desktop { display: none; }
  .nav-mobile { display: inline; }
  .intro { padding-top: 25px; }
  .intro h1 { max-width: 340px; font-size: 44px; letter-spacing: -1.5px; line-height: 1.07; }
  .intro p { font-size: 16px; line-height: 1.55; margin: 10px 0 19px; }
  .search-form { grid-template-columns: minmax(0, 1fr) 80px; height: 50px; }
  .search-field { gap: 9px; padding-inline: 11px; }
  .search-field > svg { width: 19px; height: 19px; }
  .search-field input { font-size: 14px; }
  .search-form > .primary-button { padding-inline: 9px; font-size: 14px; }
  .profession-nav { gap: 25px; min-height: 65px; margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); overflow-x: auto; overflow-y: visible; scrollbar-width: none; }
  .profession-nav::-webkit-scrollbar { display: none; }
  .profession-nav > a, .more-professions > summary { font-size: 14px; }
  .profession-nav > a::after { bottom: 12px; }
  .more-professions { display: none; }
  .profession-nav:has(.more-professions[open]) { overflow: visible; }
  .profession-menu { top: calc(100% - 5px); left: auto; right: var(--gutter); min-width: 220px; max-width: calc(100vw - 36px); }
  .rail { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 0; padding: 5px 15px; }
  .rail h2 { display: none; }
  .filter-disclosure { padding: 10px 0 13px; border-bottom: 1px solid #d6ded5; }
  .filter-disclosure > summary, .heritage-disclosure > summary { font-size: 15px; padding: 0; }
  .filter-disclosure > summary { gap: 15px; }
  .filter-disclosure > summary::before { width: 8px; height: 8px; border-top: 0; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  .filter-disclosure[open] > summary::before { transform: translateY(2px) rotate(225deg); }
  .heritage-disclosure { margin-top: 0; padding: 13px 0 10px; }
  .heritage-disclosure > summary { justify-content: flex-start; gap: 15px; }
  .heritage-disclosure > summary::after { display: none; }
  .heritage-disclosure > summary::before { content: ""; width: 8px; height: 8px; margin-left: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
  .heritage-disclosure[open] > summary::before { transform: translateY(2px) rotate(225deg); }
  .rail:has(.filter-disclosure[open]) .heritage-disclosure { margin-top: 0; padding-top: 13px; border-top: 0; }
  .results { padding-top: 22px; }
  .results-toolbar { align-items: start; gap: 10px; }
  .results-toolbar h2 { font-size: 27px; }
  .results-toolbar p { margin-top: 4px; font-size: 13px; }
  .sort-control { padding-top: 2px; }
  .sort-control select { min-width: 122px; max-width: 137px; height: 35px; padding-left: 9px; padding-right: 24px; font-size: 13px; }
  .active-filters { padding-top: 13px; }
  .filter-chip { font-size: 12px; padding: 5px 7px; }
  .result-row { grid-template-columns: 84px minmax(0, 1fr) 18px; gap: 13px; min-height: 127px; padding-block: 14px; }
  .portrait { width: 84px; height: 84px; }
  .portrait-initials { font-size: 24px; }
  .result-info h3 { font-size: 23px; line-height: 1.15; letter-spacing: -.4px; }
  .result-info p { margin-top: 3px; font-size: 14px; line-height: 1.45; }
  .heritage-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .birthplace { gap: 5px; }
  .birthplace svg { width: 13px; height: 13px; }
  .row-arrow { width: 18px; }
  .row-arrow svg { width: 17px; height: 17px; }
  .pager { gap: 14px; min-height: 71px; font-size: 13px; }
  .pager a { gap: 4px; }
  .empty { padding-block: 45px; }
  .empty h1, .empty h3 { font-size: 30px; }
  .empty p { font-size: 15px; }
  .profile-layout { padding-top: 22px; }
  .back-link { font-size: 14px; }
  .profile-head { display: flex; flex-direction: column; gap: 24px; padding-bottom: 24px; }
  .profile-head > div { width: 100%; }
  .profile-head h1 { font-size: 43px; letter-spacing: -1.5px; }
  .profile-profession { margin-top: 5px; font-size: 17px; }
  .profile-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 22px; margin: 25px 0 23px; }
  .profile-facts > div:nth-child(3) { grid-column: 1 / -1; }
  .profile-facts dt { font-size: 10px; }
  .profile-facts dd { font-size: 15px; }
  .heritage-panel { padding: 18px; }
  .heritage-panel h2 { margin-bottom: 11px; font-size: 28px; }
  .heritage-line { gap: 5px; padding-bottom: 14px; }
  .heritage-line + .heritage-line { padding-top: 14px; }
  .heritage-line p { font-size: 15px; line-height: 1.6; }
  .profile-photo { width: min(240px, 100%); align-self: center; }
  .profile-photo .portrait-large { aspect-ratio: 4 / 5; }
  .profile-photo figcaption { font-size: 12px; }
  .source-link { font-size: 14px; }
  .profile-columns { padding-top: 23px; }
  .profile-body { font-size: 16px; line-height: 1.75; }
  .profile-body > h2, .profile-body section > h2 { font-size: 29px; }
  .profile-body p { margin-bottom: 17px; }
  .profile-body blockquote { padding-left: 18px; font-size: 19px; }
  .profile-side h2 { font-size: 22px; }
  .profile-gallery { gap: 15px; }
  .profile-gallery figcaption { font-size: 12px; }
  .about-layout { padding-top: 24px; }
  .about-layout h1 { margin-top: 22px; font-size: 39px; letter-spacing: -1.3px; }
  .about-lead { font-size: 18px; margin-bottom: 27px; }
  .about-layout h2 { font-size: 26px; }
  .about-layout section p { font-size: 16px; }
}

@media (max-width: 360px) {
  .results-toolbar h2 { font-size: 25px; }
  .sort-control select { min-width: 112px; width: 112px; max-width: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
