/* AprilGrid product page: incremental rules on top of optical-comparator-charts.css
   and the shared dark product-specification-chapter. Do not invent a new palette. */

/* Breadcrumbs sit above the v2 hero; keep them compact without a second title block. */
.aprilgrid-page .aprilgrid-crumbs {
  padding-top: 26px;
  padding-bottom: 0;
}
.aprilgrid-page .aprilgrid-crumbs .breadcrumbs {
  margin-bottom: 0;
}

/* Desktop: title, short definition and buttons are one left-aligned group,
   vertically centered as a whole to the hero image. */
.aprilgrid-page .aprilgrid-hero-copy {
  text-align: left;
  min-width: 0;
}
.aprilgrid-page .occ-hero {
  align-items: center;
  padding-top: 36px;
  padding-bottom: 40px;
}
.aprilgrid-page .occ-hero .aprilgrid-hero-copy h1 {
  margin: 0 0 20px;
  max-width: none;
  color: #171717;
  font-size: var(--content-title-size, var(--site-title-size, 44px));
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: left;
}
.aprilgrid-page .aprilgrid-lead {
  margin: 0;
  max-width: 46ch;
  color: #171717;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
}
.aprilgrid-page .occ-hero figure {
  margin: 0;
  min-width: 0;
}
.aprilgrid-page .occ-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
}

.aprilgrid-overview h2 { margin-top: 0; }
.aprilgrid-overview p { max-width: 88ch; }

.aprilgrid-reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 56px;
}
.aprilgrid-reason-grid article p { margin: 0; max-width: 62ch; }
.aprilgrid-illumination-list { display: grid; gap: 32px; }
.aprilgrid-illumination-list h3 {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.aprilgrid-illumination-list h3 span {
  color: #626b75;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}
.aprilgrid-illumination-list p { margin: 0; max-width: 88ch; }

body.product-detail-page #main .aprilgrid-page .product-specification-chapter h2,
body.product-detail-page #main .aprilgrid-page .product-specification-chapter p,
body.product-detail-page #main .aprilgrid-page .product-specification-chapter th,
body.product-detail-page #main .aprilgrid-page .product-specification-chapter td,
body.product-detail-page #main .aprilgrid-page .product-specification-chapter caption {
  color: inherit;
}

/* Comparison matrix: scroll only inside the table container, never clip mid-word. */
body.product-detail-page #main .aprilgrid-page .aprilgrid-spec-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
body.product-detail-page #main .aprilgrid-page .product-specification-chapter table.aprilgrid-spec-table:has(tr > :nth-child(3)) {
  width: max(100%, 960px) !important;
  min-width: 960px !important;
  max-width: none !important;
  table-layout: auto;
}
body.product-detail-page #main .aprilgrid-page .aprilgrid-spec-table :is(th, td) {
  overflow: visible;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: manual;
  padding-right: 24px;
  font-size: 16px;
}
body.product-detail-page #main .aprilgrid-page .aprilgrid-spec-table thead th,
body.product-detail-page #main .aprilgrid-page .aprilgrid-spec-table tbody th {
  white-space: normal;
}
body.product-detail-page #main .aprilgrid-page .aprilgrid-spec-table tbody th[scope="row"] {
  width: 18%;
  min-width: 11em;
}
/* Caption duplicates the visible h2; hide it so the wide table does not clip the title. */
.aprilgrid-spec-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1000px) {
  .aprilgrid-page .occ-hero .aprilgrid-hero-copy h1 { font-size: 36px; }
}

@media (max-width: 800px) {
  .aprilgrid-reason-grid { grid-template-columns: 1fr; gap: 28px; }
  .aprilgrid-page .occ-hero { padding-top: 28px; padding-bottom: 32px; }
  body.product-detail-page #main .aprilgrid-page .aprilgrid-spec-table thead th,
  body.product-detail-page #main .aprilgrid-page .aprilgrid-spec-table tbody th {
    font-size: 14px;
  }
  body.product-detail-page #main .aprilgrid-page .aprilgrid-spec-table tbody td {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  .aprilgrid-page .occ-hero .aprilgrid-hero-copy h1 { font-size: 32px; }
}

@media (max-width: 560px) {
  body.product-detail-page #main .aprilgrid-page .product-specification-chapter {
    padding-bottom: 72px;
  }
}

@media (max-width: 520px) {
  /* Keep each comparison column no wider than a 390 viewport so a scrolled
     state can show one complete column. Shared 3-column min-widths are 680-720. */
  body.product-detail-page #main .aprilgrid-page .product-specification-chapter table.aprilgrid-spec-table:has(tr > :nth-child(3)) {
    width: 820px !important;
    min-width: 820px !important;
    max-width: none !important;
    table-layout: fixed !important;
  }
  body.product-detail-page #main .aprilgrid-page .aprilgrid-spec-table tbody th[scope="row"],
  body.product-detail-page #main .aprilgrid-page .aprilgrid-spec-table thead th:first-child {
    width: 140px;
    min-width: 0;
  }
}

body.product-detail-page #main .aprilgrid-page .product-specification-chapter h3 {
  color: inherit;
  font-weight: 400;
  margin: 32px 0 12px;
}
body.product-detail-page #main .aprilgrid-page .product-specification-chapter h3:first-of-type {
  margin-top: 8px;
}
body.product-detail-page #main .aprilgrid-page .aprilgrid-spec-note {
  color: inherit;
  opacity: 0.86;
  max-width: 88ch;
  margin: 0 0 16px;
}
