.header-link {
  display: none !important;
}

/* Prevent horizontal overflow and remove right edge gray space */
html, body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  padding: 0;
}


/* splash pages don't have titles, allow them to have consistent ones*/

.page-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 0.67em;
}

/* don't wrap */
.no-wrap {
  white-space: nowrap;
}



.page__footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}



.site-feature-row__right-2 ul {
  margin-top: 0;
}



/* footer icons */
#footer i[class*="fa-"],
#copyright {
  color: rgba(234,234,234) !important;
}

/* links */
body a {
  text-decoration: underline;
  transition: color 0.3s ease !important;
}
body a i,
body a .fa-solid,
body a .fa-regular,
body a .fa-brands {
    transition: color 0.3s ease !important;
}

body a:hover {
  color: rgba(226, 62, 22, 1);
}

#wrapp a:hover {
  text-decoration: none;
}




.page__hero.page__hero--overlay {
  position: relative;
}

// Add space between header action buttons
.page__hero--overlay p a.btn {
  margin: 0 0.3rem !important;
  &:first-child {
    margin-left: 0 !important;
  }
  &:last-child {
    margin-right: 0 !important;
  }
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#wrapp { position: relative; z-index: 2; }

.check-card {
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(30px) saturate(200%) contrast(110%);
  -webkit-backdrop-filter: blur(30px) saturate(200%) contrast(110%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
  display: block;
  cursor: pointer;
}

.check-card:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.check-card:hover .check-card__text {
  color: rgba(255, 255, 255, 1);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.check-card--no-link {
  cursor: default !important;
}

.check-card--no-link:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

.check-card--no-link:hover .check-card__text {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.check-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(226, 62, 22, 1);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 0.3rem;
}

.check-card__text {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  line-height: 1.4;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.check-card__date {
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-top: 0.4rem;
  line-height: 1.2;
}

/* Mobile responsive styling for check-card */
@media (max-width: 768px) {
  .check-card {
    position: static;
    display: block;
    margin: 1rem auto 0 auto;
    padding: 0.5rem 0.75rem;
    text-align: center;
    max-width: fit-content;
  }

  .check-card__title {
    font-size: 0.75rem;
  }

  .check-card__text {
    font-size: 1rem;
  }

  .check-card__date {
    font-size: 0.65rem;
  }
}


#wrapp-btn {
    transition: all 0.25s ease !important;
    background-color: rgba(226, 62, 22, 0.7) !important;
    border-color: rgba(226, 62, 22, 0.8) !important;
}

#wrapp-btn:hover,
#wrapp-btn:focus {
  background-color: rgba(215, 58, 22, 0.8) !important;
  border-color: rgba(215, 58, 22, 0.9) !important;
}


.btn--primary {
    transition: all 0.25s ease !important;
    background-color: rgba(226, 62, 22, 0.9) !important;
    border-color: rgba(226, 62, 22, 1) !important;
}

.btn--primary:hover,
.btn--primary:focus {
  background-color: rgba(215, 58, 22, 0.95) !important;
}


/* assets/css/style.scss */
/* make nav links smaller and header less tall */
.masthead {
  padding: 0.15rem 0 !important;
}

.masthead__menu {
  max-height: 2.5rem !important;
  overflow: visible;
  margin: 0rem 0rem !important;
}

.masthead__menu-item > a {
  font-size: 0.8rem !important;
  padding: 0rem 0rem !important;
  line-height: 1.5rem !important;
}

.masthead__inner-wrap {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.masthead__menu-item a {
      transition: color 0.3s ease !important;
}


.masthead__menu-item a:hover,
.masthead__menu-item a:focus {
  color: rgba(226,62,22,1);
}

.masthead__menu-item > a::before,
.masthead__menu-item > a::after {
    background-color: rgba(226, 62, 22, 1) !important;
    content: none !important;
}

/* Hamburger menu styling to match other menu items - multiple selectors */
.masthead .menu-trigger,
.masthead .masthead__menu-button,
.masthead__menu-trigger,
.masthead .fa-bars,
.masthead button,
.masthead [class*="menu"] button,
.masthead .menu-icon {
    color: inherit !important;
    transition: color 0.3s ease !important;
}

.masthead .menu-trigger:hover,
.masthead .menu-trigger:focus,
.masthead .masthead__menu-button:hover,
.masthead .masthead__menu-button:focus,
.masthead__menu-trigger:hover,
.masthead__menu-trigger:focus,
.masthead .fa-bars:hover,
.masthead .fa-bars:focus,
.masthead button:hover,
.masthead button:focus,
.masthead [class*="menu"] button:hover,
.masthead [class*="menu"] button:focus,
.masthead .menu-icon:hover,
.masthead .menu-icon:focus {
    color: rgba(226, 62, 22, 1) !important;
}

/* Minimal Mistakes hamburger menu styling */
.greedy-nav__toggle {
    color: inherit !important;
}

.greedy-nav__toggle:hover,
.greedy-nav__toggle:focus {
    color: rgba(226, 62, 22, 1) !important;
}

/* Target the hamburger bars specifically - preserve structure but change color */
.greedy-nav__toggle .navicon,
.greedy-nav__toggle .navicon::before,
.greedy-nav__toggle .navicon::after {
    background: currentColor !important;
}

/* Override any theme primary color on hamburger */
.greedy-nav__toggle .navicon {
    background: inherit !important;
}



a.site-title,
a.site-title:visited {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease !important;
}


a.site-title:hover,
a.site-title:focus {
  color: rgba(226, 62, 22, 1) !important;
}



.page__footer footer {
  padding-top: 0.1rem !important;
  padding-bottom: 0.1rem !important;
  margin-top: 1em !important;
  margin-bottom: 1em !important;
}

.page__footer {
    background-color: #171e29;
    color: rgba(234,234,234,1);
}

.page__footer a:hover {
    text-decoration: underline;
    color: rgba(234,234,234,1);
}

.git-sha {
  font-family: "Courier New", Courier, monospace;
}

/*
 * Full leaderboard
 */
/*
 * Full leaderboard
 */

// Base table styling (when NOT in a wrapper)
#leaderboard-baseline-compact,
#leaderboard-tournament-compact,
#leaderboard-table-full {
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  background-color: #fff;
  font-size: .55rem;
  margin-bottom: 0rem;
  margin-top: 1rem;
}

// Specific styling for compact table on home page
#leaderboard-baseline-compact,
#leaderboard-tournament-compact{
  border-radius: 15px;
  box-shadow: 0 5px 3px rgba(0,0,0,0.1), 0 10px 9px rgba(0,0,0,0.15);
  padding: 1rem;
  margin-top: -5rem;
}

// Table content styling
#leaderboard-baseline-compact table.dataTable,
#leaderboard-tournament-compact table.dataTable,
#leaderboard-table-full table.dataTable {
  font-size: 0.55rem;
}

