/* Vaytax shell: the page frame, Marketing's wave-2 acceptance criteria for the page bodies (audit 26.11).

   Needs /shell/tokens.css and /shell/shell.css before it. Loaded by the shell pages only, after the pages' own
   sheets, so it wins over them; the !important marks are there to win over the old pages' inline style
   attributes, which a stylesheet cannot beat any other way. Every rule is scoped under body.sh-page, so the file
   changes nothing on a page without the shell. tests/test_shell_pages.py measures each criterion in a browser at
   1440, 1180 and 390 px:

   1. One container: the logo, the breadcrumb and the content of every section share one left edge, --sh-edge.
   2. One stripe: every flag stripe is the stripe component (segments on a neutral track, shell.css).
   3. Brand colours only: no flag yellow as text or fill, no royal blue, no typewriter price font.
   4. One primary and one secondary button (.sh-btn-primary / .sh-btn-secondary, and every old button class
      mapped onto them).
   5. One closing call-to-action band, with a gap before the footer (the order is set by the page builder).
   6. 44 px tap targets on phones.
   7. The money pages' main button on the first phone screen (390 x 844).
   8. Balanced card grids: no card alone on the last row.
   Colours are token names only, except the flags, which are facts. */

/* ---------------------------------------------------------------- 1. one container
   Sections run full width (their backgrounds stay full-bleed); the wrapper inside takes the container edge. */
body.sh-page .sh-main > :is(section, div:not([data-slot]), aside), body.sh-page > section { padding-left: 0 !important; padding-right: 0 !important; }
body.sh-page .sh-main :is(.hv-wrap, .v2-container, .pv2-wrap, .adv-wrap, .hero-inner, .lb-inner, .pv3-hero-in,
  .cred-strip-inner, .v2-about-stats-grid, .shl-wrap, .contact-body, .vx-tpstrip > div, .refs > div, .pv3-video > div, .pv2-cases > div,
  .pv2-reviews > div, section[aria-labelledby="take-on-title"] > div),
