/* Simple View Stylesheet — Transparent IT Job Market Report 2026/2027 */

@font-face {
  font-family: "HK Grotesk";
  src: url("../../assets/fonts/HKGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HK Grotesk";
  src: url("../../assets/fonts/HKGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HK Grotesk";
  src: url("../../assets/fonts/HKGrotesk-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HK Grotesk";
  src: url("../../assets/fonts/HKGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HK Grotesk";
  src: url("../../assets/fonts/HKGrotesk-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink-deep: #181818;
  --ink: #222222;
  --surface: #222222;
  --surface-raised: #2a2a2a;
  --surface-highlight: #333333;
  --accent: #ffc132;
  --accent-soft: #ffce5f;
  --accent-pale: #ffe7ae;
  --accent-glow: rgba(255, 193, 50, 0.18);
  --paper: #ffffff;
  --muted: #b1b1b1;
  --muted-dark: #707070;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --header-height: 4rem;
  --radius-sm: 0.375rem;
  --radius: 0.9rem;
  --radius-lg: 0.875rem;
  --font: "HK Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --container-width: 1240px;
}

@media (max-width: 1023px) {
  :root {
    --header-height: 3.6rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--ink-deep);
  color-scheme: dark;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  color: var(--paper);
  background:
    radial-gradient(ellipse 80% 480px at 50% 0%, rgba(255, 193, 50, 0.08), transparent 70%),
    linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.018) 50%, transparent 100%),
    var(--ink-deep);
  background-repeat: no-repeat, repeat, repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: var(--accent-soft);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header & Top Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(24, 24, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  height: var(--header-height);
  padding-left: 2rem;
  padding-right: 2rem;
  gap: 1.5rem;
  transition:
    max-width 460ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 460ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled .header-inner {
  max-width: var(--container-width);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 1279px) {
  .header-inner {
    max-width: var(--container-width);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-inner {
    transition: none;
  }
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  transition: text-shadow 180ms ease;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  animation: simple-brand-text-glow 620ms ease-out both;
  color: var(--paper);
}

.brand-logo span.accent {
  color: var(--accent);
}

@keyframes simple-brand-text-glow {
  0% {
    text-shadow: 0 0 0 rgba(255, 193, 50, 0);
  }
  45%,
  100% {
    text-shadow: 0 0 0.65rem rgba(255, 193, 50, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo:hover,
  .brand-logo:focus-visible {
    animation: none;
    text-shadow: 0 0 0.65rem rgba(255, 193, 50, 0.34);
    transition: none;
  }
}

.badge-view {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  background: rgba(255, 193, 50, 0.12);
  color: var(--accent);
  border: 1px solid rgba(255, 193, 50, 0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 0.55rem;
  display: inline-block;
}

.btn-report-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 0;
  padding: 0.32rem 0.78rem 0.32rem 0.58rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 0.55rem;
  text-decoration: none;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.btn-report-icon {
  width: 0.9rem;
  height: 0.9rem;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
}

.btn-report-link:hover,
.btn-report-link:focus-visible {
  border-color: rgba(255, 193, 50, 0.55);
  background: rgba(255, 193, 50, 0.08);
  color: #ffffff;
  box-shadow: 0 0 0.75rem rgba(255, 193, 50, 0.24);
  outline: none;
}

/* Hero section */
.hero-section {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-pretitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-pretitle::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 48rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

/* Key Stats Bar */
.key-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1) 70ms,
    box-shadow 520ms ease 70ms;
}

@media (hover: hover) and (pointer: fine) {
  .stat-box:hover {
    z-index: 2;
    box-shadow: 0 0.65rem 1.6rem rgba(0, 0, 0, 0.1);
    transform: translateY(-0.11rem) scale(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stat-box,
  .stat-box:hover {
    transition: none;
    transform: none;
  }
}

.stat-box-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-box-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Quick Navigation / Table of Contents */
.toc-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
}

.toc-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.toc-link {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--paper);
  background: var(--surface-raised);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 0.55rem;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.toc-link:hover,
.toc-link:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 193, 50, 0.55);
  background: rgba(255, 193, 50, 0.08);
  box-shadow: 0 0 0.75rem rgba(255, 193, 50, 0.24);
  outline: none;
}

/* Main Content & Section Layout */
.report-content {
  padding-bottom: 2rem;
}

.section-block {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.section-block:last-of-type {
  border-bottom: none;
}

.section-header {
  margin-bottom: 2rem;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 0 0 0.5rem;
}

.section-heading em {
  font-style: normal;
  color: var(--accent);
}

.section-desc {
  font-size: 1rem;
  color: var(--muted);
  max-width: 44rem;
  margin: 0;
}

/* Survey Grid Layout */
.surveys-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin-inline: auto;
}

.chapter-summary:not(:empty) {
  margin-top: 2.5rem;
}

.chapter-summary-heading {
  margin: 0 0 1rem;
}

.chapter-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0.8rem;
}

.chapter-summary-tile {
  position: relative;
  min-width: 0;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(55, 55, 55, 0.16);
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1) 70ms,
    box-shadow 520ms ease 70ms;
}

@media (hover: hover) and (pointer: fine) {
  .chapter-summary-tile:hover {
    z-index: 2;
    box-shadow: 0 0.65rem 1.6rem rgba(0, 0, 0, 0.1);
    transform: translateY(-0.11rem) scale(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-summary-tile,
  .chapter-summary-tile:hover {
    transition: none;
    transform: none;
  }
}

.chapter-summary-kicker {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.chapter-summary-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
}

.chapter-summary-metric strong {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.chapter-summary-metric span {
  color: var(--paper);
  font-size: 0.88rem;
  line-height: 1.35;
}

@media (max-width: 1200px) {
  .chapter-summary-grid {
    align-items: stretch;
  }
}

@media (max-width: 800px) {
  .chapter-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .chapter-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Standard Report Survey Block & Question Panel */
.entry-chart-block {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.chart-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0;
}

.survey-topic {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.education-vote-badge {
  display: inline-block;
  padding: 0.45rem 0.9rem 0.4rem;
  color: var(--accent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.55rem;
  background: rgba(55, 55, 55, 0.16);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.question-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 12.8rem;
  padding: 2rem;
  background: rgba(55, 55, 55, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-sizing: border-box;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1) 70ms,
    box-shadow 520ms ease 70ms;
}

@media (hover: hover) and (pointer: fine) {
  .question-panel:hover {
    z-index: 2;
    box-shadow: 0 0.65rem 1.6rem rgba(0, 0, 0, 0.1);
    transform: translateY(-0.11rem) scale(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  .question-panel,
  .question-panel:hover {
    transition: none;
    transform: none;
  }
}

.question-heading {
  margin: 0;
}

.question-heading h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--paper);
}

.bar-chart {
  display: grid;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.bar-chart-wide {
  grid-template-columns: minmax(10.5rem, 0.65fr) minmax(0, 1fr) max-content;
  column-gap: 0.6rem;
  row-gap: 0.45rem;
}

.bar-chart-wide li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  min-height: 2.1rem;
}

.bar-chart-wide li > span {
  color: #d4d4d4;
  font-size: 1.05rem;
  line-height: 1.2;
}

.bar-rail {
  position: relative;
  height: 1.4rem;
  overflow: visible;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.07);
}

.bar-rail i {
  display: block;
  position: relative;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transform-origin: left;
}

.bar-chart-wide .bar-rail i::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -0.2rem;
  width: 0.4rem;
  height: 1.6rem;
  content: "";
  border-radius: 0.08rem;
  background: var(--paper);
  opacity: 1;
  transform: translateY(-50%);
}

.bar-chart-wide strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 2.5rem;
}

.survey-value {
  text-align: right;
}

@media (min-width: 681px) and (max-width: 1099px) {
  .bar-chart-wide {
    grid-template-columns: 11rem minmax(0, 1fr) max-content;
  }
}

@media (min-width: 1100px) {
  .surveys-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    max-width: none;
  }

  .entry-chart-block {
    gap: 0.55rem;
  }

  .question-panel {
    display: grid;
    grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    min-height: 10.5rem;
    padding: 2rem 2.5rem;
  }

  .question-heading {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding-right: clamp(1.5rem, 3vw, 3rem);
    border-right: 1px solid rgba(255, 193, 50, 0.18);
  }

  .question-heading h3 {
    max-width: 25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .bar-chart {
    margin-top: 0;
  }

  .bar-chart-wide {
    grid-template-columns: minmax(11rem, 0.56fr) minmax(12rem, 1fr) max-content;
    column-gap: 0.75rem;
  }
}

@media (max-width: 767px) {
  .header-inner {
    justify-content: center;
  }

  .brand-group {
    justify-content: center;
  }

  .header-inner > div:last-child {
    display: none;
  }
}

@media (max-width: 680px) {
  .surveys-grid {
    gap: 1.25rem;
  }

  .entry-chart-block {
    gap: 0.5rem;
  }

  .chart-block-header {
    align-items: flex-start;
    gap: 0.65rem;
  }

  .survey-topic {
    padding-top: 0.4rem;
    line-height: 1.35;
  }

  .education-vote-badge {
    padding: 0.4rem 0.7rem 0.36rem;
    font-size: 0.62rem;
  }

  .question-panel {
    min-height: 0;
    padding: 1.4rem clamp(1.35rem, 5vw, 1.75rem) 1.5rem;
  }

  .question-heading h3 {
    font-size: 1.05rem;
  }

  .bar-chart {
    gap: 0.5rem;
    margin-top: 1.1rem;
  }

  .bar-chart-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .bar-chart-wide li {
    grid-column: 1;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 0.5rem;
    row-gap: 0.25rem;
    height: auto;
    padding: 0.25rem 0;
  }
  .bar-chart-wide li > span {
    grid-column: 1 / 2;
    grid-row: 1;
    font-size: 0.98rem;
  }
  .bar-chart-wide li > strong {
    grid-column: 2 / 3;
    grid-row: 1;
  }
  .bar-chart-wide li > .bar-rail {
    grid-column: 1 / 3;
    grid-row: 2;
    margin-top: 0.1rem;
  }
}
/* Salary Tables Section */
.salary-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
}

.salary-section:last-of-type,
#salary-rankings {
  border-bottom: none;
}

.salary-table-card {
  background: rgba(55, 55, 55, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.35rem 1.8rem 2.15rem;
  margin-bottom: 2rem;
  box-sizing: border-box;
}

/* Salary Table Wrapper & Expanded Table */
.salary-table-wrapper {
  position: relative;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.salary-tech-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.salary-tech-table thead th {
  padding: 0.75rem 0.95rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: text;
  -webkit-user-select: text;
}

.salary-tech-table th.col-tech {
  text-align: left;
  padding-left: 1.1rem;
}

.salary-tech-table th.col-pct {
  text-align: right;
  padding-right: 1.1rem;
}

.salary-sort-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  user-select: text;
  -webkit-user-select: text;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 140ms ease;
}

.salary-sort-button:hover {
  color: var(--paper);
}

.salary-sort-button:focus-visible {
  outline: 2px solid rgba(255, 193, 50, 0.72);
  outline-offset: 0.2rem;
  border-radius: 0.16rem;
}

.salary-tech-table th.col-tech .salary-sort-button {
  justify-content: flex-start;
}

.salary-sort-arrows {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 0.62rem;
  width: 0.62rem;
  height: 0.62rem;
  visibility: hidden;
}

.salary-sort-arrows::before {
  content: "";
  display: block;
  width: 0.62rem;
  height: 0.42rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  opacity: 0.38;
  transition: opacity 140ms ease, transform 140ms ease;
}

.salary-tech-table th[aria-sort="ascending"] .salary-sort-arrows::before {
  transform: rotate(180deg);
}

.salary-tech-table th[aria-sort] .salary-sort-button {
  color: var(--accent);
  font-weight: 800;
}

.salary-tech-table th[aria-sort] .salary-sort-arrows {
  visibility: visible;
}

.salary-tech-table th[aria-sort] .salary-sort-arrows::before {
  opacity: 1;
}

.salary-tech-table td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: var(--paper);
  white-space: nowrap;
  background: transparent;
  transition: color 140ms ease;
}

.salary-tech-table td.col-tech {
  text-align: left;
}

.salary-tech-table td.col-pct {
  text-align: right;
  font-weight: 600;
}

.salary-tech-table td.col-median,
.salary-tech-table td.col-avg {
  text-align: right;
}

.salary-tech-table td.col-median strong,
.salary-tech-table td.col-avg strong {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
}

/* Active column highlight when sorted */
.salary-tech-table[data-sort-column="0"] tbody td:nth-child(1),
.salary-tech-table[data-sort-column="1"] tbody td:nth-child(2),
.salary-tech-table[data-sort-column="2"] tbody td:nth-child(3),
.salary-tech-table[data-sort-column="3"] tbody td:nth-child(4),
.salary-tech-table[data-sort-column="4"] tbody td:nth-child(5),
.salary-tech-table[data-sort-column="5"] tbody td:nth-child(6),
.salary-tech-table[data-sort-column="6"] tbody td:nth-child(7) {
  color: var(--accent);
}

.salary-tech-table[data-sort-column="0"] tbody td:nth-child(1) .city-badge {
  color: var(--accent);
}

.salary-tech-table tbody tr:last-child td {
  border-bottom: none;
}

.salary-tech-table tbody tr {
  cursor: default;
  transition: background 180ms ease;
}

.salary-tech-table tbody tr:hover {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.015) 1.2rem,
    rgba(255, 255, 255, 0.038) 3rem,
    rgba(255, 255, 255, 0.055) 5.2rem,
    rgba(255, 255, 255, 0.055) calc(100% - 5.2rem),
    rgba(255, 255, 255, 0.038) calc(100% - 3rem),
    rgba(255, 255, 255, 0.015) calc(100% - 1.2rem),
    transparent 100%
  );
}

/* Technology & City Badges */
.tech-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.82rem;
  border-radius: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  background: var(--tech-badge-color, rgba(255, 255, 255, 0.1));
}

.tech-badge.is-frosted {
  padding: calc(0.28rem - 1.5px) calc(0.82rem - 1.5px);
  border: 1.5px solid color-mix(in srgb, var(--tech-badge-color) 80%, transparent);
  background: color-mix(in srgb, var(--tech-badge-color) 55%, transparent);
}

.tech-badge.tech-js { --tech-badge-color: #f5d055; color: #000000; }
.tech-badge.tech-java { --tech-badge-color: #dc4845; color: #000000; }
.tech-badge.tech-dotnet { --tech-badge-color: #4594e7; color: #000000; }
.tech-badge.tech-mobile { --tech-badge-color: #65993c; color: #000000; }
.tech-badge.tech-php { --tech-badge-color: #9479ca; color: #000000; }
.tech-badge.tech-python { --tech-badge-color: #527396; color: #ffffff; }
.tech-badge.tech-data { --tech-badge-color: #d04e4d; color: #000000; }
.tech-badge.tech-devops { --tech-badge-color: #4db6e0; color: #000000; }
.tech-badge.tech-system { --tech-badge-color: #52c748; color: #000000; }
.tech-badge.tech-cpp { --tech-badge-color: #7a2d41; color: #ffffff; }
.tech-badge.tech-architect { --tech-badge-color: #676666; color: #ffffff; }
.tech-badge.tech-support { --tech-badge-color: #b2b15b; color: #000000; }
.tech-badge.tech-ml { --tech-badge-color: #e6844d; color: #000000; }
.tech-badge.tech-sap { --tech-badge-color: #5992e1; color: #000000; }
.tech-badge.tech-security { --tech-badge-color: #5322c4; color: #ffffff; }
.tech-badge.tech-qa { --tech-badge-color: #373838; color: #ffffff; }
.tech-badge.tech-blockchain { --tech-badge-color: #e5a15b; color: #000000; }
.tech-badge.tech-manager { --tech-badge-color: #67a46a; color: #000000; }
.tech-badge.tech-rust { --tech-badge-color: #191919; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.2); }
.tech-badge.tech-network { --tech-badge-color: #355b98; color: #ffffff; }
.tech-badge.tech-database { --tech-badge-color: #3e559b; color: #ffffff; }
.tech-badge.tech-golang { --tech-badge-color: #67bfb5; color: #000000; }
.tech-badge.tech-business { --tech-badge-color: #44873f; color: #000000; }
.tech-badge.tech-it { --tech-badge-color: #6a9c78; color: #000000; }
.tech-badge.tech-uxui { --tech-badge-color: #d6add6; color: #000000; }
.tech-badge.tech-hardware { --tech-badge-color: #9a5c39; color: #ffffff; }
.tech-badge.tech-ruby { --tech-badge-color: #e37453; color: #1a1a1a; }

.tech-badge:not(.city-badge):not(.level-badge) {
  color: rgba(255, 255, 255, 0.8);
}

.tech-badge.city-badge,
.tech-badge.level-badge {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(45, 45, 45, 0.7);
  color: var(--paper);
}
/* Rankings Grid */
.rankings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.ranking-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition:
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1) 70ms,
    box-shadow 520ms ease 70ms;
}

@media (hover: hover) and (pointer: fine) {
  .ranking-card:hover {
    z-index: 2;
    box-shadow: 0 0.65rem 1.6rem rgba(0, 0, 0, 0.1);
    transform: translateY(-0.11rem) scale(1.015);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ranking-card,
  .ranking-card:hover {
    transition: none;
    transform: none;
  }
}

.ranking-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.ranking-card-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
}

.ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
}

.ranking-item-left {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ranking-pos {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  width: 1rem;
}

.ranking-name {
  font-weight: 600;
  color: var(--paper);
}

.ranking-value {
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: transparent;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-brand p {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted-dark);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  transition: color 150ms ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links a .btn-report-icon {
  opacity: 0.75;
  transition: opacity 150ms ease;
}

.footer-links a:hover .btn-report-icon {
  opacity: 1;
}

/* Floating Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--surface-raised);
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  font-size: 1.1rem;
  line-height: 1;
  transition:
    opacity 200ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 193, 50, 0.55);
  background: rgba(255, 193, 50, 0.08);
  box-shadow: 0 0 0.75rem rgba(255, 193, 50, 0.24);
  outline: none;
}

.back-to-top-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  transform: translateY(-1px);
}

@media (max-width: 1392px) {
  .back-to-top {
    display: none;
  }
}
