:root {
    /* Colors */
    --blue_1: #00ade2;
    --primary_1: #ffffff;
    --primary_1_opacity75: rgba(255, 255, 255, 0.75); /* used for nav bar opacity change */
    --primary_2: #60b4ce;

    --special_1: #f39130;
    --special_2: #ff9c3a;

    --modal_shadow: rgba(0, 0, 0, 0.5);

    --bg_color: var(--primary_1);
    --fg_color: var(--primary_1);
    --disabled_color: var(--primary_1);
    --text_color: var(--primary_2);
    --line_color: var(--primary_1);
    --line_color_shiny: var(--primary_1);
    --text_color_shiny: var(--primary_1);

    /* Font Family – modern sans-serif */
    --logo-font-family: "Orbitron", sans-serif;
    --font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Headers */
    --font-hero-size: clamp(2.75rem, 8vw + 1rem, 8rem);
    --font-hero-weight: 800;
    --font-hero-line-height: 1;
    --font-hero-letter-spacing: 0.02rem;

    --font-header-size: 5rem;
    --font-header-weight: 600;
    --font-header-line-height: 1;
    --font-header-letter-spacing: 0.02rem;

    --font-subheader-size: 2.0rem;
    --font-subheader-weight: 600;
    --font-subheader-line-height: 1.2;
    --font-subheader-letter-spacing: 0.01rem;

    --font-subheader-small-size: 1.2rem;
    --font-subheader-small-weight: 600;
    --font-subheader-small-line-height: 1.2;
    --font-subheader-small-letter-spacing: 0.01rem;

    /* Body & UI Text */
    --font-body-size: 1.00rem;
    --font-body-weight: 400;
    --font-body-weight-bold: 700;
    --font-body-line-height: 1.6;
    --font-body-letter-spacing: 0.01rem;

    --font-data-size: 0.9rem;
    --font-data-weight: 400;
    --font-data-weight-bold: 700;
    --font-data-line-height: 1.2;
    --font-data-letter-spacing: 0.005rem;

    --font-caption-size: 0.75rem;
    --font-caption-weight: 300;
    --font-caption-line-height: 1.2;
    --font-caption-letter-spacing: 0.005rem;

    --font-label-size: 0.875rem;
    --font-label-weight: 400;
    --font-label-line-height: 1.2;
    --font-label-letter-spacing: 0.005rem;

    --font-button-size: 1rem;
    --font-button-weight: 700;
    --font-button-line-height: 1.6;
    --font-button-letter-spacing: 0.01rem;

    /* New: Card Title for feature/pricing cards */
    --font-card-title-size: 1.75rem;
    --font-card-title-weight: 600;
    --font-card-title-line-height: 1.2;
    --font-card-title-letter-spacing: 0.01rem;

    /* Spacing */
    --spacing-xlarge: 32px;
    --spacing-large: 16px;
    --spacing-medium: 12px;
    --spacing-small: 8px;

    /* Other Settings */
    --border_radius_card: 1rem;
    --border_radius_button: 0.5rem;
    --border: 1px solid var(--primary_2);
    --border_action: 1px solid var(--primary_2);

	--sidebar-expanded-width: 250px;
	--sidebar-collapsed-width: 50px;
    --sidebar-item-height: 48px;

    --home-page-width: 80%;

    /* --aspect_ratio: 3 / 1; */

    /* "Golden Ratio" Edward Tufte */
    /* --aspect_ratio: 1.618 / 1; */
    --aspect_ratio: 2 / 1;
}

/* Dark Mode Overrides */
.dark-mode {
    --primary_1_opacity75: rgba(23,23,23,0.75); /* used for nav bar opacity change */
    --modal_shadow: rgba(82, 82, 82, 0.5);
    --bg_color: var(--primary_2);
    --fg_color: var(--primary_1);
    --disabled_color: var(--primary_1);
    --text_color: var(--primary_1);
    --line_color: var(--primary_1);
    --line_color_shiny: var(--primary_1);
    --text_color_shiny: var(--primary_1);
    --border: 1px solid var(--line_color);
}

/* =========================
     Typography Utility Classes
=========================== */
.typo-hero {
    font-size: var(--font-hero-size);
    font-weight: var(--font-hero-weight);
    line-height: var(--font-hero-line-height);
    letter-spacing: var(--font-hero-letter-spacing);
    white-space: nowrap;
}
.typo-header {
    font-size: var(--font-header-size);
    font-weight: var(--font-header-weight);
    line-height: var(--font-header-line-height);
    letter-spacing: var(--font-header-letter-spacing);
}
.typo-subheader {
    font-size: var(--font-subheader-size);
    font-weight: var(--font-subheader-weight);
    line-height: var(--font-subheader-line-height);
    letter-spacing: var(--font-subheader-letter-spacing);
}
.typo-subheader-small {
    font-size: var(--font-subheader-small-size);
    font-weight: var(--font-subheader-small-weight);
    line-height: var(--font-subheader-small-line-height);
    letter-spacing: var(--font-subheader-small-letter-spacing);
}
.typo-body {
    font-size: var(--font-body-size);
    font-weight: var(--font-body-weight);
    line-height: var(--font-body-line-height);
    letter-spacing: var(--font-body-letter-spacing);
}
.typo-body-bold {
    font-size: var(--font-body-size);
    font-weight: var(--font-body-weight-bold);
    line-height: var(--font-body-line-height);
    letter-spacing: var(--font-body-letter-spacing);
}
.typo-data {
    font-size: var(--font-data-size);
    font-weight: var(--font-data-weight);
    line-height: var(--font-data-line-height);
    letter-spacing: var(--font-data-letter-spacing);
}
.typo-data-bold {
    font-size: var(--font-data-size);
    font-weight: var(--font-data-weight-bold);
    line-height: var(--font-data-line-height);
    letter-spacing: var(--font-data-letter-spacing);
}
.typo-caption {
    font-size: var(--font-caption-size);
    font-weight: var(--font-caption-weight);
    line-height: var(--font-caption-line-height);
    letter-spacing: var(--font-caption-letter-spacing);
}
.typo-label {
    font-size: var(--font-label-size);
    font-weight: var(--font-label-weight);
    line-height: var(--font-label-line-height);
    letter-spacing: var(--font-label-letter-spacing);
}
.typo-button {
    font-size: var(--font-button-size);
    font-weight: var(--font-button-weight);
    line-height: var(--font-button-line-height);
    letter-spacing: var(--font-button-letter-spacing);
}
/* New: Card Title */
.typo-card-title {
    font-size: var(--font-card-title-size);
    font-weight: var(--font-card-title-weight);
    line-height: var(--font-card-title-line-height);
    letter-spacing: var(--font-card-title-letter-spacing);
}

