/* report.css: report layout only. Shared components live in styles.css. */

.report { padding-top: 24px; }
.report > * + * { margin-top: 32px; }
.report .exhibit { margin-block: 0; }
.report p { text-wrap: pretty; }

/* Shared banner */
.report-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.report-banner p { margin: 0; color: var(--ink); font-weight: 500; }

/* Cover */
.report-cover { position: relative; overflow: hidden; }
.report-cover > * { position: relative; z-index: 1; }
.report-cover__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
.report-cover__text > * + * { margin-top: 16px; }
.report-cover__title {
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
  margin: 12px 0 0;
}
.report-cover__title:focus { outline: none; }
.report-cover__title:focus-visible { outline: none; }
.report-cover__usecase { color: var(--body); font-size: 16px; margin-bottom: 0; }
.report-cover__usecase .q--plain { color: var(--ink); font-weight: 500; }
.report-cover__epigraph { margin-top: 24px !important; }
.report-motif { max-width: 440px; }

.report-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.report-stats .stat__value { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.12; }
.report-stats .stat__unit .q--plain { color: var(--ink); font-weight: 500; }
.report-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.report-cover > .start-over-slot { margin-top: 16px; }

/* Start over after the share card */
.report-restart__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
}
.report-restart__lead { margin: 0; color: var(--body); font-size: 15px; }
/* Pulls the ghost button's padding back, so its icon lines up with the lead when it wraps under it. */
.report-restart .start-over { margin-inline-start: -12px; }
.report-restart > .start-over-slot { margin-top: 12px; }

@media (max-width: 900px) {
  .report-cover__inner { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .report-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 419.98px) {
  .report-stats { grid-template-columns: minmax(0, 1fr); }
}

/* Exhibit pieces */
.exhibit__intro { margin-top: 16px; font-size: 16px; color: var(--body); max-width: 68ch; }
.exhibit__notes { margin-top: 8px; }
.exhibit__notes .note__lead { color: var(--ink); font-weight: 500; }
.exhibit__notes li .note__body { min-width: 0; }
.exhibit__source { overflow-wrap: anywhere; }
.exhibit__chart svg text { font-variant-numeric: tabular-nums; }

/* Exhibit 3 */
.ex3__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-block: 24px;
}
.ex3__grid > .exhibit__chart { margin: 0; }
.ex3__empty .quote-block { font-size: 18px; }
/* Blank hours: no chart, so the quote and the Group 1001 card stack in one column
   and the card lays its rows side by side instead of leaving an empty column. */
