| 1 | /* memoria's own styles. |
| 2 | * |
| 3 | * Every colour is a token. Not one literal appears here, so the |
| 4 | * reader's light/dark choice resolves through theme.css and a passage |
| 5 | * never paints against the wrong ground. Sheets enforces the same rule |
| 6 | * with a test; memoria's equivalent is TestNoColourLiteralsInAppCSS. |
| 7 | */ |
| 8 | |
| 9 | /* A stable gutter, so the scrollbar arriving between a short page (sign |
| 10 | * in) and a long one does not shift everything sideways. */ |
| 11 | html { scrollbar-gutter: stable; } |
| 12 | |
| 13 | /* The column is rastrillo's [rst-page] (tokens.css), 64rem and padded on |
| 14 | * the scale. Memoria narrowed it to 46rem once, which on a desktop left |
| 15 | * results and the documents table cramped in the middle of the screen and |
| 16 | * wrapped dates over four lines (Paul, 2026-10-26); it then restated the |
| 17 | * column here with 4rem under it, off the scale, so it now takes Fiesta's. |
| 18 | * |
| 19 | * <main> is a stack (layout.html, Fiesta's "The stack"): every page's own |
| 20 | * blocks are spaced by one table and by nothing else, so the rules below |
| 21 | * set no margin between a page's blocks. A region that holds blocks of |
| 22 | * its own is a stack too. */ |
| 23 | |
| 24 | /* The header is estilo's bar (chrome.css) and is not styled here. The |
| 25 | * footer is exactly the column's width — [rst-page]'s 64rem less its 1rem |
| 26 | * gutters — so its rule and its text start on the same line as every |
| 27 | * heading and rule above it (they sat 16px to the left, polish audit |
| 28 | * §B6). */ |
| 29 | [rst-page-footer] { |
| 30 | border-top: 1px solid var(--rst-line); |
| 31 | box-sizing: border-box; |
| 32 | margin: var(--rst-sp-6) auto 0; |
| 33 | padding: var(--rst-sp-4) 0 var(--rst-sp-6); |
| 34 | width: min(62rem, 100% - 2rem); |
| 35 | } |
| 36 | [rst-inline] { display: inline; } |
| 37 | |
| 38 | /* Muted text. An attribute this app owns, because the design system's |
| 39 | * muted utility is a class, `.rst-cell-mut`, and spelled as an attribute |
| 40 | * — as every template here did, nineteen times — it styled nothing: the |
| 41 | * footer, table cells, result meta and every hint rendered at full body |
| 42 | * colour. The class is wrong for a sentence anyway (nowrap and an |
| 43 | * ellipsis, written for a table cell), so this is colour only. */ |
| 44 | [rst-muted] { color: var(--rst-text-muted); } |
| 45 | |
| 46 | /* The search form is rastrillo's [rst-search] field box (tokens.css): the |
| 47 | * border, radius and focus ring are the FORM's, and the input inside it |
| 48 | * is transparent. This file used to draw a second bordered box on the |
| 49 | * input, inside the first — the double border (polish audit §B3). Only |
| 50 | * the spacing below it is Memoria's. */ |
| 51 | /* The button sits inside the box with the same inset on every side |
| 52 | (Paul, 2026-10-31: "Button placement is off"). On a touch screen |
| 53 | rastrillo sets the box to the tap height with no vertical padding and |
| 54 | the button to the same tap height, so the button filled the box edge |
| 55 | to edge; a small even padding gives it room. One step, at every width: |
| 56 | it was 0.3rem on a desktop and 0.25rem on a phone, the scale's |
| 57 | --rst-sp-1 and a hand-typed near miss of it. The space under the box is |
| 58 | the stack's. */ |
| 59 | [rst-search] { padding: var(--rst-sp-1) var(--rst-sp-1) var(--rst-sp-1) var(--rst-sp-3); } |
| 60 | [rst-search-clear][hidden] { display: none; } |
| 61 | |
| 62 | /* The front page with nothing searched (Paul, 2026-10-29): the wordmark |
| 63 | and the box a third of the way down, and a quiet line under it. Live |
| 64 | results grow below without moving the box. A page loaded with a query |
| 65 | has no [rst-home] and starts at the top. On a phone the box sits |
| 66 | higher, so the keyboard does not cover the results as they arrive. */ |
| 67 | /* The typeahead (Paul, 2026-10-29): a list under the box, over the page, |
| 68 | never pushing it. */ |
| 69 | [rst-suggest] { position: relative; } |
| 70 | [rst-suggest-box] { |
| 71 | position: absolute; |
| 72 | top: calc(100% - 0.75rem); |
| 73 | left: 0; |
| 74 | right: 0; |
| 75 | z-index: 20; |
| 76 | background: var(--rst-surface); |
| 77 | border: 1px solid var(--rst-line); |
| 78 | border-radius: var(--rst-radius); |
| 79 | box-shadow: var(--rst-shadow-pop); |
| 80 | overflow: hidden; |
| 81 | } |
| 82 | [rst-suggest-box][hidden] { display: none; } |
| 83 | [rst-suggest-list] { list-style: none; margin: 0; padding: var(--rst-sp-1) 0; } |
| 84 | [rst-suggest-item] { |
| 85 | display: flex; |
| 86 | align-items: baseline; |
| 87 | gap: var(--rst-sp-2); |
| 88 | padding: var(--rst-sp-2) var(--rst-sp-4); |
| 89 | color: var(--rst-text); |
| 90 | text-decoration: none; |
| 91 | overflow: hidden; |
| 92 | white-space: nowrap; |
| 93 | text-overflow: ellipsis; |
| 94 | } |
| 95 | [rst-suggest-item]:hover, |
| 96 | [rst-suggest-item][rst-suggest-active] { background: var(--rst-accent-soft); } |
| 97 | [rst-suggest-title] { font-weight: 550; } |
| 98 | /* The answer row wraps rather than clip: on a phone the number and the |
| 99 | document's name do not fit on one line. */ |
| 100 | [rst-suggest-fact-row] { align-items: center; display: flex; border-bottom: 1px solid var(--rst-line); } |
| 101 | [rst-suggest-fact-row] [rst-suggest-item] { flex: 1; min-width: 0; border-bottom: 0; } |
| 102 | [rst-suggest-copy] { |
| 103 | background: var(--rst-surface); |
| 104 | border: 1px solid var(--rst-line); |
| 105 | border-radius: 999px; |
| 106 | color: var(--rst-text-muted); |
| 107 | cursor: pointer; |
| 108 | flex: none; |
| 109 | font: inherit; |
| 110 | font-size: 0.8125rem; |
| 111 | margin-right: var(--rst-sp-3); |
| 112 | padding: var(--rst-sp-1) var(--rst-sp-3); |
| 113 | } |
| 114 | [rst-suggest-copy]:hover { border-color: var(--rst-accent); color: var(--rst-accent-strong); } |
| 115 | [rst-suggest-copy][hidden] { display: none; } |
| 116 | [rst-suggest-fact] { |
| 117 | border-bottom: 1px solid var(--rst-line); |
| 118 | padding-block: var(--rst-sp-3); |
| 119 | flex-wrap: wrap; |
| 120 | white-space: normal; |
| 121 | row-gap: var(--rst-sp-1); |
| 122 | } |
| 123 | [rst-suggest-fact] strong { font-size: 1.125rem; } |
| 124 | [rst-suggest-fact-label] { color: var(--rst-text-muted); font-size: 0.875rem; } |
| 125 | [rst-suggest-all] { color: var(--rst-text-muted); font-size: 0.875rem; justify-content: space-between; } |
| 126 | [rst-suggest-notice] { color: var(--rst-text-muted); font-size: 0.8125rem; padding: var(--rst-sp-2) var(--rst-sp-4); } |
| 127 | |
| 128 | /* The box's middle on the screen's middle: the page's top padding is |
| 129 | half the screen less the bar, the main area's own padding and half the |
| 130 | box. The lists below it grow downwards and never move it. */ |
| 131 | [rst-home] { |
| 132 | /* spacing-allow: centres the search box on the screen; it is geometry, not rhythm */ |
| 133 | padding-top: max(1rem, calc(50svh - 9.5rem)); |
| 134 | min-height: 70svh; |
| 135 | } |
| 136 | [rst-home-notice] { font-size: 0.8125rem; } |
| 137 | [rst-home-try] { |
| 138 | align-items: center; |
| 139 | display: flex; |
| 140 | flex-wrap: wrap; |
| 141 | font-size: 0.875rem; |
| 142 | gap: var(--rst-sp-2); |
| 143 | } |
| 144 | [rst-home-chip] { |
| 145 | background: var(--rst-surface); |
| 146 | border: 1px solid var(--rst-line); |
| 147 | border-radius: 999px; |
| 148 | color: var(--rst-text); |
| 149 | padding: var(--rst-sp-1) var(--rst-sp-3); |
| 150 | text-decoration: none; |
| 151 | } |
| 152 | [rst-home-chip]:hover { border-color: var(--rst-accent); color: var(--rst-accent-strong); } |
| 153 | [rst-home-lists] { |
| 154 | display: grid; |
| 155 | grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); |
| 156 | gap: var(--rst-sp-5) var(--rst-sp-6); |
| 157 | } |
| 158 | [rst-home-lists] [hidden] { display: none; } |
| 159 | [rst-home-label] { |
| 160 | align-items: center; |
| 161 | color: var(--rst-text-muted); |
| 162 | display: flex; |
| 163 | font-size: 0.75rem; |
| 164 | font-weight: 600; |
| 165 | justify-content: space-between; |
| 166 | letter-spacing: 0.06em; |
| 167 | text-transform: uppercase; |
| 168 | } |
| 169 | [rst-home-clear] { |
| 170 | background: none; |
| 171 | border: 0; |
| 172 | color: var(--rst-text-muted); |
| 173 | cursor: pointer; |
| 174 | font: inherit; |
| 175 | letter-spacing: normal; |
| 176 | padding: 0; |
| 177 | text-decoration: underline; |
| 178 | text-transform: none; |
| 179 | } |
| 180 | [rst-home-clear]:hover { color: var(--rst-text); } |
| 181 | [rst-home-list] { list-style: none; margin: 0; padding: 0; } |
| 182 | /* The front page's lists are rastrillo's list rows; a little tighter |
| 183 | than its default, as a secondary part of a page. */ |
| 184 | [rst-home-list] [rst-row] { padding: var(--rst-sp-2); margin: 0 calc(-1 * var(--rst-sp-2)); border-radius: 0.375rem; border-top: 0; border-bottom: 1px solid var(--rst-line); } |
| 185 | [rst-home-list] [rst-row-main] > a { font-weight: 500; } |
| 186 | [rst-home-list] [rst-row-main] > a, |
| 187 | [rst-home-list] [rst-row-sub] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } |
| 188 | [rst-home-list] [rst-row-main] > a { display: block; } |
| 189 | @media (max-width: 640px) { |
| 190 | [rst-home] { padding-top: 18svh; /* spacing-allow: on a phone the box sits higher, clear of the keyboard; geometry, not rhythm */ } |
| 191 | } |
| 192 | |
| 193 | /* A section of a page opens under a rule. The stack puts --rst-sp-5 |
| 194 | * above it (rst-section); this is the rule and the space under it. Only |
| 195 | * a <section>: the front page's lists open a section of the stack too, |
| 196 | * with no rule. */ |
| 197 | section[rst-section] { border-top: 1px solid var(--rst-line); padding-top: var(--rst-sp-4); } |
| 198 | /* A section's heading and its one action share a line. */ |
| 199 | [rst-section-head] { |
| 200 | align-items: center; |
| 201 | display: flex; |
| 202 | flex-wrap: wrap; |
| 203 | gap: var(--rst-sp-3) var(--rst-sp-4); |
| 204 | justify-content: space-between; |
| 205 | } |
| 206 | [rst-section-head] :is(h1, h2) { margin: 0; } |
| 207 | |
| 208 | /* A form is a stack (tokens.css): label to field and field to hint |
| 209 | * --rst-sp-2, a field to the next label --rst-sp-3, and its buttons |
| 210 | * (rst-actions) --rst-sp-4 clear. Only the labels' weight is Memoria's. |
| 211 | * |
| 212 | * form[rst-stack], here and in the field rules below, and never a bare |
| 213 | * [rst-stack]: <main> is a stack too, and a bare one would reach every |
| 214 | * field on every page, the search box's and the sign-in door's among |
| 215 | * them. */ |
| 216 | form[rst-stack] > label { font-weight: 560; } |
| 217 | /* A hint inside a label is quiet: muted and regular weight, not the |
| 218 | * label's 560 (polish audit r3 B7). */ |
| 219 | [rst-hint] { font-weight: 400; } |
| 220 | /* border-box: the fields are width 100% PLUS their padding otherwise, |
| 221 | * which ran 22px past the column at 1440 and off the screen at 390 |
| 222 | * (polish audit §B6). Password fields are here too: the Notion token |
| 223 | * fields were the browser's own. */ |
| 224 | form[rst-stack] input[type="text"], |
| 225 | form[rst-stack] input[type="email"], |
| 226 | form[rst-stack] input[type="password"], |
| 227 | form[rst-stack] textarea { |
| 228 | background: var(--rst-bg); |
| 229 | border: 1px solid var(--rst-line); |
| 230 | border-radius: var(--rst-radius-sm, 6px); |
| 231 | box-sizing: border-box; |
| 232 | color: var(--rst-text); |
| 233 | font: inherit; |
| 234 | max-inline-size: 100%; |
| 235 | padding: var(--rst-sp-2) var(--rst-sp-3); |
| 236 | width: 100%; |
| 237 | } |
| 238 | form[rst-stack] input[type="text"]:focus-visible, |
| 239 | form[rst-stack] input[type="email"]:focus-visible, |
| 240 | form[rst-stack] input[type="password"]:focus-visible, |
| 241 | form[rst-stack] textarea:focus-visible { |
| 242 | border-color: var(--rst-accent); |
| 243 | outline: 2px solid var(--rst-accent); |
| 244 | outline-offset: 1px; |
| 245 | } |
| 246 | /* iOS zooms the page into any text control under 16px, and tokens.css |
| 247 | * brings controls up to 16px where the pointer is coarse. The fields |
| 248 | * above set `font: inherit` with a selector that outweighs tokens.css's |
| 249 | * bare `input` and `textarea`, and fell back to 14px: Add content's |
| 250 | * title and body, and the Notion token. Same rule, same max(), restated |
| 251 | * here at their weight. TestNoZoomOnTap (make browser) measures them. */ |
| 252 | @media (pointer: coarse) { |
| 253 | form[rst-stack] input[type="text"], |
| 254 | form[rst-stack] input[type="email"], |
| 255 | form[rst-stack] input[type="password"], |
| 256 | form[rst-stack] textarea { |
| 257 | font-size: max(1rem, 1em); |
| 258 | } |
| 259 | } |
| 260 | /* Pasted prose is prose: the body font, not a code box. */ |
| 261 | form[rst-stack] textarea { resize: vertical; } |
| 262 | |
| 263 | /* The file chooser. The native control stays — it is what works with no |
| 264 | * script, and it says which files were chosen — but its button is drawn |
| 265 | * as the app's buttons are, instead of the browser's grey "Choose Files". */ |
| 266 | form[rst-stack] input[type="file"] { color: var(--rst-text-muted); font: inherit; font-size: var(--rst-fs-sm); max-inline-size: 100%; } |
| 267 | form[rst-stack] input[type="file"]::file-selector-button { |
| 268 | background: var(--rst-surface); |
| 269 | border: 1px solid var(--rst-line-strong); |
| 270 | border-radius: var(--rst-radius-sm, 6px); |
| 271 | color: var(--rst-text); |
| 272 | cursor: pointer; |
| 273 | font: inherit; |
| 274 | font-weight: 560; |
| 275 | margin-inline-end: var(--rst-sp-3); |
| 276 | /* spacing-allow: drawn as the app's buttons are, at rastrillo's [rst-btn] padding */ |
| 277 | padding: 0.45rem 0.75rem; |
| 278 | } |
| 279 | form[rst-stack] input[type="file"]::file-selector-button:hover { background: var(--rst-surface-2); } |
| 280 | |
| 281 | /* The drop zone. Nothing here paints until static/drop.js has proved it |
| 282 | * can put a file in the input and written rst-dropzone="ready" — so a |
| 283 | * page whose script did not load shows an ordinary file input inside an |
| 284 | * invisible wrapper, rather than a dashed box that swallows drops. The |
| 285 | * bare [rst-dropzone] selector is deliberately styled with nothing. |
| 286 | */ |
| 287 | [rst-dropzone~="ready"] { |
| 288 | border: 1px dashed var(--rst-line-strong, var(--rst-line)); |
| 289 | border-radius: var(--rst-radius-sm, 6px); |
| 290 | padding: var(--rst-sp-3); |
| 291 | transition: background-color 0.12s ease, border-color 0.12s ease; |
| 292 | } |
| 293 | /* A file is over the page. The whole document is the drop target — the |
| 294 | * zone is where it lands, not where it must be aimed — so this has to be |
| 295 | * visible from wherever the pointer happens to be. |
| 296 | */ |
| 297 | [rst-dropzone~="over"] { |
| 298 | background: var(--rst-accent-soft, var(--rst-surface-2)); |
| 299 | border-color: var(--rst-accent, var(--rst-line-strong)); |
| 300 | border-style: solid; |
| 301 | } |
| 302 | [rst-dropzone-hint], [rst-dropzone-note] { font-size: 0.8125rem; margin: var(--rst-sp-2) 0 0; } |
| 303 | /* Muted, and not with .rst-cell-mut: that utility exists only as a class, |
| 304 | * so `rst-cell-mut` written as an attribute selects nothing — and the |
| 305 | * class itself is a table-cell rule (nowrap, ellipsis) that would clip |
| 306 | * this sentence at the edge of the zone. |
| 307 | */ |
| 308 | [rst-dropzone-hint] { color: var(--rst-text-muted); } |
| 309 | /* drop.js unhides the note while it is still empty, so the live region is |
| 310 | * in the accessibility tree before it ever has to announce a refusal. An |
| 311 | * empty paragraph with a top margin would push the Store it button down |
| 312 | * by half a line for no reason anyone could see, so while it is empty it |
| 313 | * takes no space at all. |
| 314 | */ |
| 315 | [rst-dropzone-note]:empty { margin: 0; } |
| 316 | [rst-dropzone-note~="good"] { color: var(--rst-tone-positive-fg); } |
| 317 | [rst-dropzone-note~="danger"] { color: var(--rst-tone-negative-fg); } |
| 318 | @media (prefers-reduced-motion: reduce) { |
| 319 | [rst-dropzone~="ready"] { transition: none; } |
| 320 | } |
| 321 | |
| 322 | /* The upload tray. |
| 323 | * |
| 324 | * It is in the DOM from the moment drop.js runs, because |
| 325 | * [rst-tray-status] is a live region and a live region has to be in the |
| 326 | * accessibility tree before it has anything to announce. So "not open" |
| 327 | * cannot be display:none — that would take the region back out again. |
| 328 | * Instead the head and the list are hidden, the panel paints nothing, |
| 329 | * and an empty status paragraph is zero-height, which leaves a fixed |
| 330 | * element of no size in the corner. pointer-events go with it: an |
| 331 | * invisible box that swallows clicks over the corner of the page would |
| 332 | * be worse than a visible one. |
| 333 | */ |
| 334 | [rst-tray] { |
| 335 | bottom: 1rem; |
| 336 | font-size: 0.8125rem; |
| 337 | inset-inline-end: 1rem; |
| 338 | position: fixed; |
| 339 | width: min(22rem, calc(100vw - 2rem)); |
| 340 | z-index: 30; |
| 341 | } |
| 342 | [rst-tray]:not([rst-tray~="open"]) { pointer-events: none; } |
| 343 | [rst-tray]:not([rst-tray~="open"]) [rst-tray-head], |
| 344 | [rst-tray]:not([rst-tray~="open"]) [rst-tray-list] { display: none; } |
| 345 | [rst-tray~="open"] { |
| 346 | background: var(--rst-surface); |
| 347 | border: 1px solid var(--rst-line); |
| 348 | border-radius: var(--rst-radius, 8px); |
| 349 | box-shadow: var(--rst-shadow-pop, none); |
| 350 | padding: var(--rst-sp-2) var(--rst-sp-3); |
| 351 | } |
| 352 | [rst-tray-head] { |
| 353 | align-items: center; |
| 354 | display: flex; |
| 355 | gap: var(--rst-sp-2); |
| 356 | justify-content: space-between; |
| 357 | } |
| 358 | [rst-tray-title] { font-weight: 620; } |
| 359 | /* 40vh so a drop of twenty-five files scrolls inside the tray rather |
| 360 | * than growing a panel taller than the window. */ |
| 361 | [rst-tray-list] { |
| 362 | list-style: none; |
| 363 | margin: var(--rst-sp-2) 0 0; |
| 364 | max-height: 40vh; |
| 365 | overflow-y: auto; |
| 366 | padding: 0; |
| 367 | } |
| 368 | [rst-tray-row] { |
| 369 | border-top: 1px solid var(--rst-line); |
| 370 | display: grid; |
| 371 | gap: var(--rst-sp-1) var(--rst-sp-2); |
| 372 | grid-template-columns: 1fr auto; |
| 373 | padding: var(--rst-sp-2) 0; |
| 374 | } |
| 375 | [rst-tray-row]:first-child { border-top: 0; } |
| 376 | /* A filename has no spaces to break at, and the tray is narrow. */ |
| 377 | [rst-tray-name] { font-weight: 560; overflow-wrap: anywhere; } |
| 378 | [rst-tray-phase] { color: var(--rst-text-muted); text-align: end; } |
| 379 | [rst-tray-row~="good"] [rst-tray-phase] { color: var(--rst-tone-positive-fg); } |
| 380 | /* A refusal is a sentence, not a word: it gets the whole row width and |
| 381 | * reads left to right under the name it belongs to. |
| 382 | */ |
| 383 | [rst-tray-row~="danger"] [rst-tray-phase] { |
| 384 | color: var(--rst-tone-negative-fg); |
| 385 | grid-column: 1 / -1; |
| 386 | text-align: start; |
| 387 | } |
| 388 | /* accent-color rather than ::-webkit-progress-value and friends, and |
| 389 | * that is not a detail: styling those pseudo-elements replaces the |
| 390 | * browser's indeterminate rendering with a static bar, and the |
| 391 | * indeterminate state is the whole point of phase two — a bar that |
| 392 | * stops moving while the server works reads as broken. |
| 393 | */ |
| 394 | [rst-tray-bar] { |
| 395 | accent-color: var(--rst-accent, var(--rst-text)); |
| 396 | block-size: 0.35rem; |
| 397 | grid-column: 1 / -1; |
| 398 | inline-size: 100%; |
| 399 | } |
| 400 | [rst-tray-status] { margin: var(--rst-sp-2) 0 0; } |
| 401 | /* Unhidden and empty from the moment the script runs, so it must cost no |
| 402 | * space until it says something — and the obvious "fix" for a stray |
| 403 | * half-line in the corner is to hide the region again, which is the bug |
| 404 | * this whole arrangement exists to avoid. |
| 405 | */ |
| 406 | [rst-tray-status]:empty { margin: 0; } |
| 407 | [rst-tray-listed] { color: var(--rst-text-muted); margin: var(--rst-sp-2) 0 0; } |
| 408 | |
| 409 | [rst-results] { list-style: none; margin: 0; padding: 0; } |
| 410 | [rst-result] { border-top: 1px solid var(--rst-line); padding: var(--rst-sp-4) 0; } |
| 411 | /* The whole result opens it (Paul, 2026-10-26). search.js does the |
| 412 | * clicking and marks the list once it can; without the script the title |
| 413 | * is the link, as ever. Not a stretched overlay: that made snippet text |
| 414 | * impossible to select (review, 2026-10-26). */ |
| 415 | [rst-results-clickable] [rst-result] { cursor: pointer; } |
| 416 | @media (hover: hover) { |
| 417 | [rst-results-clickable] [rst-result] { border-radius: var(--rst-radius-sm, 6px); margin-inline: calc(-1 * var(--rst-sp-3)); padding-inline: var(--rst-sp-3); } |
| 418 | [rst-results-clickable] [rst-result]:hover { background: var(--rst-surface-2, var(--rst-line)); } |
| 419 | } |
| 420 | [rst-result]:first-child { border-top: 0; } |
| 421 | /* The document's ancestry in its source, above the title. Sits above |
| 422 | rather than below because it is read as a location — "Handbook › |
| 423 | Onboarding ›" then the page — and colours come from tokens so light |
| 424 | and dark both resolve through theme.css. */ |
| 425 | [rst-result-path] { |
| 426 | /* --rst-text-muted, not --rst-text-mut. This rule was written by |
| 427 | * copying the trail rule above while it still carried that typo: an |
| 428 | * undefined token with no fallback makes the whole declaration invalid |
| 429 | * at computed-value time, so the path would have rendered as ordinary |
| 430 | * body text — muted in the markup, not muted on the screen. The merge |
| 431 | * brought the fix and the test that catches the class of it. |
| 432 | */ |
| 433 | color: var(--rst-text-muted); |
| 434 | display: block; |
| 435 | font-size: 0.8125rem; |
| 436 | } |
| 437 | /* Row titles — a result's, and a document's in the index table — are |
| 438 | * the row's subject, in the text colour like every list title in the |
| 439 | * suite, and underlined only on hover. The base link rule (estilo |
| 440 | * base.css) is zero-specificity, so these win without a fight; prose |
| 441 | * links (the fact box's citation, "Back to search") keep the accent and |
| 442 | * the underline, because colour alone must not carry "this is a link". */ |
| 443 | [rst-result-title], |
| 444 | [rst-table] td > a:not([rst-btn]) { |
| 445 | color: var(--rst-text); |
| 446 | text-decoration: none; |
| 447 | } |
| 448 | [rst-result-title]:hover, |
| 449 | [rst-table] td > a:not([rst-btn]):hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.15em; } |
| 450 | [rst-result-title] { font-size: 1.0625rem; font-weight: 600; } |
| 451 | [rst-table] td > a:not([rst-btn]) { font-weight: 550; } |
| 452 | [rst-result-trail] { |
| 453 | /* The token is --rst-text-muted. This said --rst-text-mut, which |
| 454 | * theme.css does not define and which had no fallback, so the whole |
| 455 | * declaration was invalid at computed-value time — not "grey went |
| 456 | * wrong", but the colour rule silently absent, leaving the trail in |
| 457 | * ordinary body text: muted in the markup, not muted on the screen. |
| 458 | * TestEveryTokenReferencedHereIsDefinedOrHasAFallback now catches the |
| 459 | * whole class of that mistake. |
| 460 | */ |
| 461 | color: var(--rst-text-muted); |
| 462 | display: block; |
| 463 | font-size: 0.8125rem; |
| 464 | } |
| 465 | /* The snippet keeps a readable measure inside the wider column: lines |
| 466 | * much past 75 characters are hard to follow back to their start. */ |
| 467 | [rst-result-snippet] { line-height: 1.55; margin: var(--rst-sp-2) 0 var(--rst-sp-1); max-width: 80ch; } |
| 468 | /* Softer highlights: no padding, so a run of matched words reads as one |
| 469 | * phrase rather than a row of separate chips. */ |
| 470 | [rst-result-snippet] mark { |
| 471 | background: var(--rst-accent-soft, var(--rst-line)); |
| 472 | border-radius: 2px; |
| 473 | color: inherit; |
| 474 | padding: 0; |
| 475 | } |
| 476 | [rst-result-meta] { font-size: 0.8125rem; margin: 0; } |
| 477 | |
| 478 | /* The primed result: the one Enter goes to. Deliberately the same mark |
| 479 | as [rst-passage]:target on the document page, because it means the |
| 480 | same thing in both places — this is the one you are being sent to. |
| 481 | Set by the server, never by the script; see internal/memoria/query. */ |
| 482 | [rst-result-primed] { |
| 483 | border-inline-start: 3px solid var(--rst-accent, var(--rst-text)); |
| 484 | padding-inline-start: var(--rst-sp-3); |
| 485 | } |
| 486 | [rst-result-primed]:first-child { border-top: 0; } |
| 487 | /* Arrowing into the list moves real focus, so the browser's own ring is |
| 488 | the selection indicator. It is stated here only to give it room: the |
| 489 | default ring sits tight against 600-weight text and is easy to miss |
| 490 | when the eye is on the input. */ |
| 491 | [rst-result-title]:focus-visible { |
| 492 | outline: 2px solid var(--rst-accent, var(--rst-text)); |
| 493 | outline-offset: 3px; |
| 494 | } |
| 495 | |
| 496 | /* The document page (Paul, 2026-10-30): a document on a paper card. In |
| 497 | light mode the card is white on the grey page; in dark it is the raised |
| 498 | surface. Passages run on as one document; the one a citation points at |
| 499 | is marked, in the margin, without moving the text. */ |
| 500 | [rst-doc-meta] { font-size: 0.875rem; margin-inline: auto; max-width: 46rem; inline-size: 100%; } |
| 501 | [rst-doc-nav] { margin-inline: auto; max-width: 46rem; inline-size: 100%; } |
| 502 | [rst-paper] { |
| 503 | background: var(--rst-surface); |
| 504 | border: 1px solid var(--rst-line); |
| 505 | border-radius: calc(var(--rst-radius) * 1.5); |
| 506 | box-shadow: var(--rst-shadow-lift); |
| 507 | /* <main> is a flex column, where auto margins shrink a box to its |
| 508 | content: the width is stated. 51rem is the 46rem measure the text |
| 509 | has always had, inside the card's padding. */ |
| 510 | box-sizing: border-box; |
| 511 | inline-size: 100%; |
| 512 | margin-inline: auto; |
| 513 | max-width: 51rem; |
| 514 | padding: var(--rst-sp-6); |
| 515 | line-height: 1.65; |
| 516 | } |
| 517 | [rst-doc-title] { font-size: 2rem; letter-spacing: -0.02em; margin: 0 0 var(--rst-sp-5); } |
| 518 | [rst-doc-heading] { margin: var(--rst-sp-5) 0 var(--rst-sp-2); } |
| 519 | h2[rst-doc-heading] { font-size: 1.35rem; } |
| 520 | h3[rst-doc-heading] { font-size: 1.1rem; } |
| 521 | [rst-doc-subhead] { font-size: 1rem; margin: var(--rst-sp-4) 0 var(--rst-sp-2); } |
| 522 | [rst-passage] { scroll-margin-top: 5rem; border-radius: 0.375rem; margin: 0 calc(-1 * var(--rst-sp-3)); padding: var(--rst-sp-1) var(--rst-sp-3); } |
| 523 | [rst-passage]:target { background: var(--rst-accent-soft); box-shadow: inset 3px 0 0 var(--rst-accent); } |
| 524 | /* The document's own text: a paragraph, a list, a quote, a block of code |
| 525 | * or a table ends one step above the next (and the passage's padding |
| 526 | * gives the last one room inside its mark). A list indents by one wide |
| 527 | * step a level. */ |
| 528 | [rst-passage] p { margin: 0 0 var(--rst-sp-4); } |
| 529 | [rst-passage] a { overflow-wrap: anywhere; } |
| 530 | [rst-doc-list] { margin: 0 0 var(--rst-sp-4); padding-left: var(--rst-sp-5); } |
| 531 | [rst-doc-list] li { margin: var(--rst-sp-1) 0; } |
| 532 | [rst-doc-list] li[rst-depth="1"] { margin-left: var(--rst-sp-5); } |
| 533 | [rst-doc-list] li[rst-depth="2"] { margin-left: 3rem; /* spacing-allow: a third level is two indents in, 2 x --rst-sp-5 */ } |
| 534 | [rst-doc-list] li[rst-depth="3"] { margin-left: 4.5rem; /* spacing-allow: a fourth level is three indents in, 3 x --rst-sp-5 */ } |
| 535 | [rst-doc-list] li[rst-doc-todo] { list-style: none; margin-left: calc(-1 * var(--rst-sp-5)); } |
| 536 | [rst-doc-props] { |
| 537 | display: grid; |
| 538 | grid-template-columns: minmax(7rem, max-content) 1fr; |
| 539 | gap: var(--rst-sp-2) var(--rst-sp-5); |
| 540 | margin: 0 0 var(--rst-sp-4); |
| 541 | padding: var(--rst-sp-3) var(--rst-sp-4); |
| 542 | border: 1px solid var(--rst-line); |
| 543 | border-radius: var(--rst-radius); |
| 544 | background: var(--rst-surface-2); |
| 545 | } |
| 546 | [rst-doc-props] dt { color: var(--rst-text-muted); } |
| 547 | [rst-doc-props] dd { margin: 0; } |
| 548 | [rst-doc-quote] { border-inline-start: 3px solid var(--rst-line-strong); color: var(--rst-text-muted); margin: 0 0 var(--rst-sp-4); padding: 0 0 0 var(--rst-sp-4); } |
| 549 | [rst-doc-code] { background: var(--rst-surface-2); border-radius: var(--rst-radius); font-size: 0.875rem; margin: 0 0 var(--rst-sp-4); overflow-x: auto; padding: var(--rst-sp-3) var(--rst-sp-4); } |
| 550 | [rst-doc-table] { margin: 0 0 var(--rst-sp-4); overflow-x: auto; } |
| 551 | [rst-doc-table] table { border-collapse: collapse; font-size: 0.9375rem; } |
| 552 | [rst-doc-table] th, [rst-doc-table] td { border: 1px solid var(--rst-line); padding: var(--rst-sp-1) var(--rst-sp-2); text-align: left; vertical-align: top; } |
| 553 | [rst-doc-table] th { background: var(--rst-surface-2); } |
| 554 | @media (max-width: 640px) { |
| 555 | [rst-paper] { padding: var(--rst-sp-5) var(--rst-sp-4); border-radius: var(--rst-radius); } |
| 556 | [rst-doc-title] { font-size: 1.6rem; } |
| 557 | [rst-doc-props] { grid-template-columns: 1fr; gap: 0 0; } |
| 558 | [rst-doc-props] dd { margin-bottom: var(--rst-sp-2); } |
| 559 | } |
| 560 | |
| 561 | [rst-table] { border-collapse: collapse; width: 100%; } |
| 562 | [rst-table] th, [rst-table] td { |
| 563 | border-bottom: 1px solid var(--rst-line); |
| 564 | padding: var(--rst-sp-2) var(--rst-sp-2) var(--rst-sp-2) 0; |
| 565 | text-align: start; |
| 566 | } |
| 567 | [rst-table] th { font-size: 0.8125rem; font-weight: 560; } |
| 568 | [rst-table] [rst-num] { font-variant-numeric: tabular-nums; text-align: end; } |
| 569 | [rst-table] time { white-space: nowrap; } |
| 570 | /* The documents list: the title takes the spare width, and every other |
| 571 | * column is as narrow as its content and never wraps. */ |
| 572 | [rst-docs] td:not(:first-child), |
| 573 | [rst-docs] th:not(:first-child) { white-space: nowrap; width: 1%; } |
| 574 | [rst-docs] td:last-child { text-align: end; } |
| 575 | /* One Delete per row is a column of identical bordered buttons; it reads |
| 576 | * as quiet text until the row is hovered or the button is focused. */ |
| 577 | [rst-docs] td:last-child [rst-btn] { background: transparent; border-color: transparent; box-shadow: none; color: var(--rst-text-muted); } |
| 578 | [rst-docs] tr:hover td:last-child [rst-btn], |
| 579 | [rst-docs] td:last-child [rst-btn]:focus-visible { border-color: var(--rst-line-strong, var(--rst-line)); color: var(--rst-text); } |
| 580 | @media (hover: none) { |
| 581 | [rst-docs] td:last-child [rst-btn] { border-color: var(--rst-line); color: var(--rst-text); } |
| 582 | } |
| 583 | [rst-docs] th, [rst-docs] td { padding-inline-end: var(--rst-sp-4); } |
| 584 | [rst-docs] th:last-child, [rst-docs] td:last-child { padding-inline-end: 0; } |
| 585 | /* A wide table scrolls inside its own box rather than widening the page |
| 586 | * past a phone's screen. */ |
| 587 | [rst-scroll-x] { overflow-x: auto; } |
| 588 | /* ?explain=facts: a value is never broken over two lines. */ |
| 589 | [rst-explain-table] td:first-child { font-variant-numeric: tabular-nums; white-space: nowrap; } |
| 590 | |
| 591 | /* 320px is the reflow floor the suite holds itself to. The search form |
| 592 | * stays one row: stacked, rastrillo's align-items: center shrank the input |
| 593 | * to a clipped 180px in the middle of the column. */ |
| 594 | @media (max-width: 26rem) { |
| 595 | [rst-table] { font-size: 0.875rem; } |
| 596 | } |
| 597 | /* The documents table keeps Title, Updated and Delete below 40rem. With |
| 598 | * its narrow columns unwrapped, all five ran past a 417px screen and |
| 599 | * pushed Delete off it (review, 2026-10-26). Source and Passages are on |
| 600 | * the document's own page. */ |
| 601 | @media (max-width: 40rem) { |
| 602 | [rst-docs] th:nth-child(2), [rst-docs] td:nth-child(2), |
| 603 | [rst-docs] th:nth-child(3), [rst-docs] td:nth-child(3) { display: none; } |
| 604 | } |
| 605 | |
| 606 | /* A typing request's note that §8.9 was deferred; never shown. */ |
| 607 | [rst-facts-deferred] { display: none; } |
| 608 | |
| 609 | /* The Sources page's lists: rows with a rule between them. They were |
| 610 | * rastrillo's rounded rst-list card holding bare <li>s, so browser bullets |
| 611 | * sat inside the card with the text touching its edge. */ |
| 612 | [rst-sources] { border-top: 1px solid var(--rst-line); list-style: none; margin: 0; padding: 0; } |
| 613 | [rst-sources] > li { border-bottom: 1px solid var(--rst-line); display: grid; gap: var(--rst-sp-2); padding: var(--rst-sp-3) 0; } |
| 614 | [rst-sources] > li > p { margin: 0; } |
| 615 | [rst-source-name] { font-weight: 600; } |
| 616 | |
| 617 | /* The Notion import's figures: a two-column list, not the browser's |
| 618 | * indented one-per-line definition list. */ |
| 619 | [rst-facts] { display: grid; gap: var(--rst-sp-2) var(--rst-sp-4); grid-template-columns: minmax(0, max-content) minmax(0, 1fr); margin: 0; } |
| 620 | [rst-facts] dt { color: var(--rst-text-muted); } |
| 621 | [rst-facts] dd { margin: 0; } |
| 622 | @media (max-width: 26rem) { |
| 623 | [rst-facts] { grid-template-columns: minmax(0, 1fr); } |
| 624 | [rst-facts] dd { margin-bottom: var(--rst-sp-2); } |
| 625 | } |
| 626 | |
| 627 | /* §8.8's fact box: a validated fact lifted out of the passages below, |
| 628 | with its citation. Sits between the withholding notice and the result |
| 629 | list, and is styled to read as an answer rather than as a result — |
| 630 | the value is the thing the eye should land on. */ |
| 631 | /* §8.10's answer card: label on top, the value large, the citation |
| 632 | * under it, and "Is this wrong?" small and grey at the bottom right. */ |
| 633 | [rst-fact-box] { |
| 634 | border: 1px solid var(--rst-line); |
| 635 | border-radius: var(--rst-radius); |
| 636 | padding: var(--rst-sp-4) var(--rst-sp-4) var(--rst-sp-3); |
| 637 | background: var(--rst-surface); |
| 638 | } |
| 639 | [rst-fact] { |
| 640 | align-items: baseline; |
| 641 | display: flex; |
| 642 | flex-wrap: wrap; |
| 643 | gap: var(--rst-sp-1) var(--rst-sp-2); |
| 644 | margin: 0; |
| 645 | } |
| 646 | [rst-fact-label] { flex-basis: 100%; } |
| 647 | [rst-fact-cite] { flex-basis: 100%; } |
| 648 | /* One answer: the value in large type, Google-style. clamp keeps a |
| 649 | * phone number on one line at 320px. */ |
| 650 | [rst-fact-one] [rst-fact-value] { font-size: clamp(1.125rem, 6vw, 2rem); line-height: 1.15; } |
| 651 | /* A guess is quieter than an answer, and says what it is. */ |
| 652 | [rst-fact-guess] [rst-fact-value] { font-weight: 500; } |
| 653 | [rst-fact-chip] { |
| 654 | background: var(--rst-tone-warning-bg, var(--rst-surface-2)); |
| 655 | border-radius: 999px; |
| 656 | color: var(--rst-tone-warning-fg, var(--rst-text)); |
| 657 | font-size: 0.75rem; |
| 658 | font-weight: 600; |
| 659 | /* spacing-allow: a pill's word sits on its centre line, a hair inside the edge */ |
| 660 | padding: 0.1rem 0.5rem; |
| 661 | } |
| 662 | [rst-fact-report] { |
| 663 | font-size: 0.75rem; |
| 664 | margin: var(--rst-sp-2) 0 0; |
| 665 | text-align: end; |
| 666 | } |
| 667 | [rst-fact-report] a { color: var(--rst-text-muted); } |
| 668 | [rst-fact] + [rst-fact], |
| 669 | [rst-fact-note] + [rst-fact] { |
| 670 | margin-top: var(--rst-sp-2); |
| 671 | padding-top: var(--rst-sp-2); |
| 672 | border-top: 1px solid var(--rst-line); |
| 673 | } |
| 674 | [rst-fact-label] { |
| 675 | color: var(--rst-text-muted); |
| 676 | font-size: 0.8125rem; |
| 677 | } |
| 678 | /* A value is never broken: "+353 (0)1 / 547 7854" over two lines reads |
| 679 | * as two numbers. */ |
| 680 | [rst-fact-value] { |
| 681 | font-size: 1.1875rem; |
| 682 | font-variant-numeric: tabular-nums; |
| 683 | font-weight: 600; |
| 684 | overflow-wrap: anywhere; |
| 685 | } |
| 686 | [rst-fact-value][rst-nowrap] { overflow-wrap: normal; white-space: nowrap; } |
| 687 | [rst-fact-cite] { |
| 688 | font-size: 0.8125rem; |
| 689 | } |
| 690 | /* §8.8's ?explain=facts account: a plain disclosure under the box. */ |
| 691 | [rst-fact-explain] { |
| 692 | font-size: 0.8125rem; |
| 693 | } |
| 694 | [rst-fact-explain] summary { cursor: pointer; color: var(--rst-text-muted); } |
| 695 | |
| 696 | /* §8.8's narrowing line: which of the reader's words chose the rows |
| 697 | above, and how many candidates that left out. Quiet, under the rows. */ |
| 698 | [rst-fact-note] { |
| 699 | color: var(--rst-text-muted); |
| 700 | font-size: 0.8125rem; |
| 701 | margin: var(--rst-sp-2) 0 0; |
| 702 | } |
| 703 | |
| 704 | /* §8.9: a row a model pointed at, rather than one a checksum validated. |
| 705 | Distinct at a glance, and quieter — the value is still the document's |
| 706 | bytes, but the claim that it is an address is the model's. */ |
| 707 | [rst-fact-model] [rst-fact-value] { font-weight: 500; } |
| 708 | [rst-fact-by] { |
| 709 | color: var(--rst-text-muted); |
| 710 | font-size: 0.75rem; |
| 711 | } |
| 712 | |
| 713 | /* §8.10's correction page and the person's own reports. */ |
| 714 | [rst-correct] fieldset { border: 0; margin: 0; padding: 0; } |
| 715 | [rst-correct] legend { font-weight: 600; margin-bottom: var(--rst-sp-2); } |
| 716 | [rst-correct-form] + [rst-correct-form] { border-top: 1px solid var(--rst-line); padding-top: var(--rst-sp-4); } |
| 717 | [rst-correct-option] { |
| 718 | align-items: baseline; |
| 719 | border-top: 1px solid var(--rst-line); |
| 720 | cursor: pointer; |
| 721 | display: flex; |
| 722 | flex-wrap: wrap; |
| 723 | gap: var(--rst-sp-1) var(--rst-sp-2); |
| 724 | padding: var(--rst-sp-2) 0; |
| 725 | } |
| 726 | /* Phone numbers, eircodes and VAT numbers stay whole; an email or an |
| 727 | * IBAN can be long and wraps rather than widening the page. */ |
| 728 | [rst-correct-value] { font-variant-numeric: tabular-nums; font-weight: 600; overflow-wrap: anywhere; } |
| 729 | [rst-correct-value][rst-nowrap] { overflow-wrap: normal; white-space: nowrap; } |
| 730 | [rst-correct] textarea { width: 100%; } |
| 731 | [rst-report-list] { list-style: none; margin: 0; padding: 0; } |
| 732 | [rst-report] { border-top: 1px solid var(--rst-line); padding: var(--rst-sp-3) 0; } |
| 733 | [rst-report] p { margin: 0 0 var(--rst-sp-1); } |
| 734 | [rst-report-note] { color: var(--rst-text-muted); white-space: pre-wrap; } |
| 735 | |
| 736 | /* §8.11's AI answer: marked 🤖 and named, quieter than a checked answer, |
| 737 | * with its citations as links. */ |
| 738 | [rst-answer-pending]:empty { display: none; } |
| 739 | [rst-ai-answer] { |
| 740 | border: 1px solid var(--rst-line); |
| 741 | border-radius: var(--rst-radius); |
| 742 | background: var(--rst-surface); |
| 743 | padding: var(--rst-sp-3) var(--rst-sp-4); |
| 744 | } |
| 745 | [rst-ai-by] { color: var(--rst-text-muted); font-size: 0.8125rem; margin: 0 0 var(--rst-sp-2); } |
| 746 | [rst-ai-text] { line-height: 1.6; margin: 0 0 var(--rst-sp-2); } |
| 747 | [rst-ai-text]:last-child { margin-bottom: 0; } |
| 748 | [rst-ai-list] { line-height: 1.6; margin: 0 0 var(--rst-sp-2); padding-left: var(--rst-sp-5); } |
| 749 | [rst-ai-list]:last-child { margin-bottom: 0; } |
| 750 | [rst-ai-list] li + li { margin-top: var(--rst-sp-1); } |
| 751 | [rst-ai-feedback] { |
| 752 | display: flex; |
| 753 | align-items: center; |
| 754 | justify-content: flex-end; |
| 755 | gap: var(--rst-sp-1); |
| 756 | margin: var(--rst-sp-2) 0 0; |
| 757 | font-size: 0.8125rem; |
| 758 | } |
| 759 | [rst-ai-cite] { font-size: 0.8125rem; text-decoration: none; } |
| 760 | [rst-ai-state] { font-size: 0.875rem; margin: 0; } |
| 761 | |
| 762 | /* The footer is one quiet line; the egress statement opens under it. */ |
| 763 | [rst-foot-details] summary { cursor: pointer; font-size: 0.8125rem; list-style: none; } |
| 764 | [rst-foot-details] summary::-webkit-details-marker { display: none; } |
| 765 | [rst-foot-details] p { font-size: 0.8125rem; margin: var(--rst-sp-2) 0 0; } |
| 766 | |
| 767 | /* A table row or list item whose main link opens it (Paul, 2026-10-31: |
| 768 | any list item with a link should be clickable as a whole). Where a |
| 769 | list can be rastrillo's own list row ([rst-row] / [rst-row-main], the |
| 770 | front page's lists) it is; this is for what cannot — a table row, which |
| 771 | [rst-row] would turn into a flex box, and the sources list's grid. |
| 772 | Memoria's own attribute names, because [rst-row] is rastrillo's. |
| 773 | |
| 774 | The link's ::after stretches over the row on layer 1, so the whole row |
| 775 | is the link with no script, and every other control in the row — a |
| 776 | Delete — sits on layer 2 and keeps its own click. The link itself is |
| 777 | static, because a shared stylesheet makes links position: relative, |
| 778 | which kept the stretch inside the link's own text (found by the browser |
| 779 | test). */ |
| 780 | [rst-click-row] { position: relative; } |
| 781 | [rst-click-row] [rst-click-link] { position: static; } |
| 782 | [rst-click-link]::after { content: ""; inset: 0; position: absolute; z-index: 1; } |
| 783 | [rst-click-row] a:not([rst-click-link]), |
| 784 | [rst-click-row] button, |
| 785 | [rst-click-row] form { position: relative; z-index: 2; } |
| 786 | [rst-click-row]:hover { background: var(--rst-surface-2); } |
| 787 | |