/* Hide the hidden/assistive math labels that cause doubling */
.katex-html {
    display: block; /* or inline-block for inline math */
}

.katex-mathml {
    display: none !important;
}

/* If any stray MathJax artifacts remain in cache */
.MathJax_Preview, .mjx-chtml, .mjx-assistive_mathml {
    display: none !important;
}

.welcome-page {
    margin-right: 16.6%;
}

/* Remove ONLY the outer border of the sidebar */
#sidebar {
    border: none !important;
}

/* Remove ONLY the outer border of the main container */
#main-container {
    border: none !important;
}

/* Remove the border under the expand-view bar */
#main-container .border-bottom {
    border-bottom: none !important;
}

.sidebar-title {
    display: inline-block;
    margin-left: 50px;
}

.sidebar-content {
    padding-left: 50px;
}


.menu-align {
    margin-left: 0%;
}

.header-logo {
    margin-left: 16.66%;
}

.main-area{
    background-color: #FFFFFF;
}

header {
    background-color: #FFFFFF !important;
}

.sidebar {
    background-color: #FFFFFF;
}
/* Sidebar Title */
.sidebar-header {
    font-weight: normal; 
    color: #1D3557;
    padding-bottom: 8px;
    margin-bottom: 15px;
    display: block;
    font-size: 1.1rem;
}

.sidebar-empty .sidebar-header,
.sidebar-empty .sidebar-title {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* List container */
.sidebar-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Row setup - ensures no border on the container */
.sidebar-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border: none !important; 
    background: none !important;
}

/* The Bullet */
.sidebar-item::before {
    content: "•";
    color: #2A6F97;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1.2rem;
}

/* The Clickable Link */
.sidebar-link {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    color: #007bff; /* Link Blue */
    text-decoration: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    outline: none !important;
    box-shadow: none !important;
}

.sidebar-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

#table_div table,
#table_div th,
#table_div td {
    border: none !important;
}

#scenarioDialog {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 420px;
    height: 500px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    padding: 0;
    z-index: 2000;
    display: none;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

#scenarioDialogHeader {
    cursor: move;
    background: #f0f0f0;
    padding: 8px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.highlighted-row {
    background-color: #fff9c4 !important; /* Light yellow */
    font-weight: bold;
}

/* Optional: add a hover effect so users know the row is interactive */
#scenarioTableBody tr:hover {
    background-color: #f5f5f5;
}

.post-title {
    font-size: 2rem;        /* or match your theme */
    font-weight: 700;
    color: #000099;         /* inherits theme color */
    margin-bottom: 1rem;
}
.tech-toc {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 2rem;
    border-left: 4px solid #007bff;
}

.tech-toc ul {
    margin: 0;
    padding-left: 1.2rem;
}

.tech-section-title {
    margin-top: 3rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.tech-section-content {
    margin-bottom: 2rem;
}

/* Cleaned up icon class (removed invalid HTML style tags) */
.red-number-icon {
    background-color: red;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* Styling for the new depth legend */
.custom-legend {
    background-color: rgba(255, 255, 255, 0.95); /* Mostly opaque white */
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 12px;
    font-family: sans-serif;
    font-size: 13px;
    color: #333;
    line-height: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Legend Title */
.custom-legend h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #111;
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

/* The colored squares */
.custom-legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 1.0;
    border: 1px solid #777; /* Subtle border so light yellow doesn't vanish */
}

/* style.css */
.mm-btn_old {
    margin-top: 10px;
    width: 100%;
    padding: 6px;
    cursor: pointer;
}

/* style.css */
:is(.mm-btn) {
  /* Bring in Bootstrap's baseline button styles */
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  background-color: #f8f9fa; /* btn-light background */
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  
  /* w-100 & mb-3 */
  width: 100%;
  margin-bottom: 1rem;

  /* Your custom border & shadow */
  border: 1px solid rgb(190, 191, 180);
  box-shadow: 0 0 2px #ffcc00;
}

/* Hover state matching btn-light behavior */
.mm-btn:hover {
  color: #000;
  background-color: #d3d4d5;
  border-color: #c6c7c8;
}


