:root {
  --bg: #f3f0e8;
  --paper: #fffdf7;
  --paper-soft: #f7f2e7;
  --ink: #241f1a;
  --muted: #665b4d;
  --soft: #9b9183;
  --line: rgba(63, 45, 28, 0.16);
  --line-strong: rgba(63, 45, 28, 0.28);
  --earth: #241f1a;
  --moss: #60727a;
  --blue: #60727a;
  --civic: #60727a;
  --civic-dark: #241f1a;
  --civic-soft: #d7dde0;
  --gold: #a9822d;
  --rose: #b55b4a;
  --tone-1: #f4e8d7;
  --tone-2: #d9bc8f;
  --tone-3: #b38459;
  --tone-4: #5b341b;
  --tone-empty: #cfccc0;
  --focus: #60727a;
  --radius: 12px;
  --container: 1120px;
  --shadow: 0 18px 58px rgba(36, 31, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(96, 114, 122, 0.12), transparent 34rem),
    linear-gradient(180deg, #fbfaf6 0, var(--bg) 36rem);
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 32px;
  color: var(--ink);
  text-align: center;
}

.app-loading-mark {
  display: grid;
  width: 112px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(36, 31, 26, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(90deg, #fffdf7 0 54%, var(--civic) 54% 100%);
  box-shadow: 0 18px 48px rgba(36, 31, 26, 0.12);
  color: var(--ink);
  font-size: 2.15rem;
  font-weight: 860;
  letter-spacing: 0;
  position: relative;
}

.app-loading-mark::after {
  content: "RVK";
  position: absolute;
  right: 12px;
  color: #fffdf7;
  font-size: 0.9rem;
  font-weight: 840;
  letter-spacing: 0.04em;
}

.app-loading-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.app-loading-text {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

#blazor-error-ui {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 12px;
  max-width: 720px;
  margin-inline: auto;
  border: 1px solid rgba(36, 31, 26, 0.16);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.96);
  box-shadow: 0 18px 58px rgba(36, 31, 26, 0.18);
  color: var(--ink);
  padding: 14px 16px;
  backdrop-filter: blur(14px);
}

#blazor-error-ui .reload {
  margin-left: auto;
  border-radius: 999px;
  background: var(--ink);
  color: #fffdf7;
  font-weight: 720;
  padding: 8px 12px;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
}

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

button,
select {
  font: inherit;
}

strong,
b {
  font-weight: 620;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 58%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--earth);
  color: #fff;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.26);
  background: rgba(36, 31, 26, 0.9);
  color: #f8f4ec;
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font-size: 1rem;
  font-weight: 760;
}

.brand-mark {
  display: inline-flex;
  width: auto;
  min-width: 86px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 233, 227, 0.94));
  color: var(--civic-dark);
  padding: 0 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.hero-home::after {
  content: "X";
  position: absolute;
  left: 9px;
  color: #21170f;
  font-size: 1.15rem;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark strong {
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 860;
}

.brand-mark span {
  align-self: center;
  border-left: 1px solid rgba(33, 23, 15, 0.22);
  color: var(--civic);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  line-height: 1;
  padding-left: 6px;
  text-transform: uppercase;
}

.brand-name {
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0;
  white-space: nowrap;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
}

.top-nav a {
  border-radius: 999px;
  padding: 9px 13px;
}

.top-nav a:hover,
.top-nav a[aria-current="page"],
.top-nav a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-footer {
  border-top: 0.5px solid var(--line);
  background: rgba(255, 253, 247, 0.54);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 0.95rem;
}

.footer-inner > span {
  color: var(--ink);
  font-weight: 760;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.footer-inner a:hover {
  color: var(--ink);
}

.page-shell {
  padding-block: 36px 70px;
}

.hero {
  margin-bottom: 34px;
}

.hero-home {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 22px;
  padding: clamp(28px, 5vw, 56px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(28, 19, 12, 0.78) 0%, rgba(28, 19, 12, 0.42) 46%, rgba(28, 19, 12, 0.16) 100%),
    linear-gradient(0deg, rgba(28, 19, 12, 0.78), transparent 44%),
    url("../images/ulfarsardalur-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.hero-home::after {
  content: "X26";
  left: auto;
  right: clamp(22px, 4vw, 52px);
  top: clamp(22px, 4vw, 52px);
  display: grid;
  width: 118px;
  height: 78px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0 50%, rgba(18, 13, 9, 0.9) 50% 100%);
  color: #c9c8c2;
  font-size: 2.05rem;
  font-weight: 820;
  letter-spacing: 0;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.hero-home h1,
.hero-home .lead,
.hero-home .overline {
  max-width: 650px;
  position: relative;
  z-index: 1;
}

.hero-home h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.45rem, 7vw, 5.55rem);
  line-height: 0.96;
  font-weight: 680;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-home .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.06rem, 2vw, 1.35rem);
}

