/* Reports
   Design tokens. One deliberate light theme: this is a daytime yard tool,
   read on a phone in sunlight, and a single high-contrast surface is easier
   to trust than a theme that shifts under you. */

:root {
  color-scheme: light;

  /* Surfaces & ink */
  --page:        #f5f6f3;
  --surface:     #ffffff;
  --surface-2:   #fafbf9;
  --ink:         #16181a;
  --ink-2:       #474d52;
  --muted:       #656b71;
  --line:        #e2e6e0;
  --line-strong: #cdd3ca;

  /* Brand — chrome only, never a data color */
  --brand:       #14663d;
  --brand-deep:  #0e4a2c;
  --brand-soft:  #e7f1ea;
  --brand-line:  #bfd9cb;

  /* Status — reserved, never reused as a series */
  --good:        #0ca30c;
  --good-ink:    #056b05;
  --warn:        #fab219;
  --warn-soft:   #fdf3dc;
  --warn-line:   #e8cf90;
  --bad:         #d03b3b;
  --bad-ink:     #a52626;

  /* Categorical series — fixed order, never cycled */
  --s-pet1:  #2a78d6;
  --s-alum:  #eb6834;
  --s-glass: #1baf7a;
  --s-hdpe:  #eda100;
  --s-other: #e87ba4;
  --s-scrap: #008300;
  --s-gray:  #9aa1a6;

  /* Space — dense dashboard scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px;
  --s4: 16px; --s5: 24px; --s6: 32px;

  --r1: 6px; --r2: 10px; --r3: 14px;
  --shadow: 0 1px 2px rgba(22,24,26,.05), 0 1px 8px rgba(22,24,26,.04);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tab-h: 46px;
}

* { box-sizing: border-box; }

/* Author styles below set display on some of these elements, so the attribute
   needs the last word. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-deep); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--r1);
}

/* ---------- App chrome ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--s3) var(--s4);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark .mark {
  width: 20px; height: 20px;
  flex: none;
  align-self: center;
  color: var(--brand);
}
.wordmark .sub {
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0;
}
@media (max-width: 460px) {
  .wordmark .sub { display: none; }
  .wordmark { font-size: 16px; }
}

.spacer { flex: 1 1 auto; }

/* A label naming the data as sample data (SITE.sampleNotice). Only the demo
   build sets it; it rides in the sticky top bar so every view shows it, and
   the print rules below keep it on paper. */
.sample-notice {
  padding: 7px var(--s4);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  color: var(--ink);
  background: var(--warn-soft);
  border-bottom: 1px solid var(--warn-line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r1);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--surface-2); color: var(--ink); }
.btn:active { background: #eef0ec; }

.btn-primary {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.btn-primary:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }

/* Tabs */
.tabs-wrap {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.tabs {
  display: flex;
  gap: 2px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--s3);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }

.tab {
  position: relative;
  flex: none;
  min-height: var(--tab-h);
  padding: 0 var(--s3);
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] {
  color: var(--brand-deep);
  border-bottom-color: var(--brand);
}

/* ---------- Layout ---------- */

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--s4) var(--s4) 56px;
}

.view { display: none; }
.view.active { display: block; }

.view-head { margin-bottom: var(--s4); }
.view-head h1 { font-size: 22px; }
.view-head .lede {
  margin-top: 5px;
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 62ch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  box-shadow: var(--shadow);
  padding: var(--s4);
  margin-bottom: var(--s4);
}
.card > h2 {
  font-size: 16px;
  margin-bottom: 3px;
}
.card > .note {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: var(--s4);
  max-width: 68ch;
}
.card > .note:last-child { margin-bottom: 0; }

.grid { display: grid; gap: var(--s3); }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 460px) and (max-width: 699px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ---------- Freshness / hero ---------- */

.freshness {
  display: flex;
  align-items: flex-start;
  gap: var(--s2);
  font-size: 13.5px;
  color: var(--ink-2);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  border-radius: var(--r2);
  padding: 10px var(--s3);
  margin-bottom: var(--s4);
}
.freshness .dot {
  width: 8px; height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--good);
  flex: none;
}

