@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

:root {
  --color-brand-red: #CD172D;
  --color-brand-red-dark: #A31223;
  --color-white: #ffffff;
  --color-text-darkest: #1C1C1E;
  --color-text-dark: #26272B;
  --color-text-medium-dark: #393B3F;
  --color-text-medium: #51525C;
  --color-text-muted: #94979C;
  --color-text-light: #A0A0AB;
  --color-border: #D1D1D6;
  --color-border-strong: #A0A0AB;
  --color-border-light: #EBEBEB;
  --color-skeleton-highlight: #F5F5F5;
  --color-surface: #F4F4F5;
}

/* Lock the viewport only when the job opportunities list is shown (not hidden by ng-show) — desktop only */
@media screen and (min-width: 64rem) {
  body.ra-body-jobs:has(job-posts-table-component:not(.ng-hide) .jo-container) {
    height: 100dvh;
    overflow: hidden;
  }

  body.ra-body-jobs:has(job-posts-table-component:not(.ng-hide) .jo-container) .ra-layout {
    height: 100%;
    min-height: unset;
  }

  body.ra-body-jobs:has(job-posts-table-component:not(.ng-hide) .jo-container) .ra-content {
    overflow: hidden;
    min-height: unset;
  }

  body.ra-body-jobs:has(job-posts-table-component:not(.ng-hide) .jo-container) .ra-content-footer {
    position: sticky;
    bottom: 0;
  }
}

.jo-container {
  --filter-banner-column-size: 28.125rem;
  position: relative;
  display: grid;
  grid-template-columns: var(--filter-banner-column-size) 1fr;
  box-sizing: border-box;
  gap: 1.5rem;
  width: 100%;
  max-width: 83rem;
  margin-inline: auto;
  padding: 2.375rem 1.5rem;
  padding-bottom: 1.5rem;
  height: calc(100dvh - 127px);
  max-height: calc(100dvh - 127px);
  overflow: hidden;
}

/* Mobile & tablet: single column, natural document scroll */
@media screen and (max-width: 63.9375rem) {
  .jo-container {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 1.5rem 1rem;
  }

  .job-filter-container,
  .job-list-container {
    overflow-y: visible;
  }

  .job-search-bar {
    position: static;
  }
}

@media screen and (min-width: 64rem) {
  .jo-container {
    --filter-banner-column-size: 22rem;
  }
}

.job-filter-container,
.job-list-container {
  min-height: 0;
  overflow-y: auto;
}

@media screen and (min-width: 64rem) {
  .job-filter-container,
  .job-list-container {
    overflow-x: hidden;
    padding-right: 0.25rem;
    scrollbar-color: #A0A0AB #F4F4F5;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }

  .job-filter-container::-webkit-scrollbar,
  .job-list-container::-webkit-scrollbar {
    width: 0.625rem;
  }

  .job-filter-container::-webkit-scrollbar-track,
  .job-list-container::-webkit-scrollbar-track {
    background: #F4F4F5;
  }

  .job-filter-container::-webkit-scrollbar-thumb,
  .job-list-container::-webkit-scrollbar-thumb {
    background-color: #A0A0AB;
    border: 0.125rem solid #F4F4F5;
    border-radius: 999px;
  }
}

@media screen and (max-width: 63.9375rem) {
  .jo-container {
    padding-inline: 1rem;
  }
}

.job-filter-container > * {
  display: flex;
  flex-direction: column;
  padding-inline: 0.5rem;
}

careers-breadcrumb {
  margin-bottom: 1.5rem;
}

.filter-group-button:focus-visible,
.job-search-clear:focus-visible,
.load-more-btn:focus-visible,
.job-card-toggle-button:focus-visible,
.read-more-btn:focus-visible,
.faq-card-toggle:focus-visible {
  outline: 2px solid var(--color-brand-red);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(205, 23, 45, 0.16);
}

.faq-card-toggle:focus-visible {
  outline-offset: -4px;
  box-shadow: inset 0 0 0 3px rgba(205, 23, 45, 0.3);
}

.filter-group-button {
  all: unset;
  box-sizing: border-box;
  padding-block: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--color-text-medium);
  font-weight: 700;
  cursor: pointer;
}

.filter-group-button[aria-expanded="false"] {
  border-bottom: 1px solid var(--color-border);
}

