/* ==========================================================================
   Ungated "3 risks to fix in your hiring process for 2027" ebook at
   /resources/3-risks-to-fix-in-your-hiring-process/.
   Loaded only by that page (metadata "page_stylesheet"); every class is tr- prefixed.
   Ported from the approved single-file design. Same system as the AI fluency guide:
   Satoshi display, Geist Mono eyebrows/labels/CTAs, black/white/brand-red bands.
   Side navigation, reading progress and anchors use setupEbook() in site.js; the
   scorecard uses setupHiringScorecard(). See docs/INTERACTIONS.md.
   ========================================================================== */

/* Tokens and resets, scoped to the page root. */
.tr-ebook {
  --red: var(--color-red-500, #d91629);
  --orange: var(--color-orange-400, #fb5e38);
  --ink: var(--color-black-950, #121112);
  --paper: #ffffff;
  --soft: #f5f5f5;
  --muted: #5b5b5b;
  --display: "Satoshi", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.tr-ebook *,
.tr-ebook *::before,
.tr-ebook *::after {
  box-sizing: border-box;
}
.tr-ebook :where(img, svg) {
  max-width: 100%;
  display: block;
}
.tr-ebook :where(a) {
  color: inherit;
}
.tr-ebook :is(a, button, summary):focus-visible,
.tr-ebook .tr-yn input:focus-visible + span {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.tr-ebook :where(h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote) {
  margin: 0;
}
.tr-ebook :where(h1, h2) {
  text-wrap: balance;
}
.tr-ebook :where([id]) {
  scroll-margin-top: calc(var(--ebook-header-h, 80px) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.tr-ebook) {
    scroll-behavior: smooth;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tr-ebook *,
  .tr-ebook *::before,
  .tr-ebook *::after {
    transition: none !important;
  }
}
.tr-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tr-wrap {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4.5vw, 52px);
}
.tr-eyebrow {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
}
.tr-page {
  padding-block: clamp(40px, 5vw, 68px);
}
.tr-page.tr-flush-top {
  padding-top: 0;
}
.tr-page.tr-flush-bottom {
  padding-bottom: 0;
}
.tr-h2 {
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
  margin-top: 16px;
}
.tr-hot {
  color: var(--red);
}
.tr-caps {
  text-transform: uppercase;
}

/* Reading progress: a thin bar along the bottom of the sticky site header. */
.tr-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--ebook-progress-top, 0px);
  z-index: 55;
  height: 3px;
  background: linear-gradient(90deg, var(--color-red-500, #d91629), var(--color-orange-400, #fb5e38));
  transform: scaleX(var(--ebook-progress, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* Side navigation: fixed and collapsed to section codes; expands on hover or focus. */
.tr-sidenav {
  position: fixed;
  left: 14px;
  top: calc(50% + 40px);
  transform: translateY(-50%);
  z-index: 40;
  width: 52px;
  max-height: calc(100vh - 126px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .16);
  padding: 8px;
  transition: width .18s ease;
}
.tr-sidenav:hover,
.tr-sidenav:focus-within {
  width: 250px;
}
.tr-sidenav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.tr-sidenav a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 12px;
  color: #3a3a3a;
  padding: 7px 4px;
}
.tr-sidenav a:hover {
  background: #f3f3f3;
}
.tr-sidenav .tr-k {
  flex: none;
  width: 34px;
  text-align: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1px;
  color: #6b6b6b;
}
.tr-sidenav .tr-t {
  font-weight: 500;
  font-size: 14.5px;
}
.tr-sidenav li[data-active] > a {
  background: #efefef;
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--red);
}
.tr-sidenav li[data-active] > a .tr-k {
  color: var(--ink);
}
@media (min-width: 1620px) {
  .tr-sidenav {
    width: 250px;
  }
}
@media (max-width: 1000px) {
  .tr-sidenav {
    display: none;
  }
}
.tr-jump {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}
.tr-jump:hover {
  background: var(--red);
}
/* Keep text clear of the fixed side navigation. */
@media (min-width: 1001px) {
  .tr-jump {
    display: none;
  }
  .tr-ebook {
    --navclear: 96px;
  }
  .tr-wrap {
    padding-left: max(clamp(20px, 4.5vw, 52px), calc(var(--navclear) - max(0px, (100vw - 1100px) / 2)));
  }
}
@media (min-width: 1620px) {
  .tr-ebook {
    --navclear: 290px;
  }
}

/* Previous/next links at the end of each section. */
.tr-secnav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #dcdcdc;
  padding: 14px 0 6px;
  margin-block: 8px;
}
.tr-secnav a {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #555;
  padding: 8px 2px;
}
.tr-secnav .tr-next {
  color: var(--red);
  margin-left: auto;
}
.tr-secnav a:hover {
  text-decoration: underline;
}

/* Cover */
.tr-cover {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tr-cover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 60%;
  height: 50%;
  background: radial-gradient(ellipse at 20% 0%, rgba(217, 22, 41, .22), transparent 65%);
  pointer-events: none;
}
.tr-gridblock {
  position: absolute;
  right: 0;
  top: 0;
  width: clamp(200px, 26vw, 400px);
  height: min(76%, 470px);
  background-image:
    linear-gradient(rgba(255, 255, 255, .45) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255, 255, 255, .45) 1.5px, transparent 1.5px),
    linear-gradient(160deg, var(--red) 0%, var(--orange) 100%);
  background-size: 25% 25%, 25% 25%, 100% 100%;
  background-position: -1px -1px, -1px -1px, 0 0;
  z-index: 0;
  pointer-events: none;
}
.tr-cover-in {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 80px);
}
.tr-cover h1 {
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: 0;
  margin: 18px 0 22px;
  color: #fff;
}
.tr-cover-sub {
  font-weight: 400;
  font-size: clamp(17px, 2vw, 20px);
  max-width: 520px;
  line-height: 1.45;
  color: #e8e8e8;
}
.tr-cover .tr-eyebrow {
  color: var(--orange);
}
.tr-flow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 1px;
}
.tr-flow b {
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
}

/* Code-editor mock with the AI assist playback card */
.tr-mock {
  background: #222;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  font-family: var(--mono);
  font-size: 12.5px;
  color: #ddd;
  position: relative;
  z-index: 2;
  margin: 0 0 30px;
}
.tr-mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid #3a3a3a;
  color: #9a9a9a;
  font-size: 11.5px;
}
.tr-mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #555;
  display: inline-block;
}
.tr-mock-bar i:first-child {
  background: var(--red);
}
.tr-mock-bar i:nth-child(2) {
  background: var(--orange);
}
.tr-mock-body {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
}
.tr-mock pre {
  margin: 0;
  padding: 14px;
  font: inherit;
  font-size: 12px;
  line-height: 1.8;
  white-space: pre;
  overflow: hidden;
  color: #ddd;
  background: none;
  border: 0;
}
.tr-mock pre .tr-kw {
  color: var(--orange);
}
.tr-mock pre .tr-ln {
  color: #6b6b6b;
  margin-right: 10px;
}
.tr-mock pre .tr-err {
  background: rgba(217, 22, 41, .22);
  display: block;
  margin-inline: -14px;
  padding-inline: 11px;
  border-left: 3px solid var(--red);
  color: var(--orange);
}
.tr-mock-ai {
  border-left: 1px solid #3a3a3a;
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.tr-mock-ai .tr-lbl {
  color: var(--orange);
  font-size: 11px;
  letter-spacing: .06em;
}
.tr-msg {
  background: #121112;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 9px 10px;
  font-family: var(--display);
  font-size: 12.5px;
  line-height: 1.4;
  color: #eee;
  margin-right: 10px;
}
.tr-msg.tr-me {
  background: #3a3a3a;
  border-color: #3a3a3a;
  margin: 0 0 0 22px;
}
.tr-mock-ai code {
  color: var(--orange);
  font: inherit;
  background: none;
  padding: 0;
}
.tr-card {
  position: absolute;
  right: -22px;
  bottom: 34px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 16px 12px 58px;
  font-family: var(--display);
  font-size: 13.5px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .4);
  max-width: 330px;
}
.tr-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--red) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>") center/16px no-repeat;
}
.tr-card .tr-lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--red);
  letter-spacing: 1px;
}
.tr-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.tr-mock-foot {
  padding: 10px 14px;
  border-top: 1px solid #3a3a3a;
  text-align: right;
  color: #8a8a8a;
  font-size: 11px;
  min-height: 78px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

/* Intro and contents */
.tr-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-top: 18px;
}
.tr-intro h2 {
  font-weight: 500;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.1;
  letter-spacing: 0;
}
.tr-intro-body {
  border-left: 1px solid #cfcfcf;
  padding-left: clamp(16px, 2.6vw, 30px);
  display: grid;
  gap: 16px;
}
.tr-intro-body .tr-redtxt {
  color: var(--red);
  font-weight: 500;
}
.tr-intro-body sup a {
  color: var(--red);
}
.tr-toc {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  border-top: 1px solid #8c8c8c;
}
.tr-toc li {
  border-bottom: 1px solid #c9c9c9;
}
.tr-toc a {
  display: grid;
  grid-template-columns: clamp(56px, 9vw, 110px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
}
.tr-toc .tr-n {
  font-weight: 700;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: 0;
  line-height: 1;
  color: var(--red);
}
.tr-toc h3 {
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 24px);
  letter-spacing: 0;
}
.tr-toc .tr-d {
  font-weight: 400;
  font-size: 15.5px;
  color: var(--muted);
}
.tr-toc .tr-pg {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.tr-toc a:hover h3 {
  color: var(--red);
}

/* Scorecard */
.tr-lede {
  font-size: 17px;
  max-width: 760px;
  margin-top: 14px;
}
.tr-sc {
  margin-top: 26px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
}
.tr-sc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  margin: 0;
}
.tr-sc thead th {
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 600;
  text-align: left;
  padding: 12px 14px;
}
.tr-sc thead th.tr-c {
  text-align: center;
  width: 64px;
}
.tr-sc th,
.tr-sc td {
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
}
.tr-sc thead th {
  letter-spacing: 1px;
  color: #fff;
}
.tr-sc tbody td,
.tr-sc tbody th {
  font-family: var(--display);
  font-size: 15.5px;
  line-height: 1.45;
  padding: 13px 14px;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: middle;
  text-align: left;
  font-weight: 400;
  background: #fff;
}
.tr-sc tbody tr:last-child td,
.tr-sc tbody tr:last-child th {
  border-bottom: 0;
}
.tr-sc .tr-num {
  font-family: var(--mono);
  font-weight: 600;
  width: 44px;
}
.tr-sc .tr-risk {
  font-size: 13px;
  color: var(--muted);
  width: 180px;
}
.tr-sc td.tr-c {
  text-align: center;
}
.tr-yn {
  position: relative;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.tr-yn input {
  position: absolute;
  opacity: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  cursor: pointer;
}
.tr-yn span {
  width: 22px;
  height: 22px;
  border: 2px solid var(--red);
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff;
}
.tr-yn input:checked + span {
  background: var(--red);
}
.tr-yn input:checked + span::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.tr-bands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.tr-band {
  background: var(--soft);
  border-radius: 12px;
  padding: 16px 18px;
  border: 2px solid transparent;
  transition: border-color .15s, background .15s;
}
.tr-band h3 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 20px;
  color: var(--red);
}
.tr-band b {
  display: block;
  margin: 2px 0 6px;
}
.tr-band p {
  font-size: 14.5px;
  line-height: 1.45;
  color: #3a3a3a;
}
.tr-band[data-active] {
  border-color: var(--red);
  background: #fff;
}
.tr-result {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 600;
}
.tr-keep {
  margin-top: 16px;
  border: 1px solid #e2e2e2;
  border-left: 4px solid var(--red);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
}
.tr-keep b {
  font-family: var(--mono);
  color: var(--red);
  letter-spacing: 1px;
  font-size: 13px;
  margin-right: 6px;
}

