/* HackerTraining.Pro — minimal light theme */

:root {
    --bg: #f7f6f3;
    --surface: #f7f6f3;
    --text: #171717;
    --muted: #6b6b6b;
    --faint: #9a9a9a;
    --border: #e6e4df;
    --accent: #171717;
}

html {
    scroll-behavior: smooth;
    background: #f7f6f3;
}

body {
    font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    background: #f7f6f3;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Keep every surface on the same cream — Tailwind loads after this file */
.bg-white,
.bg-neutral-50,
.site-header,
.modal-content,
.modal-header {
    background-color: #f7f6f3 !important;
}

h1, h2, h3, h4 {
    letter-spacing: -0.03em;
    font-weight: 600;
}

a {
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

img {
    max-width: 100%;
}

.site-header {
    background-color: #f7f6f3;
    border-bottom: 1px solid var(--border);
}

.lang-menu.open .lang-dropdown,
.lang-menu:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#mobile-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

#mobile-menu-toggle:checked ~ #mobile-menu {
    max-height: 24rem;
    opacity: 1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
    #mobile-menu,
    #mobile-menu-toggle:checked ~ #mobile-menu {
        max-height: 0 !important;
        opacity: 0 !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
        overflow: hidden !important;
        border-top-color: transparent !important;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(23, 23, 23, 0.45);
}

.modal-content {
    background: #f7f6f3;
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 88%;
    max-width: 860px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(23, 23, 23, 0.12);
}

.modal-header {
    padding: 20px 24px;
    background: #f7f6f3;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
    color: var(--text);
    line-height: 1.8;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 4px;
}

.close {
    color: var(--muted);
    font-size: 28px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: var(--text);
}

.hacker-divider {
    display: none;
}
