/*
  The Commonwealth Initiative
  Site stylesheet. Shared by the PHP site and the WordPress theme for The Commonwealth Ledger.

  Contents
   1. Fonts and tokens          8. Rows and written content
   2. Base                      9. Figures, tables, notices
   3. Layout helpers           10. Lists of pages, people, publications
   4. Links and buttons        11. Home page
   5. Utility strip, masthead  12. Section templates
   6. Menus                    13. Forms
   7. Page heading             14. Footer   15. Ledger (WordPress)   16. Motion, print
*/

/* 1. Fonts and tokens ---------------------------------------------------- */

@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Official palette */
  --midnight: #0C3B62;
  --heritage: #376B95;
  --brass: #B08D57;
  --limestone: #F8F6EF;
  --charcoal: #2E2E2E;

  /* Working tints derived from the palette */
  --midnight-deep: #082C4A;
  --heritage-ink: #2C5B82;      /* link colour that clears AA on Limestone */
  --brass-ink: #765A2A;         /* brass for small text on light surfaces */
  --brass-light: #D5B785;       /* brass for small text on Midnight */
  --stone: #EFEBDF;             /* a deeper Limestone for panels */
  --paper: #FFFFFF;
  --muted: #55595E;
  --rule: rgba(12, 59, 98, .18);
  --rule-soft: rgba(12, 59, 98, .1);
  --rule-dark: rgba(248, 246, 239, .2);
  --on-dark: #F8F6EF;
  --on-dark-muted: #C3D0DC;

  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1360px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --measure: 46rem;

  --space-section: clamp(3.75rem, 8vw, 7.5rem);
  --space-row: clamp(2.5rem, 5vw, 4.5rem);
}

/* 2. Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--limestone);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--midnight);
  line-height: 1.12;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 4.6vw, 4.25rem); font-weight: 500; letter-spacing: -0.022em; line-height: 1.04; }
h2 { font-size: clamp(1.85rem, 2.9vw, 2.75rem); font-weight: 500; letter-spacing: -0.018em; }
h3 { font-size: 1.3rem; line-height: 1.25; }
h4 { font-size: 1.0625rem; font-family: var(--sans); letter-spacing: 0; }

p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, picture { max-width: 100%; }
img { height: auto; display: block; }
picture { display: block; }
figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }
dl, dd { margin: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }
address { font-style: normal; }
::selection { background: var(--midnight); color: var(--limestone); }

:focus-visible {
  outline: 3px solid var(--heritage);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

/* 3. Layout helpers ------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--midnight);
  color: var(--on-dark);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.icon { flex: none; }

/* Small capital label. The brief specifies 11 to 12px uppercase with controlled tracking. */
.label {
  margin: 0 0 1.1rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-ink);
}

/* Marks anything planned, proposed, or not yet adopted */
.status {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: .28rem .7rem .26rem;
  border: 1px solid var(--brass);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brass-ink);
  background: rgba(176, 141, 87, .08);
  line-height: 1.4;
}
.status--inline { margin: 0 0 0 .35rem; padding: .1rem .45rem; font-size: .66rem; vertical-align: .12em; }

/* 4. Links and buttons --------------------------------------------------- */

a { color: var(--heritage-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--midnight); }

/* Text link whose brass rule extends on hover */
.more {
  display: inline-block;
  padding-bottom: .3rem;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--midnight);
  text-decoration: none;
  background: linear-gradient(var(--brass), var(--brass)) left bottom / 2.25rem 2px no-repeat;
  transition: background-size .28s ease;
}
.more:hover, .more:focus-visible { background-size: 100% 2px; color: var(--midnight); }
button.more { border: 0; cursor: pointer; padding: 0 0 .3rem; background-color: transparent; }
.more--light { color: var(--on-dark); background-image: linear-gradient(var(--brass-light), var(--brass-light)); }
.more--light:hover { color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 1rem 2.25rem; margin: 2rem 0 0; align-items: center; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 3rem;
  padding: .7rem 1.5rem;
  border: 1px solid var(--midnight);
  border-radius: 2px;
  background: var(--midnight);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.button:hover { background: var(--midnight-deep); border-color: var(--midnight-deep); color: #fff; }
.button--light { background: var(--limestone); border-color: var(--limestone); color: var(--midnight); }
.button--light:hover { background: #fff; border-color: #fff; color: var(--midnight); }
.button--ghost { background: transparent; color: var(--midnight); }
.button--ghost:hover { background: var(--midnight); color: var(--on-dark); }

/* 5. Utility strip and masthead ----------------------------------------- */

.utility { background: var(--midnight); color: var(--on-dark); font-size: .78rem; }
.utility__in { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 2.25rem; }
.utility__place {
  display: flex; align-items: center; gap: .85rem;
  margin: 0;
  font-weight: 600; letter-spacing: .13em; text-transform: uppercase; font-size: .7rem;
  white-space: nowrap;
}
.utility__rule { width: 1px; height: .85rem; background: var(--brass-light); opacity: .8; }
.utility__links { display: flex; gap: 1.75rem; }
.utility__links a { color: var(--on-dark); text-decoration: none; font-weight: 500; letter-spacing: .02em; padding: .35rem 0; display: inline-block; }
.utility__links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brass-light); text-underline-offset: .3em; }
.utility__links li:first-child a { color: var(--brass-light); font-weight: 600; }
.utility :focus-visible, .footer :focus-visible, .dark :focus-visible { outline-color: var(--brass-light); }

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: var(--limestone);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .2s ease;
}
.masthead.is-stuck { box-shadow: 0 6px 24px -18px rgba(8, 44, 74, .55); }
.masthead__in { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2.25rem); min-height: 5.75rem; transition: min-height .2s ease; }
.masthead.is-stuck .masthead__in { min-height: 4.25rem; }
.masthead__brand { flex: none; display: block; line-height: 0; }
.masthead__brand img { width: auto; height: 3.9rem; transition: height .2s ease; }
.masthead.is-stuck .masthead__brand img { height: 3rem; }
.masthead__tools { display: flex; align-items: center; gap: .25rem; margin-left: auto; }

