/* Viewer-first interactive layer. Loaded after the base theme. */
[hidden] { display: none !important; }
.eyebrow, .kicker { color: #2552cc; font-size: 12px; line-height: 1.35; }
.eyebrow::before { background: #2552cc; }
.status-line { font-size: 12px; }
.stats { grid-template-columns: 1.2fr 1fr 1fr; }
.stat { border-bottom: 0; }
.stat-label { font-size: 11px; line-height: 1.3; }
.stat-note { font-size: 12px; line-height: 1.4; }
.stat-month { font-size: clamp(25px, 2.5vw, 35px); letter-spacing: -.035em; }

.tracker-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(170px, 1fr) minmax(170px, .9fr) minmax(150px, .8fr) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
}
.secondary-filters { display: contents; }
.more-filters { display: none; }
.filter-label { display: block; margin: 0 0 7px 2px; color: #506078; font: 650 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.search-field input { padding: 0 15px; }
.search-glyph, .select-chevron { display: none; }
.reset-filters { height: 48px; padding: 0 17px; border: 1px solid #b9c6d6; border-radius: 11px; color: #17325b; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.reset-filters:hover:not(:disabled), .reset-filters:focus-visible { color: #fff; border-color: #17325b; background: #17325b; }
.reset-filters:disabled { opacity: .38; cursor: default; }
.jobs-cell.unknown { color: #788599 !important; font-size: 18px; }
.jobs-cell { white-space: nowrap; }
.jobs-cell.scale-derived { color: #274664; font-size: 13px; font-weight: 750; }
.tracker-table th, .tracker-table th button { font-size: 12px; }
.source-link { font-size: 12px; }
.source-tablet { display: none; }
.tracker-foot { font-size: 12px; }
.company-cell span { color: #58677a; }
.company-lockup { display: flex; align-items: center; gap: 12px; min-width: 0; }
.company-logo { position: relative; display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid #dbe3ee; border-radius: 10px; color: #315070; background: #f2f6fb; overflow: hidden; }
.company-logo-fallback { font-size: 14px !important; font-weight: 800; line-height: 1; }
.company-logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 5px; object-fit: contain; background: #fff; opacity: 0; transition: opacity .16s ease; }
.company-logo.is-loaded img { opacity: 1; }
.company-logo.is-missing img { display: none; }
.company-copy { display: block; min-width: 0; }
.company-copy > span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.3; }
.mobile-record-toggle { display: none; }
.mobile-relation-detail { display: none; }
.record-detail-text { display: inline; }
.tracker-table tbody tr.is-highlighted { background: #e7efff; box-shadow: inset 4px 0 #2552cc; }
.tracker-table tbody tr.is-highlighted .company-cell strong { color: #174dbd; }

.insight-grid { grid-template-columns: .82fr 1.08fr 1.2fr; }
.recent-card { display: flex; flex-direction: column; }
.insight-label { display: flex; align-items: center; gap: 9px; color: #1f3859; font-family: var(--sans); font-size: 15px; font-weight: 800; line-height: 1.3; letter-spacing: -.015em; text-transform: none; }
.insight-label::before { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 2px; content: ""; background: #2552cc; box-shadow: 0 0 0 4px rgba(37,82,204,.09); }
.recent-number { display: block; color: #2552cc; font-size: clamp(48px, 5vw, 70px); font-weight: 760; line-height: .9; letter-spacing: -.06em; }
.recent-card h3 { margin-top: 10px; }
.recent-card > p:not(.insight-label) { margin: 12px 0 24px; color: #627086; font-size: 13px; }
.insight-action { display: inline-flex; width: fit-content; align-items: center; gap: 10px; margin-top: auto; padding: 0; border: 0; color: #174dbd; background: none; font-size: 13px; font-weight: 750; cursor: pointer; }
.insight-action span { transition: transform .18s ease; }
.insight-action:hover span, .insight-action:focus-visible span { transform: translateX(4px); }
.split-row { display: block; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: 11px; color: inherit; text-align: left; background: transparent; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.split-row + .split-row { margin-top: 8px; }
.split-row:hover, .split-row:focus-visible { border-color: #cad6e7; background: #f5f8fc; transform: translateY(-1px); }
.split-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.split-heading > span { color: #253852; font-size: 14px; font-weight: 700; }
.split-heading strong { color: #17325b; font-size: 22px; }
.split-track { display: block; height: 8px; margin-top: 8px; border-radius: 99px; background: #e5ebf3; overflow: hidden; }
.split-track > span { display: block; width: var(--share); height: 100%; border-radius: inherit; background: #2552cc; }
.split-row.enabled .split-track > span { background: #0e8576; }
.split-copy { display: block; margin-top: 8px; color: #627086; font-size: 13px; line-height: 1.5; }
.ranking-card li { display: block; padding: 0; }
.ranking-card li button { display: grid; width: 100%; grid-template-columns: 40px minmax(0, 1fr) auto 18px; gap: 11px; align-items: center; padding: 10px 7px; border: 0; border-radius: 9px; color: inherit; text-align: left; background: transparent; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.ranking-card li button:hover, .ranking-card li button:focus-visible { background: #edf3fb; transform: translateX(2px); }
.rank-logo { position: relative; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #dce4ee; border-radius: 10px; color: #315070; background: #f2f6fb; font-size: 13px; font-weight: 800; overflow: hidden; }
.rank-logo img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 5px; object-fit: contain; background: #fff; }
.rank-company { min-width: 0; }
.ranking-card .rank { font-size: 11px; }
.ranking-card li small { font-size: 12px; }
.ranking-card .rank-arrow { color: #2552cc; font-size: 15px; opacity: .62; transition: transform .18s ease, opacity .18s ease; }
.ranking-card li button:hover .rank-arrow, .ranking-card li button:focus-visible .rank-arrow { opacity: 1; transform: translateX(3px); }

.chart-card { padding: clamp(20px, 2.4vw, 32px); }
.chart-toolbar { align-items: center; }
.chart-hint { margin: 7px 0 0; color: #68778d; font: 550 12px/1.4 var(--mono); }
.chart-swipe { display: none; }
.chart-wrap { min-height: 420px; height: 420px; overflow: visible; }
#layoff-chart { display: block; width: 100%; min-width: 760px; height: 420px; min-height: 420px; overflow: visible; }
.chart-plot-bg { fill: #f8faff; stroke: #e6ecf4; }
.chart-events-area { fill: url(#event-area); pointer-events: none; }
.chart-events-line { fill: none; stroke: #0e8576; stroke-width: 3.5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 3px 4px rgba(14, 133, 118, .16)); pointer-events: none; }
.chart-job-bar { fill: url(#job-gradient); opacity: .94; transition: opacity .16s ease, transform .16s ease; transform-box: fill-box; transform-origin: center bottom; pointer-events: none; }
.chart-events-dot { fill: #fff; stroke: #0e8576; stroke-width: 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.chart-month-band { fill: #2552cc; opacity: 0; transition: opacity .16s ease; pointer-events: none; }
.chart-month:hover .chart-month-band, .chart-month:focus-within .chart-month-band { opacity: .045; }
.chart-month.is-selected .chart-month-band { opacity: .09; }
.chart-month:hover .chart-job-bar, .chart-month:focus-within .chart-job-bar { opacity: 1; transform: scaleY(1.025); }
.chart-value { fill: #344762; font: 650 11px var(--mono); pointer-events: none; }
.chart-month-label { fill: #516078; font-weight: 600; }
.chart-hit { cursor: pointer; outline: none; }
.chart-tooltip em { display: inline-block; margin-top: 4px; color: #2552cc; font-style: normal; font-weight: 700; }
.desktop-impact {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  border: 1px solid #d7e0eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 58px rgba(25, 46, 78, .11);
  overflow: hidden;
}
.impact-summary {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 34px 30px;
  color: #fff;
  background:
    radial-gradient(circle at 95% 5%, rgba(88, 132, 255, .34), transparent 34%),
    linear-gradient(155deg, #17365f 0%, #102642 58%, #0b1e35 100%);
  overflow: hidden;
}
.impact-summary::after { position: absolute; right: -46px; bottom: -55px; width: 170px; height: 170px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; content: ""; box-shadow: 0 0 0 28px rgba(255,255,255,.025), 0 0 0 56px rgba(255,255,255,.018); }
.impact-summary > p:first-child { margin: 0; color: #aebed5; font: 650 12px/1.2 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.impact-summary > strong { display: block; margin-top: 12px; font-size: clamp(42px, 4vw, 58px); line-height: .95; letter-spacing: -.055em; }
.impact-summary > span { display: block; max-width: 190px; margin-top: 10px; color: #c8d4e3; font-size: 14px; line-height: 1.5; }
.impact-peak { position: relative; z-index: 1; margin-top: 34px; padding: 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 13px; background: rgba(255,255,255,.075); }
.impact-peak small { display: block; color: #aebed5; font: 650 11px/1.2 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.impact-peak b { display: block; margin-top: 8px; font-size: 20px; }
.impact-peak span { display: block; margin-top: 4px; color: #c8d4e3; font-size: 13px; }
.impact-prompt { position: relative; z-index: 1; margin: auto 0 0 !important; padding-top: 28px; color: #b8c6d9 !important; font-size: 13px !important; line-height: 1.5 !important; }
.impact-chart { min-width: 0; padding: 28px 30px 30px; }
.impact-chart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.impact-chart-head > div strong { display: block; color: #152b49; font-size: 18px; }
.impact-chart-head > div span { display: block; margin-top: 3px; color: #718096; font-size: 13px; }
.impact-report-key { color: #536987; font: 650 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.impact-axis, .desktop-month { display: grid; grid-template-columns: 58px minmax(180px, 1fr) 82px 92px 20px; gap: 14px; align-items: center; }
.impact-axis { margin-bottom: 6px; color: #8190a5; font: 550 10px/1 var(--mono); }
.impact-axis-scale { display: flex; justify-content: space-between; }
.impact-axis i { font-style: normal; }
.desktop-month { width: 100%; min-height: 54px; padding: 8px 7px; border: 0; border-top: 1px solid #e5eaf1; border-radius: 8px; color: inherit; text-align: left; background: transparent; cursor: pointer; transition: background .16s ease, box-shadow .16s ease, transform .16s ease; }
.desktop-month:hover, .desktop-month:focus-visible { background: #f3f6fb; transform: translateX(2px); }
.impact-month strong { display: block; color: #243953; font-size: 15px; line-height: 1.05; }
.impact-month small { display: block; margin-top: 4px; color: #7a8799; font-size: 11px; }
.impact-track { position: relative; display: block; height: 18px; border-radius: 5px; background-color: #f0f3f7; background-image: linear-gradient(to right, rgba(118,136,160,.19) 1px, transparent 1px); background-size: 25% 100%; overflow: hidden; }
.impact-track > span { display: block; width: var(--impact-share); height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #1e3e68, #2d5c96); box-shadow: inset 0 1px rgba(255,255,255,.22); transition: width .3s ease, filter .16s ease; }
.desktop-month.is-peak .impact-track > span { background: linear-gradient(90deg, #1e52c2, #4279f0); }
.desktop-month:hover .impact-track > span, .desktop-month:focus-visible .impact-track > span { filter: saturate(1.15) brightness(1.05); }
.impact-jobs { color: #17325b; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.impact-reports { display: inline-flex; width: fit-content; align-items: baseline; gap: 4px; padding: 6px 8px; border: 1px solid rgba(37,82,204,.18); border-radius: 999px; color: #244da8; background: rgba(37,82,204,.065); font-size: 13px; font-weight: 800; white-space: nowrap; }
.impact-reports span { font-size: 11px; font-weight: 650; }
.impact-arrow { color: #2552cc; font-size: 16px; opacity: .45; transition: opacity .16s ease, transform .16s ease; }
.desktop-month:hover .impact-arrow, .desktop-month:focus-visible .impact-arrow { opacity: 1; transform: translateX(3px); }
.mobile-months { display: none; }
.footer-bottom { font-size: 11px; }
.footer-bottom a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.content-page { min-height: 72vh; padding: clamp(54px, 6vw, 82px) 0 90px; }
.content-grid { grid-template-columns: minmax(240px, .56fr) minmax(0, 1.24fr); gap: clamp(40px, 6vw, 86px); align-items: start; }
.content-header { position: sticky; top: 104px; }
.content-header .eyebrow { margin-bottom: 14px; }
.content-page h1 { position: static; max-width: 440px; font-size: clamp(42px, 5vw, 66px); font-weight: 760; line-height: .98; letter-spacing: -.055em; }
.content-deck { max-width: 390px; margin: 22px 0 0; color: #54647a; font-size: 16px; line-height: 1.6; }
.prose { max-width: 820px; padding: clamp(28px, 4vw, 48px); border: 1px solid #dbe3ed; border-radius: 18px; background: rgba(255,255,255,.88); box-shadow: 0 18px 48px rgba(25,46,78,.08); }
.prose h2 { margin: 2.15em 0 .65em; color: #17325b; font-size: clamp(24px, 2.3vw, 31px); font-weight: 760; line-height: 1.15; letter-spacing: -.035em; }
.prose h2:first-child, .prose .policy-updated + p + h2 { margin-top: 0; }
.prose h3 { margin: 1.6em 0 .45em; color: #29425f; font-size: 18px; line-height: 1.3; }
.prose p, .prose li { color: #46566b; font-size: 16px; line-height: 1.75; }
.prose p { margin: 0 0 1.05em; }
.prose ul { margin: .3em 0 1.25em; padding-left: 1.3em; }
.prose li + li { margin-top: .42em; }
.prose a { color: #174dbd; font-weight: 700; text-underline-offset: 3px; }
.policy-updated { width: fit-content; margin: 0 0 24px !important; padding: 8px 11px; border: 1px solid #ced9e8; border-radius: 8px; color: #53657d !important; background: #f1f5fa; font-size: 13px !important; }

@media (max-width: 1180px) {
  .tracker-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-field { grid-column: 1 / -1; }
  .reset-filters { width: 100%; }
}

@media (max-width: 1024px) {
  .shell { width: min(calc(100% - 36px), var(--max)); }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-aside { max-width: 720px; padding: 0; }
  .hero-aside p { max-width: 680px; margin-bottom: 16px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat { min-height: 104px; border-bottom: 0 !important; }
  .stat:nth-child(2) { border-right: 1px solid rgba(24, 52, 88, .16); }
  .section-head { align-items: start; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .ranking-card { grid-column: 1 / -1; }
  .desktop-impact { grid-template-columns: 235px minmax(0, 1fr); }
  .impact-summary { padding: 28px 24px; }
  .impact-chart { padding-inline: 22px; }
  .impact-axis, .desktop-month { grid-template-columns: 52px minmax(160px, 1fr) 72px 82px 18px; gap: 10px; }
}

@media (max-width: 900px) {
  .nav { min-height: 66px; }
  .section-head { display: block; }
  .section-intro { max-width: 620px; margin-top: 12px; }
  .tracker-section { padding-top: 34px; }
  .table-scroll { overflow: visible; }
  .tracker-table, .tracker-table tbody { display: block; width: 100%; }
  .tracker-table thead { display: none; }
  .tracker-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; }
  .tracker-table tr { display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 14px 12px; padding: 18px; border: 1px solid #dde5ef; border-radius: 13px; background: #fff; box-shadow: 0 7px 20px rgba(24, 52, 88, .06); }
  .tracker-table tbody tr:nth-child(even) { background: #fff; }
  .tracker-table td { display: block; width: 100%; min-width: 0; max-width: none; padding: 0; border: 0; font-size: 13px; }
  .tracker-table td::before { display: block; margin-bottom: 5px; color: #69778d; font: 650 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  .company-cell, .tracker-table td:nth-child(4), .summary-cell, .tracker-table td:nth-child(6) { grid-column: 1 / -1; }
  .company-cell { padding-bottom: 12px !important; border-bottom: 1px solid #e5eaf1 !important; }
  .company-cell::before { display: none !important; }
  .company-cell strong { font-size: 18px; }
  .summary-cell { color: #46566c !important; line-height: 1.5; }
  .source-link { display: inline-flex; padding: 8px 10px; border: 1px solid #cfdaea; border-radius: 8px; background: #f7faff; }
  .tracker-foot { padding: 15px; }
  .chart-toolbar { align-items: flex-start; }
  .content-grid { grid-template-columns: 1fr; }
  .content-header { position: static; }
  .content-deck { max-width: 620px; }
  .prose { max-width: none; }
}

@media (max-width: 800px) {
  .chart-card, .desktop-impact { display: none; }
  .mobile-months { display: block; border: 1px solid #dce4ee; border-radius: 16px; background: #fff; box-shadow: 0 18px 44px rgba(28, 49, 82, .08); overflow: hidden; }
  .mobile-months-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #e2e8f0; background: #f7f9fc; }
  .mobile-months-head strong { color: #152b49; font-size: 16px; }
  .mobile-months-head span { color: #64738a; font-size: 13px; }
  .mobile-month { display: block; width: 100%; padding: 18px 20px; border: 0; border-bottom: 1px solid #e5eaf1; color: inherit; text-align: left; background: #fff; cursor: pointer; transition: background .16s ease, box-shadow .16s ease; }
  .mobile-month:last-child { border-bottom: 0; }
  .mobile-month:hover, .mobile-month:focus-visible { background: #f2f6ff; box-shadow: inset 4px 0 #2552cc; }
  .mobile-month-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .mobile-month-top > strong { color: #152b49; font-size: 18px; letter-spacing: -.02em; }
  .mobile-month-top > span { color: #2552cc; font-size: 13px; font-weight: 750; }
  .mobile-month-data { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, .6fr); gap: 18px; margin-top: 15px; }
  .mobile-month-data.single { grid-template-columns: 1fr; }
  .mobile-month-data > span { display: block; }
  .mobile-month-data b { display: block; color: #17325b; font-size: 25px; line-height: 1; letter-spacing: -.035em; }
  .mobile-month-data small { display: block; margin-top: 5px; color: #5f6f85; font-size: 12px; line-height: 1.35; }
  .mobile-month-track { display: block; height: 7px; margin-top: 16px; border-radius: 99px; background: #e8edf4; overflow: hidden; }
  .mobile-month-track > span { display: block; width: var(--month-share); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #244daf, #3f73ee); transition: width .3s ease; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 24px), var(--max)); }
  .site-header { background: rgba(251, 252, 254, .94); }
  .nav { gap: 10px; }
  .brand { gap: 8px; font-size: 14px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 9px; }
  .brand em, .nav-links a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta { padding: 8px 10px; font-size: 12px; }
  .hero { padding: 28px 0 18px; }
  .hero-grid { gap: 14px; }
  .eyebrow { margin-bottom: 10px; font-size: 11px; }
  .hero h1 { font-size: clamp(38px, 12.3vw, 50px); line-height: .98; }
  .hero-aside p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
  .status-line { font-size: 11px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 22px; border-top-width: 3px; }
  .stat { min-height: 92px; padding: 14px !important; border-right: 0; }
  .stat-primary { grid-column: 1 / -1; border-bottom: 1px solid rgba(24, 52, 88, .16) !important; }
  .stat:nth-child(2) { border-right: 1px solid rgba(24, 52, 88, .16); }
  .stat-label { font-size: 11px; line-height: 1.25; }
  .stat-value { margin-top: 6px; font-size: 30px; }
  .stat-month { font-size: 23px; }
  .stat-note { margin-top: 5px; font-size: 12px; line-height: 1.4; }
  .section, .tracker-section, .insight-section, .trend-section { padding: 44px 0; }
  .section h2 { font-size: clamp(32px, 10vw, 40px); }
  .section-head { margin-bottom: 18px; }
  .section-intro { font-size: 13px; line-height: 1.5; }
  .tracker-shell { border-radius: 12px; }
  .tracker-tools { grid-template-columns: 1fr; gap: 11px; padding: 13px; }
  .search-field { grid-column: auto; }
  .field input, .tracker-tools select, .reset-filters { height: 46px; }
  .tracker-table tbody { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  .tracker-table tr { gap: 13px 10px; padding: 16px; }
  .tracker-foot { align-items: center; flex-direction: row; }
  .insight-grid { grid-template-columns: 1fr; }
  .ranking-card { grid-column: auto; }
  .insight-card { padding: 20px; }
  .insight-label { margin-bottom: 17px; font-size: 14px; }
  .ranking-card ol { display: block; }
  .company-logo { width: 42px; height: 42px; flex-basis: 42px; }
  .company-copy > span { font-size: 13px; }
  .source-link { font-size: 12px; }
  .jobs-cell.scale-derived { font-size: 15px; }
  .ranking-card .rank { font-size: 11px; }
  .ranking-card li small { font-size: 12px; }
  .footer-bottom { font-size: 11px; line-height: 1.6; }
  .mobile-months-head { display: block; padding: 17px 16px; }
  .mobile-months-head span { display: block; margin-top: 4px; font-size: 13px; }
  .mobile-month { padding: 17px 16px; }
  .mobile-month-data { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mobile-month-data b { font-size: 23px; }
  .mobile-month-data small { font-size: 12px; }
  .footer-top { gap: 28px; }
  .footer-statement { font-size: 24px; }
  .footer-links { gap: 8px 16px; }
  .footer-bottom { gap: 8px; }
}

@media (max-width: 640px) {
  .content-page { padding: 38px 0 64px; }
  .content-grid { gap: 28px; }
  .content-page h1 { max-width: none; font-size: clamp(40px, 12vw, 50px); line-height: 1; }
  .content-deck { margin-top: 15px; font-size: 15px; line-height: 1.55; }
  .prose { padding: 22px 19px; border-radius: 15px; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(241,246,252,.94)); }
  .prose h2 { font-size: 25px; }
  .prose h3 { font-size: 18px; }
  .prose p, .prose li { font-size: 15px; line-height: 1.7; }

  .tracker-table tbody { padding: 12px; background: linear-gradient(145deg, #e7eef8, #edf3f9); }
  .tracker-table tr,
  .tracker-table tbody tr:nth-child(even) { padding: 15px; border: 1px solid #cfdaea; border-top: 3px solid #d5e1f5; border-radius: 14px; background: linear-gradient(150deg, #ffffff 0%, #f4f7fb 100%); box-shadow: 0 9px 24px rgba(23,50,91,.08); }
  .tracker-table tr.is-expanded { border-color: #aebfe0; border-top-color: #2552cc; box-shadow: 0 14px 30px rgba(23,50,91,.13); }
  .date-cell, .jobs-cell { padding: 9px 10px !important; border: 1px solid #dfe6ef !important; border-radius: 9px; background: rgba(237,243,250,.74); }
  .tracker-table td:nth-child(4) { display: none; }
  .summary-cell { display: block !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
  .summary-cell::before { display: none !important; }
  .record-detail-text { display: none; }
  .mobile-record-toggle { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border: 1px solid #bdcbe0; border-radius: 10px; color: #1e4aa9; background: linear-gradient(180deg, #f4f7ff, #eaf0fb); font-size: 13px; font-weight: 800; cursor: pointer; }
  .mobile-record-toggle:focus-visible { outline: 3px solid rgba(37,82,204,.32); outline-offset: 2px; }
  .mobile-record-toggle i { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #fff; background: #2552cc; font-size: 16px; font-style: normal; line-height: 1; }
  .tracker-table td:nth-child(6) { display: none; }
  .tracker-table tr.is-expanded .record-detail-text { display: block; margin-top: 14px; padding: 14px; border-left: 3px solid #2552cc; border-radius: 0 9px 9px 0; color: #3e5068; background: rgba(235,241,249,.8); font-size: 14px; line-height: 1.58; }
  .tracker-table tr.is-expanded .mobile-relation-detail { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 13px; padding: 10px 12px; border: 1px solid #d7e1ee; border-radius: 9px; background: rgba(238,243,249,.8); }
  .mobile-relation-detail small { color: #65758b; font: 650 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
  .tracker-table tr.is-expanded td:nth-child(6) { display: block; grid-column: 1 / -1; padding-top: 2px; }
  .tracker-table tr.is-expanded td:nth-child(6)::before { margin-bottom: 7px; }
}

/* Tablet: retain the fast-scanning ledger instead of turning rows into cards. */
@media (min-width: 641px) and (max-width: 900px) {
  .table-scroll { overflow-x: hidden; }
  .tracker-table { display: table; width: 100%; table-layout: fixed; border-collapse: collapse; }
  .tracker-table thead { display: table-header-group; }
  .tracker-table tbody { display: table-row-group; width: auto; padding: 0; background: transparent; }
  .tracker-table tr,
  .tracker-table tbody tr,
  .tracker-table tbody tr:nth-child(even) {
    display: table-row;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .tracker-table tbody tr:nth-child(even) { background: #f9fbfd; }
  .tracker-table tbody tr:hover { background: #edf4ff; }
  .tracker-table th,
  .tracker-table td {
    display: table-cell;
    width: auto;
    min-width: 0;
    max-width: none;
    padding: 13px 9px;
    border: 0;
    border-bottom: 1px solid #e1e7ef;
    border-radius: 0;
    background: transparent;
    font-size: 12px;
    line-height: 1.4;
    vertical-align: middle;
  }
  .tracker-table th { padding-block: 12px; font-size: 10px; }
  .tracker-table td::before { display: none; content: none; }
  .tracker-table th:nth-child(1) { width: 24%; }
  .tracker-table th:nth-child(2) { width: 13%; }
  .tracker-table th:nth-child(3) { width: 13%; }
  .tracker-table th:nth-child(4) { width: 14%; }
  .tracker-table th:nth-child(5) { width: 23%; }
  .tracker-table th:nth-child(6) { width: 13%; }
  .company-cell,
  .tracker-table td:nth-child(4),
  .summary-cell,
  .tracker-table td:nth-child(6) { grid-column: auto; }
  .company-cell { min-width: 0; padding: 13px 9px !important; border-bottom: 1px solid #e1e7ef !important; }
  .company-lockup { gap: 8px; }
  .company-logo { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; }
  .company-logo-fallback { font-size: 12px !important; }
  .company-copy > strong { white-space: normal; overflow-wrap: anywhere; font-size: 13px; line-height: 1.22; }
  .company-copy > span { margin-top: 2px; font-size: 10px; line-height: 1.25; }
  .date-cell { white-space: normal; font-size: 11px !important; }
  .jobs-cell,
  .jobs-cell.scale-derived { font-size: 12px; }
  .jobs-cell.unknown { font-size: 15px; }
  .relation-pill { justify-content: center; padding: 5px 6px; font-size: 8px; line-height: 1.2; text-align: center; white-space: normal; }
  .summary-cell { min-width: 0; max-width: none; color: #46566c !important; }
  .record-detail-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 11px;
    line-height: 1.45;
  }
  .source-link {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 4px;
    padding: 6px 7px;
    border: 1px solid #cbd7e7;
    border-radius: 7px;
    background: #f7faff;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    overflow: visible;
  }
  .source-domain { display: none; }
  .source-tablet { display: inline; }
  .source-link svg { display: block; width: 11px; height: 11px; flex: 0 0 11px; }
}

/* iPad Pro portrait: keep the ledger concise without allowing desktop minima to overflow. */
@media (min-width: 901px) and (max-width: 1100px) {
  .table-scroll { overflow-x: hidden; }
  .tracker-table { width: 100%; table-layout: fixed; }
  .tracker-table th,
  .tracker-table td {
    box-sizing: border-box;
    min-width: 0;
    max-width: none;
    padding: 14px 10px;
    font-size: 12px;
    line-height: 1.4;
  }
  .tracker-table th,
  .tracker-table th button { font-size: 10px; }
  .tracker-table th:nth-child(1) { width: 20%; }
  .tracker-table th:nth-child(2) { width: 12%; }
  .tracker-table th:nth-child(3) { width: 12%; }
  .tracker-table th:nth-child(4) { width: 14%; }
  .tracker-table th:nth-child(5) { width: 29%; }
  .tracker-table th:nth-child(6) { width: 13%; }
  .company-cell,
  .summary-cell { min-width: 0; max-width: none; }
  .company-lockup { gap: 8px; }
  .company-logo { width: 34px; height: 34px; flex-basis: 34px; border-radius: 8px; }
  .company-copy > strong {
    font-size: 13px;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .company-copy > span { margin-top: 2px; font-size: 10px; line-height: 1.25; }
  .date-cell { font-size: 11px !important; white-space: normal; }
  .jobs-cell,
  .jobs-cell.scale-derived { font-size: 11px; }
  .jobs-cell.unknown { font-size: 15px; }
  .relation-pill {
    justify-content: center;
    padding: 5px 6px;
    font-size: 8px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
  }
  .record-detail-text {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 11px;
    line-height: 1.45;
  }
  .source-link {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    gap: 4px;
    padding: 6px 7px;
    border: 1px solid #cbd7e7;
    border-radius: 7px;
    background: #f7faff;
    font-size: 10px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
  }
  .source-domain { display: none; }
  .source-tablet { display: inline; }
  .source-link svg { display: block; width: 11px; height: 11px; flex: 0 0 11px; }
}

/* A balanced 3 + 2 ranking grid keeps the fifth Top 5 entry intentional. */
@media (min-width: 641px) and (max-width: 1100px) {
  .ranking-card ol { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .ranking-card li,
  .ranking-card li:first-child {
    min-width: 0;
    padding: 0;
    border: 1px solid #e0e7f0;
    border-radius: 11px;
    background: #fbfcfe;
    overflow: hidden;
  }
  .ranking-card li:nth-child(-n+3) { grid-column: span 2; }
  .ranking-card li:nth-child(n+4) { grid-column: span 3; }
  .ranking-card li button { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; padding: 10px; }
  .rank-logo { width: 32px; height: 32px; border-radius: 8px; }
  .ranking-card .rank-company strong { font-size: 13px; }
  .ranking-card .rank-company small { font-size: 10px; }
  .ranking-card li b { font-size: 11px; white-space: nowrap; }
  .ranking-card .rank-arrow { display: none; }
}

/* Tablet and phone controls: keep the common filters immediate, tuck away the rest. */
@media (max-width: 900px) {
  .tracker-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .search-field { grid-column: 1 / -1; }
  .period-filter { grid-column: 1; }
  .more-filters {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid #b9c6d6;
    border-radius: 11px;
    color: #17325b;
    background: #fff;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
  }
  .more-filters i { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; background: #2552cc; font-size: 15px; font-style: normal; line-height: 1; }
  .more-filters.has-active { color: #174dbd; border-color: #9db4e5; background: #f3f7ff; }
  .secondary-filters { display: none; grid-column: 1 / -1; }
  .secondary-filters.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 2px; }
  .reset-filters { grid-column: 3; width: auto; }
  .reset-filters:disabled { display: none; }
}

@media (max-width: 640px) {
  .tracker-tools { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .period-filter { grid-column: 1; }
  .more-filters { grid-column: 2; min-width: 0; height: 46px; padding-inline: 12px; font-size: 12px; }
  .secondary-filters { grid-column: 1 / -1; }
  .secondary-filters.is-open { grid-template-columns: 1fr; gap: 11px; }
  .reset-filters { grid-column: 1 / -1; width: 100%; }
}
