* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
    background: #eeefe9;
    color: #4d4f46;
    line-height: 1.5;
}

a {
    color: #1078a3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.mobile-topbar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #eeefe9;
    border-bottom: 1px solid #bfc1b7;
}

.brand-mark {
    font-weight: 800;
    font-size: 18px;
    color: #23251d;
}

.sidebar-toggle {
    background: none;
    border: 1px solid #bfc1b7;
    border-radius: 6px;
    font-size: 20px;
    padding: 4px 10px;
    cursor: pointer;
    color: #23251d;
}

.layout-shell {
    display: flex;
    min-height: 100vh;
    max-width: 1280px;
    margin: 0 auto;
}

.site-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #eeefe9;
    padding: 32px 20px;
    border-right: 1px solid #bfc1b7;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-list li {
    margin-bottom: 4px;
}

.sidebar-link {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: #4d4f46;
    font-weight: 600;
    font-size: 14px;
}

.sidebar-link:hover {
    background: #e5e7e0;
    text-decoration: none;
}

.sidebar-link.active {
    background: #ffffff;
    color: #23251d;
    border: 1px solid #bfc1b7;
}

.main-content {
    flex: 1;
    padding: 40px 32px 80px;
    min-width: 0;
}

.hero-band {
    padding: 40px 0 32px;
    border-bottom: 1px solid #bfc1b7;
    margin-bottom: 32px;
}

.badge-cat {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #4d4f46;
    background: transparent;
    border: 1px solid #bfc1b7;
    border-radius: 9999px;
    padding: 4px 12px;
}

h1, h2, h3 {
    color: #23251d;
    font-weight: 700;
}

h1 {
    font-size: 32px;
    line-height: 1.3;
}

h2 {
    font-size: 22px;
    margin-top: 40px;
}

h3 {
    font-size: 18px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0 40px;
}

.magazine-card {
    display: block;
    background: #ffffff;
    border: 1px solid #bfc1b7;
    border-radius: 6px;
    padding: 24px;
    color: #4d4f46;
}

.magazine-card:hover {
    text-decoration: none;
    border-color: #9b9c92;
}

.magazine-card h3 {
    margin: 12px 0 8px;
    font-size: 18px;
}

.magazine-card p {
    font-size: 15px;
    color: #6c6e63;
    margin: 0;
}

.prose p, .prose ul {
    font-size: 16px;
    color: #4d4f46;
    max-width: 720px;
}

.prose h2 {
    border-top: 1px solid #dcdfd2;
    padding-top: 24px;
}

.toc-box {
    background: #fcfcfa;
    border: 1px solid #bfc1b7;
    border-radius: 6px;
    padding: 20px 24px;
    max-width: 480px;
}

.toc-box a {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #1078a3;
}

.related-section {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #bfc1b7;
}

.related-title {
    font-size: 18px;
    margin-bottom: 20px;
    margin-top: 0;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    display: block;
    background: #ffffff;
    border: 1px solid #bfc1b7;
    border-radius: 6px;
    padding: 20px;
    color: #4d4f46;
}

.related-card:hover {
    text-decoration: none;
    border-color: #9b9c92;
}

.related-cat {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #6c6e63;
}

.related-heading {
    font-size: 15px;
    margin: 8px 0 0;
    color: #23251d;
}

.breadcrumb-nav {
    font-size: 13px;
    color: #6c6e63;
    margin-bottom: 24px;
}

.breadcrumb-sep {
    margin: 0 6px;
}

.faq-item {
    border-bottom: 1px solid #dcdfd2;
    padding: 16px 0;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: #23251d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin-top: 12px;
    color: #4d4f46;
}

.checklist-box {
    background: #dceaf6;
    border-radius: 6px;
    padding: 20px 24px;
}

.checklist-box ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist-box li {
    padding: 6px 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}

.comparison-table th, .comparison-table td {
    border: 1px solid #bfc1b7;
    padding: 10px 14px;
    text-align: left;
}

.comparison-table th {
    background: #e5e7e0;
    color: #23251d;
}

.btn-primary-pe {
    display: inline-block;
    background: #f7a501;
    color: #23251d;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
}

.btn-primary-pe:hover {
    background: #dd9001;
    text-decoration: none;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #23251d;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    height: 36px;
    border: 1px solid #bfc1b7;
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    background: #ffffff;
    color: #23251d;
}

textarea.form-control {
    height: auto;
}

.form-control:focus {
    outline: none;
    border-color: #2c84e0;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-danger {
    background: #f7d6d3;
    color: #cd4239;
}

.alert-success {
    background: #d9eddf;
    color: #2c8c66;
}

.hidden {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #bfc1b7;
    padding: 20px 24px;
    z-index: 1000;
}

.cookie-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cookie-actions {
    display: flex;
    gap: 8px;
}

.btn-outline-pe {
    background: transparent;
    border: 1px solid #bfc1b7;
    color: #23251d;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .mobile-topbar {
        display: flex;
    }
    .layout-shell {
        flex-direction: column;
    }
    .site-sidebar {
        display: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #bfc1b7;
    }
    .site-sidebar.open {
        display: block;
    }
    .main-content {
        padding: 24px 16px 60px;
    }
    .card-grid, .related-grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 26px;
    }
}
