/* ==========================================================================
   TraitPrism — Refined Editorial Psychology Laboratory
   Seed: SEED-TP-8492-OBSIDIAN-EDITORIAL
   Symmetrical Kinfolk-inspired flow · 10 color literals · 60fps GPU motion
   ========================================================================== */

:root {
  --bg-paper: #F7F5F0;
  --bg-card: #FFFFFF;
  --bg-subtle: #EFECE5;

  --ink-primary: #141820;
  --ink-secondary: #4E5666;
  --border-hairline: #DDD8CE;

  --accent-indigo: #3B4CCA;
  --accent-indigo-dark: #2B39A8;
  --accent-ochre: #B87333;
  --accent-teal: #1F7A6E;

  /* Derived surface tints via color-mix (zero extra palette literals) */
  --ink-muted: color-mix(in srgb, var(--ink-secondary) 82%, var(--bg-paper));
  --border-strong: color-mix(in srgb, var(--border-hairline) 78%, var(--ink-primary));
  --bg-tint-indigo: color-mix(in srgb, var(--accent-indigo) 7%, var(--bg-card));
  --bg-tint-teal: color-mix(in srgb, var(--accent-teal) 7%, var(--bg-card));
  --bg-tint-ochre: color-mix(in srgb, var(--accent-ochre) 8%, var(--bg-card));
  --bg-header: color-mix(in srgb, var(--bg-paper) 94%, transparent);
  --shadow-ink: color-mix(in srgb, var(--ink-primary) 5%, transparent);
  --shadow-ink-strong: color-mix(in srgb, var(--ink-primary) 16%, transparent);

  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-card: 0 1px 2px var(--shadow-ink), 0 12px 30px var(--shadow-ink);
  --shadow-subtle: 0 4px 14px var(--shadow-ink);

  --container-max: 1120px;
  --editorial-wide: 980px;
  --reading-max: 760px;
}

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

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

body {
  margin: 0;
  background-color: var(--bg-paper);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent-indigo);
  outline-offset: 2px;
}

.tp-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink-primary);
  color: var(--bg-paper);
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  z-index: 200;
}

.tp-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.tp-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navigation
   -------------------------------------------------------------------------- */

.tp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hairline);
}

.tp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 66px;
}

.tp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink-primary);
}

.tp-brand-mark {
  display: block;
  flex-shrink: 0;
}

.tp-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.tp-brand-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tp-brand-tag {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.tp-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tp-nav a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.tp-nav a:hover,
.tp-nav a.is-active {
  background-color: var(--bg-subtle);
  color: var(--ink-primary);
}

.tp-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  padding: 9px 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.tp-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink-primary);
  border-radius: 1px;
}

/* Centered Symmetrical Hero & Document Headers
   -------------------------------------------------------------------------- */

.tp-hero {
  padding: 2rem 0 1.35rem;
  text-align: center;
}

.tp-hero-centered {
  max-width: 740px;
  margin: 0 auto;
}

.tp-eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent-indigo);
  margin-bottom: 0.45rem;
}

.tp-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 3.6vw, 2.75rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink-primary);
}

.tp-lead {
  margin: 0 auto 1.15rem;
  max-width: 600px;
  font-size: 1.02rem;
  color: var(--ink-secondary);
}

.tp-meta-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.tp-meta-pill {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

.tp-doc-hero {
  padding: 2.25rem 0 1.25rem;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-card);
}

.tp-doc-hero .tp-lead {
  margin-left: 0;
}

.tp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
}

.tp-breadcrumb a {
  color: var(--ink-secondary);
  text-decoration: none;
}

.tp-breadcrumb a:hover {
  text-decoration: underline;
}

.tp-doc-meta {
  font-size: 0.84rem;
  color: var(--ink-muted);
  margin: 0;
}

/* Interactive Assessment Laboratory
   -------------------------------------------------------------------------- */

.tp-lab-section {
  padding: 0.25rem 0 2.75rem;
}

.tp-lab {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.tp-lab-loading {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ink-secondary);
}

.tp-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.75rem;
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-paper);
}

.tp-progress-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-primary);
  letter-spacing: 0.01em;
}

.tp-progress-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.tp-progress-track {
  width: 100%;
  height: 4px;
  background: var(--bg-subtle);
  overflow: hidden;
}

