/*
 * CroqTile Theme for reveal.js
 * Wide 16:9 layout, beamer-style header/footer, flat solid backgrounds
 */

@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Carlito Regular'), local('Carlito-Regular'),
       url('https://fonts.gstatic.com/s/carlito/v4/3Jn9SDPw3m-pk039DDeBTA.woff2') format('woff2');
}
@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Carlito Bold'), local('Carlito-Bold'),
       url('https://fonts.gstatic.com/s/carlito/v4/3Jn4SDPw3m-pk039BIykWXolUw.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: local('Source Sans 3'), local('SourceSans3-Regular'),
       url('https://fonts.gstatic.com/s/sourcesans3/v19/nwpStKy2OAdR1K-IwhWudF-R3w8aZQ.woff2') format('woff2');
}
:root {
  --bg: #ffffff;
  --bg-secondary: #f5f5f5;
  --fg: #1a1a1a;
  --fg-secondary: #666666;
  --fg-light: #999999;
  --title-font: 'Carlito', 'Noto Sans SC', sans-serif;
  --body-font: 'Source Sans 3', 'Noto Sans SC', sans-serif;
  --ui-font: 'Inter', 'Noto Sans SC', sans-serif;
  --mint-400: #4ade83;
  --mint-500: #22c55e;
  --mint-600: #16a34a;
  --mint-700: #15803d;
  --mint-50: #f0fdf6;
  --mint-100: #dcfce9;
  --mint-950: #052e14;
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-400: #38bdf8;
  --border: #e5e5e5;
  --muted: #f7f7f7;
  --card: #ffffff;
  --accent-mint-bg: #d1fae5;
  --accent-sky-bg: #dbeafe;
  --editor-bg: #eef8f2;
}

/* ── Reveal core ── */

.reveal-viewport { background: var(--bg); }

.reveal {
  font-family: var(--body-font);
  font-size: 21px;
  color: var(--fg);
}

.reveal .slides { text-align: left; }

.reveal .slides section {
  padding: 52px 40px 40px 40px;
  box-sizing: border-box;
  height: 100%;
}

.reveal .slide-number {
  display: block;
  top: auto;
  right: auto;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22, 163, 74, 0.2);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  color: var(--mint-700);
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  z-index: 20;
}

.reveal .slide-number a {
  color: inherit;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════ */
/* Beamer-style Header (mint green color block)   */
/* ═══════════════════════════════════════════════ */

.reveal .slides section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 38px;
  background: linear-gradient(135deg, #3ecf8e 0%, var(--mint-500) 100%);
  z-index: 10;
}

.slide-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 11;
  gap: 10px;
}

.slide-header img {
  height: 24px;
  width: auto;
  border-radius: 3px;
}

.slide-header .header-title {
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.slide-header .header-sep {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}

.slide-header .header-section {
  font-family: var(--ui-font);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-left: auto;
}

/* ═══════════════════════════════════════════════ */
/* Beamer-style Footer (pinned to bottom)         */
/* ═══════════════════════════════════════════════ */

.reveal .slides section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  background: linear-gradient(135deg, #3ecf8e 0%, var(--mint-500) 100%);
  z-index: 10;
}

.slide-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 11;
}

.slide-footer .footer-brand {
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.04em;
}

.slide-footer .footer-right {
  margin-left: auto;
  font-family: var(--ui-font);
  font-size: 11px;
  font-weight: 600;
  color: #f5fffb;
}

.slide-footer .footer-right a {
  color: #f5fffb;
  text-decoration: none;
  font-style: italic;
}

.slide-footer .footer-right a:hover {
  text-decoration: underline;
}

/* Lead / chapter slides hide header+footer bars */
.reveal .slides section.lead::before,
.reveal .slides section.lead::after,
.reveal .slides section.chapter::before,
.reveal .slides section.chapter::after { display: none; }
.reveal .slides section.lead .slide-header,
.reveal .slides section.lead .slide-footer,
.reveal .slides section.chapter .slide-header,
.reveal .slides section.chapter .slide-footer { display: none; }

