.jlpt-single-product .site-content {
  width: 100%;
}

.jlpt-single-product .site-content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  padding-inline: 0;
}

.jl-product-page {
  --jl-navy: #101828;
  --jl-blue: #1769e8;
  --jl-orange: #e95420;
  --jl-text: #172033;
  --jl-muted: #667085;
  --jl-soft: #f4f7fb;
  --jl-line: #dce3ed;
  --jl-white: #ffffff;
  --jl-max: 1200px;
  background: var(--jl-white);
  color: var(--jl-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

.jl-product-page *,
.jl-product-page *::before,
.jl-product-page *::after {
  box-sizing: border-box;
}

.jl-product-page img,
.jl-product-page video {
  display: block;
  max-width: 100%;
}

.jl-product-page a {
  color: inherit;
}

.jl-product-page :focus-visible {
  outline: 3px solid rgba(23, 105, 232, 0.36);
  outline-offset: 3px;
}

.jl-product-container,
.jl-product-page__breadcrumb,
.jl-product-cta {
  width: min(calc(100% - 48px), var(--jl-max));
  margin-inline: auto;
}

.jl-product-page__breadcrumb {
  padding-block: 20px;
}

.jl-product-page__breadcrumb nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--jl-muted);
  font-size: 13px;
}

.jl-product-page__breadcrumb a {
  color: #335887;
  text-decoration: none;
}

.jl-product-hero {
  padding: 12px 0 76px;
}

.jl-product-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  gap: 64px;
  align-items: start;
}

.product-gallery {
  min-width: 0;
}

.product-gallery__stage,
.product-gallery__placeholder {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--jl-line);
  background: #f8fafc;
}

.product-gallery__media {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.product-gallery__media > img,
.product-gallery__video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-gallery__video {
  display: block;
  background: #0b1220;
}

.product-gallery__placeholder {
  color: var(--jl-muted);
  font-weight: 700;
}

.product-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  min-width: 46px;
  max-width: 46px;
  min-height: 46px;
  max-height: 46px;
  padding: 0 !important;
  place-items: center;
  appearance: none;
  transform: translateY(-50%);
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.12);
  color: var(--jl-navy);
  cursor: pointer;
  font-size: 22px;
  line-height: 1 !important;
  text-align: center;
}

.product-gallery__arrow:hover {
  border-color: var(--jl-blue);
  background: var(--jl-blue);
  color: var(--jl-white);
}

.product-gallery__arrow--prev {
  left: 16px;
}

.product-gallery__arrow--next {
  right: 16px;
}

.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.product-gallery__thumb {
  flex: 0 0 96px;
  aspect-ratio: 1;
  padding: 4px;
  overflow: hidden;
  border: 1px solid var(--jl-line);
  border-radius: 2px;
  background: var(--jl-white);
  color: var(--jl-muted);
  cursor: pointer;
  scroll-snap-align: start;
}

.product-gallery__thumb.is-active {
  border-color: var(--jl-blue);
  box-shadow: inset 0 0 0 1px var(--jl-blue);
}

.product-gallery__thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f8fafc;
}

.product-gallery__thumb-play {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: #101828;
  color: #fff;
  font-size: 22px;
}

.jl-product-summary {
  padding-top: 26px;
}

.jl-eyebrow,
.jl-section-index,
.jl-card-label {
  margin: 0 0 14px;
  color: var(--jl-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.jl-product-summary h1 {
  max-width: 680px;
  margin: 0;
  color: var(--jl-navy);
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 800;
  hyphens: none;
  letter-spacing: 0;
  line-height: 1.04;
  overflow-wrap: normal;
  word-break: normal;
}

.jl-product-summary h1.jl-product-title--source-only {
  max-width: 580px;
  font-size: clamp(40px, 3.5vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-transform: none;
  text-wrap: balance;
}

.jl-product-code {
  margin: 18px 0 0;
  color: var(--jl-muted);
  font-size: 12px;
  font-weight: 800;
}

.jl-product-lead {
  margin: 26px 0;
  color: #475467;
  font-size: 18px;
  line-height: 1.7;
}

.jl-quick-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--jl-line);
  border-left: 1px solid var(--jl-line);
}

.jl-quick-specs > div {
  min-height: 88px;
  padding: 16px;
  border-right: 1px solid var(--jl-line);
  border-bottom: 1px solid var(--jl-line);
}

.jl-quick-specs dt {
  color: var(--jl-muted);
  font-size: 12px;
  font-weight: 700;
}

.jl-quick-specs dd {
  margin: 5px 0 0;
  color: var(--jl-navy);
  font-size: 19px;
  font-weight: 800;
}

.jl-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.jl-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--jl-blue);
  border-radius: 2px;
  background: var(--jl-blue);
  color: var(--jl-white) !important;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  text-transform: uppercase;
}

.jl-button:hover {
  border-color: #0f56c9;
  background: #0f56c9;
}