.tp-progress-fill {
  height: 100%;
  background: var(--accent-indigo);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-question-stage {
  padding: 2.1rem 2rem 1.9rem;
}

.tp-stage-enter {
  animation: tp-question-enter 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tp-question-kicker {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-ochre);
  margin-bottom: 0.6rem;
}

.tp-statement {
  margin: 0 0 1.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.24rem, 2.2vw, 1.56rem);
  font-weight: 400;
  line-height: 1.42;
  color: var(--ink-primary);
  min-height: 4.2rem;
}

.tp-spectrum {
  padding: 0.25rem 0 0.35rem;
}

.tp-spectrum-poles {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tp-spectrum-pole.is-disagree {
  color: var(--accent-ochre);
}

.tp-spectrum-pole.is-agree {
  color: var(--accent-indigo);
}

.tp-spectrum-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  justify-items: center;
  gap: 0.4rem;
}

.tp-spectrum-track {
  position: absolute;
  top: 29px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border-hairline);
  z-index: 0;
}

.tp-spectrum-btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.2rem 0.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-secondary);
}

.tp-circle-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  width: 100%;
}

.tp-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tp-circle-dot {
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: var(--bg-card);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-spectrum-btn.is-v1 .tp-circle {
  width: 54px;
  height: 54px;
  border-color: var(--accent-ochre);
}

.tp-spectrum-btn.is-v2 .tp-circle {
  width: 42px;
  height: 42px;
  border-color: var(--accent-ochre);
}

.tp-spectrum-btn.is-v3 .tp-circle {
  width: 32px;
  height: 32px;
  border-color: var(--ink-secondary);
}

.tp-spectrum-btn.is-v4 .tp-circle {
  width: 42px;
  height: 42px;
  border-color: var(--accent-indigo);
}

.tp-spectrum-btn.is-v5 .tp-circle {
  width: 54px;
  height: 54px;
  border-color: var(--accent-indigo);
}

.tp-spectrum-btn:hover .tp-circle {
  transform: scale(1.12);
}

.tp-spectrum-btn.is-v1:hover .tp-circle,
.tp-spectrum-btn.is-v2:hover .tp-circle {
  background: color-mix(in srgb, var(--accent-ochre) 14%, var(--bg-card));
}

.tp-spectrum-btn.is-v3:hover .tp-circle {
  background: color-mix(in srgb, var(--ink-secondary) 14%, var(--bg-card));
}

.tp-spectrum-btn.is-v4:hover .tp-circle,
.tp-spectrum-btn.is-v5:hover .tp-circle {
  background: color-mix(in srgb, var(--accent-indigo) 14%, var(--bg-card));
}

.tp-spectrum-btn:active .tp-circle {
  transform: scale(0.96);
}

.tp-spectrum-btn.is-selected .tp-circle-dot {
  opacity: 1;
  transform: scale(1);
}

.tp-spectrum-btn.is-selected.is-v1 .tp-circle,
.tp-spectrum-btn.is-selected.is-v2 .tp-circle {
  background: var(--accent-ochre);
  border-color: var(--accent-ochre);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-ochre) 28%, transparent);
}

.tp-spectrum-btn.is-selected.is-v3 .tp-circle {
  background: var(--ink-secondary);
  border-color: var(--ink-secondary);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ink-secondary) 24%, transparent);
}

.tp-spectrum-btn.is-selected.is-v4 .tp-circle,
.tp-spectrum-btn.is-selected.is-v5 .tp-circle {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--accent-indigo) 28%, transparent);
}

.tp-circle-label {
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  color: var(--ink-secondary);
}

.tp-spectrum-btn.is-selected .tp-circle-label {
  color: var(--ink-primary);
  font-weight: 700;
}

/* Pressure Scenario Choices (Strongest Virtue Test) */

.tp-scenario-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tp-scenario-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  text-align: left;
  padding: 0.95rem 1.1rem;
  background: var(--bg-paper);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  color: var(--ink-primary);
  font-family: inherit;
  font-size: 0.94rem;
  line-height: 1.48;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.tp-scenario-btn:hover {
  border-color: var(--accent-indigo);
  background: var(--bg-tint-indigo);
  transform: translateY(-1px);
  box-shadow: var(--shadow-subtle);
}

.tp-scenario-btn:active {
  transform: scale(0.99);
}

.tp-scenario-btn.is-selected {
  border-color: var(--accent-indigo);
  background: var(--accent-indigo);
  color: var(--bg-card);
}

