:root {
  /* Luminous Editorial Palette */
  --bg-primary: #FAF8F5;
  --bg-surface: #FFFFFF;
  --bg-tinted: #F3EFEA;
  --bg-subtle: #EAE4DC;

  --text-primary: #141A21;
  --text-secondary: #4A5562;
  --text-muted: #6E7A8A;

  --accent-color: #C05638;
  --accent-navy: #1B365D;
  --accent-navy-light: #EBF0F7;
  --accent-terra: #C05638;
  --accent-terra-light: #FDF1ED;
  --accent-sage: #2A6B53;
  --accent-sage-light: #EAF4F0;
  --accent-amber: #B87314;
  --accent-amber-light: #FEF7EC;
  --accent-crimson: #A82020;
  --accent-crimson-light: #FDECEC;

  --border-light: #E4DFD7;
  --border-strong: #CEC6B8;

  --shadow-sm: 0 2px 8px rgba(20, 26, 33, 0.04);
  --shadow-md: 0 10px 30px -5px rgba(20, 26, 33, 0.06), 0 4px 12px -2px rgba(20, 26, 33, 0.03);
  --shadow-lg: 0 20px 45px -10px rgba(20, 26, 33, 0.12);

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --container-max: 1320px;
  --scale-multiplier: 1;
}

/* Presenter Mode for Auditorium / Teacher Panel Projection */
body.presenter-mode {
  --scale-multiplier: 1.12;
  --container-max: 1460px;
  --bg-primary: #FFFFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: calc(16px * var(--scale-multiplier));
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Reading Progress Bar */
.progress-bar-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(228, 223, 215, 0.5);
  z-index: 1000;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-navy), var(--accent-terra));
  transition: width 0.1s ease-out;
}

/* Layout Containers */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.section-tinted {
  background-color: var(--bg-tinted);
}

/* Glossary Dotted Tooltips (Micro-interactions) */
.glossary-term {
  border-bottom: 1px dashed var(--accent-color);
  cursor: help;
  color: var(--accent-navy);
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
  padding: 0 2px;
  border-radius: 2px;
}

.glossary-term:hover,
.glossary-term:focus {
  background-color: var(--accent-terra-light);
  color: var(--accent-terra);
  outline: none;
}

.glossary-popover {
  position: fixed;
  z-index: 2000;
  max-width: 360px;
  background: #141A21;
  color: #FAF8F5;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.glossary-popover.visible {
  opacity: 1;
  transform: translateY(0);
}

.gp-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #F4A28C;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.gp-term {
  font-weight: 700;
  font-size: 0.92rem;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.gp-desc {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(250, 248, 245, 0.88);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.55rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--accent-navy);
  color: #FFFFFF;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.brand-title {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.brand-year {
  color: var(--accent-terra);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.79rem;
  font-weight: 500;
  padding: 0.4rem 0.68rem;
  border-radius: 99px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-navy);
  background: var(--accent-navy-light);
  font-weight: 600;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  flex-shrink: 0;
}

.btn-official-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-terra);
  background: var(--accent-terra-light);
  border: 1px solid rgba(192, 86, 56, 0.3);
  padding: 0.26rem 0.65rem;
  border-radius: 99px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-official-link:hover {
  background: var(--accent-terra);
  color: #FFFFFF;
}

.btn-presenter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.26rem 0.65rem;
  border-radius: 99px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.btn-presenter:hover {
  border-color: var(--accent-navy);
  color: var(--accent-navy);
}

body.presenter-mode .btn-presenter {
  background: var(--accent-navy);
  color: #FFFFFF;
  border-color: var(--accent-navy);
}

/* Pills & Badges */
.eyebrow-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.75rem;
  border-radius: 99px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.pill-live {
  background: var(--accent-terra-light);
  color: var(--accent-terra);
  border: 1px solid rgba(192, 86, 56, 0.25);
}

