/* ==========================================================================
   resume.tkh.dev — built on the main-app design system (tokens.css).
   Inter + JetBrains Mono, stone surfaces, indigo accent, flat bordered cards,
   .dark theming. Loaded AFTER tokens.css so every --tkh-* is available.
   ========================================================================== */

:root {
  /* Hire identity: override the app's indigo accent with the hire blue, while
     inheriting everything else (Inter, stone surfaces, .dark) from tokens.css. */
  --tkh-accent: #1E96D6;
  --tkh-accent-soft: rgba(30, 150, 214, 0.10);

  /* semantic aliases over the app's tokens (so this file + admin.css read clean
     names and inherit light/dark/cutify switching for free) */
  --accent: var(--tkh-accent);
  --accent-soft: var(--tkh-accent-soft);
  --accent-strong: var(--tkh-accent);
  --on-accent: #ffffff;
  --bg: var(--tkh-bg);
  --bg-inset: var(--tkh-bg-inset);
  --surface: var(--tkh-card);
  --surface-solid: var(--tkh-card);
  --surface-hover: var(--tkh-card-hover);
  --line: var(--tkh-card-border);
  --line-soft: var(--tkh-divider);
  --text: var(--tkh-text);
  --text-mid: var(--tkh-text-mid);
  --muted: var(--tkh-text-dim);
  --muted-soft: var(--tkh-text-faint);
  --radius: var(--tkh-radius);
  --radius-md: var(--tkh-radius);
  --radius-lg: var(--tkh-radius-lg);
  --sans: var(--tkh-sans);
  --mono: var(--tkh-mono);
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-hover: 0 2px 8px rgba(28, 25, 23, 0.06);
  --max: 1040px;
}

html.dark {
  --tkh-accent: #45b0ea;
  --tkh-accent-soft: rgba(69, 176, 234, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 2px 10px rgba(0, 0, 0, 0.4);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--tkh-bg);
  color: var(--tkh-text);
  font-family: var(--tkh-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--tkh-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--tkh-text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 40;
  padding: 0.55rem 1rem;
  border-radius: 0 0 var(--tkh-radius) 0;
  background: var(--tkh-accent);
  color: #fff;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.section {
  padding: clamp(2.4rem, 5vw, 3.6rem) 0;
}

.eyebrow {
  margin: 0;
  font-family: var(--tkh-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tkh-accent);
}

/* ---- Theme toggle (keys off the app's .dark class) ---- */
.theme-toggle {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tkh-radius-pill);
  border: 1px solid var(--tkh-card-border);
  background: var(--tkh-card);
  color: var(--tkh-text-dim);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--tkh-text);
  border-color: var(--tkh-accent);
  outline: none;
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

.theme-toggle .icon-sun {
  display: none;
}

html.dark .theme-toggle .icon-sun {
  display: block;
}

html.dark .theme-toggle .icon-moon {
  display: none;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--tkh-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tkh-card-border);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.brand-wordmark {
  font-family: var(--tkh-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--tkh-text);
}

.site-nav {
  display: flex;
  gap: 1.3rem;
  margin-left: auto;
  margin-right: 0.4rem;
}

.site-nav a {
  font-family: var(--tkh-mono);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--tkh-text-dim);
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--tkh-accent);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ---- Buttons ---- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 1.05rem;
  border-radius: var(--tkh-radius);
  border: 1px solid transparent;
  font-family: var(--tkh-sans);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}

.btn--primary {
  background: var(--tkh-accent);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  filter: brightness(1.08);
  outline: none;
}

.btn--secondary {
  background: var(--tkh-card);
  border-color: var(--tkh-card-border);
  color: var(--tkh-text);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  border-color: var(--tkh-accent);
  color: var(--tkh-accent);
  outline: none;
}

/* ---- Hero ---- */
.hero {
  padding-top: clamp(2.2rem, 5vw, 3.2rem);
  display: grid;
  gap: 1rem;
  max-width: 64ch;
}

