/* contact: the Contact page at /about/contact (ext/contact.js). The form in a white card beside the ways to reach
   us; then the FAQ toggle list (.cb-det, from ext/blocks.css) beside the office hours. --b- tokens only; section
   heads follow /about/partners (.ptn-sh): a display h2 and one line, no eyebrow. */
div.ct { padding-bottom: clamp(var(--sp-8), 8vw, var(--sp-13)); }  /* div only: card titles are span.ct */
.ct-main { padding-top: var(--sp-section); }
.ct-grid, .ct-more { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(var(--sp-4), 4vw, var(--sp-7)); align-items: start; }
.ct-sec { padding-top: var(--sp-section); }

.ct-sh { display: flex; flex-direction: column; gap: var(--sp-head-desc); margin-bottom: var(--sp-head); }
.ct-sh h2, .ct-fh h2 { margin: 0; font: 500 var(--h-section)/1.1 var(--font-display); letter-spacing: -0.015em; color: var(--b-ink); }
.ct-sh p, .ct-fh p { margin: 0; max-width: 40em; color: var(--b-ink-2); font-size: 16px; line-height: 1.5; }

/* ---------------------------------------------------------------- the form card */
.ct .ct-form { padding: clamp(var(--sp-3), 3.4vw, var(--sp-6)); border-radius: 28px; background: var(--b-surface); box-shadow: inset 0 0 0 1px var(--b-rule), 0 18px 40px -28px rgba(var(--b-shadow), .28); }
.ct-fh { display: flex; flex-direction: column; gap: var(--sp-head-desc); margin-bottom: var(--sp-head); }
.ct-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--sp-2-5); }
.ct-form .field { margin-bottom: var(--sp-2-5); gap: var(--sp-1); }
.ct-form .field > label:not(.check) { font-size: 14.5px; font-weight: 600; color: var(--b-ink); }
.ct-form .field .opt-hint { font-weight: 400; color: var(--b-ink-3); }
.ct-form .hint { margin: -2px 0 0; font-size: 14px; line-height: 1.45; color: var(--b-ink-3); }
.ct-form .input, .ct-form .select { min-height: 48px; padding: var(--sp-1-5) var(--sp-2); border-color: var(--b-control); border-radius: 12px; background-color: var(--b-surface); color: var(--b-ink); transition: border-color .15s, box-shadow .15s; }
.ct-form .input:hover, .ct-form .select:hover { border-color: var(--b-ink-3); }
.ct-form .input:focus, .ct-form .select:focus { border-color: var(--b-ink); }
.ct-form textarea.input { min-height: 168px; line-height: 1.55; resize: vertical; }
.ct-form .input[aria-invalid="true"] { border-color: var(--b-primary); background-color: var(--b-tint-50); }
.ct-form .err { color: var(--b-primary); font-size: 14px; font-weight: 600; }
.ct-form .check { font-size: 15px; line-height: 1.5; color: var(--b-ink-2); }
.ct-form .check a { color: var(--b-primary); }
.ct-form .check input[aria-invalid="true"] { border-color: var(--b-primary); box-shadow: 0 0 0 3px var(--b-tint-100); }
.ct-consent { margin-top: var(--sp-0-5); }
.ct-send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1-5) var(--sp-2-5); margin-top: var(--sp-1); padding-top: var(--sp-3); border-top: 1px solid var(--b-rule); }
.ct-fine { margin: 0; font-size: 14px; line-height: 1.45; color: var(--b-ink-3); }

/* on a wide screen the form stays in view while the longer column beside it scrolls */
/* the banner and the floating nav take ~120px, so the card parks below them, and a jump to it lands there too */
.ct .ct-form { scroll-margin-top: 136px; }
@media (min-width: 961px) and (min-height: 860px) { .ct .ct-form { position: sticky; top: 136px; } }

