:root {
    --primary: #000000;
    --primary-active: #1a1a1a;
    --text-link: #0d74ce;
    --ink: #171717;
    --body-c: #60646c;
    --muted: #999999;
    --hairline: #f0f0f3;
    --hairline-strong: #dcdee0;
    --canvas: #ffffff;
    --canvas-soft: #fafafa;
    --surface-strong: #f0f0f3;
    --surface-dark: #171717;
    --on-dark: #ffffff;
    --on-dark-soft: #b0b4ba;
    --sky-light: #cfe7ff;
    --sky-mid: #a8c8e8;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    margin: 0;
    line-height: 1.5;
}

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }

code, pre, .rh-code { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

.rh-topnav {
    background: var(--canvas);
    height: 64px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--hairline);
    position: sticky;
    top: 0;
    z-index: 100;
}

.rh-topnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.rh-brand {
    font-weight: 600;
    font-size: 18px;
    color: var(--ink) !important;
    text-decoration: none !important;
}

.rh-brand span { color: var(--text-link); }

.rh-nav { display: flex; gap: 28px; }
.rh-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink) !important;
    text-decoration: none !important;
}
.rh-nav a.active, .rh-nav a:hover { color: var(--text-link) !important; }

.rh-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
}
.rh-burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

.rh-hero {
    background: radial-gradient(ellipse at top, var(--sky-light), var(--canvas) 70%);
    padding: 96px 0 64px;
    text-align: center;
}

.rh-hero h1 {
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 800px;
    margin: 0 auto 20px;
}

.rh-hero p.rh-lead {
    font-size: 18px;
    color: var(--body-c);
    max-width: 640px;
    margin: 0 auto 32px;
}

.rh-btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #fff !important;
    font-weight: 500;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none !important;
}
.rh-btn-primary:hover { background: var(--primary-active); }

.rh-btn-secondary {
    display: inline-block;
    background: #fff;
    color: var(--ink) !important;
    font-weight: 500;
    font-size: 14px;
    padding: 9px 17px;
    border-radius: 8px;
    border: 1px solid var(--hairline-strong);
    text-decoration: none !important;
}

section.rh-section { padding: 64px 0; }
section.rh-section.soft { background: var(--canvas-soft); }

.rh-section-label {
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 12px;
    display: block;
}

.rh-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.rh-card {
    background: #fff;
    border: 1px solid var(--hairline-strong);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: var(--ink) !important;
    transition: box-shadow 0.15s;
}
.rh-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.rh-card img { width: 100%; height: 170px; object-fit: cover; }
.rh-card-body { padding: 20px; }
.rh-card-body h3 { font-size: 18px; margin: 8px 0; }
.rh-card-body p { color: var(--body-c); font-size: 14px; margin: 0; }

.rh-badge {
    display: inline-block;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 9999px;
}

.rh-breadcrumbs { padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.rh-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.rh-breadcrumbs li { display: flex; align-items: center; gap: 6px; }
.rh-breadcrumbs a { color: var(--body-c); }
.rh-breadcrumbs .active { color: var(--ink); }

.rh-article-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    padding: 48px 0;
    align-items: start;
}

.rh-toc {
    position: sticky;
    top: 88px;
    background: var(--canvas-soft);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--hairline);
}
.rh-toc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 0; }
.rh-toc ul { list-style: none; padding: 0; margin: 0; }
.rh-toc li { margin-bottom: 8px; }
.rh-toc a { font-size: 14px; color: var(--body-c); }

.rh-article-content h1 { font-size: 36px; margin-bottom: 12px; }
.rh-article-content .rh-meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.rh-article-content img.rh-hero-img { width: 100%; border-radius: 12px; margin-bottom: 32px; }
.rh-article-content h2 { font-size: 24px; margin-top: 40px; scroll-margin-top: 88px; }
.rh-article-content p { color: var(--body-c); font-size: 16px; }

.rh-faq details {
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 12px;
}
.rh-faq summary { cursor: pointer; font-weight: 600; }
.rh-faq p { margin: 12px 0 0; }

.rh-related { padding: 48px 0 0; border-top: 1px solid var(--hairline); margin-top: 48px; }
.rh-related h2 { font-size: 22px; margin-bottom: 20px; }
.rh-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rh-related-card {
    display: block;
    border: 1px solid var(--hairline-strong);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    color: var(--ink) !important;
}
.rh-related-card img { width: 100%; height: 130px; object-fit: cover; }
.rh-related-card-body { padding: 14px 16px; }
.rh-related-card-body h3 { font-size: 15px; margin: 8px 0 0; }

.rh-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: 64px 0 32px; margin-top: 48px; }
.rh-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.rh-footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.rh-footer-col a { display: block; color: var(--body-c); font-size: 14px; margin-bottom: 8px; }
.rh-footer-desc { color: var(--body-c); font-size: 14px; margin-top: 12px; }
.rh-footer-disclaimers { border-top: 1px solid var(--hairline); margin-top: 32px; padding-top: 24px; }
.rh-footer-disclaimers p { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.rh-footer-bottom { color: var(--muted); font-size: 13px; margin-top: 16px; }

.rh-form label { font-weight: 500; font-size: 14px; margin-bottom: 6px; display: block; }
.rh-form input, .rh-form textarea {
    width: 100%;
    border: 1px solid var(--hairline-strong);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    margin-bottom: 18px;
}
.rh-form input:focus, .rh-form textarea:focus {
    outline: none;
    border-width: 2px;
    border-color: var(--ink);
}

.rh-cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 640px;
    margin: 0 auto;
    background: var(--surface-dark);
    color: var(--on-dark);
    border-radius: 12px;
    padding: 20px 24px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.rh-cookie-banner.show { display: flex; }
.rh-cookie-banner p { font-size: 14px; color: var(--on-dark-soft); margin: 0; }
.rh-cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.rh-cookie-actions button {
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.rh-cookie-accept { background: #fff; color: var(--ink); }
.rh-cookie-reject { background: transparent; color: var(--on-dark-soft); border: 1px solid #444 !important; }

.rh-legal-content h2 { margin-top: 32px; }
.rh-legal-content p { color: var(--body-c); }

@media (max-width: 900px) {
    .rh-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .rh-related-grid { grid-template-columns: repeat(2, 1fr); }
    .rh-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .rh-article-layout { grid-template-columns: 1fr; }
    .rh-toc { position: static; margin-bottom: 24px; }
}

@media (max-width: 640px) {
    .rh-hero h1 { font-size: 32px; }
    .rh-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 20px;
        border-bottom: 1px solid var(--hairline);
    }
    .rh-nav.open { display: flex; }
    .rh-burger { display: flex; }
    .rh-cards-grid { grid-template-columns: 1fr; }
    .rh-related-grid { grid-template-columns: 1fr; }
    .rh-footer-grid { grid-template-columns: 1fr; }
    .rh-cookie-banner { flex-direction: column; align-items: flex-start; }
}
