:root {
    --primary: #990000;
    --primary-dark: #6D0808;
    --accent: #F41C40;
    --text: #072332;
    --dark: var(--text);
    --light: #ffffff;
    --border: #e2e8f0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--dark);
    background-color: var(--light);
}

p,
h1,
h2,
h3,
h4 {
    color: var(--text);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    margin: 0;
    font-size: 1.5rem;
}

nav h1 span {
    color: var(--primary);
}

nav .site-title {
    color: var(--dark);
    display: inline-block;
    text-decoration: none;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
}

nav a.active {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
}

/* Headers - Keeping that big clean look */
header {
    padding: 60px 0;
    text-align: center;
    background: white;
    border-bottom: 1px solid var(--border);
    margin-bottom: 40px;
}

/* Layout Elements */
section {
    padding: 10px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Results Table */
.table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* --- Unified Code Block System --- */

/* Main container using the Neo4j Desktop background */
.code-wrapper {
    margin: 20px 0;
    border: 1px solid #3e4451;
    border-radius: 8px;
    overflow: hidden;
    background-color: #272822;
    /* Highlighting-friendly dark grey */
}

/* Slim header for language label and copy button */
.code-header {
    padding: 6px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.75rem;
    color: #888;
    border-bottom: 1px solid #3e4451;
    background-color: #272822;
    /* Matches block exactly */
}

/* The Copy Button inside the header */
.code-header .copy-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #888;
    padding: 2px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.code-header .copy-btn:hover {
    color: #fff;
    border-color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Syntax-highlighted block with horizontal scrolling */
.code-block {
    margin: 0;
    padding: 15px;
    color: #F8F8F2;
    /* Off-white text */
    background-color: #272822;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    line-height: 1.5;

    /* Horizontal scroll enabled, wrapping disabled */
    white-space: pre;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: #f1f5f9;
}

.download-page table thead th {
    background-color: #B9C1C6;
}

.result-table thead th {
    background-color: #B9C1C6 !important;
}

/* Compact node/edge summaries on dataset overview pages */
.dataset-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
    margin-top: 16px;
}

.dataset-stat-group {
    min-width: 0;
}

.dataset-stat-group h4 {
    margin: 0 0 8px;
}

.dataset-stats-table {
    font-size: 0.875rem;
    line-height: 1.2;
}

.dataset-stats-table th,
.dataset-stats-table td {
    padding: 5px 10px;
}

.dataset-stats-table thead th {
    background-color: #B9C1C6;
}

.dataset-stats-table tbody tr:last-child td {
    border-bottom: 0;
}

.dataset-stats-table th:last-child,
.dataset-stats-table td:last-child {
    width: 1%;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
    .dataset-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Team Specifics */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-card {
    padding: 40px 25px;
    border-bottom: 1px solid #e5e7eb;
}

main.container:last-of-type .team-card {
    border-bottom: none;
}

.profile-pic {
    width: 140px;
    height: 140px;
    object-fit: cover;
    display: block;
    background-color: #cbd5e1;
    border-radius: 50%;
    margin: 0 auto 15px;
}

.team-card h4,
.team-card p {
    margin: 4px 0;
    line-height: 1.4;
}

.role {
    color: var(--text);
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
}

footer {
    text-align: center;
    padding: 60px 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Add this to the bottom of your style.css */

.btn-small {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-small:hover {
    background-color: var(--primary-dark);
}

.card h3 {
    margin-top: 0;
    color: var(--dark);
}

.card p {
    font-size: 0.95rem;
    color: var(--text);
}

.workload-card {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.workload-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(244, 28, 64, 0.35);
    transform: translateY(-2px);
}

.sponsors {
    padding: 60px 0;
    background-color: #ffffff;
    text-align: center;
    border-top: 1px solid var(--border);
}

.section-title {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 60px;
    /* Vertical and Horizontal spacing */
    align-items: center;
}

.logo-item img {
    height: 35px;
    /* Adjust height to keep them uniform */
    width: auto;
    filter: brightness(1) saturate(1) drop-shadow(0 0 0 rgba(244, 28, 64, 0));
    opacity: 1;
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
    transform-origin: center;
    will-change: transform, filter;
}

.logo-item img:hover {
    opacity: 1;
    filter: brightness(1.12) saturate(1.18) drop-shadow(0 0 14px rgba(244, 28, 64, 0.35));
    transform: scale(1.12);
}


/* Dataset Detail Specifics */
main section {
    margin-bottom: 1px;
}

/* .container {
    padding: 60px 0; /* Adds 60px space above and below the content */
/* } */

/* .card {
    background: white;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
} */

/* Add the accent underline effect to the H3 as seen in your screenshot */
/* .card h3 {
    display: inline-block;
    border-bottom: 2px solid var(--accent); /* Accent line */
/* padding-bottom: 8px;
    margin-bottom: 25px;
    font-size: 1.5rem; */
/* } */

/* Ensure the grid doesn't collapse at the bottom */
/* .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 20px; 
}  */

main h3 {
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 10px;
}

/* Ensure the table in statistics looks prominent */
table strong {
    color: var(--dark);
}

/* Dropdown Container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    border: 1px solid var(--border);
    border-radius: 4px;

    /* FIX: Move the menu up slightly so it overlaps or touches the parent */
    top: 100%;
    left: 0;
    margin-top: 0;
    /* Removed the margin that was causing the gap */
}

/* THE BRIDGE: This pseudo-element fills the gap so the hover isn't lost */
.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 15px;
    /* Adjust this to match the space you want */
    display: block;
}

/* Links inside the dropdown */
.dropdown-content a {
    color: var(--dark) !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--light);
    color: var(--primary) !important;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

pre {
    font-family: 'Courier New', Courier, monospace;
    overflow-x: auto;
    line-height: 1.4;
    font-size: 0.9rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    font-weight: bold;
    color: var(--primary);
}

/* Multi-button container for Documentation */
.multi-action {
    display: flex;
    flex-wrap: wrap;
    /* Allows buttons to wrap to next line if screen is narrow */
    gap: 10px;
    justify-content: flex-end;
}

/* Specific adjustment for the documentation row to handle more buttons */
.doc-row {
    align-items: flex-start;
    /* Aligns info and buttons to the top */
}

.documentation-section {
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.documentation-section:last-child {
    border-bottom: none;
}

.documentation-section>h3 {
    padding-bottom: 15px;
}

.workload-description {
    padding-top: 0;
}

.workload-intro {
    max-width: 900px;
}

/* Ensure buttons have consistent width for a clean look */
.multi-action .btn-small {
    min-width: 100px;
    text-align: center;
}

/* Mobile Responsive adjustment for buttons */
@media (max-width: 850px) {
    .multi-action {
        justify-content: flex-start;
        width: 100%;
        margin-top: 15px;
    }

    .doc-row {
        flex-direction: column;
    }
}



/* Neo4j Desktop App Syntax Highlighting */
.cypher-ui {
    color: #F8F8F2;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
}

.cy-kw {
    color: #d4a61e;
}

/* Keywords (Gold) */
.cy-var {
    color: #F8F8F2;
}

/* Variables (White) */
.cy-lab {
    color: #F92672;
}

/* Node Labels (Red/Pink) */
.cy-rel {
    color: #F92672;
}

/* Relationships (Red/Pink) */
.cy-prop {
    color: #ef667b;
}

/* Properties (Cyan) */
.cy-param {
    color: #AE81FF;
}

/* Parameters (Purple) */
.cy-func {
    color: #66D9EF;
}

/* Functions (Cyan) */
.cy-num {
    color: #a887e4;
}

/* Numbers (Purple) */
.cy-call-str {
    color: #A6E22E;
}

/* Call Strings (Green) */
.cy-comment {
    color: #75715e;
    font-style: italic;
}

/* Comments (Muted Grey) */

/* Classic Bash Colorway */
.sh-comment,
.sh-cmt {
    color: #75715e;
    font-style: italic;
}

/* Muted Grey */
.sh-kw {
    color: #f92672;
    font-weight: bold;
}

/* Pink/Red Keywords */
.sh-var {
    color: #66d9ef;
}

/* Blue Variables */
.sh-str {
    color: #e6db74;
}

/* Yellow Strings */
.sh-cmd {
    color: #a6e22e;
}

/* Green Commands */

/* TigerGraph Studio GSQL Colorway */
.gsql-kw {
    color: #b386e5;
    font-weight: bold;
}

/* Purple Keywords (SELECT, FROM, CREATE) */
.gsql-type {
    color: #66d9ef;
}

/* Cyan Types (INT, STRING, VERTEX) */
.gsql-var {
    color: #f8f8f2;
}

/* White Variables */
.gsql-accum {
    color: #fd971f;
}

/* Orange Accumulators/Special Attribs */
.gsql-str {
    color: #e6db74;
}

/* Yellow Strings */

/* Python/Spark Colorway */
.py-kw {
    color: #f92672;
    font-weight: bold;
}

/* Pink Keywords (def, return, if) */
.py-func {
    color: #a6e22e;
}

/* Green Functions (print, collect) */
.py-var {
    color: #f8f8f2;
}

/* White Variables */
.py-str {
    color: #e6db74;
}

/* Yellow Strings */
.py-num {
    color: #ae81ff;
}

/* Purple Numbers */
.py-comment {
    color: #75715e;
    font-style: italic;
}

/* Muted Grey Comments */

/* Styling for Benchmark Results */
.result-item {
    margin-bottom: 30px;
}

.chart-container {
    background: white;
    padding: 20px;
    /* border: 1px solid var(--border); */
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
}

.result-chart {
    max-width: 100%;
    /* Ensures image stays within the container */
    height: 400px;
    /* Maintains aspect ratio */
    border-radius: 4px;
    /* box-shadow: 0 4px 6px rgba(0,0,0,0.05); */
}

.contact-links {
    margin-top: 15px;
}



/* Email Text Styling */
.email-text {
    margin: 10px 0;
    font-size: 1rem;
    color: #1e293b;
    /* Variable Off-white */
}

/* Row alignment for buttons */
.button-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    /* Space between buttons */
    margin-top: 5px;
}

/* Button Styling */
.contact-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary);
    border: none;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}

.contact-btn:hover {
    background-color: var(--primary-dark);
    color: white;
}

.home-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.home-section {
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.home-section:last-child {
    border-bottom: none;
}

.home-section.sponsors {
    padding-top: 0;
    background-color: transparent;
    border-top: none;
}

.home-section>h3 {
    display: block;
    font-size: 2rem;
    margin: 0 auto 20px;
    width: fit-content;
}

.home-section>p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

.query-subcategory {
    font-size: 13px;
    color: #475569;
    margin: 8px 0 15px 0;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    border-left: 3px solid var(--accent);
}

.gql-unsupported-note {
    background: #fef2f2;
    border-left: 3px solid #ef4444;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin-top: 10px;
}

.team-section {
    margin: 50px 0;
}

.team-empty {
    color: #64748b;
    font-style: italic;
    padding: 20px 0;
}