/* the success state, in place of the fields */
.ct-ok { display: grid; justify-items: start; gap: var(--sp-2); padding: clamp(var(--sp-1), 2vw, var(--sp-3)) 0; }
/* focus lands here so screen readers read it; it is not a control, so it draws no ring */
.ct-ok:focus, .ct-ok:focus-visible { outline: none; }
.ct-ok-i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--b-ok-bg); color: var(--b-ok-ink); box-shadow: inset 0 0 0 1px var(--b-ok-line); }
.ct-ok-i .ico { width: 26px; height: 26px; }
.ct-ok h2 { margin: var(--sp-1) 0 0; font: 500 clamp(1.5rem, 2.2vw, 1.9rem)/1.15 var(--font-display); letter-spacing: -0.015em; color: var(--b-ink); }
.ct-ok > p { margin: 0; max-width: 36em; font-size: 16px; line-height: 1.55; color: var(--b-ink-2); }
.ct-ok > p b { color: var(--b-ink); font-weight: 600; overflow-wrap: anywhere; }
.ct-ok-sum { display: grid; gap: 0; width: 100%; max-width: 36em; margin: var(--sp-0-5) 0; border-top: 1px solid var(--b-rule); }
.ct-ok-sum > div { display: grid; grid-template-columns: 9em 1fr; gap: var(--sp-1-5); padding: var(--sp-1-5) 0; border-bottom: 1px solid var(--b-rule); }
.ct-ok-sum dt { font-size: 14px; color: var(--b-ink-3); }
.ct-ok-sum dd { margin: 0; font-size: 15px; color: var(--b-ink); overflow-wrap: anywhere; }
.ct-again { margin-top: var(--sp-1); box-shadow: inset 0 0 0 1px var(--b-rule-2); }

/* ---------------------------------------------------------------- ways to reach us: house tile cards (.mcard) */
.ct .mcards { margin: 0; }
.ct-desks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* the desk card holds two actions, so it lifts like a.nc but is a div: the mailto covers it, the button sits above */
.ct-desk > .nc:is(:hover, :focus-within) { transform: translateY(-3px); filter: drop-shadow(0 16px 16px rgba(var(--b-shadow), .1)); }
.ct-mail { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ct-mail > span { white-space: nowrap; }  /* breaks only before the @ */
.ct-mail::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ct-desk > .nc:hover .ct-mail { color: var(--b-primary); text-decoration: underline; text-underline-offset: .2em; }
.ct-mail:focus-visible { outline: none; }
.ct-mail:focus-visible::after { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.ct-use { position: relative; z-index: 2; align-self: flex-start; min-height: 32px; font-size: 14px; color: var(--ink-3); text-decoration-color: var(--b-rule-2); }
.ct-use:hover { color: var(--ink); text-decoration-color: currentColor; }
.ct-office > .nc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: center; }
.ct-office h3 { margin-bottom: var(--sp-1); }
.ct-else .ct-sh { margin-top: var(--sp-6); }
.ct-office address { font-style: normal; font-size: 16px; line-height: 1.55; color: var(--ink); }
.ct-office p { margin-top: var(--sp-1); padding-right: 0; font-size: 15px; color: var(--ink-3); }
.ct-map { position: relative; width: 104px; }
.ct-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.ct-map-land { fill: var(--b-tint-50); stroke: var(--ink-2); stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ct-map-halo { fill: var(--b-accent); opacity: .18; }
.ct-map-pin { fill: var(--b-primary); }
.ct-map-lab { position: absolute; transform: translate(10px, -50%); font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.ct-links { grid-template-columns: minmax(0, 1fr); }
/* the drawings' small movements while a card is hovered or focused (the expert role icons' keyframes) */
@media (prefers-reduced-motion: no-preference) {
  .ct :is(.nc, .ct-desk):is(:hover, :focus-within) .r-hop { animation: dm-hop 1.6s ease-in-out infinite; }
  .ct :is(.nc, .ct-desk):is(:hover, :focus-within) .r-pop { animation: dm-pop 1.6s ease-in-out infinite; }
  .ct :is(.nc, .ct-desk):is(:hover, :focus-within) .r-wave { animation: en-grow 1.2s ease-in-out infinite; }
  .ct :is(.nc, .ct-desk):is(:hover, :focus-within) .r-draw * { animation: dm-draw 2.4s ease-in-out infinite; }
}

/* ---------------------------------------------------------------- FAQ and hours */
.ct-faq .cb-det:first-child { border-top: 1px solid var(--b-rule); }
.ct-hours { position: relative; padding: clamp(var(--sp-3), 3vw, var(--sp-4)); border-radius: 28px; background: var(--b-ink-surface); color: var(--b-ink-surface-ink); }
.ct-hours-i { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--sp-2); border-radius: 50%; background: color-mix(in srgb, var(--b-ink-surface-ink) 10%, transparent); color: var(--b-accent-on-dark); }
.ct-hours-i .ico { width: 22px; height: 22px; }
.ct-hours h2 { margin: 0 0 var(--sp-2); font: 500 var(--h-section)/1.15 var(--font-display); letter-spacing: -0.015em; color: var(--b-ink-surface-ink); }
.ct-hours dl { margin: 0; border-top: 1px solid color-mix(in srgb, var(--b-ink-surface-ink) 16%, transparent); }
.ct-hours dl > div { display: grid; gap: 2px; padding: var(--sp-1-5) 0; border-bottom: 1px solid color-mix(in srgb, var(--b-ink-surface-ink) 16%, transparent); }
.ct-hours dt { font: 500 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--b-ink-surface-ink) 72%, transparent); }
.ct-hours dd { margin: 0; font-size: 15.5px; line-height: 1.45; }
.ct-hours > p { margin: var(--sp-2) 0 0; font-size: 14px; line-height: 1.5; color: color-mix(in srgb, var(--b-ink-surface-ink) 78%, transparent); }

