/* Editorial product components, scoped separately from AZ purchase/gallery contracts. */
.az-child-vespa .az-child-product-story {
  --az-child-story-sticky-top: var(--wp-admin--admin-bar--height, 0px);
  --az-child-story-scroll-offset: 100px;
  color: var(--az-color-text, #34434c);
  background: var(--az-color-surface, #fff);
}
.az-child-vespa .az-child-product-story [data-story-section] { scroll-margin-top: var(--az-child-story-scroll-offset); }
.az-child-vespa:has(.az-child-product-story) .az-product-trail { background: var(--az-color-page, #f1f4f6); border-bottom: 1px solid var(--az-color-border, #e1e7eb); }
.az-child-vespa:has(.az-child-product-story) .az-product-trail .az-product-breadcrumb { padding-block: 12px; }
.az-child-vespa:has(.az-child-product-story) .az-product-trail .woocommerce-breadcrumb { color: var(--az-color-muted, #75818a); font-size: 12px; line-height: 1.6; }
.az-child-vespa .az-child-story-nav { position: sticky; top: var(--az-child-story-sticky-top); z-index: 24; background: var(--az-color-surface, #fff); border-block: 1px solid var(--az-color-border, #e1e7eb); box-shadow: 0 6px 18px rgb(13 38 55 / 5%); }
.az-child-vespa .az-child-story-nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 28px; min-height: 72px; }
.az-child-vespa .az-child-story-product-name { flex: 1 1 35%; min-width: 0; max-width: 42%; padding-block: 12px; color: var(--az-color-heading, #142c3c); font-size: clamp(22px, 2.1vw, 34px); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
.az-child-vespa .az-child-story-links { display: flex; flex: 0 1 auto; justify-content: flex-end; min-width: 0; margin-left: auto; gap: clamp(16px, 2vw, 28px); overflow-x: auto; scrollbar-width: thin; }
.az-child-vespa .az-child-story-links a { position: relative; flex: 0 0 auto; padding: 18px 0; border-bottom: 3px solid transparent; color: var(--az-color-muted, #75818a); font-size: 14px; font-weight: 700; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.az-child-vespa .az-child-story-links a:is(:hover, .is-active) { color: var(--az-color-primary, #194a8e); border-color: var(--az-color-primary, #194a8e); }
.az-child-vespa .az-child-story-section { padding-block: clamp(36px, 5vw, 72px); border-top: 1px solid var(--az-color-border, #e1e7eb); }
.az-child-vespa .az-child-story-section-head { margin-bottom: 28px; }
.az-child-vespa .az-child-story-section-head h2 { margin: 0; color: var(--az-color-heading, #142c3c); font-size: clamp(25px, 3vw, 40px); line-height: 1.18; letter-spacing: -.035em; }
.az-child-vespa .az-child-story-design-image { overflow: hidden; border-radius: 18px; background: var(--az-color-page, #f4f7f8); }
.az-child-vespa .az-child-story-design-image img { display: block; width: 100%; height: auto; }
.az-child-vespa .az-child-story-intro-text { max-width: 820px; margin: 24px 0 32px; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.65; }
.az-child-vespa .az-child-story-richtext { display: flow-root; overflow-wrap: anywhere; }
.az-child-vespa .az-child-story-richtext > :first-child { margin-top: 0; }
.az-child-vespa .az-child-story-richtext > :last-child { margin-bottom: 0; }
.az-child-vespa .az-child-story-richtext p { margin-block: 0 1em; }
.az-child-vespa .az-child-story-richtext :is(h2, h3, h4, h5, h6) { margin: 1.4em 0 .6em; color: var(--az-color-heading, #142c3c); line-height: 1.3; }
.az-child-vespa .az-child-story-richtext :is(h2, h3) { font-size: 1.2em; }
.az-child-vespa .az-child-story-richtext :is(h4, h5, h6) { font-size: 1.05em; }
.az-child-vespa .az-child-story-richtext :is(ul, ol) { margin: 0 0 1em; padding-left: 1.5em; }
.az-child-vespa .az-child-story-richtext ul { list-style: disc; }
.az-child-vespa .az-child-story-richtext ol { list-style: decimal; }
.az-child-vespa .az-child-story-richtext li { margin-block: .35em; }
.az-child-vespa .az-child-story-richtext a { color: var(--az-color-primary, #194a8e); text-decoration: underline; text-underline-offset: .15em; }
.az-child-vespa .az-child-story-richtext blockquote { margin: 1.2em 0; padding: .6em 1.2em; border-left: 3px solid var(--az-color-primary, #194a8e); background: var(--az-color-page, #f4f7f8); }
.az-child-vespa .az-child-story-richtext :is(img, figure, .wp-caption) { max-width: 100%; height: auto; }
.az-child-vespa .az-child-story-richtext .aligncenter { display: block; margin-inline: auto; }
.az-child-vespa .az-child-story-richtext .wp-caption-text { margin-top: .5em; color: var(--az-color-muted, #75818a); font-size: .8em; }
.az-child-vespa .az-child-story-richtext table { width: 100%; margin-block: 1em; border-collapse: collapse; font-size: .85em; }
.az-child-vespa .az-child-story-richtext :is(th, td) { padding: .7em; border: 1px solid var(--az-color-border, #e1e7eb); text-align: left; }
.az-child-vespa .az-child-story-richtext hr { margin-block: 1.5em; border: 0; border-top: 1px solid var(--az-color-border, #e1e7eb); }
.az-child-vespa .az-child-story-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 30px; }
.az-child-vespa .az-child-story-editorial-card { overflow: hidden; border: 1px solid var(--az-color-border, #e1e7eb); border-radius: 14px; background: var(--az-color-surface, #fff); }
.az-child-vespa .az-child-story-editorial-card > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--az-color-page, #f6f8fa); }
.az-child-vespa .az-child-story-editorial-card > div { padding: 20px; }
.az-child-vespa .az-child-product-story :is(.az-child-story-editorial-card, .az-child-story-feature-detail) h3 { margin: 0 0 12px; font-size: 18px; line-height: 1.35; color: var(--az-color-heading, #142c3c); }
.az-child-vespa .az-child-product-story :is(.az-child-story-editorial-card, .az-child-story-feature-detail) p { margin: 0; font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.az-child-vespa .az-child-story-map-hint { margin: 0 0 14px; font-size: 14px; color: var(--az-color-muted, #75818a); }
.az-child-vespa .az-child-story-feature-map { position: relative; border-radius: 18px; background: var(--az-color-page, #f4f7f8); }
.az-child-vespa .az-child-story-feature-map > img { display: block; width: 100%; height: auto; border-radius: inherit; }
.az-child-vespa .az-child-story-hotspot {
  --az-child-hotspot-size: 36px;
  --az-child-hotspot-plus: 14px;
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  line-height: 1;
  text-decoration: none;
  transform: translate(-50%, -50%);
}
/* Keep a 44px click target while making the visible circle smaller. */
.az-child-vespa .az-child-story-hotspot > span:first-child {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: var(--az-child-hotspot-size);
  height: var(--az-child-hotspot-size);
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--az-color-primary, #194a8e);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 22%), 0 3px 10px rgb(0 0 0 / 16%);
  font-size: 0;
}
/* Draw both strokes from the same centre, independently of font metrics. */
.az-child-vespa .az-child-story-hotspot > span:first-child::before,
.az-child-vespa .az-child-story-hotspot > span:first-child::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--az-child-hotspot-plus);
  height: 2px;
  border-radius: 1px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.az-child-vespa .az-child-story-hotspot > span:first-child::after { transform: translate(-50%, -50%) rotate(90deg); }
.az-child-vespa .az-child-story-hotspot::before,
.az-child-vespa .az-child-story-hotspot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
  width: var(--az-child-hotspot-size);
  height: var(--az-child-hotspot-size);
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1);
}
.az-child-vespa .az-child-story-hotspot:is(:hover, :focus-visible) { z-index: 3; background: transparent; color: #fff; }
.az-child-vespa .az-child-story-hotspot:is(:hover, :focus-visible)::before,
.az-child-vespa .az-child-story-hotspot:is(:hover, :focus-visible)::after { animation: az-child-hotspot-ripple 1.6s ease-out infinite; }
.az-child-vespa .az-child-story-hotspot:is(:hover, :focus-visible)::after { animation-delay: -.8s; }
@keyframes az-child-hotspot-ripple {
  0% { opacity: .8; transform: translate(-50%, -50%) scale(1); }
  70% { opacity: .2; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.9); }
}
.az-child-vespa .az-child-story-hotspot-label { position: absolute; z-index: 2; left: 50%; bottom: calc(100% + 12px); width: max-content; max-width: 180px; padding: 8px 12px; border-radius: 8px; background: var(--az-color-heading, #142c3c); color: #fff; font-size: 12px; line-height: 1.4; pointer-events: none; visibility: hidden; opacity: 0; transform: translateX(-50%); }
.az-child-vespa .az-child-story-hotspot:is(:hover, :focus-visible) .az-child-story-hotspot-label { visibility: visible; opacity: 1; }
.az-child-vespa .az-child-story-feature-details { display: grid; gap: 24px; margin-top: 28px; }
.az-child-vespa .az-child-story-feature-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 28px; border: 1px solid var(--az-color-border, #e1e7eb); border-radius: 16px; }
.az-child-vespa .az-child-story-feature-detail > img { display: block; width: 100%; max-height: 520px; object-fit: contain; border-radius: 10px; }
.az-child-vespa .az-child-story-feature-detail:not(:has(> img)) { grid-template-columns: 1fr; }
.az-child-vespa .has-feature-dialog .az-child-story-feature-details { display: none; }
.az-child-vespa .az-child-story-dialog { position: fixed; inset: 0; margin: auto; width: min(880px, calc(100% - 48px)); height: fit-content; max-width: none; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; padding: 36px 32px 32px; border: 0; border-radius: 18px; background: var(--az-color-surface, #fff); color: var(--az-color-text, #34434c); box-shadow: 0 24px 90px rgb(0 0 0 / 25%); }
.az-child-vespa .az-child-story-dialog::backdrop { background: rgb(8 25 39 / 65%); backdrop-filter: blur(5px); }
.az-child-vespa .az-child-story-dialog .az-child-story-feature-detail { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; padding: 0; border: 0; }
.az-child-vespa .az-child-story-dialog .az-child-story-feature-detail:not(:has(> img)) { grid-template-columns: minmax(0, 1fr); }
.az-child-vespa .az-child-story-dialog .az-child-story-feature-detail > img { max-height: min(400px, 58vh); max-height: min(400px, 58dvh); height: auto; object-fit: contain; }
.az-child-vespa .az-child-story-dialog .az-child-story-feature-detail h3 { margin-bottom: 14px; padding-right: 20px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.az-child-vespa .az-child-story-dialog .az-child-story-feature-detail p { font-size: 15px; line-height: 1.7; }
.az-child-vespa .az-child-story-dialog-close { position: absolute; top: 12px; right: 12px; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--az-color-page, #edf2f5); color: var(--az-color-heading, #142c3c); font: 30px/1 Arial, sans-serif; cursor: pointer; }
.az-child-vespa .az-child-story-specs details { margin-bottom: 12px; overflow: hidden; border: 1px solid var(--az-color-border, #e1e7eb); border-radius: 12px; }
.az-child-vespa .az-child-story-specs summary { display: flex; justify-content: space-between; gap: 16px; padding: 19px 24px; color: var(--az-color-heading, #142c3c); font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.az-child-vespa .az-child-story-specs summary::-webkit-details-marker { display: none; }
.az-child-vespa .az-child-story-specs summary > span { font-size: 24px; line-height: 1; font-weight: 400; }
.az-child-vespa .az-child-story-specs details[open] summary { background: var(--az-color-page, #f4f7f8); }
.az-child-vespa .az-child-story-specs details[open] summary > span { transform: rotate(45deg); }
.az-child-vespa .az-child-story-table-wrap { overflow-x: auto; }
.az-child-vespa .az-child-story-specs table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 15px; }
.az-child-vespa .az-child-story-specs :is(th, td) { padding: 16px 24px; border: 0; border-top: 1px solid var(--az-color-border, #e1e7eb); text-align: left; vertical-align: top; line-height: 1.6; overflow-wrap: anywhere; }
.az-child-vespa .az-child-story-specs th { width: 38%; font-weight: 600; }
.az-child-vespa .az-child-story-explore-heading { padding-block: 32px 12px; }
.az-child-vespa .az-child-story-fallback { display: block; padding-bottom: 28px; }
/* Parent container-sync applies !important dimensions, including mobile gutters. */
.az-child-vespa .az-product-detail .az-child-product-story > .az-product-video-section.az-container { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; margin-block: 0; padding: 0; }
.az-child-vespa .az-child-product-story > .az-product-video-section .az-product-video-panel { padding: 0; border: 0; border-radius: 0; background: #000; box-shadow: none; }
.az-child-vespa .az-child-product-story > .az-product-video-section .az-product-video-panel > h2 { display: none; }
.az-child-vespa .az-child-product-story > .az-product-video-section .az-product-video-frame { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; background: #000; }
.az-child-vespa .az-child-product-story > .az-product-video-section .az-product-video-frame iframe { display: block; width: 100%; height: 100%; }
.az-child-vespa .az-child-product-story > .az-product-video-section .az-product-video-thumbs { justify-content: flex-start; margin: 0; padding: 16px var(--az-gutter, 24px); background: var(--az-color-surface, #fff); }
.az-child-vespa .az-child-product-story:is(.is-enhanced, [data-story-server="true"]) .az-child-story-explore { padding-top: clamp(28px, 4vw, 56px); }
.az-child-vespa .az-child-story-explore > .az-shop-notices:empty,
.az-child-vespa .az-child-story-explore > .az-shop-notices:has(> .woocommerce-notices-wrapper:only-child:empty) { display: none; }
.az-child-vespa .az-child-story-explore .az-product-summary { gap: clamp(24px, 3vw, 48px); }
.az-child-vespa .az-child-story-explore .az-product-gallery { position: static; }
.az-child-vespa .az-child-story-explore .az-product-info { padding-inline: 0; border: 0; box-shadow: none; }
.az-child-vespa .az-child-product-story .az-child-story-richtext { max-height: none; overflow: visible; }
.az-child-vespa .az-child-product-story .az-child-story-richtext :is(img, video, iframe) { max-width: 100%; }
.az-child-vespa .az-child-product-story .az-child-story-richtext img { height: auto; }
.az-child-vespa .az-child-product-story .az-child-story-richtext table { max-width: 100%; }
@media (max-width: 1024px) {
  .az-child-vespa .az-child-story-nav-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 12px; }
  .az-child-vespa .az-child-story-product-name { flex-basis: 100%; max-width: none; padding: 0; font-size: 22px; }
  .az-child-vespa .az-child-story-links { width: 100%; justify-content: flex-end; gap: 24px; }
  .az-child-vespa .az-child-story-links a { padding-block: 13px; }
  .az-child-vespa .az-child-story-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .az-child-vespa .az-child-story-product-name { font-size: 19px; }
  .az-child-vespa .az-child-story-links { gap: 22px; justify-content: flex-start; }
  .az-child-vespa .az-child-story-links a { padding-block: 13px; font-size: 12px; }
  .az-child-vespa .az-child-story-card-grid { gap: 12px; }
  .az-child-vespa .az-child-story-editorial-card > div { padding: 14px; }
  .az-child-vespa .az-child-product-story .az-child-story-editorial-card h3 { font-size: 15px; }
  .az-child-vespa .az-child-product-story .az-child-story-editorial-card p { font-size: 13px; }
  .az-child-vespa .az-child-story-feature-detail { grid-template-columns: 1fr; gap: 20px; padding: 18px; }
  .az-child-vespa .az-child-story-hotspot { --az-child-hotspot-size: 32px; --az-child-hotspot-plus: 12px; }
  .az-child-vespa .az-child-story-dialog { width: calc(100% - 24px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); padding: 28px 20px 22px; border-radius: 14px; }
  .az-child-vespa .az-child-story-dialog .az-child-story-feature-detail { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 12px 0 0; }
  .az-child-vespa .az-child-story-dialog .az-child-story-feature-detail > img { max-height: 28vh; max-height: 28dvh; }
  .az-child-vespa .az-child-story-specs :is(summary, th, td) { padding: 14px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .az-child-vespa .az-child-story-hotspot:is(:hover, :focus-visible)::before,
  .az-child-vespa .az-child-story-hotspot:is(:hover, :focus-visible)::after { animation: none; }
}
