/* ========================================================================
   Variables
   ======================================================================== */

   :root {

    /* ===============================
        Text
        ============================== */
    
        /* Font Family */
        --font-family-main: "EkMukta-Light", Helvetica, sans-serif;
    
        /* Paragraph Size */
        --font-size-p: 20px;
    
        /* Font Weights */
        --font-weight-normal: 200;
        --font-weight-bold: 400;
        --font-weight-bolder: 600;
    
        /* Heading Sizes: Large */
        --h1-size-lg: 48px;
        --h2-size-lg: 40px;
        --h3-size-lg: 30px;
        --h4-size-lg: 27px;
        --h5-size-lg: 23px;
        
        /* Heading Sizes: Medium */
        --h1-size-md: 45px;
        --h2-size-md: 37px;
        --h3-size-md: 27px;
        --h4-size-md: 25px;
        
        /* Heading Sizes: Small */
        --h1-size-sm: 42px;
        --h2-size-sm: 34px;
        --h3-size-sm: 24px;
        --h4-size-sm: 21px;
    
        /* Heading Sizes: Very Small */
        --h1-size-sm: 39px;
        --h2-size-sm: 31px;
        --h3-size-sm: 21px;
    
        /* Line Height */
        --line-height-tight: 1.25;
        --line-height-normal: 1.5;
        --line-height-loose: 1.75;
    
    
    /* ===============================
        Colors
        ============================== */
    
        /* Brand Colors */
        --color-brand-orange: #FFA500;
        --color-brand-orange-light: #FFC04D;
        --color-brand-green: #8BB42D;
        --color-brand-green-light: #A2C359;
        --color-brand-blue: #0273BE;
        --color-brand-blue-light: #4E9DD2;
        --color-brand-fuscia: #E90555;
        --color-dark-gray: #333;
        --color-light-gray: ##DEDEDE;
        --color-app-bg: #F8F9FA;
    
        /* Heading Colors */
        --color-h2: #0273BE;
        --color-h3: #FFC04D;
        --color-h4: #8BB42D;
    
        
    /* ===============================
        Containers
        ============================== */
    
       /* Network */ 
        --flowchart-height-lg: 800px;
        --flowchart-height-med: 600px;
        --flowchart-height-sm: 500px;
    
    }


/* ========================================================================
   General Styles
   ======================================================================== */

/* Main font and color settings */
body {
    font-family: 'Ek Mukta', sans-serif;
    font-size: 1.2em !important;
    color: #333;
    font-weight: 200;
    width: 100%;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 200;
    line-height: 1.6;
    margin-bottom: 0.3em;
    margin: 1em 0 0.2em 0 ;
}

/* Base paragraph styling */
p {
    font-size: 20px;
    line-height: 30px;
    margin-bottom: 30px;
    margin-top: 0px;
}

h1 {
    font-size: 2.5em;
}

h2 {
    color: #0273be;
    font-size: 40px;
}

.container-fluid h2 {
    margin-bottom: 0 !important;
    padding: 0 !important;
}

h3 {
    color: #ffa500;
    font-size: 30px;
}

/* Use pink in h3's in template pages to prevent overuse of orange */
.entry-content h3 {
	color: #E90555;
}

h4 {
    color: #8bb42d;
    font-size: 1.4em;
}

.entry-content h4 {
    font-size: 24px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    line-height: 2.2;
}

h5 {
    font-size: 1.1em;
    font-weight: 400;
    color: #222;
    margin-bottom: 0.2em;
}

/* Hide elements with this class */
.hidden {
    display: none;
}

/* ========================================================================
   Layout and Containers
   ======================================================================== */

/* Main fluid container */
.container-fluid {
    margin: 2em auto;
    width: 100%;
    position: relative;
    padding: 30px !important;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Wrapper for flowchart with fixed height */
.flowchart-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    width: 100%;  
    overflow: visible;
}

/* Container for the actual flowchart */
#flowchart-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;    
    /* min-height: calc(100vh - 250px);          */
    background-color: #f8f9fa;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.11);
    border: 1px solid rgba(221, 221, 221, 0.5);
}

#flowchart-container canvas {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Container for filter controls */
.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Remove margin from headings in filter container */
.filter-container h2 {
    margin: 0; /* Prevents unwanted spacing from heading margins */
}






/* FROM AI STRATEGY */

/* ========================================================================
   Header Styles
   ======================================================================== */

/* ===============================
    All Pages
   ============================== */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px;
    margin-bottom: 30px;
}

.header-title {
    margin: 0;
    font-size: 4em;
}

.site-header {
    background-color: #000;
    width: 100%;
    z-index: 999;
    padding: 15px;
}

.title-area {
    float: left;
    padding: 25px 0;
}

.header-logo {
    margin: 0 !important;
    width: 100% !important;  
    max-width: 250px !important; 
    height: auto !important; 
}


/* ===============================
    Index Page Only
   ============================== */

