/* ---------- Strekkeseneskader theme ---------- */
/* Built on top of reveal.js "white" theme; overrides only what we need. */

:root {
  --accent: #0d5b8e;          /* clinical blue */
  --accent-soft: #e6f0f7;     /* tinted callout background */
  --rule: #c7d3dd;            /* horizontal rule */
  --text: #1a2733;
  --muted: #5a6b78;
}

.reveal {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
}

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

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: inherit;
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: 0.6em;
}

.reveal h1 { font-size: 2.2em; margin-bottom: 0.4em; }
.reveal h2 { font-size: 1.4em; margin-bottom: 0.4em; }
.reveal h3 { font-size: 1.1em; margin-bottom: 0.3em; }

.reveal p,
.reveal li {
  font-size: 0.7em;
  line-height: 1.35;
}

.reveal ul, .reveal ol {
  display: block;
  margin-left: 1.1em;
  margin-top: 0.2em;
}

.reveal li + li {
  margin-top: 0.2em;
}

.reveal li ul,
.reveal li ol {
  margin-top: 0.15em;
}

.reveal strong {
  color: var(--accent);
}

/* Title slide */
.reveal section.title h1 {
  font-size: 2.6em;
  margin-bottom: 0.3em;
}
.reveal section.title .meta {
  color: var(--muted);
  font-size: 0.7em;
  line-height: 1.5;
  margin-top: 1.5em;
}
.reveal section.title .meta span { display: block; }

/* Two-column layout for image + text.
   max-height is canvas-relative (px), NOT viewport-relative (vh).
   Reveal canvas is 1280x800; we cap images at ~520px so text always fits. */
.reveal .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2em;
  align-items: center;
}
.reveal .cols.wide-img {
  grid-template-columns: 1.4fr 1fr;
}
.reveal .cols img {
  max-width: 100%;
  max-height: 520px;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

/* Full-bleed image slide */
.reveal section.image-only {
  text-align: center;
}
.reveal section.image-only img {
  max-height: 560px;
  max-width: 90%;
}

/* Clinical callout — used for huskeregler ("1 mm = 25°") */
.reveal .callout {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  padding: 0.45em 0.75em;
  margin: 0.5em 0;
  font-size: 0.7em;
  line-height: 1.35;
  border-radius: 0 3px 3px 0;
}
.reveal .callout strong { color: var(--accent); }

/* Doyle / classification table */
.reveal table.doyle {
  font-size: 0.55em;
  border-collapse: collapse;
  width: 100%;
  margin-top: 0.3em;
}
.reveal table.doyle th,
.reveal table.doyle td {
  border: 1px solid var(--rule);
  padding: 0.3em 0.5em;
  text-align: left;
  vertical-align: top;
}
.reveal table.doyle th {
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

/* Reference / footer line on title and last slide */
.reveal .source {
  color: var(--muted);
  font-size: 0.55em;
  font-style: italic;
}

/* Slide number style */
.reveal .slide-number {
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-family: inherit;
}
