:root {
  --navy: #003366;
  --navy-dark: #002244;
  --navy-deep: #001A33;
  --blue: #0A66C2;
  --blue-hover: #004182;
  --background: #F8FAFC;
  --card-bg: #ffffff;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --hero-grad: linear-gradient(180deg, #003366 0%, #004182 45%, #0A66C2 100%);
  --ai-grad: linear-gradient(100deg, #003366 0%, #0A66C2 100%);
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;
  --font-montserrat: var(--font-display);
  --font-barlow: var(--font-display);
  --font-inter: var(--font-text);
}

.job-detail-page-container {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.job-detail-page-container a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

.job-detail-page-container a:hover {
  color: var(--blue-hover);
}

/* Built In Breadcrumbs Bar */
.builtin-breadcrumb-wrap {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.builtin-breadcrumb-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 12px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.builtin-breadcrumb-inner a {
  color: var(--navy);
  font-weight: 500;
}

.builtin-breadcrumb-inner a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.builtin-breadcrumb-sep {
  color: #94a3b8;
  font-size: 11px;
}

.builtin-breadcrumb-current {
  color: var(--text-muted);
  font-weight: 600;
}

/* ==================================================================== */
/* BUILT IN FLAGSHIP HERO SECTION - SINGLE CARD REFERENCE DESIGN        */
/* ==================================================================== */
.builtin-hero {
  background: var(--hero-grad);
  padding: 32px 20px;
}

.flagship-hero-container {
  max-width: 1180px;
  margin: 0 auto;
}

.flagship-job-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  padding: 26px 30px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.16), 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s ease;
}

.flagship-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.flagship-brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flagship-logo-box {
  width: 84px !important;
  height: 84px !important;
  min-width: 84px !important;
  min-height: 84px !important;
  border-radius: 10px;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  overflow: hidden;
  flex-shrink: 0;
}

.flagship-logo-box img {
  width: 100% !important;
  height: 100% !important;
  max-width: 84px !important;
  max-height: 84px !important;
  object-fit: contain;
  background: transparent !important;
  border: none !important;
}

.flagship-company-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flagship-company-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.flagship-company-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a !important;
  text-decoration: none;
  line-height: 1.3;
}

.flagship-company-name:hover {
  color: #0052cc !important;
}

.flagship-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.flagship-company-sub {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}

.sub-dot {
  color: #94a3b8;
}

.flagship-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flagship-badge-new {
  background: transparent;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  letter-spacing: 0.02em;
}

.new-dot {
  display: none;
}

.flagship-save-btn {
  background: transparent;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.flagship-save-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.flagship-save-btn.saved {
  color: #0052cc;
}

.flagship-job-title {
  font-family: var(--font-montserrat, 'Montserrat', sans-serif);
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 16px 0 14px 0;
  letter-spacing: -0.015em;
}

.flagship-specs-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: #334155;
  font-weight: 500;
}

.flagship-spec-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334155;
}

.spec-icon {
  color: #64748b;
  flex-shrink: 0;
}

.flagship-pipe {
  color: #cbd5e1;
  font-weight: 300;
  font-size: 14px;
  margin: 0 4px;
}

.flagship-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid #f1f5f9;
}

.flagship-bottom-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.flagship-salary-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0052cc;
  font-size: 16px;
}

.flagship-salary-text {
  color: #0052cc;
  font-weight: 700;
  font-size: 16px;
}

.flagship-posted-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 500;
}

.flagship-apply-btn {
  background: #0052cc;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.28);
  transition: all 0.15s ease;
  text-decoration: none;
}

.flagship-apply-btn:hover {
  background: #0041a8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 82, 204, 0.35);
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .flagship-job-card {
    padding: 18px;
  }
  .flagship-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .flagship-top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .flagship-job-title {
    font-size: 21px;
    margin: 12px 0;
  }
  .flagship-bottom-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .flagship-apply-btn {
    width: 100%;
    justify-content: center;
  }
}

/* 2-Column Built In Main Layout */
.builtin-layout {
  max-width: 1180px;
  margin: 20px auto 60px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
  align-items: start;
}

.builtin-column {
  min-width: 0;
}

/* Common Card Styling */
.builtin-card {
  background: var(--card-bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(24, 30, 48, 0.05);
}

.builtin-card-header {
  background: var(--navy);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.builtin-card-body {
  padding: 18px 20px;
}

/* The Role Section & Action Buttons */
.role-summary-p {
  font-size: 13px;
  line-height: 1.65;
  color: #4b5563;
  margin: 0 0 10px;
}

.role-generated-tag {
  font-size: 10.5px;
  color: #94a3b8;
  text-align: center;
  margin: 10px 0 16px;
  letter-spacing: 0.3px;
}

.role-actions-row {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-builtin-apply {
  flex: 1;
  background: transparent !important;
  color: var(--blue) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 5px;
  padding: 10px 18px;
  font-family: var(--font-montserrat);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.15s ease;
}

.btn-builtin-apply:hover, .btn-builtin-apply:focus, .btn-builtin-apply:active {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--blue-hover) !important;
  text-decoration: underline;
}

.btn-builtin-save {
  flex: 1;
  background: transparent !important;
  color: var(--blue) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 5px;
  padding: 10px 18px;
  font-family: var(--font-montserrat);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.15s ease;
}

.btn-builtin-save:hover, .btn-builtin-save:focus, .btn-builtin-save:active {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--blue-hover) !important;
  text-decoration: underline;
}

/* Detailed Job Text */
.desc-subheading {
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  margin: 16px 0 8px;
}

.desc-body-p {
  font-size: 13px;
  line-height: 1.65;
  color: #4b5563;
  margin: 0 0 12px;
}

.desc-bullets-list {
  margin: 0 0 14px;
  padding-left: 20px;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.7;
}

.desc-bullets-list li {
  margin-bottom: 6px;
}

.btn-read-more-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--navy);
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px;
  cursor: pointer;
  border-top: 1px solid var(--border-light);
  margin-top: 10px;
  transition: color 0.15s ease;
}

