/* Kise legal site. The app's own colours and typeface; one bold element, the juniper band with its
   woven tibeb edge, and quiet reading surfaces under it. No scripts, no cookies, no outside requests. */
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('fonts/manrope-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('fonts/manrope-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('fonts/manrope-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('fonts/manrope-latin-800-normal.woff2') format('woff2'); }

:root {
  --bg: #f2f5f3; --card: #ffffff; --line: #dfe6e1; --line-2: #cfd9d3;
  --ink: #10261f; --ink-2: #4a5f57; --ink-3: #6c7f78;
  --brand: #0b6e5f; --brand-deep: #0b3b33; --gold: #f2bf45;
  --need-bg: #fff4d6; --need-edge: #ecc24a; --need-ink: #5c4300;
  --measure: 44rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1512; --card: #13241f; --line: #1f3530; --line-2: #2a443d;
    --ink: #e5efeb; --ink-2: #a6bab3; --ink-3: #8aa39b;
    --brand: #3cc3a8; --need-bg: #2f2709; --need-edge: #8a6d14; --need-ink: #f2d98a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 'Manrope', 'Noto Sans Ethiopic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overflow-wrap: break-word; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--measure) + 40px); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 5; }
.skip:focus { left: 12px; }

/* ---- the band ---- */
.band { position: relative; color: #f3fbf8; background: radial-gradient(130% 150% at 0% 0%, #13907b 0%, #0b6e5f 42%, #0b3b33 100%); padding: 18px 0 46px; }
.band::before { content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: var(--gold); opacity: .9; }
.band::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 7 7 1l7 6-7 6z' fill='%23f2bf45'/%3E%3Cpath d='M14 7l7-6 7 6-7 6z' fill='%23ffffff' fill-opacity='.85'/%3E%3Cpath d='M5 7l2-2 2 2-2 2zM19 7l2-2 2 2-2 2z' fill='%230b3b33'/%3E%3C/svg%3E") repeat-x left center / 28px 14px;
}
.band a { color: inherit; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; display: block; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 7px 12px; border-radius: 999px; }
.top nav a:hover { background: rgba(255, 255, 255, .12); }
.top nav a[aria-current='page'] { background: rgba(255, 255, 255, .16); }
.band h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; margin: 34px 0 8px; }
.band .lead { margin: 0; max-width: 34rem; font-size: 18px; line-height: 1.5; opacity: .92; }
.band .meta { margin: 16px 0 0; font-size: 14.5px; font-weight: 600; color: inherit; opacity: .85; }

/* ---- reading ---- */
main { padding: 28px 0 56px; }
h2 { font-size: 22px; line-height: 1.3; font-weight: 800; letter-spacing: -0.01em; margin: 40px 0 10px; }
h2.plain { margin-top: 32px; }
h3 { font-size: 17px; font-weight: 800; margin: 24px 0 6px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 1.25em; }
li { margin: 0 0 8px; }
li::marker { color: var(--brand); }
code { font: 600 0.9em ui-monospace, 'SF Mono', Menlo, Consolas, monospace; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.meta { color: var(--ink-2); font-size: 14.5px; }

.glance { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 8px; margin: 0 0 8px; }
.glance h2 { margin: 0 0 10px; font-size: 18px; }

.toc { margin: 22px 0 8px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.toc summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style-position: inside; }
.toc ol { list-style: none; margin: 0; padding: 0 0 12px; columns: 2 16rem; column-gap: 28px; }
.toc li { margin: 0; break-inside: avoid; }
.toc a { display: block; padding: 5px 0; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15.5px; }
.toc a:hover { color: var(--brand); text-decoration: underline; }

.table-wrap { overflow-x: auto; margin: 0 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { font-weight: 800; font-size: 14px; color: var(--ink-2); }
@media (max-width: 560px) {
  /* a table becomes a stack of labelled blocks: nothing to scroll sideways on a phone */
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { display: block; padding: 2px 0; border: 0; }
  td:first-child { font-weight: 700; }
  td:not(:first-child) { color: var(--ink-2); }
  td[data-label]::before { content: attr(data-label) ': '; font-weight: 700; color: var(--ink); }
}

.doc-list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0 0 10px; }
.doc-list a { display: flex; align-items: center; gap: 12px; padding: 16px 18px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.doc-list a:last-child { border-bottom: 0; }
.doc-list a:hover { background: color-mix(in srgb, var(--brand) 7%, var(--card)); }
.doc-list .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.doc-list strong { font-weight: 800; font-size: 18px; }
.doc-list .grow span { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.doc-list .chev { color: var(--ink-3); font-size: 26px; line-height: 1; }

/* ---- draft: details the publisher still has to supply ---- */
.need { background: var(--need-bg); color: var(--need-ink); border: 1px dashed var(--need-edge); border-radius: 6px; padding: 0 5px; font-weight: 700; }
.draft { background: var(--need-bg); color: var(--need-ink); border-bottom: 1px solid var(--need-edge); font-size: 14.5px; font-weight: 700; padding: 8px 0; }

footer { border-top: 1px solid var(--line-2); padding: 22px 0 40px; color: var(--ink-2); font-size: 14.5px; }
footer .wrap { display: flex; gap: 8px 18px; flex-wrap: wrap; justify-content: space-between; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-2); font-weight: 600; }

@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .band { background: none; color: #000; padding: 0 0 8px; }
  .band::before, .band::after, .top nav, .toc, footer nav, .skip, .draft { display: none; }
  .glance, .table-wrap { border-color: #999; }
  a { color: #000; }
}
