/* ========================================
   LSPD 2026 — TABS & CONTENT
   ======================================== */

/* ══════════════════════════════════════
   TAB NAV (home page)
══════════════════════════════════════ */
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  animation: fadeUp 0.7s var(--ease-out) 0.7s both;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: 10px;
  color: rgba(255,255,255,0.5);
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s var(--ease-out);
  backdrop-filter: blur(8px);
}

/* Hover shimmer */
.tab-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.tab-btn:hover::after { transform: translateX(100%); }

.tab-btn:hover {
  background: var(--surface-3);
  color: rgba(255,255,255,0.92);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Per-color hover borders */
.tab-btn[data-color="blue"]:hover    { border-color: rgba(37,99,235,0.6);   box-shadow: 0 8px 24px rgba(37,99,235,0.15), 0 0 0 1px rgba(37,99,235,0.2); }
.tab-btn[data-color="gray"]:hover    { border-color: rgba(100,116,139,0.6); box-shadow: 0 8px 24px rgba(100,116,139,0.12); }
.tab-btn[data-color="amber"]:hover   { border-color: rgba(217,119,6,0.6);   box-shadow: 0 8px 24px rgba(217,119,6,0.15),   0 0 0 1px rgba(217,119,6,0.2); }
.tab-btn[data-color="crimson"]:hover { border-color: rgba(153,27,27,0.7);   box-shadow: 0 8px 24px rgba(153,27,27,0.18),   0 0 0 1px rgba(153,27,27,0.25); }
.tab-btn[data-color="azure"]:hover   { border-color: rgba(2,132,199,0.6);   box-shadow: 0 8px 24px rgba(2,132,199,0.15),   0 0 0 1px rgba(2,132,199,0.2); }
.tab-btn[data-color="green"]:hover   { border-color: rgba(34,197,94,0.72);   box-shadow: 0 8px 28px rgba(34,197,94,0.20), 0 0 0 1px rgba(34,197,94,0.28), 0 0 26px rgba(34,197,94,0.10); }

.tab-icon { font-size: 0.95rem; }

/* ══════════════════════════════════════
   TAB PAGES
══════════════════════════════════════ */
.tab-page { padding-bottom: 60px; }

/* ── Tab header ── */
.tab-header {
  padding: 40px 48px 32px;
  position: relative;
  border-bottom: 1px solid var(--rim);
  margin-bottom: 40px;
}

.tab-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 8px;
  line-height: 1;
}

.tab-title-icon { font-size: 1.6rem; }

/* Per-tab title colors */
#rosterPage     .tab-title { color: #fff; }
#statsPage      .tab-title { color: rgba(255,255,255,0.85); }
#galleryPage    .tab-title { color: #fff; }
#charterPage    .tab-title { color: #fff; }
#departmentsPage .tab-title { color: #fff; }
#employmentPage  .tab-title { color: #fff; }

/* Accent underline */
.tab-title::after {
  content: '';
  display: block;
  width: 40px; height: 3px;
  border-radius: 2px;
  position: absolute;
  bottom: -1px; left: 48px;
  transition: background 0.5s var(--ease-out);
}

#rosterPage     .tab-title::after { background: var(--col-blue);    box-shadow: 0 0 12px rgba(37,99,235,0.6); }
#statsPage      .tab-title::after { background: var(--col-gray);    box-shadow: 0 0 12px rgba(100,116,139,0.5); }
#galleryPage    .tab-title::after { background: var(--col-amber);   box-shadow: 0 0 12px rgba(217,119,6,0.6); }
#charterPage    .tab-title::after { background: var(--col-crimson); box-shadow: 0 0 12px rgba(153,27,27,0.6); }
#departmentsPage .tab-title::after { background: var(--col-azure);  box-shadow: 0 0 12px rgba(2,132,199,0.6); }
#employmentPage  .tab-title::after { background: var(--col-green);  box-shadow: 0 0 16px rgba(34,197,94,0.72); }

.tab-subtitle {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  padding-left: 56px;
}

.tab-content {
  padding: 0 48px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Roster spans the full viewport width with a slim, equal side gutter */
#rosterPage .tab-content {
  max-width: none;
  padding: 0 24px;
}

#rosterPage .tab-header { padding-left: 24px; padding-right: 24px; }
#rosterPage .tab-title::after { left: 24px; }

