/* Operating Resilience Lab - extends platform + RMF theme */

.orl-page {
  --orl-card: #fff;
  --orl-border: var(--color-border);
  --orl-muted: var(--color-text-muted);
  --orl-ok: var(--color-accent);
  --orl-warn: #b45309;
  --orl-risk: #b91c1c;
  /* Match rmf .hero-container / .trust-bar rhythm so hero, intro, and tool stack share one column */
  --orl-page-column-max: 1100px;
  --orl-page-gutter: 2rem;
}

.orl-container {
  max-width: var(--orl-page-column-max);
  margin: 0 auto;
  padding: 0 var(--orl-page-gutter) var(--space-xxl);
  position: relative;
}

/* Skip link - hidden until Tab focus (no “floating” peek from translate hacks) */
.orl-skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

.orl-skip-link:focus,
.orl-skip-link:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10000;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.5rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border-radius: 8px;
  text-decoration: none;
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.2);
}

/* First-visit tip - orients users to value */
.orl-session-tip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.08), rgba(0, 168, 107, 0.06));
  border: 1px solid rgba(0, 82, 204, 0.2);
  border-radius: 10px;
}

.orl-session-tip[hidden] {
  display: none !important;
}

.orl-session-tip-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-primary);
}

.orl-session-tip-body {
  flex: 1;
  min-width: 0;
}

.orl-session-tip-heading {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.orl-session-tip-steps {
  margin: 0 0 0.5rem;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-primary);
}

.orl-session-tip-steps li {
  margin-bottom: 0.35rem;
}

.orl-session-tip-steps li:last-child {
  margin-bottom: 0;
}

