/* Line sheet — wholesale catalog, 1-page Letter/A4 */

@page {
  size: Letter;
  margin: 0;
}

.line-sheet-page {
  background: linear-gradient(180deg, var(--bt-cream-2) 0%, #ddd5be 100%);
  padding: 2.5rem 0;
  min-height: 100vh;
}

.line-sheet {
  width: 8.5in;
  min-height: 11in;
  margin: 0 auto;
  background: #fff;
  color: var(--bt-ink);
  font-family: var(--font-sans);
  font-size: 10pt;
  line-height: 1.4;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  padding: 0.55in 0.55in 0.5in;
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 0.32in;
}

.line-sheet::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--avocado-deep), var(--sunflower-deep), var(--bt-red));
}

.ls-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 2px solid var(--bt-navy); padding-bottom: 0.18in;
  gap: 0.4in;
}

.ls-head__brand {
  display: flex; align-items: center; gap: 0.85rem;
}

.ls-head__brand img {
  width: 64px; height: auto;
}

.ls-head__brand .name {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 600;
  color: var(--bt-navy); letter-spacing: 0.1em; line-height: 1;
}

.ls-head__brand .tag {
  font-family: var(--font-display); font-style: italic;
  color: var(--bt-green-deep); font-size: 0.85rem; margin-top: 0.05in;
}

.ls-head__type {
  text-align: right; font-size: 9pt;
}

.ls-head__type .label {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--bt-red); font-weight: 700;
}

.ls-head__type .heading {
  font-family: var(--font-display); font-size: 1.4rem;
  color: var(--bt-navy); font-weight: 600; margin: 0.04in 0;
}

.ls-head__type address {
  font-style: normal; color: var(--bt-ink); font-size: 8.5pt; line-height: 1.5;
}

.ls-intro {
  font-family: var(--font-display); font-style: italic;
  color: var(--bt-navy); font-size: 1.1rem; line-height: 1.45;
  margin: 0; max-width: 7in;
}

.ls-table {
  width: 100%; border-collapse: collapse;
  font-size: 8.6pt; margin-top: 0.08in;
}

.ls-table thead th {
  background: var(--bt-navy); color: #fff;
  font-size: 7.4pt; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; padding: 0.07in 0.08in; text-align: left;
  border-right: 1px solid #fff;
}
.ls-table thead th:last-child { border-right: none; }
.ls-table thead th.num { text-align: center; }

.ls-table tbody td {
  padding: 0.1in 0.08in;
  border-bottom: 1px solid var(--bt-line);
  vertical-align: top;
}

.ls-table tbody tr.ls-row {
  page-break-inside: avoid;
}

.ls-table .ls-thumb {
  width: 0.7in; padding: 0.05in;
}
.ls-table .ls-thumb img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 4px 8px rgba(20,33,39,0.15));
}

.ls-table .ls-product {
  width: 1.5in;
}
.ls-table .ls-product strong {
  display: block; color: var(--bt-navy);
  font-family: var(--font-display); font-size: 11pt; font-weight: 600;
  margin-bottom: 0.02in;
}
.ls-table .ls-product .grade {
  font-size: 8pt; color: #555; font-style: italic;
}

.ls-table .ls-spec dt {
  font-size: 7pt; color: #888; letter-spacing: 0.08em; text-transform: uppercase;
}
.ls-table .ls-spec dd {
  margin: 0 0 0.04in; color: var(--bt-ink); font-weight: 600;
}

.ls-table td.num {
  text-align: center; font-variant-numeric: tabular-nums;
}

.ls-certs {
  display: flex; flex-wrap: wrap; gap: 0.04in;
}
.ls-cert {
  background: var(--avocado-deep); color: #fff;
  padding: 0.025in 0.1in; border-radius: 999px;
  font-size: 6.6pt; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700;
  white-space: nowrap;
}
.ls-cert.is-orange { background: var(--bt-orange); }
.ls-cert.is-red { background: var(--bt-red); }
.ls-cert.is-navy { background: var(--bt-navy); }

.ls-terms {
  border-top: 2px solid var(--bt-navy); padding-top: 0.18in;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.2in;
  font-size: 8.4pt;
}

.ls-terms h4 {
  font-family: var(--font-sans); font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--bt-red); margin: 0 0 0.04in; font-weight: 700;
}

.ls-terms p { margin: 0; line-height: 1.45; }
.ls-terms a { color: var(--bt-red); }
.ls-terms strong { color: var(--bt-navy); }

.ls-footnote {
  margin-top: 0.18in;
  font-size: 7.4pt; color: #888; line-height: 1.4;
}

@media print {
  body { background: #fff; }
  .announce, .site-header, .site-footer, .print-controls { display: none !important; }
  .line-sheet-page { padding: 0; background: #fff; }
  .line-sheet { box-shadow: none; margin: 0; padding: 0.4in; width: 100%; min-height: auto; }
  a { color: #000 !important; text-decoration: none; }
  .ls-cert { background: #000 !important; color: #fff !important; }
  .ls-table thead th { background: #1A2D3E !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 900px) {
  .line-sheet { width: 100%; padding: 1rem; min-height: auto; }
  .ls-head { flex-direction: column; gap: 0.8rem; }
  .ls-head__type { text-align: left; }
  .ls-table { font-size: 0.78rem; }
  .ls-table thead { display: none; }
  .ls-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; padding: 0.6rem 0; }
  .ls-table tbody td { display: block; border: none; padding: 0.1rem 0; }
  .ls-table .ls-thumb { grid-column: 1 / -1; max-width: 1.2in; }
  .ls-terms { grid-template-columns: 1fr 1fr; }
}
