/* GPUaaS Review Portal — visual extras */

/* Status badges */
.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.18em 0.6em;
  border-radius: 0.4em;
  text-transform: uppercase;
  vertical-align: middle;
  margin: 0 0.35em 0.2em 0;
  border: 1px solid transparent;
  line-height: 1.4;
}
.status-implemented { background:#0f5132; color:#d1e7dd; border-color:#0a3622; }
.status-contract    { background:#055160; color:#cff4fc; border-color:#032830; }
.status-designed    { background:#664d03; color:#fff3cd; border-color:#332701; }
.status-decided     { background:#1c4480; color:#cfe2ff; border-color:#0e2240; }
.status-runbook     { background:#3d2c5d; color:#e9d6ff; border-color:#1e1530; }
.status-rca         { background:#842029; color:#f8d7da; border-color:#42101e; }
.status-deprecated  { background:#5c636a; color:#e9ecef; border-color:#2e3236; }

[data-md-color-scheme="default"] .status-implemented { background:#d1e7dd; color:#0a3622; }
[data-md-color-scheme="default"] .status-contract    { background:#cff4fc; color:#032830; }
[data-md-color-scheme="default"] .status-designed    { background:#fff3cd; color:#332701; }
[data-md-color-scheme="default"] .status-decided     { background:#cfe2ff; color:#0e2240; }
[data-md-color-scheme="default"] .status-runbook     { background:#e9d6ff; color:#1e1530; }
[data-md-color-scheme="default"] .status-rca         { background:#f8d7da; color:#42101e; }
[data-md-color-scheme="default"] .status-deprecated  { background:#e9ecef; color:#2e3236; }

/* Role chip on landing */
.role-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin: 1.4rem 0 1.6rem;
}
.role-chip {
  display: block;
  padding: 1rem 1.1rem;
  border-radius: 0.6rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  text-decoration: none;
  color: inherit;
  background: var(--md-default-bg-color);
  transition: transform 0.08s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.role-chip:hover {
  border-color: var(--md-primary-fg-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.role-chip h4 {
  margin: 0 0 0.35rem 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--md-primary-fg-color);
}
.role-chip p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--md-default-fg-color--light);
}

/* Trail cards on /trails landing */
.trail-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.4rem 0;
}
.trail-card {
  display: block;
  padding: 1.1rem 1.2rem;
  border-radius: 0.6rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  text-decoration: none;
  color: inherit;
}
.trail-card h4 { margin: 0 0 0.35rem 0; color: var(--md-primary-fg-color); }
.trail-card .step-count {
  display: inline-block;
  font-size: 0.74rem;
  padding: 0.1em 0.5em;
  border-radius: 0.3em;
  background: var(--md-code-bg-color);
  margin-bottom: 0.4rem;
}

/* Stat grid for /now dashboard */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.7rem;
  margin: 1.2rem 0;
}
.stat {
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  background: var(--md-code-bg-color);
  text-align: center;
}
.stat .num {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--md-primary-fg-color);
  line-height: 1;
}
.stat .label {
  display: block;
  font-size: 0.78rem;
  margin-top: 0.3rem;
  color: var(--md-default-fg-color--light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Source-link strip under page title */
.source-strip {
  font-size: 0.84rem;
  color: var(--md-default-fg-color--light);
  border-left: 3px solid var(--md-primary-fg-color);
  padding: 0.5rem 0.8rem;
  margin: 0.4rem 0 1.4rem;
  background: var(--md-code-bg-color);
  border-radius: 0 0.3rem 0.3rem 0;
}
.source-strip code { background: transparent; padding: 0; }

/* Mermaid sizing — make diagrams use full content width, not a tight cap.
   Material defaults compress SVGs into a small fraction of the column;
   override so sequence / state / ER diagrams stay readable. */
.mermaid {
  text-align: center;
  margin: 1.2rem 0;
}
.mermaid svg {
  max-width: 100% !important;
  height: auto !important;
  width: 100%;
}

/* Give the main content column more breathing room so wide diagrams
   actually have room to breathe. */
.md-grid {
  max-width: 75rem;
}
.md-content__inner {
  max-width: none;
}
@media (min-width: 76.25em) {
  .md-content {
    max-width: 64rem;
  }
}

/* Click-to-zoom: dim background and enlarge the diagram inline */
.mermaid:focus-within svg {
  cursor: zoom-out;
}

/* Tables tighter */
.md-typeset table:not([class]) {
  font-size: 0.84rem;
}
.md-typeset table:not([class]) th {
  background: var(--md-code-bg-color);
}
