/* Values Duel medical-practice implementation layer.
 * Authority: the Dr. MCB kit's current Medical Practice Standard and
 * Digital/Values-Duel.md. Canonical tokens are loaded from /brand/tokens.css. */

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

body {
  background: var(--brand-ice);
  color: var(--brand-text);
  font-family: var(--brand-font-primary);
}

nav.top,
.brand-bar {
  height: 64px;
  border: 0;
  background: var(--brand-purple);
  box-shadow: none;
}

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

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

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

.nav-logo .brand-spark,
.brand-logo .brand-spark {
  width: 18px;
  height: 18px;
}

/* 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(--brand-tap-min);
}

.brand-lockup {
  gap: 2px;
}

.brand-name {
  color: var(--brand-white);
  font-family: var(--brand-font-primary);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1;
}

.brand-credentials {
  padding: 0;
  border: 0;
  color: var(--brand-periwinkle);
  font-family: var(--brand-font-utility);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-right,
.brand-context {
  color: rgba(255, 255, 255, .78);
  font-family: var(--brand-font-utility);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.nav-right::before {
  background: var(--brand-periwinkle);
}

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

.match-guide {
  top: 64px;
  background: var(--brand-ice);
  border-bottom: var(--brand-rule);
}

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

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

.eyebrow {
  color: var(--brand-azure-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

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

.display,
.display em,
h1.headline,
h2.headline,
.round-intro-card h2,
.start-principle h2,
.field-primary h2,
.g-hero .display {
  color: var(--brand-purple);
  font-family: var(--brand-font-primary);
  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(--brand-azure-deep);
  font-family: var(--brand-font-utility);
  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(--brand-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

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

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

.btn:hover {
  border-color: var(--brand-azure-deep);
  background: var(--brand-azure-deep);
}

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

.hero-proof {
  gap: 8px;
}

.hero-proof span {
  min-height: 30px;
  padding: 6px 9px;
  border: var(--brand-rule);
  background: var(--brand-ice);
  color: var(--brand-text-secondary);
  font-size: 9px;
  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(--brand-border);
  background: var(--brand-ice);
}

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

.ticket-choice strong,
.choice .label,
.top5 .v .name,
.glossary .entry dt {
  color: var(--brand-purple);
  font-family: var(--brand-font-primary);
  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: 3px solid var(--brand-azure);
  border-bottom: var(--brand-rule);
}

footer.bot {
  border-top: var(--brand-rule);
  background: var(--brand-ice);
}

footer.bot a {
  color: var(--brand-azure-deep);
  font-weight: 700;
  text-underline-offset: 3px;
}

.start-details summary,
.back-link a,
footer.bot .right a {
  display: inline-flex;
  min-height: var(--brand-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(--brand-clinical-lavender);
}

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

.start-principle:nth-child(even),
.top5 .v:nth-child(even),
.grid-pick .tile:nth-child(even) {
  background: var(--brand-clinical-lavender);
}

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

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

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

  .brand-name {
    font-size: 15px;
  }

  .brand-credentials {
    font-size: 7px;
  }

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

  .context-detail {
    display: none;
  }

  .match-guide {
    top: 60px;
  }

  .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(--brand-azure-deep); }
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(--brand-tap-min);
  margin-bottom: 20px;
  color: var(--brand-azure-deep);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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