:root {
  color-scheme: light;
  --ink: #13201f;
  --muted: #5e6b68;
  --line: #d8e1de;
  --surface: #ffffff;
  --surface-2: #f4f8f7;
  --teal: #2f8f85;
  --teal-soft: #e2f3f0;
  --coral: #d35d47;
  --coral-soft: #fae7e2;
  --gold: #d0a31f;
  --blue: #2d5f8b;
  --shadow: 0 18px 50px rgba(27, 43, 41, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(244, 248, 247, 0.92), rgba(255, 255, 255, 0.96)),
    radial-gradient(circle at top left, rgba(47, 143, 133, 0.12), transparent 42%),
    radial-gradient(circle at bottom right, rgba(211, 93, 71, 0.1), transparent 36%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 6px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header nav {
  justify-content: flex-end;
}

.brand {
  font-weight: 850;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 7px 9px rgba(27, 43, 41, 0.2));
}

.brand-name {
  font-size: 0.98rem;
}

.site-header nav a {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.external-sites {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 247, 0.94));
  border: 1px solid rgba(47, 143, 133, 0.24);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(27, 43, 41, 0.1);
}

.external-sites-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.external-sites-links {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.external-site-item {
  position: relative;
  display: inline-flex;
}

.external-sites-links a {
  padding: 6px 9px;
  border-radius: 999px;
}

.external-sites-links a:hover {
  background: rgba(47, 143, 133, 0.12);
}

.external-site-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 5px;
  width: 236px;
  padding: 12px;
  color: #30413e;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(47, 143, 133, 0.24);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(27, 43, 41, 0.18);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 140ms ease,
    transform 140ms ease,
    visibility 140ms ease;
  visibility: hidden;
}

.external-site-popover::before {
  position: absolute;
  top: -6px;
  right: 18px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(47, 143, 133, 0.24);
  border-left: 1px solid rgba(47, 143, 133, 0.24);
  content: "";
  transform: rotate(45deg);
}

.external-site-item:first-child .external-site-popover {
  right: auto;
  left: 0;
}

.external-site-item:first-child .external-site-popover::before {
  right: auto;
  left: 18px;
}

.external-site-popover strong {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.external-site-item:hover .external-site-popover,
.external-site-item:focus-within .external-site-popover {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.site-header nav a:hover,
.back-link:hover {
  color: var(--ink);
}

.landing,
.debate-page,
.not-found {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.landing-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(240px, 0.75fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
  min-height: clamp(480px, 72vh, 620px);
  padding: clamp(28px, 4vw, 48px) 0;
}

.intro-copy h1,
.debate-hero h1,
.not-found h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 5.7rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.lede {
  max-width: 580px;
  margin: 22px 0 0;
  color: #30413e;
  font-size: clamp(1.05rem, 2vw, 1.42rem);
}

.topic-divider {
  width: min(100%, 580px);
  height: 1px;
  margin: 24px 0 12px;
  background: linear-gradient(90deg, rgba(47, 143, 133, 0.42), rgba(47, 143, 133, 0));
}

.topic-list {
  max-width: 620px;
  margin: 0;
  color: #4b5d59;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.7;
}

.topic-list span {
  color: rgba(47, 143, 133, 0.85);
  padding: 0 6px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logo-showcase {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-self: end;
  justify-content: center;
  width: min(100%, 464px);
  min-width: 0;
  margin: 0;
  padding: clamp(10px, 1.6vw, 18px);
}

.logo-showcase::before,
.logo-showcase::after {
  content: "";
  position: absolute;
  border-radius: 8px;
}

.logo-showcase::before {
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(232, 224, 211, 0.78)),
    linear-gradient(135deg, rgba(47, 143, 133, 0.18), rgba(211, 93, 71, 0.14));
  border: 1px solid rgba(19, 32, 31, 0.12);
  box-shadow:
    0 34px 72px rgba(27, 43, 41, 0.22),
    0 10px 22px rgba(27, 43, 41, 0.12);
  transform: rotate(-1.2deg);
}

.logo-showcase::after {
  inset: clamp(6px, 1vw, 12px);
  z-index: -1;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(208, 163, 31, 0.26);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.84);
}

.logo-showcase img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 420px);
  height: auto;
  max-height: min(64vh, 560px);
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(19, 32, 31, 0.16);
  border-radius: 8px;
  box-shadow:
    0 20px 46px rgba(27, 43, 41, 0.2),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
}

