/* F3 live samples (DEC-939 as amended 2026-10-21; DEC-937 (1) amendment): readable copies of Azora views in place of
   screenshots on the Platform, Solutions and QMS pages (and, in phase 2, the solution heroes). Loaded only by pages
   that show a sample, after the page family's sheet; the homepage keeps its own copy of these rules in f3-home.css.

   A sample is a <figure class="rec-sample"> holding one .rec card and a caption with a "See the real screen" link
   where a current screenshot exists. Every rule below is scoped to #main .rec-sample, so the older page layers
   (customer-stories.css, platform-visuals.css, the F3 family sheets) never reach inside a sample and a sample's
   rules never reach outside it.

   Views and filters switch with radio buttons and :checked, never script, so they work with JavaScript off and in
   any viewer. The switching is by POSITION, not by id: the nth radio of a .rec-set shows the nth .rec-view and
   rules the nth tab label; the nth radio of a .rec-fset rings the nth filter label and hides every [data-in] row
   whose list does not name n (radio 1 is the reset and shows everything). So a new sample needs no new CSS, up to
   six views or filters. The radios are visually hidden but focusable: Tab reaches the chosen one, the arrow keys
   move between them natively, and the focused radio's label carries the ring.

   Wide samples stack their views in one grid cell (only the chosen one is visible), so a switch never moves the page
   below; filtered-out rows stay in place, hidden. Phones (max-width 759px) and samples 660px wide or less show only
   the chosen view and drop filtered rows instead, so nothing leaves a blank gap. Tables, lists and grids reflow by the
   sample's own width (container "rec"). Text stays ink or indigo; status colours appear only on chips, marks, bars,
   tiles and dots. Every word is 12px or more at every width. */

#main .rec-sample {
  --rec-ink: #1d2433; --rec-ink-2: #3d4a63; --rec-muted: #56637b; --rec-indigo: #2f3f9e; --rec-ring: #384aaf;
  --rec-line: #e3e8f2; --rec-soft: #f6f8fc; --rec-red: #a8243a; --rec-green: #1f6a4a; --rec-amber: #7a4f00;
  display: flex; flex-direction: column; gap: 0; min-width: 0; margin: 0;
}
#main .rec-sample .rec {
  container: rec / inline-size;
  min-width: 0; border: 1px solid var(--rec-line); border-radius: 12px; background: #fff; box-shadow: 0 10px 28px #1f29560d;
  color: var(--rec-ink); font: 400 14.5px/1.5 var(--font-body); text-align: left;
}
/* The page layers' list, paragraph, heading and check-badge rules stay out of the card. :where() keeps this reset at
   the weight of one class under #main, so every rule below still overrides it, and every page-layer rule (no id)
   still loses to it. The page's own cue list and caption around the card keep their styles. */
#main .rec-sample .rec :where(p, ul, ol, li, h3, h4, table, th, td, dl, dt, dd) {
  margin: 0; padding: 0; border: 0; list-style: none; color: inherit; font-size: inherit; line-height: inherit; font-weight: inherit;
  letter-spacing: normal; text-transform: none; background: none; box-shadow: none;
}
#main .rec-sample .rec :where(li)::before, #main .rec-sample .rec :where(li)::after { content: none; }
#main .rec-sample .rec-k {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- Header, chips, caption */
#main .rec-sample .rec-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 16px; padding: 18px 22px 12px;
}
#main .rec-sample .rec-title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#main .rec-sample .rec-t { display: flex; align-items: center; gap: 10px; color: var(--rec-ink); font: 600 20px/1.3 var(--font-body); }
#main .rec-sample .rec-t svg { flex: none; width: 22px; height: 22px; }
#main .rec-sample .rec-sub { color: var(--rec-muted); font-size: 14px; }
#main .rec-sample .rec-lede { color: var(--rec-muted); font-size: 13.5px; line-height: 1.5; }
#main .rec-sample .rec-chips { display: flex; flex-wrap: wrap; gap: 6px 8px; }
#main .rec-sample .rec-chip {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font: 600 12.5px/1.45 var(--font-body); white-space: nowrap;
}
#main .rec-sample .rec-chip--red { background: #fde7ea; color: var(--rec-red); }
#main .rec-sample .rec-chip--indigo { background: #e8eefc; color: var(--rec-indigo); }
#main .rec-sample .rec-chip--amber { background: #fdf1d8; color: var(--rec-amber); }
#main .rec-sample .rec-chip--grey { background: #eef1f6; color: var(--rec-ink-2); }
#main .rec-sample .rec-chip--green { background: #e3f4ef; color: #1f5f50; }
#main .rec-sample .rec-chip--orange { background: #f9dece; color: #9e3e07; }
#main .rec-sample .rec-chip--violet { background: #efe7fb; color: #5b3a9c; }
#main .rec-sample .rec-chip--teal { background: #dff1f2; color: #155e63; }
#main .rec-sample .rec-chip--blue { background: #e3eafb; color: #24418f; }
#main .rec-sample .rec-chip--start { align-self: flex-start; }
/* An active filter, in the product's "{label}: {value}" chip format (FilterChipStrip.tsx). */
#main .rec-sample .rec-fchip {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 2px 10px; border: 1px solid #b9c4e4; border-radius: 999px;
  background: #fff; color: var(--rec-ink); font-size: 13px; line-height: 1.45;
}
#main .rec-sample .rec-fchip__k { color: var(--rec-muted); font-weight: 500; }

#main .rec-sample figcaption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 16px; margin: 12px 0 0;
  color: var(--f3-muted-2, #56637b); font-size: 13px; line-height: 1.5;
}
#main .rec-sample .rec-real {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--f3-accent-ink, #2f3f9e);
  font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px;
}
#main .rec-sample .rec-real:hover { color: var(--f3-accent-hover, #2a3b95); }

