:root {
    --primary: #f54e00;
    --primary-active: #d04200;
    --ink: #26251e;
    --body-c: #5a5852;
    --muted: #807d72;
    --canvas: #f7f7f4;
    --canvas-soft: #fafaf7;
    --surface-card: #ffffff;
    --surface-strong: #e6e5e0;
    --hairline: #e6e5e0;
    --hairline-strong: #cfcdc4;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 9999px;
}

body {
    font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--canvas);
    color: var(--ink);
}

h1, h2, h3 { color: var(--ink); font-weight: 400; letter-spacing: -0.02em; }
h1 { font-size: 3rem; }
h2 { font-size: 1.8rem; margin-top: 2.5rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--body-c); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.ch-topnav {
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 16px 0;
}
.ch-topnav-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ch-brand { font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.ch-brand span { color: var(--primary); }
.ch-nav-links ul { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; }
.ch-nav-links a { color: var(--ink); font-weight: 500; font-size: 0.9rem; }
.ch-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}
.ch-nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

.ch-main { padding-top: 40px; padding-bottom: 80px; }

.ch-hero {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    margin-bottom: 40px;
}
.ch-hero h1 { margin-top: 0; }

.btn-ch-primary {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    border: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}
.btn-ch-primary:hover { background: var(--primary-active); color: #fff; }

.ch-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 20px;
    height: 100%;
    margin-bottom: 20px;
}
.ch-card img { width: 100%; height: 140px; object-fit: contain; background: var(--canvas-soft); border-radius: var(--radius-md); margin-bottom: 12px; padding: 10px; }
.ch-card h3 { font-size: 1.05rem; margin-top: 0; }
.ch-card .ch-meta { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

.ch-breadcrumb .breadcrumb { font-size: 0.85rem; }

.ch-toc {
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin: 24px 0;
}
.ch-toc h2 { font-size: 1.1rem; margin-top: 0; }

article img.ch-article-img {
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    margin: 16px 0;
    padding: 16px;
}
figcaption { font-size: 0.8rem; color: var(--muted); }

.ch-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--hairline); }

.ch-faq-item {
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 10px;
    background: var(--surface-card);
}
.ch-faq-item summary { cursor: pointer; font-weight: 500; }

.ch-form-group { margin-bottom: 16px; }
.ch-form-group label { font-weight: 500; display: block; margin-bottom: 6px; }
.ch-form-group input, .ch-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--hairline-strong);
    background: var(--surface-card);
}
.ch-form-error { color: #cf2d56; font-size: 0.8rem; display: none; margin-top: 4px; }
.ch-form-success {
    background: #e5f5ef;
    border: 1px solid #1f8a65;
    color: #1f8a65;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-top: 16px;
    display: none;
}

.ch-footer { background: var(--canvas-soft); border-top: 1px solid var(--hairline); padding: 64px 0 24px; margin-top: 48px; }
.ch-footer h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.ch-footer a { color: var(--body-c); text-decoration: none; font-size: 0.9rem; }
.ch-footer a:hover { color: var(--primary); }
.ch-footer-disclaimers { border-top: 1px solid var(--hairline); margin-top: 24px; padding-top: 16px; }
.ch-footer-disclaimers p { color: var(--muted); font-size: 0.78rem; margin: 4px 0; }
.ch-footer-bottom { color: var(--muted); font-size: 0.8rem; margin-top: 12px; }

.ch-cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--ink);
    color: #fff;
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 50;
}
.ch-cookie-banner p { color: #fff; margin: 0; font-size: 0.85rem; max-width: 640px; }
.ch-cookie-actions { display: flex; gap: 10px; }

@media (max-width: 900px) {
    .ch-nav-links { display: none; width: 100%; }
    .ch-nav-links.open { display: block; margin-top: 12px; }
    .ch-nav-toggle { display: flex; }
    .ch-nav-links ul { flex-direction: column; gap: 10px; }
    h1 { font-size: 2rem; }
}
