/* HYPERCUT catalog - print / save-as-PDF styles (v3)
   The phone layout is the one that fills the page properly, so print uses
   exactly that layout: each page is built as a 360 x 508 px phone page
   (with the mobile rules copied below) and scaled up with zoom to fill A4. */

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .topbar, .controls,
  #prevBtn, #nextBtn, #fullscreenBtn, #printBtn, #downloadBtn {
    display: none !important;
  }

  .catalog-wrapper, .book-area, #book {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    transform-style: flat !important;
    overflow: visible !important;
  }

  /* 360 x 508 px phone page x 2.2055 zoom = 794 x 1120 px (A4) */
  .page {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transform-style: flat !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    transition: none !important;
    width: 360px !important;
    height: 508px !important;
    zoom: 2.2055;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .page-inner { overflow: hidden !important; }

  /* ---------- phone layout rules (copied from style.css, max-width:600px) ---------- */

  .page-inner{padding:24px 24px 27px}

  .page-head{height:36px}
  .page-head img{width:105px;height:30px}
  .page-head span{font-size:11px;padding-top:4px}

  h1{font-size:22px;line-height:1.5}
  p{font-size:9px;line-height:1.9;margin-bottom:8px}

  .eyebrow{font-size:7px;margin-bottom:8px}
  .red-rule{margin-bottom:12px}

  .about-layout,
  .standard-layout,
  .service-layout{
    grid-template-columns:1fr;
    gap:15px;
    margin-top:22px;
  }

  .about-photo,.standard-photo{
    height:190px;
    order:-1;
  }

  .feature-strip{margin-top:12px}
  .feature-strip div{padding:8px 4px;min-height:62px}
  .feature-strip b{font-size:13px}
  .feature-strip strong{font-size:7px}
  .feature-strip small{font-size:5.5px}

  .fiber-overview{
    grid-template-columns:1fr 1fr;
    gap:9px;
    margin-top:12px;
  }

  .fiber-overview-copy p{
    font-size:5.8px;
    line-height:1.45;
    margin-bottom:5px;
  }

  .fiber-overview-copy h1{font-size:16px;line-height:1.45}
  .fiber-overview-photo{height:105px}

  .models-title{margin-top:6px;padding-bottom:4px}
  .models-title b{font-size:8px}
  .models-title span{font-size:4px}

  .model-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:5px;
  }

  .model-card{
    height:92px;
    padding:5px;
  }

  .model-top{padding-bottom:3px;margin-bottom:3px}
  .model-top span{font-size:4px}
  .model-top b{font-size:11px}
  .model-card h3{font-size:6.5px;margin-bottom:2px}
  .model-card li{font-size:4.5px;line-height:1.35}

  .tag-row{margin-top:5px;padding-top:5px}
  .tag-row span{font-size:4.5px}

  .art-header{
    height:50px;
    padding:10px 24px 0;
  }

  .art-header img{width:105px;height:30px}
  .art-header span{font-size:11px}

  .art-label{
    left:24px;
    top:56px;
    font-size:4.5px;
  }

  .fiber-art-page footer{
    left:24px;
    right:24px;
    bottom:10px;
    padding-top:6px;
    font-size:6px;
  }

  .fiber-art-page footer span{font-size:5px}

  .service-cards{gap:7px}
  .service-cards div{min-height:65px;padding:9px}
  .service-cards strong{font-size:8px}

  .contact-center{margin-top:65px}
  .contact-boxes{grid-template-columns:1fr;gap:6px;margin-top:20px}

  footer{
    left:24px;
    right:24px;
    bottom:10px;
    padding-top:6px;
    font-size:6px;
  }

  footer span{font-size:5px}

  .back-cover{padding:20px 25px 15px}
  .back-cover-top span{font-size:9px}
  .back-cover-top b{font-size:5px}

  .back-cover-center img{width:135px}
  .back-cover-center h1{font-size:19px}
  .back-cover-center p{font-size:7px;max-width:78%}

  .contact-panel{
    grid-template-columns:1fr;
    gap:6px;
    margin-top:12px;
  }

  .contact-item{
    min-height:45px;
    padding:6px 9px;
    gap:8px;
  }

  .contact-item+.contact-item{border-left:1px solid #34363a}

  .contact-icon{
    width:27px;
    height:27px;
    flex-basis:27px;
    font-size:12px;
  }

  .contact-item span{font-size:4.5px;margin-bottom:2px}
  .contact-item strong{font-size:6.5px}

  .back-cover-bottom{margin-top:10px}
  .back-cover-bottom b{font-size:4.5px;margin-bottom:3px}
  .back-cover-bottom span{font-size:3.8px}

  /* spec tables keep phone-scale type in print */
  .spec-table th,.spec-table td{font-size:5.2px}
  .spec-note{font-size:5px}
  .mini-list{font-size:5.4px}
  .fig.crop img{height:110px}
  .fig-p,.split p{font-size:5.6px}
  .comp img{height:58px}
  .comp b{font-size:6px}.comp em{font-size:5.4px}.comp small{font-size:4.8px}
  .split img{height:70px}

  /* fixes from the print review */
  .about-photo{height:120px}
  .model-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .model-card{height:74px}
  .brand-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .contact-center{margin-top:22px}
  .contact-boxes{gap:5px}
  .service-cards small{font-size:6px}
}
