/*
 * SPYDERCRANE® HTML spec sheets — layout matched to official PDF sheets.
 */

.spec-sheet-page,
.spec-sheet-wrap {
  --ss-red: #c41e26;
  --ss-red-dark: #9e151c;
  --ss-ink: #231f20;
  --ss-muted: #555;
  --ss-line: #bdbdbd;
  --ss-band: #ececec;
  --ss-max: 960px;
  --ss-font: "Arial Narrow", "Helvetica Condensed", "Roboto Condensed", Arial, Helvetica, sans-serif;
}

.spec-sheet-page {
  background: #d8d8d8;
  color: var(--ss-ink);
}

/* Clear fixed site header (styles-model.css not loaded on this page) */
.spec-sheet-page .breadcrumb--offset {
  margin-top: 110px;
}

/* Breadcrumb styles normally come from styles-model.css */
.spec-sheet-page .breadcrumb {
  padding: 10px 0;
  background: #1a1e2b;
}

.spec-sheet-page .breadcrumb-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-family: var(--font-b), Arial, Helvetica, sans-serif;
}

.spec-sheet-page .breadcrumb-inner a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.spec-sheet-page .breadcrumb-inner a:hover {
  color: #fff;
}

.spec-sheet-page .breadcrumb-inner span {
  color: rgba(255, 255, 255, 0.25);
}

.spec-sheet-page .breadcrumb-inner .current {
  color: rgba(255, 255, 255, 0.75);
}

.spec-sheet-wrap {
  max-width: var(--ss-max);
  margin: 0 auto;
  padding: 28px 14px 56px;
  color: var(--ss-ink);
}

.spec-sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #c8c8c8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.spec-sheet-actions .ss-actions-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Spec-sheet toolbar buttons (site .btn-secondary is white-on-dark — invisible here) */
.ss-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 2px;
  font-family: var(--font-b), Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  box-sizing: border-box;
}

.ss-btn--ghost {
  background: #fff;
  color: var(--ss-ink);
  border-color: #b0b0b0;
}

.ss-btn--ghost:hover {
  background: #f3f3f3;
  border-color: #888;
}

.ss-btn--primary {
  background: var(--ss-red);
  color: #fff;
  border-color: var(--ss-red);
}

.ss-btn--primary:hover {
  background: var(--ss-red-dark);
  border-color: var(--ss-red-dark);
  color: #fff;
}

.ss-btn--print {
  background: var(--ss-ink);
  color: #fff;
  border-color: var(--ss-ink);
}

.ss-btn--print:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

.ss-btn--print::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Letter-like white sheet */
.spec-sheet {
  background: #fff;
  border: 1px solid #c0c0c0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  overflow: visible;
  font-family: var(--ss-font);
}

.spec-sheet + .spec-sheet {
  margin-top: 40px;
}

/* PDF header */
.ss-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px 0 10px 16px;
  background: #fff;
  border-top: 6px solid var(--ss-red);
  border-bottom: 1px solid #e5e5e5;
  overflow: visible;
}

.ss-header-logo {
  height: 36px;
  width: auto;
  display: block;
  align-self: center;
  flex-shrink: 0;
}

.ss-header-model {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px 0 36px;
  background: var(--ss-red);
  color: #fff;
  font-family: var(--font-d), Impact, Haettenschweiler, sans-serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 0 100%);
  flex-shrink: 0;
}

/* Page grids */
.ss-page1-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 16px 22px;
  padding: 14px 18px 20px;
  align-items: start;
  overflow: visible;
}

.ss-page2-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px 18px;
  padding: 12px 16px 16px;
  align-items: start;
}

.ss-page2-ranges {
  padding: 12px 16px 28px;
}

.ss-page2-ranges > .ss-figure {
  margin: 0 0 20px;
}

.ss-jib-ranges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 8px;
}

/* Full-width stack when side-by-side crops lose axis labels (URW706 / wide jib charts) */
.ss-jib-ranges.ss-jib-ranges--stack {
  grid-template-columns: 1fr;
  gap: 20px;
}

.ss-jib-ranges .ss-figure {
  margin: 0;
}

.ss-jib-ranges img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 700px) {
  .ss-jib-ranges {
    grid-template-columns: 1fr;
  }
}

.ss-page3-load {
  padding: 12px 16px 8px;
}

.ss-page3-outriggers {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px 18px;
  padding: 8px 16px 16px;
  align-items: start;
  border-top: 1px solid #e5e5e5;
}

.ss-page3-outriggers .ss-figure {
  margin: 0 0 10px;
}

.ss-page3-outriggers .ss-outrigger-examples {
  margin: 0;
}

.ss-page3-outriggers .ss-outrigger-examples img,
.ss-page3-outriggers .ss-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .ss-page3-outriggers {
    grid-template-columns: 1fr;
  }
}

.ss-col-left,
.ss-col-right {
  min-width: 0;
  overflow: visible;
}

/* Figures — room around edges so labels aren't clipped */
.ss-figure {
  margin: 0 0 10px;
  max-width: 100%;
  overflow: visible;
}

.ss-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border: none;
  object-fit: contain;
  object-position: center;
}

