@font-face {
  font-family: "Space Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-mono-bold.ttf") format("truetype");
}
* {
  box-sizing: border-box;
}
html {
  font-family: Archivo, Arial, sans-serif;
  background: var(--vd-page);
  color: var(--vd-text);
  line-height: 1.6;
  font-size: 16px;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  touch-action: manipulation;
}
button {
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--vd-control);
  background: var(--vd-panel);
  color: var(--vd-text);
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--radius);
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
.primary {
  background: var(--vd-action);
  border-color: var(--vd-action);
  color: var(--vd-action-text);
}
a {
  color: var(--vd-link);
  text-underline-offset: 0.2em;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--vd-focus);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0 0 1rem;
}
h2 {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 800;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
p {
  overflow-wrap: anywhere;
}
h2:focus {
  outline: none;
}
small,
.small,
.hint {
  font-size: 0.88rem;
  line-height: 1.55;
}
.hint,
.small {
  color: var(--vd-secondary);
}
.lead {
  font-size: 1.14rem;
  line-height: 1.65;
  margin-bottom: 1.6rem;
  max-width: 48ch;
}
.eyebrow {
  font:
    700 0.72rem/1.5 "Space Mono",
    monospace;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--vd-link);
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  top: -100px;
  padding: 1rem;
  background: var(--vd-page);
  z-index: 10;
}
.skip:focus {
  top: 0;
}
.brand-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--night-alt);
  color: var(--white);
  padding: 1rem max(1rem, calc((100vw - 1240px) / 2));
}
.identity {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  font-weight: 700;
  line-height: 1.35;
}
.identity small {
  display: block;
  color: var(--on-night);
  font:
    400 0.68rem/1.5 "Space Mono",
    monospace;
  margin-top: 0.2rem;
}
.identity img {
  flex-shrink: 0;
}
.appearance {
  display: flex;
  gap: 0;
}
.appearance button {
  min-width: 54px;
  padding: 0.5rem;
  color: var(--white);
  background: var(--night-alt);
  border-color: var(--on-night-3);
  font-size: 0.8rem;
}
.appearance button[aria-pressed="true"] {
  background: var(--white);
  color: var(--night);
}
.brand-bar :focus-visible {
  outline-color: var(--white);
}
.tool-header {
  max-width: 1240px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.3rem 1rem;
  border-bottom: 1px solid var(--vd-rule);
}
.tool-header h1 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  border-left: 1px solid var(--vd-control);
  padding-left: 1.6rem;
}
.tool-header a {
  font-size: 0.85rem;
  font-weight: 700;
}
.tool-header > span {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--vd-muted);
}
.review-banner {
  background: var(--vd-alt);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  color: var(--vd-secondary);
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 2.5rem 1rem 0;
}
.welcome {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem 4rem;
  padding: 2rem 0 3rem;
}
.welcome h2 {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  margin: 1.3rem 0 1.6rem;
  max-width: 13ch;
}
.welcome p {
  max-width: 58ch;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0;
}
.welcome-map {
  background: var(--vd-alt);
  padding: 2rem;
  align-self: start;
  border-top: 4px solid var(--vd-action);
}
.welcome-map ol {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.welcome-map li {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--vd-rule);
}
.welcome-map li > span {
  font:
    700 0.8rem/1.6 "Space Mono",
    monospace;
  color: var(--vd-link);
}
.welcome-map strong {
  font-size: 1.1rem;
}
.welcome-map li p {
  font-size: 0.9rem;
  margin: 0.4rem 0 0;
  color: var(--vd-secondary);
}
.wide {
  grid-column: 1/-1;
}
.notice {
  padding: 1.2rem;
  border-left: 3px solid var(--vd-action);
  background: var(--vd-alt);
}
.notice p:last-child {
  margin: 0;
}
details {
  border-top: 1px solid var(--vd-rule);
  padding: 1rem 0;
}
summary {
  cursor: pointer;
  min-height: 44px;
  align-content: center;
  font-weight: 700;
}
details > p {
  max-width: 78ch;
}
.steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-block: 1px solid var(--vd-rule);
  margin-bottom: 3rem;
}
.steps button {
  border: 0;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.77rem;
  text-align: left;
  line-height: 1.4;
  padding: 1rem 0.6rem;
  background: transparent;
  color: var(--vd-secondary);
  min-height: 64px;
}
.steps button span {
  font-family: "Space Mono", monospace;
  color: var(--vd-link);
}
.steps button[aria-current="step"] {
  color: var(--vd-text);
  border-color: var(--vd-action);
  background: var(--vd-alt);
}
.steps button:disabled {
  opacity: 1;
  color: var(--vd-muted);
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.working-area {
  min-width: 0;
  padding-bottom: 1rem;
}
.working-area > .eyebrow {
  margin-bottom: 1rem;
}
label {
  display: block;
  font-weight: 700;
  margin: 0.8rem 0 0.45rem;
}
label span:not(.choice-list span) {
  font-weight: 400;
}
.working-area textarea,
.working-area input:not([type="radio"]),
dialog input:not([type="checkbox"]),
dialog select {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--vd-control);
  border-radius: var(--radius);
  background: var(--vd-panel);
  color: var(--vd-text);
  padding: 0.85rem;
  min-height: 48px;
}
.working-area textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}
.working-area textarea[rows="2"] {
  min-height: 84px;
}
textarea::placeholder,
input::placeholder {
  color: var(--vd-muted);
  opacity: 1;
}
.working-area textarea + p {
  margin-top: 0.5rem;
}
.working-area label {
  margin-top: 1.5rem;
}
.optional-fields {
  border-block: 1px solid var(--vd-rule);
  padding-bottom: 1rem;
}
.optional-fields label {
  margin-top: 1rem;
}
fieldset {
  padding: 0;
  margin: 1.5rem 0;
  border: 0;
}
legend {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0;
}
.choice-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border: 1px solid var(--vd-control);
  padding: 1rem;
  margin: 0.7rem 0;
  font-weight: 400;
  cursor: pointer;
}
.choice-list label:has(input:checked) {
  border-color: var(--vd-action);
  box-shadow: inset 3px 0 var(--vd-action);
  background: var(--vd-alt);
}
input[type="radio"],
input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--vd-action);
  flex-shrink: 0;
  margin: 0.2rem 0;
}
.choice-list strong {
  display: block;
  font-weight: 700;
}
.choice-list small {
  display: block;
  color: var(--vd-secondary);
  margin-top: 0.35rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0 1.5rem;
}
.chips:empty {
  display: none;
}
.chips button {
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
}
.text-button {
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  color: var(--vd-link);
  padding-inline: 0;
}
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--vd-rule);
  padding-top: 1.4rem;
  margin-top: 2rem;
}
.step-actions .primary {
  min-width: 160px;
}
.map-panel {
  border: 1px solid var(--vd-rule);
  background: var(--vd-alt);
  padding: 1.5rem;
  position: sticky;
  top: 1.5rem;
  min-width: 0;
  max-height: calc(100vh - 3rem);
  overflow: auto;
}
.map-panel details {
  padding: 0;
  border: 0;
}
.map-panel summary {
  font-size: 1rem;
  line-height: 1.4;
}
.map-node {
  position: relative;
  border-left: 2px solid var(--vd-control);
  padding: 1rem 2.5rem 1rem 1.2rem;
  margin-left: 0.3rem;
}
.map-node::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--vd-action);
  position: absolute;
  left: -6px;
  top: 1.3rem;
}
.map-node p,
.map-value p,
.map-next p {
  font-size: 0.9rem;
  white-space: pre-wrap;
  margin: 0.4rem 0 0;
}
.map-node button {
  position: absolute;
  right: 0;
  top: 0.8rem;
  border: 0;
  padding: 0.4rem;
  background: transparent;
  color: var(--vd-link);
  text-decoration: underline;
  min-width: 44px;
  font-size: 0.76rem;
}
.map-panel .eyebrow {
  font-size: 0.65rem;
}
.horizon {
  margin: 1rem 0 0.5rem;
}
.horizon legend {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}
.segmented {
  display: flex;
  border: 1px solid var(--vd-control);
}
.segmented label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-size: 0.72rem;
  margin: 0;
  cursor: pointer;
  text-align: center;
  padding: 0.6rem 0.25rem;
  min-height: 44px;
  line-height: 1.3;
  gap: 0.25rem;
}
.segmented input {
  width: 13px;
  height: 13px;
  margin: 0;
}
.segmented label:has(input:checked) {
  background: var(--vd-action);
  color: var(--vd-action-text);
}
.segmented label:has(input:focus-visible) {
  outline: 3px solid var(--vd-focus);
  outline-offset: 3px;
  z-index: 1;
}
.effect {
  font-size: 0.92rem;
  white-space: pre-wrap;
  min-height: 4rem;
  border-bottom: 1px solid var(--vd-rule);
  padding: 0.75rem 0 1.2rem;
}
.map-next {
  padding-top: 1rem;
  border-top: 1px solid var(--vd-control);
  margin-top: 1rem;
}
.map-next .hint {
  font-size: 0.8rem;
}
.rehearsal,
.return-card {
  padding: 1.5rem;
  background: var(--vd-alt);
  border-left: 3px solid var(--vd-action);
  margin: 1.5rem 0;
}
.rehearsal p:not(.eyebrow) {
  min-height: 5rem;
}
.experiment {
  border-block: 1px solid var(--vd-rule);
  padding: 1.5rem 0;
}
.experiment dl {
  margin: 0;
}
.experiment dt {
  font-size: 0.75rem;
  color: var(--vd-link);
  font-family: "Space Mono", monospace;
  margin: 0.7rem 0 0.2rem;
}
.experiment dd {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.save-bar {
  margin-top: 2rem;
  padding: 1.4rem;
  background: var(--vd-alt);
  border-top: 1px solid var(--vd-rule);
}
.save-bar label,
.check-label {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.95rem;
  margin: 0;
}
.save-bar p {
  font-size: 0.85rem;
  margin: 0.5rem 0;
}
.save-bar .actions {
  margin-bottom: 0;
}
.status {
  font-size: 0.9rem;
  min-height: 1.5rem;
  padding: 1rem 0;
  color: var(--vd-link);
}
.error {
  color: var(--vd-text);
  border-left: 3px solid var(--vd-action);
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  margin: 0.6rem 0;
}
.error:empty {
  display: none;
}
footer {
  border-top: 1px solid var(--vd-rule);
  padding: 2rem max(1rem, calc((100vw - 1240px) / 2));
  font-size: 0.85rem;
}
footer .actions {
  align-items: center;
}
footer .actions button {
  font-size: 0.85rem;
}
footer .small {
  max-width: 80ch;
}
dialog {
  width: min(600px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  background: var(--vd-page);
  color: var(--vd-text);
  padding: clamp(1.2rem, 4vw, 2.5rem);
  border: 1px solid var(--vd-control);
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: rgb(0 0 0/0.65);
}
dialog h2 {
  font-size: 1.8rem;
}
dialog label {
  font-size: 0.95rem;
}
dialog .check-label {
  margin-top: 1rem;
}
dialog details {
  margin-top: 1.2rem;
}
dialog #message-preview {
  font-size: 0.9rem;
  white-space: pre-wrap;
  background: var(--vd-alt);
  padding: 1rem;
}
/* The softer corner (owner, 2026-11-04: "add the softer corner to all of the branding"): the kit's one
 * --radius (brand/foundations.css) on buttons, choices, fields, panels and dialogs. A joined pair or row
 * of choices rounds only its outer corners. The bands, the step row, every line and rule, the notes set
 * off only by a coloured edge rule (as on the website) and the map's markers stay square. */
.skip,
.choice-list label,
.segmented,
.map-panel,
dialog,
dialog #message-preview {
  border-radius: var(--radius);
}
.steps button,
.appearance button,
.segmented label {
  border-radius: 0;
}
.appearance button:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
}
.appearance button:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}
/* The choices sit inside the control's 1px edge, so they take the corner less that edge. */
.segmented label:first-child {
  border-radius: calc(var(--radius) - 1px) 0 0 calc(var(--radius) - 1px);
}
.segmented label:last-child {
  border-radius: 0 calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0;
}
.print-output {
  display: none;
}
@media (hover: hover) {
  button:not(:disabled):hover {
    background: var(--vd-hover);
    border-color: var(--vd-hover);
    color: var(--vd-hover-text);
  }
  .text-button:hover {
    color: var(--vd-hover-text);
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: transform 100ms cubic-bezier(0.2, 0, 0, 1);
  }
  button:not(:disabled):active {
    transform: scale(0.96);
  }
}
@media (max-width: 760px) {
  main {
    padding-top: 1.5rem;
  }
  .welcome {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 0.5rem;
  }
  .welcome h2 {
    max-width: 17ch;
  }
  .welcome-map {
    padding: 1.25rem;
  }
  .welcome-map li {
    padding: 0.8rem 0;
  }
  .tool-header {
    gap: 0.8rem;
  }
  .tool-header h1 {
    padding-left: 0.8rem;
  }
  .tool-header > span {
    display: none;
  }
  .steps {
    display: flex;
    overflow: auto;
    margin-bottom: 1.7rem;
    scrollbar-width: thin;
  }
  .steps button {
    flex: 0 0 125px;
    min-height: 65px;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .map-panel {
    position: static;
    max-height: none;
    padding: 1rem;
  }
  .brand-bar {
    align-items: center;
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }
  .identity {
    font-size: 0.8rem;
    gap: 0.5rem;
  }
  .identity small {
    font-size: 0.56rem;
  }
  .identity img {
    width: 24px;
    height: 24px;
  }
  .appearance button {
    min-width: 44px;
    padding: 0.4rem;
    font-size: 0.72rem;
  }
  .rehearsal,
  .return-card {
    padding: 1rem;
  }
  .working-area h2 {
    max-width: 20ch;
  }
  .step-actions .primary {
    min-width: 130px;
  }
  footer {
    padding-top: 1.5rem;
  }
  .segmented label {
    font-size: 0.8rem;
  }
  .map-node p {
    font-size: 1rem;
  }
}
@media (forced-colors: active) {
  button,
  .map-node,
  .map-panel,
  .choice-list label {
    border-color: ButtonText;
  }
  .primary,
  .segmented label:has(input:checked) {
    background: Highlight;
    color: HighlightText;
  }
  .steps button[aria-current="step"] {
    border-color: Highlight;
  }
  input {
    accent-color: auto;
  }
}
@page {
  margin: 18mm;
}
@media print {
  html {
    color: #111;
    background: #fff;
    font-size: 11pt;
  }
  body > * {
    display: none !important;
  }
  body > main {
    display: block !important;
    padding: 0;
    max-width: none;
  }
  main > * {
    display: none !important;
  }
  main > #print-output {
    display: block !important;
    color: #111;
    background: #fff;
    white-space: normal;
    overflow-wrap: anywhere;
    font: 11pt/1.45 Arial, sans-serif;
  }
  #print-output h1 {
    font-size: 20pt;
    line-height: 1.2;
    margin: 0 0 2mm;
  }
  #print-output .print-context {
    margin: 0 0 8mm;
    font-size: 10pt;
  }
  #print-output section {
    margin: 0 0 4mm;
    break-inside: avoid;
  }
  #print-output h2 {
    margin: 0 0 1mm;
    font: bold 10pt/1.3 Arial, sans-serif;
    break-after: avoid;
  }
  #print-output section p {
    margin: 0;
    white-space: pre-wrap;
    orphans: 3;
    widows: 3;
  }
  #print-output .print-note {
    margin: 6mm 0 0;
    border-top: 1px solid #777;
    padding-top: 3mm;
    font-size: 9pt;
    break-inside: avoid;
  }
  a {
    color: #111;
  }
}
