/* ==========================================================================
   K13 — Business Documents & Share Assets (kit/business-documents.html)
   Printable document sheets (proposal, invoice, kickoff, one-pager, CV),
   paper switch, share assets (OG card, posts, signature, business card)
   and the print stylesheet at the end of this file.
   ========================================================================== */

/* ---- Shared page helpers ------------------------------------------------ */

/* White card with a hairline border */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* A visual + two-line caption (title, mono meta) */
.exhibit {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.exhibit__caption {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exhibit__title {
  font-weight: 600;
}

.exhibit__meta {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---- 01 Toolbar: paper switch + print ----------------------------------- */
.doc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: -8px 0 24px;
}

.paper-switch {
  display: flex;
  border: 1px solid var(--ink);
}

.paper-switch__button {
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--f-mono);
  font-size: 13px;
  cursor: pointer;
}

.paper-switch__button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--canvas);
}

/* ---- 01 Document sheets -------------------------------------------------
   Documents are printed on white paper, so they use fixed paper colours
   instead of the preset tokens (only fonts follow the preset). */
.docs {
  --paper-ratio: 210 / 297;             /* A4 */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  align-items: start;
  gap: 32px 24px;
}

.docs[data-paper-size="letter"] {
  --paper-ratio: 216 / 279;             /* US Letter */
}

.doc {
  --doc-paper: #FFFFFF;
  --doc-ink: #141414;
  --doc-muted: #5B554D;
  --doc-rule: #E2DDD3;
  display: flex;
  flex-direction: column;
  gap: 10px;
  aspect-ratio: var(--paper-ratio);
  padding: 7%;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--doc-paper);
  color: var(--doc-ink);
  font-family: var(--f-body);
  font-size: 11px;
  line-height: 1.45;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .5);
}

.doc__meta {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--doc-muted);
}

.doc__title,
.doc-tier__price,
.doc-stats__value {
  font-family: var(--f-display);
  font-weight: var(--d-weight);
  text-transform: var(--d-case);
  letter-spacing: var(--d-track);
}

.doc__title {
  font-size: 22px;
  line-height: 1;
}

.doc__title--sm {
  font-size: 20px;
}

.doc__title--xs {
  font-size: 16px;
}

.doc__muted {
  color: var(--doc-muted);
}

.doc__label {
  font-weight: 600;
}

.doc__label--gap {
  margin-top: 4px;
}

.doc__label--gap-lg {
  margin-top: 6px;
}

/* Pushes the footer lines to the bottom of the sheet */
.doc__spacer {
  flex: 1;
}

.doc__gap {
  height: 6px;
}

.doc__cta {
  padding: 6px;
  background: #D7261E;
  color: #FFFFFF;
  font-weight: 600;
  text-align: center;
}

.doc__image {
  aspect-ratio: 16 / 9;
  background: repeating-linear-gradient(135deg, var(--ph) 0 10px, var(--ph-stripe) 10px 11px);
  filter: var(--img-filter);
}

/* Proposal: 8-week timeline, darker = later phase */
.doc-timeline {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
}

.doc-timeline__wk {
  height: 6px;
  background: var(--doc-ink);
}

.doc-timeline__wk--p1 { opacity: .25; }
.doc-timeline__wk--p2 { opacity: .5; }
.doc-timeline__wk--p3 { opacity: .75; }

.doc-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.doc-tier {
  padding: 6px;
  border: 1px solid var(--doc-rule);
}

.doc-tier--chosen {
  border-color: var(--doc-ink);
}

.doc-tier__price {
  font-size: 16px;
}

/* Invoice */
.doc-invoice__head {
  display: flex;
  justify-content: space-between;
}

.doc-invoice__ref {
  text-align: right;
}

.doc-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--doc-rule);
}

.doc-line--strong {
  font-weight: 600;
}

.doc-line__amount {
  font-variant-numeric: tabular-nums;
}

.doc-total {
  display: flex;
  justify-content: space-between;
  padding-top: 4px;
  font-size: 13px;
  font-weight: 600;
}

