/* The site's one style sheet. It follows the look of Quanterfactual's comment-analysis site: paper, ink, one
   hairline rule colour and an oxblood accent, Fraunces for headings and numerals, IBM Plex Sans for text and
   JetBrains Mono for identifiers. Sections are flat on the paper and separated by rules. Only working items (the
   status of a review, a flagged study, a form) sit in a bordered panel. No animation beyond hover and focus
   colours. The site runs no script, so every state is a class or an element. */

/* -- fonts ----------------------------------------------------------------------------------------------------- */
/* Modified Versions of Fraunces, IBM Plex Sans and JetBrains Mono under the SIL Open Font License 1.1, the same
   files as the comment-analysis site (fonts/*-OFL.txt). */
@font-face { font-family: "QF Serif"; font-style: normal; font-weight: 100 900; font-display: swap;
             src: url("fonts/qf-serif-wght.woff2") format("woff2"); }
@font-face { font-family: "QF Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
             src: url("fonts/qf-sans-wght.woff2") format("woff2"); }
@font-face { font-family: "QF Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
             src: url("fonts/qf-mono-wght.woff2") format("woff2"); }

/* -- tokens ---------------------------------------------------------------------------------------------------- */
:root {
  color-scheme: light;  /* light only, which also keeps the PRISMA picture light on a dark-mode computer */

  /* paper and ink */
  --paper: #faf9f6; --paper-sunken: #f3f1ec; --paper-raised: #ffffff; --ink: #181816;
  --rule: #d6d3cc; --rule-subtle: #e8e5df; --rule-strong: #8f8c83;
  --text: var(--ink); --text-muted: #605e58; --text-subtle: #6c6a63;
  /* the accent: oxblood */
  --accent: #9d2c26; --accent-hover: #7c211c; --accent-tint: #f6e4e2;
  /* status hues, calibrated on the paper; text shades keep 4.5:1 on their tints */
  --good: #2c5e34; --good-tint: #e6efe3; --good-mark: #3f7d48;
  --warn: #7a4e05; --warn-tint: #f8edd5; --warn-mark: #b7790f;
  --bad: #8f201b; --bad-tint: #f7e3e1; --bad-mark: #b0332c;
  --info: #24486b; --info-tint: #e5ecf2; --info-mark: #3d6a94;
  --focus: #c98a0b;
  /* the extraction workbook's cell colours, matched on the page */
  --shade-abstract: #fff2cc; --shade-title: #fce4d6;

  /* type */
  --serif: "QF Serif", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "QF Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "QF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-label: 0.6875rem; --text-xs: 0.8125rem; --text-sm: 0.9375rem; --text-base: 1rem; --text-lg: 1.1875rem;
  --text-xl: 1.5rem; --text-2xl: 1.875rem; --text-3xl: 2.25rem;

  /* spacing (4px base) */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.25rem; --s6: 1.5rem; --s8: 2rem; --s10: 2.5rem;
  --s12: 3rem; --s16: 4rem;

  --radius: 3px; --radius-pill: 999px;
  --sidebar: 15rem; --measure: 46rem; --page: 78rem;
}

/* -- base ------------------------------------------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); font-size: var(--text-base);
       line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2 { font-family: var(--serif); font-weight: 450; color: var(--ink); }
h1 { font-size: var(--text-3xl); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 var(--s3); }
h2 { font-size: var(--text-xl); line-height: 1.25; letter-spacing: -0.01em; margin: var(--s10) 0 var(--s3); }
h3 { font-size: var(--text-lg); font-family: var(--serif); font-weight: 500; line-height: 1.35; margin: var(--s8) 0 var(--s2); }
h4 { font-size: var(--text-base); font-weight: 600; line-height: 1.4; margin: var(--s6) 0 var(--s2); }
p, ul, ol, dl { margin: var(--s2) 0; }
p, li { max-width: var(--measure); }
ul, ol { padding-left: var(--s6); }
li + li { margin-top: var(--s1); }
strong { font-weight: 600; }
code { font-family: var(--mono); font-size: 0.875em; }
.hint, .small { font-size: var(--text-xs); color: var(--text-subtle); }
.num, td.num, .stat-value { font-variant-numeric: tabular-nums lining-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { font-size: var(--text-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
           color: var(--accent); margin: 0 0 var(--s2); max-width: none; }
.lede { color: var(--text-muted); font-size: var(--text-base); max-width: var(--measure); }
.empty { color: var(--text-subtle); }

/* -- app shell: sidebar, top bar, page header ------------------------------------------------------------------ */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
           background: var(--paper); overflow-y: auto; }
.brand { display: flex; flex-direction: column; gap: 2px; padding: var(--s4) var(--s5); border-bottom: 1px solid var(--rule);
         color: var(--ink); text-decoration: none; min-height: 4rem; justify-content: center; }
.brand:hover { color: var(--ink); }
.brand .name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.1; letter-spacing: -0.01em; }
.brand .product { font-size: var(--text-xs); color: var(--text-muted); }
nav.side { display: flex; flex-direction: column; padding: var(--s3) var(--s3) var(--s6); }
.side-group { margin: var(--s4) var(--s2) var(--s1); font-size: var(--text-label); font-weight: 600; letter-spacing: 0.1em;
              text-transform: uppercase; color: var(--text-subtle); }
nav.side a { position: relative; display: block; padding: 0.45rem var(--s3); border-radius: var(--radius); color: var(--text-muted);
             text-decoration: none; font-size: var(--text-sm); font-weight: 500; line-height: 1.35; }
nav.side a:hover { color: var(--ink); background: var(--paper-sunken); }
nav.side a.active { color: var(--ink); font-weight: 600; background: var(--paper-sunken); }
nav.side a.active::before { content: ""; position: absolute; left: 0; top: 0.35rem; bottom: 0.35rem; width: 3px;
                            background: var(--accent); border-radius: 2px; }