.text-danger {
    color: var(--red_1) !important;
}
/* =========================
     Base & Global Styles
=========================== */
* {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, footer, html, .section, .panel {
    background-color: var(--bg_color);
    color: var(--text_color);
    font-size: var(--font-body-size);
    font-weight: var(--font-body-weight);
    line-height: var(--font-body-line-height);
    letter-spacing: var(--font-body-letter-spacing);
}

html {
  scroll-behavior: smooth;
}

/* Define keyframes for text fade and slide in */
@keyframes fadeSlideIn {
	from {
		opacity: 0;
		transform: translateX(10px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Define keyframes for sliding the polyline */
@keyframes slideRight {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(115px);
	}
}

nav {
    padding: 0.25rem 0.5rem;
    /* margin: auto; */
}

hr {
    border: 1.5px solid var(--primary_1);
}

/* Prevent nav dropdowns or other elements from stretching page width */
nav, .dropdown-menu {
    /* max-width: 70% !important; */
    overflow-x: visible;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure it takes at least the full height of the viewport */
}

a {
    text-decoration: none;
    color: inherit;
}

li {
    /* Inherits font-size from parent */
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

textarea {
      resize: vertical;
}

textarea.form-control {
      min-height: 15rem;
}

.form-control {
      display: block;
      width: 100%;
      padding: 0.55rem 0.75rem;
      /* margin: 0; */
      font-family: inherit;
      font-size: inherit;
      line-height: inherit;
      color: var(--primary_2);
      background-color: var(--fg_color);
      border: var(--border);
      border-radius: var(--border_radius_button);
}

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

.disabled {
    pointer-events: none;
}


/* Responsive Navigation */
@media (max-width: 768px) {
    .container {
      max-width: 95%;
      margin: 0 auto;
      padding: 0 1rem;
    }
}

/* Filters Container */
.filters-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-right: 1rem;
}

/* Filter Group */
.filter-group {
    /* Instead of flex row, stack them vertically */
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-medium);
}

.filter-group:last-child {
    margin-bottom: 0px;
}

.filter-group select {
    padding: 0.3rem 0.5rem;
    border: var(--border);
    border-radius: var(--border_radius_button);
    background-color: var(--fg_color);
    color: var(--text_color);
    cursor: pointer;
    width: 100%;
}

.filter-group label {
    /* Remove the fixed width and put some bottom spacing */
    min-width: auto;
    margin-bottom: var(--spacing-small);
}

/* .filter-group select:focus {
    outline: 1px solid var(--primary_2);
} */

/* Dark Mode Toggle */
.dark-mode-toggle {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border-radius: var(--border_radius_button);
}

/* Optional: Rotate the icon when active */
.dark-mode-toggle.active i.fa-moon {
    display: none;
}

.dark-mode-toggle.active i.fa-sun {
    display: inline-block;
}

.dark-mode-toggle i.fa-sun {
    display: none;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: calc(-1 * var(--nav-height)) auto auto auto;
    text-align: center;
    min-height: calc(100vh) !important;
}

/* Hero Container - Wraps the left and right sections */
.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Left Side of Hero Section */
.hero-left {
    flex: 1;
    max-width: 100%;
    padding-left: 2rem;
    text-align: left;
}

/* Right Side of Hero Section (Sign-up Form) */
.hero-right {
    flex: 1;
    padding-right: 2rem;
    padding-left: 2rem;
    text-align: right;
}


/* Responsive Hero Section */
@media (max-width: 1450px) {
    .hero {
      flex-direction: column; /* Stack vertically */
      text-align: center; /* Center align text */
    }

    .hero-left,
    .hero-right {
      flex: 100%;
      max-width: 100%;
      padding: 1rem 0;
    }

    /* Optional: Adjust the background or spacing */
    .hero-right {
      margin-top: 2rem; /* Space between sections */
    }
}

/* Sign-up Form Container */
.signup-form {
    display: flex;
    flex-direction: column;
}

/* Form Group Wrapper */
.form-group {
    margin-bottom: 1rem;
    /* border: var(--border); */
    /* border-radius: var(--border_radius_button); */
}

/* Form Labels */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text_color);
}

/* Form Inputs */
.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: var(--border);
    border-radius: 0.4rem;
    box-sizing: border-box;
    font-size: var(--font-body-size);
}



/* Pushable Buttons */
.buttonnn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.66rem;
    border-radius: var(--border_radius_button);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pushable {
    position: relative;
    display: inline-flex;
    border-radius: var(--border_radius_button);
    cursor: pointer;
    overflow: visible;
}

.front {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: var(--border_radius_button);
    will-change: transform;
    position: relative;
    z-index: 10;
}

.front-btn {
    background-color: var(--special_1);
    /* border: var(--border); */
    border: none;
    color: var(--primary_1);
}
.front-btn:hover {
    background-color: var(--special_2);
}

.front-btn-action {
    background-color: var(--fg_color);
    border: var(--border_action);
    color: var(--text_color);
}
.front-btn-action:hover {
    background-color: var(--primary_2);
    color: var(--primary_1);
}

.front-card {
    background-color: var(--fg_color);
    border: var(--border);
    color: var(--text_color);
}
.front-card:hover {
    border-color: var(--primary_2);
}

@keyframes shine {
    0% {
      transform: translateX(-100%) translateY(-50%);
    }
    100% {
      transform: translateX(100%) translateY(-50%);
    }
}

/* Section Wrapper */
.section {
    padding: 2.5rem 1rem;
    /* margin-top: 0.5rem; */
}

.wrapper {
    position: relative;
}

/* -------------  PANEL  ------------- */
.panel{
    /* let it be at least a screen tall for nice desktop scrolling */
    min-height:calc(100vh - var(--nav-height,0px));
    height:auto;                       /* ← key change: no hard cap  */
    display:flex; flex-direction:column;
    justify-content:center;            /* keeps short panels centred */
    padding:2.5rem 1rem;               /* same as .section */
}

/* on small screens stop centring – start at top */
@media(max-width:767px){
    .panel { 
        margin: auto;
        padding: 0;
    }
}
.panel-inner {
    width: var(--home-page-width);
    margin: 2rem auto;
}   

/* Card Class */
.card {
    min-width: 300px;
    border: none;
    background-color: var(--primary_1);
    border-radius: var(--border_radius_card);
    padding: var(--spacing-medium);
    margin: var(--spacing-xlarge);
}

.card-special {
    background: linear-gradient(to top right, rgb(79, 171, 197), var(--primary_2));
    color: var(--text_color);
    box-shadow: var(--primary_2_shadow);
}

#data-container .card-graph {
    /* margin-left: var(--sidebar-collapsed-width); */
    width: calc(100vw - var(--sidebar-expanded-width) - calc(2 * var(--spacing-xlarge)));
    transition: width 0.3s ease;
}

#data-container.collapsed .card-graph {
    /* margin-left: var(--sidebar-expanded-width); */
    width: calc(100vw - var(--sidebar-collapsed-width) - calc(2 * var(--spacing-xlarge)));
    transition: width 0.3s ease;
}

.features-grid
, .testimonial-grid
, .extended-charts-grid
, .pricing-grid
, .graph-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xlarge);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 576px) {
    .features-grid,
    .pricing-grid,
    .testimonial-grid,
    .extended-charts-grid,
    .graph-grid {
      grid-template-columns: 1fr;
    }
}

/* Container for cost-line rows */
.cost-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.3rem 0;
    position: relative;
    padding-right: 0.5rem;
    color: var(--text_color);
}

.cost-line span {
    z-index: 2;
    padding: 0 0.25rem;
}

.cost-line.total {
    margin-top: 0.5rem;
    border-top: var(--border);
    font-weight: var(--font-subheader-weight); /* Semi-bold */
}

.math-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.math-details.show {
    max-height: 600px; /* or a large value that accommodates the content */
}

/* Update individual pricing plan cards */
.plan
, .comp-roles {
    margin: 0; /* remove extra margins */
    padding: 1rem; /* adjust internal spacing */
    display: flex;
    flex-direction: column;
    height: 100%; /* makes cards equal height if content allows */
    text-align: center;
}

.comp-roles:hover {
    box-shadow: var(--primary_2_shadow);
    transform: translateY(-2px);
    cursor: pointer;
    transition: box-shadow .18s ease, transform .18s ease;
}