.overline,
.section-heading,
.legend-panel h2,
.priority-panel h2,
.party-answer-group h2,
.vision-card h2 {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-home .overline {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 12px;
}

.question-heading,
.party-hero,
.error-panel {
  margin-bottom: 28px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(246, 238, 221, 0.92));
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 10px 34px rgba(36, 31, 26, 0.08);
}

.question-heading h1,
.party-hero h1,
.error-panel h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.04;
  font-weight: 680;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card,
.notice-panel,
.about-card,
.about-contact,
.legend-panel,
.priority-panel,
.vision-card,
.nav-card,
.party-status-panel,
.answer-detail,
.topic-question-card {
  border: 0.5px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 8px 26px rgba(36, 31, 26, 0.06);
}

.stat-card {
  --stat-accent: #2f7d4d;
  min-height: 150px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--stat-accent);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--stat-accent) 14%, transparent);
}

.stat-answered {
  --stat-accent: #2f7d4d;
}

.stat-missing {
  --stat-accent: #c96f6a;
  border-color: rgba(184, 74, 74, 0.2);
  background: linear-gradient(135deg, rgba(255, 241, 238, 0.82), rgba(255, 253, 247, 0.7));
}

.stat-questions {
  --stat-accent: #2f6f91;
}

.stat-top,
.stat-value-row,
.stat-card small {
  position: relative;
  z-index: 1;
}

.stat-top,
.stat-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.stat-top i {
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--stat-accent);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--stat-accent) 14%, transparent);
}

.stat-card span,
.stat-card small {
  display: block;
  color: var(--muted);
}

.stat-card strong {
  display: block;
  margin-top: 14px;
  font-size: 3rem;
  line-height: 1.02;
  color: var(--ink);
  font-weight: 680;
}

.stat-card em {
  align-self: end;
  margin-bottom: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--stat-accent) 10%, #fff);
  color: color-mix(in srgb, var(--stat-accent) 72%, var(--ink));
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 700;
  padding: 5px 10px;
  white-space: nowrap;
}

.stat-card small {
  margin-top: 10px;
  font-size: 0.9rem;
}

.notice-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 46px;
  padding: 30px 34px;
  background:
    linear-gradient(120deg, rgba(36, 31, 26, 0.96), rgba(96, 114, 122, 0.9));
  color: #fff;
}

.notice-panel h2 {
  margin: 0;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 660;
}

.notice-panel p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0.5px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 22px;
  font-weight: 650;
  white-space: nowrap;
}

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

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

.about-page {
  max-width: 980px;
}

.about-page .question-heading {
  margin-bottom: 18px;
  border-radius: 12px;
  padding: 22px 28px;
  box-shadow: 0 8px 24px rgba(36, 31, 26, 0.05);
}

.about-page .question-heading .overline {
  margin: 0 0 8px;
  font-size: 0.68rem;
}

.about-page .question-heading h1 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.about-page .question-heading p:not(.overline) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.about-card {
  display: grid;
  gap: 15px;
  padding: 30px 34px;
}

.about-card h2,
.about-contact h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.2;
}

.about-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.about-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 16px;
  padding: 24px 28px;
}

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

.section-heading {
  margin: 0 0 16px;
}

.nav-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 46px;
}