/* Specific adjustments for the index page with wrap-fluid */
.site-header .wrap-fluid {
    padding: 0 60px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Logo alignment on index page */
.site-header .wrap-fluid .title-area {
    padding-left: 0;
    margin-left: 0;
}

/* Keep the regular wrap class unchanged for other pages */
.site-header .wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ========================================================================
   Navigation
   ======================================================================== */

.nav-primary {
    position: relative;
}

/* Primary navigation menu */
.nav-primary .menu {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 30px;
    justify-content: flex-end;
    line-height: 1;
    float: right;
}

/* Menu item container */
.nav-primary .menu li {
    position: relative;
    margin: 0;
}

/* Menu link styling */
.nav-primary .menu a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 200;
    padding: 5px 0;
    transition: color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-bottom: 2px solid transparent;       
}

/* Menu link hover state */
.nav-primary .menu a:hover {
    color: #0273be;
    text-decoration: underline;
}

/* Menu item underline hover effect */
/* .nav-primary .menu a::after {
    content: '';
    position: absolute;
    left: 50%;
    width: calc(100% + 20px);
    bottom: -38px;
    height: 3px;
    background-color: white;
    transform: translateX(-50%) scaleX(0); 
    transition: transform 0.2s ease-in-out;
} */

/* Show underline on hover */
/* .nav-primary .menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
} */


/* NEW - 3/22/25 */

/* Hamburger menu toggle button */
.menu-toggle {
    background: #000;
    color: #fff;
    border: none;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    text-transform: uppercase;
    display: none;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;

    /* NEW - 3/22 @ 5:03PM */
    position: relative;
    z-index: 1001; /* Higher than the menu */
}

.menu-toggle::before {
    content: "☰";
    margin-right: 10px;
}

/* Remove outline and border when clicked */
.menu-toggle:focus, 
.menu-toggle:active,
.menu-toggle.activated {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}



/* ========================================================================
   Main Content
   ======================================================================== */

/* Custom content container */
.entry-content {
    max-width: 100%;
    margin: 0 auto;

    /* NEW - removing the padding from the child container and adding it to main-content to include divs below entry-content */
    /* padding: 0 20px; */
}

/* Lists in entry content */
.entry-content ul {
    padding: 0;
    margin-left: 60px;
    margin-top: -15px;
}

/* List items in entry content */
.entry-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
    font-size: 18px;
}

/* Entry header and footer alignment */
.entry-header, .entry-footer {
    text-align: center;
}

/* Entry title styling */
.entry-title {
    font-size: 48px;
    font-weight: 200;
    margin-top: 55px;
}

/* Decorative line after entry header */
.entry-header::after {
    border-bottom: 1px solid #000;
    content: "";
    display: block;
    margin: 0 auto;
    padding-bottom: 30px;
    width: 25%;
}

/* Main content area */
.main-content {
    background: white;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 90px); 
}

.main-content p {
    font-size: 20px;
}

.main-content li {
    font-size: 18px;
}

/* Image credit text */
.image-credit {
    font-size: 14px;
    font-style: italic;
    /* margin-left: 1.7em; */
    margin-top: 2.5em;
}


/* ========================================================================
   Footer Styles
   ======================================================================== */

.footer {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px; 
}

.footer::before {
    content: '';
    position: absolute;
    margin: 0 0 2rem 0; 
    top: 0;
    width: 225px;  
    height: 1px;
    background-color: #dee2e6;
}

.footer-nav {
    display: flex;
    justify-content: space-evenly;
    max-width: 800px;
    margin-top: 2em;
}

.footer-link {
    color: #666;
    font-size: 20px;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: #0273be;
}


/* ========================================================================
   Logo Styles
   ======================================================================== */

.logo-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.logo-container img {
    width: 200px;
}

.header-logo {
    height: 60px;
}


/* ========================================================================
   Image Styles
   ======================================================================== */

/* Container for images */
.image-container {
    max-width: 100%;
    margin: 2em 0;
}

.image-container-list {
    box-sizing: border-box;
    overflow: hidden; /* This prevents content from spilling out */
}

.main-content .image-container-list img {
    max-width: 100%;
    height: auto;
}

/* Images within container */
.image-container img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}




/* ========================================================================
   Link Styles
   ======================================================================== */

.tools-link {
    text-decoration: none;
    color: #ffa500;
    position: relative;
    top: 0.5em;
    transition: color 0.3s ease, transform 0.2s ease;
}

.tools-link:hover {
    color: #0273be;
}

.tools-link-no-padding {
    text-decoration: none;
    color: #ffa500;
    transition: color 0.3s ease, transform 0.2s ease;
}

.tools-link-no-padding:hover {
    color: #0273be;
}