@media (max-width: 700px) {
  #rosterPage .tab-header { padding-left: 14px; padding-right: 14px; }
  #rosterPage .tab-title::after { left: 14px; }
}

/* ══════════════════════════════════════
   ROSTER TAB — PERSONNEL DOSSIER SYSTEM
══════════════════════════════════════ */

/* ── Case-file divider (replaces old dept-label) ── */
.roster-department { margin-bottom: 52px; }

.dept-label {
  display: flex; align-items: baseline; gap: 14px;
  margin-bottom: 22px;
  position: relative;
}

.dept-label-code {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--dept-color, rgba(255,255,255,0.4));
  background: color-mix(in srgb, var(--dept-color, #3b82f6) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--dept-color, #3b82f6) 45%, transparent);
  border-radius: 4px;
  padding: 3px 8px;
  flex-shrink: 0;
}

.dept-label-text {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
}

.dept-label-count {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
}

.dept-label::after {
  content: '';
  flex: 1;
  height: 1px;
  align-self: center;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,0.14) 0, rgba(255,255,255,0.14) 4px,
    transparent 4px, transparent 9px);
}

/* legacy dot kept harmless if referenced elsewhere */
.dept-label-dot { display: none; }

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(208px, 1fr));
  gap: 14px;
}

/* Leadership group renders larger, fewer per row */
.roster-department.is-command .roster-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ── Dossier card ── */
.roster-card {
  --card-accent: rgba(255,255,255,0.18);
  background:
    radial-gradient(140% 100% at 50% -20%, color-mix(in srgb, var(--card-accent) 10%, transparent), transparent 60%),
    var(--surface);
  border: 1px solid var(--rim);
  border-radius: 12px;
  padding: 0 0 16px;
  text-align: center;
  cursor: default;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  backdrop-filter: blur(8px);
}

/* Rank stripe — top "badge plate" with chevrons + file number */
.roster-card-plate {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--card-accent) 35%, var(--rim));
  background: linear-gradient(90deg, color-mix(in srgb, var(--card-accent) 16%, transparent), transparent 70%);
}

.roster-chevrons {
  display: flex; gap: 3px;
  height: 7px;
  align-items: center;
}
.roster-chevrons span {
  width: 7px; height: 7px;
  background: var(--card-accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: 0.9;
}
.roster-chevrons.is-empty::before {
  content: '—';
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: rgba(255,255,255,0.18);
}

.roster-file-no {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.22);
}

/* Scanline sweep on hover — subtle surveillance cue */
.roster-card::before {
  content: '';
  position: absolute; left: 0; right: 0; top: -40%;
  height: 40%;
  background: linear-gradient(180deg, color-mix(in srgb, var(--card-accent) 22%, transparent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease, top 0.6s var(--ease-out);
  pointer-events: none;
}

.roster-card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 55%, var(--rim-2));
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.35), 0 0 0 1px color-mix(in srgb, var(--card-accent) 25%, transparent) inset;
}
.roster-card:hover::before { opacity: 1; top: 0%; }

.roster-card-body { padding: 18px 16px 0; }

/* ID photo — squared frame, not a circle */
.roster-photo {
  width: 68px; height: 68px;
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--card-accent) 30%, transparent), rgba(6,8,15,0.85));
  border: 1px solid color-mix(in srgb, var(--card-accent) 40%, var(--rim-2));
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

.roster-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Status pip — bottom-right of photo */
.roster-photo::after {
  content: '';
  position: absolute; bottom: -2px; right: -2px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--ink-2);
  box-shadow: 0 0 6px rgba(34,197,94,0.7);
}

.roster-nick {
  font-family: var(--f-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.92);
  margin-bottom: 4px;
  padding: 0 8px;
}

.roster-rank {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}

.roster-position {
  margin-top: 9px;
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.roster-card-foot {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--rim);
}

/* Command (chief / deputy) cards — gold / blue plated, larger */
.roster-card[data-rank="chief"] { --card-accent: var(--gold); }
.roster-card[data-rank="chief"] .roster-nick { color: var(--gold-hi); }
.roster-card[data-rank="chief"] .roster-rank { color: color-mix(in srgb, var(--gold-hi) 70%, rgba(255,255,255,0.4)); }

.roster-card[data-rank="deputy_chief"] { --card-accent: var(--blue); }
.roster-card[data-rank="deputy_chief"] .roster-nick { color: var(--blue-hi); }

