/* Growth strategy deck for Universitas Islam Batik Surakarta (UNIBA), same client as uniba/: UNIBA's navy and sky
   (from uniba.ac.id's CSS) in Sinau Studio's style: dark panels, keyword pills, ribbons, and tables on paper.
   Placeholder skeleton: the copy arrives from docs/uniba-growth-strategy.md. */
:root {
  /* UNIBA navy as the ink, in Sinau Studio's colourful world (pastel tones, coral and yellow pills) */
  --ink: #0F2C59;         /* UNIBA navy: dark slides, text on light */
  --ink-2: #1B3D72;       /* cards on dark slides */
  --brand: #0369A1;       /* UNIBA sky: actions and positive numbers; white on it 5.9:1 */
  --brand-text: #0369A1;  /* sky as small text on pale blue: 5.4:1 */
  --ground: #EAF4FD;      /* light slides (UNIBA pale blue) */
  --paper: #FFFFFF;
  --coral: #FF986B;
  --yellow: #FFFB6D;
  --lavender: #D1C1FF;
  --sky: #80C4F1;
  --mint: #89E0B3;
  --muted: #34445C;       /* body on pale blue */
  --muted-dark: #CAD7EA;  /* body on navy */
  --line: rgba(15, 44, 89, .14);
  --line-dark: rgba(255, 255, 255, .16);
  --grid: var(--line);    /* table rules on light and pastel slides */
  --head: rgba(15, 44, 89, .05);
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --check-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F2C59' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --check-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.55 var(--sans); overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus, var(--brand)); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink); }
html { scrollbar-color: var(--brand) var(--ground); accent-color: var(--brand); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg use { pointer-events: none; }

/* ---------- Deck chrome ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 4px; z-index: 60; background: transparent; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--mint), var(--sky), var(--lavender), var(--coral)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.chrome { position: fixed; inset: 4px 0 auto; z-index: 50; display: flex; align-items: center; gap: 14px; padding: 12px var(--pad); pointer-events: none; }
.chrome > * { pointer-events: auto; }
.chrome__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 14px; padding: 4px 12px 4px 4px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.chrome__brand img { width: 30px; height: 30px; border-radius: 50%; background: var(--paper); }
.chrome__by { margin-left: auto; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .92); box-shadow: 0 0 0 1px var(--line); }
.chrome__count { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: var(--muted-dark); }
.chrome__count b { color: #fff; }
.pager { position: fixed; right: var(--pad); bottom: 18px; z-index: 50; display: flex; gap: 8px; }
.pager__btn, .pager__print { height: 44px; border: 0; border-radius: 99px; background: var(--ink); color: #fff; cursor: pointer; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 6px 18px rgba(0, 0, 0, .22); }
.pager__btn { width: 44px; display: grid; place-items: center; }
.pager__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pager__print { padding: 0 16px; font-size: 13px; font-weight: 700; background: var(--coral); color: var(--ink); box-shadow: 0 0 0 1.5px rgba(15, 44, 89, .4), 0 6px 18px rgba(0, 0, 0, .22); } /* holds its edge on the coral slide */
.pager__btn:hover { background: var(--brand); }
.pager__hold .i-play, .pager__hold.is-paused .i-pause { display: none; }
.pager__hold.is-paused .i-play { display: block; }
.pager__hold { display: none; }
.anim .pager__hold { display: grid; }
/* Pointer follower (desktop): a dot that grows over what can be used, and names some of it */
.cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; }
.cursor i { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 2px var(--ink); opacity: .9; }
.cursor span { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); font: 800 12px/1 var(--sans); color: var(--ink); white-space: nowrap; opacity: 0; }