.link-container {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

.hire-me-link {
    text-decoration: none;
    color: #ffa500 !important;
    font-size: 20px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.hire-me-link:hover {
    color: #0273be !important;
    text-decoration: underline;
}

.chess-piece {
    display: inline-block;
    font-size: 1.3em;
    margin-left: 0.3em;
    position: relative;
    top: -0.1em;
}

/* KEPT FROM MODEL PICKER */

/* Chart emoji styling */
.chart-emoji {
    display: inline-block;
    font-size: 1.3em;
    margin-left: 0.3em;
    position: relative;
    top: -0.1em; 
}

/* Chart emoji size and margin */
.chart-emoji {
    font-size: 1.3em;
    margin-left: 0.3em;
}

/* ========================================================================
   Button Styles
   ======================================================================== */

.button {
    margin: 3em auto 0 !important;
    border-radius: 0.5em !important;
    display: block !important;
    width: fit-content !important;
    padding: 10px 20px !important;
    color: #fff !important;
    background-color: #ffa500 !important; 
    border: none !important;
    cursor: pointer !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease !important;
    box-shadow: 2px 2px 2px rgb(0, 0, 0, 0.3) !important;
}

.button:hover {
    background-color: #0273be !important;
    border: none;
}

.button:focus {
    outline: none !important;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3) !important; 
}

.wrap .button {
    margin: 2.5em auto !important;
    border-radius: 0.5em !important;
    display: block !important;
    width: fit-content !important;
    padding: 10px 20px !important;
    color: #fff !important;
    background-color: #ffa500 !important; 
    border: none !important;
    cursor: pointer !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease !important;
    box-shadow: 2px 2px 2px rgb(0, 0, 0, 0.3) !important;
}


/* ========================================================================
   Flowchart Styles
   ======================================================================== */

/* ===============================
    Flowchart Visualization
    =============================== */

/* Ensure network container has a lower z-index when search panel is minimized */
.flowchart-wrapper, #flowchart-container {
    z-index: 1; 
    position: relative;
}
  
/* Main flowchart visualization container */
.vis-flowchart {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    line-height: 1.35em;
    max-width: 100%;
}

/* Canvas within flowchart */
.vis-flowchart canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
}

/* Node styling within flowchart */
.vis-flowchart .vis-node {
    cursor: pointer !important;
}

/* Label styling within flowchart */
.vis-flowchart .vis-label {
    cursor: pointer;
    font-family: 'Ek Mukta', sans-serif;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2px 4px;
    border-radius: 4px;
    color: #333;
    text-align: center;
}

.flowchart-container .vis-network {
    font-size: 1.2em !important;
}

/* Question node (diamond) styling */
.question-node {
    cursor: pointer !important;
}

/* Model node (box) styling */
.recommendation-node {
    cursor: pointer !important;
}

/* Flowchart edge styling */
.flowchart-edge {
    stroke-width: 1px;
}

/* Highlighted node when searching */
.node-highlight {
    box-shadow: 0 0 8px 2px var(--highlight-color, #FFA500);
}


/* ========================================================================
   Search Filters
   ======================================================================== */

/* ===============================
    Search Field
    =============================== */

/* Container for search and toggle controls */
.search-controls {
    display: flex;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}


/* ===============================
    Text Highlight
    ============================== */

/* Highlighted text styling */
.highlight {
    background-color: #ffa500 !important;
    color: white !important;
    padding: 0 1px !important;
    border-radius: 2px !important;
    display: inline !important;
    margin: 0 !important;
    font-weight: normal !important;
}

/* Highlight within modal content */
.modal-content .highlight {
    display: inline !important;
    line-height: inherit !important;
    font-size: inherit !important;
}


/* ===============================
    Placeholder Text
    ============================== */

/* Search field styling */
#network-search {
    width: 200px;
    height: 38px; 
    padding-left: 7px;                  /* Remove vertical padding */
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'ek mukta', sans-serif;
    font-weight: 200;
    font-size: 1em;
    margin: 0;
}

/* Placeholder text in search field */
#network-search::placeholder {
    font-family: 'ek mukta', sans-serif;
    color: #333; 
    opacity: 1;                         /* Ensure full visibility */
}


/* ===============================
    Clear Input
    ============================== */

/* Container for input with clear button */
.clearable-input {
    position: relative;
    margin: 0;
    padding: 0;
}

/* Input field in clearable container */
.clearable-input input {
    padding-right: 30px;
    width: 300px;
}

/* Clear search button */
#clear-search {
    position: absolute;
    right: 0.6em;
    top: 45%;
    transform: translateY(-50%);        /* Center vertically */
    cursor: pointer;
    color: #999;
    visibility: hidden;
}

/* Show clear button when input has value */
.clearable-input input:valid + .clear-input {
    visibility: visible;
}

/* Clear input hover state */
.clear-input:hover {
    color: #666;
}


/* ===============================
    Search Panel
    ============================== */

/* Base styling for search panel root */
#search-panel-root {
    position: absolute;
    top: 54px;
    bottom: 1px;
    right: 1px;
    /* max-height: calc(100% - 70px); */
    width: 300px;
    z-index: 999;
    overflow: auto;
    background-color: rgba(248, 249, 250, 0.6);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
    display: none; /* Hidden by default, shown when searching */
}

/* Search panel wrapper */
.search-panel-wrapper {
    position: absolute;
    top: 0;
    right: 1px;
    width: 300px;
    z-index: 999;
}

/* Search panel */
.search-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: auto;
    width: 300px;
    max-width: 100%;
    background: white;
    border-radius: 4px;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
}

/* Minimized state */
.search-panel-wrapper.minimized .search-panel {
    transform: translateX(calc(100% + 1rem));
    opacity: 0;
    pointer-events: none;
}

/* Search panel header */
.search-panel-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    flex-shrink: 0;
    border-bottom: 1px solid #eee;
}

/* Panel title */
.search-panel-title {
    margin: 0;
    font-size: 1.2rem;
    color: #0273be;
    font-weight: 600;
    text-transform: uppercase;
}

/* Panel body */
.search-panel-body {
    padding: 0.5rem;
}

/* Results container */
.search-panel-results {
    overflow-y: auto;
    flex: 1;
}

