/* assets/style.css */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap");

/* Reset & base */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background-color: #111;        /* charcoal */
  color: #E0C068;                /* warmer gold */
  font-family: 'Montserrat', sans-serif;
  transition: background 0.3s, color 0.3s;
}


/* Fade‑in container */
.fade-in { animation: fadeIn 1s ease-out forwards; opacity: 0; }
@keyframes fadeIn { to { opacity: 1; } }

/* Navbar tweaks */
.navbar {
  background: linear-gradient(90deg, #1a1a1a, #111);
  padding: .75rem 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.brand, .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size:  1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin: 0px 6px;
    color: #FFD700;
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease-in-out;
}

.nav-link:hover,
.brand:hover { color: #FFF !important; }


.nav-link::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -3px;
    height: 2px;
    background-color: #FFD700;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.2s ease-out;
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}



/* Cards grid */
.tool-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 0;
}

/* Individual card */
.tool-card {
  position: relative;
  width: 280px;
  background: #222;
  border: 2px solid #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  transition: transform .2s, border-color .2s;
}
.tool-card:hover {
  transform: translateY(-6px);
  border-color: #E0C068;
}

/* Card image or chart placeholder */
.tool-card .card-image {
  width: 100%;
  height: 140px;
  background-size: cover;
  background-position: center;
}
.tool-card .card-body {
  padding: 1rem;
}
.tool-card .card-title {
  font-size: 1.25rem;
  margin-bottom: .5rem;
  color: #E0C068;
}
.tool-card .card-text {
  font-size: .9rem;
  margin-bottom: 1rem;
  color: #CCC;
}

/* Gold button variant */
.gold-button {
  background: #E0C068;
  color: #111;
  border-radius: 6px;
  padding: .6rem 1.2rem;
  font-weight: 600;
  transition: background .2s;
}
.gold-button:hover { background: #CFB659; }

/* Dark‑themed form controls */
.dark-input,
.dark-dropdown .Select-control,
.tabs-container {
  height: 2.5rem;
  align-items: center;               /* vertically center any flex children */
}

.dark-input {
  width: 100%;
  background-color: #222;
  color: #F5F5F5;
  border: 1px solid #E0C068;
  border-radius: 4px;
  padding: 8px;
}
.dark-dropdown .Select-control,
.dark-dropdown .Select-menu-outer {
  background-color: #222 !important;
  color: #F5F5F5 !important;
  border: 1px solid #E0C068 !important;
  border-radius: 4px;
}

/* placeholder text in the closed dropdown */
.dark-dropdown .Select-placeholder {
  color: #F5F5F5 !important;
  opacity: 1 !important;
}

/* the selected value label once you pick something */
.dark-dropdown .Select-value-label {
  color: #F5F5F5 !important;
  opacity: 1 !important;
}

/* each option in the open menu */
.dark-dropdown .Select-option {
  color: #F5F5F5 !important;
  opacity: 1 !important;
}

/* menu background (you already have this, but just in case) */
.dark-dropdown .Select-menu-outer {
  background-color: #222 !important;
}


.dark-slider .rc-slider-rail {
  background-color: #333;
}
.dark-slider .rc-slider-track {
  background-color: #E0C068;
}
.dark-slider .rc-slider-handle {
  border-color: #E0C068;
  background-color: #E0C068;
}


/* 1) slide+fade animation */
@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: slideFadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.form-label {
  font-size: 1rem;
  color: #E0C068;
  margin-top: 0.2rem;
  margin-bottom: 3px;
}

/* Options Juice readability and layout */
.options-juice-panel .text-muted,
.options-juice-panel .small {
  color: #E0C068 !important;
}

/* Force Options Juice charts to full width */
.options-juice-panel {
  width: 100% !important;
}

.options-juice-panel > .col,
.options-juice-panel > .col-12,
.options-juice-panel > [class*="col-"] {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

.options-juice-panel .echarts-for-react,
.options-juice-panel .js-plotly-plot {
  width: 100% !important;
}

/* Keep chart loading wrapper full width */
.chart-loading,
.chart-loading > div {
  width: 100% !important;
  display: block !important;
}

/* ==========================================================================
   1) Container
   ========================================================================== */
.tabs-container {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 1px solid #E0C068;
  border-radius: 6px;
  align-items: center;
  position: relative; /* Make the container relative to allow absolute positioning */
  z-index: 1; /* Ensure the tabs stay on top */
}

/* ==========================================================================
   2) Base Tab Styles
   ========================================================================== */
.tabs-container .tab {
  flex: 1 1 0 !important;   /* grow & shrink equally */
  min-width: 0 !important;   /* allow shrinking below intrinsic size */
  overflow: hidden !important;  /* clip the hover BG to this box */
  text-align: center;
  padding: 0.6rem 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: #E0C068;
  border: none !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  position: relative;
  transition: background 0.2s, color 0.2s;
  border-radius: 0 !important;   /* we’ll round only the container, not each tab */
}
.tabs-container .more-dropdown-custom {
  flex: 1 1 0;      /* same as your .tab’s flex shorthand */
  min-width: 0;     /* allow it to shrink below its content width */
  width: 100%;
  display: flex;                /* center label + caret */
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0;            /* match your .tab padding */
  background: transparent;
  border: none !important;
  color: #E0C068;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.tabs-container .more-dropdown-custom.show .dropdown-toggle {

  animation: tabPop 0.2s ease-out both;
}

/* 3) Restore rounded corners on the first & last “tab” so the container’s radius shows through */
.tabs-container .tab:first-child {
  border-top-left-radius: 6px !important;
  border-bottom-left-radius: 6px !important;
}

/* Remove default focus outlines */
.tabs-container .tab,
.tabs-container .tab--selected {
  outline: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   3) Hover State
   ========================================================================== */
.tabs-container .tab:not(.tab--selected):hover {
  background: rgba(224, 192, 104, 0.1) !important;
}

/* Underline effect */
.tabs-container .tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 0;
  height: 3px;
  background: #E0C068;
  transition: width 0.3s ease;
}
.tabs-container .tab:hover::after,
.tabs-container .tab--selected::after {
  width: 50%;
}

/* ==========================================================================
   4) Selected State
   ========================================================================== */
.tabs-container .tab--selected {
  background: #E0C068 !important;
  color: #111 !important;
  animation: tabPop 0.2s ease-out both;
  border-radius: 5px !important;
  scale: 1.05;
}

/* Pop-in animation */
@keyframes tabPop {
  from { transform: translateY(4px); opacity: 0.7; }
  to   { transform: translateY(0);   opacity: 1;   }
}

/* ==========================================================================
   5) MOBILE FIX
   ========================================================================== */
@media (max-width: 576px) {
  /* Force tabs to row layout inside container */
  .tabs-container {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  /* Force each .tab to take exactly 1/3 of the row */
  .tabs-container .tab .more-dropdown-custom {
    flex: 1 1 33.3333% !important;
    max-width: 33.3333% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.6rem 0.2rem !important;
    font-size: 0.85rem !important; /* Optional: smaller text on mobile */
  }
  .more-dropdown-custom .dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    width: 100vw; /* Full viewport width */
    max-width: 100%; /* Prevent overflow */
    transform: translateY(-10px) scale(0.95); /* Initial position */
    margin-left: -10px; /* Align with the left edge of the screen */
  }

}

/* ==========================================================================
   More Dropdown Styles
   ========================================================================== */
/* wrap your ButtonGroup+Dropdown in this */
.tab-container-with-dropdown {
  position: relative;
  overflow: visible !important;    /* allow the menu to escape */
}

/* Dropdown toggle text & chevron color */
.more-dropdown-custom .dropdown-toggle {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

/* On hover, brighten toggle */
.more-dropdown-custom .dropdown-toggle:hover {
  color: rgba(255, 255, 255, 0.75);
}


/* The actual dropdown menu panel */
.more-dropdown-custom .dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  transform: translateY(-10px) scale(0.95); /* Initial position */
  background-color: #121212e9;
  border: 1px solid #E0C068;
  border-radius: 0.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}

.more-dropdown-custom.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
  animation: dropdownBounce 0.3s ease forwards;
}