/* ---------------------------------------------------------------- Views: hidden radios, tab labels, one panel each */
#main .rec-sample :is(.rec-set, .rec-fset) { position: relative; }
#main .rec-sample .rec-radio {
  position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none;
}
#main .rec-sample .rec-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--rec-line); }
#main .rec-sample .rec-tabs > :is(label, span) {
  box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; min-height: 46px; margin-bottom: -1px; padding: 0 14px;
  border-radius: 8px 8px 0 0; color: var(--rec-muted); font: 500 14.5px/1.2 var(--font-body);
}
#main .rec-sample .rec-tabs > label { cursor: pointer; -webkit-user-select: none; user-select: none; }
#main .rec-sample .rec-tabs > label:hover { color: var(--rec-indigo); }
/* A still sample names its one view with the same underline, as plain text (nothing to click). */
#main .rec-sample .rec-tabs > span.is-current { border-bottom: 2px solid var(--rec-ring); color: var(--rec-indigo); font-weight: 600; }
/* The chosen view's label: indigo with a 2px rule (a real border, so forced colours keep it). */
#main .rec-sample .rec-set > .rec-radio:nth-of-type(1):checked ~ .rec-tabs > label:nth-child(1),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(2):checked ~ .rec-tabs > label:nth-child(2),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(3):checked ~ .rec-tabs > label:nth-child(3),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(4):checked ~ .rec-tabs > label:nth-child(4),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(5):checked ~ .rec-tabs > label:nth-child(5),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(6):checked ~ .rec-tabs > label:nth-child(6) {
  border-bottom: 2px solid var(--rec-ring); color: var(--rec-indigo); font-weight: 600;
}
/* The focused radio's label carries the ring. */
#main .rec-sample .rec-set > .rec-radio:nth-of-type(1):focus-visible ~ .rec-tabs > label:nth-child(1),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(2):focus-visible ~ .rec-tabs > label:nth-child(2),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(3):focus-visible ~ .rec-tabs > label:nth-child(3),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(4):focus-visible ~ .rec-tabs > label:nth-child(4),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(5):focus-visible ~ .rec-tabs > label:nth-child(5),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(6):focus-visible ~ .rec-tabs > label:nth-child(6),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(1):focus-visible ~ .rec-filters > label:nth-child(1),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(2):focus-visible ~ .rec-filters > label:nth-child(2),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(3):focus-visible ~ .rec-filters > label:nth-child(3),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(4):focus-visible ~ .rec-filters > label:nth-child(4),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(5):focus-visible ~ .rec-filters > label:nth-child(5),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(6):focus-visible ~ .rec-filters > label:nth-child(6) {
  outline: 2px solid var(--rec-ring); outline-offset: -4px;
}
/* A radio is a 1px box at the top-left of its row, and the browser only brings that box into view on focus. The
   margin keeps the whole row in view as well (a second wrapped row included) and below the sticky navigation. A tap
   or click never matches :focus-visible, so it still leaves the page where it is. */
#main .rec-sample :is(.rec-set, .rec-fset) > .rec-radio:focus-visible { scroll-margin: 96px 0 96px; }
/* A filter radio sits at the top of its card row (below the row's caption) and keeps room for a second row of cards
   below it, so the focused card is never under the fold. */
#main .rec-sample .rec-fset > .rec-radio { top: 28px; }
#main .rec-sample .rec-fset > .rec-radio:focus-visible { scroll-margin: 96px 0 230px; }

/* A view or row that a switch can hide is never the browser's scroll anchor: Chrome anchored to the view being hidden
   and moved the page about 150px when a tap swapped a short view for a tall one (seen at 970px). */
#main .rec-sample :is(.rec-view, [data-in]) { overflow-anchor: none; }
/* A story whose sample switches views or filters keeps its text column at the top. The column is a flex column
   stretched to the row and centred (customer-stories.css), so its text moved by half of every height change, and the
   browser, anchored to that text, scrolled the page with it (about 150px when a tap at 970px opened a taller view). */
#main .customer-story__grid:has(> .rec-sample :is(.rec-set, .rec-fset)) { align-items: start; }
#main .customer-story__grid:has(> .rec-sample :is(.rec-set, .rec-fset)) > .customer-story__copy { align-self: start; justify-content: flex-start; }
#main .rec-sample .rec-views { display: grid; grid-template-columns: minmax(0, 1fr); }
#main .rec-sample .rec-view { grid-area: 1 / 1; min-width: 0; padding: 20px 22px 24px; visibility: hidden; }
#main .rec-sample .rec-set > .rec-radio:nth-of-type(1):checked ~ .rec-views > .rec-view:nth-child(1),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(2):checked ~ .rec-views > .rec-view:nth-child(2),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(3):checked ~ .rec-views > .rec-view:nth-child(3),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(4):checked ~ .rec-views > .rec-view:nth-child(4),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(5):checked ~ .rec-views > .rec-view:nth-child(5),
#main .rec-sample .rec-set > .rec-radio:nth-of-type(6):checked ~ .rec-views > .rec-view:nth-child(6) {
  display: block; visibility: visible;
}
/* A still sample's single body. */
#main .rec-sample .rec-body { min-width: 0; padding: 18px 22px 24px; }

/* Filters (the Roadmap's insight cards): each label is a card; the chosen one has an indigo ring, except a reset
   label (.is-reset), which the product never shows as pressed. Rows a filter leaves out stay in place, hidden, on
   wide samples (the list keeps its height, so the page below never moves) and leave the layout on narrow ones. */
#main .rec-sample .rec-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 8px; }
#main .rec-sample .rec-filters > label {
  position: relative; box-sizing: border-box; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px;
  padding: 10px 12px 10px 15px; overflow: hidden; border: 1px solid #d5dbe8; border-radius: 8px; background: #fff;
  color: var(--rec-muted); font-size: 13px; line-height: 1.3; cursor: pointer; -webkit-user-select: none; user-select: none;
}
#main .rec-sample .rec-filters > label::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--rec-strip, #8fa3c8); }
#main .rec-sample .rec-filters > label:hover { border-color: #9fadcb; }
#main .rec-sample .rec-filters b { color: var(--rec-num, var(--rec-ink)); font: 700 22px/1.1 var(--font-body); font-variant-numeric: tabular-nums; }
#main .rec-sample .rec-filters small { color: var(--rec-muted); font-size: 12px; }
/* The card colours and the pressed ring follow the product (RoadmapInsightsBar.tsx: strip, number and ring by card colour). */
#main .rec-sample .rec-filters .is-green { --rec-strip: #2f9a62; --rec-num: #1f6a4a; --rec-pressed: #eef8f2; }
#main .rec-sample .rec-filters .is-yellow { --rec-strip: #c98a07; --rec-num: #7a4f00; --rec-pressed: #fdf8ec; }
#main .rec-sample .rec-filters .is-peach { --rec-strip: #e0702a; --rec-num: #9e3e07; --rec-pressed: #fdf3ec; }
#main .rec-sample .rec-filters .is-red { --rec-strip: #d2394f; --rec-num: #a8243a; --rec-pressed: #fdf2f4; }
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(2):checked ~ .rec-filters > label:nth-child(2):not(.is-reset),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(3):checked ~ .rec-filters > label:nth-child(3):not(.is-reset),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(4):checked ~ .rec-filters > label:nth-child(4):not(.is-reset),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(5):checked ~ .rec-filters > label:nth-child(5):not(.is-reset),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(6):checked ~ .rec-filters > label:nth-child(6):not(.is-reset) {
  border: 2px solid var(--rec-strip, var(--rec-ring)); padding: 9px 11px 9px 14px; background: var(--rec-pressed, #eef1fb);
}
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(2):checked ~ * [data-in]:not([data-in~="2"]),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(3):checked ~ * [data-in]:not([data-in~="3"]),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(4):checked ~ * [data-in]:not([data-in~="4"]),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(5):checked ~ * [data-in]:not([data-in~="5"]),
#main .rec-sample .rec-fset > .rec-radio:nth-of-type(6):checked ~ * [data-in]:not([data-in~="6"]) {
  order: 1; visibility: hidden;
}