.jl-button--secondary {
  background: transparent;
  color: var(--jl-blue) !important;
}

.jl-response-note {
  margin: 14px 0 0;
  color: var(--jl-muted);
  font-size: 12px;
}

.jl-section-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-block: 1px solid var(--jl-line);
  background: rgba(255, 255, 255, 0.97);
}

.admin-bar .jl-section-nav {
  top: 32px;
}

.jl-section-nav .jl-product-container {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-inline: 24px;
  scroll-padding-inline: 24px;
  scrollbar-width: none;
}

.jl-section-nav a {
  flex: 0 0 auto;
  padding: 15px 8px 12px;
  border-bottom: 3px solid transparent;
  border-radius: 3px 3px 0 0;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
}

.jl-section-nav a:focus {
  outline: none;
}

.jl-section-nav a:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(23, 105, 232, 0.42);
}

.jl-section-nav a[aria-current="location"] {
  border-color: var(--jl-blue);
  color: var(--jl-blue);
}

.jl-section {
  padding: 92px 0;
  scroll-margin-top: 84px;
}

.jl-section--soft {
  background: var(--jl-soft);
}

.jl-section--navy,
.jl-section--dark {
  background: var(--jl-navy);
  color: var(--jl-white);
}

.jl-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 42px;
}

.jl-section-heading h2,
.jl-product-cta h2 {
  margin: 0;
  color: var(--jl-navy);
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.jl-section-heading > p,
.jl-product-cta p {
  margin: 0;
  color: var(--jl-muted);
}

.jl-section--navy .jl-section-heading h2,
.jl-section--dark .jl-section-heading h2 {
  color: var(--jl-white);
}

.jl-section--navy .jl-section-heading > p,
.jl-section--dark .jl-section-heading > p {
  color: #c8d2e2;
}

.jl-evidence-grid,
.jl-supply-grid,
.jl-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.jl-evidence-grid article,
.jl-supply-grid article,
.jl-related-grid a {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--jl-line);
  border-radius: 4px;
  background: var(--jl-white);
}

.jl-evidence-grid strong,
.jl-related-grid span {
  color: var(--jl-blue);
  font-size: 28px;
  font-weight: 800;
}

.jl-evidence-grid h3,
.jl-related-grid h3 {
  margin: 12px 0 8px;
  color: var(--jl-navy);
  font-size: 19px;
}

.jl-evidence-grid p,
.jl-supply-grid p,
.jl-related-grid p {
  margin: 0;
  color: var(--jl-muted);
}

.jl-related-grid a {
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.jl-related-grid a:hover {
  border-color: var(--jl-blue);
  transform: translateY(-3px);
}

.jl-technical-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  border-top: 1px solid var(--jl-line);
  border-left: 1px solid var(--jl-line);
}

.jl-technical-table > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 0.58fr);
  min-height: 72px;
  border-right: 1px solid var(--jl-line);
  border-bottom: 1px solid var(--jl-line);
}

.jl-technical-table dt,
.jl-technical-table dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 15px 18px;
}

.jl-technical-table dt {
  background: #eef3f8;
  color: #344054;
  font-weight: 800;
}

.jl-technical-table dd {
  background: var(--jl-white);
  color: #475467;
}

.jl-process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  list-style: none;
}

.jl-process-grid li {
  min-height: 240px;
  padding: 28px;
  background: #14233b;
}

.jl-process-grid span {
  color: #65a0ff;
  font-size: 13px;
  font-weight: 800;
}

.jl-process-grid h3 {
  margin: 38px 0 10px;
  color: var(--jl-white);
  font-size: 21px;
}

.jl-process-grid p {
  margin: 0;
  color: #c8d2e2;
}

.jl-application-visual {
  overflow: hidden;
  border: 1px solid var(--jl-line);
  background: var(--jl-soft);
}

.jl-application-visual img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
}

.jl-fit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-block: 1px solid var(--jl-line);
}

.jl-fit-item {
    min-width: 0;
    padding: 28px 24px;
    border-right: 1px solid var(--jl-line);
}

.jl-fit-item:last-child {
    border-right: 0;
}

