/*
 * vcc.io frontend audit fixes (2026-11-15).
 * Loaded last by the golden marketing head and the golden auth layout.
 * Every rule here was checked in a browser at 390 / 768 / 1280px against the
 * live cascade; `html:root` is used only to outrank the existing !important
 * patch rules without reaching for IDs.
 * Fold into golden-overrides when the golden patch files are consolidated.
 */

/* --- Homepage: phones get the full pitch (fleet demo, apps, contact) --- */
html:root body.gdk-body main section.gdk-hi-fleet-sec { display: block !important; }

/* --- Phones: stack card rows instead of hidden side-scrollers.
 *     The old ≤575px carousel fought newer 1fr rules and squeezed the first
 *     "How it works" / apps card to ~25-97px wide. --- */
@media (max-width: 575.98px) {
	html:root body.gdk-body main #about .gdk-about__pillars,
	html:root body.gdk-body main .gdk-about__pillars,
	html:root body.gdk-body main .gdk-home-why .row.g-4,
	html:root body.gdk-body main #apps .gdk-apps-access__grid,
	html:root body.gdk-body main .gdk-apps-access .gdk-fees__grid--four,
	html:root body.gdk-body main .gdk-fees--home .gdk-fees__grid--three,
	html:root body.gdk-body main .gdk-testi__stage--grid {
		grid-auto-flow: row !important;
		grid-auto-columns: auto !important;
		grid-template-columns: minmax(0, 1fr) !important;
		overflow: visible !important;
		scroll-snap-type: none !important;
		padding-inline: 0 !important;
		margin-inline: 0 !important;
	}
	html:root body.gdk-body main #about .gdk-about__pillars > *,
	html:root body.gdk-body main .gdk-about__pillars > *,
	html:root body.gdk-body main .gdk-home-why .row.g-4 > *,
	html:root body.gdk-body main #apps .gdk-apps-access__grid > *,
	html:root body.gdk-body main .gdk-apps-access .gdk-fees__grid--four > *,
	html:root body.gdk-body main .gdk-fees--home .gdk-fees__grid--three > *,
	html:root body.gdk-body main .gdk-testi__stage--grid > * {
		width: auto !important;
		min-width: 0 !important;
		max-width: none !important;
	}
}

/* --- Phones: header stays reachable (Get started / menu) --- */
@media (max-width: 767.98px) {
	html:root body.gdk-body .gdk-header {
		position: sticky !important;
		top: 0 !important;
		z-index: 1030 !important;
	}
	/* 44px tap targets */
	html:root body.gdk-body .gdk-topstrip a,
	html:root body.gdk-body .gdk-lang__trigger {
		min-height: 44px !important;
		display: inline-flex !important;
		align-items: center !important;
	}
	html:root body.gdk-body .gdk-footer__socials a {
		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
	}
}

/* --- Tablet: hero copy is a centred stack up to 992px; centre every line --- */
@media (max-width: 992px) {
	html:root body.gdk-body #home.gdk-hero .gdk-hero__copy { text-align: center !important; align-items: center !important; }
	html:root body.gdk-body #home.gdk-hero .gdk-hero__kicker,
	html:root body.gdk-body #home.gdk-hero .gdk-hero__desc,
	html:root body.gdk-body #home.gdk-hero .gdk-hero__ctas {
		margin-left: auto !important;
		margin-right: auto !important;
		text-align: center !important;
	}
	html:root body.gdk-body #home.gdk-hero .gdk-hero__desc { max-width: min(36rem, 100%) !important; text-wrap: balance; }
	html:root body.gdk-body #home.gdk-hero .gdk-hero__trust { justify-content: center !important; }
}
/* "Where cards clear" pill was stretched to ~560px on its own grid cell */
@media (min-width: 576px) and (max-width: 1023.98px) {
	html:root body.gdk-body .gdk-hi-strip__link { width: auto !important; justify-self: end !important; }
}

