/* Terrameritavi — public site styles
   Wayfinding system: each topic has one marker color, used for its signpost,
   tags, key-points rule and shelf heading. Everything else stays quiet. */

:root {
  --ink: #16233a;
  --ink-2: #3c4a5e;
  --paper: #ffffff;
  --mist: #f3f5f8;
  --silver: #e6eaf0;
  --rule: #c5cdd8;
  --link: #1a4fbf;
  --link-visited: #5a3a9e;
  --brass: #b07a1e;
  --focus: #ffbf47;
  --topic: #334155;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;

  --wrap: 75rem;
  --gutter: 1rem;
  --radius: 6px;
}

/* Reader-controlled text size (buttons in the header) */
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html[data-text="large"] { font-size: 112.5%; }
html[data-text="larger"] { font-size: 125%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
@media (min-width: 56rem) { body { font-size: 1.25rem; } :root { --gutter: 1.5rem; } }


img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ink);
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 650; line-height: 1.2; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 50rem; }
.wrap--list { max-width: 58rem; padding-bottom: 3rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--focus); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700; }
.skip-link:focus { top: 0.75rem; }
main:focus { outline: none; }

/* ---------------------------------------------------------------- buttons */
.btn, .search button, .textsize button, .tool {
  font: inherit; cursor: pointer;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.55rem 1.25rem;
  background: var(--ink); color: #fff; border: 2px solid var(--ink); border-radius: var(--radius);
  font-weight: 700; text-decoration: none; font-size: 1.0625rem;
}
.btn:hover { background: #24375a; border-color: #24375a; color: #fff; }
.btn--quiet { background: transparent; color: inherit; border-color: currentColor; }
.btn--quiet:hover { background: rgba(255,255,255,0.12); color: inherit; }
.btn--big { min-height: 3.5rem; padding: 0.7rem 2rem; font-size: 1.1875rem; }

/* ---------------------------------------------------------------- header */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead__row {
  display: grid; gap: 0.75rem 1.5rem; align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand size" "search search";
  padding-top: 0.9rem; padding-bottom: 0.9rem;
}
@media (min-width: 62rem) {
  .masthead__row { grid-template-columns: auto 1fr auto; grid-template-areas: "brand search size"; }
}
.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 0.7rem; color: var(--ink); text-decoration: none; }
.brand__mark { flex: none; color: var(--ink); }
.brand__text { display: flex; flex-direction: column; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: min(1.6rem, 5.4vw); line-height: 1.1; letter-spacing: -0.01em; }
.brand__text { min-width: 0; }
@media (max-width: 35.99rem) { .brand .brand__mark { width: 36px; height: 36px; } .brand { gap: 0.5rem; } }
@media (max-width: 47.99rem) { .masthead__row { column-gap: 0.75rem; } }
@media (max-width: 22.5rem) { .masthead__row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "brand" "size" "search"; } .brand__name { font-size: 1.5rem; } }
.brand__tag { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.3; display: none; }
@media (min-width: 36rem) { .brand__tag { display: block; } }
.brand:hover .brand__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }

