﻿/* --- Base styles --- */
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #30313d; /* This is Stripe's actual text dark grey */
    background-color: #ffffff;
    line-height: 1.6;
}

/* Apply Plus Jakarta Sans to headings for that "Stripe Brand" pop */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em; /* Tighten it up slightly for the modern look */
    font-weight: 700;
    color: #0a2540; /* Stripe's dark blue header color */
}

header {
    background: #ffffff;
    border-bottom: 1px solid #f1f4f8;
    /* Increase top padding (2rem) to push GlanceDocs down, 
       and keep 0 on bottom so the active line hits the border */
    padding: 2rem 2.5rem 0 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2000; /* Higher than sidebar (usually 100-1000) */
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    /* This gap controls the distance between GlanceDocs and the Tabs */
}

.brand-tier {
    flex: 1;
    display: flex;
    justify-content: flex-start; /* Aligns text to the left */
}

.brand-tier h1 {
    margin: 0;
    font-size: 1.4rem; /* Slightly larger for presence */
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1; /* Prevents invisible "box" space around text */
}

.top-nav {
    display: flex;
    gap: 2rem;
    margin: 0;
}

    .top-nav a {
        text-decoration: none;
        color: #4f5b76;
        font-size: 14px;
        font-weight: 600;
        /* Increase this padding to make the nav area feel taller */
        padding-bottom: 1rem;
        border-bottom: 2px solid transparent;
        transition: all 0.2s ease;
    }

        .top-nav a:hover {
            color: #0a2540;
        }

        .top-nav a.active {
            color: #635bff;
            border-bottom-color: #635bff; /* The signature purple "underline" */
        }

.layout {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    /* CHANGED: Remove max-width and auto margins */
    max-width: none;
    margin: 0;
    padding-left: 0; /* Sidebar touches the left edge */
    padding-right: 2rem;
    min-height: calc(100vh - 64px);
}

aside#sidebar {
    position: sticky;
    top: 0px;
    width: 280px;
    height: calc(100vh - 130px);
    padding: 2rem 1rem;
    background: #ffffff;
    border-right: 1px solid #f1f4f8;
    overflow-y: auto;
    box-sizing: border-box;
    position: relative;
    flex-shrink: 0; /* Prevents the gap from squishing the sidebar */
    /* Ensure no extra margin here pushing it right */
    margin-left: 0;
    padding-left: 1.5rem; /* Add breathing room for the text */
}

/* --- Right Sidebar (Table of Contents) --- */
aside#toc {
    width: 240px; /* Standard width for TOC */
    position: sticky;
    top: 2rem; /* Sits a bit below the header */
    height: calc(100vh - 4rem);
    overflow-y: auto;
    padding: 2rem 1.5rem;
    font-size: 13px;
    border-left: 1px solid #f1f4f8; /* subtle divider */
    display: none; /* Hidden by default (mobile), block on desktop */
}

/* Only show TOC on large screens */
@media (min-width: 1024px) {
    aside#toc {
        display: block;
    }
}

.toc-header {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
    color: #8898aa;
    margin-bottom: 1rem;
}

#toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toc li {
    margin-bottom: 8px;
}

#toc a {
    text-decoration: none;
    color: #4f5b76;
    display: block;
    line-height: 1.4;
    transition: color 0.2s;
}

    #toc a:hover {
        color: #635bff;
    }

    /* Active state for Scrollspy */
    #toc a.active {
        color: #635bff; /* Stripe Purple */
        font-weight: 600;
        /* Optional: Add a subtle left border indicator */
        border-left: 2px solid #635bff;
        padding-left: 10px;
        margin-left: -12px; /* Pulls it back so text stays aligned */
    }

/* Indent H3s slightly */
#toc .toc-h3 {
    padding-left: 12px;
    font-size: 12px;
    color: #697386;
}

