/* /contact. Shared parts: .page-hero, .wrap (page gutter), .sec-head, .tile and .framed glass cards, .c-ico icon tile, .btn pill, .field controls and focus ring (forms.css), .qf-label / .qf-choice / .qf-hint.
   Compact layout (owner brief 2026-11-05): ONE continuous grid of mailbox cards and a two-column form. Cards are static; the form engine is forms.mjs (contact.mjs). Nothing here moves or shifts on load.
   Page-local compact sizes (not site tokens; every deviation is a custom property here, set once): body 13 px, labels 11 px, small buttons and addresses 12 px, icon tile 28 px, small Copy button 26 px, fields 40 px. */
.ct-sec { --ct-font-body: 13px; --ct-font-label: 11px; --ct-font-btn: 12px; --ct-ico: 28px; --ct-copy-h: 26px; --ct-field-h: 40px; --ct-gap: 12px; --ct-pad: 14px; --ct-row: 14px;
  padding-block: 0 clamp(1.5rem, 3vw, 2.25rem); }
.ct-sec:last-of-type { padding-bottom: var(--section-y); }
/* the same page gutter as every section of the site: .wrap carries the padding, stated here too so no rule can drop it */
.ct-sec > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; padding-inline: var(--gutter); }
.ct-sec .sec-head { margin-bottom: 0; }

/* mailbox cards: one grid, four equal columns on wide screens */
.ct-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ct-gap); }
@media (min-width: 40rem) { .ct-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .ct-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .ct-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ct-card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0; min-width: 0; padding: var(--ct-pad); }
.ct-card__hd { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: var(--ct-ico); }
.ct-card .c-ico { flex: none; width: var(--ct-ico); height: var(--ct-ico); border-radius: 8px; }
.ct-card .c-ico svg { width: 16px; height: 16px; }
.ct-card h4 { margin: 0; font-size: var(--text-card-title-size); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; white-space: nowrap; }
.ct-tag { margin-left: auto; padding-left: 6px; color: var(--text-dim); font: 500 var(--ct-font-label)/1 var(--mono); font-variant: small-caps; text-transform: lowercase; letter-spacing: .06em; white-space: nowrap; }
.ct-card > .ct-purpose { margin: 2px 0 3px; color: var(--text-dim); font-size: var(--ct-font-body); line-height: 1.4; }
.ct-pol.link-arrow { margin: 0 0 0 auto; padding-left: 6px; font-size: var(--ct-font-body); line-height: 1.2; white-space: nowrap; }
.ct-card > .ct-addr, .ct-done .ct-addr { display: flex; align-items: center; gap: 6px; margin-top: 5px; min-width: 0; max-width: 100%; }
.ct-addr a, .ct-addr code { min-width: 0; color: var(--text); font: 500 var(--ct-font-btn)/1.3 var(--mono); letter-spacing: -.01em; text-decoration: underline; text-decoration-color: var(--border-hover); text-underline-offset: 3px; overflow-wrap: anywhere; }
.ct-addr code { text-decoration: none; }
.ct-addr a:hover { text-decoration-color: var(--brand-blue); }
.ct-addr a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.ct-addr .btn { --btn-h: var(--ct-copy-h); --pill-h: var(--ct-copy-h); flex: none; margin-left: auto; height: var(--ct-copy-h); min-height: 0; min-width: 54px; padding: 0 8px; font-size: var(--ct-font-btn); }