/* Menu items */
.more-dropdown-custom .dropdown-item {
  color: #E0C068;
  background-color: transparent;
  padding: 0.6rem 1.2rem;
  transition: background 0.2s, color 0.2s;
  white-space: normal;       /* Allow text wrapping */
  word-wrap: break-word;     /* Break long words if necessary */
  overflow-wrap: break-word; /* Ensure word breaking in all browsers */
  max-width: 100%;           /* Fit text within the container */
  line-height: 1.2;          /* Adjust line spacing for better readability */
}
.more-dropdown-custom .dropdown-item:hover {
  background-color: rgba(224, 192, 104, 0.1);
  color: #fff;
  border-left: 3px solid #E0C068;
}

/* Rotate the built-in caret */
.more-dropdown-custom .dropdown-toggle::after {
  transition: transform 0.3s;
}
.more-dropdown-custom.show .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Keyframe for a “pop” effect */
@keyframes dropdownAppear {
  0%   { opacity: 0; transform: translateY(-10px) scale(0.95); }
  70%  { transform: translateY(5px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes dropdownBounce {
  0% { opacity: 0; transform: translateY(-10px) scale(0.95); }
  60% { transform: translateY(3px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Fix for the Dropdown Toggle Link */
.more-dropdown-custom .dropdown-toggle::after {
    content: none;
}

.more-dropdown-custom .dropdown-toggle:hover::after {
    content: none;
}

/* Adjust the active state */
.more-dropdown-custom.show .dropdown-toggle {
    color: #FFD700 !important; /* Optional: change color when dropdown is open */
}

/* Caret styling */
.more-dropdown-custom .dropdown-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Rotate the caret when dropdown is open */
.more-dropdown-custom .dropdown-toggle::after {
  display: none;
}

.more-dropdown-custom .dropdown-label .bi-caret-down-fill {
  transition: transform 0.3s ease;
}

.more-dropdown-custom.show .bi-caret-down-fill {
  transform: rotate(180deg);
}



/* ==========================================================================
   Granularity Button Styles
   ========================================================================== */
.granularity-button {
  background-color: #111;
  color: #E0C068;
  margin-right: 5px;
  border: 2px solid #E0C068;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  z-index: 5;
}


.granularity-button:hover {
  background-color: rgba(224, 192, 104, 0.2);
  color: #E0C068;
  border: 2px solid #a58a40;
  z-index: 1;
}

.granularity-button.active,
.granularity-button:active,
.granularity-button:focus {
  background-color: #E0C068 !important;
  color: #111 !important;
  border-color: #E0C068 !important;
  z-index: 1;
}


/* ==========================================================================
   Section Divider Line
   ========================================================================== */
.section-divider {
  border: none;
  border-top: 1px solid #E0C068;
  margin: 2rem 0 1rem 0;
  opacity: 0.4;
}


/* ====================================
   Unified Date Picker Styling
   Theme: Dark TradingView Aesthetic with Gold Accents
======================================= */
/* Modern Date Picker Styling */

/* Scope all overrides under this class */

/* Date Picker Container */
.date-picker-container {
  width: 100%;
  display: block;
}

.modern-date-picker {
  width: 100% !important;
  /* ensure the popup calendar isn't clipped */
  overflow: visible;
}

/* Inputs laid out in a row */
.modern-date-picker .DateRangePickerInput {
  display: flex !important;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  align-items: center;
  width: 100%;
  background-color: #222 !important;
  border: 1px solid #E0C068 !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15) !important;
}

/* Single date picker wrapper */
.modern-date-picker .SingleDatePickerInput {
  display: flex !important;
  justify-content: space-between;
  font-family: 'Montserrat', sans-serif;
  align-items: center;
  width: 100%;
  background-color: #222 !important;
  border: 1px solid #E0C068 !important;
  border-radius: 8px !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15) !important;
}

.modern-date-picker .SingleDatePickerInput__withBorder {
  border: 1px solid #E0C068 !important;
}

/* Each date field */
.modern-date-picker .DateInput {
  flex: 1;
  width: 100% !important;
  background-color: transparent !important;
}

/* The actual input box */
.modern-date-picker .DateInput_input {
  width: 100% !important;
  background-color: transparent !important;
  border: none !important;
  font-size: 1rem !important;
  color: #fff !important;
  text-align: center !important;
  padding: 8px 10px !important;
  transition: color 0.2s;
}

.modern-date-picker .DateInput_input:hover {
  color: #E0C068 !important;
}
.modern-date-picker .DateInput_input:focus {
  color: #E0C068 !important;
  outline: none !important;
  transform: scale(1.05); /* Slight enlargement */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Smooth transition back to normal */
.modern-date-picker .DateInput_input {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* The little arrow between fields */
.modern-date-picker .DateRangePickerInput_arrow {
  color: #E0C068 !important;
  padding: 0 8px !important;
}

/* Calendar popup background */
.modern-date-picker .DayPicker {
  margin-top: 8px !important;
  background-color: #222 !important;
  border: 1px solid #E0C068 !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
  overflow: hidden !important;
  z-index: 1000 !important; /* Ensure it appears above other elements */
  position: relative !important; /* Ensure it doesn't get clipped */
}
.modern-date-picker .DayPicker_weekHeader {
  color: #E0C068 !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}
/* Month title */
.modern-date-picker .CalendarMonth_caption {
  color: #b99d57 !important;
  font-weight: 500 !important;
  text-transform: uppercase;
}

/* Calendar table */
.modern-date-picker .CalendarMonth_table {
  margin-top: 18px !important; /* Give more space for the weekday header */
}

/* Weekdays row */
.modern-date-picker .DayPicker_weekHeader {
  color: #E0C068 !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  top: 50px !important; /* Better positioning to avoid overlap */
}


/* Day cells */
.modern-date-picker .CalendarDay {
  background-color: #333 !important;
  border: 1px solid #444 !important;
  color: #fff !important;
  transition: all 0.2s ease;
  border-radius: 0 !important;
  vertical-align: middle !important;
  text-align: center !important;
}

.modern-date-picker .CalendarDay:hover {
  background-color: rgba(224, 192, 104, 0.2) !important;
  border-color: #E0C068 !important;
  color: #E0C068 !important;
}

/* Blocked days (out of range or disabled) */
.modern-date-picker .CalendarDay__blocked_out_of_range,
.modern-date-picker .CalendarDay__blocked_calendar {
  background-color: #1c1c1c !important;
  border: 1px solid #333 !important;
  color: #666 !important;
  cursor: not-allowed !important;
}

.modern-date-picker .CalendarDay__blocked_out_of_range:hover,
.modern-date-picker .CalendarDay__blocked_calendar:hover {
  background-color: #1c1c1c !important;
  border-color: #333 !important;
  color: #666 !important;
}

/* Selected day */
.modern-date-picker .CalendarDay__selected {
  background-color: #E0C068 !important;
  border-color: #E0C068 !important;
  color: #222 !important;
  font-weight: bold !important;
}

/* Span between selected days (if range) */
.modern-date-picker .CalendarDay__selected_span {
  background-color: rgba(224, 192, 104, 0.3) !important;
  border-color: rgba(224, 192, 104, 0.3) !important;
  color: #fff !important;
}

.modern-date-picker .CalendarDay__hovered_span {
  background-color: rgba(224, 192, 104, 0.4) !important;
  border-color: rgba(224, 192, 104, 0.4) !important;
  color: #fff !important;
}

/* Today's date */
.modern-date-picker .CalendarDay__today {
  border: 2px solid rgba(224, 192, 104, 0.8) !important;
  font-weight: bold !important;
}

/* Nav arrows */
.modern-date-picker .DayPickerNavigation_button {
  background-color: #333 !important;
  border: 1px solid #E0C068 !important;
  border-radius: 50% !important;
  color: #E0C068 !important;
  margin-top: 10px !important;
}

.modern-date-picker .DayPickerNavigation_button:hover {
  background-color: rgba(224, 192, 104, 0.2) !important;
}


/* Hide the keyboard shortcuts helper */
.modern-date-picker .DayPickerKeyboardShortcuts_show {
  display: none !important;
}

/* Fix any remaining white background issues */
.modern-date-picker .DateRangePicker_picker__directionLeft {
  background-color: transparent !important;
}
/* Fix for Date Picker input field */
.modern-date-picker .DateRangePicker_picker {
  z-index: 1000 !important; /* Maximize the z-index to be above buttons */
  position: absolute !important; /* Position above other components */
}

.modern-date-picker .CalendarMonthGrid {
  background-color: #222 !important;
}

.modern-date-picker .CalendarMonth {
  background-color: #222 !important;
}

/* Fix date input placeholder color */
.modern-date-picker .DateInput_input::placeholder {
  color: rgba(255, 255, 255, 0.5) !important;
}

/* Fix any white triangle indicators */
.modern-date-picker .DateInput_fang {
  display: none !important;
}


/* ============================================================================
   GAMMA SCREENER DARK THEME STYLING
   ============================================================================ */

/* Dark dropdown styling */
.dark-dropdown .Select-control {
    background-color: #222 !important;
    color: #FFF !important;
    border: 1px solid #E0C068 !important;
}

.dark-dropdown .Select-menu-outer {
    background-color: #222 !important;
    border: 1px solid #E0C068 !important;
}

.dark-dropdown .Select-option {
    background-color: #222 !important;
    color: #FFF !important;
}

.dark-dropdown .Select-option:hover {
    background-color: #333 !important;
    color: #E0C068 !important;
}

.dark-dropdown .Select-value-label {
    color: #FFF !important;
}

/* Ensure typed search text renders white in searchable dropdowns */
.dark-dropdown .Select-input,
.dark-dropdown .Select-input input,
.dark-dropdown .Select-input > input {
    color: #FFF !important;
}

/* Dark input styling */
.dark-input {
    background-color: #222 !important;
    color: #FFF !important;
    border: 1px solid #E0C068 !important;
    border-radius: 4px;
}

.dark-input:focus {
    background-color: #222 !important;
    color: #FFF !important;
    border-color: #FFD700 !important;
    box-shadow: 0 0 0 0.2rem rgba(224, 192, 104, 0.25) !important;
}

.dark-input::placeholder {
    color: #888 !important;
}

/* Progress visuals with high-contrast text on dark backgrounds */
.efi-progress-bar {
    background-color: #2a2a2a;
}

.efi-progress-bar .progress-bar {
    background-color: #E0C068;
}

.progress-text-contrast {
    color: #E0E0E0;
}

.progress-text-dark {
    color: #1a1a1a;
}

.progress-text-muted {
    color: #B8B8B8;
}

/* Treemap tooltip/container overflow */
.treemap-graph,
.treemap-graph .dash-graph,
.treemap-graph .js-plotly-plot,
.treemap-graph .svg-container,
.treemap-graph .main-svg {
    overflow: visible !important;
}
.treemap-graph .hoverlayer {
    pointer-events: auto;
}


/* ============================================================================
   RSO (Rotation Strength Oscillator) Component Styles
   Follows the gold / charcoal design language established above.
   ============================================================================ */

/* -------- Shared card surface -------- */
.rso-card {
    background: linear-gradient(135deg, #181818 0%, #1e1e1e 100%);
    border-radius: 12px;
    border: 1px solid rgba(224, 192, 104, 0.14);
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.rso-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.rso-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #E0C068;
    margin: 0;
}

.rso-card-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.80rem;
    color: #b5a06e;
    margin: 0;
    line-height: 1.4;
}

/* -------- Score pills / KPI chips -------- */
.rso-score-big {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
}

.rso-score-medium {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.00rem;
    font-weight: 600;
}

.rso-score-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.70rem;
    color: #b5a06e;
}

.rso-score-chip {
    border: 1px solid rgba(224, 192, 104, 0.15);
    border-radius: 8px;
    background: #1a1a1a;
    padding: 0.5rem;
}

.rso-score-chip-accent {
    border: 1px solid currentColor;
    border-radius: 8px;
    background: #1a1a1a;
    padding: 0.5rem;
}

/* -------- Regime badge -------- */
.rso-regime-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.86rem;
}

/* -------- Body text & meta -------- */
.rso-body-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    color: #ccc;
}

.rso-meta-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    color: #b5a06e;
}

.rso-hint-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.69rem;
    color: #917e4a;
}

/* -------- Threshold legend -------- */
.rso-threshold-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    color: #917e4a;
    margin-bottom: 8px;
}

/* -------- Section sub-header (e.g. "Historical Oscillator") -------- */
.rso-section-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    color: #E0C068;
    font-weight: 600;
}

.rso-section-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.70rem;
    color: #917e4a;
}