/* ---------------------------------------------------------------- Shared record pieces */
#main .rec-sample .rec-stack { display: flex; flex-direction: column; gap: 16px; }
#main .rec-sample .rec-stack--tight { gap: 10px; }
#main .rec-sample .rec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px; }
#main .rec-sample .rec-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#main .rec-sample .rec-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
#main .rec-sample .rec-l { color: var(--rec-muted); font-size: 12.5px; }
#main .rec-sample .rec-l--caps { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
#main .rec-sample .rec-v { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
#main .rec-sample .rec-v--text { font-weight: 400; line-height: 1.55; }
#main .rec-sample .rec-box {
  display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px 14px;
  border: 1px solid var(--rec-line); border-radius: 10px; background: var(--rec-soft);
}
#main .rec-sample .rec-cap { color: var(--rec-muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
#main .rec-sample .rec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14.5px; }
#main .rec-sample .rec-row--split { justify-content: space-between; }
#main .rec-sample .rec-strong { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
#main .rec-sample .rec-mono { color: var(--rec-ink-2); font: 500 13px/1.45 var(--font-mono); overflow-wrap: anywhere; }
#main .rec-sample .rec-small { color: var(--rec-muted); font-size: 13.5px; font-weight: 400; }
#main .rec-sample .rec-nw { white-space: nowrap; }
#main .rec-sample .rec-text {
  display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--rec-line); border-radius: 10px;
  background: var(--rec-soft); font-size: 14.5px; line-height: 1.55;
}
#main .rec-sample .rec-select {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--rec-line);
  border-radius: 10px; background: var(--rec-soft); font-size: 15px; font-weight: 500;
}
#main .rec-sample .rec-select::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid var(--rec-muted); border-bottom: 2px solid var(--rec-muted); transform: rotate(45deg);
}
/* Record ids in the product's mono id colours (each 4.5:1 or more on white and on the soft fill). */
#main .rec-sample .rec-id { flex: none; color: #2847b8; font: 600 13.5px/1.45 var(--font-mono); white-space: nowrap; }
#main .rec-sample .rec-id--green { color: #2a6e2f; }
#main .rec-sample .rec-id--orange { color: #a5420a; }
#main .rec-sample .rec-id--lg { font-size: 16px; }
#main .rec-sample .rec-sep { color: #8b95a8; }

/* ---------------------------------------------------------------- Impact Analysis */
#main .rec-sample .rec-items { display: flex; flex-direction: column; gap: 8px; }
#main .rec-sample .rec-item {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px;
  border: 1px solid var(--rec-line); border-radius: 10px; background: var(--rec-soft); font-size: 14.5px;
}
#main .rec-sample .rec-item > .rec-item__t { flex: 1 1 200px; min-width: 0; }
#main .rec-sample .rec-item > .rec-chip, #main .rec-sample .rec-item > .rec-small { margin-left: auto; }

/* ---------------------------------------------------------------- BOM Availability */
#main .rec-sample .rec-stats { display: flex; flex-wrap: wrap; gap: 8px; }
#main .rec-sample .rec-stat {
  display: flex; flex-direction: column; gap: 2px; min-width: 120px; padding: 8px 12px;
  border: 1px solid var(--rec-line); border-radius: 8px; background: var(--rec-soft);
}
#main .rec-sample .rec-stat .rec-l { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
#main .rec-sample .rec-stat b { color: var(--rec-ink); font: 700 17px/1.3 var(--font-body); font-variant-numeric: tabular-nums; }
#main .rec-sample .rec-stat--red b, #main .rec-sample .rec-num--red { color: #b42335; }
#main .rec-sample .rec-stat--peach b, #main .rec-sample .rec-num--peach { color: #9e3e07; }
#main .rec-sample .rec-num--green { color: #1f6a4a; }
#main .rec-sample .rec-num--blue { color: #2847b8; }
#main .rec-sample .rec-table { width: 100%; border: 1px solid var(--rec-line); border-radius: 10px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
#main .rec-sample .rec-table :is(th, td) { padding: 8px 10px; border-top: 1px solid #edf0f6; text-align: right; vertical-align: middle; font-variant-numeric: tabular-nums; }
#main .rec-sample .rec-table :is(th, td):first-child { text-align: left; }
#main .rec-sample .rec-table thead th { border-top: 0; background: var(--rec-soft); color: var(--rec-muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
#main .rec-sample .rec-table thead th:first-child { border-top-left-radius: 9px; }
#main .rec-sample .rec-table thead th:last-child { border-top-right-radius: 9px; }
#main .rec-sample .rec-table tbody th { color: var(--rec-ink); font-weight: 600; white-space: nowrap; }
#main .rec-sample .rec-table tbody td { color: var(--rec-ink-2); }
#main .rec-sample .rec-table tr.is-short :is(th, td) { background: #fdf2f4; }
#main .rec-sample .rec-table .rec-dash { color: #6b778c; }