.hero__name {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero__summary {
  color: var(--tkh-text-dim);
  font-size: 1.02rem;
  max-width: 62ch;
}

.hero .btn-row {
  margin-top: 0.6rem;
}

/* ---- Section heads ---- */
.section__head {
  display: grid;
  gap: 0.45rem;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}

.section__title {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700;
}

.section__copy {
  color: var(--tkh-text-dim);
  max-width: 58ch;
}

/* ---- Experience timeline ---- */
.timeline {
  position: relative;
  display: grid;
  gap: 2rem;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--tkh-card-border);
}

.role {
  position: relative;
}

.role__node {
  position: absolute;
  left: -1.5rem;
  top: 0.45rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: var(--tkh-radius-pill);
  background: var(--tkh-bg);
  border: 2px solid var(--tkh-text-faint);
}

.role.is-current .role__node {
  background: var(--tkh-accent);
  border-color: var(--tkh-accent);
  box-shadow: 0 0 0 4px var(--tkh-accent-soft);
}

.role__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.role__company {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.role__range {
  font-family: var(--tkh-mono);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--tkh-accent);
  white-space: nowrap;
}

.role__meta {
  margin-top: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--tkh-text-faint);
  font-size: 0.88rem;
}

.role__tag {
  font-family: var(--tkh-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tkh-accent);
  background: var(--tkh-accent-soft);
  border-radius: var(--tkh-radius-pill);
  padding: 0.12rem 0.5rem;
}

.role__title {
  margin-top: 0.5rem;
  font-family: var(--tkh-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tkh-text-mid);
}

.positions {
  margin-top: 0.85rem;
  display: grid;
  gap: 1.2rem;
}

.position__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.position__title {
  font-family: var(--tkh-mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--tkh-text-mid);
}

.position__date {
  font-family: var(--tkh-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--tkh-text-faint);
  white-space: nowrap;
}

.bullets {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--tkh-text-dim);
  font-size: 0.94rem;
}

.bullets li {
  position: relative;
  padding-left: 1.15rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: var(--tkh-radius-pill);
  background: var(--tkh-accent);
}

/* ---- Portfolio (app card aesthetic: flat, bordered, hover-to-accent) ---- */
.work__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem;
  background: var(--tkh-card);
  border: 1px solid var(--tkh-card-border);
  border-radius: var(--tkh-radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.card:hover,
.card:focus-within {
  border-color: color-mix(in srgb, var(--tkh-accent) 40%, var(--tkh-card-border));
  background: var(--tkh-card-hover);
}

.card--feature {
  grid-column: 1 / -1;
}

.card__label {
  font-family: var(--tkh-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tkh-accent);
}

.card__name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card--feature .card__name {
  font-size: 1.45rem;
}

.card__blurb {
  color: var(--tkh-text-dim);
  font-size: 0.94rem;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.tag {
  font-family: var(--tkh-mono);
  font-size: 0.66rem;
  color: var(--tkh-text-dim);
  background: var(--tkh-bg-inset);
  border: 1px solid var(--tkh-card-border);
  border-radius: var(--tkh-radius-pill);
  padding: 0.2rem 0.55rem;
}

.card__foot {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.2rem;
}

.card__link {
  font-family: var(--tkh-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--tkh-accent);
}

.card__link:hover,
.card__link:focus-visible {
  filter: brightness(1.1);
  outline: none;
}

.card__status {
  font-family: var(--tkh-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--tkh-text-faint);
}

/* ---- Facts: skills / education ---- */
.facts {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.9rem;
  align-items: start;
}

.panel {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--tkh-card);
  border: 1px solid var(--tkh-card-border);
  border-radius: var(--tkh-radius-lg);
  box-shadow: var(--shadow);
}

.panel__kicker {
  font-family: var(--tkh-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tkh-accent);
}

.fact-group {
  display: grid;
  gap: 0.5rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  font-size: 0.82rem;
  color: var(--tkh-text-mid);
  background: var(--tkh-bg-inset);
  border: 1px solid var(--tkh-card-border);
  border-radius: var(--tkh-radius-pill);
  padding: 0.32rem 0.7rem;
}

.edu {
  display: grid;
  gap: 0.85rem;
}

.edu__item {
  display: grid;
  gap: 0.1rem;
}

.edu__school {
  font-size: 1.05rem;
  font-weight: 700;
}

.edu__detail {
  color: var(--tkh-text-dim);
  font-size: 0.88rem;
}

/* ---- Contact ---- */
.contact {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: var(--tkh-card);
  border: 1px solid var(--tkh-card-border);
  border-radius: var(--tkh-radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  justify-items: center;
}

.contact__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.contact p {
  color: var(--tkh-text-dim);
  max-width: 48ch;
}

/* ---- Footer ---- */
.site-footer {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 2.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.4rem;
  border-top: 1px solid var(--tkh-card-border);
  font-family: var(--tkh-mono);
  font-size: 0.78rem;
  color: var(--tkh-text-faint);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.site-footer a {
  color: var(--tkh-text-dim);
  transition: color 0.15s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--tkh-accent);
  outline: none;
}

/* ---- Reveal on scroll ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--tkh-accent);
  outline-offset: 2px;
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .work__grid {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   CHAPTERED REDESIGN — hero cover, scroll-narrative chapters, recruiter grader.
   Reuses --accent / --tkh-* tokens + the existing [data-reveal] transitions.
   ========================================================================== */

/* ---- Hero: optional portrait + full-bleed cover ---- */
.hero__text {
  display: grid;
  gap: 1rem;
}

.hero__portrait {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: var(--tkh-radius-pill);
  overflow: hidden;
  border: 2px solid var(--tkh-card-border);
  box-shadow: var(--shadow);
  margin-bottom: 0.4rem;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cover {
  position: relative;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
  isolation: isolate;
}

.hero-cover__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--tkh-bg) 55%, transparent) 0%,
    color-mix(in srgb, var(--tkh-bg) 80%, transparent) 60%,
    var(--tkh-bg) 100%
  );
}

