/* components.css - reset + reusable components (spec 02). GENERATED by tools/css-from-reference.mjs - do not hand-edit. */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* 1. Prevent accidental blue text-selection highlight when tapping interactive UI */
button,
label.check-row,
summary.zonal-summary,
.brand,
.bento-card,
.mobile-tab,
.menu-cat-item,
.qp-btn,
.touch-btn,
.action-btn,
.icon-btn,
.menu-btn,
.star-btn,
.modal-inline-share-btn,
.table-control-btn,
.col-footer-btn,
.nav-item {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* 2. Suppress focus outline on touch/mouse click, keep it only for keyboard Tab navigation */
button:focus:not(:focus-visible),
summary:focus:not(:focus-visible),
input[type='checkbox']:focus:not(:focus-visible),
.mobile-tab:focus:not(:focus-visible),
.bento-card:focus:not(:focus-visible) {
  outline: none;
}

body {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

/* Visually hidden, available to assistive technology. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.menu-btn {
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: #b45309;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition:
    border-color 0.15s,
    background-color 0.15s,
    transform 0.1s ease;
}
.menu-btn:hover {
  background: rgba(217, 119, 6, 0.2);
  border-color: rgba(217, 119, 6, 0.6);
  color: #92400e;
}
:root[data-theme='dark'] .menu-btn {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}
:root[data-theme='dark'] .menu-btn:hover {
  background: rgba(245, 158, 11, 0.24);
  border-color: rgba(245, 158, 11, 0.6);
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.5px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.1s ease,
    opacity 0.1s ease;
}
.brand span {
  color: var(--accent-primary);
}

.search-input-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
#globalSearch {
  width: 100%;
  height: 40px;
  padding: 0 2.25rem 0 2.4rem;
  border-radius: var(--radius-md);
  background: var(--strip-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.875rem;
  transition: all 0.2s;
}
#globalSearch:focus {
  outline: none;
  background: var(--card-bg);
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
}
.clear-search-btn {
  position: absolute;
  right: 0.5rem;
  width: 22px;
  height: 22px;
  background: var(--border-color);
  color: var(--text-muted);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  padding-bottom: 2px;
  transition: all 0.2s;
}
.clear-search-btn:hover {
  background: color-mix(in srgb, var(--focus) 12%, var(--surface-raised));
}

.icon-btn {
  background: var(--strip-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.icon-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-color);
}

/* Action Buttons (Shared Desktop Header & Mobile Bottom Bar) */
.action-btn {
  width: 100%;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--border-color);
  background: var(--strip-bg);
  color: var(--text-dark);
  white-space: nowrap;
  transition: all 0.15s ease;
}
.action-btn:hover {
  background: var(--bg-color);
  border-color: var(--border-hover);
}
.action-btn.active-tracker {
  background: rgba(234, 179, 8, 0.14);
  color: #b45309;
  border-color: #d97706;
}
:root[data-theme='dark'] .action-btn.active-tracker {
  color: #fbbf24;
  border-color: #f59e0b;
}
.primary-btn {
  background: var(--accent-secondary);
  color: #fff;
  border-color: var(--accent-secondary);
}
.primary-btn:hover {
  background: var(--accent-secondary-hover);
  color: #fff;
  border-color: var(--accent-secondary-hover);
}

/* Tools Button width matched to My Tracker & Filters buttons on Desktop */
.header-tool-btn {
  width: calc((100% - 2.3rem) / 4);
  flex-shrink: 0;
  height: 40px;
  padding: 0 0.5rem;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--strip-bg);
  white-space: nowrap;
}
.header-tool-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-color);
  color: var(--text-dark);
}
.header-tool-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
/* Theme toggle lives in the header only on compact (desktop keeps it in the drawer footer) */
.header-theme-btn {
  display: none;
}

.filter-badge {
  background: white;
  color: var(--accent-secondary);
  border-radius: 99px;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 800;
  margin-left: 2px;
}