/* Minimize button */
.minimize-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0; 
}

.minimize-button img {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.minimize-button:hover img {
    opacity: 1;
}

/* Search panel tab */
.search-panel-tab {
    display: flex;
    justify-content: center;
    align-items: center; 
    position: absolute;
    top: 10px;
    right: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 0.6rem;
    cursor: pointer;
    border: none;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    z-index: 999;
}

.search-panel-tab img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.search-panel-tab:hover img {
    opacity: 1;
}

.search-panel-tab:hover {
    transform: scale(1.05);
}

/* Show tab when panel is minimized */
.search-panel-wrapper.minimized .search-panel-tab {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    display: flex !important;
    visibility: visible !important;
}

/* Floating search tab (when created via JS) */
.search-panel-tab.floating {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 10px;
    right: 15px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 0.6rem;
    cursor: pointer;
    border: none;
    z-index: 9999;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}


/* Floating search tab (dynamically created via JavaScript) */
#floating-search-tab {
    position: absolute;
    top: 70px;
    right: 15px;
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border: none;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 0.6rem;
    cursor: pointer;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    transition: transform 0.2s ease;
}

#floating-search-tab:hover {
    transform: scale(1.05);
}

#floating-search-tab img.search-icon-img {
    width: 20px;
    height: 20px;
    display: block;
}


/* Ensure modals are always on top */
#modal-root {
    z-index: 10000;
}









/* ===============================
    Categories & Subcategories
    ============================== */


/* Category styling */
.category-item {
    border-bottom: 1px solid #eee;
}

