/* Clinexus deck — layouts on top of the canonical Light IT presentation CSS.
   Colours and type come from deck-base.css variables; nothing is hard-coded here
   that is not already a brand token. */

@import url("./deck-base.css");

:root {
  --li-card-border: #E8EAF0;
  --li-ui-border: #DDE4F0;
  --li-pill-bg: #FAFBFE;
  --li-pill-border: #D5DCEA;
  --li-surface-1: #F8F9FA;
  --li-accent-light: #EFF4FF;
  --li-accent-border: #B2DDFF;
  --li-warning: #F97316;
}

/* ---- cover ------------------------------------------------------------- */

/* The template splits the cover with flex and lets the pattern take its intrinsic
   width. Two separate bugs came out of that: closing a white edge band by making the
   pattern a growing flex item silently squeezed the text column, and Chrome's print
   layout then resolved the same flex rules differently from screen — the hero title
   ran to six lines and the third pill fell off the bottom of the printed slide.
   
   A slide is a fixed 1920x1080 canvas, so the cover is placed rather than negotiated.
   The pattern is cropped by a frame rather than by `object-fit`, because Chrome's print
   path ignores object-fit on this SVG and paints it at its intrinsic 1210px width —
   which is what was pushing it left across the text, in the PDF only. */
.cover-layout {
  position: relative;
  display: block;
  padding: 0;
}

.cover-body {
  position: absolute;
  left: 0;
  top: 0;
  width: 1114px;
  height: 1080px;
  padding: 160px 96px 96px;
}

.cover-pattern-frame {
  position: absolute;
  right: 0;
  top: 0;
  width: 806px;
  height: 1080px;
  overflow: hidden;
}

.cover-pattern {
  position: absolute;
  right: 0;
  top: 0;
  height: 1080px;
  width: auto;
}

/* ---- shared slide furniture ------------------------------------------- */

.slide-content.tight {
  padding: 88px 96px 72px;
  display: flex;
  flex-direction: column;
}

.slide-content.tight .section-title {
  margin: 0 0 12px;
  font-size: 52px;
  max-width: none;
}

.slide-content.tight .section-subtitle {
  margin: 0;
  font-size: 25px;
  max-width: 1560px;
}

/* The middle region of a slide: grows into the free space and centres its
   content there, so a short slide reads as balanced rather than top-heavy. */
.body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 26px;
  padding: 32px 0 8px;
}

/* The last block in a body takes the slack, so a slide fills its frame instead
   of leaving a void under the content. */
.body > :last-child { flex: 1 1 auto; min-height: 0; }

.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lede {
  font-size: 27px;
  line-height: 1.34;
  color: var(--li-color-text);
  max-width: 1560px;
  margin: 0;
}

.lede strong {
  font-weight: 700;
  color: var(--li-color-primary);
}

.note {
  margin-top: auto;
  padding-top: 22px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--li-color-muted);
  border-top: 1px solid var(--li-card-border);
}

.note strong {
  color: var(--li-color-text);
  font-weight: 600;
}

/* ---- card grids -------------------------------------------------------- */

.cards {
  display: grid;
  gap: 20px;
}

.cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--li-ui-border);
  border-left: 5px solid var(--li-color-primary);
  border-radius: 12px;
  background: #FCFDFE;
  padding: 28px 30px;
}

/* A card row keeps its natural height and centres in the space it is given —
   stretching it just produces tall cards with air inside them. */
.body > .cards:last-child { align-content: center; }

.body > .steps:last-child,
.body > .tbl:last-child {
  flex: 0 1 auto;
}

.card.is-muted { border-left-color: var(--li-pill-border); }
.card.is-alert { border-left-color: var(--li-color-alert); }
.card.is-flag  { border-left-color: var(--li-color-secondary); }

.card h3 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
}

.card p {
  margin: 0;
  font-size: 21px;
  line-height: 1.38;
  color: var(--li-color-muted);
}

.card p + p { margin-top: 10px; }

.card .kicker {
  display: block;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--li-color-primary);
}

/* ---- figure rows ------------------------------------------------------- */

.figure-row {
  flex: 1 1 auto;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  justify-content: center;
  min-height: 0;
}

.figure {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.figure img {
  display: block;
  width: auto;
  height: auto;
  max-height: calc(100% - 40px);
  max-width: 100%;
  object-fit: contain;
}

.figure figcaption {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--li-color-muted);
  text-align: center;
}

/* ---- split: text beside figure ----------------------------------------- */

.split {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  min-height: 0;
}

/* ---- ordered / plain lists --------------------------------------------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.steps li {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  font-size: 22px;
  line-height: 1.35;
}

.steps li .n {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--li-accent-light);
  border: 1px solid var(--li-accent-border);
  color: var(--li-color-primary);
  font-weight: 700;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li strong { font-weight: 700; }
.steps li span.sub {
  display: block;
  margin-top: 4px;
  font-size: 19px;
  color: var(--li-color-muted);
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
  font-size: 22px;
  line-height: 1.34;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--li-color-primary);
}

.ticks.is-quiet li::before { background: var(--li-pill-border); }

.ticks.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  row-gap: 12px;
}

.ticks.two-up li { font-size: 20px; }

/* ---- staffing table ---------------------------------------------------- */

.tbl.staffing { font-size: 21px; }
.tbl.staffing th.num { text-align: right; }
.tbl.staffing td { padding: 13px 14px; }
.tbl.staffing th { padding: 0 14px 12px; }
.tbl.staffing td.quiet { color: var(--li-color-muted); font-weight: 500; }
.tbl.staffing td.dash  { color: var(--li-pill-border); font-weight: 400; }
.tbl.staffing tr.total td { font-size: 22px; padding-top: 16px; }