.tool {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-width: 2.75rem; min-height: 2.75rem;
  padding: 0 .5rem;
  color: var(--midnight);
  text-decoration: none;
  border-radius: 2px;
}
.tool:hover { background: var(--stone); }
.tool__close, .tool[aria-expanded="true"] .tool__open { display: none; }
.tool[aria-expanded="true"] .tool__close { display: inline-flex; }
.tool__label { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tool--menu { display: none; }

/* 6. Menus --------------------------------------------------------------- */

.primary { margin-left: auto; }
.primary + .masthead__tools { margin-left: 0; }
.primary__list { display: flex; align-items: stretch; gap: clamp(.1rem, .9vw, 1rem); }
.primary__item { display: flex; align-items: center; }
.primary__link {
  display: flex; align-items: center;
  min-height: 5.75rem;
  padding: 0 .4rem;
  font-size: .9rem; font-weight: 600; letter-spacing: .015em;
  color: var(--midnight);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 -3px 0 transparent;
  transition: box-shadow .18s ease, min-height .2s ease;
}
.masthead.is-stuck .primary__link { min-height: 4.25rem; }
.primary__link:hover, .primary__item.is-open > .primary__link, .primary__link[aria-current] { box-shadow: inset 0 -3px 0 var(--brass); }
.primary__item--support .primary__link {
  min-height: 2.6rem; margin-left: .5rem; padding: 0 1rem;
  border: 1px solid var(--midnight); border-radius: 2px; box-shadow: none;
}
.masthead.is-stuck .primary__item--support .primary__link { min-height: 2.4rem; }
.primary__item--support .primary__link:hover, .primary__item--support.is-open > .primary__link { background: var(--midnight); color: var(--on-dark); box-shadow: none; }

/* The chevron button gives keyboard and touch users an explicit way to open a panel */
.primary__toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 2.75rem; margin-left: -.35rem; padding: 0;
  border: 0; background: none; color: var(--midnight); cursor: pointer;
  opacity: 0;
}
.primary__toggle .icon { width: 14px; height: 14px; transition: transform .2s ease; }
.primary__toggle:focus-visible, .primary__item.is-open .primary__toggle, .touch .primary__toggle { opacity: 1; }
.primary__item.is-open .primary__toggle .icon { transform: rotate(180deg); }

.panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #FFFEFB;
  border-top: 1px solid var(--rule);
  border-bottom: 3px solid var(--brass);
  box-shadow: 0 28px 40px -30px rgba(8, 44, 74, .5);
  visibility: hidden; opacity: 0;
  transform: translateY(-4px);
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.primary__item.is-open > .panel,
.no-js .primary__item:hover > .panel,
.no-js .primary__item:focus-within > .panel {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .16s ease, transform .16s ease;
}
.panel__in { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 2.5rem; padding-block: 2.5rem 2.75rem; }
.panel__lead { padding-right: 1.5rem; border-right: 1px solid var(--rule-soft); }
.panel__title { margin: 0 0 .6rem; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.panel__title a { color: var(--midnight); text-decoration: none; }
.panel__title a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .2em; }
.panel__intro { margin: 0; font-family: var(--serif); font-size: 1.02rem; line-height: 1.5; color: var(--muted); max-width: 22rem; }
.panel__heading { margin: 0 0 .85rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }
.panel__col li + li { margin-top: .1rem; }
.panel__col a { display: block; padding: .36rem 0; font-size: .98rem; font-weight: 500; line-height: 1.35; color: var(--midnight); text-decoration: none; }
.panel__col a:hover { color: var(--heritage-ink); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .25em; }

.searchbar { border-top: 1px solid var(--rule); background: #FFFEFB; }
.searchbar__in { display: flex; gap: .75rem; padding-block: 1.1rem; }
.searchbar input { flex: 1; }

.mobile { border-top: 1px solid var(--rule); background: #FFFEFB; max-height: calc(100vh - 4.5rem); max-height: calc(100dvh - 4.5rem); overflow-y: auto; overscroll-behavior: contain; }
.mobile > .wrap { padding-block: 1.25rem 2.5rem; }
.mobile__search { display: flex; margin-bottom: 1rem; border: 1px solid var(--rule); background: var(--paper); }
.mobile__search input[type="search"] { flex: 1; border: 0; background: none; min-height: 3rem; }
.mobile__search button { width: 3rem; border: 0; background: none; color: var(--midnight); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mobile__group { border-bottom: 1px solid var(--rule); }
.mobile__group summary {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 3.4rem; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--midnight);
}
.mobile__group summary::-webkit-details-marker { display: none; }
.mobile__group[open] summary .icon { transform: rotate(180deg); }
.mobile__group ul { padding: 0 0 1rem; }
.mobile__group a { display: block; padding: .55rem 0; color: var(--midnight); text-decoration: none; font-size: 1.02rem; }
.mobile__extra { margin-top: 1.5rem; display: grid; gap: .25rem; }
.mobile__extra a { display: block; padding: .5rem 0; font-weight: 600; color: var(--heritage-ink); text-decoration: none; }

@media (max-width: 1239px) {
  .primary { display: none; }
  .masthead__tools { margin-left: auto; }
  .primary + .masthead__tools { margin-left: auto; }
  .tool--menu { display: inline-flex; }
  .masthead__in { min-height: 4.5rem; }
  .masthead__brand img { height: 3.1rem; }
  html { scroll-padding-top: 5.5rem; }
}
@media (min-width: 1240px) {
  .mobile { display: none !important; }
}
@media (max-width: 700px) {
  .utility__place span:last-child, .utility__rule { display: none; }
  .utility__links { gap: 1.1rem; }
  .utility__links li:nth-child(n+2) { display: none; }
  .tool__label { display: none; }
  .masthead__brand img, .masthead.is-stuck .masthead__brand img { height: 2.75rem; }
}

/* 7. Page heading -------------------------------------------------------- */

.crumbs { margin-bottom: clamp(1.75rem, 4vw, 3rem); font-size: .82rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .2rem .6rem; }
.crumbs li { display: flex; align-items: center; gap: .6rem; color: var(--muted); }
.crumbs li + li::before { content: ""; width: .35rem; height: .35rem; border-top: 1px solid var(--brass-ink); border-right: 1px solid var(--brass-ink); transform: rotate(45deg); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--midnight); text-decoration: underline; }

.pagehead { padding-block: clamp(1.75rem, 3.5vw, 2.75rem) clamp(2.75rem, 5.5vw, 4.75rem); border-bottom: 1px solid var(--rule); }
.pagehead__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); align-items: end; }
.pagehead__main { grid-column: 1 / span 9; }
.pagehead__aside { grid-column: 10 / -1; }
.pagehead .label { margin-bottom: 1.4rem; display: flex; align-items: center; gap: .9rem; }
.pagehead .label::after { content: ""; width: 3.5rem; height: 1px; background: var(--brass); }
.pagehead h1 { max-width: 20ch; }
.pagehead .status { margin: 1.4rem 0 0; }
.lede {
  max-width: 44rem;
  margin: 1.6rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.7vw, 1.45rem);
  line-height: 1.45;
  color: var(--charcoal);
}
.lede + .lede { margin-top: 1rem; }
@media (max-width: 900px) {
  .pagehead__main, .pagehead__aside { grid-column: 1 / -1; }
}

/* 8. Rows and written content ------------------------------------------- */

