/* Homepage design: a calm workspace for understanding pay. */
:root { --sc-page:#f5f8f6; --sc-surface:#fff; --sc-soft:#e8f2ed; --sc-ink:#163129; --sc-muted:#526b60; --sc-line:#cadcd2; --sc-accent:#167a5b; }
html[data-theme="dark"] { --sc-page:#101c19; --sc-surface:#192a24; --sc-soft:#203b30; --sc-ink:#eff8f3; --sc-muted:#b6cbbf; --sc-line:#385548; --sc-accent:#87dcb5; }
html:root body.home-refined, html:root body.home-refined #main-content { background:var(--sc-page)!important; color:var(--sc-ink)!important; }
html:root body.home-refined #main-content > .home-hero { background:var(--sc-soft)!important; padding:72px 0 76px!important; }
html:root body.home-refined .home-hero-grid { grid-template-columns:minmax(0,1fr) minmax(380px,460px)!important; gap:clamp(48px,7vw,110px)!important; align-items:center!important; }
html:root body.home-refined .home-copy { padding:0!important; }
html:root body.home-refined .home-copy h1 { font-size:clamp(46px,5vw,68px)!important; letter-spacing:-.055em!important; line-height:1.04!important; color:var(--sc-ink)!important; }
html:root body.home-refined .home-copy > p { font-size:17px!important; color:var(--sc-muted)!important; max-width:470px!important; }
html:root body.home-refined .home-country { color:var(--sc-muted)!important; font-size:13px!important; }
html:root body.home-refined .home-actions { margin-top:30px!important; }
html:root body.home-refined .home-actions :is(a,button) { min-height:48px!important; font-size:14px!important; }
html:root body.home-refined .home-secondary { color:var(--sc-ink)!important; border-color:var(--sc-line)!important; }
html:root body.home-refined .home-shortcuts { margin-top:44px; }
html:root body.home-refined .home-shortcuts a { border-color:var(--sc-line); color:var(--sc-ink); }
html:root body.home-refined .home-shortcuts :is(p,small) { color:var(--sc-muted); }
html:root body.home-refined .home-feature.sc-salary-preview { background:var(--sc-surface)!important; border:1px solid var(--sc-line)!important; border-radius:18px!important; padding:32px!important; box-shadow:0 20px 55px rgba(17,63,45,.09)!important; }
html:root body.home-refined .home-feature :is(h2,.sc-salary-label,.sc-deduc-chip strong) { color:var(--sc-ink)!important; }
html:root body.home-refined .home-feature :is(p,small,.sc-hero-net-label,.home-feature-top > span) { color:var(--sc-muted)!important; }
html:root body.home-refined .sc-hero-input-wrap { background:var(--sc-page)!important; border-color:var(--sc-line)!important; }
html:root body.home-refined .sc-hero-input { color:var(--sc-ink)!important; }
html:root body.home-refined .sc-hero-net-card { border-color:var(--sc-line)!important; }
html:root body.home-refined .sc-hero-net-val { color:var(--sc-accent)!important; }
html:root body.home-refined .salary-scale, html:root body.home-refined .salary-legend { color:var(--sc-muted)!important; }
html:root body.home-refined #calculadoras { padding-top:84px!important; padding-bottom:84px!important; }
html:root body.home-refined #calculadoras .section-head { display:block!important; margin-bottom:30px!important; }
html:root body.home-refined #calculadoras .section-head h2 { max-width:none!important; font-size:clamp(34px,4vw,48px)!important; color:var(--sc-ink)!important; }
html:root body.home-refined #calculadoras .section-head p { max-width:620px!important; margin:12px 0 0!important; color:var(--sc-muted)!important; }
html:root body.home-refined .hub-grid { gap:14px!important; }
html:root body.home-refined .hub-card { background:var(--sc-surface)!important; border:1px solid var(--sc-line)!important; border-radius:12px!important; box-shadow:none!important; padding:24px!important; min-height:190px!important; }
html:root body.home-refined .hub-card:hover { border-color:var(--sc-accent)!important; box-shadow:0 8px 24px rgba(20,65,47,.08)!important; }
html:root body.home-refined .hub-card b { color:var(--sc-ink)!important; font-size:16px!important; }
html:root body.home-refined .hub-card p { color:var(--sc-muted)!important; font-size:13px!important; line-height:1.6!important; }
html:root body.home-refined .sc-finder-search { background:var(--sc-surface)!important; border-color:var(--sc-line)!important; color:var(--sc-ink)!important; }
html:root body.home-refined .sc-finder-search input { color:var(--sc-ink)!important; }
html:root body.home-refined .sc-finder-filters button { border-color:var(--sc-line)!important; }
html:root body.home-refined .sc-finder-filters button[aria-pressed="false"] { background:var(--sc-surface)!important; color:var(--sc-muted)!important; }
html:root body.home-refined :is(.guides-section,.faq-home,.sources-section) { background:var(--sc-page)!important; }
html:root body.home-refined :is(.guides-forum-title a,.center-head h2,.sources-head h2,.source-card h3) { color:var(--sc-ink)!important; }
html:root body.home-refined :is(.guides-forum-copy > p,.source-card p,.sources-head p) { color:var(--sc-muted)!important; }
html:root body.home-refined :is(.guide-forum-link,.faq-list) { background:var(--sc-surface)!important; border-color:var(--sc-line)!important; box-shadow:none!important; }
html:root body.home-refined :is(.guide-forum-link h3,.faq-list summary) { color:var(--sc-ink)!important; }
html:root body.home-refined :is(.guide-forum-link p,.faq-list details p) { color:var(--sc-muted)!important; }
html:root body.home-refined .source-card { border-color:var(--sc-line)!important; }
html:root body.home-refined :is(a,button,input,summary):focus-visible { outline:3px solid var(--sc-accent)!important; outline-offset:3px!important; }
@media (max-width:900px) { html:root body.home-refined #main-content > .home-hero { padding:48px 0!important; } html:root body.home-refined .home-hero-grid { grid-template-columns:1fr!important; gap:32px!important; } html:root body.home-refined .home-feature.sc-salary-preview { max-width:none!important; } html:root body.home-refined #calculadoras { padding:60px 0!important; } }
@media (max-width:560px) { html:root body.home-refined #main-content > .home-hero { padding:32px 0 40px!important; } html:root body.home-refined .home-copy h1 { font-size:clamp(38px,10vw,48px)!important; } html:root body.home-refined .home-copy > p { font-size:16px!important; } html:root body.home-refined .home-feature.sc-salary-preview { padding:22px!important; } html:root body.home-refined .hub-card { min-height:0!important; } }

/* A more focused entrance, with the useful calculations grouped as navigation. */
html:root body.home-refined #main-content > .home-hero { background:#f3f8f5!important; padding:64px 0 72px!important; }
html[data-theme="dark"]:root body.home-refined #main-content > .home-hero { background:#12231c!important; }
html:root body.home-refined .home-hero-grid { align-items:center!important; grid-template-columns:minmax(0,1fr) minmax(380px,440px)!important; gap:clamp(48px,7vw,104px)!important; }
html:root body.home-refined .home-copy h1 { font-size:clamp(44px,4.5vw,60px)!important; line-height:1.08!important; max-width:560px!important; }
html:root body.home-refined .home-copy > p { max-width:460px!important; }
html:root body.home-refined .home-shortcuts { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:10px!important; max-width:580px!important; margin-top:44px!important; }
html:root body.home-refined .home-shortcuts > p { grid-column:1/-1; margin:0 0 4px!important; }
html:root body.home-refined .home-shortcuts a { display:flex!important; flex-direction:column!important; align-items:flex-start!important; gap:6px!important; padding:16px!important; border:1px solid var(--sc-line)!important; border-radius:10px!important; background:var(--sc-surface)!important; }
html:root body.home-refined .home-shortcuts a:hover { border-color:var(--sc-accent)!important; }
html:root body.home-refined .home-shortcuts svg { display:block!important; width:20px!important; height:20px!important; margin-bottom:6px!important; }
html:root body.home-refined .home-shortcuts small { margin:0!important; }
html:root body.home-refined .home-feature.sc-salary-preview { border-radius:14px!important; box-shadow:0 14px 44px rgba(18,64,43,.07)!important; }
@media (max-width:900px) {
 html:root body.home-refined .home-hero-grid { grid-template-columns:1fr!important; }
 html:root body.home-refined .home-feature.sc-salary-preview { display:none!important; }
 html:root body.home-refined .home-copy { max-width:100%!important; }
 html:root body.home-refined .home-shortcuts { max-width:none!important; }
}
@media (max-width:560px) {
 html:root body.home-refined #main-content > .home-hero { padding:36px 0 40px!important; }
 html:root body.home-refined .home-copy h1 { font-size:clamp(36px,9vw,46px)!important; }
 html:root body.home-refined .home-shortcuts { grid-template-columns:1fr!important; gap:0!important; margin-top:32px!important; }
 html:root body.home-refined .home-shortcuts > p { margin-bottom:8px!important; }
 html:root body.home-refined .home-shortcuts a { display:grid!important; grid-template-columns:28px 1fr!important; column-gap:12px!important; row-gap:3px!important; border:0!important; border-bottom:1px solid var(--sc-line)!important; border-radius:0!important; background:transparent!important; padding:13px 0!important; }
 html:root body.home-refined .home-shortcuts svg { grid-row:span 2; align-self:center; margin:0!important; }
}

/* Related calculations: useful links with a clear editorial hierarchy. */
html:root body.home-refined .sc-related { padding:0 0 64px!important; background:var(--sc-page)!important; }
html:root body.home-refined .sc-related-inner { display:grid; grid-template-columns:minmax(220px, .8fr) minmax(0, 1.7fr); gap:48px; align-items:start; padding:28px 0; border-top:1px solid var(--sc-line); border-bottom:1px solid var(--sc-line); }
html:root body.home-refined .sc-related-intro h2 { margin:0; font-size:21px; line-height:1.25; letter-spacing:-.025em; color:var(--sc-ink)!important; }
html:root body.home-refined .sc-related-intro p { margin:8px 0 0; color:var(--sc-muted)!important; font-size:14px; line-height:1.5; }
html:root body.home-refined .sc-related-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
html:root body.home-refined .sc-related-links a { display:flex; flex-direction:column; gap:8px; padding:2px 24px 2px 16px; border-left:2px solid var(--sc-line); text-decoration:none; color:var(--sc-ink)!important; }
html:root body.home-refined .sc-related-links a:hover { border-color:var(--sc-accent); }
html:root body.home-refined .sc-related-links strong { font-size:15px; line-height:1.35; }
html:root body.home-refined .sc-related-links span { color:var(--sc-muted); font-size:13px; line-height:1.5; }
@media(max-width:700px) { html:root body.home-refined .sc-related { padding-bottom:48px!important; } html:root body.home-refined .sc-related-inner { grid-template-columns:1fr; gap:22px; } html:root body.home-refined .sc-related-links { grid-template-columns:1fr; gap:20px; } }

/* Background system: canvas, introductory surface and subtle section separation. */
:root { --sc-page:#f7f9f8; --sc-surface:#ffffff; --sc-soft:#eaf3ee; --sc-hero:#e8f2ed; --sc-section:#f0f5f2; }
html[data-theme="dark"] { --sc-page:#101a17; --sc-surface:#192923; --sc-soft:#20382d; --sc-hero:#182c23; --sc-section:#14221c; }
html:root body.home-refined, html:root body.home-refined #main-content { background:var(--sc-page)!important; }
html:root body.home-refined #main-content > .home-hero { background:var(--sc-hero)!important; border-bottom:1px solid var(--sc-line)!important; }
html:root body.home-refined #calculadoras, html:root body.home-refined .sc-related, html:root body.home-refined .sources-section { background:var(--sc-page)!important; }
html:root body.home-refined .guides-section, html:root body.home-refined .faq-home { background:var(--sc-section)!important; }
html:root body.home-refined .guides-section { border-top:1px solid var(--sc-line)!important; }
html:root body.home-refined .sources-section { border-top:1px solid var(--sc-line)!important; }
html:root body.home-refined .guides-canvas-wrap { display:none!important; }
html:root body.home-refined .footer { background:var(--sc-surface)!important; border-top:1px solid var(--sc-line)!important; }

/* A clear closing action for the methodology section. */
html:root body.home-refined .sources-footer { margin-top:32px!important; padding-top:24px!important; border-top:1px solid var(--sc-line)!important; }
html:root body.home-refined .sources-methodology-link { display:inline-flex!important; align-items:center!important; gap:12px!important; padding:12px 16px!important; min-height:46px!important; border:1px solid var(--sc-line)!important; border-radius:8px!important; background:var(--sc-surface)!important; color:var(--sc-ink)!important; font-size:14px!important; font-weight:600!important; text-decoration:none!important; transition:border-color .15s ease, background .15s ease!important; }
html:root body.home-refined .sources-methodology-link::after { content:'→'; font-size:18px; line-height:1; color:var(--sc-accent); }
html:root body.home-refined .sources-methodology-link:hover { background:var(--sc-soft)!important; border-color:var(--sc-accent)!important; }
html:root body.home-refined .sources-footer { margin-top:28px!important; padding-top:20px!important; }
html:root body.home-refined .sources-methodology-link { min-height:0!important; padding:4px 0!important; border:0!important; border-radius:0!important; background:transparent!important; color:var(--sc-ink)!important; gap:8px!important; }
html:root body.home-refined .sources-methodology-link::after { font-size:16px; }
html:root body.home-refined .sources-methodology-link:hover { background:transparent!important; color:var(--sc-accent)!important; }
html:root body.home-refined .sources-head .sources-footer { margin-top:16px!important; padding:0!important; border:0!important; }
html:root body.home-refined .sources-methodology-link::after { content:none!important; }
html:root body.home-refined .sources-methodology-link { text-decoration:underline!important; text-underline-offset:4px!important; text-decoration-color:var(--sc-line)!important; }
html:root body.home-refined .sources-methodology-link:hover { text-decoration-color:currentColor!important; }