.orl-session-tip-foot {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

.orl-session-kbd {
  display: inline-block;
  padding: 0.1em 0.35em;
  font-size: 0.8125em;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.2;
  vertical-align: 0.05em;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

.orl-session-tip-dismiss {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-text-secondary);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.orl-session-tip-dismiss:hover {
  background: #fff;
  color: var(--color-text-primary);
}

.orl-page.orl-mode-essentials .orl-depth-full {
  display: none !important;
}

.orl-intro-band + .orl-container {
  padding-top: var(--space-lg);
}

/* Intro band - below hero, above toolbar */
.orl-intro-band {
  border-bottom: 1px solid var(--orl-border);
  background: linear-gradient(180deg, rgba(0, 82, 204, 0.04) 0%, rgba(0, 168, 107, 0.03) 48%, var(--color-bg, #f8fafc) 100%);
  padding: clamp(2rem, 4vw, 3rem) var(--orl-page-gutter) clamp(2.25rem, 4.5vw, 3.25rem);
}

.orl-intro-inner {
  max-width: var(--orl-page-column-max);
  margin: 0 auto;
  padding: 0;
}

.orl-intro-header {
  max-width: 46rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.orl-intro-eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.orl-intro-heading {
  font-family: var(--font-serif, 'IBM Plex Serif', Georgia, serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin: 0 0 0.75rem;
}

.orl-intro-lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 40rem;
}

.orl-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  align-items: stretch;
}

@media (min-width: 900px) {
  .orl-intro-grid {
    gap: var(--space-lg);
  }
}

.orl-intro-card {
  background: var(--orl-card);
  border: 1px solid var(--orl-border);
  border-radius: 12px;
  padding: var(--space-md) var(--space-md) calc(var(--space-md) + 0.125rem);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.orl-intro-card:hover {
  border-color: rgba(0, 82, 204, 0.22);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.orl-intro-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: rgba(0, 82, 204, 0.08);
  margin-bottom: 0.85rem;
}

.orl-intro-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.orl-intro-card-text {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
}

.orl-intro-card-text a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.orl-intro-card-text a:hover {
  text-decoration: underline;
}

/* Stacked: full-width inputs row, full-width results below (each uses the whole column) */
.orl-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: var(--space-xl);
}

.orl-inputs,
.orl-results {
  min-width: 0;
}

.orl-inputs {
  --orl-control-bg: #fff;
  --orl-control-border: var(--orl-border);
  --orl-control-border-hover: #c9d1dc;
  --orl-control-shadow-focus: 0 0 0 3px rgba(0, 82, 204, 0.14);
}

.orl-panel {
  background: var(--orl-card);
  border: 1px solid var(--orl-border);
  border-radius: 12px;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.orl-inputs .orl-panel {
  border-left: 3px solid rgba(0, 82, 204, 0.28);
  padding-left: calc(var(--space-md) + 0.125rem);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.orl-inputs .orl-panel:hover {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.orl-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.orl-inputs .orl-panel-header {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border-light, #f0f0f0);
}

.orl-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;
}

.orl-inputs .orl-panel-title {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.orl-panel-hint {
  font-size: 0.8125rem;
  color: var(--orl-muted);
  margin: 0.25rem 0 0;
  max-width: 42rem;
}

.orl-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md) var(--space-md);
  align-items: stretch;
}

/* Label row + control row + hint/spacer row so inputs line up across columns */
.orl-field {
  display: grid;
  grid-template-rows: minmax(2.75rem, max-content) auto 1fr;
  gap: 0.375rem;
  align-content: start;
  min-width: 0;
}

.orl-field > label:not(.orl-check-label):not(.orl-label-spacer) {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
  line-height: 1.35;
  align-self: end;
  margin: 0;
}

.orl-field input,
.orl-field select {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.25;
  padding: 0.55rem 0.75rem;
  min-height: 2.75rem;
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--orl-control-border, var(--orl-border));
  border-radius: 8px;
  background: var(--orl-control-bg, #fff);
  color: var(--color-text-primary);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.orl-field input:hover,
.orl-field select:hover {
  border-color: var(--orl-control-border-hover, #c9d1dc);
}

.orl-field input:focus,
.orl-field select:focus {
  outline: none;
}

.orl-field input:focus-visible,
.orl-field select:focus-visible {
  outline: 2px solid rgba(0, 82, 204, 0.5);
  outline-offset: 2px;
  border-color: var(--color-primary);
  box-shadow: var(--orl-control-shadow-focus);
}

.orl-field select {
  cursor: pointer;
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.25L6 7.75l3.5-3.5' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-color: var(--orl-control-bg, #fff);
}

@supports not (selector(:focus-visible)) {
  .orl-field input:focus,
  .orl-field select:focus {
    outline: 2px solid rgba(0, 82, 204, 0.45);
    outline-offset: 2px;
    border-color: var(--color-primary);
    box-shadow: var(--orl-control-shadow-focus);
  }
}

.orl-field-full {
  grid-column: 1 / -1;
}

details.orl-advanced {
  border: 1px dashed var(--orl-border);
  border-radius: 10px;
  padding: var(--space-sm) var(--space-md);
  margin-top: var(--space-sm);
}

details.orl-advanced summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
  list-style: none;
  border-radius: 6px;
  padding: 0.2rem 0.35rem;
  margin: -0.2rem -0.35rem;
}

details.orl-advanced summary:focus {
  outline: none;
}

details.orl-advanced summary:focus-visible {
  outline: 2px solid rgba(0, 82, 204, 0.45);
  outline-offset: 2px;
}

details.orl-advanced summary::-webkit-details-marker {
  display: none;
}

.orl-results-sticky {
  position: relative;
}

.orl-headline {
  scroll-margin-top: 6rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text-primary);
  margin: 0 0 var(--space-md);
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.06), rgba(0, 168, 107, 0.05));
  border-radius: 12px;
  border: 1px solid var(--orl-border);
}

.orl-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.orl-report-tabrail-top {
  margin-bottom: var(--space-md);
}

.orl-tabrail-top-hint {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orl-muted);
  margin: 0 0 0.4rem;
}

.orl-report-tablist-top {
  margin-bottom: 0;
}

.orl-report-tabdock {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--orl-border);
}

.orl-tabdock-hint {
  font-size: 0.75rem;
  color: var(--orl-muted);
  margin: 0 0 0.55rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.orl-tabdock-hint-icon {
  display: inline-block;
  margin-right: 0.2rem;
  opacity: 0.55;
  font-weight: 400;
}

@media (min-width: 900px) {
  .orl-report-tabdock {
    position: sticky;
    bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
    z-index: 6;
    margin-top: var(--space-md);
    padding: 0.65rem 0.85rem 0.55rem;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--orl-border);
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.07);
  }

  .orl-tabdock-hint {
    margin-bottom: 0.45rem;
  }
}