/* Optional: force call-to-action area to the bottom for alignment */
.price {
    margin: 1rem 0;
}

.plan-features {
    list-style: none;
    text-align: left;
    margin: 1rem auto;
    max-width: 80%;
    line-height: 1.6;
}

/* Base slider styling */
input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    /* Default background with the filled portion based on initial value */
    background: linear-gradient(
      to right,
      var(--primary_2) 0%,
      var(--primary_2) 1%,
      var(--bg_color) 1%,
      var(--bg_color) 100%
    );
    border: none;
    border-radius: 4px;
    outline: none;
    margin: var(--spacing-small) 0;
}

/* Webkit browsers (Chrome, Safari) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary_2);
    cursor: pointer;
    margin-top: calc(-1 * var(--spacing-small)); /* Centers thumb on the track */
    transition: background 0.3s ease;
    border: none;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: var(--primary_2);
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary_2);
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
}

input[type="range"]::-moz-range-thumb:hover {
    background: var(--primary_2);
}

/* Styling for the track on Firefox */
input[type="range"]::-moz-range-track {
    background: transparent; /* We'll handle the background on the input */
    height: 8px;
    border-radius: 4px;
}

/* IE and Edge */
input[type="range"]::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary_2);
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
}

input[type="range"]::-ms-thumb:hover {
    background: var(--primary_2);
}

input[type="range"]::-ms-track {
    background: transparent;
    border-color: transparent;
    color: transparent;
}

/* Responsive Typography */
@media (max-width: 1200px) {
    .typo-header {
      font-size: calc(var(--font-header-size) * 0.8);
    }
    .typo-subheader {
      font-size: calc(var(--font-subheader-size) * 0.8);
    }
}

@media (max-width: 992px) {
    .typo-header {
      font-size: calc(var(--font-header-size) * 0.75);
    }
    .typo-subheader {
      font-size: calc(var(--font-subheader-size) * 0.75);
    }
}

@media (max-width: 768px) {
    .typo-header {
      font-size: calc(var(--font-header-size) * 0.7);
    }
    .typo-subheader {
      font-size: calc(var(--font-subheader-size) * 0.7);
    }
    .sparkline {
      width: 60px;
    }
    .buttonnn {
      padding: 0.8rem 1.5rem;
    }

    /* Adjust Filters on Smaller Screens */
    .filters-container {
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      margin-right: 0;
    }

    .filter-group {
      width: 100%;
    }

    .filter-group select {
      width: 100%;
      background-color: var(--fg_color);
    }
}

@media (max-width: 576px) {
    .typo-header {
      font-size: calc(var(--font-header-size) * 0.65); /* 2.6rem */
    }
    .typo-subheader {
      font-size: calc(var(--font-subheader-size) * 0.65); /* 1.3rem */
    }
    .sparkline {
      width: 50px;
    }
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: var(--modal_shadow); /* Black w/ opacity */
}

.modal-content {
    background-color: var(--bg_color);
    margin: 20% auto;
    padding: var(--spacing-large);
    border: var(--border);
    border-radius: var(--border_radius_card);
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 80%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    color: var(--text_color);
}

/* Close Button */
.close-button {
    color: var(--text_color);
    float: right;
    font-weight: var(--font-subheader-weight);
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close-button:hover,
.close-button:focus {
    color: var(--red_1);
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .modal-content {
      width: 95%;
      margin: 20% auto;
    }
}

/* Footer Styles */
footer {
    padding: var(--spacing-large) var(--spacing-large);
    justify-content: center;
    align-items: center;
    margin-top: auto; /* Push the footer to the bottom */
}
.footer-container {
    display: flex;
    justify-content: space-between; /* Evenly distribute space between sections */
    align-items: flex-start; /* Align items at the top */
    max-width: 50%;
    margin: 0 auto;
}
.footer-container div {
    text-align: center;
}
.footer-container h4 {
    margin-bottom: 0.7rem;
}
.footer-container ul {
    list-style: none;
    line-height: 1.6;
}
.social-icons a {
    margin-right: 0.5rem;
}
.social-icons a:last-child {
    margin-right: 0rem;
}
.social-icons a:hover {
    color: var(--blue_1);
}

a.color-me-pink:hover {
    color: var(--primary_2);
}
.footer-bottom {
    text-align: center;
    margin-top: 1.2rem;
    opacity: 0.9;
    margin-left: auto;
}

/* Multi-Line Chart Styles */
.multiline {
    width: 100%;
    height: 100%;
}

/* Charts */
svg {
    aspect-ratio: var(--aspect_ratio);
    /* aspect-ratio: 3 / 1; */
    /* width: 100%; */
    /* max-height: 50%; */
    /* background-color: red; */
}

svg.sparkline {
    aspect-ratio: 10 / 1;
    width: 100%;
}

/* The visible state for the table container */
.table-container {
    overflow: auto;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 1000px;   /* Adjust as needed; must be high enough to contain the table */
    opacity: 1;
    visibility: visible;
}

/* The hidden state for the table container */
.hidden-table {
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
    overflow: hidden;
}

/* Ensure smooth transitions for table actions */
.table-actions {
    transition: opacity 0.3s ease;
}

.chart-wrapper {
  flex: 1 1 auto;              /* grow to fill the item-content */
  width: 100%;
  display: flex;
}
/* if you're using an SVG: */
.chart-wrapper svg {
  width: 100%;
  height: 100%;
  object-fit: contain;         /* or cover, depending on your needs */
}

.chart-row{
    display:grid;
    grid-template-columns:1fr 2fr;
    gap:var(--spacing-large);
    align-items:center;       /* ← put headings at top, looks cleaner   */
    width:100%;
    margin:0 auto;
}
@media(max-width:768px){
    .chart-row{ grid-template-columns:1fr; }
}

/* CSS */

/* Tooltip styling */
.tooltip {
    position: fixed;
    background-color: var(--fg_color);
    border: var(--border);
    padding: var(--spacing-small);
    border-radius: 0.2rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 99999;
    white-space: wrap; /* Prevent tooltip from expanding to container's width */
    max-width: 200px; /* Optional: Limit the maximum width of the tooltip */
}

/* Container for the charts */
#chart-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    min-height: 400px;
    position: relative; /* Ensure the container is positioned relative */
}

/* Each subchart container */
.subchart {
    padding-bottom: var(--spacing-medium);
    min-height: 300px;
    width: 100%;
    position: relative; /* Ensure each subchart is positioned relative */
}


/* Consistent font styles for axes, legend, and tooltip. */
.x-axis text,
.y-axis text,
.legend text,
.tooltip {
    fill: var(--text_color); /* for SVG-based text */
}
.tooltip {
    color: var(--text_color); /* for HTML-based text */
}

/* Compensation Table Styles */
.comp-table {
    margin-top: var(--spacing-large);
    width: 100%;
    border-collapse: separate;          /* Keep separate for rounded corners */
    border-spacing: 0;                      /* Removes spacing between cells */
    table-layout: fixed;                  /* Ensures consistent column widths */
    overflow:scroll;                     /* Clips any overflowing content to maintain rounded corners */
}

/* Ensure trend-column cells always maintain their height */
.trend-column {
    transition: opacity 0.5s ease;
    /* Do not change width or padding so that the row height is preserved */
}
/* Apply borders only to top and left of cells */
.comp-table th,
.comp-table td {
    padding: var(--spacing-large);
    text-align: left;
    white-space: nowrap;                                      /* Prevents text from wrapping */
    vertical-align: middle;                        /* Vertically centers content */
}