/* Slide-out Category Menu Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(3px);
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
/* Compact nav must never paint above the open drawer (mobile compositing guard) */
.drawer-overlay.active ~ .bottom-nav {
  visibility: hidden;
}
.category-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--card-bg);
  border-right: 1px solid var(--border-color);
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
}
.drawer-overlay.active .category-drawer {
  transform: translateX(0);
}

.drawer-body {
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.menu-cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dark);
  cursor: pointer;
  text-align: left;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

.drawer-footer {
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-color);
  background: var(--strip-bg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.drawer-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.drawer-action-btn:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}
/* Tools entry in the drawer footer is compact-only (desktop uses the header pill) */

.bento-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  text-decoration: none;
}
.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}
.bento-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}
.bento-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}
.bento-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

/* Compact category rail (v3.6.0): one sunken track, no per-pill borders/gradients. */
.mobile-tab {
  scroll-snap-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex: 1 0 auto;
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: none;
}
.mobile-tab:hover {
  background: color-mix(in srgb, var(--surface-raised) 70%, transparent);
  color: var(--text-1);
}
.mobile-tab:active {
  transform: scale(0.98);
}
.mobile-tab[data-target='col-jobs'] {
  --tab-accent: var(--pillar-jobs);
}
.mobile-tab[data-target='col-admit'] {
  --tab-accent: var(--pillar-admit);
}
.mobile-tab[data-target='col-results'] {
  --tab-accent: var(--pillar-results);
}
.mobile-tab[data-target='col-misc'] {
  --tab-accent: var(--pillar-misc);
}
.mobile-tab.active {
  background: var(--surface-raised);
  color: var(--tab-accent, var(--text-1));
  box-shadow: 0 1px 2px rgb(16 24 40 / 0.14);
}
.mobile-tab:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}
.tab-count {
  display: none;
}
/* Fixed Filter Modal */
.filter-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}
.filter-modal-overlay.active {
  display: flex;
}
.filter-modal {
  background: var(--card-bg);
  width: 100%;
  max-width: 550px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--border-color);
}
.fm-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.fm-header h2 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin: 0;
}
.fm-close {
  background: var(--strip-bg);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 99px;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.1s ease,
    background-color 0.15s ease;
}
.fm-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.fm-section {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.fm-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.qp-btn {
  padding: 0.5rem 1rem;
  border-radius: 99px;
  border: 1px solid var(--border-color);
  background: var(--strip-bg);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}
.qp-btn.active {
  background: var(--accent-secondary);
  color: #fff;
  border-color: var(--accent-secondary);
}

/* Zonal Group & Round Live Count Badge on Summary Header */
.zonal-group {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--strip-bg);
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.zonal-group.has-selections {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.12);
}
.zonal-summary {
  padding: 0.9rem 1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  user-select: none;
  min-height: 52px;
  border-radius: var(--radius-md);
  transition:
    background-color 0.12s ease,
    transform 0.1s ease;
}
.zonal-summary::-webkit-details-marker {
  display: none;
}
.zonal-summary::after {
  content: '▼';
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
details[open] .zonal-summary::after {
  content: '▲';
}

.zonal-summary-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  min-width: 0;
  border-radius: 6px;
  padding: 2px 8px;
  margin: -2px -8px;
  transition:
    background-color 0.12s ease,
    transform 0.1s ease;
}
.zonal-summary-badge {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: var(--accent-secondary);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(29, 78, 216, 0.25);
}
.zonal-summary-badge.visible {
  display: inline-flex;
}

.zonal-content {
  padding: 0 1rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  margin-top: 0.25rem;
  padding-top: 1rem;
}

