/* ========================================================================
   Digital Poster CSS — 1080 × 1600 vertical (55" portrait display)
   For PDF export: open in Chrome → Print → Custom 1080×1600 px → PDF
   Submission: shaiel@kldltd.com · Deadline: 23 May 2026, 23:59
   ======================================================================== */

@page { size: 1080px 1600px; margin: 0; }

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

html, body {
  width: 1080px;
  font-family: "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  background: #ffffff;
  font-size: 17px;
  line-height: 1.4;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

@media screen {
  html, body { min-height: 1600px; height: auto; overflow-y: auto; }
  body { background: #cbd5e1; padding: 24px 0; }
  .poster { box-shadow: 0 12px 48px rgba(0,0,0,0.2); margin: 0 auto; background: #ffffff; }
}

@media print {
  html, body { height: 1600px; overflow: hidden; }
  body { padding: 0; background: #ffffff; }
  .poster { box-shadow: none; margin: 0; }
}

.poster {
  width: 1080px;
  height: 1600px;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}

/* ===== HEADER ===== */
.header { border-bottom: 8px solid var(--accent, #2563eb); padding-bottom: 18px; }

.header h1 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.6px;
}

.header .subtitle {
  font-size: 23px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 14px;
  line-height: 1.3;
}

.header .authors {
  font-size: 19px;
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 5px;
}

.header .affiliations { font-size: 13px; color: #5b6b80; line-height: 1.4; }

/* ===== THESIS BANNER ===== */
.thesis-banner {
  background: var(--accent-bg, linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%));
  padding: 18px 26px;
  border-radius: 10px;
  border-left: 8px solid var(--accent, #2563eb);
}

.thesis-banner .label {
  font-size: 13px;
  color: #6b7280;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 800;
}

.thesis-banner p {
  font-size: 19px;
  font-weight: 600;
  color: #0f172a;
  font-style: italic;
  line-height: 1.4;
}

/* ===== HERO FIGURE — full-width landscape only ===== */
.hero-figure {
  background: #ffffff;
  border-radius: 10px;
  padding: 14px;
  border: 3px solid var(--accent, #2563eb);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.hero-figure .caption {
  font-size: 13px;
  color: #475569;
  font-style: italic;
  margin-top: 10px;
  line-height: 1.45;
  padding: 0 8px;
}

/* ===== INLINE LANDSCAPE FIGURE (HTML-built) ===== */
.inline-figure {
  background: #ffffff;
  border-radius: 10px;
  padding: 18px 22px;
  border: 3px solid var(--accent, #2563eb);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.inline-figure .fig-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent, #2563eb);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent, #2563eb);
}

.pipeline-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.pipeline-step {
  background: var(--accent-bg, #dbeafe);
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  border: 2px solid var(--accent, #2563eb);
}

.pipeline-step .icon { font-size: 28px; line-height: 1; margin-bottom: 6px; }
.pipeline-step .name { font-size: 14px; font-weight: 800; color: #0f172a; line-height: 1.2; }
.pipeline-step .sub { font-size: 11px; color: #475569; margin-top: 4px; line-height: 1.3; }

.fig-grid { display: grid; gap: 12px; }
.fig-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.fig-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.fig-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.fig-grid.cols-6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, auto); }

.fig-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 14px;
  border-left: 5px solid var(--accent, #2563eb);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fig-card .fc-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent, #2563eb);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.fig-card .fc-title { font-size: 16px; font-weight: 800; color: #0f172a; line-height: 1.25; }
.fig-card .fc-body { font-size: 13px; color: #475569; line-height: 1.45; }

/* ===== BODY GRID ===== */
.body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  min-height: 0;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.section {
  background: #f8fafc;
  border-radius: 8px;
  padding: 18px 22px;
  border-top: 6px solid var(--accent, #2563eb);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section h2 {
  font-size: 22px;
  color: var(--accent, #2563eb);
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.section p { font-size: 16px; line-height: 1.5; color: #1e293b; margin-bottom: 8px; }
.section ul { padding-left: 22px; margin-bottom: 6px; }
.section li { font-size: 16px; line-height: 1.5; color: #1e293b; margin-bottom: 6px; }

.section.highlight { background: #fef3c7; border-top-color: #f59e0b; }
.section.danger { background: #fee2e2; border-top-color: #dc2626; }

/* ===== STAT GRID ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0;
}
.stat-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.stat-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }

.stat {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 12px 8px;
  text-align: center;
}

.stat .number {
  font-size: 30px;
  font-weight: 900;
  color: var(--accent, #2563eb);
  line-height: 1;
  margin-bottom: 4px;
}

.stat .label {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 700;
}

/* ===== TABLES ===== */
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; line-height: 1.4; }
th { background: var(--accent, #2563eb); color: #ffffff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; }
tbody tr:nth-child(even) { background: #f1f5f9; }

/* ===== FOOTER ===== */
.footer { padding-top: 14px; border-top: 3px solid #e2e8f0; }
.footer .meta { font-size: 12px; color: #64748b; line-height: 1.55; }
.footer .meta strong { color: #1e293b; }

/* ===== CALLOUTS ===== */
.callout {
  background: #ffffff;
  border-left: 5px solid var(--accent, #2563eb);
  padding: 12px 16px;
  margin: 8px 0;
  font-size: 15px;
  font-style: italic;
  color: #334155;
  border-radius: 0 6px 6px 0;
  line-height: 1.45;
}

.callout strong { font-style: normal; color: #0f172a; }