/* Extra Column Styles */
.extra-column {
    width: 0;                              /* Collapse width */
    padding: 0 !important;                            /* Remove padding */
    overflow: hidden;                      /* Hide overflow content */
    transition: width 0.5s ease, padding 0.5s ease; /* Smooth transition */
}

/* Extra Column Content */
.extra-column .extra-content {
    opacity: 0;                             /* Hide content when collapsed */
    transition: opacity 0.5s ease;                /* Smooth transition */
}

/* Static Column Styles */
.static-column {
    width: 150px;                          /* Fixed width for static columns */
}

/* Expanded Table Styles */
.comp-table.expanded .extra-column {
    width: 150px;                          /* Set width when expanded */
    padding: var(--spacing-medium) !important;     /* Restore padding when expanded */
    /* border: var(--border) !important; Restore border when expanded */
}

.comp-table.expanded .extra-column .extra-content {
    opacity: 1;                             /* Show content when expanded */
}


svg * {
    vector-effect: non-scaling-stroke !important; /* Prevents stroke width from scaling */
} 

.logo {
    font-family: var(--logo-font-family);
}

/* Ensure the container for the SVG has a fixed width */
#logo-svg-container {
  display: flex;
  align-items: center;       /* vertical center */
  justify-content: space-between;
  /* height: 48px;              match your .sidebar-item height */
  width: 48px;              /* match your .sidebar-item height */
  padding: 0 var(--spacing-small);
}


#toggleIcon {
	transition: transform 0.4s ease;
}

.rotated {
	transform: rotate(180deg);
}

/* Sparkline Container Styles */
.sparkline-container {
    position: relative;
    width: 100%;
    height: 20px; /* Fixed height to prevent vertical scaling */
    display: inline-block;
    overflow: visible; /* Allow tooltip to be visible outside the container */
}

/* Sparkline SVG Styles */
.sparkline {
    width: 100%;
    height: 100%; /* Fill the container's height */
    display: block; /* Ensures SVG fills the container properly */
}

/* Sparkline Polyline Styles */
.sparkline polyline {
    fill: none;
    stroke-width: 1.5;
    stroke: var(--primary_2);
    transition: stroke-width 0.2s ease;
    /* vector-effect: non-scaling-stroke; Prevents stroke width from scaling */
}

.sparkline-container:hover .sparkline polyline {
    stroke-width: 3;
}


/* Sparkline Tooltip Styles */
.sparkline-tooltip {
    position: absolute;
    pointer-events: none;
    background-color: var(--fg_color);
    color: var(--text_color);
    padding: var(--spacing-small);
    border: var(--border);
    border-radius: var(--border_radius_button);
    
    white-space: nowrap; /* Ensures tooltip text doesn't wrap */
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translate(-50%, -100%); /* Centers the tooltip above the cursor */
    z-index: 1000; /* Ensures tooltip appears above other elements */
}

/* Invisible Overlay for Capturing Mouse Events */
.sparkline-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Center the nav container and limit its width */
.nav-container {
	width: var(--home-page-width);
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--spacing-large);
}

/* Navbar general styling */
.navbar {
	position: sticky;
	top: 0;
	z-index: 999;
	/* background-color: var(--bg_color); if needed */
    background-color: rgba(255,255,255,0);
    transition: background-color 0.2s ease-in;
}

/* ---------- desktop unchanged ---------- */
.navbar-right { display:flex; gap:1.5rem; }
.menu-close { display:none; }   /* <── NEW: hidden everywhere by default */

/* ---------- burger icon (unchanged) ---------- */
.burger         { display:none; background:none; border:0; cursor:pointer; }
.burger span    { display:block; width:22px; height:2px; margin:5px 0;
                  background:var(--text_color); transition:0.3s; }

/* ---------- mobile overlay ---------- */
@media (max-width:767px){
    .burger      { display:block; }                 /* show burger */

    .navbar-right{
        position:fixed; top:0; left:0;
        width:100vw; height:100vh;                  /* full screen */
        display:flex; flex-direction:column;
        align-items:center; justify-content:center;
        gap:2rem;
        background:rgba(0,0,0,0.85);
        backdrop-filter:blur(4px);
        transform:translateX(100%);                 /* off-canvas */
        transition:transform 0.3s ease;
    }
    .navbar.open .navbar-right{ transform:translateX(0); }

    /* links look good on dark bg */
    .navbar-right .dropdown-item{
        color:#fff; font-size:1.5rem; text-decoration:none;
    }
    .navbar-right .dropdown-item:hover{ color:var(--primary_2); }

    /* close button */
    .menu-close{                /* only visible on mobile sidebar */
        display:block;          /* <── NEW: show it now           */
        position:absolute; top:1rem; right:1rem;
        font-size:2rem; color:#fff; background:none;
        border:0; cursor:pointer; line-height:1;
    }
}

.dropdown-item:hover {
      color: var(--primary_2);
}

/* Remove default list styles and padding */
ul {
      list-style: none;
      margin: 0;
      padding: 0;
}

.dropdown-item {
      display: block;
      width: 100%;
      padding: 0.25rem 1rem;
      clear: both;
      font-weight: 400;
      color: var(--text_color);
      text-align: inherit;
      white-space: nowrap;
      background-color: transparent;
      border-radius: 0.3rem;
      border: 0;
}

a:not(.card):hover {
    color: var(--blue_1) !important;
}





/* Search Box */
/* Dropdown */
.dropdown {
    width: 100%;
    max-height: 500px;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
}


/* Header for States and MSAs */
.dropdown-header {
    /* font-weight: bold; */
    /* font-size: 18px; */
    background-color: var(--primary_2);
    color: var(--text_color);
    padding-left: 10px;
    position: sticky;
    top: 0px; /* Ensure space between headers and sticky parents */
    z-index: 102;
}

/* Header for States and MSAs */
.dropdown-msa {
    /* font-weight: bold; */
    /* font-size: 18px; */
    background-color: var(--primary_2);
    color: var(--text_color);
    padding-left: 20px;
    position: sticky;
    top: 20px; /* Ensure space between headers and sticky parents */
    z-index: 101;
}

/* Parent Sticky Element (MSA) */
.sticky-parent {
    position: sticky;
    /* top: 40px; Ensure space between headers and sticky parents */
    /* z-index: 50; */
    /* border-left: var(--border); */
}

/* Header for States and MSAs */
.dropdown-county {
    /* font-weight: bold; */
    /* font-size: 18px; */
    background-color: var(--green_1);
    color: var(--text_color);
    padding-left: 30px;
    /* position: sticky; */
    top: 40px; /* Ensure space between headers and sticky parents */
    z-index: 100;
}


/* Search Box */
/* .search-container { */
    /* display: flex; */
    /* justify-content: space-between; */
    /* align-items: center; */
    /* height: 50px; Fixed height for consistent space */
    /* padding: 0 12px; */
    /* background-color: var(--fg_color); */
    /* position: sticky; */
    /* top: 0; */
    /* z-index: 200; */
    /* border-bottom: 1px solid var(--line_color); */
/* } */

/* Example styling for toggle filters */
.toggle-filter {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: var(--sidebar-expanded-width);
    justify-content: space-between;
    margin-bottom: 1rem;
}

.toggle-label {
    width: 66.7%;
}

.toggle-group {
    position: relative;
    width: 150px;
    height: 30px;
    border-radius: var(--border_radius_button);
    overflow: hidden;
    box-sizing: border-box;
    /* Smooth transition for the thumb */
    transition: all 0.3s ease;
}