.n-count {
  color: #b9b9b9;
}

// Column highlighting
#leaderboard-baseline-compact td:nth-child(4),
#leaderboard-tournament-compact td:nth-child(4),
#leaderboard-table-full td:nth-child(9) {
  background-color: rgba(226, 62, 22, 0.04);
}

// Wrapper styling (for pages with title/intro text)
.leaderboard-wrapper {
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  background-color: #fff;
  margin-top: 1rem;

  .leaderboard-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
  }

  p {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  ul, li {
    font-size: 0.75rem;
  }

  // Remove card styling from tables inside wrapper
  #leaderboard-baseline-compact,
  #leaderboard-tournament-compact,
  #leaderboard-table-full {
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
  }
}

// Special wrapper for home page compact table
.leaderboard-wrapper-home {
  border: 1px solid #ddd;
  border-radius: 15px;
  box-shadow: 0 5px 3px rgba(0,0,0,0.1), 0 10px 9px rgba(0,0,0,0.15);
  padding: 1rem;
  background-color: #fff;
  margin-top: -4.5rem;
  margin-left: 0.5rem;

  .leaderboard-title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
  }

  #leaderboard-baseline-compact,
  #leaderboard-tournament-compact {
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background-color: transparent;
  }
}
/*
 * Done
 */


