:root {
    color-scheme: light;
    --page: #f5f6f8;
    --surface: #ffffff;
    --text: #17202a;
    --muted: #647081;
    --border: #dfe3e8;
    --accent: #2d5bd1;
    --accent-dark: #1f429e;
    --radius: 14px;
    --shadow: 0 8px 26px rgba(23, 32, 42, 0.07);
}

* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--page);
    color: var(--text);
}

body {
    margin: 0;
    line-height: 1.55;
}

a {
    color: var(--accent);
}

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

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

.header-inner,
.footer-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 750;
    text-decoration: none;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
}

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

.hero {
    padding: 72px 0 46px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #eef3ff 100%
        );
    border-bottom: 1px solid var(--border);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2rem, 5vw, 3.8rem);
    line-height: 1.08;
}

.hero-text {
    max-width: 720px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 14px;
    margin-top: 28px;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.controls label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.controls input[type="search"],
.controls select {
    min-width: 0;
    height: 44px;
    padding: 0 12px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 9px;
}

.checkbox-label {
    align-content: end;
    grid-template-columns: auto 1fr;
    align-items: center;
    padding-bottom: 10px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.results-header button {
    padding: 8px 12px;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}

.conference-list {
    display: grid;
    gap: 18px;
    padding-bottom: 54px;
}

.conference-card,
.empty-state {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.card-header h2 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.25;
}

.short-name {
    margin: 5px 0 0;
    color: var(--muted);
}

.verified {
    flex: none;
    padding: 4px 9px;
    color: #17683b;
    background: #e9f8ef;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
}

.description {
    color: var(--muted);
}

.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 20px 0;
}

.facts div {
    min-width: 0;
    padding: 12px;
    background: var(--page);
    border-radius: 9px;
}

.facts dt {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 750;
    text-transform: uppercase;
}

.facts dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tag {
    padding: 5px 9px;
    color: var(--accent-dark);
    background: #edf2ff;
    border-radius: 999px;
    font-size: 0.8rem;
}

.card-actions {
    margin-top: 22px;
}

.primary-link {
    display: inline-flex;
    padding: 10px 14px;
    color: #fff;
    background: var(--accent);
    border-radius: 9px;
    font-weight: 700;
    text-decoration: none;
}

.primary-link:hover {
    background: var(--accent-dark);
}

.empty-state {
    text-align: center;
}

.empty-state h2 {
    margin-top: 0;
}

.empty-state p {
    max-width: 620px;
    margin-inline: auto;
    color: var(--muted);
}

.site-footer {
    color: var(--muted);
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.prose {
    max-width: 780px;
    padding-top: 58px;
    padding-bottom: 70px;
}

.prose h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.prose p {
    color: var(--muted);
    font-size: 1.04rem;
}

.noscript {
    margin-bottom: 40px;
    padding: 14px;
    background: #fff3cd;
    border-radius: 8px;
}

[hidden] {
    display: none !important;
}

@media (max-width: 850px) {
    .controls {
        grid-template-columns: 1fr 1fr;
    }

    .facts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 16px;
    }

    .hero {
        padding: 46px 0 34px;
    }

    .controls {
        grid-template-columns: 1fr;
    }

    .checkbox-label {
        padding-bottom: 0;
    }

    .facts {
        grid-template-columns: 1fr;
    }

    .results-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
