html {
    box-sizing: border-box;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
}

:root {
    /* SmartSearch Brand Colors */
    --brand-primary: #1D0B3B;        /* Primary dark purple (29, 11, 59) */
    --brand-light: #F4F4F4;          /* Light gray (244, 244, 244) */
    --accent-purple: #652FBD;        /* Accent purple (101, 47, 189) */
    --accent-blue: #5063C1;          /* Accent blue (80, 99, 193) */
    --accent-teal: #5098CC;          /* Accent teal (80, 152, 204) */
    --accent-cyan: #5EC5D5;          /* Accent cyan (94, 197, 213) */
    --accent-mint: #6CDCD7;          /* Accent mint (108, 220, 215) */
    --accent-green: #78F2D9;         /* Accent green (120, 242, 217) */
    --button-color: #53DBBA;         /* Button color (83, 219, 186) */
}

.topbar {
    display: none;
}

.custom-header {
    /* Brand banner color */
    background: var(--brand-primary);
    color: white;
    padding: 2rem 2rem 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.custom-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-header .brand-logo {
    width: clamp(120px, 14vw, 180px);
    height: auto;
    display: block;
}

.custom-header .header-text { flex: 1; min-width: 0; }

@media (max-width: 720px) {
    .custom-header .header-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .custom-header .brand-logo { width: 160px; }
}

.custom-header h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 600;
}

.custom-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

.info-section {
    background: #f7f9fc;
    padding: 2rem;
    border-bottom: 1px solid #e1e8ed;
}

.info-section > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 50%, var(--accent-teal) 100%);
    border: none;
}

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.cta-box h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-box p {
    color: #000000 !important;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--button-color);
    color: var(--brand-primary);
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: var(--accent-green);
    text-decoration: none;
}

/* Redoc full-page styling */
#redoc {
    margin: 0;
    padding: 0;
}

/* Compact the schema tables slightly */
#redoc table {
    font-size: 0.9em;
}

#redoc td {
    padding: 0.5rem !important;
}

.info-section h2 {
    color: #1a202c;
    margin-top: 0;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--brand-primary, #1F275B);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.info-section h3 {
    color: #2d3748;
    margin-top: 1.5rem;
    font-size: 1.2rem;
}

.info-section p, .info-section li {
    color: #4a5568;
    line-height: 1.6;
}

.info-section code {
    background: #edf2f7;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #e53e3e;
    font-size: 0.9em;
}

.info-section pre {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}

.info-section pre code {
    background: transparent;
    color: #e2e8f0;
    padding: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1rem 0;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-card h4 {
    margin-top: 0;
    color: var(--accent-blue);
}

ul {
    padding-left: 1.5rem;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
}

a:hover {
    color: var(--accent-teal);
    text-decoration: underline;
}