.nav-card {
  min-height: 188px;
  padding: 26px 30px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(61, 40, 23, 0.12);
}

.nav-card strong,
.nav-card span {
  display: block;
}

.nav-card strong {
  margin-top: 16px;
  font-size: 1.35rem;
}

.nav-card > span:last-child {
  color: var(--muted);
  margin-top: 4px;
  font-size: 1rem;
}

.card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: #efe2cc;
  color: var(--earth);
}

.card-icon svg {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.party-status-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  padding: 22px 28px;
}

.party-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  color: var(--muted);
}

.party-status-row:hover .party-name {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.party-status-row.is-missing {
  color: #c24b31;
  pointer-events: none;
}

.party-name,
.matrix-party,
.detail-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.party-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--party-color);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--party-color) 15%, transparent);
}

.party-inline-logo {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0.5px solid color-mix(in srgb, var(--party-color) 18%, var(--line));
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--party-color) 8%, transparent);
  overflow: hidden;
}

.party-inline-logo img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.detail-head h2 .party-inline-logo {
  width: 30px;
  height: 30px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.toolbar label {
  color: var(--muted);
  font-size: 0.94rem;
}

.toolbar select {
  width: min(100%, 560px);
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 12px 16px;
}

.legend-panel {
  padding: 18px 22px;
  margin-bottom: 24px;
}

.legend-panel h2 {
  margin: 0 0 12px;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(var(--option-count), minmax(90px, 1fr));
  gap: 8px;
}

.legend-item {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.legend-swatch {
  height: 14px;
  border-radius: 999px;
}

.comparison-matrix {
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 22px;
}

.matrix-header,
.matrix-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.15fr) repeat(var(--option-count), minmax(120px, 1fr));
  gap: 7px;
  min-width: 760px;
}

.matrix-header {
  margin-bottom: 12px;
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
}

.matrix-header span:not(:first-child) {
  display: grid;
  min-height: 34px;
  place-items: end center;
}

.matrix-row {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
}

.matrix-row + .matrix-row {
  margin-top: 9px;
}

.matrix-row.is-selected .matrix-party {
  font-weight: 680;
}

.matrix-party {
  justify-content: flex-start;
  min-height: 50px;
  padding-right: 12px;
  text-align: left;
}

.matrix-cell {
  position: relative;
  display: grid;
  min-height: 50px;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.74);
  color: var(--earth);
  font-size: 1.32rem;
}

.matrix-choice-mark {
  line-height: 1;
}

.matrix-party-badge {
  display: none;
  pointer-events: none;
}