/* Category button styling */
.category-button {
    width: 100%;
    padding: 0.75rem 1rem;
    font-weight: 500;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-button:hover .category-arrow {
    color: #0273be;
}

.category-button:hover {
    background-color: #f9f9f9;
    color: var(--color-brand-blue);
    /* text-decoration: dotted;
    text-decoration-color: var(--color-brand-blue);
    text-decoration-line: underline; */
    text-underline-offset: 4px;
    font-weight: 500;
    /* transition: transform 0.2s ease */
    transition: color 0.3s ease;
}

/* Subcategory list styling */
.subcategory-list {
    background: #f5f5f5;
    /* max-height: 300px; */
    overflow-y: auto;
}

/* Subcategory button styling */
.subcategory-button {
    width: 100%;
    padding: 0.5rem 1.5rem;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.subcategory-button:hover {
    background-color: #eee;
    color: var(--color-brand-blue);
}

.category-arrow:hover {
    color: var(--color-brand-blue);
}

/* No results container styling (gifs) */
.no-results-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

/* No results message styling */
.no-results-message {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

/* No results message styling */
.no-results-centered {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

/* No results image styling */
.no-results-image {
    height: auto;
    width: 100% !important;
    max-width: 100%;
    object-fit: contain;
}


/* ===============================
    Flowchart Headers
    =============================== */

/* Header with title and controls */

.flowchart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
  }
  
  .flowchart-header h2 {
    margin: 0;
  }
  
  /* Flowchart title / breadcrumbs */
  .flowchart-title {
      margin: 0;
      padding: 0;
      font-size: 18px;
      color: #8bb42d;
      font-weight: 200;                 
  }
  
  
  /* ===============================
      Breadcrumbs
      =============================== */
  
  /* Flex container for title and clear button */
  .flex-container {
      display: flex;
      align-items: center;
      gap: 8px;
  }

  
  /* ===============================
      Flowchart Font Size
      =============================== */
  
  /* Increase font size for flowchart elements */
  .vis-network, 
  #flowchart-container .vis-network {
      font-size: 1.2em !important;
  }
  
  /* For the nodes and labels specifically */
  .vis-label, 
  .vis-node {
      font-size: 16px !important;
  }
   
  
  /* ===============================
      Watermark
     =============================== */
  
  .watermark {
      height: 30px;
      position: absolute; 
      bottom: 0;          
      left: 0; 
      margin: 2em 1.4em;  
      z-index: 10;     /* Ensure it's above the flowchart */    
  }
  

/* Subcategory title styling */
.subcat-title {
    text-align: left !important;
    font-size: 1.2em;
    color: #8bb42d;
}

/* Add top margin to 'Subcategory' in the form to balance the form since pushing the button down*/
.subcat-tweak {
    margin-top: 1.5em;
}




/* ========================================================================
   Hide Step 2 H2 and Footer
   ======================================================================== */

/* Hide the step 2 header */
.step-2-header {
  display: none;
}






/* ========================================================================
   Tooltip Styles
   ======================================================================== */

/* Close button */
.tooltip-close-btn {
    cursor: pointer !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.tooltip-close-btn:hover {
    color: #333 !important;
}

/* ===============================
    Cat/Subcat Tooltips
    =============================== */


/* Tooltip container */
.tooltip-wrapper {
    position: relative;
}

/* Show tooltip on hover */
.tooltip-wrapper:hover .custom-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Category and subcategory links */
.cat-link {
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    padding: 2px 4px;
}

/* Category link hover state */
.cat-link:hover {
    text-decoration: underline dotted;
    color: #0273be;
}

/* Tooltip arrow */
.custom-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;                         /* Position near start instead of center */
    transform: none;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
}

/* ===============================
   Info Icon & Tooltip
   =============================== */

/* Info icon styling */
.info-icon {
    cursor: help;
    position: relative;
    display: inline-block;
    vertical-align: super;
    font-size: 0.5em;
    font-family: 'Ek Mukta', sans-serif;
    font-weight: 200;
    color: #8bb42d;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Info icon hover state */
.info-icon:hover {
    color: #025a93;
}

/* Info icon tooltip */
.info-icon[data-tooltip]:before {
    content: attr(data-tooltip);
    white-space: pre-wrap;
    position: absolute;
    top: -20px;
    left: 100%;
    transform: translate(5px, -5%);
    background: rgba(255, 165, 0, 0.9);
    color: #444;
    padding: 8px 12px;
    border-radius: 10px;
    width: max-content;
    max-width: 400px;
    font-size: 1em;                     /* Text inside tooltip */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 9999;
    line-height: 1.4;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Info icon tooltip hover state */
.info-icon[data-tooltip]:hover:before {
    opacity: 1;
    visibility: visible;
}


/* ===============================
   Handle Icon on Tooltips (9 dots)
   =============================== */

.benchmark-name:before {
    content: "⠿⠿⠿" !important; 
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
}

@media (pointer: coarse) {
    .benchmark-name:before {
        content: "⠿⠿⠿" !important;
        font-size: 16px !important;
    }
}


/* ===============================
   Tooltip Box
   =============================== */

/* Tooltip box styling */
.tooltip {
    position: absolute;
    visibility: visible;
    opacity: 1;
    background-color: rgba(255, 165, 0, 0.9);
    color: #333;
    font-family: 'Ek Mukta', sans-serif;
    font-size: 1.4em;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 10000;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
}


/* ========================================================================
   Breadcrumbs Cat/Subcat Clear Button
   ======================================================================== */

/* Clear selection button styling */
.clear-selection {
    background: none;
    border: none;
    cursor: pointer;
    /* font-size: 1.2em; */
    color: #8bb42d;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Clear selection hover state */
.clear-selection:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Trashcan icon in clear button */
.clear-selection svg {
    display: block;                     /* Ensures proper centering */
    margin-bottom: 3px;                 /* Align it with the text */
    margin-left: -5px;                  /* Nudge it closer to the text */
}

/* Ensure tooltips work in flowchart title */
.flowchart-title .tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Tooltip within flowchart title */
.flowchart-title .tooltip-wrapper .custom-tooltip {
    white-space: nowrap;
}


/* ========================================================================
   Resizer Styles 
   ======================================================================== */

#resizer {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 10px;
    width: 100%;
    z-index: 999; /* Added 3/28 to resolve bug */
    background-color: #f0f0f0;
    cursor: row-resize;
    user-select: none;
    transition: background-color 0.2s ease, height 0.2s ease;
    border-top: 1px solid #e0e0e0;
}

#resizer::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 10px;
    background-image: radial-gradient(circle, #999 1px, transparent 1.5px);
    background-size: 8px 8px;
    background-position: center;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

#resizer:hover {
    height: 10px;
    background-color: #e8e8e8;
}

#resizer:hover::before {
    opacity: 1;
}

#resizer:active {
    background-color: #e0e0e0;
    height: 12px;
}

#resizer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(180deg, rgba(0,0,0,0.05), transparent 100%);
}


/* ========================================================================
   Modal Styles
   ======================================================================== */
   
/* Modal background wrapper */
.modal-wrapper {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

/* Modal content container */
.modal-content {
    height: auto !important;
    max-height: none;
    overflow-y: auto;
}

/* Close button general styling */
.modal .close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    padding: 0 5px;
    outline: none !important;
    box-shadow: none !important;
    opacity: 1;
    margin-right: 0.002em;
}

/* Close button hover state */
.modal .close:hover {
    opacity: 0.75;
}


/* ========================================================================
   Model Modals
   ======================================================================== */

/* General modal styling for model modals */
.modal {
    display: block;
    height: auto !important;            
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 10px;
    border-radius: 10px;
    width: 500px;
    min-width: 500px;
    max-width: 500px;
    max-height: 90vh;                   /* Limit height to 90% of viewport height */
    z-index: 10000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    overflow-y: auto;                   /* Allow scrolling if content exceeds max-height */
}

/* Modal title */
.modal-title {
    color: #333;
    font-size: 1.5rem;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
    padding-left: 0.42em;
}

/* Modal header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    border-bottom: 1px solid #ddd;
    background-color: #F4F4F4;
}

/* Modal body padding */
.modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px 25px;
    margin: 0;
    line-height: 1.2;
    color: #333;
}

/* Remove margin from last paragraph in modal */
.modal .modal-body p:last-child {
    margin-bottom: 0;
}

/* Headings in modal body */
.modal .modal-body h4 {
    color: #0273be;
    margin: 1em 0 0.5em 0;
    font-size: 26px;
}

/* Add specific margin for section headings */
.modal .modal-body .difficulty-heading,
.modal .modal-body .tutorials-heading {
    margin-top: 30px;
}

/* Paragraphs in modal body */
.modal .modal-body p {
    margin: 0.5em 0;
}

/* Lists in modal body */
.modal .modal-body ul {
    margin: 1.2em 0;
    padding: 0 0 0 20px;
    line-height: 1.2;
}