.jl-fit-item h3 {
    margin: 8px 0 10px;
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

.jl-fit-item p:last-child {
    margin: 0;
    color: var(--jl-muted);
}

.jl-family-table {
    border-top: 1px solid var(--jl-line);
}

.jl-family-link {
    display: grid;
    grid-template-columns: minmax(90px, 0.55fr) minmax(260px, 2fr) minmax(120px, 0.8fr);
    align-items: center;
    gap: 24px;
    min-height: 92px;
    padding: 18px 8px;
    border-bottom: 1px solid var(--jl-line);
    color: var(--jl-ink);
    text-decoration: none;
}

.jl-family-link[href]:hover,
.jl-family-link[href]:focus-visible {
    color: var(--jl-blue);
    background: #f7faff;
}

.jl-family-link:focus-visible {
    outline: 2px solid var(--jl-blue);
    outline-offset: -2px;
}

.jl-family-code {
    color: var(--jl-blue);
    font-weight: 800;
    text-transform: uppercase;
}

.jl-family-link strong,
.jl-family-link small {
    display: block;
}

.jl-family-link small {
    margin-top: 5px;
    color: var(--jl-muted);
}

.jl-family-link.is-unpublished {
    color: var(--jl-muted);
}

.jl-print-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.jl-print-item {
  overflow: hidden;
  border: 1px solid #25334a;
  background: #14233b;
}

.jl-print-item img,
.jl-print-item video {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #071126;
}

.jl-print-item > div {
  padding: 18px;
}

.jl-print-item > div p {
  margin: 0;
  color: #c8d2e2;
}

.jl-supply-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.jl-faq-list {
  max-width: 960px;
}

.jl-faq-list article {
  border-bottom: 1px solid var(--jl-line);
}

.jl-faq-list h3 {
  margin: 0;
}

.jl-faq-list button {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: var(--jl-navy);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  text-align: left;
}

.jl-faq-list button span {
  color: var(--jl-blue);
  font-size: 24px;
}

.jl-faq-list article > div {
  padding: 0 40px 22px 0;
  color: var(--jl-muted);
}

.jl-faq-list article > div p {
  margin: 0;
}

.jl-product-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
  margin-block: 72px;
  padding: 38px;
  background: var(--jl-navy);
}

.jl-product-cta h2 {
  color: var(--jl-white);
  font-size: clamp(28px, 3vw, 42px);
}

.jl-product-cta p {
  margin-top: 12px;
  color: #c8d2e2;
}

@media (max-width: 1024px) {
    .jl-fit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jl-fit-item:nth-child(2n) {
        border-right: 0;
    }

    .jl-fit-item:nth-child(n + 3) {
        border-top: 1px solid var(--jl-line);
    }
  .jl-product-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-gallery {
    max-width: 760px;
  }

  .jl-product-summary {
    padding-top: 0;
  }

  .jl-section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

@media (max-width: 782px) {
  .admin-bar .jl-section-nav {
    top: 46px;
  }

  .jl-section {
    scroll-margin-top: 100px;
  }
}

@media (max-width: 640px) {
    .jl-fit-grid {
        grid-template-columns: 1fr;
    }

    .jl-fit-item,
    .jl-fit-item:nth-child(2n) {
        border-right: 0;
    }

    .jl-fit-item + .jl-fit-item {
        border-top: 1px solid var(--jl-line);
    }

    .jl-family-link {
        grid-template-columns: 74px minmax(0, 1fr);
        gap: 8px 14px;
        padding-block: 16px;
    }

    .jl-family-link > span:last-child {
        grid-column: 2;
        color: var(--jl-muted);
    }
  .jl-product-container,
  .jl-product-page__breadcrumb,
  .jl-product-cta {
    width: min(calc(100% - 32px), var(--jl-max));
  }

  .jl-product-hero {
    padding-bottom: 48px;
  }

  .product-gallery__arrow {
    width: 42px;
    height: 42px;
    min-width: 42px;
    max-width: 42px;
    min-height: 42px;
    max-height: 42px;
  }

  .product-gallery__arrow--prev {
    left: 8px;
  }

  .product-gallery__arrow--next {
    right: 8px;
  }

  .product-gallery__thumbs {
    scroll-snap-type: x mandatory;
  }

  .product-gallery__thumb {
    flex-basis: 82px;
  }

  .jl-product-summary h1 {
    font-size: 38px;
  }

  .jl-product-summary h1.jl-product-title--source-only {
    font-size: 34px;
  }

  .jl-product-actions {
    display: grid;
  }

  .jl-button {
    width: 100%;
  }

  .jl-section-nav .jl-product-container {
    width: 100%;
    gap: 18px;
    padding-inline: 18px;
    scroll-padding-inline: 18px;
  }

  .jl-section-nav a {
    padding-inline: 6px;
  }

  .jl-section {
    padding: 64px 0;
  }

  .jl-section-heading h2 {
    font-size: 32px;
  }

  .jl-evidence-grid,
  .jl-supply-grid,
  .jl-related-grid,
  .jl-technical-table,
  .jl-process-grid,
  .jl-print-grid {
    grid-template-columns: 1fr;
  }

  .jl-technical-table > div {
    grid-template-columns: 1fr;
  }

  .jl-technical-table dt,
  .jl-technical-table dd {
    min-height: 44px;
  }

  .jl-process-grid li {
    min-height: 190px;
  }

  .jl-product-cta {
    grid-template-columns: 1fr;
    margin-block: 48px;
    padding: 28px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jl-product-page *,
  .jl-product-page *::before,
  .jl-product-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