/* --- Readable type: nothing under 12px, nav at 14px --- */
html:root body.gdk-body .gdk-header .gdk-nav a { font-size: 14px !important; letter-spacing: .02em !important; }
html:root body.gdk-body .gdk-btn { font-size: 12px !important; }
html:root body.gdk-body .gdk-header .gdk-btn--sm { font-size: 12.5px !important; }
html:root body.gdk-body .gdk-eyebrow,
html:root body.gdk-body .gdk-fees__panel-label,
html:root body.gdk-body .gdk-hi-fee-tag,
html:root body.gdk-body .gdk-hi-strip__label,
html:root body.gdk-body .gdk-hi-strip__link,
html:root body.gdk-body .gdk-hi-strip__pill b,
html:root body.gdk-body .gdk-hi-strip__pan,
html:root body.gdk-body .gdk-support-strip__title,
html:root body.gdk-body .gdk-whitelabel__unit,
html:root body.gdk-body #pricing .gdk-hi-fee-tag,
html:root body.gdk-body section#contact.gdk-contact--home.gdk-contact--page .gdk-support-strip__btn small,
html:root body.gdk-body #contact .gdk-support-strip__btn small { font-size: 12px !important; }

/* --- Auth forms --- */
/* Terms row: whole label is the target; make it 44px with a larger box */
.form-panel .check { min-height: 44px; align-items: center; }
.form-panel .check .check__box { width: 22px; height: 22px; flex: 0 0 22px; }
/* "Have a referral code?" disclosure */
.form-panel .gdk-referral-toggle > summary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	cursor: pointer;
	list-style: none;
	font-size: 14px;
}
.form-panel .gdk-referral-toggle > summary::-webkit-details-marker { display: none; }
.form-panel .gdk-referral-toggle > summary::after { content: "+"; margin-left: .4em; }
.form-panel .gdk-referral-toggle[open] > summary::after { content: "\2212"; }
.form-panel .gdk-referral-toggle[open] > summary { margin-bottom: .35rem; }
/* Username rule hint: small helper text, not body copy */
.form-panel .gdk-user-hint { font-size: 12px; line-height: 1.4; opacity: .7; margin-top: 6px; }
/* User login matches the signup page: same 560px form column */
.form-login .form-body { max-width: 560px; }
/* Signup brand panel behaves like login's: one screen tall, card + strip in view,
 * and it stays put (sticky) while the longer signup form scrolls.
 * overflow: clip (not hidden) on the shell so sticky works. */
@media (min-width: 1100px) {
	html:root:not(.gdk-force-phone) body.gdk-auth-body section.shell.form-register { overflow: clip !important; }
	html:root:not(.gdk-force-phone) body.gdk-auth-body section.shell.form-register > aside.brand-panel {
		position: sticky !important;
		top: 0 !important;
		align-self: start !important;
		height: 100vh !important;
		min-height: 0 !important;
	}
}

/* ===== Re-audit fixes (2026-11-15, round 3) ===== */

/* --- Blog posts on phones: side padding and a sane heading scale --- */
@media (max-width: 767.98px) {
	html:root body.gdk-body .gdk-blogpage__article-body { padding: 4px 16px 18px !important; }
	html:root body.gdk-body .gdk-blogpage__title { font-size: 1.6rem !important; line-height: 1.2 !important; }
	html:root body.gdk-body .gdk-blogpage__content h2 { font-size: 1.3rem !important; line-height: 1.3 !important; margin-top: 1.5em !important; }
	html:root body.gdk-body .gdk-blogpage__content h3 { font-size: 1.12rem !important; line-height: 1.35 !important; }
	html:root body.gdk-body .gdk-blogpage__share a {
		min-width: 44px !important; min-height: 44px !important;
		display: inline-flex !important; align-items: center !important; justify-content: center !important;
		font-size: 15px !important;
	}
	html:root body.gdk-body .gdk-blogpage__tags a { min-height: 40px !important; display: inline-flex !important; align-items: center !important; }
}
html:root body.gdk-body .gdk-blogpage small,
html:root body.gdk-body .gdk-blogpage__share,
html:root body.gdk-body .gdk-blogpage__share span { font-size: 12px !important; }

