/* Basic reset for margin and padding */
:root {
    --bg: #101010;
    --surface: #171717;
    --surface-raised: #202020;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f2f2f2;
    --muted: #a9a9a9;
    --accent: #edb049;
    --accent-line: rgba(237, 176, 73, 0.48);
}
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

html::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    overflow-y: scroll;
    overflow-x: hidden;
}

h1 {
    font-size: 20px;
    margin: 0 0 5px;
    color: var(--text);
    -webkit-user-select: none;
    user-select: none;
    font-weight: 400;
    text-align: left;
}

h2 {
    font-size: 16px;
    margin: 0;
    color: var(--muted);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    -webkit-user-select: none;
    user-select: none;
}

.top-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 32px 20px 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.navigation-buttons {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
}

.nav-button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    background: transparent;
    color: var(--muted);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-button.active,
.nav-button:hover,
.nav-button:focus-visible {
    background: var(--surface);
    border-color: var(--line);
    color: var(--accent);
    outline: none;
}

.nav-button:focus-visible {
    box-shadow: 0 0 0 2px rgba(237, 176, 73, 0.24);
}

hr {
    opacity: .05;
}

.bottom-container {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: var(--surface);
    width: 100%;
    gap: 10px;
    border-radius: 0;
}

.horizontal-container {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
}

.panel-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text);
    text-align: left;
}

p {
    font-size: 16px;
    line-height: 1.4;
    color: var(--muted);
}

.summary-panel p {
    text-align: justify;
}

.achievements-section {
    margin: 30px 0 28px;
}

.achievements-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.achievement-item {
    min-width: 0;
    padding: 14px 0 16px;
    border-top: 2px solid var(--accent-line);
}

.achievement-item h2 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

.achievement-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    text-align: left;
}

body.no-recommendations .recommendations-panel,
body.no-recommendations .recommendations-title,
body.no-recommendations .recommendations-separator,
body.no-recommendations .recommendations-spacer {
    display: none;
}

@media (max-width: 600px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 18px;
        text-align: center;
    }

    h2 {
        font-size: 14px;
        text-align: center;
    }

    .top-container {
        gap: 10px;
        padding: 18px 14px 0;
        border-bottom: 1px solid var(--line);
    }

    .navigation-buttons {
        width: 100%;
        gap: 6px;
    }

    .nav-button {
        min-width: 76px;
        min-height: 36px;
        font-size: 12px;
        padding: 8px 10px;
        border-radius: 8px 8px 0 0;
    }

    .bottom-container {
        padding: 10px;
        gap: 5px;
    }

    .horizontal-container {
        width: 90%;
        margin: 0 5%;
    }

    .panel-title {
        font-size: 20px;
        text-align: center;
    }

    .achievements-section {
        margin: 26px 0 24px;
    }

    .achievements-section .panel-title {
        text-align: left;
    }

    .achievements-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .achievement-item {
        padding: 12px 0 14px;
    }

    .achievement-item h2 {
        font-size: 15px;
    }

    .achievement-item p {
        font-size: 13px;
    }

    p {
        font-size: 14px;
        line-height: 1.6;
    }
}