/* List items in modal body */
.modal .modal-body li {
    margin: 0 0 1.2em 0;
    line-height: 1.2;
    font-size: 18px;
}

/* ===============================
    Difficulty Gauge
    ============================== */

/* Difficulty gauge responsive sizing */
.difficulty-gauge-simple {
    margin: 10px 0 20px;
    position: relative;
}

/* SVG within difficulty gauge */
.difficulty-gauge-svg {
    width: 80%;
    height: auto;
    display: block;
    min-height: 30px;
}

/* ========================================================================
   Decision Modals
   ======================================================================== */

/* Decision modal specific styling */
.decision-modal {
    position: absolute;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 15px;
    overflow-y: auto;
    transform: none;
    z-index: 10000;
}

/* Decision modal body */
.decision-modal .modal-body {
    padding: 0;
    position: relative;
}

/* Paragraph in decision modal */
.decision-modal .modal-body p {
    margin: 0;
    padding-right: 2em;
    font-size: 16px;
    line-height: 1.5;
}

/* Close button in decision modal */
.decision-modal .close {
    position: absolute;
    top: 8px !important;
    right: 8px !important;
    font-size: 20px;
    padding: 0 5px;
}

/* Style for decision tooltips - with orange formatting */
.decision-tooltip .benchmark-name {
    background-color: #FFA500 !important;
    color: #333 !important;
    font-weight: 400 !important;
}
.decision-tooltip .benchmark-measures {
    background-color: rgba(255, 165, 0, 0.8) !important;
    color: #333 !important;
    font-weight: normal !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
}


/* ========================================================================
   Model Picker Form Styles
   ======================================================================== */

/* Main model picker form container */
#modelPickerForm {
    width: 100%;
    margin: 0 auto;
    background: #f8f9fa;
    font-size: 1.8rem;
    padding: 2rem;
    border: 1px solid rgba(221, 221, 221, 0.5);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Objective form container */
#objective_form {
    margin-bottom: 1.5em;
} 

/* Checkbox group styling */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    width: 100%;
    margin-bottom: 2rem;
}

/* Section headers in model picker */
#modelPickerForm h2 {
    font-size: 3rem;
    color: #333;
    margin-bottom: 10px;
}

/* Form steps container */
.form-steps {
    background: #f9f9f9;
    transition: opacity 0.3s ease;
    margin-top: 1em;
    border: 1px solid #ddd;
    padding: 1em 2em;
    margin-bottom: 4em;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.11);
    border: 1px solid rgba(221, 221, 221, 0.5);
}

/* Radio group styling */
.radio-group {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping when needed */
    align-items: center; /* Keeps radio buttons and labels aligned */
    gap: 1.5em; /* Space between items */
    margin-top: 1em;
}

/* Radio option styling */
.radio-option {
    display: flex;
    align-items: center; /* Ensures text stays next to the radio button */
    gap: 0.5em; /* Adds space between button and label */
}

/* Radio input styling */
input[type='radio'] {
    width: 20px; /* Adjust size */
    height: 20px;
    accent-color: #0273be; /* Changes the color in supported browsers */
}

/* Form section spacing */
.form-section:not(:first-child) {
    margin-top: 2em;
    transition: opacity 0.3s ease;
}

/* Secondary objective section */
#secondary_objective_section {
    transition: opacity 0.3s ease;
}

/* Visible secondary objective */
#secondary_objective_section.visible {
    opacity: 1;
}

/* Checkbox option alignment */
.checkbox-option {
    display: flex;
    align-items: center;
    font-size: 1.2rem; /* Make text size proportional */
}

/* Checkbox input styling */
.checkbox-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px; /* Add spacing between checkbox and label */
}

/* Form button styling */
#objective_form .button {
    margin: 6em auto 0 !important; /* Center horizontally with 2em top margin & 0 bottom */
    border-radius: 0.5em !important;
    display: block !important;
    width: fit-content !important;
    padding: 10px 20px !important;
    color: #fff !important;
    background-color: #ffa500 !important; 
    border: none !important;
    cursor: pointer !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease !important;
    box-shadow: 2px 2px 2px rgb(0, 0, 0, 0.3) !important;
}

/* Form button hover state */
#objective_form .button:hover {
    background-color: #0273be !important; 		
    border: none; 													
}

/* Button focus state */
.button:focus {
    outline: none !important;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.3) !important; 
}

/* Wrap container button */
.wrap .button {
    margin: 2.5em auto !important;				
    border-radius: 0.5em !important;
    display: block !important;
    width: fit-content !important;
    padding: 10px 20px !important;
    color: #fff !important;
    background-color: #ffa500 !important; 
    border: none !important;
    cursor: pointer !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background-color 0.3s ease !important;
    box-shadow: 2px 2px 2px rgb(0, 0, 0, 0.3) !important;
}


/* ========================================================================
   WordPress Styles
   ======================================================================== */

/* ===============================
    Page Structure
    =============================== */

/* Fluid width container for index page only */
.wrap-fluid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    overflow-x: visible;
}

/* Fixed width container */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ===============================
    Main Content Area
    =============================== */

/* Entry content container */
.entry-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Lists in entry content */
.entry-content ul {
    padding: 0;
    margin-left: 60px;
    margin-top: -15px;
}

