/* Evidence release: route dossier, answer pages and a native guided brief. */

.global-proof {
  border-block: 1px solid color-mix(in srgb, var(--vt-sage) 65%, transparent);
  background: var(--vt-night);
  color: #f5f4ec;
}

.global-proof-layout {
  display: grid;
  gap: 1.4rem;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.global-proof-title,
.global-proof-case {
  margin: 0;
}

.global-proof-title span,
.global-proof-case span,
.context-route p span,
.case-dossier-kicker,
.artifact-kicker {
  display: block;
  color: var(--vt-sage);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.global-proof-title strong {
  display: block;
  max-width: 15ch;
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.55rem);
  line-height: 0.98;
}

.global-proof-facts {
  display: grid;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.19);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.global-proof-facts div {
  min-width: 0;
  padding: 1rem 0.75rem 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.19);
}

.global-proof-facts div:nth-child(even) {
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255,255,255,.19);
}

.global-proof-facts dt {
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

.global-proof-facts dd {
  margin: 0.35rem 0 0;
  color: #cfe0da;
  font-size: 0.78rem;
  line-height: 1.35;
}

.global-proof-case {
  position: relative;
  display: grid;
  min-height: 7.5rem;
  padding: 1.1rem 3rem 1.1rem 1.1rem;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  text-decoration: none;
  align-content: center;
}

.global-proof-case strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.98rem;
  line-height: 1.35;
}

.global-proof-case i {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  color: var(--vt-clay);
  font-size: 1.6rem;
  font-style: normal;
}

.global-proof-case:hover {
  border-color: var(--vt-clay);
  color: #fff;
}

.global-proof-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}

.brief-launch {
  display: inline-flex;
  min-height: 2.75rem;
  padding: .6rem 1rem;
  border: 1px solid var(--vt-sage);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  align-items: center;
}

.brief-launch:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
  color: #fff;
}

.context-route {
  background: var(--vt-mint);
  color: var(--vt-night);
}

.context-route-layout {
  display: grid;
  gap: 1rem;
  padding-block: clamp(2rem, 5vw, 3.25rem);
}

.context-route p {
  margin: 0;
}

.context-route p span {
  color: var(--vt-teal-deep);
}

.context-route p strong {
  display: block;
  margin-top: .25rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.context-route ul {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--vt-sage);
  list-style: none;
}

.context-route a {
  display: flex;
  min-height: 3.15rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--vt-sage);
  color: var(--vt-night);
  font-weight: 750;
  text-decoration: none;
  align-items: center;
  justify-content: space-between;
}

.context-route a span {
  color: var(--vt-clay);
}

/* Case hub and route dossier */
.case-hub-grid,
.case-dossier-grid,
.case-lessons {
  display: grid;
  gap: 1rem;
}

.case-hub-card {
  position: relative;
  display: grid;
  min-height: 25rem;
  padding: clamp(1.4rem, 5vw, 3rem);
  overflow: hidden;
  background: var(--vt-teal-deep);
  color: #fff;
  text-decoration: none;
  align-content: end;
}

.case-hub-card::before {
  position: absolute;
  top: 1.25rem;
  right: -3rem;
  width: 12rem;
  height: 12rem;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  box-shadow: 0 0 0 2rem rgba(220,235,228,.08), 0 0 0 4rem rgba(220,235,228,.04);
  content: "";
}

.case-hub-card:hover {
  color: #fff;
}

.case-hub-card h2 {
  max-width: 16ch;
  margin: .5rem 0 1rem;
  color: #fff;
}

.case-hub-card p {
  max-width: 58ch;
}

.case-hub-facts {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.32);
  list-style: none;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.case-hub-facts li {
  padding: .8rem .5rem .8rem 0;
  border-bottom: 1px solid rgba(255,255,255,.32);
  font-size: .82rem;
}

.case-boundary {
  padding: 1.4rem;
  border-left: .35rem solid var(--vt-clay);
  background: var(--surface);
}

.case-boundary h2,
.case-boundary h3 {
  margin-top: 0;
}

.case-dossier {
  background: var(--surface);
}

.case-dossier > .shell > div > .case-dossier-kicker,
.case-branch-map .case-dossier-kicker {
  color: var(--vt-teal-deep);
}

.case-dossier-route {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  counter-reset: route;
  list-style: none;
}

.case-dossier-route li {
  position: relative;
  min-height: 9rem;
  padding: 1.4rem 1.2rem 1.4rem 4.5rem;
  border-top: 1px solid var(--line);
  counter-increment: route;
}

.case-dossier-route li::before {
  position: absolute;
  top: 1.2rem;
  left: 0;
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid var(--vt-teal);
  border-radius: 50%;
  color: var(--vt-teal-deep);
  content: "0" counter(route);
  font-family: var(--font-display);
  font-weight: 900;
  place-items: center;
}

