/* Cobija public pages. Deliberately small and dependency-free: these are legal
   documents that must load fast, print cleanly, and stay readable for older
   eyes. Palette follows the app's Morning Garden / Twilight Calm themes. */

:root {
  --bg: #fdfaf6;
  --surface: #ffffff;
  --ink: #2b2b2b;
  --ink-soft: #5c5c5c;
  --accent: #437052;
  --accent-bg: #e4f1ec;
  --rule: #e6ded4;
  --warn-bg: #f9e8d8;
  --warn-ink: #8a3616;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1b22;
    --surface: #23232c;
    --ink: #ece7e1;
    --ink-soft: #b3aca4;
    --accent: #7fc79b;
    --accent-bg: #1b3a2e;
    --rule: #34343f;
    --warn-bg: #3a2a1e;
    --warn-ink: #ffb184;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  /* 18px base: the audience skews older, and this is dense prose. */
  font: 18px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 5rem; }

header.site {
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.brand span { color: var(--ink-soft); font-weight: 400; font-size: 1rem; }

nav a { color: var(--ink-soft); text-decoration: none; margin-left: 1rem; font-size: 0.95rem; }
nav a:hover, nav a:focus { color: var(--accent); text-decoration: underline; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
h2 { font-size: 1.3rem; margin: 2.5rem 0 0.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; margin: 1.75rem 0 0.5rem; }

.updated { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 2rem; }

p, li { color: var(--ink); }
a { color: var(--accent); }

ul, ol { padding-left: 1.35rem; }
li { margin: 0.4rem 0; }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.card h3 { margin-top: 0; }

.callout {
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout strong { color: inherit; }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin: 1rem 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
}

table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink-soft); font-weight: 600; }

.table-scroll { overflow-x: auto; }

footer.site {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding-top: 1.25rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer.site a { color: var(--ink-soft); }

@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  header.site nav, footer.site { display: none; }
}