.row { padding-block: var(--space-row); border-bottom: 1px solid var(--rule-soft); }
.row:last-of-type { border-bottom: 0; }
.row--stone { background: var(--stone); border-bottom: 0; }
.row__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem clamp(1.5rem, 3vw, 3rem); }
.row__rail { grid-column: 1 / span 3; }
.row__body { grid-column: 4 / span 8; min-width: 0; }
h2.label { text-wrap: wrap; }
.row__rail .label { position: sticky; top: 6.5rem; margin: .5rem 0 0; padding-top: .9rem; border-top: 2px solid var(--brass); max-width: 13rem; }
.row__body > h2 { margin-bottom: 1.5rem; max-width: 24ch; }
@media (max-width: 900px) {
  .row__rail, .row__body { grid-column: 1 / -1; }
  .row__rail .label { position: static; display: inline-block; padding-right: 2rem; }
  .row__rail:empty { display: none; }
}

.prose { max-width: var(--measure); font-family: var(--serif); font-size: 1.1875rem; line-height: 1.62; }
.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin: 2.2em 0 .7em; font-size: clamp(1.6rem, 2.3vw, 2.1rem); }
.prose h3 { margin: 1.8em 0 .5em; font-size: 1.4rem; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brass-ink); }
.prose blockquote { margin: 1.8em 0; padding: .2em 0 .2em 1.5rem; border-left: 2px solid var(--brass); font-size: 1.35rem; line-height: 1.4; color: var(--midnight); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { margin-block: 1.5em; }
.prose figcaption { margin-top: .6rem; font-family: var(--sans); font-size: .85rem; color: var(--muted); }
.prose + .prose, .defs + .prose, .steps + .prose, .plainlist + .prose { margin-top: 2rem; }
.prose + .defs, .prose + .steps, .prose + .plainlist, .prose + .figures, .prose + .peoplelist { margin-top: 2.25rem; }

.statement {
  max-width: 26em;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.012em;
  color: var(--midnight);
  text-wrap: pretty;
}
.statement + .prose { margin-top: 1.75rem; }

.defs { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.defs__item { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: .5rem 2.5rem; padding: 1.35rem 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 7rem; }
.defs dt { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.25; color: var(--midnight); }
.defs dd { max-width: 40rem; font-size: 1.0625rem; line-height: 1.58; }
.defs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); }
.defs--2 .defs__item { grid-template-columns: 1fr; gap: .45rem; }
.defs__item:target dt { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .25em; }
@media (max-width: 700px) {
  .defs__item { grid-template-columns: 1fr; gap: .4rem; }
  .defs--2 { grid-template-columns: 1fr; }
}

.plainlist { max-width: var(--measure); border-top: 1px solid var(--rule); }
.plainlist li { padding: .85rem 0 .85rem 1.6rem; border-bottom: 1px solid var(--rule-soft); position: relative; line-height: 1.5; }
.plainlist li::before { content: ""; position: absolute; left: .1rem; top: 1.42rem; width: .4rem; height: .4rem; background: var(--brass); }
.plainlist--cols { max-width: none; columns: 2; column-gap: clamp(2rem, 4vw, 4rem); border-top: 0; }
.plainlist--cols li { break-inside: avoid; border-top: 1px solid var(--rule); border-bottom: 0; }
@media (max-width: 700px) { .plainlist--cols { columns: 1; } }

.questions { max-width: 48rem; border-top: 1px solid var(--rule); }
.questions li { padding: 1.3rem 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.35; color: var(--midnight); }

.steps { counter-reset: step; display: grid; gap: 0; max-width: 50rem; border-top: 1px solid var(--rule); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4rem 1fr; column-gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--serif); font-size: 1.6rem; font-weight: 400; line-height: 1.15; color: var(--brass-ink); font-variant-numeric: lining-nums tabular-nums; }
.steps h3 { margin: 0 0 .35rem; }
.steps p { margin: 0; max-width: 38rem; }

/* 9. Figures, tables, notices ------------------------------------------- */

.notice { max-width: var(--measure); padding: 1.5rem 1.75rem 1.6rem; background: var(--stone); border-left: 3px solid var(--brass); }
.notice p { margin: 0 0 .6em; }
.notice p:last-child { margin-bottom: 0; }
.notice__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.25; color: var(--midnight); }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0 clamp(1.75rem, 3vw, 3rem); }
.figure { padding: 1.6rem 0 1.75rem; border-top: 1px solid var(--rule); min-width: 0; }
.figure__value { margin: 0 0 .4rem; font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 400; line-height: 1; letter-spacing: -.02em; color: var(--midnight); font-variant-numeric: lining-nums; }
.figure__name { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; line-height: 1.35; letter-spacing: 0; color: var(--charcoal); margin-bottom: 1rem; }
.figure__meta { display: grid; gap: .3rem; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.figure__meta div { display: grid; grid-template-columns: 6.6rem 1fr; gap: .75rem; }
.figure__meta dt { font-weight: 600; color: var(--brass-ink); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding-top: .18rem; }
.figure__note { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px dotted var(--rule); font-size: .9rem; line-height: 1.5; color: var(--muted); }

.tablewrap { overflow-x: auto; max-width: 100%; }
.table { font-size: .98rem; min-width: 34rem; }
.table caption { caption-side: top; text-align: left; padding-bottom: .9rem; font-size: .86rem; color: var(--muted); }
.table th, .table td { padding: .8rem 1.25rem .8rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); line-height: 1.45; }
.table thead th { border-bottom: 2px solid var(--midnight); font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); white-space: nowrap; }
.table tbody th { font-weight: 600; color: var(--midnight); }
.table .num { font-family: var(--serif); font-size: 1.15rem; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; color: var(--midnight); }
.table small { display: block; color: var(--muted); font-size: .84rem; }

/* 10. Lists of pages, people, publications ------------------------------ */

.linklist { border-top: 1px solid var(--rule); max-width: 52rem; }
.linklist li { display: grid; grid-template-columns: minmax(11rem, 17rem) 1fr; gap: .3rem 2.5rem; padding: 1.05rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.linklist a { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; line-height: 1.25; color: var(--midnight); text-decoration: none; }
.linklist a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .22em; }
.linklist p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
@media (max-width: 700px) { .linklist li { grid-template-columns: 1fr; } }

.peoplelist { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 0 2.5rem; border-top: 1px solid var(--rule); }
.personcard { border-bottom: 1px solid var(--rule); }
.personcard__link { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 0; text-decoration: none; color: inherit; }
.personcard__mark {
  flex: none; display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem;
  background: var(--stone); border: 1px solid var(--rule);
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500; letter-spacing: .04em; color: var(--midnight);
  transition: background-color .18s ease, color .18s ease;
}
.personcard__link:hover .personcard__mark { background: var(--midnight); color: var(--on-dark); }
.personcard__text { display: grid; gap: .15rem; min-width: 0; }
.personcard__name { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; line-height: 1.2; color: var(--midnight); }
.personcard__link:hover .personcard__name { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .2em; }
.personcard__title { font-size: .93rem; line-height: 1.35; color: var(--muted); }

