/* Shared skin for the About cluster. The pages are plain documents, so they
   borrow the geometry of the terms and calculators pages rather than inventing
   a third look: one text column, the site's rules and type scale. */
html, body { height: 100%; }
body { background: var(--paper); }

/* Centred column, the same geometry the article pages use - the content of
   this site is read down the middle of the page, not beside a rail. */
.ab-pane { max-width: 1060px; margin: 0 auto; padding: 30px 48px 60px; }
@media (max-width: 760px) { .ab-pane { padding: 20px 16px 40px; } }
.ab-pane h1 { font: 900 34px/1.06 var(--display); letter-spacing: -0.025em; margin: 0 0 12px; text-transform: uppercase; }
.ab-pane .lede { font: 500 14px/1.62 var(--sans); color: var(--ink-2); margin: 0 0 26px; max-width: 800px; }
.ab-pane .lede b { color: var(--ink); font-weight: 700; }

.ab-sec { margin: 0 0 28px; scroll-margin-top: 140px; }
.ab-sec > h2 { font: 900 15px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.02em;
  margin: 0 0 10px; padding: 0 0 7px; border-bottom: 1px solid var(--border); }
.ab-sec > h3 { font: 800 13px/1.3 var(--sans); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-2); margin: 20px 0 8px; }
.ab-sec p, .ab-sec li { font: 500 13.5px/1.62 var(--sans); color: var(--ink-2); }
.ab-sec p { margin: 0 0 10px; }
.ab-sec b { color: var(--ink); font-weight: 700; }
.ab-sec a { color: var(--red); }
.ab-sec ul, .ab-sec ol { margin: 0 0 12px; padding-left: 22px; }
.ab-sec li { margin-bottom: 7px; }

.ab-note { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--red);
  padding: 11px 15px; margin: 12px 0 14px; }
.ab-note:last-child { margin-bottom: 0; }

.ab-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.ab-tags span { font: 700 10.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--border); padding: 5px 8px; }

.ab-cta { display: inline-block; font: 800 11px/1 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--paper) !important; background: var(--ink); border: 1px solid var(--ink);
  padding: 10px 14px; text-decoration: none; }
.ab-cta:hover { background: var(--red); border-color: var(--red); }

/* the validation table: one row per comparison, values right-aligned */
.ab-table-wrap { overflow-x: auto; margin: 10px 0 16px; }
.ab-table { width: 100%; border-collapse: collapse; font: 500 12.5px/1.45 var(--sans); min-width: 720px; }
.ab-table th, .ab-table td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: right; vertical-align: top; }
.ab-table th { font: 800 9.5px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 1px solid var(--ink); }
.ab-table th.l, .ab-table td.l { text-align: left; }
.ab-table td.l b { color: var(--ink); }
.ab-table .ok { font: 800 10.5px/1 var(--sans); letter-spacing: 0.1em; color: #2F5D3A; }
.ab-table .n { font-weight: 700; color: var(--ink); }
.ab-table tr:hover td { background: var(--surface); }
.ab-table td .std { display: block; font: 700 10px/1.4 var(--sans); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 2px; }

.ab-tree { list-style: none; padding: 0; margin: 0; }
.ab-tree a { display: block; padding: 9px 14px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line); font: 600 12px/1.35 var(--sans); transition: background .1s; }
.ab-tree a:hover { background: var(--paper); }
.ab-tree a.is-on { background: var(--ink); color: var(--paper); }

/* author page: the one place a portrait-style header helps */
.ab-who { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 0 0 22px; }
.ab-who .role { font: 800 11px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); }
.ab-who .name { font: 900 26px/1.1 var(--display); letter-spacing: -0.02em; text-transform: uppercase; margin: 0; }
.ab-who .where { font: 500 13px/1.5 var(--sans); color: var(--ink-3); }

/* The section index that used to sit in a rail. As a row under the lede it is
   part of the document, and it cannot cover the text the way a fixed,
   user-resizable rail could. */
.doc-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 26px; padding: 12px 0 0;
  border-top: 1px solid var(--border); }
.doc-jump a { font: 700 10.5px/1 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--border);
  padding: 6px 9px; text-decoration: none; }
.doc-jump a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.doc-jump a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