.filter-group-toggle-icon,
.job-card-toggle-icon {
  position: relative;
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.job-card-toggle-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.job-card-toggle-button {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: 0.25rem;
  color: var(--color-text-dark);
  cursor: pointer;
}

.job-card-chevron {
  color: var(--color-text-muted);
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.job-card-toggle-button[aria-expanded="true"] .job-card-chevron {
  transform: rotate(180deg);
}

@media screen and (min-width: 64rem) {
  .job-card-toggle-icon {
    width: 1.75rem;
    height: 1.75rem;
  }
}

.job-filter-container .collapse,
.job-filter-container .collapsing {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.job-filter-container .form-check:last-child {
  margin-bottom: 1rem;
}

.job-filter-container .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--color-brand-red);
}

.job-filter-container .form-check-label {
  padding-left: 0.5rem;
  color: var(--color-text-medium);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
  gap: 0.5rem;
}

.filter-count {
  color: var(--color-text-medium);
  font-size: 0.8125rem;
  font-weight: 400;
  margin-left: auto;
}


/* Open-Ended Banner */
.banner-mobile-only {
    display: none;
}

@media screen and (max-width: 63.9375rem) {
    .banner-mobile-only {
        display: block;
    }

    .banner-desktop-only {
        display: none;
    }
}

.open-ended-banner-image-wrapper {
  /* width: 50%;
  max-width: 10.25rem; */
  margin-top: 1rem;
  margin-inline: auto;
  border-radius: 0.5rem;
  overflow: hidden;
}

.open-ended-banner-image-wrapper .banner-image {
  display: block;
  width: 100%;
  height: 100%;
  /* object-fit: contain;
  max-height: 30rem; */
}

.banner-mobile-only.open-ended-banner-image-wrapper {
  width: 100%;
  max-width: none;
}

.banner-mobile-only.open-ended-banner-image-wrapper .banner-image {
  height: auto;
}

.open-ended-banner {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, var(--color-brand-red) 0%, var(--color-brand-red-dark) 100%);
  border-radius: 1rem;
}

.open-ended-banner-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--color-white);
  cursor: pointer;
}

.open-ended-banner-content:hover {
  text-decoration: none;
  color: var(--color-white);
}

.open-ended-banner-content svg {
  transition: all 0.3s ease-in-out;
}

.open-ended-banner-content:hover svg {
  transform: translate(4px, -4px);
}

.open-ended-banner-content .heading {
  font-size: 1.5rem;
  font-weight: 700;
}

.content-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Search Bar */
.job-search-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  isolation: isolate;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  margin-bottom: 1.5rem;
  background-color: var(--color-white);
}

.job-search-bar::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  background-color: var(--color-white);
}

.job-search-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 1px solid var(--color-border);
  border-radius: inherit;
}

.job-search-bar:focus-within::after {
  border-color: #131316;
  box-shadow: none;
}

.job-search-icon {
  color: var(--color-text-muted);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.job-search-input {
  all: unset;
  flex: 1;
  font-size: 0.9375rem;
  color: var(--color-text-dark);
}

.job-search-input:focus {
  outline: none;
  box-shadow: none;
}

.job-search-input::placeholder {
  color: var(--color-text-muted);
}

.job-search-clear {
  all: unset;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  padding-left: 0.5rem;
}

.job-search-clear:hover {
  color: var(--color-text-medium);
}

/* Skeleton Loading */
@keyframes skeletonShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--color-border-light) 25%, var(--color-skeleton-highlight) 50%, var(--color-border-light) 75%);
  background-size: 800px 100%;
  animation: skeletonShimmer 1.4s ease infinite;
  border-radius: 0.5rem;
}

.skeleton-breadcrumb {
  height: 1rem;
  width: 60%;
  margin-bottom: 1.5rem;
}

.skeleton-filter-item {
  height: 2.5rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.skeleton-search-bar {
  height: 2.75rem;
  width: 100%;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.skeleton-card {
  border: 1px solid var(--color-border-light);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skeleton-title {
  height: 1.25rem;
  width: 55%;
}

.skeleton-pill-row {
  display: flex;
  gap: 0.5rem;
}

.skeleton-pill {
  height: 1.5rem;
  width: 6rem;
  border-radius: 2rem;
}

.job-side-banner-skeleton {
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* Job Post Card */
.job-posts-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.5rem;
}

.job-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 3rem 1rem;
  text-align: center;
  animation: cardFadeInUp 0.3s ease both;
}

.job-no-results svg {
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.5rem;
}

.job-no-results-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-text-darkest);
}

.job-no-results-sub {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

@keyframes cardFadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.jobs-post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  animation: cardFadeInUp 0.3s ease both;
}

