/* Hayalimdeki Hükümet: shared styles for index.html and hukumetler.html */

html { scrollbar-gutter: stable; }

* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #FFFFFF;
    color: #0B132B;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Navy gradient pages: welcome, review, success, community.
   The light source sits on the logo (header top padding + half the logo height). */
:root { --logo-cx: 50vw; --logo-cy: 68.5px; }
@media (min-width: 640px) { :root { --logo-cy: 78.5px; } }
body.navy-community-mode {
    background-color: #0F2557;
    background-image: radial-gradient(circle farthest-corner at 50% var(--logo-cy), #254B9E 0%, #0F2557 52%, #071330 100%);
    background-attachment: fixed;
}
body.navy-hero-mode,
body.navy-review-mode,
body.navy-community-mode { color: #FFFFFF; }

body.navy-hero-mode #main-view-builder {
    justify-content: center;
    padding-top: 0;
    padding-bottom: 5.5rem;
}

/* Question pages (steps 1–12): vertically centered between header line and bottom navy bar */
body:not(.navy-hero-mode):not(.navy-review-mode) #main-view-builder {
    justify-content: center;
    padding-top: 0;
    padding-bottom: 80px; /* matches #bottom-wizard-bar height */
}
body:not(.navy-hero-mode):not(.navy-review-mode) #wizard-form {
    margin: auto 0;
}

/* Wizard: the navy is a fixed full-screen layer that GSAP fades in and out.
   Its light source sits on the logo (builder.js measures the exact point; these vars are the fallback). */
