/* BulkGauge — layout repairs the design export does not carry.
 *
 * Ours, not the design's: brand.css is replaced wholesale on every sync, so a
 * fix written there would be erased. Loaded on every page after brand.css.
 *
 * Each rule below answers a defect the live sweep of 4-5 Nov 2026 measured, and
 * `app/lib/site/site-layout.test.ts` holds the line on each of them.
 */

/* DEF-038. A grid or flex item defaults to `min-width: auto`, i.e. as wide as
   its widest unbreakable child. pricing.html's "What it works out to" column
   holds a `.table-wrap` whose table is `min-width: 600px`, so on a 390 px phone
   the column grew to 610 px, the page scrolled sideways, and the wrap that
   exists to scroll the table internally never got the chance. Letting the
   items shrink hands the overflow back to the wrapper. */
.grid > *,
.stack > *,
.row > * {
  min-width: 0;
}

.table-wrap {
  max-width: 100%;
}

/* DEF-044. `.btn` is `white-space: nowrap`, which is right for "Install" and
   wrong for a German sentence on a ghost button ("Immer noch nicht weiter —
   Support kontaktieren"), which is wider than a phone. Below the width where
   that can happen a button may wrap and never exceeds its container. */
@media (max-width: 640px) {
  .btn {
    white-space: normal;
    max-width: 100%;
    text-align: center;
    line-height: 1.25;
  }
}

/* DEF-043. The contact form's honeypot used to sit at `left: -9999px`. In a
   right-to-left page overflow to the left IS scrollable overflow, so Arabic
   measured a document 11,424 px wide. Visually hidden instead, which takes no
   room in either direction: a 1 px clipped box that stays where it is. The input
   carries aria-hidden and tabindex=-1, so neither a screen reader nor the
   keyboard reaches it. */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* DEF-052 follow-on. The permissions table now lists real scope names such as
   `write_online_store_navigation`, which has no break opportunity and would
   push a 390 px card wider than the page. */
.matrix th[scope="row"] {
  overflow-wrap: anywhere;
}

/* SEO review (19 Nov 2026): headings moved to the level the outline needs keep the look of the level they had. */
.as-h3{font-size:clamp(19px,2vw,23px);letter-spacing:-0.012em;line-height:1.2}
.as-h4{font-size:17px;letter-spacing:-0.006em}
h2.as-h3,h3.as-h4{font-family:var(--font-display);font-weight:600;margin:0}
/* The footer's column titles, <p> now (they were <h4>). */
.site-footer .footer-h{margin:0 0 14px}
/* Status page: the live state under the static H1. */
.status-now{font:600 clamp(20px,2.4vw,26px)/1.25 var(--font-display);letter-spacing:-0.012em;margin-bottom:0}