.hero-cover .hero {
  max-width: 64ch;
}

.hero-cover .hero__name,
.hero-cover .hero__summary {
  text-shadow: 0 1px 18px color-mix(in srgb, var(--tkh-bg) 70%, transparent);
}

/* ---- Chapters (scroll narrative) ---- */
.chapters__flow {
  display: grid;
  gap: clamp(2.4rem, 6vw, 4.5rem);
}

.chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
}

.chapter.is-left .chapter__media {
  order: -1;
}

.chapter.is-right .chapter__media {
  order: 1;
}

.chapter__media {
  border-radius: var(--tkh-radius-lg);
  overflow: hidden;
  border: 1px solid var(--tkh-card-border);
  box-shadow: var(--shadow);
  background: var(--tkh-card);
  aspect-ratio: 4 / 3;
}

.chapter__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 0.6rem;
  align-content: center;
  border: 2px dashed color-mix(in srgb, var(--tkh-accent) 40%, var(--tkh-card-border));
  border-radius: var(--tkh-radius-lg);
  color: var(--tkh-text-faint);
  background: var(--tkh-accent-soft);
}

.photo-placeholder svg {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--tkh-accent);
  opacity: 0.7;
}

.photo-placeholder span {
  font-family: var(--tkh-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chapter__body {
  display: grid;
  gap: 0.7rem;
  align-content: center;
}

.chapter__kicker {
  font-family: var(--tkh-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tkh-accent);
}

.chapter__title {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
}

.chapter__era {
  font-family: var(--tkh-mono);
  font-size: 0.78rem;
  color: var(--tkh-text-faint);
}

.chapter__copy {
  color: var(--tkh-text-dim);
  font-size: 1rem;
  line-height: 1.65;
}

.chapter__roles {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.chapter__role {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--tkh-card-border);
  border-left: 3px solid var(--tkh-accent);
  border-radius: var(--tkh-radius);
  background: color-mix(in srgb, var(--tkh-card) 60%, transparent);
}

.chapter__role-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.chapter__role-company {
  font-weight: 700;
  font-size: 1rem;
}

.chapter__role-range {
  font-family: var(--tkh-mono);
  font-size: 0.7rem;
  color: var(--tkh-accent);
  white-space: nowrap;
}

.chapter__role-title {
  margin-top: 0.2rem;
  font-family: var(--tkh-mono);
  font-size: 0.82rem;
  color: var(--tkh-text-mid);
}

/* ---- Recruiter grader ---- */
.grader {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  background: var(--tkh-card);
  border: 1px solid var(--tkh-card-border);
  border-top: 3px solid var(--tkh-accent);
  border-radius: var(--tkh-radius-lg);
  box-shadow: var(--shadow);
}

.grader__title {
  margin-top: 0.3rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.grader__lead {
  margin-top: 0.4rem;
  color: var(--tkh-text-dim);
  max-width: 60ch;
}

.grader__tabs {
  display: flex;
  gap: 0.4rem;
}

.grader__tab {
  font-family: var(--tkh-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.9rem;
  border-radius: var(--tkh-radius-pill);
  border: 1px solid var(--tkh-card-border);
  background: var(--tkh-bg-inset);
  color: var(--tkh-text-dim);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.grader__tab.is-active {
  color: var(--on-accent);
  background: var(--tkh-accent);
  border-color: var(--tkh-accent);
}

.grader__input,
.grader__url {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--tkh-card-border);
  border-radius: var(--tkh-radius);
  background: var(--tkh-bg-inset);
  color: var(--tkh-text);
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  line-height: 1.55;
}

.grader__input:focus,
.grader__url:focus {
  outline: 2px solid var(--tkh-accent);
  outline-offset: 1px;
  border-color: var(--tkh-accent);
}

.grader__actions {
  display: flex;
}

.grader__result {
  display: none;
}

.grader__result.is-loading,
.grader__result.is-error,
.grader__result.is-done {
  display: grid;
  gap: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--tkh-card-border);
}

.grader__result.is-error {
  color: #b5341f;
}

html.dark .grader__result.is-error {
  color: #f0a08e;
}

.grader__result.is-loading {
  align-items: center;
  justify-items: center;
  text-align: center;
  color: var(--tkh-text-dim);
  font-family: var(--tkh-mono);
  font-size: 0.82rem;
}

.grader__spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 3px solid var(--tkh-card-border);
  border-top-color: var(--tkh-accent);
  animation: grader-spin 0.8s linear infinite;
}

@keyframes grader-spin {
  to {
    transform: rotate(360deg);
  }
}

.grader__score {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.gauge {
  flex-shrink: 0;
}

.gauge__num {
  font-family: var(--tkh-sans);
  font-weight: 700;
  font-size: 30px;
}

.gauge__pct {
  font-family: var(--tkh-mono);
  font-size: 11px;
  fill: var(--tkh-text-faint);
}

.grader__score-text {
  flex: 1;
  min-width: 14rem;
  display: grid;
  gap: 0.4rem;
}

.grader__verdict {
  font-family: var(--tkh-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tkh-accent);
}

.grader__summary {
  color: var(--tkh-text-mid);
  line-height: 1.6;
}

.grader__col {
  display: grid;
  gap: 0.5rem;
}

.grader__col-label {
  font-family: var(--tkh-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tkh-text-faint);
}

.grader__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.grader__chips li {
  position: relative;
  padding: 0.45rem 0.7rem 0.45rem 1.8rem;
  border-radius: var(--tkh-radius);
  font-size: 0.9rem;
  border: 1px solid var(--tkh-card-border);
}

.grader__chips li::before {
  position: absolute;
  left: 0.65rem;
  top: 0.45rem;
}

.grader__chips.is-strength li {
  background: color-mix(in srgb, #10b981 12%, transparent);
  border-color: color-mix(in srgb, #10b981 35%, var(--tkh-card-border));
}

.grader__chips.is-strength li::before {
  content: "✓";
  color: #10b981;
  font-weight: 700;
}

.grader__chips.is-gap li {
  background: color-mix(in srgb, #f59e0b 12%, transparent);
  border-color: color-mix(in srgb, #f59e0b 35%, var(--tkh-card-border));
}

.grader__chips.is-gap li::before {
  content: "!";
  color: #d97706;
  font-weight: 700;
}

@media (max-width: 720px) {
  .chapter {
    grid-template-columns: 1fr;
  }

  .chapter.is-left .chapter__media,
  .chapter.is-right .chapter__media {
    order: -1;
  }
}