.pill-mono {
  font-family: var(--font-mono);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.7rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-terra);
  box-shadow: 0 0 0 rgba(192, 86, 56, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(192, 86, 56, 0.6);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(192, 86, 56, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(192, 86, 56, 0);
  }
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 4.5rem;
  border-bottom: 1px solid var(--border-light);
  background: radial-gradient(circle at 85% 15%, rgba(235, 240, 247, 0.7) 0%, rgba(250, 248, 245, 0) 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.65rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-title em {
  color: var(--accent-navy);
  font-style: italic;
}

.hero-lead {
  font-size: 1.04rem;
  color: var(--text-secondary);
  max-width: 64ch;
  margin-bottom: 1.85rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.78rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent-navy);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #122644;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--accent-navy);
  color: var(--accent-navy);
}

.btn-terra-outline {
  background: var(--accent-terra-light);
  color: var(--accent-terra);
  border-color: rgba(192, 86, 56, 0.35);
}

.btn-terra-outline:hover {
  background: var(--accent-terra);
  color: #FFFFFF;
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.meta-value {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Hero Visual Frame */
.visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #EBF0F7 0%, #F5EFE6 100%);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.visual-frame:hover .hero-img {
  transform: scale(1.02);
}

.visual-overlay-card {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  padding: 1.3rem 1.45rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-md);
}

.overlay-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-terra);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.visual-overlay-card blockquote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.overlay-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Section Headers */
.section-header {
  max-width: 820px;
  margin-bottom: 3rem;
}

.section-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-terra);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.95rem, 3.1vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
}

/* Axes Grid */
.axes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.axis-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.axis-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-navy);
  background: var(--accent-navy-light);
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.axis-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.axis-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.clean-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.clean-list li {
  position: relative;
  padding-left: 1.1rem;
}

.clean-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-terra);
  font-weight: bold;
}

.callout-mini {
  background: var(--accent-amber-light);
  border-left: 3px solid var(--accent-amber);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.86rem;
  color: var(--text-primary);
}

.axis-note {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-light);
  font-size: 0.82rem !important;
}

/* Governance 4-Tier Interactive Showcase */
.governance-showcase {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.75rem;
}

.sub-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-navy);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.governance-left h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 0.45rem;
}

.muted-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.tier-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.tier-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  text-align: left;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.tier-btn:hover {
  border-color: var(--accent-navy);
  transform: translateX(3px);
}

.tier-btn.active {
  background: var(--accent-navy);
  border-color: var(--accent-navy);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.tier-level {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  background: rgba(27, 54, 93, 0.1);
  color: var(--accent-navy);
  white-space: nowrap;
}

.tier-btn.active .tier-level {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}

.tier-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tier-info strong {
  font-size: 0.94rem;
}

.tier-info span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.tier-btn.active .tier-info span {
  color: rgba(255, 255, 255, 0.82);
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.tier-badge.warning {
  background: var(--accent-terra-light);
  color: var(--accent-terra);
  font-weight: 600;
}

.tier-btn.active .tier-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.governance-right {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  justify-content: space-between;
}

.tier-detail-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  flex: 1;
}

.tier-detail-header h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0.5rem 0 0.75rem;
}

.tier-detail-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
}

.tier-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}

.tier-meta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tier-meta-box strong {
  font-size: 0.83rem;
  color: var(--text-primary);
}

.tier-alert {
  background: var(--accent-terra-light);
  border-left: 3px solid var(--accent-terra);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.84rem;
  color: var(--text-primary);
}

.governance-visual-mini {
  height: 135px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.governance-visual-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Clinical Table */
.matrix-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.matrix-header {
  padding: 1.2rem 1.65rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.matrix-header h4 {
  font-size: 1.02rem;
  font-weight: 700;
}

.table-responsive {
  overflow-x: auto;
}

.clinical-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.clinical-table th {
  background: var(--bg-primary);
  padding: 0.9rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.clinical-table td {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.clinical-table tr:last-child td {
  border-bottom: none;
}

.status-chip {
  display: inline-block;
  padding: 0.22rem 0.65rem;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 600;
}

.chip-amber {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
}

.chip-terra {
  background: var(--accent-terra-light);
  color: var(--accent-terra);
}

/* Section 2: Simulators (Component A & Explorer 02) */
.simulators-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.85rem;
  margin-bottom: 2.5rem;
}

.sim-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sim-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.btn-text-action {
  background: none;
  border: 1px solid var(--border-strong);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-text-action:hover {
  border-color: var(--accent-navy);
  color: var(--accent-navy);
}

.sim-header h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  margin: 0.4rem 0 0.35rem;
}

.sim-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Component A: 6 Accordions for Instrumento 2 (DUA) */
.dua-accordion-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dua-acc-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  overflow: hidden;
}

.dua-acc-item.critical-group {
  border-left: 3px solid var(--accent-navy);
}

.dua-acc-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s ease;
}

.dua-acc-header:hover {
  background: rgba(27, 54, 93, 0.04);
}

.dua-acc-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
}

