/* Government Job Search: /government-jobs-search (Views/Jobs/GovJobsSearch.cshtml). */
.gjs-page {
    --gjs-brand: #4338ca;
    --gjs-brand-2: #6366f1;
    --gjs-accent: #e11d48;
    --gjs-ink: #0f172a;
    --gjs-text: #334155;
    --gjs-muted: #64748b;
    --gjs-line: #e2e8f0;
    --gjs-card: #fff;
    --gjs-soft: #f5f7fb;
    --gjs-chip: #eef2ff;
    --gjs-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 28px -18px rgba(15, 23, 42, .35);
    background: var(--gjs-soft);
    padding: 78px 0 56px;
    font-family: 'Open Sans', 'Open Sans Fallback', 'Segoe UI', Arial, sans-serif;
}
html[data-theme="dark"] .gjs-page {
    --gjs-ink: #f1f5f9; --gjs-text: #cbd5e1; --gjs-muted: #94a3b8; --gjs-line: #334155;
    --gjs-card: #1e293b; --gjs-soft: #0f172a; --gjs-chip: rgba(99, 102, 241, .16);
    --gjs-shadow: 0 12px 28px -16px rgba(0, 0, 0, .75);
}
.gjs-page *, .gjs-page *::before, .gjs-page *::after { box-sizing: border-box; }
.gjs-page a { text-decoration: none; }