.search { grid-area: search; display: flex; gap: 0.5rem; justify-self: stretch; min-width: 0; }
@media (min-width: 62rem) { .search { justify-self: end; width: min(100%, 26rem); } }
.search input {
  flex: 1 1 0; width: 100%; min-width: 0; min-height: 3rem; padding: 0.5rem 0.85rem;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  border: 2px solid var(--ink-2); border-radius: var(--radius); background: #fff;
}
.search input::placeholder { color: #5d6b7e; }
.search button {
  min-height: 3rem; padding: 0 1.1rem; border: 2px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff; font-weight: 700; font-size: 1.0625rem;
}
.search button:hover { background: #24375a; }

.textsize { grid-area: size; display: flex; align-items: center; gap: 0.35rem; }
.textsize__label { font-size: 0.9375rem; color: var(--ink-2); margin-right: 0.25rem; display: none; }
@media (min-width: 30rem) { .textsize__label { display: inline; } }
.textsize button {
  width: clamp(2.4rem, 10.5vw, 2.75rem); height: clamp(2.4rem, 10.5vw, 2.75rem); padding: 0; line-height: 1;
  border: 2px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--ink);
  font-family: var(--serif); font-weight: 700;
}
.textsize button:nth-of-type(1) { font-size: 1rem; }
.textsize button:nth-of-type(2) { font-size: 1.25rem; }
.textsize button:nth-of-type(3) { font-size: 1.55rem; }
.textsize button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.topicbar { background: var(--mist); border-top: 1px solid var(--silver); }
.topicbar__list {
  list-style: none; margin: 0 auto; display: flex; gap: 0 1.15rem;
  overflow-x: auto; scrollbar-width: thin; white-space: nowrap;
  padding-top: 0.15rem; padding-bottom: 0.15rem;
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
  mask-image: linear-gradient(to right, #000 85%, transparent);
}
@media (min-width: 75rem) { .topicbar__list { justify-content: space-between; -webkit-mask-image: none; mask-image: none; } }
.topicbar a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.9rem;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem;
  border-bottom: 4px solid transparent;
}
.topicbar a::before { content: ""; width: 0.8rem; height: 0.8rem; border-radius: 2px; background: var(--topic); flex: none; }
.topicbar a:hover { border-bottom-color: var(--rule); }
.topicbar a[aria-current="page"] { border-bottom-color: var(--topic); }

/* ---------------------------------------------------------------- common bits */
.topic-tag {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 1rem; font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: 0.4rem;
}
.topic-tag::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 2px; background: var(--topic); }
.topic-tag:hover { text-decoration: underline; }
.topic-tag--solid { background: var(--topic); color: #fff; padding: 0.3rem 0.75rem; border-radius: var(--radius); }
.topic-tag--solid::before { display: none; }
.topic-tag--solid:hover { color: #fff; }
.section-title { font-size: 1.5rem; margin-bottom: 1rem; }

.crumbs ol { list-style: none; margin: 0; padding: 1.1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 1rem; }
.crumbs li + li::before { content: "/"; margin: 0 0.5rem 0 0.25rem; color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }

/* ---------------------------------------------------------------- home: wayfinder */
.wayfinder { background: var(--ink); color: #fff; padding: 2.5rem 0 2.75rem; }
.wayfinder__title { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); line-height: 1.1; max-width: 22ch; }
.wayfinder__intro { font-size: 1.1875rem; max-width: 46rem; margin: 0.9rem 0 1.8rem; color: #dfe5ee; }
.signposts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
@media (min-width: 48rem) { .signposts { grid-template-columns: 1fr 1fr; gap: 0.85rem 1.25rem; } }
@media (min-width: 75rem) { .signposts { grid-template-columns: repeat(4, 1fr); } .signpost__q { font-size: 1.1875rem; } }
.signpost--start { --topic: var(--brass); background: transparent; border: 2px solid #3d5178; border-left: 0.6rem solid var(--brass); }
.signpost--start:hover { background: #213252; }
.signpost {
  display: flex; flex-direction: column; justify-content: center; gap: 0.3rem; height: 100%;
  min-height: 5.5rem; padding: 0.95rem 1.1rem 1rem 1.4rem;
  background: #213252; color: #fff; text-decoration: none;
  border-left: 0.6rem solid var(--topic); border-radius: 0 var(--radius) var(--radius) 0;
}
.signpost:hover { background: #2b4068; }
.signpost:hover .signpost__q { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
.signpost__q { font-family: var(--serif); font-weight: 600; font-size: 1.3125rem; line-height: 1.25; }
.signpost__meta { font-size: 1rem; color: #c9d3e1; }

/* ---------------------------------------------------------------- home: start here */
.starthere { padding: 2.75rem 0 1rem; }
.starthere__grid { display: grid; gap: 2.25rem; }
@media (min-width: 62rem) { .starthere__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 3rem; } }
.feature__media img { border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.feature__body { padding-top: 1.1rem; }
.feature__title { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem); margin-bottom: 0.6rem; }
.feature__title a, .card__title a, .shelf__title a { color: var(--ink); text-decoration: none; }
.feature__title a:hover, .card__title a:hover, .shelf__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.feature__excerpt { color: var(--ink-2); max-width: 40rem; }
.starthere__list { border-top: 4px solid var(--ink); padding-top: 1rem; }
.linklist { list-style: none; margin: 0; padding: 0; }
.linklist li { padding: 0.85rem 0 0.9rem 1rem; border-bottom: 1px solid var(--rule); border-left: 4px solid var(--topic); margin-bottom: 0.6rem; }
.linklist a { font-family: var(--serif); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; color: var(--ink); text-decoration: none; display: block; }
.linklist a:hover { text-decoration: underline; }
.linklist__topic { display: block; font-size: 0.9375rem; color: var(--ink-2); margin-top: 0.2rem; }

/* ---------------------------------------------------------------- home: topic shelves */
.shelf { padding: 2.5rem 0 1.25rem; }
.shelf__head { border-top: 6px solid var(--topic); padding-top: 1rem; margin-bottom: 1.5rem; display: grid; gap: 0.25rem 2rem; }
@media (min-width: 56rem) { .shelf__head { grid-template-columns: 1fr auto; align-items: end; } }
.shelf__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.shelf__desc { grid-column: 1; margin: 0.25rem 0 0; color: var(--ink-2); max-width: 46rem; }
.shelf__all { font-weight: 700; }
@media (min-width: 56rem) { .shelf__all { grid-column: 2; grid-row: 1 / span 2; align-self: end; } }
.shelf__grid { display: grid; gap: 1.75rem; }
@media (min-width: 56rem) { .shelf__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; } }
.shelf__more { display: grid; gap: 1.25rem; align-content: start; }

/* ---------------------------------------------------------------- cards */
.card { display: grid; gap: 0.9rem; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.card__body { min-width: 0; }
.card__title, .feature__title, .linklist a, .article__title, .signpost__q, .prose h2, .prose h3 { overflow-wrap: break-word; hyphens: auto; }
.shelf__grid > *, .starthere__grid > *, .related__grid > *, .list > * { min-width: 0; }
.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--silver); }
.card__title { font-size: 1.375rem; margin-bottom: 0.4rem; }
.card__excerpt { color: var(--ink-2); margin: 0; font-size: 1.0625rem; }
.card--lead .card__title { font-size: clamp(1.5rem, 1.2rem + 0.9vw, 1.85rem); }
.card--compact { grid-template-columns: min(7.5rem, 30vw) minmax(0, 1fr); align-items: start; gap: 1rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--rule); }
.card--compact:last-child { border-bottom: 0; }
.card--compact .card__title { font-size: 1.1875rem; line-height: 1.3; }
@media (min-width: 36rem) { .card--compact { grid-template-columns: 10rem minmax(0, 1fr); } }
.card--row { grid-template-columns: min(7rem, 28vw) minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.card--row .card__title { font-size: 1.25rem; line-height: 1.3; }
@media (min-width: 40rem) { .card--row { grid-template-columns: min(15rem, 32%) minmax(0, 1fr); gap: 1.5rem; } .card--row .card__title { font-size: 1.5rem; } }
.list .card--row:first-child { padding-top: 0.5rem; }

/* ---------------------------------------------------------------- promise band */
.promise { background: var(--mist); border-top: 1px solid var(--silver); margin-top: 2.5rem; padding: 2.25rem 0; }
.promise__row { display: grid; gap: 0.5rem 2.5rem; }
@media (min-width: 56rem) { .promise__row { grid-template-columns: 16rem 1fr; } .promise__row a { grid-column: 2; } }
.promise__title { font-size: 1.5rem; }
.promise p { margin: 0; max-width: 48rem; }
.promise a { font-weight: 700; }

/* ---------------------------------------------------------------- topic page */
.topichead { background: var(--mist); border-bottom: 6px solid var(--topic); padding-bottom: 2rem; margin-bottom: 1.75rem; }
.topichead .wrap { max-width: 58rem; }
.topichead__title { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); margin-top: 1rem; display: flex; align-items: center; gap: 0.85rem; }
.topichead__title::before { content: ""; width: 1.4rem; height: 1.4rem; border-radius: 3px; background: var(--topic); flex: none; }
.topichead__q { font-family: var(--serif); font-size: 1.375rem; margin: 0.75rem 0 0.4rem; }
.topichead__desc { color: var(--ink-2); max-width: 44rem; margin-bottom: 0.6rem; }
.topichead__count { font-weight: 700; margin: 0; }

/* ---------------------------------------------------------------- search, empty, 404 */
.plainhead { padding: 1.5rem 0 1rem; border-bottom: 1px solid var(--rule); margin-bottom: 0.5rem; }
.plainhead h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); margin-bottom: 0.5rem; }
.search--big { display: block; margin-top: 1rem; }
.search--big label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.search__row { display: flex; gap: 0.5rem; }
.search--big input { min-height: 3.5rem; font-size: 1.1875rem; }
.search--big button { min-height: 3.5rem; padding: 0 1.5rem; }
.empty { padding: 1.5rem 0; }
.topiclist { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: 0.6rem; }
@media (min-width: 40rem) { .topiclist { grid-template-columns: 1fr 1fr; } }
.topiclist a { display: block; padding: 0.75rem 1rem; border-left: 0.5rem solid var(--topic); background: var(--mist); font-weight: 700; color: var(--ink); text-decoration: none; border-radius: 0 var(--radius) var(--radius) 0; }
.topiclist a:hover { text-decoration: underline; }

.pager ul { list-style: none; padding: 0; margin: 2rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pager a, .pager span { display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0 1rem; border: 2px solid var(--rule); border-radius: var(--radius); text-decoration: none; font-weight: 700; color: var(--ink); }
.pager a:hover { border-color: var(--ink); }
.pager span[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------------------------------------------------------- article */
.article { padding-bottom: 1rem; }
.article__head { max-width: 50rem; padding: 1.25rem 0 1.5rem; }
.article__title { font-size: clamp(2.05rem, 1.35rem + 2.8vw, 3.05rem); line-height: 1.12; margin: 0.7rem 0 0.9rem; }
.article__dek { font-size: 1.3125rem; color: var(--ink-2); line-height: 1.5; margin-bottom: 1.1rem; }
.byline { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 1rem; color: var(--ink-2); }
.byline a { color: var(--ink-2); }
.article__tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.tool {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.95rem;
  border: 2px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--ink);
  font-size: 1rem; font-weight: 700; text-decoration: none;
}
.tool:hover { border-color: var(--ink); }
.article__figure { margin: 0 0 2rem; max-width: 66rem; }
.article__figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; background: var(--silver); }
.article__figure figcaption { font-size: 1rem; color: var(--ink-2); padding-top: 0.6rem; max-width: 50rem; }

.article__layout { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .article__layout { grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem); gap: 3rem; } }
.article__main { min-width: 0; }
.article__side { display: none; }
@media (min-width: 64rem) { .article__side { display: block; } .toc--inline { display: none; } }

.keypoints { border-left: 6px solid var(--topic); background: var(--mist); padding: 1.25rem 1.4rem 0.6rem; margin-bottom: 2rem; border-radius: 0 var(--radius) var(--radius) 0; }
.keypoints__title { font-size: 1.375rem; margin-bottom: 0.6rem; }
.keypoints ul { margin: 0 0 0.6rem; padding-left: 1.3rem; }
.keypoints li { margin-bottom: 0.55rem; }

.toc { font-size: 1.0625rem; }
.toc ol { margin: 0.5rem 0 0; padding-left: 1.4rem; }
.toc li { margin-bottom: 0.45rem; line-height: 1.4; }
.toc a { color: var(--ink); }
.toc--inline { border: 2px solid var(--rule); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 2rem; }
.toc--inline summary { font-weight: 700; cursor: pointer; min-height: 2rem; }
.toc--side { position: sticky; top: 1.25rem; border-top: 4px solid var(--topic); padding-top: 0.85rem; margin-bottom: 2rem; }
.toc__title { font-size: 1.25rem; }

.prose { max-width: 42rem; }
.prose h2 { font-size: clamp(1.55rem, 1.3rem + 0.7vw, 1.8rem); margin: 2.2em 0 0.6em; scroll-margin-top: 1rem; }
.prose h3 { font-size: 1.3rem; margin: 1.8em 0 0.5em; scroll-margin-top: 1rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.5em; padding-left: 0.2rem; }
.prose li::marker { color: var(--ink-2); }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.5em 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 4px solid var(--rule); font-family: var(--serif); font-size: 1.25rem; }
.prose a:visited { color: var(--link-visited); }

