/* Paper-and-ink visual direction, informed by unslop by Damir Sokolovsky.
https://github.com/heydamir/unslop — CC BY 4.0 */
:root {
  --paper: #fafafa;
  --card: #ffffff;
  --surface: #f4f4f5;
  --line: #e4e4e7;
  --ink: #171717;
  --secondary: #525252;
  --muted: #737373;
  --accent: #a63d2f;
  --accent-wash: #f5e9e5;
  --ink-wash: #17171712;
  font-variant-numeric: tabular-nums;
}

/* Phone navigation keeps the same questions and answers in smaller pages. */
.quiz-page {
  margin: 0 0 20px;
  color: var(--secondary);
  font-size: 13px;
  font-weight: 500;
}
.answer-progress {
  align-self: center;
  margin-right: auto;
  font-size: 12px;
  color: var(--secondary);
}
:root {
  font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
}
button,input,select {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
[hidden] {
  display: none!important;
}
::selection {
  background: var(--line);
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  padding: 0 clamp(24px,5vw,88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
  height: 72px;
}
.brand {
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 600;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}
.nav-link {
  border: 0;
  background: none;
  color: var(--secondary);
  height: 100%;
  padding: 0 2px;
  position: relative;
  font-weight: 600;
}
.nav-link.active {
  color: var(--ink);
}
.nav-link.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}
.nav-link span {
  font-size: 11px;
  margin-left: 4px;
  color: var(--secondary);
}
.view {
  min-height: calc(100vh - 158px);
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.eyebrow-line {
  width: 30px;
  height: 1px;
  background: var(--line);
}

.intro {
  display: grid;
  padding: 0 clamp(24px,5vw,88px);
  grid-template-columns: minmax(0,1.12fr) minmax(360px,.88fr);
  grid-template-rows: minmax(640px,1fr) auto;
  max-width: 1600px;
  margin: auto;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 88px 64px 48px 0;
  justify-content: center;
}
.hero-copy h1,.result-heading h1,.library-heading h1 {
  font-family: Georgia,"Songti SC","STSong",serif;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.11;
  margin: 0;
  color: var(--ink);
  font-size: clamp(48px,6vw,80px);
}
.hero-copy h1 {
  font-size: clamp(64px,6.5vw,96px);
  font-weight: 500;
  line-height: 1.2;
}
.hero-copy h1 em,.result-heading h1 em {
  font-style: normal;
  color: var(--ink);
}
.hero-lead {
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.85;
  max-width: 460px;
  margin: 28px 0 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.button {
  border: 0;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  text-decoration: none;
  min-height: 48px;
  border-radius: 6px;
  gap: 24px;
  transition: background .16s ease-out,color .16s ease-out,border-color .16s ease-out;
}
.button:hover:not(:disabled) {
  background: var(--surface);
}
.button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.primary {
  background: var(--ink);
  color: var(--paper);
}
.primary:hover:not(:disabled) {
  background: var(--secondary);
}
.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.secondary:hover {
  background: var(--surface);
}
.text-button {
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
}
.text-button span {
  margin-left: 16px;
}
.text-button:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.privacy-line {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 48px 0 0;
  padding-top: 0;
}
.privacy-line span {
  font-size: 24px;
  line-height: 0;
}
.hero-aside {
  padding: clamp(44px,6vw,88px) clamp(32px,4.2vw,76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card);
  color: var(--ink);
  border-left: 1px solid var(--line);
}
.aside-label {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
  margin: 0 0 32px;
  color: var(--muted);
}
.intro-bottom {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
  padding: 16px 0 24px;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.quiz-shell,.results,.library {
  padding: 48px clamp(24px,5vw,88px) 88px;
  max-width: 1600px;
  margin: auto;
}
.progress {
  height: 4px;
  background: var(--line);
  margin-top: 16px;
}
.progress span {
  display: block;
  background: var(--accent);
  height: 100%;
  transition: none;
}
.quiz-layout {
  display: grid;
  grid-template-columns: minmax(300px,.72fr) minmax(0,1fr);
  gap: clamp(36px,7vw,120px);
  padding-top: 76px;
}
.quiz-intro {
  position: sticky;
  top: 30px;
  align-self: start;
}
.quiz-intro h1 {
  font-family: Georgia,"Songti SC","STSong",serif;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 24px;
  font-size: clamp(40px,4vw,60px);
  font-weight: 500;
}
.quiz-intro>p:not(.eyebrow) {
  color: var(--secondary);
  font-size: 17px;
  margin: 0;
}
.goal-box {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.goal-box p {
  font-weight: 500;
  margin: 0 0 16px;
}
.goal-box small {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 5px;
}
.goal-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.goal-choice {
  position: relative;
}
.goal-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.goal-choice span {
  display: block;
  border: 1px solid var(--line);
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  padding: 12px 16px;
}
.goal-choice input:checked+span {
  background: var(--accent-wash);
  color: var(--accent);
  border-color: var(--accent);
}
.goal-choice input:focus-visible+span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.question {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 28px 0 32px;
  min-width: 0;
}
.question legend {
  float: left;
  width: 100%;
  font-size: 19px;
  font-weight: 500;
  padding: 0 0 16px;
  line-height: 1.5;
}
.answer-options {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.answer-choice {
  position: relative;
}
.answer-choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.answer-choice span {
  display: block;
  border: 1px solid var(--line);
  min-width: 80px;
  text-align: center;
  color: var(--secondary);
  background: var(--paper);
  cursor: pointer;
  transition: background .15s,border-color .15s;
  border-radius: 6px;
  padding: 12px 16px;
}
.answer-choice:hover span {
  border-color: var(--secondary);
}
.answer-choice input:checked+span {
  font-weight: 500;
  background: var(--accent-wash);
  color: var(--accent);
  border-color: var(--accent);
}
.answer-choice input:focus-visible+span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}
.step-actions .primary {
  margin-left: auto;
}
.form-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 0;
}

.reset-link {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}
.reset-link:hover {
  text-decoration: underline;
}
.result-heading {
  padding: 76px 0 64px;
  max-width: 850px;
}
.result-heading h1 {
  font-size: clamp(48px,6vw,80px);
}
.result-heading>p:last-child {
  font-size: 18px;
  color: var(--secondary);
  max-width: 620px;
  line-height: 1.7;
  margin: 28px 0 0;
}
.urgent-callout {
  background: var(--surface);
  border-top: 3px solid var(--accent);
  padding: 24px 24px;
  margin-bottom: 40px;
}
.urgent-callout strong {
  font-size: 19px;
  color: var(--secondary);
}
.urgent-callout p {
  margin: 8px 0 0;
  color: var(--secondary);
}
.result-lens {
  display: grid;
  grid-template-columns: minmax(250px,.32fr) minmax(0,1fr);
  column-gap: clamp(36px,6vw,100px);
  border-top: 1px solid var(--line);
  padding: 32px 0 52px;
}
.lens-heading {
  align-self: start;
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 12px;
}
.lens-number {
  font-family: Georgia,serif;
  font-size: 17px;
  color: var(--accent);
  margin-top: 6px;
}
.lens-heading h2 {
  font-family: "Songti SC","STSong",Georgia,serif;
  font-size: clamp(29px,2.7vw,42px);
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
}
.lens-heading p {
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 13px;
}
.lens-count {
  grid-column: 2;
  color: var(--accent);
  font-size: 12px;
  margin-top: 24px;
}
.advice-card {
  border-bottom: 1px solid var(--line);
  padding: 0 0 28px;
  margin-bottom: 28px;
  min-width: 0;
}
.result-lens>.advice-card {
  grid-column: 2;
}
.advice-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.badge {
  font-size: 11px;
  letter-spacing: 0;
  color: var(--secondary);
  border: 1px solid var(--line);
  padding: 3px 8px;
  line-height: 1.5;
}
.badge.chapter {
  border: 0;
  padding: 3px 8px 3px 0;
  color: var(--accent);
}
.badge.ratio {
  background: var(--surface);
  color: var(--secondary);
  border-color: var(--line);
}
.badge.grade {
  background: var(--surface);
  border-color: var(--surface);
}
.advice-card h3 {
  font-family: "Songti SC","STSong",Georgia,serif;
  font-size: clamp(23px,2.1vw,31px);
  font-weight: 600;
  line-height: 1.4;
  margin: 16px 0 12px;
  color: var(--ink);
}
.advice-human {
  font-size: 15px;
  color: var(--secondary);
  line-height: 1.85;
  margin: 0 0 16px;
}
.advice-details {
  font-size: 13px;
  color: var(--secondary);
}
.advice-details summary,.more-advice summary {
  cursor: pointer;
  font-weight: 500;
  display: list-item;
  list-style: disclosure-closed inside;
}
.advice-details[open] summary,.more-advice[open] summary {
  list-style: disclosure-open inside;
}
.detail-body {
  margin-top: 16px;
  background: var(--surface);
  padding: 16px 24px;
}
.detail-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.detail-row strong {
  color: var(--secondary);
}
.detail-row p {
  margin: 0;
  color: var(--secondary);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.source-link {
  display: inline-block;
  color: var(--ink);
  margin-top: 16px;
  font-weight: 500;
}
.more-advice {
  grid-column: 2;
}
.more-advice>summary {
  color: var(--secondary);
  padding: 5px 0 24px;
}
.more-advice>.advice-card {
  margin-top: 24px;
}
.result-note {
  max-width: 770px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin: 32px 0;
}
.empty-state {
  border: 1px solid var(--line);
  padding: 40px;
  max-width: 650px;
}
.empty-state h2 {
  font-family: "Songti SC",Georgia,serif;
  font-size: 30px;
  margin: 0 0 8px;
}
.empty-state p {
  color: var(--secondary);
  margin: 0;
}

.library-heading {
  padding: 76px 0 56px;
}
.library-heading h1 {
  font-size: clamp(54px,7vw,98px);
}
.period {
  color: var(--accent);
}
.library-heading>p:last-child {
  font-size: 17px;
  color: var(--secondary);
  max-width: 650px;
  margin: 24px 0 0;
}
.filters {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(210px,280px);
  gap: 24px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.filters label {
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filters input,.filters select {
  height: 53px;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 16px;
  outline: none;
  color: var(--ink);
  font-size: 15px;
  border-radius: 6px;
}
.filters input:focus,.filters select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink-wash);
}
.library-count {
  font-size: 13px;
  color: var(--secondary);
  margin: 32px 0 24px;
}
.library-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: clamp(24px,5vw,80px);
}
.library-list .advice-card {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-bottom: 28px;
}
.library-list .advice-card h3 {
  font-size: 24px;
}
.load-more {
  display: flex;
  margin: 20px auto 0;
}
.site-footer {
  min-height: 76px;
  border-top: 1px solid var(--line);
  padding: 24px clamp(24px,5vw,88px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.site-footer a:hover {
  color: var(--accent);
}

@media(max-width:900px) {
  .intro {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .hero-copy {
    padding: 80px 0 72px;
  }
  .hero-copy h1 {
    font-size: clamp(68px,12vw,110px);
  }
  .hero-aside {
    margin: 0 -24px;
    padding: 44px 24px;
  }
  .intro-bottom {
    padding-top: 20px;
  }
  .quiz-layout {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 56px;
  }
  .quiz-intro {
    position: static;
  }
  .quiz-intro h1 {
    font-size: 57px;
  }
  .goal-box {
    margin-top: 28px;
  }
  .result-lens {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .result-lens>.advice-card,.more-advice {
    grid-column: 1;
  }
  .lens-heading {
    grid-template-columns: 37px 1fr;
  }
  .lens-count {
    margin-top: 8px;
  }
  .library-list {
    grid-template-columns: 1fr;
  }
  .library-list .advice-card h3 {
    font-size: 27px;
  }

}

@media(max-width:600px) {
  .site-header {
    height: 65px;
    padding: 0 20px;
  }
  .brand {
    font-size: 15px;
    gap: 8px;
  }
  .brand-mark {
    width: 27px;
    height: 27px;
    font-size: 20px;
  }
  .site-header nav {
    gap: 16px;
  }
  .nav-link {
    font-size: 12px;
  }
  .nav-link span {
    display: none;
  }
  .intro {
    padding: 0 20px;
  }
  .hero-copy {
    padding: 68px 0 56px;
  }
  .hero-copy h1 {
    font-size: clamp(58px,14vw,82px);
  }
  .hero-lead {
    font-size: 17px;
    margin: 24px 0 32px;
  }
  .hero-actions {
    align-items: flex-start;
    gap: 20px;
    flex-direction: column;
  }
  .privacy-line {
    padding-top: 36px;
  }
  .hero-aside {
    margin: 0 -20px;
    padding: 40px 20px;
  }
  .intro-bottom span:last-child {
    display: none;
  }
  .quiz-shell,.results,.library {
    padding: 32px 20px 60px;
  }
  .quiz-layout {
    padding-top: 48px;
  }
  .quiz-intro h1 {
    font-size: 48px;
  }
  .question legend {
    font-size: 17px;
  }
  .answer-options {
    gap: 8px;
  }
  .answer-choice span {
    min-width: 0;
    padding: 8px 12px;
    font-size: 13px;
  }
  .step-actions .button {
    min-height: 48px;
    padding: 0 16px;
    gap: 12px;
  }
  .result-heading {
    padding: 52px 0 48px;
  }
  .result-heading h1 {
    font-size: 58px;
  }
  .result-heading>p:last-child {
    font-size: 15px;
  }
  .lens-heading h2 {
    font-size: 30px;
  }
  .advice-card h3 {
    font-size: 25px;
  }
  .advice-human {
    font-size: 14px;
  }
  .detail-body {
    padding: 16px;
  }
  .detail-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .library-heading {
    padding: 56px 0 40px;
  }
  .library-heading h1 {
    font-size: 55px;
  }
  .filters {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .site-footer {
    padding: 24px 20px;
    flex-direction: column;
    gap: 5px;
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
  .progress span {
    transition: none;
  }

}

.library-download {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  background: var(--surface);
  margin-bottom: 28px;
}
.library-download strong {
  font-size: 17px;
}
.library-download p {
  margin: 8px 0 0;
  color: var(--secondary);
  font-size: 13px;
}
.library-download .button {
  flex-shrink: 0;
}
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media(max-width:600px) {
  .library-download {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

}

.score-retry {
  margin-top: 16px;
  font-size: 13px;
}

.quiz-intro.with-situations {
  position: static;
}
#situation-box {
  margin-top: 24px;
}

.questionnaire-size {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0 0;
  margin: 28px 0 16px;
  min-width: 0;
}
.questionnaire-size legend {
  float: left;
  width: 100%;
  padding: 0 0 16px;
  font-weight: 500;
}
.questionnaire-size .goal-options {
  clear: both;
}
#round-size {
  font-size: 13px;
  font-weight: 400;
  color: var(--secondary);
  margin: 0 0 20px;
}

.question-note {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.lens-empty {
  grid-column: 2;
  align-self: start;
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1.7;
}

@media(max-width:900px) {
  .lens-empty {
    grid-column: 1;
  }

}

.quiz-layout.selecting {
  display: block;
  max-width: 860px;
  margin: auto;
}

.quiz-layout.selecting .quiz-intro h1 {
  max-width: 760px;
}

#begin-questions {
  margin-top: 28px;
}

/* The report keeps the paper-and-ink palette;
charts use the same score data. */
.dashboard-disclaimer {
  font-size: 12px;
  line-height: 1.8;
  color: var(--secondary);
  margin: 16px 0 0;
  max-width: 1000px;
}
.dashboard-disclaimer a {
  color: var(--secondary);
  text-underline-offset: 3px;
}

.score-panel {
  padding: clamp(24px,3.5vw,48px);
  margin: 0 0 72px;
  background: var(--card);
  border-top: 2px solid var(--ink);
}

.dashboard-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.dashboard-heading .eyebrow {
  margin-bottom: 8px;
}
.dashboard-heading h2 {
  font: 600 clamp(29px,3vw,43px)/1.2 "Songti SC","STSong",Georgia,serif;
  margin: 0;
}
.dashboard-heading>p {
  margin: 0;
  color: var(--secondary);
  font-size: 13px;
}

.score-overview {
  display: grid;
  grid-template-columns: minmax(220px,.95fr) minmax(260px,1fr) minmax(220px,.95fr);
  align-items: center;
  gap: 24px;
  padding: 32px 0;
}

.score-main {
  min-width: 0;
}
.score-gauge {
  position: relative;
  max-width: 320px;
  margin: auto;
}
.score-gauge svg {
  width: 100%;
  display: block;
  overflow: visible;
}
.gauge-track,#gauge-fill {
  fill: none;
  stroke-width: 13;
  stroke-linecap: butt;
}
.gauge-track {
  stroke: var(--line);
}
#gauge-fill {
  stroke: var(--accent);
}
.score-gauge svg text {
  fill: var(--secondary);
  font-size: 11px;
}
.score-number {
  position: absolute;
  inset: 28% 0 12%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  line-height: 1;
}
.score-number strong {
  font-family: Georgia,"Songti SC",serif;
  font-size: clamp(65px,6vw,95px);
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--accent);
}
.score-number span {
  font-size: 13px;
  color: var(--secondary);
  margin-top: 8px;
}
.score-caption {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 12px;
}
#score-coverage {
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.7;
  max-width: 310px;
  margin: 0 auto;
}
.score-retry {
  display: block;
  margin: 12px auto 0;
}

.radar-figure {
  margin: 0;
  min-width: 0;
}
.radar-figure figcaption {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}
.radar-figure svg {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: auto;
}
.radar-figure>p {
  font-size: 11px;
  color: var(--secondary);
  text-align: center;
  margin: 0;
}
.radar-grid {
  stroke: var(--line);
  fill: none;
  stroke-width: 1;
}
.radar-area {
  stroke-width: 2;
  stroke: var(--secondary);
  fill: var(--ink-wash);
}
.radar-dot {
  fill: var(--secondary);
}
.radar-missing {
  stroke: var(--secondary);
  stroke-width: 2;
  fill: var(--card);
}
.radar-label {
  text-anchor: middle;
  font-size: 12px;
  fill: var(--ink);
}
.radar-value {
  text-anchor: middle;
  font: 500 15px Georgia,serif;
  fill: var(--accent);
}

.score-breakdown {
  display: grid;
  gap: 24px;
}
.score-row-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
}
.score-row-heading strong {
  color: var(--accent);
  white-space: nowrap;
}
.score-row progress {
  display: block;
  width: 100%;
  height: 6px;
  border: 0;
  appearance: none;
  margin: 8px 0 5px;
  background: var(--line);
}
.score-row progress::-webkit-progress-bar {
  background: var(--line);
}
.score-row progress::-webkit-progress-value {
  background: var(--secondary);
}
.score-row progress::-moz-progress-bar {
  background: var(--secondary);
}
.score-row small {
  font-size: 11px;
  color: var(--secondary);
}

.score-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-block: 1px solid var(--line);
  padding: 24px 0;
  margin-bottom: 40px;
  gap: 24px;
}
.score-stats>div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.score-stats>div:first-child {
  padding-left: 0;
  border: 0;
}
.score-stats span {
  font-size: 12px;
  font-weight: 500;
}
.score-stats strong {
  font: 500 30px Georgia,"Songti SC",serif;
  color: var(--ink);
}
.score-stats small {
  font-size: 11px;
  color: var(--secondary);
}

.opportunity-layout {
  display: grid;
  grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  gap: clamp(24px,4vw,64px);
  align-items: start;
}
.opportunity-layout h3 {
  font: 600 clamp(23px,2vw,30px)/1.3 "Songti SC","STSong",Georgia,serif;
  margin: 0 0 16px;
}
.opportunity-layout .eyebrow {
  font-size: 11px;
  margin-bottom: 8px;
}
.dashboard-help,.matrix-note {
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.7;
  margin: 12px 0 16px;
}
.matrix-note {
  font-size: 11px;
  max-width: 380px;
}
.value-matrix {
  display: grid;
  grid-template-columns: 44px repeat(3,minmax(0,1fr));
  gap: 8px;
  margin: 24px 0 16px;
}
.matrix-axis,.matrix-column {
  font-size: 11px;
  color: var(--secondary);
  align-self: center;
  text-align: center;
}
.matrix-column {
  padding-bottom: 5px;
}
.matrix-cell {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--secondary);
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.matrix-cell strong {
  font: 500 29px Georgia,serif;
}
.matrix-cell small {
  font-size: 10px;
}
.matrix-cell.populated {
  background: var(--line);
  color: var(--ink);
  border-color: var(--line);
}
.matrix-cell[aria-pressed=true] {
  background: var(--accent-wash);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.matrix-cell:hover {
  border-color: var(--ink);
}
.value-map>.text-button {
  font-size: 12px;
}

.opportunity-filter {
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--secondary);
}
.opportunity-filter select {
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 8px;
  color: var(--ink);
  max-width: 100%;
}
.opportunity {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.opportunity-choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}
.opportunity-choice input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin: 4px 0 0;
  accent-color: var(--accent);
}
.opportunity-choice:has(input:checked) {
  color: var(--accent);
}
.opportunity-detail {
  margin: 6px 0 0 28px;
  font-size: 11px;
  color: var(--secondary);
}
.opportunity-detail summary {
  cursor: pointer;
}
.opportunity-detail p {
  margin: 8px 0;
  line-height: 1.8;
}
.opportunity-detail .source-link {
  margin: 0;
}
.opportunity-empty {
  color: var(--secondary);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
#more-opportunities {
  font-size: 12px;
}

.score-simulation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--surface);
  color: var(--ink);
  border-top: 1px solid var(--line);
}
.score-simulation .eyebrow {
  font-size: 11px;
  margin: 0 0 8px;
  color: var(--muted);
}
.score-simulation p {
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  max-width: 640px;
}
.simulation-actions {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 8px;
  flex-shrink: 0;
}
.simulation-actions strong {
  font: 500 30px Georgia,"Songti SC",serif;
  color: var(--accent);
}
.simulation-actions .text-button {
  font-size: 11px;
  color: var(--secondary);
  border-color: var(--line);
}
.simulation-actions .text-button:disabled {
  opacity: .45;
  cursor: default;
}