@media (max-width: 960px) {
  .ct-grid, .ct-more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ct-pair { grid-template-columns: minmax(0, 1fr); }
  .ct .ct-form { border-radius: 22px; }
  .ct-send .btn-arrow { width: 100%; justify-content: space-between; }
  .ct-desks { grid-template-columns: minmax(0, 1fr); }
  .ct-ok-sum > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-form .input, .ct-form .select { transition: none; }
}

/* The card beside the form: desks as rows (space, no rules), then the office */
.ct-info { padding: var(--sp-3); border-radius: 24px; background: var(--surface); box-shadow: 0 0 0 1px rgba(var(--b-shadow), .06); }
.ct-info > h2 { margin: 0; font: 500 var(--h-section)/1.1 var(--font-display); letter-spacing: -0.015em; }
.ct-info-l { margin: var(--sp-1) 0 0; color: var(--ink-2); }
.ct-info .ct-desks { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin: var(--sp-3) 0 0; padding: 0; }
.ct-desk { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--sp-2); align-items: start; }
.ct-desk .d-ic { width: 44px; height: 44px; padding: 6px; box-sizing: border-box; border-radius: 12px; background: var(--paper); }
.ct-desk h3 { margin: 0; font-size: 16px; font-weight: 600; }
.ct-desk p { margin: 2px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ct-desk-acts { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-0-5) var(--sp-2); margin-top: var(--sp-1) !important; }
.ct-info .ct-mail { color: var(--b-primary); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: rgba(var(--b-map-rgb), .35); }
.ct-info .ct-mail::after { content: none; }
.ct-info .ct-mail:hover { text-decoration-color: currentColor; }
.ct-info .ct-mail:focus-visible { outline: 2px solid var(--b-accent); outline-offset: 2px; }
.ct-info .ct-use { min-height: 0; }
.ct-info .ct-office { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: center; margin-top: var(--sp-4); padding: var(--sp-3); border-radius: 18px; background: var(--paper); }
.ct-info .ct-office h3 { margin: 0 0 var(--sp-1); font-size: 16px; font-weight: 600; }
.mcards.ct-links { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
@media (max-width: 960px) { .mcards.ct-links { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .ct-info .ct-office { grid-template-columns: 1fr; } }
