/* ==========================================================================
   WHAT WORKED (results.html, 4 Nov 2026; docs/build/RESULTS-LOOP-2026-11-04.md).

   Additions only, on the Office's own system, as features.css is: every
   colour is office.css's token (--o-*), which the pro theme points to the
   light sheet and mode-switch.css to the dark one, so this sheet has no
   colour of its own and no dark side to write. The drawer is .ofc-drawer;
   the toggles .ofc-mode; the table .ofc-lines.

   Scoped under #office.rs-page.
   ========================================================================== */

#office .rs-name:not(:empty)::before { content: " · "; }
#office .rs-loading { margin: 0 0 16px; }

/* ---------- the period, the touch and the figures ------------------------------- */
#office .rs-top { display: flex; flex-direction: column; gap: 12px; width: 100%; min-width: 0; margin: 0 0 24px; }
#office .rs-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
#office .rs-controls .ofc-mode { margin: 0; }
#office .rs-field select.ofc-input { min-width: 11rem; }
#office .rs-note { margin: 0; color: var(--o-faint); font-size: var(--o-t-label); font-weight: 500; line-height: 1.45; max-width: 90ch; }
#office .rs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; padding: 0 0 16px; border-bottom: 1px solid var(--o-line); }
#office .rs-stats .ofc-stat { min-width: 0; max-width: none; }
#office .rs-stats .ofc-stat__s { min-height: 0; }
#office .rs-stats .ofc-stat__n { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#office .rs-summary { margin: 0; color: var(--o-dim); font-size: var(--o-t-sm); font-weight: 500; line-height: 1.5; max-width: 90ch; }

/* ---------- every source --------------------------------------------------------- */
#office .rs-card { margin: 0 0 24px; }
/* A row's own name is its header cell (th scope=row), drawn as a cell of the row, not as the sticky column head. */
#office .rs-table tbody th { position: static; z-index: auto; padding: 0.25rem 0.5rem; background: transparent; border-bottom: 1px solid var(--o-line);
  color: var(--o-text); font-size: inherit; white-space: normal; vertical-align: middle; }
#office .rs-table tbody tr.rs-row:hover th { background: var(--o-hover); }
#office .rs-table tbody tr.rs-group__h th { border-bottom-color: var(--o-line-2); }
#office .rs-table { table-layout: fixed; width: 100%; }
#office .rs-table th.rs-n, #office .rs-table td.rs-n { width: 13%; text-align: right; font-variant-numeric: tabular-nums; }
#office .rs-table th[scope="col"]:first-child { width: auto; }
#office .rs-group__h th { padding-top: 16px; color: var(--o-faint); font-size: var(--o-t-label); font-weight: 600; text-align: left; }
#office .rs-src { display: grid; gap: 2px; min-width: 0; text-align: left; font-weight: 500; }
#office .rs-src__t { color: var(--o-text); font-weight: 600; overflow-wrap: anywhere; }
#office .rs-src__s { color: var(--o-faint); font-size: var(--o-t-label); font-weight: 500; overflow-wrap: anywhere; }
#office .rs-zero { color: var(--o-faint); }
#office .rs-short { display: none; }
#office .rs-open { font-weight: 650; }
#office tbody[data-kind="unknown"] .rs-src__t { color: var(--o-dim); }

/* ---------- how, and what is read ---------------------------------------------- */
#office .rs-how h2 { margin: 0 0 12px; }
#office .rs-h3 { margin: 16px 0 8px; color: var(--o-text); font-size: var(--o-t-md); font-weight: 650; }
#office .rs-rules { display: grid; gap: 8px; margin: 0 0 12px; padding: 0 0 0 1.4em; color: var(--o-dim); font-size: var(--o-t-sm); line-height: 1.45; max-width: 90ch; }
#office .rs-cover { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: var(--o-t-sm); color: var(--o-dim); }
#office .rs-cover__i b { color: var(--o-text); font-weight: 600; }
#office .rs-cover__i.is-off { color: var(--o-faint); }

/* ---------- the records behind a number ---------------------------------------- */
#office .rs-behind { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
#office .rs-behind__i { display: grid; gap: 4px; padding: 12px 0 0; border-top: 1px solid var(--o-line); }
#office .rs-behind__t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 0; color: var(--o-text); }
#office .rs-behind__when { color: var(--o-faint); font-size: var(--o-t-label); font-variant-numeric: tabular-nums; }
#office .rs-behind__w, #office .rs-behind__src { margin: 0; color: var(--o-dim); font-size: var(--o-t-sm); line-height: 1.45; overflow-wrap: anywhere; }
#office .rs-path { margin: 4px 0 0; padding: 0 0 0 1.4em; color: var(--o-faint); font-size: var(--o-t-label); line-height: 1.5; }

/* ---------- the plates every other Office page has (the posts' look, as features.html takes them) ---------- */
html:not([data-theme="classic"]):not([data-posts="off"]) #office.rs-page .rs-stats { gap: 16px; padding: 0; border-bottom: 0; }
html:not([data-theme="classic"]):not([data-posts="off"]) #office.rs-page .rs-stats > .ofc-stat,
html:not([data-theme="classic"]):not([data-posts="off"]) #office.rs-page :is(#rs-card, #rs-how-card) {
  border: 1px solid transparent;
  border-radius: var(--tk-r-2xl);
  background: var(--u-card);
  box-shadow: var(--u-lift);
}
html:not([data-theme="classic"]):not([data-posts="off"]) #office.rs-page .rs-stats > .ofc-stat { padding: 20px 24px; }
html:not([data-theme="classic"]):not([data-posts="off"]) #office.rs-page :is(#rs-card, #rs-how-card) { padding: 24px var(--o-pad-x); --o-bg: var(--u-card); }
/* A row's own name, over the pro theme's column-head look (office-pro.css §8): a cell of its row. */
html #office.rs-page .ofc-card .rs-table tbody th { height: auto; background: transparent; font: inherit; color: var(--o-text); }
html #office.rs-page .ofc-card .rs-table tbody :is(th, td) { border-bottom: 1px solid var(--o-line); }
html #office.rs-page .ofc-card .rs-table tbody tr.rs-group__h th { padding-top: 16px; color: var(--o-faint); font-size: var(--o-t-label); font-weight: 600; }

/* ---------- smaller screens --------------------------------------------------- */
@media (max-width: 40rem) {
  #office .rs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #office .rs-stat--lead { grid-column: span 2; }
  html:not([data-theme="classic"]):not([data-posts="off"]) #office.rs-page .rs-stats { gap: 12px; }
  html:not([data-theme="classic"]):not([data-posts="off"]) #office.rs-page .rs-stats > .ofc-stat { padding: 16px; }
  #office .rs-table th.rs-n, #office .rs-table td.rs-n { width: 17%; padding-left: 4px; padding-right: 4px; }
  #office .rs-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #office .rs-short { display: inline; }
  #office .rs-table { font-size: var(--o-t-sm); }
  #office .rs-field { flex: 1 1 100%; }
  #office .rs-field select.ofc-input { width: 100%; }
}