.orl-report-tablist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem;
  background: var(--color-bg-gray);
  border-radius: 10px;
  border: 1px solid var(--orl-border);
}

.orl-report-tab {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.orl-report-tab:hover {
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.7);
}

.orl-report-tab.orl-report-tab-active {
  background: var(--orl-card);
  color: var(--color-primary);
  border-color: var(--orl-border);
  box-shadow: var(--shadow-sm);
}

.orl-tab-panels {
  min-width: 0;
}

.orl-tab-panel {
  animation: orl-tab-in 0.2s ease;
}

@keyframes orl-tab-in {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

.orl-subpanel-title {
  font-size: 0.8125rem;
  font-weight: 700;
  margin: 0.75rem 0 0.35rem;
  color: var(--color-text-primary);
}

.orl-tier-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--orl-border);
  background: var(--color-bg-gray);
  color: var(--color-text-secondary);
}

.orl-tier-low {
  background: rgba(0, 168, 107, 0.12);
  border-color: rgba(0, 168, 107, 0.35);
  color: #047857;
}

.orl-tier-mid {
  background: rgba(0, 82, 204, 0.1);
  border-color: rgba(0, 82, 204, 0.25);
  color: var(--color-primary-dark);
}

.orl-tier-high {
  background: rgba(180, 83, 9, 0.12);
  border-color: rgba(180, 83, 9, 0.35);
  color: #9a3412;
}

.orl-tier-severe {
  background: rgba(185, 28, 28, 0.1);
  border-color: rgba(185, 28, 28, 0.35);
  color: #991b1b;
}

.orl-overview-risk-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.orl-overview-risk-score {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.orl-overview-risk-score strong {
  color: var(--color-text-primary);
  font-family: 'IBM Plex Mono', monospace;
}

.orl-risk-meter-wide {
  height: 10px;
  margin-bottom: 0.75rem;
}

.orl-risk-breakdown-wide .orl-risk-break-row {
  grid-template-columns: 6.5rem 1fr 2.25rem;
  font-size: 0.75rem;
}

.orl-overview-atrisk {
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.04), rgba(100, 116, 139, 0.06));
}

.orl-driver-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.orl-driver-cards-compact {
  margin-top: 0.25rem;
}

.orl-driver-card {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--orl-border);
  background: var(--orl-card);
}