/* ---------------------------------------------------------------- Document review */
#main .rec-sample .rec-doc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
#main .rec-sample .rec-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
#main .rec-sample .rec-step { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; color: var(--rec-muted); font-size: 14px; font-weight: 500; }
#main .rec-sample .rec-step__n {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid #b8c0d0; border-radius: 50%;
  color: var(--rec-muted); font: 600 12.5px/1 var(--font-body);
}
#main .rec-sample .rec-step.is-done { color: #1f6a4a; }
#main .rec-sample .rec-step.is-done .rec-step__n { border-color: #2f9a62; background: #2f9a62; color: #fff; }
#main .rec-sample .rec-step.is-current { background: #e8eefc; color: var(--rec-indigo); font-weight: 600; }
#main .rec-sample .rec-step.is-current .rec-step__n { border-color: var(--rec-ring); background: var(--rec-ring); color: #fff; }
#main .rec-sample .rec-step + .rec-step { position: relative; margin-left: 30px; }
#main .rec-sample .rec-step + .rec-step::before { content: ""; position: absolute; top: 50%; right: 100%; width: 24px; height: 1px; margin-right: 3px; background: #c9d1e1; }
#main .rec-sample .rec-meter { display: flex; align-items: center; gap: 10px; }
#main .rec-sample .rec-meter__bar { flex: 1; height: 7px; border-radius: 999px; background: #e6eaf2; overflow: hidden; }
#main .rec-sample .rec-meter__bar span { display: block; height: 100%; border-radius: inherit; background: #2f9a62; }
#main .rec-sample .rec-awaiting { color: #8a4a12; }
#main .rec-sample .rec-chain { display: flex; flex-direction: column; gap: 8px; }
#main .rec-sample .rec-chain li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14.5px; }

/* ---------------------------------------------------------------- Training matrix */
#main .rec-sample .rec-matrix { width: 100%; border: 1px solid var(--rec-line); border-radius: 10px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
#main .rec-sample .rec-matrix :is(th, td) { padding: 9px 10px; border-top: 1px solid #edf0f6; text-align: center; vertical-align: middle; }
#main .rec-sample .rec-matrix :is(th, td):first-child { text-align: left; }
#main .rec-sample .rec-matrix thead th { border-top: 0; background: var(--rec-soft); color: var(--rec-muted); font-size: 12.5px; font-weight: 600; }
#main .rec-sample .rec-matrix thead th:first-child { border-top-left-radius: 9px; }
#main .rec-sample .rec-matrix thead th:last-child { border-top-right-radius: 9px; }
#main .rec-sample .rec-person { color: var(--rec-ink); font-weight: 600; }
#main .rec-sample .rec-role { display: block; color: var(--rec-muted); font-size: 12.5px; line-height: 1.4; }
#main .rec-sample .rec-matrix tbody th { min-width: 9.5em; }
/* Each matrix cell names its course for the phone layout (one block per person); wide tables have the column
   header instead, so the name is kept for screen readers only. The phone "Gaps" line replaces the Gaps column. */
#main .rec-sample .rec-mc {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
#main .rec-sample .rec-mark { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
#main .rec-sample .rec-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#main .rec-sample .rec-mark--current { color: #1f7a4d; }
#main .rec-sample .rec-mark--missing { color: #b42335; }
#main .rec-sample .rec-mark--expired, #main .rec-sample .rec-mark--unavailable { color: #8a5a00; }
#main .rec-sample .rec-mark--none { color: var(--rec-muted); }
#main .rec-sample .rec-gap { display: inline-block; min-width: 24px; padding: 1px 7px; border-radius: 6px; background: #fde7ea; color: var(--rec-red); font-size: 12.5px; font-weight: 700; }
#main .rec-sample .rec-clear { color: #1f7a4d; font-size: 13px; font-weight: 600; }
#main .rec-sample .rec-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--rec-muted); font-size: 13px; }
#main .rec-sample .rec-legend li { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------------------------------------------------------- QMS Hub tiles */
#main .rec-sample .rec-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
#main .rec-sample .rec-tile {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; border: 1px solid var(--rec-tile-line, #f1c4cc);
  border-radius: 10px; background: var(--rec-tile-fill, #fdf4f5);
}
#main .rec-sample .rec-tile__l { display: flex; align-items: center; gap: 8px; color: var(--rec-tile-ink, #a8243a); font-size: 14.5px; font-weight: 600; }
#main .rec-sample .rec-tile__l svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#main .rec-sample .rec-tile b { color: var(--rec-tile-ink, #a8243a); font: 700 30px/1.15 var(--font-body); font-variant-numeric: tabular-nums; }
#main .rec-sample .rec-tile__d { color: var(--rec-ink-2); font-size: 13.5px; }
#main .rec-sample .rec-tile--yellow { --rec-tile-line: #ecd6a6; --rec-tile-fill: #fdf8ec; --rec-tile-ink: #7a4f00; }