/* List items in entry content */
.entry-content li {
    margin-bottom: 0.5em;
    line-height: 1.6;
    font-size: 18px;
}

/* Image credit text */
.image-credit {
    font-size: 14px;
    font-style: italic;
    margin-left: 1.7em;
    margin-top: 2.5em;
}


/* ===============================
    Image Container Styles
    =============================== */

/* Container for images */
.image-container {
    max-width: 100%;
    margin: 2em 0;
}

/* Images within container */
.image-container img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Entry header and footer alignment */
.entry-header, .entry-footer {
    text-align: center;
}

/* Entry title styling */
.entry-title {
    font-size: 48px;
    font-weight: 200;
    margin-top: 55px;
}

/* Decorative line after entry header */
.entry-header::after {
    border-bottom: 1px solid #000;
    content: "";
    display: block;
    margin: 0 auto;
    padding-bottom: 30px;
    width: 25%;
}

/* Main content area */
.main-content {
    background: white;
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(100vh - 90px); 
}


/* ========================================================================
   Responsive Styles
   ======================================================================== */

/* ===============================
    Touch Devices 
    ============================== */

@media (pointer: coarse) {
    #resizer {
        height: 12px;                       /* Bigger touch target */
        background-color: #e8e8e8;        /* Slightly darker to be more visible */
    }
    
    #resizer::before {
        width: 80px;                        /* Wider dots pattern */
        height: 8px;                        /* Taller dots pattern */
    }
}


/* FROM AI STRATEGY */

/* ===============================
    Large Devices (>1024px)
    ============================== */

    @media only screen and (min-width: 1024px) {

        /* REUSABLE */
    
        .site-header {
            padding: 0;
            height: 76px;
        }
        
        .site-header .wrap-fluid {
            padding: 0 60px;
            max-width: 100%;
            height: 76px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .site-header .wrap {
            height: 76px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .site-header .title-area {
            width: auto;
            padding: 8px 0;
            margin-left: 0;
        }
        
        .site-header .header-logo {
            height: 60px;
        }
        
        .site-header .nav-primary .menu {
            height: 76px;
            align-items: center;
            margin-right: 0;
        }
    
        .main-content .wrap {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .menu-toggle {
            display: none;
        }
        
        #watermark-overlay {
            display: block;
        }
    }

/* END FROM AI STRATEGY */


/* FROM AI STRATEGY */

/* ===============================
    Medium Devices (801-1023px)
   ============================== */

@media only screen and (max-width: 1023px) and (min-width: 801px) {

    /* REUSABLE */

    .container-fluid {
        padding: 40px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
        font-size: 30px;
    }

    .site-header .wrap,
    .site-header .wrap-fluid {
        display: block;
    }

    .menu-toggle {
        display: none !important;
    }
    
    .title-area {
        width: 100%;
        text-align: center;
        float: none;
        padding: 15px 0;
    }
    
    .header-logo {
        margin: 0 auto;
    }
    
    .nav-primary {
        width: 100%;
        display: block;
    }
    
    .nav-primary .menu {
        float: none;
        justify-content: center;
        margin: 0 auto;
    }

    .nav-primary .menu a {
        font-size: 16px;
    }

    .watermark {
        height: 25px;
        position: absolute; 
        bottom: 0;          
        left: 0; 
        margin: 1.3em 1em;          
    }

    /* END FROM AI STRATEGY */


    /* APP SPECIFIC */

    /* Wrapper for flowchart with fixed height */
    #flowchart-container {
        min-height: 400px; /* Only set minimum height on the container */
    }

    .flowchart-wrapper {
        position: relative;
        height: auto;     /* Use variable instead of auto */
        width: 100%;  
        overflow: visible;
    }

    /* .info-icon {
        cursor: help;
        position: relative;
        display: inline-block;
        vertical-align: super;
        font-size: 16px;
        font-family: 'Ek Mukta', sans-serif;
        font-weight: 200;
        color: #8bb42d;
        padding: 2px 6px;
        border-radius: 50%;
    } */
}




/* FROM AI STRATEGY APP  */

/* ===============================
    Small Devices (<800px)
   ============================== */

@media only screen and (max-width: 800px) {

    /* REUSABLE */

    .container-fluid {
        padding: 20px;
    }
    
    .header-logo {
        margin: 0 auto;
    }
    
    /* Center the logo */
    .title-area {
        width: 100%;
        text-align: center;
        float: none;
        padding: 15px 0;
    }

    /* Hamburger menu styles */

    /* Position nav-primary properly */
    .nav-primary {
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
    }
    
    /* Hide regular menu and show menu toggle */
    .nav-primary .menu {
        display: none;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Style menu */
    .nav-primary .menu.visible,
    .nav-primary.genesis-responsive-menu .menu {
        display: flex;
        flex-direction: column;
        padding: 40px 20px;
        background-color: black;
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        box-sizing: border-box;
        letter-spacing: 0.5px;
        z-index: 1000;
    } 

    .nav-primary .menu li {
        margin-bottom: -40px;
        text-align: center;
    }
    
    .nav-primary .menu a {
        color: white;
        padding: 15px;
        display: block;
        text-align: left;
    }
    
    /* Show menu toggle button */
    .menu-toggle {
        display: block;
        width: 100%;
        margin-bottom: 0;
    }

    .nav-primary {
        width: 100%;
        padding: 0;
        margin-top: 10px !important;
    }
    
    h2 {
        font-size: 30px;
    }

    h3 {
        font-size: 25px;
    }

    /* Info icon adjustment for mobile */
    .info-icon {
        font-size: 16px;
        vertical-align: super;
        padding: 1px;
    }

    .watermark {
        height: 20px;
        position: absolute;
        bottom: 0;
        left: 0;
        margin: 20px 10px;
    }
    

    /* APP SPECIFIC */

    
    /* Resolve issue of search breaking out of dom */ 
    body {
        overflow-x: hidden;
        /* width: 100%;
        max-width: 100vw; */
    }

    .flowchart-wrapper {
        position: relative;
        height: auto;
        width: 100%;  
        overflow: visible;
    }

    /* For pinch-to-zoom, expand container to full width */
    .flowchart-wrapper.zooming {
        margin-left: -30px;
        margin-right: -30px;
        width: calc(100% + 60px);       /* Compensate for container padding */
    }
    
    /* Remove border radius during zoom for cleaner edges */
    .flowchart-wrapper.zooming #flowchart-container {
        border-radius: 0;
    }

    #search-panel-root {
        top: 34px;
        /* width: 280px;
        right: 20px; */
    }
    
    
    .search-panel-tab, 
    .search-panel-tab.floating {
        top: 62px !important;
        right: 15px !important;
        /* pointer-events: auto !important; */
    }


    /* Maintain subcategory text color on mobile */
    .subcategory-button {
        color: #333;
    }

    #network-search {
        width: 150px;
        font-size: 0.8em;
    }

    .modal {
        min-width: 300px;
        max-width: 80%
    }

    /* Main model picker form container */
    .form-steps {
        margin: 30px 0 30px 0;
    }

    /* Make the step-2-header a flex container BUT DON'T FORCE DISPLAY */
    .step-2-header.visible {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 20px;
    }

    .step-2-header.visible h2 {
        margin: 0;
    }
    
    /* Keep .step-2-header hidden by default */
    .step-2-header {
        display: none;
    }
    
    /* Style for the mobile search container */
    .step-2-header .mobile-search-container {
        margin-left: auto; /* Push to the right */
        display: flex !important;
        align-items: center; /* Center align items vertically */
    }
    
    /* Search container in step header */
    .step-2-header .search-controls {
        margin-left: auto; /* Pushes search to the right */
    }
    
    /* Change flowchart-header layout to column for mobile */
    .flowchart-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    
    /* Style for the flowchart breadcrumbs */
    .flowchart-title {
        margin-top: -5px;
        width: 100%;
        font-size: 14px;
        line-height: 1.4;
    }
    
    /* Adjust the search field width to fit mobile screens */
    #network-search {
        width: 200px;
        min-width: 150px;
        font-size: 0.9em;
        height: 32px;           /* Slightly smaller height */
        margin-top: 0;
    }
    
    /* Make the clear button slightly smaller */
    .clear-input {
        font-size: 1.2em;
    }

    .mobile-search-container .clear-input {
        visibility: visible !important; /* Override inline styles */
        position: absolute;
        right: 0.6em;
        top: 45%;
        transform: translateY(-50%);
        cursor: pointer;
        color: #999;
      }
      
      /* Only show when input has content */
      .mobile-search-container input:placeholder-shown + .clear-input {
        visibility: hidden !important;
      }
      
      /* Position the clear button container properly */
      .mobile-search-container .clearable-input {
        position: relative;
      }

      .decision-tooltip {
        left: 20px;
        width: 80vw;
        max-width: 80vw /* LEFT OFF */
      }
}

    