/* Risk sections */
.tr-sechead {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.tr-chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  border: 1px solid #bdbdbd;
  border-radius: 999px;
  padding: 4px 10px;
  color: #555;
}
.tr-cols2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  margin-top: 28px;
}
.tr-cols2 h3,
.tr-cost h3,
.tr-fix h3 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tr-cols2 p {
  font-size: 16px;
  line-height: 1.55;
}
.tr-stat {
  margin-top: 26px;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  max-width: 900px;
}
.tr-stat strong {
  color: var(--red);
}
.tr-src {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
}
.tr-cost {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 18px 0;
  margin-top: 26px;
}
.tr-cost h3 {
  margin: 2px 0 0;
}
.tr-cost p {
  font-size: 16.5px;
  font-weight: 500;
}
.tr-fix {
  background: var(--soft);
  border-radius: 20px;
  padding: 22px 24px;
  margin-top: 24px;
}
.tr-fix ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  counter-reset: tr-fix;
}
.tr-fix li {
  counter-increment: tr-fix;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-size: 16px;
}
.tr-fix li::before {
  content: counter(tr-fix);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.tr-deeper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #d6d6d6;
  margin-top: 18px;
  padding-top: 14px;
  font-size: 15px;
}
.tr-deeper b {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
}
.tr-deeper a {
  color: var(--red);
  font-weight: 700;
  text-underline-offset: 3px;
}
.tr-today {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: clamp(20px, 3vw, 30px);
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: center;
}
.tr-today .tr-k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: #bdbdbd;
  text-transform: uppercase;
}
.tr-today .tr-k.tr-r {
  color: var(--orange);
  margin-top: 18px;
}
.tr-today p {
  font-size: 15.5px;
  line-height: 1.55;
  margin-top: 6px;
  color: #eee;
}
.tr-today .tr-em {
  color: var(--orange);
  font-weight: 700;
}
.tr-ui {
  background: #222;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: #fff;
}
.tr-ui-hd {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: #bdbdbd;
  margin-bottom: 10px;
}
.tr-ui-hd .tr-r {
  color: var(--orange);
}
.tr-ui ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.tr-ui li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  background: #262626;
  border-radius: 8px;
  padding: 8px 10px;
}
.tr-ok,
.tr-no {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 8px;
  padding: 3px 7px;
}
.tr-ok {
  background: #fff;
  color: #121112;
}
.tr-no {
  background: var(--red);
  color: #fff;
}
.tr-ui .tr-why {
  font-size: 12px;
  color: #bdbdbd;
  margin-top: 10px;
}
.tr-ui .tr-flag {
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  padding: 9px 11px;
  margin: 0;
}
.tr-ui .tr-flag small {
  display: block;
}
.tr-ui .tr-play {
  border: 1px solid #555;
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 8px;
}
.tr-ui li.tr-dot {
  justify-content: flex-start;
}
.tr-ui li.tr-dot::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.tr-ui .tr-shared {
  display: inline-block;
  margin-top: 10px;
  background: #fff;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 999px;
  padding: 5px 10px;
}

