/* three91 colours and type, as in the app (styles.scss --t91-*) */
:root {
  --olive: #474B36;
  --olive-soft: #5A5E47;
  --olive-deep: #363927;
  --gold: #B09A40;
  --gold-bright: #C7AE49;
  --gold-deep: #8C7A33;
  --gold-bg: #EEE8C8;
  --ink: #1A1C18;
  --muted: #62665E;
  --line: #C2C6BC;
  --hover: #D6DACE;
  --bg: #ECEEE8;
  --card: #FFFFFF;
  --error: #881337;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 "Google Sans Flex", "Google Sans", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.top { background: var(--olive); color: #fff; }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { height: 46px; width: auto; display: block; }
.top-tag { font-size: 14px; font-weight: 600; letter-spacing: .4px; color: var(--gold-bright); }

.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding-top: 28px; padding-bottom: 48px; }
.toc { position: sticky; top: 16px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.toc a { color: var(--olive); text-decoration: none; padding: 5px 10px; border-radius: 8px; }
.toc a:hover { background: var(--hover); }

main section { background: var(--card); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px; scroll-margin-top: 16px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 10px; color: var(--olive-deep); }
h2 { font-size: 20px; margin: 0 0 12px; color: var(--olive-deep); word-break: break-word; }
.lead { font-size: 18px; color: var(--ink); }
.muted { color: var(--muted); }
a { color: var(--gold-deep); }
.verb { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .6px; background: var(--gold-bg); color: var(--gold-deep);
        border-radius: 6px; padding: 2px 8px; margin-right: 6px; vertical-align: middle; }
code { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: #F3F4EF; border-radius: 5px; padding: 1px 5px; }
pre { background: var(--olive-deep); color: #F1F2EC; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.5; }
pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 12px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid #E3E5DE; }
thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); font-weight: 600; }
.kv th { width: 120px; color: var(--muted); font-weight: 600; }
.fields td:first-child, .params td:first-child { white-space: nowrap; }
.fields td:nth-child(2) { color: var(--muted); white-space: nowrap; }
ol { padding-left: 22px; }
li { margin: 4px 0; }

@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; }
  main section { padding: 18px 16px; }
  .fields thead, .params thead { display: none; }
  .fields tr, .params tr { display: block; padding: 10px 0; border-bottom: 1px solid #E3E5DE; }
  .fields td, .params td { display: block; border: 0; padding: 2px 0; white-space: normal !important; }
  .kv th, .kv td { display: block; border: 0; padding: 2px 0; }
  .kv tr { display: block; padding: 8px 0; border-bottom: 1px solid #E3E5DE; }
}
