/* =============================================================================
   Contract Vehicle Page Styles
   ============================================================================= */

/* --- Variables (local scope) --- */
.node--type-contract-vehicle {
  --cv-navy:        #0A1628;
  --cv-navy-mid:    #0F2244;
  --cv-blue:        #0066CC;
  --cv-blue-dark:   #004A99;
  --cv-blue-tint:   #E3EEFF;
  --cv-blue-soft:   #F0F5FF;
  --cv-orange:      #F58220;
  --cv-orange-dark: #D96F10;
  --cv-gray-50:     #F8FAFC;
  --cv-gray-100:    #F1F5F9;
  --cv-gray-200:    #E5E7EB;
  --cv-gray-400:    #94A3B8;
  --cv-gray-600:    #475569;
  --cv-gray-700:    #334155;
  --cv-gray-800:    #1E293B;
  --cv-text:        #374151;
}

/* =============================================================================
   Hero Banner
   ============================================================================= */

.cv-hero {
  background: linear-gradient(135deg, var(--cv-navy) 0%, var(--cv-navy-mid) 100%);
  padding: 52px 0 48px;
  position: relative;
  overflow: hidden;
}

.cv-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cv-orange) 0%, var(--cv-blue) 100%);
}

.cv-hero__eyebrow {
  color: var(--cv-orange);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  font-family: 'Inter', sans-serif;
}

.cv-hero__title {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  font-family: 'Inter', sans-serif;
}

/* =============================================================================
   Two-column layout
   ============================================================================= */

.cv-layout {
  display: grid;
  grid-template-columns: 1fr 284px;
  gap: 52px;
  padding-top: 44px;
  padding-bottom: 72px;
  align-items: start;
}

/* =============================================================================
   Body content — base typography
   ============================================================================= */

.cv-body {
  min-width: 0;
}

.cv-body .field--name-body,
.cv-body .clearfix.text-formatted {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--cv-text);
  line-height: 1.7;
}

/* Nested span wrappers (legacy CKEditor artefact) */
.cv-body .field--name-body span {
  font-family: inherit !important;
}

/* Generic prose */
.cv-body .field--name-body p {
  margin: 0 0 1rem;
  color: var(--cv-text);
  line-height: 1.75;
}

.cv-body .field--name-body ul,
.cv-body .field--name-body ol {
  padding-left: 0;
  margin: 0 0 1.25rem;
  list-style: none;
}

.cv-body .field--name-body ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--cv-text);
  line-height: 1.65;
}

.cv-body .field--name-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cv-orange);
}

.cv-body .field--name-body ol {
  list-style: decimal;
  padding-left: 1.5rem;
}

.cv-body .field--name-body ol li {
  margin-bottom: 0.5rem;
  color: var(--cv-text);
}

.cv-body .field--name-body strong {
  color: var(--cv-gray-800);
  font-weight: 600;
}

.cv-body .field--name-body a {
  color: var(--cv-blue);
  text-decoration: none;
}

.cv-body .field--name-body a:hover {
  color: var(--cv-blue-dark);
  text-decoration: underline;
}

/* =============================================================================
   Section structure — #mcats-* and #hhs* divs
   ============================================================================= */

.cv-body .iwc-section {
  padding: 0;
  margin: 0;
}

/* --- Intro / overview card (#mcats-top) --- */
.cv-body #mcats-top {
  background: var(--cv-blue-soft);
  border-left: 4px solid var(--cv-blue);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px;
  margin-bottom: 36px;
}

.cv-body #mcats-top h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cv-navy);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,102,204,0.2);
  font-family: 'Inter', sans-serif;
}

.cv-body #mcats-top p,
.cv-body #mcats-top li {
  font-size: 0.9375rem;
}

/* --- Interior content sections --- */
.cv-body #mcats-info,
.cv-body #mcats-list,
.cv-body #gsamas-table {
  padding-top: 32px;
  border-top: 1px solid var(--cv-gray-200);
  margin-bottom: 0;
}