/* The fix */
.tr-fixtop {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: end;
}
.tr-fixtop .tr-h2 {
  font-size: clamp(40px, 6vw, 64px);
}
.tr-fixtop .tr-sub {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 8px;
}
.tr-fixtop p {
  font-size: 16.5px;
}
.tr-fixtop u {
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 700;
}
.tr-panel {
  background: var(--soft);
  border-radius: 20px;
  padding: clamp(18px, 3vw, 28px);
  margin-top: 28px;
}
.tr-panel-hd {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
}
.tr-panel-hd h3 {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid var(--red);
  padding-bottom: 2px;
}
.tr-panel-hd span {
  color: var(--red);
  font-size: 13px;
  font-weight: 500;
}
.tr-stages {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}
.tr-stages li {
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 14px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.45;
}
.tr-stages li + li::before {
  content: "→";
  position: absolute;
  left: -26px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}
.tr-stages b {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  margin-bottom: 4px;
}
.tr-adds {
  margin-top: 22px;
}
.tr-adds > h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.tr-adds dl {
  display: grid;
  gap: 10px;
}
.tr-adds-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
}
.tr-adds dt span {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 999px;
  padding: 7px 14px;
  color: #fff;
  background: var(--red);
}
.tr-adds dt .tr-tag-orange {
  background: var(--orange);
  color: #121112;
}
.tr-adds dt .tr-tag-ink {
  background: var(--ink);
}
.tr-adds dd {
  margin: 0;
  font-size: 15px;
}
.tr-already {
  margin-top: 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  font-weight: 500;
}
.tr-already span {
  font-family: var(--mono);
  color: var(--orange);
  font-size: 12px;
  letter-spacing: 1px;
  margin-right: 12px;
  font-weight: 600;
}
.tr-proofband {
  margin-top: clamp(28px, 4vw, 44px);
  background: linear-gradient(90deg, var(--red), var(--orange));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.tr-proofband::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 26%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .45) 1px, transparent 1px);
  background-size: 25% 33.3%;
}
.tr-proofband p {
  position: relative;
  z-index: 1;
  /* At least 24px so the white text meets large-text contrast on the orange end. */
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.25;
  padding-block: clamp(26px, 4vw, 40px);
}
.tr-proofband b {
  font-weight: 500;
}

