:root {
    --bg: #f7f9fc;
    --panel: #ffffff;
    --ink: #243241;
    --muted: #667789;
    --line: #dfe7ef;
    --brand: #1aa6d9;
    --brand-dark: #0b5f79;
    --accent: #00a676;
    --soft: #eef8fc;
    --shadow: 0 10px 30px rgba(30, 50, 70, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding: 12px clamp(18px, 4vw, 52px);
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 198px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.brand small {
    display: block;
    line-height: 1.2;
}

.brand small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.topnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--muted);
    font-size: 14px;
}

.topnav a {
    text-decoration: none;
}

.topnav a:hover {
    color: var(--brand-dark);
}

.layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 28px;
    width: min(1360px, 100%);
    margin: 0 auto;
    padding: 28px clamp(16px, 3vw, 40px) 48px;
}

.sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.search {
    margin-bottom: 18px;
}

.search label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.search input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    outline: none;
}

.search input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(26, 166, 217, 0.14);
}

.sidebar nav {
    display: grid;
    gap: 2px;
}

.sidebar nav a {
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--muted);
    text-decoration: none;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: var(--soft);
    color: var(--brand-dark);
}

.content {
    min-width: 0;
}

.hero,
.help-section,
.empty {
    margin-bottom: 18px;
    padding: clamp(22px, 4vw, 42px);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero {
    background: linear-gradient(135deg, #ffffff 0%, #eef8fc 62%, #f2fbf6 100%);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.2;
    letter-spacing: 0;
}

h1 {
    max-width: 780px;
    font-size: clamp(34px, 5vw, 56px);
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(25px, 3vw, 34px);
}

h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

p {
    margin: 0 0 14px;
    max-width: 900px;
    color: var(--muted);
}

ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

li + li {
    margin-top: 8px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.quick-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(26, 166, 217, 0.34);
    border-radius: 8px;
    background: white;
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: none;
}

.grid,
.steps {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid article,
.steps article {
    min-width: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.grid article p,
.steps article p {
    margin: 0;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px clamp(18px, 4vw, 52px);
    color: var(--muted);
    border-top: 1px solid var(--line);
    background: white;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 940px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        max-height: none;
    }

    .sidebar nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 15px;
    }

    .topnav,
    .sidebar nav {
        display: none;
    }

    .layout {
        padding-inline: 12px;
    }

    .hero,
    .help-section,
    .empty {
        padding: 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .footer {
        flex-direction: column;
    }
}