/* ── Typography ── */

.reveal h1 {
  color: var(--fg);
  font-weight: 900;
  font-size: 2.2em;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 16px;
  font-family: var(--title-font);
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.reveal h2 {
  color: var(--mint-700);
  font-weight: 700;
  font-size: 1.35em;
  margin-bottom: 14px;
  font-family: var(--title-font);
  text-transform: none;
  letter-spacing: -0.01em;
}

.reveal h3 {
  color: var(--fg);
  font-weight: 600;
  font-size: 0.95em;
  font-family: var(--title-font);
  text-transform: none;
}

.reveal h4 {
  color: var(--fg-secondary);
  font-weight: 600;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--title-font);
}

.reveal p { line-height: 1.55; margin-bottom: 10px; font-size: 0.88em; }
.reveal a { color: var(--mint-600); text-decoration: underline; }
.reveal strong { color: var(--mint-950); font-weight: 700; }

.reveal code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--mint-50);
  color: var(--mint-600);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.82em;
  border: 1px solid var(--mint-100);
}

.reveal pre {
  background: var(--editor-bg);
  border: 1px solid #c8e6d4;
  border-radius: 8px;
  padding: 14px 18px;
  overflow: auto;
  max-height: 380px;
  font-size: 0.72em;
  line-height: 1.55;
  color: var(--fg);
  width: 100%;
  box-sizing: border-box;
  box-shadow: none;
  margin: 6px 0;
}

.reveal pre code {
  background: none; padding: 0; border: none;
  color: inherit; font-size: 1em; max-height: none;
  font-family: 'JetBrains Mono', monospace;
}

.reveal blockquote {
  border-left: 3px solid var(--mint-500);
  padding: 10px 16px;
  color: var(--fg-secondary);
  font-style: italic;
  background: var(--mint-50);
  border-radius: 0 6px 6px 0;
  font-size: 0.78em;
  margin: 10px 0;
  width: auto;
  box-shadow: none;
}

.reveal blockquote p { margin: 0; }

/* ── Tables ── */