/* Box customer story */
.tr-story {
  background: var(--ink);
  color: #fff;
}
.tr-story .tr-eyebrow {
  color: var(--orange);
}
.tr-story .tr-eyebrow span {
  color: #fff;
  margin-right: 12px;
  border-right: 1px solid #666;
  padding-right: 12px;
}
.tr-story .tr-h2 {
  font-weight: 400;
  max-width: 760px;
  color: #fff;
}
.tr-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #222;
  border-radius: 20px;
  margin-top: 26px;
}
.tr-kpis div {
  padding: clamp(18px, 3vw, 28px);
  border-left: 1px solid #555;
}
.tr-kpis div:first-child {
  border-left: 0;
}
.tr-kpis strong {
  display: block;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: 0;
  line-height: 1;
}
.tr-kpis span {
  display: block;
  font-size: 14px;
  color: #cfcfcf;
  margin-top: 10px;
}
.tr-cols3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 32px);
  margin-top: 28px;
}
.tr-cols3 h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--orange);
  font-weight: 600;
  border-top: 1px solid #555;
  padding-top: 12px;
  margin-bottom: 10px;
}
.tr-cols3 p {
  font-size: 15px;
  color: #ddd;
  line-height: 1.55;
}
.tr-quote {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 36px);
  margin-top: 30px;
}
.tr-quote::before {
  content: "“";
  display: block;
  font-size: 64px;
  line-height: .6;
  color: var(--red);
  font-weight: 700;
}
.tr-quote p {
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.4;
  font-weight: 400;
}
.tr-quote p b {
  font-weight: 700;
}
.tr-quote p em {
  font-style: normal;
  color: var(--red);
}
.tr-quote footer {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 16px;
  text-transform: uppercase;
}
.tr-takeaway {
  border-left: 3px solid var(--red);
  padding-left: 18px;
  margin-top: 28px;
}
.tr-takeaway h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--orange);
  font-weight: 600;
}
.tr-takeaway p {
  font-size: clamp(17px, 2vw, 20px);
  margin-top: 6px;
}