.debate-list {
  padding: 20px 0 76px;
}

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

.section-heading h2,
.debate-section h2,
.overall h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0;
}

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

.debate-card,
.argument,
.overall-side,
.scoreboard,
.reference-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.debate-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(27, 43, 41, 0.08);
}

.card-topline,
.argument-meta,
.section-score-pair,
.card-actions,
.argument-footer,
.overall-score,
.side-score-strip {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-topline,
.argument-meta {
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.card-label {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.debate-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  min-height: 24px;
  color: #ffffff;
  background: var(--ink);
  border: 1px solid rgba(19, 32, 31, 0.22);
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1;
}

.debate-card h3 {
  margin: 0;
  font-size: 1.4rem;
}

.debate-card p {
  margin: 0;
  color: var(--muted);
}

.motion {
  color: var(--ink) !important;
  font-weight: 750;
}

.motion.large {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.38rem);
}

.source-note {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.scoring-note {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: start;
  margin: 0 0 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 8px;
}

.interaction-guide {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 20px;
  padding: 12px 16px;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
}

.interaction-guide strong {
  min-width: max-content;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interaction-guide span {
  color: rgba(255, 255, 255, 0.8);
}

.scoring-note strong,
.quote-side {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scoring-note span {
  color: #30413e;
}

.assessment-model {
  flex-basis: 100%;
  color: var(--muted) !important;
  font-size: 0.82rem;
  font-weight: 800;
}

.quote-panel {
  margin: 0 0 18px;
  padding: 4px 0 0;
}

.quote-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.quote-panel-head h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

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

.quote-card {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 240px;
  gap: 18px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 247, 0.9));
  border: 1px solid var(--line);
  border-top: 7px solid var(--teal);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(27, 43, 41, 0.1);
}

.quote-card.coral {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 231, 226, 0.62));
  border-top-color: var(--coral);
}

.quote-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.quote-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #30413e;
  font-size: 1.02rem;
}

.quote-card::after {
  content: "\"";
  position: absolute;
  right: 18px;
  bottom: -34px;
  color: rgba(47, 143, 133, 0.1);
  font-family: Georgia, serif;
  font-size: 11rem;
  line-height: 1;
}

.quote-card.coral::after {
  color: rgba(211, 93, 71, 0.1);
}

.side-score-strip {
  align-items: stretch;
  margin-top: 4px;
}