.sources { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 1.0625rem; }
.sources h2 { font-size: 1.375rem; margin-bottom: 0.6rem; }
.sources ul { padding-left: 1.3rem; margin: 0; }
.sources li { margin-bottom: 0.4rem; }
.notice { margin: 2rem 0; padding: 1.1rem 1.25rem 0.2rem; border: 2px solid var(--rule); border-radius: var(--radius); font-size: 1.0625rem; }
.notice p { margin-bottom: 0.9rem; }

.related { background: var(--mist); border-top: 1px solid var(--silver); padding: 2.5rem 0 1.5rem; margin-top: 1.5rem; }
.related__grid { display: grid; gap: 0; max-width: 58rem; }
.related .card--row { border-bottom-color: var(--rule); }

/* ---------------------------------------------------------------- ads */
.ad-slot { margin: 2.5rem 0; padding-top: 0.6rem; border-top: 1px solid var(--rule); }
.ad-slot[hidden] { display: none; }
.ad-slot__label { font-size: 0.9375rem; color: var(--ink-2); margin: 0 0 0.5rem; }
.ad-slot--sidebar { margin-top: 0; }

/* ---------------------------------------------------------------- info pages & forms */
.infopage { padding-bottom: 3rem; }
.infopage h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin: 0.75rem 0 0.4rem; }
.infopage__updated { color: var(--ink-2); font-size: 1rem; margin-bottom: 1.75rem; }
.infopage .prose { max-width: none; }

