/* extras-trust.css: minimal additions for the Trust / Conversion / Enterprise families
   (16-comparison, 17-reviews, 18-get-a-quote, 19-thank-you, 20-enterprise).
   Load after ../system/rbo-ds.css. Tokens only; no new colours. Each rule states its purpose. */

/* 1. Reviews (17): a 4-star Google rating needs one unfilled star; drawn in the rule colour, the aria-label carries the rating. */
.stars .icon.is-off { fill: var(--rule-2); }

/* 2. Reviews (17): "Load More" is a native <details>; its summary looks like the secondary button and disappears once open. */
.reviews-more > summary { list-style: none; display: flex; width: fit-content; margin: var(--s-6) auto 0; }
.reviews-more > summary::-webkit-details-marker { display: none; }
.reviews-more[open] > summary { display: none; }
.reviews-more > .reviews { margin-top: var(--s-4); }

/* 3. Reviews (17): the two client videos keep a 16:9 frame at every width instead of the fixed 570x321 iframes. */
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--navy); box-shadow: var(--sh-2); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* 4. Hero review (17): a review card inside the navy hero's aside keeps light-surface text colours. */
.hero-aside .review-card blockquote { font-size: 1.125rem; }

/* 5. Quote page (18) and enterprise (20): multi-line inputs keep the 48px field look but open taller. */
textarea.input { min-height: 112px; resize: vertical; line-height: 1.5; }

/* 6. Quote page (18): focused header (logo + call only). From 640px the labelled call button shows, so the icon-only call link hides. */
@media (min-width: 640px) { .header--focus .header-call { display: none; } }
.header--focus .header-actions .btn .icon { width: 18px; height: 18px; }

/* 7. Quote page (18): the "Get pricing for" services and the step sub-list read as small neutral tags, not links. */
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; }
/* plain list of what the quote covers: a check and the words, no boxes that look like selectable options (QA D-009) */
.tag-list { gap: var(--s-2) var(--s-5); }
.tag-list > * { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; font-size: var(--fs-sm); font-weight: var(--fw-ui); color: var(--ink-2); }
.tag-list > *::before { content: ""; flex: none; width: 10px; height: 5px; margin-top: -3px; border-left: 1.75px solid var(--positive); border-bottom: 1.75px solid var(--positive); transform: rotate(-45deg); }
.path li > div > .tag-list { margin-top: var(--s-2); font-weight: var(--fw-medium); }

/* 8. Thank-you (19): the confirmation mark beside the H1 on navy (positive check in a sky ring). */
.confirm-mark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--sky); color: #fff; margin-bottom: var(--s-5); }
.confirm-mark .icon { width: 28px; height: 28px; }

/* 9. Enterprise (20): the enterprise mega menu has four link columns (the shared mega grid has three). */
@media (min-width: 1100px) { .mega-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mega-grid--4 .dd-label + ul + .dd-label { margin-top: var(--s-4); }

/* 10. Enterprise (20): a quiet label in the header beside the logo marks the enterprise section. */
.brand-sub { display: none; font-size: var(--fs-meta); font-weight: var(--fw-bold); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--ink-3); border-left: 1px solid var(--rule); padding-left: var(--s-4); margin-left: var(--s-4); white-space: nowrap; }
@media (min-width: 480px) { .brand-sub { display: inline-block; } }
.site-header .brand { display: inline-flex; align-items: center; }

/* 11. Comparison (16): price table for a third party's published prices: the figure column stays right-aligned and tabular on phones too. */
.price-table--third td.fig { white-space: nowrap; }
.price-table--third .sub { display: inline; }
.price-table--third thead th.r { white-space: normal; } /* a long column title wraps instead of pushing the figures out of the panel */

/* 12. Quote page (18): the form-level alert stays hidden until validation fails (the DS sets display:flex, which beats [hidden]). */
.form-alert[hidden] { display: none; }