/* ---------------------------------------------------------------- Roadmap (Gantt) */
#main .rec-sample .rec-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 12px; border: 1px solid #f3cfb4;
  border-radius: 8px; background: #fdf3ec; color: #8a3c0b; font-size: 13.5px;
}
#main .rec-sample .rec-banner svg { flex: none; width: 12px; height: 12px; fill: currentColor; stroke: none; }
#main .rec-sample .rec-banner .rec-cap { color: #8a3c0b; }
#main .rec-sample .rec-banner strong { color: var(--rec-ink); font-weight: 600; }
#main .rec-sample .rec-banner .rec-banner__when { margin-left: auto; color: var(--rec-muted); }
#main .rec-sample .rec-banner--green { border-color: #bfe3d0; background: #eef8f2; color: #1f5f50; }
#main .rec-sample .rec-gt { --span: 35; --weeks: 5; --today: -1; display: flex; flex-direction: column; }
#main .rec-sample .rec-gt__rows { display: flex; flex-direction: column; }
#main .rec-sample .rec-gt__row {
  display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr); gap: 12px; align-items: center;
  min-height: 40px; border-bottom: 1px solid #f0f2f7;
}
#main .rec-sample .rec-gt__name { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 5px 0; font-size: 14px; line-height: 1.35; }
#main .rec-sample .rec-gt__task { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
#main .rec-sample .rec-gt__task svg { flex: none; width: 14px; height: 14px; fill: none; stroke: #4f6fb8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#main .rec-sample .rec-gt__task--ms svg { stroke: #a86d00; }
#main .rec-sample .rec-gt__dep { color: var(--rec-muted); font-size: 12.5px; }
#main .rec-sample .rec-gt__row.is-done .rec-gt__task > span { color: var(--rec-muted); text-decoration: line-through; }
/* The day track: week lines, and today's red line drawn per row, so a row a filter hides takes its piece with it. */
#main .rec-sample .rec-gt__track {
  position: relative; align-self: stretch; min-height: 34px;
  background:
    linear-gradient(90deg, transparent calc(var(--today) / var(--span) * 100% - 1px), #d20f39 0 calc(var(--today) / var(--span) * 100% + 1px), transparent 0),
    repeating-linear-gradient(90deg, #e9edf4 0 1px, transparent 1px calc(100% / var(--weeks)));
}
#main .rec-sample .rec-gt__row--scale { min-height: 34px; border-bottom-color: var(--rec-line); color: var(--rec-muted); font-size: 12.5px; }
#main .rec-sample .rec-gt__row--scale .rec-gt__name { color: var(--rec-ink-2); font-weight: 600; }
/* Week starts on the first line, today's pill under them, so the pill never covers a date. */
#main .rec-sample .rec-gt__row--scale .rec-gt__track {
  display: grid; grid-template-columns: repeat(var(--weeks), minmax(0, 1fr)); align-items: start; min-height: 48px; padding-top: 6px; background: none;
}
#main .rec-sample .rec-gt__wk { padding-left: 4px; white-space: nowrap; }
#main .rec-sample .rec-gt__today {
  position: absolute; bottom: 3px; left: calc(var(--today) / var(--span) * 100%); transform: translateX(-50%);
  padding: 1px 7px; border-radius: 6px; background: #c8102e; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4;
}
#main .rec-sample .rec-gt__row--ms { background: #fbf8f2; }
#main .rec-sample .rec-gt__row--ms .rec-gt__name { color: #8a4a00; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
#main .rec-sample .rec-gt__bar {
  position: absolute; top: 50%; left: calc(var(--from) / var(--span) * 100%); width: calc((var(--to) - var(--from)) / var(--span) * 100%);
  box-sizing: border-box; display: flex; align-items: center; gap: 4px; height: 24px; padding: 0 5px; transform: translateY(-50%);
  border: 1px solid #b9c7e6; border-radius: 6px; background: #e3ebfb; color: #24418f; font: 600 12px/1 var(--font-body); overflow: hidden;
}
#main .rec-sample .rec-gt__bar--progress { border-color: #7f9be0; background: linear-gradient(90deg, #c9d8f8 var(--done, 0%), #e3ebfb 0); }
#main .rec-sample .rec-gt__bar--todo { border-color: #c9cfdb; background: #eef1f6; color: var(--rec-ink-2); }
#main .rec-sample .rec-gt__bar--done { border-color: #a9d7bf; background: #e3f4ec; color: #1f5f50; }
#main .rec-sample .rec-gt__bar svg { flex: none; width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#main .rec-sample .rec-gt__row.is-cp .rec-gt__bar { border: 2px solid #c42e45; }
#main .rec-sample .rec-gt__dia {
  position: absolute; top: 50%; left: calc(var(--at) / var(--span) * 100%); width: 13px; height: 13px; margin-left: -6.5px;
  transform: translateY(-50%) rotate(45deg); border: 1px solid #8a5a00; background: #d39a1a;
}
#main .rec-sample .rec-gt__row.is-cp .rec-gt__dia { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #c42e45; }
#main .rec-sample .rec-gt-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--rec-muted); font-size: 13px; }
#main .rec-sample .rec-gt-key li { display: inline-flex; align-items: center; gap: 6px; }
#main .rec-sample .rec-gt-key i { display: inline-block; width: 18px; height: 12px; border: 1px solid #c9cfdb; border-radius: 3px; background: #eef1f6; }
#main .rec-sample .rec-gt-key .is-progress { border-color: #7f9be0; background: #c9d8f8; }
#main .rec-sample .rec-gt-key .is-done { border-color: #a9d7bf; background: #e3f4ec; }
#main .rec-sample .rec-gt-key .is-cp { border: 2px solid #c42e45; background: #fff; }
#main .rec-sample .rec-gt-key .is-today { width: 2px; height: 14px; border: 0; border-radius: 0; background: #d20f39; }

/* ---------------------------------------------------------------- CAPA (root cause, effectiveness) */
#main .rec-sample .rec-fish { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#main .rec-sample .rec-fish li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px;
  background: #e5f3ea; color: #1f5f50; font-size: 14.5px; font-weight: 500;
}
#main .rec-sample .rec-fish svg { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#main .rec-sample .rec-result { padding: 10px 12px; border-radius: 8px; background: #e7f5ee; color: #1f5f50; font-size: 14px; }
#main .rec-sample .rec-rounds { display: flex; flex-direction: column; gap: 8px; }
#main .rec-sample .rec-round { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid #ecd6a6; border-radius: 8px; background: #fefaf0; font-size: 14px; }
#main .rec-sample .rec-round.is-confirmed { border-color: #b7dcc6; background: #f1f9f4; }
#main .rec-sample .rec-round__top, #main .rec-sample .rec-round__mid { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
#main .rec-sample .rec-round__top strong { font-weight: 600; }
#main .rec-sample .rec-round__top .rec-small, #main .rec-sample .rec-round__mid .rec-mono { margin-left: auto; }
#main .rec-sample .rec-round__mid { color: var(--rec-ink-2); }
#main .rec-sample .rec-round__note { color: var(--rec-ink-2); font-style: italic; line-height: 1.5; }
#main .rec-sample .rec-close { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; line-height: 1.5; }
#main .rec-sample .rec-close li { display: flex; align-items: flex-start; gap: 10px; }
#main .rec-sample .rec-close svg { flex: none; margin-top: 2px; }

