/* PH 39-brand homepage UI v3. Scoped to the batch marker so inner pages keep their template styling. */
.ph-batch-ui-v3 {
  background: #f8fafc;
  color: #172033;
}

.ph-batch-ui-v3 main {
  overflow: hidden;
}

.ph-batch-ui-v3 .site-header-sticky .navbar {
  border-color: rgba(255, 255, 255, .12) !important;
  background: linear-gradient(135deg, #111827, color-mix(in srgb, var(--primary, #7c3aed) 36%, #111827)) !important;
}

.ph-batch-ui-v3 .site-header-sticky .navbar .nav-link {
  color: #e2e8f0 !important;
}

.ph-batch-ui-v3 .site-header-sticky .navbar .nav-link:is(:hover, :focus, .active),
.ph-batch-ui-v3 .site-header-sticky .navbar .nav-link[aria-current="page"] {
  color: #fde68a !important;
}

.ph-batch-ui-v3 .site-header-sticky .navbar-toggler {
  border-color: rgba(255, 255, 255, .38) !important;
}

.ph-batch-ui-v3 .site-header-sticky .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.ph-batch-ui-v3 .ph-batch-hero {
  position: relative;
  margin: 0;
  padding: clamp(3rem, 7vw, 6.25rem) 0 clamp(3rem, 6vw, 5.25rem) !important;
  border-radius: 0 0 2.25rem 2.25rem !important;
  background:
    radial-gradient(circle at 84% 18%, color-mix(in srgb, var(--secondary, #f59e0b) 32%, transparent), transparent 23rem),
    radial-gradient(circle at 8% 88%, color-mix(in srgb, var(--primary, #7c3aed) 40%, transparent), transparent 28rem),
    linear-gradient(135deg, #111827 0%, color-mix(in srgb, var(--primary, #7c3aed) 34%, #111827) 48%, #0f172a 100%) !important;
  box-shadow: 0 28px 70px rgba(15, 23, 42, .2);
  color: #f8fafc !important;
  overflow: hidden;
}

.ph-batch-ui-v3 .ph-batch-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}

.ph-batch-ui-v3 .ph-batch-hero > .container {
  position: relative;
  z-index: 1;
}

.ph-batch-ui-v3 .ph-batch-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.ph-batch-ui-v3 .ph-batch-hero-copy {
  min-width: 0;
}

.ph-batch-ui-v3 .ph-batch-hero .eyebrow {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  margin-bottom: 1.2rem;
  padding: .55rem .85rem;
  border: 1px solid rgba(253, 230, 138, .38);
  border-radius: 999px !important;
  background: rgba(15, 23, 42, .5);
  color: #fde68a !important;
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ph-batch-ui-v3 .ph-batch-hero h1 {
  max-width: 16ch;
  margin: 0;
  color: #fff !important;
  font-size: clamp(2.25rem, 4.1vw, 4.05rem);
  font-weight: 850 !important;
  letter-spacing: -.04em !important;
  line-height: 1.03;
  text-wrap: balance;
}

.ph-batch-ui-v3 .ph-batch-hero-lead,
.ph-batch-ui-v3 .ph-batch-hero-copy > p {
  max-width: 64ch !important;
  margin: 1.35rem 0 0 !important;
  color: #e2e8f0 !important;
  font-size: clamp(1rem, 1.3vw, 1.12rem) !important;
  line-height: 1.72;
}

.ph-batch-ui-v3 .ph-batch-hero-copy .d-flex {
  gap: .85rem !important;
  margin-top: 1.6rem !important;
}

.ph-batch-ui-v3 .ph-batch-hero-copy .btn {
  display: inline-flex;
  gap: .45rem;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: .8rem 1.2rem;
  border-radius: .85rem !important;
  border-style: solid !important;
  font-weight: 850;
}

.ph-batch-ui-v3 .ph-batch-hero-copy .btn-green,
.ph-batch-ui-v3 .ph-batch-hero-copy .btn-primary {
  border-color: #f59e0b !important;
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  box-shadow: 0 16px 36px rgba(245, 158, 11, .26);
  color: #271003 !important;
}

.ph-batch-ui-v3 .ph-batch-hero-copy [class*="btn-outline"] {
  border-color: rgba(255, 255, 255, .55) !important;
  background: rgba(255, 255, 255, .06) !important;
  color: #fff !important;
}

.ph-batch-ui-v3 .ph-batch-hero-media {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: .65rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1.6rem !important;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 30px 70px rgba(2, 6, 23, .42);
  transform: rotate(1deg);
}

.ph-batch-ui-v3 .ph-batch-hero-media img {
  display: block;
  width: 100%;
  height: clamp(320px, 36vw, 490px);
  border-radius: 1.2rem !important;
  object-fit: cover;
  object-position: center;
}

.ph-batch-ui-v3 .ph-batch-hero-media figcaption {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  padding: .8rem .95rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .9rem !important;
  background: rgba(15, 23, 42, .86);
  backdrop-filter: blur(12px);
  color: #e2e8f0 !important;
  font-size: .84rem;
  line-height: 1.5;
}

.ph-batch-ui-v3 .ph-batch-byline-wrap .bd-byline {
  max-width: 760px;
  margin: 1.5rem 0 0;
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-left: 4px solid #fbbf24;
  border-radius: .8rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 15px 38px rgba(2, 6, 23, .18);
  color: #334155 !important;
}

.ph-batch-ui-v3 .ph-batch-byline-wrap .bd-byline :is(span, a) {
  color: #334155 !important;
}

.ph-batch-ui-v3 .ph-batch-glance {
  margin-top: clamp(2.5rem, 5vw, 4.25rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.ph-batch-ui-v3 .ph-batch-glance > h2 {
  max-width: 780px;
  margin: 0 0 1.4rem;
  color: #fff !important;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.14;
}

.ph-batch-ui-v3 .ph-batch-glance .phx-quick {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.ph-batch-ui-v3 .ph-batch-glance .phx-qa {
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.05rem !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(2, 6, 23, .13);
}

.ph-batch-ui-v3 .ph-batch-glance .phx-qa :is(h3, p) {
  color: #172033 !important;
}

.ph-batch-ui-v3 .ph-batch-glance .phx-qa h3 {
  margin-bottom: .45rem;
  font-size: 1rem;
  font-weight: 850 !important;
  line-height: 1.3;
}

.ph-batch-ui-v3 .ph-batch-glance .phx-qa p {
  margin: 0;
  color: #526077 !important;
  font-size: .9rem;
  line-height: 1.62;
}

.ph-batch-ui-v3 main > section:not(.ph-batch-hero):not(.author-box):not(.bd-hot-links) {
  padding-top: clamp(3.4rem, 6vw, 5.75rem) !important;
  padding-bottom: clamp(3.4rem, 6vw, 5.75rem) !important;
}

.ph-batch-ui-v3 main > section > .container > .text-center {
  max-width: 850px;
  margin-right: auto;
  margin-left: auto;
}

.ph-batch-ui-v3 main > section h2 {
  font-size: clamp(1.75rem, 3.25vw, 2.7rem);
  line-height: 1.13;
  text-wrap: balance;
}

.ph-batch-ui-v3 .section-intro {
  line-height: 1.72;
}

.ph-batch-ui-v3 :is(.ph-section-light, .ph-section-soft) {
  color: #172033 !important;
}

.ph-batch-ui-v3 .ph-section-light {
  background: #fff !important;
}

.ph-batch-ui-v3 .ph-section-soft {
  background: linear-gradient(135deg, #faf8ff 0%, #f5f3ff 55%, #fff8e7 100%) !important;
}

.ph-batch-ui-v3 .ph-section-dark {
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--secondary, #f59e0b) 22%, transparent), transparent 23rem),
    linear-gradient(135deg, #111827 0%, color-mix(in srgb, var(--primary, #7c3aed) 30%, #111827) 52%, #0f172a 100%) !important;
  color: #f8fafc !important;
}

.ph-batch-ui-v3 :is(.ph-section-light, .ph-section-soft) :is(h2, h3, h4, p, li, strong, td, th, a:not(.btn)) {
  color: #172033 !important;
}

.ph-batch-ui-v3 :is(.ph-section-light, .ph-section-soft) :is(.section-intro, .phx-note, .phx-rev-meta) {
  color: #526077 !important;
}

.ph-batch-ui-v3 :is(.feature-card, .dark-card, .info-card, .step-card) {
  min-height: 100%;
  border-radius: 1.15rem !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ph-batch-ui-v3 :is(.ph-section-light, .ph-section-soft) :is(.feature-card, .dark-card, .info-card, .step-card, .notice) {
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  color: #172033 !important;
}

.ph-batch-ui-v3 .ph-section-soft :is(.feature-card, .dark-card, .info-card, .step-card, .notice) {
  background: rgba(255, 255, 255, .9) !important;
}

.ph-batch-ui-v3 :is(.ph-section-light, .ph-section-soft) .table {
  --bs-table-bg: #fff;
  --bs-table-color: #172033;
  --bs-table-border-color: #d9e0ea;
}

.ph-batch-ui-v3 :is(.ph-section-light, .ph-section-soft) .table thead th {
  background: color-mix(in srgb, var(--primary, #7c3aed) 12%, #fff) !important;
  color: #172033 !important;
}

.ph-batch-ui-v3 .ph-section-dark :is(h2, h3, h4, strong, a:not(.btn)) {
  color: #fff !important;
}

.ph-batch-ui-v3 .ph-section-dark :is(p, li, td, th, .section-intro) {
  color: #dbe4f0 !important;
}

.ph-batch-ui-v3 .ph-section-dark :is(.feature-card, .dark-card, .info-card, .step-card, .notice) {
  border: 1px solid rgba(255, 255, 255, .16) !important;
  background: rgba(255, 255, 255, .075) !important;
  box-shadow: 0 16px 36px rgba(2, 6, 23, .28);
  color: #f8fafc !important;
}

.ph-batch-ui-v3 .ph-section-dark :is(.icon, .step-no) {
  background: rgba(251, 191, 36, .16) !important;
  color: #fde68a !important;
}

.ph-batch-ui-v3 .ph-section-dark .table {
  --bs-table-bg: rgba(15, 23, 42, .62);
  --bs-table-color: #f1f5f9;
  --bs-table-border-color: rgba(255, 255, 255, .2);
}

.ph-batch-ui-v3 .ph-section-dark .table thead th {
  background: color-mix(in srgb, var(--primary, #7c3aed) 42%, #111827) !important;
  color: #fff !important;
}

.ph-batch-ui-v3 .ph-section-light .accordion-item {
  margin-bottom: .75rem;
  border: 1px solid #dbe2ec !important;
  border-radius: .9rem !important;
  background: #fff !important;
  overflow: hidden;
}

.ph-batch-ui-v3 .ph-section-light .accordion-button {
  background: #fff !important;
  color: #172033 !important;
  font-weight: 750;
}

.ph-batch-ui-v3 .ph-section-light .accordion-button:not(.collapsed) {
  background: color-mix(in srgb, var(--primary, #7c3aed) 12%, #fff) !important;
  color: #172033 !important;
  box-shadow: none;
}

.ph-batch-ui-v3 .ph-section-light .accordion-body {
  background: #fff !important;
  color: #475569 !important;
  line-height: 1.7;
}

.ph-batch-ui-v3 .author-box,
.ph-batch-ui-v3 .bd-hot-links {
  color: #172033 !important;
}

.ph-batch-ui-v3 .author-box :is(h2, p, span),
.ph-batch-ui-v3 .bd-hot-links :is(h2, h3, li) {
  color: #172033 !important;
}

.ph-batch-ui-v3 .bd-hot-links {
  background: linear-gradient(135deg, #fff, #f5f3ff) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
}

@media (hover: hover) {
  .ph-batch-ui-v3 :is(.feature-card, .dark-card, .info-card, .step-card):hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .13);
  }
}

@media (max-width: 1199.98px) {
  .ph-batch-ui-v3 .ph-batch-glance .phx-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ph-batch-ui-v3 .ph-batch-glance .phx-qa:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991.98px) {
  .ph-batch-ui-v3 .ph-batch-hero-grid {
    grid-template-columns: 1fr;
  }

  .ph-batch-ui-v3 .ph-batch-hero-media {
    max-width: 720px;
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .ph-batch-ui-v3 .ph-batch-brand-subtitle {
    display: none;
  }

  .ph-batch-ui-v3 .ph-batch-hero {
    padding: 2.5rem 0 2.8rem !important;
    border-radius: 0 0 1.35rem 1.35rem !important;
  }

  .ph-batch-ui-v3 .ph-batch-hero-grid {
    gap: 1.8rem;
  }

  .ph-batch-ui-v3 .ph-batch-hero .eyebrow {
    align-items: flex-start;
    font-size: .72rem;
  }

  .ph-batch-ui-v3 .ph-batch-hero h1 {
    max-width: none;
    font-size: clamp(1.95rem, 8.8vw, 2.25rem);
    line-height: 1.04;
  }

  .ph-batch-ui-v3 .ph-batch-hero-copy > p {
    font-size: .98rem !important;
    line-height: 1.68;
  }

  .ph-batch-ui-v3 .ph-batch-hero-copy .d-flex {
    display: grid !important;
    grid-template-columns: 1fr;
  }

  .ph-batch-ui-v3 .ph-batch-hero-copy .btn {
    width: 100%;
  }

  .ph-batch-ui-v3 .ph-batch-hero-media {
    padding: .45rem;
    border-radius: 1.15rem !important;
  }

  .ph-batch-ui-v3 .ph-batch-hero-media img {
    height: 285px;
    border-radius: .85rem !important;
  }

  .ph-batch-ui-v3 .ph-batch-hero-media figcaption {
    position: static;
    border-radius: 0 0 .75rem .75rem !important;
    background: #0f172a;
    backdrop-filter: none;
    font-size: .78rem;
  }

  .ph-batch-ui-v3 .ph-batch-glance .phx-quick {
    grid-template-columns: 1fr;
  }

  .ph-batch-ui-v3 .ph-batch-glance .phx-qa:last-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-batch-ui-v3 :is(.feature-card, .dark-card, .info-card, .step-card, .ph-batch-hero-media) {
    transition: none;
    transform: none;
  }
}