/* 5-Row Multi-Column Grid for both All Departments and Regions & States */
.multi-col-check-grid {
  display: grid;
  grid-template-rows: repeat(5, minmax(32px, auto));
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 1fr);
  column-gap: 1.25rem;
  row-gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) var(--strip-bg);
}
.multi-col-check-grid::-webkit-scrollbar {
  height: 6px;
}
.multi-col-check-grid::-webkit-scrollbar-track {
  background: var(--strip-bg);
}
.multi-col-check-grid::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 99px;
}
.multi-col-check-grid .check-row {
  white-space: nowrap;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 32px;
  width: fit-content;
  align-self: flex-start;
  justify-self: start;
  flex-shrink: 0;
  border-radius: 6px;
  padding: 2px 6px;
  margin: -2px -6px;
  transition:
    transform 0.1s ease,
    background-color 0.12s ease;
}
.check-row input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.1s ease;
}
.select-all-text {
  color: var(--accent-secondary);
  font-weight: 600;
}
.zone-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.25rem 0;
}
.fm-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
  background: var(--strip-bg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.fm-footer button {
  flex: 1;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.15s ease;
}
.btn-reset {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}
.btn-reset:hover {
  border-color: var(--text-muted);
}
.btn-apply {
  background: var(--accent-secondary);
  border: none;
  color: white;
}
.btn-apply:hover {
  background: var(--accent-secondary-hover);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-hover);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
@media (max-width: 500px) {
  .modal-footer-actions {
    grid-template-columns: 1fr;
  }
}

/* Column Footer Action Button (View All / Load More Pagination) */
.col-footer-btn {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px dashed var(--border-hover);
  color: var(--accent-secondary);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.15s ease;
  margin-top: 0.25rem;
}
.col-footer-btn:hover {
  background: var(--tag-state-bg);
  border-style: solid;
  border-color: var(--accent-secondary);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--card-bg);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Shared modal shell (spec 09 sec 2). */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.modal-overlay.active {
  display: flex;
}
.modal-dialog-box {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: max-width 0.22s ease;
  animation: modalSlide 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Keyboard focus ring when the dialog box itself scrolls (spec 09 axe scrollable-region). */
.modal-dialog-box:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
/* Expanded Table View Mode when any table is opened via View button */
.modal-dialog-box.table-expanded-mode {
  max-width: 920px;
}
@keyframes modalSlide {
  from {
    transform: scale(0.97) translateY(8px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
}
.modal-headline {
  flex: 1;
  min-width: 0;
}
.modal-headline-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.modal-headline h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 6px;
  line-height: 1.3;
}

/* Option 3 Part B: Stylistic Share Pill Inline with #modalOrgTag */
.modal-inline-share-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 99px;
  padding: 0.2rem 0.68rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(5, 150, 105, 0.25);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    filter 0.15s ease;
  white-space: nowrap;
}
.modal-inline-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.35);
  filter: brightness(1.05);
}
.modal-inline-share-btn:active {
  transform: scale(0.95);
}
.modal-inline-share-btn svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.modal-close-trigger {
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  background: var(--strip-bg);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 20px;
  flex-shrink: 0;
  transition:
    border-color 0.15s,
    color 0.15s,
    background-color 0.15s,
    transform 0.1s ease;
}
.modal-close-trigger:hover {
  border-color: var(--border-hover);
  color: var(--text-dark);
  background: var(--bg-color);
}

.share-modal-box {
  max-width: 400px;
}
.share-subtitle {
  margin: 3px 0 0;
  color: var(--text-2);
  font-size: 0.82rem;
}
#shareModal .modal-headline h2 {
  color: var(--accent-hover);
}
#shareModalBody {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.share-card-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 14px 18px;
  background: var(--strip-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}