.side-foot { margin-top: auto; padding: var(--s4) var(--s5); border-top: 1px solid var(--rule); font-size: var(--text-xs);
             color: var(--text-muted); }
.side-foot p { margin: 0 0 var(--s1); }
.side-foot a { color: var(--text-muted); }
.content { min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--rule); }
.topbar { display: flex; align-items: center; justify-content: flex-end; gap: var(--s4); min-height: 4rem;
          padding: 0 var(--s10); border-bottom: 1px solid var(--rule); font-size: var(--text-sm); }
.topbar .who { color: var(--ink); font-weight: 500; }
.topbar .role { color: var(--text-subtle); font-weight: 400; margin-left: var(--s1); }
.topbar .role::before { content: "· "; }
.topbar button.link { color: var(--text-muted); }
.pagehead, main { width: 100%; max-width: var(--page); padding-left: var(--s10); padding-right: var(--s10); }
.pagehead { padding-top: var(--s8); }
.pagehead h1 { margin-bottom: var(--s2); }
.pagehead .lede { margin-top: 0; }
.pagehead.plain { padding-bottom: var(--s2); }
main { flex: 1 0 auto; padding-top: var(--s8); padding-bottom: var(--s16); }
.back { margin: 0 0 var(--s4); font-size: var(--text-sm); }
.back a { color: var(--text-muted); text-decoration: none; }
.back a::before { content: "\2190\00a0"; }
.back a:hover { color: var(--ink); }
.headline { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); align-items: flex-end; justify-content: space-between; }
.headline h1 { margin-bottom: 0; }
.pagehead .headline { margin-bottom: var(--s3); }
.crumbs { margin: 0; font-size: var(--text-sm); color: var(--text-muted); }
.crumbs a { color: var(--text-muted); }

/* the public pages: sign-in, sign-up, the proof page and the terms when nobody is signed in */
.site-public { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); align-items: center; justify-content: space-between;
               padding: 0 var(--s10); min-height: 4.25rem; border-bottom: 1px solid var(--rule); }
.site-public .brand { border: 0; padding: var(--s3) 0; min-height: 0; }
nav.public { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s6); font-size: var(--text-sm); }
nav.public a { color: var(--ink); text-decoration: none; }
nav.public a:hover { color: var(--accent); text-decoration: underline; }
body > main { margin: 0 auto; min-height: calc(100vh - 9rem); }
footer.public { padding: var(--s5) var(--s10); border-top: 1px solid var(--rule); color: var(--text-muted); font-size: var(--text-xs); }
footer.public a { color: var(--text-muted); }

/* the review's tabs */
nav.tabs { display: flex; gap: 0 var(--s6); margin: var(--s5) 0 0; border-bottom: 1px solid var(--rule); overflow-x: auto;
           scrollbar-width: thin; }
nav.tabs a { padding: var(--s3) 0; margin-bottom: -1px; color: var(--text-muted); text-decoration: none; white-space: nowrap;
             border-bottom: 2px solid transparent; font-size: var(--text-sm); font-weight: 500; }
nav.tabs a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
nav.tabs a.active { color: var(--ink); border-bottom-color: var(--accent); }
.tab > h2:first-child, .tab > .card:first-child > h2:first-child, .tab > section:first-child > h2:first-child { margin-top: 0; }

/* -- sections and panels --------------------------------------------------------------------------------------- */
/* A card is a section flat on the paper, opened by a rule. A panel is a bordered box for a working item. */
.card { border-top: 1px solid var(--rule); padding: var(--s5) 0 0; margin: 0 0 var(--s8); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card > h2 { font-size: var(--text-lg); margin: var(--s6) 0 var(--s2); }
.card > :last-child { margin-bottom: 0; }
.card header.card-head { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: baseline; justify-content: space-between;
                         margin-bottom: var(--s3); }
.card header.card-head h2 { margin: 0; font-size: var(--text-lg); }
.panel, section.status, article.study, section.summary, section.fieldset, fieldset {
  background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); }
.panel { padding: var(--s5) var(--s6); margin: 0 0 var(--s6); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 0 var(--s10); }
.grid-2 > .card { margin-bottom: var(--s8); }
.card table, .panel table { margin-bottom: 0; }

/* -- stat strip ------------------------------------------------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin: 0 0 var(--s8);
         border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s4) var(--s5) var(--s5); min-width: 0;
        border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-label { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.35; min-height: 2.2em; }
.stat-value { font-family: var(--serif); font-size: var(--text-2xl); font-weight: 450; line-height: 1.1; letter-spacing: -0.02em;
              color: var(--ink); }
.stat-value a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px;
                text-underline-offset: 4px; }
.stat-value a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.stat-value .of { font-family: var(--sans); font-size: var(--text-sm); color: var(--text-muted); letter-spacing: 0; }
.stat-note { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.45; }
.stat-note a { color: var(--ink); text-decoration-color: var(--rule-strong); }
.stat-note a:hover { color: var(--accent); }
.stat.needs_you .stat-value, .stat.needs_you .stat-value a { color: var(--warn); }
.stat.needs_you .stat-label::after { content: " \25CF"; color: var(--warn-mark); }
/* a horizontal meter drawn as inline SVG (spend against a cap) */
svg.meter { display: block; width: 100%; max-width: 14rem; height: 4px; margin: var(--s2) 0 var(--s1); }
svg.meter .track { fill: var(--rule-subtle); }
svg.meter .fill { fill: var(--ink); }
svg.meter .fill.high { fill: var(--warn-mark); }