.score-method {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--secondary);
}
.score-method summary {
  cursor: pointer;
  font-weight: 500;
}
.score-method p {
  margin: 12px 0 0;
  color: var(--secondary);
  line-height: 1.8;
  max-width: 1050px;
}

@media(max-width:1100px) {
  .score-overview {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .score-breakdown {
    grid-column: 1/-1;
    grid-template-columns: 1fr 1fr;
  }
  .score-gauge {
    max-width: 280px;
  }
  .score-number strong {
    font-size: 85px;
  }

}

@media(max-width:700px) {
  .score-panel {
    padding: 24px 16px;
    margin-bottom: 44px;
  }
  .dashboard-heading {
    display: block;
  }
  .dashboard-heading>p {
    margin-top: 16px;
  }
  .dashboard-heading>p br {
    display: none;
  }
  .score-overview {
    grid-template-columns: 1fr;
  }
  .score-breakdown {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }
  .score-row-heading {
    font-size: 11px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .score-row small {
    font-size: 10px;
  }
  .radar-figure {
    margin-top: 16px;
  }
  .score-stats {
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 32px;
  }
  .score-stats>div {
    padding-left: 8px;
  }
  .score-stats span {
    font-size: 10px;
  }
  .score-stats strong {
    font-size: 23px;
  }
  .score-stats small {
    font-size: 10px;
  }
  .opportunity-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .score-simulation {
    padding: 24px 16px;
    flex-direction: column;
    align-items: start;
  }
  .simulation-actions {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .score-simulation .eyebrow {
    line-height: 1.7;
  }
  .value-matrix {
    max-width: 420px;
  }
  .matrix-cell {
    min-height: 70px;
  }

}

.report-preview {
  justify-content: center;
  min-width: 0;
  padding: 48px;
  margin: 40px 0;
}

.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.preview-heading .aside-label {
  margin: 0;
  letter-spacing: 0;
  font-size: 12px;
}
.preview-tag {
  white-space: nowrap;
  border: 0;
  padding: 0;
  font-size: 12px;
  color: var(--muted);
}

.report-preview h2 {
  letter-spacing: -.02em;
  font: 500 clamp(28px,2.6vw,38px)/1.4 "Songti SC","STSong",Georgia,serif;
  margin: 0 0 24px;
}

.preview-score {
  display: flex;
  align-items: center;
  border-block: 1px solid var(--line);
  gap: 24px;
  padding: 24px 0;
}
.preview-dial {
  width: clamp(112px,12vw,165px);
  flex-shrink: 0;
  position: relative;
}
.preview-dial svg {
  display: block;
  width: 100%;
}
.preview-dial path {
  fill: none;
  stroke-width: 7;
  stroke: var(--line);
}
.preview-dial .preview-dial-fill {
  stroke: var(--accent);
}
.preview-dial>div {
  position: absolute;
  inset: 25% 0 5%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}
.preview-dial strong {
  font: 500 clamp(38px,4vw,58px)/1 Georgia,serif;
  letter-spacing: -.02em;
  color: var(--accent);
}
.preview-dial small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.preview-score-copy h3 {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 8px;
  font-weight: 600;
}
.preview-score-copy p {
  margin: 0 0 8px;
  line-height: 1.7;
  color: var(--secondary);
  font-size: 13px;
}
.preview-score-copy small {
  display: block;
  line-height: 1.6;
  color: var(--muted);
  font-size: 12px;
}

.preview-resources {
  padding: 24px 0;
  display: grid;
  gap: 16px;
}
.preview-resources>div {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr);
  gap: 12px;
  align-items: start;
}
.preview-resources h3 {
  font-weight: 500;
  margin: 3px 0 0;
  color: var(--secondary);
  font-size: 12px;
}
.preview-costs {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.preview-costs span {
  margin: 0 6px;
  color: var(--muted);
}
.preview-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.9;
  color: var(--secondary);
  font-size: 13px;
}

.preview-action {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0 0;
}
.preview-action-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 12px;
}
.preview-action h3 {
  font: 500 clamp(19px,1.8vw,25px)/1.5 "Songti SC","STSong",Georgia,serif;
  margin: 12px 0 8px;
}
.preview-action p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}
.preview-action a {
  display: inline-block;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--ink);
  font-size: 12px;
}
.preview-action a:hover {
  color: var(--accent);
}
.preview-foot {
  line-height: 1.8;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media(max-width:900px) {
  .report-preview {
    margin: 0;
    padding: 36px;
  }
  .preview-score {
    justify-content: flex-start;
    gap: 24px;
  }
  .preview-dial {
    width: 150px;
  }
  .preview-dial strong {
    font-size: 52px;
  }
  .report-preview h2 {
    font-size: 39px;
  }
  .report-preview h2 br {
    display: none;
  }

}

@media(max-width:600px) {
  .report-preview {
    margin: 0 -20px;
    padding: 32px 24px;
  }
  .report-preview h2 {
    font-size: 32px;
  }
  .preview-score {
    gap: 16px;
  }
  .preview-dial {
    width: 120px;
  }
  .preview-dial strong {
    font-size: 44px;
  }
  .preview-score-copy h3 {
    font-size: 14px;
  }
  .preview-score-copy small {
    max-width: 160px;
  }
  .preview-action {
    padding: 16px;
  }
  .preview-resources>div {
    grid-template-columns: 52px minmax(0,1fr);
    gap: 8px;
  }

}

@media(max-width:900px) {
  .intro {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .hero-copy {
    padding: 64px 0 48px;
  }

  .hero-copy h1 {
    font-size: 72px;
  }

  .report-preview {
    margin: 0;
    padding: 40px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .report-preview h2 {
    font-size: 32px;
  }

}

@media(max-width:600px) {
  .site-header {
    height: 64px;
  }

  .hero-copy {
    padding: 48px 0 40px;
  }

  .hero-copy h1 {
    font-size: 56px;
  }

  .hero-lead {
    font-size: 16px;
    margin: 24px 0 28px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }

  .hero-actions .button {
    padding: 0 20px;
    gap: 16px;
  }

  .hero-actions .text-button {
    font-size: 14px;
  }

  .privacy-line {
    margin: 32px 0 0;
    padding-top: 0;
    font-size: 12px;
  }

  .report-preview {
    margin: 0 -20px;
    padding: 32px 24px;
  }

  .report-preview h2 {
    font-size: 28px;
  }

  .preview-score-copy small {
    max-width: none;
  }

  .quiz-intro h1 {
    font-size: 40px;
  }

  .result-heading h1,.library-heading h1 {
    font-size: 44px;
  }

  .score-stats small,.score-row small {
    font-size: 12px;
  }

  .score-stats span {
    font-size: 12px;
  }

  .score-breakdown {
    grid-template-columns: 1fr;
  }

}

/* Mobile reading, touch targets and a reachable question pager. */
html { -webkit-text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
button, a, summary, label { -webkit-tap-highlight-color: transparent; }
button, .answer-choice, .goal-choice { touch-action: manipulation; }
@supports (padding-top: env(safe-area-inset-top)) {
  body { padding-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px)); padding-left: var(--safe-area-inset-left, env(safe-area-inset-left, 0px)); padding-right: var(--safe-area-inset-right, env(safe-area-inset-right, 0px)); }
}
@media (max-width:600px) {
  body { min-width: 0; }
  .site-header { padding: 0 16px; }
  .site-header nav { gap: 12px; min-width: 0; }
  .brand { font-size: 14px; gap: 7px; flex-shrink: 0; }
  .brand-mark { width: 24px; height: 24px; }
  .nav-link { min-height: 44px; font-size: 12px; }
  .hero-copy { padding: 32px 0; }
  .hero-copy h1 { font-size: 48px; }
  .hero-lead { line-height: 1.8; margin: 20px 0 24px; }
  .hero-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; width: 100%; }
  .hero-actions .button { padding: 0 12px; gap: 12px; min-height: 48px; justify-content: center; }
  .hero-actions .text-button { min-height: 48px; text-align: center; font-size: 13px; }
  .privacy-line { margin-top: 24px; line-height: 1.7; }
  .report-preview { padding: 28px 20px; }
  .report-preview h2 { font-size: 26px; }
  .preview-score { gap: 12px; }
  .preview-dial { width: 104px; }
  .preview-score-copy { min-width: 0; }
  .preview-score-copy h3 { font-size: 14px; }
  .preview-action { padding: 16px 0 0; }
  .quiz-shell, .results, .library { padding-left: 16px; padding-right: 16px; }
  .quiz-shell { padding-top: 24px; padding-bottom: 152px; }
  .quiz-layout { padding-top: 28px; gap: 28px; }
  .quiz-intro h1 { font-size: 30px; line-height: 1.35; margin-bottom: 16px; }
  .quiz-intro > p:not(.eyebrow) { font-size: 15px; line-height: 1.8; }
  .goal-box small { font-size: 13px; line-height: 1.7; }
  .goal-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .goal-choice { min-width: 0; }
  .goal-choice span { min-height: 48px; height: 100%; display: flex; align-items: center; padding: 12px; font-size: 14px; line-height: 1.5; }
  .questionnaire-size .goal-options { grid-template-columns: 1fr; }
  #begin-questions { width: 100%; justify-content: center; min-height: 48px; }
  #quiz-form { min-width: 0; }
  .quiz-page { margin-bottom: 16px; font-size: 13px; padding-top: 12px; }
  .question { padding: 20px 0 24px; }
  .question legend { font-size: 17px; line-height: 1.65; padding-bottom: 14px; }
  .question-note { display: block; margin: 6px 0 0; white-space: normal; font-size: 12px; }
  .answer-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .answer-choice { min-width: 0; }
  .answer-choice span { display: flex; align-items: center; justify-content: center; min-height: 48px; height: 100%; padding: 12px 8px; font-size: 14px; line-height: 1.5; }
  .step-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px 12px;
    margin: 0; padding: 10px 16px 12px;
    background: var(--paper); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(23,23,23,.04);
    padding-bottom: calc(12px + var(--safe-area-inset-bottom, 0px));
  }
  @supports (padding-bottom: env(safe-area-inset-bottom)) {
    .step-actions { padding-bottom: calc(12px + var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px))); }
  }
  .answer-progress { grid-column: 1/-1; text-align: center; margin: 0; font-size: 12px; }
  .step-actions .button { width: 100%; margin: 0; min-height: 48px; padding: 0 12px; justify-content: center; font-size: 14px; gap: 10px; }
  .form-hint { font-size: 13px; line-height: 1.8; }
  .result-heading { padding: 32px 0; }
  .result-heading h1, .library-heading h1 { font-size: 36px; }
  .score-panel { padding: 20px 14px; }
  .dashboard-heading h2 { font-size: 27px; }
  .dashboard-help, .score-coverage, .matrix-note, .dashboard-disclaimer, .score-method { line-height: 1.8; }
  .score-breakdown { grid-template-columns: 1fr; }
  .score-row-heading { font-size: 13px; }
  .score-stats { grid-template-columns: 1fr; gap: 16px; }
  .score-stats > div { padding: 0 0 16px; border-left: 0; border-bottom: 1px solid var(--line); }
  .score-stats > div:last-child { border-bottom: 0; padding-bottom: 0; }
  .opportunity-filter { flex-wrap: wrap; }
  .opportunity-filter select, .filters input, .filters select { font-size: 16px; min-height: 48px; max-width: 100%; }
  .opportunity-choice { font-size: 15px; line-height: 1.7; min-height: 44px; }
  .opportunity-choice input { width: 22px; height: 22px; }
  .opportunity-detail { margin-left: 34px; font-size: 13px; }
  .advice-card h3, .library-list .advice-card h3 { font-size: 23px; line-height: 1.45; }
  .advice-human, .detail-row p { font-size: 14px; line-height: 1.85; }
  .advice-details summary, .more-advice > summary, .score-method > summary { padding: 12px 0; min-height: 44px; }
  .source-link { min-height: 44px; padding: 12px 0; }
  .reset-link, .load-more, #clear-matrix, #more-opportunities, #clear-simulation { min-height: 44px; }
  .library-heading { padding: 32px 0 28px; }
  .library-download { padding: 20px 16px; }
  .download-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .download-actions .button { justify-content: center; min-height: 48px; }
  .filters { gap: 16px; }
  .site-footer { padding: 24px 16px; font-size: 12px; line-height: 1.9; }
  .site-footer > span { min-width: 0; max-width: 100%; }
}