.ss-page1-grid .ss-col-left .ss-figure {
  overflow: visible;
}

.ss-page1-grid .ss-col-left .ss-figure img {
  max-width: 100%;
  max-height: none;
}

.ss-remote-block {
  overflow: visible;
}

.ss-remote-block .ss-figure img,
.ss-transport-block .ss-figure img {
  max-width: 100%;
  max-height: none;
  overflow: visible;
}

.ss-figure figcaption {
  display: none;
}

.ss-h2 {
  font-family: var(--font-d), Impact, Haettenschweiler, sans-serif;
  font-size: 17px;
  font-weight: 800;
  font-style: italic;
  color: var(--ss-red);
  margin: 0 0 6px;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.ss-h2--tight {
  margin-top: 12px;
}

/* Specs */
.ss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  font-family: var(--ss-font);
  margin: 0 0 12px;
  border: 1px solid #cfcfcf;
}

.ss-table thead {
  display: none;
}

.ss-table td {
  padding: 4px 8px;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}

.ss-table tr:nth-child(odd) td {
  background: var(--ss-band);
}

.ss-table tr:nth-child(even) td {
  background: #fff;
}

.ss-table td:first-child {
  font-weight: 700;
  width: 44%;
}

.ss-table td:last-child {
  font-weight: 600;
}

/* Features */
.ss-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 12px;
  border: 1px solid var(--ss-line);
}

.ss-feature {
  border: 1px solid var(--ss-line);
  margin: -1px 0 0 -1px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.3;
  font-family: var(--ss-font);
  background: #fff;
}

/* Remote / transport */
.ss-remote-block {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 10px 14px;
  align-items: center;
  margin: 0 0 14px;
}

.ss-remote-block .ss-figure {
  margin: 0;
  min-width: 0;
}

.ss-remote-list {
  margin: 0;
  padding-left: 16px;
  font-size: 11.5px;
  line-height: 1.45;
  font-family: var(--ss-font);
  color: var(--ss-ink);
}

.ss-remote-list li {
  margin: 0 0 2px;
}

.ss-transport-block {
  margin: 0 0 12px;
  overflow: visible;
  clear: both;
}

.ss-transport-block .ss-h2 {
  margin-bottom: 8px;
}

.ss-transport-block .ss-figure {
  margin: 0;
  max-width: 100%;
  overflow: visible;
}

.ss-transport-block .ss-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
}

.ss-callout {
  font-size: 11.5px;
  line-height: 1.4;
  font-family: var(--ss-font);
  color: var(--ss-muted);
  margin: 0 0 8px;
}

/* Footer */
.ss-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--ss-red);
  color: #fff;
  padding: 12px 14px;
  font-size: 12px;
  font-family: var(--ss-font);
  font-style: italic;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.ss-footer > div {
  padding: 0 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.ss-footer > div:last-child {
  border-right: none;
}

.ss-footer strong {
  display: inline;
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-right: 6px;
  font-style: italic;
}

.ss-footer a {
  color: #fff;
  text-decoration: none;
}

.ss-footer a:hover {
  text-decoration: underline;
}

/* Examples — full diagrams, no max-height clipping */
.ss-examples {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.ss-example {
  border: none;
  padding: 0;
  background: transparent;
  width: 100%;
  max-width: 100%;
  text-align: left;
}

.ss-example h3 {
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--ss-red);
  font-family: var(--font-d), Impact, Haettenschweiler, sans-serif;
  font-style: italic;
  font-weight: 800;
}

.ss-example img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #fff;
  margin: 0;
}

.ss-page2-grid .ss-col-right > .ss-figure img {
  max-height: none;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

/* Load chart — never clip stages */
.ss-load-chart {
  --lc-red: #d03038;
  --lc-orange: #e89a1c;
  --lc-yellow: #f8e000;
  --lc-blue: #13a1cf;
  --lc-green: #10a050;
  --lc-purple: #8b5cf6;
  --lc-gray: #dcddde;
  --lc-ink: #231f20;
  --lc-alert: #d81838;
  margin: 0 0 6px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 1px solid var(--lc-ink);
}

.ss-lc-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-family: var(--ss-font);
  font-size: 11px;
  line-height: 1.15;
  color: var(--lc-ink);
}

