/* ── Global tweaks for a Medium-like clean look ──────────────── */

body {
  background: #ffffff;
  color: #111827;
}

.page,
.page__inner-wrap,
.page__content,
.archive {
  background: #ffffff;
}

.page__content {
  font-size: 0.95rem; /* slightly smaller than default */
  line-height: 1.7;
}

.page__content h1 {
  font-size: 2rem;
}

.page__content h2 {
  font-size: 1.5rem;
}

.page__content h3 {
  font-size: 1.25rem;
}

.page__content p {
  max-width: 46rem; /* ~736px for 60–75 chars */
}

.masthead,
.site-title,
.site-nav,
.page__hero,
.page__hero--overlay {
  background: #ffffff !important;
  color: #111827 !important;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.masthead__menu-item a {
  font-size: 0.9rem;
}

/* Hide theme credit line in footer */
.page__footer-copyright {
  display: none;
}

.page__hero--overlay .page__title,
.page__title,
.page__lead {
  text-shadow: none;
  color: #111827;
}

/* ── Credential Models Table ─────────────────────────────────── */

.credential-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

.credential-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.credential-table th {
  background: #f5f5f7;
  color: #222;
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1;
}

.credential-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
  transition: background 0.3s ease, transform 0.2s ease;
}

.credential-table tr {
  background: #fff;
}

.credential-table tbody tr:hover td {
  background: #f9fafb;
}

/* ── Row highlights ──────────────────────────────────────────── */

.row-static-keys td:first-child {
  border-left: 4px solid #e74c3c;
}

.row-instance-profile td:first-child {
  border-left: 4px solid #f39c12;
}

.row-irsa td:first-child {
  border-left: 4px solid #3498db;
}

.row-pod-identity td:first-child {
  border-left: 4px solid #2ecc71;
}

/* ── Recommended badge (Pod Identity row) ────────────────────── */

.badge-recommended {
  display: inline-block;
  background: #e6f9f0;
  color: #065f46;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
}

.badge-maintenance {
  display: inline-block;
  background: #fff4e6;
  color: #92400e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
}

/* ── Security / trade-off icons ──────────────────────────────── */

.trade-off-risk { color: #e74c3c; }
.trade-off-warn { color: #e67e22; }
.trade-off-info { color: #2980b9; }
.trade-off-good { color: #27ae60; }


/* ── Animated Architecture Diagram ───────────────────────────── */

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 2rem auto;
  max-width: 400px;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  border-radius: 12px;
  min-width: 260px;
  text-align: center;
  position: relative;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.arch-icon {
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.arch-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.arch-sublabel {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 2px;
}

/* Node colors (soft, non-distracting) */
.arch-pod {
  background: #f5f7ff;
  color: #111827;
}

.arch-role1 {
  background: #ecfdf3;
  color: #065f46;
}

.arch-role2 {
  background: #eff6ff;
  color: #1d4ed8;
}

.arch-role3 {
  background: #f5f3ff;
  color: #6d28d9;
}

.arch-resources {
  background: #fff7ed;
  color: #9a3412;
}

/* Arrows */
.arch-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 48px;
  justify-content: center;
}

.arch-arrow-line {
  width: 2px;
  height: 20px;
  background: #d1d5db;
}

.arch-arrow-text {
  font-size: 0.7rem;
  color: #6b7280;
  font-family: monospace;
  margin-top: 2px;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 600px) {
  .arch-node {
    min-width: 200px;
    padding: 12px 20px;
  }
  .credential-table {
    font-size: 0.8rem;
  }
}