/* ---- table ------------------------------------------------------------- */

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 22px;
}

.tbl th {
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--li-color-muted);
  padding: 0 18px 14px;
  border-bottom: 2px solid var(--li-ui-border);
}

.tbl td {
  padding: 17px 18px;
  border-bottom: 1px solid var(--li-card-border);
  vertical-align: top;
  line-height: 1.32;
}

.tbl td.num {
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tbl td.lead { font-weight: 700; }
.tbl td.desc { color: var(--li-color-muted); font-size: 20px; }

.tbl tr.total td {
  border-bottom: none;
  border-top: 2px solid var(--li-color-primary);
  padding-top: 20px;
  font-weight: 700;
  font-size: 25px;
}

.tbl tr.total td.num { color: var(--li-color-primary); }

/* ---- headline figure --------------------------------------------------- */

.headline {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin: 0 0 8px;
}

.headline .big {
  font-size: 92px;
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--li-color-primary);
  font-variant-numeric: tabular-nums;
}

.headline .unit {
  font-size: 30px;
  font-weight: 600;
  color: var(--li-color-text);
}

.headline-sub {
  margin: 0 0 30px;
  font-size: 23px;
  color: var(--li-color-muted);
}

/* ---- closing ----------------------------------------------------------- */

.closing-mark {
  position: absolute;
  left: 96px;
  bottom: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 19px;
  color: var(--li-color-muted);
}

.closing-mark img { width: 148px; height: auto; }

/* ---- deck navigator ---------------------------------------------------- */

.deck-nav {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(30, 31, 34, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  z-index: 50;
  user-select: none;
}

.deck-nav button {
  appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
}

.deck-nav button:hover { background: rgba(255, 255, 255, 0.3); }
.deck-nav .sep { opacity: 0.4; }

@media print {
  .deck-nav { display: none !important; }

}

.deck-nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.82;
  font-weight: 600;
}

.deck-nav a:hover { opacity: 1; text-decoration: underline; }

/* ---- print: the deck prints as itself ---------------------------------- *
 *
 * The canonical template ships a print stylesheet that reflows every slide into
 * A4 landscape and restates its type in points. That works for the template's
 * own slides; it does not work for the layouts in this deck — squeezing a
 * 1920x1080 flex layout into 297x210mm collapsed the card grids to nothing and
 * the first PDF came out with blank holes where the content should be.
 *
 * So instead of designing the deck a second time for paper, the page is made the
 * size of the slide. No reflow, no scaling, no second set of type sizes: the PDF
 * is the deck, and text stays selectable. Everything below simply restores the
 * screen geometry that the template's print block overrides.
 */

@media print {
  @page { size: 1920px 1080px; margin: 0; }

  html, body {
    height: auto !important;
    overflow: visible !important;
    background: #FFFFFF !important;
  }

  .stage {
    display: block !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
  }

  .deck-shell {
    width: 1920px !important;
    height: auto !important;
    transform: none !important;      /* the fit-to-window scale is inline */
    box-shadow: none !important;
    overflow: visible !important;
  }

  .slide {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    width: 1920px !important;
    height: 1080px !important;
    overflow: hidden !important;
    break-after: page;
    break-inside: avoid;
  }

  .slide:last-of-type { break-after: auto; }

  .slide-content { padding: 88px 96px 72px !important; }

  /* Undo the template's point-sized print type. */
  .hero-title     { font-size: 64px !important; margin: 0 0 28px !important; letter-spacing: -1.2px !important; }
  .hero-subtitle  { font-size: 34px !important; }
  .section-title  { font-size: 52px !important; margin: 0 0 12px !important; letter-spacing: -1px !important; }
  .section-subtitle { font-size: 25px !important; }

  .cover-layout  { position: relative !important; display: block !important; padding: 0 !important; }
  .cover-body    { position: absolute !important; left: 0 !important; top: 0 !important;
                   width: 1114px !important; height: 1080px !important; padding: 160px 96px 96px !important; }
  .cover-pattern-frame { position: absolute !important; right: 0 !important; top: 0 !important;
                   width: 806px !important; height: 1080px !important; overflow: hidden !important; }
  .cover-pattern { position: absolute !important; right: 0 !important; top: 0 !important;
                   width: auto !important; height: 1080px !important; }
  .slide-logo   { width: 220px !important; margin-bottom: 48px !important; }

  .pill-row { margin-top: 48px !important; gap: 18px !important; }
  .pill     { font-size: 24px !important; padding: 14px 24px 14px 20px !important;
              border-width: 2px !important; border-left-width: 4px !important; }

  .slide-title-chip { top: 40px !important; right: 40px !important; }
  .chip-corner { width: 28px !important; height: 28px !important; }
  .chip-notch  { width: 9.75px !important; height: 28px !important; }
  .chip-label  { height: 28px !important; font-size: 12.5px !important; padding: 6px 12px !important; }

  .page-marker      { width: 64px !important; height: 28px !important; }
  .page-marker span { font-size: 12.5px !important; left: 10px !important; bottom: 7px !important; }

  .figure img { height: auto !important; max-height: calc(100% - 40px) !important; }

  .deck-nav { display: none !important; }
}

/* The money sits in the table rather than in a card of its own: a table row prints
   reliably, and hours, people and cost belong on one line anyway. */
.tbl tr.money td {
  border-bottom: none;
  padding-top: 14px;
  font-weight: 700;
  color: var(--li-color-primary, var(--li-primary));
}

.tbl tr.money td.num { font-size: 30px; letter-spacing: -0.5px; }

.tbl tr.money td.cap,
.tbl tr.money td.desc {
  font-weight: 500;
  font-size: 19px;
  color: var(--li-color-muted, var(--li-muted));
  text-align: right;
}
