/* Site-wide additions to the pages generated from the design canvas (scripts/from-canvas.mjs).
   The canvas sets each element's look inline; this file adds behaviour the canvas can't express:
   focus states, the expandable audience rows, the inquiry button and phone sizing. */

*, *::before, *::after { box-sizing: border-box; }
img, video, iframe { max-width: 100%; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* Audience rows on Home. */
.ics-row summary { list-style: none; }
.ics-row summary::-webkit-details-marker { display: none; }
.ics-row[open] .ics-row__icon { transform: rotate(45deg); }
.ics-row__icon { display: inline-block; transition: transform .15s ease; }

/* The inquiry button scripts/prepare-vercel.mjs places where the form was. */
#inquire { display: flex; align-items: center; }
#inquire .sqs-block-button-element {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 28px;
  background: #1d2934; color: #f6f1e9; text-decoration: none;
  font-family: Archivo, "Helvetica Neue", Arial, sans-serif; font-size: 20px; font-weight: 650;
  font-stretch: 75%; letter-spacing: .08em; text-transform: uppercase;
}

/* Phones: smaller logo and headings so nothing crowds or overflows. */
@media (max-width: 767px) {
  header img { height: 48px !important; }
  footer img { height: 80px !important; }
  footer ul { text-align: left !important; }
  h1 { font-size: 40px !important; }
  h2[style*="font-size: 39px"] { font-size: 31px !important; }
  h2[style*="font-size: 31px"] { font-size: 25px !important; }
  section[style*="padding: 96px 0"] { padding-top: 64px !important; padding-bottom: 64px !important; }
  section[style*="padding: 80px 0 96px"] { padding-top: 48px !important; padding-bottom: 64px !important; }
  section[aria-label] > div:first-child { padding: 40px 6vw !important; }
  /* Typology tiles: two per row so the labels fit. */
  figure > div[style*="repeat(4, minmax(0, 1fr))"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
