/* pages/contact.css — composition only, for /contact/, /privacy-policy/ and /accessibility/ (contact-legal page agent).
   Components live in the theme files; this file places them. Mobile-first, tokens only. Enqueued by inc/enqueue.php (group "contact"). */

/* ============================================================ /contact/ ============================================================ */

/* Hero + request split share one paper surface (DESIGN §10.8): close the gap so the form sits under the lede. */
.ov-main--contact .ov-contact-hero { padding-block-end: var(--space-4); }
.ov-main--contact .ov-contact-request { padding-block-start: var(--space-4); }
.ov-contact__split { align-items: flex-start; }

/* Form card: a little tighter on phones (every pixel of input width counts at 390), roomier on wide screens. */
.ov-form.ov-card { padding: var(--space-5) var(--space-4); }
@media (min-width: 640px) { .ov-form.ov-card { padding: var(--space-6); } }
@media (min-width: 1280px) { .ov-form.ov-card { padding: var(--space-7); } }

/* Visit card here: no photo header (must fit under the sticky header), eyebrow "Visit", email under the phone, access line
   under the wayfinding. Tighter side margins on phones so the hours table never wraps a day range. */
.ov-contact__split .ov-visit { padding-block-start: var(--space-2); }
.ov-contact__split .ov-visit > .ov-eyebrow { margin-block-start: var(--space-5); }
.ov-visit__email { max-width: none; font-variant-numeric: tabular-nums; }
.ov-visit__email a { display: inline-block; padding-block: 11px; overflow-wrap: anywhere; }
.ov-card.ov-visit > .ov-visit__email { margin-block-start: 0; }
.ov-card.ov-visit > .ov-visit__access { margin-block-start: var(--space-1); }
.ov-card.ov-visit > .ov-visit__map { margin-block-start: var(--space-3); }
/* Let the card breathe like the form card beside it (art:E12 for this page): the Fraunces phone and the hours table each get a 32px step. */
.ov-contact__split .ov-visit > .ov-visit__phone { margin-block-start: var(--space-5); }
.ov-contact__split .ov-visit > .ov-hours { margin-block-start: var(--space-5); }
@media (max-width: 639px) { .ov-contact__split .ov-visit > * { margin-inline: var(--space-4); } }
@media (max-width: 359px) { .ov-visit__email { font-size: var(--fs-small); } }   /* 320: same at 254px */
/* 640–781: core stacks the columns, so the card is as wide as the form; lay it out two-up (contact left, hours right). */
@media (min-width: 640px) and (max-width: 781px) {
  .ov-contact__split .ov-visit { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr); column-gap: var(--space-6); align-items: start; padding: var(--space-2) var(--space-6) var(--space-6); }
  .ov-contact__split .ov-visit > * { grid-column: 1; margin-inline: 0; }
  .ov-contact__split .ov-visit > .ov-visit__email { font-size: var(--fs-small); }   /* 768: the 252px column broke the 18px address mid-word */
  .ov-contact__split .ov-visit > .ov-hours { grid-column: 2; grid-row: 2 / span 3; margin-block-start: var(--space-4); }
  .ov-contact__split .ov-visit > .ov-hours__status { grid-column: 2; grid-row: 5; }
  .ov-contact__split .ov-visit .ov-hours th { white-space: nowrap; }
}

/* Suite 150: lead colour plate (≤ 640, honest 1x) left, four duotone plates (≤ 320) right; on phones the plates run 2-up. */
.ov-contact-sheet .ov-sheet__lead { max-width: 640px; }
.ov-contact-sheet .ov-sheet__lead img { width: 100%; }
.ov-contact-sheet .ov-sheet__way { margin-block-start: var(--space-3); }
.ov-inner > .ov-contact-sheet { margin-block-start: var(--space-6); }
.ov-inner > .ov-contact-next { margin-block-start: var(--space-8); }
.ov-contact-next__title, .ov-contact-faq h2 { text-wrap: balance; }
@media (min-width: 782px) {
  .ov-contact-sheet > .wp-block-column:last-child { padding-block-start: var(--space-7); }   /* the sheet drops below the lead plate's top edge: editorial offset */
  .ov-contact-next > .wp-block-column:first-child, .ov-contact-faq > .wp-block-column:first-child { position: sticky; top: calc(var(--ov-header-h) + var(--ov-admin-bar) + var(--space-6)); align-self: flex-start; }
  .ov-contact-next .ov-steps > li:first-child { padding-block-start: var(--space-3); border-top: 0; }
}