.share-card-preview::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
}
.share-card-preview .badge {
  align-self: flex-start;
}
.share-card-preview-title {
  color: var(--text-1);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.share-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-rows .drawer-action-btn {
  gap: 12px;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
}
.share-rows .drawer-action-btn svg {
  flex-shrink: 0;
  color: var(--text-muted);
}
.share-copy-btn,
.share-native-btn {
  width: 100%;
}
@media (max-width: 640px) {
  #shareModal {
    align-items: flex-end;
    padding: 0;
  }
  #shareModal .share-modal-box {
    max-width: none;
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
  }
  .share-rows {
    display: none;
  }
}
.channels-modal-box {
  max-width: 400px;
}
.channels-subtitle {
  margin: 3px 0 0;
  color: var(--text-2);
  font-size: 0.82rem;
}
.channels-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.channel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  text-decoration: none;
}
.channel-row:hover {
  border-color: var(--accent-secondary);
}
.channel-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: none;
  color: #fff;
}
.channel-icon svg {
  width: 36px;
  height: 36px;
}
.channel-text {
  flex: 1;
  min-width: 0;
}
.channel-name {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
}
.channel-meta {
  display: block;
  color: var(--text-muted);
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-row > svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--text-muted);
}
.channels-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  text-align: center;
}
html.theme-restoring,
html.theme-restoring * {
  transition: none !important;
}
.vacancy-split-table {
  width: 100%;
  min-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.82rem;
  text-align: center;
}

.vacancy-split-table.compact-info-table {
  min-width: 100%;
  text-align: left;
}

.vacancy-split-table.multi-col-info-table {
  min-width: 460px;
  text-align: left;
}
.vacancy-split-table th {
  background: var(--strip-bg);
  color: var(--text-dark);
  font-weight: 700;
  padding: 9px 14px;
  border-bottom: 2px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  font-size: 0.76rem;
  white-space: nowrap;
}
.vacancy-split-table th:last-child {
  border-right: none;
}
.vacancy-split-table td {
  padding: 9px 14px;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  white-space: nowrap;
}
.vacancy-split-table.compact-info-table th,
.vacancy-split-table.compact-info-table td {
  white-space: normal;
  text-align: left;
  vertical-align: top;
}
.vacancy-split-table.compact-info-table th:first-child,
.vacancy-split-table.compact-info-table td:first-child {
  width: 46%;
}
.vacancy-split-table.multi-col-info-table th,
.vacancy-split-table.multi-col-info-table td {
  white-space: normal;
  text-align: left;
  vertical-align: top;
  min-width: 130px;
}
.vacancy-split-table td:last-child {
  border-right: none;
}
.vacancy-split-table tr:last-child td {
  border-bottom: none;
}
.vacancy-split-table tbody tr:hover td {
  background: var(--strip-bg);
}

.vacancy-split-table.has-row-labels th:first-child,
.vacancy-split-table.has-row-labels td:first-child {
  position: sticky;
  left: 0;
  text-align: left;
  font-weight: 700;
  min-width: 115px;
  max-width: 145px;
  white-space: normal;
  overflow-wrap: break-word;
  vertical-align: top;
  border-right: 2px solid var(--border-color);
}
.vacancy-split-table.has-row-labels th:first-child {
  z-index: 2;
  background: var(--strip-bg);
}
.vacancy-split-table.has-row-labels td:first-child {
  z-index: 1;
  background: var(--card-bg);
}
.vacancy-split-table.has-row-labels tbody tr:hover td:first-child {
  background: var(--strip-bg);
}

.vacancy-split-table tr.total-summary-row td {
  background: var(--tag-state-bg);
  color: var(--tag-state-text);
  font-weight: 800;
  border-top: 2px solid var(--border-color);
}
.vacancy-split-table.has-row-labels tr.total-summary-row td:first-child {
  z-index: 2;
  background: var(--tag-state-bg);
}
.vacancy-split-table.compact-info-table tr.total-summary-row td,
.vacancy-split-table.multi-col-info-table tr.total-summary-row td {
  white-space: normal;
  text-align: left;
}
.deadline-highlight {
  color: var(--badge-closing-text) !important;
  font-weight: 800 !important;
}
/* Aspirant Tools Modal */
.tools-card {
  background: var(--strip-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.tool-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.tool-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 500px) {
  .tool-input-row {
    grid-template-columns: 1fr;
  }
}
.tool-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.tool-input {
  padding: 0.55rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--card-bg);
  color: var(--text-dark);
}
.calc-result-box {
  padding: 0.75rem;
  background: var(--card-bg);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-secondary);
  text-align: center;
}

