/* Shared styling for the public documentation pages on mysovereign.ai.
   Deliberately small and dependency-free, like everything else here.
   External file (not inline) so the pages also render correctly under the
   strict CSP the product's own server sends. */

:root {
  --ground: #faf9f5;
  --sheet: #ffffff;
  --ink: #1f1e1d;
  --dim: #6b635c;
  --terra: #a6522a;
  --terra-soft: #f3e5da;
  --mass: #1f1e1d;
  --on-mass: #f0eee6;
  --rule: #e5ded2;
  --ok: #2f6b46;
  --warn: #8a5a12;
  --stop: #96341f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #1a1918;
    --sheet: #222120;
    --ink: #f0eee6;
    --dim: #a39a91;
    --terra: #d97757;
    --terra-soft: #37271f;
    --mass: #121110;
    --on-mass: #f0eee6;
    --rule: #35312d;
    --ok: #7bbd95;
    --warn: #d9ab63;
    --stop: #e08a72;
  }
}
/* The named themes, spoken here in the same vocabulary as everywhere else:
   the shell sets data-theme to cielo, bottega, or notte, and every surface
   understands all three. (dark/light are kept as aliases so older stored
   choices and shared ?theme= links keep working.) */
:root[data-theme="notte"] {
  --ground: #1a1918;
  --sheet: #222120;
  --ink: #f0eee6;
  --dim: #a39a91;
  --terra: #d97757;
  --terra-soft: #37271f;
  --mass: #121110;
  --on-mass: #f0eee6;
  --rule: #35312d;
  --ok: #7bbd95;
  --warn: #d9ab63;
  --stop: #e08a72;
}
:root[data-theme="bottega"] {
  --ground: #faf9f5;
  --sheet: #ffffff;
  --ink: #1f1e1d;
  --dim: #6b635c;
  --terra: #a6522a;
  --terra-soft: #f3e5da;
  --mass: #1f1e1d;
  --on-mass: #f0eee6;
  --rule: #e5ded2;
  --ok: #2f6b46;
  --warn: #8a5a12;
  --stop: #96341f;
}
/* Cielo keeps the open-sky bias: the same paper, cooled, with azure standing
   in for terracotta on links and rules. */
:root[data-theme="cielo"] {
  --ground: #f8f6f0;
  --sheet: #ffffff;
  --ink: #0e2a45;
  --dim: #5b6b7c;
  --terra: #0f70b8;
  --terra-soft: #e2eef8;
  --mass: #133150;
  --on-mass: #f8f3e7;
  --rule: #dbe3ea;
  --ok: #2f6b46;
  --warn: #8a5a12;
  --stop: #96341f;
}
:root[data-theme="dark"] {
  --ground: #1a1918;
  --sheet: #222120;
  --ink: #f0eee6;
  --dim: #a39a91;
  --terra: #d97757;
  --terra-soft: #37271f;
  --mass: #121110;
  --on-mass: #f0eee6;
  --rule: #35312d;
  --ok: #7bbd95;
  --warn: #d9ab63;
  --stop: #e08a72;
}
:root[data-theme="light"] {
  --ground: #faf9f5;
  --sheet: #ffffff;
  --ink: #1f1e1d;
  --dim: #6b635c;
  --terra: #a6522a;
  --terra-soft: #f3e5da;
  --mass: #1f1e1d;
  --on-mass: #f0eee6;
  --rule: #e5ded2;
  --ok: #2f6b46;
  --warn: #8a5a12;
  --stop: #96341f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.68;
}
.serif {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.wrap { width: min(100% - 40px, 720px); margin-inline: auto; }

/* masthead: the brand's grounded dark mass */
.top { background: var(--mass); color: var(--on-mass); }
.top .wrap { display: flex; align-items: center; gap: 14px; padding: 16px 0; flex-wrap: wrap; }
.top a { color: var(--on-mass); text-decoration: none; font-size: 0.82rem; opacity: 0.72; }
.top a:hover, .top a:focus-visible { opacity: 1; color: #e9a086; }
.top .home { display: flex; align-items: center; gap: 9px; opacity: 1; font-weight: 650; }
.top svg { width: 22px; height: 22px; display: block; }
.top nav { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; }

main { padding: 44px 0 70px; }
.eyebrow {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--terra); margin: 0 0 14px;
}
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); line-height: 1.14; margin: 0 0 18px; }
.lede { font-size: 1.12rem; color: var(--dim); margin: 0 0 34px; }
h2 { font-size: 1.45rem; margin: 42px 0 12px; line-height: 1.25; }
h3 { font-size: 1.12rem; margin: 30px 0 10px; line-height: 1.3; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
a { color: var(--terra); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
strong, b { font-weight: 650; }
code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88em; background: var(--terra-soft); padding: 1px 5px; border-radius: 3px;
}
hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }

/* the answer block: the first thing a reader (or an answer engine) should take */
.answer {
  background: var(--sheet); border: 1px solid var(--rule);
  border-left: 3px solid var(--terra);
  border-radius: 4px; padding: 20px 22px; margin: 0 0 32px;
}
.answer > *:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 0 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 0.88rem; min-width: 560px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 650; }
.s-ok { color: var(--ok); font-weight: 650; white-space: nowrap; }
.s-warn { color: var(--warn); font-weight: 650; white-space: nowrap; }
.s-stop { color: var(--stop); font-weight: 650; white-space: nowrap; }

.qa { border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 22px; }
.qa h3 { margin-top: 0; }

.cta {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: 4px;
  padding: 24px; margin: 44px 0 0;
}
.cta > *:last-child { margin-bottom: 0; }
.btn {
  display: inline-block; background: var(--terra); color: #fff; text-decoration: none;
  border-radius: 8px; padding: 11px 22px; font-size: 0.9rem; font-weight: 650;
}
.btn:hover { filter: brightness(1.06); }

footer {
  border-top: 1px solid var(--rule); padding: 26px 0 60px;
  font-size: 0.8rem; color: var(--dim);
}
footer a { color: var(--dim); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  main { padding: 32px 0 50px; }
}
