:root {
  --paper: #f3f4f6;
  --paper-strong: #ffffff;
  --ink: #111111;
  --ink-soft: #4b5563;
  --line: #d1d5db;
  --cyan: #14a8d7;
  --red: #e63b34;
  --gold: #cda24e;
  --shadow: 0 18px 48px rgba(17, 17, 17, 0.07);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(20, 168, 215, 0.035), transparent 28%),
    linear-gradient(225deg, rgba(230, 59, 52, 0.035), transparent 24%),
    repeating-linear-gradient(
      0deg,
      rgba(17, 17, 17, 0.025),
      rgba(17, 17, 17, 0.025) 1px,
      transparent 1px,
      transparent 34px
    ),
    var(--paper);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.site-shell {
  min-height: 100vh;
}

.masthead {
  background:
    linear-gradient(90deg, rgba(20, 168, 215, 0.18), transparent 30%),
    linear-gradient(270deg, rgba(230, 59, 52, 0.18), transparent 28%),
    #111;
  color: #fff;
  border-bottom: 6px solid #050505;
}

.masthead-inner,
.page-wrap,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.masthead-inner {
  padding: 22px 0 18px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 78px;
  height: 78px;
  border: 4px solid #050505;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.brand-kicker {
  margin: 0 0 4px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.brand-title {
  margin: 0;
  font-family: "Baskerville", "Georgia", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.75);
  max-width: 56ch;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.top-nav a,
.inline-link {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.top-nav a:hover,
.inline-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-wrap {
  padding: 28px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(290px, 0.8fr);
  gap: 26px;
  align-items: start;
}

.hero-panel,
.panel,
.fallacy-card,
.category-card,
.detail-section,
.note-panel {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 30px;
  align-self: start;
}

.hero-title {
  margin: 0;
  font-family: "Baskerville", "Georgia", serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.95;
}

.hero-lead {
  margin: 16px 0 0;
  max-width: 58ch;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(18, 18, 18, 0.1);
}

.button-primary {
  background: var(--ink);
  color: #fff;
}

.button-secondary {
  background: transparent;
}

.hero-side {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(20, 168, 215, 0.08), transparent),
    linear-gradient(0deg, rgba(230, 59, 52, 0.08), transparent),
    var(--paper-strong);
}

.stat-grid,
.category-grid,
.fallacy-grid,
.detail-grid,
.meta-grid {
  display: grid;
  gap: 18px;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.section-block {
  margin-top: 28px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title {
  margin: 0;
  font-family: "Baskerville", "Georgia", serif;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  line-height: 1;
}

.section-copy {
  margin: 6px 0 0;
  color: var(--ink-soft);
  max-width: 65ch;
}

.category-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.category-card,
.fallacy-card {
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.category-card::before,
.fallacy-card::before,
.detail-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--cyan), var(--red));
}

.category-card h3,
.fallacy-card h3 {
  margin: 0 0 10px;
  font-family: "Baskerville", "Georgia", serif;
  font-size: 1.45rem;
}

.category-card h3 a,
.fallacy-card h3 a {
  transition: color 160ms ease;
}

.category-card h3 a:hover,
.category-card h3 a:focus-visible,
.fallacy-card h3 a:hover,
.fallacy-card h3 a:focus-visible {
  color: var(--cyan);
}

.card-copy {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.teaching-pill-row,
.path-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.gauge-pill-row {
  margin-top: 14px;
}

.teaching-pill,
.path-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.path-link-chip {
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.path-link-chip:hover,
.path-link-chip:focus-visible {
  color: var(--red);
  border-color: rgba(230, 59, 52, 0.35);
  background: #fff;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border: 1px solid currentColor;
}

.pill-Formal { color: #3557b6; background: rgba(53, 87, 182, 0.08); }
.pill-Mathematical { color: #0d7b79; background: rgba(13, 123, 121, 0.08); }
.pill-Causal { color: #b24f00; background: rgba(178, 79, 0, 0.08); }
.pill-Linguistic { color: #8a2f6b; background: rgba(138, 47, 107, 0.08); }
.pill-Conceptual { color: #57611f; background: rgba(87, 97, 31, 0.09); }
.pill-Evidential { color: #155b8f; background: rgba(21, 91, 143, 0.08); }
.pill-Perceptual { color: #8a4f1f; background: rgba(138, 79, 31, 0.08); }
.pill-Perspectival { color: #6f4fd1; background: rgba(111, 79, 209, 0.08); }
.pill-Epistemic { color: #8a2f2f; background: rgba(138, 47, 47, 0.08); }
.pill-Tactical { color: #145d4c; background: rgba(20, 93, 76, 0.08); }
.pill-Emotional { color: #a02f4d; background: rgba(160, 47, 77, 0.08); }

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.detail-hero-with-illustration {
  grid-template-columns: minmax(0, 1.39fr) minmax(320px, 0.8fr);
}

.detail-section {
  padding: 24px;
  align-self: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: #fff;
  background: #1f2937;
}

.detail-title {
  margin: 0;
  font-family: "Baskerville", "Georgia", serif;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 0.98;
}

.detail-deck {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
  max-width: 60ch;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.detail-card-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.detail-card-value {
  margin: 0;
  font-size: 1.03rem;
}

.profile-reference {
  margin-top: 22px;
}

.meta-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.reference-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.reference-meta-grid .muted strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.family-name,
.family-heading {
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: balance;
}

.family-anchor {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.family-anchor:hover,
.family-anchor:focus-visible {
  color: var(--red);
}

.family-slash {
  opacity: 0.72;
}

.note-panel {
  padding: 18px;
}

.note-panel h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.assessment-primer-panel {
  padding: 20px 22px;
  margin-top: 12px;
}

.assessment-primer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 20px 28px;
  align-items: start;
}

.assessment-primer-grid .muted {
  margin: 0;
}

.assessment-primer-guide {
  margin-top: 18px;
}

.family-note {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}

.family-link-row {
  margin: 12px 0 0;
}

.gauge-section {
  margin-top: 18px;
}

.gauge-note {
  margin: 0 0 14px;
}

.gauge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.gauge-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(20, 168, 215, 0.05), transparent 44%),
    #fff;
  overflow: hidden;
}

.gauge-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--red));
}

.gauge-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.gauge-kicker {
  margin: 0;
  color: #155b8f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gauge-score {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.gauge-card h4 {
  margin: 10px 0 8px;
  font-size: 1.02rem;
}

.gauge-summary {
  margin: 0;
  min-height: 3.8em;
}

.gauge-meter {
  --value: 50;
  position: relative;
  margin-top: 16px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(20, 168, 215, 0.2), rgba(17, 17, 17, 0.08), rgba(230, 59, 52, 0.2));
  overflow: hidden;
}

.gauge-meter::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(10% - 1px),
      rgba(255, 255, 255, 0.7) calc(10% - 1px),
      rgba(255, 255, 255, 0.7) 10%
    );
  pointer-events: none;
}

.gauge-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--value) * 1%);
  background: linear-gradient(90deg, rgba(20, 168, 215, 0.48), rgba(230, 59, 52, 0.58));
}

.gauge-meter-marker {
  position: absolute;
  top: 50%;
  left: calc(var(--value) * 1%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #111111;
  border: 3px solid #ffffff;
  box-shadow: 0 5px 14px rgba(17, 17, 17, 0.18);
  transform: translate(-50%, -50%);
}

.gauge-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompt-grid {
  align-items: start;
}

.prompt-card {
  padding: 24px;
}

.prompt-requirement {
  margin-top: 16px;
  padding: 16px 18px;
}

.prompt-requirement-label {
  margin: 0 0 8px;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompt-requirement .muted {
  margin: 0;
}

.prompt-directory {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.prompt-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.prompt-copy-button {
  min-width: 134px;
}

.prompt-copy-button.copied {
  background: #111111;
  color: #ffffff;
}

.prompt-textarea {
  width: 100%;
  min-height: 620px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  color: var(--ink);
  padding: 18px;
  font: 0.95rem/1.7 "SFMono-Regular", "Menlo", "Consolas", monospace;
  resize: vertical;
}

.prompt-textarea:focus {
  outline: 2px solid rgba(20, 168, 215, 0.35);
  outline-offset: 2px;
}

.about-profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.about-card-stack {
  display: grid;
  gap: 18px;
}

.about-portrait-panel {
  padding: 18px;
}

.about-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #eef2f7;
}

.about-portrait-caption,
.about-summary {
  margin: 14px 0 0;
}

.about-credential-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.about-credential-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fafc;
  color: var(--ink-soft);
}

.about-origin-title {
  max-width: 18ch;
}

.text-link {
  color: #155b8f;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  transition: color 160ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--red);
}

.detail-illustration-shell {
  display: block;
  padding: 20px;
  background: #111111;
}

.detail-illustration-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  border: 1px solid var(--line);
  background: #111111;
}

.detail-illustration-copy {
  margin-top: 16px;
  color: #ffffff;
}

.detail-illustration-label {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-illustration-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.7;
}

.analogy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.analogy-card {
  position: relative;
  overflow: hidden;
}

.analogy-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
}

.analogy-claim-card {
  background: linear-gradient(180deg, rgba(230, 59, 52, 0.08), #ffffff 42%);
}

.analogy-claim-card::before {
  background: linear-gradient(90deg, rgba(230, 59, 52, 0.85), rgba(230, 59, 52, 0.35));
}

.analogy-response-card {
  background: linear-gradient(180deg, rgba(20, 168, 215, 0.08), #ffffff 42%);
}

.analogy-response-card::before {
  background: linear-gradient(90deg, rgba(20, 168, 215, 0.85), rgba(20, 168, 215, 0.35));
}

.analogy-label {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.analogy-text {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.75;
}

.theory-article-grid,
.theory-family-grid {
  align-items: start;
}

.theory-article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theory-article-card,
.theory-family-card {
  align-self: start;
}

.theory-family-card h4 {
  margin: 0 0 10px;
}

.theory-article-intro {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.theory-callout {
  background:
    linear-gradient(180deg, rgba(20, 168, 215, 0.08), transparent),
    #ffffff;
}

.theory-callout + .category-grid,
.theory-callout + .two-column,
.theory-callout + .prompt-grid {
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .theory-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.theory-formula {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

.theory-prompt-box {
  margin: 16px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  color: var(--ink);
  font: 0.94rem/1.7 "SFMono-Regular", "Menlo", "Consolas", monospace;
  white-space: pre-wrap;
  overflow-x: auto;
}

.case-list {
  display: grid;
  gap: 14px;
}

.case-item {
  margin: 0;
  padding: 18px 18px 18px 20px;
  border-left: 4px solid var(--cyan);
  background: #fff;
  border-radius: 0 18px 18px 0;
}

.case-item:nth-child(even) {
  border-left-color: var(--red);
  background: #fff;
}

.case-summary {
  margin: 0;
}

.case-title {
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.5;
}

.case-source {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.case-title a,
.case-source a {
  color: #155b8f;
  text-decoration: underline;
  text-decoration-color: rgba(21, 91, 143, 0.35);
  text-underline-offset: 2px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.case-title a:hover,
.case-title a:focus-visible,
.case-source a:hover,
.case-source a:focus-visible {
  color: var(--red);
  text-decoration-color: rgba(230, 59, 52, 0.4);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.breadcrumbs span {
  opacity: 0.55;
}

.search-panel {
  padding: 20px;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(170px, 0.8fr)) auto;
  gap: 12px;
}

.search-input,
.search-select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
}

.search-reset {
  border-radius: 14px;
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  padding: 13px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.search-reset:hover,
.search-reset:focus-visible {
  transform: translateY(-1px);
  background: #f8fafc;
  border-color: var(--red);
}

.search-meta {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.search-empty {
  margin-top: 14px;
}

.family-guide-panel {
  padding: 20px;
}

.family-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.family-guide-card {
  padding: 20px;
}

.family-guide-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.family-guide-card-link:hover,
.family-guide-card-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(21, 91, 143, 0.28);
  box-shadow: 0 18px 40px rgba(18, 18, 18, 0.08);
}

.family-guide-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.family-guide-top h4 {
  margin: 0;
  flex: 1 1 auto;
}

.family-guide-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #edf6fb;
  color: #1c5e89;
  font-size: 0.88rem;
  font-weight: 700;
}

.family-guide-link-label {
  margin: 14px 0 0;
  color: #155b8f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  transition: color 160ms ease;
}

.family-guide-card-link:hover .family-guide-link-label,
.family-guide-card-link:focus-visible .family-guide-link-label {
  color: var(--red);
}

.button-compact {
  margin-top: 14px;
  padding: 10px 14px;
  font-size: 0.95rem;
}

.comparison-grid,
.quiz-grid {
  align-items: start;
}

.assessment-card-link {
  margin: 14px 0 0;
}

.comparison-card h4,
.quiz-card h4,
.repair-card h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.argument-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.argument-node {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
}

.argument-node::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--red));
}

.argument-node-label {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.argument-node-text {
  margin: 0;
  color: var(--ink-soft);
}

.assessment-example-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.assessment-example-text {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.55;
  font-weight: 700;
  color: var(--ink);
}

.assessment-example-note {
  margin-top: 14px;
}

.assessment-runner-panel {
  padding: 24px;
}

.assessment-banner {
  margin-top: 18px;
}

.assessment-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 860px) {
  .assessment-primer-grid {
    grid-template-columns: 1fr;
  }
}

.assessment-items {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.assessment-question-card {
  padding: 22px;
}

.assessment-question-title {
  margin: 0 0 12px;
}

.assessment-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.assessment-results {
  margin-top: 20px;
}

.assessment-outcome-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.assessment-outcome-group {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
}

.assessment-outcome-group h4 {
  margin: 0 0 10px;
}

.assessment-outcome-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assessment-outcome-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
}

.assessment-outcome-chip-correct {
  background: #e9f7ef;
  color: #166534;
}

.assessment-outcome-chip-incorrect {
  background: #fcebea;
  color: #b91c1c;
}

.assessment-outcome-empty {
  color: var(--ink-soft);
  font-weight: 700;
}

.assessment-score-title {
  margin: 8px 0 10px;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
}

.assessment-review-accordion {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
}

.assessment-review-accordion summary {
  cursor: pointer;
  font-weight: 800;
}

.assessment-review-accordion[open] summary {
  margin-bottom: 12px;
}

.assessment-review-links {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.quiz-example-shell {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.quiz-example-label {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-example-text {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.65;
  font-weight: 700;
  color: var(--ink);
}

.quiz-example-note {
  margin: 12px 0 0;
}

.quiz-options {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.quiz-option {
  display: flex;
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: #fff;
}

.quiz-option input {
  margin-top: 4px;
}

.quiz-textarea {
  width: 100%;
  min-height: 132px;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 14px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.quiz-feedback {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #f8fafc;
}

.quiz-feedback p {
  margin: 0 0 10px;
}

.quiz-feedback p:last-child {
  margin-bottom: 0;
}

.dialogue-answer-guide {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.dialogue-answer-chip {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 10px;
  background: #fff;
  text-align: center;
  display: grid;
  gap: 4px;
}

.dialogue-answer-chip-side {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dialogue-answer-chip-kind {
  font-weight: 800;
  color: var(--ink);
}

.dialogue-example-shell {
  margin-bottom: 18px;
}

.dialogue-illustration-shell {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dialogue-assessment-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: #fff;
}

.dialogue-transcript-toggle {
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
}

.dialogue-transcript-toggle summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}

.dialogue-transcript-toggle[open] summary {
  margin-bottom: 14px;
}

.dialogue-transcript {
  display: grid;
  gap: 12px;
}

.dialogue-turn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: min(78%, 720px);
}

.dialogue-turn-left {
  margin-right: auto;
}

.dialogue-turn-right {
  margin-left: auto;
  align-items: flex-end;
}

.dialogue-turn-label {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialogue-turn-bubble {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  line-height: 1.7;
  color: var(--ink);
}

.dialogue-turn-right .dialogue-turn-bubble {
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.dialogue-prompt {
  margin: 0 0 12px;
  font-weight: 800;
  color: var(--ink);
}

.dialogue-options-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.dialogue-option {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 104px;
  text-align: center;
}

.dialogue-option:has(input:checked) {
  border-color: var(--ink);
  background: #f8fafc;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.06);
}

.dialogue-option input {
  margin: 0 0 6px;
}

.dialogue-option-side {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialogue-option-kind {
  color: var(--ink);
  font-weight: 800;
}

.assessment-question-correct {
  border-color: #86d4a2;
  box-shadow: 0 0 0 1px rgba(22, 101, 52, 0.08);
}

.assessment-question-incorrect {
  border-color: #f0b6b3;
  box-shadow: 0 0 0 1px rgba(185, 28, 28, 0.08);
}

.repair-checklist {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.repair-checklist-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.repair-checklist ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.repair-checklist li + li {
  margin-top: 8px;
}

.repair-model {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.repair-model summary {
  cursor: pointer;
  font-weight: 800;
}

.repair-model[open] summary {
  margin-bottom: 10px;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 48px;
  background: #fff;
}

.footer-inner {
  padding: 24px 0 36px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-note {
  margin: 0;
}

.footer-note + .footer-note {
  margin-top: 6px;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compact-columns {
  align-items: start;
}

.lab-tab-shell {
  display: grid;
  gap: 16px;
}

.lab-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lab-tab {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink-soft);
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.lab-tab:hover,
.lab-tab:focus-visible {
  color: var(--ink);
  border-color: rgba(20, 168, 215, 0.35);
  transform: translateY(-1px);
}

.lab-tab.active {
  color: #fff;
  background: #1f2937;
  border-color: #1f2937;
}

.lab-panel {
  display: block;
}

.lab-panel-kicker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 168, 215, 0.1);
  color: #155b8f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.audit-widget {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.audit-header h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.audit-header p {
  margin: 0;
}

.audit-step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.audit-step-button {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 14px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  color: var(--ink-soft);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.audit-step-button:hover,
.audit-step-button:focus-visible {
  border-color: rgba(20, 168, 215, 0.35);
  color: var(--ink);
  transform: translateY(-1px);
}

.audit-step-button.active {
  border-color: #1f2937;
  background: #1f2937;
  color: #ffffff;
}

.audit-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(20, 168, 215, 0.16);
  color: #155b8f;
  font-size: 0.84rem;
  font-weight: 800;
}

.audit-step-button.active .audit-step-index {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.audit-step-label {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.audit-progress-track {
  margin: 16px 0 18px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(20, 168, 215, 0.18), rgba(230, 59, 52, 0.18));
  overflow: hidden;
}

.audit-progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), #1f2937);
  transition: width 200ms ease;
}

.audit-panel-wrap {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
}

.audit-panel-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.audit-panel-body {
  margin: 0;
  color: var(--ink-soft);
}

.audit-feedback {
  margin: 14px 0 0;
}

.lab-example {
  margin: 12px 0 0;
}

.related-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.muted {
  color: var(--ink-soft);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero,
  .detail-hero,
  .about-profile-grid,
  .analogy-grid,
  .two-column,
  .related-grid,
  .argument-map,
  .family-guide-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .reference-meta-grid {
    grid-template-columns: 1fr;
  }

  .dialogue-answer-guide,
  .dialogue-options-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .assessment-outcome-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .masthead-inner,
  .page-wrap,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .hero-panel,
  .hero-side,
  .detail-section,
  .category-card,
  .fallacy-card {
    padding: 18px;
  }

  .detail-illustration-shell {
    padding: 15px;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .top-nav {
    gap: 8px;
  }

  .top-nav a {
    font-size: 0.88rem;
  }

  .audit-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audit-widget {
    padding: 18px;
  }

  .dialogue-answer-guide,
  .dialogue-options-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dialogue-turn {
    max-width: 100%;
  }
}
