/* =============================================
   print-cover.css — CastingSpotlight Sides Packet
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #e8eaed;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  color: #1a1f2e;
  line-height: 1.5;
}

/* ── TOOLBAR ──────────────────────────────── */

.pc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px;
  background: #fff;
  border-bottom: 1px solid #d1d5db;
  gap: 12px;
}

.pc-back {
  font-size: 13px;
  color: #4b5563;
  text-decoration: none;
}
.pc-back:hover { text-decoration: underline; }

.pc-print-btn {
  padding: 7px 18px;
  background: #1e293b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.pc-print-btn:hover { background: #334155; }

/* ── DOCUMENT WRAPPER ─────────────────────── */

.pc-doc {
  max-width: 860px;
  margin: 28px auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  overflow: hidden;
}

/* ── HEADER BAR ───────────────────────────── */

.pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a2236;
  padding: 18px 24px;
  gap: 16px;
}

.pc-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pc-logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #2d4070;
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.pc-brand-text {
  display: flex;
  flex-direction: column;
}

.pc-brand-name {
  font-size: 26px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.pc-brand-sub {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
  letter-spacing: 0.01em;
}

.pc-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pc-qr {
  display: block;
  border-radius: 4px;
  background: #fff;
  padding: 3px;
}

.pc-qr-label {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

/* ── TITLE SECTION ────────────────────────── */

.pc-title-section {
  padding: 22px 24px 12px;
}

.pc-project-title {
  margin: 0 0 4px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #111827;
}

.pc-owner-name {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.pc-divider {
  border: 0;
  border-top: 1px solid #e5e7eb;
  margin: 0 24px 20px;
}

/* ── GRID LAYOUTS ─────────────────────────── */

.pc-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 24px 14px;
}

/* ── BOXES ────────────────────────────────── */

.pc-box {
  background: #f3f6fa;
  border: 1px solid #dde3ec;
  border-radius: 8px;
  padding: 14px 16px;
}

.pc-box-full {
  margin: 0 24px 14px;
}

.pc-box-header {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #5a6a8a;
  margin-bottom: 12px;
}

/* ── FIELD (label + value stacked) ───────── */

.pc-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}
.pc-field:last-child { margin-bottom: 0; }

.pc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #64748b;
  text-transform: capitalize;
  margin-bottom: 1px;
}

.pc-value {
  font-size: 15px;
  color: #111827;
  font-weight: 400;
}

/* ── BODY TEXT (instructions / description) ─ */

.pc-body-text {
  margin: 0;
  font-size: 14px;
  color: #374151;
  white-space: pre-wrap;
  line-height: 1.6;
}

/* ── SIDES LIST ───────────────────────────── */

.pc-sides-list {
  margin: 0;
  padding-left: 18px;
}

.pc-sides-list li {
  margin-bottom: 6px;
}

.pc-sides-link {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
}
.pc-sides-link:hover { text-decoration: underline; }

/* ── BOTTOM PADDING ───────────────────────── */

.pc-doc > *:last-child {
  margin-bottom: 24px;
}

/* ── ROLE PAY — extra breathing room so it never crowds the box border ── */

.pc-value-pay {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-top: 2px;
}

/* ── SIDES IFRAMES (hidden on screen, shown when printing) ─────────── */

.no-screen {
  display: none;
}

/* ── PRINT STYLES ─────────────────────────── */

@media print {
  body {
    background: #fff;
  }

  .no-print {
    display: none !important;
  }

  .no-screen {
    display: block !important;
  }

  .pc-doc {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
  }

  /* Each sides PDF gets its own full page after the cover */
  .pc-print-sides {
    display: block;
  }

  .pc-side-page {
    page-break-before: always;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .pc-side-page iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }

  .pc-sides-link::after {
    content: " (" attr(href) ")";
    font-size: 11px;
    color: #555;
  }
}