/* ---------------------------------------------------------------- hero */
.gjs-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 30px 0 92px;
    background:
        radial-gradient(640px 280px at 92% -10%, rgba(244, 63, 94, .38), transparent 60%),
        radial-gradient(560px 300px at -5% 120%, rgba(99, 102, 241, .5), transparent 60%),
        linear-gradient(130deg, #0b1023 0%, #1e1b4b 55%, #312e81 100%);
}
.gjs-hero::after {   /* faint grid */
    content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.gjs-hero .container { position: relative; z-index: 1; }
.gjs-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; font-size: .8rem; color: rgba(255, 255, 255, .65); }
.gjs-crumbs a { color: rgba(255, 255, 255, .8); }
.gjs-crumbs a:hover { color: #fff; }
.gjs-crumbs .fa { font-size: .7rem; opacity: .6; }
.gjs-hero-row { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: flex-end; justify-content: space-between; }
.gjs-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #c7d2fe; }
.gjs-eyebrow .gjs-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.gjs-hero h1 { font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 10px 0 8px; color: #fff; letter-spacing: -.01em; }
.gjs-hero h1 span { background: linear-gradient(90deg, #fda4af, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gjs-hero-row p { margin: 0; max-width: 580px; color: rgba(255, 255, 255, .78); line-height: 1.6; font-size: .98rem; }
.gjs-stats { display: flex; gap: 10px; }
.gjs-stat { min-width: 112px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.gjs-stat b { display: block; font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-size: 1.45rem; font-weight: 800; line-height: 1.1; color: #fff; }
.gjs-stat span { font-size: .74rem; color: rgba(255, 255, 255, .7); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* ---------------------------------------------------------------- search card */
.gjs-search {
    position: relative; z-index: 2;
    margin: -66px 0 0;
    padding: 18px;
    border-radius: 22px;
    background: var(--gjs-card);
    border: 1px solid var(--gjs-line);
    box-shadow: 0 24px 48px -26px rgba(15, 23, 42, .45);
}
.gjs-search-row { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) auto; gap: 10px; }
.gjs-field { position: relative; display: flex; align-items: center; height: 56px; border-radius: 14px; border: 1.5px solid var(--gjs-line); background: var(--gjs-soft); transition: border-color .15s, box-shadow .15s, background .15s; }
.gjs-field:focus-within { border-color: var(--gjs-brand-2); background: var(--gjs-card); box-shadow: 0 0 0 4px rgba(99, 102, 241, .15); }
.gjs-field > .fa { position: absolute; left: 16px; color: var(--gjs-brand-2); font-size: 1rem; pointer-events: none; }
.gjs-field label { position: absolute; left: 44px; top: 8px; margin: 0; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--gjs-muted); pointer-events: none; }
.gjs-field input, .gjs-field select {
    width: 100%; height: 100%; padding: 20px 38px 4px 44px; border: 0; outline: none; background: transparent;
    color: var(--gjs-ink); font-size: .98rem; font-weight: 600; font-family: inherit;
    -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer;
}
.gjs-field input { cursor: text; }
.gjs-field input::placeholder { color: var(--gjs-muted); font-weight: 400; opacity: .85; }
.gjs-field select option { color: #0f172a; background: #fff; }
.gjs-field .gjs-caret { position: absolute; right: 14px; color: var(--gjs-muted); font-size: .8rem; pointer-events: none; }
.gjs-clear-input { position: absolute; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--gjs-muted); cursor: pointer; display: grid; place-items: center; }
.gjs-clear-input:hover { background: var(--gjs-chip); color: var(--gjs-brand); }
.gjs-go {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px;
    border: 0; border-radius: 14px; cursor: pointer; color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: .01em;
    background: linear-gradient(135deg, var(--gjs-accent) 0%, #be123c 100%);
    box-shadow: 0 12px 22px -12px rgba(225, 29, 72, .8); transition: transform .15s, box-shadow .15s;
}
.gjs-go:hover { transform: translateY(-1px); box-shadow: 0 16px 26px -12px rgba(225, 29, 72, .9); }
.gjs-go:focus-visible { outline: 3px solid rgba(225, 29, 72, .35); outline-offset: 2px; }

.gjs-search-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; }
.gjs-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gjs-popular > span { font-size: .78rem; font-weight: 700; color: var(--gjs-muted); margin-right: 2px; }
.gjs-pop { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--gjs-chip); color: var(--gjs-brand) !important; font-size: .8rem; font-weight: 700; transition: background .15s, color .15s; }
.gjs-pop:hover, .gjs-pop.is-on { background: var(--gjs-brand); color: #fff !important; }
html[data-theme="dark"] .gjs-pop { color: #c7d2fe !important; }
html[data-theme="dark"] .gjs-pop:hover, html[data-theme="dark"] .gjs-pop.is-on { color: #fff !important; }
.gjs-more { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--gjs-line); background: transparent; color: var(--gjs-text); font-weight: 700; font-size: .85rem; cursor: pointer; }
.gjs-more:hover { border-color: var(--gjs-brand-2); color: var(--gjs-brand-2); }
.gjs-more .gjs-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gjs-accent); color: #fff; font-size: .7rem; display: inline-grid; place-items: center; }
.gjs-more .fa-chevron-down { font-size: .7rem; transition: transform .2s; }
.gjs-more[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }
.gjs-advanced { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--gjs-line); }
.gjs-advanced[hidden] { display: none; }

/* title suggestions */
.gjs-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 320px; overflow-y: auto; padding: 6px; border-radius: 14px; background: var(--gjs-card); border: 1px solid var(--gjs-line); box-shadow: 0 22px 40px -18px rgba(15, 23, 42, .45); }
.gjs-suggest[hidden] { display: none; }
.gjs-suggest-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; text-align: left; color: var(--gjs-text); font-size: .9rem; cursor: pointer; text-transform: capitalize; }
.gjs-suggest-item .fa { color: var(--gjs-muted); font-size: .85rem; }
.gjs-suggest-item:hover, .gjs-suggest-item.is-active { background: var(--gjs-chip); color: var(--gjs-ink); }
.gjs-suggest-empty { padding: 10px; color: var(--gjs-muted); font-size: .88rem; }

/* ---------------------------------------------------------------- layout */
.gjs-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; margin-top: 26px; align-items: start; }

.gjs-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.gjs-toolbar h2 { margin: 0; font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--gjs-ink); }
.gjs-toolbar h2 small { display: block; margin-top: 3px; font-family: 'Open Sans', 'Open Sans Fallback', sans-serif; font-size: .82rem; font-weight: 600; color: var(--gjs-muted); }
.gjs-active { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.gjs-tag { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--gjs-card); border: 1px solid var(--gjs-line); color: var(--gjs-text); font-size: .82rem; font-weight: 600; }
.gjs-tag b { color: var(--gjs-muted); font-weight: 700; }
.gjs-tag a { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--gjs-muted); background: var(--gjs-soft); font-size: .72rem; }
.gjs-tag a:hover { background: var(--gjs-accent); color: #fff; }
.gjs-clear-all { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; color: var(--gjs-accent) !important; font-size: .82rem; font-weight: 700; }
.gjs-clear-all:hover { text-decoration: underline !important; }

/* ---------------------------------------------------------------- result cards */
.gjs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.gjs-card {
    position: relative; display: flex; gap: 14px; align-items: flex-start; height: 100%;
    padding: 16px 16px 14px; border-radius: 16px; background: var(--gjs-card); border: 1px solid var(--gjs-line);
    box-shadow: var(--gjs-shadow); color: var(--gjs-text) !important;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.gjs-card:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, .55); box-shadow: 0 18px 32px -18px rgba(67, 56, 202, .45); }