.roster-department.is-command .roster-photo { width: 84px; height: 84px; font-size: 1.5rem; border-radius: 10px; }
.roster-department.is-command .roster-nick { font-size: 1.1rem; }
.roster-department.is-command .roster-card-body { padding-top: 22px; }

/* ══════════════════════════════════════
   GALLERY TAB
══════════════════════════════════════ */
.gallery-grid {
  columns: 4;
  column-gap: 12px;
}
@media (max-width: 1100px) { .gallery-grid { columns: 3; } }
@media (max-width: 720px)  { .gallery-grid { columns: 2; } }
@media (max-width: 460px)  { .gallery-grid { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--rim);
  background: var(--surface);
  cursor: pointer;
  position: relative;
  group: true;
  transition: all 0.22s var(--ease-out);
}

.gallery-item:hover {
  border-color: rgba(217,119,6,0.4);
  transform: scale(1.01);
  box-shadow: 0 12px 36px rgba(0,0,0,0.4);
  z-index: 2;
}

.gallery-item img {
  width: 100%; display: block;
  transition: transform 0.5s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }

/* Caption overlay */
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 14px 14px;
  background: linear-gradient(to top, rgba(6,8,15,0.9), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.22s var(--ease-out);
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

.gallery-caption-title {
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.gallery-caption-desc {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.gallery-empty {
  text-align: center; padding: 80px 20px;
  color: rgba(255,255,255,0.18);
  font-family: var(--f-mono);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
}

/* ══════════════════════════════════════
   DEPARTMENTS TAB
══════════════════════════════════════ */
.departments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.dept-card {
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.22s var(--ease-out);
  backdrop-filter: blur(8px);
}

.dept-card:hover {
  background: var(--surface-2);
  border-color: var(--rim-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.dept-card-header {
  padding: 18px 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--rim);
}

.dept-color-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.dept-card-name {
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.88);
}

.dept-card-body { padding: 16px 20px; }

.dept-card-desc {
  font-size: 0.83rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.38);
}

/* ══════════════════════════════════════
   STATS TAB
══════════════════════════════════════ */

/* ── Global summary bar ── */
.stats-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: all 0.22s var(--ease-out);
}

.summary-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
}

