.glass-header-wrapper {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 8px 0 8px !important;
    overflow: visible !important;
}
.glass-header-wrapper::before,
.glass-header-wrapper::after {
    display: none !important;
    content: none !important;
}
.glass-header-wrapper:hover::before,
.glass-header-wrapper:hover::after {
    display: none !important;
    opacity: 0 !important;
}
.tool-page-header {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: var(--content-bg, #fff) !important;
    background-image: none !important;
    border: 1px solid var(--border-color, #e5e7eb) !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: none !important;
}
.tool-page-header::before,
.tool-page-header::after {
    display: none !important;
    content: none !important;
}
.tool-page-header:hover::before,
.tool-page-header:hover::after {
    display: none !important;
    opacity: 0 !important;
}
body.dark-mode .tool-page-header {
    background: var(--content-bg, #1c1c1e) !important;
    background-image: none !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}
body.dark-mode .glass-header-wrapper {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}
.glass-header-wrapper .tool-page-header--with-inline-breadcrumb {
    padding: 52px 28px 28px !important;
}
.glass-header-wrapper .tool-page-header--with-inline-breadcrumb h1 {
    margin: 0 auto 8px !important;
    line-height: 1.25 !important;
}
.glass-header-wrapper .tool-page-header--with-inline-breadcrumb p {
    margin: 0 auto !important;
    line-height: 1.5 !important;
}
.glass-header-wrapper .breadcrumb--inline-hero {
    white-space: nowrap !important;
    max-width: calc(100% - 32px) !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}
.glass-header-wrapper .breadcrumb--inline-hero ol {
    flex-wrap: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.cdp-ad-disclosure {
    margin: 32px 0 24px;
    padding: 0;
    border: none;
    background: transparent;
    box-sizing: border-box;
    text-align: center;
    overflow: visible;
}
.cdp-ad-disclosure::before {
    content: 'Publicidade';
    display: block;
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 6px;
    line-height: 1.4;
}
body.dark-mode .cdp-ad-disclosure::before { color: #9ca3af; }
.cdp-ad-disclosure > .ad-slot,
.cdp-ad-disclosure > ins.adsbygoogle,
.cdp-ad-disclosure > .googleads-lazy-slot {
    margin: 0 auto !important;
    display: block;
}
.cdp-ad-disclosure > .cdp-ad-wrap {
    padding-top: 0;
    padding-bottom: 0;
}
.cdp-ad-disclosure--sidebar {
    margin: 20px 0;
    padding: 24px 0 14px;
    border-bottom: none;
}
.cdp-sidebar > .cdp-ad-disclosure--sidebar:first-child,
.cdp-tool-sidebar > .cdp-ad-disclosure--sidebar:first-child {
    margin-top: 0;
}
.cdp-sidebar > .cdp-ad-disclosure--sidebar:last-child,
.cdp-tool-sidebar > .cdp-ad-disclosure--sidebar:last-child {
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .cdp-ad-disclosure--sidebar {
        margin: 16px 0;
    }
}
.cdp-sidebar,
.cdp-tool-sidebar {
    overflow: visible !important;
}
.cdp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 0 32px;
    box-sizing: border-box;
}
.cdp-ad-wrap {
    padding: 16px 0 24px;
    margin: 0;
    text-align: center;
    contain: none;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}
.cdp-sidebar .ad-slot--sidebar-vertical-fixed,
.cdp-sidebar .ad-slot--sidebar-multiplex {
    margin: 0 auto;
    contain: none;
    overflow: visible;
}
@media (min-width: 1100px) {
    .cdp-sidebar--sticky {
        position: sticky;
        top: 116px;
        align-self: start;
    }
    .cdp-tool-sidebar--sticky {
        position: sticky;
        top: 116px;
        align-self: start;
    }
}
@media (max-width: 1099px) {
    .cdp-sidebar {
        margin-top: 8px;
    }
}
.cdp-tool-shift {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 0 16px;
    max-width: 1600px;
    --tool-body-max-width: 960px;
}
.cdp-tool-body {
    min-width: 0;
    max-width: var(--tool-body-max-width);
    width: 100%;
}
@media (min-width: 1500px) {
    .cdp-tool-shift {
        display: grid;
        grid-template-columns: minmax(0, var(--tool-body-max-width)) 320px;
        justify-content: center;
        gap: 32px;
        align-items: start;
    }
    .cdp-tool-sidebar {
        align-self: start;
    }
}
@media (max-width: 1499px) {
    .cdp-tool-sidebar {
        margin: 24px auto 0;
        max-width: 320px;
    }
}
.cdp-tool-shift--qst { --tool-body-max-width: 1160px; }
.cdp-tool-shift--article { --tool-body-max-width: 1000px; }
@media print {
    .cdp-tool-shift { display: block !important; }
    .cdp-tool-sidebar { display: none !important; }
}
body.cdp-2col .cdp-main > .container.serp-wrapper,
body.cdp-2col .cdp-main > .container.article-wrapper,
body.cdp-2col .cdp-main > .container.related-wrapper,
body.cdp-2col .cdp-main > .container.content-wrapper,
body.cdp-2col .cdp-main > .container.cdp-closing {
    max-width: 100% !important;
}
.custom-exclusion-list {
    display: grid;
    place-items: center;
    min-height: 80px;
}
.custom-exclusion-list li.cp-manual-dashboard-empty {
    justify-content: center;
    align-items: center;
    margin: 0;
    width: 100%;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
body.dark-mode .custom-exclusion-list li.cp-manual-dashboard-empty {
    background: transparent !important;
    border: 0 !important;
}
.cdp-tool-body .article-wrapper {
    margin-top: 40px;
    margin-bottom: 24px;
}
.cdp-tool-body .article-wrapper:first-of-type {
    margin-top: 24px;
}
.cdp-tool-body .article-wrapper h2,
.cdp-tool-body .article-wrapper h3 {
    margin-top: 24px;
    margin-bottom: 12px;
}
.cdp-tool-body .article-wrapper p {
    line-height: 1.7;
    margin-bottom: 16px;
}
.cdp-tool-body .article-wrapper li {
    line-height: 1.65;
}
.cdp-tool-body .cdp-contextos-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.95rem;
}
.cdp-tool-body .cdp-contextos-table thead th {
    text-align: left;
    padding: 10px 14px;
    background: var(--hover-bg, rgba(0,0,0,0.04));
    border-bottom: 2px solid var(--border-color, #e5e7eb);
    font-weight: 700;
}
.cdp-tool-body .cdp-contextos-table tbody td {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.cdp-tool-body .cdp-contextos-table tbody td i.fas {
    margin-right: 6px;
    color: #ea580c;
    width: 16px;
    text-align: center;
}
.cdp-tool-body .cdp-contextos-table tbody tr:last-child td {
    border-bottom: none;
}
body.dark-mode .cdp-tool-body .cdp-contextos-table thead th {
    background: rgba(255,255,255,0.04);
}
.cdp-tool-body .cdp-contexto-card {
    background: var(--content-bg, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 18px 0;
}
body.dark-mode .cdp-tool-body .cdp-contexto-card {
    background: rgba(255,255,255,0.03);
    border-color: #334155;
}
.cdp-tool-body .cdp-contexto-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cdp-tool-body .cdp-contexto-card h3 i.fas {
    color: #ea580c;
    font-size: 1.1rem;
}
.cdp-tool-body .cdp-contexto-card p {
    margin: 8px 0;
    line-height: 1.65;
    max-width: none;
}
.cdp-tool-body .cdp-contexto-card .cdp-contexto-fonte {
    margin-top: 12px;
    color: var(--secondary-color, #64748b);
    font-style: italic;
}
.cdp-tool-body .cdp-contexto-card .cdp-contexto-fonte i.fas {
    color: var(--secondary-color, #64748b);
    margin-right: 4px;
}
.cdp-tool-body .cdp-caso-box {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.06) 0%, rgba(234, 88, 12, 0.02) 100%);
    border: 1px solid rgba(234, 88, 12, 0.25);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 32px;
}
body.dark-mode .cdp-tool-body .cdp-caso-box {
    background: linear-gradient(135deg, rgba(234, 88, 12, 0.12) 0%, rgba(234, 88, 12, 0.04) 100%);
    border-color: rgba(234, 88, 12, 0.35);
}
.cdp-tool-body .cdp-caso-box h3 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cdp-tool-body .cdp-caso-box h3 i.fas {
    color: #ea580c;
}
.cdp-tool-body .cdp-caso-box p {
    margin: 0;
    line-height: 1.7;
    max-width: none;
}
.cdp-closing,
section.cdp-closing,
.article-wrapper.cdp-closing {
    margin-top: 40px;
    padding: 24px 28px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    background: var(--card-bg, #ffffff);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}
.cdp-closing h2 {
    font-size: 1.2rem;
    color: var(--secondary-color, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
}
.cdp-closing p {
    line-height: 1.7;
    max-width: none;
    margin: 0;
}
body.dark-mode .cdp-closing {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}
.search-results {
    max-height: 228px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.search-results::-webkit-scrollbar {
    width: 6px;
}
.search-results::-webkit-scrollbar-thumb {
    background: var(--border-color, #d2d2d7);
    border-radius: 3px;
}
@media (max-width: 768px) {
    .theme-toggle-button,
    #themeToggleBtn,
    #mobileThemeToggle {
        margin-right: 8px !important;
        flex-shrink: 0 !important;
    }
    #mobileSearchToggle.mobile-action-btn {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    .header-search-toggle,
    #desktopSearchToggle,
    #mobileSearchToggle {
        margin-right: 4px !important;
    }
.site-header-fixed .header-container { gap: 6px !important; }
    .site-header-fixed .header-actions .mobile-actions {
        margin-right: 4px !important;
    }
    .site-header-fixed .header-right-group {
        gap: 6px !important;
    }
    .site-header-fixed.mobile-search-active .hamburger-button {
        visibility: hidden !important;
        pointer-events: none !important;
    }
    .site-header-fixed.mobile-search-active .header-search {
        padding-left: 58px !important;
    }
}
@media (min-width: 1500px) {
    body.tool-quantas-semanas-tem .cdp-tool-body > .container,
    body.tool-em-que-semana-estamos .cdp-tool-body > .container,
    body.tool-quantas-semanas-tem-um-mes .cdp-tool-body > .container,
    body.tool-quantas-semanas-tem-um-ano .cdp-tool-body > .container {
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}
@media (max-width: 768px) {
    .cal-year-hero__lede {
        max-width: 100% !important;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        padding: 0 4px;
    }
    .cdp-tool-body .faq-section.container,
    .cdp-tool-body .related-wrapper.container,
    .cdp-tool-body .container .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }
    body.tool-quantas-semanas-tem .cdp-tool-body .related-wrapper .related-tools-section,
    body.tool-quantas-semanas-tem .cdp-tool-body .related-wrapper.related-tools-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-top: 0 !important;
        background: transparent !important;
        box-sizing: border-box;
    }
    body.tool-quantas-semanas-tem .cdp-tool-body .faq-section .faq-interactive-section,
    body.tool-quantas-semanas-tem .cdp-tool-body .faq-section.faq-interactive-section {
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
        background: transparent !important;
        box-sizing: border-box;
    }
}
@media (max-width: 768px) {
    .result-area-refactored .cdp-ad-disclosure {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 18px 0 14px;
        box-sizing: border-box;
        max-width: 100vw;
    }
}
body.dark-mode .cdp-ad-disclosure {
    border-top-color: #7c2d12;
    border-bottom-color: #7c2d12;
    background: transparent;
}
body.dark-mode .cdp-ad-disclosure::before {
    background: transparent;
    color: #9ca3af;
}
.cdp-tool-body .result-box-highlight {
    display: block !important;
    width: 100%;
    max-width: 1160px;
    margin: 16px auto 24px;
    padding: 0;
    background: transparent;
    border: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    animation: none;
}
.cdp-tool-body .result-box-highlight .screen-result-layout {
    width: 100%;
}
.cdp-tool-body .result-box-highlight .result-summary-block.standardized-result-hero,
.cdp-tool-body .result-box-highlight .prazo-standardized-hero {
    width: 100%;
    max-width: 100%;
    min-height: 200px;
    border-radius: 12px;
    border: 0;
    color: #fff;
    background:
        radial-gradient(900px 380px at 90% -10%, rgba(255,255,255,0.10) 0, transparent 55%),
        radial-gradient(700px 300px at 0% 110%, rgba(255,255,255,0.06) 0, transparent 55%),
        linear-gradient(135deg, #0a3d8f 0%, #062760 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 32px 28px;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
.cdp-tool-body .result-box-highlight .result-hero-prelude {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
    letter-spacing: 0.01em;
    line-height: 1.4;
}
.cdp-tool-body .result-box-highlight .result-hero-main-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.cdp-tool-body .result-box-highlight .highlight-value-refactored {
    font-family: "Noto Sans", "Segoe UI", Roboto, sans-serif;
    font-size: clamp(3rem, 7vw, 5.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}
.cdp-tool-body .result-box-highlight .result-hero-unit,
.cdp-tool-body .result-box-highlight .weekday-small {
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}
.cdp-tool-body .result-box-highlight .result-hero-hint {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    margin-top: 2px;
}
body.dark-mode .cdp-tool-body .result-box-highlight .result-summary-block.standardized-result-hero,
body.dark-mode .cdp-tool-body .result-box-highlight .prazo-standardized-hero {
    background:
        radial-gradient(900px 380px at 90% -10%, rgba(255,255,255,0.08) 0, transparent 55%),
        linear-gradient(135deg, #1e3a8a 0%, #0c1e3d 100%);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
@media (max-width: 640px) {
    .cdp-tool-body .result-box-highlight .result-summary-block.standardized-result-hero,
    .cdp-tool-body .result-box-highlight .prazo-standardized-hero {
        padding: 24px 18px;
        min-height: 170px;
    }
    .cdp-tool-body .result-box-highlight .result-hero-prelude { font-size: 0.95rem; }
}
html body main .container.serp-wrapper,
html body main .container.article-wrapper,
html body main .lunar-container-large:not(.lunar-months-wrapper),
html body main .ouvres-editorial,
html body main .what-is-section,
html body main .rich-content-section,
html body main .container.howto-wrapper,
html body main .qdu-monthly-table-section,
html body main .qdu-info-table-section,
html body main .du-monthly-table-section,
html body main .du-info-table-section,
html body main .container.tool-aux-wrapper:not(.calendar-month-side-summary),
html body main .container.no-print:has(.qst-annual-grid) {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
html body main .faq-interactive-section,
html body main .faq-section,
html body main .cal-faq-anual {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
html body main .article-content h3,
html body main .cm-editorial h3,
html body main .qdu-info-table-section h3,
html body main .qdu-monthly-table-section h3 {
    color: #003c87;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 18px;
    margin-top: 28px;
}
body.dark-mode main .article-content h3,
body.dark-mode main .cm-editorial h3,
body.dark-mode main .qdu-info-table-section h3,
body.dark-mode main .qdu-monthly-table-section h3 {
    color: #64b5ff;
    border-top-color: rgba(255, 255, 255, 0.12);
}
body:has(.qst-annual-grid) .cdp-tool-shift,
body:has(.qdu-monthly-table) .cdp-tool-shift,
body:has(.qdu-tool-shell) .cdp-tool-shift {
    --tool-body-max-width: 1200px;
}
body.tool-dias-uteis .cdp-tool-body:has(> .du-calendar-area.du-mode-ano) {
    display: flex;
    flex-direction: column;
}
body.tool-dias-uteis .cdp-tool-body:has(> .du-calendar-area.du-mode-ano) > .nav-controls-wrapper { order: -3; margin-top: 24px !important; margin-bottom: 18px !important; }
body.tool-dias-uteis .cdp-tool-body:has(> .du-calendar-area.du-mode-ano) > .du-calendar-area { order: -2; }
body.tool-dias-uteis .cdp-tool-body:has(> .du-calendar-area.du-mode-ano) > .container.no-print:has(.cm-tool-actions--year) {
    order: -1;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-top: 8px !important;
}
body.dark-mode .banner-ad-after-hero,
body.dark-mode .banner-ad-belowtool {
    background: #1c1c1e !important;
    border-top-color: rgba(255, 255, 255, 0.08) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
body.cdp-2col .cdp-main > section.calculator-section,
body.cdp-2col .cdp-main > .container {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
    max-width: 100% !important;
}
body.cdp-2col .cdp-main > section.calculator-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
}

@media (min-width: 1200px) {
    .cdp-tool-body > .container,
    .cdp-tool-body > .history-timeline {
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

@media screen and (min-width: 664px) {
    body:has(#annual-calendar-container:not([data-mode="imprimir"]):not([data-mode="pdf"]):not(.intent-static-mode)),
    body:has(.qdu-year-calendar-grid) {
        --cdp-rail-w: 352px;
    }
    body:has(#annual-calendar-container:not([data-mode="imprimir"]):not([data-mode="pdf"]):not(.intent-static-mode)) .cdp-tool-shift,
    body:has(.qdu-year-calendar-grid) .cdp-tool-shift {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 32px;
        align-items: flex-start;
        max-width: min(calc(var(--tool-body-max-width) + var(--cdp-rail-w, 0px) + 32px), 1600px);
    }
    body:has(#annual-calendar-container:not([data-mode="imprimir"]):not([data-mode="pdf"]):not(.intent-static-mode)) .cdp-tool-body,
    body:has(.qdu-year-calendar-grid) .cdp-tool-body {
        flex: 1 1 auto;
        min-width: 0;
        max-width: var(--tool-body-max-width);
    }
    body:has(#annual-calendar-container:not([data-mode="imprimir"]):not([data-mode="pdf"]):not(.intent-static-mode)) .cdp-tool-sidebar,
    body:has(.qdu-year-calendar-grid) .cdp-tool-sidebar {
        flex: 0 0 320px;
        max-width: 320px;
        margin: 0 auto;
        align-self: flex-start;
    }
    body:has(#annual-calendar-container:not([data-mode="imprimir"]):not([data-mode="pdf"]):not(.intent-static-mode)) .cdp-tool-sidebar--sticky,
    body:has(.qdu-year-calendar-grid) .cdp-tool-sidebar--sticky {
        position: sticky;
        top: 116px;
    }
}
@media screen and (max-width: 663px) {
    body:has(#annual-calendar-container:not([data-mode="imprimir"]):not([data-mode="pdf"]):not(.intent-static-mode)) .cdp-tool-sidebar,
    body:has(.qdu-year-calendar-grid) .cdp-tool-sidebar {
        margin: 24px auto 0;
        max-width: 320px;
    }
}
@media screen and (min-width: 664px) {
    body:has(.qst-annual-grid) .cdp-tool-body .container,
    body:has(.qst-annual-grid) .cdp-tool-body .history-timeline,
    body:has(.qdu-monthly-table) .cdp-tool-body .container,
    body:has(.qdu-monthly-table) .cdp-tool-body .history-timeline,
    body:has(.qdu-tool-shell) .cdp-tool-body .container,
    body:has(.qdu-tool-shell) .cdp-tool-body .history-timeline {
        max-width: var(--tool-body-max-width) !important;
        width: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}
