/* ==========================================================================
   Government Job Desk — design system
   Plain CSS, no build step. Sections: tokens · base · layout · header ·
   hero · components · job list · single pages · forms · footer · utilities
   ========================================================================== */

/* Inter (SIL Open Font License), self-hosted: one variable file, weights 400–800 */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
    --ink: #0b1324;
    --ink-2: #273449;
    --muted: #64748b;
    --muted-2: #94a3b8;
    --line: #e5e9f2;
    --line-2: #eef1f7;
    --bg: #f6f8fc;
    --surface: #ffffff;

    --brand: #1d3fd8;
    --brand-600: #1733b3;
    --brand-700: #13298f;
    --brand-50: #eef2ff;
    --brand-100: #dfe6ff;

    --navy: #0a1633;
    --navy-2: #102457;

    --accent: #f59e0b;
    --accent-600: #d97706;
    --accent-50: #fff7e8;
    --accent-light: #fcd34d;
    --ring: rgba(29, 63, 216, .3);
    --glow: rgba(99, 132, 255, .35);
    --glow-2: rgba(245, 158, 11, .14);

    --green: #047857;
    --green-50: #e7f8f0;
    --amber: #b45309;
    --amber-50: #fff4e0;
    --red: #b91c1c;
    --red-50: #fdecec;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow-xs: 0 1px 2px rgba(11, 19, 36, .05);
    --shadow-sm: 0 1px 2px rgba(11, 19, 36, .04), 0 2px 8px rgba(11, 19, 36, .05);
    --shadow: 0 2px 4px rgba(11, 19, 36, .04), 0 12px 32px -8px rgba(11, 19, 36, .12);
    --shadow-lg: 0 24px 60px -20px rgba(10, 22, 51, .35);

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
    --wrap: 1200px;
}

/* ---------- Colour themes (Admin → Settings → Colour theme) ---------- */
/* Emerald & Saffron: matches the teal logo, strong "go" colour for Apply buttons */
[data-theme="emerald"] {
    --navy: #052e2a; --navy-2: #0a4a42;
    --brand: #0f766e; --brand-600: #0d635c; --brand-700: #0a4f4a; --brand-50: #e8f7f4; --brand-100: #c9ece5;
    --accent: #f97316; --accent-600: #ea580c; --accent-50: #fff3ea; --accent-light: #fdba74;
    --ring: rgba(15, 118, 110, .3); --glow: rgba(45, 212, 191, .28); --glow-2: rgba(249, 115, 22, .16);
}
/* Royal Indigo & Coral: modern, high-contrast */
[data-theme="indigo"] {
    --navy: #1a1440; --navy-2: #2c1f6b;
    --brand: #5b3df5; --brand-600: #4a2fd8; --brand-700: #3c25b0; --brand-50: #f0edff; --brand-100: #ddd6ff;
    --accent: #ff6b6b; --accent-600: #ee5253; --accent-50: #fff0f0; --accent-light: #ffa8a8;
    --ring: rgba(91, 61, 245, .3); --glow: rgba(139, 120, 255, .4); --glow-2: rgba(255, 107, 107, .16);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--font); font-size: 16px; line-height: 1.65;
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); font-weight: 750; }
h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h3 { font-size: 1.08rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.ico { flex: none; display: inline-block; vertical-align: middle; }
::selection { background: var(--brand-100); }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }

.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 860px; }
main { min-height: 60vh; padding-bottom: 72px; }
.section { margin: 0 0 56px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .925rem; white-space: nowrap; }
.link-arrow .ico { transition: transform .15s; }
.link-arrow:hover .ico { transform: translateX(3px); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.side-col { position: sticky; top: 92px; display: grid; gap: 20px; }
@media (max-width: 1000px) { .layout { grid-template-columns: minmax(0, 1fr); } .side-col { position: static; } }
.mobile-cta { display: none; }
@media (max-width: 1000px) { .mobile-cta { display: grid; gap: 10px; margin-bottom: 20px; } .mobile-cta .btn { width: 100%; } }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy); color: #c7d2fe; font-size: .8rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar a { color: #e0e7ff; }
.topbar a:hover { color: #fff; }
.topbar-links { display: flex; gap: 18px; align-items: center; }
.topbar-links a { display: inline-flex; align-items: center; gap: 6px; }
.topbar .dot { width: 6px; height: 6px; border-radius: 99px; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); display: inline-block; margin-right: 8px; }
@media (max-width: 640px) { .topbar-links { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); line-height: 1.1; flex: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; }
.brand-name b { color: var(--brand); font-weight: 800; }
.brand-tag { font-size: .7rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; margin-top: 3px; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav li { position: relative; }
.site-nav > ul > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-size: .9rem; font-weight: 550; white-space: nowrap; }
.site-nav > ul > li > a:hover, .site-nav > ul > li.active > a { color: var(--brand); background: var(--brand-50); }
.site-nav .caret { opacity: .55; }
.site-nav .sub {
    position: absolute; top: calc(100% + 8px); left: -8px; width: 300px; list-style: none; margin: 0; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s;
}
.site-nav .sub::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.site-nav .sub a:hover { background: var(--bg); color: var(--brand); }
.sub-ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.nav-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--muted); margin-left: 8px; }
.nav-search input { border: 0; background: transparent; outline: none; font: inherit; font-size: .875rem; width: 120px; color: var(--ink); }
.nav-search:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-50); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: inline-block; }

@media (max-width: 1140px) {
    .nav-toggle { display: grid; }
    .site-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); background: #fff; flex-direction: column; align-items: stretch;
        padding: 16px 20px 32px; overflow-y: auto; gap: 12px; border-top: 1px solid var(--line);
    }
    .site-nav.open { display: flex; }
    .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav > ul > li { border-bottom: 1px solid var(--line-2); }
    .site-nav > ul > li > a { padding: 14px 4px; font-size: 1rem; border-radius: 0; background: none !important; }
    .site-nav .sub { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
    .site-nav .sub a { padding: 8px 4px; font-size: .9rem; }
    .site-nav .caret { display: none; }
    .nav-search { margin: 4px 0 0; height: 48px; }
    .nav-search input { width: 100%; font-size: 1rem; }
    body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) { .brand-tag { display: none; } }
@media (max-width: 480px) { .site-nav .sub { grid-template-columns: 1fr; } }

/* ---------- Hero (home) ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff; padding: 72px 0 88px;
    background:
        radial-gradient(900px 420px at 85% -10%, var(--glow), transparent 60%),
        radial-gradient(700px 380px at -10% 110%, var(--glow-2), transparent 60%),
        linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #dbe4ff; font-size: .8rem; font-weight: 500; margin-bottom: 22px; }
.hero-badge span { background: var(--accent); color: var(--navy); font-weight: 700; padding: 2px 8px; border-radius: 99px; font-size: .7rem; letter-spacing: .03em; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent-light), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { color: #c3cdea; font-size: 1.1rem; max-width: 540px; margin-bottom: 30px; }
.hero-search { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 16px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow-lg); max-width: 580px; color: var(--muted); }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 1rem; color: var(--ink); padding: 10px 4px; background: transparent; }
.hero-search select { border: 0; border-left: 1px solid var(--line); padding: 10px 8px 10px 14px; font: inherit; font-size: .9rem; color: var(--ink-2); background: transparent; outline: none; max-width: 170px; }
.hero-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: .85rem; color: #9fb0dc; }
.hero-popular a { color: #e0e7ff; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); transition: background .15s; }
.hero-popular a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { margin: 0; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.hero-stats dt { font-size: .8rem; color: #9fb0dc; margin-top: 4px; }

.hero-panel { background: rgba(255, 255, 255, .98); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.hero-panel-head h2 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 99px; background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }
.hero-panel ul { list-style: none; margin: 0; padding: 6px 10px; }
.hero-panel li a { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; color: var(--ink); }
.hero-panel li a:hover { background: var(--bg); }
.hero-panel li + li { border-top: 1px solid var(--line-2); }
.hero-panel .t { font-weight: 600; font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-panel .m { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.hero-panel-foot { padding: 14px 22px; background: var(--bg); border-top: 1px solid var(--line); font-size: .875rem; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero { padding: 48px 0 56px; } }
@media (max-width: 560px) { .hero-search select { display: none; } .hero-stats { gap: 24px; } .hero-stats dd { font-size: 1.5rem; } }

/* Strip of category shortcuts overlapping the hero */
.quick-strip { margin-top: -36px; position: relative; z-index: 2; margin-bottom: 56px; }
.quick-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.quick-grid a { display: flex; align-items: center; gap: 14px; padding: 20px 22px; color: var(--ink); border-right: 1px solid var(--line-2); transition: background .15s; }
.quick-grid a:last-child { border-right: 0; }
.quick-grid a:hover { background: var(--brand-50); }
.quick-grid b { display: block; font-size: .95rem; font-weight: 650; }
.quick-grid small { color: var(--muted); font-size: .8rem; }
@media (max-width: 960px) { .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .quick-grid a:nth-child(3) { border-right: 0; } .quick-grid a:nth-child(-n+3) { border-bottom: 1px solid var(--line-2); } }
@media (max-width: 560px) { .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quick-grid a { border-right: 0 !important; border-bottom: 1px solid var(--line-2); padding: 16px; } .quick-grid a:nth-child(odd) { border-right: 1px solid var(--line-2) !important; } }

