/*
 * Responsive fixes: the ONLY place this site's layout departs from the live Webflow site.
 *
 * Everything in app/styles/ is Webflow's CSS verbatim, and with this file blocked the page
 * matches rosspalmer.com element for element. Each rule below repairs a problem measured on
 * the live site (ranges in README.md). Sections 1 and 3 repair widths from 480 to 991px.
 * The sweep checks that normal sizes are untouched.
 *
 * It is a separate <link> (app/layout.tsx) so the fidelity tools can switch it off:
 * `npm run fidelity` and `npm run fidelity:sweep` block it by default and compare the
 * untouched port with live; add `--with-fixes` to measure the page as shipped.
 *
 * Every selector starts with `html` so it outranks the Webflow rule it replaces whatever
 * order the two stylesheets load in.
 */

/* ---------------------------------------------------------------------------------------
 * 1. (Nav.) The repairs that were here kept "Contact" from sitting on "Blog" and put "Blog"
 *    on the others' line. They went with the three separately pinned labels they repaired,
 *    on 2026-11-18: the menu is one row now (components/SiteNav.tsx, app/styles/redesign.css).
 * ------------------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------------------
 * 2. (Hero.) The repairs that were here went with the Webflow hero they repaired, when the
 *    opening screen was rebuilt after the `clone` tag. The new one is in
 *    app/styles/redesign.css and sizes itself.
 * ------------------------------------------------------------------------------------- */

/* ---------------------------------------------------------------------------------------
 * 3. Signature Talks, 480 to 639px.
 *
 * Two cards side by side cannot be narrower than 570px, so below 640px the block was wider
 * than its column (and wider than the window below 597px: sideways scroll, cards cut off).
 * Use the one-card-per-row layout Webflow already has at 479px, with the heading stacked
 * above the intro text.
 * ------------------------------------------------------------------------------------- */
@media screen and (min-width: 480px) and (max-width: 639px) {
  html .keynotes-container .grid {
    grid-template-columns: 1fr;
  }

  html .keynotes-container .div-block-28 {
    flex-flow: column;
    align-items: flex-start;
  }

  html .keynotes-container .div-block-29 {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------------------
 * 4. (Contact block.) The repairs that were here kept the pinned last screen's links clear of
 *    its newsletter on short screens. That block is ordinary page now
 *    (app/styles/contact.css), so there is nothing left to repair.
 * ------------------------------------------------------------------------------------- */
