/* Offer cards A, B, C and the fixes matrix on the report page, loaded
   after report.css.
   A file of its own because report.css is near the size limit, and
   served as a file since the page runs under CSP style-src 'self'.
   The look follows the score panels and finding rows: 1px --line
   rules, sharp corners, mono caps labels, Space Grotesk for prices.
   Paragraph margins need `.c-root`: the site's `.c-root p` zeroes
   them. */

/* The jump link under the score panels and the price list link above
   the cards: a compact o-btn-2, sized like the PDF button. */
.c-root .r-jump { margin-top: 16px; }
.c-root .t-prices { margin-bottom: 18px; }
.r-jump .o-btn-2, .t-prices .o-btn-2 { display: inline-flex; width: auto;
  height: 44px; padding: 0 48px 0 24px; }

.c-root .t-lead { margin-bottom: 18px; font-size: 15px; line-height: 1.55;
  color: var(--ink-2); }

/* One grid holds every cell of every card. The articles are
   `display: contents`, so their nine cells (name, price, five rows,
   extras, pick) fill the grid column by column and row N of every
   card is as tall as the tallest row N. The column gap splits the
   columns into cards. */
.t-grid { display: grid; grid-auto-flow: column;
  grid-template-rows: repeat(9, auto); grid-auto-columns: 1fr;
  column-gap: 16px; }
/* Without the order form (the CLI page) a card has no pick cell. */
.t-nopick { grid-template-rows: repeat(8, auto); }
.t-card { display: contents; }
/* One or two cards would stretch across a wide page. */
.t-cols-1 { max-width: 420px; }
.t-cols-2 { max-width: 840px; }

/* Each cell carries the card's side rules; the first and the last
   cell of a card close it at the top and the bottom. */
.t-cell { padding: 10px 18px; background: var(--paper);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  min-width: 0; }
.t-card > .t-cell:first-child { border-top: 1px solid var(--line);
  padding-top: 18px; }
.t-card > .t-cell:last-child { border-bottom: 1px solid var(--line);
  padding-bottom: 18px; }

/* The mono face of the card letter, the minimum order tag and the
   row labels. */
.t-letter, .t-min, .t-k { font-family: "IBM Plex Mono", ui-monospace,
  monospace; }

.c-root .t-name { font-family: "Space Grotesk", sans-serif;
  font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.t-letter { display: block; margin-bottom: 6px; font-size: 12px;
  font-weight: 500; letter-spacing: .14em; color: var(--blue); }
.t-price { display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 2px 10px; }
.t-now { font-family: "Space Grotesk", sans-serif; font-size: 28px;
  font-weight: 600; line-height: 1.2; color: var(--ink);
  white-space: nowrap; }
/* The minimum order tag beside a price the minimum lifted: mono caps
   in muted ink, boxed by a thin rule. The row labels share the caps
   look. */
.t-min, .t-k { font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); }
.t-min { font-weight: 500; line-height: 1.4; padding: 1px 6px;
  white-space: nowrap; border: 1px solid var(--line); }

/* The five rows: a thin rule above each, a mono caps label over the
   value. */
.t-row { border-top: 1px solid var(--line-2); }
/* The first row is the card's third cell, under name and price. */
.t-card > .t-row:nth-child(3) { border-top-color: var(--line); }
.t-k { display: block; }
.t-v { display: block; font-size: 15px; line-height: 1.45;
  color: var(--ink); }
.t-extras { border-top: 1px solid var(--line); font-size: 14px;
  line-height: 1.5; color: var(--muted); }
/* No green token in the site's palette, so the free extras line
   stands out in the darker ink instead. */
.t-free { color: var(--ink-2); }
.t-pick { padding-top: 8px; }

.c-root .t-terms { margin-top: 18px; font-size: 14px; line-height: 1.55;
  color: var(--ink-2); text-align: justify; hyphens: auto; }

/* Phones and narrow windows: the cards stand one under the other. */
@media (max-width: 759px) {
  .t-grid, .t-card { display: block; }
  .t-card + .t-card { margin-top: 16px; }
}

/* The order form's card radios and consent box: each control beside
   its label text, in the body size of the form. */
.r-choices { border: 0; margin: 0; padding: 0; display: grid;
  gap: 6px; }
.r-choice, .r-consent { display: flex; align-items: baseline; gap: 8px;
  font-size: 15px; line-height: 1.45; color: var(--ink); }
/* The order form waits for a card's button, which opens it in the
   popup; html.py leaves the class off when the page must show it. */
.c-root .r-order-closed { display: none; }
.c-root .r-order-next { margin-top: 4px; font-size: 14px;
  line-height: 1.55; color: var(--ink-2); }
/* The thanks page: the ordered card above the lines, the advance
   under the total. */
.c-root .r-quote-card { margin-top: 12px; font-size: 15px;
  font-weight: 600; }
.c-root .r-quote-advance { margin-top: 4px; font-size: 15px; }

/* The order popup (order-dialog.js): the form's body moved into a
   modal <dialog>. The padding sits on the moved head and body, not on
   the dialog, so the body fills the box: only the backdrop and the
   1px border target the dialog itself, and the script closes only
   when both the press and the click land outside the box. The "05"
   label stays in the page look and is hidden here. The x is a 44px
   tap target in the top right corner, clear of the heading. */
.o-dialog { position: fixed; max-width: 560px; width: calc(100% - 32px);
  max-height: 90vh; overflow: auto; padding: 0; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); }