.matrix-row.is-selected .matrix-cell:not(:empty) {
  border-color: color-mix(in srgb, var(--party-color, var(--earth)) 70%, var(--line));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.matrix-cell.tone-1 {
  background: color-mix(in srgb, var(--party-color, var(--earth)) 14%, #fffdf7);
  color: color-mix(in srgb, var(--party-color, var(--earth)) 76%, #111);
}

.matrix-cell.tone-2 {
  background: color-mix(in srgb, var(--party-color, var(--earth)) 24%, #fffdf7);
  color: color-mix(in srgb, var(--party-color, var(--earth)) 82%, #111);
}

.matrix-cell.tone-3 {
  background: color-mix(in srgb, var(--party-color, var(--earth)) 34%, #fffdf7);
  color: color-mix(in srgb, var(--party-color, var(--earth)) 86%, #111);
}

.matrix-cell.tone-4 {
  background: color-mix(in srgb, var(--party-color, var(--earth)) 46%, #fffdf7);
  color: color-mix(in srgb, var(--party-color, var(--earth)) 92%, #111);
}

.matrix-cell.tone-empty {
  background: color-mix(in srgb, var(--party-color, var(--tone-empty)) 12%, #fffdf7);
  color: color-mix(in srgb, var(--party-color, var(--earth)) 72%, var(--ink));
}

.tone-1 {
  background: var(--tone-1);
  color: var(--earth);
}

.tone-2 {
  background: var(--tone-2);
  color: var(--earth);
}

.tone-3 {
  background: var(--tone-3);
  color: #21150c;
}

.tone-4 {
  background: var(--tone-4);
  color: #fff;
}

.tone-empty {
  background: var(--tone-empty);
  color: var(--ink);
}

.answer-detail {
  padding: 24px 30px;
  margin-bottom: 24px;
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.detail-head h2 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 680;
}

.detail-head > span {
  color: var(--muted);
  white-space: nowrap;
}

.answer-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 3px 12px;
  color: var(--earth);
  font-size: 0.92rem;
  font-weight: 700;
}

.answer-pill.tone-4 {
  color: #fff;
}

.answer-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 28px;
}

.answer-columns h3 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.answer-columns p,
.vision-card p,
.topic-question-card p {
  margin: 0;
  color: var(--muted);
}

.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-top: 0.5px solid var(--line);
  padding-top: 14px;
}

.pager .button:last-child {
  justify-self: end;
}

.pager > span {
  color: var(--muted);
}

.party-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.party-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 90px;
  height: 90px;
  place-items: center;
  border-radius: 22px;
  background: var(--party-color);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 760;
  box-shadow: 0 18px 46px color-mix(in srgb, var(--party-color) 28%, transparent);
}

.party-avatar-logo {
  border: 0.5px solid color-mix(in srgb, var(--party-color) 20%, var(--line));
  background: rgba(255, 253, 247, 0.95);
  overflow: hidden;
}

.party-avatar-logo img {
  display: block;
  width: 76%;
  height: 76%;
  object-fit: contain;
}

.party-hero > div:last-child {
  flex: 1;
}

.party-hero p {
  margin: 4px 0 0;
  color: var(--muted);
}

.priority-panel {
  padding: 24px 28px;
  margin-bottom: 34px;
  background:
    linear-gradient(135deg, rgba(36, 31, 26, 0.96), rgba(96, 114, 122, 0.9));
  color: #fff;
}

.priority-panel h2 {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.8);
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.priority-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 18px;
}

.priority-card span {
  flex: 0 0 42px;
  display: grid;
  width: 42px;
  height: 42px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--earth);
  color: #fff;
  font-weight: 760;
}

.priority-card:nth-child(3) span {
  background: var(--gold);
}

.party-answer-group {
  margin-top: 30px;
}

.party-answer-group h2 {
  margin: 0 0 14px;
}

.answer-list {
  display: grid;
  gap: 8px;
}

.answer-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  border: 0.5px solid rgba(63, 45, 28, 0.08);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.78);
  padding: 12px 20px;
}

.answer-list-row:hover {
  border-color: var(--line-strong);
  background: #fffdf7;
}

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

.vision-card {
  padding: 28px 30px;
  margin-top: 34px;
}

.vision-card h2 {
  margin: 0 0 14px;
}

.topic-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 4px;
}

.topic-tabs a {
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.62);
  padding: 9px 14px;
  color: var(--muted);
  white-space: nowrap;
}

.topic-tabs a[aria-current="page"],
.topic-tabs a:hover {
  border-color: var(--earth);
  background: var(--earth);
  color: #fff;
}

.topic-question-list {
  display: grid;
  gap: 16px;
}

.topic-question-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr) auto;
  align-items: center;
  gap: 22px;
  padding: 22px;
}

.topic-question-card .overline {
  margin: 0 0 4px;
}

.topic-question-card h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
  font-weight: 680;
}

.distribution {
  display: grid;
  gap: 8px;
}

.distribution-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(90px, 1fr) 24px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(63, 45, 28, 0.08);
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.error-panel {
  padding: 30px;
}

.hero-status {
  min-height: 420px;
}

.hero-status .home-hero-title {
  max-width: 980px;
  font-size: 4.1rem;
  line-height: 1.02;
}

.home-hero-title span {
  display: block;
}

.hero-status .lead {
  max-width: 760px;
}

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

.section-title-row .overline {
  margin: 0 0 4px;
}

.section-title-row h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 1.05;
}

.soft-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.76);
  color: var(--muted);
  padding: 6px 13px;
  font-size: 0.9rem;
  font-weight: 650;
}