/* Pill buttons: uppercase Geist Mono, fully rounded. */
.tr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 22px;
}
.tr-btn.tr-ghost {
  border: 1.5px solid #fff;
  color: #fff;
  margin-top: 26px;
}
.tr-btn.tr-ghost:hover {
  background: #fff;
  color: var(--ink);
}
.tr-btn.tr-light {
  background: #fff;
  color: var(--ink);
}
.tr-btn.tr-dark {
  background: var(--ink);
  color: #fff;
}
.tr-btn.tr-light:hover,
.tr-btn.tr-dark:hover {
  text-decoration: underline;
}

/* What's next */
.tr-next .tr-h2 {
  font-size: clamp(32px, 4.8vw, 50px);
  max-width: 860px;
}
.tr-trust {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 14px;
}
.tr-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 22px);
  margin-top: 30px;
}
.tr-cta {
  border-radius: 20px;
  padding: clamp(22px, 3.4vw, 34px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.tr-cta.tr-red {
  background: var(--red);
  color: #fff;
}
.tr-cta.tr-white {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #cfcfcf;
}
.tr-kick {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1px;
  border-radius: 999px;
  padding: 7px 14px;
  background: #fff;
  color: var(--red);
}
.tr-cta.tr-white .tr-kick {
  background: var(--red);
  color: #fff;
}
.tr-cta h3 {
  font-weight: 500;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: 0;
}
.tr-cta p {
  font-size: 16px;
  line-height: 1.5;
}
.tr-cta .tr-btn {
  margin-top: auto;
}
.tr-gets {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: clamp(22px, 3.4vw, 34px);
  margin-top: 18px;
}
.tr-gets > h3 {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--orange);
  font-weight: 600;
}
.tr-g3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 16px;
}
.tr-gets h4 {
  font-size: 17px;
  margin-bottom: 6px;
  color: #fff;
}
.tr-gets p {
  font-size: 14.5px;
  color: #d6d6d6;
  line-height: 1.5;
}
.tr-gets .tr-nj {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border-top: 1px solid #555;
  margin-top: 22px;
  padding-top: 16px;
  font-size: 14.5px;
}
.tr-nj b.tr-k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 1px;
}
.tr-nj a {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #fff;
}