.reveal table { border-collapse: collapse; width: 100%; font-size: 0.64em; margin: 10px 0; }
.reveal th { background: var(--mint-50); color: var(--mint-600); padding: 7px 12px; text-align: left; border-bottom: 2px solid var(--mint-500); font-weight: 700; }
.reveal td { padding: 6px 12px; border-bottom: 1px solid var(--border); }
.reveal tr:nth-child(even) td { background: #fafafa; }
.reveal table.compact { font-size: 0.62em; }
.reveal table.compact td, .reveal table.compact th { padding: 4px 8px; }

/* ── Lists ── */

.reveal ul, .reveal ol { margin-left: 0.8em; }
.reveal li { margin-bottom: 4px; line-height: 1.45; font-size: 0.84em; }

/* ── Images ── */

.reveal img { max-width: 100%; max-height: 80%; border: none; box-shadow: none; }

/* ═══════════════════════════════════════════════ */
/* Editor chrome (code blocks)                    */
/* ═══════════════════════════════════════════════ */

.editor {
  border: 1px solid #c8e6d4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--editor-bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin: 6px 0;
  display: flex;
  flex-direction: column;
}

.editor-header {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: #e2f0e8;
  border-bottom: 1px solid #c8e6d4;
  flex-shrink: 0;
}

.editor-dots { display: flex; gap: 5px; }
.editor-dots span { width: 9px; height: 9px; border-radius: 50%; }
.editor-dots .dot-r { background: rgba(248,113,113,0.8); }
.editor-dots .dot-y { background: rgba(250,204,21,0.8); }
.editor-dots .dot-g { background: rgba(74,222,131,0.8); }

.editor-filename {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; color: var(--fg-secondary); margin-left: 6px;
}

.editor-badge {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px; font-weight: 700;
  color: var(--mint-500);
  background: rgba(34,197,94,0.12);
  padding: 2px 6px; border-radius: 3px; letter-spacing: 0.05em;
}

.editor-badge-error {
  color: #dc2626;
  background: rgba(220,38,38,0.1);
}

.editor pre, .editor-code pre {
  margin: 0; border: none; border-radius: 0;
  background: var(--editor-bg); color: var(--fg);
  padding: 12px 16px; font-size: 14px; line-height: 1.6;
  font-family: 'JetBrains Mono', monospace;
  white-space: pre; overflow: auto;
  max-height: 480px;
  flex: 1;
  min-height: 0;
}

.editor-code {
  overflow: auto;
  max-height: 480px;
  flex: 1;
  min-height: 0;
}

/* ── Tabbed editor ── */

.editor-tabbed .editor-header { padding: 0; padding-left: 12px; gap: 0; }
.editor-tabbed .editor-dots { padding: 8px 0; }
.editor-tabs { display: flex; gap: 0; margin-left: 8px; }

.editor-tab {
  padding: 8px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; font-weight: 500;
  border: none; background: transparent;
  color: var(--fg-secondary); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.editor-tab:hover { color: var(--fg); background: rgba(0,0,0,0.02); }
.editor-tab.active { color: var(--mint-500); border-bottom-color: var(--mint-500); background: var(--editor-bg); }
.editor-tabbed .editor-badge { margin-right: 12px; }

.editor-body {
  max-height: 480px;
  overflow-y: auto;
  overflow-x: auto;
}
.editor-compact .editor-body {
  max-height: 375px;
}
.editor-short .editor-body {
  max-height: 280px;
}

.editor-body pre {
  margin: 0; border: none; border-radius: 0;
  background: var(--editor-bg); color: var(--fg);
  padding: 12px 16px; font-size: 14px; line-height: 1.6;
  font-family: 'JetBrains Mono', monospace;
  white-space: pre; overflow-x: auto;
  max-height: none;
}

.editor-footer {
  padding: 6px 16px;
  border-top: 1px solid #c8e6d4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--fg-secondary);
  background: #e2f0e8;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════ */
/* Layout: Lead (title / closing)                 */
/* ═══════════════════════════════════════════════ */

.reveal .slides section.lead {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: 60px 80px;
}

.reveal .slides section.lead h1 {
  font-size: 1.9em;
  color: var(--fg);
  margin-bottom: 8px;
  max-width: 980px;
  line-height: 1.2;
  font-family: var(--body-font);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.reveal .slides section.lead h1 .brand-green { color: var(--mint-500); }

.reveal .slides section.lead .slide-corner-badge { display: none; }

.reveal .slides section.lead .lead-split {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
  height: 100%;
}

.reveal .slides section.lead .lead-logo-area {
  flex-shrink: 0;
}

.reveal .slides section.lead .lead-logo-area img {
  height: 320px;
  border-radius: 12px;
}

.reveal .slides section.lead .lead-text-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.reveal .slides section.lead .lead-brand {
  font-size: 3.4em;
  font-weight: 900;
  color: var(--mint-600);
  letter-spacing: 0.04em;
  margin: 0 0 8px 0;
}

.reveal .slides section.lead .lead-author {
  font-size: 1.4em;
  font-weight: 500;
  color: var(--fg-secondary);
  margin-top: 20px;
  letter-spacing: 0.02em;
  align-self: flex-end;
  font-style: italic;
}

.reveal .slides section.lead h3 {
  color: var(--fg-secondary);
  font-weight: 400;
  font-size: 0.9em;
}

/* ═══════════════════════════════════════════════ */
/* Layout: Chapter divider                        */
/* ═══════════════════════════════════════════════ */

.reveal .slides section.chapter {
  display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 60px 80px;
}

.reveal .slides section.chapter h4 {
  color: var(--fg-secondary);
  font-size: 0.8em;
  margin-bottom: 6px;
}

.reveal .slides section.chapter h2 {
  font-size: 1.45em;
  color: var(--fg);
  margin-bottom: 8px;
  max-width: 980px;
  line-height: 1.2;
}

.reveal .slides section.chapter p {
  color: var(--fg-secondary);
  font-size: 0.85em;
}

/* ═══════════════════════════════════════════════ */
/* Layout: Split (two-column)                     */
/* ═══════════════════════════════════════════════ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 6px;
}

.reveal .slides section.dense {
  padding-top: 46px;
}

.reveal .slides section.dense h2 {
  font-size: 1.42em;
}

.reveal .slides section.dense table {
  font-size: 0.58em;
}

.reveal .slides section.dense .split {
  gap: 14px;
}

/* ═══════════════════════════════════════════════ */
/* TOC page                                       */
/* ═══════════════════════════════════════════════ */

.toc-list {
  list-style: none;
  padding: 0; margin: 0;
}

.toc-list li {
  font-size: 1.05em;
  line-height: 1;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.toc-list li:last-child { border-bottom: none; }

.toc-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
}

.toc-list a:hover {
  background: var(--mint-50);
  transform: translateX(8px);
  box-shadow: 0 2px 8px rgba(34,197,94,0.1);
}

.toc-list a:hover .toc-title {
  color: var(--mint-600);
}

.toc-list a::after {
  content: '→';
  margin-left: auto;
  color: var(--mint-400);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(-4px);
}

.toc-list a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.toc-num {
  font-weight: 700;
  color: var(--mint-500);
  font-size: 0.8em;
  min-width: 28px;
  font-family: 'JetBrains Mono', monospace;
}

.toc-title {
  font-weight: 600;
  color: var(--fg);
  transition: color 0.2s ease;
}

/* ═══════════════════════════════════════════════ */
/* "What is" interactive feature cards             */
/* ═══════════════════════════════════════════════ */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.feature-card {
  padding: 24px 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: all 0.25s ease;
  cursor: default;
}

.feature-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 24px rgba(34,197,94,0.12);
  border-color: var(--mint-400);
  background: var(--mint-50);
}

.overview-tagline {
  font-size: 1.02em !important;
  line-height: 1.45;
  color: var(--fg);
}

.feature-card:nth-child(1) {
  background: linear-gradient(180deg, #f4fff8 0%, #dcfce9 100%);
  border-color: #b7ebca;
}

.feature-card:nth-child(2) {
  background: linear-gradient(180deg, #fffdf4 0%, #fef3c7 100%);
  border-color: #f4df8b;
}

.feature-card:nth-child(3) {
  background: linear-gradient(180deg, #f7fbff 0%, #dbeafe 100%);
  border-color: #bfd7fb;
}

.feature-card:nth-child(4) {
  background: linear-gradient(180deg, #faf7ff 0%, #ede9fe 100%);
  border-color: #d6c9fc;
}

.feature-card h3 {
  font-size: 1em;
  font-weight: 700;
  color: var(--mint-700);
  margin: 0 0 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-card .feature-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.feature-card:nth-child(1) .feature-icon { background: #dcfce9; }
.feature-card:nth-child(2) .feature-icon { background: #fef3c7; }
.feature-card:nth-child(3) .feature-icon { background: #dbeafe; }
.feature-card:nth-child(4) .feature-icon { background: #ede9fe; }

/* ═══════════════════════════════════════════════ */
/* Stats grid (closing slide)                     */
/* ═══════════════════════════════════════════════ */

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px; margin: 20px 0;
  max-width: 540px;
}

.stat {
  display: flex; flex-direction: column;
  align-items: center; padding: 10px;
}

.stat-value {
  font-size: 1.5em; font-weight: 900;
  color: var(--mint-600); line-height: 1;
}

.stat-label {
  font-size: 0.5em;
  color: var(--fg-secondary);
  margin-top: 4px; text-align: center;
}

/* ═══════════════════════════════════════════════ */
/* Logo in header                                 */
/* ═══════════════════════════════════════════════ */

.slide-logo-footer {
  position: absolute;
  bottom: 8px; left: 28px;
  height: 20px;
  opacity: 0.3;
  z-index: 10;
}

.slide-corner-badge {
  position: absolute;
  top: 44px;
  right: 24px;
  width: 34px;
  height: 34px;
  object-fit: contain;
  opacity: 0.26;
  border-radius: 6px;
  z-index: 9;
}

/* ═══════════════════════════════════════════════ */
/* Website-style split: bullets left, editor right */
/* ═══════════════════════════════════════════════ */

.website-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: start;
  margin-top: 8px;
}

.website-split > div:last-child {
  min-width: 0;
}

.website-split > div:last-child .editor-showcase,
.website-split > div:last-child .editor-block,
.website-split > div:last-child .editor {
  max-width: 92%;
  margin-left: auto;
}

.website-split .claims {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.website-split .claim-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78em;
  line-height: 1.35;
  padding: 3px 0;
}

.website-split .claim-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: var(--mint-100);
  margin-top: 1px;
}

/* ── LoC horizontal bar chart (website-style) ── */

.loc-hchart {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.loc-hbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 20px;
}

.loc-hbar-label {
  font-family: var(--body-font);
  font-size: 10px;
  font-weight: 600;
  color: var(--fg);
  min-width: 110px;
  text-align: right;
  white-space: nowrap;
}

.loc-hbar {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  transition: width 0.5s ease;
  min-width: 24px;
}

.loc-hbar.croqtile { background: var(--mint-500); }
.loc-hbar.croqtile-python { background: #86efac; }
.loc-hbar.triton { background: #38bdf8; }
.loc-hbar.tilelang { background: #a78bfa; }
.loc-hbar.cutlass { background: #f59e0b; }
.loc-hbar.cuda { background: #64748b; }

.loc-hbar-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.loc-hchart-title {
  font-family: var(--body-font);
  font-size: 9px;
  font-weight: 600;
  color: var(--fg-secondary);
  margin-top: 4px;
  margin-bottom: 2px;
}

/* ── Feature check table ── */

.check-table {
  border-collapse: collapse;
  font-size: 0.72em;
  margin-top: 8px;
  width: 100%;
}

.check-table th {
  background: var(--mint-50);
  color: var(--mint-700);
  padding: 5px 10px;
  text-align: center;
  border-bottom: 2px solid var(--mint-400);
  font-weight: 700;
  font-size: 0.92em;
}

.check-table th:first-child {
  text-align: left;
}

.check-table td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  font-size: 0.92em;
}

.check-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--fg);
}

.check-table .check-yes {
  color: var(--mint-500);
  font-weight: 700;
}

.check-table .check-no {
  color: var(--fg-light);
}

#why-simple .agg-subtitle {
  margin: 6px 0 14px;
  color: var(--mint-700);
  font-size: 0.94em;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

#why-simple .claims {
  gap: 4px;
}

#why-simple .claim-item,
#why-simple .claim-sub {
  font-size: 0.9em;
  line-height: 1.45;
}

#why-simple .claim-sub {
  padding-left: 18px;
  color: var(--fg-secondary);
  font-size: 0.78em;
  line-height: 1.4;
}

#why-simple .claim-item {
  font-size: 0.94em;
}

#why-simple .claim-sub + .claim-item {
  margin-top: 10px;
}

#why-simple .agg-panel {
  font-size: 1.12em;
}

#why-simple .editor-body pre {
  font-size: 15px;
}

#why-simple .check-table {
  font-size: 0.8em;
  margin-top: 12px;
}

#why-simple .check-table th,
#why-simple .check-table td {
  padding: 6px 10px;
}

#why-simple .loc-hchart-title {
  font-size: 0.62em;
  margin-top: 8px;
  margin-bottom: 4px;
}

#why-simple .loc-hbar-row {
  height: 22px;
}

