/* Judge Tour on the Docket console shell. Uses the gate variables from
   /integrations/gate.css so the page matches /console exactly. */

#docket-gate.tour-page {
  padding-top: 30px;
}

.tour-shell {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.tour-intro .gate-panel-copy {
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gate-muted);
}

.tour-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tour-actions .gate-primary,
.tour-actions .gate-secondary {
  text-decoration: none;
}

.tour-actions .gate-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  font-size: 14px;
  line-height: 1;
}

.tour-progress {
  display: flex;
  flex-direction: column;
}

.tour-count {
  display: block;
  margin-top: 20px;
  font-family: var(--gate-display);
  font-size: clamp(64px, 7vw, 108px);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.055em;
  color: var(--gate-green);
}

.tour-meta {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--gate-muted);
}

.tour-summary-note {
  margin-top: auto;
  padding-top: 22px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--gate-dim);
}

.tour-results {
  margin-top: 18px;
}

.tour-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.tour-table th {
  padding: 8px 10px 8px 0;
  text-align: left;
  font-family: var(--gate-label);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gate-dim);
  border-bottom: 1px solid var(--gate-line);
}

.tour-table td {
  padding: 11px 10px 11px 0;
  vertical-align: top;
  font-size: 12px;
  color: var(--gate-muted);
  border-bottom: 1px solid var(--gate-line-soft);
}

.tour-table tbody tr:last-child td {
  border-bottom: 0;
}

.tour-table td.decision {
  min-width: 112px;
}

.tour-table td.why {
  max-width: 210px;
  font-family: var(--gate-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--gate-dim);
  white-space: normal;
}

.tour-case b {
  display: block;
  color: var(--gate-text);
  font-size: 13px;
  font-weight: 600;
}

.tour-case span {
  display: block;
  margin-top: 2px;
  color: var(--gate-dim);
  font-size: 12px;
  line-height: 1.4;
}

.badge {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--gate-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.35;
}

.badge[data-v="publish"] { color: var(--gate-green); }
.badge[data-v="rewrite"] { color: var(--gate-amber); }
.badge[data-v="hold"] { color: var(--gate-hold); }
.badge[data-v="pending"] { color: var(--gate-faint); }
.badge[data-v="running"] { color: var(--gate-amber); }
.badge[data-v="error"] { color: var(--gate-hold); }

.tour-table .audit a {
  color: var(--gate-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tour-table .governing {
  max-width: 220px;
  white-space: normal;
}







#tour-status[data-state="running"] { color: var(--gate-amber); }
#tour-status[data-state="determined"] { color: var(--gate-green); }
#tour-status[data-state="held"] { color: var(--gate-hold); }

#tour-note[data-state="error"] { color: var(--gate-hold); }

.tour-ledger-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gate-dim);
}

.tour-ledger-note a {
  color: var(--gate-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
#tour-note[data-state=""] { color: var(--gate-faint); }

@media (max-width: 1100px) {
  .tour-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .tour-actions .gate-primary,
  .tour-actions .gate-secondary {
    width: 100%;
    text-align: center;
  }

  .tour-count {
    font-size: 64px;
  }
}


/* The tour page is not the marketing page. Keep the header chrome focused. */
[data-header-nav="true"] { display: none !important; }

/* Featured case and evidence strip */
.tour-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr);
  gap: 24px;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid var(--gate-line);
  border-radius: var(--gate-radius);
  background: rgba(16, 20, 19, 0.72);
}

.tour-feature-kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--gate-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gate-red);
}

.tour-feature h3 {
  max-width: 24ch;
  margin: 0;
  font-family: var(--gate-display);
  font-size: 26px;
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.025em;
  text-transform: uppercase;
  color: var(--gate-text);
}

.tour-feature-copy p {
  max-width: 50ch;
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--gate-muted);
}

.tour-feature-data {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.tour-feature-data > div {
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid var(--gate-line);
}

.tour-feature-data span {
  display: block;
  margin-bottom: 3px;
  font-family: var(--gate-mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gate-faint);
}

.tour-feature-data p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gate-muted);
  overflow-wrap: anywhere;
}

.tour-evidence {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--gate-line);
}

.tour-evidence-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  background: var(--gate-line-soft);
  border: 1px solid var(--gate-line-soft);
}

.tour-evidence-grid > div {
  min-width: 0;
  padding: 12px;
  background: var(--gate-panel);
}

.tour-evidence-grid b {
  display: block;
  font-family: var(--gate-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--gate-green);
}

.tour-evidence-grid span {
  display: block;
  margin-top: 4px;
  font-family: var(--gate-mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gate-dim);
}

.tour-evidence-note {
  margin: 9px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--gate-dim);
}

.tour-evidence-note a {
  color: var(--gate-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 900px) {
  .tour-feature { grid-template-columns: 1fr; gap: 18px; }
  .tour-feature h3 { max-width: none; }
  .tour-evidence-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .tour-feature { padding: 16px; }
  .tour-feature h3 { font-size: 22px; }
  .tour-evidence-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tour-recording {
  align-self: center;
  margin-left: 2px;
  font-family: var(--gate-mono);
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gate-dim);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tour-recording:hover { color: var(--gate-text); }
@media (max-width: 600px) { .tour-recording { margin: 2px 0 0; } }