/* Section headings */
.cv-body .field--name-body h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--cv-navy);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cv-blue-tint);
  line-height: 1.3;
}

/* GSA table section sub-labels (p with only a strong) */
.cv-body .field--name-body #gsamas-table p > strong:only-child {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cv-blue);
  margin-top: 24px;
  margin-bottom: 6px;
}

/* --- Contact / point-of-contact section --- */
.cv-body #mcats-bottom,
.cv-body #mcats-contact {
  background: var(--cv-navy);
  border-radius: 8px;
  padding: 28px 32px;
  margin-top: 36px;
}

.cv-body #mcats-bottom h2,
.cv-body #mcats-contact h2 {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.12);
}

.cv-body #mcats-bottom p,
.cv-body #mcats-bottom li,
.cv-body #mcats-contact p,
.cv-body #mcats-contact li {
  color: #94A3B8;
}

.cv-body #mcats-bottom strong,
.cv-body #mcats-contact strong {
  color: #fff;
}

.cv-body #mcats-bottom a,
.cv-body #mcats-contact a {
  color: var(--cv-orange);
}

.cv-body #mcats-bottom a:hover,
.cv-body #mcats-contact a:hover {
  color: #fff;
  text-decoration: none;
}

.cv-body #mcats-bottom ul li::before,
.cv-body #mcats-contact ul li::before {
  background: var(--cv-orange);
}

/* =============================================================================
   HHS NGITS (#hhs1 / #hhs2) — float-based legacy columns, flattened
   ============================================================================= */

.cv-body #hhs1,
.cv-body #hhs2 {
  margin-bottom: 0;
}

.cv-body #hhs1 .iwc-section,
.cv-body #hhs2 .iwc-section {
  padding-top: 32px;
  border-top: 1px solid var(--cv-gray-200);
}

.cv-body #hhs1 .iwc-section:first-child {
  padding-top: 0;
  border-top: none;
}

/* Flatten the .left/.right float columns */
.cv-body .left,
.cv-body .right {
  float: none !important;
  width: 100% !important;
  clear: both;
}

/* The intro .left block gets the blue card treatment */
.cv-body #hhs1 .iwc-section > .left:first-child {
  background: var(--cv-blue-soft);
  border-left: 4px solid var(--cv-blue);
  border-radius: 0 8px 8px 0;
  padding: 22px 26px;
  margin-bottom: 24px;
}

/* =============================================================================
   Tables (GSA MAS, OASIS+, others)
   ============================================================================= */

.cv-body .field--name-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 0.875rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.cv-body .field--name-body thead th {
  background: var(--cv-navy);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  border: none;
}

.cv-body .field--name-body tbody tr {
  border-bottom: 1px solid var(--cv-gray-200);
}

.cv-body .field--name-body tbody tr:last-child {
  border-bottom: none;
}

.cv-body .field--name-body tbody tr:nth-child(even) {
  background: var(--cv-gray-50);
}

.cv-body .field--name-body td {
  padding: 12px 16px;
  vertical-align: top;
  color: var(--cv-text);
  border: none;
}

/* Icon + label pairs in GSA MAS table cells */
.cv-body .field--name-body td > img {
  display: block;
  margin-bottom: 6px;
  opacity: 0.85;
}

.cv-body .field--name-body td > p {
  margin-bottom: 0;
}

/* =============================================================================
   Images
   ============================================================================= */

.cv-body .field--name-body .align-center {
  display: block;
  margin: 20px auto;
  max-width: 200px;
  height: auto;
  border-radius: 4px;
}

.cv-body .field--name-body img {
  max-width: 100%;
  height: auto;
}

/* =============================================================================
   Buttons & CTAs
   ============================================================================= */

/* Legacy .main_button → orange CTA */
.cv-body .field--name-body .main_button,
.cv-body .field--name-body a.main_button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cv-orange);
  color: #fff !important;
  border-radius: 6px;
  padding: 11px 22px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s, transform 0.1s;
  margin: 10px 4px 10px 0;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.cv-body .field--name-body .main_button:hover,
