/* ============================================================
   Finished carousel slide — UNIFIED with the nigeltannk website brand
   (NK institutional: Paper / Ink / Inter Tight / Forest accent).
   Tokens mirror website/app/globals.css + tailwind.config.ts.
   CANONICAL. Loaded AFTER styles.css to fully override the old theme.
   Renders identically in preview and export; preview just `zoom`s it.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ---- the slide: always built at true 1080x1350, scaled by zoom ---- */
.slide {
  --paper:     #F5F2EC;
  --paper-deep:#EFEBE3;
  --ink:       #15171A;
  --ink-soft:  rgba(21, 23, 26, 0.62);
  --ink-faint: rgba(21, 23, 26, 0.34);
  --hairline:  rgba(21, 23, 26, 0.12);
  --rule:      #D8D3C6;
  --forest:    #1F3027;
  --gold:      #A88554;
  --forest-soft: rgba(31, 48, 39, 0.10);
  --nk-disp: 'Inter Tight', system-ui, sans-serif;
  --nk-sans: 'Inter', system-ui, sans-serif;
  --nk-mono: 'IBM Plex Mono', ui-monospace, monospace;

  width: 1080px !important;
  height: 1350px !important;
  aspect-ratio: auto !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--nk-sans);
  font-weight: 300;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.slide::before {
  content: '';
  position: absolute;
  top: 90px; left: 90px;
  width: 40px; height: 1px;              /* institutional hairline detail (forest) */
  background: var(--forest);
}
.slide::after { content: none !important; }   /* kill old data-tag ::after */

/* corner tag + slide number */
.slide .corner-tag {
  position: absolute; top: 116px; left: 90px;
  font-family: var(--nk-mono); font-size: 15px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--forest);
  display: flex; align-items: center; gap: 12px; z-index: 2;
}
.slide .corner-tag .dot { width: 5px; height: 5px; background: var(--forest); border-radius: 50%; }
.slide .slide-num {
  position: absolute; top: 116px; right: 90px;
  font-family: var(--nk-mono); font-size: 14px; letter-spacing: 0.28em;
  color: var(--ink-faint); z-index: 2;
}

/* body column */
.slide .body {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding: 190px 90px;
}
.slide .kicker {
  font-family: var(--nk-mono); font-size: 14px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 26px;
}
.slide h2 {
  font-family: var(--nk-disp); font-weight: 400;
  font-size: 88px; line-height: 1.05; letter-spacing: -0.032em;
  margin-bottom: 36px; text-transform: lowercase;
  color: var(--ink);
}
.slide h2 em { font-style: italic; color: var(--gold); font-weight: 400; }

.slide .lede {
  font-family: var(--nk-sans); font-weight: 400;
  font-size: 28px; line-height: 1.55; max-width: 860px;
  margin-bottom: 28px; color: var(--ink);
}
.slide .lede.muted { color: var(--ink-soft); margin-top: 32px; margin-bottom: 0; }

.slide .body-list { list-style: none; padding: 0; margin: 16px 0 0; }
.slide .body-list li {
  font-family: var(--nk-sans); font-weight: 400;
  font-size: 24px; line-height: 1.45; color: var(--ink-soft);
  padding: 9px 0 9px 30px; position: relative;
}
.slide .body-list li::before {
  content: ''; position: absolute; left: 0; top: 19px;
  width: 14px; height: 1px; background: var(--forest);
}
.slide .body-list li b { color: var(--ink); font-weight: 500; }

.slide .flow-card {
  background: var(--forest-soft);
  border: 1px solid rgba(31, 48, 39, 0.18);
  border-radius: 0; padding: 28px 32px; margin-top: 24px;
  font-family: var(--nk-mono); font-size: 18px;
  letter-spacing: 0.02em; color: var(--ink); line-height: 1.9;
}
.slide .flow-card b { color: var(--forest); font-weight: 500; }