/* -- stepper --------------------------------------------------------------------------------------------------- */
ol.stepper { list-style: none; margin: 0; padding: 0; display: flex; counter-reset: step; }
ol.stepper li { flex: 1 1 0; position: relative; counter-increment: step; margin: 0; padding: 2.25rem var(--s2) 0;
                text-align: center; font-size: var(--text-xs); font-weight: 500; color: var(--text-subtle); max-width: none; min-width: 0; }
ol.stepper li::before { content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
                        width: 1.625rem; height: 1.625rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
                        font-family: var(--serif); font-size: var(--text-xs); z-index: 1;
                        background: var(--paper); border: 1px solid var(--rule-strong); color: var(--text-muted); }
ol.stepper li::after { content: ""; position: absolute; top: calc(0.8125rem - 0.5px); left: calc(-50% + 1rem); right: calc(50% + 1rem);
                       height: 1px; background: var(--rule); }
ol.stepper li:first-child::after { display: none; }
ol.stepper li.done { color: var(--text-muted); }
ol.stepper li.done::before { content: "\2713"; font-family: var(--sans); background: var(--ink); border-color: var(--ink); color: var(--paper); }
ol.stepper li.done::after, ol.stepper li.current::after { background: var(--ink); }
ol.stepper li.current { color: var(--ink); font-weight: 600; }
ol.stepper li.current::before { border: 2px solid var(--accent); color: var(--accent); font-weight: 600; }
ol.stepper li.attention::before { border-color: var(--warn-mark); color: var(--warn); }
ol.stepper li.stopped::before { border-color: var(--bad-mark); color: var(--bad); }
ol.stepper .step-note { display: block; font-size: var(--text-label); font-weight: 400; color: var(--text-subtle); margin-top: 1px; }
.stages { padding: var(--s2) 0 var(--s6); margin: 0 0 var(--s6); border-bottom: 1px solid var(--rule); }

/* -- badges ---------------------------------------------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.05rem 0.5rem; border-radius: var(--radius-pill);
         font-size: var(--text-xs); font-weight: 500; line-height: 1.5; white-space: nowrap; vertical-align: 0.05em;
         border: 1px solid var(--rule-strong); color: var(--text-muted); background: transparent; }
.badge::before { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: currentColor; }
.badge.plain::before, .badge.neutral::before { display: none; }
.badge.neutral { border-style: dashed; }
.badge.needs_you, .badge.warning { color: var(--warn); background: var(--warn-tint); border-color: transparent; }
.badge.working, .badge.info { color: var(--info); background: var(--info-tint); border-color: transparent; }
.badge.stopped, .badge.danger { color: var(--bad); background: var(--bad-tint); border-color: transparent; }
.badge.finished, .badge.success { color: var(--good); background: var(--good-tint); border-color: transparent; }
/* decision badges on the studies list */
.badge.d-include { color: var(--good); background: var(--good-tint); border-color: transparent; }
.badge.d-probably, .badge.d-minor { color: var(--good); background: transparent; border-color: var(--good-mark); }
.badge.d-exclude { color: var(--text-muted); background: var(--paper-sunken); border-color: transparent; }
.badge.d-undecided { color: var(--text-subtle); background: transparent; border-color: var(--rule); border-style: dashed; }
.badge.d-undecided::before, .badge.d-exclude::before { display: none; }

/* -- tables ---------------------------------------------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; margin: var(--s3) 0 var(--s8); font-size: var(--text-sm); background: transparent; }
th, td { text-align: left; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--rule-subtle); vertical-align: top;
         overflow-wrap: break-word; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
thead th { position: sticky; top: 0; z-index: 1; background: var(--paper); font-size: var(--text-label); font-weight: 600;
           letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--rule-strong);
           vertical-align: bottom; padding-top: var(--s2); padding-bottom: var(--s2); }
tbody tr:hover td { background: var(--paper-sunken); }
td.num, th.num { text-align: right; white-space: nowrap; }
td a { color: var(--ink); text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
td a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.scroll { overflow-x: auto; }
.scroll > table { margin-top: 0; }
tr.total td { font-weight: 600; border-top: 1px solid var(--rule-strong); border-bottom: 0; }
table.narrow { max-width: 48rem; }
/* a bar inside a table cell, drawn as inline SVG */
td.bar, th.bar { width: 26%; min-width: 6rem; vertical-align: middle; }
svg.bar { display: block; width: 100%; height: 8px; }
svg.bar .track { fill: var(--rule-subtle); }
svg.bar .fill { fill: var(--ink); }

/* -- buttons --------------------------------------------------------------------------------------------------- */
button, .button { font: inherit; font-size: var(--text-sm); font-weight: 500; line-height: 1.25; padding: 0.65rem 1.25rem;
                  border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: var(--radius); cursor: pointer;
                  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 2.5rem; }