.orl-driver-card-rank {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.orl-driver-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.orl-driver-card-meta {
  font-size: 0.7rem;
  color: var(--orl-muted);
  margin-top: 0.2rem;
}

.orl-driver-card-blurb {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
  margin: 0.4rem 0 0;
}

.orl-risk-analytics-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.orl-risk-detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.orl-risk-detail-table th,
.orl-risk-detail-table td {
  padding: 0.5rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.orl-risk-detail-table th {
  font-weight: 700;
  color: var(--color-text-secondary);
  background: var(--color-bg-gray);
}

.orl-risk-detail-table .orl-risk-td-input {
  font-size: 0.68rem;
  color: var(--orl-muted);
  max-width: 14rem;
}

.orl-band-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.orl-band-low { background: rgba(0, 168, 107, 0.15); color: #047857; }
.orl-band-elevated { background: rgba(180, 83, 9, 0.15); color: #9a3412; }
.orl-band-high { background: rgba(185, 28, 28, 0.12); color: #991b1b; }

.orl-risk-interpret {
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 8px;
  border-left: 3px solid var(--orl-border);
  background: var(--color-bg-gray);
  font-size: 0.78rem;
  line-height: 1.45;
}

.orl-risk-interpret p {
  margin: 0.35rem 0 0;
  color: var(--color-text-secondary);
}

.orl-risk-interpret-input {
  font-size: 0.68rem !important;
  color: var(--orl-muted) !important;
}

.orl-cash-analytics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.orl-cash-analytics-list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border-light);
}

.orl-cash-analytics-list li:last-child {
  border-bottom: none;
}

.orl-table-wrap-tall {
  max-height: 320px;
}

.orl-risk-total-line {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin: 0.35rem 0 0.65rem;
}

.orl-risk-total-label {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--orl-muted);
  margin-right: 0.35rem;
}

.orl-risk-out-of {
  color: var(--orl-muted);
  font-weight: 500;
  margin-left: 0.15rem;
}

.orl-risk-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.orl-risk-break-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2rem;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: var(--color-text-secondary);
}

.orl-risk-break-name {
  font-weight: 600;
  color: var(--color-text-primary);
}

.orl-risk-break-track {
  height: 6px;
  background: var(--color-bg-gray);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--orl-border);
}

.orl-risk-break-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), #64748b);
  max-width: 100%;
}

.orl-risk-break-val {
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
}

.orl-rail-stat {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
  margin: 0 0 0.5rem;
}

.orl-rail-stat:last-child {
  margin-bottom: 0;
}

.orl-audit-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
}

.orl-audit-list li {
  padding: 0.45rem 0.5rem;
  margin-bottom: 0.35rem;
  border-radius: 8px;
  border-left: 3px solid var(--orl-border);
  background: var(--color-bg-gray);
}

.orl-audit-list li.orl-audit-ok {
  border-left-color: var(--orl-ok);
}

.orl-audit-list li.orl-audit-info {
  border-left-color: var(--color-primary);
}

.orl-audit-list li.orl-audit-caution {
  border-left-color: var(--orl-warn);
}

.orl-audit-list li.orl-audit-risk {
  border-left-color: var(--orl-risk);
  background: rgba(185, 28, 28, 0.06);
}

.orl-kpi {
  padding: var(--space-sm);
  background: var(--color-bg-gray);
  border-radius: 10px;
  border: 1px solid var(--orl-border);
  text-align: center;
}

.orl-kpi-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.2;
}

.orl-kpi-value.orl-ok { color: var(--orl-ok); }
.orl-kpi-value.orl-warn { color: var(--orl-warn); }
.orl-kpi-value.orl-risk { color: var(--orl-risk); }

.orl-kpi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orl-muted);
  margin-top: 0.25rem;
}

.orl-scenario-bars {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.orl-scenario-row {
  display: grid;
  grid-template-columns: 88px 1fr 52px;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8125rem;
}

.orl-scenario-track {
  height: 10px;
  background: var(--color-bg-gray);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--orl-border);
}

.orl-scenario-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), #2684ff);
  transition: width 0.35s ease;
}

.orl-scenario-fill.severe {
  background: linear-gradient(90deg, #b91c1c, #f87171);
}

.orl-scenario-fill.downside {
  background: linear-gradient(90deg, #b45309, #fbbf24);
}

.orl-spark {
  width: 100%;
  height: 72px;
  display: block;
  margin-bottom: var(--space-sm);
}

.orl-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--orl-border);
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
}

.orl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.orl-table th,
.orl-table td {
  padding: 0.45rem 0.65rem;
  text-align: right;
  border-bottom: 1px solid var(--color-border-light);
}

.orl-table th:first-child,
.orl-table td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: var(--orl-card);
  z-index: 1;
}

.orl-table th {
  font-weight: 600;
  color: var(--color-text-secondary);
  background: var(--color-bg-gray);
}

.orl-sensitivity {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  list-style: none;
  padding: 0;
  margin: 0;
}