/* -------- Zone badge -------- */
.rso-zone-badge {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    background-color: rgba(224, 192, 104, 0.06);
    border-radius: 999px;
    padding: 2px 9px;
    cursor: help;
}

/* -------- Calm / Downside labels -------- */
.rso-calm-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.66rem;
    color: #7BD389;
}

.rso-downside-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.66rem;
    color: #FF9E58;
}

/* -------- Percentile meter bar -------- */
.rso-percentile-bar {
    position: relative;
    height: 8px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(123,211,137,0.36) 0%, rgba(224,192,104,0.34) 58%, rgba(255,123,123,0.36) 100%);
    border: 1px solid rgba(224, 192, 104, 0.18);
    cursor: help;
}

/* -------- Percentile story text -------- */
.rso-percentile-story {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.69rem;
    color: #917e4a;
    margin-bottom: 8px;
}

/* -------- Component table -------- */
.rso-component-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-family: 'Montserrat', sans-serif;
    background-color: transparent;
    color: #ccc;
}

/* Column widths */
.rso-component-table col:nth-child(1) { width: 24%; }
.rso-component-table col:nth-child(2) { width: 8%; }
.rso-component-table col:nth-child(3) { width: 10%; }
.rso-component-table col:nth-child(4) { width: 10%; }
.rso-component-table col:nth-child(5) { width: 10%; }
.rso-component-table col:nth-child(6) { width: 38%; }

