/* Kirat site — answer pages, their index and the glossary. Load after site.css and legal.css.
   One question per page: breadcrumb, the short answer in a box, the fact sheet (.facts
   from legal.css), a comparison table where useful. */

.crumbs ol {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 0;
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12.5px; color: var(--muted);
}
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--hairline); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--petrol-ink); text-decoration: underline; }

/* The answer itself, first thing after the question. */
.short-answer {
  margin-top: 20px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--petrol);
}
.short-answer .sa-label {
  margin: 0 0 6px; font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--petrol-ink);
}
.short-answer p { font-size: 17px; line-height: 1.6; color: var(--ink); }
.short-answer code, .legal-sec code, .glossary code {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.88em; color: var(--petrol-ink); overflow-wrap: anywhere;
}

.legal-sec ol { margin: 0; padding-left: 22px; max-width: 66ch; }
.legal-sec ol li + li { margin-top: 8px; }
.legal-sec .facts code { color: var(--petrol-ink); }

/* Comparison table: scrolls sideways on narrow screens instead of breaking the page. */
.table-wrap { overflow-x: auto; margin-top: 4px; }
.table-wrap:focus-visible { outline: 2px solid var(--petrol-ink); outline-offset: 2px; }
.compare { border-collapse: collapse; min-width: 640px; width: 100%; font-size: 14.5px; line-height: 1.5; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
.compare thead th {
  border-top: 0; font-family: 'IBM Plex Mono', monospace; font-size: 12px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.compare tbody th { color: var(--ink); font-weight: 600; width: 22%; }
.compare td { color: var(--ink-soft); }
.compare td:nth-child(2) { color: var(--ink); background: var(--petrol-wash); }

.answers-cta { margin-top: 36px; }

/* Index of answers */
.answer-list { list-style: none; margin: 0; padding: 0; max-width: none; counter-reset: q; }
.legal-sec .answer-list { padding-left: 0; max-width: none; }
.answer-list li { counter-increment: q; border-top: 1px solid var(--line); margin: 0; }
.legal-sec .answer-list li + li { margin-top: 0; }
.answer-list li:last-child { border-bottom: 1px solid var(--line); }
.answer-list a {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 2px 12px;
  padding: 14px 0; text-decoration: none; color: inherit;
}
.answer-list a::before {
  content: "A." counter(q); grid-row: span 2; padding-top: 3px;
  font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: var(--petrol-ink);
}
.answer-list .aq { color: var(--ink); font-weight: 600; }
.answer-list .ad { color: var(--ink-soft); font-size: 15px; }
.answer-list a:hover .aq { color: var(--petrol-ink); text-decoration: underline; }
.answer-list + p { margin-top: 18px; }

/* Glossary */
.glossary { margin: 0; max-width: 820px; }
.glossary dt { margin-top: 22px; font-weight: 700; color: var(--ink); scroll-margin-top: 90px; }
.glossary dt:first-child { margin-top: 0; }
.glossary dd { margin: 4px 0 0; color: var(--ink-soft); }
.glossary + p { margin-top: 24px; }

/* Glossary links: the first mention of a term on an answer page, the term list
   under "More questions", and the way back from each glossary entry. */
a.term { color: inherit; text-decoration: underline dotted; text-decoration-color: var(--petrol-ink); text-underline-offset: 3px; }
a.term:hover { color: var(--petrol-ink); text-decoration-style: solid; }
.terms-used { margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); }
.g-more { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.g-more a { color: var(--ink-soft); }
.glossary dt { scroll-margin-top: 96px; }
.glossary dt:target { color: var(--petrol-ink); }
