/* Cálculo Rescisão — unified premium brand system
   Palette: Midnight Navy #102A43 · Emerald #16A34A · Soft Gold #F4B740
   Applied after each page's existing styles so layout and functionality remain intact. */
:root {
  color-scheme: light;
  --page: #F4F7FB;
  --surface: #FFFFFF;
  --ink: #102A43;
  --muted: #64748B;
  --subtle: #64748B;
  --border: #E2E8F0;
  --primary: #16A34A;
  --primary-hover: #15803D;
  --primary-soft: #ECFDF3;
  --warning-bg: #FFFAEB;
  --warning-border: #F4B740;
  --warning-ink: #854D0E;
  --success: #16A34A;
  --danger: #B42318;
  --brand: #16A34A;
  --brand-dark: #15803D;
  --line: #E2E8F0;
  --soft-blue: #ECFDF3;
  --blog-ink: #102A43;
  --blog-muted: #64748B;
  --blog-line: #DCE8E1;
  --radius: 15px;
  --shadow: 0 8px 24px rgba(16, 42, 67, .055), 0 1px 2px rgba(16, 42, 67, .045);
}

html { scroll-behavior: smooth; }
body { background: var(--page) !important; color: var(--ink); }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
:focus-visible { outline-color: rgba(22, 163, 74, .38) !important; }