.jobs-post-card:nth-child(1)  { animation-delay: 0ms; }
.jobs-post-card:nth-child(2)  { animation-delay: 50ms; }
.jobs-post-card:nth-child(3)  { animation-delay: 100ms; }
.jobs-post-card:nth-child(4)  { animation-delay: 150ms; }
.jobs-post-card:nth-child(5)  { animation-delay: 200ms; }
.jobs-post-card:nth-child(6)  { animation-delay: 250ms; }
.jobs-post-card:nth-child(7)  { animation-delay: 300ms; }
.jobs-post-card:nth-child(8)  { animation-delay: 350ms; }
.jobs-post-card:nth-child(n+9) { animation-delay: 400ms; }

.jobs-post-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.load-more-btn {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9375rem;
  padding-block: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.load-more-btn:hover {
  color: var(--color-brand-red);
}

.job-card-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.job-card-content {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.collapse-toggle-icon {
  position: absolute;
  inset: 0;
  display: block;
  background-color: currentColor;
  transform-origin: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.collapse-toggle-icon.icon-plus {
  -webkit-mask-image: url("/images/svg/plus.svg");
  mask-image: url("/images/svg/plus.svg");
  opacity: 1;
  transform: rotate(0deg);
}

.collapse-toggle-icon.icon-minus {
  -webkit-mask-image: url("/images/svg/minus.svg");
  mask-image: url("/images/svg/minus.svg");
  opacity: 0;
  transform: rotate(90deg);
}

.filter-group-button[aria-expanded="true"] .icon-plus {
  opacity: 0;
  transform: rotate(-90deg);
}

.filter-group-button[aria-expanded="true"] .icon-minus {
  opacity: 1;
  transform: rotate(0deg);
}

@media (forced-colors: active) {
  .collapse-toggle-icon {
    background-color: transparent;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .collapse-toggle-icon::before,
  .collapse-toggle-icon::after {
    content: "";
    position: absolute;
    background-color: ButtonText;
  }

  .collapse-toggle-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
  }

  .collapse-toggle-icon.icon-plus::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
  }

  .open-ended-banner {
    background: Canvas;
    border: 1px solid LinkText;
  }

  .open-ended-banner-content,
  .open-ended-banner-content:hover {
    color: LinkText;
  }

  .open-ended-banner-content svg path {
    stroke: LinkText;
  }
}

.job-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
  color: var(--color-text-dark);
  transition: all 0.2s ease;
}

@media screen and (min-width: 64rem) {
  .job-title {
    font-size: 2rem;
  }
}

.job-title:hover {
  color: var(--color-brand-red);
}

.job-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}

.pill {
  border-radius: 999vw;
  box-sizing: border-box;
  min-width: 0;
  padding-inline: 1.25rem;
  padding-block: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 2rem;
  font-size: 0.875rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
  background-color: var(--color-surface);
  color: var(--color-text-medium);
}

.job-description-preview {
  padding: 0 1.5rem 1.5rem;
  box-sizing: border-box;
}

.job-description-preview .ra-markup p {
  margin: 0 !important;
}

.read-more-btn-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.read-more-btn {
  all: unset;
  cursor: pointer;
  color: var(--color-brand-red);
  border: 1px solid var(--color-brand-red);
  border-radius: 0.5rem;
  padding: 0.375rem 1rem;
  background-color: transparent;
  font-size: 0.8125rem;
  font-weight: 700;
  transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 63.9375rem) {
  .read-more-btn {
    box-sizing: border-box;
    display: block;
    text-align: center;
    width: 100%;
  }
}

.read-more-btn:hover {
  background-color: var(--color-brand-red);
  color: var(--color-white);
  text-decoration: none;
}

.banner-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0.5rem;
}

/* For Faq page */
.faq-container {
  max-width: 64rem;
  margin: 0 auto;
  padding-top: 2rem;
  padding-inline: 1.5rem;
}

.faq-heading {
  margin-block: 2rem;
}

.faq-heading h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.faq-cards-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.faq-card {
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  animation: cardFadeInUp 0.35s ease both;
}

.faq-skeleton-card {
  border: 1px solid var(--color-border-light);
  border-radius: 0.5rem;
  padding: 2rem;
}

.faq-skeleton-question {
  height: 1.25rem;
  width: 65%;
}

