/* RuntimeAI deterministic evaluation thesis page */

.rai-det-page {
  width: 100%;
  padding: 0 0 2.5rem;
  box-sizing: border-box;
}

.rai-det-hero__tagline {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  color: var(--v-brand-teal, #1375d9);
}

.rai-det-section {
  margin-bottom: 2.25rem;
}

.rai-det-section--band {
  padding: 1.35rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(19, 117, 217, 0.22);
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 6%, var(--v-surface, #fff));
}

.rai-det-section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--v-font-display, Spectral, Georgia, serif);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.rai-det-prose {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--v-ink-muted, #475569);
}

.rai-det-prose p {
  margin: 0 0 0.85rem;
}

.rai-det-prose ul,
.rai-det-prose ol {
  margin: 0 0 0.85rem;
  padding-left: 1.35rem;
}

.rai-det-prose li {
  margin-bottom: 0.45rem;
}

.rai-det-prose a {
  color: var(--v-brand-teal, #1375d9);
  font-weight: 600;
  text-decoration: none;
}

.rai-det-prose a:hover {
  text-decoration: underline;
}

.rai-det-steps {
  counter-reset: det-step;
  list-style: none;
  padding-left: 0;
}

.rai-det-steps li {
  position: relative;
  padding-left: 2rem;
}

.rai-det-steps li::before {
  counter-increment: det-step;
  content: counter(det-step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--v-brand-teal, #1375d9);
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 12%, transparent);
}

.rai-det-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--v-border, #e2e8f0);
  border-radius: 12px;
  background: var(--v-surface, #fff);
}

.rai-det-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.45;
}

.rai-det-table th,
.rai-det-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--v-border, #e2e8f0);
}

.rai-det-table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v-ink-muted, #64748b);
  background: color-mix(in srgb, var(--v-border, #e2e8f0) 35%, transparent);
}

.rai-det-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--v-ink, #0f172a);
  width: 28%;
}

.rai-det-table tbody tr:last-child th,
.rai-det-table tbody tr:last-child td {
  border-bottom: none;
}

.rai-det-table td:nth-child(2) {
  color: var(--v-ink-muted, #64748b);
}

.rai-det-table td:nth-child(3) {
  color: var(--v-ink, #0f172a);
}

.rai-det-pillar-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .rai-det-pillar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .rai-det-pillar-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rai-det-pillar:nth-child(4),
  .rai-det-pillar:nth-child(5) {
    grid-column: span 1;
  }
}

.rai-det-pillar {
  padding: 1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--v-border, #e2e8f0);
  background: var(--v-surface, #fff);
}

.rai-det-pillar h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  font-weight: 650;
  color: var(--v-ink, #0f172a);
}

.rai-det-pillar p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--v-ink-muted, #64748b);
}

.rai-det-links {
  display: grid;
  gap: 0.65rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .rai-det-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.rai-det-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.95rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--v-border, #e2e8f0);
  background: var(--v-surface, #fff);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rai-det-link-card:hover {
  border-color: rgba(19, 117, 217, 0.4);
  box-shadow: 0 6px 18px rgba(19, 117, 217, 0.08);
  text-decoration: none;
}

.rai-det-link-card__label {
  font-weight: 650;
  color: var(--v-ink, #0f172a);
}

.rai-det-link-card__hint {
  font-size: 0.88rem;
  color: var(--v-brand-teal, #1375d9);
  font-weight: 600;
}

.rai-det-footer-note {
  margin: 1.75rem 0 0;
  font-size: 0.9rem;
  color: var(--v-ink-muted, #64748b);
}

.rai-det-footer-note a {
  color: var(--v-brand-teal-deep, #0f5ea8);
  font-weight: 600;
  text-decoration: none;
}

.rai-det-footer-note a:hover {
  text-decoration: underline;
}

body[data-theme="dark"] .rai-det-table-wrap,
body[data-theme="dark"] .rai-det-pillar,
body[data-theme="dark"] .rai-det-link-card {
  background: color-mix(in srgb, var(--surface, #111827) 92%, #000);
  border-color: var(--v-border, #334155);
}

body[data-theme="dark"] .rai-det-section--band {
  background: color-mix(in srgb, var(--v-brand-teal, #1375d9) 12%, #111827);
}
