/* JROTC Vacancy Explorer 2.7.0 */
body.jrotc-vacancy-page {
  --jv-black: #0b0b0c;
  --jv-charcoal: #1b1d20;
  --jv-gold: #f2be2d;
  --jv-gold-dark: #9b6f00;
  --jv-gold-soft: #fff7d9;
  --jv-green: #19743a;
  --jv-green-soft: #e7f6eb;
  --jv-red: #9f2b2b;
  --jv-red-soft: #fdeaea;
  --jv-blue: #24527a;
  --jv-page: #f4f5f6;
  --jv-surface: #ffffff;
  --jv-border: #dfe3e7;
  --jv-border-strong: #c7cdd3;
  --jv-text: #20252b;
  --jv-muted: #66707a;
  --jv-shadow-sm: 0 4px 14px rgba(22, 28, 34, 0.07);
  --jv-shadow-md: 0 12px 34px rgba(22, 28, 34, 0.12);
  --jv-sticky-top: 10px;
}

body.jrotc-vacancy-page .fusion-page-title-bar,
body.jrotc-vacancy-page .fusion-page-title-wrapper,
body.jrotc-vacancy-page #main .fusion-sidebar,
body.jrotc-vacancy-page #main #sidebar,
body.jrotc-vacancy-page #main .sidebar {
  display: none !important;
}

body.jrotc-vacancy-page #main #content,
body.jrotc-vacancy-page #main .fusion-layout-column.fusion-main-column {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
}

body.jrotc-vacancy-page #main,
body.jrotc-vacancy-page #main .fusion-row {
  background: var(--jv-page);
}

body.jrotc-vacancy-page #main .fusion-row {
  width: 100% !important;
  max-width: 1700px !important;
}

.jv-app,
.jv-app *,
.jv-app *::before,
.jv-app *::after {
  box-sizing: border-box;
}

.jv-app [hidden] {
  display: none !important;
}

.jv-app {
  width: 100%;
  max-width: 1620px;
  margin: 0 auto;
  padding: 24px clamp(14px, 2vw, 34px) 52px;
  color: var(--jv-text);
  font-family: "Segoe UI", Arial, sans-serif;
}

.jv-app button,
.jv-app input,
.jv-app select,
.jv-app a {
  font: inherit;
}

.jv-app button,
.jv-app input,
.jv-app select {
  float: none !important;
  margin: 0 !important;
  text-transform: none;
}

.jv-app select {
  display: block !important;
  max-width: none !important;
}

.jv-app a[aria-busy="true"] {
  opacity: 0.72;
  pointer-events: none;
  cursor: wait;
}

.jv-app svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jv-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(480px, 0.9fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 18px;
}

.jv-hero__heading {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.jv-hero__icon {
  display: grid;
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
  place-items: center;
  color: var(--jv-gold);
  background: var(--jv-black);
  border: 2px solid var(--jv-gold);
  border-radius: 50%;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.18);
}

.jv-hero__icon svg {
  width: 35px;
  height: 35px;
}

.jv-hero h1 {
  margin: 0 0 6px;
  color: var(--jv-black);
  font-size: clamp(2.1rem, 3vw, 3.35rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.jv-hero p {
  max-width: 760px;
  margin: 0;
  color: #343a40;
  font-size: clamp(0.98rem, 1.08vw, 1.14rem);
  line-height: 1.5;
}

.jv-apply {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding: 18px 22px;
  color: #fff;
  background: linear-gradient(135deg, #1c1d1f 0%, #080809 100%);
  border: 1px solid #000;
  border-top: 3px solid var(--jv-gold);
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.17);
}

.jv-apply__badge {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #111;
  background: linear-gradient(180deg, #ffe17c, var(--jv-gold));
  border-radius: 50%;
}

.jv-apply__badge svg {
  width: 25px;
  height: 25px;
}

.jv-apply__copy {
  display: grid;
  gap: 4px;
}

.jv-apply__copy strong {
  color: var(--jv-gold);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.jv-apply__copy span {
  color: rgba(255, 255, 255, 0.79);
  font-size: 0.88rem;
  line-height: 1.4;
}

.jv-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.jv-button:hover,
.jv-button:focus-visible {
  transform: translateY(-1px);
  outline: 3px solid rgba(36, 82, 122, 0.28);
  outline-offset: 2px;
}

.jv-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.jv-button--gold {
  color: #111 !important;
  background: linear-gradient(180deg, #ffd765 0%, var(--jv-gold) 100%);
  border-color: #d5a513;
  box-shadow: 0 5px 14px rgba(202, 150, 0, 0.21);
}

.jv-button--gold:hover,
.jv-button--gold:focus-visible {
  color: #fff !important;
  background: #111;
  border-color: var(--jv-gold);
}

.jv-button--black {
  color: #fff;
  background: var(--jv-black);
  border-color: var(--jv-black);
}

.jv-button--black:hover,
.jv-button--black:focus-visible {
  color: #111;
  background: var(--jv-gold);
  border-color: var(--jv-gold-dark);
}

.jv-button--outline {
  color: var(--jv-text);
  background: #fff;
  border-color: var(--jv-border-strong);
}

.jv-button--outline:hover,
.jv-button--outline:focus-visible {
  color: #111;
  background: var(--jv-gold-soft);
  border-color: var(--jv-gold-dark);
}

.jv-filter-shell {
  position: sticky;
  top: var(--jv-sticky-top);
  z-index: 90;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--jv-border);
  border-top: 3px solid var(--jv-gold);
  border-radius: 13px;
  box-shadow: var(--jv-shadow-md);
  isolation: isolate;
  overflow: visible;
}

.jv-filter-topline {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 16px;
  color: #56606a;
  background: #fafafa;
  border-bottom: 1px solid #eceff1;
  border-radius: 10px 10px 0 0;
  font-size: 0.79rem;
}

.jv-filter-topline span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.jv-filter-topline svg {
  color: var(--jv-gold-dark);
}

.jv-text-button {
  padding: 3px 0;
  color: #805d00;
  background: none;
  border: 0;
  font-weight: 750;
  text-decoration: underline;
  cursor: pointer;
}

.jv-text-button:disabled {
  color: #9ca2a8;
  cursor: default;
}

.jv-filter-bar {
  display: grid;
  grid-template-columns: minmax(300px, 1.45fr) minmax(0, 2.55fr);
  gap: 14px;
  align-items: end;
  padding: 14px 16px 15px;
}

.jv-filter-drawer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  min-width: 0;
}

.jv-core-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(145px, 1fr));
  gap: 12px;
  min-width: 0;
}

.jv-filter-buttons {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.jv-filter-buttons .jv-button {
  min-height: 43px;
}

.jv-chevron {
  transition: transform 0.18s ease;
}

.jv-more-open .jv-chevron {
  transform: rotate(180deg);
}

.jv-mobile-filter-toggle {
  display: none;
}

.jv-filter-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  color: #111;
  background: var(--jv-gold);
  border-radius: 999px;
  font-size: 0.72rem;
}

.jv-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.jv-field label {
  color: #30363c;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1.2;
  text-transform: uppercase;
}

.jv-field input,
.jv-field select {
  width: 100%;
  min-height: 43px;
  padding: 9px 12px;
  color: #20252b;
  background: #fff;
  border: 1px solid var(--jv-border-strong);
  border-radius: 7px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.025);
  font-size: 0.9rem;
}

.jv-field input:focus,
.jv-field select:focus {
  border-color: var(--jv-gold-dark);
  outline: 3px solid rgba(242, 190, 45, 0.22);
}

.jv-search-control {
  position: relative;
}

.jv-search-control input {
  padding-right: 42px;
}

.jv-search-control svg {
  position: absolute;
  top: 50%;
  right: 13px;
  color: #4f5861;
  transform: translateY(-50%);
  pointer-events: none;
}

.jv-advanced-panel {
  position: relative;
  margin: 0 16px 14px;
  padding: 17px;
  background: #fff;
  border: 1px solid #d8dde2;
  border-top: 3px solid var(--jv-gold);
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(20, 27, 34, 0.08);
}

.jv-advanced-panel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3e7ea;
}

.jv-advanced-panel__heading > div {
  display: grid;
  gap: 2px;
}

.jv-advanced-panel__heading strong {
  color: #1c2024;
  font-size: 0.95rem;
  font-weight: 850;
}

.jv-advanced-panel__heading span {
  color: var(--jv-muted);
  font-size: 0.82rem;
}

.jv-advanced-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.jv-advanced-grid > .jv-field {
  min-width: 0;
  padding: 12px;
  background: #f7f8f9;
  border: 1px solid #e1e5e8;
  border-radius: 9px;
}

.jv-advanced-grid > .jv-field select {
  background-color: #fff;
}

.jv-acronym-guide {
  margin-top: 12px;
  color: #4b545d;
  background: #fff;
  border: 1px solid #e2e5e8;
  border-radius: 8px;
}

.jv-acronym-guide summary {
  padding: 9px 12px;
  color: #2c3238;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.jv-acronym-guide > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  padding: 0 12px 11px;
  font-size: 0.79rem;
}

.jv-active-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 14px;
  font-size: 0.82rem;
}

.jv-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.jv-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px 5px 10px;
  color: #30363c;
  background: #f1f3f5;
  border: 1px solid #e0e4e8;
  border-radius: 999px;
}

.jv-filter-chip button {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  padding: 0;
  color: #5a636d;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.jv-filter-chip button:hover,
.jv-filter-chip button:focus-visible {
  color: #fff;
  background: #111;
}

.jv-results-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--jv-border);
  border-radius: 13px;
  box-shadow: var(--jv-shadow-sm);
}

.jv-results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--jv-border);
}

.jv-count-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jv-count-block__icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #111;
  background: linear-gradient(180deg, #ffe17b, var(--jv-gold));
  border-radius: 50%;
}

.jv-count-block__icon svg {
  width: 26px;
  height: 26px;
}

.jv-count-block h2 {
  margin: 0;
  color: #151719;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.jv-count-block h2 strong {
  margin-right: 6px;
  font-size: 1.8rem;
  line-height: 1;
}

.jv-count-block p {
  margin: 4px 0 0;
  color: var(--jv-muted);
  font-size: 0.82rem;
}

.jv-results-actions {
  display: flex;
  align-items: end;
  gap: 12px;
}

.jv-field--sort {
  width: min(250px, 31vw);
}

.jv-table-heading-note {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 14px;
  color: rgba(255, 255, 255, 0.82);
  background: #18191b;
  border-bottom: 1px solid #2b2d30;
  font-size: 0.76rem;
}

.jv-table-heading-note svg {
  color: var(--jv-gold);
}