button:hover, .button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
button.secondary, .button.secondary { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
button.secondary:hover, .button.secondary:hover { background: var(--paper-sunken); color: var(--ink); border-color: var(--ink); }
button.danger, .button.danger { background: var(--bad-mark); border-color: var(--bad-mark); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin: var(--s4) 0 0; }
form.inline { display: inline; }
button.link { background: transparent; border: 0; padding: 0; min-height: 0; color: var(--accent); font-weight: 400;
              text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
button.link:hover { background: transparent; color: var(--accent-hover); }
button.implicit { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* -- forms ----------------------------------------------------------------------------------------------------- */
label { display: block; margin: var(--s4) 0; font-weight: 500; font-size: var(--text-sm); }
input, select, textarea { display: block; margin-top: var(--s1); padding: 0.55rem 0.7rem; font: inherit; font-size: var(--text-base);
                          font-weight: 400; width: 100%; border: 1px solid var(--rule-strong); border-radius: var(--radius);
                          background: var(--paper-raised); color: var(--ink); line-height: 1.4; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 2px solid var(--focus); outline-offset: 1px; }
input, select { max-width: 28rem; }
input[type=radio], input[type=checkbox] { display: inline; width: auto; margin: 0 0.5rem 0 0; accent-color: var(--accent); }
input[type=file] { padding: 0.4rem; background: var(--paper-sunken); }
fieldset { margin: var(--s4) 0; padding: var(--s3) var(--s5) var(--s4); }
legend { font-weight: 600; padding: 0 var(--s2); font-size: var(--text-sm); }
code.secret { word-break: break-all; font-size: 1.05em; letter-spacing: 0.05em; padding: 0.1rem 0.4rem; background: var(--paper-sunken);
              border: 1px solid var(--rule); border-radius: var(--radius); }

/* -- notices --------------------------------------------------------------------------------------------------- */
.error { color: var(--bad); }
p.error { padding: var(--s3) var(--s4); background: var(--bad-tint); border-left: 3px solid var(--bad-mark); max-width: none; }
.notice, .notavailable, .draft, .statement {
  padding: var(--s3) var(--s4); border-left: 3px solid var(--info-mark); background: var(--info-tint); color: var(--ink); max-width: none; }
.notice.warning, .notice.draft { border-left-color: var(--warn-mark); background: var(--warn-tint); color: var(--warn); }
.notice.danger { border-left-color: var(--bad-mark); background: var(--bad-tint); }
.notice.success { border-left-color: var(--good-mark); background: var(--good-tint); }
.notavailable { border-left-color: var(--rule-strong); background: var(--paper-sunken); }
/* the "not signed off" label stays prominent on every page that carries it */
.draft { border-left-color: var(--bad-mark); background: var(--bad-tint); color: var(--bad); font-weight: 600; }
.statement { margin: var(--s3) 0; border-left-color: var(--rule-strong); background: transparent; }
iframe.card { width: 100%; height: 70vh; border: 1px solid var(--rule); padding: 0; }

/* -- empty state ----------------------------------------------------------------------------------------------- */
.empty-state { padding: var(--s10) var(--s6); border: 1px dashed var(--rule-strong); border-radius: var(--radius); text-align: center;
               color: var(--text-muted); }
.empty-state h2 { margin: 0 0 var(--s2); font-size: var(--text-xl); }
.empty-state p { margin: var(--s2) auto; max-width: 32rem; }
.empty-state .actions { justify-content: center; }

/* -- lists and disclosures ------------------------------------------------------------------------------------- */
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s6); }
dl.facts dt { color: var(--text-muted); font-size: var(--text-sm); }
dl.facts dd { margin: 0; }
dl.definitions { display: grid; grid-template-columns: max-content 1fr; gap: var(--s2) var(--s6); margin: var(--s4) 0; font-size: var(--text-sm); }
dl.definitions dt { font-weight: 600; }
dl.definitions dd { margin: 0; color: var(--text-muted); }
details > summary { cursor: pointer; font-weight: 500; color: var(--ink); list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; display: inline-block; width: 0.4em; height: 0.4em; margin: 0 0.6em 0.15em 0.1em;
                            border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg);
                            vertical-align: middle; }
details[open] > summary::before { transform: rotate(45deg); }
details > summary:hover { color: var(--accent); }
details.steps, details.technical, details.audit { margin: var(--s6) 0; border-top: 1px solid var(--rule); padding-top: var(--s4); }
details[open].steps > summary, details[open].technical > summary, details[open].audit > summary { margin-bottom: var(--s3); }
blockquote { margin: var(--s1) 0 var(--s2) 0; padding-left: var(--s3); border-left: 2px solid var(--rule); color: var(--text-muted);
             font-size: var(--text-sm); }

/* -- the reviews list ------------------------------------------------------------------------------------------ */
table.reviews td { vertical-align: middle; padding-top: var(--s4); padding-bottom: var(--s4); }
table.reviews td:first-child a { font-family: var(--serif); font-size: var(--text-lg); line-height: 1.3; }
table.reviews .status-words { display: block; margin-top: var(--s1); color: var(--text-muted); font-size: var(--text-xs); }
table.reviews .none { color: var(--text-subtle); }
table.reviews td:last-child { white-space: nowrap; }

/* -- the overview ---------------------------------------------------------------------------------------------- */
section.status { border-left: 3px solid var(--info-mark); padding: var(--s5) var(--s6); margin: 0 0 var(--s8); }
section.status.needs_you { border-left-color: var(--warn-mark); }
section.status.stopped { border-left-color: var(--bad-mark); }
section.status.finished { border-left-color: var(--good-mark); }
section.status > :last-child { margin-bottom: 0; }
.status-line { font-family: var(--serif); font-size: var(--text-xl); line-height: 1.3; margin: 0 0 var(--s3); max-width: none; }
.status-line strong { font-weight: 450; }
.status-line .badge { font-family: var(--sans); vertical-align: 0.3em; margin-right: var(--s2); }
ul.problems { list-style: none; padding: 0; margin: 0 0 var(--s8); }
ul.problems li { margin: 0 0 var(--s2); padding: var(--s3) var(--s4); background: var(--bad-tint); border-left: 3px solid var(--bad-mark);
                 max-width: none; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 0 var(--s10); }
.overview-list { list-style: none; padding: 0; margin: 0; }
.overview-list li { display: grid; grid-template-columns: 10rem 1fr; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--rule-subtle);
                    margin: 0; max-width: none; }
.overview-list li:first-child { border-top: 0; padding-top: 0; }
.overview-list li p { margin: 0; }
.overview-list .what { font-family: var(--serif); font-size: var(--text-lg); line-height: 1.3; }