.toggle-group input[type="radio"] {
    display: none;
}

.toggle-options {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 100;
}

.toggle-option {
    flex: 1;
    text-align: center;
    line-height: 30px; /* match container height */
    cursor: pointer;
    transition: color 0.3s;
    user-select: none;
    color: var(--primary_2);
    position: relative;    /* add this */
    z-index: 2;            /* ensure labels appear above the slider */
}

/* Two-option thumb */
.toggle-thumb-2-options {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: var(--primary_2);
    border-radius: var(--border_radius_button);
    transition: left 0.3s ease;
    z-index: 0;
}

/* Three-option thumb */
.toggle-thumb-3-options {
    position: absolute;
    top: 0;
    left: 0;
    width: 33.333%;
    height: 100%;
    background-color: var(--primary_2);
    border-radius: var(--border_radius_button);
    transition: left 0.3s ease;
    z-index: 0;
}

/* Position thumb based on checked radio */
/* Wage Type */
#wage-salary:checked ~ .toggle-options .toggle-thumb-2-options { left: 0; }
#wage-hourly:checked ~ .toggle-options .toggle-thumb-2-options { left: 50%; }

/* Seasonally Adjusted */
#seasonally-yes:checked ~ .toggle-options .toggle-thumb-2-options { left: 0; }
#seasonally-no:checked ~ .toggle-options .toggle-thumb-2-options { left: 50%; }

/* Real Wages */
#realWages-yes:checked ~ .toggle-options .toggle-thumb-2-options { left: 0; }
#realWages-no:checked ~ .toggle-options .toggle-thumb-2-options { left: 50%; }

/* Data View (3 options) */
#data-view-raw:checked ~ .toggle-options .toggle-thumb-3-options { left: 0; }
#data-view-qoq:checked ~ .toggle-options .toggle-thumb-3-options { left: 33.33%; }
#data-view-yoy:checked ~ .toggle-options .toggle-thumb-3-options { left: 66.66%; }

/* Start Graphs At Zero */
#zero-start-yes:checked ~ .toggle-options .toggle-thumb-2-options { left: 0; }
#zero-start-no:checked ~ .toggle-options .toggle-thumb-2-options { left: 50%; }

/* Active label color */
#wage-salary:checked ~ .toggle-options label[for="wage-salary"],
#wage-hourly:checked ~ .toggle-options label[for="wage-hourly"],
#seasonally-yes:checked ~ .toggle-options label[for="seasonally-yes"],
#seasonally-no:checked ~ .toggle-options label[for="seasonally-no"],
#realWages-yes:checked ~ .toggle-options label[for="realWages-yes"],
#realWages-no:checked ~ .toggle-options label[for="realWages-no"],
#data-view-raw:checked ~ .toggle-options label[for="data-view-raw"],
#data-view-qoq:checked ~ .toggle-options label[for="data-view-qoq"],
#data-view-yoy:checked ~ .toggle-options label[for="data-view-yoy"],
#zero-start-yes:checked ~ .toggle-options label[for="zero-start-yes"],
#zero-start-no:checked ~ .toggle-options label[for="zero-start-no"] {
    color: var(--primary_1);
}


.search-box {
    flex-grow: 1;
    font-size: 16px;
    padding: 8px;
    border: var(--border);
    border-radius: var(--border_radius_button);
    /* box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); */
}

.clear-btn {
    font-size: 20px;
    background: none;
    border: none;
    color: var(--primary_1);
    cursor: pointer;
}


.sticky-parent:hover {
    background-color: var(--primary_1);   
    cursor: pointer;
}

/* Flow Buttons and Filter Dropdowns Centering */
#flowButtons,
#filterDropdowns {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/* Ensure each card has the same fixed width and is centered automatically */
#flowButtons .card.plan {
    width: 300px;
    /* margin is optional if you need additional spacing */
    margin: 10px;
}

#flowButtons div {
    margin: 10px;
}

/* Main content: push to right with a margin equal to sidebar width + extra gap */
#mainContent  {
    margin-left: calc(var(--sidebar-collapsed-width));
    transition: margin-left .3s ease;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#data-container {
    margin-left: calc(var(--sidebar-expanded-width));
    transition: margin-left .3s ease;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#mainContent.collapsed {
    margin-left : calc(var(--sidebar-expanded-width));
    transition: margin-left .3s ease;
}

#data-container.collapsed {
    margin-left : calc(var(--sidebar-collapsed-width));
    transition: margin-left .3s ease;
}

#mainSelection {
      width: 66.7%;
}

/* ===== Sidebar Base ===== */
#sidebarFilters {
  position: fixed;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-expanded-width);  
  height: 100vh;
  background-color: var(--fg_color);
  /* border: var(--border); */
  /* border-top-right-radius: var(--border_radius_card); */
  /* border-bottom-right-radius: var(--border_radius_card); */
  transition: width 0.3s ease-in-out;
  box-sizing: border-box;
  overflow: visible;
}
#sidebarFilters.collapsed {
    width: var(--sidebar-collapsed-width);
}
#sidebarFilters:not(.has-dataset) #filtersContent { 
    display: none; 
}
/* hide by default */
#sidebarFilters:not(.has-dataset) #datasetFiltersSection {
  display: none;
}

/* show as soon as you've got at least one dataset */
#sidebarFilters.has-dataset #datasetFiltersSection {
  display: block;
}

/* optionally, hide again while collapsed */
#sidebarFilters.collapsed #datasetFiltersSection {
  display: none;
}


/* hide by default */
#sidebarFilters #datasetFiltersSection,
#sidebarFilters #sidebarFlowHeader {
  display: none;
}

/* show when you've created one */
#sidebarFilters.has-dataset #sidebarFlowHeader,
#sidebarFilters.has-dataset #datasetFiltersSection {
  display: block;
}


/* ===== Sidebar Items ===== */
.sidebar-item {
  display: flex;
  align-items: center;
  height: 48px;
  /* padding: 0 12px; */
}
.sidebar-item .icon-btn {
  width: 24px;
  flex-shrink: 0;
  text-align: center;
}
.sidebar-item .label {
  margin-left: 8px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

/* hide labels when collapsed */
#sidebarFilters.collapsed .sidebar-item .label {
  display: none;         /* removes that 8px margin and any leftover width */
}
#sidebarFilters:not(.collapsed) .sidebar-item .label {
  opacity: 1;
}

/* ===== Bottom "Collapsed Icons" Zone ===== */
#sidebarFilters .collapsed-icons {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
/* only show that zone when collapsed */
#sidebarFilters:not(.collapsed) .collapsed-icons {
  display: none;
}

/*  */

/* ===== Icon Button & Tooltip ===== */
.icon-btn {
  position: relative;
  background: none;
  border: none;
  color: var(--text_color);
  font-size: 1.5rem;
  padding: 0.5rem 0;
  margin: 0.5rem 0;
  cursor: pointer;
}

.icon-btn:hover {
    color: var(--primary_2);
}

/* tooltip arrow & box */
.icon-btn::before,
.icon-btn::after {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.icon-btn::after {
  content: attr(data-tooltip);
  top: 50%;
  left: 110%;
  transform: translateY(-50%);
  background-color: var(--primary_2);
  color: var(--primary_1);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.8rem;
  z-index: 10;
}
.icon-btn::before {
  content: "";
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--text_color_shiny);
  z-index: 9;
}

