*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:root {
    color-scheme: dark;
    --bg: #0b0f11;
    --bg-elevated: #10161a;
    --surface: rgba(16, 22, 26, 0.92);
    --surface-raised: #182026;
    --surface-soft: rgba(24, 32, 38, 0.72);
    --border: rgba(217, 227, 223, 0.1);
    --border-strong: rgba(217, 227, 223, 0.18);
    --text: #edf2ee;
    --muted: #a3b0a7;
    --accent: #1fb35a;
    --accent-soft: rgba(31, 179, 90, 0.12);
    --accent-strong: rgba(31, 179, 90, 0.22);
    --warning: #d0a23d;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 10px;
    --nav-h: 74px;
    --transition: 180ms ease;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #eff2ec;
    --bg-elevated: #f7f8f2;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-raised: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.7);
    --border: rgba(16, 22, 26, 0.1);
    --border-strong: rgba(16, 22, 26, 0.16);
    --text: #16211c;
    --muted: #5f6d65;
    --accent-soft: rgba(31, 179, 90, 0.08);
    --accent-strong: rgba(31, 179, 90, 0.16);
    --shadow: 0 18px 38px rgba(18, 27, 22, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(31, 179, 90, 0.1), transparent 24rem),
        radial-gradient(circle at bottom right, rgba(31, 179, 90, 0.06), transparent 22rem),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition:
        background var(--transition),
        color var(--transition);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='https://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.22;
    pointer-events: none;
    z-index: 0;
}

.site-nav-shell,
.page-header,
main,
footer {
    position: relative;
}

.site-nav-shell {
    z-index: 5;
}

.page-header,
main,
footer {
    z-index: 1;
}

main {
    flex: 1;
    padding: 0 clamp(1.25rem, 5vw, 4rem) 4.5rem;
}

header.page-header:empty {
    display: none;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.page-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.page-header {
    padding: calc(var(--nav-h) + 3.75rem) clamp(1.25rem, 5vw, 4rem) 1.5rem;
}

.page-header-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 0.9rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.2rem;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    order: -1;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
    transition: color var(--transition);
}

.breadcrumb a:hover {
    color: var(--text);
}

.breadcrumb span {
    opacity: 0.72;
}

.page-title {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(3.2rem, 7vw, 5.8rem);
    line-height: 0.94;
    letter-spacing: 0.02em;
}

.page-title em {
    color: var(--accent);
    font-style: normal;
}

.page-summary {
    max-width: 46rem;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    order: 2;
}

.section-heading {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
}

.section-heading h2 {
    font-family: "Bebas Neue", sans-serif;
    font-size: clamp(2.1rem, 4.8vw, 3.8rem);
    line-height: 0.96;
    letter-spacing: 0.02em;
}

.section-heading p {
    max-width: 42rem;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.surface-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.notice-banner {
    width: min(1180px, 100%);
    margin: 0 auto 2rem;
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, var(--accent-soft), transparent 55%), var(--surface);
    border: 1px solid var(--accent-strong);
    border-radius: var(--radius-sm);
}

.notice-banner svg {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    color: var(--accent);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.notice-banner p {
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.7;
}

.notice-banner strong {
    color: var(--text);
}

.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    min-height: 46px;
    padding: 0.85rem 1.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition),
        color var(--transition),
        box-shadow var(--transition);
    font-size: 0.9rem;
    font-weight: 600;
}

.btn svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

.btn i {
    font-size: 1rem;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    color: #09100c;
    box-shadow: 0 10px 24px rgba(31, 179, 90, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 16px 30px rgba(31, 179, 90, 0.26);
}

.btn-outline {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border-color: transparent;
}

.btn-ghost:hover {
    color: var(--text);
}

.filter-bar {
    margin-bottom: 2rem;
    padding: 1rem 1.1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(16px);
}

.filter-label,
.filter-meta {
    color: var(--muted);
    font-size: 0.88rem;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.filter-btn {
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition:
        border-color var(--transition),
        color var(--transition),
        background var(--transition);
    font-size: 0.88rem;
    font-weight: 500;
}

.filter-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.filter-btn.active {
    color: #09100c;
    border-color: var(--accent);
    background: var(--accent);
}

.filter-meta {
    margin-left: auto;
}

.search-wrap {
    position: relative;
    min-width: min(100%, 17rem);
    margin-left: auto;
}

.search-wrap svg {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.95rem;
    height: 0.95rem;
    color: var(--muted);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    pointer-events: none;
}

.search-wrap input {
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    padding: 0.75rem 1rem 0.75rem 2.6rem;
    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}

.search-wrap input::placeholder {
    color: var(--muted);
}

.search-wrap input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(31, 179, 90, 0.12);
    outline: none;
}

.empty-state {
    display: grid;
    gap: 0.75rem;
    justify-items: start;
    padding: 1.5rem 0;
    color: var(--muted);
}

.empty-state svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

@media (max-width: 900px) {
    :root {
        --nav-h: 66px;
    }

    .page-header {
        padding-top: calc(var(--nav-h) + 2.8rem);
    }
}

@media (max-width: 680px) {
    :root {
        --nav-h: 60px;
    }

    main {
        padding: 0 1rem 3.5rem;
    }

    .page-header {
        padding: calc(var(--nav-h) + 2.3rem) 1rem 1rem;
    }

    .page-summary,
    .section-heading p {
        font-size: 0.97rem;
    }

    .btn {
        width: 100%;
    }

    .filter-bar {
        padding: 0.9rem;
    }

    .filter-meta,
    .search-wrap {
        margin-left: 0;
        width: 100%;
    }
}