.cv-body .field--name-body a.main_button:hover {
  background: var(--cv-orange-dark);
  transform: translateY(-1px);
}

/* PDF download links */
.cv-body .field--name-body a[href$=".pdf"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cv-blue);
  font-weight: 500;
  padding: 6px 14px 6px 10px;
  background: var(--cv-blue-soft);
  border: 1px solid var(--cv-blue-tint);
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.15s;
}

.cv-body .field--name-body a[href$=".pdf"]::before {
  content: '↓';
  font-weight: 700;
  color: var(--cv-blue);
}

.cv-body .field--name-body a[href$=".pdf"]:hover {
  background: var(--cv-blue-tint);
}

/* =============================================================================
   Sidebar
   ============================================================================= */

.cv-sidebar {
  position: sticky;
  top: 24px;
}

.cv-sidebar__inner {
  background: var(--cv-gray-50);
  border: 1px solid var(--cv-gray-200);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.cv-sidebar__heading {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cv-gray-400);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cv-gray-200);
}

.cv-sidebar__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0;
}

.cv-sidebar__item {
  border-bottom: 1px solid #F0F4F8;
}

.cv-sidebar__item:last-child {
  border-bottom: none;
  margin-bottom: 16px;
}

.cv-sidebar__link {
  display: block;
  padding: 9px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cv-blue);
  text-decoration: none;
  line-height: 1.35;
  transition: color 0.15s;
  font-family: 'Inter', sans-serif;
}

.cv-sidebar__link:hover {
  color: var(--cv-blue-dark);
  text-decoration: underline;
}

/* Current item — orange bar + bold */
.cv-sidebar__link--current {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--cv-navy);
  font-weight: 700;
  cursor: default;
  padding: 9px 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-family: 'Inter', sans-serif;
}

.cv-sidebar__link--current::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 3px;
  min-height: 1.35em;
  margin-top: 0.1em;
  background: var(--cv-orange);
  border-radius: 2px;
}

/* Back link */
.cv-sidebar__back {
  padding: 14px 0;
  border-top: 1px solid var(--cv-gray-200);
  border-bottom: 1px solid var(--cv-gray-200);
  margin-bottom: 18px;
}

.cv-sidebar__all-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cv-blue);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.cv-sidebar__all-link:hover {
  color: var(--cv-blue-dark);
  text-decoration: underline;
}

/* CTA */
.cv-sidebar__cta {
  background: var(--cv-navy);
  border-radius: 8px;
  padding: 18px 16px;
  text-align: center;
}

.cv-sidebar__cta p {
  color: #94A3B8;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0 0 12px;
  font-family: 'Inter', sans-serif;
}

.btn-gdh-cv {
  display: block;
  width: 100%;
  background: var(--cv-orange);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 14px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-gdh-cv:hover {
  background: var(--cv-orange-dark);
  color: #fff;
}

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 960px) {
  .cv-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cv-sidebar {
    position: static;
  }
}

@media (max-width: 600px) {
  .cv-hero {
    padding: 36px 0 32px;
  }

  .cv-layout {
    padding-top: 28px;
    padding-bottom: 48px;
  }

  .cv-body #mcats-top {
    padding: 18px 20px;
  }

  .cv-body #mcats-bottom,
  .cv-body #mcats-contact {
    padding: 20px 20px;
  }

  .cv-body .field--name-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Override the global #content-main a { color: #e4232d } rule */
#content-main .cv-body .field--name-body a {
  color: var(--cv-blue);
}

#content-main .cv-body .field--name-body a:hover {
  color: var(--cv-blue-dark);
}

#content-main .cv-body .field--name-body .main_button,
#content-main .cv-body .field--name-body a.main_button {
  color: #fff !important;
}

#content-main .cv-body .field--name-body a[href".pdf"] {
  color: var(--cv-blue);
}

#content-main .cv-body #mcats-bottom a,
#content-main .cv-body #mcats-contact a {
  color: var(--cv-orange);
}
