/* Straumēnu muiža Vikipēdijā: prezentācija valdei (2026-10-05). Gaišs fons, sistēmas fonti ar latviešu diakritiku. */
:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --bg-panel: #eaecf0;
  --text: #202122;
  --muted: #54595d;
  --border: #c8ccd1;
  --border-strong: #a2a9b1;
  --link: #0645ad;
  --link-visited: #0b0080;
  --wl: #3366cc;
  --banner-bg: #fef6e7;
  --banner-border: #e8b10d;
  --vajag: #8a5300;
  --ok-bg: #d5fdf4; --ok-text: #0e5c49;
  --warn-bg: #fef6e7; --warn-text: #6b4a00;
  --q-bg: #eaf3ff; --q-text: #1d4b8f;
  --no-bg: #fee7e6; --no-text: #8c1c13;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Liberation Sans", "DejaVu Sans", sans-serif;
  --serif: "Linux Libertine", Georgia, "Times New Roman", "Liberation Serif", "DejaVu Serif", serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; overflow-wrap: break-word; }
a { color: var(--link); }
a:visited { color: var(--link-visited); }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: var(--bg); padding: 6px 10px; z-index: 10; }

/* Kopīgā izvēlne */
.top { background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.top-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.top-title { font-weight: 600; margin-right: auto; }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.top nav a { text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
.top nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }
.top nav a:hover { border-bottom-color: var(--link); }

/* Josla: prototips */
.josla { background: var(--banner-bg); border-bottom: 1px solid var(--banner-border); }
.josla p { max-width: 1100px; margin: 0 auto; padding: 10px 16px; font-weight: 600; }

main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 48px; }
.saturs-lapa { max-width: 900px; }
h1 { font-family: var(--serif); font-weight: normal; font-size: 2rem; line-height: 1.25; margin: 0.4em 0 0.2em; }
h2 { font-family: var(--serif); font-weight: normal; font-size: 1.55rem; line-height: 1.3; margin: 1.4em 0 0.4em; padding-bottom: 0.15em; border-bottom: 1px solid var(--border-strong); }
h3 { font-size: 1.12rem; margin: 1.2em 0 0.3em; }
.apaksv { color: var(--muted); margin: 0 0 1em; }
.datumi { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.5em 0 1em; padding: 0; list-style: none; }
.datumi li { background: var(--bg-panel); padding: 4px 10px; border-radius: 3px; font-size: 0.95rem; }

/* Skaitļi */
.skaitli { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 1em 0; padding: 0; list-style: none; }
.skaitli li { border: 1px solid var(--border); border-radius: 4px; padding: 12px 14px; background: var(--bg); }
.skaitli .sk { display: block; font-size: 1.9rem; font-weight: 600; line-height: 1.2; }
.skaitli .ko { display: block; font-weight: 600; }
.skaitli .izc { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 4px; }