.results-page .results-heading h1 {
  max-width: 820px;
}

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

.results-summary-grid article {
  min-height: 88px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.58);
  box-shadow: 0 6px 18px rgba(36, 31, 26, 0.04);
  padding: 14px 16px;
}

.results-summary-grid span,
.results-summary-grid small {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 680;
}

.results-summary-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 760;
  line-height: 1;
}

.results-summary-grid small {
  margin-top: 4px;
}

.results-table-card {
  border: 0.5px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 247, 0.82);
  box-shadow: 0 10px 34px rgba(36, 31, 26, 0.08);
  padding: clamp(18px, 3vw, 28px);
}

.results-table-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.1;
}

.results-table-wrap {
  overflow-x: auto;
  margin-top: 18px;
  border: 0.5px solid var(--line);
  border-radius: 14px;
}

.results-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: rgba(255, 253, 247, 0.68);
}

.results-table th,
.results-table td {
  border-bottom: 0.5px solid rgba(63, 45, 28, 0.12);
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

.results-table thead th {
  background: color-mix(in srgb, var(--moss) 18%, #fffdf7);
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
  font-size: 0.82rem;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.results-table tbody tr:nth-child(even) {
  background: rgba(243, 240, 232, 0.5);
}

.results-table tbody tr:last-child th,
.results-table tbody tr:last-child td {
  border-bottom: 0;
}

.results-table .numeric {
  text-align: right;
  white-space: nowrap;
}

.result-party {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
}

.result-party-logo {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0.5px solid color-mix(in srgb, var(--party-color) 18%, var(--line));
  border-radius: 9px;
  background: rgba(255, 253, 247, 0.94);
  overflow: hidden;
}

.result-party-logo img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.result-party strong {
  margin-right: 4px;
  font-weight: 820;
}

.result-bar {
  display: block;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  background: rgba(36, 31, 26, 0.06);
  overflow: hidden;
}

.result-bar span {
  display: block;
  width: var(--bar-width);
  min-width: 4px;
  height: 100%;
  border-radius: inherit;
  background: var(--party-color);
}

.representatives {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.representatives > strong {
  min-width: 1.4ch;
  font-size: 1.08rem;
}

.representative-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: none;
}

.representative-dots span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--party-color) 62%, var(--soft));
}

.no-seat,
.results-note {
  color: var(--muted);
}

.results-note {
  margin: 16px 0 0;
  border-top: 0.5px solid var(--line);
  padding-top: 14px;
}

.submission-list {
  display: grid;
  gap: 12px;
}

.submission-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 8px 26px rgba(36, 31, 26, 0.06);
  padding: 18px 20px;
}

.submission-card.needs-response {
  background: rgba(255, 253, 247, 0.58);
}

.submission-party {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.party-bullet {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--party-color);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--party-color) 13%, transparent);
}

.party-logo-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0.5px solid color-mix(in srgb, var(--party-color) 18%, var(--line));
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.92);
  box-shadow:
    0 8px 18px rgba(36, 31, 26, 0.06),
    0 0 0 7px color-mix(in srgb, var(--party-color) 7%, transparent);
  overflow: hidden;
}

.party-logo-mark img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.needs-response .party-bullet {
  filter: grayscale(0.2);
  opacity: 0.82;
}

.needs-response .party-logo-mark {
  filter: grayscale(0.15);
  opacity: 0.82;
}

.submission-party h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.2;
}

.submission-party p {
  margin: 3px 0 0;
  color: var(--muted);
}

.submission-meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  white-space: nowrap;
}

.submission-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  font-weight: 700;
}

.submission-state > span:first-child {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.9rem;
  line-height: 1;
}

.submission-state.is-submitted {
  background: rgba(43, 128, 76, 0.11);
  color: #1d6f3d;
}

.submission-state.is-submitted > span:first-child {
  background: #1f8c4d;
}

.submission-state.is-pending {
  background: rgba(184, 74, 74, 0.12);
  color: #984444;
}

.submission-state.is-pending > span:first-child {
  background: #c96f6a;
}