.choicebox { border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin-bottom: 2rem; }
.choicebox__status { font-weight: 700; }
.choicebox__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.choicebox .btn--quiet { color: var(--ink); }
.choicebox .btn--quiet:hover { background: var(--mist); }

.contactcard { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; padding: 1.25rem; background: var(--mist); border-radius: var(--radius); }
@media (min-width: 40rem) { .contactcard { grid-template-columns: 1fr 1fr; } }
.contactcard dt { font-weight: 700; }
.contactcard dd { margin: 0; overflow-wrap: anywhere; }

.form { margin-top: 1rem; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.3rem; }
.field__hint { margin: 0 0 0.4rem; color: var(--ink-2); font-size: 1.0625rem; }
.field__error { margin: 0 0 0.4rem; color: #a3161c; font-weight: 700; }
.field--error { border-left: 5px solid #a3161c; padding-left: 0.9rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 0.65rem 0.8rem; min-height: 3.1rem;
  border: 2px solid var(--ink-2); border-radius: var(--radius); background: #fff;
}
.field textarea { min-height: 10rem; resize: vertical; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formnote { border-radius: var(--radius); padding: 1rem 1.25rem 0.1rem; margin: 1rem 0 1.5rem; border: 3px solid; }
.formnote--ok { border-color: #1d6b3a; background: #eef8f1; }
.formnote--error { border-color: #a3161c; background: #fdf0f0; }

/* ---------------------------------------------------------------- footer */
.sitefoot { background: var(--ink); color: #e6ebf2; margin-top: 3rem; padding: 2.75rem 0 1.5rem; font-size: 1.0625rem; }
.page-home .sitefoot, .page-article .sitefoot { margin-top: 0; }
.sitefoot a { color: #fff; }
.sitefoot__grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .sitefoot__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 70rem) { .sitefoot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.brand--foot { color: #fff; margin-bottom: 0.75rem; }
.brand--foot .brand__mark { color: var(--ink); }
.brand--foot .brand__name { font-size: 1.4rem; }
.sitefoot__head { font-size: 1.1875rem; color: #fff; margin-bottom: 0.6rem; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; }
.sitefoot li { margin-bottom: 0.5rem; }
.sitefoot__legal { margin-top: 2.25rem; font-size: 1rem; color: #c9d3e1; }
.sitefoot__legal::before { content: ""; display: block; border-top: 1px solid #34466a; margin-bottom: 1.25rem; }
.sitefoot__legal p { max-width: 60rem; }
.sitefoot a:focus-visible { box-shadow: 0 0 0 5px #fff; }

/* ---------------------------------------------------------------- consent bar */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--ink); color: #fff; border-top: 4px solid var(--focus); padding: 1rem 0; font-size: 1.0625rem; }
.consent[hidden] { display: none; }
.consent__row { display: grid; gap: 0.75rem; align-items: center; }
@media (min-width: 56rem) { .consent__row { grid-template-columns: 1fr auto; } }
.consent p { margin: 0; }
.consent a { color: #fff; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.consent .btn { background: #fff; color: var(--ink); border-color: #fff; }
.consent .btn--quiet { background: transparent; color: #fff; border-color: #fff; }

/* ---------------------------------------------------------------- print */
@media print {
  html { font-size: 11pt; }
  body { font-size: 1rem; }
  .masthead, .topicbar, .sitefoot, .article__tools, .article__side, .ad-slot, .related, .toc, .consent, .crumbs, .skip-link { display: none !important; }
  .article__layout { display: block; }
  .prose { max-width: none; }
  a { color: #000; }
  .sources a::after { content: " (" attr(href) ")"; font-size: 0.85em; overflow-wrap: anywhere; }
  .article__figure img { max-height: 9cm; width: auto; }
}
