/* Mass Almanac — design system
   Paper, navy rules, gold ornament, Garamond throughout. */

:root {
  --paper: #f4f1ea;
  --paper-2: #ece8df;
  --ink: #1b1b1b;
  --ink-2: #4a4a48;
  --navy: #1e3f8b;
  --navy-2: #163070;
  --gold: #b48a4c;
  --gold-2: #d9c39c;
  --rule: #cfc8ba;
  --rule-2: #e2ddd2;
  --serif: "EB Garamond", Garamond, "Times New Roman", serif;
  --display: "Cormorant Garamond", "EB Garamond", Garamond, serif;
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  font-feature-settings: "liga", "kern";
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 8px; }

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 40px) 12px;
  border-top: 4px double var(--navy);
}

/* ---------- small caps utility ---------- */
.sc, .caps { font-variant: small-caps; letter-spacing: .06em; }
.caps-wide { text-transform: uppercase; letter-spacing: .14em; font-size: .78em; font-weight: 500; }

/* ---------- masthead ---------- */
.masthead { padding: 14px 0 10px; border-bottom: 4px double var(--navy); }
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.brand-logo img { height: 74px; width: auto; display: block; }
.brand-title { text-align: center; padding: 0 12px; }
.brand-name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(42px, 6.2vw, 92px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: .005em;
  display: inline-block;
}
.brand-name:hover { text-decoration: none; }
.brand-tag {
  margin: 8px 0 0;
  font-style: italic;
  color: var(--navy);
  font-size: clamp(16px, 1.7vw, 24px);
  letter-spacing: .01em;
}
.brand-art { justify-self: end; }
.brand-art img { height: 112px; width: auto; display: block; }

/* ---------- top nav ---------- */
.topnav {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 6px 26px;
  padding: 14px 0 10px;
}
.topnav a {
  text-transform: uppercase; letter-spacing: .16em; font-weight: 500; font-size: 15.5px;
  color: var(--ink);
}
.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* ---------- search ---------- */
.search {
  position: relative;
  max-width: 900px;
  margin: 10px auto 18px;
  border: 3px double var(--navy);
  background: #fbfaf7;
  display: flex; align-items: center;
}
.search-btn { background: none; border: 0; padding: 12px 10px 12px 18px; color: var(--gold); cursor: pointer; display: flex; }
.search-btn .ico { width: 28px; height: 28px; }
.search input {
  flex: 1; border: 0; background: transparent; font: inherit; font-style: italic;
  font-size: 21px; padding: 12px 12px 12px 4px; color: var(--ink); min-width: 0;
}
.search input::placeholder { color: #8d8a83; opacity: 1; }
.search input:focus { outline: none; }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 4px 8px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; font-size: 17px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .5em; }
.crumbs li { font-style: italic; color: var(--navy); }
.crumbs li + li::before { content: "/"; color: var(--ink-2); margin-right: .5em; font-style: normal; }
.crumbs li span { color: var(--ink); font-style: italic; }
.crumbs li span[aria-current] { color: var(--navy); }
.crumbs .aside { font-style: italic; color: var(--ink-2); white-space: nowrap; }

/* ---------- section heads with ornament ---------- */
.h-orn {
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: .05em;
  font-weight: 500;
  color: var(--navy);
  text-align: center;
  font-size: 30px;
  line-height: 1.1;
  margin: 0 0 12px;
}
.h-orn::after {
  content: "";
  display: block;
  width: 120px; height: 9px;
  margin: 8px auto 0;
  background:
    radial-gradient(circle at center, var(--gold) 0 2.2px, transparent 2.6px) center / 9px 9px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 100% 1px no-repeat;
}
.h-orn.left { text-align: left; }
.h-orn.left::after { margin-left: 0; }
.h-orn.sm { font-size: 24px; }
.h-orn.sm::after { width: 90px; }

