:root {
    --primary: #123b63;
    --blue: #2563eb;
    --background: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #172033;
    --text-secondary: #64748b;
    --success: #16a34a;
    --border: #e2e8f0;
    --dark: #0f172a;
    --danger: #dc2626;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.07);

    --transition: 180ms ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
dialog:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 3px;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 9999;
    padding: 10px 14px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    transition: top var(--transition);
}

.skip-link:focus {
    top: 16px;
}

/* NAVBAR */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.navbar {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
    font-size: 21px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 15px;
    color: var(--primary);
    line-height: 1.25;
}

.brand small {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 2px;
}

.navigation-wrapper {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    transition: color var(--transition);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 2px;
    height: 2px;
    background: var(--blue);
    transition: right var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    right: 0;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 9px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition);
}

.theme-toggle:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 9px;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    transition: transform var(--transition);
}

/* HERO */

.hero {
    background: linear-gradient(
        180deg,
        rgba(18, 59, 99, 0.04),
        transparent 75%
    );
    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 900px;
    padding: 105px 0 95px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 7px 12px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.hero-badge span {
    color: var(--success);
    font-size: 9px;
}

.hero h1 {
    max-width: 800px;
    margin: 0 auto 18px;
    color: var(--primary);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-description {
    max-width: 720px;
    margin: 0 auto 34px;
    color: var(--text-secondary);
    font-size: 17px;
}

.search-form {
    width: min(780px, 100%);
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    padding: 7px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 13px;
    box-shadow: var(--shadow);
    text-align: left;
}

.search-icon {
    padding-left: 12px;
    color: var(--text-secondary);
    font-size: 25px;
}

.search-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    padding: 10px 4px;
}

.search-form input::placeholder {
    color: #94a3b8;
}

.primary-button,
.secondary-button {
    border-radius: 9px;
    padding: 10px 17px;
    font-size: 14px;
    font-weight: 700;
    transition: all var(--transition);
}

.primary-button {
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
}

.primary-button:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.secondary-button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--primary);
}

.secondary-button:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.search-examples {
    margin: 15px 0 0;
    color: var(--text-secondary);
    font-size: 12px;
}

.search-examples span {
    color: var(--text);
    font-weight: 700;
}

/* GENERAL SECTIONS */

.section {
    padding: 85px 0;
}

.section-soft {
    background: var(--surface-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-heading {
    max-width: 700px;
    margin-bottom: 35px;
}

.section-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2,
.about-grid h2 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.section-heading p {
    margin: 0;
    color: var(--text-secondary);
}

/* CATEGORY */

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.category-card:hover {
    transform: translateY(-3px);
    border-color: #bfdbfe;
    box-shadow: var(--shadow);
}

.category-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 11px;
    background: var(--surface-soft);
    font-size: 24px;
}

.category-card h3 {
    margin: 0 0 7px;
    font-size: 16px;
}

.category-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
}

/* FILTER */

.filter-bar {
    margin-bottom: 22px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 700;
    transition: all var(--transition);
}

.filter-button:hover,
.filter-button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.result-info {
    min-height: 25px;
    margin-bottom: 17px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* INFORMATION */

.information-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-card {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow);
}

.info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.info-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--surface-soft);
    font-size: 23px;
}

.info-category {
    padding: 5px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
}

.info-card h3 {
    margin: 0 0 9px;
    color: var(--primary);
    font-size: 17px;
    line-height: 1.35;
}

.info-summary {
    margin: 0;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.info-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.info-date {
    color: var(--text-secondary);
    font-size: 11px;
}

.read-button {
    border: 0;
    background: transparent;
    color: var(--blue);
    padding: 6px 0;
    font-size: 12px;
    font-weight: 800;
}

.read-button:hover {
    text-decoration: underline;
}

/* EMPTY */

.hidden {
    display: none !important;
}

.empty-state {
    max-width: 500px;
    margin: 30px auto 0;
    padding: 40px 25px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}

.empty-icon {
    font-size: 38px;
    margin-bottom: 10px;
}

.empty-state h3 {
    margin: 0 0 6px;
    color: var(--primary);
}

.empty-state p {
    margin: 0 0 18px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* STATS */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.stat-card {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-card strong {
    display: block;
    color: var(--primary);
    font-size: 35px;
    line-height: 1.1;
}

.stat-card span {
    display: block;
    margin-top: 7px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

/* FACT */

.fact-section {
    background: #eef5fb;
}

.fact-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 25px;
    padding: 30px;
    border: 1px solid #d7e5f2;
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.fact-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eff6ff;
    font-size: 28px;
}

.fact-content p {
    margin: 0 0 8px;
    font-weight: 600;
}

.fact-source {
    color: var(--text-secondary);
    font-size: 11px;
}

/* SOURCES */

.source-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.source-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.source-card h3 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 15px;
}

.source-card p {
    flex: 1;
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 12px;
}

.source-link {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
}

/* ABOUT */

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
}

.about-grid > div > p {
    max-width: 700px;
    color: var(--text-secondary);
}

.disclaimer-box {
    display: flex;
    gap: 15px;
    padding: 24px;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    background: #eff6ff;
}

.disclaimer-icon {
    flex-shrink: 0;
    font-size: 22px;
}

.disclaimer-box h3 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 15px;
}