.tp-scenario-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--bg-card);
  color: var(--ink-secondary);
  border: 1px solid var(--border-hairline);
  margin-top: 0.05rem;
}

.tp-scenario-btn.is-selected .tp-scenario-key {
  background: var(--accent-indigo-dark);
  color: var(--bg-card);
  border-color: var(--accent-indigo-dark);
}

/* Shadow-Practice Protocol Cards */

.tp-protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.tp-protocol-card {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  background: var(--bg-paper);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tp-protocol-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-ochre);
  background: var(--bg-tint-ochre);
  border: 1px solid color-mix(in srgb, var(--accent-ochre) 28%, var(--border-hairline));
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.tp-protocol-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--ink-primary);
}

.tp-protocol-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin: 0;
}

.tp-protocol-plan {
  margin: 0;
  padding: 0.75rem 0.9rem;
  background: var(--bg-card);
  border-left: 3px solid var(--accent-teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.86rem;
  color: var(--ink-primary);
  line-height: 1.5;
}

.tp-stage-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-hairline);
}

.tp-kbd-hint {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
  text-decoration: none;
}

.tp-btn:active:not(:disabled) {
  transform: scale(0.985);
}

.tp-btn-primary {
  background: var(--ink-primary);
  color: var(--bg-paper);
  border-color: var(--ink-primary);
}

.tp-btn-primary:hover {
  background: var(--accent-indigo);
  border-color: var(--accent-indigo);
  color: var(--bg-card);
}

.tp-btn-secondary {
  background: var(--bg-card);
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

.tp-btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--ink-primary);
}

.tp-btn-ghost {
  background: transparent;
  color: var(--ink-secondary);
  border-color: var(--border-hairline);
}

.tp-btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--ink-primary);
}

.tp-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

/* 50/50 Symmetrical Visual Feature Band
   -------------------------------------------------------------------------- */

.tp-feature-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--bg-card);
}

.tp-feature-wrap {
  max-width: var(--editorial-wide);
}

.tp-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
  align-items: center;
}

.tp-feature-frame {
  margin: 0;
  padding: 0.75rem;
  background: var(--bg-paper);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.tp-feature-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 960 / 536;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.tp-feature-copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.38rem, 2.2vw, 1.75rem);
  line-height: 1.24;
  color: var(--ink-primary);
}

.tp-feature-copy p {
  margin: 0 0 1rem;
  color: var(--ink-secondary);
  font-size: 0.96rem;
}

.tp-feature-takeaway {
  margin: 0;
  padding: 0.85rem 1.05rem;
  border-left: 3px solid var(--accent-indigo);
  background: var(--bg-paper);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  font-size: 0.94rem;
  color: var(--ink-primary);
}

/* Results Dashboard
   -------------------------------------------------------------------------- */

.tp-results {
  padding: 2rem;
  animation: tp-question-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tp-results-banner {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 1.75rem;
}

.tp-results-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-teal);
  margin-bottom: 0.4rem;
}

.tp-results-headline {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.22;
}

.tp-results-summary {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 0.98rem;
}

.tp-results-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.75rem;
}

.tp-chart-panel {
  background: var(--bg-paper);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.tp-chart-title {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  text-align: center;
}

.tp-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
  margin: 0 auto;
}

.tp-radar-poly {
  transform-origin: 200px 202px;
  animation: tp-radar-pop 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tp-highlights-stack {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.tp-highlight-card {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline);
  background: var(--bg-card);
}

.tp-highlight-card.is-primary {
  background: var(--bg-tint-indigo);
  border-color: color-mix(in srgb, var(--accent-indigo) 26%, var(--border-hairline));
}

.tp-highlight-card.is-secondary {
  background: var(--bg-tint-teal);
  border-color: color-mix(in srgb, var(--accent-teal) 26%, var(--border-hairline));
}

.tp-highlight-card.is-balance {
  background: var(--bg-tint-ochre);
  border-color: color-mix(in srgb, var(--accent-ochre) 28%, var(--border-hairline));
}

.tp-highlight-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.tp-highlight-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.tp-highlight-name {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.tp-highlight-score {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-indigo);
}

.tp-highlight-card.is-secondary .tp-highlight-score {
  color: var(--accent-teal);
}

.tp-highlight-card.is-balance .tp-highlight-score {
  color: var(--accent-ochre);
}

.tp-highlight-archetype {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-secondary);
}

.tp-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 1.15rem 0 1.75rem;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 1.75rem;
}