.case-dossier-route h2,
.case-dossier-route h3 {
  margin: 0 0 .4rem;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
}

.case-metrics {
  display: grid;
  margin: 0;
  background: var(--vt-night);
  color: #fff;
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.case-metrics div {
  padding: 1.2rem;
  border-right: 1px solid rgba(255,255,255,.2);
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.case-metrics dt {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  font-weight: 900;
}

.case-metrics dd {
  margin: .3rem 0 0;
  color: #cfe0da;
  font-size: .82rem;
}

.case-branch-map {
  position: relative;
  display: grid;
  gap: .75rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--vt-teal);
  background: var(--vt-mint);
}

.case-branch-map ul {
  display: grid;
  gap: .5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(5, minmax(0,1fr));
}

.case-branch-map li {
  display: grid;
  min-height: 3.5rem;
  border: 1px solid var(--vt-sage);
  background: var(--surface);
  font-weight: 850;
  place-items: center;
}

.case-branch-map li[aria-current="true"] {
  border-color: var(--vt-clay);
  background: var(--vt-teal-deep);
  color: #fff;
}

.case-lessons article {
  padding: 1.25rem;
  border-top: .2rem solid var(--vt-teal);
  background: var(--surface);
}

/* Knowledge articles and safe HTML examples. */
.article-author-card {
  display: flex;
  gap: .8rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: .82rem;
  align-items: center;
}

.article-author-card b {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--vt-teal-deep);
  color: #fff;
  place-items: center;
}

.article-deck {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--vt-sage);
  color: var(--vt-night);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.35;
}

.answer-card {
  margin-block: 1.5rem;
  padding: 1.2rem;
  border-left: .35rem solid var(--vt-clay);
  background: var(--vt-mint);
}

.answer-card > strong {
  color: var(--vt-teal-deep);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.answer-card p:last-child {
  margin-bottom: 0;
}

.artifact {
  display: grid;
  gap: .65rem;
  margin-block: 2rem;
  padding: clamp(1rem, 4vw, 1.75rem);
  border: 1px solid var(--vt-teal);
  background: var(--surface);
  box-shadow: .65rem .65rem 0 var(--vt-sand);
}

.artifact-kicker {
  margin: 0 0 .35rem;
  color: var(--vt-teal-deep);
}

.artifact-fields > div {
  display: grid;
  gap: .5rem;
  padding: .7rem 0;
  border-top: 1px solid var(--line);
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) 2rem minmax(0,1fr);
  align-items: center;
}

.artifact-fields span {
  font-size: .8rem;
  font-weight: 800;
}

.artifact-fields b {
  font-size: .75rem;
  font-weight: 700;
}

.artifact-fields i {
  height: 1px;
  background: var(--vt-clay);
}

.artifact-name > div {
  display: grid;
  gap: .25rem;
  padding: .8rem;
  border-left: .25rem solid var(--vt-sage);
  background: var(--vt-mint);
}