/* FAQ and sources */
.tr-faq {
  margin-top: 22px;
  border-top: 1px solid #c9c9c9;
}
.tr-faq details {
  border-bottom: 1px solid #c9c9c9;
}
.tr-faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 700;
  font-size: clamp(17px, 2vw, 20px);
}
.tr-faq summary::-webkit-details-marker {
  display: none;
}
.tr-faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--red);
  font-size: 22px;
  line-height: 1;
}
.tr-faq details[open] summary::after {
  content: "–";
}
.tr-faq details p {
  padding: 0 0 18px;
  font-size: 16px;
  max-width: 820px;
}
.tr-sources {
  font-size: 14px;
  color: var(--muted);
  margin-top: 28px;
  padding-left: 18px;
  list-style: decimal;
  display: grid;
  gap: 4px;
}
.tr-sources li {
  list-style: inherit;
}

/* Responsive */
@media (max-width: 860px) {
  .tr-cover-in,
  .tr-intro,
  .tr-cols2,
  .tr-today,
  .tr-fixtop,
  .tr-ctas {
    grid-template-columns: 1fr;
  }
  .tr-intro-body {
    border-left: 0;
    padding-left: 0;
  }
  .tr-card {
    right: 10px;
    bottom: -34px;
  }
  .tr-gridblock {
    width: 42%;
    height: 250px;
  }
  .tr-cover .tr-mock {
    order: -1;
    margin-top: 40px;
    margin-bottom: 50px;
  }
  .tr-mock pre {
    white-space: pre-wrap;
  }
  .tr-bands,
  .tr-cols3,
  .tr-g3,
  .tr-kpis {
    grid-template-columns: 1fr;
  }
  .tr-kpis div {
    border-left: 0;
    border-top: 1px solid #555;
  }
  .tr-kpis div:first-child {
    border-top: 0;
  }
  .tr-stages {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tr-stages li + li::before {
    content: "↓";
    left: 50%;
    top: -24px;
    transform: translateX(-50%);
  }
  .tr-adds-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tr-cost {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .tr-gets .tr-nj {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .tr-ebook {
    font-size: 16px;
  }
  .tr-mock-body {
    grid-template-columns: 1fr;
  }
  .tr-mock-ai {
    border-left: 0;
    border-top: 1px solid #3a3a3a;
  }
  .tr-sc thead {
    display: none;
  }
  .tr-sc tbody tr {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto auto;
    gap: 4px 10px;
    padding: 12px;
    border-bottom: 1px solid #e8e8e8;
    align-items: center;
  }
  .tr-sc tbody td,
  .tr-sc tbody th {
    border: 0;
    padding: 0;
  }
  .tr-sc .tr-q {
    grid-column: 2 / -1;
  }
  .tr-sc .tr-risk {
    grid-column: 2 / 3;
    width: auto;
  }
  .tr-sc td.tr-c::before {
    content: attr(data-label);
    font-family: var(--mono);
    font-size: 11px;
    margin-right: 6px;
    vertical-align: middle;
  }
  .tr-sc td.tr-c {
    display: flex;
    align-items: center;
  }
  .tr-toc a {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .tr-toc .tr-pg {
    display: none;
  }
}

/* Header for this ebook: exactly Platform, Why CoderPad?, Resources and Pricing in the
   nav, plus Request demo and the return link. The shared ebook header rules live in
   runtime.css; this page also drops For Candidates and the drawer's Sign up/Login. */
.header-layout--ebook.page--three-risks-hiring .site-header .nav > li:has(> a[href="/resources/docs/for-candidates/"]),
.header-layout--ebook.page--three-risks-hiring .site-header .nav-ctas--drawer .button--secondary:not(.header-back-link),
.header-layout--ebook.page--three-risks-hiring .site-header .nav-ctas--drawer .login-link {
  display: none;
}