.h-plain { font-variant: small-caps; letter-spacing: .05em; font-weight: 500; color: var(--navy); font-size: 26px; margin: 0 0 8px; line-height: 1.1; }
.h-page { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 6px 0 4px; color: var(--ink); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; font-weight: 600; color: var(--gold); margin: 0 0 4px; }
.subhead-gold { text-transform: uppercase; letter-spacing: .14em; font-size: 14px; font-weight: 600; color: var(--gold); margin: 14px 0 2px; }
.lede { font-size: 19px; color: var(--ink-2); margin: 0 0 14px; }

/* ---------- link lists (home + list pages) ---------- */
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist > li { border-bottom: 1px solid var(--rule); }
.linklist > li:last-child { border-bottom: 0; }
.linklist a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 4px 9px 0;
  color: var(--ink);
}
.linklist a:hover { text-decoration: none; color: var(--navy); }
.linklist .caps-link { text-transform: uppercase; letter-spacing: .13em; font-size: 15px; font-weight: 500; }
.linklist .ico.chev { width: 16px; height: 16px; color: var(--navy); flex: none; }
.linklist .note { color: var(--ink-2); font-style: italic; margin-left: auto; font-size: 16px; text-align: right; }

/* ---------- home ---------- */
.home-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 4px;
}
.home-section { padding: 6px 28px 18px; border-left: 1px solid var(--rule); }
.home-section:first-child { border-left: 0; padding-left: 8px; }
.home-section:last-child { padding-right: 8px; }
.home-section .sec-icon { display: block; width: 52px; height: 52px; margin: 6px auto 8px; color: var(--gold); }
.home-section .h-orn { font-size: 29px; }
.home-section .subhead-gold:first-of-type { margin-top: 6px; }
.home-section .divider-orn { margin: 10px 0 2px; }

.divider-orn {
  height: 9px; margin: 12px 0;
  background:
    radial-gradient(circle at center, var(--gold) 0 2.2px, transparent 2.6px) center / 9px 9px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) center / 100% 1px no-repeat;
}

.home-bottom {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  border-top: 1px solid var(--rule);
  margin-top: 4px;
}
.home-bottom > section { padding: 14px 26px 16px; border-left: 1px dashed var(--rule); }
.home-bottom > section:first-child { border-left: 0; padding-left: 8px; }
.home-bottom > section:last-child { padding-right: 8px; }
.home-bottom .h-plain { font-size: 22px; letter-spacing: .06em; }
.home-bottom .linklist a { padding: 7px 4px 7px 0; font-size: 18px; }
.home-bottom .linklist .ico.chev { width: 14px; height: 14px; }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; font-weight: 600; color: var(--navy); }
.more-link .ico { width: 12px; height: 12px; }

/* Gov. Council link in the Latest Vacancies box; sub-page prose */
.gc-link { margin-top: 6px; }
.list-related { margin: -6px 0 16px; }
.list-related .more-link { margin-top: 0; margin-right: 22px; }
.prose.gc-prose img { float: none; max-width: 220px; margin: 0 0 12px; }
.prose.gc-prose p { margin: 0 0 .25em; }
.prose.gc-prose p:has(strong) { margin-top: 1.1em; }
.gc-prose strong u { text-decoration: none; text-transform: uppercase; letter-spacing: .13em; font-size: 13.5px; color: var(--gold); }
.prose.gc-prose p:empty, .prose.gc-prose p:has(> br:only-child) { display: none; }

