/* static.kaziureti.lt — shared stylesheet for all generated pages.
   Source of truth: template/site.css. Copied to html/assets/site.css on rebuild. */

:root {
  color-scheme: light dark;
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1c2029;
  --border: #2a2e37;
  --text: #e8eaed;
  --muted: #9aa3b2;
  --accent: #7fd1b9;
  --accent-dim: #4f9e88;
  --maxw: 46rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f8fa;
    --panel: #ffffff;
    --panel-2: #f1f3f7;
    --border: #dde1e8;
    --text: #1b1f27;
    --muted: #5d6675;
    --accent: #1f7a63;
    --accent-dim: #2e9b7f;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 2.5rem 1.25rem 4rem;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ---- header ---- */

.crumbs {
  font-size: .82rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  letter-spacing: .01em;
}
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--accent); border-bottom-color: var(--accent-dim); }
.crumbs span.sep { opacity: .5; padding: 0 .4rem; }

h1 {
  margin: 0 0 .4rem;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -.015em;
}

.lede {
  margin: 0 0 .75rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.meta {
  margin: 0 0 2.25rem;
  font-size: .78rem;
  color: var(--muted);
  opacity: .8;
  font-variant-numeric: tabular-nums;
}

/* ---- body content ---- */

.content > *:first-child { margin-top: 0; }

.content h2 {
  margin: 2.5rem 0 .6rem;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  padding-bottom: .35rem;
  border-bottom: 1px solid var(--border);
}

.content h3 { margin: 1.75rem 0 .4rem; font-size: 1.03rem; }

.content p, .content ul, .content ol, .content blockquote { margin: 0 0 1rem; }

.content ul, .content ol { padding-left: 1.35rem; }
.content li { margin: .3rem 0; }

.content a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-dim); }
.content a:hover { border-bottom-width: 2px; }

.content blockquote {
  padding: .1rem 0 .1rem 1rem;
  border-left: 3px solid var(--border);
  color: var(--muted);
}

.content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .88em;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .08em .35em;
}

.content pre {
  margin: 0 0 1rem;
  padding: .9rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
}
.content pre code { background: none; border: 0; padding: 0; font-size: .85rem; }

.content img, .content svg, .content video { max-width: 100%; height: auto; }

.content hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }

/* tables scroll inside their own box so the page never scrolls sideways */
.table-scroll, .content .table-scroll { overflow-x: auto; margin: 0 0 1rem; }
.content table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.content th, .content td {
  text-align: left;
  padding: .5rem .7rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.content th { color: var(--muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }

/* ---- page lists (index + child links) ---- */

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

.pages > li { margin: 0 0 .7rem; }

.pages a.card {
  display: block;
  padding: .85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  text-decoration: none;
  color: inherit;
  transition: border-color .12s ease, transform .12s ease;
}
.pages a.card:hover { border-color: var(--accent-dim); transform: translateY(-1px); }

.pages .t { display: block; font-weight: 600; font-size: 1rem; }
.pages .d { display: block; color: var(--muted); font-size: .88rem; margin-top: .15rem; }
.pages .u { display: block; color: var(--muted); font-size: .74rem; margin-top: .35rem; opacity: .75; font-variant-numeric: tabular-nums; }

/* nested children */
.pages ul.pages {
  margin: .7rem 0 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--border);
}
.pages ul.pages > li { margin-bottom: .5rem; }
.pages ul.pages .t { font-weight: 500; font-size: .95rem; }

.section-label {
  margin: 2.25rem 0 .8rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

.group-head {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  padding: .2rem 0 .1rem;
  color: var(--muted);
}

.empty {
  padding: 1.25rem;
  border: 1px dashed var(--border);
  border-radius: 9px;
  color: var(--muted);
  font-size: .92rem;
}

/* ---- footer ---- */

.foot {
  margin-top: 3.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--muted);
}
.foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid transparent; }
.foot a:hover { color: var(--accent); border-bottom-color: var(--accent-dim); }
.foot code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