.faq-skeleton-card:nth-child(1) { animation-delay: 0ms; }
.faq-skeleton-card:nth-child(2) { animation-delay: 60ms; }
.faq-skeleton-card:nth-child(3) { animation-delay: 120ms; }
.faq-skeleton-card:nth-child(4) { animation-delay: 180ms; }
.faq-skeleton-card:nth-child(5) { animation-delay: 240ms; }
.faq-skeleton-card:nth-child(6) { animation-delay: 300ms; }

.faq-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.faq-card:nth-child(1)  { animation-delay: 0ms; }
.faq-card:nth-child(2)  { animation-delay: 60ms; }
.faq-card:nth-child(3)  { animation-delay: 120ms; }
.faq-card:nth-child(4)  { animation-delay: 180ms; }
.faq-card:nth-child(5)  { animation-delay: 240ms; }
.faq-card:nth-child(6)  { animation-delay: 300ms; }
.faq-card:nth-child(7)  { animation-delay: 360ms; }
.faq-card:nth-child(8)  { animation-delay: 420ms; }
.faq-card:nth-child(n+9) { animation-delay: 480ms; }

.faq-card-toggle {
  all: unset;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
  cursor: pointer;
}

.faq-question {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-darkest);
  flex: 1;
}

.faq-chevron {
  color: var(--color-text-muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-card-toggle[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 2rem 2rem;
  text-align: left;
}

.faq-answer * {
  text-align: left !important;
}

.faq-answer p:last-child {
  margin-bottom: 0 !important;
}

.faq-answer p:empty,
.faq-answer p:has(> br:only-child) {
  display: none;
}

.faq-answer span {
  display: block !important;
}

@media screen and (min-width: 48rem) {
  .faq-container {
    padding-inline: 3rem;
  }
}

@media screen and (min-width: 64rem) {
  .faq-container {
    padding-top: 6rem;
  }

.faq-heading h1 {
    font-size: 3.75rem;
  }

  .faq-cards-container {
    padding-top: 0;
  }
}

/* Careers Jobpost View */
.job-post-container {
    max-width: 83rem;
    margin-inline: auto;
    padding-top: 2rem;
    padding-inline: 1.5rem;
}

.job-post-inner {
    max-width: 68.75rem;
    margin-inline: auto;
}

@media screen and (min-width: 48rem) {
    .job-post-container { 
        padding-inline: 3rem;
    }
}

@media screen and (min-width: 64rem) {
    .job-post-container { 
        padding-top: 6rem;
    }

    .job-post-bottom-actions {
        margin-bottom: 6rem !important;
    }
}

.job-post-columns {
    padding-top: 1.5rem;
}

.job-post-main {
    width: 700px;
    min-width: 0;
    padding-right: 40px;
    box-sizing: border-box;
    order: 1;
}

.job-post-title {
    font-size: 1.5rem;
    font-weight: 700;
}

@media screen and (min-width: 64rem) {
    .job-post-title {
        font-size: 3.75rem;
    }
}

.job-post-actions .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

#jobInfosAccordion .card-header h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0;
}

.job-post-sidebar-col {
    width: 400px;
    flex-shrink: 0;
    order: 2;
  align-self: flex-start;
  height: max-content;
}

@media (max-width: 1200px) {
  .job-post-main {
    width: calc(100% - 320px);
    padding-right: 24px;
    order: 1;
  }

  .job-post-sidebar-col {
    width: 320px;
    order: 2;
  }
}

@media (max-width: 991.98px) {
  .job-post-main { width: 100%; padding-right: 0; }
  .job-post-sidebar-col { width: 100%; }

  .job-post-actions .btn {
    display: block;
    width: 100%;
  }

  .job-post-actions .btn {
    margin-right: 0 !important;
  }
}

.job-post-sidebar {
  position: static;
}

@media screen and (min-width: 64rem) {
  .job-post-columns {
    align-items: flex-start;
  }

  .job-post-sidebar-col {
    position: -webkit-sticky;
    position: sticky;
    top: 1rem;
    z-index: 2;
  }

  .job-post-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 1rem;
  }
}

.job-details-card {
    width: 400px;
    background: var(--color-white);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    padding: 16px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .job-details-card { width: 100%; }
}

.job-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: #F4F4F5;
  margin-right: 1rem;
}

.job-details-card > :not(:last-child, :first-child) {
  border-bottom: 1px solid #F4F4F5;
}

.detail-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #51525C;
}

.detail-value {
  font-size: 1.125rem;
  font-weight: 600 !important;
  color: #51525C;
}

.job-details-card-mobile {
  padding: 0.75rem;
}

.job-details-card-mobile h6 {
  margin: 0.5rem 0.75rem 0.25rem !important;
}