.entries { border-top: 1px solid var(--rule); }
.entry { display: grid; grid-template-columns: 9.5rem 1fr; gap: .5rem 2rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.entry__meta { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--brass-ink); line-height: 1.5; }
.entry__meta time { display: block; color: var(--muted); letter-spacing: .04em; font-weight: 500; }
.entry__title { font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 600; line-height: 1.2; margin-bottom: .5rem; }
.entry__title a { color: var(--midnight); text-decoration: none; }
.entry__title a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .2em; }
.entry__summary { margin: 0; max-width: 44rem; color: var(--charcoal); }
.entry__by { margin: .55rem 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 700px) { .entry { grid-template-columns: 1fr; } }

.sectionnav { padding-block: 2.5rem 3rem; background: var(--stone); }
.sectionnav .label { margin-bottom: 1rem; }
.sectionnav ul { display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.sectionnav a { display: inline-block; padding: .5rem .95rem; border: 1px solid var(--rule); background: var(--limestone); color: var(--midnight); font-size: .92rem; font-weight: 500; text-decoration: none; border-radius: 2px; }
.sectionnav a:hover { border-color: var(--midnight); }
.sectionnav a[aria-current] { background: var(--midnight); border-color: var(--midnight); color: var(--on-dark); }

.cta { background: var(--midnight); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 5rem); }
.cta__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2rem 3rem; }
.cta h2 { color: var(--on-dark); max-width: 22ch; font-size: clamp(1.7rem, 2.6vw, 2.4rem); }
.cta p { margin: .9rem 0 0; max-width: 34rem; color: var(--on-dark-muted); font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin: 0 !important; font-family: var(--sans) !important; }
.cta :focus-visible { outline-color: var(--brass-light); }

/* 11. Home page ---------------------------------------------------------- */

.hero { padding-block: clamp(2.5rem, 5.5vw, 5rem) clamp(3rem, 6vw, 5.5rem); border-bottom: 1px solid var(--rule); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); align-items: center; }
.hero__text { grid-column: 1 / span 6; }
.hero__plate { grid-column: 7 / -1; }
.hero .label { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem; }
.hero .label::after { content: ""; flex: 0 1 6rem; height: 1px; background: var(--brass); transform-origin: left; }
.hero h1 { font-size: clamp(2.6rem, 4.75vw, 4.3rem); font-weight: 400; line-height: 1.02; letter-spacing: -.026em; }
.hero__intro { margin-top: 2rem; max-width: 34rem; font-family: var(--serif); font-size: clamp(1.15rem, 1.5vw, 1.3rem); line-height: 1.5; }
.hero__intro p { margin: 0 0 .9em; }
.hero__intro p:last-child { margin: 0; }
.hero .actions { margin-top: 2.25rem; }
.hero__slogan { margin: 2.75rem 0 0; font-size: .74rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--heritage-ink); }

.plate { position: relative; }
.plate__frame { display: grid; grid-template-rows: auto 1fr auto; gap: 1.5rem; min-height: clamp(20rem, 36vw, 31rem); padding: clamp(1.25rem, 2.4vw, 2.25rem); background: var(--midnight); color: var(--on-dark-muted); }
.plate__frame img { width: 100%; align-self: center; }
.plate__top, .plate__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.plate__top { padding-bottom: .9rem; border-bottom: 1px solid var(--rule-dark); color: var(--brass-light); }
.plate__foot { padding-top: .9rem; border-top: 1px solid var(--rule-dark); }
.plate__foot .plate__key::before { background: #C4A068; }
.hero__text, .hero__plate, .plate { min-width: 0; }
.plate__frame { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) {
  .plate__frame { min-height: 0; gap: 1.1rem; }
  .plate__foot span:last-child { display: none; }
  .plate__foot .plate__key { white-space: normal; }
}
.plate figcaption { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: .9rem; font-size: .82rem; line-height: 1.45; color: var(--muted); }
.plate figcaption strong { color: var(--midnight); font-weight: 600; }
.plate__key { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.plate__key::before { content: ""; width: .8rem; height: .8rem; background: var(--brass); }
.plate--photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.plate--photo figcaption { display: block; }
.credit { display: block; font-size: .76rem; }
@media (max-width: 1000px) {
  .hero__text, .hero__plate { grid-column: 1 / -1; }
}

.band { padding-block: var(--space-section); }
.band--rule { border-bottom: 1px solid var(--rule); }
.band--stone { background: var(--stone); }
.band--dark { background: var(--midnight); color: var(--on-dark); }
.band--dark h2, .band--dark h3 { color: var(--on-dark); }
.band--dark .label { color: var(--brass-light); }
.band__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); }
.band__head { grid-column: 1 / span 5; }
.band__body { grid-column: 7 / -1; }
.band__full { grid-column: 1 / -1; }
.band__head h2 { max-width: 20ch; }
.band__intro { margin-top: 1.4rem; max-width: 30rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }
.band--dark .band__intro, .band--dark .prose { color: var(--on-dark-muted); }
.band__head .actions { margin-top: 2rem; }
@media (max-width: 1000px) {
  .band__head, .band__body { grid-column: 1 / -1; }
}

/* Purpose: one brass vertical accent, as the brief asks */
.purpose .band__body { padding-left: clamp(1.5rem, 3vw, 3rem); border-left: 2px solid var(--brass); }
@media (max-width: 1000px) { .purpose .band__body { padding-left: 1.25rem; } }