.artifact-name span,
.artifact-version span {
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.artifact-name em {
  color: var(--vt-clay);
  font-size: .78rem;
}

.artifact-version {
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.artifact-version .artifact-kicker,
.artifact-version .version-gate,
.artifact-version .version-result {
  grid-column: 1 / -1;
}

.version-source,
.version-result {
  padding: 1rem;
  border: 1px solid var(--vt-sage);
  background: var(--vt-mint);
}

.version-source strong,
.version-result strong {
  display: block;
  margin-top: .35rem;
}

.version-gate {
  display: grid;
  gap: .75rem;
  color: var(--vt-clay);
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.version-gate i {
  height: 1px;
  background: currentColor;
}

.article-list {
  gap: 1rem;
}

.article-teaser {
  background: var(--surface);
}

.article-teaser-label {
  display: inline-block;
  margin-bottom: .35rem;
  color: var(--vt-teal-deep);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Guided brief: native dialog, progressive enhancement and no remote UI. */
.route-brief {
  width: min(67rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: min(50rem, calc(100dvh - 1.5rem));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2rem 6rem rgba(8,37,42,.35);
}

.route-brief::backdrop {
  background: rgba(8,37,42,.72);
  backdrop-filter: blur(3px);
}

.route-brief-frame {
  position: relative;
  min-height: min(43rem, calc(100dvh - 1.5rem));
}

.route-brief-close {
  position: absolute;
  z-index: 3;
  top: .7rem;
  right: .7rem;
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--vt-night);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  place-items: center;
}

.route-brief-side {
  display: none;
  background: var(--vt-teal-deep);
  color: #fff;
}

.route-brief-form {
  width: auto;
  padding: clamp(1.25rem, 5vw, 3.5rem);
  border: 0;
  background: var(--surface);
  box-shadow: none;
}

.route-brief-header {
  max-width: 44rem;
  padding-right: 2.5rem;
}

.route-brief-header h2 {
  margin: .4rem 0 .75rem;
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1.02;
}

.route-brief-header > p:not(.eyebrow):not(.route-brief-progress) {
  color: var(--ink-soft);
}

.route-brief-progress {
  display: grid;
  gap: .4rem;
  margin: 1.25rem 0;
  color: var(--vt-teal-deep);
  font-size: .78rem;
  font-weight: 800;
}

.route-brief-progress i {
  display: block;
  height: .25rem;
  overflow: hidden;
  background: var(--vt-mint);
}

.route-brief-progress b {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--vt-clay);
  transition: width .2s ease;
}

.route-brief-step {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.route-brief-step[hidden] {
  display: none;
}

.route-brief-step legend {
  margin-bottom: .85rem;
  color: var(--vt-night);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 800;
}

.route-brief-step > label:not(.form-field):not(.consent-field) {
  position: relative;
  display: grid;
  min-height: 4.2rem;
  padding: .8rem .8rem .8rem 3rem;
  border: 1px solid var(--line);
  cursor: pointer;
  align-items: center;
}

.route-brief-step > label:not(.form-field):not(.consent-field):hover {
  border-color: var(--vt-teal);
  background: var(--vt-mint);
}

.route-brief-step > label > input[type="radio"] {
  position: absolute;
  left: 1rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--vt-teal-deep);
}

.route-brief-step label b,
.route-brief-step label small {
  display: block;
}

.route-brief-step label small {
  margin-top: .15rem;
  color: var(--ink-soft);
  font-size: .78rem;
}

.route-brief-controls {
  display: flex;
  gap: .65rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.route-brief-controls .button {
  min-height: 2.75rem;
}

.route-brief-controls [hidden] {
  display: none;
}

.route-brief:not([open]) {
  display: none;
}

body.brief-open {
  overflow: hidden;
}

@media (min-width: 48rem) {
  .global-proof-layout {
    grid-template-columns: minmax(12rem,.7fr) minmax(20rem,1.35fr) minmax(14rem,.95fr);
    align-items: center;
  }

  .global-proof-facts {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }

  .global-proof-facts div,
  .global-proof-facts div:nth-child(even) {
    padding: 1rem;
    border-left: 1px solid rgba(255,255,255,.19);
  }

  .global-proof-facts div:first-child {
    border-left: 0;
  }

  .context-route-layout {
    grid-template-columns: minmax(12rem,.55fr) minmax(0,1.45fr);
    align-items: start;
  }

  .context-route ul {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .context-route li:nth-child(odd) a {
    padding-right: 1rem;
  }

  .context-route li:nth-child(even) a {
    padding-left: 1rem;
    border-left: 1px solid var(--vt-sage);
  }

  .case-dossier-grid {
    grid-template-columns: minmax(0,1.25fr) minmax(18rem,.75fr);
    align-items: start;
  }

  .case-lessons {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .case-metrics {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }

  .route-brief-frame {
    display: grid;
    grid-template-columns: 15rem minmax(0,1fr);
  }

  .route-brief-side {
    display: grid;
    padding: 2rem;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr;
    align-items: center;
  }

  .route-brief-side span {
    display: grid;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--vt-sage);
    border-radius: 50%;
    font-family: var(--font-display);
    font-weight: 900;
    place-items: center;
  }

  .route-brief-side i {
    height: 1px;
    background: var(--vt-clay);
  }

  .route-brief-side p {
    grid-column: 1 / -1;
    align-self: end;
    font-family: var(--font-display);
    font-size: 1.65rem;
    line-height: 1.05;
  }

  .route-brief-step:not(.route-brief-contact) {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .route-brief-step legend {
    grid-column: 1 / -1;
  }
}

@media (max-width: 35rem) {
  .artifact-fields > div {
    grid-template-columns: 1fr 1fr;
  }

  .artifact-fields span,
  .artifact-fields i {
    grid-column: 1 / -1;
  }

  .case-branch-map ul {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .route-brief {
    width: 100%;
    max-height: calc(100dvh - 4.4rem - env(safe-area-inset-bottom));
    margin: auto 0 0;
  }

  .route-brief-frame {
    min-height: calc(100dvh - 4.4rem - env(safe-area-inset-bottom));
  }

  .route-brief-form {
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  }

  .route-brief-header h2 {
    font-size: 1.65rem;
  }

  .route-brief-header > p:not(.eyebrow):not(.route-brief-progress) {
    font-size: .84rem;
  }

  .route-brief-step > label:not(.form-field):not(.consent-field) {
    min-height: 3.8rem;
    padding-block: .6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-brief-progress b {
    transition: none;
  }

  .route-brief::backdrop {
    backdrop-filter: none;
  }
}
