/* =====================================================================
   Voldebug: inner pages. Components used by every page except the home
   page. Builds on v2.css (tokens, header, footer, .btn, .link, .rows).
   ===================================================================== */

/* ---------------------------- page head ----------------------------- */
.pagehead { padding: calc(var(--hd) + clamp(40px, 6vw, 88px)) 0 clamp(36px, 5vw, 72px); border-bottom: 1px solid var(--rule); }
.pagehead--bare { padding: var(--hd) 0 0; border: 0; }
.pagehead__title { font-size: clamp(40px, 6vw, 88px); line-height: .98; letter-spacing: -.025em; font-stretch: 118%; max-width: 16ch; }
.pagehead__lede { margin-top: 24px; max-width: 36em; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--ink-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 22px; font-size: 14px; color: var(--mute); }
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.crumbs [aria-current] { color: var(--ink-2); }

/* ------------------------------ sections ---------------------------- */
.sect { padding: clamp(56px, 7vw, 104px) 0; }
.sect + .sect { border-top: 1px solid var(--rule); }
.sect--tint { background: var(--paper-2); }
.sect__title { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.02; letter-spacing: -.02em; font-stretch: 114%; margin-bottom: clamp(24px, 3vw, 44px); }
.sect__intro { max-width: 40em; color: var(--ink-2); margin-bottom: clamp(24px, 3vw, 40px); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 20px; }
.muted { color: var(--mute); }

/* -------------------------------- prose ----------------------------- */
.prose { max-width: 46em; font-size: 18px; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -.015em; font-stretch: 110%; margin-top: 2em; }
.prose h3 { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; margin-top: 1.7em; }
.prose h4 { font-size: 18px; margin-top: 1.5em; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--green); }
.prose a:hover { color: var(--green-d); }
.prose img { height: auto; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--green); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose code { font: 15px/1.4 ui-monospace, Menlo, monospace; background: var(--paper-2); padding: 2px 6px; }
.prose pre { overflow-x: auto; background: var(--paper-2); padding: 16px; }

/* --------------------------- cards and grids ------------------------ */
.grid { display: grid; gap: clamp(20px, 2.5vw, 36px); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--rule); padding-top: 18px; }
.card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); border: 1px solid var(--rule); margin-bottom: 18px; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.card:hover .card__img img, .card:hover .card__img img { transform: scale(1.03); }
.card__meta { font-size: 14px; color: var(--mute); margin-bottom: 6px; }
.card__title { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.2; font-weight: 650; font-stretch: 106%; }
.card__title a { text-decoration: none; color: var(--ink); }
.card__title a:hover { color: var(--green-d); }
.card__text { margin-top: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.card__foot { margin-top: auto; padding-top: 16px; font-size: 15px; }
.card--person .card__img { aspect-ratio: 4 / 5; }

.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-block; padding: 3px 10px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.chip--on, .chip[aria-current] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--ink); }

.facts-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; font-size: 16px; }
.facts-list dt { color: var(--mute); }
.facts-list dd { margin: 0; color: var(--ink); }

/* ------------------------------- forms ------------------------------ */
.form { display: grid; gap: 20px; max-width: 42em; }
.form--wide { max-width: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font-size: 15px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 14px; color: var(--mute); font-weight: 400; }
.v2 input[type=text], .v2 input[type=email], .v2 input[type=tel], .v2 input[type=url], .v2 input[type=number],
.v2 input[type=password], .v2 input[type=date], .v2 input[type=search], .v2 .form-control, .v2 select, .v2 textarea {
    width: 100%; min-height: 50px; padding: 12px 14px; background: transparent; color: var(--ink);
    border: 1px solid rgba(239, 236, 228, .3); border-radius: 2px; font: inherit; font-size: 16px; transition: border-color .2s, background-color .2s;
}
.v2 textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.v2 select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.v2 select option { background: var(--paper-2); color: var(--ink); }
.v2 input:focus, .v2 select:focus, .v2 textarea:focus { outline: none; border-color: var(--green); background: var(--paper-2); }
.v2 ::placeholder { color: var(--mute); opacity: 1; }
.v2 input[type=file] { color: var(--ink-2); font-size: 15px; }
.v2 input[type=file]::file-selector-button { margin-right: 12px; padding: 10px 14px; background: transparent; color: var(--ink); border: 1px solid rgba(239, 236, 228, .3); border-radius: 2px; font: 600 14px 'Archivo', sans-serif; cursor: pointer; }
.v2 input[type=checkbox], .v2 input[type=radio] { accent-color: var(--green); width: 18px; height: 18px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink-2); }
button.btn, input.btn { border: 0; cursor: pointer; font-family: inherit; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(239, 236, 228, .4); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { height: 42px; padding: 0 16px; font-size: 15px; }

.alert { padding: 14px 18px; border: 1px solid var(--rule); border-left: 3px solid var(--green); background: var(--paper-2); color: var(--ink); font-size: 16px; }
.alert--error { border-left-color: #E5654F; }
.alert + .form, .alert + .alert { margin-top: 20px; }

/* captcha_field() and other legacy snippets emit Bootstrap-style names */
.form-group { display: grid; gap: 8px; margin: 0; }
.form-group label { font-size: 15px; font-weight: 600; color: var(--ink); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------ tables ------------------------------ */
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl th, .tbl td { text-align: left; padding: 14px 14px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { font-size: 14px; font-weight: 600; color: var(--mute); }

/* ---------------------------- pager, misc --------------------------- */
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--rule); color: var(--ink-2); text-decoration: none; font-size: 15px; }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager [aria-current], .pager .is-current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.figure { margin: 0; }
.figure img { width: 100%; height: auto; }
.figure figcaption { margin-top: 10px; font-size: 14px; color: var(--mute); }
.embed { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); }
.embed iframe, .embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.notfound { text-align: left; padding: clamp(40px, 8vw, 120px) 0; }

/* ------------------------------ responsive -------------------------- */
@media (max-width: 1000px) {
    .grid, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split, .split--even { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .grid, .grid--2, .grid--4 { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; }
    .facts-list { grid-template-columns: 1fr; gap: 2px; }
    .facts-list dd { margin-bottom: 12px; }
    .prose { font-size: 17px; }
}
