/* New HeartBite sections (Oct 2026). The sections are drawn with inline styles from the
   approved website canvas, so inside .v2 the older styles.css rules are switched off. */
.v2 { font-size: 16px; line-height: normal; }
/* SVG drawing attributes count as author styles, so icons are left out of the reset. */
.v2 *:not(svg, svg *) { all: revert; }
.v2 h1, .v2 h2, .v2 h3, .v2 [style*="Lora"] { text-wrap: balance; }
.v2 a { color: #2F5D46; }
.v2 a:hover { color: #23483A; }
.v2 a, .v2 button { cursor: pointer; }
.v2 button:focus-visible, .v2 a:focus-visible, .v2 input:focus-visible,
.v2 select:focus-visible, .v2 textarea:focus-visible { outline: 3px solid #2F5D46; outline-offset: 2px; }
.v2 img, .v2 figure > div { max-width: 100%; }
.v2 [hidden] { display: none !important; }
.v2 #wl-done:not([hidden]), .v2 #q-clinic:not([hidden]) { display: flex !important; }
.v2 [id^="step"], .v2 #how, .v2 #waitlist, .v2 #q-clinic { scroll-margin-top: 16px; }

/* Step 4 header: let the reading cards size to the column, not the other way round. */
.v2 #step4 > div > section > div:first-child { width: 100%; box-sizing: border-box; }

/* Line the new sections up with the header and the other pages (same 1120px box as .wrap). */
.v2 [style*="max-width: 1120px"] { box-sizing: border-box; }

/* The menu has six links: keep each label on one line, and move the links under
   the logo (the phone layout) before they run out of room. */
.links a.nl { white-space: nowrap; }
@media (max-width: 1180px) {
  .nav { flex-wrap: wrap; }
  .links { order: 3; width: 100%; gap: 22px; margin-left: 0; border-top: 1px solid var(--line); padding-top: 6px; }
}
@media (max-width: 860px) {
  .links { flex-wrap: wrap; gap: 0 18px; }
}

/* Phones and small tablets */
/* Only the big headings shrink; small labels styled as h2 keep their size. */
@media (max-width: 700px) {
  .v2 h1[style*="font-size: 4"], .v2 h1[style*="font-size: 5"], .v2 h1[style*="font-size: 6"] { font-size: 44px !important; }
  .v2 h2[style*="font-size: 4"], .v2 h2[style*="font-size: 5"], .v2 h2[style*="font-size: 6"] { font-size: 34px !important; }
}
@media (max-width: 420px) {
  .v2 [style*="minmax(3"], .v2 [style*="minmax(4"] { grid-template-columns: minmax(0, 1fr) !important; }
  .v2 h1[style*="font-size: 4"], .v2 h1[style*="font-size: 5"], .v2 h1[style*="font-size: 6"] { font-size: 40px !important; }
  .v2 h2[style*="font-size: 4"], .v2 h2[style*="font-size: 5"], .v2 h2[style*="font-size: 6"] { font-size: 30px !important; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* "Try the beta" in the menu: a purple pill, like the Home button. */
.links a.nl[href="/beta"] { background: #ECE6F6; border: 2px solid #5B4A8A; border-radius: 22px; padding: 8px 16px; }
.links a.nl[href="/beta"]:hover { color: #2B211B; background: #E1D8F1; }
.links a.nl[href="/beta"][aria-current=page] { border-color: #5B4A8A; box-shadow: inset 0 0 0 1px #5B4A8A; }