.summary-card.total::before  { background: rgba(255,255,255,0.15); }
.summary-card.wins::before   { background: #10b981; box-shadow: 0 0 12px rgba(16,185,129,0.5); }
.summary-card.losses::before { background: #ef4444; box-shadow: 0 0 12px rgba(239,68,68,0.4); }

.summary-card:hover {
  background: var(--surface-2);
  border-color: var(--rim-2);
  transform: translateY(-2px);
}

.summary-label {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.summary-value {
  font-family: var(--f-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}

.summary-card.wins   .summary-value { color: #34d399; }
.summary-card.losses .summary-value { color: #f87171; }

.summary-sub {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2);
}

/* Winrate bar */
.winrate-bar-wrap {
  margin-bottom: 36px;
}

.winrate-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.winrate-title {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

.winrate-pct {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 700;
  color: #34d399;
}

.winrate-bar {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.winrate-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 12px rgba(16,185,129,0.4);
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}

/* ── Stat type cards grid ── */
.stats-section-title {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.stats-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rim);
}

.stat-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.stat-type-card {
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: 14px;
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.22s var(--ease-out);
  backdrop-filter: blur(8px);
}

.stat-type-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
}

.stat-type-card:hover {
  background: var(--surface-2);
  border-color: var(--rim-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}

.stat-type-name {
  font-family: var(--f-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  padding-right: 8px;
  line-height: 1.3;
}

.stat-type-counts {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 10px;
}

.stat-count-big {
  font-family: var(--f-display);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}

.stat-count-sub {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-bottom: 3px;
}

.stat-count-win {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: #34d399;
  letter-spacing: 0.06em;
}

.stat-count-loss {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  color: #f87171;
  letter-spacing: 0.06em;
}

/* Mini winrate bar on each card */
.stat-type-bar {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.stat-type-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.16,1,0.3,1);
}

/* ── Events feed ── */
.events-feed {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.event-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--surface);
  border: 1px solid var(--rim);
  border-radius: 10px;
  transition: all 0.18s ease;
  animation: eventIn 0.35s var(--ease-out) both;
}

@keyframes eventIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.event-item:hover {
  background: var(--surface-2);
  border-color: var(--rim-2);
}

.event-result-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.event-result-dot.win  { background: #10b981; box-shadow: 0 0 8px rgba(16,185,129,0.6); }
.event-result-dot.loss { background: #ef4444; box-shadow: 0 0 8px rgba(239,68,68,0.5); }

.event-type-color {
  width: 3px; height: 28px;
  border-radius: 2px;
  flex-shrink: 0;
}

.event-info { flex: 1; min-width: 0; }

.event-type-name {
  font-family: var(--f-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-note {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.25);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-result-badge {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 100px;
  flex-shrink: 0;
}

.event-result-badge.win {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: #34d399;
}

.event-result-badge.loss {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  color: #f87171;
}

.event-date {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  color: rgba(255,255,255,0.18);
  flex-shrink: 0;
  text-align: right;
  min-width: 70px;
}

.stats-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,0.18);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .stats-summary { grid-template-columns: 1fr; }
  .stat-types-grid { grid-template-columns: 1fr 1fr; }
  .event-date { display: none; }
}

/* ══════════════════════════════════════
   DEPARTMENT COLORS — roster cards
══════════════════════════════════════ */
.dept-badge {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid;
}

/* dept-label dot inherits --dept-color via JS */
.dept-label-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--dept-color, #3b82f6);
}

/* dept-card border uses color from inline style set by JS */
.dept-card {
  border-left: 3px solid var(--dept-color, rgba(255,255,255,0.08));
}

/* ══════════════════════════════════════
   LEADER STATS PANEL (stats tab header)
══════════════════════════════════════ */
.stats-tab-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.leader-stats-panel {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-self: center;
}

.leader-stat-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--rim-2);
  border-radius: 12px;
  padding: 10px 16px;
  min-width: 130px;
  transition: all 0.2s var(--ease-out);
  backdrop-filter: blur(8px);
}

.leader-stat-card:hover {
  background: var(--surface-3);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.leader-stat-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: 0.85;
}

.leader-stat-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.leader-stat-label {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

.leader-stat-value {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  color: #fff;
}

.leader-stat-card.points .leader-stat-value { color: #fbbf24; }
.leader-stat-card.blexes .leader-stat-value { color: #c084fc; }

@media (max-width: 700px) {
  .stats-tab-header { flex-direction: column; }
  .leader-stats-panel { width: 100%; }
  .leader-stat-card { flex: 1; }
}


/* ══════════════════════════════════════
   CHARTER TAB — LSPD STATUTE
══════════════════════════════════════ */
#charterPage .tab-content {
  max-width: 1480px;
}

.charter-shell {
  --charter-accent: #b91c1c;
  --charter-accent-soft: rgba(185,28,28,0.16);
  --charter-line: rgba(255,255,255,0.09);
}

.charter-hero {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
  margin-bottom: 18px;
  border: 1px solid rgba(185,28,28,0.28);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(80% 140% at 0% 0%, rgba(185,28,28,0.18), transparent 55%),
    linear-gradient(135deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015)),
    rgba(7,9,15,0.78);
  box-shadow: 0 24px 70px rgba(0,0,0,0.28);
}

.charter-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,0.018) 31px 32px);
  mask-image: linear-gradient(to right, #000, transparent 75%);
}

.charter-hero::after {
  content: 'LSPD • INTERNAL REGULATION';
  position: absolute;
  top: 16px;
  right: 18px;
  font: 500 0.54rem/1 var(--f-mono);
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.12);
}

.charter-hero-emblem {
  width: 112px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.09), transparent 58%),
    rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    inset 0 0 0 7px rgba(255,255,255,0.018),
    0 18px 42px rgba(0,0,0,0.3),
    0 0 30px rgba(185,28,28,0.08);
}

.charter-hero-emblem img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}

.charter-hero-copy { position: relative; z-index: 1; }

.charter-hero-eyebrow,
.charter-section-kicker,
.charter-chapter-kicker {
  font-family: var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.charter-hero-eyebrow {
  margin-bottom: 7px;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.32);
}

.charter-hero h3 {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: #fff;
}

.charter-hero-copy > p {
  margin: 0;
  max-width: 900px;
  color: rgba(255,255,255,0.54);
  line-height: 1.65;
  font-size: 0.92rem;
}

.charter-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.charter-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.42);
  font: 500 0.66rem/1 var(--f-mono);
  letter-spacing: 0.03em;
}