/* third row: four content buckets */
.home-buckets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: 4px;
}
.home-buckets > section { padding: 14px 26px 16px; border-left: 1px dashed var(--rule); min-width: 0; }
.home-buckets > section:first-child { border-left: 0; padding-left: 8px; }
.home-buckets > section:last-child { padding-right: 8px; }
.home-buckets .h-plain { font-size: 22px; letter-spacing: .06em; }
.home-buckets p { margin: 0 0 10px; font-size: 17px; line-height: 1.35; }
.home-buckets p:last-child { margin-bottom: 0; }
.home-buckets .more-link { margin-top: 10px; }
.home-buckets .linklist a { padding: 7px 4px 7px 0; font-size: 17px; line-height: 1.2; }
.home-buckets .linklist .ico.chev { width: 14px; height: 14px; }
/* story-style buckets (Leadership, Features) — same look as the Almanac Features lead, stacked one column wide */
.bucket-story .bimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; display: block; background: var(--paper-2); border: 1px solid var(--rule); margin: 2px 0 10px; }
.bucket-story h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; line-height: 1.15; margin: 0 0 8px; }
.bucket-story h3 a { color: var(--ink); }
.bucket-story .more-inline { color: var(--navy); white-space: nowrap; }
.bucket-story .more-inline .ico { width: 12px; height: 12px; vertical-align: -1px; }
.bucket-story .byline { font-style: italic; color: var(--ink-2); font-size: 15px; margin: 0 0 8px; }
.bucket-story .story-links { font-size: 16px; }
.bucket-story .story-links .sep { color: var(--gold); }
/* news list */
.newslist { list-style: none; margin: 0; padding: 0; }
.newslist > li { padding: 8px 0; border-bottom: 1px solid var(--rule-2); font-size: 17px; line-height: 1.3; }
.newslist > li:last-child { border-bottom: 0; }
.newslist .ndate { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.newslist .nsrc { font-weight: 600; }
.newslist a { color: var(--ink); }
.newslist a:hover { color: var(--navy); }

.feature-lead { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: start; }
.feature-lead .fimg { width: 150px; height: 170px; object-fit: cover; object-position: top; display: block; background: var(--paper-2); border: 1px solid var(--rule); }
.feature-lead h3 { font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.15; margin: 0 0 8px; }
.feature-lead h3 a { color: var(--ink); }
.feature-lead p { margin: 0; font-size: 17px; line-height: 1.35; }
.feature-lead .more-inline { color: var(--navy); white-space: nowrap; }
.feature-lead .more-inline .ico { width: 12px; height: 12px; vertical-align: -1px; }
.feature-list .linklist a { font-size: 19px; line-height: 1.2; padding: 11px 4px 11px 0; }
.feature-list .linklist > li { border-bottom: 1px solid var(--rule-2); position: relative; }

/* ---------- list pages ---------- */
.list-cols { columns: 2; column-gap: 48px; column-rule: 1px solid var(--rule); }
.list-cols.c3 { columns: 3; }
.list-cols .group { break-inside: avoid; margin-bottom: 20px; }
.list-cols .linklist a { padding: 7px 0; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 2px solid var(--navy); margin-bottom: 4px; }
.group-head .h-plain { font-size: 22px; margin: 0; }
.group-head .all { font-size: 15px; font-style: italic; white-space: nowrap; }
.list-cols .linklist a .ico.chev { width: 13px; height: 13px; }

/* ---------- photo arrays (people list pages) ---------- */
.photo-group { margin-bottom: 26px; }
.photo-group .group-head { margin-bottom: 14px; }
.photo-grid { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 26px 14px; }
.pcard { text-align: center; }
.pcard a { display: block; color: var(--ink); }
.pcard a:hover { text-decoration: none; color: var(--navy); }
.pcard .frame {
  display: block; width: 120px; height: 150px; margin: 4px auto 10px;
  border-radius: 50% / 50%; overflow: hidden;
  border: 2px solid var(--navy);
  box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold);
  background: var(--paper-2);
}
.pcard .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.pcard .frame.empty { display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-style: italic; font-size: 15px; }
.pcard a:hover .frame { border-color: var(--gold); }
.pcard .pname { display: block; font-weight: 500; font-size: 18px; line-height: 1.2; }
.pcard .pnote { display: block; color: var(--ink-2); font-style: italic; font-size: 15px; line-height: 1.2; margin-top: 3px; }
.pcard .pparty { display: block; margin-top: 4px; font-variant: small-caps; letter-spacing: .06em; font-weight: 600; font-size: 15px; line-height: 1.2; color: var(--navy); }
.pcard .pdistrict { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.2; color: var(--ink-2); }
.photo-grid > li.note { color: var(--ink-2); font-style: italic; }