.job-details-card-mobile .d-flex.align-items-center.p-3 {
  padding: 0.875rem 0.75rem !important;
}

.job-details-card-mobile .job-detail-icon {
  flex-basis: 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.75rem;
}

.job-details-card-mobile .job-detail-icon img {
  width: 1.25rem;
  height: 1.25rem;
}

.job-details-card-mobile .detail-title {
  font-size: 0.6875rem;
}

.job-details-card-mobile .detail-value {
  font-size: 1rem;
}

.job-post-skeleton-container {
  min-height: 60vh;
}

.job-post-skeleton-title {
  width: min(100%, 42rem);
  height: 2.25rem;
  margin-bottom: 1rem;
}

.job-post-skeleton-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.job-post-skeleton-button {
  width: 9rem;
  height: 2.5rem;
}

.job-post-skeleton-button-secondary {
  width: 11rem;
}

.job-post-skeleton-copy {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}

.job-post-skeleton-line {
  width: 82%;
  height: 1rem;
}

.job-post-skeleton-line-full {
  width: 100%;
}

.job-post-skeleton-line-short {
  width: 56%;
}

.job-post-skeleton-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.job-post-skeleton-accordion-row {
  width: 100%;
  height: 3.5rem;
}

.job-post-skeleton-section-heading {
  width: 7.5rem;
  height: 1rem;
  margin: 0.5rem 0 1rem;
}

.job-post-skeleton-detail-row {
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

.job-post-skeleton-detail-row:not(:last-child) {
  border-bottom: 1px solid #F4F4F5;
}

.job-post-skeleton-detail-icon {
  width: 3rem;
  height: 3rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.job-post-skeleton-detail-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.job-post-skeleton-detail-label {
  width: 6.5rem;
  height: 0.75rem;
}

.job-post-skeleton-detail-value {
  width: min(100%, 12rem);
  height: 1.125rem;
}

.job-post-skeleton-banner {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 1rem;
}

.job-post-skeleton-mobile-details {
  margin-bottom: 2rem;
}

@media screen and (min-width: 64rem) {
  .job-post-skeleton-title {
    height: 4.5rem;
  }
}

/* Registration Form */
.registration-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0 !important;
}

.register-dropdown-toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.register-dropdown-toggle:focus-visible {
  outline: 2px solid var(--color-brand-red);
  outline-offset: 3px;
}

.register-dropdown-toggle .register-dropdown-value {
  min-height: calc(1.5em + 0.75rem + 2px);
}

.register-dropdown-value .text-black-50 {
  color: var(--color-text-medium) !important;
}

.register-dropdown-remove:focus-visible {
  outline: 2px solid var(--color-brand-red) !important;
  outline-offset: 2px;
}

.register-form {
  margin-bottom: 1.25rem !important;
}

.register-form .form-group {
  margin-bottom: 0.5rem !important;
}

.register-form .col-form-label-sm {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-medium-dark);
}

.register-form .form-control {
  border: 1px solid var(--color-border-strong) !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 1rem !important;
  height: auto !important;
}

.register-form .popover.popover-error,
.register-form .popover-error {
  z-index: 900;
}

@media screen and (max-width: 64rem) {
  .register-form > [class*="col-md-"],
  .register-form > [class*="col-lg-"],
  .register-form > .form-group[class*="col-md-"],
  .register-form > .form-group[class*="col-lg-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .register-form .flex-lg-row {
    flex-direction: column !important;
  }
}

.register-form input[type="checkbox"] {
  accent-color: #cd172d;
  width: 1.25rem;
  height: 1.25rem;
}

.present-checkbox-label {
  gap: 0.5rem;
  padding-left: 0;
}

.present-checkbox-input {
  margin: 0 !important;
}

.present-checkbox-label .form-check-label {
  padding-left: 0;
}

.register-form select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("/images/svg/chevron-down.svg");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.25rem !important;
}

@media (forced-colors: active) {
  .register-form input[type="date"].form-control {
    color: FieldText;
    background-color: Field;
    border-color: FieldText !important;
    color-scheme: light dark;
  }

  .register-form input[type="date"].form-control::-webkit-calendar-picker-indicator {
    forced-color-adjust: auto;
    opacity: 1;
  }
}

.register-actions .btn.btn-openit.btn-openit-red,
.register-actions .btn.btn-lg.btn-light.border {
  border-radius: 0.5rem !important;
}

.register-actions > .btn {
  font-size: 1rem;
}

@media screen and (min-width: 64rem) {
  .register-actions > .btn {
    width: 12.5rem;
    text-transform: uppercase;
  }
}