.disclaimer-box p {
    margin: 0 0 10px;
    color: #475569;
    font-size: 13px;
}

.disclaimer-box p:last-child {
    margin-bottom: 0;
}

/* FOOTER */

.site-footer {
    background: var(--dark);
    color: #cbd5e1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 50px;
    padding: 60px 0 40px;
}

.footer-brand-link .brand-icon {
    background: #17243a;
    border-color: #263650;
}

.footer-brand-link strong {
    color: #fff;
}

.footer-brand-link small {
    color: #94a3b8;
}

.footer-brand p {
    max-width: 400px;
    margin: 18px 0 0;
    color: #94a3b8;
    font-size: 13px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h3 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 14px;
}

.footer-column a {
    color: #94a3b8;
    font-size: 13px;
}

.footer-column a:hover {
    color: #fff;
}

.footer-column p {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #243047;
}

.footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
}

/* MODAL */

.information-modal {
    width: min(760px, calc(100% - 30px));
    max-height: min(850px, calc(100vh - 30px));
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.information-modal::backdrop {
    background: rgba(15, 23, 42, 0.68);
}

.modal-content {
    position: relative;
    max-height: min(850px, calc(100vh - 30px));
    overflow-y: auto;
    padding: 35px;
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 2;
    width: 38px;
    height: 38px;
    margin-left: 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font-size: 25px;
    line-height: 1;
}

.modal-close:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.modal-header {
    padding-right: 45px;
}

.modal-icon {
    font-size: 38px;
    margin-bottom: 12px;
}

.modal-category {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.modal-header h2 {
    margin: 5px 0 8px;
    color: var(--primary);
    font-size: 28px;
    line-height: 1.25;
}

.modal-date {
    color: var(--text-secondary);
    font-size: 12px;
}

.modal-section {
    margin-top: 28px;
}

.modal-section h3 {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 16px;
}

.modal-section p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-section ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-section li {
    margin-bottom: 8px;
}

.modal-source {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.modal-source strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 13px;
}

.modal-source span {
    color: var(--text-secondary);
    font-size: 12px;
}

.modal-warning {
    margin-top: 18px;
    padding: 14px;
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
    color: #78350f;
    font-size: 12px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.source-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 9px;
    background: var(--blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.source-button:hover {
    background: #1d4ed8;
}

.source-unavailable {
    display: inline-flex;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* BACK TO TOP */

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 900;
    width: 45px;
    height: 45px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--blue);
}

/* DARK MODE */

body.dark-mode {
    --background: #0b1220;
    --surface: #111c2e;
    --surface-soft: #172337;
    --text: #e5edf7;
    --text-secondary: #9aa9bd;
    --border: #263650;
    --primary: #dbeafe;
    --dark: #070d17;
}

body.dark-mode .site-header {
    background: rgba(11, 18, 32, 0.96);
}

body.dark-mode .hero {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 75%);
}

body.dark-mode .hero-badge,
body.dark-mode .info-category {
    background: rgba(37, 99, 235, 0.13);
    border-color: #274b78;
}

body.dark-mode .hero-badge {
    color: #bfdbfe;
}

body.dark-mode .info-category {
    color: #93c5fd;
}

body.dark-mode .fact-section {
    background: #0e1a2c;
}

body.dark-mode .fact-card,
body.dark-mode .disclaimer-box {
    background: var(--surface);
}

body.dark-mode .disclaimer-box {
    border-color: #274b78;
}

body.dark-mode .disclaimer-box p {
    color: #a9b7c9;
}

body.dark-mode .modal-warning {
    background: #251e0e;
    color: #fde68a;
}

body.dark-mode .theme-toggle,
body.dark-mode .mobile-menu-toggle,
body.dark-mode .search-form {
    background: var(--surface);
}

/* RESPONSIVE */

@media (max-width: 1050px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .source-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 850px) {
    .navigation-wrapper {
        position: absolute;
        left: 20px;
        right: 20px;
        top: calc(100% + 8px);
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 18px;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .navigation-wrapper.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-links a {
        display: block;
        padding: 11px 5px;
    }

    .theme-toggle {
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .information-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .container {
        width: min(100% - 28px, 1200px);
    }

    .navbar {
        min-height: 68px;
    }

    .hero-content {
        padding: 75px 0 70px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 15px;
    }

    .search-form {
        min-height: 58px;
    }

    .search-form .primary-button {
        padding-inline: 13px;
    }

    .section {
        padding: 65px 0;
    }

    .category-grid,
    .information-grid,
    .source-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: auto;
    }

    .fact-card {
        grid-template-columns: auto 1fr;
    }

    .fact-card .secondary-button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-content {
        padding: 24px 20px;
    }

    .modal-header h2 {
        font-size: 23px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .source-button,
    .source-unavailable {
        width: 100%;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
    }
}

@media (max-width: 420px) {
    .brand strong {
        font-size: 13px;
    }

    .brand small {
        font-size: 11px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .theme-label {
        display: none;
    }

    .search-form {
        flex-wrap: wrap;
        padding: 8px;
    }

    .search-form input {
        flex-basis: calc(100% - 55px);
    }

    .search-form .primary-button {
        width: 100%;
    }

    .search-icon {
        padding-left: 8px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}