/* Enhanced Quiz Question Component Styles */

/* Question Container Enhancements */
.question-container {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Quiz Layout Refresh */
.quiz-layout {
  min-width: 0;
  --quiz-primary: #1d4ed8;
  --quiz-teal: #0f766e;
  --quiz-amber: #f59e0b;
  --quiz-slate: #0f172a;
  --quiz-border: #e2e8f0;
  --quiz-soft-blue: #eff6ff;
  --quiz-soft-teal: #f0fdfa;
  --quiz-soft-amber: #fff7ed;
  --quiz-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  --review-support-rail-width: clamp(420px, 34vw, 540px);
  color: var(--quiz-slate);
}

.review-page {
  padding-bottom: 80px;
}

.review-page-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.25rem;
}

.rmt-review-subnav {
  background: #fff;
}

.rmt-review-subnav-inner {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0;
  flex-wrap: nowrap;
}

.rmt-review-tablist {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}

.rmt-review-tablist::-webkit-scrollbar {
  display: none;
}

.rmt-review-tablist .review-pill-tab {
  flex: 0 0 auto;
}

.rmt-app .rmt-listen-btn {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(13, 110, 253, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.92));
  color: #0b5ed7;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.42rem 0.82rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 1px 2px rgba(29, 78, 216, 0.12);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rmt-app .rmt-listen-btn:hover,
.rmt-app .rmt-listen-btn:focus-visible {
  border-color: rgba(13, 110, 253, 0.28);
  background: linear-gradient(180deg, rgba(219, 234, 254, 1), rgba(191, 219, 254, 0.96));
  color: #084298;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 18px rgba(29, 78, 216, 0.12);
  transform: translateY(-1px);
}

.rmt-app .rmt-listen-btn:disabled {
  opacity: 0.68;
  box-shadow: none;
  transform: none;
}

.rmt-app .rmt-listen-btn .rmt-listen-label {
  white-space: nowrap;
}

.rmt-app .rmt-listen-btn-subnav {
  margin-left: auto;
}

.rmt-app .rmt-overlay-listen-btn {
  box-shadow: none;
}


.rmt-app-brand {
  min-width: 0;
  max-width: min(52vw, 42rem);
}

.rmt-app-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.rmt-app-brand-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmt-app-brand-alias {
  min-width: 0;
  display: block;
  color: var(--rmt-muted, #6b7280);
  font-size: 0.77rem;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-page-guidance {
  max-width: 72ch;
}

.review-podcast-card-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.review-podcast-kicker {
  letter-spacing: 0.11em;
  color: #0f766e;
}

.review-podcast-provider {
  color: #1e3a8a;
}

.review-podcast-description {
  max-width: 68ch;
}

.review-podcast-audio {
  min-width: 0;
  display: block;
  border-radius: 8px;
}

.review-podcast-controls {
  padding: 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.review-podcast-control-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.review-podcast-control-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 5rem;
  min-height: 2.15rem;
  border: 1px solid rgba(15, 118, 110, 0.22);
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.review-podcast-control-button:hover,
.review-podcast-control-button:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  background: #ecfdf5;
  color: #0f172a;
}

.review-podcast-rate-label {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  margin: 0;
}

.review-podcast-rate-label .form-select {
  width: 4.75rem;
  min-height: 2.15rem;
  border: 0;
  background-color: transparent;
  box-shadow: none;
}

.review-podcast-modal-content {
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.review-podcast-modal-header {
  align-items: flex-start;
  border-bottom: 1px solid rgba(15, 118, 110, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #ecfeff 100%);
  padding: 1.1rem 1.25rem;
}

.review-podcast-title-block {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.review-podcast-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem 1.2rem;
}

.review-podcast-player-surface {
  padding: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 28px rgba(15, 23, 42, 0.08);
}

.review-podcast-autoplay-note {
  border: 1px solid rgba(71, 85, 105, 0.18);
  background: rgba(255, 255, 255, 0.86);
}

.review-podcast-error {
  border-color: rgba(180, 83, 9, 0.22);
  background: #fffbeb;
}

.review-podcast-loading {
  min-height: 1.25rem;
}

.review-support-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-support-main,
.review-support-rail {
  min-width: 0;
}

.review-workspace-header {
  margin-bottom: 1rem;
}

.review-workspace-header-with-aside {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.review-workspace-header-body {
  min-width: 0;
  max-width: 34rem;
}

.review-workspace-header-title {
  line-height: 1.2;
}

.review-workspace-header-copy {
  line-height: 1.55;
}

.review-workspace-header-aside {
  flex-shrink: 0;
}

.review-support-main {
  border: 1px solid rgba(226, 214, 187, 0.92);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(251, 248, 240, 0.92) 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
  padding: clamp(1rem, 1.6vw, 1.35rem);
}

.quiz-header-card {
  border: 1px solid var(--quiz-border);
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--quiz-soft-blue) 0%, var(--quiz-soft-teal) 55%, #ffffff 100%);
  box-shadow: var(--quiz-shadow);
}

.quiz-header-title {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.quiz-header-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: #e0f2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
}

.quiz-type-pill {
  background: linear-gradient(90deg, #e0f2fe 0%, #ede9fe 100%);
  color: var(--quiz-primary);
  border: 1px solid #bfdbfe;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.quiz-progress-bar {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  overflow: hidden;
}

.quiz-question-card {
  border: 1px solid var(--quiz-border);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--quiz-shadow);
  position: relative;
  overflow: hidden;
}

.quiz-question-card .card-footer {
  position: relative;
  z-index: 2;
}

.quiz-explanation-toggle {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.quiz-question-title {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--quiz-slate);
}

.quiz-question-stem {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
  overflow-wrap: anywhere;
}

.quiz-instructions {
  font-size: 0.9rem;
  color: #475569;
}

.quiz-choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.quiz-choice {
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--quiz-border);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  width: 100%;
}

.quiz-choice:hover:not(:disabled) {
  border-color: var(--quiz-primary);
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.18);
  transform: translateY(-1px);
}

.quiz-choice:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.quiz-choice-selected {
  border-color: var(--quiz-primary);
  background: var(--quiz-soft-blue);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.12);
}

.quiz-choice-correct {
  border-color: #16a34a;
  background: #ecfdf3;
}

.quiz-choice-incorrect {
  border-color: #dc2626;
  background: #fef2f2;
}

.quiz-choice-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.quiz-choice-badge {
  min-width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: #e0f2fe;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  flex-shrink: 0;
}

.quiz-choice-text {
  flex: 1;
  overflow-wrap: anywhere;
}

.quiz-choice-stack {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.quiz-choice-missed {
  border-color: #f59e0b;
  background: #fffbeb;
}

.quiz-choice-inline-rationale {
  margin-left: 2.75rem;
}

.quiz-inline-rationale-stack {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.quiz-inline-rationale {
  border: 1px solid var(--quiz-border);
  border-radius: 0.9rem;
  background: #ffffff;
  padding: 0.8rem 0.95rem;
}

.quiz-inline-rationale-compact {
  padding: 0.7rem 0.85rem;
}

.quiz-inline-rationale-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 0.3rem;
}

.quiz-inline-rationale-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

.quiz-inline-rationale-copy {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #334155;
  overflow-wrap: anywhere;
}

.quiz-inline-rationale-correct {
  border-color: rgba(22, 163, 74, 0.28);
  background: #f0fdf4;
}

.quiz-inline-rationale-incorrect {
  border-color: rgba(220, 38, 38, 0.22);
  background: #fef2f2;
}

.quiz-inline-rationale-missed {
  border-color: rgba(245, 158, 11, 0.28);
  background: #fffbeb;
}

.quiz-inline-rationale-neutral {
  border-color: rgba(148, 163, 184, 0.24);
  background: #f8fafc;
}

.quiz-table-question {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.quiz-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.quiz-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0.6rem;
}

.quiz-table-header-cell,
.quiz-table-cell,
.quiz-table-finding {
  border: 1px solid var(--quiz-border);
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  vertical-align: middle;
  background: #ffffff;
}

.quiz-table-header-cell {
  font-weight: 700;
  font-size: 0.9rem;
  color: #0f172a;
  text-align: center;
}

.quiz-table-header-finding,
.quiz-table-finding {
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  background: #f8fafc;
}

.quiz-table-cell {
  text-align: center;
  min-width: 120px;
}

.quiz-table-cell-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  margin: 0;
}

.quiz-table-col-0 {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.quiz-table-col-1 {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.quiz-table-col-2 {
  background: #fff7ed;
  border-color: #fed7aa;
}

.quiz-table-header-cell.quiz-table-col-0 {
  background: #dbeafe;
}

.quiz-table-header-cell.quiz-table-col-1 {
  background: #ccfbf1;
}

.quiz-table-header-cell.quiz-table-col-2 {
  background: #ffedd5;
}

.quiz-table-cell-selected {
  box-shadow: inset 0 0 0 2px var(--quiz-primary);
}

.quiz-table-cell-correct {
  box-shadow: inset 0 0 0 2px #16a34a;
}

.quiz-table-cell-incorrect {
  box-shadow: inset 0 0 0 2px #dc2626;
}

.quiz-table-row {
  border: none;
}

.quiz-table-cell {
  vertical-align: top;
}

.quiz-table-cell-review {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  text-align: left;
}

.quiz-table-cell-status-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.quiz-table-cell-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.quiz-table-cell-status-correct {
  background: #dcfce7;
  color: #166534;
}

.quiz-table-cell-status-missed {
  background: #fef3c7;
  color: #92400e;
}

.quiz-table-cell-status-incorrect {
  background: #fee2e2;
  color: #991b1b;
}

.quiz-table-cell-status-neutral {
  background: #e2e8f0;
  color: #334155;
}

.quiz-table-cell-rationale {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #334155;
  overflow-wrap: anywhere;
}

.quiz-highlighter {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-highlighter-card {
  border: 1px solid var(--quiz-border);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--quiz-shadow);
  padding: 1rem;
}

.quiz-highlighter-label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.5rem;
}

.quiz-highlighter-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #475569;
}

.quiz-highlighter-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.quiz-highlighter-legend-swatch {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.3rem;
  display: inline-block;
}

.quiz-highlighter-notes {
  margin: 0;
  line-height: 1.7;
  font-size: 0.95rem;
  color: #0f172a;
  white-space: pre-wrap;
}

.quiz-highlighter-token {
  background: none;
  border: none;
  padding: 0 0.14rem;
  margin: 0;
  font: inherit;
  color: inherit;
  border-radius: 0.3rem;
  cursor: pointer;
}

.quiz-highlighter-token:disabled {
  cursor: default;
}

.quiz-highlighter-token-selected {
  background: rgba(245, 158, 11, 0.16);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.4);
}

.quiz-highlighter-token-correct {
  color: #15803d;
  background: rgba(34, 197, 94, 0.12);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.4);
}

.quiz-highlighter-token-missed {
  color: #b45309;
  background: rgba(245, 158, 11, 0.18);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.45);
}

.quiz-highlighter-token-incorrect {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.45);
}

.quiz-highlighter-text {
  white-space: pre-wrap;
}

.quiz-highlighter-rationales {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1rem;
}

.review-stats-card {
  border: 1px solid #e5e7eb;
}

