:root {
  --bg: #f5f7f4;
  --paper: #ffffff;
  --ink: #20251f;
  --muted: #687065;
  --line: #d8e0d5;
  --accent: #ad5427;
  --accent-dark: #723512;
  --green: #416a58;
  --green-ink: #10231b;
  --soft-green: #e9f0e8;
  --soft-warm: #f5ece4;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
}

a {
  color: var(--green-ink);
  text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.site-header {
  align-items: center;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand img {
  display: block;
  height: 38px;
  object-fit: contain;
  width: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  font-weight: 780;
}

nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  margin: 0 auto;
  max-width: var(--max);
  padding: 76px 24px 64px;
}

.eyebrow,
.panel-kicker {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin-top: 0;
}

h1 {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 8vw, 98px);
  font-weight: 540;
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 24px;
}

h2 {
  border-top: 1px solid var(--line);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 520;
  letter-spacing: 0;
  line-height: 1.05;
  margin: 58px 0 22px;
  padding-top: 34px;
}

h3 {
  color: var(--green);
  font-size: 24px;
  line-height: 1.25;
  margin: 36px 0 14px;
}

h4 {
  font-size: 21px;
  line-height: 1.25;
  margin: 30px 0 10px;
}

h5 {
  color: var(--accent-dark);
  font-size: 16px;
  letter-spacing: 0.02em;
  margin: 24px 0 8px;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: clamp(21px, 2.4vw, 29px);
  max-width: 760px;
}

.hero-panel {
  align-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(32, 37, 31, 0.1);
  padding: 22px;
}

.download-link {
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 14px 15px;
  position: relative;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.download-link.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.download-link span {
  font-weight: 850;
}

.download-link small {
  color: inherit;
  opacity: 0.78;
}

.download-link:hover,
.download-link:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(32, 37, 31, 0.12);
  transform: translateY(-1px);
}

.download-link:hover span,
.download-link:focus-visible span {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.download-link.primary:hover,
.download-link.primary:focus-visible {
  border-color: var(--accent-dark);
  box-shadow: 0 12px 28px rgba(114, 53, 18, 0.2);
}

.citation-note {
  background: var(--soft-green);
  border-radius: 7px;
  color: var(--green-ink);
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 15px;
}

.people-strip {
  margin: -28px auto 54px;
  max-width: var(--max);
  padding: 0 24px;
}

.people-strip-inner {
  background: color-mix(in srgb, var(--paper) 88%, var(--soft-green));
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 18px 28px;
  grid-template-columns: minmax(240px, 0.85fr) repeat(2, minmax(0, 1fr));
  padding: 22px;
}

.people-group {
  min-width: 0;
}

.people-group p {
  margin: 0;
}

.people-group p:not(.mini-kicker) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.mini-kicker {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.people-group a {
  font-weight: 650;
}

.people-group.orgs {
  grid-column: 2 / -1;
}

.content-shell,
.site-footer {
  margin: 0 auto;
  max-width: var(--max);
  padding: 0 24px 74px;
}

#wikitext {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 54px rgba(32, 37, 31, 0.08);
  padding: clamp(22px, 4vw, 52px);
}

#wikitext > h2:first-of-type {
  margin-top: 0;
}

#wikitext > table:first-child {
  background: var(--soft-warm) !important;
  border: 1px solid #e3cdbb !important;
  border-radius: 8px;
  display: block;
  float: none;
  margin: 0 0 34px;
  overflow: hidden;
  width: 100% !important;
}

#wikitext > table:first-child tbody,
#wikitext > table:first-child tr,
#wikitext > table:first-child td {
  display: block;
  width: 100% !important;
}

#wikitext > table:first-child h2 {
  border: 0;
  margin: 0;
  padding: 0;
}

#wikitext > table:first-child td {
  border: 0;
  padding: 18px 22px;
}

#wikitext p {
  max-width: 860px;
}

#wikitext ol,
#wikitext ul {
  max-width: 900px;
  padding-left: 28px;
}

#wikitext li + li {
  margin-top: 5px;
}

.vspace {
  margin-top: 18px;
}

.rfloat {
  float: right;
  margin: 4px 0 18px 24px;
}

.frame {
  background: #fbfcfa !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(32, 37, 31, 0.08);
  margin: 28px auto !important;
  max-width: 100%;
  overflow: hidden;
  padding: 12px !important;
}

.frame img,
#wikitext img[src^="media/drive-images"],
#wikitext img[src^="media/missing"] {
  border-radius: 5px;
  display: block;
  margin: 0 auto;
}

.frame p {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
  max-width: none;
}

.indent {
  color: var(--muted);
  margin-left: 22px;
}

.table-scroller {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  display: block;
  margin: 24px 0;
  overflow-x: auto;
  width: 100%;
}

th,
td {
  border: 1px solid var(--line) !important;
  padding: 10px 12px;
  vertical-align: top;
}

th {
  background: var(--soft-green);
  color: var(--green-ink);
  font-size: 13px;
  text-transform: uppercase;
}

td {
  background: #ffffff;
}

td[align="center"],
th[align="center"] {
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: space-between;
  padding-top: 24px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .people-strip-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

  .brand img {
    height: 30px;
  }

  #wikitext {
    padding: 22px;
  }

  .rfloat {
    float: none;
    margin: 18px 0;
  }

  .people-strip {
    margin-top: -24px;
  }

  .people-group.orgs {
    grid-column: auto;
  }
}


.reference-list {
  counter-reset: references;
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 20px 0 0;
  max-width: 940px;
  padding: 0 !important;
}

.reference-list li {
  align-items: start;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(135px, 180px) 1fr;
  margin: 0;
  padding: 12px 14px;
}

.reference-list .ref-key {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.reference-list .ref-text {
  min-width: 0;
}

@media (max-width: 680px) {
  .reference-list li {
    grid-template-columns: 1fr;
  }
}