#why-simple .loc-hbar-label,
#why-simple .loc-hbar-value {
  font-size: 11px;
}

.bottom-note-slide .website-split {
  align-items: stretch;
}

.bottom-note-slide .claims {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}

.bottom-note-slide .cuda-compare {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  background: rgba(250, 204, 21, 0.10);
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
}

.bottom-note-slide .cuda-compare h4 {
  color: #92400e;
}

.bottom-note-slide .cuda-compare blockquote {
  background: rgba(255, 255, 255, 0.72);
  border-left-color: rgba(234, 179, 8, 0.7);
}

.slide-five-loc-summary {
  margin: 22px auto 0;
  width: min(100%, 410px);
}

.slide-five {
  font-size: 1.08em;
}

.slide-five .claims {
  gap: 8px;
}

.slide-five .claim-item {
  font-size: 1.02em;
  line-height: 1.48;
}

.slide-five .claim-item span {
  font-size: 1em;
}

.slide-five-loc-summary .loc-hchart-title {
  text-align: center;
  margin-bottom: 6px;
}

.zero-cost-slide {
  font-size: 1.18em;
}

.zero-cost-slide .split {
  gap: 44px !important;
}

.zero-cost-slide .zero-cost-summary {
  font-size: 0.58em !important;
  line-height: 1.45;
}