/* Centers: a ruled grid. The two-digit index is part of the centers' approved naming. */
.centers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.center-card { position: relative; display: flex; flex-direction: column; padding: 2rem clamp(1.25rem, 2.2vw, 2.25rem) 2.1rem; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--limestone); transition: background-color .2s ease; }
.center-card:hover { background: #FFFEFB; }
.center-card__num { font-family: var(--serif); font-size: 1rem; color: var(--brass-ink); font-variant-numeric: lining-nums tabular-nums; margin: 0 0 2.5rem; display: flex; align-items: center; gap: .8rem; }
.center-card__num::after { content: ""; width: 2rem; height: 1px; background: var(--brass); transition: width .28s ease; }
.center-card:hover .center-card__num::after { width: 4rem; }
.center-card h3 { font-size: clamp(1.4rem, 1.9vw, 1.7rem); font-weight: 500; line-height: 1.15; margin-bottom: .9rem; }
.center-card h3 a { color: var(--midnight); text-decoration: none; }
.center-card h3 a::after { content: ""; position: absolute; inset: 0; }
.center-card p { margin: 0 0 1.75rem; color: var(--charcoal); font-size: 1.02rem; line-height: 1.55; }
.center-card .more { margin-top: auto; align-self: flex-start; }
.center-card:hover .more { background-size: 100% 2px; }
.center-card:focus-within { outline: 3px solid var(--heritage); outline-offset: -3px; }
.center-card h3 a:focus-visible { outline: none; }
@media (max-width: 1000px) { .centers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .centers { grid-template-columns: 1fr; } }

/* Kentucky in context: white numerals, muted notes, brass dividers */
.context__figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--brass); }
.context__figure { padding: 2.25rem clamp(1.25rem, 2.5vw, 2.5rem) 0 0; }
.context__figure + .context__figure { padding-left: clamp(1.25rem, 2.5vw, 2.5rem); border-left: 1px solid rgba(213, 183, 133, .45); }
.context__value { margin: 0; font-family: var(--serif); font-size: clamp(3rem, 6vw, 5.25rem); font-weight: 300; line-height: .95; letter-spacing: -.03em; color: #fff; font-variant-numeric: lining-nums; }
.context__name { margin: 1rem 0 0; font-size: 1.1rem; font-weight: 600; line-height: 1.35; color: var(--on-dark); font-family: var(--sans); letter-spacing: 0; }
.context__source { margin: .9rem 0 0; font-size: .86rem; line-height: 1.5; color: var(--on-dark-muted); }
.context__source a { color: var(--on-dark); text-decoration-color: var(--brass-light); }
.context__source a:hover { color: #fff; }
.context__note { margin: .9rem 0 0; padding-top: .9rem; border-top: 1px dotted rgba(248, 246, 239, .3); font-size: .86rem; line-height: 1.5; color: var(--on-dark-muted); }
.context__after { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--rule-dark); align-items: end; }
.context__after p { grid-column: 1 / span 8; margin: 0; max-width: 46rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.55; color: var(--on-dark-muted); }
.context__after .actions { grid-column: 10 / -1; margin: 0; justify-content: flex-end; }
@media (max-width: 900px) {
  .context__figures { grid-template-columns: 1fr; }
  .context__figure, .context__figure + .context__figure { padding: 2rem 0; border-left: 0; }
  .context__figure + .context__figure { border-top: 1px solid rgba(213, 183, 133, .45); }
  .context__after p, .context__after .actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Research and the Ledger, side by side */
.desk { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.desk__col { grid-column: span 6; padding-top: 1.5rem; border-top: 2px solid var(--midnight); }
.desk__col h3 { font-size: 1.6rem; font-weight: 500; margin-bottom: .9rem; }
.desk__col > p { max-width: 34rem; }
.desk__kicker { margin: 0 0 .7rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }
.desk__list { margin-top: 1.5rem; border-top: 1px solid var(--rule); }
.desk__list li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.desk__list a { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.25; color: var(--midnight); text-decoration: none; }
.desk__list a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .2em; }
.desk__list span { display: block; margin-top: .25rem; font-size: .88rem; color: var(--muted); }
@media (max-width: 900px) { .desk__col { grid-column: 1 / -1; } }

/* Louisville feature */
.place__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); align-items: start; }
.place__head { grid-column: 1 / span 5; position: sticky; top: 7rem; }
.place__body { grid-column: 7 / -1; }
.place__map { margin-top: 2.5rem; }
.place__map img { width: 100%; }
.place__map figcaption { margin-top: .75rem; font-size: .82rem; color: var(--muted); }
@media (max-width: 1000px) {
  .place__head, .place__body { grid-column: 1 / -1; position: static; }
}

/* The Commonwealth Agenda: six questions */
.agenda { margin-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--rule); }
.agenda li { border-bottom: 1px solid var(--rule); }
.agenda a { display: grid; grid-template-columns: 15rem 1fr auto; gap: 1rem 2.5rem; align-items: baseline; padding: 1.5rem 0; text-decoration: none; color: inherit; transition: padding .22s ease, background-color .22s ease; }
.agenda a:hover { background: rgba(255, 254, 251, .7); padding-inline: 1rem; }
.agenda__center { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); line-height: 1.45; }
.agenda__q { font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.3; color: var(--midnight); max-width: 46rem; }
.agenda__go { font-size: .88rem; font-weight: 600; color: var(--heritage-ink); white-space: nowrap; }
@media (max-width: 900px) {
  .agenda a { grid-template-columns: 1fr; gap: .5rem; }
  .agenda__go { display: none; }
}

/* How we work: four stages in order */
.stages { counter-reset: stage; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 2px solid var(--midnight); }
.stages li { counter-increment: stage; padding: 1.75rem clamp(1rem, 2vw, 2rem) 0 0; position: relative; }
.stages li + li { padding-left: clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--rule); }
.stages li::before { content: counter(stage, decimal-leading-zero); display: block; margin-bottom: 1.5rem; font-family: var(--serif); font-size: 1rem; color: var(--brass-ink); font-variant-numeric: lining-nums tabular-nums; }
.stages h3 { font-size: 1.6rem; font-weight: 500; margin-bottom: .7rem; }
.stages p { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.stages__after { margin: clamp(2rem, 4vw, 3rem) 0 0; max-width: 44rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--midnight); }
@media (max-width: 900px) {
  .stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages li { padding-bottom: 1.75rem; }
  .stages li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stages li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .stages { grid-template-columns: 1fr; }
  .stages li, .stages li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .stages li:first-child { border-top: 0; }
}

/* Commitment and Review: paired panels */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pair__panel { padding: var(--space-section) var(--gutter); }
.pair__panel > div { max-width: 36rem; }
.pair__panel:first-child { border-right: 1px solid var(--rule); }
.pair__panel:first-child > div { margin-left: auto; padding-right: clamp(0rem, 3vw, 3rem); }
.pair__panel:last-child { background: var(--stone); }
.pair__panel:last-child > div { padding-left: clamp(0rem, 3vw, 3rem); }
.pair h2 { font-size: clamp(1.75rem, 2.5vw, 2.4rem); }
.pair .prose { margin-top: 1.4rem; font-size: 1.125rem; }
.pair__rule { width: 4rem; height: 1px; background: var(--brass); border: 0; margin: 0 0 1.75rem; }
@media (max-width: 900px) {
  .pair { grid-template-columns: 1fr; }
  .pair__panel:first-child { border-right: 0; border-bottom: 1px solid var(--rule); }
  .pair__panel > div, .pair__panel:first-child > div, .pair__panel:last-child > div { max-width: none; margin: 0; padding: 0; }
}

.signup__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); align-items: center; }
.signup__text { grid-column: 1 / span 6; }
.signup__form { grid-column: 8 / -1; }
.signup__text p:not(.label) { margin: 1rem 0 0; max-width: 32rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }
@media (max-width: 1000px) { .signup__text, .signup__form { grid-column: 1 / -1; } }