/* ---------- Components ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
    border: 0; border-radius: 12px; background: var(--brand); color: #fff; font: inherit; font-weight: 650; font-size: .95rem;
    cursor: pointer; white-space: nowrap; transition: background .15s, box-shadow .15s, transform .05s;
    box-shadow: 0 1px 2px rgba(11, 19, 36, .1), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn:hover { background: var(--brand-600); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .85rem; border-radius: 10px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: var(--accent-600); color: var(--navy); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--bg); color: var(--brand); border-color: var(--brand-100); }
.btn-block { width: 100%; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: .75rem; font-weight: 650; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.pill-open { background: var(--green-50); color: var(--green); }
.pill-warn { background: var(--amber-50); color: var(--amber); }
.pill-closed { background: #f1f3f7; color: #5b6576; }
.pill-neutral { background: var(--brand-50); color: var(--brand-600); }
.pill-new { background: var(--accent-50); color: var(--accent-600); }
.pill-new::before { display: none; }

.avatar { --h: 222; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 750; font-size: .85rem; letter-spacing: -.01em;
    color: hsl(var(--h) 65% 38%); background: hsl(var(--h) 80% 95%); border: 1px solid hsl(var(--h) 60% 88%); }
.avatar-sm { width: 36px; height: 36px; border-radius: 10px; font-size: .72rem; }
.avatar-lg { width: 64px; height: 64px; border-radius: 16px; font-size: 1.1rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); }
.box-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin: 0 0 14px; }
.box-title .ico { color: var(--brand); }
.side-link { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line-2); color: var(--ink); font-size: .9rem; line-height: 1.4; font-weight: 550; }
.side-link:first-of-type { border-top: 0; padding-top: 0; }
.side-link:hover { color: var(--brand); }
.side-link small { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; margin-top: 3px; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; margin: 0 0 20px; font-size: .925rem; }
.notice .ico { margin-top: 2px; }
.notice-grey { background: #f3f5f9; border: 1px solid var(--line); color: var(--ink-2); }
.notice-amber { background: var(--amber-50); border: 1px solid #fde3b0; color: #7c3d06; }
.notice-green { background: var(--green-50); border: 1px solid #b7ebd3; color: #065f46; }
.notice-red { background: var(--red-50); border: 1px solid #f7c6c6; color: #7f1d1d; display: block; }

/* Tile grid (categories / sectors) */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tile:hover { border-color: var(--brand-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.tile-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; transition: background .15s, color .15s; }
.tile:hover .tile-ico { background: var(--brand); color: #fff; }
.tile b { display: block; font-weight: 650; font-size: .95rem; line-height: 1.3; }
.tile small { color: var(--muted); font-size: .8rem; }
.tile .chev { margin-left: auto; color: var(--muted-2); }

/* Post cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); box-shadow: var(--shadow-xs); transition: box-shadow .15s, transform .15s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.post-card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--brand-50), #f5f3ff); overflow: hidden; display: grid; place-items: center; color: var(--brand); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.02rem; line-height: 1.4; margin: 0 0 8px; }
.post-card:hover h2, .post-card:hover h3 { color: var(--brand); }
.post-card p { color: var(--muted); font-size: .9rem; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .meta { margin-top: auto; display: flex; gap: 14px; font-size: .8rem; color: var(--muted); }
.post-card .meta span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Job list (rows) ---------- */
.job-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.job-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 118px 112px; gap: 18px; align-items: center; padding: 18px 22px; border-top: 1px solid var(--line-2); color: var(--ink); transition: background .12s; position: relative; }
.job-row:first-child { border-top: 0; }
.job-row:hover { background: #fafbff; color: var(--ink); }
.job-row:hover .job-title { color: var(--brand); }
.job-title { font-weight: 650; font-size: 1rem; line-height: 1.35; margin: 0 0 4px; letter-spacing: -.01em; }
.job-title a { color: inherit; }
.job-title a::after { content: ""; position: absolute; inset: 0; }
.job-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .825rem; color: var(--muted); }
.job-sub span { display: inline-flex; align-items: center; gap: 5px; }
.job-col { font-size: .85rem; }
.job-col.start { display: none; }
.job-list.wide .job-row { grid-template-columns: auto minmax(0, 1fr) 130px 130px 120px; }
.job-list.wide .job-col.start { display: block; }
.job-row > .pill { justify-self: end; }
.job-col small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.job-col b { font-weight: 650; }
.job-row.is-closed .job-title { color: var(--ink-2); }
.job-row .go { color: var(--muted-2); }
.job-row:hover .go { color: var(--brand); }
.grid-ad { padding: 8px 22px; border-top: 1px solid var(--line-2); }
@media (max-width: 860px) {
    /* ".job-list.wide" repeats the selectors so these phone rules beat the wide desktop layout */
    .job-row, .job-list.wide .job-row { grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; padding: 16px; }
    .job-row .job-col, .job-list.wide .job-row .job-col { grid-column: 2; display: none; }
    .job-row .job-col.last, .job-list.wide .job-row .job-col.last { display: block; }
    .job-row .job-col.last small { display: inline; margin-right: 6px; }
    .job-row .job-col small .hi { display: inline; margin: 0 0 0 4px; }
    .job-row .go { display: none; }
    .job-row .avatar { align-self: start; }
    .job-row > .pill, .job-list.wide .job-row > .pill { grid-column: 2; justify-self: start; }
}

/* ---------- Page headers ---------- */
.page-hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding: 28px 0 32px; margin-bottom: 36px; }
.page-hero h1 { margin: 6px 0 10px; }
.page-hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 720px; margin: 0; }
.page-hero .tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.seg { display: inline-flex; padding: 4px; background: #eef1f7; border-radius: 12px; gap: 2px; }
.seg a { padding: 7px 14px; border-radius: 9px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.seg a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.count-badge { font-size: .85rem; color: var(--muted); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .825rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .ico { color: var(--muted-2); }
.breadcrumbs [aria-current] { color: var(--ink-2); font-weight: 500; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Job detail ---------- */
.job-hero { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0 0; margin-bottom: 36px; }
.job-hero-top { display: flex; gap: 20px; align-items: flex-start; margin: 18px 0 24px; }
.job-hero h1 { font-size: clamp(1.55rem, 3vw, 2.2rem); margin: 0 0 8px; }
.job-hero .lead { color: var(--ink-2); font-size: 1.05rem; margin: 0 0 12px; }
.job-hero .meta-line { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .85rem; color: var(--muted); }
.job-hero .meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 18px 20px 20px; border-left: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact .ico { color: var(--brand); margin-top: 2px; }
.fact small { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.fact b { display: block; font-size: 1.02rem; font-weight: 700; margin-top: 2px; line-height: 1.3; }
.fact.hl b { color: var(--red); }
@media (max-width: 760px) {
    .facts { grid-template-columns: 1fr 1fr; }
    .fact { padding: 14px 12px; border-top: 1px solid var(--line); }
    .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
    .fact:nth-child(-n+2) { border-top: 0; }
    .job-hero-top .avatar-lg { display: none; }
}

.action-card { padding: 22px; }
.action-card .btn { margin-bottom: 10px; }
.action-card .deadline { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: .875rem; margin-bottom: 16px; }
.action-card .deadline b { display: block; font-size: 1.05rem; }
.share { display: flex; gap: 8px; margin-top: 6px; }
.share a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 10px; font-size: .85rem; font-weight: 600; border: 1px solid var(--line); color: var(--ink-2); }
.share a:hover { border-color: var(--brand-100); color: var(--brand); background: var(--brand-50); }

.toc { padding: 20px 22px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li a { display: flex; gap: 10px; padding: 7px 0; color: var(--ink-2); font-size: .9rem; font-weight: 500; }
.toc li a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--muted-2); font-variant-numeric: tabular-nums; font-size: .8rem; padding-top: 1px; }
.toc li a:hover { color: var(--brand); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; overflow: hidden; box-shadow: var(--shadow-xs); }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfcff, #fff); }
.panel-head h2 { font-size: 1.08rem; margin: 0; }
.panel-num { width: 28px; height: 28px; border-radius: 8px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-size: .8rem; font-weight: 750; flex: none; }
.panel-body { padding: 22px; }
.kv { width: 100%; border-collapse: collapse; font-size: .95rem; }
.kv th, .kv td { text-align: left; vertical-align: top; padding: 14px 22px; border-top: 1px solid var(--line-2); }
.kv tr:first-child th, .kv tr:first-child td { border-top: 0; }
.kv th { width: 34%; color: var(--muted); font-weight: 600; font-size: .875rem; }
.kv td { color: var(--ink); }
.kv td a.link-out { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
@media (max-width: 560px) { .kv th, .kv td { display: block; width: 100%; padding: 4px 18px; border: 0; } .kv th { padding-top: 14px; border-top: 1px solid var(--line-2); } .kv tr:first-child th { border-top: 0; } .kv td { padding-bottom: 14px; } }

/* ---------- Article / prose ---------- */
.article-head { padding: 28px 0 8px; }
.article-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 16px 0 14px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: .875rem; }
.byline span { display: inline-flex; align-items: center; gap: 6px; }
.byline .author { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.featured { border-radius: var(--radius-lg); margin: 24px 0; width: 100%; box-shadow: var(--shadow-sm); }

.prose { font-size: 1.04rem; line-height: 1.8; color: #1f2a3d; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.5rem; margin: 1.8em 0 .6em; padding-top: .2em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--brand); }
.prose a { text-decoration: underline; text-decoration-color: var(--ring); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose img { border-radius: 12px; margin: 1.4em 0; }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--brand); background: var(--brand-50); border-radius: 0 12px 12px 0; }
.prose iframe { max-width: 100%; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1.4em 0; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.prose thead th, .prose tr:first-child th { background: #f7f9fd; color: var(--ink); font-weight: 650; }
.prose tr:last-child td { border-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
/* Leftover page-builder wrappers from WordPress */
.prose .e-con, .prose .e-con-inner, .prose .elementor-element { display: block; max-width: 100%; }
.prose section { margin: 0; padding: 0 !important; background: none !important; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-xs); }

.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-weight: 550; }
.related-list a:hover { border-color: var(--brand-100); color: var(--brand); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.input, .field input, .field textarea, .field select, .search-bar input, .search-bar select {
    width: 100%; padding: 12px 14px; border: 1px solid #d5dbe7; border-radius: 12px; font: inherit; font-size: .95rem; font-weight: 400; background: #fff; color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .search-bar input:focus, .search-bar select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-50); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; margin-bottom: 32px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-aside { display: grid; gap: 14px; }
.contact-aside .box { display: flex; gap: 14px; align-items: flex-start; }
@media (max-width: 860px) { .contact-wrap { grid-template-columns: 1fr; } }
.search-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.search-bar input { flex: 1 1 280px; width: auto; }
.search-bar select { flex: 0 1 220px; width: auto; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 32px 0 0; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.pagination a:hover { border-color: var(--brand-100); color: var(--brand); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }

.ad-slot { margin: 28px 0; min-height: 100px; text-align: center; }
.ad-slot::before { content: "Advertisement"; display: block; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 36px 40px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: radial-gradient(600px 240px at 100% 0%, var(--glow), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-2)); }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #c3cdea; margin: 0; max-width: 560px; }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-grid .box { display: flex; gap: 16px; align-items: flex-start; }
.trust-grid h3 { margin: 0 0 4px; font-size: 1rem; }
.trust-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }

.sitemap-cols { display: grid; gap: 28px; }
.link-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.link-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: .925rem; }
@media (max-width: 640px) { .link-list { columns: 1; } }

.empty { text-align: center; padding: 56px 20px; }
.empty .tile-ico { margin: 0 auto 16px; width: 64px; height: 64px; border-radius: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9b6d8; font-size: .9rem; }
.footer-top { padding: 56px 0 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h3 { color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 10px; }
.site-footer a { color: #a9b6d8; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand-name b { color: var(--accent-light); }
.site-footer .brand-tag { color: #8494bd; }
.footer-about { max-width: 340px; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #dbe4ff; }
.footer-social a:hover { background: rgba(255, 255, 255, .14); }
.footer-disclaimer { border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0; font-size: .8rem; color: #8494bd; line-height: 1.6; }
.footer-disclaimer strong { color: #c7d2fe; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: #8494bd; }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 20px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .topbar, .site-footer, .side-col, .ad-slot, .share { display: none !important; } body { background: #fff; } }

/* ---------- Hindi labels (bilingual mode) ---------- */
.hi { font-family: "Noto Sans Devanagari", "Nirmala UI", "Mangal", var(--font); font-weight: 500; color: var(--muted); font-size: .82em; letter-spacing: 0; margin-left: 4px; }
h1 .hi, h2 .hi, .section-head h2 .hi, .panel-head h2 .hi { display: block; margin: 6px 0 0; font-size: .58em; font-weight: 600; color: var(--muted); }
.box-title .hi { margin-left: 6px; }
.btn .hi { color: inherit; opacity: .85; }
.fact small .hi, .job-col small .hi { display: block; margin: 1px 0 0; text-transform: none; font-size: .95em; letter-spacing: 0; }

/* ---------- Filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.filter-bar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font: inherit; font-size: .875rem; color: var(--ink-2); }
.filter-bar label.chk { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--ink-2); padding: 8px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.filter-bar .reset { font-size: .85rem; font-weight: 600; }

/* ---------- Updates (admit card / answer key / result) ---------- */
.upd-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .upd-cols { grid-template-columns: minmax(0, 1fr); } }
.upd-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; }
.upd-col-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.upd-col-head .sub-ico { width: 30px; height: 30px; }
.upd-col ul { list-style: none; margin: 0; padding: 4px 18px; flex: 1; }
.upd-col li { padding: 10px 0; border-top: 1px solid var(--line-2); font-size: .9rem; line-height: 1.4; }
.upd-col li:first-child { border-top: 0; }
.upd-col li a { color: var(--ink); font-weight: 550; }
.upd-col li a:hover { color: var(--brand); }
.upd-col li small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.upd-col .foot { padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg); font-size: .85rem; }
.upd-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 22px; border-top: 1px solid var(--line-2); }
.upd-row:first-child { border-top: 0; }
.upd-row h3 { font-size: .98rem; margin: 0 0 3px; }
.upd-row h3 a { color: var(--ink); }
.upd-row h3 a:hover { color: var(--brand); }
.upd-row .sub { font-size: .82rem; color: var(--muted); }
@media (max-width: 640px) { .upd-row { grid-template-columns: auto minmax(0, 1fr); } .upd-row .btn { grid-column: 2; justify-self: start; } }

.timeline { list-style: none; margin: 0; padding: 6px 22px 10px; }
.timeline li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); }
.timeline li:first-child { border-top: 0; }
.timeline .t-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.timeline b { display: block; font-size: .95rem; }
.timeline small { color: var(--muted); font-size: .8rem; }
@media (max-width: 560px) { .timeline li { grid-template-columns: auto minmax(0, 1fr); } .timeline .btn { grid-column: 2; justify-self: start; } }

/* ---------- States ---------- */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.state-tile { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); box-shadow: var(--shadow-xs); transition: border-color .15s, box-shadow .15s; }
.state-tile:hover { border-color: var(--brand-100); box-shadow: var(--shadow); color: var(--ink); }
.state-tile b { display: block; font-size: .92rem; font-weight: 650; line-height: 1.25; }
.state-tile small { color: var(--muted); font-size: .76rem; font-family: "Noto Sans Devanagari", "Nirmala UI", var(--font); }
.state-tile .n { flex: none; min-width: 34px; height: 26px; padding: 0 8px; border-radius: 99px; background: var(--brand-50); color: var(--brand-600); font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.state-tile.empty-state { opacity: .55; }
.state-tile.featured { background: linear-gradient(135deg, var(--brand-50), #fff); border-color: var(--brand-100); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line-2); }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 22px; font-weight: 650; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 22px 18px; color: var(--ink-2); }

/* ---------- Join channel card ---------- */
.join-card { background: linear-gradient(135deg, #0b3d2e, #0f5c45); color: #e7fff6; border: 0; }
.join-card .box-title { color: #fff; }
.join-card .box-title .ico { color: #6ee7b7; }
.join-card p { color: #c7f0e0; font-size: .875rem; margin: 0 0 14px; }
.join-card .btn { background: #fff; color: #0b3d2e; width: 100%; margin-top: 8px; }
.join-card .btn:hover { background: #e7fff6; color: #0b3d2e; }

/* ==========================================================================
   Job page v2: hero, "at a glance" card, dates stepper, readable details
   ========================================================================== */
.jp-hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding: 24px 0 92px; border-bottom: 1px solid var(--line); }
.jp-head { display: flex; gap: 22px; align-items: flex-start; margin-top: 18px; }
.jp-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 10px 0 8px; max-width: 900px; }
.jp-head .lead { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 10px; }
.jp-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip-sm { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: .75rem; font-weight: 600; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.chip-sm:hover { border-color: var(--brand-100); color: var(--brand); }
.jp-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: var(--muted); margin: 0; }
.jp-meta span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) { .jp-head .avatar-lg { display: none; } .jp-hero { padding-bottom: 72px; } }

/* Summary card overlapping the hero */
.glance { display: grid; grid-template-columns: minmax(0, 1fr) 340px; margin-top: -64px; position: relative; z-index: 2; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.glance-main { padding: 24px 26px 26px; }
.glance-title { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 0 0 18px; }
.glance-title .ico { color: var(--accent); }
.glance-title .hi { display: inline; margin: 0 0 0 4px; font-size: .8em; }
.glance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.g-tile { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-2); min-width: 0; }
.g-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow-xs); flex: none; }
.g-tile small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.g-tile b { display: block; font-size: .98rem; font-weight: 700; line-height: 1.35; margin-top: 3px; overflow-wrap: anywhere; color: var(--ink); }
.g-more { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 600; }

.glance-side { position: relative; color: #fff; padding: 24px; display: flex; flex-direction: column; gap: 16px;
    background: radial-gradient(400px 220px at 100% 0%, var(--glow), transparent 70%), linear-gradient(160deg, var(--navy), var(--navy-2)); }
.countdown b { display: block; font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: #fff; }
.countdown b.small-b { font-size: 1.5rem; letter-spacing: -.02em; }
.countdown span { display: block; margin-top: 8px; color: #c7d0ea; font-size: .9rem; }
.glance-side.is-urgent .countdown b { color: var(--accent-light); }
.glance-side.is-closed { background: linear-gradient(160deg, #2b3445, #3b4559); }
.glance-side.is-closed .countdown b { font-size: 2.2rem; color: #e5e7eb; }
.window .bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.window .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-light), var(--accent)); }
.window-labels { display: flex; justify-content: space-between; font-size: .75rem; color: #aab4d4; margin-top: 6px; }
.glance-cta { display: grid; gap: 10px; }
.glance-cta .btn { margin: 0; }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .2); box-shadow: none; }
.btn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.glance-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8rem; color: #aab4d4; margin-top: auto; padding-top: 4px; }
.glance-share a { display: inline-flex; align-items: center; gap: 5px; color: #e0e7ff; padding: 6px 10px; border-radius: 9px; background: rgba(255, 255, 255, .08); }
.glance-share a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
@media (max-width: 900px) { .glance { grid-template-columns: minmax(0, 1fr); } .glance-side { order: -1; } }
@media (max-width: 480px) { .glance-main { padding: 18px; } .glance-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .g-tile { flex-direction: column; gap: 8px; padding: 12px; } .g-tile b { font-size: .9rem; } }

/* Important dates stepper */
.steps-card { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 26px 24px; box-shadow: var(--shadow-xs); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.step { position: relative; text-align: center; padding: 0 6px; }
.step::before { content: ""; position: absolute; top: 17px; left: -50%; right: 50%; height: 3px; background: var(--line); z-index: 0; }
.step:first-child::before { display: none; }
.step.done::before { background: var(--brand); }
.step.next::before { background: linear-gradient(90deg, var(--brand), var(--line)); }
.step .dot { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; margin: 0 auto 10px; background: #fff; border: 2px solid var(--line); color: var(--muted-2); }
.step.done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step.next .dot { border-color: var(--accent); color: var(--accent-600); box-shadow: 0 0 0 5px var(--accent-50); }
.step b { display: block; font-size: .85rem; font-weight: 700; }
.step small { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.step.pending b { color: var(--muted); }
@media (max-width: 700px) {
    .steps-card { padding: 18px; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .step { display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; text-align: left; padding: 0 0 16px; }
    .step::before { top: -16px; left: 17px; right: auto; width: 3px; height: 32px; }
    .step .dot { grid-row: span 2; margin: 0; }
    .step b, .step small { align-self: center; }
}

.jp-layout { margin-top: 28px; }
.panel-highlight { border-color: #b7ebd3; box-shadow: 0 0 0 4px var(--green-50); }
.prose-lg { font-size: 1.06rem; line-height: 1.85; }
.prose-lg p { max-width: 72ch; }

/* Readable key / value details */
.kv2 { margin: 0; padding: 4px 22px; }
.kv2-row { display: grid; grid-template-columns: 32% minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.kv2-row:first-child { border-top: 0; }
.kv2 dt { font-weight: 650; color: var(--ink-2); font-size: .92rem; }
.kv2 dd { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.7; overflow-wrap: anywhere; }
.kv-lead { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.kv-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.kv-list li { position: relative; padding-left: 22px; }
.kv-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 99px; background: var(--brand-100); box-shadow: inset 0 0 0 2px var(--brand); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); font-weight: 650; font-size: .9rem; }
.link-btn:hover { background: var(--brand-100); color: var(--brand-700); }
@media (max-width: 640px) { .kv2 { padding: 2px 18px; } .kv2-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; } .kv2 dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } }

/* Sticky bottom action bar (phones) */
.mobile-bar { display: none; }
@media (max-width: 1000px) {
    .mobile-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11, 19, 36, .08); }
    .mobile-bar-info { flex: 1; min-width: 0; }
    .mobile-bar-info small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
    .mobile-bar-info b { font-size: .98rem; }
    .mobile-bar .btn { height: 44px; }
    body:has(.mobile-bar) .site-footer { padding-bottom: 72px; }
}

/* Filters on phones: tidy two-column grid */
@media (max-width: 640px) {
    .filter-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .filter-bar .seg { grid-column: 1 / -1; justify-self: start; }
    .filter-bar select { width: 100%; min-width: 0; }
    .filter-bar select[name="state"] { grid-column: 1 / -1; }
    .filter-bar label.chk { justify-content: center; }
    .filter-bar .count-badge, .filter-bar .reset { align-self: center; }
}