.orl-sensitivity li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
}

.orl-sensitivity li.orl-sens-worst {
  background: rgba(185, 28, 28, 0.06);
  margin: 0 -0.35rem;
  padding: 0.4rem 0.35rem;
  border-radius: 8px;
  border-bottom-color: transparent;
}

.orl-assumption-health-panel {
  border-left: 3px solid rgba(0, 82, 204, 0.35);
}

.orl-tornado-host {
  margin-top: var(--space-md);
}

.orl-tornado-caption {
  font-size: 0.75rem;
  color: var(--orl-muted);
  margin: 0 0 0.65rem;
  line-height: 1.4;
}

.orl-tornado-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 2fr) 3.25rem;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin-bottom: 0.4rem;
  font-size: 0.75rem;
}

.orl-tornado-name {
  color: var(--color-text-secondary);
  line-height: 1.3;
}

.orl-tornado-track {
  height: 10px;
  background: var(--color-bg-gray);
  border-radius: 999px;
  border: 1px solid var(--orl-border);
  overflow: hidden;
}

.orl-tornado-bar {
  height: 100%;
  border-radius: 999px;
  background: #64748b;
  max-width: 100%;
  transition: width 0.35s ease;
}

.orl-tornado-bar-neg {
  background: linear-gradient(90deg, #b45309, #dc2626);
}

.orl-tornado-bar-pos {
  background: linear-gradient(90deg, var(--orl-ok), #0d9488);
}

.orl-tornado-val {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  text-align: right;
  color: var(--color-text-primary);
}

.orl-mc-controls,
.orl-opt-controls {
  margin-top: var(--space-sm);
}

.orl-field-action-row {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.375rem;
}

.orl-field-action-row .btn {
  align-self: stretch;
  min-height: 2.75rem;
  box-sizing: border-box;
}

.orl-label-spacer {
  visibility: hidden;
  min-height: 2.75rem;
  margin: 0;
  line-height: 1.35;
  font-size: 0.75rem;
}

.orl-field-check {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.375rem;
}

.orl-check-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  margin: 0;
  min-height: 2.75rem;
  box-sizing: border-box;
}

.orl-check-label input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-primary, #0052cc);
}

.orl-mc-host,
.orl-opt-host {
  margin-top: var(--space-md);
}

.orl-mc-running {
  font-size: 0.875rem;
  color: var(--orl-muted);
  margin: 0;
}

.orl-mc-results {
  margin-top: 0.25rem;
}

.orl-mc-summary-line {
  font-size: 0.875rem;
  margin: 0 0 var(--space-sm);
  line-height: 1.45;
}

.orl-mc-quantiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

@media (max-width: 520px) {
  .orl-mc-quantiles {
    grid-template-columns: 1fr;
  }
}

.orl-mc-q {
  background: var(--color-bg-gray, #f8fafc);
  border: 1px solid var(--orl-border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  text-align: center;
}

.orl-mc-q-mid {
  border-color: rgba(0, 82, 204, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 82, 204, 0.06);
}

.orl-mc-q-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orl-muted);
  margin-bottom: 0.2rem;
}

.orl-mc-q strong {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.orl-mc-q-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--orl-muted);
  margin-top: 0.15rem;
}

.orl-mc-mean {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin: 0 0 0.35rem;
}

.orl-mc-hist {
  width: 100%;
  max-width: 360px;
  height: auto;
  color: var(--color-primary, #0052cc);
  display: block;
  margin-bottom: 0.35rem;
}

.orl-mc-footnote {
  margin-top: 0.5rem !important;
}

.orl-opt-result {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.orl-opt-result.orl-opt-ok {
  color: var(--color-text-primary);
}

.orl-opt-result.orl-opt-bad {
  color: var(--orl-risk);
  font-weight: 600;
}

.orl-opt-list {
  margin: 0.65rem 0 0;
  padding-left: 1.2rem;
}

.orl-opt-list li {
  margin-bottom: 0.35rem;
}

.orl-toast-host {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  pointer-events: none;
  max-width: min(22rem, calc(100vw - 2rem));
}

.orl-toast {
  pointer-events: none;
  background: #1e293b;
  color: #f8fafc;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.orl-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.orl-toast-error {
  background: #7f1d1d;
}

.orl-talking-points-panel {
  background: linear-gradient(135deg, rgba(0, 168, 107, 0.05), rgba(0, 82, 204, 0.04));
}

.orl-talking-points-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-primary);
}