/* ---------------------------------------------------------------- Who's Where (campus) */
#main .rec-sample .rec-sites { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
#main .rec-sample .rec-site { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--rec-line); border-radius: 12px; background: #fff; }
#main .rec-sample .rec-site__top {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 168px; padding: 14px 14px 12px;
  background: linear-gradient(90deg, #f7f9fc 30%, #eef1fa);
}
#main .rec-sample .rec-site__art { position: absolute; right: 0; bottom: 0; width: 58%; height: 92%; }
#main .rec-sample .rec-site__kicker { position: relative; color: #136970; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
#main .rec-sample .rec-site__name { position: relative; color: var(--rec-ink); font-size: 18px; font-weight: 600; line-height: 1.3; }
#main .rec-sample .rec-site__tz { position: relative; display: inline-flex; align-items: center; gap: 5px; color: var(--rec-muted); font-size: 13px; }
#main .rec-sample .rec-site__tz svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
#main .rec-sample .rec-count {
  position: relative; align-self: flex-start; display: flex; flex-direction: column; margin-top: auto; padding: 6px 12px;
  border: 1px solid #d5dbe8; border-radius: 10px; background: #ffffffd9;
}
#main .rec-sample .rec-count b { color: var(--rec-ink); font: 600 20px/1.25 var(--font-body); font-variant-numeric: tabular-nums; }
#main .rec-sample .rec-count span { color: var(--rec-muted); font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
#main .rec-sample .rec-site__body { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 14px; }
#main .rec-sample .rec-seg { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
#main .rec-sample .rec-seg i { height: 6px; border-radius: 999px; background: #d7dce6; }
#main .rec-sample .rec-seg i.is-on { background: #2f9a62; }
#main .rec-sample .rec-people { display: flex; flex-wrap: wrap; gap: 10px 14px; }
#main .rec-sample .rec-people li { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 52px; color: var(--rec-ink-2); font-size: 13px; }
#main .rec-sample .rec-av {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border: 2.5px solid #1b8a8f; border-radius: 50%;
  background: var(--rec-av, #e5ecfa); color: var(--rec-ink); font: 700 14px/1 var(--font-body);
}
#main .rec-sample .rec-av--planned { border-style: dashed; }
#main .rec-sample .rec-av--a { --rec-av: #d8eef5; } #main .rec-sample .rec-av--b { --rec-av: #fbe5d3; } #main .rec-sample .rec-av--c { --rec-av: #e5f1d8; }
#main .rec-sample .rec-av--d { --rec-av: #f9dfe3; } #main .rec-sample .rec-av--e { --rec-av: #dfe9fb; }
#main .rec-sample .rec-site__planned { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding-top: 10px; border-top: 1px solid var(--rec-line); }
#main .rec-sample .rec-site__planned .rec-small { color: #136970; font-size: 13px; }

/* ---------------------------------------------------------------- Narrower samples */
/* Tablets, two-column page layouts, phones: tables become per-row blocks (the nine-column parts table needs about
   690px). */
@container rec (max-width: 720px) {
  #main .rec-sample .rec-table thead { display: none; }
  #main .rec-sample .rec-table, #main .rec-sample .rec-table tbody { display: block; border: 0; }
  #main .rec-sample .rec-table tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; margin-bottom: 8px; padding: 10px 12px;
    border: 1px solid var(--rec-line); border-radius: 10px;
  }
  #main .rec-sample .rec-table tr.is-short { border-color: #f1c4cc; background: #fdf2f4; }
  #main .rec-sample .rec-table tr.is-short :is(th, td) { background: none; }
  #main .rec-sample .rec-table :is(th, td) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; padding: 0; border: 0; text-align: left; }
  #main .rec-sample .rec-table tbody th { grid-column: 1 / -1; margin-bottom: 2px; font-size: 15px; }
  #main .rec-sample .rec-table td .rec-k {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal;
    color: var(--rec-muted); font-size: 13px;
  }
}
/* Narrow samples show only the chosen view and drop filtered rows, as phones do (no blank card under a short view). */
@container rec (max-width: 660px) {
  #main .rec-sample .rec-view { display: none; }
  #main .rec-sample .rec-fset > .rec-radio:nth-of-type(2):checked ~ * [data-in]:not([data-in~="2"]),
  #main .rec-sample .rec-fset > .rec-radio:nth-of-type(3):checked ~ * [data-in]:not([data-in~="3"]),
  #main .rec-sample .rec-fset > .rec-radio:nth-of-type(4):checked ~ * [data-in]:not([data-in~="4"]),
  #main .rec-sample .rec-fset > .rec-radio:nth-of-type(5):checked ~ * [data-in]:not([data-in~="5"]),
  #main .rec-sample .rec-fset > .rec-radio:nth-of-type(6):checked ~ * [data-in]:not([data-in~="6"]) { display: none; }
}
/* Phone-width samples: names above the timeline bars, the matrix as one block per person, two-column summaries. */
@container rec (max-width: 520px) {
  #main .rec-sample .rec-head { padding: 16px 16px 12px; }
  #main .rec-sample .rec-t { font-size: 18px; }
  #main .rec-sample .rec-tabs { padding: 0 6px; }
  #main .rec-sample .rec-tabs > :is(label, span) { padding: 0 11px; }
  #main .rec-sample :is(.rec-view, .rec-body) { padding: 16px 14px 18px; }
  #main .rec-sample .rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
  #main .rec-sample .rec-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #main .rec-sample .rec-stat { flex: 1 1 calc(50% - 4px); min-width: 0; }
  #main .rec-sample .rec-tiles { grid-template-columns: minmax(0, 1fr); }
  #main .rec-sample .rec-tile { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; }
  #main .rec-sample .rec-tile b { grid-row: 1 / span 2; grid-column: 2; font-size: 28px; }
  #main .rec-sample .rec-fish { grid-template-columns: minmax(0, 1fr); }
  #main .rec-sample .rec-chip--zero { display: none; }
  #main .rec-sample .rec-gt__row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 6px 0; }
  #main .rec-sample .rec-gt__row--scale .rec-gt__name { display: none; }
  #main .rec-sample .rec-gt__row--ms { padding-top: 4px; }
  #main .rec-sample .rec-gt__name { padding: 0; }
  #main .rec-sample .rec-gt__track { min-height: 30px; }
  #main .rec-sample .rec-gt__row--scale { padding: 0; }
  /* The matrix: one block per person, each course with its mark. */
  #main .rec-sample .rec-matrix thead { display: none; }
  #main .rec-sample .rec-matrix, #main .rec-sample .rec-matrix tbody { display: block; border: 0; }
  #main .rec-sample .rec-matrix tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin-bottom: 8px; padding: 10px 12px;
    border: 1px solid var(--rec-line); border-radius: 10px;
  }
  #main .rec-sample .rec-matrix :is(th, td) { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; text-align: left; }
  #main .rec-sample .rec-matrix tbody th { grid-column: 1 / -1; flex-wrap: wrap; justify-content: space-between; }
  #main .rec-sample .rec-matrix tbody th .rec-who { display: flex; flex-direction: column; }
  #main .rec-sample .rec-matrix .rec-mc { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal; color: var(--rec-ink-2); font-size: 13.5px; }
  #main .rec-sample .rec-matrix td.rec-matrix__gaps { display: none; }
  #main .rec-sample .rec-matrix .rec-gaps-inline { display: inline-flex; }
  #main .rec-sample .rec-site__top { min-height: 150px; }
}
#main .rec-sample .rec-gaps-inline { display: none; align-items: center; gap: 6px; color: var(--rec-muted); font-size: 13px; font-weight: 400; }
/* The narrowest samples (a 320px phone). */
@container rec (max-width: 300px) {
  #main .rec-sample .rec-matrix tr { grid-template-columns: minmax(0, 1fr); }
  #main .rec-sample .rec-grid--2 { grid-template-columns: minmax(0, 1fr); }
}