.rso-component-table th,
.rso-component-table td {
    padding: 6px 8px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-align: left;
}

.rso-component-table thead th {
    font-size: 0.70rem;
    color: #b5a06e;
    font-weight: 600;
    border-bottom: 1px solid rgba(224, 192, 104, 0.2);
}

.rso-component-table tbody tr:hover {
    background-color: rgba(224, 192, 104, 0.06);
}

.rso-component-table td {
    font-size: 0.72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rso-component-label {
    color: #E0C068;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    cursor: help;
}

.rso-component-score {
    color: #ccc;
}

.rso-component-contribution {
    color: #d4c99c;
}

.rso-status-pill {
    font-size: 0.70rem;
    background-color: rgba(224, 192, 104, 0.06);
    border-radius: 999px;
    padding: 2px 8px;
    display: inline-block;
    cursor: help;
}

/* -------- Hover instruction -------- */
.rso-hover-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.69rem;
    color: #917e4a;
    margin-bottom: 6px;
}

/* -------- Alert calm text -------- */
.rso-calm-state {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    color: #7BD389;
    margin-bottom: 8px;
}

/* -------- Sector Pressure specific -------- */
.rso-pressure-card {
    background: linear-gradient(135deg, #181818 0%, #1e1e1e 100%);
    border-radius: 12px;
    border: 1px solid rgba(224, 192, 104, 0.14);
    margin-top: 1rem;
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.rso-pressure-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    color: #b5a06e;
    margin-bottom: 0;
}

.rso-pressure-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.74rem;
    color: #917e4a;
    margin-bottom: 0;
    margin-top: 0.25rem;
}