/* ---------- profile pages ---------- */
.profile-top {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0 30px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
}
.portrait { position: relative; padding-top: 6px; }
.portrait .frame {
  width: 200px; height: 250px; margin: 0 auto;
  border-radius: 50% / 50%;
  overflow: hidden;
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--gold);
  background: var(--paper-2);
}
.portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.portrait .frame.empty { display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-style: italic; }
.profile-id { min-width: 0; }
.profile-id .h-page { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 4px 0 10px; }
.chips span { font-variant: small-caps; letter-spacing: .07em; font-weight: 600; color: var(--navy); font-size: 19px; }
.chips .dot { width: 5px; height: 5px; }

.factrows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.factrows > li { display: grid; grid-template-columns: 26px 150px 1fr; gap: 0 10px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--rule-2); }
.factrows > li.noicon { grid-template-columns: 150px 1fr; }
.factrows .ico { width: 18px; height: 18px; color: var(--gold); align-self: center; }
.factrows .lbl { text-transform: uppercase; letter-spacing: .13em; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.factrows .val { font-size: 18px; word-break: break-word; }
.factrows .val ul { margin: 0; padding-left: 1.1em; }
.factrows.wide > li { grid-template-columns: 200px 1fr; }

.profile-side { min-width: 0; border-left: 1px solid var(--rule); padding-left: 30px; }
.profile-side .h-orn { font-size: 26px; margin-top: 4px; }
.profile-side .h-orn::after { width: 100px; }

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 0 30px;
}
.profile-grid > section { padding: 12px 0 16px; border-left: 1px solid var(--rule); padding-left: 30px; min-width: 0; }
.profile-grid > section:first-child { border-left: 0; padding-left: 0; }
.profile-grid .h-orn { font-size: 26px; }
.profile-grid .h-orn::after { width: 100px; }
.profile-band { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0 30px; border-top: 1px solid var(--rule); }
.profile-band > section { padding: 12px 0 14px; min-width: 0; }
.profile-band > section + section { border-left: 1px solid var(--rule); padding-left: 30px; }

.tbl { width: 100%; border-collapse: collapse; font-size: 18px; }
.tbl th { text-align: left; text-transform: uppercase; letter-spacing: .13em; font-size: 12.5px; font-weight: 600; padding: 4px 8px 6px 0; border-bottom: 1px solid var(--rule); }
.tbl td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { white-space: nowrap; }
.tbl a { color: var(--ink); }
.tbl a:hover { color: var(--navy); }
.tbl.hover tbody tr:hover { background: rgba(30,63,139,.05); }
.tbl .right { text-align: right; }

.bullets { margin: 4px 0 0; padding-left: 1.15em; }
.bullets > li { margin: 3px 0; padding-left: 4px; }
.bullets > li::marker { color: var(--gold); }
.plainlist { list-style: none; padding: 0; margin: 0; }
.plainlist > li { padding: 3px 0; }
.plainlist .role { color: var(--ink-2); font-style: italic; }

.related { list-style: none; margin: 0; padding: 0; }
.related > li { display: grid; grid-template-columns: 30px 200px 1fr; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--rule-2); }
.related .ico { width: 24px; height: 24px; color: var(--gold); }
.related a { font-style: italic; font-size: 18px; }
.related .desc { color: var(--ink-2); font-size: 16px; }
.related > li.muted a { color: var(--ink-2); pointer-events: none; }
.related > li.muted .desc::after { content: " (coming soon)"; font-style: italic; }

