/* Direção visual: snew.ai. Fontes, espaços e ativos inteiramente locais. */
:root, html[data-theme] {
  --display: 'BDO Grotesk', 'Inter', sans-serif;
  --reading: 'Inter', sans-serif;
  --button-bg: #171717;
  --button-border: #171717;
  --button-hover: #333333;
  --button-active: #080808;
  --button-ink: #ffffff;
}
html[data-theme=light] {
  color-scheme: only light;
  --ink: #111111;
  --muted: #696969;
  --line: #e6e6e6;
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f4f4f4;
  --accent: #333333;
  --panel: #f8f8f8;
  --plot-bg: #f8f8f8;
  --plot-line: #d2d2d2;
}
html { scroll-padding-top: 28px; }
body { font-family: var(--reading); letter-spacing: -.025em; background: var(--bg); color: var(--ink); }
h1, h2, h3, h4, h5, .brand { font-family: var(--display); text-wrap: balance; font-weight: 600; }
button, input { font-family: var(--reading); }
.wrap { width: min(1160px, calc(100% - 96px)); }
h2 { font-size: clamp(42px, 5.5vw, 68px); line-height: 1.02; letter-spacing: -.04em; }
html[data-theme] .eyebrow, html[data-theme] .result-kicker {
  display: inline-block; padding: 7px 15px; margin: 0 0 28px; border-radius: 999px;
  background: var(--soft); color: var(--ink); font: 500 13px/1.4 var(--reading); letter-spacing: -.025em;
}
/* Controles internos mantêm o padrão minimalista. */
html[data-theme] .button, html[data-theme] .audio-button {
  border-radius: 999px; letter-spacing: -.03em; font-weight: 500; box-shadow: none;
  transition: background .2s, transform .2s, border-color .2s;
}
html[data-theme] .primary, html[data-theme] .primary:not(.quiz-start-button), html[data-theme] .quiz-exit-button {
  background: var(--button-bg); border-color: var(--button-border); color: var(--button-ink); box-shadow: none;
}
html[data-theme] .primary:not(:disabled):hover, html[data-theme] .primary:not(.quiz-start-button):not(:disabled):hover, html[data-theme] .quiz-exit-button:hover {
  background: var(--button-hover); color: var(--button-ink); transform: none; box-shadow: none;
}
html[data-theme] .primary:not(:disabled):active { background: var(--button-active); transform: scale(.98); }
html[data-theme] .secondary { background: var(--soft); border-color: transparent; color: var(--ink); }
html[data-theme] .secondary:hover { background: var(--line); }
html[data-theme] .button:disabled { cursor: not-allowed; transform: none; box-shadow: none; }
/* Somente os dois botões de entrada recebem o visual de Start. */
html[data-theme] .quiz-start-button.primary {
  --button-bg: #54c4b8; --button-top: #83ddd0; --button-border: #369f93;
  --button-hover: #6cd3c6; --button-active: #48b3a7; --button-ink: #103e39; --button-depth: #277e73;
  position: relative; overflow: hidden; isolation: isolate; border-radius: 22px;
  background: linear-gradient(180deg, var(--button-top), var(--button-bg));
  border: 1px solid var(--button-border); color: var(--button-ink);
  box-shadow: 0 6px 0 var(--button-depth), 0 12px 24px #369f931e, inset 0 2px 0 #ffffff70;
  transition: background .2s, transform .2s, box-shadow .2s, border-color .2s;
}
html[data-theme] .quiz-start-button.primary:not(:disabled):hover {
  background: linear-gradient(180deg, #9ae7db, var(--button-hover)); color: var(--button-ink);
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 9px 0 var(--button-depth), 0 16px 30px #369f9330, inset 0 2px 0 #ffffff85;
}
html[data-theme] .quiz-start-button.primary:not(:disabled):active {
  background: var(--button-active); transform: translateY(5px) scale(.99);
  box-shadow: 0 1px 0 var(--button-depth), inset 0 2px 4px #103e3918;
}
html[data-theme] .quiz-start-button { gap: 12px; min-width: 283px; min-height: 72px; padding: 20px 32px; font: 650 18px/1.5 var(--reading); letter-spacing: -.025em; margin-top: 30px; }
.button-play { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid #ffffff70; border-radius: 50%; background: #ffffff45; }
.button-play:before { content: ''; width: 10px; height: 12px; margin-left: 2px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
html[data-theme] :is(a,button,summary,input):focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
html[data-theme] .quiz-start-button:focus-visible { outline-color: var(--button-depth); outline-offset: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .quiz-start-button.primary:not(:disabled):after {
    content: ''; position: absolute; inset: -50% auto -50% 0; width: 38%; pointer-events: none;
    background: linear-gradient(90deg, transparent, #ffffff66, transparent);
    transform: translateX(-300%) skewX(-20deg); animation: button-shine 6s ease-in-out infinite;
  }
  html[data-theme] .quiz-start-button { animation: start-ready 3.6s ease-in-out infinite; }
  html[data-theme] .quiz-start-button:is(:hover,:focus-visible,:active) { animation-play-state: paused; }
  @keyframes button-shine {
    0%, 68% { transform: translateX(-300%) skewX(-20deg); }
    88%, 100% { transform: translateX(420%) skewX(-20deg); }
  }
  @keyframes start-ready {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -3px; }
  }
}

/* Rostos sem fundo percorrem uma órbita contínua ao redor do conteúdo. */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; place-items: center; isolation: isolate; min-height: 820px; padding: 180px 24px; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; text-align: center; width: min(770px, 100%); }
.hero h1 { font-size: clamp(58px, 5.6vw, 82px); font-weight: 600; line-height: .98; letter-spacing: -.04em; }
.hero .lead { max-width: 490px; margin: 24px auto 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.hero-action-row { display: flex; flex-direction: column; gap: 20px; }
/* O percurso se adapta à tela; os rostos permanecem na posição vertical. */
.hero-faces { position: absolute; inset: 0; max-width: 1400px; margin: auto; z-index: 1; pointer-events: none; }
.hero-face {
  position: absolute; left: 0; top: 0; width: var(--face-size); aspect-ratio: 1;
  offset-path: ellipse(calc(50% - 100px) calc(50% - 84px) at 50% 50%);
  offset-distance: var(--orbit-start); offset-rotate: 0deg; offset-anchor: center;
  animation: hero-face-orbit 160s linear infinite;
  pointer-events: auto; user-select: none;
}
@keyframes hero-face-orbit {
  from { offset-distance: var(--orbit-start); }
  to { offset-distance: calc(var(--orbit-start) + 100%); }
}
.hero-face-drift { transform: translate(var(--drift-x, 0px), var(--drift-y, 0px)); transition: transform 550ms cubic-bezier(.2,.65,.3,1); }
.hero-face-float { transform: rotate(var(--face-tilt)); animation: hero-face-float var(--float-duration, 8s) ease-in-out var(--float-delay, 0s) infinite; }
.hero-face img { display: block; width: 100%; height: auto; transition: transform 550ms cubic-bezier(.2,.65,.3,1); }
.face-social { --orbit-start: 57.143%; --face-size: clamp(115px, 12vw, 170px); --face-tilt: -9deg; --float-delay: -2s; }
.face-worker { --orbit-start: 71.429%; --face-size: clamp(100px, 9vw, 128px); --face-tilt: -6deg; --float-duration: 9s; }
.face-education { --orbit-start: 28.571%; --face-size: clamp(115px, 12vw, 170px); --face-tilt: 8deg; --float-delay: -4s; --float-duration: 7.5s; }
.face-expression { --orbit-start: 0%; --face-size: clamp(115px, 12vw, 170px); --face-tilt: 9deg; --float-delay: -5s; --float-duration: 8.5s; }
.face-equality { --orbit-start: 42.857%; --face-size: clamp(100px, 9vw, 128px); --face-tilt: 6deg; --float-delay: -3s; --float-duration: 9s; }
.face-neutral-man { --orbit-start: 14.286%; --face-size: clamp(120px, 12.5vw, 180px); --face-tilt: -8deg; --float-delay: -1s; --float-duration: 7s; }
.face-indigenous { --orbit-start: 85.714%; --face-size: clamp(115px, 12vw, 170px); --face-tilt: 7deg; --float-delay: -4.5s; --float-duration: 8.5s; }
@keyframes hero-face-float {
  0%, 100% { transform: translate(0, 9px) rotate(calc(var(--face-tilt) - 2deg)); }
  50% { transform: translate(4px, -9px) rotate(calc(var(--face-tilt) + 2deg)); }
}
.hero-faces[data-animating="false"] :is(.hero-face, .hero-face-float) { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-face:hover img { transform: translateY(-12px) rotate(8deg) scale(1.12); }
}

/* As informações de entrada formam uma única seção, com título e subtítulo. */
.test-overview {
  margin: 0 24px;
  padding: 82px 0;
  border-radius: 32px;
  background: var(--panel);
}
.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.overview-grid article { min-width: 0; text-align: center; }
.overview-grid h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.04em; }
.overview-grid p { max-width: 285px; margin: 20px auto 0; color: var(--muted); font-size: 14px; line-height: 1.7; text-wrap: pretty; }

/* Duas faixas contínuas; cada grupo inclui o espaço até a próxima cópia. */
.stories-gallery {
  --story-width: clamp(148px, 19.5vw, 320px);
  --story-gap: 20px;
  padding-top: 100px;
  overflow: hidden;
}
.stories-rows { display: grid; gap: var(--story-gap); }
.stories-row { overflow: hidden; }
.stories-track { display: flex; width: max-content; }
.stories-group { display: flex; flex: none; gap: var(--story-gap); padding-right: var(--story-gap); }
.story-card {
  flex: none;
  width: var(--story-width);
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: var(--soft);
}
.story-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stories-gallery[data-ready="true"] .stories-track {
  animation: stories-drift 85.5s linear -12s infinite;
  animation-play-state: paused;
}
.stories-gallery .stories-row-right .stories-track { animation-direction: reverse; }
.stories-gallery .stories-row-left .stories-track { animation-duration: 84s; animation-delay: -34s; }
.stories-gallery[data-running="true"] .stories-track { animation-play-state: running; }
@keyframes stories-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.section { padding: 116px 0; }
.section-heading { display: block; text-align: center; max-width: 950px; margin: 0 auto; }
.section-heading>p:last-child { max-width: 650px; margin: 25px auto 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.section-heading .eyebrow { margin-bottom: 24px; }
.model-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, .85fr); gap: 64px; align-items: center; margin-top: 60px; }
.model-visual { width: 100%; min-width: 0; }
.model-visual .map { aspect-ratio: 1.06; margin: 0; }
.map-caption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 22px; }
html[data-theme] .axis-cards { display: block; margin: 0; border: 0; }
html[data-theme] .axis-cards article { padding: 0 0 30px; border: 0; background: transparent; }
html[data-theme] .axis-cards article+article { padding: 30px 0 0; border-top: 1px solid var(--line); }
html[data-theme] .card-number { font: 400 12px var(--reading); color: var(--muted); letter-spacing: 0; }
.axis-cards h3 { font-size: 28px; letter-spacing: -.035em; margin-top: 10px; }
.axis-cards p { font-size: 14px; line-height: 1.6; margin: 12px 0 0; }
html[data-theme] .scale-line {
  height: 18px; border: 1px solid #81bdb0; border-radius: 8px; margin-top: 22px;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5% - 1px), #ffffffa6 calc(12.5% - 1px), #ffffffa6 12.5%), linear-gradient(90deg, #58bbae, #d5efe8 50%, #58bbae);
  box-shadow: inset 0 2px 3px #277e7314;
}
html[data-theme] .scale-line:after { width: 2px; height: 28px; top: -6px; margin-left: -1px; border-radius: 2px; background: #276e64; box-shadow: 0 0 0 1px #ffffffa6; }
html[data-theme] .axis-cards article:nth-child(2) .scale-line {
  border-color: #b49ad8;
  background: repeating-linear-gradient(90deg, transparent 0, transparent calc(12.5% - 1px), #ffffffa6 calc(12.5% - 1px), #ffffffa6 12.5%), linear-gradient(90deg, #a98bdf, #eee5fa 50%, #a98bdf);
  box-shadow: inset 0 2px 3px #6b459c14;
}
html[data-theme] .axis-cards article:nth-child(2) .scale-line:after { background: #6b459c; }
.axis-cards .scale-ends { gap: 12px; margin: 12px 0 0; }
html[data-theme] .scale-ends strong { font-size: 13px; color: var(--ink); }
.scale-ends strong:last-child { text-align: right; }
html[data-theme] .plot { background-color: var(--plot-bg); background-image: linear-gradient(var(--line) 1px,transparent 1px),linear-gradient(90deg,var(--line) 1px,transparent 1px); background-size: 12.5% 12.5%; border-color: var(--plot-line); }
html[data-theme] .plot:before, html[data-theme] .plot:after { background: var(--plot-line); }
html[data-theme] .axis { color: var(--muted); font: 400 11px var(--reading); letter-spacing: 0; }
html[data-theme] .quad { color: var(--muted); font-family: var(--reading); font-size: 12px; }
html[data-theme] .quad strong { color: var(--ink); font-weight: 500; }
html[data-theme] .model-visual .axis { font-size: 14px; font-weight: 500; }
html[data-theme] .model-visual .quad { font-size: clamp(15px, 1.5vw, 19px); line-height: 1.45; color: #4b4b4b; }
html[data-theme] .model-visual .quad strong { font-weight: 600; }
.model-visual .tl, .model-visual .bl { left: 22px; }
.model-visual .tr, .model-visual .br { right: 22px; }
.model-visual .tl, .model-visual .tr { top: 22px; }
.model-visual .bl, .model-visual .br { bottom: 22px; }
html[data-theme] .origin { background: var(--surface); border-color: var(--plot-line); }
html[data-theme] .illustrative-dot, html[data-theme] .result-dot { background: var(--ink); border-color: var(--surface); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ink) 8%, transparent); animation: none; }
html[data-theme] .center-band-x, html[data-theme] .center-band-y { background: color-mix(in srgb, var(--ink) 3%, transparent); }

/* Seis pontos por quadrante, com fases que mantêm o mapa sempre preenchido. */
.model-visual .plot { overflow: hidden; }
.model-visual .ambient-dot {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  color: var(--point-color);
  background: currentColor;
  border: 1.5px solid var(--surface);
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 9%, transparent);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.55);
  pointer-events: none;
  animation: map-point-appear var(--point-duration) ease-in-out var(--point-delay) infinite both;
  animation-play-state: paused;
}
.model-visual .plot[data-animating="true"] .ambient-dot { animation-play-state: running; }
@keyframes map-point-appear {
  0%, 65%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
  15%, 40% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .model-visual .ambient-dot { animation: none; opacity: .8; transform: translate(-50%, -50%); }
  .model-visual .ambient-dot[data-slot="2"] { display: none; }
}