.charter-meta-chip b {
  color: rgba(255,255,255,0.78);
  font-weight: 650;
}

.charter-meta-chip.is-updated {
  border-color: rgba(185,28,28,0.24);
  background: rgba(185,28,28,0.08);
}

.charter-meta-chip.is-updated b { color: #fca5a5; }

/* toolbar */
.charter-toolbar {
  position: sticky;
  top: 72px;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 10px;
  border: 1px solid var(--rim);
  border-radius: 14px;
  background: rgba(8,10,16,0.88);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
  backdrop-filter: blur(18px);
}

.charter-search-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.charter-search-wrap:focus-within {
  border-color: rgba(185,28,28,0.55);
  background: rgba(255,255,255,0.035);
  box-shadow: 0 0 0 3px rgba(185,28,28,0.08);
}

.charter-search-wrap svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: rgba(255,255,255,0.3);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.charter-search-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: rgba(255,255,255,0.88);
  font-family: var(--f-body);
  font-size: 0.84rem;
}

.charter-search-wrap input::placeholder { color: rgba(255,255,255,0.25); }

.charter-search-clear {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  display: none;
  place-items: center;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.45);
  font-size: 1rem;
}
.charter-search-clear.visible { display: grid; }
.charter-search-clear:hover { background: rgba(255,255,255,0.09); color: #fff; }

.charter-toolbar-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.charter-search-status {
  font: 500 0.62rem/1 var(--f-mono);
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
}

.charter-expand-btn,
.charter-to-top {
  border: 1px solid rgba(185,28,28,0.26);
  border-radius: 9px;
  background: rgba(185,28,28,0.07);
  color: rgba(255,255,255,0.66);
  font-family: var(--f-body);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.charter-expand-btn {
  height: 38px;
  padding: 0 13px;
}
.charter-expand-btn:hover,
.charter-to-top:hover {
  border-color: rgba(185,28,28,0.52);
  background: rgba(185,28,28,0.13);
  color: #fff;
}

/* layout */
.charter-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.charter-sidebar {
  position: sticky;
  top: 136px;
  max-height: calc(100vh - 160px);
  overflow: hidden;
}

.charter-sidebar-card {
  max-height: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rim);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(7,9,15,0.72);
  backdrop-filter: blur(12px);
}

.charter-sidebar-title {
  padding: 15px 16px 12px;
  border-bottom: 1px solid var(--charter-line);
  font: 600 0.62rem/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}

.charter-toc {
  padding: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.charter-toc-item {
  width: 100%;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255,255,255,0.42);
  cursor: pointer;
  text-align: left;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.charter-toc-item:hover {
  background: rgba(255,255,255,0.035);
  color: rgba(255,255,255,0.72);
  transform: translateX(2px);
}

.charter-toc-item.active {
  background: linear-gradient(90deg, rgba(185,28,28,0.16), rgba(185,28,28,0.035));
  color: #fff;
}

.charter-toc-no {
  display: grid;
  place-items: center;
  width: 28px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.05);
  font: 600 0.58rem/1 var(--f-mono);
  color: rgba(255,255,255,0.35);
}
.charter-toc-item.active .charter-toc-no {
  border-color: rgba(185,28,28,0.38);
  background: rgba(185,28,28,0.13);
  color: #fca5a5;
}

.charter-toc-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.71rem;
  line-height: 1.2;
}

.charter-main { min-width: 0; }

/* abbreviations */
.charter-abbreviations {
  margin-bottom: 14px;
  border: 1px solid var(--rim);
  border-radius: 15px;
  overflow: hidden;
  background: rgba(7,9,15,0.62);
}

.charter-abbr-toggle {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.charter-section-kicker {
  display: block;
  margin-bottom: 5px;
  color: rgba(255,255,255,0.25);
  font-size: 0.54rem;
}

.charter-abbr-toggle strong {
  font-family: var(--f-display);
  font-size: 0.96rem;
  letter-spacing: .01em;
}

.charter-abbr-grid {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 14px 14px;
}
.charter-abbreviations.is-open .charter-abbr-grid { display: grid; }

.charter-abbr-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 9px;
  background: rgba(255,255,255,0.018);
}

.charter-abbr-key {
  font: 650 0.66rem/1.35 var(--f-mono);
  color: #fca5a5;
}
.charter-abbr-value {
  min-width: 0;
  color: rgba(255,255,255,0.5);
  font-size: 0.72rem;
  line-height: 1.35;
}