/* Floating Toast */
.toast-pill-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-dark);
  color: var(--card-bg);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 1005;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast-pill-notification.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
           4. TACTILE :ACTIVE PRESS FEEDBACK (CONSISTENT ACROSS TOUCH & DESKTOP)
           ========================================================================== */
/* Checkbox rows & checkboxes inside the Filter Modal */
label.check-row:active {
  transform: scale(0.98);
}
label.check-row input[type='checkbox']:active {
  transform: scale(0.9);
}

/* Slide-out Drawer Menu category items */

/* Filter Modal Accordion Summary Headers (Constrained to Label Text Width) */
summary.zonal-summary:active .zonal-summary-label {
  transform: scale(0.98);
}

/* Buttons, Quick Picks, Share App Tiles, Drawer Actions & Table View Controls */
.action-btn:active,
.touch-btn:active,
.qp-btn:active,
.drawer-action-btn:active,
.col-footer-btn:active,
.table-control-btn:active,
.reset-cat-btn:active,
.fm-footer button:active {
  transform: scale(0.96);
  opacity: 0.9;
}

/* Compact Icon Buttons & Close Triggers */
.menu-btn:active,
.icon-btn:active,
.fm-close:active,
.modal-close-trigger:active,
.star-btn:active,
.clear-search-btn:active {
  transform: scale(0.92);
  opacity: 0.85;
}

/* Bento Trending Cards & Brand Header */
.bento-card:active {
  transform: scale(0.98);
}
.brand:active {
  transform: scale(0.98);
  opacity: 0.88;
}
/* v3.0.0 components (SP02 sec 2.3-2.7). */
body {
  background:
    radial-gradient(900px 340px at 50% -120px, rgb(234 143 13 / 0.12), transparent 70%), var(--surface);
  color: var(--text-1);
  font-feature-settings: 'tnum';
}
:root[data-theme='dark'] body {
  background:
    radial-gradient(900px 340px at 50% -120px, rgb(245 166 35 / 0.14), transparent 70%), var(--surface);
}
.brand {
  text-decoration: none;
  letter-spacing: -0.03em;
  padding: 4px 8px;
}
.brand span {
  color: var(--accent);
}
.brand:hover span {
  color: var(--accent-hover);
}
.action-btn.active-tracker {
  transition: none;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  padding: var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: inherit;
  transition:
    transform var(--duration-normal) var(--ease),
    box-shadow var(--duration-normal) var(--ease),
    border-color var(--duration-normal) var(--ease);
}
@media (min-width: 1025px) {
  .column .card {
    min-height: 109px;
  }
}
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14%;
  bottom: 14%;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--rail, transparent);
}
.rail-jobs {
  --rail: var(--pillar-jobs);
}
.rail-admit {
  --rail: var(--pillar-admit);
}
.rail-results {
  --rail: var(--pillar-results);
}
.rail-misc {
  --rail: var(--pillar-misc);
}
@media (prefers-reduced-motion: no-preference) {
  .card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
  }
}
.card-header-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}
.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  min-height: 2.7em;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.card-title-link {
  color: inherit;
  text-decoration: none;
}
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}
.card .star-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #c5cedb;
}
.card .star-btn:hover {
  background: var(--surface-sunken);
  color: #b45309;
}
.card .star-btn.active {
  color: #eab308;
}
/* Touch pointers latch :hover on the last-tapped card until the next tap, so the hover paint has to
   be dropped for coarse/no-hover pointers: otherwise the star stays brown on a sunken tile and the
   card keeps the --border-strong ring. .active (gold) still wins over the hover reset. */