.ss-lc-table caption {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ss-lc-table + .ss-lc-table {
  border-top: 1px solid var(--lc-ink);
}

.ss-lc-table th,
.ss-lc-table td {
  border: 1px solid var(--lc-ink);
  padding: 2px 4px;
  text-align: center;
  vertical-align: middle;
  font-weight: 700;
  color: var(--lc-ink);
  background: #fff;
  white-space: nowrap;
}

.ss-lc-table .ss-lc-head {
  background: var(--lc-gray);
  font-weight: 700;
  font-size: 10px;
}

.ss-lc-table .ss-lc-deploy {
  width: 7em;
  font-size: 10px;
  font-weight: 600;
}

.ss-lc-table .ss-lc-radius-label {
  font-size: 11px;
  font-weight: 700;
}

.ss-lc-table .ss-lc-state {
  background: #fff;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
}

.ss-lc-table .ss-lc-stage {
  width: 30px;
  min-width: 30px;
  max-width: 32px;
  padding: 4px 2px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.05;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  white-space: nowrap;
  color: var(--lc-ink);
  overflow: hidden;
  box-sizing: border-box;
  vertical-align: middle;
}

.ss-lc-table .ss-lc-stage-1 { background: var(--lc-red); }
.ss-lc-table .ss-lc-stage-2 { background: var(--lc-yellow); }
.ss-lc-table .ss-lc-stage-3 { background: var(--lc-blue); }
.ss-lc-table .ss-lc-stage-4 { background: var(--lc-green); }
.ss-lc-table .ss-lc-stage-5 { background: var(--lc-purple); }
.ss-lc-table .ss-lc-stage-orange { background: var(--lc-orange); }

.ss-lc-table .ss-lc-not-ext th,
.ss-lc-table .ss-lc-not-ext td {
  color: var(--lc-alert);
}

.ss-lc-table .ss-lc-prohibited {
  background: #f3d4d4;
  color: #666;
  font-size: 9px;
  font-weight: 600;
}

/* Wide searcher-hook / jib charts need full sheet width — always stack */
.ss-jib-load-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.ss-load-legend {
  font-size: 10.5px;
  color: var(--ss-muted);
  font-family: var(--ss-font);
  margin: 0;
}

.spec-sheet-page .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .ss-page1-grid,
  .ss-page2-grid,
  .ss-remote-block {
    grid-template-columns: 1fr;
  }

  .ss-example {
    max-width: 100%;
  }

  .ss-footer {
    grid-template-columns: 1fr;
  }

  .ss-footer > div {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 0;
  }

  .ss-footer > div:last-child {
    border-bottom: none;
  }

  .ss-header-model {
    clip-path: none;
    padding: 10px 16px;
  }
}

/* ========== Print: customer-ready letter sheets ========== */
@media print {
  @page {
    size: letter portrait;
    margin: 0.35in;
  }

  html,
  body.spec-sheet-page {
    background: #fff !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .spec-sheet-actions,
  .ss-btn,
  .site-header,
  .site-footer,
  .breadcrumb,
  .breadcrumb--offset,
  .contact-modal,
  .cookie-banner,
  #contact-modal,
  .site-nav,
  .header-top,
  .nav-overlay {
    display: none !important;
  }

  .spec-sheet-wrap {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .spec-sheet {
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
    page-break-after: always;
    break-after: page;
    width: 100%;
  }

  .spec-sheet:last-of-type {
    page-break-after: auto;
    break-after: auto;
  }

  .ss-header {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .ss-page1-grid,
  .ss-page2-grid {
    gap: 6px 10px;
    padding: 6px 0 4px;
  }

  .ss-figure {
    margin-bottom: 4px;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .ss-figure img,
  .ss-example img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* Keep page 1 diagrams compact enough for one letter sheet */
  .ss-page1-grid .ss-col-left .ss-figure img {
    max-height: 2.55in;
    width: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .ss-page1-grid .ss-remote-block .ss-figure img {
    max-height: 1.15in;
  }

  .ss-page1-grid .ss-transport-block .ss-figure img {
    max-height: 1.35in;
  }

  .ss-table {
    font-size: 9px;
  }

  .ss-table th,
  .ss-table td {
    padding: 2px 5px;
  }

  .ss-features {
    font-size: 9px;
  }

  .ss-feature {
    padding: 3px 5px;
  }

  .ss-remote-list {
    font-size: 9.5px;
    line-height: 1.3;
  }

  .ss-h2 {
    font-size: 13px;
    margin: 4px 0 4px;
  }

  .ss-example {
    max-width: 100%;
  }

  .ss-example img {
    max-height: none;
  }

  .ss-page2-grid .ss-col-left > .ss-figure img {
    max-height: 3.2in;
    width: auto;
    margin-left: auto;
    margin-right: auto;
  }

  .ss-page2-grid .ss-col-right > .ss-figure img {
    max-height: 2.1in;
  }

  .ss-page2-grid .ss-example img {
    max-height: 1.55in;
  }

  .ss-load-chart {
    overflow: visible;
  }

  .ss-lc-table {
    break-inside: avoid;
    page-break-inside: avoid;
    font-size: 8.5px;
  }

  .ss-lc-table th,
  .ss-lc-table td {
    padding: 1px 3px;
  }

  .ss-callout {
    font-size: 9.5px;
    margin-bottom: 4px;
  }

  .ss-footer {
    break-inside: avoid;
    page-break-inside: avoid;
    font-size: 10px;
  }

  a[href]::after {
    content: none !important;
  }

  .ss-footer a {
    text-decoration: none;
  }
}

/* Full-page PDF renders */
.ss-figure--page {
  margin: 0;
  padding: 0;
  overflow: visible;
}

.ss-figure--page img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  background: #fff;
}

/* Dump pages already include PDF chrome — no extra header/footer */
.spec-sheet.ss-sheet-render {
  overflow: visible;
}

.spec-sheet.ss-sheet-render + .spec-sheet.ss-sheet-render {
  margin-top: 32px;
}

.spec-sheet-page .ss-seo-extract.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
