/* ==========================================================
   CK Document Standard — v1.0
   Shared stylesheet for all client-facing documents.
   Two modes: present (slide-by-slide) and print (A4).
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400&family=Inter+Tight:wght@400;500;600;700&display=swap');

/* --- Tokens --- */
:root {
  --ck-bg:         #ffffff;
  --ck-navy:       #0a2348;
  --ck-slate:      #5a6678;
  --ck-bronze:     #8B6914;
  --ck-border:     #d0d8e4;
  --ck-surface:    #f6f8fc;
  --ck-win-a:      #e8f4e8;
  --ck-win-b:      #fef3e8;
  --ck-neutral:    #f0f3f8;

  --pill-a-bg:     #d4ead0; --pill-a-text:   #1e4a10;
  --pill-b-bg:     #fce8cc; --pill-b-text:   #6b3a08;
  --pill-tie-bg:   #e0e6ee; --pill-tie-text: #2a3a4a;
  --pill-warn-bg:  #f9d6d6; --pill-warn-text:#842020;

  --font-heading:  'Source Serif 4', Georgia, serif;
  --font-body:     'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:     Menlo, 'Courier New', monospace;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ck-navy);
  background: var(--ck-bg);
  font-size: 11pt;
  line-height: 1.45;
}

/* --- Typography --- */
h1 {
  font-family: var(--font-heading);
  font-size: 22pt; font-weight: 700;
  color: var(--ck-navy); margin-bottom: 4px;
}
h2 {
  font-family: var(--font-heading);
  font-size: 14pt; font-weight: 600;
  color: var(--ck-navy);
  border-bottom: 1.5px solid var(--ck-bronze);
  padding-bottom: 4px; margin: 20px 0 10px;
}
h3 {
  font-family: var(--font-heading);
  font-size: 11.5pt; font-weight: 600;
  color: var(--ck-navy); margin: 14px 0 6px;
}

/* --- Components --- */

.ck-section-label {
  font-size: 8pt; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ck-bronze); margin-bottom: 6px;
}

.ck-ruler { height: 2px; background: var(--ck-navy); margin: 8px 0 14px; }

.ck-meta { font-size: 9pt; color: var(--ck-slate); margin-bottom: 2px; }

.ck-verdict {
  background: var(--ck-surface);
  border-left: 4px solid var(--ck-bronze);
  padding: 12px 16px; margin: 12px 0;
  font-size: 10.5pt; line-height: 1.55;
}

.ck-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 9.5pt; }
.ck-table th, .ck-table td {
  border: 0.5px solid var(--ck-border);
  padding: 5px 8px; text-align: left; vertical-align: top;
}
.ck-table th {
  background: #e4eaf4; color: var(--ck-navy);
  font-weight: 700; font-size: 9pt;
}
.ck-table td.label { background: var(--ck-surface); font-weight: 600; }
.ck-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.ck-table tr.win-a { background: var(--ck-win-a); }
.ck-table tr.win-b { background: var(--ck-win-b); }
.ck-table tr.neutral { background: var(--ck-neutral); }

.ck-pill {
  display: inline-block; padding: 2px 9px;
  border-radius: 12px; font-size: 8.5pt; font-weight: 700;
}
.ck-pill.a    { background: var(--pill-a-bg);    color: var(--pill-a-text); }
.ck-pill.b    { background: var(--pill-b-bg);    color: var(--pill-b-text); }
.ck-pill.tie  { background: var(--pill-tie-bg);  color: var(--pill-tie-text); }
.ck-pill.warn { background: var(--pill-warn-bg); color: var(--pill-warn-text); }

