/* Product page Guides section (PRODUCT_PAGE_GUIDES_PROMPT; reference DESIGN_REFERENCE_GUIDES_*). The cards are the homepage guide card markup
   (render_decision_guides); home.css is not loaded on product pages, so the card rules the markup needs are set here, to the reference look.
   Product pages only; every selector sits under .pdp3 .pgx. Only transform and opacity animate. */
.pdp3 .pgx.pp-sec { background: var(--pw-forest); }
.pdp3 .pgx__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.pdp3 .pgx__eb { margin: 0 0 8px; font: 600 13px/16px var(--pw-font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--pw-foil-gold); } /* the existing forest-band eyebrow */
.pdp3 .pgx__h { margin: 0; color: #FFFFFF; }
.pdp3 .pgx__sub { margin: 8px 0 0; max-width: 560px; font: 400 16px/24px var(--pw-font-body); color: var(--pw-sage-mist); text-wrap: balance; }
.pdp3 .pgx__all { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border: 1.5px solid #FFFFFF; border-radius: 999px; background: transparent; font: 600 15px/1 var(--pw-font-body); color: #FFFFFF; white-space: nowrap; text-decoration: none; transition: background-color .2s, color .2s; }
.pdp3 .pgx__all svg { transition: transform .25s; }
.pdp3 .pgx__all:focus-visible { outline: 3px solid #EFB13A; outline-offset: 2px; }

/* the grid: any number of cards, wrapping, equal height per row */
.pdp3 .pgx .gx__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.pdp3 .pgx .gx { position: relative; display: flex; flex-direction: column; border: 1px solid #E3DDD3; border-radius: 16px; background: #FFFFFF; overflow: hidden; transition: border-color .15s; }
.pdp3 .pgx .gx__cover { position: relative; flex: none; aspect-ratio: 16 / 10; background: var(--pw-sage-mist); overflow: hidden; }
.pdp3 .pgx .gx__cover .pframe { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; background: var(--pw-sage-mist); box-shadow: none; }
.pdp3 .pgx .gx__cover .pframe img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pdp3 .pgx .gx__cover .pframe:nth-of-type(2) { opacity: 0; transition: opacity .2s; }
.pdp3 .pgx .gx__cover img { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
/* no cover yet: a calm placeholder with the tag's line icon, never a stock, AI or render image */
.pdp3 .pgx .gx__ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--pw-sage-mist); color: #0F4C3A; }
.pdp3 .pgx .gx__ph::before { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(15, 76, 58, .22); border-radius: 10px; }
.pdp3 .pgx .gx__ph svg { position: relative; width: 56px; height: 56px; opacity: .28; }
.pdp3 .pgx .gx__no { position: absolute; z-index: 1; top: 12px; left: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0F4C3A; font: 700 18px/1 var(--pw-font-display); color: #FFFFFF; }
.pdp3 .pgx .gx__min { position: absolute; z-index: 1; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: #FFFFFF; font: 600 13px/16px var(--pw-font-body); color: #231B15; }
.pdp3 .pgx .gx__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.pdp3 .pgx .gx__tag { font: 600 13px/16px var(--pw-font-body); letter-spacing: .08em; text-transform: uppercase; color: #0F4C3A; }
.pdp3 .pgx .gx__t { margin: 8px 0 0; font: 700 22px/28px var(--pw-font-display); letter-spacing: -.01em; color: #231B15; text-wrap: balance; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pdp3 .pgx .gx__link { color: inherit; text-decoration: none; }
.pdp3 .pgx .gx__link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* the whole card is the one link */
.pdp3 .pgx .gx__qa { position: relative; z-index: 2; margin: 8px 0 16px; font: 400 14px/20px var(--pw-font-body); color: #5C5249; }
.pdp3 .pgx .gx__qa strong { font-weight: 600; color: #231B15; }
.pdp3 .pgx .gx__body::before { content: ""; order: 5; margin: auto 0 16px; border-top: 1px dashed #E3DDD3; }
.pdp3 .pgx .gx__btn { order: 6; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border: 1.5px solid #0F4C3A; border-radius: 999px; background: #FFFFFF; font: 600 15px/1 var(--pw-font-body); color: #0F4C3A; transition: background-color .2s, color .2s; }
.pdp3 .pgx .gx__btn svg { transition: transform .25s; }
.pdp3 .pgx .gx__link:focus-visible { outline: none; }
.pdp3 .pgx .gx:has(.gx__link:focus-visible) { outline: 3px solid #EFB13A; outline-offset: 3px; }
.pdp3 .pgx .gx:has(.gx__link:focus-visible) .gx__btn { background: #0F4C3A; color: #FFFFFF; }

/* hover, only for a fine pointer */
@media (hover: hover) and (pointer: fine) {
  .pdp3 .pgx .gx:hover { border-color: var(--state-border-hover); }
  .pdp3 .pgx .gx:hover .gx__btn { background: #0F4C3A; color: #FFFFFF; }
  .pdp3 .pgx .gx:hover .gx__btn svg, .pdp3 .pgx__all:hover svg { transform: translateX(4px); }
  .pdp3 .pgx .gx:hover .gx__cover img { transform: scale(1.03); }
  .pdp3 .pgx .gx:hover .gx__cover .pframe:nth-of-type(2) { opacity: 1; }
  .pdp3 .pgx__all:hover { background: rgba(255, 255, 255, .12); }
}

/* scroll reveal: only where supported; the cards are visible without it */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pdp3 .pgx .gx { animation: pgxRise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@keyframes pgxRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 1000px) {
  .pdp3 .pgx .gx__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .pdp3 .pgx__in { padding-left: 0; padding-right: 0; }
  .pdp3 .pgx__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; padding: 0 20px; }
  /* a swipe row with snap, about 1.2 cards visible */
  .pdp3 .pgx .gx__grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 20px 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .pdp3 .pgx .gx__grid::-webkit-scrollbar { display: none; }
  .pdp3 .pgx .gx { flex: 0 0 82%; scroll-snap-align: start; }
  .pdp3 .pgx .gx__body { padding: 20px; }
  .pdp3 .pgx .gx__t { font-size: 20px; line-height: 26px; }
  .pdp3 .pgx .gx__qa { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .pdp3 .pgx *, .pdp3 .pgx .gx { animation: none !important; transition-duration: .01ms !important; }
}
