/* Public SEO guides (landing-pages/guides). Builds on the main landing styles (.hl tokens, buttons, steps, FAQ, CTA in
   home.css and public-faq.css, light/dark through [data-theme]); only the guide-specific blocks live here. */
.gd-visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Google Scroll-to-Text-Fragment (#:~:text=...) highlight aligned with Adviaas palette (replaces Chrome default purple). */
::target-text{background-color:rgba(22,163,74,.18);color:inherit}
[data-theme=dark] ::target-text,.gd-hero ::target-text,.gd-highlight ::target-text,.gd-cta ::target-text{background-color:rgba(74,222,128,.26);color:#fff}

/* Hero: breadcrumb on top; the question and actions on the left, the direct answer on the right (same width as the rest). */
.gd-hero{padding:36px 0 64px}
.hl .gd-breadcrumb ol{display:flex;flex-wrap:wrap;gap:6px;list-style:none;margin:0 0 32px;padding:0;font-size:14px;color:var(--hl-on-ink-muted)}
.hl .gd-reviewed{margin:-22px 0 30px;font-size:13px;color:var(--hl-on-ink-muted)}
.gd-breadcrumb li+li::before{content:"/";margin-right:6px;opacity:.6}
.hl .gd-breadcrumb a{color:var(--hl-on-ink)!important;text-decoration:underline;text-underline-offset:3px}
.gd-hero-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:56px;align-items:center}
.hl .gd-eyebrow{margin:0 0 14px;font-size:15px;font-weight:600;color:#7fd8a5}
.gd-title{font-size:clamp(32px,4vw,52px)}
.hl .gd-hero .hl-actions{margin-top:32px}
.gd-answer{padding:26px 28px;border-left:4px solid var(--hl-green);border-radius:0 16px 16px 0;background:rgba(255,255,255,.06)}
.hl .gd-answer-label{margin:0 0 10px;font-size:13px;font-weight:700;color:var(--hl-on-ink-muted)}
.hl .gd-answer-text{margin:0;font-size:18px;line-height:1.65;color:#fff}
.gd-answer-text strong{color:#fff}

/* Sections share the page width: the heading on the left, the text on the right. */
.gd-section{padding:72px 0}
.gd-section:nth-of-type(even){background:var(--hl-mist);border-block:1px solid var(--hl-line)}
.gd-split{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;align-items:start}
.gd-split>.hl-h2{position:sticky;top:96px}
.gd-split-body{min-width:0}
.hl .gd-body p,.hl .gd-section .hl-steps p{font-size:17px;line-height:1.7;color:var(--hl-ink-2)}
.hl .gd-body>*+*{margin-top:16px}
.hl .gd-list{margin:16px 0 0;padding-left:0;list-style:none;display:grid;gap:12px}
.gd-list li{position:relative;padding-left:26px;line-height:1.65;color:var(--hl-ink-2)}
.gd-list li::before{content:"";position:absolute;left:4px;top:.62em;width:9px;height:9px;border-radius:50%;background:var(--hl-green)}
.hl .gd-note{margin-top:24px;padding:18px 20px;border:1px solid var(--hl-line);border-radius:12px;background:var(--hl-paper)}
.hl .gd-note p{margin:0;font-size:16px;line-height:1.65;color:var(--hl-ink-2)}
.hl .gd-links{margin-top:26px}
.hl .gd-links ul{display:flex;flex-wrap:wrap;gap:10px 24px;list-style:none;margin:0;padding:0}
.hl .gd-links-label{margin:0 0 8px;font-size:14px;font-weight:700;color:var(--hl-muted)}
.hl .gd-section .hl-link{font-size:16px}
.hl .gd-section .hl-steps{margin-top:0}
.hl .gd-compare .hl-head,.hl .gd-cards .hl-h2,.hl .gd-scope .hl-h2{margin-bottom:32px}

/* Advisor selection: a dark band that stands out between the sections. */
.gd-section.gd-highlight{background:var(--hl-ink);color:var(--hl-on-ink);border-block:0}
.gd-highlight .hl-h2{color:#fff}
.hl .gd-highlight .gd-body p,.gd-highlight .gd-list li{color:var(--hl-on-ink)}
.gd-highlight .gd-list li strong{color:#fff}
.gd-highlight .gd-list li::before{background:#4ade80}
.hl .gd-highlight a.hl-link{color:#b9e8cc!important}
[data-theme=dark] .gd-section.gd-highlight{background:#12231b}

/* Comparison table: four approaches side by side; the Adviaas column is highlighted. */
.gd-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:15px;line-height:1.5;background:var(--hl-paper);border:1px solid var(--hl-line);border-radius:14px;overflow:hidden}
.gd-table :is(th,td){padding:14px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--hl-line);white-space:normal;overflow-wrap:break-word}
.gd-table th:last-child,.gd-table td:last-child{width:26%}
/* The legacy landing stylesheet paints every th; the table sets its own header colors. */
.hl .gd-table thead th{font-size:14px;font-weight:700;background:var(--hl-mist)!important;color:var(--hl-ink)!important}
.hl .gd-table tbody th{width:16%;font-size:15px;font-weight:700;background:var(--hl-paper)!important;color:var(--hl-ink)!important}
.gd-table td{color:var(--hl-ink-2)}
.gd-table tbody tr:last-child :is(th,td){border-bottom:0}
.gd-table .is-highlight{background:rgba(22,163,74,.08);border-left:2px solid var(--hl-green);color:var(--hl-ink)}
.hl .gd-table thead .is-highlight{background:var(--hl-green)!important;color:#fff!important}

/* Decisions brought to advisors & categorized hubs (3x3) */
.gd-card-group+.gd-card-group{margin-top:32px}
.hl .gd-card-group-title{margin:0 0 14px;font-size:18px;font-weight:700;color:var(--hl-ink)}
.hl .gd-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;list-style:none;margin:0;padding:0}
.hl .gd-card-grid.is-3col{grid-template-columns:repeat(3,minmax(0,1fr))}
.gd-card-grid li{position:relative;display:flex;flex-direction:column;padding:20px;border:1px solid var(--hl-line);border-radius:14px;background:var(--hl-paper);box-shadow:0 5px 16px rgba(0,0,0,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.gd-card-grid li:hover,.gd-card-grid li:focus-within{transform:translateY(-3px);border-color:var(--hl-green);box-shadow:0 10px 24px rgba(0,0,0,.12)}
[data-theme=dark] .gd-card-grid li{box-shadow:0 5px 16px rgba(0,0,0,.22)}
[data-theme=dark] .gd-card-grid li:hover,[data-theme=dark] .gd-card-grid li:focus-within{box-shadow:0 10px 26px rgba(0,0,0,.38)}
@media(prefers-reduced-motion:reduce){.gd-card-grid li{transition:none}.gd-card-grid li:hover,.gd-card-grid li:focus-within{transform:none}}
.hl .gd-card-grid h3,.hl .gd-card-grid h4{font-size:15px;font-weight:700;color:var(--hl-green-deep);margin:0 0 8px}
.gd-card-grid p{font-size:16.5px;line-height:1.5;color:var(--hl-ink);font-family:var(--hl-display)}

/* Scope: what is included next to what is outside. */
.gd-scope-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:20px}
.gd-scope-grid>div{padding:24px;border-radius:14px;border:1px solid var(--hl-line);background:var(--hl-paper)}
.gd-scope-in{display:flex;flex-direction:column;border-top:4px solid var(--hl-green)!important}
.gd-scope-cta{margin-top:auto;padding-top:18px}
.gd-scope-out{border-top:4px solid var(--hl-muted)!important}
.hl .gd-scope-grid h3{font-size:18px;margin:0 0 12px}
.gd-scope-grid p{line-height:1.65;color:var(--hl-ink-2)}
.gd-list-plain li::before{background:var(--hl-muted)}

/* Closing call: a third, quieter link next to the buttons. */
.hl .gd-cta a.gd-cta-link{color:#b9e8cc!important}
.gd-faq{border-top:1px solid var(--hl-line)}
/* The closing band touches the footer (the public footer keeps its top margin elsewhere). */
body:has(.gd) .footer.mt60,.gd~.footer{margin-top:0!important}
.hl .gd-cta .hl-cta-row{display:flex;flex-direction:column;align-items:center;text-align:center;gap:24px}
.gd-cta .hl-cta-row>div:first-child{max-width:920px;margin-inline:auto}
/* Closing call after the FAQ: title, text, buttons and the extra link centred at every width (landing pattern). */
.hl .gd-cta .hl-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;width:auto}
.hl .gd-cta .hl-actions .gd-cta-link{flex-basis:100%;text-align:center;margin-top:4px}
@media(max-width:560px){
 .hl .gd-cta .hl-actions{flex-direction:column;align-items:stretch;width:100%}
}

[data-theme=dark] .gd-table .is-highlight{background:rgba(22,163,74,.16)}
[data-theme=dark] .gd-eyebrow{color:#85dbad}

@media(max-width:1023px){
 .gd-hero-grid,.gd-split{grid-template-columns:minmax(0,1fr);gap:28px}
 .gd-split>.hl-h2{position:static}
 .hl .gd-card-grid,.hl .gd-card-grid.is-3col{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gd-scope-grid{grid-template-columns:minmax(0,1fr)}
}
/* On phones each criterion becomes a card with the four approaches stacked, so the page never scrolls sideways. */
@media(max-width:768px){
 .gd-hero{padding:28px 0 40px}
 .gd-section{padding:48px 0}
 .gd-answer{padding:18px 20px}
 .hl .gd-answer-text{font-size:17px}
 .gd-table,.gd-table tbody,.gd-table tr,.gd-table th,.gd-table td,.gd-table :is(th,td):last-child{display:block;width:100%}
 .gd-table{border:0;background:transparent;border-radius:0}
 .gd-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
 .gd-table tbody{display:grid;gap:14px}
 .gd-table tr{border:1px solid var(--hl-line);border-radius:14px;overflow:hidden;background:var(--hl-paper)}
 .hl .gd-table tbody th{width:auto;background:var(--hl-mist)!important;font-size:16px}
 .gd-table td{border-bottom:1px solid var(--hl-line)}
 .gd-table td::before{content:attr(data-label);display:block;font-size:12.5px;font-weight:700;color:var(--hl-muted);margin-bottom:2px}
 .gd-table td.is-highlight{border-left:0;border-top:2px solid var(--hl-green)}
 .gd-table td.is-highlight::before{color:var(--hl-green-deep)}
 .gd-table tbody tr :is(th,td):last-child{border-bottom:0}
 .hl .gd-card-grid,.hl .gd-card-grid.is-3col{grid-template-columns:minmax(0,1fr)}
 .gd-links ul{flex-direction:column}
}
/* Calculator tables on phones use two models instead of the text card layout above.
   Alternatives (tax comparator): the row labels and one alternative at a time, chosen in a segmented control.
   Records (Simples Nacional by annex, 5-year simulator by year): one compact card per row, label and value on one line. */
.gd-table-switch{display:none}
@media(max-width:768px){
 .gd-table-switch:not([hidden]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;margin:0 0 12px;border:1px solid var(--hl-line);border-radius:14px;background:var(--hl-mist)}
 .hl .gd-table-switch button{min-width:0;min-height:44px;padding:6px 8px;border:0;border-radius:10px;background:transparent;color:var(--hl-ink-2);font:inherit;font-size:13.5px;font-weight:600;line-height:1.25;white-space:normal;cursor:pointer}
 .hl .gd-table-switch button[aria-pressed=true]{background:var(--hl-paper);color:var(--hl-green-deep);box-shadow:0 1px 3px rgba(0,0,0,.14)}
 .hl .gd-table-switch button.is-winner::after{content:'';display:inline-block;width:7px;height:7px;margin-left:7px;border-radius:50%;background:var(--hl-green);vertical-align:middle}
 .hl .gd-table-switch button:focus-visible{outline:2px solid var(--hl-green);outline-offset:1px}
 .gd-taxcomp-table-wrap{border:1px solid var(--hl-line);border-radius:14px;background:var(--hl-paper)}
 .gd-table.gd-taxcomp-table.is-switching{display:table;width:100%;border:0;border-radius:0;border-collapse:collapse;background:var(--hl-paper)}
 .gd-taxcomp-table.is-switching thead{position:static;width:auto;height:auto;overflow:visible;clip:auto;display:table-header-group}
 .gd-taxcomp-table.is-switching tbody{display:table-row-group}
 .gd-taxcomp-table.is-switching tr{display:table-row;border:0;border-radius:0;background:transparent}
 .gd-table.gd-taxcomp-table.is-switching :is(th,td),.gd-table.gd-taxcomp-table.is-switching :is(th,td):last-child{display:table-cell;width:auto;padding:11px 14px;font-size:14px;border-top:0;border-left:0;border-bottom:1px solid var(--hl-line)}
 .gd-taxcomp-table.is-switching .is-col-off{display:none!important}
 .gd-taxcomp-table.is-switching td{text-align:right;font-variant-numeric:tabular-nums}
 .gd-taxcomp-table.is-switching td::before{content:none}
 .hl .gd-taxcomp-table.is-switching tbody th{width:auto;font-size:14px;background:var(--hl-paper)!important}
 .hl .gd-taxcomp-table.is-switching thead th{font-size:13px}
 .gd-taxcomp-table.is-switching td.is-highlight{background:rgba(22,163,74,.08)}
 .gd-taxcomp-table.is-switching tbody tr:last-child :is(th,td){border-bottom:0}
 .gd-table.gd-calc-table tbody{gap:10px}
 .gd-table.gd-calc-table td{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:9px 16px;font-variant-numeric:tabular-nums}
 .gd-table.gd-calc-table td::before{margin:0;font-size:13px;font-weight:600;flex:0 1 auto}
 .hl .gd-table.gd-calc-table tbody th{padding:12px 16px;font-size:15px}
 .gd-table.gd-calc-table tr.is-total-row td{font-size:15px}
}
[data-theme=dark] .gd-taxcomp-table.is-switching td.is-highlight{background:rgba(22,163,74,.16)}

/* Highlight band: the note keeps its light card, so its links use the regular link colour; the "related reading" label
   uses the band's own muted text. */
.hl .gd-highlight .gd-note a.hl-link{color:var(--hl-green-deep)!important}
.hl .gd-highlight .gd-links-label{color:#b7c6c0}

/* Interactive SME calculators (100% client-side, theme-aware, responsive with zero horizontal overflow) */
.gd-calc-section{padding:52px 0 64px}
.hl .gd-calc-section .hl-head{margin-bottom:28px}
.gd-calc{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:24px;align-items:start}
.gd-calc.gd-calc-wide{grid-template-columns:minmax(0,1fr);gap:28px}
.gd-calc-form,.gd-calc-output{padding:26px;border:1px solid var(--hl-line);border-radius:16px;background:var(--hl-paper)}
.gd-calc-output{border-top:4px solid var(--hl-green)}
@media(prefers-reduced-motion:no-preference){html:has(.gd-calc){scroll-behavior:smooth}}
.gd-calc-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid var(--hl-line)}
.hl .gd-calc-scope-badge{margin:0;padding:5px 10px;border-radius:999px;background:rgba(22,163,74,.12);color:var(--hl-green-deep);font-size:12.5px;font-weight:700;line-height:1.3}
[data-theme=dark] .gd-calc-scope-badge{color:#85dbad;background:rgba(22,163,74,.2)}
.gd-calc-currency{display:inline-flex;align-items:center;gap:8px;margin-left:auto}
.gd-calc-currency label{font-size:13px;font-weight:700;color:var(--hl-muted)}
.gd-calc-currency select{padding:6px 10px;border:1px solid var(--hl-line);border-radius:8px;background:var(--hl-mist);color:var(--hl-ink);font-size:13.5px;font-weight:600;cursor:pointer}
.gd-calc-currency select:focus-visible{outline:2px solid var(--hl-green);outline-offset:2px}
.gd-calc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}
.gd-calc-field{display:grid;grid-template-rows:minmax(2.8em,auto) auto 1fr;gap:6px;min-width:0;align-content:start}
.gd-calc-field label{font-size:14px;font-weight:600;color:var(--hl-ink);line-height:1.35;align-self:end}
.gd-calc-input-wrap{display:flex;align-items:center;border:1px solid var(--hl-line);border-radius:10px;background:var(--hl-mist);overflow:hidden;transition:border-color .15s ease}
.gd-calc-input-wrap:focus-within{border-color:var(--hl-green);box-shadow:0 0 0 3px rgba(22,163,74,.16)}
.gd-calc-input-wrap input{width:100%;min-width:0;padding:10px 12px;border:0;background:transparent;color:var(--hl-ink);font-size:16px;font-weight:500;outline:0}
.gd-calc-affix{padding:0 10px;font-size:13.5px;font-weight:600;color:var(--hl-muted);user-select:none;flex-shrink:0}
.gd-calc-hint{font-size:12.5px;line-height:1.4;color:var(--hl-muted)}
.gd-calc-extra{margin-top:20px;padding:16px;border:1px dashed var(--hl-line);border-radius:12px;background:var(--hl-mist)}
.gd-calc-extra summary{cursor:pointer;font-size:14.5px;font-weight:700;color:var(--hl-ink);list-style:none}
.gd-calc-extra summary::-webkit-details-marker{display:none}
.gd-calc-extra summary::before{content:"+ ";color:var(--hl-green-deep);font-weight:700}
.gd-calc-extra[open] summary::before{content:"− "}
.gd-calc-extra-lead,.hl .gd-calc-extra-lead{margin:8px 0 12px;font-size:13.5px;line-height:1.5;color:var(--hl-ink-2)}
.gd-calc-presets{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.gd-calc-preset{padding:7px 12px;border:1px solid var(--hl-line);border-radius:999px;background:var(--hl-paper);color:var(--hl-ink);font-size:13px;font-weight:600;cursor:pointer}
.gd-calc-preset[aria-pressed="true"]{background:var(--hl-green);border-color:var(--hl-green);color:#fff}
.gd-calc-actions{margin-top:18px;display:flex;justify-content:flex-end}
.gd-calc-reset{padding:8px 14px;border:1px solid var(--hl-line);border-radius:8px;background:transparent;color:var(--hl-muted);font-size:13.5px;font-weight:600;cursor:pointer}
.gd-calc-reset:hover{color:var(--hl-ink);border-color:var(--hl-muted)}
.gd-calc-case-btn{padding:8px 14px;border:1px solid var(--hl-green);border-radius:8px;background:rgba(22,163,74,.1);color:var(--hl-green-deep);font-size:13.5px;font-weight:700;cursor:pointer;transition:background .15s ease,color .15s ease}
.gd-calc-case-btn:hover{background:var(--hl-green);color:#fff}
[data-theme=dark] .gd-calc-case-btn{color:#85dbad;background:rgba(22,163,74,.2)}
[data-theme=dark] .gd-calc-case-btn:hover{background:var(--hl-green);color:#fff}
.gd-calc-checks{display:grid;gap:10px}
.gd-calc-checkbox{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid var(--hl-line);border-radius:12px;background:var(--hl-paper);font-size:14px;line-height:1.45;color:var(--hl-ink-2);cursor:pointer}
.gd-calc-checkbox input{margin-top:3px;width:17px;height:17px;accent-color:var(--hl-green);flex-shrink:0}
.hl .gd-calc-out-heading{margin:0 0 14px;font-size:14px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:var(--hl-muted)}
.gd-calc-badge{margin:0 0 12px;padding:8px 12px;border-radius:8px;background:rgba(22,163,74,.1);color:var(--hl-green-deep);font-size:13px;font-weight:600}
.gd-calc-results{margin:0;display:grid;gap:12px}
.gd-calc-row{display:flex;justify-content:space-between;align-items:baseline;gap:14px;padding:12px 14px;border:1px solid var(--hl-line);border-radius:10px;background:var(--hl-mist)}
.gd-calc-row.is-primary{background:rgba(22,163,74,.1);border-color:var(--hl-green)}
.gd-calc-row dt{font-size:14px;font-weight:600;color:var(--hl-ink-2);display:flex;flex-direction:column;gap:2px}
.gd-calc-row dt span{font-size:12px;font-weight:400;color:var(--hl-muted)}
.gd-calc-row dd{margin:0;font-size:18px;font-weight:700;color:var(--hl-ink);text-align:right;white-space:nowrap}
.gd-calc-row.is-primary dd{font-size:22px;color:var(--hl-green-deep)}
.gd-calc-alert,.hl .gd-calc-alert{margin:16px 0 0;padding:12px 14px;border-radius:10px;font-size:14px;line-height:1.5;border:1px solid var(--hl-line);background:var(--hl-mist);color:var(--hl-ink)}
.gd-calc-alert.is-positive{border-color:#16a34a;background:rgba(22,163,74,.12)}
.gd-calc-alert.is-warn{border-color:#d97706;background:rgba(217,119,6,.12)}
.gd-calc-alert.is-error{border-color:#dc2626;background:rgba(220,38,38,.12)}
.hl .gd-calc-disclaimer{margin:14px 0 0;font-size:13px;line-height:1.5;color:var(--hl-muted)}
.gd-calc-cta{margin-top:18px;padding-top:16px;border-top:1px solid var(--hl-line);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.hl .gd-calc-cta p{margin:0;font-size:14px;line-height:1.5;color:var(--hl-ink-2);flex:1 1 200px}
.gd-calc-table-wrap{grid-column:1 / -1;margin-top:4px}
.hl .gd-calc-table-title{margin:0 0 12px;font-size:17px;font-weight:700;color:var(--hl-ink)}
.gd-calc-table th:last-child,.gd-calc-table td:last-child,.gd-taxcomp-table th:last-child,.gd-taxcomp-table td:last-child{width:auto}
.gd-calc-table tbody tr.is-total-row :is(th,td),.gd-taxcomp-table tbody tr.is-total-row :is(th,td){font-weight:700;font-size:16px;background:var(--hl-mist)!important;color:var(--hl-ink)!important;border-top:2px solid var(--hl-line)}
.gd-calc-table tbody tr.is-active-row th{color:var(--hl-green-deep)!important}
[data-theme=dark] .gd-calc-table tbody tr.is-active-row th{color:#85dbad!important}

/* Multi-regime comparator (#50) */
.gd-taxcomp-wrap{display:grid;gap:18px}
.gd-taxcomp-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px}
.gd-taxcomp-btns{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.gd-taxcomp-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.gd-taxcomp-group{margin:0;padding:20px;border:1px solid var(--hl-line);border-radius:16px;background:var(--hl-paper)}
.gd-taxcomp-group legend{padding:0 6px;font-size:15px;font-weight:700;color:var(--hl-green-deep)}
.gd-taxcomp-group .gd-calc-fields{grid-template-columns:minmax(0,1fr);gap:12px}
.gd-taxcomp-group .gd-calc-field{grid-template-rows:auto auto auto}
.gd-taxcomp-results{display:grid;gap:18px}
.gd-taxcomp-verdict{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.gd-taxcomp-card{padding:22px;border:1.5px solid var(--hl-line);border-radius:16px;background:var(--hl-paper);display:flex;flex-direction:column;gap:6px;transition:border-color .18s ease,box-shadow .18s ease}
.gd-taxcomp-card.is-winner{border-color:var(--hl-green);background:rgba(22,163,74,.08);box-shadow:0 12px 26px -14px rgba(22,163,74,.4)}
.gd-taxcomp-card.is-ineligible{opacity:.72}
.gd-taxcomp-card-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.hl .gd-taxcomp-card h3{margin:0;font-size:17px;font-weight:700;color:var(--hl-ink)}
.gd-taxcomp-win-tag{padding:3px 9px;border-radius:999px;background:var(--hl-green);color:#fff;font-size:11.5px;font-weight:700;white-space:nowrap}
.gd-taxcomp-card.is-ineligible .gd-taxcomp-win-tag{background:var(--hl-muted)}
.hl .gd-taxcomp-total{margin:4px 0 0;font-size:25px;font-weight:700;letter-spacing:-.02em;color:var(--hl-ink);font-family:var(--hl-display)}
.gd-taxcomp-card.is-winner .gd-taxcomp-total{color:var(--hl-green-deep)}
.hl .gd-taxcomp-pct{margin:0;font-size:14.5px;font-weight:600;color:var(--hl-muted)}
.hl .gd-taxcomp-savings{margin:4px 0 0;font-size:13.5px;line-height:1.45;color:var(--hl-ink-2)}
.gd-taxcomp-table-wrap{overflow:hidden;border-radius:14px}

[data-theme=dark] .gd-calc-row.is-primary,[data-theme=dark] .gd-taxcomp-card.is-winner{background:rgba(22,163,74,.18)}
[data-theme=dark] .gd-calc-row.is-primary dd,[data-theme=dark] .gd-calc-badge,[data-theme=dark] .gd-taxcomp-card.is-winner .gd-taxcomp-total,[data-theme=dark] .gd-taxcomp-group legend{color:#85dbad}
[data-theme=dark] .gd-calc-extra summary::before{color:#85dbad}
@media(max-width:1023px){
 .gd-calc,.gd-taxcomp-inputs,.gd-taxcomp-verdict{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:640px){
 .gd-calc-fields{grid-template-columns:minmax(0,1fr)}
 .gd-calc-field{grid-template-rows:auto auto auto}
 .gd-calc-currency{margin-left:0}
 .gd-calc-form,.gd-calc-output{padding:18px}
 .gd-calc-row{flex-direction:column;align-items:flex-start;gap:4px}
 .gd-calc-row dd{text-align:left;white-space:normal}
}

/* Tablets (641–1023px): the calculators use the width instead of one long column. Results go two by two (the main one
   spans the row), the tax comparator keeps its fields in two columns and the three regimes side by side, and numbers in
   result tables never break in the middle (a wide table scrolls inside its own frame). */
@media(min-width:641px) and (max-width:1023px){
 .gd-calc-results{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gd-calc-results .gd-calc-row.is-primary{grid-column:1/-1}
 .gd-calc-results .gd-calc-row:not(.is-primary){flex-direction:column;align-items:flex-start;gap:4px}
 .gd-calc-results .gd-calc-row:not(.is-primary) dd{text-align:left}
 /* An odd last result (the main one comes first) spans the row instead of leaving half of it empty. */
 .gd-calc-results .gd-calc-row:not(.is-primary):last-child:nth-child(even){grid-column:1/-1;flex-direction:row;justify-content:space-between;align-items:baseline}
 .gd-calc-results .gd-calc-row:not(.is-primary):last-child:nth-child(even) dd{text-align:right}
 .gd-taxcomp-group .gd-calc-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .gd-taxcomp-verdict{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 .gd-taxcomp-card{padding:16px}
 .hl .gd-taxcomp-total{font-size:20px}
 .hl .gd-taxcomp-card h3{font-size:15.5px}
 .gd-taxcomp-card-head{flex-wrap:wrap}
}
@media(min-width:769px){
 .gd-calc-table td,.gd-taxcomp-table td{white-space:nowrap;font-variant-numeric:tabular-nums}
 .gd-calc-table tr.is-total-row td,.gd-taxcomp-table tr.is-total-row td{white-space:normal}
 .gd-calc-table-wrap{overflow-x:auto}
}
