/* Shared WCAG fixes verified across every sitemap route. */
html,
body {
    max-width: 100%;
    overflow-x: clip;
}

.gear-category,
.tier-card-header {
    color: #374151 !important;
}

.results-section > p,
.sublabel,
.subtitle,
.benchmark-label {
    color: #4b5563 !important;
}

.footer,
footer {
    --accessible-footer-link: #e5e7eb;
}

.footer a,
footer a,
.footer-link {
    color: var(--accessible-footer-link) !important;
}

.footer p,
footer p,
.footer-bottom,
.footer-bottom p,
.footer-bottom .disclaimer {
    color: #d1d5db !important;
}

footer .disclaimer {
    background: transparent !important;
    color: #d1d5db !important;
}

main a[href^="mailto:"] {
    color: #065f46 !important;
    text-decoration: underline !important;
    text-underline-offset: 0.15em;
}

.result-value,
.positive .factor-value,
.fee-row .value.net,
td[style*="#22c55e"] {
    color: #166534 !important;
}

.rate-tier.recommended .rate-tier-label,
.rate-tier.recommended .rate-tier-value,
.guide-step em {
    color: #92400e !important;
}

.fee-row .value.negative,
.value.negative,
.churn-value,
td[style*="#ef4444"] {
    color: #b91c1c !important;
}

.value.net {
    color: #166534 !important;
}

.input-section-label,
.paid-subs-badge,
#paidSubs {
    color: #92400e !important;
}

#learn a:not(.related-card),
#faq a {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
    text-underline-offset: 0.15em;
}

.btn-primary,
#calculateBtn.btn-primary {
    background: #92400e !important;
    color: #ffffff !important;
}

body.calculator-page input[aria-invalid="true"],
body.calculator-page select[aria-invalid="true"] {
    border-color: #b91c1c !important;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.18) !important;
}

body.calculator-page .copy-result:disabled,
body.calculator-page .copy-rate-card:disabled {
    cursor: not-allowed !important;
    opacity: 0.55 !important;
}

body.calculator-page .calculator-form-status {
    min-height: 1.5rem;
    margin-top: 0.5rem;
    color: #374151;
    font-size: 0.9rem;
}

body.calculator-page .results-card.has-invalid-inputs .result-value,
body.calculator-page .results-card.has-invalid-inputs .breakdown-value,
body.calculator-page .results-card.has-invalid-inputs .engagement-rate-value,
body.calculator-page .results-card.has-invalid-inputs .view-rate {
    color: #b91c1c !important;
}

.skip-nav {
    color: #111827 !important;
    position: fixed;
    top: -6rem;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.skip-nav:focus {
    top: 1rem;
}

.hero .subtitle {
    color: #e5e7eb !important;
}

.tier-badge {
    background: #166534 !important;
    color: #ffffff !important;
}

#benchmarkMultiple {
    color: #166534 !important;
}

.formula-text {
    color: #92400e !important;
}