/*
 * Datatables styling for drop down and search bar location
 */
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
  display: inline-flex;
  align-items: center;
  float: none;
  margin: 0 .1rem 0.2rem 0;
}

.dataTables_wrapper .dataTables_filter label,
.dataTables_wrapper .dataTables_length label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  gap: 0.25rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  height: 2.6em;
  margin: 0;
  line-height: normal;
}

// Ensure the top controls and table are properly aligned
.dataTables_wrapper .dataTables_length {
  float: left !important;
}

.dataTables_wrapper .dataTables_filter {
  float: right !important;
}

.dataTables_wrapper .dataTables_processing {
  float: left !important;
  clear: both;
}

// Make sure the table and controls container have consistent width
.dataTables_wrapper {
  width: 100% !important;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  width: auto !important;
  min-width: 0 !important;
}

// Ensure the table itself takes full width
.dataTables_wrapper table.dataTable {
  width: 100% !important;
  max-width: 100% !important;
}

// Override external DataTables CSS with more specific selectors
.leaderboard-wrapper-home .dataTables_wrapper .dataTables_length {
  float: left !important;
  width: auto !important;
}

.leaderboard-wrapper-home .dataTables_wrapper .dataTables_filter {
  float: right !important;
  width: auto !important;
}

.leaderboard-wrapper-home .dataTables_wrapper {
  width: 100% !important;
}

.leaderboard-wrapper-home .dataTables_wrapper table.dataTable {
  width: 100% !important;
  max-width: 100% !important;
}

.dataTables_wrapper table.dataTable tbody tr:hover {
  background-color: rgba(226, 62, 22, 0.08) !important;
}

/*
 * Mobile Responsive Styles
 */