/* ---------- Slides ---------- */
#deck { position: relative; }
.slide { position: relative; isolation: isolate; overflow: clip; min-height: 100svh; display: flex; flex-direction: column; justify-content: safe center; gap: 32px; padding: 96px var(--pad) 84px; }
.slide > * { width: 100%; max-width: 1200px; margin-inline: auto; }
.slide--dark { background: var(--ink); color: #fff; --body: var(--muted-dark); --pill: var(--yellow); --stop: var(--coral); --focus: var(--yellow); --tick: var(--yellow); --tick-img: var(--check-ink); --card: var(--ink-2); --grid: rgba(255, 255, 255, .18); --head: rgba(255, 255, 255, .06); }
.slide--light { background: var(--ground); color: var(--ink); --body: var(--muted); --pill: var(--coral); --stop: var(--brand-text); --focus: var(--brand); --tick: var(--brand); --tick-img: var(--check-white); --card: var(--paper); }
/* Sinau's pastel slides: ink text, ink ticks, white cards */
.slide--lavender, .slide--sky, .slide--coral, .slide--mint, .slide--yellow { color: var(--ink); --body: #22324A; --stop: var(--ink); --focus: var(--ink); --tick: var(--ink); --tick-img: var(--check-white); --card: var(--paper); }
.slide--lavender { background: var(--lavender); --pill: var(--yellow); }
.slide--sky { background: var(--sky); --pill: var(--yellow); }
.slide--coral { background: var(--coral); --pill: var(--yellow); }
.slide--mint { background: var(--mint); --pill: var(--yellow); }
.slide--yellow { background: var(--yellow); --pill: var(--coral); }
.slide--dark + .slide--dark { border-top: 1px solid var(--line-dark); }
@media (min-width: 1000px) and (min-height: 640px) {
  html { scroll-snap-type: y proximity; }
  .slide { scroll-snap-align: start; height: 100svh; min-height: 640px; }
}
@media (min-width: 1000px) and (max-height: 800px) {
  /* 1280x720 laptops and projectors: tighter frame so every slide fits one screen */
  .slide { padding-top: 78px; padding-bottom: 68px; gap: 20px; }
  .h2 { font-size: clamp(1.8rem, 3.1vw, 2.7rem); }
}

/* Type */
.title { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.06; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; }
.title em, .h2 em { font-style: normal; margin-left: .1em; padding: 0 .14em .04em; border-radius: .2em; color: var(--ink); background: linear-gradient(var(--pill), var(--pill)) no-repeat 0 0 / 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; } /* app.js sweeps the pill in like a marker; the margin keeps a readable gap from the word before it */
.stop { color: var(--stop); }
.title em + .stop, .h2 em + .stop { margin-left: -.08em; } /* the pill's padding already spaces it */
.cm { margin-left: -.06em; } /* the heavy comma's side bearing reads as a space */
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--body); max-width: 36em; text-wrap: pretty; }
.body { font-size: 1.06rem; color: var(--body); max-width: 40em; text-wrap: pretty; }
.body--wide { max-width: 52em; }
.meta, .sign { font-size: 14px; font-weight: 600; color: var(--body); text-wrap: pretty; }
.salam__close { font-weight: 700; color: var(--ink); }
.source { font-size: 13px; color: var(--body); opacity: .9; text-wrap: pretty; }
.stack { display: grid; gap: 18px; align-content: center; }
.stack--center { justify-items: center; text-align: center; }

/* Layout helpers */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.two--wide { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }

/* Ribbons (pita): app.js shapes each centreline into a band with swallowtail ends, behind content */
.ribbon { position: absolute; z-index: -1; height: auto; pointer-events: none; overflow: visible; }
.ribbon path { stroke: none; }
.ribbon:not(.is-shaped) { display: none; }
@media (min-width: 1101px) { .ribbon--narrow { display: none; } }
.ribbon__glint { fill: none; stroke: #fff !important; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 96; opacity: .55; }
/* The wipe: one giant ribbon that crosses the screen between slides (desktop stage only) */
.wipe { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 45; pointer-events: none; display: none; }
.stage-big .wipe { display: block; } /* only the desktop stage wipes between slides */
.wipe .ribbon__glint { stroke-width: 6; }
/* A pinned slide dims as the next one covers it */
.slide::after { content: ""; position: absolute; inset: 0; z-index: 30; background: #071630; opacity: var(--dim, 0); pointer-events: none; }
html.stage-big { scroll-snap-type: none !important; }
.stage-big .slide { scroll-snap-align: none; }
.motion:not(.anim-ready) .cover__grid { opacity: 0; } /* app.js shows it once its entrance is set */

/* ---------- 1. Cover ---------- */
.cover__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 48px; align-items: center; }
.cover__copy { display: grid; gap: 18px; }
.cover__mark { display: grid; justify-items: center; gap: 16px; text-align: center; }
.cover__mark img { --d: min(300px, 60vw); width: var(--d); aspect-ratio: 1; object-fit: contain; border-radius: 50%; background: #fff; padding: calc(var(--d) * .11); box-shadow: 0 0 0 10px rgba(128, 196, 241, .25), 0 0 0 20px rgba(209, 193, 255, .14); }
.cover__mark figcaption { font-weight: 800; font-size: 1.1rem; }
.cover__mark figcaption span { font-weight: 500; font-size: .92rem; color: var(--muted-dark); }

/* Tick lists (the bullet slide) */
.ticks { display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 28px; color: var(--body); font-size: .98rem; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%; background: var(--tick) var(--tick-img) center / 12px no-repeat; }
.ticks--tight { gap: 7px; }
.ticks--tight li { font-size: .93rem; line-height: 1.42; padding-left: 26px; }

/* ---------- Section dividers ---------- */
.divider { justify-content: center; gap: 22px; }
.divider > * { max-width: 1100px; margin-inline: 0; } /* one left edge, like the section number */
.divider__head { display: flex; align-items: center; gap: 20px; }
.divider__num { font-size: clamp(3.2rem, 8vw, 6.4rem); font-weight: 800; letter-spacing: -.06em; line-height: .8; color: var(--ink); opacity: .26; }
.kicker { padding: 7px 14px; border-radius: 99px; background: var(--card); color: var(--ink); font-size: 13px; font-weight: 800; box-shadow: 0 0 0 1px var(--grid); }
.divider .h2 { max-width: 18em; }
.divider .lead { max-width: 34em; }

/* ---------- Tables: up to 6 rows and 5 columns; stacked into cards below 700px ---------- */
.table { border-radius: 18px; background: var(--card); box-shadow: 0 0 0 1px var(--grid); overflow: hidden; }
.table table { width: 100%; border-collapse: collapse; font-size: clamp(.82rem, 1.15vw, .95rem); }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--grid); text-wrap: pretty; }
.table thead th { font-size: .86em; font-weight: 800; letter-spacing: .01em; color: var(--body); background: var(--head); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody td:first-child { font-weight: 700; color: inherit; }
.table--kpi th:nth-child(n+3), .table--kpi td:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } /* numbers only: the channel and KPI columns stay left */
.table--timeline th:first-child, .table--timeline td:first-child { white-space: nowrap; }
.table th.num, .table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } /* columns the Markdown marks numeric */
.ph { font-style: italic; opacity: .62; } /* a cell still waiting for the Markdown deck */
.table td.ph::before { font-style: normal; } /* the column label stays upright */

