/* U3SITE3 (lane UI3 11-20, Todd: "go through ALL pages ... lots are not legible"): readable text on every Bro.com page.
 * Loaded by the shared header script (ryder12h.js, U3SITE1 block), which measures every text on screen against the surface it really sits on and
 * marks only what fails: .u3-ink (dark ink on a light surface), .u3-lite (near-white on a dark one); gold/yellow text is never a text colour.
 * No page-wide colour rule here (a light card in a dark page and the reverse both stay right). Off for a tab: ?u3site=0. */

/* ---- the marks (set per element by the check) ---- */
.u3-ink { color: #1a1a1a !important; -webkit-text-fill-color: #1a1a1a !important; text-shadow: none !important; }
.u3-lite { color: #f1f2f4 !important; -webkit-text-fill-color: #f1f2f4 !important; }
a.u3-ink, a.u3-lite, .u3-ink a, .u3-lite a { text-decoration: underline !important; text-underline-offset: 3px; text-decoration-thickness: 1px; }
input.u3-phl::placeholder, textarea.u3-phl::placeholder { color: #5a5a5a !important; opacity: 1 !important; }
input.u3-phd::placeholder, textarea.u3-phd::placeholder { color: #b8bcc6 !important; opacity: 1 !important; }

/* ---- dark pages: the muted tones a touch lighter (they sit on the page's own dark surfaces) ---- */
html.u3-bg-dark { --on-surface-muted: 200 204 212; --on-surface-dim: 184 188 198; }
html.u3-bg-dark body { --v2-ivory-3: #c3c7cf; }

/* ---- topic tab pills on a hero photo (Fishing, Pets, Bible...): their own solid glass, so they read on any picture ---- */
html.u3-bg-dark nav.mt-7 :is(a, button).rounded-pill:not([aria-current]):not([aria-pressed=true]):not([aria-selected=true]) { background: rgba(8, 12, 20, .84) !important; color: #eef0f3 !important; border-color: rgba(255, 255, 255, .24) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html.u3-bg-light nav.mt-7 :is(a, button).rounded-pill:not([aria-current]):not([aria-pressed=true]):not([aria-selected=true]) { background: rgba(255, 255, 255, .94) !important; color: #111 !important; border-color: rgba(20, 23, 28, .2) !important; }
nav.mt-7 :is(a, button).rounded-pill { font-size: 13px !important; min-height: 36px; }

/* ---- one readable type scale: meta >= 13 px, body >= 15 px on computers, 14.5 px on phones ---- */
:is([class*="text-[0.5rem]"], [class*="text-[0.5625rem]"], [class*="text-[0.625rem]"], [class*="text-[0.6875rem]"], [class*="text-[0.75rem]"], [class*="text-[0.7rem]"], [class*="text-[0.72rem]"], .text-xs):not([class*="bg-"]):not(.sr-only) { font-size: 13px !important; line-height: 1.4 !important; }
.v2-eyebrow { font-size: 13px !important; }
:is(p, li, dd, span.block, a.block)[class*="text-[0.8125rem]"] { font-size: 15px !important; line-height: 1.45 !important; }
@media (max-width: 700px) { :is(p, li, dd, span.block, a.block)[class*="text-[0.8125rem]"] { font-size: 14.5px !important; } }
.azb-tool-cta { font-size: 14px !important; }

/* TXTSW1 (TEXTSWEEP 11-20, Todd: "all text all buttons need to be perfect"): tap sizes, an edge-hugging menu button, one overlap on Bro.com pages.
 * Undo: bash /data/scratch/textsweep/shipcss.sh TXTSW1 - undo
 * 1. phones/tablets: header Enter Live Now! / Sign in / Ask Bro and the footer Terms / Privacy / Contact links get a 44 px tap height
 *    (were 36-40 px and 30 px).
 * 2. phones 390-430: the header row (logo, Enter Live Now!, Ask Bro, menu) was wider than the screen: the menu button sat 3 px from the
 *    edge (412) or 19 px past it (iPhone 390). Smaller gaps, a slightly smaller logo, 11 px button sides; 12 px clear on the right.
 * 3. /ai History, signed out: the "Continue with Google" pill could sit on top of the wrapped "Sign up free" line; it gets its own row. */
@media (pointer: coarse) {
  .bh-ask, .bhl-go, .bh-signin { min-height: 44px !important; }
  nav[data-legal-links] a { padding-top: 13px !important; padding-bottom: 13px !important; }
}
@media (max-width: 480px) {
  .bh-in { padding-right: 12px !important; }
  .bh-row { gap: 6px !important; }
  .bh-tools { gap: 4px !important; }
  .bh-mark, .bh[data-scrolled] .bh-mark { height: 24px !important; }
  .bh-ask, .bhl-go { padding-left: 11px !important; padding-right: 11px !important; gap: 6px !important; }
}
@media (max-width: 400px) { .bh-ask, .bhl-go { font-size: .85rem !important; padding-left: 9px !important; padding-right: 9px !important; } }
#history p > a.items-center.justify-center { display: flex !important; width: max-content; max-width: 100%; margin-top: 8px; }

/* CP2BUST 224515 */