.rso-pressure-mkt-pcr {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.76rem;
    color: #ccc;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.rso-pressure-gauge-tile {
    padding: 8px 9px;
    border-radius: 10px;
    background: #1a1a1a;
    margin-bottom: 0.5rem;
}

.rso-pressure-gauge-tile--low-conf {
    border: 1px dashed rgba(224, 192, 104, 0.52);
    opacity: 0.9;
}

.rso-pressure-gauge-tile--high-conf {
    border: 1px solid rgba(224, 192, 104, 0.15);
    opacity: 1;
}

.rso-pressure-gauge-sector {
    font-family: 'Montserrat', sans-serif;
    color: #E0C068;
    font-weight: 600;
}

.rso-pressure-gauge-conf {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.rso-pressure-meter-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    color: #b5a06e;
}

.rso-pressure-meter-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
}

.rso-pressure-meter-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    overflow: visible;
    background: #1a1a1a;
    border: 1px solid rgba(224, 192, 104, 0.15);
}

.rso-pressure-detail-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.66rem;
    color: #b5a06e;
    margin-top: 2px;
}

/* -------- Leader panels -------- */
.rso-leader-panel {
    padding: 0.5rem;
    border-radius: 10px;
    background: #1a1a1a;
    border: 1px solid rgba(224, 192, 104, 0.15);
}

