/* Shared PhCNC LSSE screenshot gallery. */
.lsse-gallery { margin-top: 52px; padding-top: 10px; border-top: 1px solid var(--line); }
.lsse-gallery-featured,
.lsse-gallery-card { margin: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.lsse-gallery-featured { margin-bottom: 20px; }
.lsse-gallery-link { display: block; background: #080d15; cursor: zoom-in; }
.lsse-gallery-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.lsse-gallery-link img { display: block; width: 100%; height: auto; }
.lsse-gallery-featured figcaption,
.lsse-gallery-card figcaption { padding: 13px 15px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.lsse-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lsse-gallery-card { display: flex; flex-direction: column; }
.lsse-gallery-card figcaption { flex: 1; }
.lsse-gallery-card:hover { border-color: #456481; }

.lsse-lightbox[hidden] { display: none; }
.lsse-lightbox { position: fixed; z-index: 2000; inset: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 30px; background: rgba(3, 7, 12, .94); }
.lsse-lightbox-content { min-width: 0; max-height: calc(100vh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lsse-lightbox-content img { display: block; max-width: 100%; max-height: calc(100vh - 130px); width: auto; height: auto; object-fit: contain; background: #080d15; border: 1px solid #33485e; }
.lsse-lightbox-content p { width: 100%; max-width: 1200px; margin: 12px 0 0; color: #eef5fb; text-align: center; line-height: 1.45; }
.lsse-lightbox-close,
.lsse-lightbox-nav { border: 1px solid #6f8498; color: #fff; background: #17283a; cursor: pointer; }
.lsse-lightbox-close:hover,
.lsse-lightbox-nav:hover { background: #24547c; }
.lsse-lightbox-close:focus-visible,
.lsse-lightbox-nav:focus-visible { outline: 3px solid #75c7ff; outline-offset: 3px; }
.lsse-lightbox-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 6px; font-size: 30px; line-height: 1; }
.lsse-lightbox-nav { width: 52px; height: 64px; border-radius: 6px; font-size: 42px; line-height: 1; }
.lsse-gallery-modal-open { overflow: hidden; }

@media (max-width: 900px) {
  .lsse-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .lsse-gallery { margin-top: 42px; }
  .lsse-gallery-grid { grid-template-columns: 1fr; }
  .lsse-lightbox { display: flex; justify-content: center; padding: 64px 8px 18px; }
  .lsse-lightbox-content { width: 100%; max-height: calc(100vh - 82px); }
  .lsse-lightbox-content img { max-height: calc(100vh - 160px); }
  .lsse-lightbox-nav { position: absolute; top: 50%; z-index: 1; width: 42px; height: 54px; font-size: 34px; transform: translateY(-50%); background: rgba(23, 40, 58, .9); }
  .lsse-lightbox-prev { left: 10px; }
  .lsse-lightbox-next { right: 10px; }
  .lsse-lightbox-close { top: 10px; right: 10px; }
  .lsse-lightbox-content p { font-size: 13px; }
}
/* Shared PCB CAD compatibility matrix. */
.lsse-cad-compatibility { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--line); }
.lsse-cad-compatibility-intro { max-width: 700px; }
.lsse-cad-compatibility-intro p:first-child { margin-top: 0; }
.lsse-cad-compatibility-intro p:last-child { margin-bottom: 0; }
.lsse-cad-table-wrap { margin-top: 24px; border-radius: 8px; }
.lsse-cad-table { min-width: 980px; }
.lsse-cad-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lsse-cad-table thead th { width: auto; color: var(--text); background: var(--soft); white-space: nowrap; }
.lsse-cad-table thead th:first-child { width: 25%; }
.lsse-cad-table tbody th { width: auto; color: var(--text); }
.lsse-cad-table td:nth-child(2), .lsse-cad-table td:nth-child(3) { text-align: center; }
.cad-support-yes { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; color: #8dd7b0; font-size: 18px; font-weight: 900; }
.cad-support-note { color: var(--muted); font-size: 13px; }
.cad-support-unconfirmed { color: #75889a; }
.cad-demo-links { display: flex; flex-wrap: wrap; gap: 6px; }
.cad-demo-links a { display: inline-flex; padding: 4px 7px; color: #d9efff; background: #10263a; border: 1px solid #3e7190; border-radius: 4px; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.cad-demo-links a:hover { border-color: var(--accent); background: #173a56; }
.cad-demo-links a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.lsse-cad-table-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.lsse-cad-highlight { margin-top: 18px; padding: 16px 18px; background: var(--soft); border-left: 3px solid var(--accent); }
.lsse-cad-highlight p { margin: 0 0 7px; }
.lsse-cad-highlight p:last-child { margin-bottom: 0; }
.lsse-cad-highlight a { font-weight: 800; }
/* Shared CAD-to-G-code real-time benchmark section. */
.lsse-speed-demos { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--line); }
.lsse-speed-intro { max-width: 640px; }
.lsse-speed-intro p { margin-top: 0; }
.lsse-speed-intro p:last-child { margin-bottom: 0; color: var(--muted); }
.lsse-benchmark-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.lsse-benchmark-card { min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.lsse-benchmark-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 18px 14px; }
.lsse-benchmark-header h3 { margin: 0 0 8px; font-size: 20px; }
.lsse-benchmark-format { display: inline-flex; padding: 4px 8px; color: var(--accent); background: #10263a; border: 1px solid #3e7190; border-radius: 4px; font-size: 12px; font-weight: 800; }
.lsse-benchmark-time { flex: 0 0 auto; color: #fff; font-size: 32px; line-height: 1; }
.lsse-benchmark-media { position: relative; background: #080d15; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lsse-benchmark-play { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #080d15; color: #fff; cursor: pointer; }
.lsse-benchmark-play[hidden] { display: none; }
.lsse-benchmark-play img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 764; object-fit: contain; }
.lsse-benchmark-play span { position: absolute; left: 50%; bottom: 16px; padding: 8px 13px; transform: translateX(-50%); border: 1px solid #8fa6bb; border-radius: 5px; background: rgba(12, 29, 45, .92); color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; }
.lsse-benchmark-play:hover span { background: #24547c; }
.lsse-benchmark-play:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.lsse-benchmark-video { display: block; width: 100%; aspect-ratio: 1280 / 764; background: #000; }
.lsse-benchmark-video[hidden] { display: none; }
.lsse-benchmark-stats { margin: 0; padding: 14px 18px 0; color: var(--text); font-size: 14px; font-weight: 800; line-height: 1.45; }
.lsse-benchmark-description { margin: 0; padding: 10px 18px 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.lsse-benchmark-notes { margin-top: 20px; padding: 18px 20px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
.lsse-benchmark-notes p:first-child { margin-top: 0; color: var(--text); }
.lsse-benchmark-notes p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .lsse-cad-compatibility { margin-top: 42px; padding-top: 28px; }
  .lsse-cad-table-wrap { padding-bottom: 5px; }
  .lsse-speed-demos { margin-top: 42px; padding-top: 28px; }
  .lsse-benchmark-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .lsse-benchmark-header { gap: 12px; padding: 16px 14px 12px; }
  .lsse-benchmark-header h3 { font-size: 18px; }
  .lsse-benchmark-time { font-size: 28px; }
  .lsse-benchmark-stats { padding: 13px 14px 0; }
  .lsse-benchmark-description { padding: 9px 14px 16px; }
}