/* The Hiring Graph - shared styles
   Data-journalism layout with CSS charts and no external dependencies. */

:root {
  --ink: #171717;
  --muted: #5f625b;
  --paper: #f7f2e8;
  --paper-2: #fffaf0;
  --line: #d8cfbf;
  --panel: #ffffff;
  --blue: #2457a6;
  --green: #287c63;
  --red: #b5483e;
  --gold: #bd7b18;
  --violet: #6f579f;
  --shadow: 0 14px 35px rgba(48, 43, 35, 0.12);
  --radius: 8px;
  --max: 1120px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(23, 23, 23, 0.025) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 50;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  background: rgba(247, 242, 232, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

.brand {
  color: var(--ink);
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
}

.brand strong {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 7px 10px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.2;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: var(--paper-2);
  box-shadow: inset 0 0 0 1px var(--line);
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 22px 76px;
}

.page.narrow {
  max-width: 880px;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 44px;
  align-items: center;
  padding: 22px 0 44px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 118px);
  line-height: 0.9;
  margin: 0;
  max-width: 760px;
}

.page-title {
  padding: 42px 0 26px;
  border-bottom: 1px solid var(--line);
}

.page-title h1 {
  font-size: clamp(44px, 8vw, 94px);
  max-width: 900px;
}

.lead {
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.42;
  color: #333129;
  max-width: 760px;
}

.dek {
  color: var(--muted);
  max-width: 720px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.meta-row span,
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.8);
  color: var(--muted);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-card,
.panel,
.metric-card,
.platform-tile,
.quote-card,
.newsletter,
.contact-card {
  background: rgba(255, 250, 240, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
}

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

.section:last-child {
  border-bottom: 0;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1;
  margin: 0 0 18px;
}

.section h3 {
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 1.08fr);
  gap: 34px;
  align-items: start;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.platform-tile {
  padding: 18px;
  min-height: 248px;
  display: flex;
  flex-direction: column;
}

.platform-tile h3 {
  font-family: var(--serif);
  font-size: 26px;
}

.platform-tile p {
  color: var(--muted);
  margin: 0 0 18px;
}

.platform-tile a {
  margin-top: auto;
}

.panel {
  padding: 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric-card {
  padding: 18px;
  min-height: 150px;
}

.metric-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.chart {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
}

.bar-label,
.bar-value {
  font-size: 13px;
  font-weight: 800;
}

.bar-track {
  height: 16px;
  background: #ece2d2;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  width: calc(var(--value) * 1%);
  height: 100%;
  background: var(--color, var(--blue));
}

.caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.network-map {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 20%, rgba(36, 87, 166, 0.12), transparent 28%),
    radial-gradient(circle at 82% 64%, rgba(181, 72, 62, 0.12), transparent 30%),
    var(--paper-2);
  overflow: hidden;
}

.network-map::before,
.network-map::after {
  content: "";
  position: absolute;
  background: rgba(23, 23, 23, 0.18);
  transform-origin: left center;
  height: 2px;
}

.network-map::before {
  width: 68%;
  left: 16%;
  top: 44%;
  transform: rotate(18deg);
}

.network-map::after {
  width: 56%;
  left: 20%;
  top: 66%;
  transform: rotate(-22deg);
}

.node {
  position: absolute;
  display: grid;
  place-items: center;
  width: var(--size, 96px);
  height: var(--size, 96px);
  border-radius: 50%;
  border: 2px solid rgba(23, 23, 23, 0.7);
  background: var(--node, #fff);
  color: var(--ink);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  z-index: 2;
}

.node.main {
  --size: 128px;
  --node: #f3cf7a;
  left: 36%;
  top: 33%;
}

.node.n1 {
  --node: #dbe7f6;
  left: 7%;
  top: 12%;
}

.node.n2 {
  --node: #e8dff4;
  right: 7%;
  top: 12%;
}

.node.n3 {
  --node: #dceee8;
  left: 9%;
  bottom: 12%;
}

.node.n4 {
  --node: #f5dedb;
  right: 8%;
  bottom: 10%;
}

.axis {
  display: grid;
  gap: 12px;
}

.axis-item {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.axis-item:last-child {
  border-bottom: 0;
}

.axis-item strong {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.1;
}

.axis-item p {
  margin: 0;
  color: var(--muted);
}

blockquote,
.pullquote {
  margin: 30px 0;
  padding: 20px 0 20px 28px;
  border-left: 6px solid var(--red);
  color: #2b2922;
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.08;
}

.quote-card {
  padding: 22px;
}

.quote-card blockquote {
  margin: 0;
}

.quote-card cite {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  font-style: normal;
  margin-top: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: rgba(23, 23, 23, 0.05);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

tr:last-child td {
  border-bottom: 0;
}

.risk-high {
  background: rgba(181, 72, 62, 0.12);
  color: #74271f;
}

.risk-med {
  background: rgba(189, 123, 24, 0.14);
  color: #70450d;
}

.risk-low {
  background: rgba(40, 124, 99, 0.12);
  color: #185541;
}

.tag-list,
.check-list,
.plain-list {
  padding-left: 20px;
}

.tag-list li,
.check-list li,
.plain-list li {
  margin-bottom: 10px;
}

.tag-list strong,
.check-list strong {
  color: var(--ink);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge.high {
  color: #74271f;
  border-color: rgba(181, 72, 62, 0.35);
}

.badge.medium {
  color: #70450d;
  border-color: rgba(189, 123, 24, 0.35);
}

.badge.low {
  color: #185541;
  border-color: rgba(40, 124, 99, 0.35);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
}

.btn.secondary {
  background: var(--paper-2);
  color: var(--ink);
}

.btn:hover {
  background: var(--red);
  color: #fff;
}

.newsletter {
  padding: 22px;
  margin-top: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

label {
  font-weight: 800;
}

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.field {
  display: grid;
  gap: 6px;
}

.consent {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
}

.consent label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-weight: 400;
}

.msg {
  grid-column: 1 / -1;
  min-height: 22px;
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 22px;
}

.contact-card {
  padding: 22px;
}

.contact-card .form-grid {
  grid-template-columns: 1fr;
}

.contact-card .consent,
.contact-card .msg {
  grid-column: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 22px 42px;
  color: var(--muted);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: 720px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(23, 23, 23, 0.24);
  transform: translateY(calc(100% + 28px));
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner h2 {
  font-family: var(--serif);
  font-size: 27px;
  margin: 0 0 6px;
}

.cookie-banner p {
  margin: 0 0 12px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-prefs {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.cookie-prefs.open {
  display: grid;
}

.pref-option {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--paper-2);
}

.legal-note {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 940px) {
  .hero,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .platform-grid,
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .nav-links {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .platform-grid,
  .stat-grid,
  .three-col,
  .cookie-prefs {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 86px minmax(0, 1fr) 42px;
    gap: 8px;
  }

  .axis-item {
    grid-template-columns: 1fr;
  }

  .network-map {
    min-height: 350px;
  }

  .node {
    --size: 82px;
    font-size: 10px;
  }

  .node.main {
    --size: 106px;
  }
}

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

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