/* The ACT tools' shared layout, in Dr. MCB's business branding (owner, 2026-10-15: "I actually want the
 * Values tool in my normal branding"). Palette, typography and roles come from the shared web export
 * (tokens.css, foundations.css, registers.css) with Court's token layer (court-tokens.css) over it:
 * a White page (.on-court), the field (Night Alt, --field) for the header and footer under the 4px Acid
 * bar, the kit's DR MCB cuts, Azure for every action and Purple for labels. */

@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/space-mono-bold.ttf') format('truetype');
}

body {
  background: var(--surface);
  color: var(--fg);
  font-family: var(--font-display);
}

nav.top,
.brand-bar,
nav.on-night {
  min-height: 72px;
  height: auto;
  border: 0;
  border-top: var(--signal-bar);
  border-bottom: var(--hairline-dark);
  background: var(--field);
  color: var(--white);
  box-shadow: none;
}

/* The one-line DR MCB wordmark, the kit's Acid-Reverse cut on the field at 132px (BRAND.md). */
nav.on-night .brand-wordmark {
  display: block;
  width: 132px;
  max-width: 100%;
  height: auto;
}

nav.top {
  padding-inline: var(--page-pad);
}

.brand-inner {
  width: min(var(--content-max), calc(100% - (2 * var(--page-pad))));
}

.nav-logo,
.brand-logo {
  gap: 10px;
  color: var(--white);
}


/* The older Values Duel and Values Library shells predate the suite-wide
 * mobile target floor used by Thought Lab and Drop Anchor. Keep their visual
 * treatment compact while making the whole link comfortably tappable. */
.nav-logo,
.brand-logo,
.brand-context {
  min-height: var(--tap-min);
}