main {
    flex: 1;
    padding: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Modern "Accent Line" Callouts --- */
.callout {
    position: relative;
    margin: 2rem 0;
    padding: .5rem .5rem .5rem 3.5rem; /* Slightly less vertical padding since there is no box */

    background: transparent; /* Blends into the page */
    /* background: #f9f9f9; */ /* OPTIONAL: Uncomment this if you want a very subtle gray box behind it */

    border: none; /* No border on top, right, or bottom */
    border-left-width: 4px; /* Only the thick left line */
    border-left-style: solid;
    /* Color is handled by the specific classes (.note, .warning, etc) below */

    border-radius: 0; /* Square edges look better for this style */
    font-size: 0.95rem;
}

    /* 1. The Icons */
    .callout::before {
        content: '';
        position: absolute;
        top: .5rem; /* Adjusted to match new padding */
        left: 1.25rem;
        width: 20px;
        height: 20px;
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.9;
    }

/* 2. Callout Titles */
.callout-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0a2540;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* --- Color Variants (No changes needed here, but included for completeness) --- */

/* NOTE (Blue) */
.callout.note {
    border-left-color: #635bff;
}

    .callout.note::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23635bff'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E");
    }

/* WARNING (Amber) */
.callout.warning {
    border-left-color: #f5a623;
}

    .callout.warning::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f5a623'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
    }

/* ERROR (Red) */
.callout.error {
    border-left-color: #d14343;
}

    .callout.error::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d14343'%3E%3Cpath d='M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z'/%3E%3C/svg%3E");
    }

/* SUCCESS/CHECK (Green) */
.callout.check {
    border-left-color: #007a5a;
}

    .callout.check::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23007a5a'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
    }



/* --- Stripe Sidebar Links & Tree --- */
#sidebar ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

#sidebar li {
    margin: 2px 0;
}

#sidebar a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #4f5b76; /* Muted slate color */
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

    #sidebar a:hover {
        color: #0a2540; /* Deep navy */
        background: #f6f9fc;
    }

    #sidebar a.active {
        color: #635bff; /* Signature Stripe Purple */
        background: rgba(99, 91, 255, 0.05);
        font-weight: 600;
    }

/* Section Headers (the non-clickable folder titles) */
#sidebar .nav-section {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: #8898aa;
    margin: 1.5rem 0 0.5rem 12px;
    display: block;
}

/* 1. Ensure the container is a row */
#sidebar .nav-item {
    display: flex;
    align-items: center; /* This pulls them onto the same horizontal line */
    position: relative; /* Anchor for the z-index */
    width: 100%;
}

    /* 3. Make sure the link takes up the rest of the space */
    #sidebar .nav-item a {
        flex-grow: 1;
        padding-left: 4px !important; /* Tighten gap between caret and text */
    }

/* 2. Style the toggle (caret) */
#sidebar .toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; /* Larger hit area */
    height: 30px;
    cursor: pointer;
    color: #aab7c4;
    font-size: 15px;
    user-select: none;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 10; /* Sit above the pill */
}

    #sidebar .toggle:hover {
        color: #635bff; /* Purple highlight on hover to show it's clickable */
    }

#sidebar li.open > .nav-item > .toggle {
    transform: rotate(90deg);
}

/* Nested lists (The vertical line) */
#sidebar li > ul {
    margin-left: 20px;
    border-left: 1px solid #e6ebf1;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#sidebar li.open > ul {
    max-height: 2000px;
}

/* 4. Fix the hover pill for nested items */
/* Since the pill tracks the <a> tag, we want the <a> to be the focus */
#sidebar li ul a {
    margin-left: 4px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #666;
}

    .breadcrumbs a {
        color: #0074d9;
        text-decoration: none;
    }

        .breadcrumbs a:hover {
            text-decoration: underline;
        }

    .breadcrumbs .sep {
        margin: 0 0.5rem;
        color: #999;
    }

    .breadcrumbs span {
        font-weight: 500;
    }


/* Titles and Slugs */
.result-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #222;
}