.closing { background: var(--midnight); color: var(--on-dark); padding-block: var(--space-section); overflow: hidden; }
.closing__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); align-items: center; }
.closing__mark { grid-column: 1 / span 3; }
.closing__mark img { width: min(100%, 15rem); }
.closing__text { grid-column: 5 / -1; }
.closing h2 { color: var(--on-dark); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.08; max-width: 20ch; }
.closing p { margin: 1.6rem 0 0; max-width: 38rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--on-dark-muted); }
.closing .actions { margin-top: 2.25rem; }
@media (max-width: 900px) {
  .closing__mark { grid-column: 1 / -1; }
  .closing__mark img { width: 7rem; }
  .closing__text { grid-column: 1 / -1; }
}

/* 12. Section templates -------------------------------------------------- */

/* Policy center page */
.standfirst { margin: 1.5rem 0 0; max-width: 26em; font-family: var(--serif); font-size: clamp(1.4rem, 2.3vw, 2rem); font-style: italic; font-weight: 400; line-height: 1.25; color: var(--heritage-ink); }
.centerhead__num::before { content: attr(data-num); }
.centerhead__num { margin: 0; font-family: var(--serif); font-size: clamp(4rem, 9vw, 8rem); font-weight: 300; line-height: .8; color: var(--brass); opacity: .55; text-align: right; font-variant-numeric: lining-nums; }
@media (max-width: 900px) { .centerhead__num { display: none; } }
.center-photo { border-bottom: 1px solid var(--rule); }
.center-photo img { width: 100%; max-height: 32rem; object-fit: cover; }
.center-photo figcaption { padding: .75rem var(--gutter); font-size: .82rem; color: var(--muted); }

/* Empty library and planned-content states */
.empty { max-width: var(--measure); padding: 2rem 2rem 2.1rem; border: 1px solid var(--rule); background: #FFFEFB; }
.empty h3 { font-size: 1.5rem; font-weight: 500; margin-bottom: .7rem; }
.empty p { margin: 0 0 .8em; }
.empty p:last-child { margin: 0; }
.empty .actions { margin-top: 1.4rem; }

/* Publication type index */
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 4vw, 4rem); border-top: 1px solid var(--rule); }
.types__item { padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.types__item h3 { margin-bottom: .45rem; }
.types__item h3 a { color: var(--midnight); text-decoration: none; }
.types__item h3 a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .2em; }
.types__item p { margin: 0; line-height: 1.55; }
@media (max-width: 760px) { .types { grid-template-columns: 1fr; } }

/* Library filters */
.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: .9rem; align-items: end; padding: 1.4rem; background: var(--stone); border: 1px solid var(--rule); margin-bottom: 2rem; }
@media (max-width: 900px) { .filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .filters { grid-template-columns: 1fr; } }

/* Publication page */
.pub { padding-block: var(--space-row); }
.pub__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); }
.pub__toc { grid-column: 1 / span 3; }
.pub__main { grid-column: 4 / span 8; min-width: 0; }
.toc { position: sticky; top: 6.5rem; padding-top: .9rem; border-top: 2px solid var(--brass); max-height: calc(100vh - 8rem); overflow-y: auto; }
.toc ol { display: grid; gap: .1rem; }
.toc a { display: block; padding: .4rem 0 .4rem .9rem; border-left: 2px solid transparent; font-size: .93rem; line-height: 1.35; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--midnight); }
.toc a.is-current { border-left-color: var(--brass); color: var(--midnight); font-weight: 600; }
.pub__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem 2rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: .95rem; }
.pub__meta dt { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: .25rem; }
.pub__section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); scroll-margin-top: 7rem; }
.pub__section > h2 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); margin-bottom: 1.1rem; }
.findings { counter-reset: finding; max-width: var(--measure); }
.findings li { counter-increment: finding; display: grid; grid-template-columns: 2.5rem 1fr; padding: 1rem 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; }
.findings li::before { content: counter(finding); font-size: 1.1rem; color: var(--brass-ink); }
.citation { max-width: var(--measure); padding: 1.25rem 1.5rem; background: var(--stone); border-left: 3px solid var(--brass); font-size: .98rem; line-height: 1.55; }
.citation p { margin: 0 0 .9rem; }
@media (max-width: 900px) {
  .pub__toc, .pub__main { grid-column: 1 / -1; }
  .toc { position: static; max-height: none; }
}

