/* Plaid Brand Fonts */
@font-face {
    font-family: 'PlaidSans';
    src: url('/assets/plaidsans/PlaidSans-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'PlaidSans';
    src: url('/assets/plaidsans/PlaidSans-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'PlaidSans';
    src: url('/assets/plaidsans/PlaidSans-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'PlaidSans';
    src: url('/assets/plaidsans/PlaidSans-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Cern';
    src: url('/assets/cern/Cern-Book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Cern';
    src: url('/assets/cern/Cern-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Cern';
    src: url('/assets/cern/Cern-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Inconsolata';
    src: url('/assets/inconsolata/Inconsolata-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inconsolata';
    src: url('/assets/inconsolata/Inconsolata-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

:root {
    /* Plaid Brand Colors */
    --plaid-mint: #42FDC0;
    --plaid-mint-light: #5FFDC6;
    --plaid-blue-sky: #61D2F8;
    --plaid-royal-purple: #A366FF;
    --plaid-bright-pink: #EE85FF;
    --plaid-gold-standard: #FFD251;
    --plaid-gold-lime: #4FF242;

    /* Neutral colors */
    --plaid-white: #FFFFFF;
    --plaid-light-gray: #F8F9FA;
    --plaid-gray: #6C757D;
    --plaid-dark-gray: #495057;
    --plaid-black: #212529;

    /* Plaid Brand Fonts */
    --font-heading: 'PlaidSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Cern', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-code: 'Inconsolata', Monaco, Menlo, 'Courier New', monospace;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: var(--plaid-white);
}

/* Typography - Headings use PlaidSans */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
}

h1 {
    font-weight: 900;
    font-size: 2.5em;
}

h2 {
    font-size: 2em;
    font-weight: 700;
}

h3 {
    font-size: 1.5em;
    font-weight: 700;
}

h4 {
    font-size: 1.25em;
    font-weight: 600;
}

/* Code elements use Inconsolata */
code,
pre,
.property-cell {
    font-family: var(--font-code);
}

/* Top Header Styles */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.top-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-header-left a {
    display: flex;
    align-items: center;
}

.top-header-logo {
    height: 50px;
    display: block;
}

.top-header-search {
    position: relative;
    min-width: 300px;
}

.top-header-search input {
    width: 100%;
    padding: 8px 40px 8px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.top-header-search input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.top-header-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.top-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-header-link {
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.top-header-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid transparent;
}

.top-header-btn.secondary {
    color: #374151;
    border-color: #d1d5db;
    background: white;
}

.top-header-btn.primary {
    color: white;
    background: #111827;
}

.container {
    margin: 60px 0 0;
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 280px;
    background: var(--plaid-white);
    border-right: 2px solid var(--plaid-mint);
    overflow-y: auto;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    flex-shrink: 0;
}


.sidebar-nav {
    padding: 0;
}

/* Navigation list styles */
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--plaid-light-gray);
    margin-bottom: 20px;
}

.nav-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: 20px;
}

.nav-item {
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--plaid-dark-gray);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.9em;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
    border-radius: 4px;
    margin-bottom: 2px;
}

.nav-link:hover {
    background-color: var(--plaid-light-gray);
    color: var(--plaid-black);
}

.nav-link.active {
    background-color: var(--plaid-mint);
    color: var(--plaid-black);
    font-weight: 500;
    border-left: 3px solid var(--plaid-blue-sky);
}

.nav-sublink {
    padding-left: 40px;
    font-size: 0.9em;
}

.nav-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--plaid-dark-gray);
}

.nav-icon svg {
    width: 20px;
    height: 20px;
    color: inherit;
}

.nav-link:hover .nav-icon {
    color: var(--plaid-black);
}

.nav-link.active .nav-icon {
    color: var(--plaid-black);
}

.nav-section {
    margin-bottom: 16px;
}

.nav-category {
    margin-bottom: 8px;
}

.nav-back {
    padding: 12px 20px;
    border-bottom: 1px solid var(--plaid-light-gray);
    margin-bottom: 20px;
}

.nav-back-link {
    display: flex;
    align-items: center;
    color: var(--plaid-dark-gray);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-back-link:hover {
    color: var(--plaid-black);
}

.nav-back-icon {
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.nav-back-icon svg {
    width: 16px;
    height: 16px;
    color: inherit;
}

.nav-section-title {
    padding: 12px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1em;
    color: var(--plaid-black);
}

.nav-section-icon {
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.nav-section-icon svg {
    width: 20px;
    height: 20px;
    color: var(--plaid-black);
}

.nav-section-header {
    padding: 8px 20px;
    background-color: var(--plaid-light-gray);
    color: var(--plaid-dark-gray);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--plaid-mint);
}


.nav-category-header {
    padding: 12px 20px;
    background: transparent;
    border-bottom: 1px solid transparent;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--plaid-dark-gray);
    text-transform: uppercase;
    font-size: 0.75em;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    border-radius: 4px;
    margin-bottom: 4px;
}

.nav-category-header:hover {
    background: var(--plaid-light-gray);
    color: var(--plaid-black);
}

.nav-category-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.nav-category-toggle svg {
    width: 16px;
    height: 16px;
    color: inherit;
}

.nav-category-toggle.expanded {
    transform: rotate(90deg);
}

.nav-category-content {
    display: none;
}

.nav-category.expanded .nav-category-content {
    display: block;
}

.nav-product {
    margin-bottom: 0;
}

.nav-product-header {
    padding: 10px 20px;
    background: #fdfdfd;
    border-bottom: 1px solid #f1f3f4;
    font-weight: 600;
    color: #6c757d;
    text-transform: capitalize;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
}

.nav-product-header:hover {
    background: #f1f3f4;
    color: #495057;
}

.nav-product-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.nav-product-toggle svg {
    width: 16px;
    height: 16px;
    color: inherit;
}

.nav-product-toggle.expanded {
    transform: rotate(90deg);
}

.nav-product-content {
    display: none;
}

.nav-product.expanded .nav-product-content {
    display: block;
}

.nav-endpoint {
    display: block;
    padding: 8px 40px;
    text-decoration: none;
    color: var(--plaid-dark-gray);
    border-bottom: 1px solid var(--plaid-light-gray);
    transition: all 0.2s;
}

.nav-endpoint:hover {
    background: var(--plaid-mint-light);
    text-decoration: none;
    color: var(--plaid-black);
    transform: translateX(2px);
}

.nav-endpoint.active {
    background: var(--plaid-mint);
    color: var(--plaid-black);
    border-left: 4px solid var(--plaid-blue-sky);
}

.nav-endpoint.active:hover {
    background: var(--plaid-blue-sky);
    color: var(--plaid-black);
}

.nav-endpoint .method {
    margin-right: 8px;
    font-size: 0.75em;
    padding: 2px 6px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: calc(1600px - 280px); /* Total max width minus sidebar width */
}

/* For extra wide screens, allow more space for content but keep sidebar anchored */
@media (min-width: 2000px) {
    .main-content {
        max-width: calc(2200px - 280px);
    }
}

.header {
    color: var(--plaid-black);
    padding: 20px 30px 0;
    flex-shrink: 0;
}

.header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 2em;
    color: var(--plaid-black);
}

.header .subtitle {
    color: var(--plaid-dark-gray);
    font-size: 1.25em;
    margin-top: 8px;
}

/* Endpoint header styles */
.endpoint-header h1 {
    font-size: 1.5em;
    font-weight: 500;
    margin: 16px 0 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--plaid-black);
}

.endpoint-header .method {
    font-size: 0.7em;
    font-weight: 700;
}

/* CSS-only fallback for JavaScript-disabled users */
.nav-category-checkbox,
.nav-product-checkbox {
    display: none;
}

/* Hide content by default */
.nav-category-content,
.nav-product-content {
    display: none;
}

/* Show content when checkbox is checked */
.nav-category-checkbox:checked + .nav-category-header + .nav-category-content {
    display: block;
}

.nav-product-checkbox:checked + .nav-product-header + .nav-product-content {
    display: block;
}

/* Rotate chevron when expanded (CSS-only) */
.nav-category-checkbox:checked + .nav-category-header .nav-category-toggle,
.nav-product-checkbox:checked + .nav-product-header .nav-product-toggle {
    transform: rotate(90deg);
}

/* Make labels clickable with pointer cursor */
.nav-category-header,
.nav-product-header {
    cursor: pointer;
}

/* Override JavaScript expanded styles when checkboxes are available */
.nav-category:not(.expanded) .nav-category-content {
    display: none;
}

.nav-product:not(.expanded) .nav-product-content {
    display: none;
}

/* When JavaScript is enabled, hide checkboxes and use JS behavior */
body.js-enabled .nav-category-checkbox,
body.js-enabled .nav-product-checkbox {
    display: none;
}

/* Navigation content visibility now handled purely by checkbox CSS */

/* Search Demo Modal */
.search-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.search-modal-content {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
    margin: 10% auto;
    padding: 0;
    border: none;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    font-family: 'PlaidSans', sans-serif;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-modal-header {
    background: rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.search-modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.search-modal-close:hover {
    transform: scale(1.2);
}

.search-modal-body {
    padding: 30px;
    color: white;
    text-align: center;
}

.search-modal-body p {
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.search-modal-footer {
    padding: 20px 30px 30px;
    text-align: center;
}

.search-modal-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'PlaidSans', sans-serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.search-modal-btn:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* YouTube embed styles */
.youtube-embed {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 2rem 0;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.youtube-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Callout styles - quote box appearance */
.callout {
    display: flex;
    gap: 16px;
    padding: 20px;
    margin: 24px 0;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    border-left: 4px solid;
    background: #f9fafb;
    align-items: flex-start;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.callout-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.callout-icon svg {
    width: 20px;
    height: 20px;
}

/* Generic fallback icon */
.callout-icon.fallback {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: currentColor;
    position: relative;
}

.callout-icon.fallback::before {
    content: "i";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
    font-style: normal;
}

.callout-content {
    flex: 1;
    line-height: 1.6;
}

.callout-content p {
    margin: 0;
    color: #374151;
}

.callout-content p:not(:last-child) {
    margin-bottom: 12px;
}

.callout-content a {
    color: #0f172a;
    text-decoration: underline;
    text-decoration-color: #059669;
    text-underline-offset: 2px;
    font-weight: 500;
}

.callout-content a:hover {
    color: #047857;
    text-decoration-color: #047857;
}

/* Callout variants */
.callout-video {
    border-left-color: var(--plaid-mint);
    background: #f0fdf4;
    border-color: rgba(34, 197, 94, 0.2);
}

.callout-video .callout-icon {
    color: var(--plaid-mint);
}

.callout-info {
    border-left-color: #3b82f6;
    background: #eff6ff;
    border-color: rgba(59, 130, 246, 0.2);
}

.callout-info .callout-icon {
    color: #3b82f6;
}

.callout-user {
    border-left-color: #8b5cf6;
    background: #f5f3ff;
    border-color: rgba(139, 92, 246, 0.2);
}

.callout-user .callout-icon {
    color: #8b5cf6;
}

.callout-help {
    border-left-color: #f59e0b;
    background: #fffbeb;
    border-color: rgba(245, 158, 11, 0.2);
}

.callout-help .callout-icon {
    color: #f59e0b;
}

/* API documentation table styles */
.api-table-container {
    margin: 2rem 0;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.api-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.api-table-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.api-table-link {
    color: #059669;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.api-table-link:hover {
    color: #047857;
    text-decoration: underline;
}

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

.api-table-row {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s ease;
}

.api-table-row:last-child {
    border-bottom: none;
}

.api-table-row:hover {
    background: #f8fafc;
}

.api-table-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 16px;
    color: #6b7280;
}

.api-table-icon svg {
    width: 100%;
    height: 100%;
}

.api-table-key {
    font-family: var(--font-code);
    font-weight: 600;
    color: #1f2937;
    min-width: 120px;
    margin-right: 24px;
}

.api-table-description {
    flex: 1;
    color: #4b5563;
    line-height: 1.5;
}

/* Image constraints */
.content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.content-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
}

.content {
    flex: 1;
    background: var(--plaid-white);
    padding: 0 30px 30px 30px;
    overflow-y: auto;
    min-width: 0;
}

.examples-sidebar {
    width: 400px;
    background: var(--plaid-black);
    border-left: 2px solid var(--plaid-mint);
    overflow-y: auto;
    position: sticky;
    top: 0;
    flex-shrink: 0;
}

.examples-content {
    padding: 20px;
}

.examples-section h3 {
    color: var(--plaid-mint);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.example-block {
    margin-bottom: 25px;
}

.example-block h4 {
    color: var(--plaid-mint);
    margin-bottom: 10px;
    font-size: 1em;
}

.examples-sidebar pre {
    background: var(--plaid-dark-gray);
    border: 1px solid var(--plaid-mint);
    border-radius: 6px;
    padding: 15px;
    margin: 0;
    font-size: 0.85em;
    line-height: 1.4;
}

.examples-sidebar pre code {
    color: var(--plaid-mint-light);
}

.method {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    color: var(--plaid-black);
}

.method-get {
    background: var(--plaid-mint);
    color: var(--plaid-black);
}

.method-post {
    background: var(--plaid-gold-standard);
    color: var(--plaid-black);
}

.method-put {
    background: var(--plaid-blue-sky);
    color: var(--plaid-black);
}

.method-delete {
    background: var(--plaid-bright-pink);
    color: var(--plaid-black);
}

.method-patch {
    background: var(--plaid-royal-purple);
    color: var(--plaid-white);
}

.endpoint-path {
    font-family: var(--font-code);
    background: var(--plaid-light-gray);
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid var(--plaid-mint);
    font-weight: 600;
    color: var(--plaid-black);
}


.deprecated {
    color: #dc3545;
    font-weight: bold;
}

.schema-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.schema-table th,
.schema-table td {
    border: 1px solid #dee2e6;
    padding: 12px;
    text-align: left;
}

.required-column {
    text-align: center !important;
}

.schema-table th {
    background: linear-gradient(135deg, var(--plaid-mint) 0%, var(--plaid-mint-light) 100%);
    color: var(--plaid-black);
    font-weight: bold;
}

.schema-table code {
    background: var(--plaid-light-gray);
    color: var(--plaid-black);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
}

.required-badge {
    background: var(--plaid-bright-pink);
    color: var(--plaid-white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: bold;
}

pre {
    background: var(--plaid-black);
    border: 2px solid var(--plaid-mint);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    color: var(--plaid-mint);
}

pre code {
    background: none;
    padding: 0;
    color: var(--plaid-mint);
}

.request-schema,
.response-schema {
    margin: 30px 0;
    padding: 25px;
    border: 2px solid var(--plaid-mint);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--plaid-white) 0%, var(--plaid-light-gray) 100%);
}

.request-schema h3,
.response-schema h3 {
    color: var(--plaid-black);
    margin-top: 0;
}

.custom-checkbox {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--plaid-mint);
    border-radius: 4px;
    background: var(--plaid-white);
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox.checked {
    background: var(--plaid-mint);
    border-color: var(--plaid-mint);
}

.custom-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--plaid-black);
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}

.property-cell {
    font-family: var(--font-code);
}

.property-name {
    font-weight: 600;
}

.type-badge {
    background: var(--plaid-light-gray);
    color: var(--plaid-black);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.tree-connector {
    color: var(--plaid-gray);
    margin-right: 4px;
    font-family: var(--font-code);
}

.description-cell {
    line-height: 1.4;
}

/* Depth-based styling for hierarchy */
.depth-0 {
    background: var(--plaid-white);
}

.depth-1 {
    background: rgba(66, 253, 192, 0.05);
}

.depth-1 .property-cell {
    padding-left: 24px;
}

.depth-2 {
    background: rgba(66, 253, 192, 0.1);
}

.depth-2 .property-cell {
    padding-left: 48px;
}

.depth-3 {
    background: rgba(66, 253, 192, 0.15);
}

.depth-3 .property-cell {
    padding-left: 72px;
}

.depth-4 {
    background: rgba(66, 253, 192, 0.2);
}

.depth-4 .property-cell {
    padding-left: 96px;
}

.depth-5 {
    background: rgba(66, 253, 192, 0.25);
}

.depth-5 .property-cell {
    padding-left: 120px;
}

/* Schema blocks styling */
.schema-blocks {
    margin: 15px 0;
}

.schema-block {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 8px;
    background: var(--plaid-white);
}

.schema-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, var(--plaid-mint) 0%, var(--plaid-mint-light) 100%);
    border-radius: 6px 6px 0 0;
}

.schema-block-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.schema-block-description {
    padding: 8px 12px;
    line-height: 1.3;
    color: var(--plaid-dark-gray);
    font-size: 0.9em;
}

.schema-block .property-name {
    font-family: var(--font-code);
    font-weight: 600;
    color: var(--plaid-black);
}

.schema-block .type-label {
    background: rgba(255, 255, 255, 0.9);
    color: var(--plaid-black);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
}

.schema-block .required-text {
    color: var(--plaid-bright-pink);
    font-weight: 700;
}

.schema-block .type-text {
    color: var(--plaid-black);
}

/* Depth-based styling for schema blocks */
.schema-block.depth-1 {
    margin-left: 20px;
    background: rgba(66, 253, 192, 0.05);
}

.schema-block.depth-2 {
    margin-left: 40px;
    background: rgba(66, 253, 192, 0.1);
}

.schema-block.depth-3 {
    margin-left: 60px;
    background: rgba(66, 253, 192, 0.15);
}

.schema-block.depth-4 {
    margin-left: 80px;
    background: rgba(66, 253, 192, 0.2);
}

.schema-block.depth-5 {
    margin-left: 100px;
    background: rgba(66, 253, 192, 0.25);
}

/* Markdown table styling */
.override-content table th {
    font-family: var(--font-code);
    font-weight: 700;
    text-transform: uppercase;
    color: #767676;
    font-size: 0.85em;
    letter-spacing: 0.5px;
    text-align: left;
}

/* API Versions Grid */
.api-versions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}

/* Handle markdown-generated <p> wrapper tags */
.api-versions-grid > p {
    margin: 0;
    padding: 0;
}

.api-version-card {
    background: var(--plaid-white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.api-version-card:hover {
    border-color: var(--plaid-mint);
    box-shadow: 0 4px 12px rgba(66, 253, 192, 0.15);
    transform: translateY(-2px);
}

.api-version-header {
    margin-bottom: 16px;
}

.api-version-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--plaid-black);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.api-version-description {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--plaid-gray);
    margin: 0;
    line-height: 1.5;
}

.api-version-link {
    margin-top: auto;
}

.api-version-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--plaid-black);
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 4px 0;
}

.api-version-card:hover .api-version-cta {
    color: var(--plaid-dark-green);
}

.api-version-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.api-version-card:hover .api-version-cta svg {
    transform: translateX(2px);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .api-versions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 24px 0;
    }
    
    .api-version-card {
        padding: 20px;
        min-height: 120px;
    }
    
    .api-version-title {
        font-size: 18px;
    }
}