.questionnaire-head {
  background:
    linear-gradient(90deg, rgba(36, 31, 26, 0.92), rgba(96, 114, 122, 0.78)),
    url("../images/ulfarsardalur-hero.png") center / cover;
  color: #fff;
}

.questionnaire-head h1,
.questionnaire-head .lead,
.questionnaire-head .overline {
  color: #fff;
}

.questionnaire-head .lead,
.questionnaire-head .overline {
  color: rgba(255, 255, 255, 0.82);
}

.questionnaire-view {
  display: grid;
  gap: 28px;
}

.questionnaire-section {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr);
  gap: 22px;
}

.questionnaire-section-head {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 14px;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.8);
  padding: 18px;
}

.questionnaire-section-head > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--earth);
  color: #fff;
  font-weight: 760;
}

.questionnaire-section-head .overline {
  margin: 0 0 4px;
}

.questionnaire-section-head h2 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.18;
}

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

.questionnaire-card {
  border: 0.5px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 8px 26px rgba(36, 31, 26, 0.05);
  padding: 22px;
}

.questionnaire-card .overline {
  margin: 0 0 5px;
}

.questionnaire-card h3 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.22;
}

.questionnaire-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.questionnaire-card .question-prompt {
  color: var(--ink);
  font-weight: 700;
}

.question-note {
  margin-top: 16px;
  border-top: 0.5px solid rgba(63, 45, 28, 0.12);
  color: var(--soft);
  font-size: 0.94rem;
  padding-top: 13px;
}

.questionnaire-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.questionnaire-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 0.5px solid rgba(63, 45, 28, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  padding: 12px;
}

.option-swatch {
  flex: 0 0 auto;
  width: 14px;
  height: 34px;
  border-radius: 999px;
}

.questionnaire-option strong,
.questionnaire-option span {
  display: block;
}

.questionnaire-option strong {
  line-height: 1.25;
}

.questionnaire-option div span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.priority-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.priority-note {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.02rem;
  line-height: 1.6;
}

.priority-choice-grid span,
.free-text-box {
  border: 0.5px solid rgba(63, 45, 28, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  padding: 9px 13px;
}

.free-text-box {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 14px;
}

@media (max-width: 900px) {
  .header-inner,
  .notice-panel,
  .about-contact,
  .toolbar,
  .detail-head,
  .party-hero,
  .footer-inner,
  .section-title-row {
    align-items: stretch;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
  }

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

  .footer-inner nav {
    justify-content: flex-start;
  }

  .hero-home {
    min-height: 500px;
  }

  .hero-status .home-hero-title {
    max-width: 720px;
    font-size: 3.2rem;
  }

  .hero-home::after {
    width: 86px;
    height: 58px;
  }

  .stat-grid,
  .nav-card-grid,
  .party-status-panel,
  .priority-grid,
  .answer-columns,
  .topic-question-card,
  .questionnaire-section {
    grid-template-columns: 1fr;
  }

  .questionnaire-section-head {
    position: static;
  }

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

  .pager {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pager .button,
  .pager .button:last-child {
    justify-self: stretch;
  }

  .answer-list-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .submission-card {
    grid-template-columns: 1fr;
  }

  .submission-meta {
    justify-items: start;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .page-shell {
    padding-block: 24px 48px;
  }

  .site-header {
    position: static;
  }

  .hero-home {
    min-height: 520px;
    border-radius: 20px;
    background-position: center right 36%;
  }

  .hero-home h1 {
    font-size: clamp(2.3rem, 13vw, 4rem);
  }

  .hero-status .home-hero-title {
    max-width: 100%;
    font-size: clamp(2.15rem, 11.3vw, 2.9rem);
    line-height: 1.04;
    overflow-wrap: normal;
  }

  .stat-card,
  .nav-card,
  .about-card,
  .about-contact,
  .answer-detail,
  .priority-panel,
  .vision-card,
  .topic-question-card,
  .question-heading,
  .party-hero {
    padding: 20px;
  }

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

  .results-table {
    min-width: 760px;
  }

  .matrix-header,
  .matrix-row {
    grid-template-columns: minmax(160px, 1fr) repeat(var(--option-count), minmax(92px, 1fr));
    min-width: 620px;
  }

  .matrix-party,
  .matrix-cell {
    min-height: 44px;
  }
}

/* Updated answer-flow UI from the v2 mock. */
.answer-entry {
  margin-bottom: 22px;
}

.answer-entry-head {
  margin: 0 0 16px;
}

.answer-entry-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 4vw, 2.45rem);
  line-height: 1.06;
}

.answer-entry-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.answer-nav-grid {
  margin-bottom: 22px;
}

.answer-nav-grid .nav-card {
  position: relative;
  min-height: 184px;
  overflow: hidden;
  padding: 28px 30px;
}

.answer-nav-grid .nav-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--nav-accent, #2f7d4d);
}