.orl-talking-points-list li {
  margin-bottom: 0.45rem;
}

.orl-talking-points-list li:last-child {
  margin-bottom: 0;
}

.orl-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin-top: 0.5rem;
}

.orl-compare-table th,
.orl-compare-table td {
  padding: 0.45rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
}

.orl-compare-table thead th {
  font-weight: 800;
  background: var(--color-bg-gray);
  color: var(--color-text-secondary);
}

.orl-compare-table tbody th[scope="row"] {
  font-weight: 600;
  color: var(--color-text-secondary);
  width: 11rem;
}

.orl-compare-more {
  font-size: 0.75rem;
  color: var(--orl-muted);
  font-style: italic;
}

.orl-memo {
  width: 100%;
  min-height: 200px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  padding: var(--space-sm);
  border: 1px solid var(--orl-border);
  border-radius: 10px;
  resize: vertical;
  background: #fafafa;
}

.orl-memo-actions {
  margin-top: var(--space-sm);
  display: flex;
  gap: var(--space-sm);
}

.orl-disclaimer {
  font-size: 0.75rem;
  color: var(--orl-muted);
  margin-top: var(--space-lg);
  line-height: 1.5;
}

.orl-cross-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: var(--space-md);
  font-size: 0.875rem;
}

.orl-cross-links-label {
  color: var(--orl-muted);
  font-weight: 500;
}

.orl-cross-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.orl-cross-link:hover {
  text-decoration: underline;
}

.orl-cross-links-sep {
  color: var(--color-border);
  font-size: 0.75rem;
}

.orl-badge-bind {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 82, 204, 0.12);
  color: var(--color-primary-dark);
  margin-left: 0.5rem;
  vertical-align: middle;
}

.orl-risk-meter {
  height: 8px;
  border-radius: 999px;
  background: var(--color-bg-gray);
  overflow: hidden;
  margin-top: 0.35rem;
}

.orl-risk-meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orl-ok), var(--orl-warn), var(--orl-risk));
  transition: width 0.4s ease;
}

/* Toolbar - Phase 0 */
.orl-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.orl-toolbar .btn {
  font-size: 0.875rem;
  min-height: 2.75rem;
  box-sizing: border-box;
}

@media (pointer: coarse) {
  .orl-toolbar .btn {
    min-height: 2.875rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .orl-seg-btn {
    min-height: 2.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.orl-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
}

.orl-toolbar-row-mode {
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--orl-border);
  margin-bottom: 0.15rem;
}

.orl-view-mode-label {
  font-size: 0.6875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--orl-muted);
}

.orl-view-mode {
  display: inline-flex;
  border-radius: 8px;
  border: 1px solid var(--orl-border);
  overflow: hidden;
  background: var(--color-bg-gray, #f5f5f5);
}

.orl-seg-btn {
  padding: 0.45rem 0.9rem;
  min-height: 2.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

.orl-seg-btn:hover {
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.6);
}

.orl-seg-btn.orl-seg-active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.orl-view-mode-hint {
  font-size: 0.75rem;
  color: var(--orl-muted);
  flex: 1 1 12rem;
  line-height: 1.35;
}

.orl-toolbar-row-secondary .btn {
  font-size: 0.8125rem;
}

.orl-toolbar-row-slots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 0.65rem;
  background: linear-gradient(135deg, rgba(0, 82, 204, 0.05), rgba(100, 116, 139, 0.06));
  border: 1px dashed var(--orl-border);
  border-radius: 10px;
}