/* footer */
.slide .footer {
  position: absolute; bottom: 90px; left: 90px; right: 90px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--nk-mono); font-size: 14px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-faint);
}
.slide .footer .handle { color: var(--ink-soft); }
.slide .footer .series { color: var(--forest); }
.slide .footer::before {
  content: ''; position: absolute; top: -22px; left: 0;
  width: 40px; height: 1px; background: var(--hairline);
}

/* cover slide */
.slide.cover .body { justify-content: flex-end; padding-bottom: 250px; }
.slide.cover h2 { font-size: 112px; line-height: 1.0; margin-bottom: 32px; letter-spacing: -0.036em; }
.slide.cover .subhead {
  font-family: var(--nk-sans); font-weight: 400; font-size: 30px;
  line-height: 1.5; color: var(--ink-soft); max-width: 820px;
}

/* closer slide */
.slide.closer h2 { font-size: 94px; }
.slide.closer .sig {
  font-family: var(--nk-mono); font-size: 16px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: 28px;
}
.slide.closer .disclosure {
  font-family: var(--nk-sans); font-size: 20px; line-height: 1.5;
  color: var(--ink-faint); margin-top: 24px; max-width: 760px;
}

/* ---- preview scaling (Chrome `zoom`, set inline by render.js) ---- */
.viewer-stage .slide { box-shadow: 0 18px 50px rgba(21,23,26,0.18) !important; }
.grid-view .slide {
  width: 1080px !important; height: 1350px !important; aspect-ratio: auto !important;
  box-shadow: 0 10px 28px rgba(21,23,26,0.14) !important;
}
.slide.edited { outline: 3px solid var(--forest); outline-offset: 0; }

/* hide the old visual-brief stripe entirely (briefs live in the side panel now) */
.slide-visual-stripe { display: none !important; }


/* ============================================================
   REEL COVER — separate artifact, dark 1080x1920
   ============================================================ */

