/* Marketing sample pages — match in-app Print Preview chrome (scroll + stacked letter sheets). */

.example-site-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 13px;
  background: #2d2d2d;
  color: #fff;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.example-site-bar a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.example-site-bar a:hover {
  text-decoration: underline;
}
.example-site-bar span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

:root {
  --stepbinder-doc-accent: #C4956A;
  --stepbinder-doc-accent-dark: #A07548;
  --stepbinder-doc-note-bg: #FDF5EC;
  --stepbinder-doc-note-strong: #A07548;
}

html,
body {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

body {
  margin: 0;
  background: #1a1a1a;
  color: #1a1a1a;
}

/* Same layout as #print-preview-overlay .pp-scroll */
.pp-shell {
  padding: 40px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-height: calc(100vh - 49px);
  box-sizing: border-box;
  background: #1a1a1a;
}

.pp-shell .pp-page {
  isolation: isolate;
  background-color: #fff;
  flex-shrink: 0;
}

.pp-shell .pp-page-body-flow,
.pp-shell .pp-page-footer {
  background-color: #fff;
}

.pp-shell .pp-step-img,
.pp-shell .pp-step-canvas {
  mix-blend-mode: normal;
}

/* Wireframe form fields (tip sheet samples). */
.pp-step-canvas .wf-row {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.pp-step-canvas .wf-field {
  flex: 1 1 120px;
  min-width: 0;
}
.pp-step-canvas .wf-lbl {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.pp-step-canvas .wf-inp {
  font-size: 11px;
  padding: 5px 7px;
  border: 1px solid #d4d4d4;
  border-radius: 3px;
  background: #fafafa;
  color: #1a1a1a;
}

@media (max-width: 880px) {
  .pp-shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  .pp-shell .pp-page {
    width: 100%;
    max-width: 816px;
    min-height: auto;
  }
}

/* PowerPoint sample — stacked 16:9 slides (matches in-app PPTX preview) */
.pptx-shell {
  padding: 40px 16px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-height: calc(100vh - 49px);
  box-sizing: border-box;
  background: #1a1a1a;
}
.pptx-shell .pptx-preview-slide {
  --pptx-accent: #C4956A;
}
.pptx-shell .pptx-mock-shot {
  width: 100%;
  max-height: 100%;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  background: #fafafa;
  padding: 10px 12px;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.35;
  color: #333;
  overflow: hidden;
}
.pptx-shell .pptx-preview-slide--combined .pptx-preview-combined-media .pptx-mock-shot {
  flex: 1;
  min-height: 0;
  max-height: none;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.pptx-shell .pptx-preview-slide--combined .pptx-preview-combined-media .pptx-preview-step-fig {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.pptx-shell .pptx-mock-shot .pptx-mock-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 12px;
}
.pptx-shell .pptx-mock-shot table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.pptx-shell .pptx-mock-shot th,
.pptx-shell .pptx-mock-shot td {
  border: 1px solid #ddd;
  padding: 4px 6px;
  text-align: left;
}
.pptx-shell .pptx-mock-shot th {
  background: #eee;
  font-weight: 600;
}
.pptx-shell .pptx-mock-shot tr.hl td {
  background: #fff8ec;
  font-weight: 600;
}

@media (max-width: 880px) {
  .pptx-shell {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* HTML export sample — single scrolling document (matches in-app HTML preview) */
.html-export-shell {
  padding: 40px 16px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100vh - 49px);
  box-sizing: border-box;
  background: #1a1a1a;
}
.html-export-doc {
  width: 100%;
  max-width: 920px;
  background: #fff;
  border-radius: 8px;
  padding: 40px 48px 56px;
  box-sizing: border-box;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: #1a1a1a;
  line-height: 1.55;
}
.html-export-doc p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #3a3a3a;
}
.html-export-doc ul {
  margin: 0 0 12px;
  padding-left: 22px;
  font-size: 13px;
  color: #3a3a3a;
}
.html-export-doc li {
  margin-bottom: 4px;
}
.html-export-doc a {
  color: #A07548;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.html-export-doc .pp-keep-together {
  break-inside: avoid;
  page-break-inside: avoid;
}
.html-export-doc .pp-step-notes {
  font-size: 0.92rem;
  color: #3a3a3a;
  line-height: 1.45;
  margin: 0 0 12px;
}
.html-export-doc .pp-step-notes p {
  margin: 0 0 8px;
}
.html-export-doc .pp-step-notes p:last-child {
  margin-bottom: 0;
}
.html-export-doc .pp-shot-caption {
  display: block;
  font-size: 10px;
  color: #888;
  font-style: italic;
  margin: 4px 0 10px;
}
.html-export-doc :where(p, li, td, th, h1, h2, .desc, .pp-sop-head, .pp-cover-title, .pp-cover-desc) {
  overflow-wrap: break-word;
  word-wrap: break-word;
  max-width: 100%;
}
.html-export-cover { margin: 0 0 36px; }
.html-export-cover .pp-cover-root { padding-top: 0; }
.html-export-cover .pp-cover-root > .pp-cover-eyebrow {
  margin-bottom: 10px;
}
.html-export-cover .pp-cover-toprow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 12px;
}
.html-export-cover .pp-cover-toprow-main { flex: 1; min-width: 0; padding-right: 8px; }
.html-export-cover .pp-cover-logo-wrap {
  flex: 0 0 auto;
  max-width: 38%;
  min-width: 0;
  text-align: right;
}
.html-export-cover .pp-cover-logo-img {
  display: block;
  max-width: 148px;
  max-height: 68px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: top right;
}
.html-export-cover .pp-cover-eyebrow {
  color: #C4956A;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.html-export-cover .pp-cover-title {
  font-family: "Lora", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.12;
  margin: 0;
}
.html-export-cover .pp-cover-desc {
  font-size: 15px;
  color: #5a5a5a;
  font-style: italic;
  margin: 0 0 28px;
}
.html-export-cover .pp-cover-rule {
  display: block;
  height: 4px;
  background-color: #C4956A;
  border: none;
  margin: 0 0 28px;
  padding: 0;
}
.html-export-doc .pp-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 12px;
}
.html-export-doc .pp-meta-table td {
  padding: 7px 10px;
  border: 1px solid #ddd;
  vertical-align: top;
}
.html-export-doc .pp-meta-table td:first-child {
  background: #f4f4f4;
  font-weight: 700;
  width: 28%;
  white-space: nowrap;
}
.html-export-doc h2 {
  font-size: 1.1rem;
  margin: 28px 0 10px;
  color: #2c2420;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}
.html-export-doc .pp-sop-head {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 22px 0 8px;
  color: #2c2420;
}
.html-export-doc article.st { margin: 0 0 28px; }
.html-export-doc .lbl {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #C4956A;
  margin-bottom: 6px;
}
.html-export-doc .desc {
  margin: 0 0 10px;
  font-weight: 700;
}
.html-export-doc .fig { margin: 0 0 12px; max-width: 100%; }
.html-export-doc .fig figcaption {
  margin-top: 8px;
  font-size: 11px;
  color: #666;
}
.html-export-doc .html-mock-shot {
  width: 100%;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
  background: #fafafa;
  padding: 10px 12px;
  box-sizing: border-box;
  font-size: 11px;
  line-height: 1.35;
  color: #333;
}
.html-export-doc .html-mock-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 12px;
}
.html-export-doc .html-mock-shot table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.html-export-doc .html-mock-shot th,
.html-export-doc .html-mock-shot td {
  border: 1px solid #ddd;
  padding: 4px 6px;
  text-align: left;
}
.html-export-doc .html-mock-shot th {
  background: #eee;
  font-weight: 600;
}
.html-export-doc .html-mock-shot tr.hl td {
  background: #fff8ec;
  font-weight: 600;
}
.html-export-doc .note {
  margin: 0 0 12px;
  padding: 8px 12px;
  background-color: #F8F2ED;
  border-left: 4px solid #C4956A;
  font-size: 12px;
  line-height: 1.45;
  color: #5A5A5A;
}
.html-export-doc .note strong { color: #72563D; }

@media (max-width: 880px) {
  .html-export-shell { padding-left: 16px; padding-right: 16px; }
  .html-export-doc { padding: 28px 24px 40px; }
  .html-export-cover .pp-cover-toprow { flex-direction: column; }
  .html-export-cover .pp-cover-logo-wrap { max-width: none; text-align: left; }
}
