/* GENERATED — do not edit by hand. Run: node scripts/compose-css.mjs (kartta) */
/* Suomi2 shared base — apex, id, f, c, and kartta all start here. */
:root {
  color-scheme: light;
  --fg: #111;
  --muted: #444;
  --line: #aaa;
  --line-soft: #ccc;
  --paper: #fff;
  --link: #0000b8;
  --visited: #551a8b;
  --control-border: #777;
  --button-bg: #eee;
  --button-border: #555;
  --warn-bg: #ffc;
  --error: #7a1f1f;
  --font: Verdana, Geneva, Tahoma, sans-serif;
  --measure: 720px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
}
.site-nav {
  max-width: var(--measure);
  margin: 18px auto 0;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
  font-size: 13px;
  line-height: 1.5;
}
.site-nav a { text-decoration: none; color: var(--link); }
.site-nav a:visited { color: var(--visited); }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { font-weight: bold; color: var(--fg); }
main {
  max-width: var(--measure);
  margin: 24px auto 28px;
  padding: 0 24px;
}
h1 { font-size: 25px; line-height: 1.3; margin: 0 0 25px; letter-spacing: -0.55px; }
h2 { font-size: 17px; line-height: 1.4; margin: 0 0 12px; }
h3 { font-size: 15px; line-height: 1.4; margin: 18px 0 8px; }
p { margin: 0 0 18px; }
ul, ol { margin: 0 0 18px; padding-left: 1.25rem; }
li { margin: 0 0 8px; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.muted { font-size: 13px; color: var(--muted); }
.small, .help { font-size: 12px; color: var(--muted); line-height: 1.6; }
.meta { color: var(--muted); font-size: 13px; }
label { display: block; margin: 0.75rem 0 0.25rem; }
.field { display: block; font-weight: bold; margin-bottom: 5px; }
input[type="email"],
input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid var(--control-border);
  border-radius: 0;
  background: var(--paper);
  color: var(--fg);
  font: inherit;
  padding: 8px 10px;
}
input[readonly] { background: #fafafa; }
textarea { min-height: 120px; resize: vertical; }
button,
.button,
.btn {
  font: bold 14px var(--font);
  border: 1px solid var(--button-border);
  border-radius: 0;
  padding: 10px 16px;
  background: var(--button-bg);
  color: var(--fg);
  cursor: pointer;
  min-height: 42px;
  margin-top: 8px;
  text-decoration: none;
  display: inline-block;
}
button:hover,
.button:hover,
.btn:hover { background: #ddd; }
button:active,
.button:active { background: #ccc; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
button:visited,
.button:visited { color: var(--fg); }
footer {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 32px;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
}
.note {
  border-left: 3px solid #666;
  padding-left: 0.75rem;
  margin: 1rem 0;
  color: #333;
}
.note.err,
.err { color: var(--error); }
.note.warn,
.warn { border-left-color: #a67c00; }
.notice.warning,
.warning {
  background: var(--warn-bg);
  border: 1px solid #cc9;
  padding: 0.5rem 0.65rem;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--paper);
  padding: 8px;
}
.skip:focus { top: 8px; }
.dev {
  border: 1px dashed #777;
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 24px;
}
.inline-form { display: inline; margin: 0; }
.inline-form button {
  margin-top: 0;
  margin-left: 8px;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
}
form.nav-form { display: inline; }
@media (max-width: 520px) {
  main { margin: 25px auto; padding: 0 18px; }
  .site-nav { padding: 0 18px; }
  h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
@media print {
  .site-nav, .skip, form, button, .dev { display: none; }
  main { max-width: none; margin: 0; }
}

/* Kartta surface extras on top of suomi2-base. */
h1 { margin-bottom: 18px; }
h2 { margin-top: 28px; scroll-margin-top: 12px; }
p { margin-bottom: 14px; }
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 0 0 22px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.loop {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  margin: 0 0 18px;
}
.loop h2 { margin-top: 0; }
.steps-line { font-size: 14px; color: #333; }
.cluster-note {
  font-size: 13px;
  color: #333;
  margin: 0 0 12px;
  padding: 0 0 0 10px;
  border-left: 2px solid #888;
}
.role { color: #333; font-size: 13px; }
li[data-scene-id] { margin: 0 0 10px; }
details { margin: 18px 0; padding: 12px 0; border-top: 1px solid var(--line-soft); }
summary { cursor: pointer; font-weight: bold; font-size: 15px; }
details p, details ol, details ul { margin-top: 10px; }
section + section { border-top: 1px solid #ddd; padding-top: 4px; }
ul.dir { margin: 0 0 16px; padding-left: 1.15rem; font-size: 13px; line-height: 1.55; }
ul.dir li { margin: 0 0 10px; }
details#funktiot ol { margin: 8px 0 12px; padding-left: 1.25rem; }
details#funktiot li { margin: 0 0 6px; }
footer { line-height: 1.7; margin-top: 28px; }
@media print {
  .toc { display: none; }
}
.language-switch { white-space: nowrap; }
.language-switch a[aria-current="page"] { font-weight: bold; color: var(--fg); }