.reel-cover-section {
  margin: 48px auto 60px;
  max-width: 1080px;
  padding: 0 24px;
}
.reel-cover-section .reel-cover-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.reel-cover-section .label {
  font-family: var(--nk-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 10px 14px;
  background: var(--midnight, #15171A);
  color: var(--parchment, #F5F2EC);
  display: inline-block;
}
.reel-cover-section .edit-badge {
  font-family: var(--nk-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(31, 48, 39, 0.10);
  color: var(--forest);
  border: 1px solid rgba(31, 48, 39, 0.3);
  border-radius: 2px;
}
.reel-cover-section .rc-action {
  font-family: var(--nk-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 8px 14px;
  background: var(--paper, #F5F2EC);
  color: var(--ink, #15171A);
  border: 1px solid rgba(21, 23, 26, 0.25);
  border-radius: 2px;
  cursor: pointer;
}
.reel-cover-section .rc-action:hover { background: var(--paper-deep, #EFEBE3); }
.reel-cover-section .rc-action-primary {
  background: var(--ink, #15171A);
  color: var(--paper, #F5F2EC);
  border-color: var(--ink, #15171A);
}
.reel-cover-section .rc-action-primary:hover { background: var(--forest, #1F3027); border-color: var(--forest); }

.reel-cover-section .reel-cover-brief {
  background: var(--paper-deep, #EFEBE3);
  border: 1px solid rgba(21, 23, 26, 0.10);
  padding: 18px 20px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 3px;
}
.reel-cover-section .rc-brief-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reel-cover-section .rc-brief-row label {
  font-family: var(--nk-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint, rgba(21, 23, 26, 0.5));
}
.reel-cover-section .rc-brief-row input,
.reel-cover-section .rc-brief-row textarea {
  font-family: var(--nk-sans);
  font-size: 14px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink, #15171A);
  border: 1px solid rgba(21, 23, 26, 0.15);
  border-radius: 2px;
  outline: none;
  resize: vertical;
}
.reel-cover-section .rc-brief-row textarea { min-height: 56px; }
.reel-cover-section .rc-brief-row input:focus,
.reel-cover-section .rc-brief-row textarea:focus {
  border-color: var(--forest, #1F3027);
}

.reel-cover-section .reel-cover-frame {
  background: var(--midnight, #15171A);
  padding: 40px;
  display: flex;
  justify-content: center;
  border-radius: 4px;
}

/* Reel-cover PREVIEW mode — applied via classList in render.js. The cover
   element is internally 1080x1920; this class scales it visually to 25%
   and shrinks the layout box so it occupies only 270x480 of editor space.
   !important defeats any inline / global override. */
.slide.reel-cover.reel-preview-mode {
  transform: scale(0.25) !important;
  transform-origin: top left !important;
  margin: 0 -810px -1440px 0 !important;
  /* Native dims preserved so the internal text wraps + spacing remain identical to the 1080x1920 export */
  width: 1080px !important;
  height: 1920px !important;
  position: relative !important;
  z-index: 1 !important;
  flex: 0 0 auto !important;
}

.slide.reel-cover {
  /* dark vertical 1080x1920 */
  width: 1080px !important;
  height: 1920px !important;
  background: #15171A;
  color: #F5F2EC;
  font-family: var(--nk-sans);
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
  display: block;
}

/* subtle warm gradient for paper-on-ink feel */
.slide.reel-cover::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 50% at 50% 30%, rgba(168,133,84,0.08) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, #15171A 0%, #0F1114 100%);
  pointer-events: none;
  z-index: 0;
}

/* corner hairline */
.slide.reel-cover::after {
  content: '';
  position: absolute;
  top: 140px; left: 170px;
  width: 56px; height: 1px;
  background: #A88554;
  z-index: 2;
}

/* top-left tag */
.slide.reel-cover .rc-tag {
  position: absolute;
  top: 180px; left: 170px;
  font-family: var(--nk-mono);
  font-size: 22px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #F5F2EC;
  z-index: 2;
  display: flex; align-items: center; gap: 18px;
}
.slide.reel-cover .rc-tag .rc-dot {
  width: 8px; height: 8px;
  background: #A88554;
  border-radius: 50%;
}

/* top-right counter */
.slide.reel-cover .rc-num {
  position: absolute;
  top: 180px; right: 170px;
  font-family: var(--nk-mono);
  font-size: 22px;
  letter-spacing: 0.32em;
  color: rgba(245,242,236,0.35);
  z-index: 2;
}

/* body — center-vertical layout */
.slide.reel-cover .rc-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 170px;
}

.slide.reel-cover h2 {
  font-family: var(--nk-disp);
  font-weight: 400;
  font-size: 120px;
  line-height: 1.05;
  letter-spacing: -0.034em;
  margin: 0 0 56px 0;
  color: #F5F2EC;
  text-transform: lowercase;
  /* Respect explicit \n breaks; never auto-wrap. Required so html2canvas
     (used by both Akira send + Export PNG button) produces identical line
     wraps to the browser's native CSS render. */
  white-space: pre;
}

.slide.reel-cover h2 em {
  font-style: italic;
  font-weight: 400;
  color: #A88554;
}

.slide.reel-cover .rc-subhead {
  font-family: var(--nk-sans);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.45;
  color: rgba(245,242,236,0.72);
  max-width: 780px;
  margin: 0;
}

/* footer */
.slide.reel-cover .rc-footer {
  position: absolute;
  bottom: 130px; left: 170px; right: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--nk-mono);
  font-size: 18px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.55);
  z-index: 2;
}
.slide.reel-cover .rc-footer .rc-handle { color: rgba(245,242,236,0.85); }
.slide.reel-cover .rc-footer .rc-right { color: #A88554; }
.slide.reel-cover .rc-footer::before {
  content: '';
  position: absolute;
  top: -22px; left: 0;
  width: 50px; height: 1px;
  background: rgba(245,242,236,0.25);
}