.dua-group-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: var(--accent-navy-light);
  color: var(--accent-navy);
  white-space: nowrap;
}

.dua-group-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dua-acc-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dua-count-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.dua-count-pill.all-checked {
  background: var(--accent-sage-light);
  color: var(--accent-sage);
}

.dua-acc-body {
  display: none;
  padding: 0.25rem 1rem 0.9rem;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.dua-acc-item.open .dua-acc-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.75rem;
}

.dua-q-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1.45;
}

.dua-q-label input {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--accent-navy);
  flex-shrink: 0;
}

.sim-result {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}

.sim-result.status-pass {
  background: var(--accent-sage-light);
  border-color: rgba(42, 107, 83, 0.4);
}

.sim-result.status-warn {
  background: var(--accent-amber-light);
  border-color: rgba(184, 115, 20, 0.4);
}

.sim-result.status-block {
  background: var(--accent-crimson-light);
  border-color: rgba(168, 32, 32, 0.4);
}

.res-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
  display: block;
}

.status-pass .res-badge {
  color: var(--accent-sage);
}

.status-warn .res-badge {
  color: var(--accent-amber);
}

.status-block .res-badge {
  color: var(--accent-crimson);
}

.sim-result h4 {
  font-size: 0.96rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.sim-result p {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

/* Cycle Tabs & Parental Authorization Badge */
.cycle-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  background: var(--bg-primary);
  padding: 0.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.cycle-tab {
  padding: 0.55rem 0.4rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cycle-tab.active {
  background: var(--accent-navy);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.cycle-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.cycle-panel h4 {
  font-size: 1.04rem;
  color: var(--accent-navy);
  margin-bottom: 0.4rem;
}

.cycle-panel p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
}

.parental-badge-box {
  background: var(--accent-navy-light);
  border-left: 3px solid var(--accent-navy);
  padding: 0.65rem 0.85rem;
  border-radius: 0 6px 6px 0;
  font-size: 0.81rem;
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}

.cycle-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.spec-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.spec-box strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

/* Separated Dual Instruments Footer (Inst 1 vs Inst 3) */
.dual-instruments-box {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.tl-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--accent-navy);
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.tl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.tl-item {
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-primary);
  font-size: 0.75rem;
}

.tl-item strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text-primary);
}

.tl-item p {
  color: var(--text-secondary);
  line-height: 1.35;
}

.tl-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 0.3rem;
}

.tl-red .tl-dot {
  background: var(--accent-crimson);
}

.tl-amber .tl-dot {
  background: var(--accent-amber);
}

.tl-green .tl-dot {
  background: var(--accent-sage);
}

.tl-tag-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--accent-navy);
  background: var(--accent-navy-light);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
}

/* COMPONENTE B: Workbench Instrumento 3 + Instrumento 4 */
.inst34-workbench {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.workbench-header h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  margin: 0.4rem 0;
}

.workbench-header p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 78ch;
  margin-bottom: 1.75rem;
}

.workbench-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.workbench-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.field-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.radio-card-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.radio-card {
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: all 0.18s ease;
}

.radio-card input {
  display: none;
}

.radio-card.active {
  background: var(--accent-navy);
  border-color: var(--accent-navy);
  color: #FFFFFF;
}

.rc-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.rc-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.radio-card.active .rc-sub {
  color: rgba(255, 255, 255, 0.8);
}

.clean-input,
.clean-textarea,
.clean-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  color: var(--text-primary);
  transition: border-color 0.15s ease;
}

.clean-input:disabled {
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: not-allowed;
}

.clean-input:focus,
.clean-textarea:focus,
.clean-select:focus {
  outline: none;
  border-color: var(--accent-navy);
}

.evidences-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.ev-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
}

.ev-check input {
  accent-color: var(--accent-navy);
}