.doc-note {
  padding: 6px;
  border: 1px dashed var(--doc-muted);
  color: var(--doc-muted);
}

/* Kickoff: blank answer line */
.doc-answer {
  height: 18px;
  border-bottom: 1px solid var(--doc-rule);
}

/* One-pager */
.doc-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.doc-stats__value {
  font-size: 18px;
  line-height: 1;
}

/* CV */
.doc-cv {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 6px;
  margin-top: 6px;
}

/* ---- 02 Share assets --------------------------------------------------- */
.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px;
}

.share-row__wide {
  flex: 3 1 360px;
}

.share-row__narrow {
  flex: 1 1 200px;
}

.og-card,
.ig-post,
.signature__avatar {
  background: repeating-linear-gradient(135deg, var(--ph) 0 10px, var(--ph-stripe) 10px 11px);
  filter: var(--img-filter);
}

.og-card__title,
.ig-post__claim,
.ig-avail__title,
.biz-card__name {
  font-family: var(--f-display);
  font-weight: var(--d-weight);
  text-transform: var(--d-case);
  letter-spacing: var(--d-track);
}

/* Open Graph card, 1200 × 630 */
.og-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1200 / 630;
  padding: 4%;
}

.og-card__label {
  padding: 10px 14px;
  background: var(--canvas);
  color: var(--ink);
}

.og-card__title {
  font-size: 26px;
  line-height: 1;
}

.og-card__sub {
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
}

/* Instagram portrait post, 1080 × 1350 */
.ig-post,
.ig-avail {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1080 / 1350;
}

.ig-post {
  padding: 8%;
}

.ig-post__no {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ph-ink);
}

.ig-post__claim {
  padding: 6px 8px;
  background: var(--canvas);
  font-size: 18px;
}

/* "Available for work" post */
.ig-avail {
  padding: 9%;
  background: var(--sheet);
  color: var(--sheet-ink);
}

.ig-avail__from {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--edge);
}

.ig-avail__title {
  font-size: 26px;
  line-height: 1;
}

.ig-avail__text {
  margin-top: 8px;
  font-size: 12px;
  color: var(--sheet-muted);
}

.ig-avail__cta {
  padding: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
  gap: 24px;
  margin-top: 32px;
}

/* Email signature */
.signature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.signature__avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.signature__body {
  font-size: 14px;
  line-height: 1.5;
}

.signature__name {
  font-weight: 600;
}

.signature__role {
  color: var(--muted);
}

/* Business card, 85 × 55 mm (fixed print colours) */
.biz-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.biz-card {
  position: relative;
  display: flex;
  width: 200px;
  aspect-ratio: 85 / 55;
  padding: 12px;
}

.biz-card--front {
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: #F5F2EB;
  color: #141414;
}

.biz-card--back {
  align-items: center;
  justify-content: center;
  background: #141414;
  color: #EEE9E1;
}

.biz-card__name {
  font-size: 18px;
  line-height: 1;
}

.biz-card__contact {
  font-size: 9px;
  line-height: 1.5;
}

.biz-card__cta {
  font-family: var(--f-hand);
  font-size: 22px;
  color: #FF5A4E;
}

/* ---- Print --------------------------------------------------------------
   Printing this page outputs only the five documents, one per sheet.
   Paper size is set by kit-business-documents.js (@page size). */
@page {
  size: A4;
  margin: 0;
}

@media print {
  .kit-nav,
  .progress,
  .pager,
  .no-print,
  .kit-header__eyebrow,
  .kit-main__inner > h1,
  .kit-header__lead,
  .kit-main section:not(:first-of-type),
  .kit-main .section-head,
  .kit-main .section-intro,
  .docs .exhibit__caption {
    display: none !important;
  }

  .kit-main {
    padding: 0;
  }

  .kit-main .section {
    margin: 0;
  }

  .docs {
    display: block;
  }

  .doc {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    border: 0;
    box-shadow: none;
    font-size: 14px;
    break-after: page;
  }
}