.o-dialog::backdrop { background: rgba(10, 10, 11, .55); }
.o-dialog .c-sec-head { padding: 20px 64px 16px 24px; }
.o-dialog .c-sec-head h2 { margin-top: 0; font-size: 26px; }
.o-dialog .c-lbl { display: none; }
.o-dialog .r-body { padding: 20px 24px 24px; }
.o-dialog-x { position: absolute; top: 0; right: 0; width: 44px;
  height: 44px; padding: 0; border: 0; background: none;
  font-size: 28px; line-height: 1; color: var(--ink); cursor: pointer; }
.o-dialog-x:focus-visible { outline: 2px solid var(--blue);
  outline-offset: -4px; }

/* The fixes matrix of section 01. The header row and every closed
   row share one grid: chevron, fix, problem, marks. The marks sit in
   one .m-marks box of fixed-width cells, so its auto column is as
   wide in every row and the letters stand over their ticks. The
   chevron, marker and focus rules are shared with .r-sum in
   report.css. */
.c-root .m-note { margin-bottom: 16px; font-size: 15px;
  line-height: 1.55; color: var(--ink-2); }
.m-head, .m-sum { display: grid; align-items: center; gap: 6px 12px;
  grid-template-columns: 10px minmax(0, 2fr) minmax(0, 3fr) auto;
  grid-template-areas: "mark fix problem marks"; }
/* The mono caps header of the matrix and of the price list table. */
.m-head, .p-table thead th { color: var(--muted);
  font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px;
  letter-spacing: .06em; text-transform: uppercase; }
.m-head { padding-bottom: 8px; }
.m-head + .r-group { margin-top: 4px; }
.m-fix { grid-area: fix; min-width: 0; }
.m-problem { grid-area: problem; min-width: 0; }
.m-marks { grid-area: marks; display: flex; }
.m-mark { width: 40px; text-align: center;
  font-family: "IBM Plex Mono", ui-monospace, monospace; }
.m-head .m-mark { color: var(--blue); font-weight: 500; }
.m-row { border-bottom: 1px solid var(--line-2); }
.m-row:last-child { border-bottom: 0; }
.m-sum { padding: 12px 0; cursor: pointer; list-style: none; }
.m-sum .m-fix { font-family: "Space Grotesk", sans-serif;
  font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.m-sum .m-problem { font-size: 14px; line-height: 1.45;
  color: var(--ink-2); }
.m-sum .m-mark { font-size: 16px; }
/* A mark in the matrix and the price list: the brand red tick when
   the card holds the fix, a muted dot when not. */
.m-on, .p-on { color: var(--blue); font-weight: 600; }
.m-off, .p-off { color: var(--muted); }
/* The body lines up under the fix, past the chevron. Each finding is
   ruled off from the one before. */
.m-more { padding: 0 0 14px 22px; }
.m-item + .m-item { margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--line-2); }
.m-item .r-title { padding-top: 6px; font-size: 16px; }

/* Phones and narrow windows: fix and marks on one line, the problem
   under them at full width, the body flush left. The header keeps the
   fix label and the letters. Screens only: a browser printing A4 is
   this narrow too, and paper keeps the wide matrix. */
@media screen and (max-width: 759px) {
  .m-head, .m-sum { grid-template-columns: 10px minmax(0, 1fr) auto;
    grid-template-areas: "mark fix marks" ". problem problem"; }
  .m-head { grid-template-areas: "mark fix marks"; }
  .m-head .m-problem { display: none; }
  .m-more { padding-left: 0; }
}

/* The detailed price list page (prices.html). The wrapper scrolls the
   table sideways on a phone, so the page itself never grows wider.
   Rules as on the cards: 1px --line under the head and the groups,
   --line-2 between the fixes. The head and the marks share the
   matrix rules above. */
.p-scroll { overflow-x: auto; }
/* The table is 560px at least, so under 600px it scrolls: say so. */
.p-hint { display: none; margin: 0 0 8px; font-size: 14px;
  color: var(--muted); }
@media screen and (max-width: 599px) {
  .p-hint { display: block; }
}
.p-table { width: 100%; min-width: 560px; border-collapse: collapse;
  font-size: 15px; line-height: 1.45; color: var(--ink); }
.p-table th, .p-table td { padding: 10px 12px; text-align: left;
  vertical-align: baseline; border-bottom: 1px solid var(--line-2); }
.p-table thead th { font-weight: 500; border-bottom-color: var(--line); }
.p-table thead .p-mark { color: var(--blue); }
.p-group th { padding-top: 20px; font-family: "Space Grotesk", sans-serif;
  font-size: 16px; font-weight: 600; border-bottom-color: var(--line); }
.p-table .p-eur, .p-table .p-mark { white-space: nowrap; }
.p-table .p-mark { text-align: center; }
/* The totals: each card's price large, its advance in the darker
   body ink. */
.p-table tfoot th { font-weight: 500; }
.p-table tfoot tr:first-child > * { border-top: 1px solid var(--line); }
.p-now td { font-family: "Space Grotesk", sans-serif; font-size: 20px;
  font-weight: 600; }
.p-adv td { color: var(--ink-2); }
.c-root .p-term { margin-top: 12px; font-size: 14px; line-height: 1.55;
  color: var(--ink-2); }
/* The refund policy link under the terms: underlined, or it reads
   as one more term. */
.c-root .p-term a { color: var(--ink); text-decoration: underline; }
