/* ============================================================================
   GROUP PRESENTATION — SHARED STYLESHEET
   "CEO Narcissism, Overconfidence, and Gender Diversity"
   Universitas Internasional Batam

   PURPOSE
   A single stylesheet for a 6-person presentation. Every presenter applies the
   SAME class names below, so all six sections render with one consistent look.
   There is no per-person styling. The only thing that differs between slides
   is the section number and the presenter's name in the header.

   SECTION -> PRESENTER MAP
     01  Opening & Context           -> Presenter 1
     02  Theory & Hypotheses         -> Presenter 2
     03  Methodology                 -> Presenter 3
     04  Descriptive Results         -> Presenter 4
     05  Direct Effects (H1-H4)      -> Presenter 5
     06  Moderation, Robustness &
         Conclusion (H5-H8)          -> Presenter 6

   HOW TO USE (each presenter)
   - One <section class="slide"> per presentation page.
   - Copy the <header class="slide__header"> pattern exactly; change only the
     section number and the presenter name.
   - For every data table use: <table class="data">.
   - For every hypothesis use: <span class="hypo hypo--supported">H1</span>
     (states: --supported / --rejected / --neutral).
   - For the headline findings use: <div class="callout"> with the matching
     modifier class. Do not invent new colors here.

   SEMANTIC COLOR CODE (kept identical across all sections)
     green   #2f6e4e  = hypothesis supported / positive effect
     crimson #b3232a  = hypothesis rejected  / negative effect
     amber   #b58a2e  = null / non-significant / caution
     ink     #14213d  = primary text & structure
============================================================================ */

:root {
  /* Palette — one fixed set, applied identically to every slide */
  --ink:        #14213d;   /* deep navy — headings, primary text, structure */
  --ink-soft:   #3a4761;   /* secondary headings */
  --muted:      #6b7280;   /* secondary text, captions */
  --line:       #d8d4c8;   /* rules, table borders */
  --paper:      #ffffff;   /* slide background */
  --paper-alt:  #f4f1ea;   /* subtle band / panel fill (warm off-white) */

  --positive:   #2f6e4e;   /* supported / positive */
  --negative:   #b3232a;   /* rejected / negative */
  --warn:       #b58a2e;   /* null / non-significant */

  /* Type */
  --font-display: "Georgia", "Times New Roman", "Songti SC", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

  /* Layout */
  --content-max: 1040px;
  --slide-pad: 56px 72px 48px;
}

/* ----------------------------------------------------------------------------
   RESET / BASE
---------------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* A slide fills the whole viewport; content is capped for readability. */
.slide {
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--slide-pad);
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  page-break-after: always;
}

.slide__body {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  flex: 1;
}

/* ----------------------------------------------------------------------------
   SLIDE HEADER — identical structure on every slide.
   The section number + name is the only differentiator between presenters.
---------------------------------------------------------------------------- */
.slide__header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.slide__num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--paper);
  background: var(--ink);
  padding: 3px 10px;
  border-radius: 2px;
  line-height: 1.4;
}

.slide__section {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.slide__presenter {
  margin-left: auto;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

/* ----------------------------------------------------------------------------
   TYPOGRAPHY — one voice across all six sections
---------------------------------------------------------------------------- */
.slide__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.15;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.25;
}
h2 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 14px; }
h3 { font-size: clamp(16px, 1.7vw, 19px); margin-bottom: 10px; font-weight: 600; }

p { font-size: clamp(14px, 1.05vw, 16.5px); color: var(--ink); margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }

.lede { /* opening/context intro paragraph — slightly larger, higher contrast */
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--ink);
}

/* Two-column / three-column grid for parallel content (e.g. the 8 hypotheses,
   the variable blocks). Used identically by every presenter. */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* Panel — a filled box used for variables, the research question, context. */
.panel {
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px 20px;
}
.panel--accent {
  border-left: 4px solid var(--ink);
  background: var(--paper-alt);
}

/* ----------------------------------------------------------------------------
   STAT CARDS — key figures (sample size, N, period). Same look everywhere.
---------------------------------------------------------------------------- */
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  text-align: center;
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.stat__label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----------------------------------------------------------------------------
   HYPOTHESIS CHIPS — H1..H8. The ONLY place state-driven color is allowed,
   so the color meaning stays consistent from section 2 to section 5.
   Default is neutral; add the matching modifier to reflect the finding.