/* chapters */
.charter-chapter {
  scroll-margin-top: 144px;
  margin-bottom: 12px;
  border: 1px solid var(--rim);
  border-radius: 16px;
  overflow: clip;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.018), transparent 32%),
    rgba(7,9,15,0.66);
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.charter-chapter.is-open {
  border-color: rgba(185,28,28,0.2);
  box-shadow: 0 16px 44px rgba(0,0,0,0.18);
}

.charter-chapter-toggle {
  width: 100%;
  min-height: 82px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto 18px;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.charter-chapter-toggle:hover {
  background: linear-gradient(90deg, rgba(185,28,28,0.055), transparent 65%);
}

.charter-chapter-index {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185,28,28,0.27);
  border-radius: 11px;
  background: rgba(185,28,28,0.075);
  color: #fca5a5;
  font: 700 0.78rem/1 var(--f-mono);
}

.charter-chapter-title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.charter-chapter-kicker {
  font-size: 0.52rem;
  color: rgba(255,255,255,0.22);
}

.charter-chapter-title {
  font-family: var(--f-display);
  font-size: clamp(0.95rem, 2vw, 1.14rem);
  font-weight: 720;
  line-height: 1.2;
  color: rgba(255,255,255,0.86);
}

.charter-chapter-count {
  font: 500 0.58rem/1 var(--f-mono);
  color: rgba(255,255,255,0.24);
  white-space: nowrap;
}

.charter-chapter-chevron {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid rgba(255,255,255,0.32);
  border-bottom: 1.5px solid rgba(255,255,255,0.32);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .22s ease;
}
.charter-chapter.is-open .charter-chapter-toggle .charter-chapter-chevron,
.charter-abbreviations.is-open .charter-abbr-toggle .charter-chapter-chevron {
  transform: rotate(225deg) translate(-2px,-2px);
}

.charter-chapter-content { display: none; }
.charter-chapter.is-open .charter-chapter-content { display: block; }

.charter-preface {
  padding: 0 18px 16px;
}

.charter-articles {
  padding: 0 12px 12px;
}

.charter-article {
  scroll-margin-top: 150px;
  padding: 18px 18px 19px;
  border-top: 1px solid rgba(255,255,255,0.055);
  background: rgba(255,255,255,0.008);
}
.charter-article:first-child {
  border-top: 1px solid rgba(185,28,28,0.09);
  border-radius: 11px 11px 0 0;
}

.charter-article[hidden],
.charter-chapter[hidden] { display: none !important; }

.charter-article-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}

.charter-article-no {
  flex: 0 0 auto;
  font: 650 0.63rem/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f87171;
}

.charter-article-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(185,28,28,0.22), transparent);
}

.charter-article-body {
  display: grid;
  gap: 8px;
}

.charter-paragraph {
  margin: 0;
  max-width: 980px;
  color: rgba(255,255,255,0.64);
  font-size: 0.83rem;
  line-height: 1.66;
}

.charter-list {
  margin: 1px 0 2px;
  padding: 0;
  display: grid;
  gap: 6px;
  list-style: none;
}

.charter-list li {
  position: relative;
  padding-left: 18px;
  color: rgba(255,255,255,0.62);
  font-size: 0.82rem;
  line-height: 1.6;
}

.charter-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(248,113,113,0.7);
  box-shadow: 0 0 8px rgba(185,28,28,0.28);
}

.charter-callout {
  max-width: 1020px;
  display: grid;
  grid-template-columns: 100px minmax(0,1fr);
  gap: 12px;
  align-items: start;
  padding: 11px 13px;
  border-radius: 10px;
}

.charter-callout p {
  margin: 0;
  color: rgba(255,255,255,0.61);
  font-size: 0.79rem;
  line-height: 1.58;
}

