/* CLARIN.SI slide theme for reveal.js — edit colours here */
:root {
  --navy: #004171;        /* CLARIN.SI logo navy */
  --lavender: #7478b3;    /* CLARIN.SI logo secondary */
  --blue: #2f6fd6;        /* chart accent, same as the overview charts */
  --ink: #1f2328;
  --muted: #59636e;
  --line: #e3e6ea;
  --soft: #f3f6fa;
}

.reveal-viewport { background: #ffffff; }
.reveal {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 30px;
  color: var(--ink);
}
.reveal .slides { text-align: left; }
.reveal .slides section { padding: 0 8px; box-sizing: border-box; height: 100%; }

.reveal h1, .reveal h2, .reveal h3 {
  color: var(--navy); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15;
  margin: 0 0 0.5em 0; text-transform: none;
}
.reveal h1 { font-size: 2.0em; }
.reveal h2 { font-size: 1.45em; padding-right: 220px; }   /* leave room for the logo */
.reveal h3 { font-size: 1.0em; color: var(--ink); margin-bottom: 0.3em; }
.reveal p { margin: 0 0 0.6em 0; line-height: 1.4; }
.reveal ul, .reveal ol { margin: 0 0 0.6em 1.1em; display: block; }
.reveal li { margin: 0.25em 0; line-height: 1.35; }
.reveal li::marker { color: var(--blue); }
.reveal a { color: var(--blue); text-decoration: none; }
.reveal a:hover { text-decoration: underline; }
.reveal strong { color: inherit; font-weight: 700; }
.reveal code { font-size: 0.85em; background: var(--soft); padding: 0.05em 0.3em; border-radius: 4px; }

/* Lead sentence under a heading */
.reveal .lead { font-size: 1.05em; color: var(--ink); margin-bottom: 0.8em; }
.reveal .muted { color: var(--muted); }
.reveal .small { font-size: 0.82em; }
.reveal .tiny { font-size: 0.6em; color: var(--muted); }

/* Logo and footer on every slide */
.logo { position: fixed; top: 22px; right: 30px; z-index: 30; }
.logo img { height: 58px; display: block; }
.footer { position: fixed; bottom: 14px; left: 30px; z-index: 30; font-size: 13px; color: var(--muted); font-family: "Inter", sans-serif; }
.reveal .slide-number { background: transparent; color: var(--muted); font-size: 13px; right: 24px; bottom: 12px; }
.reveal-viewport.title-slide .reveal > .logo, .reveal-viewport.title-slide .reveal > .footer,
.reveal-viewport.section-slide .reveal > .logo, .reveal-viewport.section-slide .reveal > .footer { display: none; }

/* Title slide */
.reveal .title-wrap { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.reveal .title-wrap img { height: 110px; width: auto; margin: 0 0 1.2em 0; align-self: flex-start; }
.reveal .title-wrap h1 { font-size: 2.1em; margin-bottom: 0.3em; }
.reveal .title-wrap .sub { font-size: 1.1em; color: var(--muted); margin-bottom: 1.6em; }
.reveal .title-wrap .who { font-size: 0.85em; }

/* Section divider slides (navy background set per slide) */
.reveal .section-wrap { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.reveal .section-wrap .kicker { color: #b9c3f0; font-size: 0.8em; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.4em; }
.reveal .section-wrap h1 { color: #ffffff; font-size: 2.2em; margin-bottom: 0.4em; }
.reveal .section-wrap p { color: #dfe6f5; font-size: 1.0em; max-width: 900px; }

/* Stat cards */
.reveal .stats { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 18px; margin: 0.4em 0 0.9em 0; }
.reveal .stat { background: var(--soft); border-radius: 10px; padding: 16px 18px; border-left: 5px solid var(--blue); }
.reveal .stat .num { font-size: 1.55em; font-weight: 700; color: var(--navy); line-height: 1.1; }
.reveal .stat .lbl { font-size: 0.62em; color: var(--muted); margin-top: 6px; line-height: 1.3; }

/* Columns */
.reveal .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.reveal .cols.w60 { grid-template-columns: 3fr 2fr; }
.reveal .cols.w40 { grid-template-columns: 2fr 3fr; }

/* Cards for lists of things */
.reveal .cards { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 16px; }
.reveal .card { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; font-size: 0.85em; line-height: 1.38; }
.reveal .card h3 { font-size: 1.2em; color: var(--navy); margin-bottom: 0.25em; }
.reveal .card p { margin: 0.2em 0; }

/* Tables */
.reveal table { border-collapse: collapse; font-size: 0.72em; width: 100%; margin: 0.2em 0 0.6em 0; }
.reveal table th { text-align: left; color: var(--navy); border-bottom: 2px solid var(--navy); padding: 8px 12px; font-weight: 700; }
.reveal table td { border-bottom: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.reveal table td.r, .reveal table th.r { text-align: right; }

/* Charts and images */
.reveal img { margin: 0; }
.reveal img.chart { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; margin: 0 auto; }
.reveal .center { text-align: center; }

/* Small coloured labels */
.reveal .tag { display: inline-block; font-size: 0.6em; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--navy); margin-right: 4px; vertical-align: middle; }
.reveal .tag.ok { background: #e3f3e8; color: #1c6b37; }
.reveal .tag.nc { background: #fff1d6; color: #8a5a00; }
.reveal .tag.no { background: #fde7e7; color: #9a2323; }

/* Callout box */
.reveal .callout { background: var(--soft); border-left: 5px solid var(--navy); padding: 12px 18px; border-radius: 6px; font-size: 0.85em; margin-top: 0.6em; line-height: 1.4; }

.reveal table .tag { font-size: 0.85em; }
.reveal table.big { font-size: 0.82em; }

/* Mini bar charts (language distributions) */
.reveal .minibars { margin-top: 0.8em; font-size: 0.62em; }
.reveal .minibars .mb-cap { color: var(--muted); margin-bottom: 6px; }
.reveal .minibars .mb-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; margin: 4px 0; }
.reveal .minibars .mb-lab { text-align: right; color: var(--ink); }
.reveal .minibars .mb-track { display: flex; align-items: center; gap: 6px; }
.reveal .minibars .mb-bar { display: inline-block; height: 18px; border-radius: 2px; background: var(--blue); }
.reveal .minibars .mb-bar.o { background: #c9c7bd; }
.reveal .minibars .mb-val { color: var(--ink); }