.rso-leader-panel h6 {
    font-family: 'Montserrat', sans-serif;
}

.rso-leader-panel li {
    color: #ccc;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

/* -------- Unclassified chip -------- */
.rso-unclass-chip {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.66rem;
    color: #d4c99c;
    background: #1a1a1a;
    border: 1px solid rgba(224, 192, 104, 0.15);
    border-radius: 999px;
    padding: 2px 7px;
}

/* -------- Momentum Map header -------- */
.rso-momentum-header {
    font-family: 'Montserrat', sans-serif;
}

.rso-momentum-stats {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.rso-momentum-cap-stats {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.84rem;
    color: #b5a06e;
    margin-bottom: 0.5rem;
}

/* -------- DataTable overrides (sector details) -------- */
.rso-datatable-wrapper .dash-table-container .dash-header {
    font-family: 'Montserrat', sans-serif !important;
}

.rso-datatable-summary {
    font-family: 'Montserrat', sans-serif;
}

/* -------- Rich tooltips for RSO cards -------- */
/* JS-powered floating tooltip (managed by assets/rso_tooltips.js).
   Supports rich HTML content with formula blocks, colored statuses, etc. */

.rso-rich-tooltip {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.73rem;
    font-weight: 500;
    line-height: 1.55;
    color: #d4c99c;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;

    background: linear-gradient(145deg, #181818 0%, #1d1d1d 100%);
    border: 1px solid rgba(224, 192, 104, 0.28);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 220px;
    max-width: 380px;
    width: max-content;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65),
                0 0 0 1px rgba(224, 192, 104, 0.06),
                0 0 20px rgba(224, 192, 104, 0.04);

    z-index: 999999;
    pointer-events: none;
}

/* ── Tooltip internal structure ── */

.rso-tip-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #E0C068;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
    border-bottom: 1px solid rgba(224, 192, 104, 0.15);
    padding-bottom: 5px;
}

.rso-tip-section {
    margin-bottom: 6px;
}

.rso-tip-section:last-child {
    margin-bottom: 0;
}

.rso-tip-label {
    font-size: 0.67rem;
    font-weight: 600;
    color: #b5a06e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.rso-tip-formula {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    color: #E0C068;
    background: rgba(224, 192, 104, 0.08);
    border: 1px solid rgba(224, 192, 104, 0.12);
    border-radius: 5px;
    padding: 4px 8px;
    margin: 3px 0 4px 0;
    display: block;
    word-break: break-word;
}

.rso-tip-text {
    font-size: 0.70rem;
    color: #ccc;
    line-height: 1.5;
}

.rso-tip-basket {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 3px 0;
}

.rso-tip-ticker {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.63rem;
    font-weight: 600;
    color: #E0C068;
    background: rgba(224, 192, 104, 0.09);
    border: 1px solid rgba(224, 192, 104, 0.14);
    border-radius: 4px;
    padding: 1px 5px;
    line-height: 1.4;
}

.rso-tip-status {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 2px 8px;
    margin-top: 2px;
}

.rso-tip-status--risk-off {
    color: #FF9E58;
    border: 1px solid rgba(255, 158, 88, 0.3);
    background: rgba(255, 158, 88, 0.08);
}

.rso-tip-status--risk-on {
    color: #7BD389;
    border: 1px solid rgba(123, 211, 137, 0.3);
    background: rgba(123, 211, 137, 0.08);
}

.rso-tip-status--neutral {
    color: #D8DDE8;
    border: 1px solid rgba(216, 221, 232, 0.2);
    background: rgba(216, 221, 232, 0.06);
}

.rso-tip-status--missing {
    color: #9aa3b2;
    border: 1px solid rgba(154, 163, 178, 0.2);
    background: rgba(154, 163, 178, 0.06);
}

.rso-tip-divider {
    border: none;
    border-top: 1px solid rgba(224, 192, 104, 0.10);
    margin: 5px 0;
}

.rso-tip-note {
    font-size: 0.64rem;
    color: #917e4a;
    font-style: italic;
}

/* Plotly chart hoverlabel override */
.rso-card .hoverlayer .hovertext text,
.rso-pressure-card .hoverlayer .hovertext text {
    font-family: 'Montserrat', sans-serif !important;
}



/* DMC DatePicker Specific Overrides for Gold/Charcoal */
.modern-date-picker .mantine-Input-input {
  background-color: #222 !important;
  color: #fff !important;
  border: 1px solid #E0C068 !important;
  border-radius: 8px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
  letter-spacing: 0.5px !important;
  text-align: center !important;
  height: 40px !important;
  min-height: 40px !important;
  line-height: 38px !important;
}
.modern-date-picker .mantine-Input-input::placeholder {
  font-family: 'Montserrat', sans-serif !important;
  color: #fff !important;
  opacity: 0.6 !important;
}
.mantine-Input-input:focus, .mantine-Input-input[data-expanded] {
  border-color: #E0C068 !important;
  box-shadow: 0 0 0 1px #E0C068 !important;
}
.mantine-DatePicker-calendarHeaderLevel, .mantine-DatePicker-calendarHeaderControl {
  color: #E0C068 !important;
}
.mantine-DatePicker-calendarHeaderControl:hover {
  background-color: rgba(224, 192, 104, 0.2) !important;
}
.mantine-DatePicker-day:hover {
  background-color: rgba(224, 192, 104, 0.2) !important;
  color: #E0C068 !important;
}
.mantine-DatePicker-day[data-selected] {
  background-color: #E0C068 !important;
  color: #111 !important;
  font-weight: bold !important;
}
.mantine-DatePicker-day[data-in-range] {
  background-color: rgba(224, 192, 104, 0.3) !important;
}
.mantine-DatePicker-day[data-first-in-range], .mantine-DatePicker-day[data-last-in-range] {
  background-color: #E0C068 !important;
  color: #111 !important;
}
.mantine-Popover-dropdown {
  background-color: #222 !important;
  border: 1px solid #E0C068 !important;
}

/* ==========================================================================
   Home + Master Dashboard Command Theme
   ========================================================================== */
:root {
  --efi-bg-0: #0d0d0d;
  --efi-bg-1: #121212;
  --efi-bg-2: #171717;
  --efi-panel: #1d1a14;
  --efi-border: rgba(224, 192, 104, 0.28);
  --efi-border-strong: rgba(224, 192, 104, 0.5);
  --efi-gold: #e0c068;
  --efi-gold-strong: #f1d27f;
  --efi-text: #f4e6bf;
  --efi-text-muted: #baa97a;
}

.home-command-page,
.master-dashboard-page {
  position: relative;
  min-height: calc(100vh - 84px);
  padding: clamp(16px, 2vw, 28px);
  background: #000000;
}

.home-aura {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(84px);
  opacity: 0.24;
  pointer-events: none;
  z-index: 0;
  display: none;
}

.home-aura-left {
  top: -110px;
  left: -120px;
  background: #c59a28;
}

.home-aura-right {
  right: -140px;
  bottom: -150px;
  background: #8f742f;
}

.home-command-shell {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 18px;
  border: 1px solid var(--efi-border);
  background: var(--efi-bg-1);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.45);
}