.charter-callout-label {
  margin-top: 2px;
  font: 650 0.56rem/1.2 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.charter-callout-note {
  border: 1px solid rgba(217,119,6,0.18);
  background: rgba(217,119,6,0.045);
}
.charter-callout-note .charter-callout-label { color: #fbbf24; }

.charter-callout-exception {
  border: 1px solid rgba(185,28,28,0.2);
  background: rgba(185,28,28,0.055);
}
.charter-callout-exception .charter-callout-label { color: #f87171; }

.charter-no-results {
  display: none;
  padding: 46px 24px;
  margin-bottom: 12px;
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: 15px;
  text-align: center;
  background: rgba(255,255,255,0.015);
}
.charter-no-results.visible { display: grid; gap: 6px; }
.charter-no-results strong {
  color: rgba(255,255,255,0.75);
  font-family: var(--f-display);
}
.charter-no-results span {
  color: rgba(255,255,255,0.3);
  font-size: .76rem;
}

.charter-to-top {
  display: block;
  margin: 18px 0 0 auto;
  padding: 10px 14px;
}

/* searching: remove accordion visual noise */
#charterContent.is-searching .charter-chapter {
  border-color: rgba(255,255,255,0.09);
}

/* responsive */
@media (max-width: 1050px) {
  .charter-layout {
    grid-template-columns: 1fr;
  }

  .charter-sidebar {
    position: sticky;
    top: 134px;
    z-index: 12;
    max-height: none;
    overflow: visible;
  }

  .charter-sidebar-card {
    display: block;
    max-height: none;
    border-radius: 12px;
  }

  .charter-sidebar-title { display: none; }

  .charter-toc {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 7px;
    scrollbar-width: none;
  }
  .charter-toc::-webkit-scrollbar { display: none; }

  .charter-toc-item {
    width: auto;
    flex: 0 0 auto;
    display: inline-flex;
    padding: 7px;
  }

  .charter-toc-name { display: none; }
  .charter-toc-no { width: 34px; }
}

@media (max-width: 760px) {
  #charterPage .tab-content { padding: 0 14px; }
  #charterPage .tab-header { padding-left: 18px; padding-right: 18px; }
  #charterPage .tab-title::after { left: 18px; }

  .charter-hero {
    grid-template-columns: 70px minmax(0,1fr);
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
  }

  .charter-hero::after { display: none; }

  .charter-hero-emblem {
    width: 70px;
  }
  .charter-hero-emblem img { width: 43px; height: 43px; }

  .charter-hero h3 { font-size: 1.9rem; }
  .charter-hero-copy > p {
    grid-column: 1 / -1;
    font-size: 0.8rem;
  }

  .charter-meta-row {
    grid-column: 1 / -1;
    margin-top: 14px;
  }

  .charter-toolbar {
    top: 62px;
    align-items: stretch;
    flex-direction: column;
  }

  .charter-toolbar-actions {
    justify-content: space-between;
    padding: 0 2px;
  }

  .charter-sidebar { top: 164px; }

  .charter-abbr-grid { grid-template-columns: 1fr; }

  .charter-chapter-toggle {
    grid-template-columns: 42px minmax(0,1fr) 14px;
    gap: 10px;
    padding: 12px 13px;
  }
  .charter-chapter-index { width: 40px; height: 40px; }
  .charter-chapter-count { display: none; }

  .charter-articles { padding: 0 7px 7px; }
  .charter-article { padding: 15px 12px 16px; }

  .charter-callout {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (max-width: 520px) {
  .charter-hero {
    display: grid;
    grid-template-columns: 54px minmax(0,1fr);
    padding: 16px;
  }
  .charter-hero-emblem { width: 54px; }
  .charter-hero-emblem img { width: 34px; height: 34px; }

  .charter-hero-eyebrow { font-size: .5rem; }
  .charter-hero h3 { font-size: 1.55rem; margin-bottom: 5px; }
  .charter-hero-copy > p {
    display: block;
    margin-top: 10px;
    grid-column: 1 / -1;
  }

  .charter-meta-chip {
    font-size: .58rem;
    min-height: 28px;
  }

  .charter-search-status { display: none; }
  .charter-expand-btn { margin-left: auto; }

  .charter-abbr-toggle { min-height: 60px; }
  .charter-toc-no { width: 30px; height: 26px; }
}


/* ══════════════════════════════════════
   EMPLOYMENT TAB — RECRUITMENT / GREEN
══════════════════════════════════════ */
#employmentPage .tab-content {
  max-width: 1080px;
}

.employment-content {
  --emp-green: #22c55e;
  --emp-green-hi: #4ade80;
  --emp-green-soft: rgba(34,197,94,0.12);
  --emp-green-line: rgba(74,222,128,0.22);
}

.employment-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(74,222,128,0.20);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(34,197,94,0.12), rgba(34,197,94,0.025) 52%, rgba(255,255,255,0.02)),
    rgba(8,14,15,0.78);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.32),
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 0 54px rgba(34,197,94,0.08);
}