.zero-cost-slide .zero-cost-bars {
  max-width: 92%;
}

.zero-cost-slide .zero-cost-bars > div,
.zero-cost-slide .zero-cost-note > div {
  font-size: 1.04em;
}

.write-once-slide .write-once-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 18px;
}

.write-once-slide .write-once-code {
  min-width: 340px;
  max-width: 340px;
}

.write-once-slide .write-once-code .editor-showcase {
  max-width: 100%;
}

.write-once-slide .write-once-route-grid {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  gap: 16px 18px;
  align-items: center;
  font-size: 1.08em;
}

.write-once-slide .write-once-route {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.write-once-slide .write-once-arrow {
  font-size: 1.2em;
  font-weight: 700;
}

.write-once-slide .write-once-flag {
  font-size: 0.56em !important;
}

.write-once-slide .write-once-target-title {
  font-size: 0.62em !important;
}

.write-once-slide .write-once-target-desc {
  font-size: 0.52em !important;
}

.write-once-slide .write-once-myth {
  margin: 20px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 0.68em;
  line-height: 1.5;
  color: var(--fg-secondary);
  font-style: italic;
}

.multi-device-slide {
  font-size: 1.14em;
}

.multi-device-slide .multi-device-layout {
  gap: 44px;
}

.multi-device-slide .multi-device-code .editor-showcase {
  max-width: 92%;
  margin-right: auto;
}

.multi-device-slide .multi-device-right {
  gap: 14px;
}

.multi-device-slide .multi-device-diagram {
  padding: 16px;
}

.multi-device-slide .multi-device-note {
  padding: 14px 18px;
}

.tagged-claims .claim-item {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #fff;
}

.tagged-claims .claim-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82em;
  font-weight: 800;
  line-height: 1.2;
}