/* Questions: the accordion column starts at the same baseline as the h2. */
.ov-contact-faq .ov-accordion > .wp-block-details:first-child { border-top: 0; }
@media (max-width: 781px) { .ov-contact-faq .ov-accordion > .wp-block-details:first-child { border-top: var(--hairline); } }

/* ===================================================== /privacy-policy/ + /accessibility/ ===================================================== */

/* The page carries its own editable "Last updated" line (copy deck), so the template's "Published <date>" meta is not shown here. */
.ov-main--prose .ov-hero--compact { padding-block-end: var(--space-4); }
.ov-main--prose .ov-prose-section { padding-block-start: var(--space-3); }
/* One left-aligned reading column under the h1. The template's constrained contentSize is 62ch, and ch is measured in each
   block's own font, so Fraunces h2s would get an 1819px measure while paragraphs get 661px; a rem measure keeps them equal.
   Core's layout rule centres children with !important margins, hence the !important here. */
.ov-main--prose .ov-prose > * { max-width: 41rem; margin-left: 0 !important; margin-right: 0 !important; }
.ov-prose__updated { font-variant-numeric: tabular-nums; }
.ov-prose > .ov-prose__updated + .ov-lede { margin-block-start: var(--space-4); }

/* Editorial grid (art:E10): lede at the measure, then core/columns.ov-prose__grid 4/8: contents (sticky ≥ 1024) left, prose right.
   The columns escape the 41rem measure; the right column keeps it (it also carries .ov-prose). 782–1023 stacks, contents first. */
.ov-main--prose .ov-prose > .ov-prose__grid { max-width: none; margin-block-start: var(--space-6); }
.ov-prose__grid > .wp-block-column { border-top: var(--hairline); padding-block-start: var(--space-4); }
.ov-prose__body > h2:first-child { margin-block-start: 0; padding-block-start: 0; border-top: 0; }
@media (min-width: 782px) and (max-width: 1023px) {
  .ov-prose__grid { flex-wrap: wrap; }
  .ov-prose__grid > .wp-block-column { flex-basis: 100% !important; }
}

/* In-page contents: eyebrow, hex bullets, 44px targets; two columns only while it sits above the prose (640–1023). */
.ov-toc > .ov-eyebrow + .ov-toc__list { margin-block-start: var(--space-3); }
.ov-toc__list { list-style: none; margin: 0; padding: 0; max-width: none; }
.ov-toc__list li { position: relative; margin: 0; padding-left: 1.4em; max-width: none; }
.ov-toc__list li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: .55em; aspect-ratio: 1.1547; clip-path: var(--hex); background: var(--ov-clay); }
.ov-toc__list a { display: inline-block; padding-block: 10px; font-weight: 500; text-decoration: none; background: linear-gradient(var(--ov-accent), var(--ov-accent)) 0 calc(100% - 9px) / 0 1px no-repeat; transition: background-size 450ms var(--ease-out), color var(--t-fast); }
.ov-toc__list a:hover, .ov-toc__list a:focus-visible { color: var(--ov-accent); background-size: 100% 1px; }
@media (min-width: 640px) and (max-width: 1023px) { .ov-toc__list { columns: 2; column-gap: var(--space-6); } .ov-toc__list li { break-inside: avoid; } }

/* Prose lists get the hex bullets; the address block reads as a tabular contact sheet. */
.ov-prose > .ov-hexlist li + li { margin-top: .5em; }
/* Integration fix: a list item that is only a link (Accessibility page: phone, email) measured 253x20px; 12px of padding pulled back by
   negative margins makes the target 45px tall without changing the list rhythm. */
.ov-prose > .ov-hexlist li > a:only-child { display: inline-block; padding-block: 12px; margin-block: -12px; }
.ov-prose__address { font-variant-numeric: tabular-nums; line-height: 1.7; }
.ov-prose > .ov-prose__address + .ov-meta { margin-block-start: var(--space-3); }