.note-box { border: 1px solid var(--rule); background: #faf8f3; padding: 12px 16px; font-size: 16px; color: var(--ink-2); margin: 16px 0 0; }

/* ---------- people tables ---------- */
.people-facts { display: flex; flex-wrap: wrap; gap: 6px 30px; margin: 0 0 12px; color: var(--ink-2); font-size: 17px; }
.people-facts b { text-transform: uppercase; letter-spacing: .12em; font-size: 12.5px; color: var(--ink); margin-right: 6px; }

/* ---------- article / prose (Quill content) ---------- */
.prose { max-width: 820px; font-size: 19px; line-height: 1.5; }
.prose img { float: left; margin: 4px 16px 6px 0; max-width: 140px; border: 1px solid var(--rule); }
.prose h1, .prose h2, .prose h3 { font-family: var(--serif); font-variant: small-caps; letter-spacing: .05em; color: var(--navy); font-weight: 500; clear: both; }
.prose h2 { font-size: 28px; }
.prose p { margin: 0 0 1em; }
.prose u { text-decoration: none; }
.prose::after { content: ""; display: block; clear: both; }
.article + .article { border-top: 1px solid var(--rule); margin-top: 22px; padding-top: 18px; }
.article h2 { font-family: var(--serif); font-weight: 500; font-size: 27px; margin: 0 0 4px; line-height: 1.15; }
.article h2 a { color: var(--ink); }
.article .when { font-style: italic; color: var(--ink-2); font-size: 16px; margin: 0 0 8px; }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.two-col > aside { border-left: 1px solid var(--rule); padding-left: 30px; }

/* ---------- forms ---------- */
.formrow { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin: 8px 0 12px; }
.formrow label { display: block; text-transform: uppercase; letter-spacing: .13em; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; }
.formrow select, .formrow input { width: 100%; font: inherit; font-size: 17px; padding: 8px 10px; border: 1px solid var(--rule); background: #fbfaf7; color: var(--ink); }
.btn { font: inherit; text-transform: uppercase; letter-spacing: .14em; font-size: 13.5px; font-weight: 600; background: var(--navy); color: #fff; border: 0; padding: 11px 18px; cursor: pointer; }
.btn:hover { background: var(--navy-2); }
.btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.result-box { border: 1px solid var(--rule); background: #faf8f3; padding: 14px 18px; margin-top: 14px; }

/* pager */
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 18px 0 4px; font-size: 16px; }
.pager a { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; }
.pager .disabled { color: var(--rule); pointer-events: none; }

/* ---------- footer ---------- */
.footer { border-top: 4px double var(--navy); margin-top: 22px; padding-bottom: 4px; }
.colophon { text-align: center; color: var(--ink-2); font-size: 14px; font-style: italic; margin: 12px 0 0; }

/* ---------- error ---------- */
.error-box { max-width: 720px; margin: 20px auto; text-align: center; }
.error-box pre { text-align: left; font-size: 13px; color: var(--ink-2); background: var(--paper-2); padding: 10px; overflow-x: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .profile-top { grid-template-columns: 220px minmax(0, 1fr); }
  .profile-side { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 12px; }
  .profile-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid > section:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .home-bottom { grid-template-columns: 1fr 1fr; }
  .home-bottom > section:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px dashed var(--rule); padding-left: 8px; }
  .home-buckets { grid-template-columns: 1fr 1fr; }
  .home-buckets > section:nth-child(3) { border-left: 0; padding-left: 8px; }
  .home-buckets > section:nth-child(n+3) { border-top: 1px dashed var(--rule); }
  .list-cols.c3 { columns: 2; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  .page { padding: 0 14px 10px; }
  .masthead-inner { grid-template-columns: 0.8fr 2.4fr 0.8fr; gap: 6px; }
  .brand-logo img { height: 44px; }
  .brand-art img { height: 54px; }
  .brand-name { font-size: clamp(30px, 9.6vw, 46px); white-space: nowrap; }
  .brand-tag { font-size: 15px; margin-top: 4px; line-height: 1.15; }
  .topnav { gap: 4px 16px; padding: 10px 0 6px; }
  .topnav a { font-size: 13px; letter-spacing: .12em; }
  .search { margin: 8px 0 14px; }
  .search input { font-size: 18px; padding: 10px 8px 10px 2px; }
  .search-btn { padding: 10px 6px 10px 12px; }
  .search-btn .ico { width: 24px; height: 24px; }
  .crumbs { font-size: 15px; }

  .home-sections { grid-template-columns: 1fr; }
  .home-section { display: grid; grid-template-columns: 64px 1fr; gap: 0 12px; padding: 16px 0 14px; border-left: 0; border-bottom: 1px solid var(--rule); }
  .home-section:first-child { padding-left: 0; }
  .home-section .sec-icon { grid-row: 1 / span 2; width: 46px; height: 46px; margin: 0 auto; }
  .home-section .h-orn { text-align: left; font-size: 26px; grid-column: 2; }
  .home-section .h-orn::after { margin-left: 0; }
  .home-section > *:not(.sec-icon):not(.h-orn) { grid-column: 2; }
  .home-section .linklist .caps-link { font-size: 14px; }
  .home-bottom { grid-template-columns: 1fr; border-top: 0; }
  .home-bottom > section, .home-bottom > section:last-child, .home-bottom > section:first-child { border-left: 0; border-top: 1px solid var(--rule); padding: 14px 0 12px; }
  .home-bottom > section:first-child { border-top: 0; }
  .home-buckets { grid-template-columns: 1fr; }
  .home-buckets > section, .home-buckets > section:first-child, .home-buckets > section:last-child, .home-buckets > section:nth-child(3) { border-left: 0; border-top: 1px solid var(--rule); padding: 14px 0 12px; }
  .feature-list .linklist { margin-left: 168px; }
  .feature-lead { grid-template-columns: 150px 1fr; }

  .list-cols, .list-cols.c3 { columns: 1; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 20px 10px; }
  .pcard .frame { width: 100px; height: 125px; }
  .pcard .pname { font-size: 16px; }
  .pcard .pnote { font-size: 14px; }

  .profile-top { grid-template-columns: 1fr; gap: 0; }
  .portrait { order: 0; }
  .portrait .frame { width: 180px; height: 224px; }
  .profile-id { text-align: left; margin-top: 12px; }
  .profile-id .h-page { font-size: 34px; }
  .chips span { font-size: 17px; }
  .factrows > li { grid-template-columns: 24px 120px 1fr; }
  .factrows.wide > li { grid-template-columns: 150px 1fr; }
  .profile-side { border-top: 1px solid var(--rule); margin-top: 10px; padding-top: 12px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-grid > section, .profile-grid > section:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .profile-grid > section:first-child { border-top: 0; }
  .profile-band { grid-template-columns: 1fr; }
  .profile-band > section + section { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .h-orn { font-size: 26px; }
  .related > li { grid-template-columns: 28px 1fr; }
  .related .desc { grid-column: 2; margin-top: -4px; }
  .two-col { grid-template-columns: 1fr; }
  .two-col > aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 12px; }
  .formrow { grid-template-columns: 1fr; }
  .tbl { font-size: 16px; }
  .tbl .hide-sm { display: none; }
}

@media (max-width: 480px) {
  .feature-list .linklist { margin-left: 0; }
  .feature-lead { grid-template-columns: 120px 1fr; gap: 12px; }
  .feature-lead .fimg { width: 120px; height: 140px; }
}

@media print {
  .search, .topnav, .skip { display: none; }
  body { background: #fff; }
}

/* ---------- legislator layout ---------- */
.leg-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 30px; }
.leg-left .profile-top { grid-template-columns: 230px minmax(0, 1fr); }
.leg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.leg-two > section { padding: 12px 0 16px; min-width: 0; }
.leg-two > section + section { border-left: 1px solid var(--rule); padding-left: 30px; }
.leg-right { border-left: 1px solid var(--rule); padding-left: 30px; min-width: 0; }
.leg-right > section { padding: 12px 0 16px; }
.leg-right > section + section { border-top: 1px solid var(--rule); }
.leg-right .h-orn, .leg-two .h-orn, .profile-band .h-orn { font-size: 26px; }
.leg-right .h-orn::after, .leg-two .h-orn::after, .profile-band .h-orn::after { width: 100px; }
@media (max-width: 1100px) {
  .leg-layout { grid-template-columns: 1fr; }
  .leg-right { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .leg-left .profile-top { grid-template-columns: 1fr; }
  .leg-two { grid-template-columns: 1fr; }
  .leg-two > section + section { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
}