.result-url {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

/* Empty state / "See all" */
.sidebar-results p {
    padding: 12px;
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.search-see-all {
    background: #fcfcfc;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
}

.code-block {
    position: relative;
    margin: 2rem 0;
    background: #0d1117;
    border-radius: 8px;
    overflow: hidden;
    min-height: 50px; /* Ensures it's visible even if content is small */
    display: block; /* Force block display */
}

.code-block-header {
    background: #161b22; /* Slightly lighter than the main code background */
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #30363d;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.code-block-lang {
    color: #8b949e;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    font-family: sans-serif;
}

.shiki-wrapper pre {
    padding: 1.25rem;
    margin: 0;
    overflow-x: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

/* --- Copy Button Styles --- */
.copy-button {
    position: absolute;
    top: 6px; /* Positions it inside the code-block-header */
    right: 12px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    background: #21262d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

    .copy-button:hover {
        background: #30363d;
        color: #fff;
        border-color: #8b949e;
    }

    .copy-button.success {
        background: #238636;
        color: #fff;
        border-color: #2ea043;
    }

/* --- Hover Pill --- */
#nav-pill {
    position: absolute;
    left: 8px;
    right: 8px;
    background: #f6f9fc; /* Stripe's hover color */
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    pointer-events: none;
    opacity: 0;
    z-index: 0; /* Sits behind the text but above the sidebar background */
}

/* Ensure sidebar links are on top of the pill */
#sidebar a {
    position: relative;
    z-index: 5;
    flex-grow: 1;
}

.sidebar-product-title {
    padding: 0 12px;
    margin-bottom: 1.5rem;
    font-size: 18px;
    font-weight: 700;
    color: #0a2540;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* --- Launcher Grid --- */
.launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.launcher-card {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e6ebf1;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

    .launcher-card:hover {
        border-color: #635bff;
        transform: translateY(-2px);
        box-shadow: 0 15px 35px -5px rgba(50,50,93,0.1), 0 5px 15px -5px rgba(0,0,0,0.08);
    }

.card-icon {
    font-size: 24px;
    margin-right: 1.25rem;
    background: #f6f9fc;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    color: #0a2540;
    font-size: 18px;
}

.card-content p {
    margin: 0;
    color: #4f5b76;
    font-size: 14px;
    line-height: 1.5;
}

/* --- Header Layout --- */
.brand-row {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* --- Center Search Container --- */
#header-search {
    flex: 0 1 500px; /* Won't grow past 500px */
    display: flex;
    justify-content: center;
}

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px; /* Limits width so it doesn't get too wide on huge screens */
    display: flex;
    align-items: center;
}

/* Input Styling (The Pill) */
#header-search input {
    width: 100%;
    padding: 10px 12px 10px 40px; /* Left padding makes room for the icon */
    background: #f6f9fc; /* Stripe's light gray-blue */
    border: 1px solid transparent;
    border-radius: 20px; /* The "Pill" shape */
    font-size: 14px;
    color: #0a2540;
    transition: all 0.2s ease;
    outline: none;
    height: 40px; /* Explicit height for consistency */
    box-sizing: border-box;
}

    #header-search input:focus {
        background: #ffffff;
        border-color: #635bff; /* Purple border on focus */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

/* Icons and Hints */
.search-icon {
    position: absolute;
    left: 14px;
    pointer-events: none;
    z-index: 10;
}

.search-hint {
    position: absolute;
    right: 12px;
    font-family: sans-serif;
    font-size: 12px;
    color: #8898aa;
    border: 1px solid #e6ebf1;
    border-radius: 4px;
    padding: 2px 6px;
    background: #fff;
    pointer-events: none;
}


/* Style the individual clickable rows */
.search-result-item {
    display: block; /* Forces each result to be its own row */
    padding: 10px 16px; /* Nice big clickable area */
    border-bottom: 1px solid #f1f4f8;
    text-decoration: none; /* Removes default blue underline */
    cursor: pointer;
    transition: background 0.15s ease;
}

    /* Remove border from the last item so it looks clean */
    .search-result-item:last-child {
        border-bottom: none;
    }

    /* Highlight the row when hovering */
    .search-result-item:hover,
    .search-result-item.selected {
        background: #f6f9fc;
        border-left: 3px solid #635bff; /* Adds a nice purple indicator bar */
        padding-left: 13px; /* Adjust padding to account for the border width so text doesn't jump */
    }

/* Text Styling */
.result-title {
    font-size: 14px;
    font-weight: 600;
    color: #0a2540;
    margin-bottom: 2px;
}

.result-url {
    font-size: 12px;
    color: #8898aa;
    font-family: monospace; /* Makes the path look like code */
}

/* "No Results" Styling */
.no-results {
    padding: 12px 16px;
    color: #697386;
    font-size: 14px;
    margin: 0;
}

.utility-tier {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Aligns links to the right */
    gap: 1.5rem;
}

/* --- Search Modal Overlay (The Background) --- */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 37, 64, 0.4); /* Dark blue tint */
    backdrop-filter: blur(4px); /* The nice blur effect */
    z-index: 9999; /* Highest thing on the page */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Aligns box to top-center */
    padding-top: 10vh; /* Drops it down slightly */
    opacity: 0;
    animation: fadeIn 0.2s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* --- The Modal Box --- */
.search-modal-container {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 50px 100px -20px rgba(50,50,93,0.25), 0 30px 60px -30px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header (Input Area) */
.search-modal-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f4f8;
}

.search-icon-large {
    margin-right: 12px;
}

#modal-search-input {
    flex: 1;
    border: none;
    font-size: 16px;
    color: #0a2540;
    outline: none;
    background: transparent;
    height: 30px;
}