.nav-right,
.brand-context {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-right b,
.brand-context b {
  color: var(--white);
  font-weight: 700;
}

.nav-right::before {
  background: var(--on-night-3);
}

nav.on-night .brand-context {
  display: inline-flex;
  align-items: center;
}

nav.on-night .context-detail,
nav.on-night .thought-nav-links a {
  color: var(--on-night);
}

nav.on-night .thought-nav-links a:hover,
nav.on-night .thought-nav-links a[aria-current="page"] {
  color: var(--white);
}

.brand-context:hover {
  color: var(--white);
}

.match-guide {
  top: 0;
  background: var(--surface);
  border-bottom: var(--hairline-light);
}

.wrap {
  max-width: var(--content-max);
  padding-inline: var(--page-pad);
}

.eyebrow,
.screen-kicker,
.hero-proof,
.ticket-head,
.ticket-route,
.round-stats,
.progress,
.brand-context {
  font-family: var(--font-mono);
  font-weight: 700;
}

.eyebrow {
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.eyebrow .rule {
  width: 32px;
  height: 3px;
  background: var(--azure);
}

.display,
.display em,
h1.headline,
h2.headline,
.round-intro-card h2,
.start-principle h2,
.field-primary h2,
.g-hero .display {
  color: var(--fg-display);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  text-transform: none;
}

.duel-hero .display {
  max-width: 680px;
  font-size: clamp(44px, 5.2vw, 64px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.tool-descriptor {
  max-width: 60ch;
  margin-top: 16px;
  color: var(--purple);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  line-height: 1.5;
  text-transform: uppercase;
}

.creator-line {
  max-width: 60ch;
  margin-top: 8px;
  color: var(--fg-2);
  font-size: 13px;
  line-height: 1.5;
}

.lede,
.body-text,
.screen-lede,
.start-principle p {
  color: var(--fg-2);
  line-height: var(--body-leading);
}

.btn {
  min-height: var(--tap-min);
  border-color: var(--azure);
  border-radius: var(--radius);
  background: var(--azure);
  color: var(--white);
  box-shadow: none;
}

.btn:hover {
  border-color: var(--purple);
  background: var(--purple);
}

.btn:active {
  transform: translateY(1px);
}

.hero-proof {
  gap: 8px;
}

.hero-proof span {
  min-height: 30px;
  padding: 6px 9px;
  border: var(--hairline-light);
  background: var(--surface);
  color: var(--fg-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero-proof span::before {
  display: none;
}

.save-opt.compact,
.duel-ticket,
.g-hero {
  border-color: var(--rule);
  background: var(--surface);
}

.duel-ticket,
.g-hero {
  border-top: var(--court-line);
}

.ticket-choice strong,
.choice .label,
.top5 .v .name,
.glossary .entry dt {
  color: var(--purple);
  font-family: var(--font-display);
  font-weight: 700;
}

.start-principle h2,
.field-primary h2 {
  font-weight: 800;
}

.g-hero .display {
  max-width: 720px;
  font-size: clamp(42px, 5.2vw, 60px);
  line-height: 1.02;
}

.glossary {
  border-top: var(--court-line);
  border-bottom: var(--hairline-light);
}

/* The footer is the field and closes on the stacked wordmark with the credentials line, as every
   business page does (BRAND.md; the website's sign-off band). */
footer.on-night {
  border-top: 0;
  background: var(--field);
  color: var(--on-night);
}

footer.on-night .left,
footer.on-night .right,
footer.on-night .muted,
footer.on-night .footer-notes {
  color: var(--on-night);
}

footer.on-night b,
footer.on-night strong,
footer.on-night .left b {
  color: var(--white);
}

footer.on-night a,
footer.on-night .footer-links a {
  color: var(--azure-light);
  font-weight: 700;
  text-underline-offset: 3px;
}

footer.on-night a:hover {
  color: var(--white);
}

footer.on-night :focus-visible {
  outline-color: var(--azure-light);
}

.tool-signoff {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 8px;
  padding-top: 28px;
  border-top: var(--hairline-dark);
}

.tool-signoff__mark {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
}

.tool-signoff__credentials {
  margin: 0;
  color: var(--on-night);
  font-family: var(--font-mono);
  font-size: var(--mono-small);
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-align: left;
  text-transform: uppercase;
}

.start-details summary,
.back-link a,
footer.bot .right a {
  display: inline-flex;
  min-height: var(--tap-min);
  align-items: center;
}

.save-opt input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* Suite surface layer: these are the static tool pages, not clinical charts.
 * Periwinkle and ice provide calmer continuity across the suite while white is
 * reserved for inputs and the most focused reading surfaces. */
.duel-hero,
.round-intro-card,
.signup,
.reflection,
.keepsake,
.final-action-dock,
.past-runs,
.values-diff {
  background: var(--surface);
}

.start-principle,
.top5 .v,
.grid-pick .tile,
.quick-field,
.field-primary,
.duel-scoreboard {
  background: var(--surface);
}

.start-principle:nth-child(even),
.top5 .v:nth-child(even),
.grid-pick .tile:nth-child(even) {
  background: var(--surface-card-alt);
}

/* The softer corner (owner, 2026-11-04: "add the softer corner to all of the branding"): the kit's one
 * --radius on what sits inside the page: boxes, buttons, choice controls, chips, tags and form fields.
 * The header and footer bands, the sticky guide, every line and rule, notes set off only by a coloured
 * edge rule (as on the website) and the supplied marks stay square. */
.g-hero,
.glossary-search input,
.glossary-search button,
.glossary-alphabet a {
  border-radius: var(--radius);
}

@media (max-width: 640px) {
  nav.top,
  .brand-bar {
    height: auto;
  }

  nav.top {
    padding-inline: 16px;
  }

  .brand-inner {
    width: calc(100% - 32px);
  }

  .nav-right,
  .brand-context {
    font-size: 11px;
  }

  .context-detail {
    display: none;
  }

  .match-guide {
    top: 0;
  }

  .duel-hero .display {
    font-size: clamp(42px, 12vw, 54px);
  }
}

/* Emphasis is the ground's blue, never a slant: the system ships no italic. Bold is the system's 700
   (the browser's "bolder" would synthesize 900); inside display type it keeps the heading's weight. */
em, i { font-style: normal; color: var(--purple); }
cite, dfn, address, var { font-style: normal; }
b, strong { font-weight: 700; }
h1 b, h1 strong, h2 b, h2 strong, .display b, .display strong { font-weight: inherit; }

/* Keep a visible route back to the website on every exercise screen. */
.all-tools-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  margin-bottom: 20px;
  color: var(--fg-link);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media print {
  .all-tools-link { display: none; }
}

/* The header wraps at narrow widths and at 200% zoom. Keep the exercise
   rail sticky independently, rather than covering content below a growing header. */
html { font-synthesis-style: none; }
nav.top, .brand-bar { position: relative; }
nav.top, .brand-inner, .thought-top { flex-wrap: wrap; gap: 12px 24px; padding-block: 16px; }
.nav-logo, .brand-logo, .thought-brand { min-width: 0; max-width: 100%; }
.nav-right, .brand-context { flex-wrap: wrap; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
nav.on-night :focus-visible { outline-color: var(--azure-light); }
@media (max-width: 640px) {
  nav.top, .brand-inner, .thought-top { align-items: start; }
  .nav-right::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; }
  /* Keep the field behind the kit's Acid-Reverse cuts, which forced colours cannot recolour. */
  nav.on-night, .tool-signoff { forced-color-adjust: none; background: var(--field); }
}