.register-form .btn.btn-success.btn-xs,
.register-form .btn.btn-danger.btn-xs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem !important;
  border-radius: 0.5rem !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.register-form .form-table-responsive thead th:last-child {
  vertical-align: middle;
}

.register-form .btn.btn-success.btn-xs {
  background-image: url("/images/svg/plus.svg");
}

.register-form .btn.btn-danger.btn-xs {
  background-image: url("/images/svg/trash.svg");
}

.register-form .btn.btn-success.btn-xs i,
.register-form .btn.btn-danger.btn-xs i {
  display: none;
}

@media screen and (max-width: 47.9375rem) {
  .portfolio-header {
    justify-content: space-between;
  }

  .portfolio-add-btn {
    margin-left: auto !important;
  }

  .portfolio-row {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .portfolio-row .form-control {
    width: 100%;
  }

  .portfolio-remove-btn {
    margin-left: 0 !important;
  }
}

@media screen and (min-width: 48rem) {
  .register-form .btn.btn-danger.btn-xs.portfolio-remove-btn {
    width: calc(1.5em + 1.5rem + 2px) !important;
    height: calc(1.5em + 1.5rem + 2px) !important;
  }
}

.divider {
  height: 1px;
  background-color: var(--color-surface);
  margin-block: 1.5rem;
}

/* Responsive Form Tables (Work History, Character References, Educational Background) */
/* Mobile-first: stacked layout by default */
.form-mobile-add-btn {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.form-table-responsive thead {
  display: none;
}

.form-table-responsive,
.form-table-responsive tbody,
.form-table-responsive tr,
.form-table-responsive td {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.form-table-responsive tbody tr {
  padding: 1rem 0;
  margin-bottom: 0;
}

.form-table-responsive tbody tr + tr {
  border-top: 1px solid var(--color-surface);
}

.form-table-responsive td {
  border: none !important;
  padding: 0 !important;
  margin-bottom: 1rem;
}

.form-table-responsive td:last-child {
  margin-bottom: 0;
  display: flex;
  justify-content: flex-start;
  padding-top: 0 !important;
}

.form-table-responsive td::before {
  content: attr(data-label);
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-medium-dark);
  margin-bottom: 0.25rem;
}

.form-table-responsive td:last-child::before {
  display: none;
}

.form-table-responsive td[data-label="Present"] {
  text-align: left !important;
}

.form-table-responsive td[data-label="Present"]::before {
  display: none;
}

.work-history-table tbody tr {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
}

.work-history-table td {
  grid-column: 1 / -1;
}

.work-history-table td[data-label="Present"] {
  grid-column: 2;
  display: flex;
  justify-content: flex-end;
  justify-self: stretch;
  margin-bottom: 0;
  order: 2;
}

.work-history-table td:last-child {
  grid-column: 1;
  order: 1;
}

.work-history-date-to-input {
  width: 100%;
}

/* Desktop: restore standard table layout */
@media screen and (min-width: 64.0625rem) {
  .register-form .form-mobile-add-btn {
    display: none !important;
  }

  .form-table-responsive thead {
    display: table-header-group;
  }

  .form-table-responsive thead th {
    background-color: var(--color-surface) !important;
    padding: 0.625rem !important;
  }

  .form-table-responsive {
    display: table;
  }

  .form-table-responsive tbody {
    display: table-row-group;
  }

  .form-table-responsive tr {
    display: table-row;
    width: auto;
  }

  .work-history-table tbody tr {
    display: table-row;
  }

  .work-history-table td {
    grid-column: auto;
    justify-self: auto;
    order: initial;
  }

  .form-table-responsive tbody tr {
    padding: 0;
  }

  .form-table-responsive tbody tr + tr {
    border-top: none;
  }

  .form-table-responsive td {
    display: table-cell;
    width: auto;
    padding: .3rem !important;
    margin-bottom: 0;
  }

  .form-table-responsive td:last-child {
    display: table-cell;
    justify-content: unset;
  }

  .form-table-responsive td[data-label="Present"] {
    display: table-cell;
    vertical-align: middle;
  }

  .form-table-responsive td[data-label="Present"] .present-checkbox-label {
    display: inline-flex !important;
    vertical-align: middle;
  }

  .form-table-responsive td::before,
  .form-table-responsive td:last-child::before {
    display: none;
  }

  .work-history-date-to-cell,
  .work-history-date-to-input {
    min-width: 150px;
    width: 150px;
  }
}