/* Tīkla shēma */
.shema { display: grid; grid-template-columns: 1fr minmax(220px, 1.1fr) 1fr; gap: 14px; align-items: stretch; margin: 1em 0; }
.shema .grupa { border: 1px solid var(--border); border-radius: 4px; padding: 10px 12px; background: var(--bg-soft); }
.shema .grupa h3 { margin: 0 0 6px; font-size: 1rem; }
.shema ul { margin: 0; padding-left: 1.1em; }
.shema .centrs { border: 2px solid var(--text); background: var(--bg); display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 14px; border-radius: 6px; }
.shema .centrs strong { font-family: var(--serif); font-size: 1.35rem; font-weight: normal; }
.shema .apaksa { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.shema .bulta { color: var(--muted); font-size: 0.9rem; }
.leg { color: var(--muted); font-size: 0.9rem; }

/* Saraksti ar soļiem */
ol.soli > li { margin-bottom: 0.6em; }
.pabeigts { display: block; color: var(--muted); font-size: 0.92rem; }

/* Tabulas (mobilajā ekrānā kartītes) */
table { border-collapse: collapse; width: 100%; margin: 0.6em 0 1.2em; font-size: 0.95rem; }
th, td { border: 1px solid var(--border); padding: 6px 8px; text-align: left; vertical-align: top; }
th { background: var(--bg-panel); }
td.id, th.id { white-space: nowrap; }
.atsauce-id { font-family: ui-monospace, "DejaVu Sans Mono", "Liberation Mono", monospace; font-size: 0.85em; }
@media (max-width: 720px) {
  table.kartites, table.kartites tbody, table.kartites tr, table.kartites td { display: block; width: 100%; }
  table.kartites thead { display: none; }
  table.kartites tr { border: 1px solid var(--border); border-radius: 4px; margin-bottom: 10px; padding: 6px 8px; }
  table.kartites td { border: 0; padding: 3px 0; }
  table.kartites td[data-l]::before { content: attr(data-l) ": "; font-weight: 600; }
}

/* Statusi */
.st { display: inline-block; padding: 1px 7px; border-radius: 3px; font-size: 0.88rem; line-height: 1.5; }
.st-ok { background: var(--ok-bg); color: var(--ok-text); }
.st-warn { background: var(--warn-bg); color: var(--warn-text); }
.st-q { background: var(--q-bg); color: var(--q-text); }
.st-no { background: var(--no-bg); color: var(--no-text); }

details { border: 1px solid var(--border); border-radius: 4px; margin: 0 0 10px; background: var(--bg); }
details > summary { cursor: pointer; padding: 8px 12px; font-weight: 600; background: var(--bg-soft); }
details > div { padding: 4px 12px 8px; }

/* Raksta prototips (Vikipēdijas izkārtojums bez logo un nosaukuma) */
.raksts h1 { border-bottom: 1px solid var(--border-strong); padding-bottom: 0.1em; margin-bottom: 0.1em; }
.raksts .no { color: var(--muted); font-size: 0.9rem; margin: 0 0 1em; }
.raksts p { margin: 0.5em 0 0.8em; }
.wl { color: var(--wl); }
sup { line-height: 0; font-size: 0.75em; }
sup.ref a, sup.piez a { text-decoration: none; }
sup.vajag { color: var(--vajag); font-style: italic; white-space: nowrap; }
sup.parb a { background: var(--bg-panel); color: var(--text); text-decoration: none; padding: 0 3px; border-radius: 2px; font-size: 0.95em; }
.infokaste { float: right; clear: right; width: 300px; margin: 0 0 1em 1.4em; border: 1px solid var(--border-strong); background: var(--bg-soft); font-size: 0.9rem; line-height: 1.45; }
.infokaste caption { font-weight: 600; font-size: 1.1rem; padding: 6px; }
.infokaste th, .infokaste td { border: 0; padding: 4px 8px; }
.infokaste th { background: transparent; width: 40%; }
.infokaste .att td { text-align: center; padding: 6px; }
.infokaste figure { margin: 0; }
.attr { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.4; margin-top: 3px; }
.toc { display: inline-block; border: 1px solid var(--border-strong); background: var(--bg-soft); padding: 8px 14px; margin: 0.5em 0 1em; font-size: 0.95rem; }
.toc h2 { border: 0; margin: 0 0 4px; font-family: var(--sans); font-size: 1rem; font-weight: 600; text-align: center; }
.toc ol { margin: 0; padding-left: 1.2em; }
.galerija { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 0.8em 0; }
.galerija figure { margin: 0; border: 1px solid var(--border); padding: 6px; background: var(--bg-soft); }
.galerija img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerija figcaption { font-size: 0.9rem; margin-top: 4px; }
.atsauces { font-size: 0.9rem; columns: 2 380px; column-gap: 2em; }
.atsauces li { break-inside: avoid; margin-bottom: 4px; overflow-wrap: anywhere; }
.atsauces li:target, .parbaudit li:target, .piezimes li:target { background: var(--q-bg); }
.parbaudit { font-size: 0.92rem; }
/* Jautājumi redaktorei (14.10.2026): atzīmes J1, J2 … zilganas, lai atšķirtos no pelēkajām P */
sup.jaut a { background: var(--q-bg); color: var(--q-text); }
.parbaudit.jautajumi { font-size: 1rem; }
.jautajumi li { margin-bottom: 0.5em; }
.kategorijas { border: 1px solid var(--border); background: var(--bg-soft); padding: 6px 10px; font-size: 0.9rem; margin-top: 1.5em; }
.navkaste { border: 1px solid var(--border-strong); margin-top: 1.2em; font-size: 0.9rem; }
.navkaste .nk-v { background: var(--bg-panel); text-align: center; font-weight: 600; padding: 4px; }
.navkaste .nk-r { padding: 6px 10px; }
.clear { clear: both; }
@media (max-width: 720px) {
  .infokaste { float: none; width: 100%; margin: 0 0 1em; }
  .shema { grid-template-columns: 1fr; }
  h1 { font-size: 1.7rem; }
  .atsauces { columns: 1; }
}
footer.kajene { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
footer.kajene div { max-width: 1100px; margin: 0 auto; padding: 12px 16px 28px; }
