/* This stylesheet is loaded only on DY-980. */
.dy980-view-sheet, .dy980-download-short {display:none}
[data-feature-gallery="dy-980"] .fm-hero .fm-image img {object-fit:contain;object-position:center}
.dy980-chapters #customer-feedback {padding-block-start:clamp(40px,5vw,80px)}
.dy980-chapters .review-detail-stage {grid-template-columns:minmax(0,.58fr) minmax(0,1.42fr);gap:clamp(24px,4vw,64px)}
.dy980-chapters .review-detail-product img {height:clamp(180px,19vw,290px)}
.dy980-chapters .review-copy {min-height:310px}
.dy980-chapters .inner-question .product-service-links {display:flex;align-items:flex-start;flex-direction:column;gap:.65rem;padding-block:12px}
#related-models {position:relative}
#related-models > .arch-next-link {grid-column:2;grid-row:2;justify-self:start;display:inline-flex;gap:12px;align-items:center;min-height:44px;color:inherit;text-decoration:none;border-bottom:1px solid currentColor}
#related-models .related-grid {grid-column:2;grid-row:1}
body[data-page="dy-980"] .arch-product-next header .button {margin-top:20px}
body[data-page="dy-980"] .arch-product-next .arch-next-link {font-size:clamp(16px,1.3vw,20px)}
@media(max-width:900px){
  #specifications .spec-sheet-layout {grid-template-columns:minmax(0,1fr)}
  #specifications .spec-sheet-media {display:flex;align-items:center;gap:12px;width:100%;max-width:none;border-block:1px solid #d5d2cb;padding-block:8px}
  #specifications .spec-sheet-poster {display:flex;align-items:center;gap:9px;min-width:0;flex:1;min-height:48px;color:inherit;text-decoration:none}
  #specifications .spec-sheet-poster img {width:34px;height:48px;object-fit:contain;flex:none}
  .dy980-download-full {display:none}
  .dy980-download-short {display:inline}
  .dy980-view-sheet {display:inline;font-size:15px;font-weight:600}
  #specifications .spec-sheet-files {flex:0 1 auto}
  body[data-product-detail] #MainContent .spec-sheet-files > a {width:auto;min-height:44px;gap:7px;padding:7px 9px;font-size:14px}
}
@media(max-width:800px){
  .dy980-chapters .review-detail-stage {display:flex;flex-direction:column;align-items:stretch;gap:14px}
  .dy980-chapters .review-detail-carousel {order:-1}
  .dy980-chapters .review-detail .review-copy {min-height:0}
  .dy980-chapters .review-detail-product {align-self:flex-start;display:flex;align-items:center;gap:10px}
  .dy980-chapters .review-detail-product img {width:54px;height:46px}
  .dy980-chapters .review-detail-product figcaption {margin:0;font-size:14px}
  #related-models > .arch-next-link {order:3;grid-column:1/-1;grid-row:auto}
  #related-models .related-grid {grid-column:1/-1;grid-row:auto}
  #related-models {display:flex;flex-direction:column;align-items:stretch;gap:16px}
  #related-models > .arch-next-link {align-self:flex-start}
  [data-feature-gallery="dy-980"] .fm-hero .fm-image {aspect-ratio:2.3}
}
/* Keep the specification heading and table on the same inset as the feature photos. */
body[data-page="dy-980"] #MainContent .dy980-chapters #specifications.specification-tabs {box-sizing:border-box;padding-inline:max(calc((100% - 1728px) / 2),clamp(20px,3.75vw,72px))!important}
#doyo-assistant-launch[data-yield-control]:not(:focus-visible) {opacity:0;pointer-events:none}

/* Short landscape windows have room beside the machine but little room above it. */
@media (orientation:landscape) and (max-height:620px) {
  body[data-page="dy-980"] #shopify-section-doyo-header {position:relative;top:auto}
  body[data-page="dy-980"] #MainContent .pdp-chapters {top:0}
}
@media (min-width:540px) and (max-width:800px) and (max-height:500px) and (orientation:landscape) {
  body[data-page="dy-980"] #overview.purchase-hero {
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:"photo title" "photo summary";
    grid-template-rows:auto 1fr;
    gap:12px 18px;
  }
  #overview .purchase-capabilities {font-size:18px}
  #overview .purchase-facts, #overview .purchase-terms {column-gap:8px}
  #overview .purchase-terms > div {flex-wrap:wrap;row-gap:2px}
  #overview .purchase-actions {grid-template-columns:minmax(0,1fr);gap:8px}
  #overview .purchase-enquiry, body[data-page="dy-980"] #MainContent #overview .purchase-actions > .text-link {grid-area:auto}
  #overview .purchase-enquiry > summary {width:100%}
}