@media (hover: none), (pointer: coarse) {
  .card:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
  }
  .card .star-btn:hover {
    background: transparent;
  }
  .card .star-btn:hover:not(.active) {
    color: #c5cedb;
  }
}
.card-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}
.chip-new {
  background: var(--st-new-bg);
  color: var(--text-1);
}
.chip-closing {
  background: var(--st-closing-bg);
  color: var(--text-1);
}
.chip-closed {
  background: var(--surface-sunken);
  color: var(--text-2);
}
.chip-delayed {
  background: var(--badge-delayed-bg);
  color: var(--text-1);
}
.chip-trending {
  background: color-mix(in srgb, var(--focus) 12%, var(--surface-raised));
  color: var(--focus);
}
.chip-hub {
  background: var(--surface-sunken);
  color: var(--text-2);
}
.badge {
  border-radius: 999px;
  font-size: 0.72rem;
}
.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--surface-raised);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--border));
  border-radius: var(--radius-md);
  color: inherit;
  box-shadow: var(--shadow-md);
}
.bento-card:first-child {
  padding: 12px 16px 10px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #fff7ed, var(--surface-raised));
  box-shadow: var(--shadow-lg);
}
:root[data-theme='dark'] .bento-card:first-child {
  background: linear-gradient(135deg, #2a1c0a, var(--surface-raised));
}
.bento-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bento-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.bento-card:first-child .bento-title {
  font-size: 1.125rem;
  line-height: 1.25;
}
.bento-meta {
  margin-top: auto;
  color: var(--text-2);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.updated-pulse {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .updated-pulse {
    animation: v3-pulse 2.4s ease-in-out infinite;
  }
}
@keyframes v3-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
.table-box {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}
.table-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 10px 14px;
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--border);
}
.table-box-title {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.box-chip {
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.table-box .table-scroll {
  overflow-x: auto;
}
.table-box .table-scroll:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.table-box table {
  width: 100%;
  border-collapse: collapse;
}
.table-box th,
.table-box td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.875rem;
}
.table-box th {
  background: var(--surface);
  color: var(--text-2);
  font-weight: 600;
}
.touch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.touch-btn-primary {
  background: #1d4ed8;
  border: 1px solid #1d4ed8;
  color: #ffffff;
}
.touch-btn-primary:hover {
  background: #1e40af;
  border-color: #1e40af;
  color: #ffffff;
}
.touch-btn-secondary {
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  color: var(--text-1);
}
.empty-state .touch-btn-secondary {
  background: var(--surface-sunken);
  border-color: var(--border);
}
.empty-state .touch-btn {
  display: flex;
  width: fit-content;
  margin: 12px auto 0;
}
.touch-btn[href] {
  text-decoration: none;
}
.exam-actions-card,
.exam-facts-card {
  padding: var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.exam-actions-card h2,
.exam-facts-card h2 {
  margin-bottom: var(--space-3);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.exam-action-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}
.exam-action-list > :only-child {
  grid-column: 1 / -1;
}
.exam-action-btn,
.exam-secondary-actions .exam-secondary-btn {
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 750;
}
.exam-action-btn {
  min-height: 42px;
  padding: 8px 10px;
}
.exam-action-primary {
  border-color: var(--accent-secondary);
  background: var(--accent-secondary);
  color: #ffffff;
}
.exam-action-primary:hover {
  border-color: var(--accent-secondary-hover);
  background: var(--accent-secondary-hover);
}
.exam-action-document {
  border-color: var(--pillar-admit);
  background: var(--pillar-admit);
  color: #ffffff;
}
.exam-action-document:hover {
  border-color: #0b5f54;
  background: #0b5f54;
}
.exam-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.exam-share-btn {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--accent-secondary);
}
.exam-share-btn:hover {
  background: #dbeafe;
}
.exam-track-btn {
  justify-content: center;
  gap: 7px;
  line-height: 1;
  border: 1px solid #f1e3c4;
  background: #fffdf7;
  color: #8a5a12;
}
.exam-track-btn svg {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.exam-track-btn:hover {
  border-color: #e6d3a7;
  background: #fff9eb;
}
.exam-track-btn[aria-pressed='true'],
.exam-track-btn.active {
  border-color: #eab308;
  background: #fff3d6;
  color: #92400e;
}
.exam-track-btn[aria-pressed='true'] svg,
.exam-track-btn.active svg {
  fill: #eab308;
  stroke: none;
}
:root[data-theme='dark'] .exam-track-btn {
  border-color: color-mix(in srgb, var(--pillar-misc) 34%, var(--border));
  background: color-mix(in srgb, var(--pillar-misc) 10%, var(--surface-raised));
  color: #fbbf24;
}
:root[data-theme='dark'] .exam-track-btn[aria-pressed='true'],
:root[data-theme='dark'] .exam-track-btn.active {
  border-color: var(--pillar-misc);
  background: color-mix(in srgb, var(--pillar-misc) 20%, var(--surface-raised));
  color: #fbbf24;
}
.side-star {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.side-star.active svg {
  color: #eab308;
}
.exam-highlights ul {
  display: grid;
  gap: 6px;
  padding-left: 20px;
}
.exam-highlights h2 {
  margin-bottom: var(--space-2);
  font-size: 1.05rem;
}
.exam-related {
  grid-area: related;
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
}
.exam-related h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--text-1);
  font-size: 0.95rem;
}
.exam-related h2::before {
  content: '';
  width: 4px;
  height: 16px;
  border-radius: 2px;
  background: var(--pillar-jobs);
}
.exam-related ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.exam-related li {
  position: relative;
  padding-left: 15px;
  line-height: 1.5;
}
.exam-related li::before {
  content: '';
  position: absolute;
  top: 0.58em;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pillar-jobs);
  opacity: 0.55;
}
.exam-related a {
  color: var(--focus);
  font-size: 0.88rem;
  text-underline-offset: 2px;
}
.exam-brief {
  padding: var(--space-4);
  background: var(--surface-sunken);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-2);
}
.exam-facts-list {
  display: grid;
  gap: var(--space-2);
}
.exam-fact {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
}
.exam-fact dt {
  color: var(--text-2);
  font-size: 0.8125rem;
}
.exam-fact dd {
  margin: 0;
  color: var(--text-1);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-state {
  background: var(--tag-state-bg);
  color: var(--tag-state-text);
}
/* v3.2.0 menu refresh: retained three-bar trigger, flat rows, current-page state, drawer header. */
:root {
  --drawer-top: 65px;
}
.menu-btn .icon-menu {
  transform-origin: 50% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .menu-btn .icon-menu {
    transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
  }
}
.menu-btn[aria-expanded='true'] {
  background: rgb(217 119 6 / 0.22);
  border-color: rgb(217 119 6 / 0.65);
  color: #92400e;
}
:root[data-theme='dark'] .menu-btn[aria-expanded='true'] {
  background: rgb(245 158 11 / 0.26);
  border-color: rgb(245 158 11 / 0.65);
  color: #fbbf24;
}
.menu-btn[aria-expanded='true'] .icon-menu {
  transform: rotate(180deg);
}
.drawer-overlay {
  inset: var(--drawer-top) 0 0;
}
.category-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 16px 14px 12px 18px;
}
.drawer-head h2 {
  color: var(--text-1);
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--text-2);
  cursor: pointer;
  transition:
    background-color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    color var(--duration-fast) ease,
    transform 100ms ease;
}
.drawer-close:hover {
  background: var(--surface-sunken);
  border-color: var(--border-strong);
  color: var(--text-1);
}
.drawer-close:active {
  transform: scale(0.94);
}
.drawer-body {
  flex: 1;
  min-height: 0;
  padding: 6px 10px 14px;
  gap: 2px;
}
.drawer-footer {
  flex-shrink: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
}
.drawer-action-btn {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  text-decoration: none;
}
.menu-cat-item {
  position: relative;
  gap: 12px;
  min-height: 50px;
  padding: 8px 10px 8px 18px;
  border-radius: 11px;
  text-decoration: none;
}
.menu-cat-item::before {
  content: '';
  position: absolute;
  inset: 11px auto 11px 4px;
  width: 3px;
  background: var(--tint);
}
.menu-cat-item[data-category='ALL'] {
  --tint: var(--accent);
}
.menu-cat-item[data-category='Latest Jobs'] {
  --tint: var(--pillar-jobs);
}
.menu-cat-item[data-category='Admit Cards'] {
  --tint: var(--pillar-admit);
}
.menu-cat-item[data-category='Results'] {
  --tint: var(--pillar-results);
}
.menu-cat-item[data-category='Syllabus'] {
  --tint: var(--pillar-misc);
}
.menu-cat-item[data-category='Admissions'] {
  --tint: var(--pillar-misc);
}
.menu-cat-item[data-category='Answer Keys'] {
  --tint: var(--pillar-results);
}
.menu-cat-item[data-category='Important'] {
  --tint: var(--pillar-misc);
}
.menu-cat-item:hover {
  background: color-mix(in srgb, var(--tint, var(--accent)) 9%, var(--surface-raised));
  border-color: color-mix(in srgb, var(--tint, var(--accent)) 30%, var(--border));
}
.menu-cat-item:active {
  transform: scale(0.995);
}
.menu-cat-item[aria-current='page'] {
  background: color-mix(in srgb, var(--tint, var(--accent)) 10%, var(--surface-raised));
  border-color: color-mix(in srgb, var(--tint, var(--accent)) 28%, var(--border));
}
.menu-cat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  background: color-mix(in srgb, var(--tint, var(--accent)) 11%, transparent);
  font-size: 1.06rem;
  line-height: 1;
  text-align: center;
}
:root[data-theme='dark'] .menu-cat-icon {
  background: color-mix(in srgb, var(--tint, var(--accent)) 16%, transparent);
}
.menu-cat-name {
  flex: 1;
  min-width: 0;
  color: var(--text-1);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.3;
}
.menu-cat-item[aria-current='page'] .menu-cat-name {
  color: var(--text-1);
  font-weight: 700;
}
.menu-cat-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  height: 24px;
  padding: 0 8px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.menu-cat-count.is-zero {
  background: transparent;
  color: var(--text-2);
  font-weight: 600;
}
.menu-cat-item[aria-current='page'] .menu-cat-count {
  border-color: color-mix(in srgb, var(--tint, var(--accent)) 34%, var(--border));
  background: var(--surface-raised);
  color: var(--text-1);
}
.filter-state-clear,
.hub-filter-link {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--accent-secondary);
  font-size: 0.74rem;
  font-weight: 650;
  text-decoration: none;
}
.filter-state-clear {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  font-family: inherit;
  cursor: pointer;
}
.filter-state-clear:hover,
.hub-filter-link:hover {
  border-color: var(--accent-secondary);
}
.hub-filter-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-sunken);
  color: var(--text-2);
  font-size: 0.78rem;
}
.hub-filter-notice strong {
  color: var(--text-1);
}
.hub-sibling-links a {
  color: var(--focus);
}
footer,
footer p,
footer a,
footer li,
footer summary,
.footer-col p,
.footer-col a,
.footer-col li,
.footer-col summary,
.footer-disclaimer {
  color: var(--text-2);
}
footer h2 {
  color: var(--text-1);
}
.modal-close-trigger {
  color: var(--text-2);
}
.fm-section-title,
.zonal-summary-label {
  color: var(--text-2);
}
