/* Contact page. Builds on front.css tokens. */
.contact-wrap { padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(4rem, 8vw, 7rem); }
.contact-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(3rem, 1.6rem + 5vw, 5.6rem); line-height: .95; letter-spacing: -.025em; margin: 1.2rem 0 1.2rem; color: var(--ink); }
.contact-title em { font-style: italic; color: var(--accent); }
.contact-lead { font-size: 1.12rem; line-height: 1.65; color: var(--text); max-width: 30rem; }
.contact-facts { margin: 2.4rem 0 0; border-top: 1px solid var(--ink); }
.contact-facts > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-facts dt { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.contact-facts dd { margin: 0; color: var(--ink-2); line-height: 1.55; }
.contact-facts a { color: var(--accent-ink); border-bottom: 1px solid rgba(var(--accent-rgb), .3); }
@media (max-width: 575.98px) { .contact-facts > div { grid-template-columns: 1fr; gap: .25rem; } }

.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3.5vw, 2.6rem); box-shadow: var(--shadow); }
.contact-card .form-row-2 { margin-bottom: .75rem; }
.cvf .contact-card .form-floating > textarea.form-control { height: 210px; min-height: 210px; padding-top: 1.9rem; resize: vertical; line-height: 1.55; }
.msg-count { text-align: right; font-family: var(--font-mono); font-size: .7rem; color: var(--muted); margin-top: .35rem; }

.topic-set { margin: 1.25rem 0 1rem; padding: 0; border: 0; }
.topic-set legend { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; float: none; width: auto; padding: 0; }
.topic-grid { display: flex; flex-wrap: wrap; gap: .45rem; }
.topic { position: relative; margin: 0; cursor: pointer; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span { display: inline-flex; align-items: center; padding: .5rem .85rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; color: var(--ink-2); background: var(--card); transition: background .15s ease, color .15s ease, border-color .15s ease; }
.topic:hover span { border-color: var(--ink); }
.topic input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.topic input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.recaptcha-note { font-size: .74rem; color: var(--muted); text-align: center; margin: 1rem 0 0; line-height: 1.5; }
.recaptcha-note a { color: var(--muted); text-decoration: underline; }
.grecaptcha-badge { visibility: hidden !important; } /* allowed when the notice above is shown */
#contactSubmit[disabled] { opacity: .75; }

.contact-sent { text-align: center; padding: clamp(1.5rem, 4vw, 3rem) .5rem; }
.contact-sent .sent-mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.4rem; background: var(--ink); color: var(--paper); font-size: 1.8rem; }
.contact-sent h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem); line-height: 1.05; letter-spacing: -.015em; }
.contact-sent p { color: var(--muted); max-width: 26rem; margin: .8rem auto 0; }