/* Person page */
.profile { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 3vw, 3rem); padding-block: var(--space-row); }
.profile__side { grid-column: 1 / span 3; }
.profile__main { grid-column: 4 / span 8; min-width: 0; }
.profile__mark { display: grid; place-items: center; aspect-ratio: 4 / 5; max-width: 16rem; background: var(--stone); border: 1px solid var(--rule); font-family: var(--serif); font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 300; letter-spacing: .04em; color: var(--midnight); }
.profile__photo { aspect-ratio: 4 / 5; max-width: 16rem; object-fit: cover; width: 100%; border: 1px solid var(--rule); }
.profile__facts { margin-top: 1.5rem; display: grid; gap: 1rem; font-size: .95rem; max-width: 16rem; }
.profile__facts dt { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: .2rem; }
.profile__main section + section { margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.profile__main h2 { font-size: 1.6rem; margin-bottom: 1rem; }
@media (max-width: 900px) {
  .profile__side, .profile__main { grid-column: 1 / -1; }
  .profile__mark, .profile__photo { max-width: 9rem; }
}

/* County directory */
.countymap { background: var(--paper); border: 1px solid var(--rule); padding: clamp(1rem, 2vw, 2rem); }
.countymap svg { display: block; width: 100%; height: auto; }
.countymap a path { fill: #EFEBDF; stroke: var(--midnight); stroke-opacity: .5; stroke-width: .6; stroke-linejoin: round; transition: fill .12s ease; }
.countymap a:hover path, .countymap a:focus path { fill: var(--heritage); }
.countymap a.is-home path { fill: var(--brass); }
.countymap a:focus { outline: none; }
.countymap a:focus path { stroke: var(--midnight); stroke-opacity: 1; stroke-width: 2; }
.countymap__outline { fill: none; stroke: var(--midnight); stroke-width: 1.4; pointer-events: none; }
.countymap__readout { margin: .9rem 0 0; min-height: 1.5rem; font-size: .92rem; color: var(--muted); }
.countymap__readout strong { color: var(--midnight); }
.countyfilter { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: end; margin: 2.5rem 0 1.25rem; }
.countyfilter .field { flex: 1 1 18rem; max-width: 26rem; }
.countyfilter output { font-size: .92rem; color: var(--muted); padding-bottom: .7rem; }
.countylist { columns: 4 13rem; column-gap: 2.5rem; border-top: 1px solid var(--rule); padding-top: .5rem; }
.countylist li { break-inside: avoid; padding: .55rem 0; border-bottom: 1px solid var(--rule-soft); scroll-margin-top: 8rem; }
.countylist li:target { background: rgba(176, 141, 87, .16); box-shadow: -.75rem 0 0 rgba(176, 141, 87, .16), .75rem 0 0 rgba(176, 141, 87, .16); }
.countylist a { font-weight: 600; color: var(--midnight); text-decoration: none; }
.countylist a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.countylist span { display: block; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Search results */
.results { max-width: 52rem; border-top: 1px solid var(--rule); }
.results li { padding: 1.3rem 0; border-bottom: 1px solid var(--rule); }
.results__kind { margin: 0 0 .3rem; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-ink); }
.results a { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; color: var(--midnight); text-decoration: none; }
.results a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .2em; }
.results p:last-child { margin: .4rem 0 0; color: var(--muted); }
.results__path { font-size: .82rem; color: var(--muted); margin: .25rem 0 0; }

/* Site map */
.sitemap { columns: 3 17rem; column-gap: 3rem; }
.sitemap section { break-inside: avoid; margin-bottom: 2.5rem; }
.sitemap h2 { font-size: 1.4rem; margin-bottom: .8rem; padding-bottom: .6rem; border-bottom: 2px solid var(--brass); }
.sitemap h2 a { color: var(--midnight); text-decoration: none; }
.sitemap li a { display: block; padding: .32rem 0; color: var(--charcoal); text-decoration: none; }
.sitemap li a:hover { color: var(--heritage-ink); text-decoration: underline; }

/* 13. Forms -------------------------------------------------------------- */

input[type="text"], input[type="email"], input[type="search"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 3rem;
  padding: .65rem .9rem;
  border: 1px solid #8C9AA8;
  border-radius: 2px;
  background: var(--paper);
  color: var(--charcoal);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
textarea { min-height: 11rem; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--midnight) 50%), linear-gradient(135deg, var(--midnight) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 1.3rem, calc(100% - .8rem) 1.3rem; background-size: .35rem .35rem; background-repeat: no-repeat; padding-right: 2.5rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--heritage); outline-offset: 1px; border-color: var(--midnight); }
::placeholder { color: #6B7178; opacity: 1; }

.field { display: grid; gap: .4rem; }
.field label, .subscribe__label { font-size: .88rem; font-weight: 600; color: var(--midnight); }
.field__hint { font-size: .84rem; color: var(--muted); margin: 0; }
.field__error { margin: 0; font-size: .9rem; font-weight: 600; color: #9B1C1C; }
.field--error input, .field--error textarea, .field--error select { border-color: #9B1C1C; border-width: 2px; }
.form { display: grid; gap: 1.4rem; max-width: 40rem; }
.form__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 600px) { .form__pair { grid-template-columns: 1fr; } }
.form__note { font-size: .88rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { max-width: 40rem; margin-bottom: 2rem; padding: 1.2rem 1.5rem; border-left: 3px solid #9B1C1C; background: #FBEDEC; color: #5F1313; }
.alert--ok { border-left-color: #1F6B3B; background: #EAF4EC; color: #123F23; }
.alert h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; color: inherit; margin-bottom: .3rem; }
.alert p { margin: 0; }
.alert ul { margin-top: .5rem; padding-left: 1.1rem; list-style: disc; }
.alert a { color: inherit; }

.subscribe { display: grid; gap: .45rem; max-width: 32rem; }
.subscribe__row { display: flex; gap: .6rem; }
.subscribe__row input { flex: 1; min-width: 0; }
.subscribe__note { margin: .5rem 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.subscribe--dark .subscribe__label { color: var(--on-dark); }
.subscribe--dark .subscribe__note { color: var(--on-dark-muted); }
.subscribe--dark .subscribe__note a { color: var(--on-dark); }
@media (max-width: 480px) { .subscribe__row { flex-direction: column; } }

.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem clamp(1.5rem, 3vw, 3rem); padding-block: var(--space-row); }
.contact__form { grid-column: 1 / span 7; }
.contact__side { grid-column: 9 / -1; }
.contact__side section { padding: 1.4rem 0; border-top: 1px solid var(--rule); }
.contact__side section:first-child { border-top: 2px solid var(--brass); }
.contact__side h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.contact__side p { margin: 0 0 .5em; font-size: .98rem; }
@media (max-width: 900px) { .contact__form, .contact__side { grid-column: 1 / -1; } }

/* 14. Footer ------------------------------------------------------------- */

.footer { background: var(--midnight); color: var(--on-dark-muted); font-size: .96rem; border-top: 1px solid rgba(213, 183, 133, .55); }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--brass-light); text-underline-offset: .28em; }
.footer__ledger { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 3rem; padding-block: 2.25rem; border-bottom: 1px solid var(--rule-dark); }
.footer__ledger-name { margin: 0; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.footer__ledger-line { margin: .3rem 0 0; }
.footer__ledger-links { display: flex; flex-wrap: wrap; gap: .75rem 2rem; }
.footer__ledger-links a { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; }
.footer__ledger-links .icon { width: 16px; height: 16px; color: var(--brass-light); }
.footer__main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3rem clamp(1.5rem, 3vw, 3rem); padding-block: clamp(3rem, 6vw, 4.5rem); }
.footer__about { grid-column: 1 / span 4; }
.footer__brand { display: block; margin-bottom: 1.6rem; line-height: 0; }
.footer__brand img { height: 4.25rem; width: auto; }
.footer__about p { max-width: 24rem; margin: 0; line-height: 1.6; }
.footer__about .footer__slogan { margin-top: 1.5rem; font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--brass-light); }
.footer__nav { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.footer__heading { margin: 0 0 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--brass); font-family: var(--sans); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); }
.footer__col li + li { margin-top: .15rem; }
.footer__col a { display: inline-block; padding: .3rem 0; line-height: 1.35; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2.5rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--rule-dark); font-size: .86rem; }
.footer__base p { margin: 0; }
.footer__social { display: flex; gap: 1.5rem; }
.footer__positioning { font-family: var(--serif); font-style: italic; color: var(--on-dark); }
@media (max-width: 1000px) {
  .footer__about, .footer__nav { grid-column: 1 / -1; }
}
@media (max-width: 640px) { .footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 15. The Commonwealth Ledger (WordPress theme) ------------------------- */

.ledgerhead { padding-block: clamp(2rem, 4vw, 3.25rem) clamp(1.75rem, 3vw, 2.5rem); border-bottom: 3px double var(--midnight); }
.ledgerhead__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 3rem; }
.ledgerhead__name { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 400; line-height: 1; letter-spacing: -.028em; color: var(--midnight); }
.ledgerhead__name a { color: inherit; text-decoration: none; }
.ledgerhead__tag { margin: .9rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--heritage-ink); }
.ledgernav { border-bottom: 1px solid var(--rule); }
.ledgernav ul { display: flex; flex-wrap: wrap; gap: 0 2rem; }
.ledgernav a { display: block; padding: .95rem 0; font-size: .9rem; font-weight: 600; letter-spacing: .02em; color: var(--midnight); text-decoration: none; box-shadow: inset 0 -3px 0 transparent; }
.ledgernav a:hover, .ledgernav .current-cat a, .ledgernav a[aria-current] { box-shadow: inset 0 -3px 0 var(--brass); }