.workbench-preview {
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.preview-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.preview-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
}

.preview-status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 99px;
  background: var(--accent-navy-light);
  color: var(--accent-navy);
}

.preview-status.with-inst4 {
  background: var(--accent-sage-light);
  color: var(--accent-sage);
}

.gen-output {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--text-primary);
  white-space: pre-wrap;
  max-height: 410px;
  overflow-y: auto;
}

.workbench-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* SECTION 3: COMPONENTE C — Auditoria Institucional (Instrumento 5) */
.audit-stage-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.stage-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-navy);
  background: var(--accent-navy-light);
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.4rem;
}

.stage-header h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

.stage-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 75ch;
}

.stage-summary-badge,
.stage-score-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
  background: var(--accent-sage-light);
  color: var(--accent-sage);
  white-space: nowrap;
}

.stage-summary-badge.has-alerts {
  background: var(--accent-crimson-light);
  color: var(--accent-crimson);
}

.triage-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.triage-row {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: all 0.2s ease;
}

.triage-row.alert-active {
  border-color: rgba(168, 32, 32, 0.45);
  background: #FFF9F9;
}

.triage-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.triage-q-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.triage-toggle-group {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.triage-btn {
  border: none;
  background: transparent;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-secondary);
}

.triage-btn.active-no {
  background: var(--accent-sage);
  color: #FFFFFF;
}

.triage-btn.active-yes {
  background: var(--accent-crimson);
  color: #FFFFFF;
}

.triage-alert-box {
  display: none;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
}

.triage-row.alert-active .triage-alert-box {
  display: block;
}

.alert-red {
  background: var(--accent-crimson-light);
  color: var(--accent-crimson);
  border-left: 3px solid var(--accent-crimson);
}

.alert-orange {
  background: var(--accent-terra-light);
  color: var(--accent-terra);
  border-left: 3px solid var(--accent-terra);
}

.alert-amber {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
  border-left: 3px solid var(--accent-amber);
}

/* Stage 2: 9 Criteria Grid */
.criteria9-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.crit9-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: all 0.2s ease;
}

.crit9-card.checked {
  border-color: rgba(42, 107, 83, 0.5);
  background: var(--accent-sage-light);
}

.crit9-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.crit9-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-navy);
}

.crit9-card h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.crit9-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Stage 3: Decision Form & Printable Sheet */
.decision-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.decision-form-grid .full-span {
  grid-column: 1 / -1;
}

.decision-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.printable-record-sheet {
  background: var(--bg-primary);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  font-size: 0.85rem;
}

.prs-header {
  border-bottom: 2px solid var(--accent-navy);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.prs-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.prs-item.full {
  grid-column: 1 / -1;
}

.prs-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Section 4: Limitations & 5 Blind Spots */
.limitations-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  background: var(--accent-navy);
  color: #FFFFFF;
  padding: 1.85rem;
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
}

.lim-col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.lim-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #93B3E6;
  letter-spacing: 0.06em;
}

.lim-col h4 {
  font-size: 1.02rem;
  font-weight: 700;
}

.lim-col p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.84);
}

.critique-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.35rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.critique-legend {
  display: flex;
  gap: 1.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dot-norm {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-navy);
}

.dot-clinic {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-terra);
}

.btn-outline-sm {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.blindspots-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.blindspot-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.bs-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.35rem;
}

.bs-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent-terra);
  background: var(--accent-terra-light);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bs-title-group {
  flex: 1;
}

.bs-category {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.bs-title-group h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.severity-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 99px;
  white-space: nowrap;
}

.sev-high {
  background: var(--accent-terra-light);
  color: var(--accent-terra);
}

.sev-med {
  background: var(--accent-amber-light);
  color: var(--accent-amber);
}

.bs-comparison {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.15rem;
}

.blindspots-list.compact .bs-comparison {
  display: none;
}

.bs-box {
  padding: 1.25rem;
  border-radius: var(--radius-sm);
}

.bs-normative {
  background: var(--accent-navy-light);
  border-left: 3px solid var(--accent-navy);
}

.bs-clinical {
  background: var(--accent-terra-light);
  border-left: 3px solid var(--accent-terra);
}

.bs-box-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.bs-normative .bs-box-label {
  color: var(--accent-navy);
}