/* -- the flagged studies --------------------------------------------------------------------------------------- */
.progress { font-family: var(--serif); font-size: var(--text-xl); }
.progress strong { font-weight: 450; }
ul.groups { list-style: none; padding: 0; }
ul.groups li { margin: 0; padding: var(--s3) 0; border-top: 1px solid var(--rule-subtle); max-width: none; }
ul.groups li button { margin: var(--s2) var(--s3) 0 0; }
article.study { padding: var(--s6); margin: var(--s4) 0 var(--s6); }
article.study.has-error { border-color: var(--bad-mark); border-width: 2px; }
article.study h4 { margin: 0 0 var(--s1); font-family: var(--serif); font-weight: 450; font-size: var(--text-lg); line-height: 1.3; }
.study-head { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s2) 0 var(--s4); }
.meta, .why { margin: var(--s1) 0; color: var(--text-muted); font-size: var(--text-xs); overflow-wrap: anywhere; max-width: none; }
.meta a { color: var(--text-muted); }
.abstract { margin: var(--s3) 0; color: var(--ink); font-size: var(--text-sm); max-width: none; }
.study-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--s4) var(--s8); margin: var(--s4) 0; }
.study-body > * { min-width: 0; }
.study-body .abstract:first-child, .study-body .hint:first-child { margin-top: 0; }
.ai-calls { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); align-content: start; }
.ai-calls.one { grid-template-columns: 1fr; }
.ai-call { padding: var(--s3) var(--s4); background: var(--paper-sunken); border-radius: var(--radius); }
.ai-call .label { display: block; font-size: var(--text-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
                  color: var(--text-muted); margin-bottom: var(--s1); }
.ai-call p { margin: 0; font-size: var(--text-sm); }
.ai-calls .hint { grid-column: 1 / -1; margin: 0; }
ul.calls { padding-left: var(--s5); font-size: var(--text-sm); }
ul.calls li { margin: var(--s2) 0; max-width: none; }
.verdict { font-weight: 600; }
ul.calls .criterion { color: var(--text-muted); }
ul.calls .decides { font-size: var(--text-xs); font-weight: 600; color: var(--warn); }
details.other-criteria { margin: var(--s2) 0 var(--s3); font-size: var(--text-sm); }
details.other-criteria > summary { color: var(--accent); font-weight: 400; }
article.study fieldset { background: var(--paper); margin: var(--s5) 0 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: stretch; margin-top: var(--s2); }
.choices input.choice { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label.opt { margin: 0; flex: 1 1 8rem; min-height: 2.5rem; display: flex; align-items: center; justify-content: center;
                     text-align: center; padding: var(--s2) var(--s3); border: 1px solid var(--rule-strong); border-radius: var(--radius);
                     color: var(--ink); background: var(--paper-raised); cursor: pointer; font-weight: 500; }
.choices label.opt:hover { border-color: var(--ink); }
.choices input.choice:checked + label.opt { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choices input.choice:focus-visible + label.opt { outline: 2px solid var(--focus); outline-offset: 2px; }
.choices .picker { display: none; flex: 1 1 100%; margin: var(--s1) 0 0; border: 0; padding: 0; background: none; }
.choices .picker legend { padding: 0; margin-bottom: var(--s1); }
.choices .picker label { display: flex; gap: var(--s2); align-items: baseline; margin: var(--s1) 0; overflow-wrap: anywhere; font-weight: 400; }
.choices input.choice[value="out_of_scope"]:checked ~ .picker { display: block; }
.choices .note { flex: 1 1 100%; margin: var(--s2) 0 0; }
.choices .note input { max-width: 100%; }
.savebar { position: sticky; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center;
           padding: var(--s3) 0; background: var(--paper); border-top: 1px solid var(--rule-strong); }
details.decided > summary, details.criteria > summary { margin: var(--s4) 0 var(--s2); }

/* -- results and studies --------------------------------------------------------------------------------------- */
img.prisma { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); margin: var(--s3) 0; background: #fff; }
.ai-mark { display: inline-block; padding: 0 0.3rem; border: 1px solid var(--rule-strong); border-radius: var(--radius); font-family: var(--mono);
           font-size: var(--text-label); font-weight: 500; color: var(--text-muted); vertical-align: 0.1em; letter-spacing: 0.04em; }
form.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3) var(--s4); align-items: end;
               padding: var(--s2) 0 var(--s5); margin: 0 0 var(--s4); border-bottom: 1px solid var(--rule); }
form.filters label { margin: 0; font-size: var(--text-xs); color: var(--text-muted); font-weight: 500; }
form.filters select, form.filters input { max-width: 100%; font-size: var(--text-sm); padding: 0.4rem 0.55rem; }
form.filters label.wide { grid-column: span 2; }
form.filters label.wide select { width: 100%; max-width: 100%; }
form.filters .hint.full { display: block; margin-top: var(--s1); white-space: normal; overflow-wrap: anywhere; font-weight: 400; }
.filter-actions { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; }
.filter-actions button { min-height: 2.25rem; padding: 0.45rem 1rem; }
.calls .criterion, .calls .evidence, blockquote { overflow-wrap: anywhere; white-space: normal; }
nav.pager { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center; margin: var(--s3) 0; font-size: var(--text-sm); }
table.studies { font-size: var(--text-xs); }
table.studies td { padding-top: var(--s2); padding-bottom: var(--s2); }
table.studies td:first-child { min-width: 18rem; }
table.studies td:first-child a { font-size: var(--text-sm); line-height: 1.35; }
table.studies tr.muted td { color: var(--text-subtle); }
table.studies tr.muted td:first-child a { color: var(--text-muted); }

/* -- the plan summary, the extraction and the downloads -------------------------------------------------------- */
section.summary { padding: var(--s3) var(--s6) var(--s5); margin: 0 0 var(--s6); }
section.summary h3 { margin-top: var(--s5); }
tr.sev-blocking td:first-child { color: var(--bad); font-weight: 600; }
tr.sev-high td:first-child { color: var(--warn); font-weight: 600; }
tr.chosen td { background: var(--accent-tint); }
form.decision { margin: var(--s4) 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; }
form.decision label { flex: 1 1 100%; margin: var(--s1) 0; }
iframe.card.full { height: calc(100vh - 2rem); }
label.plain { display: inline; margin: 0; font-weight: 400; }
fieldset label.plain { display: block; margin: var(--s2) 0; }
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 var(--s4); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s1); font-size: var(--text-xs); color: var(--text-muted);
          max-width: none; }