/* Shared brand header */
.site-header {
  background: #102A43 !important;
  border-color: #1E405B !important;
  box-shadow: 0 5px 18px rgba(16, 42, 67, .09);
}
.site-header .brand,
.site-header .brand:visited { color: #FFFFFF !important; }
.site-header .brand-mark {
  background: linear-gradient(145deg, #16A34A, #12813C) !important;
  color: #FFFFFF !important;
  box-shadow: 0 5px 13px rgba(22, 163, 74, .24);
}
.site-header .header-nav a,
.site-header .main-nav a {
  color: #D8E4EF !important;
}
.site-header .header-nav a:hover,
.site-header .header-nav a[aria-current="page"],
.site-header .main-nav a:hover {
  color: #86EFAC !important;
}
.site-header .header-nav a[aria-current="page"]::after {
  background: #16A34A !important;
}

/* Shared footer */
.site-footer {
  background: #102A43 !important;
  border-color: #1E405B !important;
  color: #D8E4EF !important;
}
.site-footer,
.site-footer p,
.site-footer .footer-brand p,
.site-footer .footer-inner,
.site-footer .footer-bottom,
.site-footer .footer-copyright { color: #C5D3E0 !important; }
.site-footer a,
.site-footer a:visited,
.site-footer .footer-links a { color: #E5EDF5 !important; }
.site-footer a:hover,
.site-footer .footer-links a:hover { color: #86EFAC !important; }
.site-footer .footer-copyright,
.site-footer .footer-bottom { border-color: #2D4C66 !important; }

/* Main calculator and shared content components */
.eyebrow,
.hero .eyebrow,
.blog-landing-copy .eyebrow { color: #15803D !important; }
.hero:not(.blog-landing-hero) {
  background: linear-gradient(140deg, #EAF8EF 0%, #FFFFFF 78%) !important;
  border-color: #D5EBDD !important;
}
.chip,
.seo-article .tag,
.blog-card .blog-category,
.blog-article-header .blog-category {
  border-color: #CDEBD6 !important;
  background: #ECFDF3 !important;
  color: #166534 !important;
}
.step-number,
.empty-icon {
  background: #ECFDF3 !important;
  border-color: #CDEBD6 !important;
  color: #15803D !important;
}
.field input:focus,
.field select:focus,
.blog-search-field:focus-within,
.blog-filter-select:focus-within {
  border-color: #16A34A !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .11) !important;
}
.choice input,
.check-row input { accent-color: #16A34A !important; }
.button-primary {
  background: #16A34A !important;
  color: #FFFFFF !important;
  border-color: #16A34A !important;
}
.button-primary:hover {
  background: #15803D !important;
  border-color: #15803D !important;
}
.button-secondary {
  background: #F8FAFC !important;
  color: #102A43 !important;
  border-color: #DCE5ED !important;
}
.button-secondary:hover { background: #EEF4F0 !important; }
.result-top,
.blog-article-header {
  background: linear-gradient(135deg, #EAF8EF 0%, #FFFFFF 90%) !important;
  border-color: #DCE8E1 !important;
}
.result-total { color: #15803D !important; }
.fgts-box,
.article-callout {
  border-color: #B9E4C7 !important;
  background: #F0FBF3 !important;
}
.fgts-box strong { color: #15803D !important; }
.notice {
  background: #FFFAEB !important;
  border-color: #F4B740 !important;
  color: #854D0E !important;
}
.notice-icon { background: #F4B740 !important; color: #713F12 !important; }
.notice strong,
.notice h2 { color: #713F12 !important; }

/* Blog landing pages and category hubs */
.blog-index-page { --blog-ink: #102A43; --blog-muted: #64748B; --blog-line: #DCE8E1; }
.blog-landing-hero {
  border-color: #D5EBDD !important;
  background: linear-gradient(115deg, #F4FBF6 0%, #EEF8F0 58%, #E6F5EA 100%) !important;
  box-shadow: 0 18px 45px rgba(16, 42, 67, .055) !important;
}
.blog-landing-hero::before,
.blog-landing-hero::after { border-color: rgba(22, 163, 74, .12) !important; }
.blog-landing-copy h1,
.blog-section-heading h2,
.blog-topic-summary h2,
.blog-hero-panel h2 { color: #102A43 !important; }
.blog-landing-lead,
.blog-trust-points,
.blog-section-heading > div > p:last-child,
.blog-hero-panel > p:last-child { color: #64748B !important; }
.eyebrow-dot { background: #16A34A !important; box-shadow: 0 0 0 4px rgba(22, 163, 74, .12) !important; }
.blog-inline-link,
.blog-all-guides a { color: #15803D !important; }
.blog-inline-link:hover,
.blog-all-guides a:hover { color: #166534 !important; }
.blog-trust-points span span,
.blog-panel-kicker { color: #15803D !important; }
.blog-panel-logo { background: #102A43 !important; }
.blog-hero-panel {
  background: linear-gradient(155deg, #FFFFFF 0%, #F3FAF5 100%) !important;
  box-shadow: 0 17px 38px rgba(16, 42, 67, .10) !important;
}
.panel-orbit { border-color: #D5EBDD !important; }
.panel-document { border-color: #D5EBDD !important; }
.panel-document span:first-child { background: #16A34A !important; }
.panel-document i { background: #16A34A !important; }
.panel-check { background: #F4B740 !important; }
.blog-section-overline { color: #15803D !important; }
.blog-count {
  border-color: #DCE8E1 !important;
  color: #64748B !important;
}
.blog-index-page .blog-card {
  border-color: #DCE8E1 !important;
  box-shadow: 0 7px 23px rgba(16, 42, 67, .045) !important;
}
.blog-index-page .blog-card:hover {
  border-color: #A8D8B7 !important;
  box-shadow: 0 14px 32px rgba(16, 42, 67, .085) !important;
}
.blog-index-page .blog-card .blog-category {
  border-color: #CDEBD6 !important;
  background: #ECFDF3 !important;
  color: #166534 !important;
}
.blog-index-page .blog-card h3 { color: #102A43 !important; }
.blog-index-page .blog-card h3 a { color: #102A43 !important; }
.blog-index-page .blog-card h3 a:hover { color: #15803D !important; }
.blog-card p,
.blog-index-page .blog-card p { color: #64748B !important; }
.blog-card-symbol {
  color: #15803D !important;
  border-color: rgba(22, 163, 74, .20) !important;
}
.art-documents { background: linear-gradient(135deg, #14532D 0%, #16834A 58%, #56B58A 100%) !important; }
.art-calendar { background: linear-gradient(135deg, #102A43 0%, #176B51 60%, #55A77D 100%) !important; }
.art-finances { background: linear-gradient(135deg, #166534 0%, #16A34A 58%, #8BCDA4 100%) !important; }
.art-paper .art-paper-title { background: #16A34A !important; }
.art-paper i { background: #16A34A !important; }
.calendar-top { background: #E5F5E9 !important; border-color: #CDEBD6 !important; }
.calendar-dots i { background: #A7D9B5 !important; }
.calendar-dots i:nth-child(2),
.calendar-dots i:nth-child(6) { background: #16A34A !important; }
.art-calendar-sheet b { color: #15803D !important; }
.blog-calculator-cta {
  border-color: #CDEBD6 !important;
  background: linear-gradient(115deg, #EFFAF2, #FFFFFF) !important;
}
.blog-cta-icon { background: #16A34A !important; color: #FFFFFF !important; }
.blog-topic-summary,
.blog-article-page .article-cta {
  border-color: #DCE8E1 !important;
  background: #F7FBF8 !important;
}
.blog-topic-pills a,
.blog-topic-pills span {
  border-color: #D5EBDD !important;
  color: #166534 !important;
}
.blog-topic-pills a:hover {
  border-color: #A8D8B7 !important;
  background: #ECFDF3 !important;
  color: #14532D !important;
}

/* Blog articles and content-quality callouts */
.blog-article-page .blog-article-header .blog-category,
.blog-article-page .blog-article-header a.blog-category {
  border-color: #CDEBD6 !important;
  background: #ECFDF3 !important;
  color: #166534 !important;
}
.blog-article-page .blog-article-header a.blog-category:hover {
  border-color: #A8D8B7 !important;
  background: #E4F7E9 !important;
}
.blog-article-page .article-body h2,
.blog-article-page .article-body h3 { color: #102A43; }
.blog-article-page .article-body a { color: #15803D; }
.blog-article-page .article-callout,
.blog-article-page .article-focus-block {
  border-color: #CDEBD6 !important;
  background: #F0FBF3 !important;
  color: #385B45 !important;
}
.blog-article-page .article-focus-block th {
  background: #E5F5E9 !important;
  color: #14532D !important;
}
.blog-article-page .article-focus-block th,
.blog-article-page .article-focus-block td { border-color: #CDEBD6 !important; }
.article-topic-hub-link {
  border-left-color: #16A34A !important;
  background: #F0FBF3 !important;
  color: #385B45 !important;
}
.blog-filter-bar { border-color: #DCE8E1 !important; }
.blog-search-field,
.blog-filter-select {
  border-color: #D5EBDD !important;
  background: #FBFDFC !important;
}
.blog-search-icon { color: #15803D !important; }
.blog-search-field input,
.blog-filter-select select { color: #102A43 !important; }
.blog-results { color: #64748B !important; }

/* Legal / about / contact pages use a small independent inline style system. */
main .hero {
  background: linear-gradient(140deg, #EAF8EF 0%, #FFFFFF 78%) !important;
  border-color: #D5EBDD !important;
}
main .hero .lead { color: #526579 !important; }
main .content section {
  border-color: #DCE8E1 !important;
  background: #FFFFFF !important;
}
main .notice {
  background: #FFFAEB !important;
  border-color: #F4B740 !important;
}
main .notice h2 { color: #713F12 !important; }
main .back-link { color: #15803D !important; }
main .main-nav a { color: #D8E4EF !important; }
main .main-nav a:hover { color: #86EFAC !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
}