.tp-action-status {
  font-size: 0.84rem;
  color: var(--accent-teal);
  font-weight: 500;
}

/* Deep Profile Cards */

.tp-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.tp-profile-card {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  background: var(--bg-paper);
}

.tp-profile-card h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-serif);
  font-size: 1.18rem;
}

.tp-profile-subtitle {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-indigo);
}

.tp-profile-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tp-profile-dl dt {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 0.15rem;
}

.tp-profile-dl dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-primary);
  line-height: 1.55;
}

/* Full Dimension Breakdown */

.tp-breakdown-title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.tp-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tp-breakdown-item {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  background: var(--bg-card);
}

.tp-breakdown-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.tp-breakdown-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.tp-breakdown-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

.tp-bar-track {
  width: 100%;
  height: 7px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.tp-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent-indigo);
  transform-origin: left center;
  animation: tp-bar-grow 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tp-bar-fill.is-teal {
  background: var(--accent-teal);
}

.tp-bar-fill.is-ochre {
  background: var(--accent-ochre);
}

.tp-breakdown-desc {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-secondary);
}

/* Dual-Pole Balance Rows */

.tp-balance-axis {
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  background: var(--bg-card);
}

.tp-balance-poles {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.tp-pole-left {
  color: var(--accent-ochre);
}

.tp-pole-right {
  color: var(--accent-teal);
}

.tp-balance-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent-ochre) 24%, var(--bg-subtle)) 0%,
    var(--bg-subtle) 50%,
    color-mix(in srgb, var(--accent-teal) 24%, var(--bg-subtle)) 100%
  );
  margin-bottom: 0.55rem;
}

.tp-balance-center {
  position: absolute;
  left: 50%;
  top: -2px;
  bottom: -2px;
  width: 2px;
  background: var(--border-strong);
  transform: translateX(-50%);
}

.tp-balance-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink-primary);
  border: 2px solid var(--bg-card);
  box-shadow: 0 1px 4px var(--shadow-ink-strong);
  transform: translate(-50%, -50%);
}

.tp-balance-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

/* Editorial Content & Multi-Column Trait Cards
   -------------------------------------------------------------------------- */

.tp-editorial-section {
  padding: 2.75rem 0;
}

.tp-editorial-layout {
  max-width: var(--reading-max);
}

.tp-editorial-wide {
  max-width: var(--editorial-wide);
}

.tp-editorial h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.28;
  margin: 2.25rem 0 0.85rem;
  color: var(--ink-primary);
}

.tp-editorial h2:first-child {
  margin-top: 0;
}

.tp-editorial h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.75rem;
  color: var(--ink-primary);
}

.tp-editorial p {
  margin: 0 0 1.05rem;
  color: var(--ink-secondary);
}

.tp-editorial ul,
.tp-editorial ol {
  margin: 0 0 1.35rem;
  padding-left: 1.35rem;
  color: var(--ink-secondary);
}

.tp-editorial li {
  margin-bottom: 0.5rem;
}

.tp-editorial strong {
  color: var(--ink-primary);
}

/* Symmetrical multi-column editorial cards for quiz pages */
.tp-editorial--quiz h2,
.tp-editorial--quiz h3 {
  text-align: center;
}

.tp-editorial--quiz > p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.tp-editorial--quiz ul {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.95rem;
}

.tp-editorial--quiz ul li {
  margin: 0;
  padding: 1.15rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-secondary);
  box-shadow: var(--shadow-subtle);
}

.tp-editorial--quiz ul li strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.04rem;
  margin-bottom: 0.25rem;
  color: var(--ink-primary);
}

.tp-editorial blockquote {
  max-width: 720px;
  margin: 1.85rem auto;
  padding: 1.15rem 1.45rem;
  border-left: 3px solid var(--accent-indigo);
  background: var(--bg-card);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-serif);
  color: var(--ink-primary);
  box-shadow: var(--shadow-subtle);
}

.tp-editorial table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6rem 0;
  font-size: 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
}

.tp-editorial th,
.tp-editorial td {
  text-align: left;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid var(--border-hairline);
}

.tp-editorial th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--ink-primary);
}

/* Symmetrical 2-Column FAQ Grid */

.tp-faq-section {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border-hairline);
}

.tp-section-head {
  margin-bottom: 1.5rem;
}

.tp-section-head--center {
  text-align: center;
}

.tp-section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.65rem;
}

.tp-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  align-items: stretch;
}

