:root {
  --ink: #0b0b0c;
  --ink-soft: #202023;
  --muted: #69696f;
  --muted-strong: #4f4f54;
  --paper: #f4f4f2;
  --card: #ffffff;
  --line: rgba(11, 11, 12, 0.1);
  --line-strong: rgba(11, 11, 12, 0.18);
  --yellow: #fdd000;
  --yellow-soft: #fff6bf;
  --yellow-pale: #fffbdf;
  --red: #b42318;
  --green: #147a45;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03), 0 18px 50px rgba(0, 0, 0, 0.055);
  --shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.12);
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 14% -10%, rgba(253, 208, 0, 0.13), transparent 27rem),
    linear-gradient(180deg, #fafaf8 0, var(--paper) 34rem);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input {
  font-family: inherit;
}

button,
a,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.wrap {
  width: min(100%, 1220px);
  max-width: none;
  min-height: 100vh;
  padding: 26px clamp(22px, 4vw, 54px) 80px;
}

.nav {
  min-height: 54px;
  margin-bottom: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1;
  text-decoration: none;
}

.brand::before {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  content: "";
  transform: rotate(45deg);
}

.navright {
  gap: 8px;
}

.navright > a {
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
  transition: background 150ms ease, color 150ms ease;
}

.navright > a:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button {
  min-height: 46px;
  border-radius: 13px;
  padding: 13px 18px;
  background: var(--ink);
  box-shadow: none;
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover:not(:disabled) {
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
}

.button:active:not(:disabled) {
  box-shadow: none;
  transform: translateY(0);
}

.button.yellow {
  background: var(--yellow);
  color: var(--ink);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.button:focus-visible,
.option:focus-visible,
.radar-label-target:focus-visible,
.radar-dot:focus-visible,
.skill-detail-close:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.eyebrow {
  padding: 8px 11px;
  background: var(--yellow);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.title {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.055em;
}

.lede {
  color: var(--muted);
  font-size: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.card h2 {
  font-weight: 800;
  letter-spacing: -0.045em;
}

.section-kicker {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.hero {
  max-width: 790px;
  margin-bottom: 48px;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 800;
}

.hero h1 em {
  color: var(--ink);
  background: linear-gradient(transparent 64%, rgba(253, 208, 0, 0.72) 64%);
}

.auth {
  width: min(100%, 490px);
  margin: 0 auto;
  padding: 34px;
}

.field input {
  min-height: 48px;
  border-color: var(--line-strong);
  border-radius: 12px;
  background: #fff;
}

.field input:focus {
  border-color: var(--ink);
  outline: 3px solid rgba(253, 208, 0, 0.52);
}

.preview-banner {
  margin: -24px 0 32px;
  border-color: rgba(160, 129, 0, 0.25);
  border-radius: 16px;
  background: var(--yellow-pale);
  color: #4b3c00;
}

.dashboard-hero {
  margin-bottom: 30px;
}

.dashboard-hero .title {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(46px, 5.6vw, 72px);
  line-height: 0.94;
}

.dashboard-hero .lede {
  max-width: 620px;
  margin-top: 15px;
  font-size: 16px;
}

.member-metrics {
  gap: clamp(20px, 3.5vw, 44px);
  margin: 0 0 28px;
  padding: 24px 2px;
  border-color: var(--line);
}

.member-metrics > div:not(.metric-divider) {
  flex: 1 1 0;
  min-width: 0;
}

.member-metrics strong {
  margin: 9px 0 6px;
  color: var(--ink);
  font-size: clamp(36px, 4vw, 50px);
  font-weight: 800;
}

.member-metrics span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.member-metrics p {
  max-width: 29ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.52fr) minmax(315px, 0.76fr);
  gap: 22px;
  margin-top: 0;
}

.dashboard-rail {
  gap: 22px;
}

.skill-map-card {
  min-height: 760px;
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
}

.skill-map-card .section-head h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
}

.skill-radar {
  display: block;
  width: 100%;
  margin-top: 16px;
}

.radar-key {
  display: flex;
  justify-content: flex-start;
  gap: 12px 22px;
  margin-bottom: 10px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 750;
}

.radar-key span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.radar-key i {
  display: block;
  width: 24px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: rgba(253, 208, 0, 0.62);
}

.radar-key .legend-dotted {
  height: 0;
  border: 0;
  border-top: 2px dashed #7b7b80;
  border-radius: 0;
  background: transparent;
}

.radar-interaction {
  width: 100%;
}

.radar-canvas {
  width: min(100%, 620px);
  max-width: none;
  margin: 0 auto;
}

.radar-canvas svg {
  width: 100%;
  overflow: visible;
}

.radar-ring {
  fill: none;
  stroke: rgba(11, 11, 12, 0.13) !important;
  stroke-width: 1 !important;
}

.radar-spoke {
  stroke: rgba(11, 11, 12, 0.08) !important;
  stroke-width: 1 !important;
}

.radar-reference {
  fill: rgba(80, 80, 84, 0.025);
  stroke: #78787d !important;
  stroke-width: 2 !important;
  stroke-dasharray: 4 7 !important;
  stroke-linejoin: round;
}

.radar-fill {
  fill: rgba(253, 208, 0, 0.58);
  stroke: var(--ink) !important;
  stroke-width: 2.4 !important;
  stroke-linejoin: round;
  filter: none;
}

.radar-label-target {
  cursor: pointer;
  outline: none;
}

.radar-label-target .radar-label {
  pointer-events: all;
  fill: var(--muted-strong);
  font: 760 11px Inter, -apple-system, sans-serif;
  letter-spacing: -0.015em;
  transition: fill 140ms ease;
}

.radar-label-target:hover .radar-label,
.radar-label-target:focus .radar-label,
.radar-label-target.active .radar-label {
  fill: var(--ink);
  text-decoration: none;
}

.radar-dot {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 2;
  cursor: pointer;
  outline: none;
  transition: fill 140ms ease, r 140ms ease;
}

.radar-dot:hover,
.radar-dot:focus,
.radar-dot.active {
  fill: var(--yellow);
  r: 7px;
}

.skill-detail {
  width: 100%;
  margin-top: 4px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f8f8f6;
  animation: detail-in 160ms ease both;
}

.skill-detail[hidden] {
  display: none;
}

@keyframes detail-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.skill-detail-kicker,
.skill-detail-tip > span,
.skill-detail-scores span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.skill-detail h3 {
  margin: 6px 0 0;
  font-size: 22px;
  letter-spacing: -0.045em;
}

.skill-detail-close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.skill-detail-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.skill-detail-scores > div {
  min-width: 0;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.skill-detail-scores > div:last-child {
  border-right: 0;
}

.skill-detail-scores strong {
  display: block;
  margin-top: 6px;
  font-size: 25px;
  letter-spacing: -0.05em;
}

.skill-detail-scores small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.skill-detail-tip {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.skill-detail-tip > span {
  color: #796300;
}

.skill-detail-tip p {
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.55;
}

.map-note {
  margin-top: auto !important;
  padding-top: 18px;
  color: var(--muted) !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
}

.next-card {
  padding: 28px;
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: none;
}

.next-card .section-kicker,
.next-meta span:last-child {
  color: var(--yellow);
}

.next-card h2 {
  margin-top: 4px;
  color: #fff;
  font-size: clamp(25px, 2.8vw, 33px);
}

.next-card p {
  color: #c8c8cc;
}

.next-card .button {
  min-height: 50px;
}

.ranking-card {
  padding: 26px;
}

.trophy-mark {
  background: var(--yellow-soft);
}

.mini-leaderboard li {
  min-height: 44px;
  border-color: var(--line);
}

.mini-leaderboard li.is-you {
  background: var(--yellow-pale);
  box-shadow: inset 3px 0 0 var(--yellow);
}

.leaderboard-all summary {
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

.library-link {
  background: transparent !important;
}

.baseline-welcome {
  max-width: 720px !important;
  margin-top: clamp(58px, 9vh, 110px) !important;
}

.baseline-welcome > div:first-child {
  background: var(--yellow) !important;
  box-shadow: 0 18px 38px rgba(151, 123, 0, 0.18) !important;
}

.baseline-welcome .baseline-cta {
  min-width: 210px;
  box-shadow: none !important;
}

.assessment-nav {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

/* Keep the preview exit reachable even where member navigation is collapsed. */
.assessment-nav:has(#back-admin) {
  flex-wrap: wrap;
  gap: 12px;
}

.assessment-nav .navright {
  margin-left: auto;
}

.assessment-nav .navright > #back-admin {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.quiz-page .assessment-nav,
.quiz-page .nav {
  margin-bottom: 44px;
}

.question {
  width: min(100%, 920px);
  max-width: none;
}

.quiz-topline {
  align-items: center;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-color: var(--line);
}

.back-dashboard {
  color: var(--muted-strong);
}

.question-progress {
  width: min(100%, 360px);
  min-width: 300px;
}

.question-progress-copy {
  margin-bottom: 12px;
}

.question-progress-copy b {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.question-progress-copy span {
  color: var(--muted);
  font-size: 12px;
}

.progress-dots {
  grid-template-columns: repeat(14, 1fr);
  gap: 5px;
}

.progress-dots i {
  height: 5px;
  background: rgba(11, 11, 12, 0.1);
}

.progress-dots i.done {
  background: var(--ink);
}

.question-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.question-kicker,
.question-skill {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.question-heading h1 {
  max-width: 770px;
  margin: 10px 0 0;
  font-size: clamp(29px, 3.8vw, 43px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.question-skill {
  max-width: 180px;
  padding-bottom: 6px;
  text-align: right;
}

.quiz-hint {
  display: flex;
  gap: 12px;
  margin: -6px 0 18px;
  padding: 13px 15px;
  border: 1px solid rgba(160, 129, 0, 0.22);
  border-radius: 14px;
  background: var(--yellow-pale);
  color: #554500;
  font-size: 13px;
  line-height: 1.45;
}

.quiz-hint b {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.question-card {
  padding: 13px;
  border-radius: 28px;
}

.option-list {
  display: grid;
  gap: 9px;
}

.quiz,
.review,
.leader,
.report,
.curriculum-row {
  border-color: var(--line);
}

.option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  gap: 13px;
  align-items: center;
  min-height: 58px;
  margin: 0;
  padding: 15px 16px;
  border-color: var(--line-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.option:hover,
.option.active {
  border-color: var(--ink);
  background: var(--yellow-pale);
  box-shadow: inset 4px 0 0 var(--yellow);
  transform: translateX(2px);
}

.option-key {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #f7f7f5;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 900;
}

.option.active .option-key {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.option-copy {
  text-align: left;
}

.option-check {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  text-align: right;
}

.quiz-validation {
  min-height: 30px;
  padding: 10px 5px 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 750;
}

.quiz-actions {
  margin: 4px 0 0;
  padding: 14px 2px 2px;
  border-top: 1px solid var(--line);
}

.quiz-actions .button {
  min-width: 132px;
}

.result-page .nav {
  margin-bottom: 48px;
}

.result {
  width: min(100%, 900px);
  max-width: none;
}

.result-hero {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
}

.result-score {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 132px;
  padding: 25px 12px;
  border-radius: 30px;
  background: var(--yellow);
  box-shadow: 0 20px 42px rgba(151, 123, 0, 0.15);
}

.result-score strong {
  font-size: 55px;
  font-weight: 850;
  letter-spacing: -0.08em;
  line-height: 1;
}

.result-score span {
  margin: 4px 0 0 3px;
  font-size: 16px;
  font-weight: 900;
}

.result-hero .title {
  margin: 14px 0 10px;
  font-size: clamp(40px, 5vw, 62px);
}

.result-journey {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 36px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
  list-style: none;
}

.result-journey li {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 17px;
  background: #fff;
}

.result-journey li > b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #efefec;
  font-size: 11px;
}

.result-journey li.complete > b {
  background: var(--yellow);
}

.result-journey strong,
.result-journey small {
  display: block;
}

.result-journey strong {
  font-size: 13px;
}

.result-journey small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin: 24px 0 38px;
}

.review-card,
.result-note {
  padding: clamp(24px, 4vw, 38px);
}

.review-card > h2 {
  margin: 0 0 20px;
  font-size: 28px;
}

.review {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
}

.review-number {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.review h3 {
  margin: 8px 0 12px;
  font-size: 18px;
  letter-spacing: -0.025em;
}

.review p {
  margin: 8px 0 0;
}

.review-answer {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f5f5f2;
  color: var(--ink) !important;
}

.result-note b {
  font-size: 18px;
}

.result-note p {
  margin-bottom: 0;
}

.progress-dots i.current {
  background: var(--yellow);
}

.lesson-player {
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.reading-body {
  padding: clamp(28px, 5vw, 50px);
}

.admin-grid {
  gap: 22px;
}

.admin-wrap .admin-hero {
  max-width: 760px;
  margin-bottom: 30px;
}

.admin-wrap .admin-hero .title {
  font-size: clamp(46px, 5.5vw, 70px);
}

.admin-stats .stat {
  min-height: 126px;
  padding: 24px;
}

/* Admin overview: real community evidence first, testing tools second. */
html[data-zoom-mode="normal"]:has(.admin-wrap), html[data-zoom-mode="normal"]:has(.admin-wrap) body { overflow-x: clip; }
.admin-header { position: sticky; top: 12px; z-index: 30; margin: 0 0 32px; padding: 16px 20px 10px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 3px 5px rgba(0,0,0,.02),0 12px 35px rgba(0,0,0,.05); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 2px 14px; }
.admin-topbar .brand { white-space: nowrap; font-size: 12px; }
.admin-badge { margin-left: 14px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 9px; letter-spacing: .09em; color: var(--muted-strong); }
.admin-actions { display: flex; gap: 10px; align-items: center; }
.admin-actions .button { white-space: nowrap; font-size: 12px; }
.admin-actions .admin-logout { background: transparent; color: var(--muted-strong); font-weight: 600; padding-inline: 12px; }
.admin-actions .admin-logout:hover { background: var(--paper); color: var(--ink); }
.admin-more { position: relative; }
.admin-more summary { list-style: none; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 750; }
.admin-more summary::-webkit-details-marker { display: none; }
.admin-more-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 240px; padding: 7px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.1); }
.admin-more-panel button { display: block; width: 100%; min-height: 46px; padding: 12px; text-align: left; border: 0; border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; }
.admin-more-panel button:hover { background: var(--paper); }
.admin-more-panel small { display: block; margin-top: 4px; font-size: 11px; font-weight: 500; color: var(--muted-strong); }
.admin-section-nav { display: flex; gap: 5px; padding: 10px 0 0; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.admin-section-nav a { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; padding: 10px 15px; border-radius: 10px; color: var(--muted-strong); font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.admin-section-nav a:hover { background: #eeeeea; color: var(--ink); }
.admin-section-nav a[aria-current] { color: var(--ink); background: var(--yellow-pale); box-shadow: inset 0 0 0 1px rgba(253,208,0,.35); }
.admin-header :is(a,button,summary):focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.admin-wrap :is(#overview,#community-map,#leaderboard,#quiz-reports,#release-plan,#preview-tools) { scroll-margin-top: 175px; }
.admin-wrap .admin-hero .title { font-size: clamp(38px,4.5vw,56px); }
.admin-wrap .admin-hero { margin-bottom: 24px; }
.admin-community-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(250px,1fr); align-items: start; margin-top: 22px; }
.admin-map-card,.admin-leader-card { min-width: 0; padding: clamp(24px,3vw,34px); }
.admin-block-description { margin: 10px 0 20px; max-width: 650px; color: var(--muted-strong); font-size: 13px; line-height: 1.6; }
.community-radar .radar-key { flex-wrap: wrap; font-size: 11px; gap: 8px 16px; }
.community-radar .radar-canvas { max-width: 680px; }
.community-radar .radar-label { font-size: 12px; }
.community-map-waiting { fill: var(--muted-strong); font-size: 12px; font-weight: 600; }
.community-map-note { color: var(--muted-strong); font-size: 12px; line-height: 1.65; margin: 8px 0 0; }
.community-empty { display: flex; align-items: center; gap: 16px; padding: 20px; margin: 4px 0 18px; border-radius: 18px; background: #f7f7f4; border: 1px solid rgba(11,11,12,.05); }
.community-empty b { display: block; font-size: 15px; letter-spacing: -.025em; }
.community-empty p { margin: 6px 0 0; font-size: 12px; line-height: 1.6; }
.community-empty-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 14px; background: var(--yellow-soft); color: var(--ink); }
.community-empty-icon svg { width: 24px; height: 24px; }
.community-radar.is-empty .radar-ring { stroke: rgba(11,11,12,.12) !important; }
.community-radar.is-empty .radar-spoke { stroke: rgba(11,11,12,.05) !important; }
.community-radar .radar-label-target:hover rect,.community-radar .radar-label-target:focus-visible rect { fill: var(--yellow-pale); }
.community-radar .skill-detail-scores { grid-template-columns: 1fr 1fr; }
.demo-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 0 28px; }
.demo-mode-banner { padding: 18px 22px; border-radius: 18px; background: var(--yellow-pale); border: 1px solid rgba(253,208,0,.5); }
.demo-mode-banner > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; }
.demo-mode-banner b { font-size: 10px; letter-spacing: .12em; padding: 6px 9px; border-radius: 6px; background: var(--yellow); }
.demo-mode-banner p { margin: 8px 0 0; color: var(--muted-strong); font-size: 12px; line-height: 1.5; }
.demo-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 20px 0 30px; }
.demo-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; border-radius: 12px; color: var(--muted-strong); font-size: 12px; font-weight: 750; text-decoration: none; }
.demo-nav a:hover { background: #fff; color: var(--ink); }
.demo-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin: 30px 0 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--line); overflow: hidden; }
.demo-metrics > div { background: #fff; padding: 26px; }
.demo-metrics span { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 750; }
.demo-metrics strong { display: block; font-size: 48px; letter-spacing: -.06em; margin-top: 12px; }
.demo-metrics strong small { font-size: 23px; color: var(--muted); font-weight: 500; }
.demo-metrics p { margin: 8px 0 0; color: var(--muted-strong); font-size: 12px; line-height: 1.5; }
.demo-grid { display: grid; align-items: start; }
.demo-main { display: grid; gap: 22px; min-width: 0; }
.demo-wrap .skill-map-card { min-height: 0; }
.demo-wrap .dashboard-rail { min-width: 0; display: grid; }
.demo-wrap .card h2 { font-size: clamp(23px,2.3vw,29px); }
.demo-baseline-note { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 18px; font-size: 11px; color: var(--muted); }
.demo-baseline-note b { color: var(--ink); margin-left: 5px; }
.demo-trend { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.demo-trend > div { text-align: center; }
.demo-trend b { font-size: 18px; letter-spacing: -.04em; }
.demo-trend-track { height: 120px; display: flex; align-items: flex-end; background: #f6f6f3; border-radius: 10px; margin: 10px 0 12px; overflow: hidden; }
.demo-trend-track i { width: 100%; border-radius: 10px 10px 0 0; background: var(--yellow); }
.demo-trend span,.demo-trend small { display: block; font-size: 11px; }
.demo-trend small { margin-top: 5px; color: var(--muted); }
.demo-challenge-row { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.demo-challenge-row span { font-size: 11px; color: var(--muted); }
.demo-challenge-row b { font-size: 12px; }
.demo-challenge-row small { font-size: 10px; color: var(--muted-strong); border-radius: 6px; background: var(--paper); padding: 6px 8px; }
.demo-challenge-row .submitted { background: var(--yellow-pale); color: var(--ink); }
.demo-wrap .next-card .demo-readonly-note { font-size: 11px; color: #aaa; margin: 16px 0 0; }
.demo-wrap .mini-leaderboard li { grid-template-columns: 26px minmax(0,1fr) auto; gap: 8px; }
.demo-wrap .mini-leaderboard li > span:last-child { text-align: right; grid-column: auto; }
.demo-wrap .mini-leaderboard li > span:last-child small { display: block; font-size: 9px; margin-top: 4px; }
.demo-your-position { border-top: 1px solid var(--line); padding-top: 14px; }
.demo-your-position > span { color: var(--muted); font-size: 10px; }
.demo-history { margin-top: 22px; }
.demo-history-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 12px; }
.demo-history-filters button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); background: #fff; border-radius: 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.demo-history-filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.demo-history-filters span { margin-left: 6px; opacity: .7; }
.demo-history .demo-filter-status { font-size: 11px; color: var(--muted); }
.demo-history-list { max-height: 580px; overflow-y: auto; overscroll-behavior: contain; padding-right: 6px; }
.demo-history-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); }
.demo-history-row[hidden] { display: none; }
.demo-history-row b { display: block; font-size: 13px; }
.demo-history-row small { display: block; margin-top: 6px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.demo-history-row > span:last-child { font-size: 12px; font-weight: 700; }
.demo-history-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--paper); border-radius: 10px; color: var(--muted); }
.demo-history-mark.is-complete { background: var(--yellow); color: var(--ink); }
.demo-footer { padding: 32px 4px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.demo-footer a { display: block; margin-top: 8px; font-weight: 700; color: var(--ink); }
.demo-wrap [id^="demo-"] { scroll-margin-top: 24px; }
.demo-wrap :is(a,button,summary):focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (max-width: 720px) {
  .demo-header { align-items: center; gap: 10px; }
  .demo-header .brand { font-size: 10px; }
  .demo-header .button { font-size: 11px; padding-inline: 12px; }
  .demo-metrics { grid-template-columns: 1fr; }
  .demo-metrics > div { padding: 20px; }
  .demo-metrics strong { font-size: 38px; margin-top: 6px; }
  .demo-grid { grid-template-columns: minmax(0,1fr); }
  .demo-history-row { gap: 10px; }
  .demo-history-row > span:last-child { max-width: 65px; text-align: right; }
  .demo-nav { gap: 0; }
  .demo-nav a { padding-inline: 10px; }
  .community-empty { padding: 16px; gap: 12px; }
}
.community-radar .skill-detail-scores > div:last-child { grid-column: auto; border: 0; }
.admin-leader-card .leader { gap: 14px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .admin-wrap .admin-community-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 900px) {
  .admin-topbar { flex-wrap: wrap; }
  .admin-actions { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .admin-header { top: 8px; margin-bottom: 24px; padding: 14px 14px 8px; border-radius: 20px; }
  .admin-topbar { gap: 10px; flex-wrap: wrap; padding-bottom: 12px; }
  .admin-topbar .brand { font-size: 10px; letter-spacing: .08em; }
  .admin-badge { margin-left: 2px; }
  .admin-actions { gap: 6px; width: 100%; justify-content: flex-start; }
  .admin-actions .button,.admin-more summary { padding: 10px 12px; font-size: 11px; }
  .admin-section-nav { gap: 2px; }
  .admin-section-nav a { padding: 10px 12px; }
  .admin-map-card { padding: 22px 16px; }
  .community-radar .radar-canvas { width: 100%; }
  .community-radar .radar-label-target .radar-label { font-size: 12px; }
  .admin-wrap :is(#overview,#community-map,#leaderboard,#quiz-reports,#release-plan,#preview-tools) { scroll-margin-top: 205px; }
}

.preview-tools {
  margin: 22px 0;
  padding: clamp(24px, 3vw, 34px);
}

.preview-tools-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.preview-tools-head h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
}

.preview-tools-head p {
  max-width: 690px;
  margin: 9px 0 0;
}

.preview-tools-actions {
  display: flex;
  gap: 8px;
}

.preview-tools-notice {
  min-height: 20px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.preview-tools-notice.success {
  padding: 11px 13px;
  border-radius: 11px;
  background: #eaf7ef;
  color: var(--green);
}

.preview-tools-notice.error {
  padding: 11px 13px;
}

.preview-status-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--muted-strong);
  font-size: 10px;
  font-weight: 800;
}

.preview-status-key span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.preview-status-key i {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #efefec;
  color: var(--yellow);
  font-size: 9px;
  font-style: normal;
  line-height: 1;
}

.preview-status-key .is-progress i {
  border-color: rgba(11, 11, 12, 0.08);
  background: var(--yellow);
}

.preview-status-key .is-complete i {
  border-color: var(--ink);
  background: var(--ink);
}

.preview-reset-list {
  margin-top: 6px;
  border-top: 1px solid var(--line);
}

.preview-filters {
  gap: 6px;
  margin: 12px 0 16px;
}

.preview-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.preview-filter:hover { background: var(--paper); }
.preview-filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.preview-filter:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.preview-filter .preview-filter-count { min-width: 20px; justify-content: center; padding: 2px 5px; border-radius: 6px; background: var(--paper); color: var(--muted-strong); font-size: 10px; }
.preview-filter[aria-pressed="true"] .preview-filter-count { background: var(--yellow); color: var(--ink); }
.preview-filter[aria-pressed="true"].is-complete i { border-color: var(--yellow); }
.preview-reset-row[hidden], .preview-filter-empty[hidden] { display: none; }
.preview-filter-empty { padding: 30px 16px; text-align: center; }
.preview-filter-empty p { margin: 0 auto 18px; max-width: 390px; color: var(--muted-strong); font-size: 14px; line-height: 1.6; }
.preview-filter-announcement { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 600px) {
  .preview-status-key.preview-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
}

.preview-reset-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.preview-reset-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #efefec;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.preview-reset-row.is-progress .preview-reset-mark {
  background: var(--yellow);
  color: var(--ink);
}

.preview-reset-row.is-complete .preview-reset-mark {
  background: var(--ink);
  color: var(--yellow);
}

.preview-reset-row.is-complete .preview-reset-title b {
  color: var(--ink);
}

.preview-check {
  font-size: 16px;
  line-height: 1;
}

.preview-reset-title {
  display: flex;
  gap: 8px;
  align-items: center;
}

.preview-reset-title b {
  font-size: 14px;
}

.preview-reset-title span {
  padding: 4px 6px;
  border-radius: 999px;
  background: var(--yellow-pale);
  color: #6f5900;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-reset-row p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.preview-reset-row p strong {
  color: var(--muted-strong);
  font-weight: 850;
}

.preview-reset-row.is-progress p strong,
.preview-reset-row.is-complete p strong {
  color: var(--ink);
}

.preview-reset-button {
  min-width: 136px;
}

.preview-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-row-actions .button {
  min-height: 40px;
  padding: 10px 13px;
  font-size: 11px;
}

.preview-reset-button:disabled {
  border-color: rgba(11, 11, 12, 0.07);
  background: #f7f7f5;
  color: #a2a2a0;
  cursor: default;
  opacity: 0.68;
}


.admin-quiz-page .assessment-nav {
  margin-bottom: 34px;
}

.admin-quiz-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 800;
}

.inventory-grid > div {
  border-color: var(--line);
  background: #f8f8f6;
}

.release-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 6px;
}

.curriculum-row[hidden],
.release-filter-empty[hidden] {
  display: none;
}

.report-open {
  align-self: center;
  min-height: 40px;
  padding: 10px 13px;
  white-space: nowrap;
}

.zoom-hud {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  padding: 10px 13px;
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.zoom-hud.show {
  opacity: 1;
  transform: translateY(0);
}

html[data-zoom-mode="large"] body {
  overflow-x: auto;
}

html[data-zoom-mode="fit"] body {
  overflow-x: hidden;
}

@media (max-width: 980px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .skill-map-card {
    min-height: 0;
  }

  .dashboard-rail {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 720px) {
  body {
    background: linear-gradient(180deg, #fafaf8 0, var(--paper) 26rem);
  }

  .wrap {
    padding: 18px 16px 54px;
  }

  .nav {
    align-items: center;
    margin-bottom: 42px;
  }

  .navright {
    flex-wrap: nowrap;
  }

  .navright > a {
    display: none;
  }

  .navright .button {
    min-height: 42px;
    padding: 10px 12px;
  }

  .dashboard-hero .title {
    font-size: clamp(42px, 13vw, 58px);
    overflow-wrap: normal;
  }

  .dashboard-hero .lede {
    font-size: 15px;
  }

  .member-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 20px 0;
  }

  .metric-divider {
    display: none;
  }

  .member-metrics strong {
    font-size: clamp(29px, 9vw, 38px);
  }

  .member-metrics p {
    font-size: 10px;
  }

  .dashboard-grid {
    display: grid;
    gap: 14px;
  }

  .dashboard-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    order: initial;
  }

  .skill-map-card,
  .next-card,
  .ranking-card {
    padding: 20px;
  }

  .skill-map-card .section-head h2 {
    font-size: 27px;
  }

  .radar-key {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-top: 15px;
  }

  .radar-canvas {
    width: calc(100% + 12px);
    margin-left: -6px;
  }

  .radar-label-target .radar-label {
    font-size: 13px;
  }

  .skill-detail-scores {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-detail-scores > div:nth-child(2) {
    border-right: 0;
  }

  .skill-detail-scores > div:last-child {
    grid-column: 1 / -1;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .ranking-card {
    max-height: none;
  }

  .quiz {
    flex-direction: column;
  }

  .quiz .button,
  .next-card .button,
  .ranking-card .button {
    width: 100%;
  }

  .quiz-topline {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  .question-progress {
    width: 100%;
    min-width: 0;
  }

  .question-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }

  .question-heading h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .question-skill {
    display: none;
  }

  .question-card {
    padding: 9px;
    border-radius: 22px;
  }

  .option {
    grid-template-columns: 33px minmax(0, 1fr) 20px;
    gap: 10px;
    min-height: 66px;
    padding: 13px 12px;
  }

  .result-hero {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 20px;
  }

  .result-score {
    min-height: 106px;
    padding: 22px 8px;
    border-radius: 24px;
  }

  .result-score strong {
    font-size: 43px;
  }

  .result-journey {
    grid-template-columns: 1fr;
  }

  .result-journey li {
    min-height: 68px;
  }

  .preview-tools-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .preview-tools-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .preview-tools-actions .button {
    width: 100%;
  }

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

  .admin-grid,
  .stats,
  .inventory-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .brand {
    max-width: 156px;
    font-size: 11px;
    line-height: 1.25;
  }

  .dashboard-hero .title {
    font-size: 44px;
  }

  .member-metrics {
    grid-template-columns: 1fr;
  }

  .member-metrics > div:not(.metric-divider) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 3px 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .member-metrics > div:not(.metric-divider):last-child {
    border-bottom: 0;
  }

  .member-metrics strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .member-metrics p {
    grid-column: 1;
  }

  .skill-map-card {
    overflow: visible;
  }

  .radar-canvas {
    width: calc(100% + 24px);
    margin-left: -12px;
  }

  .radar-label-target .radar-label {
    font-size: 15px;
  }

  .admin-grid,
  .stats,
  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .quiz-page .assessment-nav,
  .quiz-page .nav {
    margin-bottom: 30px;
  }

  .progress-dots {
    gap: 3px;
  }

  .result-hero {
    grid-template-columns: 1fr;
  }

  .result-score {
    width: 104px;
  }

  .result-actions,
  .preview-tools-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .result-actions .button {
    width: 100%;
  }

  .preview-reset-row {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .preview-status-key {
    gap: 9px 14px;
  }

  .preview-reset-button {
    width: 100%;
  }

  .preview-row-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .report-open {
    width: 100%;
  }

  .admin-quiz-context {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

.curriculum-row-copy { min-width: 220px; }
.curriculum-row-controls { display: grid; justify-items: end; gap: 12px; }
.curriculum-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.curriculum-actions .button { min-height: 40px; padding: 10px 13px; font-size: 11px; }
.admin-quiz-page { max-width: 1060px; }
.admin-quiz-review-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.admin-quiz-review-actions { display: flex; gap: 9px; }
.qc-question-list { display: grid; gap: 16px; }
.qc-question { padding: clamp(22px, 3vw, 32px); box-shadow: none; }
.qc-question > header { display: flex; justify-content: space-between; gap: 18px; color: var(--muted-strong); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.qc-question h2 { margin: 14px 0 18px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.2; }
.qc-question ol { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.qc-question li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; }
.qc-question li > span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.qc-question li p { margin: 4px 0 0; color: var(--ink); }
.qc-question li.is-correct { border-color: #83c99f; background: #eefaf2; box-shadow: inset 4px 0 0 var(--green); }
.qc-question li.is-correct > span { color: var(--green); }
.qc-note { margin-top: 12px; padding: 13px 15px; border-left: 3px solid var(--yellow); background: var(--yellow-pale); }
.qc-note b { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.qc-note p { margin: 5px 0 0; }

@media (max-width: 700px) {
  .curriculum-row-controls { justify-items: start; margin-top: 12px; }
  .curriculum-actions { justify-content: flex-start; width: 100%; }
  .curriculum-actions .button { flex: 1 1 150px; }
  .admin-quiz-review-head { align-items: stretch; flex-direction: column; }
  .admin-quiz-review-actions { display: grid; grid-template-columns: 1fr; }
}

/* Approved editorial treatment for every Scout reading. */
.editorial-reading { max-width: 980px; padding-top: 0; }
.editorial-reading-hero { max-width: 900px; margin: 26px auto 84px; padding: clamp(42px, 8vw, 96px) clamp(24px, 7vw, 76px); border-radius: 36px; color: #fff; background: radial-gradient(circle at 78% 18%, rgba(253,208,0,.3), transparent 30%), linear-gradient(145deg,#111113 0%,#232327 100%); box-shadow: 0 30px 80px rgba(17,17,19,.18); overflow: hidden; }
.editorial-reading-meta { display: flex; justify-content: flex-end; color: rgba(255,255,255,.62); font-size: 11px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.editorial-reading-hero h1 { max-width: 720px; margin: 72px 0 24px; font-size: clamp(54px, 9vw, 104px); line-height: .88; letter-spacing: -.075em; }
.editorial-reading-hero > p { max-width: 590px; margin: 0; color: rgba(255,255,255,.76); font-size: clamp(19px, 2.4vw, 28px); line-height: 1.35; letter-spacing: -.025em; }
.editorial-reading-body { max-width: 760px; margin: auto; }
.editorial-chapter { margin: 0 0 clamp(64px, 10vw, 104px); padding: 0 8px; }
.editorial-chapter-copy { padding-bottom: clamp(64px, 9vw, 92px); border-bottom: 1px solid #dedee2; }
.editorial-chapter-kicker { margin: 0 0 18px; color: #8a7200; font-size: 11px !important; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.editorial-chapter h2 { max-width: 660px; margin: 0 0 28px; font-size: clamp(34px, 5.5vw, 58px); line-height: .98; letter-spacing: -.06em; }
.editorial-chapter-paragraphs { display: grid; gap: clamp(24px, 4vw, 34px); }
.editorial-chapter-paragraphs p { max-width: 680px; margin: 0; color: #4d4d52; font-size: clamp(17px, 2vw, 20px); line-height: 1.8; }
.editorial-reference { padding: clamp(34px, 6vw, 62px); border-radius: 28px; background: #fff4bd; }
.editorial-reference .editorial-chapter-copy { padding-bottom: 0; border: 0; }
.editorial-reference .editorial-chapter-kicker { color: #6f5b00; }
.editorial-takeaway { margin: 0 0 100px; padding: 34px 38px; border-left: 5px solid var(--yellow); background: #fff; box-shadow: 0 18px 50px rgba(17,17,19,.07); }
.editorial-takeaway span,.editorial-reading-finish > span { color: #78787d; font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.editorial-takeaway p { margin: 12px 0 0; color: var(--ink); font-size: clamp(21px, 3vw, 30px); font-weight: 800; line-height: 1.35; letter-spacing: -.035em; }
.editorial-reading-finish { margin: 0 0 40px; padding: clamp(42px, 7vw, 72px); border-radius: 32px; text-align: center; background: #fff; border: 1px solid var(--line); }
.editorial-reading-finish h2 { margin: 15px 0 12px; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -.06em; }
.editorial-reading-finish p { margin: 0 auto 28px; color: var(--muted-strong); font-size: 16px; }
.editorial-reading-finish .button { min-width: 180px; min-height: 54px; font-size: 15px; }

@media (max-width: 700px) {
  .editorial-reading-hero { margin-bottom: 58px; border-radius: 26px; }
  .editorial-reading-hero h1 { margin-top: 52px; }
  .editorial-chapter { margin-bottom: 64px; padding-inline: 0; }
  .editorial-chapter-copy { padding-bottom: 64px; }
  .editorial-reference { padding: 30px 24px; }
  .editorial-takeaway { margin-bottom: 70px; padding: 26px; }
  .editorial-reading-finish { border-radius: 24px; }
}

/* Install-ready app shell */
:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

html { min-height: 100%; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
.wrap { min-height: 100dvh; padding-left: max(clamp(22px, 4vw, 54px), var(--safe-left)); padding-right: max(clamp(22px, 4vw, 54px), var(--safe-right)); }
.app-boot { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; background: var(--paper); color: var(--muted-strong); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.app-boot-mark { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 20px; background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-card); font-size: 22px; font-weight: 950; letter-spacing: -.06em; }
.route-progress { position: fixed; z-index: 1000; top: 0; left: 0; width: 0; height: 3px; pointer-events: none; background: var(--yellow); opacity: 0; transition: width 180ms ease, opacity 180ms ease; }
.route-busy .route-progress { width: 72%; opacity: 1; }
.network-status { position: fixed; z-index: 1001; top: max(10px, var(--safe-top)); left: 50%; width: min(calc(100% - 32px), 600px); padding: 11px 16px; border-radius: 12px; background: var(--ink); color: white; box-shadow: var(--shadow-lift); font-size: 12px; font-weight: 750; line-height: 1.45; text-align: center; transform: translateX(-50%); }
.app-install { min-height: 40px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 11px; background: white; color: var(--ink); font-size: 12px; font-weight: 800; }
.app-tabbar { display: none; }
.provisional-leaders { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.provisional-leaders > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.leader.provisional { color: var(--muted-strong); }
.leader.provisional b { font-weight: 750; }

@media (display-mode: standalone) {
  .wrap { padding-top: max(22px, var(--safe-top)); }
}

@media (max-width: 720px) {
  html { scroll-padding-bottom: calc(92px + var(--safe-bottom)); }
  body { overscroll-behavior-x: none; }
  .wrap { padding: 18px max(16px, var(--safe-right)) calc(108px + var(--safe-bottom)) max(16px, var(--safe-left)); }
  .hero,.auth { max-width: 100%; }
  .hero h1 { max-width: 100%; font-size: clamp(40px, 13vw, 58px); overflow-wrap: anywhere; }
  .hero p { max-width: 100%; overflow-wrap: anywhere; }
  input,select,textarea { font-size: 16px; }
  .app-tabbar { position: fixed; z-index: 900; right: max(12px, var(--safe-right)); bottom: max(10px, var(--safe-bottom)); left: max(12px, var(--safe-left)); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; min-height: 68px; padding: 7px; border: 1px solid rgba(11,11,12,.1); border-radius: 22px; background: rgba(255,255,255,.92); box-shadow: 0 16px 44px rgba(11,11,12,.18); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
  .app-tabbar a { display: flex; min-width: 0; min-height: 54px; align-items: center; justify-content: center; gap: 8px; border-radius: 16px; color: var(--muted-strong); font-size: 12px; font-weight: 800; text-decoration: none; }
  .app-tabbar a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
  .app-tabbar svg { width: 19px; height: 19px; fill: currentColor; flex: 0 0 auto; }
  .app-tabbar a:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
  .provisional-leaders .leader { align-items: center; flex-wrap: nowrap; }
  .provisional-leaders .leader span { text-align: right; }
  .navright .app-install:not([hidden]) { display: inline-flex; align-items: center; }
  .button,a,button,[role="button"] { touch-action: manipulation; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