.employment-hero::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  right: -130px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.22), transparent 68%);
  filter: blur(4px);
  pointer-events: none;
}

.employment-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,222,128,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,222,128,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  pointer-events: none;
}

.employment-scanline {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  height: 1px;
  top: 18%;
  background: linear-gradient(90deg, transparent, rgba(74,222,128,0.45), transparent);
  box-shadow: 0 0 16px rgba(34,197,94,0.34);
  opacity: 0.45;
  animation: employmentScan 7s linear infinite;
  pointer-events: none;
}

@keyframes employmentScan {
  from { transform: translateY(-40px); opacity: 0; }
  15% { opacity: 0.45; }
  85% { opacity: 0.45; }
  to { transform: translateY(300px); opacity: 0; }
}

.employment-eyebrow,
.employment-card-kicker {
  position: relative;
  z-index: 2;
  font-family: var(--f-mono);
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  color: rgba(74,222,128,0.72);
  text-transform: uppercase;
}

.employment-hero h3 {
  position: relative;
  z-index: 2;
  margin-top: 14px;
  font-family: var(--f-display);
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: #fff;
  text-shadow: 0 0 32px rgba(34,197,94,0.12);
}

.employment-lead {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin-top: 22px;
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.66);
}

.employment-link {
  position: relative;
  color: var(--emp-green-hi);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(74,222,128,0.26);
}

.employment-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--emp-green-hi);
  box-shadow: 0 0 8px rgba(74,222,128,0.5);
  transform: scaleX(0.42);
  transform-origin: left;
  transition: transform 0.2s var(--ease-out);
}

.employment-link:hover::after { transform: scaleX(1); }
.employment-link:hover { color: #86efac; }

.employment-review-time {
  position: relative;
  z-index: 2;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 10px 14px;
  border: 1px solid rgba(74,222,128,0.17);
  border-radius: 999px;
  background: rgba(34,197,94,0.075);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.62);
}

.employment-review-time strong { color: #dcfce7; font-weight: 600; }

.employment-pulse {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--emp-green-hi);
  box-shadow: 0 0 0 0 rgba(74,222,128,0.45);
  animation: employmentPulse 1.8s ease-out infinite;
}

@keyframes employmentPulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.42); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.employment-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
  gap: 18px;
  margin-top: 18px;
}

.employment-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.04), rgba(255,255,255,0.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025), 0 18px 44px rgba(0,0,0,0.18);
}

.employment-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--emp-green), transparent);
  box-shadow: 0 0 14px rgba(34,197,94,0.45);
}

.employment-card h4 {
  margin-top: 9px;
  font-family: var(--f-display);
  font-size: 1.35rem;
  color: rgba(255,255,255,0.92);
}

.employment-requirement-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.employment-requirement {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid rgba(74,222,128,0.085);
  border-radius: 10px;
  background: rgba(34,197,94,0.035);
}

.employment-requirement > span {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: rgba(74,222,128,0.72);
  letter-spacing: 0.08em;
}

.employment-requirement p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.66);
}

.employment-requirement strong { color: rgba(255,255,255,0.9); }

.employment-note-card p {
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.58);
}

.employment-note-line {
  height: 1px;
  margin: 24px 0 20px;
  background: linear-gradient(90deg, rgba(74,222,128,0.32), rgba(255,255,255,0.05), transparent);
}

.employment-note-card .employment-muted {
  margin-top: 0;
  color: rgba(255,255,255,0.36);
}

.employment-link-warning {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: 10px;
  background: rgba(245,158,11,0.08);
  color: rgba(255,255,255,0.68);
  font-size: 0.82rem;
}

.employment-link-warning code {
  font-family: var(--f-mono);
  color: rgba(255,255,255,0.82);
}

@media (max-width: 760px) {
  .employment-grid { grid-template-columns: 1fr; }
  .employment-hero { border-radius: 16px; }
  .employment-card { padding: 22px; }
  .employment-review-time { width: 100%; border-radius: 12px; }
}

@media (max-width: 560px) {
  #employmentPage .tab-content { padding-left: 16px; padding-right: 16px; }
  .employment-hero { padding: 24px 20px; }
  .employment-lead { line-height: 1.62; }
  .employment-link { white-space: normal; }
}