/* show tooltip on hover *only* when sidebar is collapsed */
/* #sidebarFilters.collapsed .icon-btn:hover::after, */
/* #sidebarFilters.collapsed .icon-btn:hover::before { */
  /* opacity: 1; */
  /* pointer-events: auto; */
/* } */

/* completely disable tooltips when expanded */
/* #sidebarFilters:not(.collapsed) .icon-btn::after, */
/* #sidebarFilters:not(.collapsed) .icon-btn::before { */
  /* opacity: 0 !important; */
  /* pointer-events: none !important; */
/* } */

/* ===== Dropdown Styling for Collapsed Icons ===== */
/* .collapsed-dropdown {
    position: absolute;
    top: 40px; 
    left: 0;
    background-color: var(--fg_color);
    border: var(--border);
    border-radius: var(--border_radius_card);
    padding: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-10px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999; 
}

.collapsed-dropdown.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
} */


.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem;
  /* stick it to the top */
  position: sticky;
  top: 0;
  background: var(--fg_color);
  z-index: 10;
}
/* size your logo */
.sidebar-header .logo-container img {
  width: 200px;  /* bump up as you please */
  height: auto;
}
/* hide the logo once the sidebar is collapsed */
#sidebarFilters.collapsed .sidebar-header .logo-container {
  display: none;
}
/* show it (and let it scroll) once you do */
#sidebarFilters.has-dataset #filtersContent {
  display: flex;       /* or block—whatever your layout needs */
  flex-direction: column;
  /* overflow-y: auto; */
}



/* Ensure the toggle button is centered inside the header */
#toggleSidebar {
    /* display: flex; */
    align-items: center;
    justify-content: center;
    /* right: calc(-1 * (var(--sidebar-expanded-width) - var(--sidebar-collapsed-width) - 10px));  */
    /* right: 100%;  */
    margin-left: auto;
    transition: right 0.4s ease;
}


/* When the sidebar is collapsed, move the toggle button further out */
#sidebarFilters.collapsed #toggleSidebar {
      /* top: 5px; */
      right: 10px; /* adjust based on your design */
}

#sidebarFilters.collapsed .sidebar-item {
  padding-left: 0;            /* kill the left/right padding */
  padding-right: 0;
}

/* Make sure the icon itself takes no extra offset */
#sidebarFilters.collapsed .sidebar-item .icon-btn {
  margin: 0.5rem 0;      /* tweak vertical spacing as you like */
}

/* And center the toggle-button/header too */
#sidebarFilters.collapsed .sidebar-header {
  display: flex;
  justify-content: center;    /* center the toggle icon */
  width: 100%;
  padding: 8px 0;              /* tighten up the vertical spacing */
  position: relative;          /* let it flow like a normal row */
  top: auto;
  transform: none;
}


/* Content inside the sidebar */
#filtersContent {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
}

/* ===== Dashboard Main Area ===== */

/* Allow the dashboard to grow and fill available space */
.comp-disco-main {
    /* flex-grow: 1; */
    /* padding: 0px 10px; */
    /* align-items: center; */
    width: 100%;
}

/* ===== Optional: Improve the Flow Buttons Appearance ===== */

/* Remove inline margins and let CSS handle spacing */
.flow-btn {
    margin: 5px;
}


/* When a flow is selected, move it to the top with an animation */
.selected-flow {
    transition: transform 0.3s ease-in-out;
    /* transform: translateY(-100%); */
}
/* Flow Button locked state */
.flow-btn.locked {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}
.flow-btn.locked::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2em;
    color: var(--text_color);
}

/* Hide the metric modifiers until the filters have been applied */
#metricModifiers {
    display: none;
}

/* Style for the reset (X) button on the filter panel */
.reset-flow {
    float: right;
    background: none;
    border: none;
    font-size: 1.2em;
    color: var(--text_color);
    cursor: pointer;
}



/* For the flow buttons when disabled (simulate a "locked" look) */
.flow-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}
.flow-btn.disabled::after {
    content: "🔒";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--text_color);
}



/* For disabled pushable buttons – disable hover and add a lock icon */
.pushable.disabled .front {
    background-color: var(--disabled_color) !important;
    cursor: not-allowed;
}

/* Optionally, remove the hover effect by ensuring no transform is applied */
.pushable.disabled:hover .front,
.pushable.disabled:active .front {
    transform: none !important;
}

/* You might also want to remove pointer events */
.pushable.disabled {
    pointer-events: none;
}

.grid-stack { 
    background: #ffff00; 
}

/* Ensure the data container scrolls rather than expands */
/* .data-container { */
    /* background-color: var(--fg_color); */
    /* border: var(--border); */
    /* border-radius: var(--border_radius_button); */
    /* overflow-x: auto; */
/* } */

/* #disco_chart_main, */
/* #bands_chart_geo, */
/* #bands_chart_metric { */
    /* aspect-ratio: 3 / 1; */
    /* width: 500px; */
    /* height: 100%; */
    /* height: 300px;    or whatever you want each chart to be */
/* } */

/* Stack the action buttons vertically */
#actionButtons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Now wrap both of your bottom widgets into one "bottom" div… */
#sidebarBottom {
  display: flex;
  flex-direction: column;
  align-items: left;   /* <-- THIS centers each .sidebar-item horizontally */
  margin-top: auto;       /* push it to the bottom of the sidebar */
    padding: 4px 8px;
  width: 100%;
}

/* (And inside it, stack them however you like) */
#sidebarActions,
#navActions {
  margin: 0.25rem 0;
}


#navActions {
    border-top: 2px solid var(--primary_1);
}


/* Align Metric Modifiers dropdowns to the right */
#metricModifiers {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

#metricModifiers .filter-group {
    width: 100%;
    text-align: right;
}

#comp-disco-container {
    font-size: var(--font-data-size) !important;
    font-weight: var(--font-data-weight) !important;


    display: flex;
    /* padding: 20px; */
    /* height: 100vh; */
    box-sizing: border-box;
}

/* A container that clips overflow so only one word is visible */
.ticker-container {
    display: inline-block;
    position: relative;
    height: 9rem;
    overflow: hidden;
    vertical-align: bottom;
}

/* The word element that will be animated */
.word {
    display: block;
    transition: transform 0.6s ease-in-out;
}

/* Card Connection Page Styles */
.card-container {
    position: relative;
    z-index: 2;
}

.level {
    display: flex;
    justify-content: space-evenly;
}

.card-link {
    background-color: var(--fg_color);
    margin-left: var(--spacing-small);
    margin-right: var(--spacing-small);
    margin-top: 50px;
    margin-bottom: 50px;
    padding: var(--spacing-large);
    position: relative;
    flex: 1;
    max-width: 400px;
    box-sizing: border-box;
    z-index: 3;
    border: var(--border);
    border-radius: var(--border_radius_card);
    cursor: pointer;
    transition: box-shadow .18s ease, transform .18s ease;
}
.card-link.card-special {
    border: none;
}
.card-link:hover,
.card-link:focus-visible {
    box-shadow: 0 4px 12px var(--modal_shadow);
    transform: translateY(-2px);                           /* micro‑lift */
}
.card-link.card-special:hover,
.card-link.card-special:focus-visible {
    box-shadow: var(--primary_2_shadow);
    transform: translateY(-2px);                           /* micro‑lift */
}

/* For the connecting lines */
svg#lines {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-height: 100%;
    width: 100%;
    z-index: 0;
}

/* Animated dashed line for hover effect */
@keyframes dash {
    to {
      stroke-dashoffset: 100;
    }
}