.hero {
  padding: var(--s5) var(--s4);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--s4) var(--s6);
}
.hero .hero-main { flex: 0 1 auto; min-width: 0; }
.hero .hero-side {
  flex: 0 1 auto;
  padding-left: var(--s5);
  border-left: 1px solid var(--line);
}
@media (max-width: 560px) {
  .hero .hero-side { padding-left: 0; border-left: 0; }
}
.hero .hero-side .label { font-size: 13.5px; }
.hero .hero-side .val {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero .hero-side .val .t-unit {
  font-size: 14px; font-weight: 550; color: var(--muted); margin-left: 3px;
}
.hero .label {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 2px;
}
.hero .figure {
  font-size: 44px;
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}
@media (min-width: 700px) { .hero .figure { font-size: 54px; } }
.hero .sub {
  margin-top: var(--s2);
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------- Stat tiles ---------- */

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: var(--s3);
}
.tile .t-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.tile .t-value {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.tile .t-unit {
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  margin-left: 3px;
  letter-spacing: 0;
}
.tile .t-second {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}
.tile .t-delta { margin-top: 7px; }

.swatch {
  width: 10px; height: 10px;
  border-radius: 3px;
  flex: none;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 7px 2px 5px;
  border-radius: 999px;
  white-space: nowrap;
}
.delta .arrow { font-size: 11px; line-height: 1; }
.delta.up   { color: var(--good-ink); background: #e8f6e8; }
.delta.down { color: var(--bad-ink);  background: #fbeaea; }
.delta.flat { color: var(--ink-2);    background: #eef0ec; }
.delta .vs { font-weight: 500; opacity: .82; }

/* ---------- Controls ---------- */

.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s4);
}

.segmented {
  display: inline-flex;
  padding: 3px;
  background: #eef0ec;
  border-radius: 9px;
  gap: 2px;
}
.segmented button {
  min-height: 36px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-2);
  background: none;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--brand-deep);
  box-shadow: 0 1px 2px rgba(22,24,26,.10);
}

.field { display: flex; align-items: center; gap: var(--s2); }
.field label { font-size: 14px; font-weight: 550; color: var(--ink-2); }
select {
  font: inherit;
  font-size: 15px;
  min-height: 40px;
  padding: 0 32px 0 11px;
  color: var(--ink);
  background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236f767c' stroke-width='1.75' stroke-linecap='round'><path d='M4 6.5 8 10.5 12 6.5'/></svg>") no-repeat right 9px center/14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r1);
  appearance: none;
  cursor: pointer;
}

/* ---------- Charts ---------- */

.chart-box {
  position: relative;
  height: 260px;
  margin-bottom: var(--s3);
}
@media (min-width: 700px) { .chart-box { height: 320px; } }
.chart-box.tall { height: 300px; }
@media (min-width: 700px) { .chart-box.tall { height: 380px; } }

.chart-fallback {
  display: none;
  padding: var(--s4);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r2);
}
.no-charts .chart-box,
.no-charts .sparks,
.no-charts .legend { display: none; }
.no-charts .chart-fallback { display: block; }

/* Small multiples — one panel per material, each on its own scale, because
   glass and #7 Other differ by three orders of magnitude. */