.btn-read-more-toggle:hover {
  color: var(--blue);
}

/* Skills Required */
.skills-header-simple {
  font-family: var(--font-montserrat);
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 14px;
}

/* What The Team Is Saying */
.quote-box-wrap {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
}

.quote-white-card {
  padding: 18px 20px;
  background: #ffffff;
  font-size: 13px;
  font-style: italic;
  color: #334155;
  line-height: 1.65;
  position: relative;
}

.quote-navy-card {
  background: var(--navy);
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.quote-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #ffffff;
  object-fit: cover;
}

.quote-person-name {
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
}

.quote-person-title {
  font-size: 11.5px;
  color: #94a3b8;
}

.quote-faces-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 6px 0;
}

.quote-face-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #3b82f6;
  object-fit: cover;
  background: #e2e8f0;
}

/* Benefits Highlights */
.benefit-item-row {
  margin-bottom: 14px;
  font-size: 13px;
  line-height: 1.65;
  color: #4b5563;
}

.benefit-item-row strong {
  color: var(--navy);
  font-weight: 700;
}

/* Insights Section */
.insights-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
}

.insight-link {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0;
  display: block;
  background: transparent;
  border: none;
  cursor: pointer;
}

.insight-link:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

.job-utility-links {
  border-top: 1px solid var(--border-light);
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

/* Am I A Good Fit? (BETA) */
.ai-fit-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(24, 30, 48, 0.05);
}

.ai-fit-header {
  background: var(--ai-grad);
  color: #ffffff;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-beta-badge {
  background: #ffffff;
  color: #0284c7;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-fit-body {
  padding: 18px 20px;
}

.ai-insights-lead {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ai-symbol-star {
  font-size: 26px;
  color: var(--blue);
  line-height: 1;
}

.ai-title-lead {
  font-family: var(--font-montserrat);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 4px;
}

.ai-desc-lead {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.ai-dropzone-box {
  border: 1.5px dashed #aeb6ce;
  border-radius: 6px;
  padding: 18px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ai-dropzone-box:hover {
  border-color: var(--blue);
  background: #eff6ff;
}

.btn-ai-upload {
  background: var(--blue);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-block;
  transition: background 0.15s ease;
}

.btn-ai-upload:hover {
  background: var(--blue-hover);
}

/* The Company Overview */
.company-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 14px;
}

.company-stat-cell {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Gallery 2x3 Grid */
.company-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 12px 0 16px;
}

.gallery-photo-thumb {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* Workplace info */
.workplace-pill-row {
  display: inline-block;
  padding: 3px 8px;
  background: #f1f5f9;
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* Similar Jobs Listing Cards */
.similar-job-item {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.similar-job-item:last-child {
  border-bottom: none;
}

.similar-job-item:hover {
  background: #f8fafc;
}

.similar-job-left {
  min-width: 0;
}

.similar-job-company {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 2px;
}

.similar-job-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 4px;
}

.similar-job-cats {
  font-size: 10.5px;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}

.similar-job-right {
  text-align: right;
  font-size: 11px;
  color: var(--text-muted);
  min-width: 105px;
  border-left: 1px solid var(--border-light);
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.similar-job-right strong {
  color: var(--navy);
  font-weight: 700;
}

/* Sticky wrapper */
.sticky-sidebar-wrap {
  position: sticky;
  top: 20px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .builtin-hero-inner {
    grid-template-columns: 1fr;
  }
  .builtin-layout {
    grid-template-columns: 1fr;
  }
  .sticky-sidebar-wrap {
    position: static;
  }
}

@media (max-width: 576px) {
  .flagship-job-card {
    padding: 20px 18px;
  }
  .role-actions-row {
    flex-direction: column;
  }
  .company-stats-grid,
  .company-gallery-grid {
    grid-template-columns: 1fr;
  }
  .similar-job-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .similar-job-cats {
    max-width: 100%;
    white-space: normal;
  }
  .similar-job-right {
    text-align: left;
    min-width: 0;
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding-left: 0;
    padding-top: 8px;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
  }
}

/* USER DESIGN RULE */
button, .btn, .btn-builtin-apply, .btn-builtin-save, .btn-builtin-share, .insight-link {
  color: var(--blue, #0a66c2) !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
button:focus, button:focus-visible, a:focus, a:focus-visible,
.btn:focus, .btn:focus-visible,
.btn-builtin-apply:focus, .btn-builtin-apply:focus-visible,
.btn-builtin-save:focus, .btn-builtin-save:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Prevent legacy builtin-theme.css from laying out footer-brand horizontally */
.site-footer .footer-brand {
  display: block !important;
  max-width: 100%;
  min-width: 0;
}
.site-footer .footer-col {
  min-width: 0;
}
.site-footer .footer-col a {
  display: inline-block;
  margin-bottom: 0;
}
