:root {
    --brand: #0097ab;
    --brand-dark: #007385;
    --brand-light: #15aabe;
    --brand-tint: #e6f5f7;
    --bg: #ffffff;
    --bg-soft: #f7f9fa;
    --border: #e3e8eb;
    --text: #1a2b30;
    --text-muted: #5a6b70;
    --shadow-sm: 0 1px 2px rgba(16, 38, 45, 0.05);
    --shadow-md: 0 4px 16px rgba(16, 38, 45, 0.08);
    --radius: 10px;
    --radius-sm: 6px;
    --max-width: 1100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand);
    color: #fff;
    padding: 8px 16px;
    z-index: 1000;
}

.skip-link:focus {
    left: 8px;
    top: 8px;
}

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(8px);
    background-color: rgba(255, 255, 255, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.brand:hover {
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    height: 90px;
    width: auto;
    display: block;
    margin-top: 5px;
}

.brand-divider {
    color: var(--border);
    font-size: 20px;
    font-weight: 300;
}

.brand-label {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    color: var(--text-muted);
}

.header-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.header-nav a:hover {
    color: var(--brand);
    text-decoration: none;
}

/* Layout */
.layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 64px;
    align-items: start;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 96px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 1px solid var(--border);
}

.sidebar li a {
    display: block;
    padding: 6px 0 6px 16px;
    margin-left: -1px;
    border-left: 2px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

.sidebar li a:hover {
    color: var(--brand);
    border-left-color: var(--brand);
    text-decoration: none;
}

/* Content */
.content {
    min-width: 0;
}

.content section {
    margin-bottom: 56px;
    scroll-margin-top: 88px;
}

.hero {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    margin: 0 0 8px;
}

h1 {
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: var(--text);
    font-weight: 700;
}

.lede {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
    max-width: 65ch;
}

h2 {
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 20px;
    font-weight: 700;
    color: var(--text);
}

h3 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

p {
    margin: 0 0 16px;
}

ul {
    margin: 0 0 16px;
    padding-left: 24px;
}

li {
    margin-bottom: 6px;
}

code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 2px 6px;
    color: var(--brand-dark);
}

/* Tool card */
.tool-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow-sm);
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tool-name {
    background: var(--brand);
    color: #fff;
    border: none;
    font-weight: 600;
    padding: 3px 10px;
    font-size: 13px;
}

.param-list {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 16px 16px 36px;
    margin: 16px 0;
}

.param-list li {
    margin-bottom: 8px;
}

.param-list li:last-child {
    margin-bottom: 0;
}

/* Callout */
.callout {
    border-radius: var(--radius);
    padding: 16px 20px;
    border-left: 4px solid var(--brand);
    background: var(--brand-tint);
}

.callout p:last-child {
    margin-bottom: 0;
}

.callout-success {
    border-left-color: var(--brand);
}

/* Social list */
.social-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.social-list li {
    margin: 0;
}

.social-list a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg);
    transition: all 0.15s ease;
}

.social-list a:hover {
    border-color: var(--brand);
    color: var(--brand);
    background: var(--brand-tint);
    text-decoration: none;
}

/* FAQ */
.faq {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    margin-bottom: 12px;
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}

.faq[open] {
    box-shadow: var(--shadow-sm);
    border-color: #c8d4d7;
}

.faq summary {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    transition: background 0.15s ease;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    font-size: 22px;
    font-weight: 400;
    color: var(--brand);
    margin-left: 16px;
    transition: transform 0.2s ease;
    line-height: 1;
}

.faq[open] summary::after {
    content: "−";
}

.faq summary:hover {
    background: var(--bg-soft);
}

.faq p {
    padding: 0 20px 20px;
    margin: 0;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding: 24px 0;
    margin-top: 32px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-inner p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 860px) {
    .layout {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
    }

    .sidebar {
        position: static;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border);
    }

    .sidebar ul {
        display: flex;
        flex-wrap: wrap;
        border-left: none;
        gap: 4px;
    }

    .sidebar li a {
        padding: 6px 12px;
        border-left: none;
        border-radius: 999px;
        background: var(--bg-soft);
    }

    .sidebar li a:hover {
        background: var(--brand-tint);
    }

    h1 {
        font-size: 32px;
    }

    .lede {
        font-size: 17px;
    }

    h2 {
        font-size: 22px;
    }

    .brand-label {
        display: none;
    }

    .brand-divider {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .tool-card {
        padding: 18px 20px;
    }

    h1 {
        font-size: 28px;
    }
}