@media (max-width: 768px) {
  // Stack sections vertically on mobile
  .baseline-section > div {
    flex-direction: column !important;
  }

  .tournament-section > div {
    flex-direction: column-reverse !important;
  }

  // Make text and table sections full width on mobile
  .baseline-section > div > div,
  .tournament-section > div > div {
    flex: none !important;
    width: 100% !important;
    margin: 0 0 4rem 0 !important;
    padding: 0 !important;
  }

  // Center text content on mobile
  .baseline-section [style*="justify-content"],
  .tournament-section [style*="justify-content"] {
    justify-content: center !important;
  }

  // Adjust text width for mobile
  .baseline-section [style*="width:450px"],
  .tournament-section [style*="width:450px"] {
    width: 90% !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  // Adjust section margins on mobile - ensure full coverage
  .baseline-section {
    margin: -2rem -20vw 0 -20vw !important;
    padding: 2rem 20vw 2rem 20vw !important;
  }

  .tournament-section {
    margin: 0 -20vw -3rem -20vw !important;
    padding: 2rem 20vw 3rem 20vw !important;
  }

  // Adjust wave separator on mobile
  .wave-separator {
    margin: -2rem -20vw 0 -20vw !important;
    height: 60px !important;
  }
}

/*
 * Done
 */


.site-feature-card,
.site-feature-card-row-1 {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 0rem;
  margin-top: 1rem;
}


.site-feature-row__title {
  width: 100%;
  font-size: 1.5rem;
  margin: 0 0 1rem;
  text-align: left;
}

.site-feature-row__content {
  display: flex;
  align-items: flex-start;
  padding-top: 0;
  gap: 1rem;
}


.site-feature-row__content-small {
  display: flex;
  align-items: flex-start;
  padding-top: 0;
  gap: 1rem;
  font-size: 0.55rem;
}


.site-feature-row__left-2 {
  flex: 2;
  padding-right: 1rem;

  p {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  ul, li {
    font-size: 0.75rem;
  }
}

.site-feature-row__right-3 {
  flex: 3;
  max-width: 60%;

  p {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  ul, li {
    font-size: 0.75rem;
  }
}

.site-feature-row__left-3 {
  flex: 3;
  max-width: 60%;

  p {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  ul, li {
    font-size: 0.75rem;
  }
}

.site-feature-row__right-2 {
  flex: 2;
  padding-left: 1rem;

  p {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  ul, li {
    font-size: 0.75rem;
  }
}


.citation {
  position: relative;
}

.citation pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: monospace;
  font-size: 0.6rem;
  background-color: rgba(234,234,234);//#e0e0e0;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 1rem;
  margin: 0;
  overflow-x: auto;
}

.copy-button {
  position: absolute;
  top: 6px;
  right: 6px;
  background: transparent;
  border: none;
  border-radius: 3px;
  padding: 4px;
  cursor: pointer;
  font-size: 14px;
  color: #888;
  transition: all 0.2s ease;
  z-index: 10;
  outline: none;
}

.copy-button:hover {
  color: #555;
}

.copy-button:focus {
  outline: none;
}

.copy-button.copied {
  color: #333;
  transform: scale(0.9);
}

.copy-button.copied i {
  display: none;
}

.copy-button.copied::after {
  content: "✓";
  font-style: normal;
  color: #059669;
}





/* Info and pagination on same line */
.info-pagination-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.info-pagination-wrapper .dataTables_info {
  flex: 1;
  min-width: 200px;
}

.info-pagination-wrapper .dataTables_paginate {
  flex-shrink: 0;
}

/*
 * Explore page chart styles
 */
.chart-container {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
}

.controls {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.control-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Balance spacing between sections on desktop */
@media (min-width: 900px) {
  .control-section:nth-child(2) {
    margin-left: 20px;
  }

  .control-section:nth-child(3) {
    margin-right: 20px;
  }
}

.control-label {
  font-weight: 600;
  color: #1e293b;
  font-size: 15px;
  margin-bottom: 8px;
}

/* Question Source - Segmented Control */
.segmented-control {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 8px;
  padding: 3px 2px;
  position: relative;
}

.segmented-control::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 2px;
  width: calc(33.333% - 1.33px);
  height: calc(100% - 6px);
  background: linear-gradient(135deg, rgba(226, 62, 22, 0.9), rgba(226, 62, 22, 0.8));
  border-radius: 5px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.segmented-control:has(#type_dataset:checked)::before {
  transform: translateX(100%);
}

.segmented-control:has(#type_market:checked)::before {
  transform: translateX(200%);
}

.segmented-option {
  position: relative;
  z-index: 2;
  flex: 1;
}

.segmented-option input[type="radio"] {
  display: none;
}

.segmented-option label {
  display: block;
  padding: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  border-radius: 5px;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  margin: 0;
  line-height: 1.2;
  text-align: center;
  min-width: 60px;
}

.segmented-option input[type="radio"]:checked + label {
  color: #ffffff;
  font-weight: 600;
}

/* Benchmarks - Tag Selection */
.tag-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-option {
  position: relative;
}

.tag-option input[type="checkbox"] {
  display: none;
}

.tag-option label {
  display: inline-block;
  padding: 6px 12px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  transition: all 0.2s ease;
  user-select: none;
}

.tag-option input[type="checkbox"]:checked + label {
  background: rgba(226, 62, 22, 0.1);
  border-color: rgba(226, 62, 22, 0.3);
  color: rgba(226, 62, 22, 0.9);
}

.tag-option label:hover {
  border-color: rgba(226, 62, 22, 0.2);
  background: rgba(226, 62, 22, 0.05);
}

/* Toggle Switch */
.toggle-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.3s;
  border-radius: 24px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input[type="checkbox"]:checked + .toggle-slider {
  background-color: rgba(226, 62, 22, 0.8);
}

input[type="checkbox"]:checked + .toggle-slider:before {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}

/* Responsive layout */
@media (min-width: 900px) {
  .controls {
    grid-template-columns: 1fr 2.2fr 1.2fr;
    align-items: start;
  }
}

/* Move Options to its own row at medium screen sizes */
@media (min-width: 900px) and (max-width: 1272px) {
  .controls {
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto auto;
    align-items: start;
  }

  .control-section:nth-child(3) {
    grid-column: 1 / -1;
    margin-right: 0;
    margin-top: 16px;
  }
}

/* Better responsive behavior for narrow screens */
@media (max-width: 1024px) {
  .toggle-label {
    font-size: 13px;
  }

  .toggle-section {
    gap: 8px;
  }
}

/* Stack controls vertically on very narrow screens */
@media (max-width: 640px) {
  .controls {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .toggle-section {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .toggle-label {
    font-size: 12px;
  }
}

#chart {
  min-height: 500px;
}

/* CSS variables for chart theming */
:root {
  --chart-bg: #fefefe;
  --chart-text: #1f2937;
  --chart-grid: rgba(148, 163, 184, 0.2);
  --chart-grid-major: rgba(148, 163, 184, 0.3);
  --chart-axes: #64748b;
  --chart-point: #93a3b5;
  --chart-point-hover: rgb(18, 23, 31);
  --chart-sota: #ea580c;
  --chart-sota-hover: #dc2626;
  --chart-sota-ring: #ea580c;
  --chart-error: #dc2626;
  --chart-ref: #6b7280;
  --chart-ref-line: #d1d5db;
  --chart-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Grid styling with subtle lines */
.grid line {
  stroke: var(--chart-grid);
  stroke-width: 0.8;
  opacity: 0.7;
}

.grid line:nth-child(5n) {
  stroke: var(--chart-grid-major);
  stroke-width: 1;
  opacity: 0.9;
}

/* Axis styling with better typography */
.axis path, .axis line {
  stroke: var(--chart-axes);
  stroke-width: 1.2;
  shape-rendering: crispEdges;
}

/* Chart border to match axes */
.chart-border {
  stroke: var(--chart-axes);
  stroke-width: 1.2;
  shape-rendering: crispEdges;
}

.axis text {
  fill: var(--chart-text);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--chart-font);
}

/* Axis labels with better typography */
.ylabel, .xlabel {
  fill: var(--chart-text);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--chart-font);
}

/* Reference lines with subtle styling */
.refline {
  stroke: var(--chart-ref);
  stroke-width: 1;
  stroke-dasharray: 6 3;
  opacity: 0.6;
}

.reflabel {
  fill: var(--chart-ref);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--chart-font);
}

/* Enhanced trend line */
.trend-line {
  stroke: var(--chart-sota);
  stroke-width: 2.5;
  stroke-dasharray: 8 4;
  opacity: 0.8;
  filter: drop-shadow(0 1px 2px rgba(234, 88, 12, 0.2));
}

/* Confidence band around trend line */
.confidence-band {
  fill: rgba(234, 88, 12, 0.15);
  opacity: 0.7;
  stroke: none;
}

/* Improved legend styling */
.legend-text {
  fill: var(--chart-text);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--chart-font);
}

/* Enhanced legend box */
.legend rect {
  fill: #f8fafc !important;
  stroke: #e2e8f0;
  stroke-width: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.intersection-display rect {
  fill: #f8fafc !important;
  stroke: #e2e8f0;
  stroke-width: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

/* Enhanced point styling with shadows and hover effects */
.point-all {
  fill: var(--chart-point);
  fill-opacity: 0.8;
  filter: drop-shadow(0 1px 2px rgba(147, 163, 181, 0.25));
  transition: all 0.2s ease;
}

.point-all:hover {
  fill: var(--chart-point-hover);
  fill-opacity: 0.95;
  filter: drop-shadow(0 2px 4px rgba(147, 163, 181, 0.4));
}

.point-sota {
  fill: var(--chart-sota);
  filter: drop-shadow(0 2px 3px rgba(234, 88, 12, 0.3));
  transition: all 0.2s ease;
}

.point-sota:hover {
  fill: var(--chart-sota-hover);
  filter: drop-shadow(0 3px 6px rgba(234, 88, 12, 0.5));
}

.point-ring {
  fill: none;
  stroke: var(--chart-sota-ring);
  stroke-width: 2.5;
  opacity: 0.8;
}

/* Error bars with better styling */
.errorbar {
  stroke: var(--chart-error);
  stroke-width: 2;
  opacity: 0.7;
  stroke-linecap: round;
}

/* Model labels with better typography */
.lab {
  font-size: 11px;
  text-anchor: middle;
  fill: var(--chart-text);
  font-weight: 600;
  font-family: var(--chart-font);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.tooltip {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: white;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  font-family: var(--chart-font);
}

.selection-rect {
  fill: rgba(234, 88, 12, 0.12);
  stroke: rgba(234, 88, 12, 0.6);
  stroke-width: 1.5;
  stroke-dasharray: 6 3;
  opacity: 0.9;
}


.instruction {
  font-size: 13px;
  color: #64748b;
  margin-top: 12px;
  margin-left: 64px;
  font-style: italic;
  font-weight: 500;
  text-align: left;
  font-family: var(--chart-font);
}

@media (max-width: 768px) {
  .instruction {
    display: none;
  }
}
/*
 * Use browser default text selection colors for consistency with other websites
 */
::selection {
  background: Highlight;
  color: HighlightText;
}

::-moz-selection {
  background: Highlight;
  color: HighlightText;
}

/*
 * End explore page styles
 */

/*
 * Team section styling
 */
.team-section {
  h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e293b;
  }

  p {
    font-size: 0.75rem;
    color: #64748b;
  }
}

.team-intro {
  margin-bottom: 2rem !important;
  font-size: 0.75rem !important;
  color: #1e293b !important;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.team-member {
  text-align: center;

  h3 {
    font-size: 0.65rem;
    font-weight: 600;
    margin: 0.4rem 0 0.2rem 0;
    color: #1e293b;
  }
}

.team-role {
  font-size: 0.6rem !important;
  color: #64748b;
  margin: 0;
  line-height: 1.2;
}

.team-link {
  font-size: 0.6rem !important;
  margin: -0.5rem 0 0 0 !important;
  line-height: 1 !important;
  padding: 0 !important;

  a {
    color: #94a3b8;
    text-decoration: none;
    font-style: normal;
    font-weight: 400;
    transition: color 0.3s ease;

    &:hover {
      color: rgba(226, 62, 22, 1);
    }
  }
}

.team-photo-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-radius: 50%;
  border: 2px solid #f1f5f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  position: relative;

  &::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.5;
  }
}

.team-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid #f1f5f9;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
  }

  .team-photo-placeholder,
  .team-photo {
    width: 90px;
    height: 90px;
  }

  .team-member h3 {
    font-size: 0.6rem;
  }

  .team-role {
    font-size: 0.4rem;
  }
}
/*
 * End team section styles
 */

/*
 * Chart card styling for home page
 */
.chart-card-home {
  border: 1px solid #ddd;
  border-radius: 15px;
  box-shadow: 0 5px 3px rgba(0,0,0,0.1), 0 10px 9px rgba(0,0,0,0.15);
  padding: 2rem;
  background-color: #fff;
  max-width: 1000px;
  width: 100%;
}

.chart-section-home {
  .chart-container {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
  }

  #chart {
    min-height: 500px;
  }
}

/* Responsive adjustments for chart section */
@media (max-width: 768px) {
  .chart-section-home {
    padding: 2rem 20vw 3rem 20vw !important;
    margin: 0 -20vw -3rem -20vw !important;
  }

  .chart-section-home h1 {
    font-size: 1.5rem;
    line-height: 1.3;
    padding: 0 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .chart-card-home {
    padding: 1rem;
  }

  .chart-section-home #chart {
    min-height: 400px;
  }

  .wave-separator-inverted {
    margin: 0 -20vw 0 -20vw !important;
    height: 60px !important;
  }

  // Docs page mobile layout adjustments
  .site-feature-card .site-feature-row__content,
  .site-feature-card-row-1 .site-feature-row__content {
    flex-direction: column !important;
  }

  .site-feature-row__left-2,
  .site-feature-row__right-3,
  .site-feature-row__left-3,
  .site-feature-row__right-2 {
    flex: none !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 1rem;
  }

  // Stack citation below button on mobile
  #iclr2025 .site-feature-row__content {
    flex-direction: column !important;
  }

  #iclr2025 .site-feature-row__left-2,
  #iclr2025 .site-feature-row__right-3 {
    width: 100% !important;
    max-width: 100% !important;
  }
}