---------------------------------------------------------------------------- */
.hypo {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  white-space: nowrap;
  vertical-align: middle;
}
.hypo--neutral   { border-color: var(--warn);      color: #6e5416; background: #fbf4e2; }
.hypo--supported { border-color: var(--positive);  color: var(--positive); background: #eef4ef; }
.hypo--rejected  { border-color: var(--negative);  color: var(--negative); background: #f8ecec; }

/* A small legend, repeated once where state-color is first introduced. */
.hypo-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.hypo-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hypo-legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.hypo-legend .sw-neutral   { background: var(--warn); }
.hypo-legend .sw-supported { background: var(--positive); }
.hypo-legend .sw-rejected  { background: var(--negative); }

/* ----------------------------------------------------------------------------
   DATA TABLES — the paper is data-heavy; sections 3, 4, 5 MUST share this.
---------------------------------------------------------------------------- */
.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin: 14px 0 6px;
}
.data caption {
  caption-side: top;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  padding-bottom: 8px;
}
.data thead th {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 9px 12px;
  border-right: 1px solid rgba(255,255,255,0.14);
}
.data thead th:last-child { border-right: none; }
.data tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
}
.data tbody td:last-child { border-right: none; }
.data tbody tr:nth-child(even) td { background: var(--paper-alt); }
.data tbody tr:hover td { background: #ecead9; }

/* A coefficient cell. Mark significant cells with the matching modifier so the
   star-rating color language is identical in every table. */
.coef { font-variant-numeric: tabular-nums; white-space: nowrap; }
.coef--neg { color: var(--negative); font-weight: 600; }
.coef--pos { color: var(--positive); font-weight: 600; }
.coef--ns  { color: var(--muted); }

/* The star significance scale, rendered consistently. */
.sig   { font-size: 0.78em; letter-spacing: 0.08em; }
.sig--1 { color: var(--warn); }
.sig--2 { color: var(--warn); }
.sig--3 { color: var(--warn); }

.tbl-note { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* ----------------------------------------------------------------------------
   KEY-FINDING CALLOUTS — used for the headline results. Modifier is mandatory
   so the finding is never stated without its correct semantic color.
---------------------------------------------------------------------------- */
.callout {
  border-radius: 6px;
  padding: 16px 20px;
  margin: 14px 0;
  background: var(--paper-alt);
  border-left: 4px solid var(--ink);
}
.callout__title {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--ink);
}
.callout p { margin-bottom: 6px; font-size: 14px; }
.callout p:last-child { margin-bottom: 0; }

.callout--positive { border-left-color: var(--positive); background: #eef4ef; }
.callout--negative { border-left-color: var(--negative); background: #f8ecec; }
.callout--neutral  { border-left-color: var(--warn);     background: #fbf4e2; }

/* ----------------------------------------------------------------------------
   SLIDE FOOTER — identical on every slide: paper title + section index.
---------------------------------------------------------------------------- */
.slide__footer {
  width: 100%;
  max-width: var(--content-max);
  margin: 24px auto 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.slide__footer .title { text-transform: uppercase; letter-spacing: 0.08em; }

/* ----------------------------------------------------------------------------
   COVER (presenter 1 opening) — the one slide allowed a distinct layout.
---------------------------------------------------------------------------- */
.slide--cover { justify-content: center; align-items: center; text-align: center; }
.slide--cover .slide__header { display: none; }
.cover__eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.cover__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.12;
  max-width: 16em;
  margin: 0 auto 24px;
  color: var(--ink);
}
.cover__authors { font-size: 15px; color: var(--ink-soft); }
.cover__affil  { font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: 0.03em; }
.cover__rule { width: 64px; height: 3px; background: var(--ink); margin: 26px auto; }

/* ----------------------------------------------------------------------------
   RESPONSIVE — tables and grids collapse gracefully on narrower screens.
---------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root { --slide-pad: 40px 28px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .data { font-size: 12px; }
  .data th, .data td { padding: 6px 8px; }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .slide__presenter { display: none; }
  .slide__footer { flex-direction: column; gap: 4px; align-items: flex-start; }
}

/* ----------------------------------------------------------------------------
   PRINT — one section per page, color preserved.
---------------------------------------------------------------------------- */
@media print {
  .slide { min-height: auto; page-break-after: always; }
  .data thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hypo, .callout { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