.orl-slots-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-dark);
  margin-right: 0.15rem;
}

.orl-slots-hint {
  font-size: 0.68rem;
  color: var(--orl-muted);
  flex: 1 1 140px;
  min-width: 8rem;
}

.orl-toolbar-divider {
  width: 1px;
  height: 1.5rem;
  background: var(--orl-border);
  margin: 0 0.15rem;
}

.orl-preset-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}

.orl-preset-select {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.25;
  min-height: 2.75rem;
  padding: 0.45rem 2.25rem 0.45rem 0.75rem;
  border: 1px solid var(--orl-border);
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.25L6 7.75l3.5-3.5' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  color: var(--color-text-primary);
  min-width: 11rem;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.orl-preset-select:hover {
  border-color: #c9d1dc;
}

.orl-preset-select:focus {
  outline: none;
}

.orl-preset-select:focus-visible {
  outline: 2px solid rgba(0, 82, 204, 0.5);
  outline-offset: 2px;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.14);
}

/* Modal */
.orl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.orl-modal[hidden] {
  display: none !important;
  pointer-events: none;
}

.orl-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.orl-modal-content {
  position: relative;
  background: var(--color-white);
  border-radius: 12px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.orl-modal-content-wide {
  max-width: 640px;
}

.orl-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.5rem 0;
}

.orl-modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.orl-modal-close {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
  padding: 0.5rem;
  margin: -0.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.orl-modal-close:hover {
  color: var(--color-text-primary);
  background: var(--color-bg-gray);
}

.orl-modal-body {
  padding: 1rem 1.5rem 1.5rem;
}

.orl-modal-lead {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.orl-modal-section {
  margin: 1rem 0;
}

.orl-modal-section h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--color-text-primary);
}

.orl-modal-section p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0;
}

.orl-modal-disclaimer {
  font-size: 0.75rem;
  color: var(--orl-muted);
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--orl-border);
}

/* Print report - Phase 0 */
.orl-print-header {
  display: none;
}

@media print {
  .orl-no-print {
    display: none !important;
  }

  .orl-page {
    background: #fff !important;
  }

  .orl-container {
    max-width: 100%;
    padding: 0;
  }

  .orl-layout {
    display: block;
  }

  .orl-report-tabdock {
    display: none !important;
  }

  .orl-tab-panel {
    display: block !important;
    animation: none;
  }

  .orl-tab-panel[hidden] {
    display: block !important;
  }

  .orl-results-sticky {
    position: static !important;
  }

  .orl-print-header {
    display: block;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #1a1a1a;
  }

  .orl-print-brand {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.25rem;
    color: #666;
  }

  .orl-print-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
  }

  .orl-print-meta {
    font-size: 0.8125rem;
    color: #555;
    margin: 0;
  }

  .orl-headline,
  .orl-panel,
  .orl-kpi-row {
    break-inside: avoid;
  }

  .orl-table-wrap {
    max-height: none !important;
    overflow: visible !important;
  }

  .orl-memo {
    min-height: 12rem;
    background: #fff !important;
    border: 1px solid #ccc !important;
  }
}

/* Phase 1 - events, hints, glossary, waterfall */
.orl-micro-hint {
  font-size: 0.7rem;
  color: var(--orl-muted);
  line-height: 1.4;
  margin: 0.25rem 0 0;
  max-width: 22rem;
}

.orl-field > .orl-micro-hint {
  margin: 0;
  align-self: start;
}

.orl-glossary-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
}

.orl-hero-linkish {
  color: var(--color-primary);
  font-weight: 600;
  font-size: inherit;
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.orl-hero-linkish:hover {
  color: var(--color-primary-dark);
}

.orl-events-table {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: var(--space-sm);
}

.orl-events-head,
.orl-events-row {
  display: grid;
  grid-template-columns: 2.25rem 1fr 1.35fr 1fr;
  gap: var(--space-sm);
  align-items: center;
}

@media (max-width: 520px) {
  .orl-events-head,
  .orl-events-row {
    grid-template-columns: 1.75rem 1fr;
    grid-template-rows: auto auto;
  }

  .orl-events-head span:nth-child(3),
  .orl-events-head span:nth-child(4) {
    display: none;
  }

  .orl-ev-sel {
    grid-column: 2 / -1;
  }

  .orl-ev-inp:last-child {
    grid-column: 2 / -1;
  }
}

.orl-events-head {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-secondary);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--orl-border);
}