/* Phones: only the chosen view takes space, and filtered rows leave the layout. */
@media (max-width: 759px) {
  #main .rec-sample .rec-view { display: none; }
  #main .rec-sample .rec-fset > .rec-radio:nth-of-type(2):checked ~ * [data-in]:not([data-in~="2"]),
  #main .rec-sample .rec-fset > .rec-radio:nth-of-type(3):checked ~ * [data-in]:not([data-in~="3"]),
  #main .rec-sample .rec-fset > .rec-radio:nth-of-type(4):checked ~ * [data-in]:not([data-in~="4"]),
  #main .rec-sample .rec-fset > .rec-radio:nth-of-type(5):checked ~ * [data-in]:not([data-in~="5"]),
  #main .rec-sample .rec-fset > .rec-radio:nth-of-type(6):checked ~ * [data-in]:not([data-in~="6"]) { display: none; }
  #main .rec-sample .rec { border-radius: 11px; }
  #main .rec-sample .rec-real { font-size: 14px; }
}

/* More contrast: darker secondary ink and lines, an indigo edge on the card. */
@media (prefers-contrast: more) {
  #main .rec-sample { --rec-muted: #3d4a63; --rec-ink-2: #2d3648; --rec-line: #9aa6c0; }
  #main .rec-sample .rec { border-color: #3e4fa8; }
}
/* Forced colours drop fills and shadows: chips, cards, tiles and avatars keep real borders. The timeline's bars and
   the today line are a colour code, so they keep their own colours behind a real edge. */
@media (forced-colors: active) {
  #main .rec-sample .rec { border: 1px solid CanvasText; }
  #main .rec-sample :is(.rec-chip, .rec-gap, .rec-stat, .rec-tile, .rec-item, .rec-box, .rec-text, .rec-select, .rec-fish li, .rec-round, .rec-site, .rec-count, .rec-av, .rec-banner, .rec-step__n) {
    border: 1px solid CanvasText;
  }
  #main .rec-sample :is(.rec-gt__bar, .rec-gt__dia, .rec-gt__today, .rec-seg i, .rec-meter__bar, .rec-gt-key i) { forced-color-adjust: none; }
  #main .rec-sample .rec-gt__track { forced-color-adjust: none; }
}

/* ================================================================ Phase 2 samples (solution heroes, product pages) */
#main .rec-sample .rec-t .rec-chip { font-weight: 600; }
#main .rec-sample .rec-t .rec-small { font-weight: 400; }
#main .rec-sample .rec-chip--caps { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
#main .rec-sample .rec-chip svg { width: 12px; height: 12px; margin-right: 4px; }
#main .rec-sample .rec-id--sm { font-size: 12.5px; }
#main .rec-sample .rec-banner--blue { border-color: #c9d6f3; background: #eef3fd; color: #24418f; }
#main .rec-sample .rec-stat--green b { color: #1f6a4a; }
#main .rec-sample .rec-stat--yellow b { color: #7a4f00; }
#main .rec-sample .rec-stat b svg { width: 16px; height: 16px; margin-right: 4px; vertical-align: -2px; }
/* Summary tiles whose product labels are not capitals (Budget, Support, the Key Metrics of Reports). */
#main .rec-sample :is(.rec-stats--plain, .rec-stats--kpi) .rec-stat .rec-l { font-size: 13px; font-weight: 500; letter-spacing: 0; text-transform: none; }
#main .rec-sample .rec-stats--kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
#main .rec-sample .rec-stats--kpi .rec-stat { min-width: 0; border-left: 3px solid #b9c4e4; }
#main .rec-sample .rec-stats--kpi .rec-stat b { font-size: 20px; }
#main .rec-sample .rec-stats--tiles .rec-stat { flex: 1 1 110px; align-items: center; text-align: center; }
/* Tables of text (Traceability, equipment, tickets): left-aligned, wrapping. */
#main .rec-sample .rec-table--left :is(th, td) { text-align: left; }
#main .rec-sample .rec-table--left tbody td { color: var(--rec-ink); }
#main .rec-sample .rec-table tr.is-soon :is(th, td) { background: #fdf8ec; }
#main .rec-sample .rec-cov { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
#main .rec-sample .rec-cov__bar { display: inline-block; width: 48px; height: 6px; border-radius: 999px; background: #e6eaf2; overflow: hidden; }
#main .rec-sample .rec-cov__bar span { display: block; height: 100%; background: var(--rec-cov, #2f9a62); }
#main .rec-sample .rec-cov--yellow { --rec-cov: #c98a07; }
#main .rec-sample .rec-cov--red { --rec-cov: #d2394f; }