.sparks {
  display: grid;
  gap: var(--s3);
  /* minmax(0, ...) lets a panel shrink below its canvas's current width;
     plain 1fr would pin each chart at the size it was first drawn. */
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 620px) { .sparks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .sparks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.spark {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: var(--s3);
  background: var(--surface-2);
}
.spark-head {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.spark-head .swatch { align-self: center; }
.spark-head .sp-val {
  margin-left: auto;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.spark-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: var(--s2);
}
.spark-box { position: relative; height: 108px; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  padding-top: var(--s2);
  font-size: 13px;
  color: var(--ink-2);
}
.legend .item { display: inline-flex; align-items: center; gap: 6px; }
.legend .key { width: 12px; height: 3px; border-radius: 2px; flex: none; }
.legend .key.block { height: 10px; width: 10px; border-radius: 3px; }

/* ---------- Tables ---------- */

/* Wide tables scroll inside their own box. The edge shadows are the only cue
   that there is more to the right, so they earn their keep on a phone. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  background:
    linear-gradient(to right, var(--surface) 40%, rgba(255,255,255,0)) left center,
    linear-gradient(to left,  var(--surface) 40%, rgba(255,255,255,0)) right center,
    radial-gradient(farthest-side at 0 50%,   rgba(22,24,26,.13), rgba(22,24,26,0)) left center,
    radial-gradient(farthest-side at 100% 50%, rgba(22,24,26,.13), rgba(22,24,26,0)) right center;
  background-color: var(--surface);
  background-repeat: no-repeat;
  background-size: 34px 100%, 34px 100%, 11px 100%, 11px 100%;
  background-attachment: local, local, scroll, scroll;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-align: right;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
thead th:first-child, td:first-child { text-align: left; }
thead th.l, td.l { text-align: left; }
tbody td {
  text-align: right;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  color: var(--ink);
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
tbody td.name { font-weight: 550; }
tbody tr.total-row td {
  font-weight: 650;
  background: var(--surface-2);
  border-top: 1px solid var(--line-strong);
}
td.dim { color: var(--muted); }

/* On a phone the two columns that get typed into the portal have to be on
   screen without scrolling, so the dollar column steps aside and the cells
   tighten up. */
@media (max-width: 620px) {
  /* Every table tightens on a phone so more columns clear the screen edge. */
  table { font-size: 13.5px; }
  thead th { padding: 8px 9px; letter-spacing: 0; font-size: 11.5px; }
  tbody td { padding: 7px 9px; }

  .doriis-t th:last-child,
  .doriis-t td:last-child { display: none; }
  .doriis-t table { font-size: 13px; }
  /* The column head already names the unit at this width. */
  .doriis-t .u { display: none; }
  /* Long material names wrap rather than push the numbers off screen. */
  .doriis-t th:first-child,
  .doriis-t td:first-child { white-space: normal; }
}

.details {
  margin-top: var(--s3);
  border-top: 1px solid var(--line);
  padding-top: var(--s3);
}
.details > summary {
  font-size: 14px;
  font-weight: 550;
  color: var(--brand-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
}
.details > summary::-webkit-details-marker { display: none; }
.details > summary::before {
  content: "";
  width: 7px; height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
}
.details[open] > summary::before { transform: rotate(45deg); }
.details > summary + * { margin-top: var(--s3); }

/* ---------- Badges, callouts ---------- */

.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .02em;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.excluded { color: var(--bad-ink); background: #fbeaea; }
.badge.kept     { color: var(--ink-2);  background: #eef0ec; }
.badge.partial  { color: #7a5a06;       background: var(--warn-soft); }

.callout {
  display: flex;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  border-radius: var(--r2);
  font-size: 14.5px;
  line-height: 1.5;
  margin-bottom: var(--s4);
}
.callout .ic { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.callout strong { font-weight: 650; }
.callout.warning {
  color: #5c440a;
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
}
.callout.warning .ic { color: #b98708; }
.callout.info {
  color: var(--ink-2);
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}
.callout.info .ic { color: var(--brand); }

.story {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 68ch;
}
.story strong { color: var(--ink); font-weight: 650; }
.story h3 {
  font-size: 15.5px;
  color: var(--ink);
  margin: var(--s5) 0 var(--s2);
}
.story h3:first-child { margin-top: 0; }

/* ---------- DORIIS copy affordances ---------- */

.copy-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 28px;
  padding: 2px 5px 2px 7px;
  margin: -2px -5px -2px 0;
  font: inherit;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r1);
  cursor: pointer;
  width: 100%;
  transition: background .12s ease, border-color .12s ease;
}
.copy-cell:hover { background: var(--brand-soft); border-color: var(--brand-line); }
.copy-cell .ci { width: 13px; height: 13px; flex: none; color: var(--muted); opacity: 0; transition: opacity .12s ease; }
.copy-cell:hover .ci, .copy-cell:focus-visible .ci { opacity: 1; }
.copy-cell.copied { background: #e8f6e8; border-color: #bce3bc; }
.copy-cell.copied .ci { opacity: 1; color: var(--good-ink); }
@media (hover: none) {
  .copy-cell .ci { opacity: .55; }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 12px);
  z-index: 90;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 550;
  color: #fff;
  background: #1d2124;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Loading / error ---------- */

.state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  padding: 64px var(--s4);
  text-align: center;
  color: var(--muted);
}
.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--line-strong);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  * { transition-duration: .01ms !important; }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Login ---------- */

body.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  background:
    radial-gradient(120% 80% at 50% -10%, #eaf3ed 0%, rgba(234,243,237,0) 62%),
    var(--page);
}

.login-card {
  width: 100%;
  max-width: 380px;
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s5);
  text-align: center;
}
.login-brand .mark { width: 42px; height: 42px; color: var(--brand); }
.login-brand .name {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.login-brand .tag {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-top: -6px;
}

.login-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  box-shadow: var(--shadow);
  padding: var(--s5) var(--s4);
}

.login-box label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.login-box input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r1);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.login-box input[type="password"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(20,102,61,.14);
}
.login-box input[aria-invalid="true"] { border-color: var(--bad); }
.login-box .btn-primary { width: 100%; min-height: 46px; font-size: 15.5px; margin-top: var(--s4); }

.form-error {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin-top: var(--s3);
  font-size: 14px;
  color: var(--bad-ink);
}
.form-error.show { display: flex; }
.form-error .ic { width: 17px; height: 17px; flex: none; margin-top: 1px; }

.login-help {
  margin-top: var(--s4);
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ *
 * Print. Built for the DORIIS view (a sheet to type from at the portal),
 * and tidy for any other view. Only the open view prints; the others
 * already carry the `hidden` attribute.
 * ------------------------------------------------------------------ */
.print-only { display: none; }

@media print {
  @page { margin: 12mm; }

  html, body { background: #fff !important; color: #000; }
  .topbar, .controls, .toast, .copy-table, .view-head .lede, #loading, #loadfail { display: none !important; }
  .print-only { display: block; font-size: 10.5pt; font-weight: 600; margin: 0 0 8pt; }

  main { max-width: none; margin: 0; padding: 0; }
  .view-head { margin-bottom: 6pt; }
  .view-head h1 { font-size: 15pt; }

  .card {
    box-shadow: none;
    border: 1px solid #888;
    border-radius: 0;
    padding: 8pt 10pt;
    margin: 0 0 8pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .card h2 { font-size: 11.5pt; }
  .callout { border: 1px solid #888; background: none !important; padding: 6pt 8pt; margin-bottom: 8pt; break-inside: avoid; }
  .callout .ic { display: none; }

  /* Tables print whole: no scroll box, every column, compact rows. */
  .table-scroll { overflow: visible !important; }
  table { font-size: 10pt; }
  thead th, tbody td { padding: 3pt 6pt; }
  .doriis-t th:last-child, .doriis-t td:last-child { display: table-cell !important; }
  .doriis-t .u { display: inline !important; }

  /* Copy buttons become plain numbers on paper. */
  .copy-cell { border: 0; background: none; padding: 0; color: #000; font: inherit; }
  .copy-cell .ci { display: none; }

  /* The on-screen hint about tapping to copy means nothing on paper. */
  #doriis-tables > p:first-child { display: none; }

  /* A sample-data label stays on paper; the rest of the top bar does not. */
  .topbar.has-notice { display: block !important; position: static; border: 0; }
  .topbar.has-notice > :not(.sample-notice) { display: none !important; }
  .sample-notice { border: 1px solid #888; background: none; color: #000; margin: 0 0 8pt; font-size: 10.5pt; }
}