/* Size the closed feature group against the space left under both navigation bars. */
#functions.feature-mosaic {padding-block:clamp(16px,2.6svh,28px) clamp(28px,4svh,48px)}
#functions .shell > h2 {margin-bottom:clamp(16px,2.5svh,28px)}
@media (min-width:761px) {
  #functions .fm-grid {--fm-height:clamp(320px,min(42vw,calc(100svh - 306px)),590px)}
  #functions .fm-caption {min-height:64px;padding:12px clamp(16px,1.6vw,24px);gap:14px}
  #functions .fm-hero .fm-caption {min-height:92px}
  #functions .fm-caption h3 {font-size:clamp(22px,1.75vw,28px)}
}
/* Wide, shallow windows give each feature its own column. Expanded text flows below the summary. */
@media (min-width:761px) and (max-height:700px) {
  #functions .fm-grid {grid-template-columns:1.12fr 1fr 1fr}
  #functions .fm-side {display:contents}
  #functions .fm-tile > summary {height:auto}
  #functions .fm-image {flex:none;height:clamp(96px,22svh,154px)}
  #functions .fm-caption {gap:10px;padding:12px}
  #functions .fm-caption h3 {font-size:clamp(20px,1.7vw,26px)}
}
@media (max-width:760px) {
  #functions .fm-tile .fm-image {max-height:34svh}
  #functions .fm-caption {min-height:68px;padding:14px 16px}
}
@media (min-width:480px) and (max-width:760px) and (max-height:500px) {
  #functions .fm-tile > summary {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}
  #functions .fm-tile .fm-image {height:100%;min-height:104px;max-height:none;aspect-ratio:auto}
  #functions .fm-caption h3 {font-size:21px}
  #functions .fm-description {font-size:15px}
}

/* Keep the file action with its preview; let the table take the height its rows need. */
@media (min-width:901px) {
  #specifications.specification-tabs {
    /* Chapter bar (60px), anchor clearance (20px), and section inset (16px). */
    --sheet-top:calc(var(--site-header-height,88px) + 96px);
    display:grid;
    grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);
    grid-template-rows:auto 1fr;
    column-gap:clamp(24px,3.5vw,56px);
    align-items:start;
  }
  #specifications .spec-sheet-layout {display:contents}
  #specifications .chapter-heading, #specifications .spec-information {grid-column:1}
  #specifications .spec-information {align-self:start}
  #specifications .spec-sheet-table {height:auto}
  #specifications .spec-sheet-media {
    /* Reserve the download row (44px) and its gap (10px) beneath the portrait. */
    width:min(100%,calc((100svh - var(--sheet-top) - 54px) * 1600 / 2263));
    grid-column:2;
    grid-row:1 / 3;
    justify-self:center;
    position:sticky;
    top:var(--sheet-top);
  }
  body[data-page="dy-980"] #MainContent #specifications.specification-tabs {padding-top:16px}
  #specifications.specification-tabs .chapter-heading {margin-bottom:20px}
}
@media (min-width:801px) {
  .dy980-chapters #customer-feedback {padding-block:clamp(20px,3svh,36px) 32px}
  #customer-feedback .review-heading {margin-bottom:20px}
  #customer-feedback .review-detail-stage {padding-block:clamp(20px,3svh,32px)}
  #customer-feedback .review-copy {min-height:0;gap:16px}
  #customer-feedback blockquote p {font-size:clamp(28px,2.6vw,44px)}
  #related-models {row-gap:20px}
  #related-models .related-product .detail-related-photo {max-height:32svh}
}

@media (min-width:901px) and (orientation:landscape) and (max-height:620px) {
  #specifications.specification-tabs {--sheet-top:96px}
}