.swatch { display: inline-block; width: 0.9rem; height: 0.9rem; border: 1px solid var(--rule-strong); vertical-align: -0.1em;
          margin: 0 var(--s1) 0 var(--s4); }
.swatch:first-child { margin-left: 0; }
.swatch.abstract, td.shade-abstract, tbody tr:hover td.shade-abstract { background: var(--shade-abstract); }
.swatch.title, td.shade-title, tbody tr:hover td.shade-title { background: var(--shade-title); }
.swatch.none { background: #fff; }
table.extracted { font-size: var(--text-xs); }
table.extracted td { min-width: 12rem; }
table.extracted td:first-child { min-width: 16rem; }
table.extracted td, table.extracted th { padding-left: var(--s3); padding-right: var(--s3); border-right: 1px solid var(--rule-subtle); }
table.extracted td:first-child a { font-size: var(--text-sm); }
/* C2: the extracted table scrolls inside a frame, so its sideways scroll bar stays on screen, the study column stays
   at the left and the header row at the top */
.scroll.framed { max-height: 75vh; overflow: auto; border: 1px solid var(--rule); background: var(--paper-raised); }
.scroll.framed table { margin: 0; }
.scroll.framed thead th { background: var(--paper-raised); }
table.extracted th:first-child, table.extracted td:first-child { position: sticky; left: 0; z-index: 1; padding-left: var(--s4);
  background: var(--paper-raised); border-right: 1px solid var(--rule-strong); }
table.extracted thead th:first-child { z-index: 2; }
table.extracted tbody tr:hover td:first-child { background: var(--paper-sunken); }
details.field-list { margin: var(--s2) 0; }
/* C2: the field sets on the approval page */
section.fieldset { padding: var(--s3) var(--s5); margin: var(--s3) 0; }
section.fieldset > label.plain { display: block; margin: var(--s1) 0; font-weight: 600; }
section.fieldset .reliability { margin: var(--s1) 0 var(--s1) 1.6rem; }
section.fieldset details { margin: var(--s1) 0 var(--s1) 1.6rem; }
section.fieldset details > summary { font-weight: 400; color: var(--accent); }
.decide { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; margin: var(--s4) 0; }
.quote { display: block; margin-top: var(--s1); font-size: var(--text-xs); color: var(--text-muted); }
details.quote > summary { font-weight: 400; color: var(--accent); }
details.others { margin: var(--s2) 0 var(--s4); }
details.others > summary { color: var(--accent); }
/* C9: the study lists of the extraction approval, compact enough for several hundred rows */
table.compact { font-size: var(--text-xs); }
table.compact th, table.compact td { padding: var(--s1) var(--s2); }
table.compact td:nth-child(1), table.compact td:nth-child(3) { white-space: nowrap; }
table.compact td:nth-child(4) { min-width: 9rem; }
table.compact td:nth-child(5) { white-space: nowrap; }
table.compact .why { display: block; font-size: var(--text-label); color: var(--text-muted); }
/* the download lists */
table.files td:first-child { white-space: nowrap; }
table.files td:nth-child(2) { color: var(--text-muted); }
.card > h3 .badge { margin-left: var(--s2); font-family: var(--sans); vertical-align: 0.15em; }

/* -- sign-in, sign-up and the other account pages -------------------------------------------------------------- */
.auth { max-width: 26rem; margin: var(--s12) auto 0; }
.auth.wide { max-width: 34rem; }
.auth .card { border: 1px solid var(--rule); background: var(--paper-raised); padding: var(--s8); border-radius: var(--radius); }
.auth h1 { font-size: var(--text-2xl); margin-bottom: var(--s3); }
.auth input { max-width: none; }
.auth button { width: 100%; margin-top: var(--s2); }
.auth .after { text-align: center; color: var(--text-muted); font-size: var(--text-sm); margin: var(--s5) auto 0; }
.auth .card > p { color: var(--text-muted); font-size: var(--text-sm); }

/* the beta terms page */
.terms { max-width: var(--measure); }
.terms .placeholder { color: var(--text-subtle); }
/* The task text and topic sections of the brief form (site-journey). */
pre.task-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; padding: var(--s3) var(--s4); border: 1px solid var(--rule);
                background: var(--paper-raised); }
fieldset.topic { padding: var(--s1) var(--s4) var(--s4); }
fieldset.topic legend { font-weight: 600; }
.tab form + form { margin-top: var(--s2); }