/* Custom Accordion Styles */
.accordion {
    border: var(--border);
    border-radius: var(--border_radius_button);
    overflow: hidden;
    margin-top: var(--spacing-large);
}

.accordion-item {
    border-bottom: var(--border);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    cursor: pointer;
    padding: var(--spacing-small) var(--spacing-medium);
    background-color: var(--fg_color);
}

.accordion-header:hover {
    background-color: var(--primary_2);
    color: var(--primary_1);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--spacing-medium);
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-content.open {
    max-height: 300px; /* Adjust if needed */
    padding: var(--spacing-small) var(--spacing-medium);
}

.filter-container {
    transition: display 0.3s ease-in-out;
}

/* For flow options and filter containers */
.slide-out-left {
      transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
      transform: translateX(-100%);
      opacity: 0;
}
.slide-in-right {
      transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
      transform: translateX(0);
      opacity: 1;
}

/* Spinner styles */
.spinner {
      border: 2px solid rgba(0, 0, 0, 0.1);
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border-left-color: #000;
      animation: spin 1s linear infinite;
      display: inline-block;
      vertical-align: middle;
      margin-right: var(--spacing-small);
}
@keyframes spin {
      to { transform: rotate(360deg); }
}




/* GRIDSTACK */
/* …after your other CSS… */
.grid-stack {
  position: relative !important;  /* put it back */
  overflow: visible;              /* so you can drag items out */
    height: 100vh !important;
}

.grid-stack-rtl {
    direction:ltr
}
.grid-stack-rtl>.grid-stack-item {
    direction:rtl
}
.grid-stack-placeholder>.placeholder-content {
    background-color:rgba(0,0,0,.1);
    margin:0;
    position:absolute;
    width:auto;
    z-index:0!important
}
.grid-stack>.grid-stack-item {
    position:absolute;
    padding:0;
    top:0;
    left:0;
    /* min-width:300px; */
    width:var(--gs-column-width);
    height:var(--gs-cell-height)
}
.grid-stack>.grid-stack-item>.grid-stack-item-content {
    margin:0;
    position:absolute;
    width:auto;
    overflow-x:visible;
    overflow-y:visible;
}
.grid-stack>.grid-stack-item.size-to-content:not(.size-to-content-max)>.grid-stack-item-content {
    overflow-y:hidden
}
.grid-stack>.grid-stack-item>.grid-stack-item-content,
.grid-stack>.grid-stack-placeholder>.placeholder-content {
    top:var(--gs-item-margin-top);
    right:var(--gs-item-margin-right);
    bottom:var(--gs-item-margin-bottom);
    left:var(--gs-item-margin-left)
}
.grid-stack-item>.ui-resizable-handle {
    position:absolute;
    font-size:.1px;
    display:block;
    -ms-touch-action:none;
    touch-action:none
}
.grid-stack-item.ui-resizable-autohide>.ui-resizable-handle,
.grid-stack-item.ui-resizable-disabled>.ui-resizable-handle {
    display:none
}
.grid-stack-item>.ui-resizable-ne,
.grid-stack-item>.ui-resizable-nw,
.grid-stack-item>.ui-resizable-se,
.grid-stack-item>.ui-resizable-sw {
    background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="%23666" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 20 20"><path d="m10 3 2 2H8l2-2v14l-2-2h4l-2 2"/></svg>');
    background-repeat:no-repeat;
    background-position:center
}
.grid-stack-item>.ui-resizable-ne {
    transform:rotate(45deg)
}
.grid-stack-item>.ui-resizable-sw {
    transform:rotate(45deg)
}
.grid-stack-item>.ui-resizable-nw {
    transform:rotate(-45deg)
}
.grid-stack-item>.ui-resizable-se {
    transform:rotate(-45deg)
}
.grid-stack-item>.ui-resizable-nw {
    cursor:nw-resize;
    width:20px;
    height:20px;
    top:var(--gs-item-margin-top);
    left:var(--gs-item-margin-left)
}
.grid-stack-item>.ui-resizable-n {
    cursor:n-resize;
    height:10px;
    top:var(--gs-item-margin-top);
    left:25px;
    right:25px
}
.grid-stack-item>.ui-resizable-ne {
    cursor:ne-resize;
    width:20px;
    height:20px;
    top:var(--gs-item-margin-top);
    right:var(--gs-item-margin-right)
}
.grid-stack-item>.ui-resizable-e {
    cursor:e-resize;
    width:10px;
    top:15px;
    bottom:15px;
    right:var(--gs-item-margin-right)
}
.grid-stack-item>.ui-resizable-se {
    cursor:se-resize;
    width:20px;
    height:20px;
    bottom:var(--gs-item-margin-bottom);
    right:var(--gs-item-margin-right)
}
.grid-stack-item>.ui-resizable-s {
    cursor:s-resize;
    height:10px;
    left:25px;
    bottom:var(--gs-item-margin-bottom);
    right:25px
}
.grid-stack-item>.ui-resizable-sw {
    cursor:sw-resize;
    width:20px;
    height:20px;
    bottom:var(--gs-item-margin-bottom);
    left:var(--gs-item-margin-left)
}
.grid-stack-item>.ui-resizable-w {
    cursor:w-resize;
    width:10px;
    top:15px;
    bottom:15px;
    left:var(--gs-item-margin-left)
}
.grid-stack-item.ui-draggable-dragging>.ui-resizable-handle {
    display:none!important
}
.grid-stack-item.ui-draggable-dragging {
    will-change:left,top;
    cursor:move
}
.grid-stack-item.ui-resizable-resizing {
    will-change:width,height
}
.ui-draggable-dragging,
.ui-resizable-resizing {
    z-index:10000
}
.ui-draggable-dragging>.grid-stack-item-content,
.ui-resizable-resizing>.grid-stack-item-content {
    box-shadow:1px 4px 6px rgba(0,0,0,.2);
    opacity:.8
}
.grid-stack-animate,
.grid-stack-animate .grid-stack-item {
    transition:left .3s,top .3s,height .3s,width .3s
}
.grid-stack-animate .grid-stack-item.grid-stack-placeholder,
.grid-stack-animate .grid-stack-item.ui-draggable-dragging,
.grid-stack-animate .grid-stack-item.ui-resizable-resizing {
    transition:left 0s,top 0s,height 0s,width 0s
}
.grid-stack>.grid-stack-item[gs-y="0"] {
    top:0
}
.grid-stack>.grid-stack-item[gs-x="0"] {
    left:0
}





.grid-stack .grid-stack-item-content {
  position: absolute !important;
  top: var(--gs-item-margin-top);
  right: var(--gs-item-margin-right);
  bottom: var(--gs-item-margin-bottom);
  left: var(--gs-item-margin-left);
  overflow: hidden;
  display: flex;               /* so children can flex to fill */
}









/* ──────────────────────────────  AUTH MODULE  ────────────────────────────── */
/* Everything below applies to BOTH login and register pages                 */
/* Keep this together in one auth.css so you don't repeat yourself           */

/* ── Layout wrappers ── */
.auth_container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--nav-height, 0));
    padding: var(--spacing-large);
}

/* .card { */
.auth_card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: var(--border_radius_card);
    background: var(--fg_color);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .08);
}

.form_group { margin-bottom: 1.25rem; }
.forgot_row { text-align : right; margin-bottom: 1.5rem; }
.register_link{ text-align : center;  margin-top   : 2rem;    }

.full_width   { width: 100%; }

/* ── Input with leading icon ── */