.review-stat {
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.review-stat-primary {
  background: #f5faff;
  border-color: #dbeafe;
}

.review-stat-warning {
  background: #fffaf0;
  border-color: #ffe5b4;
}

.review-stat-success {
  background: #f5fff6;
  border-color: #cdeecd;
}

/* ---- Pill tab navigation (review shell) ---- */
/* ---- Pill tab navigation (review shell) ---- */
.review-pill-tab {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  font-size: 0.82rem;
  color: #64748b;
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.review-pill-tab:hover {
  background: #f1f5f9;
  color: #334155;
}
.review-pill-tab i { font-size: 0.88rem; }
.review-pill-tab.active {
  background: var(--quiz-slate, #0f172a);
  color: #ffffff;
  border-color: var(--quiz-slate, #0f172a);
  font-weight: 700;
}
.review-pill-tab.active:hover { background: #1e293b; }
@media (max-width: 575px) {
  .review-page-actions {
    justify-content: flex-start;
  }

  .review-podcast-card-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-podcast-meta {
    align-items: flex-start;
  }

  .rmt-review-subnav-inner {
    flex-wrap: wrap;
  }

  .rmt-review-tablist {
    flex: 1 1 auto;
    overflow-x: visible;
    flex-wrap: wrap;
  }

  .review-pill-tab {
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
  }
  .review-pill-tab .tab-label-text { display: none; }
  .review-pill-tab i { font-size: 1rem; }
}

/* ---- Scenario (inline teal container) ---- */
.review-scenario-inline {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 0.625rem;
  padding: 0.875rem 1.125rem;
}
.review-scenario-label {
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0f766e;
}

/* ---- EHR manila folder tabs ---- */
.ehr-folder-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 0.25rem;
  position: relative;
  z-index: 2;
}
.ehr-folder-tab {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem 0.35rem;
  font-weight: 600;
  font-size: 0.78rem;
  color: #64748b;
  background: #eee9df;
  border: 1px solid #d5cfc4;
  border-bottom: none;
  border-radius: 0.6rem 0.6rem 0 0;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  margin-right: -1px;
  margin-bottom: -1px;
}
.ehr-folder-tab:hover { background: #f5f0e6; color: #334155; }
.ehr-folder-tab.active {
  background: #ffffff;
  color: var(--quiz-slate, #0f172a);
  border-color: #c9bda8;
  z-index: 3;
  font-weight: 700;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.04);
}
.ehr-folder-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: #ffffff;
}
.ehr-folder-body {
  background: #ffffff;
  border: 1px solid #c9bda8;
  border-radius: 0 0.6rem 0.6rem 0.6rem;
  padding: 1rem 1.25rem;
  position: relative;
  z-index: 1;
  line-height: 1.65;
}
.ehr-folder-body .table { font-size: 0.85rem; }
.ehr-folder-body .fw-semibold { font-size: 0.9rem; color: #1e293b; }

.review-section-panel {
  margin-top: 1rem;
}

.review-section {
  border: 1px solid var(--quiz-border);
  border-radius: 1rem;
  padding: 1.25rem;
  background: #ffffff;
  box-shadow: var(--quiz-shadow);
}

.review-clinical-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-study-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-study-layout .review-support-main {
  display: flex;
  flex-direction: column;
}

.review-careplan-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.review-clinical-header-card {
  padding: 1.25rem;
}

.review-study-card {
  border: 1px solid #dbe7ff;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  scroll-margin-top: 6.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.review-study-card.is-highlighted {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18), 0 16px 34px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.review-study-card .card-body {
  padding: 1rem;
}

.review-study-card ul {
  padding-left: 1rem;
}

.review-study-card li + li {
  margin-top: 0.45rem;
}

.review-careplan-header-card {
  padding: 1.25rem;
}

.review-clinical-scenario-card {
  margin: 0;
}

.review-clinical-summary-card .card-body {
  padding: 1rem;
}

.review-careplan-summary-card .card-body {
  padding: 1rem;
}

.review-clinical-card {
  border: 1px solid var(--quiz-border);
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.review-clinical-step {
  border: 1px solid var(--quiz-border);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  overflow: hidden;
}

/* ---- Collapsible step toggle ---- */
.clinical-step-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 1rem;
  font: inherit;
  color: inherit;
}
.clinical-step-toggle:hover {
  background: rgba(0, 0, 0, 0.015);
}
.clinical-step-body {
  padding: 0 1rem 1rem 1rem;
}
.review-clinical-answer-cue {
  border: 1px dashed #cbd5e1;
  border-radius: 0.85rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
}
.clinical-step-chevron {
  transition: transform 0.2s ease;
  color: #94a3b8;
  flex-shrink: 0;
}
.review-clinical-step.is-open .clinical-step-chevron {
  transform: rotate(180deg);
}

.clinical-step-takeaway {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}

.clinical-step-takeaway .bi-lightbulb-fill {
  color: #eab308;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.review-clinical-layout .review-clinical-step-badge {
  color: #1e293b;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* ---- Step number badge colors ---- */
.review-clinical-layout .step-badge-1 { background: #d9f4f0; }
.review-clinical-layout .step-badge-2 { background: #dbeafe; }
.review-clinical-layout .step-badge-3 { background: #fef3d6; }
.review-clinical-layout .step-badge-4 { background: #ece9fe; }
.review-clinical-layout .step-badge-5 { background: #dcfce7; }
.review-clinical-layout .step-badge-6 { background: #fce7f3; }

.step-badge-1 { background: #14b8a6; }
.step-badge-2 { background: #3b82f6; }
.step-badge-3 { background: #f59e0b; }
.step-badge-4 { background: #8b5cf6; }
.step-badge-5 { background: #22c55e; }
.step-badge-6 { background: #ec4899; }

/* ---- Phase rail timeline ---- */
.phase-rail {
  display: flex;
  gap: 0;
  margin-bottom: 0.75rem;
  position: relative;
}
.phase-rail:last-child {
  margin-bottom: 0;
}

.phase-gutter {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 44px;
  flex-shrink: 0;
  padding-top: 0;
}
.phase-letter {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.phase-bar {
  width: 3px;
  flex: 1;
  min-height: 12px;
  border-radius: 0 0 2px 2px;
  margin-top: 4px;
}
.phase-rail + .phase-rail .phase-gutter::before {
  content: '';
  display: block;
  width: 3px;
  height: 10px;
  background: #cbd5e1;
  border-radius: 2px;
  margin-bottom: 4px;
}

/* Phase colors */
.phase-assessment .phase-letter { background: #0f766e; }
.phase-assessment .phase-bar { background: linear-gradient(to bottom, #0f766e 0%, #ccfbf1 100%); }
.phase-diagnosis .phase-letter { background: #d97706; }
.phase-diagnosis .phase-bar { background: linear-gradient(to bottom, #d97706 0%, #fef3c7 100%); }
.phase-planning .phase-letter { background: #7c3aed; }
.phase-planning .phase-bar { background: linear-gradient(to bottom, #7c3aed 0%, #ede9fe 100%); }
.phase-implementation .phase-letter { background: #16a34a; }
.phase-implementation .phase-bar { background: linear-gradient(to bottom, #16a34a 0%, #dcfce7 100%); }
.phase-evaluation .phase-letter { background: #db2777; }
.phase-evaluation .phase-bar { background: linear-gradient(to bottom, #db2777 0%, #fce7f3 100%); }

.phase-content {
  flex: 1;
  min-width: 0;
  padding-left: 0.65rem;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding-top: 0.35rem;
}
.phase-header-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.phase-header-np {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.phase-assessment .phase-header-np { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }
.phase-diagnosis .phase-header-np { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.phase-planning .phase-header-np { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.phase-implementation .phase-header-np { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.phase-evaluation .phase-header-np { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }

.review-clinical-layout .phase-letter {
  color: #334155;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.review-clinical-layout .phase-assessment .phase-letter { background: #d9f4f0; }
.review-clinical-layout .phase-assessment .phase-bar { background: linear-gradient(to bottom, #99f6e4 0%, #f0fdfa 100%); }
.review-clinical-layout .phase-diagnosis .phase-letter { background: #fef3d6; }
.review-clinical-layout .phase-diagnosis .phase-bar { background: linear-gradient(to bottom, #fcd34d 0%, #fffbeb 100%); }
.review-clinical-layout .phase-planning .phase-letter { background: #ece9fe; }
.review-clinical-layout .phase-planning .phase-bar { background: linear-gradient(to bottom, #c4b5fd 0%, #f5f3ff 100%); }
.review-clinical-layout .phase-implementation .phase-letter { background: #dcfce7; }
.review-clinical-layout .phase-implementation .phase-bar { background: linear-gradient(to bottom, #86efac 0%, #f0fdf4 100%); }
.review-clinical-layout .phase-evaluation .phase-letter { background: #fce7f3; }
.review-clinical-layout .phase-evaluation .phase-bar { background: linear-gradient(to bottom, #f9a8d4 0%, #fdf2f8 100%); }

.review-clinical-layout .phase-assessment .phase-header-np { background: #f7fffd; color: #0f766e; border-color: #b5ece4; }
.review-clinical-layout .phase-diagnosis .phase-header-np { background: #fffdf5; color: #92400e; border-color: #f5ddb0; }
.review-clinical-layout .phase-planning .phase-header-np { background: #faf8ff; color: #6d28d9; border-color: #ddd4fb; }
.review-clinical-layout .phase-implementation .phase-header-np { background: #f7fdf9; color: #166534; border-color: #c9efd7; }
.review-clinical-layout .phase-evaluation .phase-header-np { background: #fff8fc; color: #be185d; border-color: #f5d4e6; }

.review-ehr-rail {
  min-width: 0;
}

.review-ehr-rail-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
  max-width: 34rem;
}

.review-ehr-rail-head .bi {
  font-size: 0.95rem;
}

.review-ehr-rail-title {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.35;
}

.review-ehr-rail-copy {
  max-width: 30rem;
  margin-bottom: 0.85rem;
  line-height: 1.55;
}

.review-careplan-phase-trigger-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.review-careplan-phase-trigger {
  appearance: none;
  background: transparent;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.review-careplan-phase-trigger:hover {
  filter: brightness(0.97);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.review-careplan-phase-trigger:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.35);
  outline-offset: 2px;
}

.review-careplan-phase-popover {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 25;
  width: max-content;
  max-width: min(22rem, calc(100vw - 3rem));
  padding: 0.8rem 0.95rem 0.9rem;
  border: 1px solid #e2e8f0;
  border-top-width: 3px;
  border-radius: 0.85rem;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
  color: #334155;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: normal;
}

.review-careplan-phase-popover.is-visible {
  display: block;
}

.review-careplan-phase-popover-arrow {
  position: absolute;
  top: -7px;
  left: 16px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  border-top: 1px solid #e2e8f0;
  transform: rotate(45deg);
}

.review-careplan-phase-popover-title {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.phase-assessment .review-careplan-phase-popover {
  border-top-color: #0f766e;
}

.phase-assessment .review-careplan-phase-popover-title {
  color: #0f766e;
}

.phase-diagnosis .review-careplan-phase-popover {
  border-top-color: #d97706;
}

.phase-diagnosis .review-careplan-phase-popover-title {
  color: #92400e;
}

.phase-planning .review-careplan-phase-popover {
  border-top-color: #7c3aed;
}

.phase-planning .review-careplan-phase-popover-title {
  color: #6d28d9;
}

.phase-implementation .review-careplan-phase-popover {
  border-top-color: #16a34a;
}

.phase-implementation .review-careplan-phase-popover-title {
  color: #166534;
}

.phase-evaluation .review-careplan-phase-popover {
  border-top-color: #db2777;
}

.phase-evaluation .review-careplan-phase-popover-title {
  color: #be185d;
}

/* ---- Clinical summary card ---- */
.clinical-summary-card {
  border: 1px solid #dbe7ff;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.careplan-summary-card {
  border: 1px solid #d1edd9;
  background: linear-gradient(135deg, #f7fdf9 0%, #edf7f0 100%);
}

/* ---- Care Plan: ADPIE layout ---- */
.careplan-content-area {
  padding: 0.75rem 0;
  line-height: 1.65;
}

.careplan-description-row,
.careplan-context-row {
  border-bottom: 1px solid #d1edd9;
  padding-bottom: 0.75rem;
}

.careplan-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
  white-space: nowrap;
}

/* Care plan section (collapsible accordion) */
.review-careplan-section {
  border: 1px solid var(--quiz-border, #e2e8f0);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  border-radius: 1rem;
  overflow: hidden;
}

.careplan-section-toggle {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 1rem;
  font: inherit;
  color: inherit;
}
.careplan-section-toggle:hover {
  background: rgba(0, 0, 0, 0.015);
}

.careplan-section-body {
  padding: 0 1rem 1rem 1rem;
}

.careplan-section-chevron {
  transition: transform 0.2s ease;
  color: #94a3b8;
  flex-shrink: 0;
}
.review-careplan-section.is-open .careplan-section-chevron {
  transform: rotate(180deg);
}

.review-careplan-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: currentColor;
  flex-shrink: 0;
  font-size: 0.82rem;
}

.careplan-step-takeaway {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}

.careplan-step-takeaway .bi-lightbulb-fill {
  color: #eab308;
  font-size: 0.82rem;
  flex-shrink: 0;
}

/* ADPIE section badge colors */
.section-badge-assessment { background: #f0fdfa; color: #0f766e; border-color: #99f6e4; }
.section-badge-diagnosis  { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.section-badge-planning   { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.section-badge-implementation { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.section-badge-evaluation { background: #fdf2f8; color: #be185d; border-color: #fbcfe8; }

/* Diagnosis items */
.diagnosis-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0;
}
.diagnosis-item + .diagnosis-item {
  border-top: 1px solid #f1f5f9;
}
.diagnosis-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.45rem;
}

/* SMART goal items */
.smart-goal-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fafbfc;
}
.smart-goal-item + .smart-goal-item {
  margin-top: 0.5rem;
}

.implementation-step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fafbfc;
}

.implementation-step-order {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Intervention items */
.intervention-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fafbfc;
}
.intervention-item + .intervention-item {
  margin-top: 0.5rem;
}
.intervention-rationale {
  background: #f8fafc;
  border-left: 3px solid #7c3aed;
  padding: 0.5rem 0.75rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin-top: 0.5rem;
}

.evaluation-outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fafbfc;
}

.careplan-ehr-column-head {
  color: #6b7280;
}

/* EHR cue badge (clickable, links diagnosis to chart data) */
.ehr-cue-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-right: 0.3rem;
  margin-bottom: 0.2rem;
}
.ehr-cue-badge:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.18);
  transform: translateY(-1px);
}
.ehr-cue-badge:active {
  transform: translateY(0);
}
.ehr-cue-badge .bi-box-arrow-up-right {
  font-size: 0.6rem;
  opacity: 0.65;
}

/* EHR panel flash highlight */
@keyframes ehrFlash {
  0% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(29, 78, 216, 0); }
}
.ehr-panel.flash {
  animation: ehrFlash 0.6s ease-out;
}

.review-strategy-details summary {
  cursor: pointer;
}

.review-strategy-summary-card {
  border: 1px solid #dbe7ff;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
}

.review-strategy-summary-kicker {
  letter-spacing: 0.08em;
}

.review-strategy-summary-count {
  white-space: nowrap;
}

.review-strategy-summary-fallback {
  border: 1px dashed #cbd5e1;
  border-radius: 0.9rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.review-strategy-summary-item {
  border: 1px solid var(--quiz-border);
  border-radius: 1rem;
  padding: 1rem;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.review-strategy-summary-list {
  padding-left: 1rem;
}

.review-strategy-summary-list li + li {
  margin-top: 0.45rem;
}

.review-strategy-summary-related {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.9rem;
}

.review-scenario-card {
  border: 1px solid #e8d5b0 !important;
  background: #fff7e6 !important;
  border-radius: 1rem !important;
}

.review-scenario-card .scenario-label {
  letter-spacing: 0.08em;
}

@media (max-width: 991.98px) {
  .review-clinical-layout {
    gap: 0.85rem;
  }

  .review-study-layout {
    gap: 0.85rem;
  }

  .review-careplan-layout {
    gap: 0.85rem;
  }

  .review-clinical-header-card,
  .review-careplan-header-card,
  .review-clinical-summary-card .card-body,
  .review-careplan-summary-card .card-body,
  .review-clinical-scenario-card .card-body {
    padding: 0.95rem;
  }

  .review-clinical-summary-card .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.85rem;
  }

  .review-careplan-summary-card .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.85rem;
  }

  .phase-gutter {
    width: 38px;
  }

  .phase-content {
    padding-left: 0.5rem;
  }

  .phase-rail {
    margin-bottom: 0.65rem;
  }

  .phase-letter {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 0.88rem;
  }

  .phase-header {
    flex-wrap: wrap;
    row-gap: 0.35rem;
    margin-bottom: 0.45rem;
  }

  .phase-header-title {
    font-size: 0.68rem;
  }

  .phase-header-np {
    font-size: 0.64rem;
  }

  .review-careplan-phase-popover {
    max-width: min(18rem, calc(100vw - 4rem));
  }

  .clinical-step-toggle {
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .clinical-step-body {
    padding: 0 0.85rem 0.85rem 0.85rem;
  }

  .review-clinical-answer-cue {
    padding: 0.55rem 0.65rem;
  }

  .review-workspace-header-body,
  .review-ehr-rail-head {
    max-width: none;
  }
}

.strategy-pills-section {
  border: 1px solid var(--quiz-border);
  border-radius: 1rem;
  padding: 0;
  background: #ffffff;
  box-shadow: var(--quiz-shadow);
  overflow: hidden;
}

.strategy-pills-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border: 0;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.strategy-pills-toggle:hover { background: #f1f5f9; }
.strategy-pills-toggle .toggle-chevron {
  transition: transform 0.2s ease;
  color: var(--quiz-primary, #1d4ed8);
  flex-shrink: 0;
  font-size: 1.1rem;
}
.strategy-pills-section.is-open .strategy-pills-toggle { background: transparent; }
.strategy-pills-section.is-open .toggle-chevron {
  transform: rotate(180deg);
}
.strategy-pills-body {
  padding: 0 1.25rem 1rem;
}

/* Show/Hide toggle labels (shared) */
.toggle-label {
  color: var(--quiz-primary, #1d4ed8);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.strategy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--quiz-border);
  background: #f8fafc;
  color: var(--quiz-slate);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.strategy-pill:hover,
.strategy-pill:focus-visible {
  background: var(--quiz-primary);
  color: #ffffff;
  border-color: var(--quiz-primary);
}

.strategy-pill i {
  font-size: 0.9rem;
}

.review-strategy-summary-toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.review-strategy-summary-item .theme-chevron {
  transition: transform 0.2s ease;
  color: #94a3b8;
  flex-shrink: 0;
}

.review-strategy-summary-item.is-open .theme-chevron {
  transform: rotate(180deg);
}

.review-strategy-summary-revisit {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
  text-align: left;
}

.review-strategy-summary-revisit .d-flex {
  justify-content: flex-end;
}

.review-strategy-summary-link {
  appearance: none;
  padding: 0.35rem 0.6rem;
  color: inherit;
  line-height: 1;
}

.review-strategy-summary-link:hover,
.review-strategy-summary-link:focus-visible {
  background: var(--quiz-primary) !important;
  color: #fff !important;
  border-color: var(--quiz-primary) !important;
}

/* ---- Study reference table inside strategy cards ---- */
.study-ref-table {
  width: 100%;
  font-size: 0.82rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--quiz-border);
  border-radius: 0.65rem;
  overflow: hidden;
}
.study-ref-table thead th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid var(--quiz-border);
}
.study-ref-table tbody td {
  padding: 0.5rem 0.65rem;
  color: var(--quiz-slate);
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}
.study-ref-table tbody tr:last-child td {
  border-bottom: none;
}
.study-ref-strategy-link {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--quiz-primary);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.study-ref-strategy-link:hover {
  text-decoration: underline;
}
.study-ref-strategy-example {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.study-ref-strategy-copy {
  color: #475569;
  line-height: 1.45;
}
.study-ref-strategy-points {
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 0.1rem;
  padding-left: 1rem;
}
.study-ref-strategy-points li + li {
  margin-top: 0.18rem;
}
.study-ref-strategy-points li::marker {
  color: #94a3b8;
}
.ehr-tab-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.ehr-tab-badge-button {
  appearance: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ehr-tab-badge-button:hover,
.ehr-tab-badge-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.ehr-tab-badge-button:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.35);
  outline-offset: 2px;
}
.ehr-tab-badge-vitals { background: #fef3c7; color: #92400e; }
.ehr-tab-badge-notes  { background: #dbeafe; color: #1e40af; }
.ehr-tab-badge-labs   { background: #d1fae5; color: #065f46; }
.ehr-tab-badge-meds   { background: #ede9fe; color: #5b21b6; }
.ehr-tab-badge-orders { background: #fce7f3; color: #9d174d; }

/* ---- How-to-use micro-guide ---- */
.strategy-how-to-use {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed #cbd5e1;
  font-size: 0.75rem;
  color: #475569;
}
.strategy-how-to-step {
  white-space: nowrap;
}
.strategy-how-to-arrow {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ---- Key takeaway (collapsed theme) ---- */
.strategy-key-takeaway {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #334155;
  line-height: 1.4;
}
.strategy-key-takeaway .bi-lightbulb-fill {
  color: #eab308;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.review-strategy-summary-message {
  margin-top: 0.75rem;
  line-height: 1.45;
}

/* ---- EHR click hint ---- */
.ehr-click-hint {
  color: #64748b;
  font-style: italic;
}

/* ---- Strategy modal case-specific callout ---- */
.strategy-modal-case-callout {
  border: 1px solid #bfdbfe;
  border-radius: 0.65rem;
  background: #eff6ff;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.85rem;
}
.strategy-modal-case-callout-header {
  font-weight: 700;
  font-size: 0.82rem;
  color: #1e40af;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.strategy-modal-case-callout-body {
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.5;
}
.strategy-modal-case-callout-evidence {
  margin-top: 0.35rem;
  padding-left: 1rem;
  font-size: 0.78rem;
  color: #475569;
}
.strategy-modal-case-callout-evidence li + li {
  margin-top: 0.2rem;
}

.study-guide-sidecar {
  border: 1px solid #e8d5b0;
  border-radius: 1rem;
  background: linear-gradient(180deg, #fff7e6 0%, #ffffff 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  padding: 1rem;
}

.study-guide-sidecar-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
}

.study-guide-lens-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.study-guide-lens-section {
  min-width: 0;
  height: 100%;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.74);
  padding: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.study-guide-lens-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.study-guide-lens-mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.study-guide-lens-mark-primary {
  background: #f0fdfa;
  color: #0f766e;
}

.study-guide-lens-mark-info {
  background: #eff6ff;
  color: #1d4ed8;
}

.study-guide-lens-mark-danger {
  background: #fef2f2;
  color: #b91c1c;
}

.study-guide-lens-mark-warning {
  background: #fff7ed;
  color: #b45309;
}

.study-guide-lens-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
}

.study-guide-lens-section-caption {
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.77rem;
  line-height: 1.45;
}

.study-guide-lens-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.study-guide-lens-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #334155;
  font-size: 0.84rem;
  line-height: 1.5;
}

.study-guide-lens-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  margin-top: 0.45rem;
  flex-shrink: 0;
}

.study-guide-lens-dot-info {
  background: #60a5fa;
}

.study-guide-lens-dot-danger {
  background: #f87171;
}

.study-guide-lens-dot-warning {
  background: #f59e0b;
}

.study-guide-focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.study-guide-focus-link {
  display: block;
  padding: 0.28rem 0 0.28rem 0.65rem;
  border-left: 2px solid rgba(29, 78, 216, 0.18);
  color: #1d4ed8;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.42;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.study-guide-focus-link:hover,
.study-guide-focus-link.is-active {
  border-left-color: #60a5fa;
  background: rgba(239, 246, 255, 0.52);
  color: #1e3a8a;
  text-decoration: none;
}

@media (min-width: 992px) {
  .study-guide-lens-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }
}

.study-guide-sidecar-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.study-guide-sidecar-stat {
  border: 1px solid #e8d5b0;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.8rem 0.9rem;
}

.study-guide-sidecar-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #92400e;
  line-height: 1;
}

.study-guide-sidecar-label {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #78716c;
}

.study-guide-sidecar-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.study-guide-sidecar-item {
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

.study-guide-sidecar-item:first-child {
  border-top: none;
  padding-top: 0;
}

.study-guide-sidecar-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
}

.study-guide-sidecar-item-copy {
  margin-top: 0.3rem;
  font-size: 0.83rem;
  line-height: 1.5;
  color: #475569;
}

.study-guide-support-panel {
  width: 100%;
  margin-bottom: 1rem;
}

.review-strategy-details summary::-webkit-details-marker {
  display: none;
}

.review-strategy-details summary::marker {
  content: "";
}

.ehr-panel-body {
  overflow: visible;
  padding-bottom: 1rem;
}

.ehr-panel {
  border: 1px solid var(--quiz-border);
  border-radius: 1rem;
  background: #fff7e6;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.ehr-panel .nav-tabs {
  border-bottom-color: var(--quiz-border);
}

.ehr-panel .nav-tabs .nav-link {
  color: #475569;
}

.ehr-panel .nav-tabs .nav-link.active {
  color: var(--quiz-primary);
  border-color: transparent transparent var(--quiz-primary) transparent;
}

.strategy-modal .modal-header {
  border-bottom-color: var(--quiz-border);
}

.strategy-modal .modal-body {
  padding: 1.25rem;
}

.strategy-modal .strategy-modal-meta {
  border-top: 1px solid var(--quiz-border);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

@media (max-width: 768px) {
  .review-page {
    padding-bottom: 120px;
  }
}

@media (min-width: 992px) {
  .study-guide-sidecar {
    position: sticky;
    top: 60px;
    align-self: start;
  }

  .study-guide-support-panel {
    position: static;
    top: auto;
    align-self: stretch;
  }

  .review-page-guidance {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-flip-inner {
    transition: none;
  }
}

.quiz-content-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quiz-panel {
  width: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.quiz-panel-question {
  min-height: 0;
}

.quiz-panel-question-body {
  min-height: 0;
}

.quiz-footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex: 1 1 26rem;
  min-width: 18rem;
  flex-wrap: wrap;
}

.quiz-footer-progress {
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.quiz-footer-score {
  display: flex;
  flex: 0 1 20rem;
  min-width: 14rem;
}

.quiz-footer-score .btn {
  width: 100%;
}

.quiz-ehr-sidecar {
  border: 1px solid #e8d5b0;
  border-radius: 1rem;
  background: #fff7e6;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 0.95rem 1rem 1rem;
}

.quiz-strategies-card {
  border: 1px solid #ead7aa;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fffdf7 0%, #fff7e6 100%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  padding: 1rem;
}

.quiz-strategies-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.7rem;
  background: #fff1bf;
  border: 1px solid #f5d98c;
  color: #b7791f;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quiz-strategies-title {
  color: var(--quiz-slate);
}

.quiz-coach-copy {
  color: #6b7280;
  font-size: 0.88rem;
  line-height: 1.5;
}

.quiz-coach-list {
  list-style: none;
  margin: 0.95rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.quiz-coach-point {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  border: 1px solid #ecd9ab;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #fffdf7 0%, #fffaf0 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: #475569;
  line-height: 1.55;
  padding: 0.95rem 1rem;
}

.quiz-coach-point-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 0.72rem;
}

.quiz-coach-label-stack {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  padding: 0.76rem 0.82rem;
  border-radius: 0.84rem;
  border: 1px solid rgba(233, 224, 202, 0.95);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.quiz-coach-label-line {
  display: grid;
  grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr);
  gap: 0.28rem 0.78rem;
  align-items: start;
  padding: 0.06rem 0 0.42rem 0.72rem;
  border-bottom: 1px solid #edf2f7;
}

.quiz-coach-label-line:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.quiz-coach-label-line-name {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.25;
}

.quiz-coach-label-line-copy {
  color: #526172;
  font-size: 0.79rem;
  line-height: 1.45;
  min-width: 0;
}

.quiz-coach-label-line-strategy {
  border-left: 3px solid rgba(29, 78, 216, 0.22);
}

.quiz-coach-label-line-strategy .quiz-coach-label-line-name {
  color: #1d4ed8;
}

.quiz-coach-label-line-process {
  border-left: 3px solid rgba(15, 118, 110, 0.22);
}

.quiz-coach-label-line-process .quiz-coach-label-line-name {
  color: #0f766e;
}

.quiz-coach-application {
  color: #334155;
  padding: 0.78rem 0.82rem;
  border-radius: 0.82rem;
  background: rgba(248, 250, 252, 0.9);
  border: 1px dashed #d7dee8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.quiz-coach-point-text {
  color: #334155;
}

.quiz-coach-result {
  padding: 0.78rem 0.82rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(14, 116, 144, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.quiz-coach-result-title {
  margin-bottom: 0.28rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f5f73;
}

.quiz-coach-result-copy {
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.5;
  margin: 0;
  padding-left: 1rem;
}

.quiz-coach-result-copy > li + li {
  margin-top: 0.45rem;
}

.quiz-coach-result-copy li {
  margin: 0;
}

.quiz-coach-result-line {
  color: #334155;
}

.quiz-coach-result-sublist {
  margin: 0.3rem 0 0;
  padding-left: 1rem;
}

.quiz-coach-result-sublist > li + li {
  margin-top: 0.24rem;
}

.quiz-coach-result-correct {
  border-color: rgba(22, 101, 52, 0.18);
  background: rgba(240, 253, 244, 0.88);
}

.quiz-coach-result-correct .quiz-coach-result-title {
  color: #166534;
}

.quiz-coach-result-partial {
  border-color: rgba(180, 83, 9, 0.22);
  background: rgba(255, 251, 235, 0.9);
}

.quiz-coach-result-partial .quiz-coach-result-title {
  color: #b45309;
}

.quiz-coach-result-incorrect {
  border-color: rgba(185, 28, 28, 0.18);
  background: rgba(254, 242, 242, 0.92);
}

.quiz-coach-result-incorrect .quiz-coach-result-title {
  color: #b91c1c;
}

@media (max-width: 575px) {
  .quiz-strategies-card {
    padding: 0.9rem;
  }

  .quiz-coach-point {
    padding: 0.85rem 0.9rem;
  }

  .quiz-coach-label-line {
    grid-template-columns: 1fr;
    gap: 0.18rem;
  }
}

@media (min-width: 992px) {
  .review-support-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--review-support-rail-width);
    align-items: start;
    gap: 1rem;
  }

  .review-support-layout > .review-support-main,
  .review-support-layout > .review-support-rail {
    width: auto;
    max-width: none;
    flex: none;
  }

  .review-support-layout.review-support-layout-single {
    grid-template-columns: minmax(0, 1fr);
  }

  .quiz-content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--review-support-rail-width);
    align-items: flex-start;
    gap: 1rem;
  }

  .quiz-content-layout > .quiz-panel {
    width: auto;
    flex: none;
  }

  .quiz-panel-ehr {
    min-width: 0;
  }

  .quiz-ehr-sidecar {
    position: sticky;
    top: 72px;
    align-self: start;
  }
}

@media (max-width: 575px) {
  .quiz-footer-center {
    flex-basis: 100%;
    order: 3;
    min-width: 0;
    justify-content: center;
    gap: 0.65rem;
  }

  .quiz-footer-progress {
    font-size: 0.84rem;
  }
}

/* Choice Card Hover Effects */
.choice-card {
  transition: all 0.2s ease-in-out;
  border: 1px solid #dee2e6 !important;
}

.choice-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  border-color: #0d6efd !important;
}

.choice-card.selected {
  border-color: #0d6efd !important;
  border-width: 2px !important;
  background-color: #f8f9ff !important;
}

/* Enhanced Form Controls */
.form-check-input {
  border-width: 2px;
  transition: all 0.15s ease-in-out;
}

.form-check-input:checked {
  border-color: #0d6efd;
  background-color: #0d6efd;
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Keyword Highlighting */
mark {
  background-color: #fff3cd !important;
  color: #664d03 !important;
  padding: 2px 4px !important;
  border-radius: 3px !important;
  font-weight: 600 !important;
}

/* Question Text Enhancements */
.question-text {
  line-height: 1.6;
  font-size: 1.1rem;
}

/* Answer Choice Typography */
.form-check-label {
  line-height: 1.5;
  cursor: pointer;
  transition: color 0.15s ease-in-out;
}

.form-check-label:hover {
  color: #0d6efd !important;
}

/* Badge Enhancements */
.badge {
  font-size: 0.85em;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .question-text {
    font-size: 1rem;
    padding: 1rem !important;
  }

  .choice-card {
    padding: 1rem !important;
  }

  .form-check-label {
    font-size: 1rem !important;
  }
}

/* Shadow Utilities */
.hover-shadow {
  transition: box-shadow 0.15s ease-in-out;
}

.hover-shadow:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Animation for transitions */
.transition {
  transition: all 0.2s ease-in-out;
}

/* Enhanced Progress Indicators */
.progress-bar {
  transition: width 0.6s ease;
}

/* Clinical Judgment Enhancements */
.clinical-step {
  transition: all 0.3s ease;
}

.clinical-step:hover {
  transform: translateY(-1px);
}

/* Strategy Selection Enhancements */
.strategy-card {
  transition: all 0.2s ease;
}

.strategy-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Clinical Judgment Header - Force visibility */
.clinical-judgment-header {
  color: #ffffff !important;
  font-weight: bold !important;
}

.clinical-judgment-subtitle {
  color: #e6e6e6 !important;
  opacity: 0.9 !important;
}

/* Ensure Clinical Judgment text is always visible */
.clinical-judgment-header span {
  color: #ffffff !important;
}

.clinical-judgment-header .small {
  color: #e6e6e6 !important;
}

/* Stepper Component Styles */
.stepper-container {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stepper-content {
  min-height: 300px;
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stepper-content .card {
  border: none;
  box-shadow: none;
}

.step-dots {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.step-dot {
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.step-dot:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.step-dot.active {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.step-dot:hover:not(:disabled) {
  transform: scale(1.05);
}

.stepper-controls {
  padding: 1rem 0;
  border-top: 1px solid #dee2e6;
  margin-top: 1rem;
}

/* Bowtie (NGN-style) drag/drop */
.bowtie-dropzone {
  min-height: 56px;
  border: 2px dashed #ced4da;
  border-radius: 1rem;
  background: #fff;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bowtie-dropzone-active {
  border-color: #0d6efd;
  background: #f8f9ff;
}

.bowtie-dropbucket {
  min-height: 56px;
  border-radius: 1.75rem !important;
  background: #fff !important;
  padding: 0.75rem;
  margin: 0;
  overflow: hidden;
  --bs-border-style: dashed;
  border-style: dashed !important;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: box-shadow 140ms ease, background-color 140ms ease;
}

.bowtie-dropbucket.border {
  --bs-border-style: dashed;
  border-style: dashed !important;
  border-width: 2px !important;
}

.bowtie-dropbucket-empty>.d-grid {
  min-height: 56px;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.bowtie-dropbucket-active {
  background: #fff;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.bowtie-dropbucket-placeholder {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.bowtie-placeholder {
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 600;
  text-align: center;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.bowtie-placeholder-action {
  color: #052c65;
}

.bowtie-placeholder-condition {
  color: #664d03;
}

.bowtie-placeholder-monitor {
  color: #0f5132;
}

.bowtie-instructions {
  font-size: 0.95rem;
  line-height: 1.4;
}

.bowtie-mobile-target-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bowtie-mobile-target-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bowtie-mobile-bank-section {
  width: 100%;
}

.bowtie-target-card {
  border: 1px solid var(--quiz-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.bowtie-target-layout-col {
  display: flex;
  flex-direction: column;
}

.bowtie-target-layout-col > * {
  width: 100%;
}

@media (min-width: 992px) {
  .bowtie-target-layout-col-center {
    justify-content: center;
  }

  .bowtie-target-layout-col-center > .bowtie-target-card {
    height: auto !important;
  }
}

.bowtie-target-slot-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bowtie-target-slot {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.bowtie-bank-section {
  border: 1px solid var(--quiz-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.bowtie-top-card .btn {
  line-height: 1.2;
}

.bowtie-collapsible {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  transition: max-height 220ms ease, opacity 220ms ease, padding-top 220ms ease;
}

.bowtie-collapsible.open {
  opacity: 1;
}

.bowtie-collapsible-inner {
  overflow: hidden;
}

.bowtie-collapsible-body.open {
  max-height: 900px;
  padding-top: 0.75rem;
}

.bowtie-collapsible-summary.open {
  max-height: 90px;
  padding-top: 0.5rem;
  line-height: 1.25;
}

@supports (grid-template-rows: 0fr) {
  .bowtie-collapsible {
    display: grid;
    grid-template-rows: 0fr;
    max-height: none;
    transition: grid-template-rows 220ms ease, opacity 220ms ease, padding-top 220ms ease;
  }

  .bowtie-collapsible.open {
    grid-template-rows: 1fr;
  }

  .bowtie-collapsible-body.open,
  .bowtie-collapsible-summary.open {
    max-height: none;
  }
}

.bowtie-summary-letter {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.bowtie-selected-card.bowtie-selected-card {
  --bs-border-style: solid;
  border-style: solid !important;
  padding-right: 0.75rem !important;
  padding-left: 0.75rem !important;
}

.bowtie-dropzone .bowtie-selected-card.bowtie-selected-card {
  background: transparent;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none;
  padding: 0 !important;
}

.bowtie-dropzone .bowtie-selected-card.bowtie-selected {
  background: transparent;
}

.bowtie-selected-card .bowtie-selected-content {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
}

.bowtie-selected-card-clickable {
  cursor: pointer;
}

.bowtie-selected {
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bowtie-selected-card-clickable:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.35);
  outline-offset: 2px;
}

.bowtie-option-card {
  cursor: grab;
  user-select: none;
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.bowtie-option-card:active {
  cursor: grabbing;
}

.bowtie-option-card-disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.bowtie-shared-bank {
  margin-top: 1rem;
}

.bowtie-shared-bank-panel {
  border: 1px solid var(--quiz-border);
}

.bowtie-shared-bank-grid {
  align-items: stretch;
}

.bowtie-bank-grid-col {
  display: flex;
}

.bowtie-bank-grid-col > * {
  width: 100%;
}

.bowtie-inline-rationale-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.bowtie-inline-rationale-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bowtie-inline-rationale-label {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  color: #334155;
}

@media (max-width: 767.98px) {
  .quiz-choice-content {
    flex-wrap: wrap;
  }

  .quiz-choice-inline-rationale {
    margin-left: 0;
  }

  .bowtie-dropzone {
    padding: 0.5rem;
    min-height: 52px;
  }

  .bowtie-dropbucket {
    padding: 0.5rem;
    min-height: 52px;
  }

  .bowtie-placeholder {
    font-size: 0.85rem;
  }

  .bowtie-instructions {
    font-size: 0.9rem;
  }

  .bowtie-selected,
  .bowtie-option-card {
    font-size: 0.9rem;
  }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .stepper-container {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .step-dots {
    gap: 0.5rem;
  }

  .step-dot {
    width: 35px !important;
    height: 35px !important;
    font-size: 0.7rem !important;
  }

  .stepper-controls {
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
  }

  .stepper-controls .text-center {
    order: -1;
    width: 100%;
  }
}

/* Key Strategies Card Scrollable Content */
.key-strategies-content {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.key-strategies-content::-webkit-scrollbar {
  width: 6px;
}

.key-strategies-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.key-strategies-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
  transition: background 0.2s ease-in-out;
}

.key-strategies-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Strategy Item Enhancements */
.strategy-item {
  transition: background-color 0.15s ease-in-out;
}

.strategy-item:hover {
  background-color: #f8f9fa;
  border-radius: 4px;
  margin: 0 -4px;
  padding: 0 4px;
}

/* Strategy Names Preview */
.strategy-names-preview {
  line-height: 1.2;
  word-spacing: 0.1em;
}

/* Clinical Judgment Fixed Bottom Navigation */
.clinical-judgment-bottom-nav {
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95) !important;
  transition: all 0.3s ease;
}

.clinical-judgment-bottom-nav:hover {
  background-color: rgba(255, 255, 255, 1) !important;
}

/* Step Indicator Menu */
.clinical-judgment-steps-menu .step-indicator {
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.clinical-judgment-steps-menu .step-indicator:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.clinical-judgment-steps-menu .step-indicator:active {
  transform: scale(0.95);
}

.clinical-judgment-steps-menu .step-indicator.btn-primary {
  animation: pulse-primary 2s infinite;
}

@keyframes pulse-primary {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(13, 110, 253, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
  }
}

.clinical-judgment-steps-menu .step-indicator.btn-outline-success {
  border-color: #198754;
  color: #198754;
}

.clinical-judgment-steps-menu .step-indicator.btn-outline-success:hover:not(:disabled) {
  background-color: #198754;
  color: white;
}

/* Mobile optimizations for Clinical Judgment navigation */
@media (max-width: 768px) {
  .clinical-judgment-bottom-nav {
    padding: 8px 0 !important;
  }

  .clinical-judgment-steps-menu .step-indicator {
    min-width: 40px !important;
    min-height: 40px !important;
    font-size: 0.7rem !important;
  }

  .clinical-judgment-steps-menu {
    margin-bottom: 1rem !important;
  }

  .clinical-judgment-steps-menu .d-flex {
    gap: 0.5rem !important;
  }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
  .clinical-judgment-steps-menu .step-indicator {
    min-width: 48px;
    min-height: 48px;
  }

  .clinical-judgment-bottom-nav .btn {
    min-height: 48px;
    font-size: 1rem;
  }
}

/* React /app marketing + browse/search UI (scoped) */
.rmt-app {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  --rmt-blue: #0d6efd;
  --rmt-indigo: #4f46e5;
  --rmt-teal: #14b8a6;
  --rmt-cyan: #06b6d4;
  --rmt-purple: #8b5cf6;
  --rmt-fuchsia: #d946ef;
  --rmt-pink: #ec4899;
  --rmt-orange: #f97316;
  --rmt-amber: #eab308;
  --rmt-green: #22c55e;
  --rmt-slate: #0f172a;
  --rmt-brand: #2d8659;
  --rmt-brand-light: #e6f4ed;
  --rmt-ink: #0a0a0a;
  --rmt-mid: #666666;
  --rmt-muted: #999999;
  --rmt-light: #e8e8e8;
  --rmt-off-white: #f7f7f5;
  --rmt-cream: #fdfcf9;
  min-height: 100vh;
  background: linear-gradient(180deg, #c9d4cb 0%, #d2dbd3 100%);
  overflow-x: hidden;
}

.rmt-app .rmt-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rmt-app .rmt-logo-mark i {
  font-size: 1.05rem;
  line-height: 1;
}

.rmt-app .rmt-anchor {
  scroll-margin-top: 96px;
}

.rmt-app .rmt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
}

.rmt-app .rmt-badge-green {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.22);
  color: #15803d;
}

.rmt-app .rmt-hero-panel {
  background: #1a4d35;
  color: #ffffff;
  position: relative;
  min-height: 560px;
}

.rmt-app .rmt-hero-panel::after {
  display: none;
}

.rmt-app .rmt-hero-panel>* {
  position: relative;
}

.rmt-app .rmt-hero-panel .rmt-editorial-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.rmt-app .rmt-hero-panel .rmt-editorial-heading {
  color: #ffffff;
}

.rmt-app .rmt-hero-visual-col {
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  min-height: 400px;
}

.rmt-app .rmt-hero-search {
  border: 1px solid var(--rmt-light);
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  max-width: 400px;
  border-radius: 16px;
}

.rmt-app .rmt-hero-search-form {
  width: 100%;
  max-width: 720px;
}

.rmt-app .rmt-hero-search-form .row>[class*="col-md-"] {
  flex: 0 0 100%;
  max-width: 100%;
}

.rmt-app .rmt-hero-search-form .btn-primary {
  width: 100%;
  background: var(--rmt-brand);
  border-color: var(--rmt-brand);
  border-radius: 8px;
  padding: 14px;
  font-weight: 700;
  font-size: 0.9rem;
}

.rmt-app .rmt-auth-card .form-control {
  min-height: 56px;
  border: 1.5px solid rgba(62, 108, 87, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 245, 0.95) 100%);
  padding: 0.95rem 1rem;
  color: var(--rmt-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.rmt-app .rmt-auth-card .form-control::placeholder {
  color: color-mix(in srgb, var(--rmt-muted) 88%, #ffffff 12%);
}

.rmt-app .rmt-auth-card .form-control:focus {
  border-color: var(--rmt-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(45, 134, 89, 0.11), 0 14px 30px rgba(52, 74, 64, 0.08);
}

.rmt-app .rmt-auth-card .btn-primary {
  min-height: 56px;
  border-radius: 14px;
  border-color: color-mix(in srgb, var(--rmt-brand) 84%, rgba(15, 23, 42, 0.14) 16%);
  background: linear-gradient(180deg, #57a079 0%, var(--rmt-brand) 100%);
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.rmt-app .rmt-auth-card .btn-primary:hover,
.rmt-app .rmt-auth-card .btn-primary:focus-visible {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 15px 30px rgba(52, 74, 64, 0.12);
}

.rmt-app .rmt-auth-card .btn-primary:disabled {
  background: linear-gradient(180deg, rgba(87, 160, 121, 0.8) 0%, rgba(45, 134, 89, 0.8) 100%);
  border-color: rgba(45, 134, 89, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px rgba(52, 74, 64, 0.08);
}

.rmt-app .rmt-unified-bar {
  display: flex;
  border: 2px solid var(--rmt-light);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.rmt-app .rmt-unified-bar:focus-within {
  border-color: var(--rmt-brand);
  box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.12);
}

.rmt-app .rmt-unified-bar .rmt-unified-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 14px 16px;
  font: inherit;
  font-size: 0.92rem;
  min-width: 0;
  background: transparent;
}

.rmt-app .rmt-unified-bar .rmt-unified-input::placeholder {
  color: var(--rmt-muted);
}

.rmt-app .rmt-unified-bar .bar-divider {
  width: 1px;
  background: var(--rmt-light);
  margin: 8px 0;
}

.rmt-app .rmt-unified-bar .rmt-unified-select {
  border: none;
  outline: none;
  padding: 14px 10px;
  font: inherit;
  font-size: 0.82rem;
  color: var(--rmt-mid);
  background: transparent;
  cursor: pointer;
  max-width: 160px;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 22px;
}

.rmt-app .rmt-cat-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--rmt-brand-light);
  border: 1px solid var(--rmt-light);
  border-radius: 10px;
}

.rmt-app .rmt-cat-list {
  margin-top: 8px;
  border: 1px solid var(--rmt-light);
  border-radius: 10px;
  overflow: hidden;
}

.rmt-app .rmt-cat-list .list-group-item {
  border-left: none;
  border-right: none;
}

.rmt-app .rmt-no-match {
  border: 1px solid var(--rmt-light);
  border-radius: 12px;
  padding: 16px;
  background: #ffffff;
}

.rmt-app .rmt-search-overlay {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  border: 1px solid var(--rmt-light);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
}

.rmt-app .rmt-overlay-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  background: var(--rmt-brand-light);
  border-bottom: 1px solid var(--rmt-light);
  position: sticky;
  top: 0;
}

.rmt-app .rmt-overlay-header-main {
  min-width: 0;
  flex: 1 1 auto;
  text-align: left;
}

.rmt-app .rmt-overlay-header-line {
  min-width: 0;
  text-align: left;
}

.rmt-app .rmt-overlay-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.rmt-app .rmt-overlay-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rmt-brand);
  margin-bottom: 2px;
}

.rmt-app .rmt-overlay-title {
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--rmt-ink);
}

.rmt-app .rmt-overlay-sub {
  margin-top: 4px;
  color: var(--rmt-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.rmt-app .rmt-overlay-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.rmt-app .rmt-overlay-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.76);
  color: var(--rmt-mid);
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1;
}

.rmt-app .rmt-overlay-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.32rem 0.56rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--rmt-mid);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

@media (min-width: 992px) {
  .rmt-app .rmt-overlay-header-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    white-space: nowrap;
  }

  .rmt-app .rmt-overlay-kicker {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .rmt-app .rmt-overlay-title {
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
  }

  .rmt-app .rmt-overlay-sub {
    margin-top: 0;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.rmt-app .rmt-overlay-row {
  padding: 10px 14px;
}

.rmt-app .rmt-overlay-result {
  width: 100%;
  border-top: 1px solid var(--rmt-light);
  background: transparent;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
}

.rmt-app .rmt-overlay-result:hover {
  background: rgba(45, 134, 89, 0.05);
}

.rmt-app .rmt-overlay-result-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.rmt-app .rmt-overlay-result-main {
  min-width: 0;
  flex: 1;
}

.rmt-app .rmt-overlay-result-title {
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rmt-ink);
}

.rmt-app .rmt-overlay-result-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.rmt-app .rmt-overlay-result-pin {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(107, 126, 115, 0.1);
  color: var(--rmt-muted);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

.rmt-app .rmt-overlay-result-fact {
  color: var(--rmt-mid);
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.3;
}

.rmt-app .rmt-overlay-result-fact + .rmt-overlay-result-fact::before {
  content: "\00b7";
  margin-right: 6px;
  color: rgba(107, 126, 115, 0.7);
}

.rmt-app .rmt-overlay-result-action {
  border: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  background: var(--rmt-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.rmt-app .rmt-overlay-result-action:hover,
.rmt-app .rmt-overlay-result-action:focus {
  filter: brightness(0.95);
}

.rmt-app .rmt-overlay-result-action-secondary {
  background: rgba(29, 78, 216, 0.1);
  color: #1d4ed8;
}

.rmt-app .rmt-overlay-result-actions .rmt-overlay-listen-btn {
  border-color: rgba(13, 110, 253, 0.18);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(219, 234, 254, 0.92));
  color: #0b5ed7;
}

.rmt-app .rmt-overlay-result-actions .rmt-overlay-listen-btn:hover,
.rmt-app .rmt-overlay-result-actions .rmt-overlay-listen-btn:focus-visible {
  border-color: rgba(13, 110, 253, 0.28);
  background: linear-gradient(180deg, rgba(219, 234, 254, 1), rgba(191, 219, 254, 0.96));
  color: #084298;
  filter: none;
}

.rmt-app .rmt-overlay-no-match {
  padding: 14px;
}

.rmt-app .rmt-generating {
  border: 1px solid var(--rmt-light);
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.rmt-app .rmt-generating .gen-steps {
  display: grid;
  gap: 8px;
}

.rmt-app .rmt-gen-step {
  border: 1px solid var(--rmt-light);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.rmt-app .rmt-gen-step.pending {
  background: #ffffff;
  color: var(--rmt-muted);
}

.rmt-app .rmt-gen-step.active {
  background: var(--rmt-brand-light);
  border-color: var(--rmt-brand);
  color: var(--rmt-ink);
}

.rmt-app .rmt-gen-step.done {
  background: var(--rmt-brand-light);
  border-color: var(--rmt-brand);
  color: var(--rmt-brand);
}

@media (max-width: 620px) {
  .rmt-app .rmt-unified-bar {
    flex-direction: column;
  }

  .rmt-app .rmt-unified-bar .bar-divider {
    width: 100%;
    height: 1px;
    margin: 0 8px;
  }

  .rmt-app .rmt-unified-bar .rmt-unified-select {
    max-width: none;
    width: 100%;
  }
}

.rmt-app .rmt-hero-search-caption {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rmt-app .rmt-tone-teal {
  --rmt-tone-bg: rgba(20, 184, 166, 0.16);
  --rmt-tone-border: rgba(20, 184, 166, 0.28);
  --rmt-tone-fg: #0f766e;
}

.rmt-app .rmt-tone-cyan {
  --rmt-tone-bg: rgba(6, 182, 212, 0.16);
  --rmt-tone-border: rgba(6, 182, 212, 0.28);
  --rmt-tone-fg: #0e7490;
}

.rmt-app .rmt-tone-blue {
  --rmt-tone-bg: rgba(13, 110, 253, 0.14);
  --rmt-tone-border: rgba(13, 110, 253, 0.26);
  --rmt-tone-fg: #0b5ed7;
}

.rmt-app .rmt-tone-indigo {
  --rmt-tone-bg: rgba(79, 70, 229, 0.14);
  --rmt-tone-border: rgba(79, 70, 229, 0.26);
  --rmt-tone-fg: #3730a3;
}

.rmt-app .rmt-tone-purple {
  --rmt-tone-bg: rgba(139, 92, 246, 0.14);
  --rmt-tone-border: rgba(139, 92, 246, 0.26);
  --rmt-tone-fg: #6d28d9;
}

.rmt-app .rmt-tone-fuchsia {
  --rmt-tone-bg: rgba(217, 70, 239, 0.14);
  --rmt-tone-border: rgba(217, 70, 239, 0.26);
  --rmt-tone-fg: #a21caf;
}

.rmt-app .rmt-tone-pink {
  --rmt-tone-bg: rgba(236, 72, 153, 0.14);
  --rmt-tone-border: rgba(236, 72, 153, 0.26);
  --rmt-tone-fg: #be185d;
}

.rmt-app .rmt-tone-orange {
  --rmt-tone-bg: rgba(249, 115, 22, 0.14);
  --rmt-tone-border: rgba(249, 115, 22, 0.26);
  --rmt-tone-fg: #c2410c;
}

.rmt-app .rmt-tone-amber {
  --rmt-tone-bg: rgba(234, 179, 8, 0.16);
  --rmt-tone-border: rgba(234, 179, 8, 0.28);
  --rmt-tone-fg: #92400e;
}

.rmt-app .rmt-tone-green {
  --rmt-tone-bg: rgba(34, 197, 94, 0.14);
  --rmt-tone-border: rgba(34, 197, 94, 0.26);
  --rmt-tone-fg: #15803d;
}

.rmt-app .rmt-tone-slate {
  --rmt-tone-bg: rgba(15, 23, 42, 0.08);
  --rmt-tone-border: rgba(15, 23, 42, 0.14);
  --rmt-tone-fg: #0f172a;
}

.rmt-app .rmt-icon-circle {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.10));
  background: var(--rmt-tone-bg, rgba(255, 255, 255, 0.85));
  color: var(--rmt-tone-fg, var(--rmt-slate));
  box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.08);
  font-weight: 700;
  line-height: 1;
}

.rmt-app .rmt-icon-circle i {
  font-size: 1.15rem;
  line-height: 1;
}

.rmt-app .rmt-mini-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rmt-app .rmt-mini-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08) !important;
}

.rmt-app .rmt-card-teal {
  border-top: 4px solid var(--rmt-teal);
}

.rmt-app .rmt-card-purple {
  border-top: 4px solid var(--rmt-purple);
}

.rmt-app .rmt-card-orange {
  border-top: 4px solid var(--rmt-orange);
}

.rmt-app .rmt-mini-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.10));
  background: var(--rmt-tone-bg, rgba(255, 255, 255, 0.75));
  color: var(--rmt-tone-fg, var(--rmt-slate));
}

.rmt-app .rmt-mini-icon i {
  font-size: 1.15rem;
  line-height: 1;
}

.rmt-app .rmt-step-badge {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--rmt-tone-border, rgba(13, 110, 253, 0.18));
  background: var(--rmt-tone-bg, rgba(13, 110, 253, 0.10));
  color: var(--rmt-tone-fg, #0b5ed7);
  font-weight: 700;
  line-height: 1;
}

.rmt-app .rmt-step-badge i {
  font-size: 1.05rem;
  line-height: 1;
}

.rmt-app .rmt-feature-icon,
.rmt-app .rmt-category-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.10));
  background: var(--rmt-tone-bg, rgba(255, 255, 255, 0.75));
  color: var(--rmt-tone-fg, var(--rmt-slate));
}

.rmt-app .rmt-feature-icon i,
.rmt-app .rmt-category-icon i {
  font-size: 1.2rem;
  line-height: 1;
}

.rmt-app .rmt-step-card,
.rmt-app .rmt-feature-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
}

.rmt-app .rmt-step-card:hover,
.rmt-app .rmt-feature-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08) !important;
}

.rmt-app .rmt-category-active {
  background: #ffffff;
  border-color: var(--rmt-brand);
  box-shadow: 0 0.5rem 1.25rem rgba(45, 134, 89, 0.12);
}

.rmt-app .rmt-faq .accordion-button {
  font-weight: 650;
}

.rmt-app .rmt-faq .accordion-button:not(.collapsed) {
  background-color: var(--rmt-brand-light);
  color: var(--rmt-brand);
}

.rmt-app .rmt-cta {
  background: var(--rmt-brand-light);
  border: 1px solid rgba(45, 134, 89, 0.15);
  padding: 76px 40px;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.rmt-app .rmt-cta .rmt-editorial-heading {
  font-size: 2.5rem;
}

.rmt-app .rmt-home-cta-block {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(3.4rem, 6vw, 4.6rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(133, 126, 91, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(247, 248, 239, 0.84) 100%);
  box-shadow: 0 18px 40px rgba(92, 86, 58, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.rmt-app .rmt-home-cta-block::before {
  content: "";
  display: block;
  width: clamp(88px, 12vw, 132px);
  height: 2px;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(45, 134, 89, 0.26), rgba(201, 145, 45, 0.28));
}

.rmt-app .rmt-home-cta-copy {
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--rmt-mid);
  font-size: 1.05rem;
  line-height: 1.75;
}

.rmt-app .rmt-app-header .container-fluid.container-lg,
.rmt-app .rmt-footer .container-fluid.container-lg {
  width: min(100%, calc(1480px + 48px));
  max-width: min(100%, calc(1480px + 48px));
}

.rmt-app .rmt-admin-shell {
  width: 100%;
}

.rmt-app .rmt-admin-shell>.container-fluid {
  max-width: none;
}

.rmt-app .rmt-admin-hero,
.rmt-app .rmt-admin-body,
.rmt-app .rmt-admin-content-card {
  width: 100%;
}

.rmt-app .rmt-admin-body {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 1.5rem;
}

.rmt-app .rmt-admin-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rmt-app .rmt-admin-nav-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.rmt-app .rmt-practice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: center;
}

.rmt-app .rmt-practice-copy {
  max-width: 42ch;
}

.rmt-app .rmt-practice-headline {
  font-family: "Playfair Display", "Manrope", "Roboto", serif;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  font-weight: 700;
  color: #0f172a;
}

.rmt-app .rmt-practice-subline {
  margin-top: 0.65rem;
  font-size: 1.05rem;
  color: rgba(15, 23, 42, 0.72);
}

.rmt-app .rmt-practice-media {
  position: relative;
}

.rmt-app .rmt-practice-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 0.75rem;
}

.rmt-app .rmt-practice-kicker-right {
  text-align: right;
}

.rmt-app .rmt-quiz-showcase {
  position: relative;
  min-height: 280px;
  border-radius: 20px;
}

.rmt-app .rmt-quiz-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: rmt-quiz-cycle 20s infinite;
}

.rmt-app .rmt-quiz-slide-1 {
  animation-delay: 0s;
}

.rmt-app .rmt-quiz-slide-2 {
  animation-delay: 5s;
}

.rmt-app .rmt-quiz-slide-3 {
  animation-delay: 10s;
}

.rmt-app .rmt-quiz-slide-4 {
  animation-delay: 15s;
}

.rmt-app .rmt-quiz-surface {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  height: 100%;
}

.rmt-app .rmt-quiz-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.rmt-app .rmt-quiz-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.15));
  background: var(--rmt-tone-bg, rgba(15, 23, 42, 0.06));
  color: var(--rmt-tone-fg, #0f172a);
  font-size: 0.78rem;
  font-weight: 700;
}

.rmt-app .rmt-quiz-bowtie {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}

.rmt-app .rmt-quiz-bowtie-column {
  display: grid;
  gap: 0.5rem;
}

.rmt-app .rmt-quiz-bowtie-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rmt-app .rmt-quiz-diamond {
  width: 120px;
  height: 120px;
  transform: rotate(45deg);
  border-radius: 18px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.15));
  background: var(--rmt-tone-bg, rgba(15, 23, 42, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
}

.rmt-app .rmt-quiz-diamond-text {
  transform: rotate(-45deg);
  font-weight: 700;
}

.rmt-app .rmt-quiz-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.15));
  background: var(--rmt-tone-bg, rgba(15, 23, 42, 0.06));
  color: var(--rmt-tone-fg, #0f172a);
  font-size: 0.85rem;
  font-weight: 600;
}

.quiz-dropdown {
  margin-bottom: 1rem;
}

.quiz-dropdown-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 1rem 1.25rem;
}

.quiz-dropdown-paragraph {
  margin: 0;
  line-height: 1.6;
  white-space: normal;
}

.quiz-dropdown-segment,
.quiz-dropdown-text,
.quiz-dropdown-status {
  display: inline;
}

.quiz-dropdown-select {
  display: inline-block !important;
  width: 14ch !important;
  min-width: 14ch !important;
  max-width: 14ch !important;
  margin: 0 0.25rem;
  vertical-align: baseline;
}

.quiz-dropdown-status {
  display: inline-block;
  margin-left: 0.35rem;
}

.quiz-dropdown-review-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quiz-dropdown-review-item {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1rem;
  background: #fff;
  padding: 1rem 1.1rem;
}

.quiz-dropdown-review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.quiz-dropdown-review-sentence {
  flex: 1 1 18rem;
  line-height: 1.6;
  color: #0f172a;
}

.quiz-dropdown-review-answer {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.14rem 0.7rem;
  margin: 0 0.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1.2;
}

.quiz-dropdown-review-answer.is-correct {
  background: #dcfce7;
  border-color: rgba(22, 163, 74, 0.2);
  color: #166534;
}

.quiz-dropdown-review-answer.is-incorrect {
  background: #fee2e2;
  border-color: rgba(220, 38, 38, 0.2);
  color: #991b1b;
}

.quiz-dropdown-review-answer.is-missed {
  background: #fef3c7;
  border-color: rgba(245, 158, 11, 0.2);
  color: #92400e;
}

.quiz-dropdown-review-meta {
  margin: 0.45rem 0 0.65rem;
}

@media (max-width: 767.98px) {
  .quiz-dropdown-review-header {
    flex-direction: column;
  }

  .quiz-dropdown-review-answer {
    margin: 0.35rem 0;
  }
}

.rmt-app .rmt-quiz-dropdown {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.rmt-app .rmt-quiz-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 0.25rem 0.65rem;
  border-radius: 12px;
  border: 1px dashed var(--rmt-tone-border, rgba(15, 23, 42, 0.15));
  background: #fff7ed;
  font-weight: 600;
}

.rmt-app .rmt-quiz-dropdown-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rmt-app .rmt-quiz-table {
  display: grid;
  gap: 0.4rem;
}

.rmt-app .rmt-quiz-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
}

.rmt-app .rmt-quiz-table-header {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.7);
}

.rmt-app .rmt-quiz-cell {
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #f1f5f9;
}

.rmt-app .rmt-quiz-cell-on {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.5);
}

.rmt-app .rmt-quiz-notes {
  background: #f8fafc;
  border-radius: 16px;
  padding: 0.85rem 1rem;
}

.rmt-app .rmt-quiz-notes-paragraph {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.8);
}

.rmt-app .rmt-quiz-highlight {
  background: rgba(236, 72, 153, 0.2);
  color: #9d174d;
  padding: 0 0.2rem;
  border-radius: 6px;
}

@keyframes rmt-quiz-cycle {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  10% {
    opacity: 1;
    transform: translateY(0);
  }

  22% {
    opacity: 1;
    transform: translateY(0);
  }

  30% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 991px) {
  .rmt-app .rmt-practice-layout {
    grid-template-columns: 1fr;
  }

  .rmt-app .rmt-practice-kicker-right {
    text-align: left;
  }

  .rmt-app .rmt-quiz-showcase {
    min-height: 320px;
  }
}

.rmt-app .rmt-admin-nav-header {
  color: #475569;
  margin-bottom: 0.65rem;
}

.rmt-app .rmt-admin-link {
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--quiz-border, #e2e8f0);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, background 0.15s ease;
  width: 100%;
}

.rmt-app .rmt-admin-link:hover {
  border-color: var(--quiz-primary, #1d4ed8);
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.18);
  transform: translateY(-1px);
  background: #f8fafc;
  color: #0f172a;
}

@media (max-width: 992px) {
  .rmt-app .rmt-admin-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .rmt-app .rmt-icon-circle {
    width: 38px;
    height: 38px;
  }

  .rmt-app .rmt-mini-icon,
  .rmt-app .rmt-feature-icon,
  .rmt-app .rmt-category-icon {
    width: 38px;
    height: 38px;
  }

  .rmt-app .rmt-anchor {
    scroll-margin-top: 84px;
  }
}

/* ── New layout patterns (Bootstrap) ── */

/* Popular topic chips */
.rmt-app .rmt-popular-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--rmt-tone-border, rgba(15, 23, 42, 0.15));
  background: var(--rmt-tone-bg, rgba(15, 23, 42, 0.06));
  color: var(--rmt-tone-fg, #0f172a);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.rmt-app .rmt-popular-chip:hover {
  filter: brightness(0.92);
}

/* Stat cards */
.rmt-app .rmt-stat-card {
  border-radius: 12px;
  border-left: 4px solid var(--rmt-tone-fg, var(--rmt-brand));
}

/* Stepper */
.rmt-app .rmt-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}
  min-height: 112px;
  padding: 0.9rem 1rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.035);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  max-width: 180px;
}

  transform: translateY(-1px);
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  height: 2px;
  background: var(--rmt-light);
  border-radius: 1px;
  margin-top: 22px;
  background: color-mix(in srgb, #ffffff 82%, var(--concept-soft, rgba(45, 134, 89, 0.12)) 18%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--concept-soft, rgba(45, 134, 89, 0.12)) 72%, rgba(255, 255, 255, 0.25)), 0 8px 18px rgba(15, 23, 42, 0.06);
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .rmt-app .rmt-stepper-item {
    flex-direction: row;
    text-align: left;
    max-width: none;
    gap: 0.75rem;
  }

  .rmt-app .rmt-stepper-item .rmt-step-badge {
    flex-shrink: 0;
  }

  .rmt-app .rmt-stepper-connector {
    display: none;
  }
}

/* Quiz preview tabs */
.rmt-app .rmt-quiz-tabs .nav-link {
  font-weight: 600;
  border-radius: 0;
  color: var(--rmt-muted);
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.75rem 1rem;
}

.rmt-app .rmt-quiz-tabs .nav-link:hover {
  color: var(--rmt-ink);
  border-bottom-color: rgba(10, 10, 10, 0.3);
}

.rmt-app .rmt-quiz-tabs .nav-link.active {
  color: var(--rmt-ink);
  border-bottom-color: var(--rmt-ink);
  background: transparent;
}

/* CTA banner */
.rmt-app .rmt-cta-gradient {
  background: var(--rmt-brand-light);
}

/* Announcement strip */
.rmt-app .rmt-announce {
  background: var(--rmt-brand-light);
  padding: 10px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--rmt-brand);
  letter-spacing: 0.02em;
}

.rmt-app .rmt-announce a {
  color: var(--rmt-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Editorial section headers */
.rmt-app .rmt-editorial-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--rmt-brand);
  margin-bottom: 8px;
}

.rmt-app .rmt-editorial-heading {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.3rem, 3vw, 3rem);
  color: var(--rmt-ink);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 18px;
}

/* Home page mockup J implementation */
.rmt-app .rmt-home {
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.28), transparent 26%),
    radial-gradient(circle at 86% 16%, rgba(201, 145, 45, 0.08), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(45, 134, 89, 0.08), transparent 32%),
    linear-gradient(180deg, #dbe2da 0%, #d6ddd6 46%, #d1d9d2 100%);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.rmt-app .rmt-home .container-fluid.container-lg {
  width: min(100%, 1680px);
  max-width: min(100%, 1680px);
}

.rmt-app .rmt-home .rmt-section {
  width: min(100%, 1680px);
  max-width: min(100%, 1680px);
  margin-inline: auto;
}

.rmt-app .rmt-home-band-white {
  background: transparent;
  border-bottom: none;
  padding-block: 10px;
}

.rmt-app .rmt-home-band-clinical {
  background: transparent;
  padding-block: 10px;
}

.rmt-app .rmt-home-band-study {
  background: transparent;
  padding-block: 10px;
}

.rmt-app .rmt-home-band-warm {
  background: transparent;
  padding-block: 10px;
}

.rmt-app .rmt-home-editorial-band {
  background: transparent;
}

.rmt-app .rmt-home-editorial-band-warm {
  background: transparent;
}

.rmt-app .rmt-home-band-muted {
  background: transparent;
  padding-block: 10px;
}

.rmt-app .rmt-home-hero-shell {
  display: flex;
  flex-direction: column;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(1.1rem, 1.8vw, 1.75rem) 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: center;
  position: relative;
  z-index: 3;
}

.rmt-app .rmt-home-hero-title {
  order: 0;
  max-width: 1360px;
  margin: 0 auto 0.55rem;
  font-size: clamp(2.4rem, 4.2vw, 3.45rem);
  line-height: 1.05;
}

.rmt-app .rmt-home-hero-subtitle {
  order: 0;
  max-width: 1360px;
  margin: 0 auto 28px;
  color: rgba(10, 10, 10, 0.74);
  font-size: 1.14rem;
  line-height: 1.7;
}

.rmt-app .rmt-home-hero-search-wrap {
  order: 1;
  width: 100%;
  align-self: stretch !important;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  position: relative;
  z-index: 6;
  overflow: visible;
}

.rmt-app .rmt-home-discovery-band {
  order: 3;
  width: 100%;
  max-width: 1480px;
  margin: 1rem auto 0;
  padding-top: 0.8rem;
  display: grid;
  gap: 0.8rem;
}

.rmt-app .rmt-home-discovery-module {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid rgba(217, 199, 163, 0.36);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(252, 247, 235, 0.46) 0%, rgba(247, 239, 222, 0.68) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.rmt-app .rmt-home-discovery-module-secondary {
  padding-top: 0.9rem;
  border: 1px solid rgba(195, 212, 224, 0.44);
  background: linear-gradient(180deg, rgba(247, 250, 252, 0.5) 0%, rgba(239, 245, 249, 0.72) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.rmt-app .rmt-home-discovery-head {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

.rmt-app .rmt-home-discovery-title {
  font-size: clamp(1.12rem, 1.3vw, 1.32rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--rmt-ink);
}

.rmt-app .rmt-home-discovery-copy {
  font-size: 0.84rem;
  line-height: 1.42;
  color: color-mix(in srgb, var(--rmt-mid) 92%, #5b4632 8%);
}

.rmt-app .rmt-home-discovery-module-secondary .rmt-home-discovery-copy {
  color: color-mix(in srgb, var(--rmt-mid) 86%, #3f617a 14%);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-wrap {
  width: 100%;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  position: relative;
  z-index: 8;
  isolation: isolate;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-entry {
  display: flex;
  align-items: stretch;
  flex: 1;
  min-width: 0;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-wrap {
  display: flex;
  align-items: stretch;
  min-height: 60px;
  flex: 0 0 210px;
  max-width: 250px;
  padding: 0;
  border: 1.5px solid rgba(45, 134, 89, 0.44);
  border-right: 1px solid rgba(62, 108, 87, 0.16);
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, rgba(248, 251, 249, 0.98) 0%, rgba(239, 246, 242, 0.95) 100%);
  box-shadow: none;
  position: relative;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, border-radius 0.15s ease;
}

/* Custom chevron — replaces the OS-native select arrow */
.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-wrap::after {
  content: '';
  pointer-events: none;
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232d8659' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-wrap:focus-within::after {
  opacity: 1;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-wrap.is-open {
  border-bottom-color: transparent;
  border-radius: 14px 0 0 0;
  background: linear-gradient(180deg, rgba(252, 254, 253, 0.99) 0%, rgba(243, 249, 245, 0.98) 100%);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-wrap.is-open::after {
  opacity: 1;
  transform: translateY(-50%) rotate(180deg);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-trigger {
  min-height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0.9rem 2.8rem 0.9rem 1rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--rmt-ink);
  font: inherit;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.25;
  text-align: left;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-trigger:focus {
  outline: none;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-trigger-text {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: -1px;
  z-index: 28;
  width: max(100%, 23.5rem);
  max-width: min(27.5rem, 90vw);
  max-height: min(16.5rem, calc(100vh - 14rem));
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.3rem;
  padding: 0.38rem;
  border: 1.5px solid rgba(45, 134, 89, 0.44);
  border-top: none;
  border-radius: 0 0 14px 14px;
  background:
    linear-gradient(180deg, rgba(252, 254, 253, 0.99) 0%, rgba(243, 249, 245, 0.98) 100%);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: rgba(45, 134, 89, 0.32) transparent;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-menu::-webkit-scrollbar {
  width: 8px;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-menu::-webkit-scrollbar-track {
  background: transparent;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-menu::-webkit-scrollbar-thumb {
  background: rgba(45, 134, 89, 0.28);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group {
  min-width: 0;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-all {
  grid-column: auto;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-concepts,
.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-client-needs {
  padding: 0.38rem;
  border: 1px solid rgba(45, 134, 89, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(246, 250, 247, 0.95) 0%, rgba(239, 246, 242, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-label {
  display: block;
  margin-bottom: 0.25rem;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--rmt-brand) 82%, var(--rmt-ink) 18%);
  text-align: left;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-options {
  display: grid;
  gap: 0.12rem;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-concepts .rmt-inline-search-scope-options,
.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-client-needs .rmt-inline-search-scope-options {
  padding-left: 0.3rem;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  padding: 0.42rem 0.64rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--rmt-ink);
  font: inherit;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-concepts .rmt-inline-search-scope-option,
.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-client-needs .rmt-inline-search-scope-option {
  padding-left: 0.72rem;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-option:hover,
.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-option:focus-visible {
  background: rgba(45, 134, 89, 0.09);
  color: color-mix(in srgb, var(--rmt-brand) 80%, var(--rmt-ink) 20%);
  outline: none;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-option.is-active {
  background: rgba(45, 134, 89, 0.14);
  color: color-mix(in srgb, var(--rmt-brand) 84%, var(--rmt-ink) 16%);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-option-label {
  font-weight: 600;
  min-width: 0;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-option-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin-left: 0.7rem;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--rmt-brand) 84%, var(--rmt-ink) 16%);
  opacity: 0.96;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-wrap:focus-within {
  border-color: var(--rmt-brand);
  border-right-color: rgba(45, 134, 89, 0.22);
  background: linear-gradient(180deg, rgba(249, 252, 250, 0.99) 0%, rgba(238, 247, 241, 0.97) 100%);
  box-shadow: 0 0 0 4px rgba(45, 134, 89, 0.11);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-all .rmt-inline-search-scope-options {
  grid-template-columns: minmax(0, 1fr);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-all .rmt-inline-search-scope-option {
  border: 1px solid rgba(45, 134, 89, 0.14);
  background: rgba(45, 134, 89, 0.04);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-scope-group-all .rmt-inline-search-scope-option.is-active {
  background: rgba(45, 134, 89, 0.16);
  border-color: rgba(45, 134, 89, 0.2);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-input {
  min-height: 60px;
  flex: 1;
  border: 1.5px solid rgba(62, 108, 87, 0.34);
  border-left: none;
  border-right: none;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 245, 0.95) 100%);
  padding: 1rem 1.2rem;
  font: inherit;
  font-size: 1.06rem;
  color: var(--rmt-ink);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-input::placeholder {
  color: color-mix(in srgb, var(--rmt-muted) 88%, #ffffff 12%);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-input:focus {
  border-color: var(--rmt-brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 4px rgba(45, 134, 89, 0.11), 0 14px 30px rgba(52, 74, 64, 0.1);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-button,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-primary,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-lg.btn-primary {
  min-height: 60px;
  white-space: nowrap;
  background: linear-gradient(180deg, #57a079 0%, var(--rmt-brand) 100%);
  border-color: color-mix(in srgb, var(--rmt-brand) 84%, rgba(15, 23, 42, 0.14) 16%);
  border-radius: 0 14px 14px 0;
  padding: 1rem 1.65rem;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-button:hover,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-primary:hover,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-lg.btn-primary:hover {
  filter: brightness(1.02);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 15px 30px rgba(52, 74, 64, 0.12);
}

.rmt-app .rmt-home-hero-search .rmt-inline-search-button:disabled,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-primary:disabled,
.rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-lg.btn-primary:disabled {
  background: linear-gradient(180deg, rgba(87, 160, 121, 0.8) 0%, rgba(45, 134, 89, 0.8) 100%);
  border-color: rgba(45, 134, 89, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px rgba(52, 74, 64, 0.08);
}

.rmt-app .rmt-home-hero-search .form-label {
  margin-bottom: 0;
}

.rmt-app .rmt-home-hero-search .rmt-search-overlay {
  position: static;
  margin-top: 6px;
  z-index: auto;
  max-height: 360px;
}

.rmt-app .rmt-home-cat-chips {
  order: 2;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 1360px;
  margin: 10px auto 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(239, 245, 240, 0.2) 100%);
  box-shadow: 0 14px 30px rgba(52, 74, 64, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(4px);
}

.rmt-app .rmt-home-cat-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(238, 243, 239, 0.98) 100%);
  color: var(--chip-accent, var(--rmt-mid));
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(15, 23, 42, 0.05),
    0 2px 0 rgba(15, 23, 42, 0.06),
    0 6px 14px rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rmt-app .rmt-home-cat-chip:hover {
  border-color: var(--chip-accent, var(--rmt-brand));
  background: linear-gradient(180deg,
      color-mix(in srgb, #ffffff 88%, var(--chip-accent-soft, rgba(45, 134, 89, 0.12)) 12%) 0%,
      color-mix(in srgb, rgba(238, 243, 239, 0.98) 74%, var(--chip-accent-soft, rgba(45, 134, 89, 0.12)) 26%) 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(15, 23, 42, 0.03),
    0 3px 0 color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 28%, rgba(15, 23, 42, 0.06)),
    0 8px 16px rgba(15, 23, 42, 0.08);
}

.rmt-app .rmt-home-cat-chip:active {
  transform: translateY(0);
  box-shadow:
    inset 0 2px 6px rgba(15, 23, 42, 0.1),
    0 1px 0 rgba(15, 23, 42, 0.06);
}

.rmt-app .rmt-home-cat-chip.active {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 92%, #ffffff 8%) 0%,
      color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 84%, rgba(15, 23, 42, 0.12) 16%) 100%);
  border-color: color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 82%, rgba(15, 23, 42, 0.18) 18%);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(15, 23, 42, 0.12),
    0 0 0 2px color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 24%, rgba(255, 255, 255, 0.34)),
    0 6px 14px color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 30%, rgba(15, 23, 42, 0.14));
}

.rmt-app .rmt-home-cat-chip .chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--chip-accent, var(--rmt-brand)) 18%, rgba(15, 23, 42, 0.08));
  background: transparent;
  box-shadow: none;
  font-size: 0.88rem;
  line-height: 1;
  flex-shrink: 0;
}

.rmt-app .rmt-home-cat-chip .chip-label {
  display: inline-block;
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.rmt-app .rmt-home-cat-chip.active .chip-icon {
  color: inherit;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.rmt-app .rmt-home-concepts-layout {
  order: 2;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
  gap: 18px;
  width: 100%;
  max-width: 1360px;
  margin: 16px auto 0;
}

.rmt-app .rmt-home-concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(239, 245, 240, 0.22) 100%);
  box-shadow: 0 14px 30px rgba(52, 74, 64, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.48);
  backdrop-filter: blur(4px);
}

.rmt-app .rmt-home-browse-card-shell {
  position: relative;
  display: flex;
  min-height: 100%;
}

.rmt-app .rmt-home-browse-card-shell:has(.rmt-home-card-info-wrap.is-open) {
  z-index: 30;
}

.rmt-app .rmt-home-card-info-wrap {
  position: relative;
  z-index: 4;
}

.rmt-app .rmt-home-card-info-wrap-inline {
  justify-self: end;
}

.rmt-app .rmt-home-card-top-row {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) 1.7rem;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.rmt-app .rmt-home-card-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--rmt-mid);
  font-size: 0.78rem;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.rmt-app .rmt-home-concept-card .rmt-home-card-info-trigger {
  border-color: rgba(122, 93, 51, 0.16);
  background: rgba(252, 246, 233, 0.92);
  color: #7a5d33;
}

.rmt-app .rmt-home-client-need-card .rmt-home-card-info-trigger {
  border-color: rgba(63, 97, 122, 0.16);
  background: rgba(248, 251, 253, 0.94);
  color: #3f617a;
}

.rmt-app .rmt-home-card-info-trigger:hover,
.rmt-app .rmt-home-card-info-trigger:focus-visible,
.rmt-app .rmt-home-card-info-wrap.is-open .rmt-home-card-info-trigger {
  border-color: rgba(45, 134, 89, 0.3);
  color: var(--rmt-brand);
  background: rgba(248, 252, 249, 0.96);
  outline: none;
}

.rmt-app .rmt-home-concept-card .rmt-home-card-info-trigger:hover,
.rmt-app .rmt-home-concept-card .rmt-home-card-info-trigger:focus-visible,
.rmt-app .rmt-home-concept-card .rmt-home-card-info-wrap.is-open .rmt-home-card-info-trigger {
  border-color: rgba(122, 93, 51, 0.28);
  color: #7a5d33;
  background: rgba(247, 236, 212, 0.96);
}

.rmt-app .rmt-home-client-need-card .rmt-home-card-info-trigger:hover,
.rmt-app .rmt-home-client-need-card .rmt-home-card-info-trigger:focus-visible,
.rmt-app .rmt-home-client-need-card .rmt-home-card-info-wrap.is-open .rmt-home-card-info-trigger {
  border-color: rgba(63, 97, 122, 0.26);
  color: #3f617a;
  background: rgba(237, 244, 249, 0.98);
}

.rmt-app .rmt-home-card-info-popover {
  display: none;
  position: absolute;
  top: auto;
  bottom: calc(100% + 0.45rem);
  right: 0;
  z-index: 15;
  width: max-content;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.72rem 0.85rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-top: 2px solid rgba(45, 134, 89, 0.3);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: left;
}

.rmt-app .rmt-home-concept-card .rmt-home-card-info-popover {
  border-color: rgba(122, 93, 51, 0.16);
  border-top-color: rgba(122, 93, 51, 0.3);
  background: rgba(253, 249, 241, 0.98);
  box-shadow: 0 12px 24px rgba(122, 93, 51, 0.12);
  color: #5c4a33;
}

.rmt-app .rmt-home-client-need-card .rmt-home-card-info-popover {
  border-color: rgba(63, 97, 122, 0.16);
  border-top-color: rgba(63, 97, 122, 0.26);
  background: rgba(249, 252, 254, 0.98);
  box-shadow: 0 12px 24px rgba(63, 97, 122, 0.12);
  color: #334a5d;
}

.rmt-app .rmt-home-card-info-popover.is-visible {
  display: block;
}

.rmt-app .rmt-home-card-info-popover-arrow {
  position: absolute;
  top: auto;
  bottom: -0.35rem;
  right: 0.85rem;
  width: 0.7rem;
  height: 0.7rem;
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid rgba(15, 23, 42, 0.12);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  transform: rotate(45deg);
}

.rmt-app .rmt-home-concept-card .rmt-home-card-info-popover-arrow {
  background: rgba(253, 249, 241, 0.98);
  border-right-color: rgba(122, 93, 51, 0.16);
  border-bottom-color: rgba(122, 93, 51, 0.16);
}

.rmt-app .rmt-home-client-need-card .rmt-home-card-info-popover-arrow {
  background: rgba(249, 252, 254, 0.98);
  border-right-color: rgba(63, 97, 122, 0.16);
  border-bottom-color: rgba(63, 97, 122, 0.16);
}

.rmt-app .rmt-home-card-info-popover-title {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rmt-brand);
}

.rmt-app .rmt-home-concept-card .rmt-home-card-info-popover-title {
  color: #7a5d33;
}

.rmt-app .rmt-home-client-need-card .rmt-home-card-info-popover-title {
  color: #3f617a;
}

.rmt-app .rmt-home-card-info-popover-copy {
  display: block;
}

.rmt-app .rmt-home-card-info-related-block {
  display: block;
  margin-top: 0.6rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.rmt-app .rmt-home-card-info-related-title {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-card-info-related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rmt-app .rmt-home-card-info-chip {
  background: rgba(248, 252, 249, 0.98);
  border-color: rgba(45, 134, 89, 0.14);
}

.rmt-app .rmt-home-client-need-card .rmt-home-card-info-chip,
.rmt-app .rmt-home-client-need-chip {
  background: rgba(246, 250, 252, 0.96);
  border-color: rgba(63, 97, 122, 0.14);
  color: #3f617a;
}

.rmt-app .rmt-home-concept-card {
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: visible;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  gap: 0.38rem;
  min-height: 90px;
  padding: 0.65rem 0.8rem 0.72rem;
  border-radius: 14px;
  border: 1px solid #cfb88a;
  background: linear-gradient(180deg, rgba(253, 249, 240, 0.99) 0%, rgba(243, 230, 203, 0.98) 100%);
  color: var(--rmt-ink);
  text-align: center;
  box-shadow: 0 5px 14px rgba(122, 93, 51, 0.1);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  cursor: pointer;
}

.rmt-app .rmt-home-concept-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, #d9c7a3 58%, var(--concept-accent, #7a5d33) 42%);
  background: linear-gradient(180deg, rgba(251, 243, 228, 0.99) 0%, rgba(238, 221, 188, 0.98) 100%);
  box-shadow: 0 10px 22px rgba(122, 93, 51, 0.12);
}

.rmt-app .rmt-home-concept-card.active {
  border-color: color-mix(in srgb, var(--concept-accent, #7a5d33) 42%, #c8ad78 58%);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #f8efdc 86%, var(--concept-soft, rgba(183, 47, 100, 0.12)) 14%) 0%,
    color-mix(in srgb, #ebd9b7 90%, var(--concept-soft, rgba(183, 47, 100, 0.12)) 10%) 100%
  );
  box-shadow: 0 0 0 2px color-mix(in srgb, #efe1c4 72%, var(--concept-soft, rgba(183, 47, 100, 0.12)) 28%), 0 10px 22px rgba(122, 93, 51, 0.12);
}

.rmt-app .rmt-home-concept-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.rmt-app .rmt-home-concept-card-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--concept-soft, rgba(45, 134, 89, 0.12));
  color: var(--concept-accent, var(--rmt-brand));
  font-size: 0.82rem;
  flex-shrink: 0;
}

.rmt-app .rmt-home-concept-card-group {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--concept-accent, var(--rmt-brand)) 68%, var(--rmt-muted) 32%);
  text-align: center;
  white-space: nowrap;
  min-width: 0;
}

.rmt-app .rmt-home-concept-card-label {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.02rem;
  line-height: 1.02;
  width: min(100%, 14ch);
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

.rmt-app .rmt-home-concept-card-copy {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-concept-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.2rem 1.2rem 1.25rem;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--concept-accent, var(--rmt-brand)) 20%, rgba(255, 255, 255, 0.4));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, color-mix(in srgb, #f3f7f4 80%, var(--concept-soft, rgba(45, 134, 89, 0.12)) 20%) 100%);
  box-shadow: 0 18px 34px rgba(52, 74, 64, 0.08);
  text-align: left;
}

.rmt-app .rmt-home-concept-panel-top {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rmt-app .rmt-home-concept-panel-kicker,
.rmt-app .rmt-home-concept-section-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--concept-accent, var(--rmt-brand)) 60%, var(--rmt-muted) 40%);
}

.rmt-app .rmt-home-concept-panel-title {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.rmt-app .rmt-home-concept-panel-desc,
.rmt-app .rmt-home-concept-panel-why {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-concept-panel-why {
  padding-top: 0.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.rmt-app .rmt-home-concept-lens-block {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rmt-app .rmt-home-concept-lens-chips,
.rmt-app .rmt-home-topic-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.rmt-app .rmt-home-lens-chip,
.rmt-app .rmt-home-topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--rmt-ink);
  font-size: 0.9rem;
  line-height: 1.2;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rmt-app .rmt-home-lens-chip:hover,
.rmt-app .rmt-home-topic-pill:hover {
  transform: translateY(-1px);
  border-color: var(--concept-accent, var(--rmt-brand));
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.rmt-app .rmt-home-lens-chip.active {
  background: color-mix(in srgb, var(--concept-soft, rgba(45, 134, 89, 0.12)) 70%, #ffffff 30%);
  border-color: var(--concept-accent, var(--rmt-brand));
}

.rmt-app .rmt-home-lens-chip small {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rmt-muted);
}

.rmt-app .rmt-home-concept-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.rmt-app .rmt-home-concept-preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  padding: 0.95rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.rmt-app .rmt-home-topic-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rmt-app .rmt-home-topic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: linear-gradient(180deg, #ffffff 0%, rgba(245, 247, 244, 0.98) 100%);
  text-align: left;
  font-weight: 600;
}

.rmt-app .rmt-home-topic-row span:last-child {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--concept-accent, var(--rmt-brand));
}

.rmt-app .rmt-home-concept-empty,
.rmt-app .rmt-home-topic-pill-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-depth-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1480px;
  margin: 0 auto;
}

.rmt-app .rmt-home-depth-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 1.45rem 1.2rem;
  text-align: center;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.rmt-app .rmt-home-band-clinical .rmt-home-depth-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.93) 0%, rgba(244, 249, 246, 0.9) 100%);
  border-color: rgba(86, 121, 110, 0.18);
  box-shadow: 0 16px 34px rgba(69, 95, 83, 0.08);
}

.rmt-app .rmt-home-depth-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.rmt-app .rmt-home-depth-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.42rem;
  margin-bottom: 8px;
  color: var(--rmt-ink);
}

.rmt-app .rmt-home-depth-desc {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--rmt-mid);
  margin: 0;
}

.rmt-app .rmt-home-formats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1480px;
  margin: 0 auto;
}

.rmt-app .rmt-home-format-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 1.15rem 1rem;
  text-align: center;
  min-height: 194px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.rmt-app .rmt-home-band-study .rmt-home-format-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 249, 243, 0.92) 100%);
  border-color: rgba(138, 123, 73, 0.16);
  box-shadow: 0 16px 34px rgba(92, 86, 58, 0.08);
}

.rmt-app .rmt-home-format-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 9px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.rmt-app .rmt-home-format-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rmt-muted);
  margin-bottom: 6px;
}

.rmt-app .rmt-home-format-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.46rem;
  margin-bottom: 8px;
  color: var(--rmt-ink);
}

.rmt-app .rmt-home-format-desc {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--rmt-mid);
  margin: 0;
}

/* Value props row */
.rmt-app .rmt-value-props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rmt-light);
}

.rmt-app .rmt-value-prop {
  padding: 48px clamp(24px, 3vw, 48px);
  border-right: 1px solid var(--rmt-light);
  background: #ffffff;
}

.rmt-app .rmt-value-prop:last-child {
  border-right: none;
}

.rmt-app .rmt-vp-number {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rmt-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

.rmt-app .rmt-vp-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--rmt-ink);
  margin-bottom: 10px;
  font-weight: 400;
}

.rmt-app .rmt-vp-text {
  font-size: 0.88rem;
  color: var(--rmt-mid);
  line-height: 1.6;
}

/* Editorial formats grid */
.rmt-app .rmt-formats-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--rmt-ink);
  padding-bottom: 20px;
}

.rmt-app .rmt-formats-count {
  font-size: 0.85rem;
  color: var(--rmt-muted);
  font-weight: 600;
}

.rmt-app .rmt-formats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--rmt-light);
}

.rmt-app .rmt-fmt-card {
  padding: 40px 36px;
  border-right: 1px solid var(--rmt-light);
  border-bottom: 1px solid var(--rmt-light);
  transition: background 0.25s;
  cursor: pointer;
}

.rmt-app .rmt-fmt-card:nth-child(2n) {
  border-right: none;
}

.rmt-app .rmt-fmt-card:nth-last-child(-n+2) {
  border-bottom: none;
}

.rmt-app .rmt-fmt-card:hover {
  background: var(--rmt-off-white);
}

.rmt-app .rmt-fmt-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.rmt-app .rmt-fmt-badge-green {
  background: var(--rmt-brand-light);
  color: var(--rmt-brand);
}

.rmt-app .rmt-fmt-badge-warm {
  background: #fdf6e8;
  color: #c4943a;
}

.rmt-app .rmt-fmt-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--rmt-ink);
  margin-bottom: 10px;
  font-weight: 400;
}

.rmt-app .rmt-fmt-desc {
  font-size: 0.88rem;
  color: var(--rmt-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.rmt-app .rmt-fmt-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rmt-brand);
  text-decoration: none;
}

/* Topic items editorial style */
.rmt-app .rmt-topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--rmt-light);
  cursor: pointer;
  transition: all 0.2s;
}

.rmt-app .rmt-topic-item:hover {
  border-color: var(--rmt-brand);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.rmt-app .rmt-topic-bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rmt-brand);
  flex-shrink: 0;
  margin-right: 14px;
}

.rmt-app .rmt-topic-open {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rmt-brand);
  opacity: 0;
  transition: opacity 0.2s;
}

.rmt-app .rmt-topic-item:hover .rmt-topic-open {
  opacity: 1;
}

/* Category tabs editorial */
.rmt-app .rmt-cat-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--rmt-light);
}

.rmt-app .rmt-cat-tab {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rmt-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.rmt-app .rmt-cat-tab.active {
  color: var(--rmt-ink);
  border-bottom-color: var(--rmt-ink);
}

.rmt-app .rmt-cat-tab:hover {
  color: var(--rmt-ink);
}

/* Pathway dots */
.rmt-app .rmt-pathway-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rmt-brand-light);
  border: 3px solid var(--rmt-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--rmt-brand);
}

/* Footer editorial */
.rmt-app .rmt-footer {
  background: #ffffff;
  border-top: 1px solid var(--rmt-light);
  padding: 34px 0;
}

.rmt-app .rmt-footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rmt-app .rmt-footer a {
  text-decoration: none;
  color: var(--rmt-mid);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.2s;
}

.rmt-app .rmt-footer a:hover {
  color: var(--rmt-ink);
}

@media (max-width: 900px) {

  .rmt-app .rmt-home-concepts-layout,
  .rmt-app .rmt-home-concept-preview-grid {
    grid-template-columns: 1fr;
  }

  .rmt-app .rmt-home-concept-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rmt-app .rmt-home-depth-grid,
  .rmt-app .rmt-home-formats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rmt-app .rmt-value-props {
    grid-template-columns: 1fr;
  }

  .rmt-app .rmt-value-prop {
    border-right: none;
    border-bottom: 1px solid var(--rmt-light);
  }

  .rmt-app .rmt-formats-grid {
    grid-template-columns: 1fr;
  }

  .rmt-app .rmt-fmt-card {
    border-right: none;
  }

  .rmt-app .rmt-formats-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 767px) {
  .rmt-app .rmt-home-hero-search .rmt-inline-search-bar {
    flex-direction: column;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-entry {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-scope-wrap {
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    max-width: none;
    border-right: 1.5px solid rgba(45, 134, 89, 0.44);
    border-bottom: none;
    border-radius: 14px 14px 0 0;
    box-shadow: none;
    padding: 0;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-scope-trigger {
    min-height: 3.4rem;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-scope-menu {
    left: -1px;
    width: calc(100% + 2px);
    max-width: none;
    grid-template-columns: minmax(0, 1fr);
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-input {
    border-left: 1.5px solid rgba(45, 134, 89, 0.38);
    border-right: 1.5px solid rgba(45, 134, 89, 0.38);
    border-radius: 0;
    box-shadow: none;
  }

  .rmt-app .rmt-home-hero-search .rmt-inline-search-button,
  .rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-primary,
  .rmt-app .rmt-home-hero-search .rmt-inline-search-button.btn-lg.btn-primary {
    border-radius: 0 0 14px 14px;
    box-shadow: none;
    width: 100%;
  }
}

@media (max-width: 576px) {
  .rmt-app .rmt-home-hero-title {
    font-size: clamp(1.9rem, 7vw, 2.35rem);
  }

  .rmt-app .rmt-home-hero-shell {
    padding: 0.9rem 0;
  }

  .rmt-app .rmt-home-hero-subtitle {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
  }

  .rmt-app .rmt-home-hero-search-wrap {
    padding: 0;
    border-radius: 0;
  }

  .rmt-app .rmt-home-concept-grid {
    grid-template-columns: 1fr;
  }

  .rmt-app .rmt-home-card-info-wrap {
    top: 0.7rem;
    right: 0.7rem;
  }

  .rmt-app .rmt-home-card-info-popover {
    bottom: auto;
    top: calc(100% + 0.45rem);
    right: auto;
    left: 0;
    max-width: min(16rem, calc(100vw - 2rem));
  }

  .rmt-app .rmt-home-card-info-popover-arrow {
    top: -0.35rem;
    bottom: auto;
    left: 1rem;
    right: auto;
    border-left: 1px solid rgba(15, 23, 42, 0.12);
    border-top: 1px solid rgba(15, 23, 42, 0.12);
    border-right: none;
    border-bottom: none;
  }

  .rmt-app .rmt-home-concept-card {
    min-height: 118px;
  }

  .rmt-app .rmt-home-concept-panel {
    padding: 1rem;
  }

  .rmt-app .rmt-home-depth-grid,
  .rmt-app .rmt-home-formats-grid {
    grid-template-columns: 1fr;
  }

  .rmt-app .rmt-home-cat-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-width: 100%;
  }

  .rmt-app .rmt-home-cat-chip {
    min-height: 46px;
    font-size: 0.78rem;
    padding: 0.6rem 0.7rem;
  }

  .rmt-app .rmt-home-format-card {
    min-height: auto;
  }
}

.rmt-app .rmt-home-band-inner {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.rmt-app .rmt-home-section-count {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-concept-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.rmt-app .rmt-home-concept-card {
  backdrop-filter: blur(4px);
}

.rmt-app .rmt-home-concept-detail {
  margin-top: 1rem;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--concept-accent, var(--rmt-brand)) 20%, rgba(255, 255, 255, 0.4));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, color-mix(in srgb, #f3f7f4 80%, var(--concept-soft, rgba(45, 134, 89, 0.12)) 20%) 100%);
  box-shadow: 0 18px 34px rgba(52, 74, 64, 0.08);
}

.rmt-app .rmt-home-concept-detail-head {
  margin-bottom: 1rem;
}

.rmt-app .rmt-home-concept-detail-title {
  margin-bottom: 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.rmt-app .rmt-home-concept-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.rmt-app .rmt-home-client-need-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.rmt-app .rmt-home-client-need-card {
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: visible;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  gap: 0.38rem;
  min-height: 96px;
  padding: 0.65rem 0.8rem 0.72rem;
  border-radius: 16px;
  border: 1px solid rgba(126, 164, 190, 0.94);
  background: linear-gradient(180deg, rgba(233, 243, 250, 0.99) 0%, rgba(213, 229, 241, 0.99) 100%);
  color: var(--rmt-ink);
  text-align: center;
  box-shadow: 0 8px 18px rgba(48, 93, 130, 0.12);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.rmt-app .rmt-home-client-need-card:hover {
  transform: translateY(-1px);
  border-color: #6590b0;
  background: linear-gradient(180deg, rgba(224, 237, 247, 0.99) 0%, rgba(201, 220, 235, 0.99) 100%);
  box-shadow: 0 12px 24px rgba(48, 93, 130, 0.16);
}

.rmt-app .rmt-home-client-need-card.active {
  border-color: #467394;
  background: linear-gradient(180deg, rgba(213, 229, 240, 0.99) 0%, rgba(189, 210, 226, 0.99) 100%);
  box-shadow: 0 0 0 2px rgba(126, 164, 190, 0.52), 0 12px 24px rgba(48, 93, 130, 0.18);
}

.rmt-app .rmt-home-client-need-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(48, 93, 130, 0.14);
  color: #305d82;
  font-size: 0.8rem;
}

.rmt-app .rmt-home-client-need-range,
.rmt-app .rmt-home-client-need-range-pill {
  display: block;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(48, 93, 130, 0.24);
  background: rgba(240, 247, 252, 0.98);
  font-size: 0.62rem;
  font-weight: 700;
  color: #305d82;
  white-space: nowrap;
  text-align: center;
  min-width: 0;
}

.rmt-app .rmt-home-client-need-label {
  display: block;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.08;
  width: min(100%, 17ch);
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 992px) {
  .rmt-app .rmt-home-discovery-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    justify-content: start;
    gap: 0.75rem;
    text-align: left;
  }

  .rmt-app .rmt-home-discovery-title {
    margin-bottom: 0 !important;
    white-space: nowrap;
  }

  .rmt-app .rmt-home-discovery-copy {
    margin: 0 !important;
  }
}

@media (max-width: 991.98px) {
  .rmt-app .rmt-home-discovery-head {
    text-align: left;
  }

  .rmt-app .rmt-home-concept-card-top,
  .rmt-app .rmt-home-client-need-top {
    padding-right: 1.8rem;
  }

  .rmt-app .rmt-home-concept-card-label,
  .rmt-app .rmt-home-client-need-label {
    text-align: center;
  }
}

.rmt-app .rmt-home-client-need-copy,
.rmt-app .rmt-home-client-need-desc,
.rmt-app .rmt-home-connect-copy {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.52;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-client-need-related {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.rmt-app .rmt-home-client-need-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.58rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--rmt-mid);
}

.rmt-app .rmt-home-client-need-detail {
  margin-top: 0.85rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.rmt-app .rmt-home-client-need-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.rmt-app .rmt-home-client-need-title {
  margin-bottom: 0.2rem;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.rmt-app .rmt-home-client-need-actions,
.rmt-app .rmt-home-cta-inline {
  margin-top: 0.8rem;
}

.rmt-app .rmt-home-connect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 1480px;
  margin: 0 auto;
}

.rmt-app .rmt-home-connect-card {
  padding: 1.05rem 0.95rem;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.04);
  text-align: left;
}

.rmt-app .rmt-home-connect-step {
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 134, 89, 0.12);
  color: var(--rmt-brand);
  font-size: 0.95rem;
  font-weight: 800;
}

.rmt-app .rmt-home-connect-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
  color: var(--rmt-ink);
}

@media (max-width: 900px) {
  .rmt-app .rmt-home-client-need-detail-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .rmt-app .rmt-home-concept-grid,
  .rmt-app .rmt-home-client-need-grid,
  .rmt-app .rmt-home-connect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rmt-app .rmt-home-concept-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .rmt-app .rmt-home-discovery-band {
    margin-top: 1.15rem;
    padding-top: 1rem;
    gap: 1rem;
  }

  .rmt-app .rmt-home-discovery-intro-copy {
    font-size: 0.91rem;
    line-height: 1.5;
  }

  .rmt-app .rmt-home-discovery-title {
    font-size: 1.16rem;
  }

  .rmt-app .rmt-home-discovery-copy {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .rmt-app .rmt-home-concept-grid,
  .rmt-app .rmt-home-client-need-grid,
  .rmt-app .rmt-home-connect-grid {
    grid-template-columns: 1fr;
  }
}