.bs-clinical .bs-box-label {
  color: var(--accent-terra);
}

.bs-box p {
  font-size: 0.89rem;
  color: var(--text-primary);
}

/* Section 5: Practical Fronts + Component D (Incidents Sec 8 & Actor Responsibilities Sec 9) */
.practical-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.practical-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
}

.prac-step {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-sage);
  background: var(--accent-sage-light);
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.prac-header h3 {
  font-size: 1.18rem;
  margin-bottom: 0.55rem;
}

.prac-lead {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-light);
}

.action-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.action-checklist li {
  position: relative;
  padding-left: 1.4rem;
}

.action-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-sage);
  font-weight: 700;
}

.action-checklist code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--bg-tinted);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--accent-navy);
}

/* Component D Grid */
.comp-d-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.85rem;
}

.incident-protocol-card,
.responsibilities-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.incident-header h3,
.resp-header h3 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  margin: 0.4rem 0;
}

.incident-header p,
.resp-header p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.prohibition-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--accent-crimson-light);
  border: 2px solid var(--accent-crimson);
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-sm);
  color: var(--accent-crimson);
}

.prohib-icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.prohib-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.prohib-content strong {
  font-size: 0.9rem;
  line-height: 1.45;
  display: block;
}

.incident-steps {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.inc-step {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
}

.inc-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--accent-terra-light);
  color: var(--accent-terra);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.inc-step strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.inc-step p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Actor Tabs (Sec 9.1 and 9.2) */
.actor-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  background: var(--bg-primary);
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.actor-tab {
  border: none;
  background: transparent;
  padding: 0.55rem 0.5rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.actor-tab.active {
  background: var(--accent-navy);
  color: #FFFFFF;
}

.actor-panel {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  flex: 1;
}

.actor-panel h4 {
  font-size: 1.05rem;
  color: var(--accent-navy);
  margin-bottom: 0.35rem;
}

.actor-panel .actor-ref {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.85rem;
}

/* Timeline */
.timeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.tl-node {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

.tl-node.active-node {
  border-top-color: var(--accent-terra);
  background: var(--accent-terra-light);
}

.tl-node.future-node {
  border-top-color: var(--accent-navy);
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-navy);
  display: block;
  margin-bottom: 0.4rem;
}

.tl-node.active-node .tl-date {
  color: var(--accent-terra);
}

.tl-node h4 {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.tl-node p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

/* Footer & Legal Disclaimer */
.site-footer {
  padding: 3.5rem 0;
  background: var(--bg-tinted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-strong);
}

.footer-brand {
  max-width: 680px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.footer-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-brand p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.footer-ext-link {
  color: var(--accent-navy);
  font-weight: 600;
  text-decoration: underline;
  word-break: break-all;
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 460px;
}

.legal-disclaimer-box {
  margin-top: 1.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-navy);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
}

.ld-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-navy);
  margin-bottom: 0.5rem;
}

.legal-disclaimer-box p {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 0.45rem;
}

.legal-disclaimer-box p:last-child {
  margin-bottom: 0;
}

/* Print Styles for Instrumento 5 Institutional Decision Record */
@media print {
  body * {
    visibility: hidden;
  }

  #printableRecordSheet,
  #printableRecordSheet * {
    visibility: visible;
  }

  #printableRecordSheet {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: 1px solid #000;
    background: #FFF;
    padding: 2rem;
  }
}

/* Responsive Adjustments */
@media (max-width: 1120px) {

  .hero-grid,
  .governance-showcase,
  .simulators-grid,
  .workbench-grid,
  .comp-d-grid {
    grid-template-columns: 1fr;
  }

  .axes-grid,
  .practical-grid,
  .limitations-banner,
  .criteria9-grid {
    grid-template-columns: 1fr;
  }

  .timeline-track {
    grid-template-columns: 1fr 1fr;
  }

  .bs-comparison {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
  }

  .meta-strip,
  .timeline-track,
  .tl-grid,
  .cycle-specs,
  .radio-card-group,
  .evidences-checkbox-grid,
  .decision-form-grid,
  .prs-grid {
    grid-template-columns: 1fr;
  }

  .cycle-tabs,
  .actor-tabs {
    grid-template-columns: 1fr 1fr;
  }
}