/* Optional inline character counter (used on register page) */
.char_counter {
    position: relative;
    right: -5px;
    font-size: var(--font-caption-size);
    color: var(--disabled_color);
}

/* ── Check‑box row (register page T&C) ── */
.terms_row {
    display      : flex;
    align-items  : center;
    gap          : 0.5rem;
    margin-bottom: 1rem;
}
    .terms_row input { transform: scale(1.1); }

/* ── Primary CTA button (pushable pattern) ── */
.btn_primary {
    border    : none;
    background: none;
    padding   : 0;
}
    .btn_primary .front {
        display        : block;
        width          : 100%;
        padding        : 0.8rem 0;
        border-radius  : var(--border_radius_button);
        background     : var(--primary_2);
        color          : #fff;
        text-align     : center;
        font-weight    : 700;
        transition     : background .15s;
    }
    .btn_primary:hover  .front { background: var(--primary_2); }
    .btn_primary:active .front { background: var(--primary_2); }

/* ── Validation feedback ── */
.invalid_feedback {
    color      : var(--red_1);
    font-size  : var(--font-caption-size);
    margin     : .25rem 0 .75rem;
}












.features {
    padding: var(--spacing-large) 0;
}

/* responsive auto‑fit grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--spacing-xlarge);
    margin: 0;
    padding: 0;
    list-style: none;
}

/* each item – flex column, no border */
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-small);
}

/* circular icon block */
.feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary_2);
    color: var(--primary_1);
}

/* inherit stroke colour from parent */
.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.feature-title {
    font-size: var(--font-subheader-small-size);
    font-weight: var(--font-subheader-small-weight);
    margin: 0;
    color: var(--primary_2);
}



/* ────────── EXPLORE PAGE ─────────────────────────────────────── */

.explore-container {
    margin: 0 auto;
    max-width: var(--home-page-width);
    padding: var(--spacing-large) var(--spacing-small);
    background-color: var(--bg_color);
    color: var(--text_color);
    font-family: var(--font-family);
}

/* three equal columns ≥ 960 px, two on medium, one on small */
.explore-columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-large);
}

.explore-column {
    flex: 1 0 300px;
}

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

.explore-list li + li {
    margin-top: 0.25rem;
}

/* hierarchy indentation – tweak padding to taste            */
/* 0 = top level, 1 = mid, 2 = leaf – extend if needed       */
.indent-0 {
    padding-left: 0;
    font-weight: var(--font-body-weight-bold);
}
.indent-1 {
    padding-left: calc(var(--spacing-small) * 2);
    font-weight: var(--font-body-weight);
}
.indent-2 {
    padding-left: calc(var(--spacing-small) * 4);
    font-weight: var(--font-body-weight);
    font-size: var(--font-data-size);
}

/* links pick up brand blue, dark‑mode aware                 */
.explore-list a {
    text-decoration: none;
    color: var(--primary_2);
    transition: color 120ms ease;
}

.explore-list a:hover,
.explore-list a:focus-visible {
    color: var(--primary_1);
    text-decoration: underline;
}

/* dark‑mode override comes for free because you redefine variables */
.dark-mode .explore-list a {
    color: var(--primary_2);
}

/* ensure headings inherit your typography utility sizes      */
/* .explore-column h2 { @apply .typo-subheader }   if you use tailwind‑like tooling */
/* .explore-column h3 { @apply .typo-body }        otherwise the classes are already in markup */

/* ─────────────────────────────────────────────────────────── */

/* simple input styling that inherits your DS tokens */
.explore-search-input {
	width: 100%;
	max-width: 480px;
	margin: var(--spacing-large) 0;
	padding: var(--spacing-small) var(--spacing-medium);
	border: var(--border);
	border-radius: var(--border_radius_button);
	background-color: var(--fg_color);
	color: var(--text_color);
	font-family: var(--font-family);
}

/* optional highlight for matching text */
.explore-list mark {
	background: var(--yellow_1);
	color: inherit;
}



.feature-carousel {
    position: relative;
}

/* 2.1  track: hide scroll‑bar in all major engines */
.feature-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--spacing-large);
    margin: 0;
    padding: 0;
    list-style: none;
    scroll-behavior: smooth;

    -ms-overflow-style: none;  /* IE / old Edge */
    scrollbar-width: none;     /* Firefox */
}
.feature-track::-webkit-scrollbar { 
    display: none; 
}   /* Chrome / Safari */


/* each slide */
.feature-item {
    flex: 0 0 80%;               /* ≈80 % viewport → one slide centered */
    max-width: 360px;            /* prevents giant cards on XL screens */
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-small);
    padding: var(--spacing-large);
    border: var(--border);
    border-radius: var(--border_radius_card);
    background: var(--fg_color);
}

/* icon circle */
.feature-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary_2);
    color: var(--primary_1);
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* make heading a flex container */
.feature-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;           /* space between text and link icon */
}

/* pushes the link icon to the far right of the card */
.ext-link {
    margin-left: auto;
    font-size: 0.9em;      /* slightly smaller than heading */

    color: var(--special_2);
    opacity: 50%;
    cursor: pointer;
}
/* .ext-link-orange {
    color: var(--special_2) !important;
    font-size: 1.5rem !important;
    margin-left: 1rem; */

/* } */

/* optional: change colour on hover/focus */
.feature-item:hover .ext-link {
    color: var(--primary_2);
}

.feature-text {
    font-size: var(--font-body-size);
    line-height: var(--font-body-line-height);
    margin: 0;
    color: var(--primary_2);
    opacity: 50%;
}


/* 2.2  nav bar with arrows + dots */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;                         /* or var(--spacing-medium) */
    margin-top: var(--spacing-medium);
}

.carousel-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: var(--bg_color);
    color: var(--text_color);
    font-size: 1rem;
    cursor: pointer;
}

.pushable.card {
    display: flex;
    flex-direction: column;   /* title ➜ top, table ➜ below */
    align-items: stretch;     /* table expands full width */
    gap: .75rem;              /* a little space between them */
}

/* Keep the dataset name on one line, truncate with "…", show full name on hover */
.truncate-name{
    display:inline-block;
    max-width:160px;      /* tweak to taste or use % */
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    vertical-align:middle;
}


.initially-hidden {
    display: none;
}



.navbar.show {
    background-color: var(--primary_1_opacity75); /* white with 75% opacity */
    /* background-color: rgba(255,255,255,0); white with 75% opacity */
} 

@media (max-width: 1199px) {
    :root { 
        --font-hero-size: 6rem; 
    }
    .ticker-container { height: 6.5rem; }
}
@media (max-width: 991px) {
    :root { 
        --font-hero-size: 4rem; 
    }
    .ticker-container { height: 4.5rem; }
    .ext-link {
        font-size: 1.2rem !important;
        margin-left: 0.5rem !important;
    }
}
@media (max-width: 767px) {
    :root { 
        --font-hero-size: 2.1rem;
        --font-subheader-size: 1.5rem; 
    }
    .ticker-container { height: 2.4rem; }
    .ext-link {
        font-size: 0.9rem !important;
        margin-left: 0.5rem !important;
    }
}

.gds-mermaid {
    background: var(--fg_color);
    border: var(--border);
    border-radius: var(--border_radius_card);
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    overflow-x: auto;
    max-width: 100%;
}
.gds-mermaid .mermaid {
    background: none !important;
    color: var(--text_color) !important;
    border-radius: var(--border_radius_card);
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    padding: 0;
}
.gds-mermaid svg {
    width: 100% !important;
    height: auto !important;
    border-radius: var(--border_radius_card);
}