/* ZETai design guide: Ivory background, Ink text, Slate secondary, white cards with #DAD4C6 border,
   Blue primary accent, Vermillion sparing highlights, Green confirmed. Montserrat (Arial fallback).
   Academic restraint: whitespace over decoration; numbered dots and thin-bordered cards only. */
:root {
  --ivory: #F7F4EC; --ink: #1A1917; --slate: #5B5850; --card: #FFFFFF; --border: #DAD4C6;
  --blue: #0072B2; --verm: #D55E00; --green: #009E73;
}
* { box-sizing: border-box; }
/* always reserve the scrollbar: a panel that lengthens the page must not reflow it */
html { scrollbar-gutter: stable; }
html, body { margin: 0; padding: 0; background: var(--ivory); color: var(--ink);
  font-family: "Montserrat", Arial, Helvetica, sans-serif; font-weight: 300; font-size: 15px; line-height: 1.55; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 700; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: 30px; line-height: 1.2; }
h2 { font-size: 20px; }
h3 { font-size: 15px; }
p { margin: .3em 0 .9em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 40px 60px; }
header.top { display: flex; justify-content: space-between; align-items: center; padding: 22px 40px 0; max-width: 1120px; margin: 0 auto; }
header.top nav a { margin-right: 22px; color: var(--slate); font-size: 13px; }
header.top nav a.active { color: var(--ink); font-weight: 700; }
header.top img.logo { height: 34px; }
.kicker { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; font-weight: 400; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 22px 26px; margin: 16px 0; }
.card.ink { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.card.ink a { color: #9fd0ee; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1fr 1fr; }
.grid.three { grid-template-columns: 1fr 1fr 1fr; }
.grid.split { grid-template-columns: 1fr 300px; gap: 26px; align-items: start; }
/* Anything wider than the screen scrolls inside its own box rather than pushing the page sideways. */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 800px) {
  .grid.two, .grid.three, .grid.split { grid-template-columns: 1fr; }
  .wrap, header.top { padding-left: 18px; padding-right: 18px; }
  header.top { flex-wrap: wrap; gap: 10px; }
  h1 { font-size: 26px; }
  .scroll-x table { min-width: 560px; }
  /* the rendered guideline carries wide markdown tables: let them scroll in place */
  .md table { display: block; overflow-x: auto; white-space: nowrap; }
  .md { overflow-wrap: anywhere; }
}
.muted { color: var(--slate); }
.small { font-size: 13px; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--ivory); font-size: 12px; font-weight: 700; margin-right: 10px; flex: none; }
.step { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 10px; }
button, .btn { font-family: inherit; font-weight: 700; font-size: 14px; border-radius: 4px; padding: 10px 18px; cursor: pointer; border: 1px solid var(--ink); background: var(--ink); color: var(--ivory); display: inline-block; }
button:hover, .btn:hover { background: #000; text-decoration: none; }
.btn.secondary, button.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover, button.secondary:hover { background: #ece7db; }
.btn.blue, button.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.green, button.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.link, button.link { background: none; border: none; color: var(--blue); padding: 0; font-weight: 400; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.actions .spacer { flex: 1; }
label { display: block; font-weight: 700; font-size: 13px; margin: 14px 0 4px; }
label .hint { font-weight: 300; color: var(--slate); }
input[type=text], input[type=email], input[type=number], input[type=url], select, textarea {
  width: 100%; font-family: inherit; font-size: 14px; font-weight: 300; padding: 9px 11px; border: 1px solid var(--border); border-radius: 4px; background: #fff; color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
/* A field shown but not offered: an indemnity term under a parametric payment. */
.off label, .off label .hint { color: var(--slate); }
.off input[disabled] { background: #f2f1ee; color: var(--slate); border-color: var(--border); cursor: not-allowed; }
.radio-row { display: flex; gap: 22px; margin: 6px 0 4px; font-weight: 300; }
.radio-row label { display: inline-flex; gap: 6px; align-items: center; font-weight: 300; margin: 0; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 700; color: var(--slate); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; border: 1px solid var(--border); color: var(--slate); }
.pill.blue { color: var(--blue); border-color: var(--blue); }
.pill.green { color: var(--green); border-color: var(--green); }
.pill.verm { color: var(--verm); border-color: var(--verm); }
.pill.ink { color: var(--ivory); background: var(--ink); border-color: var(--ink); }
.notice { border-left: 3px solid var(--blue); padding: 10px 14px; background: #fff; margin: 12px 0; font-size: 14px; }
.notice.warn { border-left-color: var(--verm); }
.notice.ok { border-left-color: var(--green); }
.display { font-size: 34px; font-weight: 700; line-height: 1.1; }
.display small { font-size: 13px; font-weight: 300; color: var(--slate); display: block; margin-top: 4px; }
/* Hover panels. Three things keep them from flickering:
   - the page reserves the scrollbar gutter (below), so a panel that makes the
     document taller cannot reflow the layout and pull the trigger out from
     under the pointer;
   - an invisible bridge spans the gap between trigger and panel, so travelling
     into the panel with the mouse does not drop the hover;
   - .hover.up opens the panel upward, for triggers that sit low on the page. */
.hover { position: relative; display: inline-block; }
.hover .pop { display: none; position: absolute; z-index: 30; left: 0; top: calc(100% + 12px);
  width: 520px; max-width: min(90vw, 520px); max-height: min(62vh, 460px); overflow-y: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(26,25,23,.10); font-size: 13px; font-weight: 300; text-align: left; color: var(--ink); }
.hover:hover .pop, .hover:focus-within .pop { display: block; }
/* the bridge lives on the trigger, not on the panel: the panel clips its own
   overflow, which would swallow a pseudo-element placed outside it */
.hover:hover::after, .hover:focus-within::after { content: ""; position: absolute; left: 0; width: 100%; top: 100%; height: 14px; }
.hover.up .pop { top: auto; bottom: calc(100% + 12px); }
.hover.up:hover::after, .hover.up:focus-within::after { top: auto; bottom: 100%; }
/* an explanation affordance, not a link: no navigation, but focusable so that
   keyboard and touch users can open the panel too */
button.hint { font-family: inherit; font-size: inherit; line-height: inherit; font-weight: 400; color: var(--slate);
  background: none; border: 0; border-bottom: 1px dotted var(--border); border-radius: 0; padding: 0 0 1px; cursor: help; }
button.hint::after { content: " \2009?"; font-weight: 700; }
button.hint:hover, button.hint:focus-visible { background: none; color: var(--ink); border-bottom-color: var(--slate); }
.hover .pop h3 { margin-bottom: 6px; }
.hover .pop ol { padding-left: 18px; margin: 6px 0; }
.progress { display: flex; gap: 6px; margin: 4px 0 22px; font-size: 12px; color: var(--slate); flex-wrap: wrap; }
.progress span { padding: 4px 10px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.progress span.on { border-color: var(--ink); color: var(--ink); font-weight: 700; }
.progress span.done { color: var(--green); border-color: var(--green); }
footer { max-width: 1120px; margin: 0 auto; padding: 18px 40px 40px; font-size: 11px; color: var(--slate); border-top: 1px solid var(--border); }
pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
pre { background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 12px 14px; overflow-x: auto; }
.md h1 { font-size: 24px; } .md h2 { font-size: 18px; margin-top: 26px; } .md h3 { font-size: 15px; margin-top: 18px; }
.md table { margin: 10px 0 16px; } .md blockquote { border-left: 3px solid var(--border); margin: 10px 0; padding: 4px 14px; color: var(--slate); }
img.chart { width: 100%; border: 1px solid var(--border); border-radius: 4px; background: #fff; }
ul.clean { padding-left: 18px; margin: 6px 0; }
ul.clean li { margin: 4px 0; }
.definition { font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.6; background: #fff; border: 1px solid var(--border); border-radius: 4px; padding: 16px 20px; }