/* ===============================
    Very Small Devices (<500px)
   ============================== */

@media only screen and (max-width: 500px) {
/* Reusable styles */

    /* Card-like footer links for small screens */
    .footer-link {
        display: block;
        width: 120px;
        padding: 12px 10px;
        background-color: rgba(248, 249, 250, 0.9);
        border-radius: 6px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        transition: box-shadow 0.3s, transform 0.3s, color 0.3s;
        text-align: center;
        margin: 6px;
        font-size: 16px;
        color: #666;
    }

    .footer-link:hover {
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        transform: translateY(-3px);
        /* color: #0273be; */
        color: white;
        background-color: var(--color-brand-orange);
        text-decoration: none;
    }

    .footer {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 20px 20px;
    }

    .footer-nav {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Create 2 columns */
        gap: 15px; /* Even spacing between items */
        width: 100%;
        max-width: 300px;
        justify-items: center; /* Center items horizontally */
        align-items: center; /* Center items vertically */
    }

    /* App-specific styles */

    h2 {
        font-size: 24px;
        margin: 35px 0 20px 0;
        line-height: 0;
    }

     /* Adjust the search field width to fit mobile screens */
    #network-search {
        width: 130px;
        /* min-width: 150px; */
        font-size: 14px !important;
        height: 28px;           
        margin-top: 0;
    }

    .vis-network canvas {
        min-height: 100px;
    }

    .watermark {
        display: none;
    }
}


/* ========================================================================
   Diagnostic
   ======================================================================== */

/* Outline all elements with red border for weird margin issues */
/* * {
    outline: 1px solid red !important;
} */