.gjs-card:focus-visible { outline: 3px solid rgba(99, 102, 241, .45); outline-offset: 2px; }
.gjs-logo {
    flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    color: #fff; font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-weight: 800; font-size: .78rem; letter-spacing: .02em;
    background: var(--c, #4f46e5); box-shadow: inset 0 -10px 18px -10px rgba(0, 0, 0, .35);
}
.gjs-logo.is-long { font-size: .64rem; }
.gjs-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; min-height: 100%; }
.gjs-card h3 { margin: 0 0 10px; font-size: .97rem; line-height: 1.42; font-weight: 700; color: var(--gjs-ink); text-transform: capitalize; overflow-wrap: anywhere; }
.gjs-card mark { padding: 0 2px; border-radius: 4px; background: #fef08a; color: inherit; }
html[data-theme="dark"] .gjs-card mark { background: rgba(250, 204, 21, .3); }
.gjs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; }
.gjs-kind { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--kb, #eef2ff); color: var(--kc, #4338ca); }
.gjs-kind .fa { font-size: .72rem; }
.gjs-year { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--gjs-soft); border: 1px solid var(--gjs-line); color: var(--gjs-muted); font-size: .72rem; font-weight: 700; }
.gjs-arrow { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gjs-soft); color: var(--gjs-brand-2); font-size: .8rem; transition: background .18s, color .18s, transform .18s; }
.gjs-card:hover .gjs-arrow { background: var(--gjs-brand); color: #fff; transform: translateX(2px); }
html[data-theme="dark"] .gjs-kind { background: rgba(255, 255, 255, .08); color: #e2e8f0; }

.k-apply { --kb: #eef2ff; --kc: #4338ca; }
.k-result { --kb: #dcfce7; --kc: #15803d; }
.k-admit { --kb: #fef3c7; --kc: #b45309; }
.k-key { --kb: #ccfbf1; --kc: #0f766e; }
.k-syllabus { --kb: #f3e8ff; --kc: #7e22ce; }
.k-admission { --kb: #fce7f3; --kc: #be185d; }
.k-notice { --kb: #e0f2fe; --kc: #0369a1; }

/* ---------------------------------------------------------------- empty state */
.gjs-empty { padding: 46px 22px; border-radius: 20px; text-align: center; background: var(--gjs-card); border: 1px dashed var(--gjs-line); }
.gjs-empty-icon { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 22px; display: grid; place-items: center; font-size: 1.8rem; color: var(--gjs-brand-2); background: var(--gjs-chip); }
.gjs-empty h3 { margin: 0 0 6px; font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-size: 1.15rem; font-weight: 800; color: var(--gjs-ink); }
.gjs-empty p { margin: 0 auto 16px; max-width: 420px; color: var(--gjs-muted); line-height: 1.6; }
.gjs-empty .gjs-popular { justify-content: center; }

/* ---------------------------------------------------------------- pagination */
.gjs-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 28px 0 0; }
.gjs-pages a, .gjs-pages span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: .9rem; }
.gjs-pages a { background: var(--gjs-card); border: 1px solid var(--gjs-line); color: var(--gjs-text); }
.gjs-pages a:hover { border-color: var(--gjs-brand-2); color: var(--gjs-brand-2); }
.gjs-pages .is-on { background: linear-gradient(135deg, var(--gjs-brand) 0%, var(--gjs-brand-2) 100%); color: #fff; box-shadow: 0 10px 20px -12px rgba(67, 56, 202, .9); }
.gjs-pages .gjs-gap { min-width: 0; padding: 0 2px; color: var(--gjs-muted); }

/* ---------------------------------------------------------------- sidebar */
.gjs-side { display: grid; gap: 16px; align-content: start; }
.gjs-side h3 { font-family: 'Montserrat', 'Montserrat Fallback', sans-serif; font-weight: 800; }
.gjs-box { padding: 16px; border-radius: 20px; background: var(--gjs-card); border: 1px solid var(--gjs-line); box-shadow: var(--gjs-shadow); }
.gjs-box-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.gjs-box-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: .95rem; background: linear-gradient(135deg, var(--gjs-brand) 0%, var(--gjs-brand-2) 100%); box-shadow: 0 8px 16px -10px rgba(67, 56, 202, .9); }
.gjs-box-head h3 { margin: 0; font-size: 1rem; color: var(--gjs-ink); }
.gjs-box-head p { margin: 2px 0 0; font-size: .78rem; color: var(--gjs-muted); }

/* 1. list tiles */
.gjs-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gjs-tile {
    position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; min-height: 92px; padding: 12px;
    border-radius: 14px; background: var(--kb); border: 1px solid transparent; color: var(--kc) !important;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.gjs-tile::after { content: ''; position: absolute; right: -18px; bottom: -18px; width: 64px; height: 64px; border-radius: 50%; background: currentColor; opacity: .07; transition: transform .25s ease; }
.gjs-tile:hover { transform: translateY(-2px); border-color: currentColor; box-shadow: 0 12px 20px -14px currentColor; }
.gjs-tile:hover::after { transform: scale(1.5); }
.gjs-tile-ico { width: 30px; height: 30px; margin-bottom: 6px; border-radius: 9px; display: grid; place-items: center; background: var(--gjs-card); font-size: .85rem; box-shadow: 0 2px 6px -2px rgba(15, 23, 42, .18); }
.gjs-tile b { font-size: .86rem; font-weight: 800; line-height: 1.2; color: var(--gjs-ink); }
.gjs-tile small { font-size: .72rem; font-weight: 600; opacity: .85; }
.k-hot { --kb: #ffedd5; --kc: #c2410c; }
html[data-theme="dark"] .gjs-tile { background: rgba(255, 255, 255, .05); border-color: var(--gjs-line); color: #a5b4fc !important; }
html[data-theme="dark"] .gjs-tile.k-result { color: #86efac !important; }
html[data-theme="dark"] .gjs-tile.k-admit, html[data-theme="dark"] .gjs-tile.k-hot { color: #fcd34d !important; }
html[data-theme="dark"] .gjs-tile.k-key { color: #5eead4 !important; }
html[data-theme="dark"] .gjs-tile.k-syllabus { color: #d8b4fe !important; }
html[data-theme="dark"] .gjs-tile.k-admission { color: #f9a8d4 !important; }
html[data-theme="dark"] .gjs-tile.k-notice { color: #7dd3fc !important; }
html[data-theme="dark"] .gjs-tile-ico { background: rgba(255, 255, 255, .08); }

/* 2. job alerts */
.gjs-alert {
    position: relative; overflow: hidden; padding: 20px 18px 18px; border-radius: 20px; color: #fff;
    background: radial-gradient(220px 160px at 100% 0%, rgba(244, 63, 94, .55), transparent 70%), linear-gradient(140deg, #1e1b4b 0%, #312e81 55%, #4338ca 100%);
    box-shadow: 0 18px 32px -20px rgba(49, 46, 129, .9);
}
.gjs-alert[hidden] { display: none; }
.gjs-alert-bell { position: relative; display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 14px; background: rgba(255, 255, 255, .14); font-size: 1.25rem; color: #fde68a; }
.gjs-alert-bell::after { content: ''; position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 0 3px rgba(30, 27, 75, .9); }
.gjs-alert:not(.is-on) .gjs-alert-bell .fa { animation: gjsRing 2.6s ease-in-out 1.5s 3; transform-origin: 50% 10%; }
.gjs-alert h3 { margin: 0 0 6px; font-size: 1.08rem; color: #fff; }
.gjs-alert p { margin: 0 0 14px; font-size: .84rem; line-height: 1.55; color: rgba(255, 255, 255, .82); }
.gjs-alert-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px; border: 0; border-radius: 12px; background: #fff; color: #312e81; font-weight: 800; font-size: .9rem; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.gjs-alert-btn:hover:not(:disabled) { transform: translateY(-1px); background: #eef2ff; }
.gjs-alert-btn:disabled { cursor: default; opacity: .9; }
.gjs-alert-btn[hidden] { display: none; }
.gjs-alert.is-on { background: linear-gradient(140deg, #064e3b 0%, #047857 60%, #10b981 100%); box-shadow: 0 18px 32px -20px rgba(4, 120, 87, .9); }
.gjs-alert.is-on .gjs-alert-bell::after { background: #4ade80; box-shadow: 0 0 0 3px rgba(6, 78, 59, .9); }
.gjs-alert.is-on .gjs-alert-btn { color: #047857; }
@keyframes gjsRing { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }

/* 3. states */
.gjs-state-find { position: relative; display: flex; align-items: center; height: 40px; margin: 0 0 10px; border-radius: 12px; border: 1.5px solid var(--gjs-line); background: var(--gjs-soft); font-weight: normal; }
.gjs-state-find:focus-within { border-color: var(--gjs-brand-2); background: var(--gjs-card); box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }
.gjs-state-find .fa { position: absolute; left: 12px; color: var(--gjs-muted); font-size: .85rem; pointer-events: none; }
.gjs-state-find input { width: 100%; height: 100%; padding: 0 12px 0 34px; border: 0; outline: none; background: transparent; color: var(--gjs-ink); font-size: .88rem; }
.gjs-state-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.gjs-state-list li[hidden], .gjs-state-list:not(.js) li.is-extra { display: none; }
.gjs-state-list a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 11px; color: var(--gjs-text) !important; font-size: .87rem; font-weight: 600; transition: background .15s ease; }
.gjs-state-list a:hover { background: var(--gjs-soft); }
.gjs-state-code { flex: none; width: 34px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--gjs-chip); color: var(--gjs-brand); font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
html[data-theme="dark"] .gjs-state-code { color: #c7d2fe; }
.gjs-state-name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gjs-state-list a .fa { color: var(--gjs-muted); font-size: .85rem; transition: transform .15s ease; }
.gjs-state-list a:hover .fa-angle-right { transform: translateX(3px); color: var(--gjs-brand-2); }
.gjs-state-list a.is-on { background: var(--gjs-chip); color: var(--gjs-brand) !important; }
.gjs-state-list a.is-on .gjs-state-code { background: linear-gradient(135deg, var(--gjs-brand) 0%, var(--gjs-brand-2) 100%); color: #fff; }
.gjs-state-list a.is-on .fa { color: var(--gjs-accent); }
html[data-theme="dark"] .gjs-state-list a.is-on { color: #c7d2fe !important; }
.gjs-state-none { margin: 6px 0 0; padding: 10px; text-align: center; color: var(--gjs-muted); font-size: .84rem; }
.gjs-state-none[hidden] { display: none; }
.gjs-state-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 38px; margin-top: 8px; border: 1.5px dashed var(--gjs-line); border-radius: 11px; background: transparent; color: var(--gjs-brand); font-weight: 700; font-size: .84rem; cursor: pointer; }
.gjs-state-more:hover { border-style: solid; border-color: var(--gjs-brand-2); background: var(--gjs-chip); }
.gjs-state-more[hidden] { display: none; }
html[data-theme="dark"] .gjs-state-more { color: #c7d2fe; }

/* 4. preparation */
.gjs-prep { padding: 18px 16px 12px; border-radius: 20px; background: linear-gradient(180deg, #fff7ed 0%, var(--gjs-card) 70%); border: 1px solid #fed7aa; box-shadow: var(--gjs-shadow); }
html[data-theme="dark"] .gjs-prep { background: linear-gradient(180deg, rgba(249, 115, 22, .12) 0%, var(--gjs-card) 70%); border-color: var(--gjs-line); }
.gjs-prep h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 1rem; color: var(--gjs-ink); }
.gjs-prep h3 .fa { color: #ea580c; }
.gjs-prep > p { margin: 0 0 10px; font-size: .8rem; color: var(--gjs-muted); }
.gjs-prep ul { margin: 0; padding: 0; list-style: none; }
.gjs-prep li + li { border-top: 1px solid var(--gjs-line); }
.gjs-prep a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--gjs-text) !important; }
.gjs-prep a > span:nth-child(2) { flex: 1; min-width: 0; }
.gjs-prep b { display: block; font-size: .88rem; color: var(--gjs-ink); }
.gjs-prep small { display: block; font-size: .74rem; color: var(--gjs-muted); }
.gjs-prep-ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: .9rem; background: var(--c); box-shadow: 0 8px 14px -10px var(--c); }
.gjs-prep a > .fa { color: var(--gjs-muted); transition: transform .15s ease, color .15s ease; }
.gjs-prep a:hover b { color: #ea580c; }
.gjs-prep a:hover > .fa { transform: translateX(3px); color: #ea580c; }

/* the site-wide dark theme paints every link blue - keep this page's own colours */
html[data-theme="dark"] .gjs-crumbs a { color: rgba(255, 255, 255, .8) !important; }
html[data-theme="dark"] .gjs-pages a { color: var(--gjs-text) !important; }
html[data-theme="dark"] .gjs-card { color: var(--gjs-text) !important; }
/* ---------------------------------------------------------------- responsive */
@media (max-width: 991px) {
    .gjs-body { grid-template-columns: minmax(0, 1fr); }
    .gjs-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 767px) {
    .gjs-hero { padding: 20px 0 84px; }
    .gjs-stats { width: 100%; }
    .gjs-stat { flex: 1; min-width: 0; padding: 10px 12px; }
    .gjs-stat b { font-size: 1.2rem; }
    .gjs-search { padding: 12px; border-radius: 18px; }
    .gjs-search-row, .gjs-advanced { grid-template-columns: minmax(0, 1fr); }
    .gjs-go { width: 100%; }
    .gjs-list { grid-template-columns: minmax(0, 1fr); }
    .gjs-side { grid-template-columns: minmax(0, 1fr); }
    .gjs-popular { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; width: calc(100% + 24px); }
    .gjs-popular::-webkit-scrollbar { display: none; }
    .gjs-pop { flex: none; }
    .gjs-search-foot { flex-direction: column; align-items: stretch; }
    .gjs-more { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .gjs-card, .gjs-arrow, .gjs-go, .gjs-tile { transition: none; }
    .gjs-alert-bell .fa { animation: none !important; }
    .gjs-card:hover, .gjs-go:hover { transform: none; }
}