.ck-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0; }
.ck-card {
  border: 1px solid var(--ck-border); border-radius: 4px;
  padding: 12px 14px; background: var(--ck-bg);
}
.ck-card.side-a { border-top: 3px solid #2d6a1f; }
.ck-card.side-b { border-top: 3px solid #8B6914; }
.ck-card-title { font-weight: 700; font-size: 10.5pt; color: var(--ck-navy); margin-bottom: 3px; }
.ck-card-sub   { font-size: 8.5pt; color: var(--ck-slate); margin-bottom: 8px; }
.ck-card ul    { margin: 0 0 0 16px; }
.ck-card li    { font-size: 9.5pt; margin-bottom: 3px; }

.ck-stats { display: flex; gap: 24px; margin: 16px 0; justify-content: center; }
.ck-stat  { text-align: center; flex: 1; }
.ck-stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 38pt; font-weight: 700;
  color: var(--ck-navy); line-height: 1.1;
}
.ck-stat-label { display: block; font-size: 8.5pt; color: var(--ck-slate); margin-top: 4px; }

.ck-footnote { font-size: 8pt; color: var(--ck-slate); margin-top: 4px; line-height: 1.4; }

.ck-wa {
  font-family: var(--font-mono); font-size: 9.5pt;
  background: var(--ck-surface); border: 1px solid var(--ck-border);
  border-radius: 4px; padding: 12px 14px; white-space: pre-line;
}

/* ============================================================
   PRESENT MODE
   ============================================================ */
body.ck-present {
  overflow: hidden; height: 100vh; width: 100vw;
}

.ck-slide {
  display: none; position: fixed; inset: 0;
  padding: 36px 64px 72px;
  flex-direction: column; background: var(--ck-bg);
}
.ck-slide.active { display: flex; }

.ck-slide-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; flex-shrink: 0;
}
.ck-slide-counter { font-size: 9pt; color: var(--ck-slate); }

.ck-slide-headline {
  font-family: var(--font-heading);
  font-size: 34pt; font-weight: 700;
  color: var(--ck-navy); margin-bottom: 22px;
  flex-shrink: 0; line-height: 1.15;
}

.ck-slide-content {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}

.ck-slide-nav {
  position: fixed; bottom: 20px; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 64px;
}
.ck-slide-btn {
  font-family: var(--font-body); font-size: 10pt;
  color: var(--ck-bronze); background: none;
  border: 1px solid var(--ck-border); border-radius: 4px;
  padding: 6px 18px; cursor: pointer; transition: background 0.15s;
}
.ck-slide-btn:hover  { background: var(--ck-surface); }
.ck-slide-btn:disabled { opacity: 0.3; cursor: default; }

.ck-slide.cover { justify-content: center; }
.ck-slide.cover .ck-slide-headline { font-size: 42pt; margin-bottom: 12px; }
.ck-slide-subtitle { font-size: 14pt; color: var(--ck-slate); margin-bottom: 6px; }
.ck-slide-date {
  font-size: 10pt; color: var(--ck-bronze);
  margin-top: 28px; padding-top: 12px;
  border-top: 1px solid var(--ck-border);
}

.ck-agenda { list-style: none; }
.ck-agenda li {
  font-size: 15pt; padding: 11px 0;
  border-bottom: 1px solid var(--ck-border);
  display: flex; align-items: center; gap: 14px;
}
.ck-agenda-num { font-size: 10pt; color: var(--ck-bronze); font-weight: 700; min-width: 22px; }

body.ck-present .ck-table       { font-size: 11pt; }
body.ck-present .ck-table th    { font-size: 10.5pt; }
body.ck-present .ck-table td    { padding: 7px 10px; }
body.ck-present .ck-stat-num    { font-size: 56pt; }
body.ck-present .ck-stat-label  { font-size: 11pt; }
body.ck-present .ck-verdict     { font-size: 13pt; padding: 18px 22px; line-height: 1.6; }
body.ck-present .ck-card-title  { font-size: 12.5pt; }
body.ck-present .ck-card li     { font-size: 11.5pt; }
body.ck-present .ck-pill        { font-size: 10.5pt; padding: 3px 12px; }
body.ck-present .ck-section-label { font-size: 9pt; }

/* ============================================================
   PRINT MODE
   ============================================================ */
@page { size: A4; margin: 14mm 12mm; }

.ck-print-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--ck-border);
}
.ck-print-link { font-size: 9pt; color: var(--ck-bronze); text-decoration: none; }
.ck-print-link:hover { text-decoration: underline; }
.ck-print-btn {
  font-size: 9pt; color: var(--ck-slate);
  background: var(--ck-surface); border: 1px solid var(--ck-border);
  border-radius: 3px; padding: 3px 10px; cursor: pointer;
}
.ck-print-footer {
  margin-top: 20px; padding-top: 8px;
  border-top: 1px solid var(--ck-border);
  font-size: 8pt; color: var(--ck-slate);
}
.pagebreak { page-break-after: always; }

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