.benchmark-table thead .tier-low { color: #fca5a5 !important; }
.benchmark-table thead .tier-avg { color: #fcd34d !important; }
.benchmark-table thead .tier-good { color: #86efac !important; }
.benchmark-table thead .tier-exc { color: #93c5fd !important; }
.benchmark-table tbody .tier-low { color: #b91c1c !important; }
.benchmark-table tbody .tier-avg { color: #92400e !important; }
.benchmark-table tbody .tier-good { color: #166534 !important; }
.benchmark-table tbody .tier-exc { color: #1d4ed8 !important; }

.cpm-table-container:focus,
.benchmark-table-container:focus {
    outline: 3px solid #1d4ed8;
    outline-offset: 3px;
}

#theme-toggle,
.hamburger,
.mobile-menu-toggle {
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0.5rem;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.15rem;
}

.hamburger {
    display: none;
}

/* Keep grid and form content inside narrow viewports. */
.tools-grid,
.tool-card,
.calculator-wrapper,
.calculator-container,
.calculator,
.input-panel,
.results-panel,
.results-card,
.input-group,
.input-with-slider,
.tier-inputs-container,
.tier-card,
.tier-card-fields,
.contact-grid,
.contact-card,
.gear-grid,
.gear-card,
.related-grid,
.related-card,
.answer-block,
.answer-block-grid,
.answer-block-item,
.breakdown,
.breakdown-item,
.result-row,
.fee-row,
.breakdown-row,
.benchmark-table-container,
.cpm-table-container {
    min-width: 0;
    max-width: 100%;
}

.container,
.container > *,
.hero-content,
.hero-image,
.hero-actions,
.hero-trust-strip,
.hero-stats,
.dashboard-preview,
.dashboard-card,
.footer-content,
.footer-section,
.footer-logo {
    min-width: 0;
    max-width: 100%;
}

body.calculator-page,
body.calculator-page *,
.contact-grid,
.contact-grid * {
    box-sizing: border-box;
}

body.calculator-page input,
body.calculator-page select,
body.calculator-page textarea,
body.calculator-page button {
    min-width: 0;
    max-width: 100%;
}

body.calculator-page img,
body.calculator-page svg,
body.calculator-page canvas,
body.calculator-page video {
    max-width: 100%;
    height: auto;
}

.benchmark-table-container,
.cpm-table-container {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

main a[href^="mailto:"] {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Shared result actions stay styled on screen while print-only rules load lazily. */
.print-results-button,
.share-tool-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 0.5rem;
    background: #166534;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.share-tool-button {
    margin-left: 0.5rem;
    background: #4338ca;
}

.print-results-button:hover {
    background: #14532d;
    transform: translateY(-1px);
}

.share-tool-button:hover {
    background: #3730a3;
    transform: translateY(-1px);
}

.print-results-button:focus-visible,
.share-tool-button:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

.share-tool-status {
    display: block;
    min-height: 1.5rem;
    margin-top: 0.4rem;
    color: inherit;
    font-size: 0.875rem;
}

/* Static consent styles avoid runtime style injection and a forced recalculation. */
.crc-analytics-dialog {
    position: fixed;
    z-index: 10000;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    max-width: 42rem;
    margin: auto;
    padding: 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    background: #fff;
    color: #111827;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);
    font: 16px/1.5 system-ui, sans-serif;
}

.crc-analytics-dialog p {
    margin: 0.5rem 0 0;
    color: #374151;
}

.crc-analytics-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}

.crc-analytics-actions button,
.crc-privacy-launcher {
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 0.6rem;
    font-weight: 700;
    cursor: pointer;
}

.crc-analytics-primary {
    border: 1px solid #4f46e5;
    background: #4f46e5;
    color: #fff;
}

.crc-analytics-secondary {
    border: 1px solid #6b7280;
    background: #fff;
    color: #111827;
}

.crc-analytics-actions a {
    color: #3730a3;
    font-weight: 700;
    text-decoration: underline;
}

.crc-privacy-launcher {
    position: fixed;
    z-index: 9999;
    bottom: 1rem;
    left: 1rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #111827;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.crc-analytics-actions button:focus-visible,
.crc-analytics-actions a:focus-visible,
.crc-privacy-launcher:focus-visible {
    outline: 3px solid #92400e;
    outline-offset: 3px;
}

[data-theme="dark"] .crc-analytics-dialog,
[data-theme="dark"] .crc-privacy-launcher {
    border-color: #475569;
    background: #0f172a;
    color: #f8fafc;
}

[data-theme="dark"] .crc-analytics-dialog p {
    color: #cbd5e1;
}

[data-theme="dark"] .crc-analytics-secondary {
    border-color: #64748b;
    background: #0f172a;
    color: #f8fafc;
}

[data-theme="dark"] .crc-analytics-actions a {
    color: #c7d2fe;
}

[data-theme="dark"] .crc-analytics-actions button:focus-visible,
[data-theme="dark"] .crc-analytics-actions a:focus-visible,
[data-theme="dark"] .crc-privacy-launcher:focus-visible {
    outline-color: #fbbf24;
}

/* Calculator-specific dark mode. Tool styles load before this shared file. */
html[data-theme="dark"] body.calculator-page {
    --dark: #f8fafc;
    --gray: #94a3b8;
    --gray-dark: #cbd5e1;
    --gray-light: #334155;
    --light: #0f172a;
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] body.calculator-page main,
html[data-theme="dark"] body.calculator-page .calculator-section,
html[data-theme="dark"] body.calculator-page .how-it-works,
html[data-theme="dark"] body.calculator-page .education-section,
html[data-theme="dark"] body.calculator-page .faq-section,
html[data-theme="dark"] body.calculator-page .related-section,
html[data-theme="dark"] body.calculator-page .resources-section,
html[data-theme="dark"] body.calculator-page .resources,
html[data-theme="dark"] body.calculator-page .benchmark-section,
html[data-theme="dark"] body.calculator-page .earnings-examples,
html[data-theme="dark"] body.calculator-page .explanation-section,
html[data-theme="dark"] body.calculator-page .info-section,
html[data-theme="dark"] body.calculator-page .guide-section {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] body.calculator-page .hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] body.calculator-page .navbar,
html[data-theme="dark"] body.calculator-page .footer,
html[data-theme="dark"] body.calculator-page footer {
    background: #111827 !important;
}

html[data-theme="dark"] body.calculator-page .calculator,
html[data-theme="dark"] body.calculator-page .calculator-container,
html[data-theme="dark"] body.calculator-page .input-panel,
html[data-theme="dark"] body.calculator-page .results-panel,
html[data-theme="dark"] body.calculator-page .results-card,
html[data-theme="dark"] body.calculator-page .answer-block,
html[data-theme="dark"] body.calculator-page .step,
html[data-theme="dark"] body.calculator-page .step-content,
html[data-theme="dark"] body.calculator-page .factor,
html[data-theme="dark"] body.calculator-page .factor-item,
html[data-theme="dark"] body.calculator-page .example,
html[data-theme="dark"] body.calculator-page .myth,
html[data-theme="dark"] body.calculator-page .guide-step,
html[data-theme="dark"] body.calculator-page .gear-card,
html[data-theme="dark"] body.calculator-page .related-card,
html[data-theme="dark"] body.calculator-page .faq-item,
html[data-theme="dark"] body.calculator-page .faq-question,
html[data-theme="dark"] body.calculator-page .faq-answer,
html[data-theme="dark"] body.calculator-page .tier-card,
html[data-theme="dark"] body.calculator-page .churn-section,
html[data-theme="dark"] body.calculator-page .fee-breakdown,
html[data-theme="dark"] body.calculator-page .revenue-breakdown,
html[data-theme="dark"] body.calculator-page .formula-breakdown,
html[data-theme="dark"] body.calculator-page .negotiation-tip,
html[data-theme="dark"] body.calculator-page .rate-factors,
html[data-theme="dark"] body.calculator-page .tier-badge-container,
html[data-theme="dark"] body.calculator-page .engagement-display,
html[data-theme="dark"] body.calculator-page .stream-breakdown,
html[data-theme="dark"] body.calculator-page .breakdown,
html[data-theme="dark"] body.calculator-page .breakdown-item,
html[data-theme="dark"] body.calculator-page .revenue-summary,
html[data-theme="dark"] body.calculator-page .affiliate-disclosure,
html[data-theme="dark"] body.calculator-page .cpm-data,
html[data-theme="dark"] body.calculator-page .benchmark-table tbody tr,
html[data-theme="dark"] body.calculator-page .cpm-table tbody tr {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] body.calculator-page input,
html[data-theme="dark"] body.calculator-page select,
html[data-theme="dark"] body.calculator-page textarea {
    background: #0f172a !important;
    border-color: #64748b !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] body.calculator-page input::placeholder,
html[data-theme="dark"] body.calculator-page textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 1;
}

html[data-theme="dark"] body.calculator-page h1,
html[data-theme="dark"] body.calculator-page h2,
html[data-theme="dark"] body.calculator-page h3,
html[data-theme="dark"] body.calculator-page h4,
html[data-theme="dark"] body.calculator-page .section-header h2,
html[data-theme="dark"] body.calculator-page .input-group label,
html[data-theme="dark"] body.calculator-page .tier-inputs-label,
html[data-theme="dark"] body.calculator-page .results-card h3,
html[data-theme="dark"] body.calculator-page .faq-question,
html[data-theme="dark"] body.calculator-page .result-label,
html[data-theme="dark"] body.calculator-page .breakdown-label,
html[data-theme="dark"] body.calculator-page .label {
    color: #f8fafc !important;
}

html[data-theme="dark"] body.calculator-page p,
html[data-theme="dark"] body.calculator-page li,
html[data-theme="dark"] body.calculator-page td,
html[data-theme="dark"] body.calculator-page .subtitle,
html[data-theme="dark"] body.calculator-page .sublabel,
html[data-theme="dark"] body.calculator-page .input-hint,
html[data-theme="dark"] body.calculator-page .micro-note,
html[data-theme="dark"] body.calculator-page .gear-description,
html[data-theme="dark"] body.calculator-page .gear-specs,
html[data-theme="dark"] body.calculator-page .rate-tier-note,
html[data-theme="dark"] body.calculator-page .disclaimer {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body.calculator-page main a:not(.btn) {
    color: #93c5fd !important;
}

html[data-theme="dark"] body.calculator-page .result-value,
html[data-theme="dark"] body.calculator-page .breakdown-value,
html[data-theme="dark"] body.calculator-page .fee-row .value.positive,
html[data-theme="dark"] body.calculator-page .fee-row .value.net,
html[data-theme="dark"] body.calculator-page .value.net,
html[data-theme="dark"] body.calculator-page .net-monthly-value,
html[data-theme="dark"] body.calculator-page .total-monthly-value {
    color: #86efac !important;
}

html[data-theme="dark"] body.calculator-page .btn-secondary,
html[data-theme="dark"] body.calculator-page .copy-result,
html[data-theme="dark"] body.calculator-page .copy-rate-card {
    background: #334155 !important;
    border-color: #64748b !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] body.calculator-page table,
html[data-theme="dark"] body.calculator-page th,
html[data-theme="dark"] body.calculator-page td {
    border-color: #475569 !important;
}

/* Keep nested calculator cards dark when tool-level styles use fixed light colors. */
html[data-theme="dark"] body.calculator-page .rate-tier,
html[data-theme="dark"] body.calculator-page .input-section,
html[data-theme="dark"] body.calculator-page .factor-item.positive,
html[data-theme="dark"] body.calculator-page .factor-item.negative,
html[data-theme="dark"] body.calculator-page .negotiation-tip,
html[data-theme="dark"] body.calculator-page .monthly-estimate,
html[data-theme="dark"] body.calculator-page .education-content,
html[data-theme="dark"] body.calculator-page .gear-disclaimer,
html[data-theme="dark"] body.calculator-page .formula-text,
html[data-theme="dark"] body.calculator-page .cpm-notes,
html[data-theme="dark"] body.calculator-page .result-row.highlight,
html[data-theme="dark"] body.calculator-page .myth,
html[data-theme="dark"] body.calculator-page .keep-percent,
html[data-theme="dark"] body.calculator-page .churn-section,
html[data-theme="dark"] body.calculator-page .sponsorship-impact,
html[data-theme="dark"] body.calculator-page .stream-breakdown,
html[data-theme="dark"] body.calculator-page .benchmark-table,
html[data-theme="dark"] body.calculator-page .cpm-table,
html[data-theme="dark"] body.calculator-page .tier-breakdown table {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] body.calculator-page .rate-tier,
html[data-theme="dark"] body.calculator-page .result-row.highlight {
    background: #0f172a !important;
}

html[data-theme="dark"] body.calculator-page .rate-tier.recommended {
    border-color: #fbbf24 !important;
}

html[data-theme="dark"] body.calculator-page .rate-tier-label,
html[data-theme="dark"] body.calculator-page .input-section-label,
html[data-theme="dark"] body.calculator-page .negotiation-tip h4,
html[data-theme="dark"] body.calculator-page .sponsorship-impact h4,
html[data-theme="dark"] body.calculator-page .gear-category,
html[data-theme="dark"] body.calculator-page .tier-card-header,
html[data-theme="dark"] body.calculator-page .formula-text,
html[data-theme="dark"] body.calculator-page .guide-step em {
    color: #fbbf24 !important;
}

html[data-theme="dark"] body.calculator-page .rate-tier-value,
html[data-theme="dark"] body.calculator-page .estimate-value,
html[data-theme="dark"] body.calculator-page .view-rate,
html[data-theme="dark"] body.calculator-page .engagement-rate-value {
    color: #86efac !important;
}

html[data-theme="dark"] body.calculator-page .rate-tier-note,
html[data-theme="dark"] body.calculator-page .factor-label,
html[data-theme="dark"] body.calculator-page .negotiation-tip p,
html[data-theme="dark"] body.calculator-page .monthly-estimate .estimate-detail,
html[data-theme="dark"] body.calculator-page .education-content p,
html[data-theme="dark"] body.calculator-page .education-content li,
html[data-theme="dark"] body.calculator-page .education-content strong,
html[data-theme="dark"] body.calculator-page .cpm-notes li,
html[data-theme="dark"] body.calculator-page .sponsorship-impact p,
html[data-theme="dark"] body.calculator-page .engagement-rate-label,
html[data-theme="dark"] body.calculator-page .view-based-row,
html[data-theme="dark"] body.calculator-page .affiliate-disclosure,
html[data-theme="dark"] body.calculator-page .affiliate-disclosure strong {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] body.calculator-page .factor-item.positive .factor-value,
html[data-theme="dark"] body.calculator-page .keep-percent {
    color: #86efac !important;
}

html[data-theme="dark"] body.calculator-page .factor-item.negative .factor-value,
html[data-theme="dark"] body.calculator-page .fee-row .value.negative,
html[data-theme="dark"] body.calculator-page .breakdown-row .value.negative,
html[data-theme="dark"] body.calculator-page .value.negative,
html[data-theme="dark"] body.calculator-page .churn-section h4,
html[data-theme="dark"] body.calculator-page .churn-stat .churn-value,
html[data-theme="dark"] body.calculator-page .churn-stat .churn-label,
html[data-theme="dark"] body.calculator-page .churn-value,
html[data-theme="dark"] body.calculator-page .churn-label,
html[data-theme="dark"] body.calculator-page .results-card.has-invalid-inputs .rate-tier-value {
    color: #fca5a5 !important;
}

html[data-theme="dark"] body.calculator-page .calculator-form-status {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body.calculator-page .results-card.has-invalid-inputs .result-value,
html[data-theme="dark"] body.calculator-page .results-card.has-invalid-inputs .breakdown-value,
html[data-theme="dark"] body.calculator-page .results-card.has-invalid-inputs .engagement-rate-value,
html[data-theme="dark"] body.calculator-page .results-card.has-invalid-inputs .view-rate {
    color: #fca5a5 !important;
}

html[data-theme="dark"] body.calculator-page table thead,
html[data-theme="dark"] body.calculator-page table th {
    background: #0f172a !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] body.calculator-page table tbody tr:hover {
    background: #334155 !important;
}

html[data-theme="dark"] body.calculator-page .stream-bar-container {
    background: #475569 !important;
}

html[data-theme="dark"] body.calculator-page .step-number {
    background: #92400e !important;
    color: #ffffff !important;
}

body.calculator-page .results-card[tabindex="-1"]:focus {
    outline: 3px solid #92400e;
    outline-offset: 3px;
}

html[data-theme="dark"] body.calculator-page .results-card[tabindex="-1"]:focus {
    outline-color: #fbbf24;
}

/* Result-adjacent resource links stay outside live/printable result regions. */
.growth-next-step {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #ddd6fe;
    border-radius: 0.75rem;
    background: #faf5ff;
    color: #111827;
}

.growth-next-step--compact {
    padding: 0.85rem;
}

.growth-next-step h3,
.growth-next-step p {
    margin: 0;
}

.growth-next-step h3 {
    color: #111827;
    font-size: 1.05rem;
    line-height: 1.35;
}

.growth-next-step p:not(.growth-next-step-kicker) {
    margin-top: 0.4rem;
    color: #374151;
    line-height: 1.55;
}

.growth-next-step-kicker {
    color: #5b21b6;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.growth-next-step-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.growth-next-step-actions .btn,
.growth-next-step-link {
    min-height: 2.75rem;
}

.growth-next-step-link {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.25rem;
    color: #5b21b6;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.2em;
}

.growth-next-step-link:hover {
    color: #4c1d95;
}

.growth-next-step-actions .btn:focus-visible,
.growth-next-step-link:focus-visible {
    outline: 3px solid #92400e;
    outline-offset: 3px;
}

html[data-theme="dark"] .growth-next-step {
    border-color: #6d28d9;
    background: #1e1b4b;
    color: #f8fafc;
}

html[data-theme="dark"] .growth-next-step h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .growth-next-step p:not(.growth-next-step-kicker) {
    color: #e2e8f0;
}

html[data-theme="dark"] .growth-next-step-kicker,
html[data-theme="dark"] .growth-next-step-link {
    color: #c4b5fd;
}

html[data-theme="dark"] .growth-next-step-link:hover {
    color: #ddd6fe;
}

html[data-theme="dark"] .growth-next-step-actions .btn:focus-visible,
html[data-theme="dark"] .growth-next-step-link:focus-visible {
    outline-color: #fbbf24;
}

/* Trust and discovery pages also need dark surfaces when the shared toggle is active. */
html[data-theme="dark"] .geo-content,
html[data-theme="dark"] .contact-card {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .geo-content h2,
html[data-theme="dark"] .geo-content h3,
html[data-theme="dark"] .contact-card h3 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .geo-content p,
html[data-theme="dark"] .geo-content li,
html[data-theme="dark"] .contact-card p {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .geo-content a,
html[data-theme="dark"] .contact-card a {
    color: #93c5fd !important;
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hamburger {
        display: inline-flex;
    }

    .nav-links.nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 0.5rem;
    }

    .nav-links.nav-menu.active {
        display: flex;
    }

    .nav-links.nav-menu a {
        min-height: 2.75rem;
        padding: 0.65rem 0;
    }

    .tools-grid,
    .hero .container,
    .dashboard-preview,
    .footer-content,
    body.calculator-page .calculator-wrapper,
    body.calculator-page .calculator-container,
    body.calculator-page .calculator,
    .contact-grid,
    body.calculator-page .gear-grid,
    body.calculator-page .related-grid,
    body.calculator-page .answer-block-grid,
    body.calculator-page .tier-card-fields {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.calculator-page main,
    body.calculator-page main > *,
    body.calculator-page main .container,
    body.calculator-page .input-panel,
    body.calculator-page .results-panel,
    body.calculator-page .results-card,
    .contact-grid,
    .contact-card {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .print-results-button,
    .share-tool-button {
        width: 100%;
        margin-left: 0;
    }

    .growth-next-step-actions,
    .growth-next-step-actions .btn,
    .growth-next-step-link {
        width: 100%;
    }

    .growth-next-step-actions .btn,
    .growth-next-step-link {
        justify-content: center;
        text-align: center;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
