:root {
    --primary: #000000;
    --primary-active: #1a1a1a;
    --text-link: #0d74ce;
    --ink: #171717;
    --body: #60646c;
    --muted: #999999;
    --hairline: #f0f0f3;
    --hairline-strong: #dcdee0;
    --canvas: #ffffff;
    --canvas-soft: #fafafa;
    --surface-strong: #f0f0f3;
    --surface-dark: #171717;
    --on-dark: #ffffff;
    --sky-light: #cfe7ff;
    --sky-mid: #a8c8e8;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 9999px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.5;
}

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: 2.5rem; line-height: 1.1; }
h2 { font-size: 1.75rem; margin-top: 2.5rem; }
h3 { font-size: 1.25rem; margin-top: 1.75rem; }
p { color: var(--body); }

.lh-topbar {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 20;
}
.lh-topbar-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lh-brand { font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.lh-brand span { color: var(--text-link); }

.lh-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.lh-nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

.lh-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 48px;
    padding: 32px 24px 96px;
}

.lh-sidebar {
    width: 220px;
    flex-shrink: 0;
}
.lh-sidebar nav ul { list-style: none; padding: 0; margin: 0; }
.lh-sidebar nav a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    color: var(--ink);
    font-weight: 500;
    font-size: 0.9rem;
}
.lh-sidebar nav a:hover { background: var(--surface-strong); text-decoration: none; }
.lh-sidebar-note {
    margin-top: 24px;
    padding: 16px;
    background: var(--canvas-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
}
.lh-sidebar-note p { font-size: 0.85rem; color: var(--muted); margin: 0; }

.lh-main { flex: 1; min-width: 0; }

.lh-hero {
    background: linear-gradient(180deg, var(--sky-light) 0%, rgba(255,255,255,0) 70%);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    margin-bottom: 40px;
}
.lh-hero h1 { margin-top: 0; }
.lh-hero p.lead { font-size: 1.1rem; max-width: 640px; }

.lh-btn {
    display: inline-block;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 10px 18px;
    height: 40px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    line-height: 20px;
}
.lh-btn-primary { background: var(--primary); color: #fff; }
.lh-btn-primary:hover { background: var(--primary-active); text-decoration: none; }
.lh-btn-secondary { background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline-strong); }

.lh-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0 40px;
}
.lh-card {
    background: var(--canvas);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.lh-card img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 12px; }
.lh-card h3 { margin-top: 0; font-size: 1.05rem; }
.lh-card p { font-size: 0.9rem; }
.lh-card .lh-meta { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.lh-breadcrumb {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 20px;
}
.lh-breadcrumb a { color: var(--muted); }
.lh-breadcrumb a:hover { color: var(--text-link); }

.lh-toc {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 24px 0;
}
.lh-toc h2 { margin-top: 0; font-size: 1.1rem; }
.lh-toc ul { margin: 0; padding-left: 20px; }
.lh-toc a { font-size: 0.9rem; }

article img.lh-article-img {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin: 16px 0;
}
figure { margin: 16px 0; }
figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }

.lh-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--hairline);
}
.lh-related h2 { margin-top: 0; }

.lh-faq-item {
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 10px;
}
.lh-faq-item summary { cursor: pointer; font-weight: 500; }

.lh-badge {
    display: inline-block;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.lh-form-group { margin-bottom: 16px; }
.lh-form-group label { display: block; font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }
.lh-form-group input, .lh-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    height: 44px;
    border-radius: var(--radius-md);
    border: 1px solid var(--hairline-strong);
    font-family: inherit;
    font-size: 0.95rem;
}
.lh-form-group textarea { height: auto; min-height: 100px; }
.lh-form-error { color: #eb8e90; font-size: 0.8rem; margin-top: 4px; display: none; }
.lh-form-success {
    background: #eafaf0;
    border: 1px solid #16a34a;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    display: none;
}

.lh-footer { background: var(--canvas); border-top: 1px solid var(--hairline); padding: 48px 24px 24px; }
.lh-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.lh-footer-col h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 0; }
.lh-footer-col ul { list-style: none; padding: 0; margin: 0; }
.lh-footer-col li { margin-bottom: 8px; }
.lh-footer-col a { color: var(--body); font-size: 0.9rem; }
.lh-footer-disclaimers {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid var(--hairline);
}
.lh-footer-disclaimers p { font-size: 0.78rem; color: var(--muted); margin: 4px 0; }
.lh-footer-bottom {
    max-width: 1200px;
    margin: 16px auto 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.lh-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface-dark);
    color: var(--on-dark);
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 50;
}
.lh-cookie-banner p { color: var(--on-dark); font-size: 0.85rem; margin: 0; max-width: 640px; }
.lh-cookie-actions { display: flex; gap: 10px; }

@media (max-width: 900px) {
    .lh-card-grid { grid-template-columns: 1fr; }
    .lh-footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .lh-nav-toggle { display: flex; }
    .lh-layout { flex-direction: column; }
    .lh-sidebar {
        width: 100%;
        display: none;
    }
    .lh-sidebar.open { display: block; }
    h1 { font-size: 1.9rem; }
    .lh-footer-inner { grid-template-columns: 1fr; }
}