.jv-table-scroll {
  position: relative;
  max-height: min(68vh, 680px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #aeb5bc #f1f3f5;
}

.jv-table-scroll:focus-visible {
  outline: 3px solid rgba(36, 82, 122, 0.28);
  outline-offset: -3px;
}

.jv-table {
  width: 100%;
  min-width: 1160px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.jv-table thead th {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 0;
  color: #fff;
  background: linear-gradient(180deg, #121315 0%, #070708 100%);
  border-right: 1px solid #282a2d;
  border-bottom: 2px solid var(--jv-gold);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.16);
  text-align: left;
}

.jv-table thead th:first-child {
  width: 21%;
}

.jv-table thead th:nth-child(2) { width: 10%; }
.jv-table thead th:nth-child(3) { width: 11%; }
.jv-table thead th:nth-child(4) { width: 6%; }
.jv-table thead th:nth-child(5) { width: 9%; }
.jv-table thead th:nth-child(6) { width: 7%; }
.jv-table thead th:nth-child(7) { width: 10%; }
.jv-table thead th:nth-child(8) { width: 10%; }
.jv-table thead th:nth-child(9) { width: 9%; }
.jv-table thead th:nth-child(10) { width: 7%; }

.jv-table thead button {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.jv-table thead button:hover,
.jv-table thead button:focus-visible {
  color: var(--jv-gold);
  background: #202225;
  outline: 2px solid var(--jv-gold);
  outline-offset: -2px;
}

.jv-table tbody td {
  padding: 10px 11px;
  color: #30363c;
  background: #fff;
  border-right: 1px solid #edf0f2;
  border-bottom: 1px solid #e4e7ea;
  font-size: 0.84rem;
  line-height: 1.35;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.jv-table tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.jv-table tbody tr:hover td {
  background: #fff9e8;
}

.jv-school-cell {
  display: grid;
  gap: 3px;
}

.jv-school-cell strong {
  color: #171a1d;
  font-size: 0.9rem;
  font-weight: 800;
}

.jv-school-cell small {
  color: #737c85;
  font-size: 0.72rem;
}

.jv-status-pill {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  padding: 4px 9px;
  color: #35404a;
  background: #edf0f2;
  border: 1px solid #d9dee2;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  line-height: 1;
}

.jv-status-pill[data-status*="open"] {
  color: var(--jv-green);
  background: var(--jv-green-soft);
  border-color: #c8ebd1;
}

.jv-status-pill[data-status*="filled"],
.jv-status-pill[data-status*="closed"] {
  color: var(--jv-red);
  background: var(--jv-red-soft);
  border-color: #f3cccc;
}

.jv-view-button {
  min-width: 70px;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 0.78rem;
}

.jv-card-list {
  display: none;
}

.jv-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 64px;
  padding: 10px 16px;
  background: #fafafa;
  border-top: 1px solid var(--jv-border);
}

.jv-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.jv-page-button {
  display: grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  padding: 0 8px;
  color: #30363c;
  background: #fff;
  border: 1px solid #d8dde1;
  border-radius: 6px;
  font-weight: 750;
  cursor: pointer;
}

.jv-page-button[aria-current="page"] {
  color: #fff;
  background: #111;
  border-color: #111;
  box-shadow: inset 0 -3px 0 var(--jv-gold);
}

.jv-page-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.jv-page-size {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5c6670;
  font-size: 0.8rem;
}

.jv-page-size select {
  min-height: 36px;
  padding: 6px 28px 6px 9px;
  background: #fff;
  border: 1px solid #d8dde1;
  border-radius: 6px;
}

.jv-state {
  display: grid;
  min-height: 220px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 30px;
  color: #56606a;
  text-align: center;
}

.jv-state strong {
  color: #1e2328;
  font-size: 1.05rem;
}

.jv-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #e1e4e7;
  border-top-color: var(--jv-gold-dark);
  border-radius: 50%;
  animation: jv-spin 0.8s linear infinite;
}

@keyframes jv-spin {
  to { transform: rotate(360deg); }
}

.jv-resources {
  margin-top: 22px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--jv-border);
  border-radius: 13px;
  box-shadow: var(--jv-shadow-sm);
}

.jv-resources__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.jv-resources__heading h2 {
  margin: 0;
  color: #171a1d;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jv-resources__heading p {
  margin: 0;
  color: var(--jv-muted);
  font-size: 0.86rem;
}

.jv-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.jv-resource-card {
  display: grid;
  min-height: 150px;
  align-content: start;
  gap: 8px;
  padding: 17px;
  color: #222 !important;
  background: #fff;
  border: 1px solid #e0e4e7;
  border-top: 3px solid var(--jv-gold);
  border-radius: 9px;
  text-decoration: none !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.jv-resource-card:hover,
.jv-resource-card:focus-visible {
  color: #111 !important;
  border-color: var(--jv-gold-dark);
  box-shadow: 0 9px 22px rgba(22, 28, 34, 0.1);
  transform: translateY(-2px);
  outline: 3px solid rgba(36, 82, 122, 0.22);
  outline-offset: 2px;
}

.jv-resource-card strong {
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jv-resource-card span {
  color: #5f6871;
  font-size: 0.82rem;
  line-height: 1.48;
}

.jv-resource-card em {
  margin-top: auto;
  color: #7d5c00;
  font-size: 0.81rem;
  font-style: normal;
  font-weight: 800;
}

.jv-resource-card--support {
  color: #fff !important;
  background: linear-gradient(135deg, #1c1d1f, #080809);
  border-color: #111;
}

.jv-resource-card--support strong,
.jv-resource-card--support em {
  color: var(--jv-gold);
}

.jv-resource-card--support span {
  color: rgba(255, 255, 255, 0.76);
}

.jv-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.jv-modal[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.jv-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 12, 0.72);
  backdrop-filter: blur(4px);
}

.jv-modal__panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(90vh, 900px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #111;
  border-top: 5px solid var(--jv-gold);
  border-radius: 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  transform: translateY(16px) scale(0.985);
  transition: transform 0.18s ease;
}

.jv-modal[aria-hidden="false"] .jv-modal__panel {
  transform: translateY(0) scale(1);
}

.jv-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 19px;
  color: #fff;
  background: linear-gradient(135deg, #202225 0%, #090a0b 100%);
}

.jv-modal__heading-copy {
  min-width: 0;
}

.jv-modal__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--jv-gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.jv-modal__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.jv-modal__title-row h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  font-weight: 900;
  line-height: 1.12;
}

.jv-modal__header p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.jv-icon-button {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9px;
  cursor: pointer;
}

.jv-icon-button:hover,
.jv-icon-button:focus-visible {
  color: #111;
  background: var(--jv-gold);
  border-color: var(--jv-gold);
  outline: 3px solid rgba(255, 255, 255, 0.25);
}

.jv-modal__body {
  overflow: auto;
  padding: 22px 24px 26px;
  background: #f6f7f8;
}

.jv-modal-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.jv-summary-card {
  min-height: 84px;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #dde2e6;
  border-radius: 10px;
  box-shadow: 0 2px 7px rgba(20, 27, 34, 0.04);
}

.jv-summary-card span {
  display: block;
  margin-bottom: 6px;
  color: #747d86;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.jv-summary-card strong {
  color: #171a1d;
  font-size: 0.94rem;
  line-height: 1.35;
}

.jv-modal-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.jv-detail-section {
  padding: 17px;
  background: #fff;
  border: 1px solid #dde2e6;
  border-radius: 11px;
}

.jv-detail-section + .jv-detail-section {
  margin-top: 12px;
}

.jv-detail-section h3 {
  margin: 0 0 13px;
  padding-bottom: 9px;
  color: #171a1d;
  border-bottom: 1px solid #e4e7ea;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jv-detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}

.jv-detail {
  margin: 0;
  min-width: 0;
}

.jv-detail--wide {
  grid-column: 1 / -1;
}

.jv-detail dt {
  margin: 0 0 4px;
  color: #777f87;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.jv-detail dd {
  margin: 0;
  color: #242a30;
  font-size: 0.88rem;
  line-height: 1.48;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.jv-detail dd a {
  color: var(--jv-blue);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jv-contact-card {
  position: sticky;
  top: 0;
  padding: 18px;
  color: #fff;
  background: linear-gradient(145deg, #1e2022 0%, #0a0b0c 100%);
  border: 1px solid #111;
  border-top: 4px solid var(--jv-gold);
  border-radius: 11px;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.14);
}

.jv-contact-card h3 {
  margin: 0 0 5px;
  color: var(--jv-gold);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jv-contact-card > p {
  margin: 0 0 15px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.45;
}

.jv-contact-row {
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.jv-contact-row span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.jv-contact-row strong,
.jv-contact-row a {
  color: #fff !important;
  font-size: 0.88rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.jv-contact-row a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jv-remarks-section {
  margin-top: 14px;
  padding: 17px;
  background: #fffdf4;
  border: 1px solid #eadba6;
  border-left: 5px solid var(--jv-gold);
  border-radius: 10px;
}

.jv-remarks-section h3 {
  margin: 0 0 9px;
  color: #2b2c2e;
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jv-remarks-section p {
  margin: 0;
  color: #41474d;
  font-size: 0.88rem;
  line-height: 1.58;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.jv-remarks-section a {
  color: var(--jv-blue);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jv-contact-actions {
  display: grid;
  gap: 8px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.jv-contact-action {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  color: #fff !important;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
}

.jv-contact-action:hover,
.jv-contact-action:focus-visible {
  color: #111 !important;
  background: #fff;
  border-color: #fff;
  outline: 3px solid rgba(242, 190, 45, 0.3);
  outline-offset: 2px;
}

.jv-contact-action--gold {
  color: #111 !important;
  background: var(--jv-gold);
  border-color: var(--jv-gold);
}

.jv-contact-action--gold:hover,
.jv-contact-action--gold:focus-visible {
  color: #111 !important;
  background: #fff1b6;
  border-color: #fff1b6;
}

.jv-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
  background: #fff;
  border-top: 1px solid var(--jv-border);
}

.jv-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1000000;
  max-width: min(390px, calc(100vw - 32px));
  padding: 12px 15px;
  color: #fff;
  background: #111;
  border-left: 4px solid var(--jv-gold);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  font-size: 0.86rem;
  font-weight: 700;
}

.jv-server-error {
  display: grid;
  gap: 6px;
  margin: 30px auto;
  padding: 18px;
  color: #7e2020;
  background: #fff1f1;
  border: 1px solid #efcaca;
  border-left: 5px solid #aa2f2f;
  border-radius: 8px;
}

body.jv-modal-open {
  overflow: hidden;
}

@media (max-width: 1260px) {
  .jv-hero {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  }

  .jv-filter-bar {
    grid-template-columns: minmax(270px, 1.1fr) minmax(0, 2.4fr);
  }

  .jv-filter-drawer {
    grid-template-columns: 1fr;
  }

  .jv-filter-buttons {
    justify-content: flex-start;
  }

  .jv-advanced-grid {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
  }
}

@media (max-width: 1024px) {
  .jv-app {
    padding-top: 18px;
  }

  .jv-hero {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .jv-apply {
    min-height: 82px;
  }

  .jv-filter-bar {
    grid-template-columns: 1fr;
  }

  .jv-filter-drawer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .jv-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jv-modal-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.jrotc-vacancy-page {
    --jv-sticky-top: 6px;
  }

  .jv-app {
    padding: 14px 10px 36px;
  }

  .jv-hero__heading {
    align-items: flex-start;
    gap: 12px;
  }

  .jv-hero__icon {
    flex-basis: 54px;
    width: 54px;
    height: 54px;
  }

  .jv-hero__icon svg {
    width: 28px;
    height: 28px;
  }

  .jv-hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .jv-apply {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 15px;
    border-radius: 12px;
  }

  .jv-apply .jv-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .jv-filter-shell {
    border-radius: 10px;
  }

  .jv-filter-topline {
    display: none;
  }

  .jv-filter-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px;
  }

  .jv-field--search label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
  }

  .jv-mobile-filter-toggle {
    display: inline-flex;
    align-self: end;
    min-width: 96px;
  }

  .jv-filter-drawer {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    padding-top: 10px;
    border-top: 1px solid #e5e8eb;
  }

  .jv-filters-open .jv-filter-drawer {
    display: grid;
  }

  .jv-core-filters {
    grid-template-columns: 1fr;
  }

  .jv-filter-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .jv-filter-buttons .jv-button {
    width: 100%;
  }

  .jv-advanced-panel {
    position: relative;
    margin: 0 10px 10px;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(20, 27, 34, 0.10);
  }

  .jv-advanced-grid {
    grid-template-columns: 1fr;
  }

  .jv-active-filters {
    align-items: flex-start;
    padding: 0 10px 10px;
  }

  .jv-results-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
  }

  .jv-results-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .jv-field--sort {
    width: auto;
  }

  .jv-table-heading-note,
  .jv-table-scroll {
    display: none;
  }

  .jv-card-list {
    display: grid;
    gap: 10px;
    padding: 10px;
    background: #f4f5f6;
  }

  .jv-card {
    display: grid;
    gap: 13px;
    padding: 15px;
    background: #fff;
    border: 1px solid #dfe3e6;
    border-top: 3px solid var(--jv-gold);
    border-radius: 10px;
    box-shadow: 0 4px 13px rgba(20, 27, 34, 0.06);
  }

  .jv-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .jv-card h3 {
    margin: 0;
    color: #171a1d;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.3;
  }

  .jv-card__location {
    margin: 4px 0 0;
    color: #69727b;
    font-size: 0.82rem;
  }

  .jv-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .jv-card__meta > div {
    padding: 9px;
    background: #f7f8f9;
    border: 1px solid #e7eaed;
    border-radius: 7px;
  }

  .jv-card__meta span {
    display: block;
    margin-bottom: 4px;
    color: #78818a;
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .jv-card__meta strong {
    color: #24292e;
    font-size: 0.84rem;
  }

  .jv-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .jv-card__actions small {
    color: #6d767f;
    font-size: 0.75rem;
  }

  .jv-pagination-bar {
    flex-direction: column;
    gap: 12px;
  }

  .jv-page-size {
    order: -1;
  }

  .jv-resources {
    padding: 16px;
  }

  .jv-resources__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .jv-resource-grid {
    grid-template-columns: 1fr;
  }

  .jv-resource-card {
    min-height: 0;
  }

  .jv-modal {
    padding: 0;
  }

  .jv-modal__panel {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-top: 4px solid var(--jv-gold);
    border-radius: 0;
  }

  .jv-modal__header {
    padding: 18px 16px;
  }

  .jv-modal__body {
    padding: 14px;
  }

  .jv-modal-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jv-modal-content-grid {
    grid-template-columns: 1fr;
  }

  .jv-contact-card {
    position: static;
  }

  .jv-detail-list {
    grid-template-columns: 1fr;
  }

  .jv-modal__actions {
    display: grid;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .jv-modal__actions .jv-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .jv-results-actions {
    grid-template-columns: 1fr;
  }

  .jv-results-actions .jv-button {
    width: 100%;
  }

  .jv-filter-buttons {
    grid-template-columns: 1fr;
  }

  .jv-modal-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jv-app *,
  .jv-app *::before,
  .jv-app *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body.jv-printing * {
    visibility: hidden !important;
  }

  body.jv-printing #jvModal,
  body.jv-printing #jvModal * {
    visibility: visible !important;
  }

  body.jv-printing #jvModal {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0 !important;
  }

  body.jv-printing .jv-modal__backdrop,
  body.jv-printing .jv-modal__actions,
  body.jv-printing .jv-icon-button {
    display: none !important;
  }

  body.jv-printing .jv-modal__panel {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    border: 1px solid #999 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  body.jv-printing .jv-modal__body {
    overflow: visible !important;
  }

  body.jv-printing .jv-contact-card {
    color: #111 !important;
    background: #fff !important;
    border: 1px solid #bbb !important;
    box-shadow: none !important;
  }

  body.jv-printing .jv-contact-card * {
    color: #111 !important;
  }
}

@media (max-width: 760px) {
  /* Expanded mobile filters flow with the page so they never cover result cards. */
  .jv-app.jv-filters-open .jv-filter-shell {
    position: relative;
    top: auto;
  }
}

/* ==========================================================
   2.4.0 browser-scroll layout and production UI refinements
   ========================================================== */
body.jrotc-vacancy-page {
  --jv-table-head-top: 118px;
}

.jv-app {
  max-width: 1680px;
  padding-bottom: 64px;
}

.jv-hero {
  margin-bottom: 20px;
}

.jv-filter-shell {
  overflow: visible;
  border-top-width: 2px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(20, 27, 34, 0.13);
}

.jv-filter-bar {
  grid-template-columns: minmax(320px, 1.35fr) minmax(0, 2.65fr);
  padding: 14px 16px;
}

.jv-filter-drawer {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.jv-filter-buttons {
  align-self: stretch;
}

.jv-filter-buttons .jv-button {
  min-height: 43px;
  white-space: nowrap;
}

.jv-advanced-panel {
  margin: 0 16px 14px;
  padding: 16px;
  background: #f7f8fa;
  border: 1px solid #dfe3e7;
  border-radius: 10px;
  box-shadow: none;
}

.jv-advanced-panel__heading {
  margin-bottom: 13px;
  padding-bottom: 11px;
}

.jv-advanced-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
}

.jv-advanced-grid > .jv-field {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.jv-acronym-guide {
  margin-top: 14px;
  background: #fff;
}

.jv-active-filters {
  min-height: 42px;
  align-items: center;
  padding: 0 16px 13px;
}

.jv-active-filters > strong {
  color: #4d5660;
  font-size: 0.76rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.jv-active-filters .jv-text-button {
  margin-left: auto !important;
}

.jv-results-panel {
  overflow: visible;
  border-radius: 14px;
  box-shadow: 0 5px 18px rgba(22, 28, 34, 0.08);
}

.jv-results-toolbar {
  position: relative;
  z-index: 2;
  padding: 16px 18px;
  background: #fff;
  border-radius: 14px 14px 0 0;
}

.jv-results-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.jv-table-heading-note {
  display: none !important;
}

.jv-table-scroll {
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto;
  scrollbar-width: auto;
}

.jv-table-scroll:focus-visible {
  outline: none;
}

.jv-table {
  min-width: 0;
  table-layout: fixed;
}

.jv-table thead th {
  top: var(--jv-table-head-top);
  z-index: 72;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.20);
}

.jv-table thead th:first-child { width: 22%; }
.jv-table thead th:nth-child(2) { width: 9%; }
.jv-table thead th:nth-child(3) { width: 10%; }
.jv-table thead th:nth-child(4) { width: 6%; }
.jv-table thead th:nth-child(5) { width: 8%; }
.jv-table thead th:nth-child(6) { width: 6%; }
.jv-table thead th:nth-child(7) { width: 10%; }
.jv-table thead th:nth-child(8) { width: 10%; }
.jv-table thead th:nth-child(9) { width: 10%; }
.jv-table thead th:nth-child(10) { width: 9%; }

.jv-table thead button {
  min-height: 48px;
  padding: 10px 10px;
  font-size: 0.69rem;
}

.jv-table tbody td {
  padding: 12px 10px;
  font-size: 0.82rem;
}

.jv-school-cell strong {
  font-size: 0.91rem;
}

.jv-pagination-bar {
  background: #fff;
  border-radius: 0 0 14px 14px;
}

/* Resource drawer */
.jv-drawer {
  position: fixed;
  inset: 0;
  z-index: 10020;
  visibility: hidden;
  pointer-events: none;
}

.jv-drawer[aria-hidden="false"] {
  visibility: visible;
  pointer-events: auto;
}

.jv-drawer__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(8, 10, 12, 0.58);
  border: 0;
  opacity: 0;
  cursor: default;
  transition: opacity 180ms ease;
}

.jv-drawer[aria-hidden="false"] .jv-drawer__backdrop {
  opacity: 1;
}

.jv-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(430px, 94vw);
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #f5f6f8;
  border-left: 1px solid #d9dde1;
  box-shadow: -18px 0 46px rgba(0, 0, 0, 0.24);
  transform: translateX(102%);
  transition: transform 210ms ease;
}

.jv-drawer[aria-hidden="false"] .jv-drawer__panel {
  transform: translateX(0);
}

.jv-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 22px 20px;
  color: #fff;
  background: linear-gradient(145deg, #1b1c1e 0%, #080809 100%);
  border-bottom: 4px solid var(--jv-gold);
}

.jv-drawer__header > div {
  display: grid;
  gap: 4px;
}

.jv-drawer__header span {
  color: var(--jv-gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.jv-drawer__header h2 {
  margin: 0;
  color: #fff;
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.1;
}

.jv-drawer__body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
}

.jv-drawer-link {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  padding: 17px;
  color: var(--jv-text) !important;
  background: #fff;
  border: 1px solid #dde1e5;
  border-left: 4px solid var(--jv-gold);
  border-radius: 10px;
  box-shadow: 0 4px 13px rgba(20, 27, 34, 0.06);
  text-decoration: none !important;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.jv-drawer-link:hover,
.jv-drawer-link:focus-visible {
  color: #111 !important;
  border-color: #c8cdd2;
  border-left-color: var(--jv-gold-dark);
  box-shadow: 0 9px 22px rgba(20, 27, 34, 0.11);
  outline: 3px solid rgba(242, 190, 45, 0.24);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.jv-drawer-link strong {
  color: #1b1f23;
  font-size: 0.96rem;
  font-weight: 900;
  text-transform: uppercase;
}

.jv-drawer-link span {
  color: #626c75;
  font-size: 0.86rem;
  line-height: 1.48;
}

.jv-drawer-link em {
  color: #765700;
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 850;
}

.jv-drawer-support {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 18px;
  color: #fff;
  background: #111214;
  border-top: 4px solid var(--jv-gold);
  border-radius: 10px;
}

.jv-drawer-support strong {
  color: var(--jv-gold);
  font-size: 1rem;
  text-transform: uppercase;
}

.jv-drawer-support span {
  color: rgba(255,255,255,.72);
  font-size: .84rem;
}

.jv-drawer-support a {
  color: #fff !important;
  font-size: .88rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

body.jv-drawer-open {
  overflow: hidden;
}

@media (max-width: 1260px) {
  .jv-filter-bar {
    grid-template-columns: minmax(270px, 1fr) minmax(0, 2.25fr);
  }

  .jv-filter-drawer {
    grid-template-columns: 1fr;
  }

  .jv-filter-buttons {
    justify-content: flex-end;
  }

  .jv-table thead button {
    font-size: 0.65rem;
  }

  .jv-table tbody td {
    font-size: 0.78rem;
  }
}

@media (max-width: 1080px) {
  .jv-table-scroll {
    display: none !important;
  }

  .jv-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    background: #f4f5f6;
  }

  .jv-card {
    display: grid;
    gap: 13px;
    padding: 16px;
    background: #fff;
    border: 1px solid #dfe3e6;
    border-top: 3px solid var(--jv-gold);
    border-radius: 11px;
    box-shadow: 0 4px 13px rgba(20, 27, 34, 0.06);
  }
}

@media (max-width: 760px) {
  .jv-app {
    padding-right: 10px;
    padding-left: 10px;
  }

  .jv-filter-shell {
    position: sticky;
    border-radius: 10px;
  }

  .jv-filter-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px;
  }

  .jv-filter-drawer {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    padding-top: 10px;
    border-top: 1px solid #e5e8eb;
  }

  .jv-filters-open .jv-filter-drawer {
    display: grid;
  }

  .jv-core-filters {
    grid-template-columns: 1fr 1fr;
  }

  .jv-core-filters .jv-field:last-child {
    grid-column: 1 / -1;
  }

  .jv-filter-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .jv-advanced-panel {
    margin: 0 10px 10px;
    padding: 12px;
  }

  .jv-advanced-grid {
    grid-template-columns: 1fr 1fr;
  }

  .jv-results-actions {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .jv-card-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .jv-core-filters,
  .jv-advanced-grid {
    grid-template-columns: 1fr;
  }

  .jv-core-filters .jv-field:last-child {
    grid-column: auto;
  }

  .jv-filter-buttons,
  .jv-results-actions {
    grid-template-columns: 1fr;
  }

  .jv-results-actions .jv-button,
  .jv-results-actions .jv-field {
    width: 100%;
  }

  .jv-drawer__panel {
    width: 100%;
  }
}

/* Final 2.4.0 polish */
.jv-filter-buttons #jvClearAll:disabled {
  display: none;
}

.jv-modal__backdrop {
  background: rgba(8, 10, 12, 0.78);
  backdrop-filter: none;
}

.jv-modal__panel,
.jv-modal__header,
.jv-modal__body,
.jv-modal__actions,
.jv-summary-card,
.jv-detail-section,
.jv-contact-card,
.jv-remarks-section {
  opacity: 1;
}

.jv-modal__panel {
  isolation: isolate;
}
.jv-table thead th:last-child {
  padding: 0 10px;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

/* ==========================================================
   2.6.0 Avada-safe spacing, leaflet resources, and UI polish
   ========================================================== */
body.jrotc-vacancy-page {
  --jv-page-safe-top: 0px;
  --jv-header-bottom: 0px;
  --jv-drawer-top: 0px;
}

.jv-app {
  padding-top: calc(18px + var(--jv-page-safe-top));
}

/* Compact first viewport that clears Avada without feeling oversized. */
.jv-hero {
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.82fr);
  gap: 20px;
  margin-bottom: 16px;
}

.jv-hero__heading {
  gap: 15px;
}

.jv-hero__icon {
  flex-basis: 58px;
  width: 58px;
  height: 58px;
  border-width: 1px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16), inset 0 0 0 4px rgba(242, 190, 45, 0.07);
}

.jv-hero__icon svg {
  width: 29px;
  height: 29px;
}

.jv-hero h1 {
  margin-bottom: 5px;
  font-size: clamp(1.95rem, 2.65vw, 2.9rem);
  letter-spacing: -0.035em;
}

.jv-hero p {
  font-size: clamp(0.94rem, 1vw, 1.06rem);
}

.jv-apply {
  min-height: 78px;
  padding: 14px 17px;
  border-top-width: 2px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.jv-apply__badge {
  width: 42px;
  height: 42px;
  box-shadow: 0 5px 14px rgba(242, 190, 45, 0.2);
}

.jv-apply__copy strong {
  font-size: 0.95rem;
}

/* Modern, consistent action language. */
.jv-button {
  position: relative;
  min-height: 45px;
  padding: 10px 17px;
  overflow: hidden;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.018em;
  box-shadow: 0 4px 11px rgba(18, 24, 30, 0.08);
}

.jv-button svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.jv-button::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 24%, rgba(255,255,255,.22) 47%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 420ms ease;
}

.jv-button:hover::after,
.jv-button:focus-visible::after {
  transform: translateX(130%);
}

.jv-button--gold {
  background: linear-gradient(180deg, #ffdd73 0%, #f2be2d 72%, #e5ad13 100%);
  border-color: #c99400;
  box-shadow: 0 7px 17px rgba(186, 132, 0, 0.2), inset 0 1px 0 rgba(255,255,255,.55);
}

.jv-button--black {
  background: linear-gradient(180deg, #242629 0%, #08090a 100%);
  border-color: #050505;
  box-shadow: 0 6px 14px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.07);
}

.jv-button--outline {
  color: #242a30;
  background: linear-gradient(180deg, #ffffff 0%, #f4f6f7 100%);
  border-color: #cfd5da;
  box-shadow: 0 3px 8px rgba(20,27,34,.06), inset 0 1px 0 #fff;
}

.jv-button--outline[aria-expanded="true"] {
  color: #111;
  background: var(--jv-gold-soft);
  border-color: #c39400;
  box-shadow: inset 0 -3px 0 var(--jv-gold);
}

/* Sticky app framework beneath whatever Avada is actually rendering. */
.jv-filter-shell {
  top: var(--jv-sticky-top);
  background: rgba(255, 255, 255, 0.975);
  border-color: #d9dee3;
  border-top: 2px solid var(--jv-gold);
  border-radius: 14px;
  box-shadow: 0 13px 31px rgba(20, 27, 34, 0.13), 0 2px 5px rgba(20,27,34,.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.jv-filter-bar {
  gap: 16px;
  padding: 13px 15px 14px;
}

.jv-field label {
  margin-bottom: 6px;
  color: #4e5862;
  font-size: 0.69rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.jv-search-control input,
.jv-field select {
  min-height: 45px;
  color: #20262c;
  background-color: #fff;
  border: 1px solid #cfd5da;
  border-radius: 9px;
  box-shadow: inset 0 1px 2px rgba(20,27,34,.04), 0 2px 5px rgba(20,27,34,.025);
}

.jv-search-control input:hover,
.jv-field select:hover {
  border-color: #aeb6bd;
}

.jv-search-control input:focus,
.jv-field select:focus {
  border-color: #a97b00;
  outline: 3px solid rgba(242, 190, 45, 0.2);
  box-shadow: 0 0 0 1px rgba(169,123,0,.2);
}

.jv-filter-buttons .jv-button {
  min-height: 45px;
}

.jv-advanced-panel {
  background: linear-gradient(180deg, #f8f9fa 0%, #f2f4f6 100%);
  border-color: #d7dde2;
  border-radius: 11px;
  box-shadow: inset 0 1px 0 #fff;
}

.jv-advanced-panel__heading strong {
  color: #1c2228;
  font-size: 0.92rem;
}

.jv-advanced-panel__heading span {
  color: #69737d;
}

.jv-active-filters {
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fbfbfc 100%);
}

.jv-filter-chip {
  min-height: 29px;
  padding: 5px 9px;
  color: #2a3036;
  background: #fff8dd;
  border: 1px solid #e2c159;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(20,27,34,.04);
}

/* Results are a single natural-scroll data surface. */
.jv-results-panel {
  scroll-margin-top: calc(var(--jv-table-head-top) + 12px);
  border: 1px solid #d9dee3;
  box-shadow: 0 8px 24px rgba(20, 27, 34, 0.085);
}

.jv-results-toolbar {
  min-height: 78px;
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
  border-bottom: 1px solid #e1e5e8;
}

.jv-count-block__icon {
  box-shadow: 0 5px 13px rgba(196,143,0,.18), inset 0 0 0 4px rgba(255,255,255,.34);
}

.jv-count-block h2 strong {
  font-size: 1.78rem;
  letter-spacing: -0.035em;
}

.jv-results-actions {
  gap: 10px;
}

.jv-results-actions .jv-field--sort {
  min-width: 220px;
}

.jv-table thead th {
  top: var(--jv-table-head-top);
  background: linear-gradient(180deg, #1c1e21 0%, #08090a 100%);
  border-right-color: rgba(255,255,255,.09);
  box-shadow: 0 4px 9px rgba(0,0,0,.22);
}

.jv-table thead button {
  min-height: 50px;
  padding: 10px 11px;
  color: #f5f6f7;
  font-size: 0.7rem;
}

.jv-table tbody td {
  padding-top: 13px;
  padding-bottom: 13px;
  transition: background-color 130ms ease, box-shadow 130ms ease;
}

.jv-table tbody tr:hover td {
  background: #fff8df;
  box-shadow: inset 0 1px 0 rgba(221,178,46,.16), inset 0 -1px 0 rgba(221,178,46,.16);
}

.jv-table tbody tr:hover td:first-child {
  box-shadow: inset 4px 0 0 var(--jv-gold), inset 0 1px 0 rgba(221,178,46,.16), inset 0 -1px 0 rgba(221,178,46,.16);
}

.jv-school-cell strong {
  color: #13171b;
  font-size: 0.93rem;
}

.jv-status-pill {
  position: relative;
  gap: 6px;
  padding-right: 10px;
  padding-left: 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}

.jv-status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #7e8790;
  border-radius: 50%;
}

.jv-status-pill[data-status*="open"]::before {
  background: #24964c;
  box-shadow: 0 0 0 3px rgba(36,150,76,.11);
}

.jv-status-pill[data-status*="filled"]::before,
.jv-status-pill[data-status*="closed"]::before {
  background: #c23e3e;
}

.jv-view-button {
  min-width: 78px;
  min-height: 36px;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.76rem;
}

.jv-view-button svg {
  width: 15px;
  height: 15px;
}

.jv-pagination-bar {
  min-height: 68px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f5f6f7 100%);
}

.jv-page-button {
  min-width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(20,27,34,.04);
}

.jv-page-button:hover,
.jv-page-button:focus-visible {
  color: #111;
  background: #fff7d5;
  border-color: #c89a12;
  outline: 2px solid rgba(242,190,45,.22);
}

/* Leaflet-style resource tab. It stays small until the user reaches for it. */
.jv-resource-tab {
  position: fixed;
  top: calc(var(--jv-drawer-top) + 38vh);
  right: -1px;
  z-index: 10005;
  width: 53px;
  height: 58px;
  display: grid;
  grid-template-columns: 32px auto 16px;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #202225 0%, #08090a 100%);
  border: 1px solid #c89600;
  border-right: 0;
  border-radius: 15px 0 0 15px;
  box-shadow: -8px 9px 24px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
  cursor: pointer;
  transition: width 190ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.jv-resource-tab::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #ffe27d, var(--jv-gold));
}

.jv-resource-tab:hover,
.jv-resource-tab:focus-visible {
  width: 156px;
  outline: 3px solid rgba(242,190,45,.25);
  outline-offset: 2px;
  box-shadow: -12px 12px 28px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
  transform: translateX(-1px);
}

.jv-resource-tab__icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #111;
  background: var(--jv-gold);
  border-radius: 9px;
}

.jv-resource-tab__icon svg {
  width: 19px;
  height: 19px;
}

.jv-resource-tab__label {
  opacity: 0;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(7px);
  transition: opacity 140ms ease, transform 180ms ease;
}

.jv-resource-tab__arrow {
  width: 15px;
  height: 15px;
  opacity: 0;
  color: var(--jv-gold);
  transition: opacity 140ms ease;
}

.jv-resource-tab:hover .jv-resource-tab__label,
.jv-resource-tab:focus-visible .jv-resource-tab__label,
.jv-resource-tab:hover .jv-resource-tab__arrow,
.jv-resource-tab:focus-visible .jv-resource-tab__arrow {
  opacity: 1;
  transform: translateX(0);
}

body.jv-drawer-open .jv-resource-tab {
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
}

/* Drawer begins below the live Avada header rather than covering it. */
.jv-drawer__panel {
  top: var(--jv-drawer-top);
  height: calc(100dvh - var(--jv-drawer-top));
  border-left-color: #cfd5da;
  border-radius: 17px 0 0 17px;
}

.jv-drawer__header {
  min-height: 92px;
  padding: 20px 22px 18px;
  border-radius: 17px 0 0 0;
}

.jv-drawer__header h2 {
  font-size: 1.5rem;
}

.jv-drawer__body {
  padding: 18px;
}

.jv-drawer__intro {
  margin: 0 2px 15px;
  color: #616b75;
  font-size: 0.86rem;
  line-height: 1.5;
}

.jv-drawer-link {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 16px;
  border-left-width: 1px;
  border-radius: 12px;
}

.jv-drawer-link__icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #9d7200;
  background: #fff7d9;
  border: 1px solid #ecd173;
  border-radius: 11px;
}

.jv-drawer-link__icon svg {
  width: 23px;
  height: 23px;
}

.jv-drawer-link__copy {
  display: grid;
  gap: 5px;
}

.jv-drawer-link__copy strong {
  font-size: 0.9rem;
}

.jv-drawer-link__copy span {
  font-size: 0.82rem;
}

.jv-drawer-link__copy em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.jv-drawer-link__copy em b {
  font-size: 1rem;
}

.jv-drawer-support {
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 12px;
  padding: 17px;
  border-radius: 12px;
}

.jv-drawer-support__icon {
  grid-row: 1 / span 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--jv-gold);
  background: rgba(242,190,45,.08);
  border: 1px solid rgba(242,190,45,.32);
  border-radius: 11px;
}

.jv-drawer-support__icon svg {
  width: 23px;
  height: 23px;
}

.jv-drawer-support > div {
  display: grid;
  gap: 2px;
}

.jv-drawer-support > a {
  grid-column: 2;
}

@media (max-width: 1180px) {
  .jv-hero {
    grid-template-columns: 1fr;
  }

  .jv-apply {
    grid-template-columns: auto minmax(0,1fr) auto;
  }
}

@media (max-width: 760px) {
  .jv-app {
    padding-top: calc(10px + var(--jv-page-safe-top));
  }

  .jv-hero {
    gap: 12px;
    margin-bottom: 12px;
  }

  .jv-hero__icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .jv-hero h1 {
    font-size: clamp(1.62rem, 8vw, 2.1rem);
  }

  .jv-hero p {
    font-size: 0.9rem;
  }

  .jv-apply {
    grid-template-columns: 38px minmax(0,1fr);
    min-height: auto;
    padding: 12px;
  }

  .jv-apply__badge {
    width: 38px;
    height: 38px;
  }

  .jv-apply .jv-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .jv-filter-shell {
    top: var(--jv-sticky-top);
  }

  .jv-results-toolbar {
    gap: 13px;
    padding: 14px;
  }

  .jv-results-actions,
  .jv-results-actions .jv-field--sort,
  .jv-results-actions .jv-button {
    width: 100%;
  }

  .jv-resource-tab {
    top: auto;
    right: 8px;
    bottom: 18px;
    width: 48px;
    height: 48px;
    grid-template-columns: 28px;
    padding: 9px;
    border-right: 1px solid #c89600;
    border-radius: 14px;
  }

  .jv-resource-tab:hover,
  .jv-resource-tab:focus-visible {
    width: 48px;
    transform: translateY(-1px);
  }

  .jv-resource-tab__icon {
    width: 28px;
    height: 28px;
  }

  .jv-resource-tab__label,
  .jv-resource-tab__arrow {
    display: none;
  }

  .jv-drawer__panel {
    top: var(--jv-drawer-top);
    width: min(410px, 100vw);
    height: calc(100dvh - var(--jv-drawer-top));
    border-radius: 15px 0 0 15px;
  }

  .jv-drawer__header {
    border-radius: 15px 0 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jv-resource-tab,
  .jv-resource-tab__label,
  .jv-resource-tab__arrow,
  .jv-drawer__panel,
  .jv-button::after {
    transition: none !important;
  }
}

/* ==========================================================
   JROTC Vacancy Explorer 2.7.0 stabilization and mobile UX
   ========================================================== */

body.jrotc-vacancy-page {
  --jv-font-ui: "Segoe UI Variable", "Segoe UI", Roboto, Arial, sans-serif;
  --jv-font-display: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
}

/* Remove Avada's white side rails while retaining the centered application. */
body.jrotc-vacancy-page #main,
body.jrotc-vacancy-page #main > .fusion-row,
body.jrotc-vacancy-page #main #content,
body.jrotc-vacancy-page #main .post-content,
body.jrotc-vacancy-page #main .fusion-fullwidth,
body.jrotc-vacancy-page #main .fusion-builder-row,
body.jrotc-vacancy-page #main .fusion-layout-column,
body.jrotc-vacancy-page #main .fusion-column-wrapper {
  background-color: var(--jv-page) !important;
  background-image: none !important;
  border-right: 0 !important;
  border-left: 0 !important;
  box-shadow: none !important;
}

body.jrotc-vacancy-page #main .fusion-row::before,
body.jrotc-vacancy-page #main .fusion-row::after,
body.jrotc-vacancy-page #main .fusion-fullwidth::before,
body.jrotc-vacancy-page #main .fusion-fullwidth::after,
body.jrotc-vacancy-page #main .fusion-builder-row::before,
body.jrotc-vacancy-page #main .fusion-builder-row::after {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.jv-app {
  font-family: var(--jv-font-ui);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.jv-hero h1,
.jv-count-block h2,
.jv-table thead button {
  font-family: var(--jv-font-display);
}

/* Consistent, cleaner control system. */
.jv-button {
  min-height: 44px;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 9px;
  font-weight: 780;
  line-height: 1.15;
  letter-spacing: 0.005em;
  box-shadow: 0 4px 10px rgba(17, 22, 27, 0.10);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.jv-button:hover,
.jv-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(17, 22, 27, 0.15);
}

.jv-button--gold {
  color: #151515;
  background: linear-gradient(180deg, #ffd95d 0%, var(--jv-gold) 100%);
  border-color: #c99300;
}

.jv-button--gold:hover,
.jv-button--gold:focus-visible {
  color: #111;
  background: linear-gradient(180deg, #ffe27d 0%, #f5c437 100%);
  border-color: #a97600;
}

.jv-button--black {
  color: #fff;
  background: linear-gradient(180deg, #24272a 0%, #090a0b 100%);
  border-color: #090a0b;
}

.jv-button--outline {
  color: #252a30;
  background: #fff;
  border-color: #cbd2d8;
}

.jv-button--outline:hover,
.jv-button--outline:focus-visible {
  color: #151515;
  background: #fff8de;
  border-color: #c89400;
}

/* The primary filter bar and table headers remain visible during page scroll. */
.jv-filter-shell {
  position: sticky;
  top: var(--jv-sticky-top);
  z-index: 4990;
  overflow: visible;
  border-color: #d8dde2;
  box-shadow: 0 10px 28px rgba(20, 27, 34, 0.13);
}

.jv-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
}

.jv-table thead th {
  position: sticky;
  top: var(--jv-table-head-top);
  z-index: 80;
}

.jv-table thead th:first-child {
  z-index: 82;
}

/* Custom accessible selects. Native browser menus can open upward; these
   menus are scrollable and always open below the control. */
.jv-custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.jv-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.jv-custom-select__button {
  width: 100%;
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  color: #20262c;
  background: #fff;
  border: 1px solid #cfd5da;
  border-radius: 9px;
  box-shadow: inset 0 1px 2px rgba(20, 27, 34, 0.04), 0 2px 5px rgba(20, 27, 34, 0.025);
  font-family: var(--jv-font-ui);
  font-size: 0.87rem;
  font-weight: 520;
  text-align: left;
  cursor: pointer;
}

.jv-custom-select__button:hover {
  border-color: #aeb6bd;
}

.jv-custom-select__button:focus-visible,
.jv-custom-select.is-open .jv-custom-select__button {
  border-color: #a97b00;
  outline: 3px solid rgba(242, 190, 45, 0.20);
  outline-offset: 0;
}

.jv-custom-select__value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jv-custom-select__chevron {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #47515b;
  transition: transform 150ms ease;
}

.jv-custom-select.is-open .jv-custom-select__chevron {
  transform: rotate(180deg);
}

.jv-custom-select__chevron svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.jrotc-vacancy-page .jv-custom-select__menu {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  background: #fff;
  border: 1px solid #cbd2d8;
  border-top: 3px solid var(--jv-gold);
  border-radius: 9px;
  box-shadow: 0 18px 42px rgba(14, 19, 24, 0.24);
  scrollbar-width: thin;
  scrollbar-color: #b9c0c7 #f3f4f5;
}

body.jrotc-vacancy-page .jv-custom-select__option {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: #252b31;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-family: var(--jv-font-ui);
  font-size: 0.86rem;
  font-weight: 520;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

body.jrotc-vacancy-page .jv-custom-select__option:hover,
body.jrotc-vacancy-page .jv-custom-select__option:focus-visible {
  color: #111;
  background: #fff5cf;
  outline: 2px solid rgba(201, 148, 0, 0.22);
}

body.jrotc-vacancy-page .jv-custom-select__option[aria-selected="true"] {
  color: #111;
  background: #f8df86;
  font-weight: 760;
}

.jv-mobile-filter-header,
.jv-mobile-filter-actions {
  display: none;
}

/* Desktop advanced filters are a controlled downward flyout. */
@media (min-width: 761px) {
  .jv-filter-drawer {
    position: static;
  }

  .jv-advanced-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 35;
    margin: 0;
    max-height: min(440px, calc(100vh - var(--jv-sticky-top) - 110px));
    overflow-y: auto;
    border: 1px solid #d1d7dc;
    border-top: 3px solid var(--jv-gold);
    box-shadow: 0 18px 42px rgba(15, 20, 25, 0.20);
  }
}

/* Resource drawer clears the complete live Avada header and keeps its own
   title visible while the resource links scroll. */
.jv-drawer {
  z-index: 10040;
}

.jv-drawer__panel {
  top: var(--jv-drawer-top);
  height: calc(100dvh - var(--jv-drawer-top));
  max-height: calc(100dvh - var(--jv-drawer-top));
  overflow: hidden;
  background: #f5f6f7;
  border-radius: 16px 0 0 16px;
}

.jv-drawer__header {
  position: sticky;
  top: 0;
  z-index: 4;
  flex: 0 0 auto;
  background: linear-gradient(145deg, #202225 0%, #08090a 100%);
}

.jv-drawer__body {
  height: calc(100% - 92px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 28px;
}

.jv-drawer-link {
  background: #fff;
  border-color: #d5dbe0;
  box-shadow: 0 4px 12px rgba(18, 24, 30, 0.06);
}

.jv-drawer-link:hover,
.jv-drawer-link:focus-visible {
  border-color: #d3aa2f;
  box-shadow: 0 8px 20px rgba(18, 24, 30, 0.11);
  transform: translateY(-1px);
}

/* More compact mobile result cards and pagination. */
.jv-page-summary {
  display: none;
  color: #505962;
  font-size: 0.82rem;
  font-weight: 750;
}

body.jv-mobile-filters-open {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 760px) {
  .jv-app {
    padding: 10px 8px 32px;
  }

  .jv-hero {
    gap: 10px;
  }

  .jv-hero__heading {
    gap: 10px;
  }

  .jv-hero__icon {
    flex-basis: 46px;
    width: 46px;
    height: 46px;
  }

  .jv-hero__icon svg {
    width: 24px;
    height: 24px;
  }

  .jv-hero h1 {
    margin-bottom: 4px;
    font-size: clamp(1.52rem, 8.4vw, 2rem);
    letter-spacing: -0.035em;
  }

  .jv-hero p {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .jv-apply {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px;
    border-radius: 10px;
  }

  .jv-apply__badge {
    width: 34px;
    height: 34px;
  }

  .jv-apply__copy span {
    display: none;
  }

  .jv-apply .jv-button {
    grid-column: auto;
    width: auto;
    min-height: 38px;
    padding: 8px 11px;
    font-size: 0.76rem;
  }

  /* Only the compact search row remains sticky. The full filter menu is a
     temporary sheet, so it cannot cover results while the user scrolls. */
  .jv-filter-shell {
    top: var(--jv-sticky-top);
    z-index: 6000;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(17, 23, 29, 0.16);
  }

  .jv-filter-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px;
  }

  .jv-search-control input {
    min-height: 42px;
    padding-right: 38px;
    font-size: 0.84rem;
  }

  .jv-mobile-filter-toggle {
    min-width: 88px;
    min-height: 42px;
    padding: 8px 11px;
    font-size: 0.8rem;
  }

  .jv-filter-drawer {
    position: fixed;
    top: var(--jv-drawer-top);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10055;
    display: none;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - var(--jv-drawer-top));
    padding: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    color: var(--jv-text);
    background: #f4f5f6;
    border: 0;
    box-shadow: 0 -16px 40px rgba(10, 14, 18, 0.25);
  }

  .jv-filters-open .jv-filter-drawer {
    display: flex;
    flex-direction: column;
  }

  .jv-mobile-filter-header {
    position: sticky;
    top: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    color: #fff;
    background: linear-gradient(145deg, #202225 0%, #08090a 100%);
    border-bottom: 3px solid var(--jv-gold);
  }

  .jv-mobile-filter-header > div {
    display: grid;
    gap: 1px;
  }

  .jv-mobile-filter-header span {
    color: var(--jv-gold);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .jv-mobile-filter-header strong {
    font-size: 1.25rem;
    line-height: 1.1;
  }

  .jv-mobile-filter-header .jv-icon-button {
    color: #fff;
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
  }

  .jv-core-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 14px 8px;
  }

  .jv-filter-buttons {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: auto;
    padding: 8px 14px 12px;
  }

  .jv-filter-buttons .jv-button {
    width: 100%;
  }

  .jv-advanced-panel {
    position: static;
    margin: 0 14px 12px;
    max-height: none;
    overflow: visible;
    padding: 14px;
    background: #fff;
    border: 1px solid #d5dbe0;
    border-top: 3px solid var(--jv-gold);
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(17, 23, 29, 0.08);
  }

  .jv-advanced-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .jv-mobile-filter-actions {
    position: sticky;
    bottom: 0;
    z-index: 6;
    display: block;
    margin-top: auto;
    padding: 12px 14px max(12px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #d4dae0;
    box-shadow: 0 -8px 20px rgba(17, 23, 29, 0.10);
    backdrop-filter: blur(10px);
  }

  .jv-mobile-filter-actions .jv-button {
    width: 100%;
    min-height: 48px;
  }

  .jv-active-filters {
    max-height: 78px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding: 0 8px 8px;
  }

  .jv-active-filters > strong,
  .jv-active-filters .jv-text-button {
    flex: 0 0 auto;
  }

  .jv-filter-chips {
    flex-wrap: nowrap;
  }

  .jv-results-panel {
    margin-top: 12px;
    border-radius: 10px;
  }

  .jv-results-toolbar {
    gap: 12px;
    padding: 12px;
  }

  .jv-count-block__icon {
    width: 44px;
    height: 44px;
  }

  .jv-count-block h2 strong {
    font-size: 1.5rem;
  }

  .jv-count-block h2 {
    font-size: 0.92rem;
  }

  .jv-results-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .jv-results-actions .jv-field--sort {
    min-width: 0;
    width: 100%;
  }

  .jv-results-actions .jv-button {
    width: auto;
    min-width: 48px;
    padding: 10px 12px;
  }

  .jv-results-actions #jvDownloadExcel span {
    display: none;
  }

  .jv-card-list {
    gap: 9px;
    padding: 9px;
  }

  .jv-card {
    gap: 11px;
    padding: 13px;
    border-radius: 9px;
  }

  .jv-card__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .jv-card h3 {
    font-size: 0.98rem;
    line-height: 1.24;
  }

  .jv-card__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .jv-card__meta > div {
    padding: 8px;
  }

  .jv-card__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jv-card__actions small {
    order: 2;
    text-align: center;
  }

  .jv-card__actions .jv-view-button {
    width: 100%;
    min-height: 42px;
  }

  .jv-pagination-bar {
    gap: 8px;
    padding: 11px;
  }

  .jv-page-size {
    display: none;
  }

  .jv-pagination {
    width: 100%;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 8px;
  }

  .jv-pagination > .jv-page-button {
    display: none;
  }

  .jv-pagination > .jv-page-button:first-child,
  .jv-pagination > .jv-page-button:last-of-type {
    display: inline-flex;
  }

  .jv-page-summary {
    display: block;
    grid-column: 2;
    grid-row: 1;
    text-align: center;
  }

  .jv-pagination > .jv-page-button:first-child {
    grid-column: 1;
  }

  .jv-pagination > .jv-page-button:last-of-type {
    grid-column: 3;
  }

  .jv-resource-tab {
    right: 8px;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 9000;
  }

  .jv-drawer__panel {
    top: var(--jv-drawer-top);
    width: 100%;
    height: calc(100dvh - var(--jv-drawer-top));
    max-height: calc(100dvh - var(--jv-drawer-top));
    border-radius: 0;
  }

  .jv-drawer__header {
    min-height: 74px;
    padding: 14px 16px;
    border-radius: 0;
  }

  .jv-drawer__body {
    height: calc(100% - 74px);
    padding: 12px;
  }

  .jv-drawer-link {
    padding: 13px;
  }
}

@media (max-width: 420px) {
  .jv-apply {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .jv-apply .jv-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .jv-results-actions {
    grid-template-columns: 1fr 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jv-custom-select__chevron,
  .jv-button,
  .jv-drawer-link {
    transition: none !important;
  }
}

/* Mobile filter sheet is portalled to <body> to avoid Avada/backdrop-filter
   containing blocks clipping fixed descendants. */
@media (max-width: 760px) {
  body.jv-mobile-filters-open > .jv-filter-drawer {
    display: flex !important;
    flex-direction: column;
    font-family: var(--jv-font-ui);
  }
}

@media (max-width: 760px) {
  body.jv-mobile-filters-open > .jv-filter-drawer {
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  body.jv-mobile-filters-open > .jv-filter-drawer > .jv-mobile-filter-header,
  body.jv-mobile-filters-open > .jv-filter-drawer > .jv-core-filters,
  body.jv-mobile-filters-open > .jv-filter-drawer > .jv-filter-buttons,
  body.jv-mobile-filters-open > .jv-filter-drawer > .jv-advanced-panel,
  body.jv-mobile-filters-open > .jv-filter-drawer > .jv-mobile-filter-actions {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    align-self: stretch;
  }

  body.jv-mobile-filters-open .jv-mobile-filter-header .jv-icon-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* Mid-width desktop and tablet layout: deliberate two-row filter bar instead
   of an uneven wrap. */
@media (min-width: 761px) and (max-width: 1260px) {
  .jv-filter-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .jv-filter-drawer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
  }

  .jv-core-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .jv-filter-buttons {
    display: flex;
    align-items: end;
  }
}

@media (max-width: 760px) {
  body.jv-mobile-filters-open > .jv-filter-drawer,
  body.jv-mobile-filters-open > .jv-filter-drawer *,
  body.jv-mobile-filters-open > .jv-filter-drawer *::before,
  body.jv-mobile-filters-open > .jv-filter-drawer *::after {
    box-sizing: border-box;
  }
}

@media (min-width: 761px) and (max-width: 1260px) {
  .jv-table {
    min-width: 1180px;
  }
}

.jv-view-button,
.jv-view-button span {
  white-space: nowrap;
  word-break: keep-all;
}

/* ==========================================================
   JROTC Vacancy Explorer 2.7.0 refinement pass
   Prominent eligibility guide, stronger overlays, and polished states
   ========================================================== */

/* A prominent, always-available guide immediately below the primary filters. */
.jv-position-guide {
  margin: 0 14px 13px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffdf7 0%, #fff8df 100%);
  border: 1px solid #e4c35f;
  border-radius: 11px;
  box-shadow: 0 5px 15px rgba(85, 64, 8, 0.08);
}

.jv-position-guide summary {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  color: #1a1d20;
  cursor: pointer;
  list-style: none;
}

.jv-position-guide summary::-webkit-details-marker { display: none; }

.jv-position-guide summary:hover,
.jv-position-guide summary:focus-visible {
  background: #fff2bd;
  outline: 3px solid rgba(197, 145, 0, 0.22);
  outline-offset: -3px;
}

.jv-position-guide__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #161719;
  background: linear-gradient(180deg, #ffd965 0%, #f2be2d 100%);
  border: 1px solid #d09d09;
  border-radius: 9px;
  box-shadow: 0 3px 9px rgba(119, 83, 0, 0.15);
}

.jv-position-guide__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jv-position-guide__copy { min-width: 0; }
.jv-position-guide__copy strong {
  display: block;
  margin-bottom: 2px;
  color: #17191b;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.jv-position-guide__copy span {
  display: block;
  color: #5e6267;
  font-size: 0.79rem;
  line-height: 1.35;
}

.jv-position-guide__action {
  color: #6e5000;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
  text-transform: uppercase;
}

.jv-position-guide__chevron {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #5c4600;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}
.jv-position-guide[open] .jv-position-guide__chevron { transform: rotate(180deg); }

.jv-position-guide__content {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  padding: 0 13px 13px;
}
.jv-position-guide__content > div {
  min-width: 0;
  padding: 10px 11px;
  background: rgba(255,255,255,0.88);
  border: 1px solid #eadcaa;
  border-radius: 8px;
}
.jv-position-guide__content strong {
  display: block;
  margin-bottom: 3px;
  color: #17191b;
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
}
.jv-position-guide__content span {
  display: block;
  color: #5d6268;
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Harmonized hover and focus states, no blue flash or harsh color inversion. */
.jv-button:hover,
.jv-button:focus-visible {
  outline: 3px solid rgba(242, 190, 45, 0.30);
  outline-offset: 2px;
}
.jv-button--gold:hover,
.jv-button--gold:focus-visible {
  color: #111 !important;
  background: linear-gradient(180deg, #ffe483 0%, #f7c83e 100%);
  border-color: #9d7000;
  box-shadow: 0 8px 18px rgba(138, 98, 0, 0.24);
}
.jv-button--black:hover,
.jv-button--black:focus-visible {
  color: var(--jv-gold) !important;
  background: linear-gradient(180deg, #17191b 0%, #030404 100%);
  border-color: var(--jv-gold);
  box-shadow: 0 8px 18px rgba(0,0,0,0.24);
}
.jv-button--outline:hover,
.jv-button--outline:focus-visible {
  color: #17191b !important;
  background: #fff5cc;
  border-color: #c28d00;
}
.jv-icon-button:hover,
.jv-icon-button:focus-visible {
  color: #111;
  background: linear-gradient(180deg, #ffe27a 0%, var(--jv-gold) 100%);
  border-color: #b98200;
  outline: 3px solid rgba(242, 190, 45, 0.28);
}
.jv-contact-action:hover,
.jv-contact-action:focus-visible {
  color: #111 !important;
  background: #f8d865;
  border-color: #f8d865;
}
.jv-contact-action--gold:hover,
.jv-contact-action--gold:focus-visible {
  color: #111 !important;
  background: #ffe486;
  border-color: #ffe486;
}

/* Escape Avada stacking contexts and own the viewport below the WP admin bar. */
.jv-modal,
.jv-drawer {
  z-index: 2147483000 !important;
}

.jv-modal {
  inset: var(--jv-overlay-top, 0px) 0 0 !important;
  height: calc(100dvh - var(--jv-overlay-top, 0px));
  padding: clamp(10px, 2vw, 22px);
}
.jv-modal__panel {
  width: min(980px, 100%);
  max-height: 100%;
}
.jv-modal__body {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.jv-drawer {
  inset: var(--jv-overlay-top, 0px) 0 0 !important;
  height: calc(100dvh - var(--jv-overlay-top, 0px));
}
.jv-drawer__panel {
  top: 0 !important;
  bottom: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
}
.jv-drawer__body {
  min-height: 0;
  height: auto;
  flex: 1 1 auto;
  padding-bottom: 34px;
  scrollbar-gutter: stable;
}

/* Avada footer can sit in a higher stacking layer. Remove it only while an overlay is open. */
body.jv-modal-open .fusion-footer,
body.jv-modal-open #footer,
body.jv-modal-open footer.fusion-footer,
body.jv-drawer-open .fusion-footer,
body.jv-drawer-open #footer,
body.jv-drawer-open footer.fusion-footer {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.jv-modal-open,
body.jv-drawer-open {
  overflow: hidden !important;
}

/* A little more polish in the detail window. */
.jv-modal__panel { border-radius: 14px; }
.jv-modal__header { padding: 19px 22px 17px; }
.jv-modal__actions {
  position: relative;
  z-index: 2;
  padding: 13px 18px;
  box-shadow: 0 -8px 20px rgba(20,27,34,0.06);
}
.jv-summary-card,
.jv-detail-section { box-shadow: 0 4px 12px rgba(20,27,34,0.055); }

@media (max-width: 980px) {
  .jv-position-guide__content { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .jv-position-guide {
    margin: 0 10px 10px;
    border-radius: 10px;
  }
  .jv-position-guide summary {
    min-height: 54px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 9px;
    padding: 9px 10px;
  }
  .jv-position-guide__action { display: none; }
  .jv-position-guide__copy span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .jv-position-guide__content {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 0 10px 10px;
  }
  .jv-position-guide__content > div { padding: 9px 10px; }

  .jv-modal {
    padding: 0;
  }
  .jv-modal__panel {
    width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
    border-top: 4px solid var(--jv-gold);
    border-radius: 0;
  }
  .jv-modal__header { padding: 14px 15px 13px; }
  .jv-modal__body { padding: 14px 12px 18px; }
  .jv-modal__actions {
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
  }
  .jv-drawer__panel {
    width: 100%;
    border-radius: 0;
  }
}

/* Portal elements are moved to <body> so Avada cannot clip or layer over them. */
.jv-modal,
.jv-modal *,
.jv-modal *::before,
.jv-modal *::after,
.jv-drawer,
.jv-drawer *,
.jv-drawer *::before,
.jv-drawer *::after,
.jv-toast,
.jv-toast * {
  box-sizing: border-box;
}
.jv-modal,
.jv-drawer,
.jv-toast,
.jv-modal button,
.jv-modal a,
.jv-drawer button,
.jv-drawer a {
  font-family: var(--jv-font-ui, "Segoe UI", Arial, sans-serif);
}


/* ==========================================================
   JROTC Vacancy Explorer 2.7.1 precision alignment and modal fit
   ========================================================== */

/* One shared column model prevents header/body grid drift. */
.jv-table { table-layout: fixed; }
.jv-table col.jv-col-school { width: 22%; }
.jv-table col.jv-col-brigade { width: 9%; }
.jv-table col.jv-col-city { width: 10%; }
.jv-table col.jv-col-state { width: 6%; }
.jv-table col.jv-col-status { width: 8%; }
.jv-table col.jv-col-openings { width: 6%; }
.jv-table col.jv-col-position { width: 10%; }
.jv-table col.jv-col-eligibility { width: 10%; }
.jv-table col.jv-col-date { width: 10%; }
.jv-table col.jv-col-details { width: 9%; }
.jv-table thead th,
.jv-table tbody td { width: auto !important; box-sizing: border-box; }
.jv-table thead tr,
.jv-table tbody tr { display: table-row; }
.jv-table thead th:last-child,
.jv-table tbody td:last-child { border-right: 0; }
.jv-school-cell { width: 100%; min-width: 0; }

/* Stronger, more polished typography and button hierarchy. */
.jv-button {
  min-height: 46px;
  padding: 11px 18px;
  font-family: var(--jv-font-ui);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.018em;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(17,22,27,.12);
}
#jvDownloadExcel,
.jv-view-button {
  font-family: var(--jv-font-display);
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
#jvDownloadExcel {
  min-height: 48px;
  padding-inline: 20px;
  font-size: 0.96rem;
  box-shadow: 0 7px 18px rgba(164,116,0,.22);
}
.jv-view-button {
  min-width: 84px;
  min-height: 42px;
  padding: 9px 14px;
  font-size: 0.78rem;
}
.jv-button--gold {
  color: #131313 !important;
  background: linear-gradient(180deg,#ffe27b 0%,#f3bd27 100%);
  border-color: #bd8700;
}
.jv-button--gold:hover,
.jv-button--gold:focus-visible {
  color: #111 !important;
  background: linear-gradient(180deg,#ffea9a 0%,#f8ca46 100%);
  border-color: #8f6500;
  box-shadow: 0 9px 21px rgba(133,93,0,.25);
}
.jv-button--black {
  color: #fff !important;
  background: linear-gradient(180deg,#24272a 0%,#090a0b 100%);
  border-color: #050606;
}
.jv-button--black:hover,
.jv-button--black:focus-visible {
  color: #ffe07a !important;
  background: linear-gradient(180deg,#303438 0%,#111315 100%);
  border-color: #d7a613;
}
.jv-button--outline {
  color: #20252a !important;
  background: linear-gradient(180deg,#fff 0%,#f8f9fa 100%);
  border-color: #cbd2d8;
}
.jv-button--outline:hover,
.jv-button--outline:focus-visible {
  color: #161616 !important;
  background: linear-gradient(180deg,#fff8dc 0%,#ffefb4 100%);
  border-color: #ba8500;
}

/* Draw close icons in CSS so Avada cannot suppress the SVG paths. */
#jvModalClose,
#jvResourcesClose,
#jvMobileFilterClose { position: relative; overflow: hidden; }
#jvModalClose svg,
#jvResourcesClose svg,
#jvMobileFilterClose svg { display: none !important; }
#jvModalClose::before,
#jvModalClose::after,
#jvResourcesClose::before,
#jvResourcesClose::after,
#jvMobileFilterClose::before,
#jvMobileFilterClose::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 19px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform-origin: center;
}
#jvModalClose::before,
#jvResourcesClose::before,
#jvMobileFilterClose::before { transform: translate(-50%,-50%) rotate(45deg); }
#jvModalClose::after,
#jvResourcesClose::after,
#jvMobileFilterClose::after { transform: translate(-50%,-50%) rotate(-45deg); }

/* Fit normal vacancy details without a visible nested scrollbar. Long content
   still scrolls with touch, mouse wheel, and keyboard when required. */
.jv-modal__panel { width: min(1080px,calc(100vw - 20px)); }
.jv-modal__header { padding: 17px 21px 15px; }
.jv-modal__body {
  padding: 16px 20px 18px;
  overflow-y: auto;
  scrollbar-width: none;
}
.jv-modal__body::-webkit-scrollbar,
.jv-drawer__body::-webkit-scrollbar { width: 0; height: 0; display: none; }
.jv-modal-summary-grid { gap: 9px; margin-bottom: 12px; }
.jv-summary-card { min-height: 72px; padding: 11px 13px; }
.jv-summary-card span { margin-bottom: 4px; }
.jv-modal-content-grid {
  grid-template-columns: minmax(0,1.5fr) minmax(285px,.72fr);
  gap: 12px;
}
.jv-detail-section { padding: 14px 16px; }
.jv-detail-section + .jv-detail-section { margin-top: 10px; }
.jv-detail-section h3 { margin-bottom: 10px; padding-bottom: 7px; }
.jv-detail-list { gap: 9px 17px; }
.jv-detail dt { margin-bottom: 3px; }
.jv-detail dd { line-height: 1.42; }
.jv-detail--wide:last-child {
  margin-top: 2px;
  padding: 10px 12px;
  background: #fffaf0;
  border-left: 4px solid var(--jv-gold);
  border-radius: 7px;
}
.jv-contact-card { padding: 16px; }
.jv-contact-row { padding: 9px 0; }
.jv-contact-actions { gap: 7px; margin-top: 12px; padding-top: 12px; }
.jv-modal__actions { gap: 10px; padding: 11px 16px; }
.jv-modal__actions .jv-button { min-height: 44px; }

@media (min-width:900px) and (min-height:720px) {
  .jv-modal__panel { max-height: calc(100dvh - var(--jv-overlay-top,0px) - 16px); }
}
@media (max-width:760px) {
  .jv-modal__panel { width: 100%; }
  .jv-modal__body { padding: 13px 13px 14px; }
  .jv-modal-summary-grid { gap: 8px; }
  .jv-detail-section { padding: 13px; }
  .jv-detail--wide:last-child { padding: 9px 10px; }
  #jvDownloadExcel { width: 100%; }
}

@media (max-width: 760px) {
  .jv-modal-content-grid {
    grid-template-columns: 1fr;
  }
  .jv-contact-card {
    position: static;
    width: 100%;
  }
  .jv-modal__actions {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   JROTC Vacancy Explorer 2.8.0 app polish, icon system, sticky seam fix
   ========================================================== */

body.jrotc-vacancy-page {
  --jv-font-ui: var(--body_typography-font-family, "Segoe UI Variable Text"), "Segoe UI Variable Text", "SF Pro Text", "Inter", "Roboto", Arial, sans-serif;
  --jv-font-display: var(--h1_typography-font-family, "Roboto Condensed"), "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --jv-control-radius: 12px;
}

.jv-icon-sprite {
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.jv-app,
.jv-modal,
.jv-drawer,
.jv-custom-select__menu {
  font-family: var(--jv-font-ui) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.006em;
}

.jv-app svg,
.jv-modal svg,
.jv-drawer svg,
.jv-custom-select__menu svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

/* Remove the fractional sticky seam that exposed scrolling content. */
.jv-filter-shell {
  isolation: isolate;
  background: #fff !important;
  box-shadow:
    0 3px 0 var(--jv-page),
    0 12px 30px rgba(20, 27, 34, 0.14) !important;
}

.jv-filter-shell::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -3px;
  height: 4px;
  background: var(--jv-page);
  pointer-events: none;
  z-index: 2;
}

.jv-table-scroll {
  background: #fff;
  isolation: isolate;
}

.jv-table thead,
.jv-table thead tr,
.jv-table thead th {
  background: #111315 !important;
}

.jv-table thead th {
  top: calc(var(--jv-table-head-top) - 2px) !important;
  z-index: 4980 !important;
  box-shadow:
    inset 0 -2px 0 var(--jv-gold),
    0 -3px 0 #111315;
}

.jv-table thead th:first-child {
  z-index: 4982 !important;
}

/* App-grade button typography and motion. */
.jv-button,
#jvDownloadExcel,
.jv-view-button,
.jv-contact-action,
.jv-resource-tab {
  font-family: var(--jv-font-ui) !important;
  font-weight: 720 !important;
  letter-spacing: -0.012em !important;
  text-transform: none !important;
}

.jv-button {
  min-height: 44px;
  padding: 10px 16px;
  gap: 9px;
  border-radius: var(--jv-control-radius) !important;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(15, 19, 23, 0.13);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}

.jv-button svg,
.jv-contact-action svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  transition: transform 150ms ease;
}

.jv-button:hover,
.jv-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(15, 19, 23, 0.18);
}

.jv-button:hover svg,
.jv-button:focus-visible svg {
  transform: translateX(2px);
}

#jvDownloadExcel {
  min-height: 46px;
  padding-inline: 18px;
  font-size: 0.92rem;
  font-weight: 760 !important;
  box-shadow: 0 7px 18px rgba(150, 104, 0, 0.21);
}

#jvDownloadExcel:hover svg,
#jvDownloadExcel:focus-visible svg {
  transform: translateY(2px);
}

.jv-view-button {
  min-width: 82px;
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.84rem;
  font-weight: 720 !important;
}

.jv-view-button:hover svg,
.jv-view-button:focus-visible svg {
  transform: scale(1.1);
}

.jv-button--gold {
  color: #151515 !important;
  background: linear-gradient(180deg, #ffd967 0%, #f3bd2a 100%) !important;
  border-color: #bd8700 !important;
}

.jv-button--gold:hover,
.jv-button--gold:focus-visible {
  color: #111 !important;
  background: linear-gradient(180deg, #ffe58c 0%, #f8c83f 100%) !important;
  border-color: #8f6500 !important;
}

.jv-button--black {
  color: #fff !important;
  background: linear-gradient(180deg, #24282c 0%, #0b0d0f 100%) !important;
  border-color: #08090a !important;
}

.jv-button--black:hover,
.jv-button--black:focus-visible {
  color: #ffe17a !important;
  background: linear-gradient(180deg, #30353a 0%, #15181b 100%) !important;
  border-color: #d4a512 !important;
}

.jv-button--outline {
  color: #20262c !important;
  background: linear-gradient(180deg, #fff 0%, #f7f9fa 100%) !important;
  border-color: #cbd2d8 !important;
}

.jv-button--outline:hover,
.jv-button--outline:focus-visible {
  color: #17191b !important;
  background: linear-gradient(180deg, #fff9e2 0%, #ffefb7 100%) !important;
  border-color: #b98400 !important;
}

/* Refined, consistent resource icon family. */
.jv-resource-tab__icon,
.jv-drawer-link__icon,
.jv-drawer-support__icon,
.jv-position-guide__icon,
.jv-hero__icon,
.jv-count-block__icon,
.jv-apply__badge {
  display: grid;
  place-items: center;
}

.jv-resource-tab__icon svg,
.jv-drawer-link__icon svg,
.jv-drawer-support__icon svg,
.jv-position-guide__icon svg,
.jv-hero__icon svg,
.jv-count-block__icon svg,
.jv-apply__badge svg {
  width: 24px;
  height: 24px;
}

.jv-drawer-link {
  border-radius: 14px !important;
  border-color: #d9dee3 !important;
  box-shadow: 0 5px 14px rgba(19, 25, 31, 0.07);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.jv-drawer-link__icon {
  width: 46px !important;
  height: 46px !important;
  color: #8b6200 !important;
  background: linear-gradient(180deg, #fff9e4 0%, #fff0b8 100%) !important;
  border: 1px solid #e8c451 !important;
  border-radius: 13px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    transform 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.jv-drawer-link__icon svg {
  color: inherit !important;
  stroke: currentColor !important;
  stroke-width: 1.9 !important;
}

.jv-drawer-link:hover,
.jv-drawer-link:focus-visible {
  transform: translateY(-2px);
  background: #fffdf6 !important;
  border-color: #d4aa22 !important;
  box-shadow: 0 11px 24px rgba(19, 25, 31, 0.12);
}

.jv-drawer-link:hover .jv-drawer-link__icon,
.jv-drawer-link:focus-visible .jv-drawer-link__icon {
  color: #111 !important;
  background: linear-gradient(180deg, #ffe580 0%, #f2be2d 100%) !important;
  transform: translateY(-2px) rotate(-2deg);
}

.jv-drawer-link__copy em b {
  display: inline-block;
  transition: transform 160ms ease;
}

.jv-drawer-link:hover .jv-drawer-link__copy em b,
.jv-drawer-link:focus-visible .jv-drawer-link__copy em b {
  transform: translateX(4px);
}

/* Fix the black-on-black help icon and make the support card feel intentional. */
.jv-drawer-support {
  background: linear-gradient(145deg, #1a1d20 0%, #090a0b 100%) !important;
  border: 1px solid #202327 !important;
  border-top: 4px solid var(--jv-gold) !important;
  border-radius: 15px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
}

.jv-drawer-support__icon {
  width: 48px !important;
  height: 48px !important;
  color: var(--jv-gold) !important;
  background: rgba(242, 190, 45, 0.1) !important;
  border: 1px solid rgba(242, 190, 45, 0.42) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.jv-drawer-support__icon svg,
.jv-drawer-support__icon svg * {
  color: var(--jv-gold) !important;
  stroke: currentColor !important;
  fill: none !important;
}

.jv-drawer-support strong {
  color: var(--jv-gold) !important;
}

.jv-drawer-support > a {
  color: #fff !important;
  text-decoration-color: rgba(242, 190, 45, 0.55) !important;
  text-underline-offset: 3px;
}

.jv-drawer-support > a:hover,
.jv-drawer-support > a:focus-visible {
  color: #ffe37b !important;
}

/* Better close controls, with crisp icon geometry. */
#jvModalClose,
#jvResourcesClose,
#jvMobileFilterClose {
  color: #f6f7f8 !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.24) !important;
  border-radius: 11px !important;
}

#jvModalClose:hover,
#jvModalClose:focus-visible,
#jvResourcesClose:hover,
#jvResourcesClose:focus-visible,
#jvMobileFilterClose:hover,
#jvMobileFilterClose:focus-visible {
  color: #111 !important;
  background: var(--jv-gold) !important;
  border-color: var(--jv-gold) !important;
}

/* Crisp sort indicators instead of text glyphs. */
.jv-table thead button > span[aria-hidden="true"] {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 14px;
  margin-left: 4px;
  overflow: hidden;
  color: transparent !important;
  font-size: 0 !important;
}

.jv-table thead button > span[aria-hidden="true"]::before,
.jv-table thead button > span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 5px;
  height: 5px;
  border-left: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  color: #aeb4ba;
}

.jv-table thead button > span[aria-hidden="true"]::before {
  top: 2px;
  transform: translateX(-50%) rotate(45deg);
}

.jv-table thead button > span[aria-hidden="true"]::after {
  bottom: 2px;
  transform: translateX(-50%) rotate(225deg);
}

/* Contact actions now share the same icon language. */
.jv-contact-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 10px !important;
  font-size: 0.86rem;
}

.jv-contact-action:hover svg,
.jv-contact-action:focus-visible svg {
  transform: translateX(2px);
}

/* Keep modal and drawer usable without visible nested scrollbars. */
.jv-modal__body,
.jv-drawer__body {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

.jv-modal__body::-webkit-scrollbar,
.jv-drawer__body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

.jv-modal__actions .jv-button {
  font-size: 0.88rem;
  font-weight: 730 !important;
}

@keyframes jv-icon-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.jv-resource-tab:hover .jv-resource-tab__icon,
.jv-resource-tab:focus-visible .jv-resource-tab__icon {
  animation: jv-icon-breathe 700ms ease-in-out 1;
}

@media (max-width: 760px) {
  .jv-button {
    min-height: 46px;
    font-size: 0.92rem;
  }

  .jv-drawer-link__icon {
    width: 42px !important;
    height: 42px !important;
  }

  .jv-modal__actions .jv-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jv-button,
  .jv-button svg,
  .jv-contact-action svg,
  .jv-drawer-link,
  .jv-drawer-link__icon,
  .jv-drawer-link__copy em b,
  .jv-resource-tab__icon {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