.orl-ev-n {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orl-muted);
}

.orl-ev-inp,
.orl-ev-sel {
  font-size: 0.8125rem;
  line-height: 1.25;
  min-height: 2.75rem;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--orl-border);
  border-radius: 8px;
  width: 100%;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.orl-ev-inp:hover,
.orl-ev-sel:hover {
  border-color: #c9d1dc;
}

.orl-ev-inp:focus,
.orl-ev-sel:focus {
  outline: none;
}

.orl-ev-inp:focus-visible,
.orl-ev-sel:focus-visible {
  outline: 2px solid rgba(0, 82, 204, 0.5);
  outline-offset: 2px;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.14);
}

.orl-ev-sel {
  appearance: none;
  cursor: pointer;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.25L6 7.75l3.5-3.5' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-color: #fff;
}

.orl-modal-glossary {
  max-width: min(640px, 96vw);
  max-height: 88vh;
}

.orl-glossary-body {
  max-height: calc(88vh - 5rem);
  overflow-y: auto;
}

.orl-glossary-item {
  margin: 1.1rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-light);
  scroll-margin-top: 0.75rem;
}

.orl-glossary-item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.orl-glossary-item p {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-secondary);
  margin: 0 0 0.35rem;
}

.orl-glossary-more {
  margin: 0.25rem 0 0 !important;
}

.orl-glossary-more a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.8125rem;
}

.orl-glossary-highlight {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 8px;
  transition: outline-color 0.3s ease;
}

.orl-waterfall-host {
  overflow-x: auto;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.orl-waterfall-footnote {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.orl-waterfall-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

/* Knowledge base - aligned with Strategy Scenarios / Ops Maturity pattern */
.orl-kb-anchor-row {
  margin: 1rem 0 0;
  text-align: center;
}

.orl-kb-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.orl-kb-link:hover {
  color: var(--color-primary);
}

.orl-knowledge-base {
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--color-border);
  scroll-margin-top: 5.5rem;
}

.orl-kb-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}

.orl-kb-intro {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 720px;
}

.orl-kb-article {
  margin-bottom: 1rem;
}

.orl-kb-article:last-child {
  margin-bottom: 0;
}

.orl-kb-details {
  background: var(--orl-card);
  border: 1px solid var(--orl-border);
  border-radius: 8px;
  padding: 0 1.25rem 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.orl-kb-details:hover {
  border-color: rgba(0, 82, 204, 0.3);
}

.orl-kb-details[open] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(0, 82, 204, 0.1);
}

.orl-kb-summary {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  padding: 1rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.orl-kb-summary::-webkit-details-marker {
  display: none;
}

.orl-kb-summary::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--color-primary);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.orl-kb-details[open] .orl-kb-summary::before {
  transform: rotate(180deg);
}

.orl-kb-takeaway {
  background: rgba(0, 82, 204, 0.06);
  border-left: 3px solid var(--color-primary);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
}

.orl-kb-details p,
.orl-kb-article p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.orl-kb-details p:last-of-type,
.orl-kb-article p:last-of-type {
  margin-bottom: 0;
}

.orl-kb-details ul,
.orl-kb-article ul {
  margin: 0.75rem 0 1rem 1.25rem;
  padding: 0;
}

.orl-kb-details li,
.orl-kb-article li {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.orl-kb-details a,
.orl-kb-article a {
  color: var(--color-primary);
  text-decoration: none;
}

.orl-kb-details a:hover,
.orl-kb-article a:hover {
  text-decoration: underline;
}