/* --- FAQ "Need a human?" card: right padding was 0 --- */
html:root body.gdk-body .gdk-faqspage .gdk-fees__bulk { padding-right: 12px !important; box-sizing: border-box !important; }

/* --- Cookie banner: readable buttons, 44px close target --- */
html:root body #cookieConsent#cookieConsent .gdk-cookie__card .gdk-cookie__accept,
html:root body #cookieConsent#cookieConsent .gdk-cookie__card .gdk-cookie__decline { font-size: 12px !important; }
html:root body #cookieConsent#cookieConsent .gdk-cookie__card .gdk-cookie__close { width: 44px !important; height: 44px !important; top: 2px !important; right: 2px !important; }
html:root body #cookieConsent#cookieConsent .gdk-cookie__card .gdk-cookie__more { min-height: 32px !important; align-items: center !important; }

/* --- Mobile menu: support links stay clear of the fixed Sign in / Get started bar --- */
html:root body.gdk-body .gdk-navpanel__support { padding-bottom: 104px !important; }

/* --- Small labels --- */
html:root body.gdk-body .gdk-whitelabel__step-num { font-size: 12px !important; }
html:root body .vcc-copy-btn { min-height: 40px !important; }

/* --- Auth pages (user, agent, merchant): nothing under 12px, bigger targets --- */
html:root body.gdk-auth-body .logo__brand,
html:root body.gdk-auth-body .logo__tag,
html:root body.gdk-auth-body .back-link__text,
html:root body.gdk-auth-body .eyebrow,
html:root body.gdk-auth-body .form-section,
html:root body.gdk-auth-body .field > label,
html:root body.gdk-auth-body .field-optional,
html:root body.gdk-auth-body .meter__lbl,
html:root body.gdk-auth-body .gold-link--caps,
html:root body.gdk-auth-body .btn,
html:root body.gdk-auth-body .portal-switch > span,
html:root body.gdk-auth-body .portal-pill,
html:root body.gdk-auth-body .trust__item { font-size: 12px !important; }
html:root body.gdk-auth-body .portal-pill { min-height: 36px !important; display: inline-flex !important; align-items: center !important; }
html:root body.gdk-auth-body .field__btn { min-width: 44px !important; min-height: 44px !important; }

/* --- Phones: hero kicker, buttons and calculator labels were still under 12px --- */
@media (max-width: 767.98px) {
	html:root body.gdk-body #home.gdk-hero .gdk-hero__kicker,
	html:root body.gdk-body main .gdk-btn,
	html:root body.gdk-body #home.gdk-hero .gdk-btn,
	html:root body.gdk-body [data-vcc-calc] label { font-size: 12px !important; }
}

/* Tablet: hero kicker was 10.4px */
@media (max-width: 992px) {
	html:root body.gdk-body #home.gdk-hero .gdk-hero__kicker { font-size: 12px !important; }
}

/* --- Right-to-left (Arabic, Hebrew...): step numbers sat on top of the feature icons --- */
html:root[dir="rtl"] body.gdk-body .gdk-feature__num { right: auto !important; left: 20px !important; }

/* --- Auth forms: typed text must not run under the show-password button; mirror field icons for right-to-left --- */
html:root body.gdk-auth-body .field:has(.field__btn) input { padding-right: 48px !important; }
html:root[dir="rtl"] body.gdk-auth-body .field .lead { left: auto !important; right: 0 !important; }
html:root[dir="rtl"] body.gdk-auth-body .field:has(.lead) input { padding-left: 0 !important; padding-right: 27.2px !important; }
html:root[dir="rtl"] body.gdk-auth-body .field .field__btn { right: auto !important; left: 0 !important; }
html:root[dir="rtl"] body.gdk-auth-body .field:has(.field__btn) input { padding-left: 48px !important; }
html:root[dir="rtl"] body.gdk-auth-body .field input[type="email"],
html:root[dir="rtl"] body.gdk-auth-body .field input[name="username"],
html:root[dir="rtl"] body.gdk-auth-body .field input[name*="contact"],
html:root[dir="rtl"] body.gdk-auth-body .field input[name="referral_code"] { direction: ltr !important; text-align: right !important; }

