/* ==========================================================================
   GovtSarkariJobs — Public Portal Stylesheet
   Mobile-first. Pure CSS, no framework.

   1. Tokens & tones        8. Listing pages (hero, filters, job cards)
   2. Base & utilities      9. Sidebar widgets
   3. Header, nav, drawer  10. Job detail page
   4. Search overlay       11. Blog, articles & custom pages
   5. Ticker               12. Footer & mobile bottom nav
   6. Badges & buttons     13. Ads & pagination
   7. Home page            14. Motion & print
   ========================================================================== */

/* 1. Tokens & tones ------------------------------------------------------- */
:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --line-2: #f1f5f9;
  --bg: #f3f5f9;
  --card: #ffffff;

  --navy: #0e1a33;
  --navy-2: #172a4f;
  --brand: #b91c1c;
  --brand-2: #dc2626;
  --brand-50: #fef2f2;
  --link: #1d4ed8;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 6px 16px -8px rgba(15, 23, 42, .12);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, .35);

  --header-h: 56px;
  --bottom-nav-h: 62px;
  --gutter: 16px;

  /* default tone = job (blue) */
  --tone: #1d4ed8;
  --tone-bg: #eff6ff;
  --tone-line: #bfdbfe;
}

@media (min-width: 900px) {
  :root { --header-h: 68px; --gutter: 24px; }
}