.lead-story { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem clamp(1.5rem, 3vw, 3rem); padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--rule); align-items: center; }
.lead-story__text { grid-column: 1 / span 7; }
.lead-story__media { grid-column: 8 / -1; }
.lead-story--plain .lead-story__text { grid-column: 1 / span 9; }
.lead-story h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.lead-story h2 a { color: var(--midnight); text-decoration: none; }
.lead-story h2 a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: .14em; }
.lead-story__summary { margin: 1.25rem 0 0; max-width: 40rem; font-family: var(--serif); font-size: 1.25rem; line-height: 1.5; }
.lead-story__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .lead-story__text, .lead-story__media, .lead-story--plain .lead-story__text { grid-column: 1 / -1; } }

.byline { margin: 1.25rem 0 0; font-size: .88rem; color: var(--muted); }
.byline a { color: var(--midnight); font-weight: 600; text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.kicker { margin: 0 0 .9rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-ink); }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

.article { padding-block: clamp(2rem, 4vw, 3.5rem) var(--space-section); }
.article__head { max-width: 54rem; margin-inline: auto; }
.article__head h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); max-width: none; }
.article__dek { margin: 1.5rem 0 0; font-family: var(--serif); font-size: clamp(1.25rem, 1.9vw, 1.5rem); line-height: 1.42; color: var(--charcoal); }
.article__media { max-width: 68rem; margin: clamp(2rem, 4vw, 3rem) auto 0; }
.article__media img { width: 100%; }
.article__media figcaption { margin-top: .6rem; font-size: .84rem; color: var(--muted); }
.article__body { max-width: var(--measure); margin: clamp(2rem, 4vw, 3rem) auto 0 max(0px, calc((100% - 54rem) / 2)); }
.article__body > .alignwide { margin-inline: calc((var(--measure) - 60rem) / 2); max-width: 60rem; }
.article__foot { max-width: var(--measure); margin: 3rem auto 0 max(0px, calc((100% - 54rem) / 2)); padding-top: 1.75rem; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--muted); }
.article__foot p { margin: 0 0 .7em; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.tags a { padding: .3rem .7rem; border: 1px solid var(--rule); font-size: .84rem; color: var(--midnight); text-decoration: none; }
.tags a:hover { border-color: var(--midnight); }
.authorbox { display: flex; gap: 1.1rem; align-items: center; max-width: var(--measure); margin: 2.5rem auto 0 max(0px, calc((100% - 54rem) / 2)); padding: 1.4rem 1.5rem; background: var(--stone); }
.authorbox p { margin: 0; font-size: .95rem; }
.authorbox strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--midnight); }

.pager { display: flex; justify-content: space-between; gap: 1.5rem; padding-block: 2.5rem; font-weight: 600; }
.pager a { color: var(--midnight); text-decoration: none; }
.pager a:hover { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: .25em; }
.pager .page-numbers { display: inline-block; padding: .35rem .7rem; }
.pager .page-numbers.current { background: var(--midnight); color: var(--on-dark); }

/* Gutenberg content, kept inside the design */
.wp-block-image figcaption, .wp-element-caption { font-family: var(--sans); font-size: .85rem; color: var(--muted); text-align: left; }
.wp-block-pullquote { margin: 2em 0; padding: 1.5rem 0; border-top: 2px solid var(--brass); border-bottom: 1px solid var(--rule); text-align: left; }
.wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; font-size: 1.6rem; }
.wp-block-pullquote cite, .wp-block-quote cite { display: block; margin-top: .8rem; font-family: var(--sans); font-size: .85rem; font-style: normal; color: var(--muted); }
.wp-block-table table { font-family: var(--sans); font-size: .98rem; }
.wp-block-table th, .wp-block-table td { padding: .7rem 1rem .7rem 0; border: 0; border-bottom: 1px solid var(--rule); text-align: left; }
.wp-block-table thead th { border-bottom: 2px solid var(--midnight); }
.wp-block-separator { border: 0; border-top: 1px solid var(--rule); margin: 2.5em auto; max-width: 6rem; }
.wp-block-button__link { background: var(--midnight); color: var(--on-dark); border-radius: 2px; font-family: var(--sans); font-weight: 600; font-size: .95rem; padding: .8rem 1.5rem; text-decoration: none; }
.ci-keyfindings, .ci-summary { margin: 2em 0; padding: 1.5rem 1.75rem; background: var(--stone); border-left: 3px solid var(--brass); font-family: var(--sans); font-size: 1.05rem; }
.ci-keyfindings h2, .ci-keyfindings h3, .ci-summary h2, .ci-summary h3 { margin-top: 0; font-size: 1.3rem; }
.ci-sources { margin-top: 2.5em; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .92rem; color: var(--muted); }
.alignleft { float: left; margin: .4em 1.75em 1em 0; max-width: 50%; }
.alignright { float: right; margin: .4em 0 1em 1.75em; max-width: 50%; }
.aligncenter { margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 16. Motion and print --------------------------------------------------- */

/* One orchestrated moment on the home page: heading settles, brass rule extends. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1 { animation: settle .7s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero .label::after { animation: extend .9s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero__intro, .js .hero .actions, .js .hero__slogan { animation: appear .7s .2s ease both; }
  @keyframes settle { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
  @keyframes extend { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes appear { from { opacity: 0; } to { opacity: 1; } }
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .utility, .masthead, .footer, .sectionnav, .cta, .skip-link, .pub__toc, .filters, .subscribe, .crumbs, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .wrap { max-width: none; padding: 0; }
  .row__rail, .row__body, .pub__main, .profile__main { grid-column: 1 / -1; }
  .pagehead, .row, .pub { padding-block: 1rem; border: 0; }
  a { color: #000; text-decoration: underline; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  h1, h2, h3 { color: #000; break-after: avoid; }
  .figure, .defs__item, .entry, tr { break-inside: avoid; }
  .band--dark, .closing { background: #fff; color: #000; }
  .band--dark h2, .closing h2, .context__value, .context__name { color: #000; }
}