.tp-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tp-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.tp-faq-q::-webkit-details-marker {
  display: none;
}

.tp-faq-q::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink-muted);
  flex-shrink: 0;
}

.tp-faq-item[open] .tp-faq-q::after {
  content: "\2212";
  color: var(--accent-indigo);
}

.tp-faq-a {
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-secondary);
  font-size: 0.91rem;
}

.tp-faq-a p {
  margin: 0;
}

/* Visual Editorial Discovery Gallery (4 symmetrical cards) */

.tp-discovery-section {
  padding: 2.75rem 0 3.5rem;
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-subtle);
}

.tp-discovery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
}

.tp-discovery-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-primary);
  transition: border-color 0.18s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

.tp-discovery-card:hover {
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  color: var(--ink-primary);
}

.tp-discovery-card.is-current {
  display: none;
}

.tp-discovery-thumb {
  width: 100%;
  aspect-ratio: 960 / 536;
  overflow: hidden;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-hairline);
}

.tp-discovery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-discovery-card:hover .tp-discovery-thumb img {
  transform: scale(1.03);
}

.tp-discovery-body {
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tp-discovery-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-ochre);
  margin-bottom: 0.35rem;
}

.tp-discovery-card h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.08rem;
}

.tp-discovery-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* Footer */

.tp-footer {
  background: var(--ink-primary);
  color: color-mix(in srgb, var(--bg-paper) 84%, transparent);
  padding: 3rem 0 2rem;
  font-size: 0.88rem;
}

.tp-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--bg-card) 12%, transparent);
}

.tp-footer-logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bg-card);
  text-decoration: none;
}

.tp-footer-note {
  margin: 0.65rem 0 0.5rem;
  color: color-mix(in srgb, var(--bg-paper) 72%, transparent);
  max-width: 380px;
}

.tp-footer-disclaimer {
  margin: 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--bg-paper) 56%, transparent);
}

.tp-footer-col h2 {
  margin: 0 0 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: color-mix(in srgb, var(--bg-paper) 58%, transparent);
}

.tp-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.tp-footer-col a {
  color: color-mix(in srgb, var(--bg-paper) 90%, transparent);
  text-decoration: none;
}

.tp-footer-col a:hover {
  color: var(--bg-card);
  text-decoration: underline;
}

.tp-footer-bottom {
  padding-top: 1.35rem;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--bg-paper) 56%, transparent);
}

.tp-footer-bottom p {
  margin: 0;
}

/* Scroll Reveal & Keyframes (GPU transform & opacity only)
   -------------------------------------------------------------------------- */

.tp-js .tp-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.tp-js .tp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes tp-question-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tp-radar-pop {
  from {
    opacity: 0;
    transform: scale(0.86);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tp-bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

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

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

  .tp-js .tp-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Responsive Breakpoints
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .tp-nav-toggle {
    display: flex;
  }

  .tp-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--bg-paper);
    border-bottom: 1px solid var(--border-hairline);
    padding: 0.75rem 1.25rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    box-shadow: var(--shadow-subtle);
  }

  .tp-nav.is-open {
    display: flex;
  }

  .tp-feature-grid,
  .tp-faq-grid,
  .tp-results-top-grid,
  .tp-profile-grid,
  .tp-protocol-grid,
  .tp-footer-grid {
    grid-template-columns: 1fr;
  }

  .tp-feature-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .tp-hero {
    padding: 1.35rem 0 1rem;
  }

  .tp-question-stage {
    padding: 1.5rem 1.15rem 1.35rem;
  }

  .tp-progress-header {
    padding: 0.85rem 1.15rem;
  }

  .tp-results {
    padding: 1.35rem 1.15rem;
  }

  .tp-spectrum-track {
    top: 24px;
  }

  .tp-circle-slot {
    height: 48px;
  }

  .tp-spectrum-btn.is-v1 .tp-circle,
  .tp-spectrum-btn.is-v5 .tp-circle {
    width: 44px;
    height: 44px;
  }

  .tp-spectrum-btn.is-v2 .tp-circle,
  .tp-spectrum-btn.is-v4 .tp-circle {
    width: 36px;
    height: 36px;
  }

  .tp-spectrum-btn.is-v3 .tp-circle {
    width: 28px;
    height: 28px;
  }

  .tp-circle-label {
    font-size: 0.66rem;
  }

  .tp-kbd-hint {
    display: none;
  }
}