/* 13. Quote page (18): the response-time promise on navy reads in white with its clock icon on the same line. */
.hero-note--time { display: flex; gap: 8px; align-items: flex-start; }
.hero-note--time strong { color: #fff; font-weight: var(--fw-ui); }
.hero-note--time .icon { color: var(--sky); margin-top: 3px; flex: none; }

/* 14. Thank-you (19): a real H2 used as a statement title keeps heading size (the DS .title is a small label). */
.statement-head h2.title { font-size: 1.25rem; line-height: 1.25; color: var(--navy); }

/* 15. Enterprise (20): the systems list has three entries, so the platform grid uses three equal columns from 640px. */
@media (min-width: 640px) { .platforms--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* 16. moved to the core (section 24). */

/* 17. Enterprise (20): the header's "Enterprise" label is part of the logo link and is not underlined. */
.site-header .brand, .site-header .brand:hover { text-decoration: none; }
/* 18. Quote page (18): page rules for /get-a-quote (.ds-page). header2 / footer2 now have the design-system branch (focus chrome:
   no style.css, stylesheets in <head>, legal footer, rbo-ds.js), so the style.css neutralisers below are inert; kept because
   they also fix the look (mobile hero on white, sentence-case buttons). Footer rules moved to the core (section 24). */
.ds-page .btn { text-transform: none; font-weight: var(--fw-btn); margin-right: 0 !important; }
.ds-page .hero { display: block; height: auto; background: none; color: inherit; }
@media (min-width: 960px) { .ds-page .hero { background: var(--surface-brand); color: var(--on-navy); } }
.ds-page .hero h1 { margin-bottom: 0; }
.ds-page .hero .btn { border-radius: var(--r-sm); font-size: inherit; }
.ds-page .btn-primary, .ds-page .btn-primary:hover, .ds-page .btn-primary:focus, .ds-page .btn-primary:active,
.ds-page form[data-rbo-form="get-a-quote"] .btn-primary, .ds-page form[data-rbo-form="get-a-quote"] .btn-primary:hover { background: var(--btn-p-bg); border: 1px solid transparent; color: var(--btn-p-fg); }
.ds-page .btn-primary:hover, .ds-page form[data-rbo-form="get-a-quote"] .btn-primary:hover { background: var(--btn-p-hover); }
.ds-page .faq { font-weight: inherit; }
.ds-page .text-danger.field-error { color: var(--error); }
.ds-page .rbo-req-note { font-size: var(--fs-meta); color: var(--ink-2); }
.hero-facts-label { margin: var(--s-6) 0 0; font-size: var(--fs-meta); font-weight: var(--fw-ui); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--on-navy-2); }
.hero-facts-label + .hero-facts { margin-top: var(--s-2); }
/* 19. Quote page (18): two cards of unequal length sit at their own height (no tall empty navy card). */
.grid--start { align-items: start; }
/* 20. Thank-you (19): in a row of equal-height cards the card link sits on the bottom edge, so the four links line up. */
.cards-compact > .card { display: flex; flex-direction: column; }
.cards-compact > .card > .card-foot { margin-top: auto; padding-top: var(--s-3); }
/* 21. Reviews (17): the feed's review list (js/reviews.js inserts the feed HTML: a table per review) drawn as DS review cards.
   Only Google-attributed items remain (the page filters the others out); the source cell becomes the "Google review" footer. */
.reviews-list .review { display: block; margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--s-5) var(--s-6); box-shadow: var(--sh-1); }
.reviews-list .review table, .reviews-list .review tbody { display: flex; flex-direction: column; width: 100%; height: 100%; }
.reviews-list .review tr { flex: 1; display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: var(--s-3); align-items: start; }
.reviews-list .review td { display: block; padding: 0; width: auto; }
.reviews-list .review td[align=right] { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; text-align: left; padding-top: var(--s-3); border-top: 1px solid var(--rule); font-size: var(--fs-meta); font-weight: var(--fw-ui); color: var(--ink-2); }
.reviews-list .review td[align=right] img { height: 16px; width: auto; }
.reviews-list .avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--navy) !important; color: #fff; font-weight: var(--fw-bold); }
.reviews-list .review p { margin: 0 0 var(--s-2); color: var(--ink); font-size: 1.0625rem; line-height: 1.55; }
.reviews-list .review p:first-child { font-size: var(--fs-sm); color: var(--ink-2); }
.reviews-list .review p:first-child strong { color: var(--ink); }
.reviews-list .review p:first-child > span { display: flex; margin-bottom: 4px; }
.reviews-list .fa-star { display: inline-block; width: 18px; height: 18px; margin-right: 2px; background: var(--star);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2l2.6 5.6 6.1.7-4.5 4.2 1.2 6.1L12 16.8l-5.4 3 1.2-6.1-4.5-4.2 6.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2l2.6 5.6 6.1.7-4.5 4.2 1.2 6.1L12 16.8l-5.4 3 1.2-6.1-4.5-4.2 6.1-.7z'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (min-width: 760px) { .reviews-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 22. Comparison (16) and enterprise pages: templates/disclaimer.php (shared, no design-system branch) is wrapped in
   .disclaimer-ds by the page and read as the quiet source note of the prototype (same text, same markup). */
.disclaimer-ds { border-top: 1px solid var(--rule); }
.disclaimer-ds .container.small { font-size: var(--fs-meta); line-height: 1.6; color: var(--ink-2); }
.disclaimer-ds .container.small p { margin: 0; max-width: 90ch; }
@media (min-width: 960px) { .disclaimer-ds .container.small { font-size: var(--fs-sm); } }
/* 23. Comparison (16): the final verdict reads as a statement (display size without the display weight). */
.verdict-text { font-size: 1.1875rem; line-height: 1.55; color: var(--ink); }
/* 24. Comparison (16): on phones the feature table becomes stacked cards; the sticky first column's divider line is dropped there. */
@media (max-width: 759px) { .rt-cards.data-table--sticky tr > :first-child { position: static; box-shadow: none; } }
/* 25. Enterprise (20): the hero scope card lists its four items with comfortable padding; the problem statement reads large. */
.statement > .checklist.statement-body { padding: var(--s-4) var(--s-5); margin: 0; display: grid; gap: var(--s-2); }
.statement-text { font-size: 1.25rem; line-height: 1.55; color: var(--ink); }
.sub-nav { border-bottom: 1px solid var(--rule); }
/* 26. Payroll (07): rules copied from design/prototypes/extras-services.css (section 17-19 and the payroll phone rules), unchanged,
   so the payroll suite does not depend on the services module. */
.payroll-plans .plan { height: 100%; }
.price-table .fig-strong { display: block; font-weight: var(--fw-bold); color: var(--navy); font-size: 1.0625rem; }
.price-table caption { font-size: var(--fs-sm); }
@media (min-width: 640px) { .field-row--3 { grid-template-columns: 2fr 1fr 1fr; } }
.estimator .glance-figure { margin: var(--s-4) calc(-1 * var(--s-6)) 0; padding-inline: var(--s-6); border-block: 1px solid var(--rule); background: var(--paper-2); font-size: var(--fs-lead); color: var(--ink-2); }
.estimator .glance-figure .amt { display: inline-block; margin-left: 6px; font-size: var(--fs-price); font-weight: var(--fw-price); color: var(--navy); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; vertical-align: -4px; }
.estimator select.input { appearance: auto; }
.rule-left { border-left: 1px solid var(--rule-2); padding-left: var(--s-6); color: var(--ink-2); }
@media (max-width: 959px) { .rule-left { border-left: 0; padding-left: 0; } }
.band-navy strong, .cta-band strong, .card--navy strong { color: #fff; }
.list-cols { column-gap: var(--s-8); }
.list-cols > li { break-inside: avoid; }
@media (min-width: 760px) { .list-cols { columns: 2; } .list-cols > li:nth-child(1) { border-top: 0; } }
ul.grid, ol.grid { list-style: none; }
.more-links p { font-size: var(--fs-sm); color: var(--ink-2); }
.more-links p a { font-weight: var(--fw-ui); }
@media (max-width: 639px) {
  .payroll-table th[scope="row"] { font-weight: var(--fw-bold); color: var(--navy); }
  .payroll-table th[scope="row"]::after { content: " employees"; font-weight: var(--fw-ui); color: var(--ink-3); }
  .payroll-table td[data-label] { align-items: baseline; gap: 12px; }
  .payroll-table td[data-label]::before { flex: 1; text-align: left; }
  .payroll-table .calc .sub { display: inline; }
  .payroll-table .calc .fig-strong { display: inline; font-size: 1rem; }
}
.payroll-table .calc { display: inline-block; text-align: right; }
@media (max-width: 639px) { .price-table--stack td[data-label] { gap: 12px; } .price-table--stack td[data-label] > * { text-align: right; } }
@media (max-width: 639px) {
  .payroll-table caption { display: block; width: 100%; }
  .payroll-table td[data-label] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .payroll-table td[data-label]::before { grid-column: 1 / -1; }
  .payroll-table .calc { display: contents; }
  .payroll-table .calc .sub { text-align: left; }
}
@media (max-width: 639px) { .cards-compact .card > p.card-title { grid-column: auto; margin: 0; font-size: 1.0625rem; } .split > *, .grid > * { min-width: 0; } }
/* 27. Quote forms (18, payroll quote): selects keep the native arrow inside the 48px input look. */
.form-card select.input { appearance: auto; }
.more-links-line { font-size: var(--fs-sm); color: var(--ink-2); }
/* 30. Quote pages (18): a tall form beside a short hero text keeps the text at the top, not centred against the form. */
@media (min-width: 960px) { .hero--short:has(.form-card) .hero-main { align-self: start; padding-top: var(--s-6); } }
/* 28 (bridge), 29 (.tc-ds), 31, 32: moved to the core (css/rbo-ds.css sections 24-25). */
