/**
 * T5 — salary-calculator mobile V2
 * Opt-in: html[data-tl-mobile-v2="tool-v1"]
 */


@media (max-width: 760px) {
  html[data-tl-mobile-v2="tool-v1"] body.calculator-body main[data-tool="salary-calculator"] #tool-workspace.tool-panel {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-inline: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  html[data-tl-mobile-v2="tool-v1"]:not(.nav-open) .site-header .site-nav#primaryNav:not(.open) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* T5.1 — calculator mobile parity (light readable cards, chart head, articles) */
@media (max-width: 760px) {
  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-summary-card,
  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-summary-card.primary,
  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-summary-card.good,
  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-summary-card.warn,
  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-summary-card.danger {
    background: linear-gradient(145deg, rgba(248, 252, 255, 0.98), rgba(255, 255, 255, 0.92)) !important;
    border: 1px solid rgba(191, 219, 254, 0.82) !important;
    box-shadow: none !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-summary-card span {
    color: #3151d3 !important;
    -webkit-text-fill-color: #3151d3 !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-summary-card strong {
    color: #102033 !important;
    -webkit-text-fill-color: #102033 !important;
    text-shadow: none !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-chart-card {
    background: #fff !important;
    border: 1px solid rgba(191, 219, 254, 0.82) !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-chart-head strong {
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-chart-head span {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-chart-table th {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    background: linear-gradient(135deg, #dbeafe, #eef2ff) !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-chart-table td {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-body.calculator-body:not(.generic-tool-studio-active):not(.passport-editor-active) .tool-blog-grid .article-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.55rem !important;
    min-height: auto !important;
    grid-template-rows: unset !important;
    grid-template-columns: unset !important;
    grid-template-areas: unset !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-body.calculator-body:not(.generic-tool-studio-active):not(.passport-editor-active) .tool-blog-grid .article-card h3,
  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-body.calculator-body:not(.generic-tool-studio-active):not(.passport-editor-active) .tool-blog-grid .article-card h3 a {
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-body.calculator-body:not(.generic-tool-studio-active):not(.passport-editor-active) .tool-blog-grid .article-card p {
    color: #5f6f82 !important;
    -webkit-text-fill-color: #5f6f82 !important;
    opacity: 1 !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    overflow: visible !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-body.calculator-body:not(.generic-tool-studio-active):not(.passport-editor-active) .tool-blog-grid .article-card > .text-link {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-result-summary,
  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-result-zone {
    background: #fff !important;
    color: #191c1e !important;
    border: 1px solid rgba(191, 219, 254, 0.95) !important;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08) !important;
    --tl-result-text: #142033;
    --tl-result-muted: #526275;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-result-zone:before,
  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-result-summary:before {
    display: none !important;
    content: none !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.flux-tool-body.calculator-body .calculator-studio .calculator-result-head h2 {
    color: #102236 !important;
    -webkit-text-fill-color: #102236 !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-chart-card {
    background: #fff !important;
    border: 1px solid rgba(191, 219, 254, 0.82) !important;
    box-shadow: none !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-chart-head span {
    color: #475569 !important;
    -webkit-text-fill-color: #475569 !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-table-wrap {
    border-color: #dbe4f0 !important;
    background: #fff !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-table th {
    background: linear-gradient(135deg, #dbeafe, #eef2ff) !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-table td {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
    border-color: #e2e8f0 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-actions .try-another-button {
    background: linear-gradient(180deg, #ffffff, #eff6ff) !important;
    color: #1e3a8a !important;
    -webkit-text-fill-color: #1e3a8a !important;
    border: 1px solid rgba(96, 165, 250, 0.28) !important;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.08) !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-result-head p {
    color: #536273 !important;
    -webkit-text-fill-color: #536273 !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-result-panel {
    background: linear-gradient(145deg, rgba(226, 239, 255, 0.94), rgba(244, 248, 255, 0.9)) !important;
    border: 1px solid rgba(191, 219, 254, 0.95) !important;
    box-shadow: none !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-insights .insight-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.86)) !important;
    border: 1px solid rgba(96, 165, 250, 0.24) !important;
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-insights .insight-card span {
    color: #4775aa !important;
    -webkit-text-fill-color: #4775aa !important;
    opacity: 1 !important;
  }

  html[data-tl-mobile-v2="tool-v1"] body.calculator-body .calculator-studio .calculator-insights .insight-card strong {
    color: #102236 !important;
    -webkit-text-fill-color: #102236 !important;
    text-shadow: none !important;
    opacity: 1 !important;
  }
}