/* Ilustração completa, com as escolhas ao lado da situação. */
html[data-theme] .quiz-section { background: #ededed; padding: 56px 0; border: 0; border-radius: 32px; margin: 0 24px; width: auto; }
.quiz-layout { display: block; width: min(1120px, calc(100% - 80px)); }
.quiz-entry-heading { margin-bottom: 56px; }
.quiz-started .quiz-entry-heading, .quiz-focused .quiz-entry-heading { display: none; }
.quiz-intro {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 36px 52px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  text-align: left;
}
.quiz-entry-copy { min-width: 0; }
.quiz-entry-meta { color: var(--ink); font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -.035em; margin: 0; text-wrap: initial; }
.quiz-entry-instruction { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 18px 0 0; }
html[data-theme] .quiz-entry-copy .quiz-start-button { min-width: 240px; min-height: 60px; padding: 16px 28px; margin-top: 26px; font-size: 16px; }
.quiz-entry-preview { min-width: 0; }
.quiz-entry-preview>p { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.quiz-entry-preview h3 { font-size: 24px; letter-spacing: -.03em; margin-bottom: 20px; }
.quiz-entry-preview img { display: block; width: 100%; height: auto; border-radius: 14px; }
.quiz-entry-help { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; }
.quiz-entry-help summary { align-items: center; justify-content: flex-start; gap: 10px; min-height: 28px; color: var(--muted); font-size: 12px; font-weight: 400; }
.quiz-entry-help summary:before { content: '+'; flex: none; color: var(--muted); font-size: 21px; line-height: 1; }
.quiz-entry-help[open] summary:before { content: '−'; }
.quiz-entry-help summary:after { content: none; }
.quiz-entry-help p { max-width: 690px; margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
html[data-theme] .quiz-card { padding: 0; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
#question-area { display: grid; grid-template-columns: 1.08fr 1fr; column-gap: 72px; grid-template-areas: 'image image' 'progress progress' 'meta meta' 'copy answers' 'copy actions' 'copy foot'; }
#question-area .progress { grid-area: progress; height: 3px; margin: 0 0 24px; border-radius: 6px; background: var(--line); }
#progress-fill { background: var(--ink); }
.question-meta { grid-area: meta; justify-content: space-between; gap: 20px; margin: 0 0 20px; }
html[data-theme] .question-label { color: var(--muted); font: 400 13px var(--reading); letter-spacing: 0; gap: 8px; }
html[data-theme] .question-number { min-width: 0; min-height: 0; padding: 0; border-radius: 0; background: none; color: var(--ink); font: 600 14px var(--reading); letter-spacing: 0; }
.question-number-total { font: 400 13px var(--reading); letter-spacing: 0; }
.question-category { font: 400 12px var(--reading); letter-spacing: 0; flex-basis: auto; }
.question-copy { grid-area: copy; min-width: 0; }
.question-audio { margin-top: 22px; }
.question-audio .audio-status { margin: 12px 0 0; }
.question-heading { margin-bottom: 22px; }
html[data-theme] .question-heading h3 { font-size: clamp(30px, 3.3vw, 44px); line-height: 1.08; letter-spacing: -.035em; }
html[data-theme] .audio-button { color: var(--ink); background: var(--surface); border-color: var(--line); font-size: 12px; min-height: 40px; padding: 10px 16px; }
html[data-theme] .audio-button:hover:not(:disabled), html[data-theme] .audio-button[aria-pressed=true] { background: var(--soft); color: var(--accent); border-color: var(--accent); }
.question-illustration { grid-area: image; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 16px; margin: 0 0 28px; background: transparent; }
.audio-status { margin: 0 0 16px; }
html[data-theme] #question-area .question-text { background: transparent; border: 0; padding: 0; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.75; min-height: 0; }
html[data-theme] #question-area .situation-context { display: block; font-size: inherit; line-height: inherit; color: var(--muted); margin-bottom: 16px; }
html[data-theme] #question-area .dilemma-statement { color: var(--ink); font-weight: 500; }
html[data-theme] #question-area .tradeoff { color: var(--ink); }
#answers { grid-area: answers; display: block; min-width: 0; align-self: start; }
html[data-theme] #answers .agreement-prompt { margin: 0 0 26px; color: var(--ink); font-size: 22px; font-weight: 600; line-height: 1.35; }
html[data-theme] #answers .choice-feedback { display: block; color: var(--muted); margin: 8px 0 0; min-height: 21px; font-size: 14px; font-weight: 400; line-height: 1.5; }
html[data-theme] #answers .choice-feedback.has-choice { color: var(--accent); }
html[data-theme] .agreement-ends { color: var(--ink); font-size: 20px; font-weight: 600; margin-bottom: 8px; }
html[data-theme] .agreement-track:before { top: 36px; height: 4px; border-radius: 4px; background: #b8b8b8; }
html[data-theme] .agreement-point { gap: 12px; min-height: 116px; padding: 10px 0; }
html[data-theme] .agreement-point input { width: 56px; height: 56px; }
html[data-theme] .agreement-point.strength-2 input:before { inset: 6px; }
html[data-theme] .agreement-point.strength-0 input:before { inset: 14px; }
html[data-theme] .agreement-point input:before { background: var(--surface); border-color: #858585; }
html[data-theme] .agreement-point input:checked:before { background: var(--ink); border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink) 10%, transparent); }
html[data-theme] .point-caption { color: var(--ink); font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: -.025em; }
html[data-theme] .agreement-point:has(input:checked) .point-caption { color: var(--accent); }
html[data-theme] .unknown-choice { color: var(--muted); border: 1px solid var(--line); background: transparent; border-radius: 999px; font-size: 12px; min-height: 44px; }
html[data-theme] .unknown-choice:has(input:checked) { background: var(--surface); color: var(--accent); border-color: var(--accent); }
.quiz-actions { grid-area: actions; margin-top: 22px; }
.quiz-actions .button { min-height: 50px; padding: 14px 25px; font-size: 13px; }
html[data-theme] .back { color: var(--muted); font-size: 12px; }
html[data-theme] .quiz-foot { grid-area: foot; text-align: right; font-size: 11px; color: var(--muted); margin: 15px 0 0; }
html[data-theme] .quiz-focused #questionario { margin: 0; border-radius: 0; width: 100%; padding: 0 0 40px; background: var(--bg); }
.quiz-focused .quiz-layout { width: min(1120px, calc(100% - 64px)); margin-top: 36px; }
.quiz-focused .focus-toolbar { width: min(1120px, calc(100% - 64px)); }
.quiz-focused .quiz-card { padding: 0; }

/* Resultado e conteúdo de apoio com a mesma hierarquia e tons neutros. */
#result { max-width: 760px; margin: auto; }
html[data-theme] #result-title { font-size: clamp(34px, 4.5vw, 52px); letter-spacing: -.04em; line-height: 1.04; }
html[data-theme] .result-copy, html[data-theme] .result-note { color: var(--muted); }
html[data-theme] .score { background: var(--surface); border-color: var(--line); color: var(--muted); border-radius: 18px; }
html[data-theme] .score strong, html[data-theme] .live-stats strong { font-family: var(--display); color: var(--ink); font-weight: 500; letter-spacing: -.04em; }
html[data-theme] .candidate-comparison { border-color: var(--line); background: var(--surface); border-radius: 22px; }
html[data-theme] .candidate-conclusion, html[data-theme] .candidate-heading>strong { color: var(--accent); }
html[data-theme] .candidate-comparison h4, html[data-theme] .candidate-heading h5 { color: var(--ink); }
html[data-theme] .candidate-bar { background: var(--soft); }
html[data-theme] .candidate-bar span { background: var(--ink); }
html[data-theme] .candidate-heading span, html[data-theme] .candidate-coverage, html[data-theme] .candidate-limit, html[data-theme] .candidate-method p, html[data-theme] .evidence-item p, html[data-theme] .evidence-item summary span, html[data-theme] .candidate-empty { color: var(--muted); }
html[data-theme] .candidate-method, html[data-theme] .evidence-item { border-color: var(--line); }
html[data-theme] .candidate-method summary { color: var(--ink); }
html[data-theme] .candidate-method a { color: var(--accent); }
html[data-theme] .live-stats>div { background: var(--panel); border: 0; border-radius: 20px; padding: 25px; }
html[data-theme] .live-dot { background: color-mix(in srgb, var(--ink) 55%, transparent); border-color: var(--accent); }
html[data-theme] .live-dot.is-own { background: var(--ink); border-color: var(--ink); }
html[data-theme] .participants-section, html[data-theme] .proposal-section { border: 0; }
html[data-theme] .live-results { border: 0; margin-top: 36px; }
.proposal-section { background: #ffdf00; color: #000; --ink: #000; --muted: #000; --accent: #000; }
.method-section { background: #34764b; --muted: #565656; }
.method-grid>div:first-child { color: #fff; --ink: #fff; --muted: #fff; --accent: #fff; --soft: rgb(0 0 0 / 12%); }
.proposal-meta { justify-content: center; margin: 34px 0 42px; }
.proposal-cards { padding-top: 105px; row-gap: 132px; }
html[data-theme] .proposal-card { position: relative; border: 0; background: #fff; padding: 94px 36px 36px; border-radius: 24px; }
.proposal-portrait { position: absolute; top: -104px; left: 50%; width: 180px; height: 180px; margin-left: -90px; pointer-events: none; user-select: none; }
.proposal-portrait img { display: block; width: 100%; height: 100%; object-fit: contain; animation: proposal-face-float 8s ease-in-out infinite; }
.proposal-card:nth-child(2) .proposal-portrait img { animation-delay: -4s; }
@keyframes proposal-face-float {
  0%, 100% { transform: translateY(6px) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}
.proposal-card h3 { letter-spacing: -.03em; }
.proposal-list p { min-height: 0; font-size: 14px; }
.proposal-footnote { margin-top: 28px; font-size: 12px; }
.method-grid { grid-template-columns: .9fr 1.1fr; gap: 90px; }
.method-grid h2 { font-size: clamp(40px, 4.5vw, 56px); }
.method-grid>div>p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.8; }
.method-details { background: #fff; padding: 18px 32px; border-radius: 24px; min-width: 0; }
.method-details summary { font-size: 15px; font-weight: 500; letter-spacing: -.03em; }
html[data-theme] .method-details details { border-color: var(--line); }
html[data-theme] .method-details details:first-child { border-top: 0; }
html[data-theme] .method-details details:last-child { border-bottom: 0; }
html[data-theme] .method-details p { color: var(--muted); font-size: 13px; }
html[data-theme] .formula { background: var(--soft); color: var(--ink)!important; border-radius: 14px; }
html[data-theme] summary:after { color: var(--muted); }
html[data-theme] .share-help, html[data-theme] .share-status, html[data-theme] .result-sharing>p { color: var(--muted); }
html[data-theme] .story-preview { border-color: var(--line); }
.share-layout { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); align-items: start; gap: 32px; margin-top: 26px; }
.story-preview-frame { width: 100%; aspect-ratio: 9 / 16; border-radius: 14px; background: var(--soft); overflow: hidden; }
.story-preview-frame[aria-busy=true] .story-preview { opacity: .45; }
.story-preview { display: block; width: 100%; height: auto; border-radius: 14px; transition: opacity .2s; }
.story-options { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.story-options legend { padding: 0; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.story-color-options { display: flex; flex-wrap: wrap; gap: 12px; }
.story-color-option, .story-emoji-option { position: relative; cursor: pointer; }
.story-options input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.story-color-swatch { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #0002; border-radius: 50%; background: var(--swatch); color: var(--swatch-ink); }
.story-color-option input:checked + .story-color-swatch { outline: 2px solid var(--ink); outline-offset: 3px; }
.story-color-option input:checked + .story-color-swatch:after { content: '✓'; font-size: 20px; font-weight: 600; }
.story-options input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 5px; }
.story-emoji-options { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.story-emoji-choice { display: grid; place-items: center; min-height: 62px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.story-emoji-glyph { display: inline-block; font: 32px/1.2 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.story-emoji-option input:checked + .story-emoji-choice { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.share-customizer .share-actions { gap: 10px; }
.share-customizer .share-help, .share-customizer .share-status { font-size: 12px; }
html[data-theme] footer { border-color: var(--line); flex-wrap: wrap; gap: 24px; padding: 40px 0; }
footer .brand { font-size: 21px; letter-spacing: -.04em; }
html[data-theme] footer p, html[data-theme] footer>.mono { color: var(--muted); font: 400 11px var(--reading); letter-spacing: 0; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { min-height: 800px; }
  .hero h1 { font-size: clamp(43px, 5.6vw, 58px); }
  .hero-face { --face-size: 125px; }
  .face-worker, .face-equality { --face-size: 105px; }
  .overview-grid { gap: 32px; }
  .model-layout { gap: 48px; }
  #question-area { column-gap: 40px; }
  .method-grid { gap: 45px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .hero { min-height: 820px; padding: 170px 20px; }
  .hero-copy { width: min(260px, calc(100vw - 110px)); }
  .hero h1 { font-size: clamp(34px, 9.5vw, 42px); line-height: 1; }
  .hero .lead { max-width: 230px; }
  html[data-theme] .hero .hero-start-button { min-width: 0; width: 100%; padding-inline: 14px; font-size: 14px; }
  .hero .eyebrow { font-size: 11px; margin-bottom: 25px; }
  .hero .lead { font-size: 15px; margin-top: 22px; }
  html[data-theme] .quiz-start-button { min-width: 250px; min-height: 62px; font-size: 16px; padding: 17px 28px; }
  .hero-action-row { gap: 20px; }
  .hero .button-play { width: 24px; height: 24px; }
  html[data-theme] .hero .quiz-start-button { gap: 8px; }
  .hero .hero-face { --face-size: clamp(56px, 15vw, 90px); offset-path: ellipse(calc(50% - 42px) calc(50% - 70px) at 50% 50%); }
  .test-overview { margin: 0 12px; padding: 20px 0; border-radius: 24px; }
  .overview-grid { grid-template-columns: 1fr; gap: 0; }
  .overview-grid article { padding: 35px 0; }
  .overview-grid article+article { border-top: 1px solid var(--line); }
  .overview-grid h2 { font-size: 38px; }
  .overview-grid p { max-width: 280px; margin-top: 14px; }
  .stories-gallery { --story-width: clamp(148px, 39vw, 230px); --story-gap: 12px; padding-top: 64px; }
  .story-card { border-radius: 16px; }
  .section { padding: 72px 0; }
  h2 { font-size: 42px; }
  .section-heading>p:last-child { font-size: 14px; margin-top: 24px; }
  .model-layout { grid-template-columns: 1fr; gap: 30px; margin-top: 36px; }
  .model-visual { max-width: 620px; margin: auto; }
  .model-visual .plot { inset: 30px 26px; }
  html[data-theme] .model-visual .axis { font-size: 12px; }
  html[data-theme] .model-visual .quad { font-size: 14px; }
  .model-visual .tl, .model-visual .bl { left: 14px; }
  .model-visual .tr, .model-visual .br { right: 14px; }
  .model-visual .tl, .model-visual .tr { top: 16px; }
  .model-visual .bl, .model-visual .br { bottom: 16px; }
  .map { margin: 0; }
  html[data-theme] .axis-cards article { padding: 26px 0; }
  html[data-theme] .quiz-section { margin: 0 12px; padding: 24px 0; border-radius: 24px; }
  .quiz-layout { width: calc(100% - 32px); }
  .quiz-entry-heading { margin-bottom: 32px; }
  .quiz-intro { grid-template-columns: minmax(0, 1fr); padding: 26px 22px 20px; gap: 28px; border-radius: 18px; }
  .quiz-entry-meta { font-size: 28px; }
  .quiz-entry-instruction { font-size: 14px; margin-top: 14px; }
  html[data-theme] .quiz-entry-copy .quiz-start-button { width: 100%; min-width: 0; margin-top: 22px; }
  .quiz-entry-preview>p { font-size: 11px; margin-bottom: 8px; }
  .quiz-entry-preview h3 { font-size: 20px; margin-bottom: 14px; }
  .quiz-entry-preview img { border-radius: 10px; }
  .quiz-entry-help { padding-top: 16px; }
  #question-area { display: grid; grid-template-columns: minmax(0,1fr); grid-template-areas: 'image' 'progress' 'meta' 'copy' 'answers' 'actions' 'foot'; }
  .question-meta { gap: 10px; margin-bottom: 20px; }
  .question-category { font-size: 10px; flex-basis: auto; }
  html[data-theme] .question-label, .question-number-total { font-size: 11px; }
  .question-heading { align-items: center; gap: 16px; margin-bottom: 22px; }
  html[data-theme] .question-heading h3 { font-size: 30px; }
  html[data-theme] .audio-button { min-height: 38px; padding: 9px 12px; font-size: 11px; }
  .question-illustration { border-radius: 9px; margin-bottom: 24px; }
  html[data-theme] #question-area .question-text { font-size: 15px; line-height: 1.75; }
  .question-copy { margin-bottom: 32px; }
  html[data-theme] #answers .agreement-prompt { font-size: 20px; }
  html[data-theme] .agreement-ends { font-size: 18px; }
  html[data-theme] .agreement-point input { width: 52px; height: 52px; }
  html[data-theme] .agreement-track:before { top: 34px; }
  html[data-theme] .point-caption { font-size: 13px; }
  #answers { width: 100%; }
  .quiz-actions { margin-top: 20px; }
  .quiz-actions .button { font-size: 12px; padding: 14px 20px; }
  .quiz-focused .quiz-layout { width: calc(100% - 36px); margin-top: 28px; }
  .quiz-focused .focus-toolbar { width: calc(100% - 36px); }
  .quiz-focused .quiz-card { padding: 0; }
  .quiz-focused .brand { font-size: 18px; }
  .proposal-card-header { display: block; }
  html[data-theme] .proposal-card { padding: 90px 26px 26px; }
  .proposal-meta { font-size: 10px; gap: 8px; margin: 30px 0; }
  .method-grid { grid-template-columns: 1fr; gap: 30px; }
  .method-grid h2 { font-size: 42px; }
  .method-details { padding: 12px 24px; }
  .share-layout { grid-template-columns: 1fr; gap: 26px; }
  .story-preview-frame { width: min(230px, 100%); margin: 0 auto; }
  .story-preview { width: 100%; }
  .share-customizer .share-actions { flex-direction: column; }
  .share-customizer .share-actions .button { width: 100%; }
  .story-color-options { gap: 9px; }
  .story-color-swatch { width: 36px; height: 36px; }
  .story-emoji-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  footer .brand { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { animation: none!important; transition: none!important; }
  .stories-row-left .stories-track { transform: translateX(calc(var(--story-width) * -.5)); }
}

/* Story em uma tela de celular e seleção de até quatro emojis. */
.share-layout { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 36px; }
.story-phone { position: relative; width: 100%; padding: 12px 12px 24px; background: #181818; border: 2px solid #444; border-radius: 42px; box-shadow: 0 18px 38px #00000018, inset 0 0 0 3px #303030; }
.story-phone-screen { overflow: hidden; border-radius: 29px; background: #fff; }
.story-phone .story-preview-frame { width: 100%; margin: 0; border-radius: 0; aspect-ratio: 9 / 16; }
.story-phone .story-preview { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 0; }
.story-phone-home { position: absolute; bottom: 10px; left: 36%; width: 28%; height: 4px; border-radius: 9px; background: #888; }
.emoji-count { display: inline-block; margin-left: 8px; color: #777; font-size: 12px; font-weight: 400; }
.story-emoji-options { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.story-emoji-option input:disabled + .story-emoji-choice { opacity: .38; cursor: not-allowed; }
.story-emoji-option:has(input:disabled) { cursor: not-allowed; }
.emoji-clear { margin: 12px 0 0; padding: 0; background: transparent; border: 0; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.emoji-limit { min-height: 20px; margin: 8px 0 0; font-size: 12px; color: #666; }
html[data-theme] .result-actions { display: flex; justify-content: center; gap: 0; margin: 32px -28px -28px; padding: 22px 28px; border-radius: 0 0 24px 24px; background: #e9e9e9; border-top: 1px solid #dedede; }
html[data-theme] .result-actions .button { border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #111; flex: 1; padding: 14px 18px; }
html[data-theme] .result-actions .button + .button { border-left: 1px solid #cacaca; }
html[data-theme] .result-actions .button:hover { background: #dcdcdc; }
@media(max-width: 760px) {
 .share-layout { grid-template-columns: 1fr; gap: 30px; }
 .story-phone { width: min(340px, 100%); margin: 0 auto; }
 .story-emoji-options { grid-template-columns: repeat(5,minmax(0,1fr)); }
 html[data-theme] .result-actions { margin: 28px -16px -16px; padding: 12px 10px; }
 html[data-theme] .result-actions .button { padding: 16px 6px; font-size: 13px; }
}

/* Ação explícita para remover os emojis escolhidos. */
html[data-theme] .emoji-clear { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; padding: 12px 16px; border: 1px solid #bdbdbd; border-radius: 12px; background: #fff; color: #222; font: 600 13px/1.3 Inter, sans-serif; text-decoration: none; cursor: pointer; }
html[data-theme] .emoji-clear span { font-size: 23px; font-weight: 400; line-height: .8; }
html[data-theme] .emoji-clear:hover { background: #eee; border-color: #777; }
html[data-theme] .emoji-clear:focus-visible { outline: 3px solid #66c4ba; outline-offset: 3px; }

/* Rostos e ideias substituem os cartazes da galeria. */
.ideas-gallery { padding: 60px 0 80px; overflow: hidden; background: #fff; }
.ideas-field { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 24px 10px; padding-block: 30px; }
.idea-character { position: relative; display: block; height: 195px; padding: 0; border: 0; background: transparent; color: #222; cursor: pointer; -webkit-tap-highlight-color: transparent; transform: translate(var(--pointer-x,0px),var(--pointer-y,0px)); transition: transform .5s ease; }
.idea-character:nth-child(even) { margin-top: 22px; }
.idea-drift { display: block; position: absolute; inset: 0; animation: idea-float var(--duration) ease-in-out var(--delay) infinite; animation-play-state: paused; }
.ideas-field[data-running=true] .idea-drift { animation-play-state: running; }
.idea-face { position: absolute; width: 125px; height: 125px; left: 50%; bottom: 10px; transform: translateX(-55%) rotate(var(--tilt)); transition: transform .4s ease; }
.idea-face img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 12px #0000000b); }
.idea-bubble { display: grid; place-items: center; position: absolute; top: 0; right: 3%; min-width: 95px; height: 69px; padding: 12px 14px; border-radius: 50% 48% 44% 42%; background: radial-gradient(ellipse at 35% 20%,#ffffffa8,transparent 65%),var(--idea-color); box-shadow: inset 0 -5px 9px #79638e22, inset 0 2px 3px #ffffffa8, 0 8px 16px #44335e0d; transform: rotate(8deg); transition: transform .35s ease; }
.idea-bubble:after { content: ''; position: absolute; bottom: -8px; left: 28%; width: 20px; height: 18px; background: var(--idea-color); border-radius: 0 0 4px 2px; transform: skew(-25deg) rotate(30deg); }
.idea-bubble span { position: relative; z-index: 1; font: 31px/1.1 'Apple Color Emoji','Segoe UI Emoji',sans-serif; white-space: nowrap; }
.idea-splash { border-radius: 0; min-width: 104px; height: 90px; top: -8px; clip-path: polygon(50% 0,59% 19%,77% 5%,78% 28%,100% 25%,87% 46%,100% 60%,78% 66%,80% 91%,60% 81%,50% 100%,40% 81%,19% 93%,22% 67%,0 59%,14% 45%,0 25%,24% 28%,24% 5%,41% 20%); }
.idea-splash:after { display: none; }
.idea-label { display: block; position: absolute; z-index: 3; bottom: -19px; left: 50%; max-width: 190px; width: max-content; padding: 6px 10px; border-radius: 9px; background: #f2f2f2; font: 500 12px/1.3 Inter,sans-serif; opacity: 0; transform: translate(-50%,5px); transition: opacity .2s,transform .2s; pointer-events: none; }
.idea-character:hover .idea-label,.idea-character:focus-visible .idea-label,.idea-character[aria-pressed=true] .idea-label { opacity: 1; transform: translate(-50%,0); }
.idea-character:hover .idea-face,.idea-character[aria-pressed=true] .idea-face { transform: translateX(-55%) rotate(0deg) scale(1.09); }
.idea-character:hover .idea-bubble,.idea-character[aria-pressed=true] .idea-bubble { transform: rotate(-5deg) scale(1.12); }
.idea-character:focus-visible { outline: 2px solid #66c4ba; outline-offset: 5px; border-radius: 24px; }
@keyframes idea-float { 0%,100% { transform: translate(0,7px) rotate(-2deg); } 50% { transform: translate(5px,-8px) rotate(2deg); } }
@media(max-width:1000px) { .ideas-field { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 25px 12px; } }
@media(max-width:600px) { .ideas-gallery { padding: 28px 0 44px; } .ideas-field { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px 8px; } .idea-character { height: 150px; } .idea-face { width: 94px; height: 94px; } .idea-bubble { min-width: 66px; height: 48px; padding: 9px; right: 0; } .idea-bubble span { font-size: 23px; } .idea-splash { min-width: 78px; height: 67px; } .idea-label { max-width: 125px; font-size: 10px; white-space: normal; } }
@media(prefers-reduced-motion:reduce) { .idea-drift { animation: none; } .idea-character,.idea-face,.idea-bubble,.idea-label { transition: none; } }

/* Painel coletivo: informações à esquerda e mapa amplo à direita. */
html[data-theme] #participants-panel { max-width: 1200px; width: 100%; }
html[data-theme] #participants-panel .live-results { display: grid; grid-template-columns: minmax(250px,340px) minmax(0,1fr); gap: clamp(32px,5vw,70px); align-items: center; padding: 20px 0 0; }
.live-info { min-width: 0; }
html[data-theme] .live-info h4 { font-size: clamp(26px,3vw,34px); margin: 18px 0 24px; }
html[data-theme] .live-info .live-stats { grid-template-columns: 1fr; gap: 12px; }
html[data-theme] .live-info .live-stats>div { padding: 22px 24px; }
html[data-theme] .live-info .live-stats strong { font-size: 42px; }
html[data-theme] .live-map { max-width: none; width: 100%; margin: 32px 0; }
.live-import-note { font-size: 12px; line-height: 1.5; color: #777; margin-top: 18px; }
html[data-theme] .live-dot,html[data-theme] .live-dot.is-own { background: var(--participant-color); border: 2px solid #fff; box-shadow: 0 0 0 5px color-mix(in srgb,var(--participant-color) 12%,transparent); }
html[data-theme] .live-dot:hover,html[data-theme] .live-dot:focus-visible { outline: 2px solid var(--participant-color); outline-offset: 4px; }
@media(max-width:850px) { html[data-theme] #participants-panel .live-results { grid-template-columns: 1fr; gap: 12px; } html[data-theme] .live-info .live-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } html[data-theme] .live-map { max-width: 680px; margin: 32px auto; } }
@media(max-width:480px) { html[data-theme] .live-info .live-stats>div { padding: 18px 14px; } }

/* Movimento contínuo e reação suave ao cursor. */
.ideas-field { display: block; position: relative; padding: 0; }
.idea-character { position: absolute; left: 0; top: 0; width: var(--character-size); height: calc(var(--character-size) * 1.4); margin: 0 !important; transition: none; transform-origin: 50% 50%; will-change: transform; }
.idea-drift { animation: none; }
.idea-face { width: 83%; height: auto; aspect-ratio: 1; bottom: 0; }
.idea-bubble { right: 0; min-width: 60%; height: 35%; padding: 8px; }
.idea-splash { min-width: 70%; height: 46%; }
.idea-bubble span { font-size: clamp(22px,2.4vw,31px); }
.idea-character:hover .idea-face,.idea-character:hover .idea-bubble { transform: translateX(-55%) rotate(var(--tilt)); }
.idea-character:hover .idea-bubble { transform: rotate(8deg); }

.ideas-gallery { padding: 30px 0 40px; }
@media(max-width:600px) { .ideas-gallery { padding: 14px 0 22px; } }

/* Balões sobrepostos aos rostos, com acabamento contínuo. */
.idea-face { z-index: 1; }
.idea-bubble { z-index: 2; top: 21%; left: -5%; right: auto; width: 76%; min-width: 0; height: 34%; border-radius: 48%; transform: rotate(-10deg); background: radial-gradient(ellipse at 32% 12%,#ffffffb8,transparent 62%),var(--idea-color); box-shadow: inset 0 -4px 8px #79638e22,inset 0 2px 3px #ffffff99,0 5px 10px #44335e12; }
.idea-bubble:after { display: none; }
.idea-splash { top: 16%; left: -8%; width: 78%; min-width: 0; height: 42%; border-radius: 0; }
.idea-character:hover .idea-bubble { transform: rotate(-10deg); }

/* Metodologia: texto legível e referências na coluna esquerda. */
html[data-theme] #metodo { --ink: #17251f; --muted: #39483f; --accent: #205942; --soft: #e5eee8; --line: #c7d4cb; }
html[data-theme] #metodo .method-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
html[data-theme] #metodo .method-grid>div:first-child { color: var(--ink); --ink: #17251f; --muted: #39483f; --accent: #205942; --soft: #e5eee8; }
html[data-theme] #metodo .eyebrow { background: #e5eee8; color: #205942; font-weight: 600; }
html[data-theme] #metodo h2 { color: #17251f; }
html[data-theme] #metodo .text-link { color: #205942; font-weight: 600; }
html[data-theme] #metodo .method-details { color: #17251f; background: #fff; border: 1px solid #c7d4cb; padding: 16px 24px; }
html[data-theme] #metodo .method-theory { margin-top: 32px; background: #f3f7f4; }
html[data-theme] #metodo .method-details summary { color: #17251f; font-weight: 600; line-height: 1.5; }
html[data-theme] #metodo .method-details summary:after { color: #205942; }
html[data-theme] #metodo .method-details p { color: #39483f; font-size: 14px; line-height: 1.8; }
html[data-theme] #metodo .method-details a { color: #205942; font-weight: 500; }
html[data-theme] #metodo .method-details .formula { background: #e5eee8; color: #17251f; }
@media(max-width:850px) { html[data-theme] #metodo .method-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Rodapé e transparência de dados. */
html[data-theme] .site-footer { display: block; padding: 38px 0 24px; color: #17251f; border-top: 1px solid #c7d4cb; }
.footer-main { display: flex; gap: 24px; align-items: center; justify-content: space-between; }
html[data-theme] .footer-logo { font-size: 27px; font-weight: 600; letter-spacing: -1.3px; }
.footer-main p { color: #39483f; font-size: 14px; }
html[data-theme] .footer-contact { background: #17251f; color: #fff; gap: 10px; border: 1px solid #17251f; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #e0e7e2; font-size: 12px; color: #39483f; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
html[data-theme] .footer-instagram { min-height: 48px; padding: 12px 22px; gap: 10px; border: 1px solid #a588dd; border-radius: 999px; background: #c8adff; color: #2d174d; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 3px 0 #9977ca, 0 6px 18px #7344dc1a; transition: background .2s, box-shadow .2s; }
html[data-theme] .footer-instagram:hover { background: #b99bf5; box-shadow: 0 3px 0 #8863bc, 0 8px 22px #7344dc26; }
.footer-instagram svg { flex: 0 0 22px; }
@media(max-width:700px) { html[data-theme] .footer-instagram { width: 100%; margin-top: 4px; } }
.footer-links button,.privacy-inline { padding: 4px 0; background: transparent; border: 0; font-size: 13px; color: #205942; text-decoration: underline; text-underline-offset: 4px; }
#privacy-dialog { width: min(760px,calc(100% - 32px)); max-height: 86dvh; padding: 0; border: 1px solid #c7d4cb; border-radius: 24px; color: #17251f; background: #fff; box-shadow: 0 24px 80px #17251f33; }
#privacy-dialog::backdrop { background: #17251f80; }
.privacy-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 28px; background: #fff; border-bottom: 1px solid #c7d4cb; }
.privacy-heading h2 { font-size: 30px; line-height: 1.1; }
#privacy-close { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: #e5eee8; border: 1px solid #c7d4cb; color: #17251f; font-size: 27px; }
.privacy-content { padding: 6px 28px 28px; }
.privacy-content h3 { font-size: 20px; margin: 28px 0 10px; }
.privacy-content p { font-size: 14px; line-height: 1.8; color: #39483f; }
.privacy-content a:not(.button) { color: #205942; text-decoration: underline; overflow-wrap: anywhere; }
.privacy-intro { font-size: 12px !important; }
.live-consent { margin: 16px 0; padding: 18px; border: 1px solid #c7d4cb; border-radius: 16px; background: #f3f7f4; }
.live-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.6; color: #17251f; }
.live-consent input { margin-top: 5px; flex-shrink: 0; width: 18px; height: 18px; accent-color: #205942; }
.live-consent .button { width: 100%; margin-top: 12px; }
.live-consent .privacy-inline { margin-top: 10px; }
@media(max-width:700px) { .footer-main,.footer-bottom { align-items: flex-start; flex-direction: column; gap: 15px; } .footer-main p { margin: 0; } .footer-contact { width: 100%; } .privacy-heading { padding: 18px 20px; } .privacy-content { padding: 4px 20px 24px; } .privacy-heading h2 { font-size: 26px; } }

@media (min-width: 761px) and (max-width: 1000px) { .overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px 32px; } }

/* Fontes recolhidas por tema para manter a seção compacta. */
.proposal-source-group { border-bottom: 1px solid #dedede; }
.proposal-source-group:last-child { border-bottom: 0; }
.proposal-source-group summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; padding: 22px 0; color: #111; font: 600 16px/1.4 var(--reading); }
.proposal-source-group summary::-webkit-details-marker { display: none; }
.proposal-source-group summary:after { display: none; }
.proposal-source-group summary small { display: block; margin-top: 6px; color: #555; font: 400 12px/1.5 var(--reading); }
.proposal-source-group .source-toggle { font-size: 24px; font-weight: 400; }
.proposal-source-group[open] .source-toggle { font-size: 0; }
.proposal-source-group[open] .source-toggle:before { content: '−'; font-size: 24px; }
.proposal-source-group summary:focus-visible { outline: 2px solid #205942; outline-offset: 4px; border-radius: 4px; }
.proposal-source-group .proposal-list { margin: 0; padding: 0; list-style: none; }
.proposal-source-group .proposal-list li { padding: 22px 0; border-top: 1px solid #e5e5e5; }
.proposal-source-group h5 { font: 600 15px/1.5 var(--reading); margin: 0 0 10px; }
.proposal-source-group p { margin: 10px 0; min-height: 0; font-size: 14px; line-height: 1.7; color: #333; }
.proposal-source-links a,.proposal-editorial-content a { color: #17251f; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; overflow-wrap: anywhere; }
.proposal-scope { display: block; margin-top: 14px; color: #555; font-size: 11px; line-height: 1.5; }
.proposal-editorial { margin-top: 24px; padding: 4px 36px; background: white; border-radius: 24px; }
.proposal-editorial-content { padding: 0 0 26px; max-width: 850px; }
.proposal-editorial-content h4 { font-size: 18px; margin: 20px 0 12px; }
.proposal-editorial-content ul { padding-left: 20px; }
.proposal-editorial-content li { margin: 14px 0; font-size: 14px; line-height: 1.7; }
@media(max-width:760px) { .proposal-editorial { padding-inline: 24px; } .proposal-source-group summary { font-size: 15px; } }

.result-sharing>h4 { font-size: clamp(26px,3vw,34px); line-height: 1.2; letter-spacing: -.035em; margin-bottom: 14px; }
.result-sharing>p { font-size: clamp(17px,1.8vw,20px); line-height: 1.5; }

/* Botões de emojis 30% menores, com grade compacta. */
.story-emoji-options { grid-template-columns: repeat(auto-fill,43.4px); gap: 9px; }
.story-emoji-choice { width: 43.4px; height: 43.4px; min-height: 43.4px; border-radius: 9.8px; }
.story-emoji-glyph { font-size: 22.4px; }

/* Respiro ao redor das cabeças, incluindo flutuação e reação ao ponteiro. */
.hero { min-height: 920px; }
.hero-face { offset-path: ellipse(calc(50% - 180px) calc(50% - 180px) at 50% 50%); }
@media(max-width:1050px) and (min-width:761px) {
 .hero { min-height: 900px; }
 .hero-face { offset-path: ellipse(calc(50% - 140px) calc(50% - 155px) at 50% 50%); }
}
@media(max-width:760px) {
 .hero { min-height: 900px; }
 .hero .hero-face { offset-path: ellipse(calc(50% - 70px) calc(50% - 120px) at 50% 50%); }
}

/* Menos espaço acima da órbita, mantendo o respiro inferior. */
.hero-faces { top: -90px; }
@media(max-width:1050px) and (min-width:761px) { .hero-faces { top: -75px; } }
@media(max-width:760px) { .hero-faces { top: -60px; } }
/* One map connects the personal result to the candidate comparison. */
.result-map-explainer{margin:32px 0;text-align:left}.result-map-explainer h4{font-size:clamp(22px,3vw,30px);margin:0 0 12px;color:#111}.result-map-explainer>p{color:#454545;line-height:1.65}.result-map .map{aspect-ratio:1; height:auto}.candidate-map-lines{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}.candidate-map-lines line{stroke-width:.45;stroke-dasharray:1.5 1;opacity:.75}.candidate-map-pin,.map-you-pin{position:absolute;transform:translate(-50%,-50%);z-index:2}.candidate-map-marker{display:block;width:16px;height:16px;background:var(--pin-color);border:2px solid white;transform:rotate(45deg);box-shadow:0 0 0 1px var(--pin-color)}.candidate-map-label,.map-you-label{position:absolute;left:50%;top:23px;transform:translateX(-50%);background:white;color:#111;padding:2px 7px;border-radius:5px;white-space:nowrap;font-size:13px;font-weight:650;line-height:1.5}.map-you-pin{z-index:3;width:18px;height:18px}.map-you-pin .result-dot{position:static;display:block;width:18px;height:18px;transform:none;background:#111;border:3px solid #fff;box-shadow:0 0 0 1px #111}.map-you-label{top:-28px}.map-you-label.is-near-reference{top:-30px}.map-you-label.is-top-edge{top:25px}.map-point-legend{display:flex;justify-content:center;gap:22px;flex-wrap:wrap;font-size:13px;margin-top:16px}.map-point-legend span{display:flex;align-items:center;gap:8px}.map-point-legend i{display:inline-block;width:10px;height:10px;background:var(--pin-color);transform:rotate(45deg)}.map-point-legend .legend-you{background:#111;border-radius:50%;transform:none}.map-reference-note{font-size:13px;text-align:center}.map-reference-note a{text-decoration:underline}.candidate-reference-sources{display:grid;gap:16px}.candidate-reference-sources h5{margin:0;font-size:16px}.candidate-reference-sources ul{padding-left:20px}.candidate-program-reference{margin-bottom:16px}
/* Equal positions aggregate; own-result styling never changes count-based size. */
html[data-theme] .live-dot,html[data-theme] .live-dot.is-own{width:var(--dot-size,12px);height:var(--dot-size,12px);min-width:0;min-height:0;transition:width .3s ease,height .3s ease;}
html[data-theme] .live-dot.is-own{outline:2px solid #111;outline-offset:5px;z-index:2;}
.live-count-breakdown,.live-register-note{font-size:12px;line-height:1.6;color:#505050;margin:12px 0;}
.live-legend{margin-top:22px;padding-top:18px;border-top:1px solid #d5d5d5;}.live-legend>strong{font-size:13px;color:#111;}.live-legend-samples{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:14px 0;}.live-legend-samples span{display:flex;align-items:center;gap:9px;font-size:11px;color:#333;}.live-legend-samples i{flex:none;width:var(--dot-size);height:var(--dot-size);border-radius:50%;background:#7344dc;border:2px solid white;box-shadow:0 0 0 4px #7344dc16;}.live-legend p{font-size:12px;line-height:1.6;color:#505050;margin:0;}.live-selection{padding:12px;border-radius:10px;background:#f0edf8;color:#222!important;}
@media(prefers-reduced-motion:reduce){html[data-theme] .live-dot{transition:none;}}

.result-registration:empty { display: none; }
.result-registration { margin: 28px 0; padding: 24px; border: 1px solid #b1cac1; border-radius: 20px; background: #edf6f2; }
.result-registration h4 { margin: 0 0 12px; font-size: clamp(20px, 2.5vw, 26px); line-height: 1.2; color: #142a23; }
.result-registration p { color: #263b33; line-height: 1.6; }
.result-registration .live-consent { padding: 0; border: 0; background: none; }
.result-registration input { width: 22px; height: 22px; }

/* Approved collective-map preview: half-size dots with staggered gentle pulses. */
html[data-theme] .live-dot,html[data-theme] .live-dot.is-own{width:var(--dot-size,6px);height:var(--dot-size,6px);border-width:1px;box-shadow:0 0 0 var(--pulse-halo-base,2.5px) color-mix(in srgb,var(--participant-color) 12%,transparent);animation:collective-dot-pulse 3.2s ease-in-out var(--pulse-delay,0s) infinite;}
html[data-theme] .live-dot.is-own{outline-width:1px;outline-offset:2.5px;}
html[data-theme] .live-dot:hover,html[data-theme] .live-dot:focus-visible{outline-width:1px;outline-offset:3px;}
.live-legend-samples i{border-width:1px;box-shadow:0 0 0 2px #7344dc16;}
@keyframes collective-dot-pulse{0%,100%{transform:translate(-50%,-50%) scale(1);box-shadow:0 0 0 var(--pulse-halo-base,2.5px) color-mix(in srgb,var(--participant-color) 12%,transparent);}50%{transform:translate(-50%,-50%) scale(1.35);box-shadow:0 0 0 var(--pulse-halo-peak,4.5px) color-mix(in srgb,var(--participant-color) 22%,transparent);}}
@media(prefers-reduced-motion:reduce){html[data-theme] .live-dot,html[data-theme] .live-dot.is-own{animation:none;transition:none;}}

/* Mobile copy has exactly three lines; physics controls the complete face offset. */
.hero-lead-mobile{display:none}.hero-face-drift{transition:none}
@media(max-width:760px){.hero-lead-desktop{display:none}.hero-lead-mobile{display:block}.hero-lead-mobile>span{display:block;white-space:nowrap}.hero .lead{font-size:clamp(12px,4vw,15px);}}

/* Vector envelope stays legible and cannot shrink on narrow screens. */
html[data-theme] .footer-contact{display:inline-flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap}.contact-mail-icon{display:block;width:22px;height:22px;flex:0 0 22px;overflow:visible}

.story-publish-guide{margin-top:18px;padding:20px;border-radius:16px;background:#f5f0fc;border:1px solid #ddd0ef}.story-publish-guide h5{font-size:18px;margin:0 0 14px}.story-publish-guide ol{padding-left:20px;font-size:14px;line-height:1.65}.story-publish-guide li{margin-bottom:10px}.story-publish-guide p{font-size:12px;line-height:1.5;color:#555;margin:14px 0 0}.story-publish-guide[hidden]{display:none}

/* Personal position is a viewing overlay; it never changes collective counts. */
.live-find-me{margin:0 0 12px}.live-find-me[hidden],.live-me-note[hidden]{display:none}.live-me-note{font-size:13px;line-height:1.65;color:#454545;max-width:460px;margin:0 0 18px}.live-you-point{position:absolute;display:block;width:17px;height:17px;border:3px solid #fff;border-radius:50%;background:#111;box-shadow:0 0 0 5px #ffe000;transform:translate(-50%,-50%);z-index:5;pointer-events:none}.live-you-point>span{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);padding:5px 10px;border-radius:8px;background:#111;color:#fff;white-space:nowrap;font-size:12px;line-height:1.3}.live-you-point.label-below>span{bottom:auto;top:24px}
.story-template-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0 30px}.story-template-option{display:flex;align-items:center;gap:14px;text-align:left;padding:18px;border:2px solid transparent;border-radius:16px;background:#f5f5f5;color:#111;font:600 16px var(--display,'BDO Grotesk',sans-serif);cursor:pointer}.story-template-option.selected{border-color:#7344dc;background:#f2ecfc}.story-template-icon{display:flex;align-items:center;justify-content:center;flex:0 0 52px;width:52px;height:52px;border-radius:15px;color:#7344dc;background:#fff;border:1px solid #e5dff0}.story-template-icon svg{display:block;flex:none}.story-template-copy{min-width:0}.story-template-copy small{display:block;font-size:12px;font-weight:400;line-height:1.5;color:#555;margin-top:6px}.story-template-option:disabled{opacity:.5;cursor:default}.story-template-option:focus-visible{outline:3px solid #111;outline-offset:3px}.story-model-status{font-size:12px;color:#555;margin:-15px 0 22px}.story-model-status[hidden]{display:none}
@media(max-width:760px){.story-template-options{grid-template-columns:1fr}.story-template-option{padding:14px}.story-template-icon{width:48px;height:48px;flex-basis:48px}}

/* Mobile collective map: quarter diameter, including animated halos and legend. */
@media(max-width:700px){
 html[data-theme] .live-dot,html[data-theme] .live-dot.is-own{width:calc(var(--dot-size,6px) * .25);height:calc(var(--dot-size,6px) * .25);border-width:0;--pulse-halo-base:.625px;--pulse-halo-peak:1.125px;}
 html[data-theme] .live-dot.is-own{outline-width:.25px;outline-offset:.625px;}
 html[data-theme] .live-dot:hover,html[data-theme] .live-dot:focus-visible{outline-width:.25px;outline-offset:.75px;}
 .live-legend-samples i{width:calc(var(--dot-size) * .25);height:calc(var(--dot-size) * .25);border-width:0;box-shadow:0 0 0 .5px #7344dc16;}
 .live-you-point{width:4.25px;height:4.25px;border-width:.75px;box-shadow:0 0 0 1.25px #ffe000;}
}

.completion-status{font-size:13px;line-height:1.6;padding:14px 16px;background:#f3edf9;border-radius:12px;color:#403151}.completion-status:empty{display:none}.live-completion-stat small{display:block;font-size:10px;color:#666;margin-top:8px}.result-actions{flex-wrap:wrap}@media(max-width:850px){html[data-theme] .live-completion-stat{grid-column:1/-1}}