/* Team Workload: hours on a 0-60h scale, the capacity line at 40h. */
#main .rec-sample .rec-wl-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--rec-wl, #2f9a62); }
#main .rec-sample :is(.rec-wl-key, .rec-wl__bar).is-near { --rec-wl: #c98a07; }
#main .rec-sample :is(.rec-wl-key, .rec-wl__bar).is-over { --rec-wl: #d2394f; }
#main .rec-sample .rec-wl__rows { display: flex; flex-direction: column; }
#main .rec-sample .rec-wl__row { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr) 44px; gap: 12px; align-items: center; min-height: 38px; }
#main .rec-sample .rec-wl__name { font-size: 14px; }
#main .rec-sample .rec-wl__track {
  position: relative; align-self: stretch; display: flex; align-items: center;
  background:
    linear-gradient(90deg, transparent calc(var(--cap) / var(--max) * 100% - 1px), #d20f39 0 calc(var(--cap) / var(--max) * 100% + 1px), transparent 0),
    repeating-linear-gradient(90deg, #e9edf4 0 1px, transparent 1px 25%);
}
#main .rec-sample .rec-wl__bar { display: block; width: calc(var(--h) / var(--max) * 100%); height: 22px; border-radius: 0 5px 5px 0; background: var(--rec-wl, #2f9a62); }
#main .rec-sample .rec-wl__v { color: var(--rec-ink-2); font-size: 14px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
#main .rec-sample .rec-wl__row--axis { min-height: 40px; }
#main .rec-sample .rec-wl__track--axis { align-items: flex-start; background: none; color: var(--rec-muted); font-size: 12.5px; }
#main .rec-sample .rec-wl__track--axis span { position: absolute; top: 2px; left: calc(var(--at) / 60 * 100%); transform: translateX(-50%); }
#main .rec-sample .rec-wl__track--axis span:first-child { transform: none; }
#main .rec-sample .rec-wl__track--axis span:nth-last-of-type(1) { transform: translateX(-100%); }
#main .rec-sample .rec-wl__cap { position: absolute; bottom: 0; left: calc(var(--cap) / var(--max) * 100%); transform: translateX(-50%); color: #a8243a; font-size: 12px; font-weight: 600; white-space: nowrap; }
#main .rec-sample .rec-wl__x { text-align: center; }
#main .rec-sample .rec-tip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 10px 14px; border: 1px solid var(--rec-line); border-radius: 10px; background: var(--rec-soft); font-size: 14px; }

/* Wiki: category groups of page cards. */
#main .rec-sample .rec-wiki-group { display: flex; flex-direction: column; gap: 8px; }
#main .rec-sample .rec-wiki-group__h { display: flex; align-items: center; gap: 8px; color: var(--rec-ink-2); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
#main .rec-sample .rec-wiki-group__h svg { width: 15px; height: 15px; color: #a86d00; }
#main .rec-sample .rec-wiki-group__h .rec-small { letter-spacing: 0; }
#main .rec-sample .rec-wiki-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; }
#main .rec-sample .rec-wiki-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid var(--rec-line); border-radius: 10px; background: #fff; }
#main .rec-sample .rec-wiki-card__t { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
#main .rec-sample .rec-wiki-card__t svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--rec-indigo); }
#main .rec-sample .rec-wiki-card__x { display: -webkit-box; overflow: hidden; color: var(--rec-muted); font-size: 13.5px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
#main .rec-sample .rec-wiki-card__m { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
#main .rec-sample .rec-wiki-card__d { display: inline-flex; align-items: center; gap: 5px; color: var(--rec-muted); font-size: 12.5px; }
#main .rec-sample .rec-wiki-card__d svg { width: 13px; height: 13px; }

/* Automation presets. */
#main .rec-sample .rec-presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px; }
#main .rec-sample .rec-preset { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid var(--rec-line); border-radius: 10px; background: #fff; }
#main .rec-sample .rec-preset.is-off { background: var(--rec-soft); }
#main .rec-sample .rec-preset__t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14.5px; font-weight: 600; }
#main .rec-sample .rec-preset__s { margin-left: auto; }
#main .rec-sample .rec-preset__d { color: var(--rec-ink-2); font-size: 13.5px; line-height: 1.5; }

/* Budget cards: spent and committed on one bar. */
#main .rec-sample .rec-budgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 10px; }
#main .rec-sample .rec-budget { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid var(--rec-line); border-radius: 10px; background: #fff; font-size: 14px; }
#main .rec-sample .rec-budget__t { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
#main .rec-sample .rec-budget__t svg { width: 15px; height: 15px; }
#main .rec-sample .rec-split { display: flex; height: 7px; border-radius: 999px; background: #e6eaf2; overflow: hidden; }
#main .rec-sample .rec-split span:first-child { background: #4f6fb8; }
#main .rec-sample .rec-split span + span { background: #9fd3de; }

/* Reports: insights and alerts. */
#main .rec-sample .rec-alerts { display: flex; flex-direction: column; gap: 6px; }
#main .rec-sample .rec-alerts li { display: flex; align-items: flex-start; gap: 8px; padding: 8px 12px; border: 1px solid #f0dcae; border-radius: 8px; background: #fdf8ec; color: #5c3b00; font-size: 14px; }
#main .rec-sample .rec-alerts li.is-ok { border-color: #bfe3d0; background: #eef8f2; color: #1f5f50; }
#main .rec-sample .rec-alerts svg { flex: none; width: 15px; height: 15px; margin-top: 2px; }

@container rec (max-width: 520px) {
  #main .rec-sample .rec-wl__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name v" "track track"; gap: 2px 10px; padding: 4px 0; }
  #main .rec-sample .rec-wl__name { grid-area: name; }
  #main .rec-sample .rec-wl__v { grid-area: v; }
  #main .rec-sample .rec-wl__track { grid-area: track; min-height: 26px; }
  #main .rec-sample .rec-wl__row--axis .rec-wl__name, #main .rec-sample .rec-wl__row--axis .rec-wl__v { display: none; }
  #main .rec-sample .rec-wl__row--axis .rec-wl__track { min-height: 40px; }
  #main .rec-sample .rec-stats--kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container rec (max-width: 720px) {
  #main .rec-sample .rec-table tr.is-soon { border-color: #ecd6a6; background: #fdf8ec; }
  #main .rec-sample .rec-table tr.is-soon :is(th, td) { background: none; }
}
@container rec (max-width: 720px) {
  #main .rec-sample .rec-table td.rec-table__wide { grid-column: 1 / -1; font-weight: 500; }
  #main .rec-sample .rec-table td.rec-table__wide .rec-k { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
/* Chips and long ids inside a table cell wrap rather than push the row wide. */
#main .rec-sample .rec-table td .rec-chip { white-space: normal; }
#main .rec-sample .rec-table .rec-id--sm { white-space: normal; overflow-wrap: anywhere; }
/* Tables of text (ticket and equipment lists, the Traceability Matrix) need more room than a numbers table, so they
   become one block per row below 960px instead of 720px. */
@container rec (max-width: 960px) {
  #main .rec-sample .rec-table--left thead { display: none; }
  #main .rec-sample .rec-table--left, #main .rec-sample .rec-table--left tbody { display: block; border: 0; }
  #main .rec-sample .rec-table--left tr {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; margin-bottom: 8px; padding: 10px 12px;
    border: 1px solid var(--rec-line); border-radius: 10px;
  }
  #main .rec-sample .rec-table--left tr.is-short { border-color: #f1c4cc; background: #fdf2f4; }
  #main .rec-sample .rec-table--left tr.is-soon { border-color: #ecd6a6; background: #fdf8ec; }
  #main .rec-sample .rec-table--left tr:is(.is-short, .is-soon) :is(th, td) { background: none; }
  #main .rec-sample .rec-table--left :is(th, td) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; padding: 0; border: 0; text-align: left; }
  #main .rec-sample .rec-table--left tbody th { grid-column: 1 / -1; margin-bottom: 2px; font-size: 15px; }
  #main .rec-sample .rec-table--left td .rec-k {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal;
    color: var(--rec-muted); font-size: 13px;
  }
  #main .rec-sample .rec-table--left td.rec-table__wide { grid-column: 1 / -1; font-weight: 500; }
  #main .rec-sample .rec-table--left td.rec-table__wide .rec-k { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