/* -- narrow screens -------------------------------------------------------------------------------------------- */
@media (max-width: 64rem) {
  form.filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-body { grid-template-columns: 1fr; }
}
@media (max-width: 52rem) {
  .app { display: block; }
  .content { border-left: 0; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--rule); }
  .brand { min-height: 0; padding: var(--s3) var(--s4); }
  nav.side { flex-direction: row; flex-wrap: wrap; gap: 0 var(--s1); padding: var(--s2) var(--s3); }
  .side-group, .side-foot { display: none; }
  nav.side a { padding: 0.35rem var(--s2); font-size: var(--text-xs); }
  nav.side a.active::before { left: var(--s2); right: var(--s2); top: auto; bottom: 0; width: auto; height: 2px; }
  .topbar { min-height: 0; padding: var(--s2) var(--s4); justify-content: space-between; }
  .pagehead, main, .site-public, footer.public { padding-left: var(--s4); padding-right: var(--s4); }
  .pagehead { padding-top: var(--s5); }
  main { padding-top: var(--s5); }
  h1 { font-size: var(--text-2xl); }
  .panel, section.status, article.study { padding: var(--s4); }
  ol.stepper { flex-direction: column; }
  ol.stepper li { text-align: left; padding: var(--s1) 0 var(--s3) 2.5rem; min-height: 2.5rem; font-size: var(--text-sm); }
  ol.stepper li::before { left: 0; transform: none; }
  ol.stepper li::after { left: calc(0.8125rem - 0.5px); right: auto; top: -100%; width: 1px; height: 100%; }
  ol.stepper li:last-child { padding-bottom: 0; }
  .overview-list li { grid-template-columns: 1fr; gap: var(--s1); }
  .auth { margin-top: var(--s4); }
  .auth .card { padding: var(--s5); }
}
@media (max-width: 40rem) {
  h2 { font-size: var(--text-lg); margin-top: var(--s8); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule-subtle); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat-value { font-size: var(--text-xl); }
  .ai-calls { grid-template-columns: 1fr; }
  form.filters { grid-template-columns: 1fr; }
  form.filters label.wide { grid-column: auto; }
  table { display: block; overflow-x: auto; }
  th, td { padding: var(--s2) var(--s3); }
  table.stack { display: table; }
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: var(--s3) 0; border-bottom: 1px solid var(--rule-subtle); }
  table.stack td { display: block; border: 0; padding: var(--s1) 0; text-align: left; white-space: normal; }
  table.stack td[data-label]::before { content: attr(data-label) ": "; color: var(--text-subtle); }
  table.stack td[data-label]:empty { display: none; }
  td.bar, th.bar { display: none; }
  dl.facts { grid-template-columns: 1fr; gap: 0; }
  dl.facts dd { margin-bottom: var(--s2); }
}
table.studies td[data-label="Decision"], table.studies td[data-label="Flag"], table.studies td[data-label="Basis"] { white-space: nowrap; }

/* -- new-review steps (plan item U1): the drafted scope, read only, and its edit form -------------------------- */
dl.scope { display: grid; grid-template-columns: 12rem 1fr; gap: 0; margin: var(--s3) 0; font-size: var(--text-sm); }
dl.scope dt, dl.scope dd { margin: 0; padding: var(--s3) 0; border-top: 1px solid var(--rule-subtle); }
dl.scope dt:first-of-type, dl.scope dt:first-of-type + dd { border-top: 0; padding-top: 0; }
dl.scope dt { color: var(--text-muted); padding-right: var(--s4); }
dl.scope dd ul { margin: 0; padding-left: var(--s5); }
details.edit-scope { margin: var(--s5) 0 0; border-top: 1px solid var(--rule); padding-top: var(--s4); }
details[open].edit-scope > summary { margin-bottom: var(--s3); }
@media (max-width: 40rem) {
  dl.scope { grid-template-columns: 1fr; }
  dl.scope dd { border-top: 0; padding-top: 0; }
}

/* -- the flagged studies, compact: two to three studies per screen ------------------------------------------- */
article.study.compact { padding: var(--s4) var(--s5); margin: var(--s3) 0; }
.study-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s4); }
.study-top h4 { flex: 1 1 28rem; margin: 0; }
.study-top .study-head { margin: 0; }
article.study.compact .meta { margin: 2px 0 var(--s3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
article.study.compact .study-body { margin: 0 0 var(--s2); gap: var(--s3) var(--s6); }
article.study.compact .ai-call { padding: var(--s2) var(--s3); }
/* the abstract shows three lines and opens in full */
details.abstract-more > summary { display: block; font-weight: 400; color: var(--ink); }
details.abstract-more > summary::before { display: none; }
details.abstract-more > summary .label { display: block; font-size: var(--text-label); font-weight: 600; letter-spacing: 0.08em;
                                          text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
details.abstract-more > summary .label::after { content: "  \00b7  show all"; font-weight: 400; letter-spacing: 0.02em;
                                                 text-transform: none; color: var(--accent); }
details[open].abstract-more > summary .label::after { content: "  \00b7  show less"; }
details.abstract-more .abstract { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
                                  margin: 0; }
details[open].abstract-more .abstract { display: block; -webkit-line-clamp: unset; line-clamp: none; }
details.abstract-more > summary:hover { color: var(--ink); }
details.criteria-detail { margin: 0 0 var(--s2); font-size: var(--text-sm); }
details.criteria-detail > summary { color: var(--accent); font-weight: 400; }
details[open].criteria-detail { padding-bottom: var(--s2); border-bottom: 1px solid var(--rule-subtle); }
article.study fieldset.decision { border: 0; padding: var(--s2) 0 0; margin: var(--s2) 0 0; background: none; border-top: 1px solid var(--rule-subtle);
                                  border-radius: 0; }
article.study fieldset.decision > legend { float: left; padding: 0; margin: 0 0 var(--s1); font-size: var(--text-label); letter-spacing: 0.08em;
                                           text-transform: uppercase; color: var(--text-muted); }
article.study fieldset.decision .choices { clear: both; margin-top: 0; }
article.study.compact .choices label.opt { min-height: 2.25rem; flex: 1 1 7rem; padding: var(--s1) var(--s2); font-size: var(--text-sm); }
article.study.compact .choices .note { margin-top: var(--s1); font-size: var(--text-xs); }
article.study.compact .choices .note input { padding: 0.35rem 0.6rem; font-size: var(--text-sm); }
article.study.compact .choices label.note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
article.study.compact .choices label.note .hint { flex: 0 1 auto; }
article.study.compact .choices label.note input { flex: 1 1 16rem; max-width: none; }
article.study.compact .choices label.note input { margin-top: 0; }

/* -- new-review steps (plan item U1): page head, stepper, effort cards, sources and dates ---------------------- */
.pagehead.steps-head { padding-bottom: var(--s2); }
.pagehead.steps-head .back-line { margin: 0 0 var(--s4); }
.pagehead.steps-head h1 { margin-bottom: var(--s6); }
.pagehead.steps-head ol.stepper { max-width: 46rem; margin-bottom: var(--s4); }
.tab > ol.stepper:first-child { max-width: 46rem; margin: var(--s2) 0 var(--s8); }
ol.stepper[aria-label="Steps to start a review"] li.done .step-note { position: absolute; width: 1px; height: 1px; overflow: hidden;
                                                                      clip: rect(0 0 0 0); white-space: nowrap; }
ol.stepper[aria-label="Steps to start a review"] li.done a { color: inherit; }
p.question { max-width: var(--measure); padding: var(--s3) var(--s4); background: var(--paper-sunken); border-left: 2px solid var(--rule-strong);
             font-size: var(--text-sm); }
fieldset.effort-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--s3); border: 0; padding: 0;
                        margin: var(--s4) 0 var(--s3); background: transparent; }
fieldset.effort-cards legend { grid-column: 1 / -1; padding: 0; margin-bottom: var(--s3); font-size: var(--text-sm); font-weight: 600; }
label.effort-card { display: flex; flex-direction: column; gap: var(--s2); margin: 0; padding: var(--s4) var(--s5); cursor: pointer;
                    background: var(--paper-raised); border: 1px solid var(--rule); border-radius: var(--radius); font-weight: 400; }
label.effort-card:hover { border-color: var(--rule-strong); }
label.effort-card:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--paper-raised); }
label.effort-card:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
label.effort-card .effort-name { display: flex; align-items: center; font-family: var(--serif); font-size: var(--text-lg); color: var(--ink); }
label.effort-card .effort-name input { margin-right: var(--s2); }
label.effort-card .effort-text { flex: 1; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.45; }
label.effort-card .effort-cost { padding-top: var(--s2); border-top: 1px solid var(--rule-subtle); font-size: var(--text-xs); color: var(--ink);
                                 font-variant-numeric: tabular-nums; }