.mini-score {
  position: relative;
  flex: 1;
  min-width: 0;
  padding: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-score span,
.mini-score strong {
  position: relative;
  z-index: 1;
}

.mini-score span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.mini-score strong {
  display: block;
  margin-top: 4px;
  font-size: 1.55rem;
  line-height: 1;
}

.mini-score i {
  position: absolute;
  inset: auto auto 0 0;
  width: var(--score-width);
  height: 5px;
  background: var(--teal);
}

.mini-score.coral i {
  background: var(--coral);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

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

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

.button:hover {
  transform: translateY(-1px);
}

.debate-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(128px, 178px) 270px;
  gap: clamp(18px, 3vw, 28px);
  align-items: end;
  padding: clamp(28px, 5vw, 58px) 0 24px;
}

.debate-hero h1 {
  max-width: 840px;
  font-size: clamp(1.5rem, 3.9vw, 3.35rem);
  line-height: 1;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 850;
  text-decoration: none;
}

.scoreboard {
  display: grid;
  gap: 10px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.scoreboard > div:first-child {
  padding: 12px;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
}

.scoreboard > div:first-child span {
  display: block;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.scoreboard > div:first-child strong {
  display: block;
  font-size: 2.6rem;
  line-height: 1;
}

.debate-gloves-panel {
  align-self: center;
  justify-self: center;
  width: min(100%, 178px);
  margin: 0;
}

.debate-gloves-panel img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 26px rgba(27, 43, 41, 0.22));
}

.columns-head {
  position: sticky;
  top: 64px;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 0;
  background: rgba(244, 248, 247, 0.92);
  backdrop-filter: blur(12px);
}

.side-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.side-heading span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.side-heading.teal {
  border-left: 5px solid var(--teal);
}

.side-heading.coral {
  border-left: 5px solid var(--coral);
}

.debate-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.section-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.section-score {
  min-width: 94px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.section-score span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.section-score strong {
  font-size: 1.6rem;
  line-height: 1;
}

.section-score.strong {
  border-color: rgba(47, 143, 133, 0.35);
  background: var(--teal-soft);
}

.section-score.mixed {
  border-color: rgba(208, 163, 31, 0.36);
  background: #fff6d9;
}

.section-score.weak {
  border-color: rgba(211, 93, 71, 0.34);
  background: var(--coral-soft);
}

.exchange-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px 14px;
}

.argument {
  position: relative;
  min-height: 0;
  padding: 14px;
}

.argument::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 8px 0 0 8px;
  background: var(--teal);
}

.argument.coral::before {
  background: var(--coral);
}

.argument p {
  margin: 12px 0;
  color: #243633;
  font-size: 0.98rem;
}

.argument-meta strong {
  min-width: 42px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--surface-2);
  text-align: center;
}

.argument-meta strong.strong {
  background: var(--teal-soft);
}

.argument-meta strong.mixed {
  background: #fff6d9;
}

.argument-meta strong.weak {
  background: var(--coral-soft);
}

.argument-footer {
  flex-wrap: wrap;
  align-items: center;
  margin-top: auto;
}

.critique {
  position: relative;
  display: inline-flex;
}

.critique button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.critique-popover {
  position: fixed;
  left: clamp(24px, 6vw, 80px);
  top: 86px;
  z-index: 30;
  display: grid;
  gap: 8px;
  width: min(520px, calc(100vw - 44px));
  max-height: calc(100vh - 112px);
  padding: 13px;
  overflow: auto;
  color: #fff;
  background: #13201f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.critique:hover .critique-popover,
.critique:focus-within .critique-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  text-decoration: none;
}

.tag-wrap {
  position: relative;
  display: inline-flex;
}

.tag-popover {
  position: fixed;
  left: clamp(24px, 6vw, 80px);
  top: 86px;
  z-index: 35;
  display: grid;
  gap: 8px;
  width: min(520px, calc(100vw - 44px));
  max-height: calc(100vh - 112px);
  padding: 14px;
  overflow: auto;
  color: #fff;
  background: #13201f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.tag-popover strong {
  font-size: 1rem;
}

.tag-popover em {
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.tag-context {
  color: rgba(255, 255, 255, 0.84);
}

.tag-popover-note {
  padding-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tag-wrap:hover .tag-popover,
.tag-wrap:focus-within .tag-popover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.tag.fallacy {
  color: #8f3829;
  background: var(--coral-soft);
  border-color: rgba(211, 93, 71, 0.28);
}

.tag.bias {
  color: #1e625c;
  background: var(--teal-soft);
  border-color: rgba(47, 143, 133, 0.28);
}

.tag.clean {
  color: #586663;
  background: var(--surface-2);
}

.overall {
  padding: 34px 0 76px;
  border-top: 1px solid var(--line);
}

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

.overall-side {
  padding: 18px;
}

.overall-side.teal {
  border-top: 5px solid var(--teal);
}

.overall-side.coral {
  border-top: 5px solid var(--coral);
}

.overall-score {
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.overall-score span {
  color: var(--muted);
  font-weight: 850;
}

.overall-score strong {
  font-size: 2.4rem;
  line-height: 1;
}

.overall-side h3 {
  margin: 18px 0 8px;
  font-size: 1rem;
  text-transform: uppercase;
}

.overall-side ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: #30413e;
}

.inline-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 4px;
}

.inline-links a {
  color: var(--blue);
  font-weight: 800;
}

.not-found {
  min-height: calc(100vh - 64px);
  padding: 80px 0;
}

.reference-page {
  width: min(820px, calc(100% - 32px));
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  padding: clamp(34px, 6vw, 76px) 0;
}

.reference-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
}

