/* ============================================
   LGS ROLL FORMER COIL PAGES
   Loaded only on the LGS hub, FRAMECAD and Scottsdale pages via $extra_css.
   Uses the tokens from main.css (charcoal, orange, yellow, paper, Barlow Condensed).
   ============================================ */

/* ---------- SPEC TABLES ---------- */
.spec-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(20,20,20,.08);
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  min-width: 560px;
}
.spec-table.narrow { min-width: 0; }
.spec-table caption {
  caption-side: bottom;
  text-align: left;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--steel);
  border-top: 1px solid var(--line);
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table thead th {
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: none;
}
.spec-table tbody th {
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
}
.spec-table tbody tr:nth-child(even) { background: #FAF9F6; }
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.spec-table strong { color: var(--charcoal); }
.spec-table .no { color: var(--steel); }

/* Status pills inside tables */
.pill {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
}
.pill-stock { background: var(--yellow); color: #111; }
.pill-order { background: var(--paper-deep); color: var(--charcoal); border: 1px solid var(--line); }

/* ---------- SMALL PHOTO ROW ---------- */
.photo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.photo-row.two { grid-template-columns: repeat(2, 1fr); }
.photo-row figure { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.photo-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-row figcaption {
  padding: 10px 14px;
  border-top: 3px solid var(--orange);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--charcoal);
}
@media (max-width: 780px) {
  .photo-row, .photo-row.two { grid-template-columns: 1fr; }
}

/* ---------- TERMS / CALLOUT BOX ---------- */
.terms-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 4px;
  padding: 26px 28px;
  max-width: 880px;
}
.terms-box h3 { font-size: 24px; margin-bottom: 14px; }
.terms-box ul { margin: 0; padding-left: 20px; }
.terms-box li { margin: 6px 0; color: var(--ink); }
.terms-box p { margin: 12px 0 0; color: var(--steel); font-size: 15px; }

/* Lead time stat pair */
.lead-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  max-width: 880px;
  margin-bottom: 32px;
}
.lead-pair div { background: var(--white); padding: 24px 24px 22px; }
.lead-pair .num {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  color: var(--orange-a11y);
  line-height: 1;
}
.lead-pair .label { margin-top: 8px; font-size: 14.5px; color: var(--steel); }
@media (max-width: 560px) { .lead-pair { grid-template-columns: 1fr; } }

/* ---------- BRAND CHIPS (not links) ---------- */
.brand-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chips li {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--white);
  border: 1px solid rgba(232,112,10,.45);
  border-radius: 3px;
  padding: 8px 14px;
}
.brand-chips li.more { border-style: dashed; color: var(--steel); }

/* Spacing helpers used on these pages */
.stack-lg > * + * { margin-top: 56px; }
.lede { font-size: 17px; color: var(--steel); max-width: 72ch; }
.sub-h { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 16px; }
.trademark-note { font-size: 12.5px; color: var(--steel); max-width: 90ch; margin-top: 28px; }

/* Phone: keep the first column in view while the table scrolls sideways, and show a hint */
.scroll-hint { display: none; font-size: 13px; color: var(--steel); margin: 0 0 8px; }
@media (max-width: 760px) {
  .scroll-hint { display: block; }
  .spec-table:not(.narrow) tbody th[scope=row],
  .spec-table:not(.narrow) thead th:first-child { position: sticky; left: 0; z-index: 1; }
  .spec-table:not(.narrow) tbody th[scope=row] { background: var(--white); box-shadow: 1px 0 0 var(--line); }
  .spec-table:not(.narrow) tbody tr:nth-child(even) th[scope=row] { background: #FAF9F6; }
  .spec-table:not(.narrow) thead th:first-child { background: var(--charcoal); }
  .spec-table th, .spec-table td { padding: 10px 12px; }
  .spec-table:not(.narrow) td { white-space: nowrap; }
}

/* ---------- PRINT: clean spec sheet ---------- */
@media print {
  @page { margin: 0.6in; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .top-bar, .site-header, .breadcrumb-bar, .skip-link, .nav-toggle,
  .hero-actions, .section-dark, .scroll-hint, .related-links, .photo-row, .feature-media,
  .site-footer .footer-grid > div:not(:last-child), .btn { display: none !important; }
  .hero { min-height: 0 !important; padding: 0; background: none; color: #000; }
  .hero-media { display: none; }
  .hero-inner { padding: 0 0 12pt !important; }
  .hero h1, .hero-sub, .hero .spec-tag { color: #000 !important; text-shadow: none !important; }
  .hero h1 .hl { color: #000 !important; }
  section { padding: 14pt 0 !important; background: #fff !important; border: none !important; }
  .section-head { margin-bottom: 12pt; }
  .feature { display: block; }
  .spec-table-wrap { overflow: visible; box-shadow: none; border-color: #999; }
  .wrap { max-width: none; padding: 0; }
  .hero h1 { font-size: 24pt !important; }
  .section-head h2, .feature-copy h2 { font-size: 16pt !important; }
  .section-head { max-width: none; }
  .spec-table { min-width: 0; width: 100%; font-size: 9pt; }
  .spec-table th, .spec-table td, .spec-table .num, .pill { white-space: normal !important; padding: 5pt 6pt; }
  .spec-table tbody th[scope=row], .spec-table thead th { position: static !important; }
  .spec-table thead th { background: #222 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .spec-table tr, .terms-box, .faq-item { break-inside: avoid; }
  .pill-stock { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000 !important; text-decoration: none !important; }
  .site-footer { background: #fff; color: #000; border: none; padding: 0; }
  .site-footer .footer-grid { display: block; }
  .site-footer .footer-col h4, .site-footer .footer-col a, .site-footer .footer-col p { color: #000; }
  .footer-bottom { color: #000; border: none; }
}

/* Structural stud & track size pages (Nov 2026) */
.spec-table .code { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.spec-table .sub { font-weight: 400; font-size: 0.85em; opacity: 0.75; }
.size-picker { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.size-picker a, .size-picker .current { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid rgba(0,0,0,.15); border-radius: 4px; font-weight: 700; font-size: 18px; text-decoration: none; color: inherit; background: #fff; }
.size-picker small { font-weight: 400; font-size: 12.5px; opacity: .7; }
.size-picker a:hover, .size-picker a:focus-visible { border-color: var(--orange); }
.size-picker .current { background: var(--orange-dim); border-color: var(--orange-dim); color: #fff; }
.size-picker .current small { opacity: .9; }