/* Colour language: every update type always uses the same colour */
.tone-job,        .card-accent-job        { --tone: #1d4ed8; --tone-bg: #eff6ff; --tone-line: #bfdbfe; }
.tone-admit,      .card-accent-admit      { --tone: #c2410c; --tone-bg: #fff7ed; --tone-line: #fed7aa; }
.tone-result,     .card-accent-result     { --tone: #15803d; --tone-bg: #f0fdf4; --tone-line: #bbf7d0; }
.tone-answer,     .card-accent-key        { --tone: #7e22ce; --tone-bg: #faf5ff; --tone-line: #e9d5ff; }
.tone-syllabus,   .card-accent-syllabus   { --tone: #4338ca; --tone-bg: #eef2ff; --tone-line: #c7d2fe; }
.tone-admission,  .card-accent-admission  { --tone: #0f766e; --tone-bg: #f0fdfa; --tone-line: #99f6e4; }
.tone-document,   .card-accent-document   { --tone: #0369a1; --tone-bg: #f0f9ff; --tone-line: #bae6fd; }
.tone-outsourcing,.card-accent-outsource  { --tone: #be123c; --tone-bg: #fff1f2; --tone-line: #fecdd3; }
.tone-iti,        .card-accent-iti        { --tone: #b45309; --tone-bg: #fffbeb; --tone-line: #fde68a; }
.tone-neutral                             { --tone: #475569; --tone-bg: #f8fafc; --tone-line: #e2e8f0; }

/* 2. Base & utilities ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(185, 28, 28, .12);
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
}

body.has-action-bar { padding-bottom: calc(var(--bottom-nav-h) + 68px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.has-action-bar { padding-bottom: 0; } }

body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 4px;
}

.pi { flex-shrink: 0; display: inline-block; vertical-align: middle; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  background: #fff;
  color: var(--ink);
  padding: .6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 8px; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.page-main { padding-top: 16px; padding-bottom: 32px; }
@media (min-width: 900px) { .page-main { padding-top: 24px; padding-bottom: 48px; } }

/* Horizontal scroller with edge fade (used by chips, nav strip, tabs) */
.h-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { flex-shrink: 0; scroll-snap-align: start; }

.fade-edge {
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: .8125rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--ink-2); font-weight: 600; }
.breadcrumb .sep { color: var(--faint); }
.breadcrumb .current {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60vw;
}

/* Generic card */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* Section heading row */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 12px;
}
.section-head h2 {
  font-size: 1.125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-head h2 .pi { color: var(--brand); }
.section-head .more {
  font-size: .875rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
}
@media (min-width: 900px) {
  .section-head { margin: 36px 0 14px; }
  .section-head h2 { font-size: 1.3rem; }
}

/* 3. Header, nav, drawer -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-bottom: 3px solid var(--brand);
  color: #fff;
}

.site-header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-brand { display: flex; align-items: center; margin-right: auto; min-width: 0; }
.site-logo-img { height: 34px; width: auto; }
@media (min-width: 900px) { .site-logo-img { height: 44px; } }

.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  flex-shrink: 0;
}
.icon-btn:hover { background: rgba(255, 255, 255, .16); }
.icon-btn.on-light { background: var(--line-2); color: var(--ink); }
.icon-btn.on-light:hover { background: var(--line); }

.header-search-form {
  display: none;
  position: relative;
  flex: 0 1 460px;
}
.header-search-input {
  width: 100%;
  height: 44px;
  padding: 0 48px 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: .9375rem;
  outline: none;
  transition: background .15s, border-color .15s;
}
.header-search-input::placeholder { color: #cbd5e1; }
.header-search-input:focus { background: #fff; color: var(--ink); border-color: #fff; }
.header-search-input:focus::placeholder { color: var(--faint); }
.header-search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-social { display: none; gap: 8px; }
.header-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: .8125rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.header-social .tg { background: #229ed9; }
.header-social .wa { background: #1faa55; }

.header-search-trigger, .header-menu-trigger { display: inline-flex; }

@media (min-width: 900px) {
  .header-search-form { display: block; }
  .header-search-trigger, .header-menu-trigger { display: none; }
  .site-header-inner { gap: 20px; }
}
@media (min-width: 1100px) {
  .header-social { display: flex; }
}

/* Main nav: pill strip on mobile, tab row on desktop */
.main-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-links {
  list-style: none;
  padding: 8px 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--line-2);
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.nav-links a:hover { background: var(--line); }
.nav-links a.active { background: var(--navy); color: #fff; }

@media (min-width: 900px) {
  .nav-links { padding: 0; gap: 2px; }
  .nav-links a {
    height: 48px;
    border-radius: 0;
    background: transparent;
    padding: 0 12px;
    font-size: .875rem;
    border-bottom: 3px solid transparent;
  }
  .nav-links a:hover { background: var(--line-2); }
  .nav-links a.active { background: transparent; color: var(--brand); border-bottom-color: var(--brand); }
}

/* Slide-in drawer (mobile menu) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  width: min(86vw, 340px);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(-102%);
  transition: transform .25s ease;
  box-shadow: var(--shadow-lg);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer.is-open + .drawer-backdrop,
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  background: var(--navy);
  min-height: var(--header-h);
}
.drawer-head img { height: 30px; width: auto; }
.drawer-body { overflow-y: auto; padding: 8px 0 24px; flex: 1; }
.drawer-label {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 16px 16px 6px;
}
.drawer-list { list-style: none; }
.drawer-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  color: var(--ink);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
}
.drawer-list a:hover, .drawer-list a.active { background: var(--brand-50); color: var(--brand); }
.drawer-list .ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tone-bg);
  color: var(--tone);
}
.drawer-social { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 16px; }
.drawer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
}
.drawer-social .tg { background: #229ed9; }
.drawer-social .wa { background: #1faa55; }

/* 4. Search overlay -------------------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: #fff;
  display: none;
  flex-direction: column;
}
.search-overlay.is-open { display: flex; }
.search-overlay-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.search-overlay-form { flex: 1; display: flex; gap: 8px; }
.search-overlay-input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 1rem;
  outline: none;
}
.search-overlay-input:focus { border-color: var(--brand); }
.search-overlay-submit {
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.search-overlay-body { padding: 16px; overflow-y: auto; }
.search-overlay-body h3 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--faint);
  margin: 8px 0 10px;
}
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* 5. Ticker ---------------------------------------------------------------- */
.ticker-wrap {
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.ticker-heading {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: var(--brand);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ticker-content { flex: 1; min-width: 0; overflow: hidden; }
.ticker-marquee {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ticker-marquee::-webkit-scrollbar { display: none; }
.ticker-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 82vw;
  padding: 4px 12px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
}
.ticker-item:hover { border-color: var(--brand); text-decoration: none; }
.ticker-item .t-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-item .t-date { color: var(--muted); font-weight: 500; font-size: .75rem; white-space: nowrap; }
.ticker-dup { display: none; } /* duplicate set only used for the seamless desktop loop */
@media (min-width: 900px) { .ticker-dup { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .ticker-dup { display: none !important; } }

@media (min-width: 900px) {
  .ticker-marquee {
    overflow: visible;
    width: max-content;
    animation: ticker-scroll 60s linear infinite;
  }
  .ticker-marquee:hover { animation-play-state: paused; }
  .ticker-item { max-width: none; }
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 6. Badges & buttons ------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.6;
  white-space: nowrap;
  background: var(--tone-bg);
  color: var(--tone);
  border: 1px solid var(--tone-line);
  text-decoration: none;
}
a.badge:hover { text-decoration: none; filter: brightness(.97); }
.badge-job        { --tone: #1d4ed8; --tone-bg: #eff6ff; --tone-line: #bfdbfe; }
.badge-admit      { --tone: #c2410c; --tone-bg: #fff7ed; --tone-line: #fed7aa; }
.badge-result     { --tone: #15803d; --tone-bg: #f0fdf4; --tone-line: #bbf7d0; }
.badge-answer     { --tone: #7e22ce; --tone-bg: #faf5ff; --tone-line: #e9d5ff; }
.badge-syllabus   { --tone: #4338ca; --tone-bg: #eef2ff; --tone-line: #c7d2fe; }
.badge-admission  { --tone: #0f766e; --tone-bg: #f0fdfa; --tone-line: #99f6e4; }
.badge-document   { --tone: #0369a1; --tone-bg: #f0f9ff; --tone-line: #bae6fd; }
.badge-outsourcing{ --tone: #be123c; --tone-bg: #fff1f2; --tone-line: #fecdd3; }
.badge-tenth-iti  { --tone: #b45309; --tone-bg: #fffbeb; --tone-line: #fde68a; }
.badge-exam       { --tone: #0e7490; --tone-bg: #ecfeff; --tone-line: #a5f3fc; }
.badge-extended   { --tone: #b91c1c; --tone-bg: #fef2f2; --tone-line: #fecaca; }
.badge-neutral    { --tone: #475569; --tone-bg: #f8fafc; --tone-line: #e2e8f0; }
.badge-new        { --tone: #fff; --tone-bg: var(--brand-2); --tone-line: var(--brand-2); }
.badge-open       { --tone: #15803d; --tone-bg: #dcfce7; --tone-line: #bbf7d0; }
.badge-closed     { --tone: #64748b; --tone-bg: #f1f5f9; --tone-line: #e2e8f0; }
.badge-urgent     { --tone: #b91c1c; --tone-bg: #fee2e2; --tone-line: #fecaca; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #991b1b; color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .8125rem; border-radius: 8px; }
.btn-block { width: 100%; }

/* Official outbound link buttons (class names come from RecruitmentLink::btn_class) */
.btn-outbound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
  background: var(--navy-2);
  text-decoration: none;
  white-space: nowrap;
}
.btn-outbound:hover { text-decoration: none; filter: brightness(1.1); color: #fff; }
.btn-apply        { background: #15803d; }
.btn-notification { background: #1d4ed8; }
.btn-admit        { background: #c2410c; }
.btn-result       { background: #15803d; }
.btn-answer       { background: #7e22ce; }
.btn-official     { background: #334155; }
.btn-link-default { background: #0f766e; }

/* Chips (browse-by, topics) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .count { color: var(--faint); font-weight: 600; }
.chip.is-active .count { color: #cbd5e1; }
.chip-strong { border-color: var(--brand); color: var(--brand); font-weight: 700; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
/* On phones, long chip groups become a single swipeable row */
@media (max-width: 767px) {
  .chip-group.swipe-sm {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 4px;
  }
  .chip-group.swipe-sm::-webkit-scrollbar { display: none; }
  .chip-group.swipe-sm > * { flex-shrink: 0; }
}

/* 7. Home page ------------------------------------------------------------- */
.home-hero {
  background: linear-gradient(180deg, var(--navy-2) 0%, #1e3a6e 100%);
  color: #fff;
  padding: 16px 0 20px;
}
.home-hero h1 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.home-hero .sub { color: #cbd5e1; font-size: .8125rem; margin-bottom: 12px; }
@media (min-width: 900px) {
  .home-hero { padding: 28px 0 32px; }
  .home-hero h1 { font-size: 1.625rem; }
  .home-hero .sub { font-size: .9375rem; margin-bottom: 18px; }
}

.hero-search {
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45);
}
.hero-search-field { flex: 1; display: flex; align-items: center; gap: 8px; padding-left: 10px; min-width: 0; color: var(--muted); }
.hero-search-field input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: none;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
}
.hero-search .btn { flex-shrink: 0; }
.hero-search .btn-label { display: none; }
@media (min-width: 480px) { .hero-search .btn-label { display: inline; } }

.hero-filter-toggle {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 600;
}
.hero-filter-toggle[aria-expanded="true"] .pi:last-child { transform: rotate(180deg); }

.hero-filters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}
.js .hero-filters { display: none; }
.js .hero-filters.is-open { display: grid; }
.hero-filters select {
  height: 44px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font-size: .9375rem;
}
@media (min-width: 640px) {
  .hero-filters, .js .hero-filters.is-open { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero-filter-toggle { display: none; }
  .js .hero-filters, .hero-filters { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; }
}

/* Quick-access tiles: the 8 most-used sections, always above the fold */
.quick-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 84px;
  padding: 10px 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--tone); text-decoration: none; transform: translateY(-1px); }
.tile .ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tone-bg);
  color: var(--tone);
}
@media (min-width: 768px) {
  .quick-tiles { grid-template-columns: repeat(8, 1fr); gap: 12px; margin-top: 20px; }
  .tile { font-size: .8125rem; min-height: 96px; }
}

/* Trending strip */
.trending-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.trending-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.trending-row .h-scroll { flex: 1; min-width: 0; }
.trending-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 280px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
}
.trending-chip span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trending-chip:hover { border-color: var(--brand); text-decoration: none; }
.trending-chip .count { color: var(--brand); font-weight: 700; }

/* Board = group of Sarkari boxes. Tabs on phones, columns on larger screens */
.board { margin-top: 16px; }
.board-tabs {
  display: none;
  gap: 6px;
  padding: 4px;
  background: #e8ecf3;
  border-radius: 12px;
  margin-bottom: 10px;
}
.board-tab {
  flex: 1 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.board-tab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.board-tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.board-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }

@media (max-width: 699px) {
  .js .board--primary .board-tabs { display: flex; }
  .js .board--primary .panel:not(.is-active) { display: none; }
}
@media (max-width: 1023px) {
  .js .board--secondary .board-tabs { display: flex; }
  .js .board--secondary .panel:not(.is-active) { display: none; }
}
@media (min-width: 700px) {
  .board--primary .board-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .board--primary .board-grid { grid-template-columns: repeat(4, 1fr); }
  .board--secondary .board-grid { grid-template-columns: repeat(5, 1fr); }
  .board--secondary .panel-list li:nth-child(n+8) { display: none; }
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--tone);
  color: #fff;
}
.panel-head h2 {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-head .count {
  font-size: .6875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, .2);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.panel-list { list-style: none; flex: 1; }
.panel-list li + li { border-top: 1px solid var(--line-2); }
.panel-item {
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
}
.panel-item:hover { background: var(--tone-bg); text-decoration: none; }
.panel-item:hover .item-title { color: var(--tone); }
.item-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
}
.item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
  font-size: .75rem;
  color: var(--muted);
}
.item-meta .org { font-weight: 700; color: var(--ink-2); }
.item-meta .urgent { color: var(--brand); font-weight: 700; }
.panel-empty { padding: 20px 14px; text-align: center; color: var(--faint); font-size: .875rem; }
.panel-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  border-top: 1px solid var(--line);
  background: var(--tone-bg);
  color: var(--tone);
  font-size: .8125rem;
  font-weight: 800;
  text-decoration: none;
}
.panel-foot:hover { text-decoration: none; filter: brightness(.97); }

@media (min-width: 1024px) {
  .item-title { -webkit-line-clamp: 2; }
  .board--secondary .panel-head h2 { font-size: .9375rem; }
}

/* Browse-by blocks */
.browse-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.browse-block { padding: 14px; min-width: 0; overflow: hidden; }
.browse-block h3 {
  font-size: .8125rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}
@media (min-width: 1024px) { .browse-grid { grid-template-columns: repeat(3, 1fr); } }

/* Guide cards */
.guide-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .guide-grid { grid-template-columns: repeat(4, 1fr); } }
.guide-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
}
.guide-card:hover { border-color: var(--brand); text-decoration: none; }
.guide-card .meta { display: flex; justify-content: space-between; gap: 8px; font-size: .75rem; color: var(--muted); margin-bottom: 8px; }
.guide-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.guide-card p { font-size: .8125rem; color: var(--muted); flex: 1; }
.guide-card .go { margin-top: 10px; font-size: .8125rem; font-weight: 700; color: var(--brand); }

/* Alerts CTA band */
.alert-band {
  margin-top: 28px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alert-band h2 { color: #fff; font-size: 1.0625rem; }
.alert-band p { color: #cbd5e1; font-size: .875rem; }
.alert-band .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.alert-band .btn { color: #fff; }
.alert-band .tg { background: #229ed9; }
.alert-band .wa { background: #1faa55; }
@media (min-width: 768px) {
  .alert-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 22px 26px; }
  .alert-band .actions { display: flex; }
}

/* 8. Listing pages ---------------------------------------------------------- */
.portal-layout-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px var(--gutter) 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (min-width: 1024px) {
  .portal-layout-container { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; padding-top: 24px; }
}
.portal-main-feed { min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.portal-hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--tone);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.portal-hero-top { display: flex; flex-direction: column-reverse; gap: 6px; }
.portal-hero-title-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.portal-hero-title { font-size: 1.25rem; font-weight: 800; }
.portal-hero-count {
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tone-bg);
  color: var(--tone);
  border: 1px solid var(--tone-line);
  white-space: nowrap;
}
.portal-hero-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .75rem; color: var(--faint); }
.portal-hero-breadcrumb a { color: var(--muted); font-weight: 600; }
.portal-hero-breadcrumb .current { color: var(--ink-2); }
.portal-hero-desc {
  margin-top: 6px;
  font-size: .8125rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 900px) {
  .portal-hero-card { padding: 18px 22px; }
  .portal-hero-title { font-size: 1.5rem; }
  .portal-hero-desc { -webkit-line-clamp: unset; font-size: .875rem; }
}

/* Filter bar. On phones: search + "Filters" toggle; selects fold away */
.portal-filter-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.filter-input-wrap {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--faint);
}
.filter-input-wrap:focus-within { border-color: var(--tone); background: #fff; }
.filter-input-wrap svg { width: 18px; height: 18px; flex-shrink: 0; }
.filter-input-field {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  font-size: .9375rem;
  color: var(--ink);
}
.filter-select-field {
  flex: 1 1 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: .875rem;
  color: var(--ink-2);
  min-width: 0;
}
.filter-select-field:focus { outline: none; border-color: var(--tone); }
.btn-filter-submit {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--tone);
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.btn-filter-submit:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.btn-filter-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
  background: #fff;
}
.btn-filter-clear:hover { color: var(--brand); border-color: var(--brand); text-decoration: none; }

.filter-toggle-btn {
  display: none;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.filter-toggle-btn .n {
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--tone);
  color: #fff;
  font-size: .6875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

@media (max-width: 767px) {
  .js .portal-filter-card .filter-input-wrap { flex: 1 1 0; }
  .js .portal-filter-card .filter-toggle-btn { display: inline-flex; }
  .js .portal-filter-card:not(.is-open) .filter-select-field,
  .js .portal-filter-card:not(.is-open) .btn-filter-submit { display: none; }
}
@media (min-width: 768px) {
  .portal-filter-card { flex-wrap: nowrap; align-items: center; }
  .filter-input-wrap { flex: 2 1 240px; }
  .filter-select-field { flex: 1 1 150px; }
  .btn-filter-submit { flex: 0 0 auto; }
}

/* Job cards */
.portal-feed-list { display: flex; flex-direction: column; gap: 10px; }
.portal-job-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--tone);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.portal-job-card:hover { box-shadow: var(--shadow); border-color: var(--tone-line); border-left-color: var(--tone); }
.card-content-left { display: flex; gap: 12px; min-width: 0; align-items: flex-start; }
.card-org-mono {
  flex-shrink: 0;
  min-width: 48px;
  max-width: 72px;
  height: 48px;
  padding: 0 6px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tone-bg);
  color: var(--tone);
  border: 1px solid var(--tone-line);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: center;
  line-height: 1.1;
  overflow: hidden;
  word-break: break-all;
}
.card-details-group { min-width: 0; flex: 1; }
.card-job-title {
  display: block;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
/* whole card is tappable */
.card-job-title::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.portal-job-card:hover .card-job-title { color: var(--tone); }
.card-job-title:focus-visible { outline: none; }
.card-job-title:focus-visible::after { outline: 3px solid #f59e0b; outline-offset: 2px; }
.card-meta-chips-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 6px;
  font-size: .75rem;
  color: var(--muted);
}
.card-meta-chips-inline > span:first-child {
  flex-basis: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-weight: 600;
  white-space: nowrap;
}
.card-meta-chip.chip-tone, .card-meta-chip.chip-highlight {
  background: var(--tone-bg);
  color: var(--tone);
  border-color: var(--tone-line);
  font-weight: 700;
}
.card-meta-chip.chip-highlight { --tone: #b91c1c; --tone-bg: #fef2f2; --tone-line: #fecaca; }
.card-content-right { display: flex; justify-content: flex-end; }
.card-action-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--tone-line);
  background: var(--tone-bg);
  color: var(--tone);
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.card-action-btn:hover { background: var(--tone); color: #fff; text-decoration: none; }
@media (min-width: 640px) {
  .portal-job-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 16px; }
  .card-content-left { flex: 1; }
  .card-content-right { flex-shrink: 0; }
  .card-job-title { font-size: 1rem; }
  .card-meta-chips-inline > span:first-child { flex-basis: auto; }
}

.empty-state {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
}
.empty-state > div:first-child { font-size: 2.25rem; margin-bottom: 8px; }
.empty-state h3 { font-size: 1.0625rem; font-weight: 800; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: .875rem; max-width: 440px; margin: 0 auto 16px; }
.empty-state .btn-filter-submit { display: inline-flex; }

.pagination-center { display: flex; justify-content: center; }

/* 9. Sidebar widgets -------------------------------------------------------- */
.public-portal-sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.sidebar-widget-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.widget-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.widget-title { font-size: .9375rem; font-weight: 800; }
.widget-title-group { display: flex; align-items: center; gap: 8px; }
.widget-view-all { font-size: .75rem; font-weight: 700; color: var(--brand); }
.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 0 0 rgba(220, 38, 38, .5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}
.trending-list { display: flex; flex-direction: column; }
.trending-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
  color: var(--ink);
  text-decoration: none;
}
.trending-item:first-child { border-top: 0; padding-top: 0; }
.trending-item:hover { text-decoration: none; }
.trending-item:hover .trending-title { color: var(--brand); }
.trending-org-monogram {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--line-2);
  color: var(--ink-2);
  font-size: .625rem;
  font-weight: 800;
  overflow: hidden;
  text-align: center;
  word-break: break-all;
  line-height: 1.1;
}
.trending-info { min-width: 0; }
.trending-title {
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.trending-meta { display: flex; gap: 8px; margin-top: 2px; font-size: .6875rem; color: var(--muted); }
.trend-vacancies { font-weight: 700; color: var(--brand); }

.community-card { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); border: 0; color: #fff; }
.community-header { display: flex; gap: 10px; margin-bottom: 12px; }
.community-icon { color: #facc15; }
.community-title { color: #fff; font-size: .9375rem; font-weight: 800; }
.community-desc { color: #cbd5e1; font-size: .8125rem; margin-top: 2px; }
.community-buttons { display: grid; gap: 8px; }
.btn-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  border-radius: 10px;
  color: #fff;
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none;
}
.btn-channel:hover { color: #fff; text-decoration: none; filter: brightness(1.08); }
.btn-telegram { background: #229ed9; }
.btn-whatsapp { background: #1faa55; }

.quick-portals-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.portal-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--tone-bg);
  border: 1px solid var(--tone-line);
  color: var(--tone);
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none;
}
.portal-chip:hover { text-decoration: none; background: var(--tone); color: #fff; }

/* 10. Job detail page -------------------------------------------------------- */
.detail-grid-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (min-width: 1024px) {
  .detail-grid-container { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
}
.detail-main-col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.detail-sidebar-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.job-head { padding: 16px; }
.job-head-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.job-head h1 { font-size: 1.25rem; font-weight: 800; line-height: 1.35; }
.job-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 8px;
  font-size: .8125rem;
  color: var(--muted);
}
.job-head-meta span { display: inline-flex; align-items: center; gap: 4px; }
.job-head-meta strong { color: var(--ink-2); }
.job-head-locs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (min-width: 900px) {
  .job-head { padding: 22px 24px; }
  .job-head h1 { font-size: 1.625rem; }
}

/* Key facts */
.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  margin: 14px -16px -16px;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}
.fact { background: #fff; padding: 12px 16px; min-width: 0; }
.fact .k {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.fact .v { margin-top: 2px; font-size: .9375rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.fact .v.danger { color: var(--brand); }
.fact .hint { font-size: .75rem; font-weight: 700; color: var(--brand); }
.fact .hint.ok { color: #15803d; }
.fact .hint.off { color: var(--muted); }
@media (min-width: 900px) {
  .fact-grid { grid-template-columns: repeat(4, 1fr); margin: 18px -24px -22px; }
  .fact { padding: 14px 24px; }
}

.cta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cta-row .btn { flex: 1 1 140px; }

.latest-update-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: #fffbeb;
  border: 1px solid #fde68a;
}
.latest-update-banner .label { font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #92400e; }
.latest-update-banner h2 { font-size: 1rem; font-weight: 800; margin: 4px 0; }
.latest-update-banner p { font-size: .8125rem; color: var(--ink-2); }
.latest-update-banner .btn-outbound { align-self: flex-start; }
@media (min-width: 768px) {
  .latest-update-banner { flex-direction: row; align-items: center; justify-content: space-between; }
  .latest-update-banner .btn-outbound { align-self: center; }
}

/* In-page jump nav */
.jump-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: rgba(243, 245, 249, .96);
  backdrop-filter: blur(6px);
  margin: 0 calc(var(--gutter) * -1);
  padding: 8px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.jump-nav a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .8125rem;
  font-weight: 700;
  text-decoration: none;
}
.jump-nav a:hover { border-color: var(--brand); color: var(--brand); }
@media (min-width: 1024px) {
  .jump-nav { margin: 0; border-radius: var(--radius); border: 1px solid var(--line); }
}

.detail-section { padding: 16px; }
.detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.0625rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.detail-section-title .pi { color: var(--brand); }
@media (min-width: 900px) { .detail-section { padding: 20px 24px; } }

/* Tables: 2-col key/value; stack on narrow screens */
.portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.portal-table th, .portal-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.portal-table th { background: #f8fafc; color: var(--ink-2); font-weight: 700; width: 38%; }
.portal-table td { color: var(--ink); overflow-wrap: anywhere; }
.portal-table .danger { color: var(--brand); font-weight: 800; }
.portal-table .big { font-size: 1rem; }

.info-table-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .info-table-grid { grid-template-columns: 1fr 1fr; } }
.info-block h3 {
  font-size: .8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 10px 12px;
  border-radius: 8px 8px 0 0;
  background: var(--tone-bg);
  color: var(--tone);
  border: 1px solid var(--tone-line);
  border-bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.info-block .portal-table th { width: 44%; font-weight: 600; background: #fff; color: var(--muted); }
.info-block .text-cell { padding: 12px; border: 1px solid var(--line); font-size: .875rem; line-height: 1.6; }
.info-block .text-cell + .text-cell { border-top: 0; }
.info-block .text-cell strong.lbl { display: block; color: var(--tone); margin-bottom: 4px; }
.pre-line { white-space: pre-line; color: var(--ink-2); }

/* Important links: each row is a big tap target */
.important-links-card {
  background: #fff;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  overflow: hidden;
}
.important-links-card .il-head {
  background: var(--brand);
  color: #fff;
  padding: 12px 16px;
}
.important-links-card .il-head h2 { color: #fff; font-size: 1.0625rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.important-links-card .il-head p { color: #fecaca; font-size: .75rem; margin-top: 2px; }
.links-table { width: 100%; border-collapse: collapse; }
.links-table tr + tr td { border-top: 1px solid var(--line); }
.links-table td { padding: 10px 16px; font-size: .9375rem; }
.links-table td:first-child { font-weight: 700; color: var(--ink); }
.links-table td:last-child { text-align: right; width: 1%; white-space: nowrap; }
@media (max-width: 479px) {
  .links-table td { padding: 10px 12px; font-size: .875rem; }
  .links-table .btn-outbound { padding: 0 12px; }
}

.rich-content { font-size: .9375rem; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.rich-content p { margin: 0 0 .75em; }
.rich-content p:last-child { margin-bottom: 0; }
.rich-content ul, .rich-content ol { margin: 0 0 .75em; padding-left: 1.25rem; }
.rich-content li { margin-bottom: .3em; }
.rich-content strong, .rich-content b { color: var(--ink); }
.rich-content a { color: var(--link); text-decoration: underline; }
.rich-content table { width: 100%; border-collapse: collapse; margin: .75em 0; font-size: .875rem; display: block; overflow-x: auto; }
.rich-content table th, .rich-content table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.rich-content table th { background: #f8fafc; }

/* Timeline */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -22px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
}
.timeline-item:first-child .timeline-dot { background: var(--brand); }
.timeline-date { font-size: .75rem; font-weight: 700; color: var(--muted); }
.timeline-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; font-size: .9375rem; font-weight: 700; }
.timeline-desc { margin-top: 4px; font-size: .8125rem; }
.timeline-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: .8125rem; font-weight: 700; }

/* Detail sidebar */
.sidebar-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.sidebar-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.sidebar-box-header a { font-size: .75rem; font-weight: 700; color: var(--brand); }
.sidebar-actions { display: flex; flex-direction: column; gap: 8px; }
.sidebar-actions .btn, .sidebar-actions .btn-outbound { width: 100%; min-height: 44px; }
.sidebar-job-item { display: block; padding: 10px 0; border-top: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.sidebar-job-item:first-of-type { border-top: 0; padding-top: 0; }
.sidebar-job-item:hover { text-decoration: none; }
.sidebar-job-item:hover .sidebar-job-title { color: var(--brand); }
.sidebar-job-title { font-size: .8125rem; font-weight: 600; line-height: 1.4; }
.sidebar-job-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; font-size: .6875rem; color: var(--muted); }
.sidebar-job-meta .org { color: var(--brand); font-weight: 700; }
.link-list { list-style: none; }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  border-top: 1px solid var(--line-2);
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
}
.link-list li:first-child a { border-top: 0; }
.link-list a:hover { color: var(--brand); text-decoration: none; }
.link-list .pi { color: var(--faint); }
.hide-lg { display: block; }
@media (min-width: 1024px) { .hide-lg { display: none !important; } }
.show-lg { display: none; }
.show-md { display: none !important; }
@media (min-width: 900px) { .show-md { display: flex !important; } }
@media (min-width: 1024px) { .show-lg { display: block; } }

/* Sticky action bar (phones, job detail) */
.mobile-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  z-index: 55;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 16px -8px rgba(15, 23, 42, .18);
}
.mobile-action-bar > * { flex: 1; min-height: 46px; }
@media (min-width: 900px) { .mobile-action-bar { display: none; } }

.highlight-section { animation: flash 2.2s ease; }
@keyframes flash {
  0%, 40% { box-shadow: 0 0 0 4px rgba(245, 158, 11, .6); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* 11. Blog, articles & custom pages ------------------------------------------ */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; } }
.article-aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-bottom: 16px;
}
.blog-hero .eyebrow { font-size: .75rem; font-weight: 700; color: #93c5fd; margin-bottom: 6px; }
.blog-hero h1 { color: #fff; font-size: 1.375rem; font-weight: 800; margin-bottom: 6px; }
.blog-hero p { color: #cbd5e1; font-size: .875rem; margin-bottom: 14px; max-width: 720px; }
.blog-search { display: flex; gap: 8px; max-width: 560px; }
.blog-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  border-radius: 10px;
  border: 0;
  padding: 0 14px;
  font-size: .9375rem;
  outline: none;
}
@media (min-width: 900px) {
  .blog-hero { padding: 32px 32px; }
  .blog-hero h1 { font-size: 2rem; }
  .blog-hero p { font-size: 1rem; }
}

.featured-post { display: grid; grid-template-columns: 1fr; overflow: hidden; margin-bottom: 20px; }
.featured-post .media { position: relative; background: var(--line-2); aspect-ratio: 16 / 9; }
.featured-post .media img { width: 100%; height: 100%; object-fit: cover; }
.featured-post .media .badge { position: absolute; top: 12px; left: 12px; }
.featured-post .body { padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.featured-post h2 { font-size: 1.25rem; font-weight: 800; }
.featured-post h2 a { color: var(--ink); }
.featured-post p { color: var(--muted); font-size: .9375rem; }
@media (min-width: 900px) {
  .featured-post { grid-template-columns: 1.1fr 1fr; }
  .featured-post .media { aspect-ratio: auto; min-height: 280px; }
  .featured-post .body { padding: 28px; }
  .featured-post h2 { font-size: 1.5rem; }
}

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .75rem; color: var(--muted); }

.post-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
.post-card { display: flex; flex-direction: column; overflow: hidden; }
.post-card .media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; }
.post-card .media .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.post-card .media .badge { position: absolute; top: 10px; left: 10px; }
.post-card .body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 1rem; font-weight: 700; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand); text-decoration: none; }
.post-card p { font-size: .8125rem; color: var(--muted); flex: 1; }
.post-card .foot { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: .8125rem; }
.post-card .foot a { font-weight: 700; color: var(--brand); }

.article-card { padding: 18px 16px; }
@media (min-width: 900px) { .article-card { padding: 32px 36px; } }
.article-card h1 { font-size: 1.5rem; font-weight: 800; line-height: 1.3; margin: 10px 0 14px; }
@media (min-width: 900px) { .article-card h1 { font-size: 2rem; } }
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 20px;
}
.byline .who { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: .8125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.byline .name { font-weight: 700; font-size: .875rem; }
.byline .when { font-size: .75rem; color: var(--muted); }
.share-row { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--muted); font-weight: 600; }
.share-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
}
.share-btn:hover { text-decoration: none; color: #fff; filter: brightness(1.1); }
.share-btn.wa { background: #1faa55; }
.share-btn.tg { background: #229ed9; }
.share-btn.x { background: #0f172a; }

.article-figure { margin: 0 0 20px; }
.article-figure img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 10px; }
.article-figure figcaption { font-size: .75rem; color: var(--muted); text-align: center; margin-top: 6px; }
.lead {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-2);
  padding: 14px 16px;
  background: #f8fafc;
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}
.linked-job {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  margin-bottom: 20px;
}
.linked-job .eyebrow { font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #1e40af; }
.linked-job .t { font-weight: 800; }
.linked-job .s { font-size: .8125rem; color: var(--ink-2); }
@media (min-width: 768px) { .linked-job { flex-direction: row; align-items: center; justify-content: space-between; } }

.article-content-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #1e293b;
  max-width: 72ch;
  overflow-wrap: anywhere;
}
.article-content-body h2 { font-size: 1.375rem; font-weight: 800; margin: 1.6em 0 .6em; }
.article-content-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.4em 0 .5em; }
.article-content-body h4 { font-size: 1rem; font-weight: 700; margin: 1.2em 0 .4em; }
.article-content-body p { margin: 0 0 1em; }
.article-content-body ul, .article-content-body ol { margin: 0 0 1em; padding-left: 1.4rem; }
.article-content-body li { margin-bottom: .4em; }
.article-content-body img { border-radius: 8px; margin: 1em 0; }
.article-content-body blockquote {
  margin: 1.2em 0;
  padding: 12px 16px;
  border-left: 4px solid var(--brand);
  background: #f8fafc;
  color: var(--ink-2);
  border-radius: 0 8px 8px 0;
}
.article-content-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .9375rem; display: block; overflow-x: auto; }
.article-content-body table th, .article-content-body table td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-content-body table th { background: #f8fafc; font-weight: 700; }
.article-content-body table tr:nth-child(even) td { background: #fbfcfe; }
.article-content-body a { color: var(--link); text-decoration: underline; }
.article-content-body .callout-tip, .article-content-body .callout-warning {
  padding: 12px 16px;
  border-radius: 8px;
  margin: 1.2em 0;
}
.article-content-body .callout-tip { background: #f0fdf4; border: 1px solid #bbf7d0; }
.article-content-body .callout-warning { background: #fffbeb; border: 1px solid #fde68a; }

.faq-section { margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--line); }
.faq-section h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 14px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: .9375rem;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pi { transition: transform .2s; color: var(--muted); }
.faq-item[open] summary .pi { transform: rotate(180deg); }
.faq-item .ans { padding: 0 16px 14px; font-size: .9375rem; color: var(--ink-2); line-height: 1.65; }

.tag-row { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag-row .lbl { font-size: .75rem; font-weight: 700; color: var(--muted); margin-right: 4px; }
.tag { display: inline-block; background: var(--line-2); color: var(--ink-2); font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }

.side-card { padding: 16px; }
.side-card h3 { font-size: .9375rem; font-weight: 800; margin-bottom: 8px; }
.side-card.dark { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); border: 0; color: #fff; }
.side-card.dark h3 { color: #fff; }
.side-card.dark p { color: #cbd5e1; font-size: .8125rem; margin-bottom: 12px; }
.side-card.dark .eyebrow { font-size: .6875rem; font-weight: 800; color: #93c5fd; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.side-card .note { font-size: .8125rem; color: var(--muted); line-height: 1.55; }
.recent-post { display: block; padding: 10px 0; border-top: 1px solid var(--line-2); color: var(--ink); font-size: .8125rem; font-weight: 600; line-height: 1.4; }
.recent-post:first-of-type { border-top: 0; padding-top: 0; }
.recent-post .d { display: block; font-size: .6875rem; color: var(--faint); font-weight: 500; margin-bottom: 2px; }
.recent-post:hover { color: var(--brand); text-decoration: none; }

/* 12. Footer & mobile bottom nav ------------------------------------------------ */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  margin-top: 32px;
  padding: 24px 0 16px;
  font-size: .875rem;
}
.footer-disclaimer {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .8125rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.footer-disclaimer strong { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.footer-about { margin-bottom: 12px; }
.footer-about img { height: 36px; width: auto; margin-bottom: 10px; }
.footer-about p { line-height: 1.6; }
.footer-col { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-col summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
}
.footer-col summary::-webkit-details-marker { display: none; }
.footer-col summary .pi { transition: transform .2s; }
.footer-col[open] summary .pi { transform: rotate(180deg); }
.footer-col ul { list-style: none; padding-bottom: 12px; }
.footer-col a {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: #cbd5e1;
  text-decoration: none;
}
.footer-col a:hover { color: #facc15; }
.footer-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 14px;
  margin-top: 8px;
}
.footer-pages a { color: #94a3b8; min-height: 36px; display: inline-flex; align-items: center; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 14px;
  padding-top: 14px;
  text-align: center;
  font-size: .75rem;
  color: #94a3b8;
}
.footer-bottom p + p { margin-top: 4px; }
.footer-bottom a { color: #facc15; }

@media (min-width: 768px) {
  .site-footer { padding: 40px 0 20px; margin-top: 48px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
  .footer-col { border-top: 0; }
  .footer-col summary { pointer-events: none; min-height: 0; margin-bottom: 10px; }
  .footer-col summary .pi { display: none; }
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 58;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  box-shadow: 0 -4px 12px -6px rgba(15, 23, 42, .15);
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 700;
  text-decoration: none;
  position: relative;
}
.mobile-nav-item:hover { text-decoration: none; color: var(--ink); }
.mobile-nav-item svg { width: 22px; height: 22px; }
.mobile-nav-item.active { color: var(--brand); }
.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  width: 32px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--brand);
}
@media (min-width: 900px) { .mobile-bottom-nav { display: none; } }

/* 13. Ads & pagination ------------------------------------------------------------ */
/* Ad slots render nothing until AdSense is switched on in the ad-slot component.
   Reserved min-heights (set inline by the component) prevent layout shift. */
.ad-slot-wrapper {
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}
.ad-label {
  font-size: .625rem;
  letter-spacing: .08em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
  user-select: none;
}
.ad-slot-in-feed { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.ad-slot-before-links { margin: 0; }
.ad-slot-article { margin: 24px 0; }
.ad-slot-sidebar { margin: 0; }
.ad-preview-box {
  width: 100%;
  min-height: 90px;
  background: repeating-linear-gradient(135deg, #f8fafc 0 14px, #f1f5f9 14px 28px);
  border: 1.5px dashed var(--faint);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  color: var(--ink-2);
}
.ad-preview-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  font-size: .6875rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.ad-preview-title { font-size: .8125rem; font-weight: 700; }
.ad-preview-desc { font-size: .6875rem; color: var(--muted); margin-top: 2px; }
.mobile-sticky-ad-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
  z-index: 54;
  background: #fff;
  border-top: 1px solid var(--line);
}
@media (min-width: 900px) { .mobile-sticky-ad-bar { display: none; } }

.pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 8px;
  width: 100%;
}
.pagination-info { font-size: .8125rem; color: var(--muted); }
.pagination-info .font-semibold { font-weight: 700; color: var(--ink); }
.pagination-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.page-item { list-style: none; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: .875rem;
  font-weight: 700;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}
a.page-link:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-item.disabled .page-link { color: #cbd5e1; background: #f8fafc; }
@media (max-width: 479px) {
  /* keep pagination to one row on phones: prev, current, next */
  .pagination-list .page-item:not(.active):not(:first-child):not(:last-child) { display: none; }
}
@media (min-width: 768px) {
  .pagination-wrapper { flex-direction: row; justify-content: space-between; padding: 12px 18px; }
}

/* 14. Motion & print --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker-marquee { overflow-x: auto; width: auto; }
}

@media print {
  .site-header, .main-nav, .ticker-wrap, .mobile-bottom-nav, .mobile-action-bar, .site-footer,
  .detail-sidebar-col, .public-portal-sidebar, .jump-nav, .drawer, .search-overlay { display: none !important; }
  body { background: #fff; padding: 0; }
  .card, .panel { box-shadow: none; }
}