.reference-nav .back-link {
  margin-bottom: 0;
}

.reference-nav span {
  color: var(--muted);
  font-weight: 850;
}

.reference-card {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  border-top: 6px solid var(--coral);
  box-shadow: var(--shadow);
}

.reference-card.bias {
  border-top-color: var(--teal);
}

.reference-card h1 {
  margin: 0;
  font-size: clamp(2.1rem, 7vw, 4.4rem);
  line-height: 0.95;
}

.reference-card p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: #30413e;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.reference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reference-contexts {
  padding: 28px 0 0;
}

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

.reference-context-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.reference-context-card h3,
.reference-context-card p,
.reference-context-card blockquote {
  margin: 0;
}

.reference-speaker {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.reference-context-card blockquote {
  padding-left: 14px;
  color: #243633;
  border-left: 4px solid var(--line);
  font-size: 1rem;
}

.reference-context-card > p:not(.reference-speaker):not(.reference-debate-return) {
  color: #30413e;
}

.reference-debate-link,
.reference-debate-return a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.reference-debate-link:hover,
.reference-debate-return a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reference-debate-return {
  font-size: 0.88rem;
}

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

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-header nav {
    justify-content: flex-start;
    width: 100%;
  }

  .landing-panel,
  .debate-hero,
  .quote-grid,
  .overall-grid {
    grid-template-columns: 1fr;
  }

  .landing-panel {
    min-height: auto;
  }

  .logo-showcase {
    justify-self: center;
    width: min(100%, 370px);
  }

  .logo-showcase img {
    width: min(100%, 340px);
    max-height: 480px;
  }

  .debate-gloves-panel {
    width: min(100%, 150px);
  }

  .columns-head {
    top: 108px;
  }

  .quote-card {
    min-height: 210px;
  }

  .quote-card blockquote {
    font-size: 2.15rem;
  }

  .section-title-row,
  .section-score-pair,
  .interaction-guide,
  .scoring-note,
  .side-score-strip,
  .card-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .landing,
  .debate-page,
  .not-found {
    width: min(100% - 20px, 1180px);
  }

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

  .site-header nav {
    flex-wrap: wrap;
  }

  .external-sites {
    border-radius: 12px;
  }

  .external-sites-label {
    border-radius: 8px;
  }

  .external-site-popover {
    width: min(236px, calc(100vw - 32px));
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 0.94rem;
  }

  .intro-copy h1 {
    font-size: clamp(3rem, 19vw, 5.4rem);
  }

  .columns-head,
  .exchange-grid {
    grid-template-columns: 1fr;
  }

  .columns-head {
    position: static;
  }

  .argument {
    min-height: auto;
  }

  .quote-panel-head h2 {
    font-size: 1.7rem;
  }

  .quote-card {
    min-height: auto;
    padding: 20px;
  }

  .quote-card blockquote {
    font-size: 1.78rem;
  }

  .critique-popover {
    position: fixed;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 18px;
    width: auto;
    max-height: min(620px, calc(100vh - 96px));
  }

  .tag-popover {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 18px;
    width: auto;
    max-height: min(620px, calc(100vh - 96px));
  }
}