.tagged-claims .claim-detail {
  display: block;
  margin-top: 7px;
  font-size: 0.78em;
  line-height: 1.45;
  color: var(--fg-secondary);
}

.tagged-claims .claim-item:nth-child(1) {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.tagged-claims .claim-item:nth-child(1) .claim-tag {
  background: #dcfce7;
  color: #166534;
}

.tagged-claims .claim-item:nth-child(2) {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.tagged-claims .claim-item:nth-child(2) .claim-tag {
  background: #dbeafe;
  color: #1d4ed8;
}

.tagged-claims .claim-item:nth-child(3) {
  background: #fef3c7;
  border-color: #fcd34d;
}

.tagged-claims .claim-item:nth-child(3) .claim-tag {
  background: #fde68a;
  color: #92400e;
}

.tagged-claims .claim-item:nth-child(4) {
  background: #f5f3ff;
  border-color: #d8b4fe;
}

.tagged-claims .claim-item:nth-child(4) .claim-tag {
  background: #ede9fe;
  color: #6d28d9;
}

.tagged-claims .claim-item:nth-child(5) {
  background: #fff7ed;
  border-color: #fdba74;
}

.tagged-claims .claim-item:nth-child(5) .claim-tag {
  background: #fed7aa;
  color: #c2410c;
}

.tagged-claims .claim-item:nth-child(6) {
  background: #fdf2f8;
  border-color: #f9a8d4;
}

.tagged-claims .claim-item:nth-child(6) .claim-tag {
  background: #fce7f3;
  color: #9d174d;
}

/* ═══════════════════════════════════════════════ */
/* Triton red X indicator                         */
/* ═══════════════════════════════════════════════ */

.triton-no {
  color: #dc2626;
  font-weight: 900;
  font-size: 1.1em;
  margin-left: 2px;
}

.loc-hbar.triton-no-bar {
  background: transparent !important;
  border: 2px dashed #dc2626;
  min-width: 50px;
}

.loc-hbar-value.triton-no-label {
  color: #dc2626 !important;
  font-weight: 900;
}

/* ═══════════════════════════════════════════════ */
/* Pattern highlight / fade for optimization tabs  */
/* ═══════════════════════════════════════════════ */

.pattern-showcase .editor-body pre .hl-line {
  background: rgba(250, 204, 21, 0.12);
  border-left: 2px solid rgba(250, 204, 21, 0.6);
  margin-left: -16px;
  padding-left: 14px;
  display: inline-block;
  width: calc(100% + 16px);
}

.pattern-showcase .editor-body pre .fade-line {
  opacity: 0.35;
}

/* ═══════════════════════════════════════════════ */
/* Print / PDF                                    */
/* ═══════════════════════════════════════════════ */

/* era-split layout (from ai-coding-bp) */
.era-split {
  display: grid;
  grid-template-columns: 30% 1fr;
  gap: 28px;
  margin-top: 14px;
  align-items: start;
}
.era-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.era-right {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdff 0%, #f1f6ff 100%);
  border: 1px solid #d7e2f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.era-feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.era-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  border-left: 3px solid transparent;
  background: none;
  cursor: pointer;
  font-size: 0.72em;
  font-weight: 500;
  color: var(--fg-secondary);
  text-align: left;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.era-tab:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--fg);
}
.era-tab.active {
  border-left-color: var(--mint-600);
  background: rgba(52, 211, 153, 0.08);
  color: var(--mint-700);
  font-weight: 600;
}
.era-tab .tab-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint-100);
  font-size: 14px;
}
.era-tab.active .tab-icon {
  background: var(--mint-600);
  color: #fff;
  transform: scale(1.08);
  transition: transform 0.2s ease;
}
.era-feature-panel {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  animation: era-panel-in 0.3s ease;
}
.era-feature-panel.active {
  display: flex;
}
.era-feature-panel img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
@keyframes era-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cq-panel {
  padding: 20px 22px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.78em;
  line-height: 1.6;
}
.cq-panel h4 {
  margin: 0;
  font-size: 1.08em;
  font-weight: 700;
  color: var(--mint-400);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cq-panel h4::before {
  content: '';
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--mint-400);
}

@media print {
  .reveal .slides section { page-break-after: always; }
  .editor-body { max-height: none; overflow: visible; }
  .editor-code { max-height: none; overflow: visible; }
  .editor pre, .editor-code pre { max-height: none; overflow: visible; }
  .editor-tab { cursor: default; }
  .feature-card:hover { transform: none; box-shadow: none; }
}