.close-modal {
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    color: #8898aa;
    cursor: pointer;
}

/* Trigger Input (In Header) */
.search-trigger-input {
    cursor: pointer !important; /* Shows hand cursor so users know to click */
}

/* Results Area inside Modal */
.search-modal-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
    min-height: 100px; /* Ensures it doesn't collapse fully */
}

/* Footer Hints */
.search-modal-footer {
    padding: 12px 20px;
    background: #fcfcfc;
    border-top: 1px solid #f1f4f8;
    display: flex;
    gap: 20px;
    font-size: 11px;
    color: #8898aa;
}

    .search-modal-footer kbd {
        background: #fff;
        border: 1px solid #e6ebf1;
        border-radius: 3px;
        padding: 1px 4px;
        font-family: inherit;
    }

/* --- Mobile Responsiveness --- */

/* 1. Hide the Hamburger on Desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #0a2540;
    padding: 0;
    margin-right: 12px; /* Space between button and Title */
}

/* 2. Styles for Mobile Screens (< 768px) */
@media (max-width: 768px) {

    /* Reveal the hamburger */
    .mobile-menu-btn {
        display: block;
    }

    /* Stack the header layout vertically if needed, or simplify padding */
    header {
        padding: 1rem 1.5rem 0 1.5rem;
    }

    /* Hide the Desktop Top Nav (the links below the title) */
    .top-nav {
        display: none;
    }

    /* Hide the Utility Tier (GitHub/Support) to save space */
    .utility-tier {
        display: none;
    }

    /* Make the Search Bar full width */
    #header-search {
        width: 100%;
        flex: 1;
        max-width: none;
    }

    /* --- The Layout Shift --- */

    /* Stack the layout column (Sidebar on top of Main) */
    .layout {
        flex-direction: column;
    }

    /* Hide the Right Sidebar (TOC) completely */
    aside#toc {
        display: none !important;
    }

    /* Hide the Left Sidebar by default (we will toggle it) */
    aside#sidebar {
        display: none;
        position: fixed;
        top: 60px; /* Below header */
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: calc(100vh - 60px);
        z-index: 1500;
        border-right: none;
    }

        /* When we add the 'show' class via JS, it appears */
        aside#sidebar.show {
            display: block;
        }

    /* Adjust Main Content Padding */
    main {
        padding: 1.5rem;
    }

    /* Single Column Launcher Grid */
    .launcher-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Logo & Brand Styling --- */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #0a2540; /* Dark blue text color */
    gap: 6px; /* Space between Icon and Text */
}

/* 1. The SVG Icon */
.brand-logo {
    height: 42px; /* Adjusted to look good */
    width: auto;
    display: block;
}

/* 2. The Text Column container */
.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1; /* Tighter spacing */
}

/* 3. "Glance" */
.brand-name {
    font-weight: 700;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: #0a2540;
}

/* 4. "DOCS" */
.brand-suffix {
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.15em; /* Spaced out letters look premium */
    color: #019ada; /* I pulled this teal/blue color from your logo code! */
    margin-top: 3px; /* Small gap between words */
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .brand-logo {
        height: 36px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-suffix {
        font-size: 11px;
    }

    .layout {
        flex-direction: column; /* Stack vertically on phones */
        gap: 0; /* No gap needed on mobile */
    }
}

/* --- Documentation Tables --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.95rem; /* Slightly smaller than body text */
}