.home-brand {
  color: var(--efi-gold);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.home-title {
  margin: 0;
  color: var(--efi-text);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.12;
}

.home-subtitle {
  margin: 0.95rem 0 1.4rem;
  color: var(--efi-text-muted);
  max-width: 66ch;
  line-height: 1.5;
}

.home-search-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 1rem;
}

.home-search-input {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--efi-border);
  background: #121212;
  color: var(--efi-text);
  padding: 0 14px;
  font-size: 0.98rem;
}

.home-search-input:focus {
  outline: none;
  border-color: var(--efi-border-strong);
  box-shadow: 0 0 0 2px rgba(224, 192, 104, 0.16);
}

.home-search-btn {
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(201, 160, 51, 0.75);
  background: linear-gradient(135deg, #d8b75f, #ad8528);
  color: #121212;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0 22px;
}

.home-search-btn:hover {
  background: linear-gradient(135deg, #e6c873, #be9433);
}

.home-flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0.95rem;
}

.home-flow-item {
  border: 1px solid rgba(224, 192, 104, 0.16);
  border-radius: 10px;
  background: rgba(224, 192, 104, 0.04);
  color: #d9c088;
  padding: 10px 12px;
  font-size: 0.87rem;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.15rem;
}

.home-link {
  border: 1px solid rgba(224, 192, 104, 0.18);
  background: rgba(224, 192, 104, 0.05);
  color: var(--efi-gold);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.86rem;
}

.home-link:hover {
  border-color: rgba(224, 192, 104, 0.45);
  color: #fff3cb;
}

.master-shell {
  max-width: 1320px;
  margin: 0 auto;
}

.master-header {
  margin-bottom: 16px;
  border: 1px solid var(--efi-border);
  border-radius: 14px;
  background: var(--efi-bg-1);
  padding: clamp(14px, 3vw, 22px);
}

.master-title {
  margin: 0;
  color: var(--efi-text);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 700;
}

.master-subtitle {
  margin-top: 6px;
  color: var(--efi-text-muted);
  font-size: 0.92rem;
}

.master-search {
  margin-top: 12px;
  max-width: 640px;
}

.master-search .form-control {
  background: #101010;
  color: var(--efi-text);
  border-color: var(--efi-border);
}

.master-search .form-control:focus {
  box-shadow: 0 0 0 2px rgba(224, 192, 104, 0.18);
  border-color: var(--efi-border-strong);
}

.master-panel,
.master-kpi-card {
  border: 1px solid rgba(224, 192, 104, 0.2);
  border-radius: 14px;
  background: var(--efi-bg-1);
  color: var(--efi-text);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.master-section-title {
  color: var(--efi-gold-strong);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}

.master-mini-title {
  color: var(--efi-text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.master-muted-text {
  color: var(--efi-text-muted);
  font-size: 0.86rem;
}

.master-kpi-title {
  color: var(--efi-text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.master-kpi-value {
  color: var(--efi-text);
  font-weight: 700;
  font-size: clamp(0.98rem, 2vw, 1.2rem);
  line-height: 1.3;
  margin-top: 3px;
}

.master-kpi-sub {
  color: var(--efi-text-muted);
  font-size: 0.77rem;
  margin-top: 2px;
}

.master-wall-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.master-wall-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(224, 192, 104, 0.14);
  border-radius: 9px;
  background: rgba(224, 192, 104, 0.03);
  padding: 7px 9px;
}

.master-wall-strike {
  color: var(--efi-text);
  font-weight: 600;
}

.master-wall-flow {
  color: var(--efi-text-muted);
  font-size: 0.82rem;
}

.master-pill {
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.76rem;
  font-weight: 700;
}

.master-pill-bull {
  color: #9be38f;
  border: 1px solid rgba(105, 219, 124, 0.35);
  background: rgba(105, 219, 124, 0.1);
}

.master-pill-bear {
  color: #ff9a9a;
  border: 1px solid rgba(255, 107, 107, 0.35);
  background: rgba(255, 107, 107, 0.1);
}

.master-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.master-list-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(224, 192, 104, 0.12);
  padding: 5px 0;
}

.master-list-strike {
  color: #ebddb8;
}

.master-list-score {
  color: #d6bd7d;
  font-weight: 600;
}

.master-juice-wrap .card,
.master-juice-wrap .table {
  background-color: transparent !important;
}

.master-empty-title {
  color: var(--efi-text);
}

.master-actions .btn-warning {
  color: #17150f;
  font-weight: 700;
}

@media (max-width: 992px) {
  .home-flow-grid {
    grid-template-columns: 1fr;
  }

  .master-search {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .home-search-wrap {
    grid-template-columns: 1fr;
  }

  .home-search-btn {
    width: 100%;
  }
}

/* ==========================================================================
   Shared Deep-Dive Header + About Page
   ========================================================================== */
.deep-dive-header {
  border: 1px solid rgba(224, 192, 104, 0.22);
  border-radius: 14px;
  background: var(--efi-bg-1);
  margin-bottom: 14px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.deep-dive-kicker {
  color: var(--efi-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  margin-bottom: 4px;
}

.deep-dive-title {
  margin: 0;
  color: var(--efi-text);
  font-size: clamp(1rem, 2.4vw, 1.3rem);
}

.deep-dive-subtitle {
  margin: 5px 0 0;
  color: var(--efi-text-muted);
  font-size: 0.87rem;
  line-height: 1.45;
  max-width: 74ch;
}

.deep-dive-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.about-command-page {
  min-height: calc(100vh - 84px);
  padding: clamp(16px, 2.4vw, 28px);
  background: #000000;
}

.about-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.about-panel {
  border: 1px solid rgba(224, 192, 104, 0.22);
  border-radius: 14px;
  background: var(--efi-bg-1);
  color: var(--efi-text);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.about-hero {
  padding: clamp(16px, 3vw, 24px);
}

.about-kicker {
  color: var(--efi-gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  margin-bottom: 4px;
}

.about-title {
  margin: 0;
  color: var(--efi-text);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.2;
}

.about-subtitle {
  margin: 8px 0 0;
  color: var(--efi-text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 78ch;
}

.about-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-section-title {
  color: var(--efi-gold-strong);
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(224, 192, 104, 0.14);
  border-radius: 10px;
  background: rgba(224, 192, 104, 0.03);
}

.about-step-index {
  color: #17150f;
  background: var(--efi-gold);
  border-radius: 999px;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.about-step-title {
  color: var(--efi-text);
  font-weight: 700;
  font-size: 0.9rem;
}

.about-step-detail {
  color: var(--efi-text-muted);
  font-size: 0.84rem;
  margin-top: 2px;
  line-height: 1.45;
}

.about-card-title {
  color: var(--efi-text);
  font-weight: 700;
  font-size: 0.92rem;
}

.about-card-detail {
  color: var(--efi-text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
  margin: 6px 0 10px;
}

.about-team-avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(224, 192, 104, 0.45);
  margin-bottom: 8px;
}

.about-team-name {
  color: var(--efi-text);
  font-weight: 700;
  font-size: 0.92rem;
}

.about-team-role {
  color: var(--efi-gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.about-team-summary {
  color: var(--efi-text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  margin-top: 6px;
}

@media (max-width: 992px) {
  .deep-dive-header {
    flex-direction: column;
    align-items: stretch;
  }

  .deep-dive-actions {
    justify-content: flex-start;
  }
}
