/* kml-tool.css: styles for the features2text download page, one light column with one accent
   Created by LT Sean Egan, PhD, 2026-10-22
   Modified: SDE 2026-10-22  Shorter, lighter page: one narrow column, one accent, no header bar.
   Modified: SDE 2026-10-22  Example section: two figures side by side, section heading, buttons class. */

:root {
  --bg: #ffffff;
  --ink: #24292e;
  --muted: #6b7680;
  --code: #f4f5f6;
  --accent: #0a64a4;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16191c;
    --ink: #e6e9ec;
    --muted: #9aa4ad;
    --code: #1f2428;
    --accent: #6cb4ea;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  overflow-wrap: break-word;
}

main {
  max-width: 35rem;
  margin: 0 auto;
  padding: 2.25rem 16px 2.5rem;
}

@media (min-width: 40rem) {
  body { font-size: 17px; }
  main { padding-top: 4rem; }
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  line-height: 1.3;
  font-weight: 650;
}

p, ul, pre, figure { margin: 0 0 1.1rem; }

section { margin-top: 2.25rem; }

h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  line-height: 1.3;
  font-weight: 650;
}

a { color: var(--accent); text-underline-offset: 0.15em; }

a span {
  display: inline-block;
  margin-left: 0.35em;
  color: var(--muted);
  font-size: 0.85em;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
}

.button {
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.small { font-size: 0.85rem; color: var(--muted); }

.small a { color: inherit; }

.plain { list-style: none; padding: 0; }

.plain li { margin-bottom: 0.7rem; }

code, pre { font-family: var(--mono); font-size: 0.84rem; }

pre {
  padding: 0.75rem 1rem;
  overflow-x: auto;
  line-height: 1.5;
  background: var(--code);
  border-radius: 8px;
}

pre.cmd { margin-bottom: 0.4rem; white-space: pre-wrap; }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.1rem;
}

@media (max-width: 34rem) {
  .pair { grid-template-columns: 1fr; }
}

figure { margin: 0; }

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

figcaption {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}