/* Header Row */
thead th {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid #e3e8ee;
    color: #0a2540; /* Dark heading color */
    font-weight: 600;
    background-color: #f7f9fc; /* Very subtle gray header background */
    font-family: 'Inter', sans-serif;
}

/* Data Rows */
tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e3e8ee;
    color: #425466; /* Slightly softer text for data */
    vertical-align: top;
}

/* Zebra Striping (Optional: makes long tables easier to read) */
/* tbody tr:nth-child(even) {
    background-color: #fcfcfd; 
} */

/* Code inside tables (e.g. parameter names) */
td code {
    background: rgba(27, 31, 35, 0.05);
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    color: #d63384; /* Pinkish color for code words often looks nice */
    font-size: 0.9em;
}


/* --- Help Dropdown --- */
.dropdown-container {
    position: relative; /* Anchor the absolute menu to this */
}

.dropdown-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #425466; /* Stripe gray */
    padding: 8px 12px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    font-family: 'Inter', sans-serif;
}

    .dropdown-trigger:hover, .dropdown-trigger.active {
        color: #0a2540;
        background-color: rgba(0,0,0,0.04);
    }

/* The Hidden Menu */
.dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0; /* Align to the right edge of the trigger */
    width: 260px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(50,50,93,0.1), 0 5px 15px rgba(0,0,0,0.07);
    border: 1px solid #e3e8ee;
    margin-top: 8px;
    z-index: 1000;
    padding: 8px 0;
    animation: fadeIn 0.15s ease-out;
}

    .dropdown-menu.show {
        display: block;
    }


/* Menu Items (Simplified) */
.dropdown-item {
    display: block; /* Standard block link */
    padding: 10px 16px; /* Comfortable click area */
    text-decoration: none;
    color: #0a2540; /* Dark blue text */
    font-size: 14px;
    font-weight: 500;
    transition: background 0.1s, color 0.1s;
}

    .dropdown-item:hover {
        background-color: #f7f9fc; /* Light gray hover */
        color: #635bff; /* Stripe blurple on hover (optional pop of color) */
    }

/* Remove the old complex item styles if they are still there */
.dropdown-header, .dropdown-icon, .item-title, .item-desc, .dropdown-divider {
    display: none;
}


/* --- Support Form Styling --- */
.contact-form-container {
    max-width: 600px; /* Constrain width so lines aren't too long to read */
}

.sf-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Space between fields */
    margin-top: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Labels */
.sf-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0a2540;
    margin-bottom: 0.5rem;
}

/* Inputs & Textareas */
.sf-form input[type="text"],
.sf-form select,
.sf-form textarea {
    padding: 10px 12px;
    border: 1px solid #e3e8ee;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #425466;
    background: #fff;
    transition: all 0.2s;
}

    .sf-form input:focus,
    .sf-form select:focus,
    .sf-form textarea:focus {
        outline: none;
        border-color: #635bff; /* Stripe Blurple */
        box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.1);
    }

.sf-form textarea {
    resize: vertical; /* Allow resizing height only */
}

/* Submit Button */
.submit-btn {
    background-color: #635bff;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    align-self: flex-start; /* Align left */
}

    .submit-btn:hover {
        background-color: #4b45e6;
    }

/* Mobile Responsive */
@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .form-group.half {
        width: 100%;
    }
}

/* --- Footer --- */
.site-footer {
    background-color: #1a1f36; /* Dark Stripe-like blue/black */
    color: #aab7c4; /* Muted text color for readability */
    padding: 3rem 1.5rem;
    margin-top: auto; /* Pushes footer to bottom if page is short */
    border-top: 1px solid #3c4257;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

/* Brand Section */
.footer-brand {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.copyright {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #697386;
}

/* Links Section */
.footer-links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .footer-column h4 {
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #fff;
        margin-bottom: 0.5rem;
    }

    .footer-column a {
        color: #aab7c4;
        text-decoration: none;
        font-size: 0.9rem;
        transition: color 0.2s ease;
    }

        .footer-column a:hover {
            color: #fff;
        }

/* Mobile Tweak: Stack everything vertically on small screens */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .footer-links {
        gap: 2rem;
        width: 100%;
        justify-content: space-between;
    }
}