/* the form card: the intro sentence above, then the form as a two-column grid across the full card width */
.ct-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem 2rem; padding: 1.25rem; border-radius: var(--r-panel); min-width: 0; }
.ct-intro { margin: 0; color: var(--text-dim); font-size: var(--ct-font-body); line-height: 1.5; }
.ct-form__main { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ct-row) var(--ct-gap); align-content: start; min-width: 0; }
@media (max-width: 40rem) { .ct-form__main { grid-template-columns: minmax(0, 1fr); } }
.ct-full { grid-column: 1 / -1; }
.ct-form__main .field { gap: .3rem; min-width: 0; }
.ct-form__main .qf-label { font-size: var(--text-small-size); line-height: 1.3; }
.ct-form__main .qf-req { color: var(--text-dim); }
.ct-form__main .qf-opt-tag { font-weight: 400; color: var(--text-faint); }
.ct-form__main .field input, .ct-form__main .field select { height: var(--ct-field-h); padding-block: 0; line-height: 1.2; }
.ct-form__main .field textarea { min-height: 0; padding-block: .55rem 1.6rem; line-height: 1.45; resize: vertical; }
.ct-ta { position: relative; display: grid; }
.ct-count { position: absolute; right: 10px; bottom: 6px; margin: 0; text-align: right; pointer-events: none; line-height: 1.2; }
.ct-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 10px 16px; min-width: 0; }
.ct-bar .qf-group { flex: 0 1 auto; margin: 0; }
.ct-bar .qf-choice { min-height: 0; padding: 0; border: 0; background: none; border-radius: 4px; align-items: center; font-size: var(--ct-font-body); }
.ct-bar .qf-choice input { margin: 0; }
.ct-bar .qf-choice:has(input[aria-invalid="true"]) input { outline: 2px solid var(--invalid); outline-offset: 2px; }
.ct-bar .qf-choice a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* errors: neutral text with an icon; the field border carries the state */
.ct-err { display: flex; align-items: flex-start; gap: .4rem; margin: 0; color: var(--text); font-size: var(--ct-font-body); line-height: 1.4; }
.ct-err[hidden], .ct-note[hidden], .ct-done[hidden] { display: none; }
.ct-err svg, .ct-note svg, .ct-done__t svg { flex: none; width: 1rem; height: 1rem; margin-top: .1rem; }
.ct-err svg { color: var(--invalid); }
.ct-form__main input[aria-invalid="true"], .ct-form__main textarea[aria-invalid="true"], .ct-form__main select[aria-invalid="true"] { border-color: var(--invalid); }
.ct-note { display: flex; align-items: flex-start; gap: .5rem; margin: 0; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--r-control); background: rgba(255, 255, 255, .03); color: var(--text-dim); font-size: var(--ct-font-body); line-height: 1.4; }
.ct-note svg { color: var(--notice); }
/* honeypot: out of sight and out of the accessibility tree (also aria-hidden, tabindex -1 in the markup) */
.ct-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ct-done { display: grid; gap: .5rem; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: var(--r-control); background: rgba(255, 255, 255, .03); outline: none; }
.ct-done:focus-visible { box-shadow: 0 0 0 3px rgba(138, 180, 255, .25); }
.ct-done__t { display: flex; align-items: flex-start; gap: .5rem; margin: 0; color: var(--text); font-size: var(--ct-font-body); line-height: 1.45; }
.ct-done__t svg { color: var(--valid); }
.ct-done .qf-hint { margin: 0; }
.ct-fine { margin: 0; color: var(--text-faint); font-size: var(--text-small-size); line-height: 1.5; }
.ct-fine a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
@media (max-width: 40rem) { .ct-actions { width: 100%; } .ct-actions .btn { max-width: 100%; } .ct-form { padding: 1rem; } }

/* sending state: the Send button keeps its size (no layout shift); quiet text links of the result cards */
.ct-actions .btn { min-width: 7.5rem; justify-content: center; }
.ct-actions .btn[disabled] { cursor: progress; }
.ct-done__act { margin: 0; font-size: var(--ct-font-body); line-height: 1.4; }
.ct-done__act a, .ct-link { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-hover); }
.ct-link { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.ct-done__act a:hover, .ct-link:hover { text-decoration-color: var(--brand-blue); }
.ct-done__act a:focus-visible, .ct-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.ct-done a { color: inherit; }