/* --- 404 page inside the site layout: popular-page links --- */
html:root body.gdk-404-page .gdk-404 { padding-top: clamp(32px, 6vw, 72px) !important; }
html:root body.gdk-404-page .gdk-404__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; max-width: 960px; margin: 2.5rem auto 0; }
html:root body.gdk-404-page .gdk-404__link { display: flex !important; align-items: center; gap: 14px; padding: 18px 20px !important; text-decoration: none !important; color: inherit !important; min-height: 72px; transition: border-color .2s, transform .2s; }
html:root body.gdk-404-page .gdk-404__link:hover, html:root body.gdk-404-page .gdk-404__link:focus-visible { border-color: rgba(212, 175, 95, .55) !important; transform: translateY(-2px); }
html:root body.gdk-404-page .gdk-404__link > i { font-size: 20px; width: 24px; text-align: center; color: #d4af5f; flex: none; }
html:root body.gdk-404-page .gdk-404__link strong { display: block; font-size: 15px; }
html:root body.gdk-404-page .gdk-404__link small { display: block; font-size: 13px; opacity: .75; margin-top: 2px; }

/* --- Cookie banner: slim full-width bar at the bottom instead of a corner card covering content --- */
html:root body #cookieConsent#cookieConsent { inset: auto 0 0 0 !important; translate: none !important; left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; transform: none !important; }
html:root body #cookieConsent#cookieConsent .gdk-cookie__card { position: relative !important; display: flex !important; flex-direction: row !important; align-items: center !important; gap: 10px 20px !important; width: 100% !important; max-width: none !important; margin: 0 !important; border-radius: 0 !important; border-width: 1px 0 0 !important; padding: 10px max(88px, calc((100vw - 1200px) / 2)) 10px max(16px, calc((100vw - 1200px) / 2)) !important; box-shadow: 0 -8px 24px rgba(0, 0, 0, .35) !important; }
html:root body #cookieConsent#cookieConsent .gdk-cookie__heading,
html:root body #cookieConsent#cookieConsent .gdk-cookie__close { display: none !important; }
html:root body #cookieConsent#cookieConsent .gdk-cookie__text { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; font-size: 14px !important; line-height: 1.4 !important; }
html:root body #cookieConsent#cookieConsent .gdk-cookie__actions { width: auto !important; max-width: none !important; display: flex !important; flex: none !important; flex-wrap: nowrap !important; align-items: center !important; gap: 8px !important; margin: 0 !important; }
html:root body #cookieConsent#cookieConsent .gdk-cookie__accept,
html:root body #cookieConsent#cookieConsent .gdk-cookie__decline { min-height: 40px !important; padding: 0 18px !important; width: auto !important; flex: none !important; white-space: nowrap !important; }
html:root body #cookieConsent#cookieConsent .gdk-cookie__more { order: -1 !important; white-space: nowrap !important; min-height: 40px !important; display: inline-flex !important; align-items: center !important; margin: 0 6px 0 0 !important; }
html:root body:has(#cookieConsent.is-visible:not([hidden])) { padding-bottom: 64px !important; }
@media (max-width: 767.98px) {
	html:root body #cookieConsent#cookieConsent .gdk-cookie__card { flex-direction: column !important; align-items: stretch !important; padding: 10px 76px 12px 16px !important; gap: 8px !important; }
	html:root body #cookieConsent#cookieConsent .gdk-cookie__text { font-size: 13px !important; }
	html:root body #cookieConsent#cookieConsent .gdk-cookie__actions { justify-content: flex-end !important; }
	html:root body #cookieConsent#cookieConsent .gdk-cookie__more { margin-right: auto !important; }
	html:root body:has(#cookieConsent.is-visible:not([hidden])) { padding-bottom: 112px !important; }
}
@media (max-width: 767.98px) {
	html:root body #cookieConsent#cookieConsent .gdk-cookie__actions { justify-content: flex-start !important; gap: 6px !important; }
	html:root body #cookieConsent#cookieConsent .gdk-cookie__more { margin: 0 4px 0 0 !important; }
	html:root body #cookieConsent#cookieConsent .gdk-cookie__accept,
	html:root body #cookieConsent#cookieConsent .gdk-cookie__decline { padding: 0 12px !important; min-height: 44px !important; }
}

/* --- Remaining small tap targets (phones and touch) --- */
html:root body.gdk-body .gdk-blogpage__list li > a { display: inline-flex !important; align-items: center !important; min-height: 40px !important; min-width: 40px !important; }
html:root body.gdk-body .gdk-blogpage__card-body h3 > a { display: inline-block !important; padding-block: 6px !important; }
html:root body.gdk-body .gdk-confirmed__more,
html:root body.gdk-body .gdk-merchant-for__site,
html:root body.gdk-body .gdk-partners-brand__link { display: inline-flex !important; align-items: center !important; min-height: 40px !important; }
html:root body.gdk-body .gdk-confirmed__cat { min-height: 40px !important; display: inline-flex !important; align-items: center !important; }
html:root body.gdk-body .gdk-hi-btn-issue { min-height: 40px !important; }
html:root body.gdk-auth-body .gold-link--caps { display: inline-flex !important; align-items: center !important; min-height: 40px !important; }
html:root body.gdk-auth-body a.logo { display: inline-flex !important; align-items: center !important; min-height: 44px !important; }
html:root body.gdk-body .gdk-confirmed__svc { display: inline-flex !important; align-items: center !important; min-height: 40px !important; }
html:root body.gdk-body .gdk-hi-fleet-foot > a { display: inline-flex !important; align-items: center !important; min-height: 40px !important; }

/* --- Blog list on phones: the "Journal / Guides & updates" heading touched the screen edge --- */
@media (max-width: 767.98px) {
	html:root body.gdk-body .gdk-blogpage__main > .gdk-fees__head { padding-left: 16px !important; padding-right: 16px !important; }
}

/* --- Auth pages: reserve the reCAPTCHA box so the form does not jump when it loads --- */
html:root body.gdk-auth-body .g-recaptcha { min-height: 78px !important; }

/* --- /for/<merchant> pages: tips and FAQ blocks --- */
html:root body.gdk-body .gdk-merchant-for__copy h2.gdk-fees__included-label,
html:root body.gdk-body .gdk-merchant-for__faq h2.gdk-fees__included-label { margin-top: 0; }
html:root body.gdk-body .gdk-merchant-for__subhead { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 .5rem; color: #e8d6a8; }
html:root body.gdk-body .gdk-merchant-for__tips { margin: 0; padding-left: 1.2em; display: grid; gap: .45rem; }
html:root body.gdk-body .gdk-merchant-for__tips li { line-height: 1.55; color: #cbd5e1; }
html:root body.gdk-body .gdk-merchant-for__faq { max-width: 820px; margin: 2rem auto 0; }
html:root body.gdk-body .gdk-merchant-for__qa { border: 1px solid rgba(212, 175, 95, .22); border-radius: 12px; padding: 0 16px; margin-top: 10px; background: rgba(255, 255, 255, .02); }
html:root body.gdk-body .gdk-merchant-for__qa summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 600; list-style: none; gap: 10px; }
html:root body.gdk-body .gdk-merchant-for__qa summary::-webkit-details-marker { display: none; }
html:root body.gdk-body .gdk-merchant-for__qa summary::after { content: '+'; margin-left: auto; color: #d4af5f; font-size: 1.2rem; }
html:root body.gdk-body .gdk-merchant-for__qa[open] summary::after { content: '−'; }
html:root body.gdk-body .gdk-merchant-for__qa p { margin: 0 0 14px; line-height: 1.6; color: #cbd5e1; }
html:root[dir="rtl"] body.gdk-body .gdk-merchant-for__qa summary::after { margin-left: 0; margin-right: auto; }

/* --- Heading order: h4 sub-heads promoted to <h2 data-hl="4"> and blog card titles to h2; keep their previous look --- */
html:root body.gdk-body .gdk-legal h2[data-hl="4"] { font-size: 12px !important; line-height: 1.75 !important; letter-spacing: .12em !important; text-transform: uppercase !important; color: rgb(214, 163, 92) !important; margin: 28px 0 12px !important; }
@media (max-width: 767.98px) { html:root body.gdk-body .gdk-legal h2[data-hl="4"] { line-height: 1.65 !important; } }
html:root body.gdk-body .gdk-audience__card h2[data-hl="4"] { font-size: 12.8px !important; font-weight: 650 !important; line-height: 1.6 !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: rgb(214, 163, 92) !important; margin: 0 0 12px !important; }
html:root body.gdk-body .gdk-blogpage__card-body h2.gdk-blogpage__card-title { font-size: 23.2px !important; line-height: 1.6 !important; letter-spacing: -0.02em !important; margin: 10px 0 12px !important; }
/* data-* attributes are stripped from CMS HTML, so target promoted sub-heads by container */
html:root body.gdk-body .gdk-legal__body h2 { font-size: 12px !important; line-height: 1.75 !important; letter-spacing: .12em !important; text-transform: uppercase !important; color: rgb(214, 163, 92) !important; margin: 28px 0 12px !important; }
@media (max-width: 767.98px) { html:root body.gdk-body .gdk-legal__body h2 { line-height: 1.65 !important; } }
html:root body.gdk-body .gdk-audience__card h2 { font-size: 12.8px !important; font-weight: 650 !important; line-height: 1.6 !important; letter-spacing: .1em !important; text-transform: uppercase !important; color: rgb(214, 163, 92) !important; margin: 0 0 12px !important; }
html:root body.gdk-body .gdk-legal__toc li a { display: inline-flex; align-items: center; min-height: 32px; }
html:root body.gdk-body .gdk-blogpage__card-body h2 > a { display: inline-block !important; padding-block: 6px !important; }
html:root body.gdk-body #gdk-affiliate-prose h2 { font-size: 12px !important; line-height: 1.75 !important; letter-spacing: .12em !important; text-transform: uppercase !important; color: rgb(214, 163, 92) !important; margin: 28px 0 12px !important; }
@media (max-width: 767.98px) { html:root body.gdk-body #gdk-affiliate-prose h2 { line-height: 1.65 !important; } }
/* Legal "On this page" list: headings already carry their own numbers (1., A.) */
html:root body.gdk-body #gdk-legal-toc-list { list-style: none !important; padding-left: 0 !important; margin: 0 !important; }
html:root body.gdk-body #gdk-legal-toc-list li { padding-left: 0 !important; break-inside: avoid; }
@media (min-width: 900px) { html:root body.gdk-body #gdk-legal-toc-list { columns: 2; column-gap: 32px; } }
/* Cookie bar on very narrow phones (<=360px): "Learn more" on its own line so Decline clears the chat button */
@media (max-width: 360px) {
	html:root body #cookieConsent#cookieConsent .gdk-cookie__actions { flex-wrap: wrap !important; }
	html:root body #cookieConsent#cookieConsent .gdk-cookie__more { flex-basis: 100% !important; min-height: 32px !important; }
	html:root body:has(#cookieConsent.is-visible:not([hidden])) { padding-bottom: 150px !important; }
}
/* 12px floor: merchant directory labels and contact strip captions */
html:root body.gdk-body .gdk-confirmed__cats-label,
html:root body.gdk-body .gdk-confirmed__bin-more,
html:root body.gdk-body .gdk-confirmed__svc-cat,
html:root body.gdk-body .gdk-support-strip__btn small { font-size: 12px !important; }
html:root body.gdk-body #gdk-main .gdk-support-strip__btn small, html:root body.gdk-body .gdk-support-strip .gdk-support-strip__btn > small { font-size: 12px !important; }
html:root body.gdk-body #gdk-main #contact .gdk-support-strip__btn small { font-size: 12px !important; }

/* ===== Device audit 2026-11-16 (WebKit/Chromium/Firefox, 320-2560px) ===== */
/* Top strip under 380px: the phone number ran under the language picker. Show the phone icon only;
   the number stays in the link text for screen readers. */
@media (max-width: 379.98px) {
  html:root body.gdk-body .gdk-topstrip .gdk-topstrip__phone {
    font-size: 0 !important; gap: 0 !important; min-width: 32px; min-height: 32px;
    justify-content: center; align-items: center;
  }
  html:root body.gdk-body .gdk-topstrip .gdk-topstrip__phone i { font-size: 13px !important; margin: 0 !important; }
}
/* Header under 375px: the homepage's letter-spaced Get started button squeezed the logo to "Vcc." */
@media (max-width: 374.98px) {
  html:root body.gdk-body .gdk-header .gdk-logo { flex-shrink: 0 !important; }
  html:root body.gdk-body .gdk-header .gdk-header__cta .gdk-btn--filled {
    letter-spacing: .04em !important; padding-left: 10px !important; padding-right: 10px !important; min-width: 0 !important;
  }
}
/* Auth pages under 375px: "Portal: User Agent Merchant" was 19px wider than the screen. */
@media (max-width: 374.98px) {
  html:root body.gdk-auth-body .portal-switch { flex-wrap: wrap !important; justify-content: center; row-gap: 8px; column-gap: 6px !important; }
  html:root body.gdk-auth-body .portal-switch .portal-pill { padding-left: 10px !important; padding-right: 10px !important; }
}
/* Login: "Forgot password?" tap target was 23px tall on phones. */
html:root body.gdk-auth-body .gold-link--caps { display: inline-flex; align-items: center; min-height: 32px; }
/* Don't split "No-KYC" across lines (Firefox at 1920px showed "No-" / "KYC"). */
.brand__title em, .gdk-hero h1 em { white-space: nowrap; }
/* Where it works, phones under 420px: three layers of side padding plus a 158px actions column left 42px for the
   merchant name at 320px, so names broke letter by letter. Drop the extra padding and stack the two actions. */
@media (max-width: 419.98px) {
  html:root body.gdk-body .gdk-confirmed__wrap.gdk-container { padding-left: 0 !important; padding-right: 0 !important; }
  html:root body.gdk-body .gdk-confirmed__frame.gdk-card { padding-left: 14px !important; padding-right: 14px !important; }
  html:root body.gdk-body .gdk-confirmed__table td.gdk-confirmed__actions {
    flex-direction: column !important; align-items: stretch !important; gap: 4px !important;
  }
  html:root body.gdk-body .gdk-confirmed__table td.gdk-confirmed__actions > a { justify-content: center; text-align: center; }
}
/* Login: "Open a User Account" link under the form was a 23px tap target on phones. */
html:root body.gdk-auth-body .muted-note--centered .gold-link { display: inline-block; padding-top: 5px; padding-bottom: 5px; }
/* Auth brand panel on phones: the card art started right under the intro text (0px gap), so its frame clipped the last line. */
@media (max-width: 767.98px) {
  html:root body.gdk-auth-body .brand-panel .brand__hero-card { margin-top: 24px !important; }
}
/* Font Awesome for the public site only: subsets with the ~240 icons the marketing, blog, legal and auth pages use
   (302 KB -> 32 KB). Later @font-face rules with the same family/weight win, so the full files are never fetched here.
   The logged-in app does not load this stylesheet and keeps the full fonts. Rebuild: tmp/fa/build.py + fontTools.subset. */
@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:900;font-display:block;src:url(/frontend/fonts/fa-solid-900-site-v1.woff2) format("woff2")}
@font-face{font-family:"Font Awesome 6 Free";font-style:normal;font-weight:400;font-display:block;src:url(/frontend/fonts/fa-regular-400-site-v1.woff2) format("woff2")}
@font-face{font-family:"Font Awesome 6 Brands";font-style:normal;font-weight:400;font-display:block;src:url(/frontend/fonts/fa-brands-400-site-v1.woff2) format("woff2")}
/* Signup username hint ("3–30 characters…") had no styles and rendered as 16px white body text. Match the form's helper text. */
html:root body.gdk-auth-body .field__hint { font-size: 12.5px; line-height: 1.45; color: rgba(186, 206, 240, 0.72); margin-top: 8px; letter-spacing: .01em; }