.bg-navy {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: #0F2557;
    background-image: radial-gradient(circle farthest-corner at var(--logo-cx) var(--logo-cy), #254B9E 0%, #0F2557 52%, #071330 100%);
    opacity: 1;
    will-change: opacity;   /* own GPU layer: the fade composites instead of repainting the gradient */
}

h1, h2, h3, .editorial-serif, .serif-title {
    font-family: 'Fraunces', 'Newsreader', Georgia, serif;
    font-weight: 300;
    font-variation-settings: "SOFT" 100, "WONK" 0;
    letter-spacing: -0.015em;
    line-height: 1.16;
}

.person-name {
    font-family: 'Fraunces', 'Newsreader', Georgia, serif !important;
    font-weight: 500 !important;
    font-variation-settings: "SOFT" 100, "WONK" 0;
    letter-spacing: -0.015em;
}

button, input, select, .btn-sans {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    letter-spacing: -0.01em;
}

/* ---------- Focus: always visible for keyboard users ---------- */
:focus { outline: none; }
:focus-visible {
    outline: 3px solid #1D4ED8;
    outline-offset: 2px;
}
.on-navy :focus-visible,
body.navy-hero-mode :focus-visible,
body.navy-review-mode :focus-visible,
body.navy-community-mode :focus-visible {
    outline-color: #93C5FD;
}
/* White surfaces inside navy pages get the dark ring back */
.on-light :focus-visible { outline-color: #1D4ED8 !important; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: #0B132B;
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 700;
    border-radius: 4px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Form fields ---------- */
.flat-field {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #94A3B8;
    border-radius: 4px;
    height: 52px;
    min-height: 52px;
    padding: 0 1.25rem;
    line-height: 1.2;
    font-size: 1.1rem;
    font-weight: 500;
    color: #0B132B;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}
.flat-field:hover { border-color: #475569; }
.flat-field:focus,
.flat-field:focus-visible {
    border-color: #0F2557;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.35);
    outline: none;
}
.flat-field::placeholder { color: #64748B; font-weight: 400; }
.flat-field[aria-invalid="true"] {
    border-color: #B01E30;
    box-shadow: 0 0 0 1px #B01E30;
}

.flat-select-wrapper { position: relative; width: 100%; }
.flat-select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #475569;
    font-size: 0.95rem;
}

.field-label-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.field-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0F2557;
}
.req-tag {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}
.req-tag.is-required { color: #9F1239; background: #FFF1F2; border: 1px solid #FECDD3; }
.req-tag.is-optional { color: #334155; background: #F1F5F9; border: 1px solid #CBD5E1; }

.field-hint {
    font-size: 0.85rem;
    line-height: 1.45;
    color: #475569;
    margin: 0 0 0.6rem;
}
.field-error {
    display: flex;
    gap: 0.4rem;
    align-items: flex-start;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #B01E30;
}
.field-error[hidden] { display: none; }

.form-legend-note {
    font-size: 0.85rem;
    color: #475569;
}

/* Radio cards (system choice) */
.choice-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 230px;
    height: 100%;
    padding: 2rem;
    border: 1px solid #94A3B8;
    border-radius: 6px;
    background: #fff;
    color: #0B132B;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice-card:hover { border-color: #0F2557; }
.choice-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice-card:has(input:focus-visible) { outline: 3px solid #1D4ED8; outline-offset: 3px; }
.choice-card:has(input:checked) { background: #0F2557; border-color: #0F2557; color: #fff; }
.choice-card .choice-tick {
    width: 1.6rem; height: 1.6rem;
    border-radius: 999px;
    border: 2px solid #94A3B8;
    display: flex; align-items: center; justify-content: center;
    color: transparent;
}
.choice-card:has(input:checked) .choice-tick { background: #D7263D; border-color: #fff; color: #fff; }
.choice-card .choice-desc { color: #475569; }
.choice-card:has(input:checked) .choice-desc { color: #E2E8F0; }
.choice-card .choice-over { color: #475569; }
.choice-card:has(input:checked) .choice-over { color: #FCA5A5; }

/* Segmented number choice (deputy count) */
.seg-group { display: inline-flex; border: 1px solid #94A3B8; border-radius: 4px; overflow: hidden; }
.seg-group label { position: relative; }
.seg-group input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-group span {
    display: block;
    min-width: 3rem;
    padding: 0.6rem 1.1rem;
    text-align: center;
    font-weight: 700;
    color: #0B132B;
    background: #fff;
    cursor: pointer;
}
.seg-group label + label span { border-left: 1px solid #CBD5E1; }
.seg-group input:checked + span { background: #0F2557; color: #fff; }
.seg-group input:focus-visible + span { outline: 3px solid #1D4ED8; outline-offset: -3px; }

/* ---------- Autocomplete combobox ---------- */
.combo { position: relative; width: 100%; }
.autocomplete-panel {
    position: absolute;
    left: 0; right: 0;
    z-index: 40;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid #94A3B8;
    border-top: none;
    background-color: #FFFFFF;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 12px 24px -12px rgba(11, 19, 43, 0.35);
}
.autocomplete-panel[hidden] { display: none; }
.autocomplete-item {
    padding: 0.8rem 1.1rem;
    font-size: 1rem;
    color: #0B132B;
    border-bottom: 1px solid #F1F5F9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.autocomplete-item[aria-selected="true"] { background-color: #EEF2FF; box-shadow: inset 3px 0 0 #0F2557; }
.autocomplete-item[aria-disabled="true"] { background-color: #F8FAFC; cursor: not-allowed; }
.autocomplete-item[aria-disabled="true"] .opt-name { color: #475569; }
.autocomplete-item.is-new { background: #0F2557; color: #fff; font-weight: 700; font-size: 0.85rem; }
.autocomplete-item.is-new[aria-selected="true"] { background: #B01E30; box-shadow: none; }

/* ---------- Stepper (in bottom navy bar) ---------- */
.stepper {
    display: grid;
    grid-template-columns: repeat(var(--phases, 6), minmax(0, 1fr));
    column-gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
}
.stepper li { min-width: 0; }
.stepper .phase-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.76rem; /* 1pt bigger: was 0.68rem */
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}
.stepper li.is-current .phase-label {
    color: #FFFFFF;
    font-weight: 800;
}
.stepper li.is-done .phase-label {
    color: rgba(255, 255, 255, 0.85);
}
.stepper .phase-check {
    display: none;
    font-size: 0.6rem;
    color: #86EFAC;
}
.stepper li.is-done .phase-check {
    display: inline-block;
}
.stepper .ticks {
    display: flex;
    gap: 3px;
}
.stepper .tick {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}
/* Fill scale and colour are driven by GSAP in builder.js */
.stepper .tick-fill {
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}
@media (max-width: 639px) {
    .stepper { column-gap: 0.35rem; }
    .stepper .phase-label { display: none; }
    .stepper-mobile-title { display: block; }
}
@media (min-width: 640px) {
    .stepper-mobile-title { display: none; }
}

/* ---------- Header (theme follows the page background) ---------- */
.site-header { margin-top: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); background: transparent; transition: border-color 0.55s ease; }
.site-header[data-theme="light"] { border-bottom-color: #E2E8F0; }
/* ── Logo (inline SVG) ───────────────────────────────────── */
#site-logo-svg {
    display: block;
    width: 97px;
    height: 97px;
}
@media (min-width: 640px) {
    #site-logo-svg { width: 117px; height: 117px; }
}
.site-logo {
    display: block;
    border-radius: 999px;
    /* Keeps same size on hover */
}

/* Dark theme (navy bg): altın = #debd77, yazılar = beyaz */
.site-header[data-theme="dark"] #site-logo-svg .st2 { fill: #ffffff; }

/* Light theme (white bg): altın = #debd77 (default), yazılar = lacivert (default) */
.nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.25rem 0 0.4rem;
    border-bottom: 2px solid transparent;
    color: #E2E8F0;
    transition: color 0.45s ease, border-color 0.45s ease;
}
.nav-link:hover { color: #fff; }
.nav-link[aria-current="page"] { color: #fff; font-weight: 800; border-bottom-color: #F87171; }
.site-header[data-theme="light"] .nav-link { color: #475569; }
.site-header[data-theme="light"] .nav-link:hover { color: #0F2557; }
.site-header[data-theme="light"] .nav-link[aria-current="page"] { color: #0F2557; border-bottom-color: #D7263D; }
.site-header[data-theme="light"] :focus-visible { outline-color: #1D4ED8; }

/* ---------- Government card ---------- */
/* No background on the card itself: navy head and white body each own their corners, so no white bleeds at the rounded edge */
.gov-card { color: #0B132B; border-radius: 6px; }
.gc-head { background: #0F2557; color: #fff; padding: 1.5rem 1.5rem 1.35rem; position: relative; border-radius: 6px 6px 0 0; }
@media (min-width: 640px) { .gc-head { padding: 2rem 2.25rem 1.75rem; } }
.gc-overline { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #FCA5A5; }
.gc-meta { font-size: 0.875rem; color: #CBD5E1; }
.gc-seats { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: #E2E8F0; }
.gc-seat-dots { display: flex; flex-wrap: wrap; gap: 3px; max-width: 220px; }
.gc-seat-dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.22); }
.gc-seat-dots span.is-filled { background: #fff; }
.gc-body { background: #fff; padding: 1.25rem 1.5rem 1.5rem; border-radius: 0 0 6px 6px; }
@media (min-width: 640px) { .gc-body { padding: 1.75rem 2.25rem 2rem; } }
.gc-section + .gc-section { margin-top: 1.5rem; }
.gc-section-title {
    display: flex; align-items: center; gap: 0.75rem;
    font-size: 0.75rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
    color: #B01E30;
    margin: 0 0 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.gc-section-title::after { content: ""; flex: 1; height: 1px; background: #E2E8F0; }
.seat {
    position: relative;
    min-width: 0;
    border: 1px solid #E2E8F0;
    border-top: 3px solid #0F2557;
    border-radius: 4px;
    padding: 0.8rem 0.95rem 0.9rem;
    background: #fff;
}
.seat.is-red { border-top-color: #D7263D; }
.seat.is-lead { padding: 1rem 1.15rem 1.15rem; background: #F8FAFC; }
.seat-role { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #475569; }
.seat-role-note { font-weight: 600; letter-spacing: 0; text-transform: none; color: #64748B; }
.seat-name { margin-top: 0.2rem; line-height: 1.2; overflow-wrap: anywhere; }
.seat.is-empty { border-style: dashed; border-top-width: 1px; border-color: #CBD5E1; background: #fff; }
.seat.is-empty .seat-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.9rem; font-weight: 600; color: #64748B; }
.seat-new {
    display: inline-block;
    font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    color: #B01E30; background: #FFF1F2; border: 1px solid #FECDD3;
    padding: 0.05rem 0.4rem; border-radius: 3px; margin-bottom: 0.3rem;
}
.gc-share { border-top: 1px solid #E2E8F0; padding-top: 1.25rem; margin-top: 1.75rem; }
.share-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 46px; padding: 0.6rem 1rem;
    border-radius: 4px; border: 1px solid #94A3B8;
    background: #fff; color: #0B132B;
    font-size: 0.85rem; font-weight: 700;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.share-btn:hover { border-color: #0B132B; background: #F8FAFC; }
.share-btn.is-primary { background: #0B132B; border-color: #0B132B; color: #fff; }
.share-btn.is-primary:hover { background: #0F2557; }

/* ---------- Misc ---------- */
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; width: 0; height: 0; }

body.navy-review-mode #main-view-builder.review-layout { max-width: 64rem; width: 100%; min-width: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Headings receive focus on step change so screen readers announce them; no ring needed there */
[tabindex="-1"]:focus-visible { outline: none; }

/* ---------- Review: chamber (hemicycle) ---------- */
.review-chamber { min-width: 0; max-width: 100%; width: 100%; box-sizing: border-box; margin: 0; padding: 1.25rem 1rem 1.5rem; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; background: rgba(255,255,255,0.04); }
@media (min-width: 640px) { .review-chamber { padding: 1.5rem 2rem 1.75rem; } }
.hemicycle { display: block; width: 100%; min-width: 0; max-width: 660px; height: auto; margin: 0 auto; overflow: visible; }
.hc-guide { fill: none; stroke: rgba(255,255,255,0.14); stroke-width: 1.5; }
.hc-count { font-family: 'Fraunces', Georgia, serif; font-size: 36px; font-weight: 400; fill: #fff; }
.hc-count-total { font-size: 20px; fill: rgba(255,255,255,0.6); }
.hc-seat[data-editable] { cursor: pointer; }
.hc-seat-inner { transition: transform 0.2s ease; transform-box: fill-box; transform-origin: center; }
.hc-seat circle, .hc-seat rect { fill: var(--seat); stroke: none; }
.hc-seat text { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; fill: var(--seat-ink, #0B132B); pointer-events: none; }
.hc-seat.is-empty circle, .hc-seat.is-empty rect { fill: transparent; stroke: rgba(255,255,255,0.55); stroke-dasharray: 3 3; stroke-width: 1.5; }
.hc-seat.is-empty text { fill: rgba(255,255,255,0.75); font-weight: 600; }
.hc-seat.is-hot .hc-seat-inner, .hc-seat:hover .hc-seat-inner { transform: scale(1.15); }
.hc-seat.is-hot circle, .hc-seat.is-hot rect { stroke: none; filter: brightness(1.2); }
.hc-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 0.9rem; margin: 0.75rem 0 0; padding: 0; list-style: none; font-size: 0.75rem; color: #E2E8F0; }
.hc-legend li { display: inline-flex; align-items: center; gap: 0.35rem; }
.hc-legend span { width: 10px; height: 10px; border-radius: 999px; background: var(--seat); }
.hc-legend span.is-empty { background: transparent; border: 1.5px dashed rgba(255,255,255,0.6); }

/* ---------- Review: compact seat list ---------- */
.rv-tier {
    display: flex; align-items: center; gap: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.72rem; font-weight: 800;
    letter-spacing: 0.16em; text-transform: uppercase; color: #FCA5A5;
    margin: 0 0 0.5rem;
}
.rv-tier::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.14); }
.rv-seat {
    width: 100%; display: flex; align-items: center; gap: 0.7rem;
    padding: 0.6rem 0.75rem; text-align: left; color: #fff;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.rv-seat:hover, .rv-seat.is-hot { background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.35); }
.rv-seat.is-lead { padding: 0.85rem 0.95rem; }
.rv-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 999px; background: var(--seat); }
.rv-seat.is-lead .rv-dot { width: 14px; height: 14px; }
.rv-role { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #CBD5E1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-note { font-weight: 600; letter-spacing: 0; text-transform: none; color: #94A3B8; }
.rv-new { display: inline-block; margin-left: 0.25rem; padding: 0 0.3rem; border-radius: 3px; background: #FDE68A; color: #78350F; font-size: 0.6rem; letter-spacing: 0.06em; }
.rv-name { display: block; margin-top: 0.1rem; font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.rv-seat.is-lead .rv-name { font-size: 1.3rem; }
.rv-seat.is-empty { background: transparent; border-style: dashed; border-color: rgba(255,255,255,0.3); }
.rv-seat.is-empty .rv-dot { background: transparent; border: 1.5px dashed rgba(255,255,255,0.6); }
.rv-seat.is-empty .rv-name { font-size: 0.9rem; font-weight: 600; color: #CBD5E1; }
.rv-edit { flex-shrink: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 999px; font-size: 0.72rem; color: rgba(255,255,255,0.75); transition: background-color 0.15s ease, color 0.15s ease; }
.rv-seat:hover .rv-edit, .rv-seat.is-hot .rv-edit { background: #fff; color: #0F2557; }

.hc-caption { font-size: 0.875rem; color: #E2E8F0; overflow-wrap: break-word; }
.hc-caption strong { color: #fff; }

/* ---------- Cabinet display: light theme (white card body) ---------- */
.seats-light .review-chamber { background: #F8FAFC; border-color: #E2E8F0; }
.seats-light .hc-guide { stroke: #CBD5E1; }
.seats-light .hc-count { fill: #0F2557; }
.seats-light .hc-count-total { fill: #64748B; }
.seats-light .hc-seat circle, .seats-light .hc-seat rect { stroke: none; }
.seats-light .hc-seat.is-empty circle, .seats-light .hc-seat.is-empty rect { fill: #fff; stroke: #94A3B8; }
.seats-light .hc-seat.is-empty text { fill: #64748B; }
.seats-light .hc-seat.is-hot circle, .seats-light .hc-seat.is-hot rect { stroke: none; filter: brightness(0.9); }
.seats-light .hc-caption { color: #475569; }
.seats-light .hc-caption strong { color: #0B132B; }
.seats-light .hc-legend { color: #475569; }
.seats-light .hc-legend span.is-empty { border-color: #94A3B8; }
.seats-light .rv-tier { color: #B01E30; }
.seats-light .rv-tier::after { background: #E2E8F0; }
.seats-light .rv-seat { color: #0B132B; background: #F8FAFC; border-color: #E2E8F0; }
.seats-light .rv-seat.is-hot { background: #EEF2FF; border-color: #C7D2FE; }
.seats-light .rv-role { color: #475569; }
.seats-light .rv-note { color: #64748B; }
.seats-light .rv-seat.is-empty { background: #fff; border-color: #CBD5E1; }
.seats-light .rv-seat.is-empty .rv-dot { border-color: #94A3B8; }
.seats-light .rv-seat.is-empty .rv-name { color: #64748B; }
.rv-seat.is-static { cursor: default; }
.seats-dark .rv-seat.is-static:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.seats-light .rv-seat.is-static:hover { background: #F8FAFC; border-color: #E2E8F0; }

/* ---------- Compact category filter (community leaderboards) ---------- */
.minimal-cat-select {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    max-width: 100%;
    height: 36px;
    padding: 0 2.1rem 0 0.8rem;
    border: 1px solid #94A3B8;
    border-radius: 4px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230F2557' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0F2557;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.minimal-cat-select:hover { border-color: #0F2557; background-color: #F8FAFC; }
.minimal-cat-select:focus-visible {
    outline: none;
    border-color: #0F2557;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.35);
}