body.sh-page .sh-main > section[aria-labelledby="cheapest-way"], body.sh-page .sh-main > section[aria-labelledby="cost-to-register"],
body.sh-page > section > div {
  box-sizing: border-box; max-width: none !important; width: auto !important;
  margin-left: var(--sh-edge) !important; margin-right: var(--sh-edge) !important;
  padding-left: 0 !important; padding-right: 0 !important;
}
/* cards that were the wrapper keep their inner padding */
body.sh-page .sh-main :is(.pv3-glance-box, .pv2-partners-box) {
  box-sizing: border-box; max-width: none !important; width: auto !important;
  margin-left: var(--sh-edge) !important; margin-right: var(--sh-edge) !important;
}
body.sh-page .sh-main .contact-body > section, body.sh-page .sh-main .contact-body > div { margin-left: 0; margin-right: 0; }
body.sh-page > section > div > div { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
/* inner offsets that pushed content off the edge */
body.sh-page .sh-main .v7-ask .vx-ask { padding-left: 0 !important; padding-right: 0 !important; }
body.sh-page .sh-main .v7-ask .vx-ask .ask-in { max-width: none; }
body.sh-page .sh-main .cred-strip-inner { align-items: flex-start; text-align: left; }
body.sh-page .sh-main .cred-strip-inner .cred-marks { justify-content: flex-start; }
/* the portrait's own vertical stripe goes (one stripe component, horizontal), and the photo takes the edge */
body.sh-page .sh-main .v2-founder-portrait { padding-left: 0 !important; }
body.sh-page .sh-main .v2-founder-portrait::before { content: none; }
/* a gap before the footer, so the last band never runs into the navy footer (audit S12) */
body.sh-page .sh-main { padding-bottom: var(--ds-sp-7); }

/* ---------------------------------------------------------------- 2. one stripe
   The page bodies' own flag stripes and flags take the stripe component's look. */
body.sh-page .sh-main :is(.pv2-flagbar, .pv2-flag, .router-flag, .hv-fr-flag, .hero-flagstripe, .hv-bar),
body.sh-page .sh-main :is(div, span):has(> [style*="background:#dd0000"], > [style*="background: #dd0000"]),
body.sh-page > section :is(div, span):has(> [style*="background:#dd0000"], > [style*="background: #dd0000"]) {
  display: flex; padding: 1px; gap: 1px; border: 0 !important; border-radius: 2px; background: var(--ds-border-input);
}
body.sh-page .sh-main .pv2-flagbar { height: 6px; }
/* stripes drawn as a gradient on a band's top edge: the same track, the same 1 px gaps */
body.sh-page .sh-main :is(.v7-ask, .hv-team-card, .v2-about-stats, .v2-feature-card.accent)::before {
  height: 6px; padding: 1px; box-sizing: border-box;
  background: linear-gradient(90deg, #000000 0 calc(33.3% - 1px), transparent 0 33.3%,
    #dd0000 0 calc(66.6% - 1px), transparent 0 66.6%, #ffcc00 0) content-box, var(--ds-border-input);
}

/* ---------------------------------------------------------------- 3. brand colours only */
/* the royal-blue gradients on dark cards become plain navy */
body.sh-page [style*="linear-gradient(135deg,#233985"], body.sh-page [style*="linear-gradient(135deg, #233985"] { background: var(--ds-dark) !important; }
body.sh-page .sh-main .v2-about-stats :is(.k, .k *) { color: var(--ds-accent-2) !important; }
body.sh-page .sh-main :is(.pv2-num, .pv2-x-price, .pv2-x-price [data-price], .pv2-addon-price) {
  font-family: var(--ds-font-text) !important; font-variant-numeric: lining-nums tabular-nums;
}

/* ---------------------------------------------------------------- 4. one primary, one secondary button
   The shape is the design standard's (marketing 28.11, section 4): sentence case, no letter spacing, 48px tall, 8px
   corners, Roboto 600; uppercase never on a button. The wave-2 block further down repeats the same shape.
   :where() keeps every selector here at the weight of body.sh-page alone, so the later rule wins by order:
   primary, then secondary, then the dark-surface versions. */
body.sh-page :where(.sh-btn, .sh-main :is(.hv-btn-primary, .btn-hero-primary, .btn-hero-secondary, .v2-btn-primary, .btn-cta,
  .pv2-btn, .adv-btn, .lb-cta, .ask-send), .sh-main a[style*="text-transform:uppercase"][style*="padding"]) {
  display: inline-flex !important; align-items: center; justify-content: center; gap: var(--ds-sp-2); box-sizing: border-box;
  min-height: 48px; padding: 12px 24px !important; border: 1.5px solid var(--ds-dark) !important; border-radius: var(--ds-r-btn) !important;
  font-family: var(--ds-font-text) !important; font-size: 15px !important; font-weight: 600 !important;
  letter-spacing: 0 !important; line-height: 1.2; text-transform: none !important; text-decoration: none !important;
  background: var(--ds-dark) !important; color: var(--ds-on-dark) !important; box-shadow: none !important; cursor: pointer;
  transition: transform var(--mo-dur-xs) var(--mo-ease), color var(--mo-dur-s) var(--mo-ease),
    background-color var(--mo-dur-s) var(--mo-ease), border-color var(--mo-dur-s) var(--mo-ease);
}
body.sh-page :where(.sh-btn, .sh-main :is(.hv-btn-primary, .btn-hero-primary, .btn-hero-secondary, .v2-btn-primary, .btn-cta,
  .pv2-btn, .adv-btn, .lb-cta, .ask-send), .sh-main a[style*="text-transform:uppercase"][style*="padding"]):hover {
  background: var(--ds-dark-3) !important; border-color: var(--ds-dark-3) !important;
}
body.sh-page :where(.sh-btn, .sh-main :is(.hv-btn-primary, .btn-hero-primary, .btn-hero-secondary, .v2-btn-primary, .btn-cta,
  .pv2-btn, .adv-btn, .lb-cta, .ask-send), .sh-main a[style*="text-transform:uppercase"][style*="padding"]):active {
  transform: scale(var(--mo-press));
}
/* the secondary: outlined */
body.sh-page :where(.sh-btn-secondary, .sh-main :is(.btn-hero-secondary, .pv2-btn-outline, .adv-btn.ghost,
  .v2-btn-primary[style*="background:#fff"], a[style*="text-transform:uppercase"][style*="border:1px solid"])) {
  background: transparent !important; color: var(--ds-dark) !important;
}
body.sh-page :where(.sh-btn-secondary, .sh-main :is(.btn-hero-secondary, .pv2-btn-outline, .adv-btn.ghost,
  .v2-btn-primary[style*="background:#fff"], a[style*="text-transform:uppercase"][style*="border:1px solid"])):hover {
  background: var(--ds-bg-alt) !important; border-color: var(--ds-dark) !important;
}
body.sh-page .sh-hero-cta { display: block !important; grid-column: 1 / -1; margin: var(--ds-sp-5) 0 0; }
@media (prefers-reduced-motion: reduce) {
  body.sh-page .sh-main :is(.sh-btn, .hv-btn-primary, .pv2-btn, .ask-send, .lb-cta):active { transform: none; }
}

/* ---------------------------------------------------------------- 6. 44 px tap targets on phones */
@media (max-width: 700px) {
  body.sh-page .sh-main :is(.ask-f, .ask-heard-chip, .ask-send, summary) { min-height: 44px; }
  body.sh-page .sh-main .ask-tax-options label { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
  body.sh-page .sh-main a[href*="trustpilot.com/review"], body.sh-page > section a[href*="trustpilot.com/review"] { display: inline-flex !important; align-items: center; min-height: 44px; }
  body.sh-page .sh-main .ask-consent, body.sh-page .sh-main label:has(> input[type="checkbox"]) { display: flex; align-items: center; min-height: 44px; }
  body.sh-page .sh-main :is(.vx-tp-link, .hv-team a.name, .pv2-cases summary, .pv2-reviews summary, .refs a, .vx-tpstrip a,
    .pv3-glance a, .pv2-partners a, section[aria-labelledby="take-on-title"] li > a, .hv-faq-side a, .pv2-plans a:not(.pv2-btn)) {
    display: inline-flex; align-items: center; min-height: 44px;
  }
}

/* ================================================================ wave 2: the tools and the help pages
   Everything below is scoped to body.sh-page.sh-w2 (the generator adds the class to the wave-2 pages only). */

/* 1. one container: every section's side padding is the container edge; what sits in it, and every wrapper
   (inner, wrap, container) below it, fills that width with no margin or padding of its own */
/* the doubled class outranks wave 1's own section padding reset above; top-level sections only, and a section that is
   itself the narrow column (amazon's .ve-hero) runs full width like the others */
body.sh-page.sh-page.sh-w2 .sh-main > section, body.sh-page.sh-page.sh-w2 > section {
  box-sizing: border-box; max-width: none !important; width: auto !important; margin-left: 0 !important; margin-right: 0 !important;
  padding-left: var(--sh-edge) !important; padding-right: var(--sh-edge) !important;
}
body.sh-page.sh-w2 section > :not([data-slot], script, style, template, details, table, img, svg, picture, figure, [class*="flag"], [class*="stripe"]),
body.sh-page.sh-w2 section :is([class*="inner"], [class*="wrap"], [class*="container"], .container, .inner):not(table, [class*="widget"], [class*="card"]) {
  box-sizing: border-box; max-width: none !important; width: auto !important; margin-left: 0 !important; margin-right: 0 !important;
}
body.sh-page.sh-w2 section :is([class*="inner"], [class*="wrap"], [class*="container"], .container, .inner):not(table, [class*="widget"], [class*="card"]) { padding-left: 0 !important; padding-right: 0 !important; }
body.sh-page.sh-w2 section { text-align: left !important; }
body.sh-page.sh-w2 section > * > :is(form, div, header, details, nav, ul, ol, article, aside):not([class*="card"], [class*="widget"], [data-slot]),
body.sh-page.sh-w2 section > * > * > :is(form, div, header, details, nav, ul, ol, article, aside):not([class*="card"], [class*="widget"], [data-slot]),
body.sh-page.sh-w2 .sh-main > div:not([data-slot], .hp-wrap) > :is(div, form):not([class*="card"], [class*="widget"], [data-slot]),
body.sh-page.sh-w2 .sh-main > div:not([data-slot], .hp-wrap) > * > :is(div, form):not([class*="card"], [class*="widget"], [data-slot]) {
  margin-left: 0 !important; max-width: none !important;
}
body.sh-page.sh-w2 section :is(h1, h2, h3, p, .lede, .eyebrow, .hero-eyebrow, .ve-eyebrow, [class*="eyebrow"]) { margin-left: 0 !important; margin-right: auto !important; text-align: left !important; }
body.sh-page.sh-w2 section > :is(details, table) { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
body.sh-page.sh-w2 .sh-main > :is(div, article, form):not([data-slot], .hp-wrap) {
  box-sizing: border-box; max-width: none !important; width: auto !important;
  margin-left: var(--sh-edge) !important; margin-right: var(--sh-edge) !important; padding-left: 0 !important; padding-right: 0 !important;
}
/* a <main> that is itself the narrow column (amazon's .ve-wrap) runs full width; the pieces take the container edge */
body.sh-page.sh-page.sh-w2 main.sh-main { max-width: none !important; width: auto !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
body.sh-page.sh-w2 .sh-main > div:not([data-slot], .hp-wrap) > .container { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; padding-left: 0 !important; padding-right: 0 !important; }
/* centred pieces inside a full-width row take the edge too */
body.sh-page.sh-w2 :is(.price-card, .cred-credential, .rs-cred-marks) { margin-left: 0 !important; }
body.sh-page.sh-w2 :is(.cred-strip-inner, .rs-cred-inner) { align-items: flex-start !important; justify-content: flex-start !important; }
body.sh-page.sh-w2 .rs-cred-marks { justify-content: flex-start !important; }
body.sh-page.sh-w2 :is(.ec-hero-inner, .rs-hero-inner) { align-items: flex-start !important; }
/* 8. balanced card grids, no card alone on a row: resources' ten guides as two columns, its thirteen topics as five */
@media (min-width: 701px) { body.sh-page.sh-w2 #guides .rs-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (min-width: 1100px) { body.sh-page.sh-w2 .rs-topic-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }
/* a lone credential row stacks icon over text, as it does on phones, so its text starts on the edge */
body.sh-page.sh-w2 .cred-strip-inner > .cred-credential:only-child { flex-direction: column !important; align-items: flex-start !important; text-align: left !important; }
/* the Sources box (sources.css, 26.11) keeps its reading width and takes the container's left edge */
body.sh-page.sh-w2 .sh-main > aside.vx-sources { max-width: 760px !important; margin-left: var(--sh-edge) !important; margin-right: var(--sh-edge) !important; }
/* the help answer keeps its reading measure; its left edge is the container's */
body.sh-page.sh-w2 .sh-main .hp-wrap { box-sizing: border-box; max-width: 760px !important; width: auto !important; margin: 0 var(--sh-edge) !important; padding: var(--ds-sp-7) 0 var(--ds-sp-8) !important; }
body.sh-page.sh-w2 .sh-main table { margin-left: 0 !important; }

/* 2. one stripe component for the old pages' own flag stripes */
body.sh-page.sh-w2 :is(.flag-stripe, .flag, .flag-dot, .rs-flag:not(.rs-flag-eu, .rs-flag-fr), .rs-hero-flagstripe, .logo-stripe) {
  display: flex; padding: 1px; gap: 1px; border: 0 !important; border-radius: 2px; background: var(--ds-border-input);
}
/* the same component where a stripe is drawn as a gradient on the eyebrow's ::before */
body.sh-page.sh-w2 :is(.tagline, .eyebrow-flag, .price-card, .validator, .tool)::before,
body.sh-page.sh-w2 .sh-main > section.hero:has(~ .tool-wrap)::before {
  height: 6px; padding: 1px; box-sizing: border-box;
  background: linear-gradient(90deg, #000000 0 calc(33.3% - 1px), transparent 0 33.3%,
    #dd0000 0 calc(66.6% - 1px), transparent 0 66.6%, #ffcc00 0) content-box, var(--ds-border-input) !important;
}

/* a small stripe above a heading keeps its own width (wave 1's rule above makes it a full-width flex row) */
body.sh-page.sh-w2 .sh-main :is(div, span):has(> [style*="background:#dd0000"]) { display: inline-flex; width: max-content !important; }
body.sh-page.sh-w2 .sh-main :is(div, span):has(> [style*="background:#dd0000"]) > span { min-width: 22px; min-height: 3px; }

/* 3. brand colours only */
body.sh-page.sh-w2 :is(.rc2-card, .dec-page > section#how, .rs-post-cover) { background: var(--ds-dark) !important; }
body.sh-page.sh-w2 :is(.accent, .yr, .rs-eyebrow, .rs-compare-tag, .rs-featured-cta, .rs-hero-microline a, .rs-arrow) { color: var(--ds-accent-2) !important; }
/* no stripe on a footer's edge: the old 3px vertical stripe became a 3 x 6 px tick at the slim footer's corner */
body.sh-page.sh-w2 footer.foot-trust::before { content: none !important; }
/* Text on the dark bands at AA-plus (28.11): 14px and up --ds-on-dark-soft, smaller --ds-on-dark-small. The letter
   page's "How it works" band and the slim foot-trust footer type their colours inline or in the page. */
body.sh-page.sh-w2 .dec-page > section#how p { color: var(--ds-on-dark-soft) !important; }
body.sh-page.sh-w2 :is(.foot-trust, .foot-trust .foot-meta, .foot-trust .foot-meta a, .foot-trust .ft-left span, .foot-trust .ft-items span) { color: var(--ds-on-dark-small) !important; }
body.sh-page.sh-w2 .foot-trust .foot-meta a:hover { color: var(--ds-on-dark) !important; }
/* the shared question form's Send in the one weight (ask.css sets 500 for the form; the button shape is Roboto 600) */
body.sh-page .sh-main .vx-ask .ask-send { font-weight: 600 !important; }
/* choice switches keep their pill; only the case goes (design standard 28.11: uppercase never on a button) */
body.sh-page .pv3-switch-btn { letter-spacing: 0 !important; text-transform: none !important; }
body.sh-page.sh-w2 .rc2-band span { background: var(--ds-accent-fill) !important; color: var(--ds-on-accent-fill) !important; }
body.sh-page.sh-w2 :is([style*="color:#ffcc00"], [style*="color: #ffcc00"]) { color: var(--ds-accent-2) !important; }
/* not the segments of a flag stripe (the footer's German flag kept its yellow on old pages; one footer, 28.11) */
body.sh-page.sh-w2 :is([style*="background:#ffcc00"], [style*="background: #ffcc00"], [style*="background-color:#ffcc00"], [style*="background-color: #ffcc00"]):not(.sh-stripe > *) { background: var(--ds-accent-fill) !important; color: var(--ds-on-accent-fill) !important; border-color: var(--ds-accent-fill) !important; }
body.sh-page.sh-w2 :is(.rs-featured-icon) { background: var(--ds-accent-fill) !important; }
body.sh-page.sh-w2 .rs-featured { border-color: var(--ds-accent-2) !important; }
body.sh-page.sh-w2 :is(td, th, td *, textarea, .date, .penalty-rate, .vx-famap *) { font-family: var(--ds-font-text) !important; font-variant-numeric: lining-nums tabular-nums; }

/* 4. one primary and one secondary button, wherever the old page puts them (outside <main> too) */
body.sh-page.sh-w2 :where(.hp-btn, .lb-cta, .rs-shelf-hub, .rc2-btn, .rc2-btn.secondary, .rs-hero-cta-row a, .rs-compare a.btn, section > div > a.btn-hero-primary, .rc2-btn, .lf-cta-1, .lf-cta-2, .cta-btn, .v-submit, .t-submit, .btn-secondary, .btn-hero-primary, .btn-hero-secondary, #vc-cal-btn, #vxAskBtn,
  .vx-desk-cta button, .vx-mob-cta button, #flEmbedCopy, .ec-cta-band a, .fl-cta-band a, .rc2-band a, .bottom-cta a, .faq-page-cta .cta-row a, .v2-article-callout a, .result-cta-submit, .ve-cta, #ve-cap-submit, #ec-capture-submit, #flCapSubmit, #euvvCapSubmit, #viesNotifySend) {
  display: inline-flex !important; align-items: center; justify-content: center; gap: var(--ds-sp-2); box-sizing: border-box;
  min-height: 48px; padding: 12px 24px !important; border: 1.5px solid var(--ds-dark) !important; border-radius: var(--ds-r-btn) !important;
  font-family: var(--ds-font-text) !important; font-size: 15px !important; font-weight: 600 !important;
  letter-spacing: 0 !important; line-height: 1.2; text-transform: none !important; text-decoration: none !important;
  background: var(--ds-dark) !important; color: var(--ds-on-dark) !important; box-shadow: none !important; cursor: pointer;
  transition: transform var(--mo-dur-xs) var(--mo-ease), color var(--mo-dur-s) var(--mo-ease),
    background-color var(--mo-dur-s) var(--mo-ease), border-color var(--mo-dur-s) var(--mo-ease);
}
body.sh-page.sh-w2 :where(.hp-btn.ghost, .rc2-btn.secondary, .rs-hero-cta-row .btn-hero-secondary, .lf-cta-2, .btn-secondary, .btn-hero-secondary, .ec-cta-band a.secondary, .fl-cta-band a.secondary, .cta-btn, #flEmbedCopy, .rc2-btn.ghost) {
  background: transparent !important; color: var(--ds-dark) !important;
}
/* on a dark band: gold primary, white outline */
body.sh-page.sh-w2 :is(.ec-cta-band, .fl-cta-band, .rc2-band, .rc2-card, .bottom-cta, .faq-page-cta, .rs-hero.vx-dark) :where(a, button):is(.primary, .secondary, .ghost, .rc2-btn, .cta-btn, .btn-hero-primary, .btn-hero-secondary),
body.sh-page.sh-w2 .rc2-band a:not(.secondary, .ghost) {
  background: var(--ds-accent-fill) !important; color: var(--ds-on-accent-fill) !important; border-color: var(--ds-accent-fill) !important;
}
body.sh-page.sh-w2 :is(.ec-cta-band, .fl-cta-band, .rc2-band, .rc2-card, .bottom-cta, .faq-page-cta, .rs-hero.vx-dark) :where(a, button):is(.secondary, .ghost, .btn-hero-secondary, .cta-btn) {
  background: transparent !important; color: var(--ds-on-dark) !important; border-color: var(--ds-on-dark) !important;
}

/* 6. 44 px tap targets on phones */
@media (max-width: 700px) {
  body.sh-page.sh-w2 :is(button, summary, select, textarea, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])) { min-height: 44px; }
  body.sh-page.sh-w2 :is(li, .hp-more p, .foot-meta span) > a:only-child, body.sh-page.sh-w2 :is(.faq-chip, .quiz-foot-prev, .lf-exit, .scroll-to-calendar) {
    display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  }
  body.sh-page.sh-w2 :is(.foot-meta, .rs-hero-microline, .rc2-fine, .rs-compare p, .rs-recent-head, .up-cta) a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}