label.effort-card:has(input:checked) .effort-cost { border-top-color: var(--accent-tint); }
p.hint[data-note="suggested-cap"] { max-width: var(--measure); }
.pagehead.steps-head + main textarea { max-width: var(--measure); }
details.sources-dates, details.optional { margin: var(--s3) 0; }
details.sources-dates > summary, details.optional > summary { color: var(--accent); font-weight: 500; }
details[open].sources-dates > summary, details[open].optional > summary { margin-bottom: var(--s2); }
details.issues-info { margin: var(--s4) 0; }
ul.cost-lines { margin: 0; padding-left: var(--s5); }
ul.cost-lines li { margin: 0 0 var(--s1); }

/* -- the example review (plan item D7): notice, section on My reviews, downloads turned off ------------------- */
.notice[data-notice="example"] { max-width: none; border-left-color: var(--info-mark); background: var(--info-tint); color: var(--ink); }
.notice[data-notice="example"] .badge { margin-right: var(--s2); vertical-align: 0.1em; background: var(--paper-raised); }
.pagehead .notice[data-notice="example"] { margin: var(--s3) 0 var(--s4); }
.notice[data-notice="no-downloads"] { border-left-color: var(--info-mark); background: var(--info-tint); color: var(--ink); }
section.card.example { margin-top: var(--s10); }
section.card.example .example-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s4); margin-bottom: var(--s3); }
section.card.example .example-head h2 { margin: 0; }
section.card.example .example-head p { margin: 0; color: var(--text-muted); font-size: var(--text-sm); }
section.card.example td .badge { margin-left: var(--s2); vertical-align: 0.1em; }
.tab:has(p[data-notice="no-downloads"]) :is(table.files, table[data-table="audit"], table[data-table="extraction-audit"]) td:first-child { color: var(--text-muted); }

/* -- the sign-in code page ------------------------------------------------------------------------------------ */
.auth .auth-more { display: flex; gap: var(--s2); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--rule-subtle); }
.auth .auth-more form.inline { display: block; flex: 1; }
.auth .auth-more button { margin-top: 0; }

@media (max-width: 40rem) {
  .pagehead.steps-head h1 { margin-bottom: var(--s4); }
  .auth .auth-more { flex-direction: column; }
}
.topbar > a { white-space: nowrap; }

/* -- phone width: download lists as blocks, results tables at full width ------------------------------------- */
@media (max-width: 40rem) {
  table.results { display: table; width: 100%; }
  table.files, table[data-table="audit"], table[data-table="extraction-audit"] { display: table; width: 100%; }
  table.files thead, table[data-table="audit"] thead, table[data-table="extraction-audit"] thead { display: none; }
  table.files tr, table[data-table="audit"] tr, table[data-table="extraction-audit"] tr {
    display: block; padding: var(--s3) 0; border-bottom: 1px solid var(--rule-subtle); }
  table.files td, table[data-table="audit"] td, table[data-table="extraction-audit"] td {
    display: block; border: 0; padding: 1px 0; text-align: left; white-space: normal; }
  table.files td:first-child, table[data-table="audit"] td:first-child, table[data-table="extraction-audit"] td:first-child {
    font-weight: 500; overflow-wrap: anywhere; }
  table.files td:nth-child(2) { font-size: var(--text-sm); }
  table.files td:last-child, table[data-table="audit"] td:last-child, table[data-table="extraction-audit"] td:last-child {
    font-size: var(--text-xs); color: var(--text-subtle); }
  table.studies.stack td:first-child::before { content: none; }
}