.ex3__grid--empty { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ex3__grid--empty .g1001__rows { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 24px; }
.ex3__caption { margin-top: 24px; margin-bottom: 24px; font-size: 18px; }
@media (max-width: 880px) {
  .ex3__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Group 1001 card */
.g1001 { padding: 20px; }
.g1001__title { font-size: 15px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 12px; }
.g1001__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.g1001__row { display: grid; gap: 6px; }
.g1001__metric { font-size: 13px; font-weight: 500; color: var(--ink); }
.g1001__change { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.g1001__arrow { display: inline-flex; color: var(--muted); padding-left: 12px; transform: rotate(90deg); }
.g1001__cite { margin: 12px 0 0; }
.g1001__cite .cite { margin-left: 0; }
.ex5__next { margin-top: 24px; }
.ex5__next h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 12px; }
.ex5__next .g1001 { max-width: 560px; }

/* Exhibit 4 */
.profile-rows { list-style: none; padding: 0; display: grid; gap: 20px; }
.profile-row { display: grid; gap: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.profile-row:last-child { border-bottom: 0; padding-bottom: 0; }
.profile-row__main {
  display: grid;
  /* Fixed side columns keep the three tracks, the scores and the state pills aligned row to row,
     and the axis row above them shares the same columns. */
  grid-template-columns: 140px minmax(0, 1fr) 84px 176px;
  gap: 16px;
  align-items: center;
}
.profile-row__bar { min-width: 0; }
.profile-row__bar svg { display: block; width: 100%; height: auto; }
.profile-row__score {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}
.profile-row__state { display: flex; align-items: center; min-width: 0; }
.profile-row__hold { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); }
.profile-row--axis { padding-bottom: 0; border-bottom: 0; margin-bottom: -12px; }
.profile-row--axis .profile-row__main { align-items: end; }
.profile-axis__lead { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.profile-axis { position: relative; height: 18px; min-width: 0; }
.profile-axis__tick {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.profile-axis__tick[data-tick="0"] { transform: none; }
.profile-axis__tick[data-tick="100"] { transform: translateX(-100%); }
@media (max-width: 640px) {
  .profile-row__main { grid-template-columns: minmax(0, 1fr) 84px; row-gap: 10px; }
  .profile-row__bar { grid-column: 1 / -1; grid-row: 2; }
  .profile-row__state { grid-column: 1 / -1; grid-row: 3; }
  .profile-row__state:empty { display: none; }
  .profile-row--axis .profile-axis { grid-column: 1 / -1; grid-row: 1; }
  .profile-row--axis .profile-axis__lead,
  .profile-row--axis .profile-row__score { display: none; }
}

/* Exhibit 5: the ladder */
.ladder {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  height: 340px;
}
.ladder__step { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; }
.ladder__box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: #ffffff;
  padding: 14px;
}
.ladder__step[data-level="0"] .ladder__box { min-height: 40%; }
.ladder__step[data-level="1"] .ladder__box { min-height: 56%; }
.ladder__step[data-level="2"] .ladder__box { min-height: 72%; }
.ladder__step[data-level="3"] .ladder__box { min-height: 88%; }
.ladder__n { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.ladder__name { font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.ladder__def { font-size: 13px; line-height: 1.45; color: var(--body); }
.ladder__here {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--green-900);
  margin-bottom: 8px;
}
.ladder__step.is-here .ladder__box { background: var(--green-900); border-color: var(--green-900); }
.ladder__step.is-here .ladder__n { color: rgba(255, 255, 255, .78); }
.ladder__step.is-here .ladder__name,
.ladder__step.is-here .ladder__def { color: #ffffff; }

@media (max-width: 900px) {
  .ladder { grid-template-columns: minmax(0, 1fr); height: auto; align-items: stretch; }
  .ladder__step { height: auto; }
  .ladder__step .ladder__box { min-height: 0 !important; }
}

/* Exhibit 6: roadmap */
.exhibit--roadmap { background: var(--surface); border-color: transparent; }
.moves-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.move { display: flex; flex-direction: column; gap: 12px; }
.move__head { display: flex; align-items: center; gap: 12px; }
.move__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.move__n { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }
.move__name { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.move__gap { margin: 0; font-size: 14px; line-height: 1.5; color: var(--body); }
.move__gap-lead { color: var(--ink); font-weight: 500; }
.move__line { font-size: 17px; }
.move__proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--body); }
.move__status { margin: 0; font-size: 13px; color: var(--body); }
.move__status .q--plain { color: var(--ink); font-weight: 500; }
.move__cta { margin-top: auto; padding-top: 4px; }
.move--honest { gap: 16px; margin-bottom: 16px; }
.moves-more { margin-top: 16px; }
.moves-more > summary { margin-bottom: 12px; }
/* Three columns only where each is wide enough for its titles and source links. */
@media (max-width: 1023.98px) {
  .moves-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Optional panel */
.others > summary { font-size: 16px; }
.others__body { margin-top: 12px; }
.others__body > p { color: var(--body); font-size: 14px; max-width: 68ch; }
.others__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 20px; }
.others__list .quote-block { font-size: 17px; }
.others__attr { margin: 6px 0 0 19px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--muted); }

/* Ending */
.report-ending { color: rgba(255, 255, 255, .78); }
.report-ending__title {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0;
  text-wrap: balance;
  max-width: 24ch;
}
.report-ending__cite { margin: 8px 0 0; }
.report-ending__cite .cite { margin-left: 0; }
.report-ending__title .q--plain::before { content: "\201C"; }
.report-ending__title .q--plain::after { content: "\201D"; }
.report-ending__lead { margin: 24px 0 0; color: rgba(255, 255, 255, .78); font-size: 15px; }
.report-ending__quote { margin: 12px 0 0; padding-left: 16px; border-left: 3px solid var(--mint-500); max-width: 62ch; }
.report-ending__quote-lead { margin: 0; color: #ffffff; font-size: 16px; font-weight: 500; }
.report-ending__quote-lead .q--plain::before { content: "\201C"; }
.report-ending__list li:last-child .q--plain::after { content: "\201D"; }
.report-ending__quote-cite { margin: 10px 0 0; }
.report-ending__quote-cite .cite { margin-left: 0; }
.report-ending__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.report-ending__list li { display: flex; gap: 10px; align-items: baseline; }
.report-ending__list .icon { flex: none; color: var(--tile-icon); transform: translateY(3px); }
.report-ending__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.report-ending__free { margin: 16px 0 0; font-size: 14px; }

/* Share */
.share h3 { font-size: 18px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 0; }
.share__lead { margin: 6px 0 0; font-size: 14px; color: var(--body); }
.share__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.share__input {
  flex: 1 1 260px;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
}
.share__input:focus-visible { outline: 2px solid var(--green-900); outline-offset: 2px; }
.share__status { min-height: 1.5em; margin: 8px 0 0; font-size: 14px; color: var(--green-700); }
.share__text { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

/* Sources footer */
.sources { border-top: 1px solid var(--line); padding-top: 32px; }
.sources h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); margin: 0; }
.sources__intro { margin: 12px 0 0; color: var(--body); max-width: 68ch; }
.sources__groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px 32px;
  margin-top: 24px;
}
.sources__group h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 8px; }
.sources__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sources__link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-700);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sources__link:hover { text-decoration: underline; }
.sources__concept { margin: 32px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .exhibit__chart svg { animation: report-fade .2s ease-out; }
  @keyframes report-fade { from { opacity: 0; } to { opacity: 1; } }
}

/* Exhibit 5: Group 1001 rows side by side when there is room */
@media (min-width: 900px) {
  .ex5__next .g1001 { max-width: none; }
  .ex5__next .g1001__rows { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px 24px; }
}
.sources__group li .sources__link { display: inline-block; padding-block: 4px; }