/* ---------- 12. Closing ---------- */
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ctas--start { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px; font-weight: 800; text-decoration: none; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: #025A8A; }
.btn--line { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.slide--coral .btn--brand { background: var(--ink); }
.slide--coral .btn--brand:hover { background: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .two, .two--wide { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cover__grid { grid-template-columns: minmax(0, 1fr); }
  .cover__mark { order: -1; justify-items: start; margin-left: 12px; }
  .cover__mark img { --d: 112px; box-shadow: 0 0 0 6px rgba(128, 196, 241, .25), 0 0 0 12px rgba(209, 193, 255, .14); }
  .cover__mark figcaption { display: none; }
  .ribbon--top { display: none; } /* top-edge ribbons would cross the headings once the columns stack */
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .slide { padding: 84px var(--pad) 88px; gap: 24px; }
  .chrome { gap: 8px; }
  .chrome__brand, .chrome__by { display: none; } /* floating badges would sit on the text while scrolling */
  .chrome__count { margin-left: auto; }
  .pager [data-go], .pager__print { display: none; } /* phones scroll; only the motion pause stays */
  .cover__mark img { --d: 88px; }
  .pager { bottom: calc(env(safe-area-inset-bottom) + 12px); }
  /* A table becomes one card per row, each cell labelled by its column, so five columns stay readable */
  .table { display: grid; gap: 10px; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
  .table table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { padding: 6px 0; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--grid); }
  .table td { display: grid; grid-template-columns: minmax(84px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 7px 14px; border: 0; }
  .table td::before { content: attr(data-label); font-size: .85em; font-weight: 700; color: var(--body); }
  .table--kpi td:nth-child(n+3), .table--timeline td:first-child, .table td.num { text-align: left; white-space: normal; }
}
@media (max-height: 740px) {
  .ribbon--narrow { display: none; } /* no empty space under the cover to fill, and the band would cross the meta line */
}
@media (max-width: 400px) {
  .divider__head { gap: 12px; }
}

/* ---------- Print: one slide per 16:9 page ---------- */
@page { size: 1280px 720px; margin: 0; }
@media print {
  html { scroll-snap-type: none; }
  body { background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .progress, .chrome, .pager, .pause, .linkbtn, .tip { display: none !important; }
  .slide { height: 720px; min-height: 0; padding: 48px 64px; break-after: page; page-break-after: always; overflow: hidden; }
  .title em, .h2 em { background-size: 100% 100% !important; color: var(--ink) !important; }
  .wipe, .cursor, .slide::after { display: none !important; }
  .slide { transform: none !important; border-radius: 0 !important; }
  .cover__grid { opacity: 1 !important; }
  .two, .two--wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