.answer-nav-grid .nav-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -54px;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--nav-accent, #2f7d4d) 12%, transparent);
}

.nav-card-question { --nav-accent: #2f7d4d; }
.nav-card-party { --nav-accent: #c96f6a; }
.nav-card-topic { --nav-accent: #2f6f91; }

.nav-card-dot {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--nav-accent, #2f7d4d);
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--nav-accent, #2f7d4d) 12%, transparent);
}

.nav-card-description,
.nav-card-tag {
  position: relative;
  z-index: 1;
}

.nav-card-tag {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 22px !important;
  border-radius: 999px;
  background: color-mix(in srgb, var(--nav-accent, #2f7d4d) 10%, #fff);
  color: color-mix(in srgb, var(--nav-accent, #2f7d4d) 75%, var(--ink));
  padding: 5px 12px;
  font-size: 0.9rem !important;
  font-weight: 780;
}

.stat-grid-compact {
  margin-bottom: 24px;
}

.stat-grid-compact .stat-card {
  min-height: 112px;
  padding: 17px 20px;
}

.stat-grid-compact .stat-card strong {
  margin-top: 7px;
  font-size: 2.35rem;
}

.stat-grid-compact .stat-card small {
  margin-top: 4px;
}

.submission-list-linked .submission-card {
  color: inherit;
  text-decoration: none;
}

.submission-list-linked a.submission-card:hover {
  border-color: var(--line-strong);
  background: #fffdf7;
  transform: translateY(-1px);
}

.party-switcher-section {
  margin-bottom: 28px;
}

.party-switcher-title {
  margin-bottom: 12px;
}

.party-switcher-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.1;
}

.party-switcher {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px 10px;
}

.party-switcher-item {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.72);
  color: var(--ink);
  padding: 8px 13px;
  font-weight: 650;
}

.party-switcher-logo {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0.5px solid color-mix(in srgb, var(--party-color) 18%, var(--line));
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.92);
  overflow: hidden;
}

.party-switcher-logo img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.party-switcher-item span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.party-switcher-item.is-active,
.party-switcher-item:hover {
  border-color: color-mix(in srgb, var(--party-color) 65%, var(--line));
  background: color-mix(in srgb, var(--party-color) 10%, var(--paper));
}

.party-switcher-item.is-disabled {
  opacity: 0.48;
  pointer-events: none;
}

.party-answer-row {
  display: grid;
  grid-template-columns: 1fr;
  align-items: flex-start;
  padding: 24px 28px 28px;
}

.answer-list-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.answer-list-title {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 720;
  line-height: 1.35;
}

.answer-list-label {
  margin-top: 2px;
  color: color-mix(in srgb, var(--soft) 72%, var(--ink));
  font-size: 0.75rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.answer-list-question {
  max-width: min(96ch, 100%);
  border-left: 3px solid color-mix(in srgb, var(--gold) 42%, transparent);
  border-radius: 0 10px 10px 0;
  background: rgba(245, 238, 224, 0.68);
  color: var(--ink);
  padding: 10px 14px;
  font-size: 1.05rem;
  line-height: 1.58;
}

.answer-list-intro {
  max-width: min(108ch, 100%);
  border-left-color: color-mix(in srgb, var(--earth) 20%, transparent);
  background: transparent;
  color: color-mix(in srgb, var(--muted) 86%, var(--ink));
  padding: 0 14px;
}

.answer-list-section {
  display: grid;
  gap: 12px;
  max-width: min(112ch, 100%);
  border-top: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-left: 4px solid color-mix(in srgb, var(--party-color, var(--earth)) 72%, transparent);
  border-radius: 0 0 0 2px;
  padding: 22px 0 0 20px;
  margin-top: 10px;
}

.answer-list-reason {
  max-width: min(104ch, 100%);
  color: color-mix(in srgb, var(--muted) 84%, var(--ink));
  font-size: 1.08rem;
  line-height: 1.72;
}

.answer-option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.answer-option-cards.is-compact {
  grid-template-columns: repeat(var(--option-count), minmax(0, 1fr));
}

.answer-option-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: flex-start;
  gap: 10px;
  border: 0.5px solid rgba(63, 45, 28, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  padding: 11px 34px 11px 11px;
}

.answer-option-cards.is-compact .answer-option-card {
  min-height: 68px;
}

.answer-option-swatch {
  flex: 0 0 auto;
  width: 12px;
  height: 34px;
  border-radius: 999px;
}

.answer-option-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.answer-option-copy strong,
.answer-option-copy span {
  display: block;
}

.answer-option-copy strong {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.22;
}

.answer-option-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.32;
}

.answer-option-card.is-selected {
  border-color: color-mix(in srgb, var(--party-color, var(--earth)) 58%, var(--line));
  background: color-mix(in srgb, var(--party-color, var(--earth)) 13%, rgba(255, 255, 255, 0.78));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--party-color, var(--earth)) 35%, transparent), 0 8px 22px rgba(41, 31, 18, 0.08);
}

.answer-option-card.is-selected .answer-option-swatch {
  background: color-mix(in srgb, var(--party-color, var(--earth)) 82%, #fff);
}

.answer-option-card.is-selected.tone-4 .answer-option-copy strong,
.answer-option-card.is-selected.tone-4 .answer-option-copy span {
  color: inherit;
}

.answer-option-check {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--party-color, var(--earth)) 88%, #111);
  color: #fff;
  font-weight: 840;
}

.question-toolbar {
  margin-bottom: 18px;
}

.compact-legend {
  padding: 14px 16px;
  margin-bottom: 16px;
}

.matrix-row {
  position: relative;
  padding-left: 9px;
}

.matrix-row::before {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: transparent;
  content: "";
}

.matrix-row.is-selected {
  background: linear-gradient(90deg, color-mix(in srgb, var(--party-color, var(--earth)) 14%, #fffdf7), rgba(255, 253, 247, 0.44));
  box-shadow: 0 10px 28px rgba(41, 31, 18, 0.08);
}

.matrix-row.is-selected::before {
  background: var(--party-color, var(--earth));
}

.matrix-row.is-selected .matrix-cell:not(:empty) {
  border-color: color-mix(in srgb, var(--party-color, var(--earth)) 70%, var(--line));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34), 0 8px 20px rgba(41, 31, 18, 0.1);
}

.selected-party-detail {
  border-top: 5px solid var(--party-color, var(--earth));
}

.answer-columns.is-single {
  grid-template-columns: 1fr;
}

.question-heading .question-prompt {
  margin: 14px 0 0;
  color: var(--ink);
  font-weight: 720;
}

@media (max-width: 900px) {
  .matrix-party-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--party-color, var(--earth)) 88%, #111);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 840;
    line-height: 1;
    box-shadow: 0 0 0 2px color-mix(in srgb, #fffdf7 82%, transparent);
  }

  .matrix-choice-mark {
    transform: translateY(1px);
  }

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

  .answer-nav-grid,
  .stat-grid-compact {
    grid-template-columns: 1fr;
  }

  .topic-question-card {
    grid-template-columns: 1fr;
  }

  .answer-option-cards.is-compact {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}

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

  .answer-option-cards {
    grid-template-columns: 1fr;
  }
}
