Spaces:
Sleeping
Sleeping
File size: 37,038 Bytes
b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 0bd2e9c b79e956 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 | /* AI Use Check styles.
Every colour is a token defined once per theme below. Run `python docs/contrast.py`
after changing any of them; it reads these blocks and checks every pair for WCAG AAA.
Layout rule: at most one card per step. Inside a card, separate items with spacing and
thin dividers, not more boxes. */
/* THEME:dark */ :root {
--bg: #0E1116;
--surface: #181C23;
--panel: #222833;
--input-bg: #0E1116;
--track: #2A303A;
--text: #F4F6F8;
--muted: #C9CFD8;
--link: #A9D6FF;
--accent: #FFDE59;
--accent-hover: #FFE88A;
--accent-text: #12151A;
--yellow: #FFDE59;
--yellow-text: #12151A;
--secondary-text: #F4F6F8;
--disabled-text: #C9CFD8;
--border: #353C47;
--border-strong: #8C95A4;
--focus: #FFFFFF;
--hover-bg: #262B34;
--yes-bg: #FFDE59;
--yes-text: #12151A;
--yes-border: #12151A;
--unsure-bg: #0E1116;
--unsure-text: #FFDE59;
--unsure-border: #FFDE59;
--no-bg: #F4F6F8;
--no-text: #12151A;
--logo-disc: #F3F5F8;
--error-text: #FFB8AC;
--shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 32px rgba(0, 0, 0, 0.35);
}
/* THEME:light */ :root[data-theme="light"] {
--bg: #F3F5F8;
--surface: #FFFFFF;
--panel: #EEF2F7;
--input-bg: #FFFFFF;
--track: #D9DFE7;
--text: #111317;
--muted: #33383F;
--link: #00509D;
--accent: #00509D;
--accent-hover: #003F7D;
--accent-text: #FFFFFF;
--yellow: #FFDE59;
--yellow-text: #111317;
--secondary-text: #111317;
--disabled-text: #2F3642;
--border: #D3D9E1;
--border-strong: #5A616C;
--focus: #0B57D0;
--hover-bg: #EDF0F4;
--yes-bg: #FFDE59;
--yes-text: #12151A;
--yes-border: #12151A;
--unsure-bg: #FFFFFF;
--unsure-text: #00509D;
--unsure-border: #00509D;
--no-bg: #111317;
--no-text: #FFFFFF;
--logo-disc: #F3F5F8;
--error-text: #8E1A0E;
--shadow: 0 1px 2px rgba(11, 13, 18, 0.06), 0 10px 28px rgba(11, 13, 18, 0.08);
}
/* ---------- Fonts (served from static/fonts, SIL Open Font License; licences in that folder) ---------- */
/* Figtree: the tool name and headings. Atkinson Hyperlegible Next: everything else. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/fonts/figtree-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 600; font-display: swap; src: url("/static/fonts/atkinson-hyperlegible-next-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/fonts/atkinson-hyperlegible-next-latin-800-normal.woff2") format("woff2"); }
/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
:root[data-theme="light"] { color-scheme: light; }
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
font-size: 1.125rem; /* 18px */
line-height: 1.6;
min-height: 100vh;
display: flex;
flex-direction: column;
}
h1, h2, h3 { font-family: "Figtree", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4vw + 0.75rem, 2.25rem); }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.1875rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible {
outline: 4px solid var(--focus);
outline-offset: 3px;
border-radius: 6px;
}
:focus:not(:focus-visible) { outline: none; }
.visually-hidden {
position: absolute !important; width: 1px; height: 1px; overflow: hidden;
clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
position: absolute; left: 16px; top: -100px; z-index: 10;
background: var(--accent); color: var(--accent-text);
padding: 0.6em 1em; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
svg.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.25em; }
.muted { color: var(--muted); }
.small { font-size: 1rem; }
/* ---------- Header and footer ---------- */
.site-header { border-bottom: 1px solid var(--border); }
.header-inner, .site-footer p {
max-width: 760px; margin: 0 auto; padding: 0 16px;
}
/* Two short rows: logo, name and theme button; then the nav links. */
.header-inner { padding-top: 10px; padding-bottom: 4px; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark {
display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
color: var(--text); text-decoration: none;
font-family: "Figtree", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
font-weight: 800; font-size: 1.375rem; line-height: 1.2;
}
.wordmark-logo {
display: inline-grid; place-items: center; flex: none;
width: 40px; height: 40px; border-radius: 50%; background: var(--logo-disc);
}
.wordmark-logo img { width: 30px; height: 30px; display: block; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-left: -12px; }
.site-nav a {
color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px;
font-weight: 700; min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.site-nav a:hover { background: var(--hover-bg); }
.theme-toggle {
display: inline-grid; place-items: center; flex: none;
width: 44px; height: 44px; padding: 0;
background: transparent; color: var(--secondary-text);
border: 2px solid var(--border-strong); border-radius: 50%; cursor: pointer;
}
.theme-toggle .icon { width: 22px; height: 22px; }
.theme-toggle:hover { background: var(--hover-bg); }
.site-footer { border-top: 1px solid var(--border); margin-top: auto; }
.site-footer p { padding-top: 20px; padding-bottom: 28px; margin: 0; color: var(--muted); font-size: 1rem; }
.site-footer p + .footer-model, .site-footer p + .footer-maker,
.footer-notice p + p, .footer-notice + .footer-model { padding-top: 0; margin-top: -16px; }
.footer-model:empty, .footer-maker:empty { display: none; }
.footer-maker { display: flex; align-items: center; gap: 10px; }
.maker-logo { flex: none; border-radius: 50%; }
/* The logo is black, so in dark mode it sits on a small light disc. */
:root:not([data-theme="light"]) .maker-logo { background: var(--logo-disc); padding: 2px; }
/* ---------- Layout ---------- */
main { flex: 1; width: 100%; outline: none; }
/* One width for every step and page. */
#app { max-width: 760px; margin: 0 auto; padding: 24px 16px 56px; }
.loading-page { color: var(--muted); }
.card {
background: var(--surface);
border: 1px solid var(--border);
border-radius: 20px;
padding: clamp(20px, 4vw, 36px);
box-shadow: var(--shadow);
}
.step-enter { animation: step-in 220ms ease-out both; }
@keyframes step-in {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.step-heading:focus { outline: none; }
.step-num {
display: inline-grid; place-items: center; vertical-align: 0.1em;
width: 1.5em; height: 1.5em; margin-right: 0.45em; border-radius: 50%;
background: var(--yellow); color: var(--yellow-text); font-size: 0.8em; font-weight: 800;
}
.lede { font-size: 1.1875rem; }
.section-heading { font-size: 1.25rem; margin: 32px 0 12px; }
/* ---------- Top of step 1 (instead of the progress bar) ---------- */
.hero { margin: 0 0 16px; }
.hero-title { font-size: clamp(1.625rem, 3.5vw + 0.75rem, 2.375rem); margin-bottom: 12px; }
.hero-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.hero-badges li {
margin: 0; padding: 2px 10px; border-radius: 999px; line-height: 1.5;
background: var(--yellow); color: var(--yellow-text); font-size: 0.9375rem; font-weight: 700;
}
/* ---------- Progress ---------- */
.progress { margin-bottom: 20px; }
.progress-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.progress-label { font-weight: 700; margin: 0; }
.progress-name { color: var(--muted); margin: 0; font-size: 1rem; }
.progress-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.progress-seg { height: 8px; border-radius: 999px; background: var(--track); }
.progress-seg.done { background: var(--accent); }
.progress-seg.current { background: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
/* ---------- Buttons ---------- */
.btn {
font: inherit; font-weight: 700; font-size: 1.125rem; line-height: 1.2;
display: inline-flex; align-items: center; justify-content: center; gap: 10px;
min-height: 52px; padding: 12px 24px; border-radius: 12px;
border: 2px solid transparent; cursor: pointer; text-decoration: none;
transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--secondary-text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--hover-bg); }
.btn-link {
background: none; border: none; padding: 8px 4px; min-height: 44px;
color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.btn[disabled], .btn[aria-disabled="true"] {
background: transparent; color: var(--disabled-text);
border: 2px dashed var(--border-strong); cursor: not-allowed; transform: none;
}
.actions {
display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
margin-top: 28px;
}
.actions.tight { margin-top: 16px; }
@media (max-width: 520px) {
.actions .btn-primary, .actions .btn-secondary { width: 100%; }
}
.back-row { margin: -4px 0 12px; }
.back-row .btn-link { padding-left: 0; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.spinner {
width: 1.1em; height: 1.1em; border-radius: 50%;
border: 3px solid currentColor; border-right-color: transparent;
animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { border-right-color: currentColor; border-style: dotted; } }
/* ---------- Forms ---------- */
.field { margin-top: 24px; }
.field-label { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field-help { color: var(--muted); font-size: 1rem; margin: 0 0 10px; }
textarea, input[type="text"], input[type="date"], select {
font: inherit; color: var(--text); background: var(--input-bg);
width: 100%; border: 1px solid var(--border-strong); border-radius: 12px;
padding: 14px 16px; line-height: 1.5;
}
textarea { min-height: 170px; resize: vertical; }
textarea::placeholder, input::placeholder { color: var(--muted); opacity: 1; }
textarea:focus-visible, input:focus-visible, select:focus-visible { border-color: var(--focus); }
select { appearance: none; background-image: none; padding-right: 44px; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.field-error { color: var(--error-text); font-weight: 700; margin: 8px 0 0; display: flex; gap: 8px; align-items: flex-start; }
[aria-invalid="true"] { border-color: var(--error-text) !important; border-width: 2px !important; }
.check-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-weight: 700; cursor: pointer; min-height: 44px; }
.check-row input { width: 24px; height: 24px; accent-color: var(--accent); cursor: pointer; flex: none; }
/* Radio tiles: the outcome (on-screen step 3). These are controls, not cards. */
.outcome { position: relative; }
.outcome input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.outcome label {
display: flex; gap: 12px; align-items: flex-start; height: 100%;
border: 1px solid var(--border-strong); border-radius: 12px; padding: 12px 14px; cursor: pointer;
background: var(--panel);
}
.outcome label:hover { background: var(--hover-bg); }
.radio-dot {
flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
border: 2px solid var(--border-strong); display: grid; place-items: center;
}
.outcome input:checked + label { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.outcome input:checked + label .radio-dot { border-color: var(--accent); }
.outcome input:checked + label .radio-dot::after {
content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.outcome input:focus-visible + label { outline: 4px solid var(--focus); outline-offset: 3px; }
/* ---------- Step 1 ---------- */
/* The card holds the person's own description first, then examples to start from. */
.describe-card { padding: clamp(16px, 4vw, 32px); }
.field-main { margin-top: 0; }
.field-main .field-label { font-family: "Figtree", "Segoe UI", system-ui, sans-serif; font-size: 1.25rem; font-weight: 800; line-height: 1.3; }
.field-main textarea { border: 2px solid var(--accent); min-height: 0; background: var(--surface); box-shadow: 0 0 0 4px var(--panel); }
.starters { margin-top: 14px; }
.starters-label { font-weight: 700; margin: 0 0 8px; }
.starter-list { display: flex; flex-wrap: wrap; gap: 8px; }
.starter-chip { min-height: 44px; border-radius: 999px; padding: 6px 14px; }
.examples { margin-top: 12px; }
.several-tools { margin: 12px 0 0; }
.more-examples { margin-top: 10px; }
.example-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
/* 9 examples: 3 per row on wider screens, one slim list on phones, so none is left on its own. */
@media (min-width: 600px) { .example-grid { grid-template-columns: repeat(3, 1fr); } }
.example-chip {
font: inherit; text-align: left; cursor: pointer; color: var(--text);
display: flex; flex-direction: column; justify-content: center; gap: 0;
min-height: 48px; padding: 8px 14px; border-radius: 12px;
background: var(--panel); border: 1px solid var(--border-strong);
}
.example-chip:hover { background: var(--hover-bg); }
.example-chip[aria-disabled="true"] { border-style: dashed; cursor: not-allowed; }
.example-title { font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.example-sector { color: var(--muted); font-size: 0.9375rem; line-height: 1.35; }
@media (max-width: 599px) {
.example-chip { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
.example-sector { text-align: right; }
}
.tool-options { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.tool-options legend { font-size: 1.125rem; margin-bottom: 10px; }
/* Tool choice: short buttons that wrap. Real radio buttons underneath. */
.tool-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-chip { position: relative; }
.tool-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tool-chip label {
display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px;
border: 2px solid var(--border-strong); border-radius: 999px; background: var(--surface);
color: var(--text); font-weight: 600; line-height: 1.3; cursor: pointer;
}
.tool-chip label:hover { background: var(--hover-bg); }
.tool-tick { display: none; }
.tool-chip input:checked + label { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 700; }
.tool-chip input:checked + label .tool-tick { display: inline; }
.tool-chip input:focus-visible + label { outline: 4px solid var(--focus); outline-offset: 3px; }
.tool-chip input:disabled + label { border-style: dashed; cursor: not-allowed; }
#tool-selected-help { margin: 10px 0 0; color: var(--text); font-size: 1rem; }
#tool-selected-help:empty { display: none; }
#tool-hint { margin: 8px 0 0; }
/* Below the button: why to trust it, and what you get. */
.trust { margin-top: 32px; background: var(--panel); border-radius: 14px; padding: 16px 18px; }
.trust-heading { font-size: 1.1875rem; margin: 0 0 10px; }
.trust-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.trust-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 0; font-size: 1rem; }
.trust-list svg.icon { color: var(--accent); margin-top: 3px; }
.trust-link { margin: 12px 0 0; font-size: 1rem; font-weight: 700; }
.gets-line { margin: 16px 0 0; font-size: 1rem; }
.tool-help { display: block; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.loading-panel { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
/* ---------- Notes: text with an icon and a thin rule, no box ---------- */
.note {
background: var(--panel); border-left: 4px solid var(--accent); border-radius: 4px 12px 12px 4px;
padding: 12px 16px; margin: 20px 0;
display: flex; gap: 10px; align-items: flex-start;
}
.note > svg { margin-top: 3px; }
/* Notes that flag something to act on (step 3): a yellow rule in both themes, edged in dark like
the Yes badge, so it stands out on the light panel too. */
.note-flag { border-left: 6px solid var(--yes-bg); box-shadow: -2px 0 0 var(--yes-border); margin-left: 2px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
.note-heading { font-size: 1.125rem; margin-bottom: 4px; }
/* ---------- Markers: small, quiet text with an icon ---------- */
.marker {
display: inline-flex; align-items: center; gap: 5px;
color: var(--muted); font-size: 0.9375rem; font-weight: 400; white-space: nowrap;
}
.marker svg.icon { width: 1.05em; height: 1.05em; }
/* "AI suggestion": outlined so it stands apart from the person's own text. Full text colour for contrast. */
.marker-ai {
color: var(--text); border: 1px solid var(--border-strong); border-radius: 999px;
padding: 1px 9px; font-weight: 700; font-size: 0.875rem;
}
.inline-link { display: inline; padding: 0; margin-left: 6px; min-height: 0; font-size: inherit; vertical-align: baseline; }
/* AI suggestion panel: label on top, text below, on a tint so it reads as one unit. */
.suggestion { background: var(--panel); border-radius: 12px; padding: 10px 14px 12px; }
.suggestion p { margin: 6px 0 0; font-size: 1rem; color: var(--text); }
.suggestion .marks { display: flex; flex-wrap: wrap; gap: 6px; }
/* "Add a detail" and "Check again" on the questions page */
.detail .field-label { font-size: 1rem; margin-top: 4px; }
.detail textarea { min-height: 64px; font-size: 1rem; padding: 10px 14px; }
details.detail > summary { margin-bottom: 0; }
.recheck { background: var(--panel); border-top: 4px solid var(--accent); border-radius: 12px; padding: 14px 18px; margin-top: 20px; }
.recheck p { margin: 0 0 10px; }
.recheck p:last-child { margin-bottom: 0; }
.recheck-text { font-weight: 700; }
.recheck .btn { margin-bottom: 10px; }
.recheck-msg { font-weight: 700; margin: 20px 0 0; }
/* "Tell the AI more" and "Why this matters" side by side; an opened one takes the full width below. */
.q-links { display: flex; flex-wrap: wrap; column-gap: 18px; align-items: flex-start; }
.q-links > details[open] { flex-basis: 100%; order: 1; }
/* While there are details to check, the bar stays in view at the bottom of the screen. */
#recheck-slot:has(.recheck.pending) { position: sticky; bottom: 12px; z-index: 2; }
/* Keep keyboard focus from hiding behind the bar (WCAG 2.2, focus not obscured). */
html:has(.recheck.pending) { scroll-padding-bottom: 190px; }
.recheck.pending {
display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px;
box-shadow: 0 -2px 0 var(--surface), 0 8px 28px rgba(0, 0, 0, 0.28);
}
.recheck.pending .recheck-text { flex: 1 1 240px; margin: 0; }
.recheck.pending .btn { margin: 0; }
.recheck.pending p.small { flex-basis: 100%; margin: 0; }
/* Phones: a slim bar, so it doesn't cover the questions. The re-checks count shows on wider screens. */
@media (max-width: 599px) {
.recheck.pending { padding: 10px 14px; gap: 8px 12px; }
.recheck.pending .recheck-text { font-size: 1rem; flex-basis: 100%; }
.recheck.pending .btn { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.recheck.pending p.small { display: none; }
}
/* ---------- Answers: one system everywhere ---------- */
/* Yes: strong and filled. Unsure: outlined. No: quiet. Always with an icon and a text label. */
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip label {
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
min-height: 44px; min-width: 96px; padding: 7px 14px;
border-radius: 999px; border: 2px solid var(--border-strong);
color: var(--text); background: var(--surface);
font-size: 1.0625rem; cursor: pointer;
}
.chip label:hover { background: var(--hover-bg); }
.chip .tick { display: none; }
/* Selected: a tick before the word, bold text and a 3px border. */
.chip input:checked + label { font-weight: 700; border-width: 3px; padding: 6px 13px; }
.chip input:checked + label .tick { display: inline; }
.chip input:checked + label.yes { background: var(--yes-bg); color: var(--yes-text); border-color: var(--yes-border); }
.chip input:checked + label.unsure { background: var(--unsure-bg); color: var(--unsure-text); border-color: var(--unsure-border); }
.chip input:checked + label.no { background: var(--no-bg); color: var(--no-text); border-color: var(--no-bg); }
.chip input:focus-visible + label { outline: 4px solid var(--focus); outline-offset: 3px; }
.answer {
display: inline-flex; align-items: center; gap: 6px; flex: none;
min-height: 34px; padding: 3px 12px; border-radius: 999px;
font-size: 1rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
border: 2px solid transparent;
}
.answer-yes { background: var(--yes-bg); color: var(--yes-text); border-color: var(--yes-border); }
.answer-unsure { background: var(--unsure-bg); color: var(--unsure-text); border-color: var(--unsure-border); }
.answer-no { background: var(--no-bg); color: var(--no-text); border-color: var(--no-bg); }
/* ---------- Step 2 ---------- */
.verdict { display: flex; gap: 14px; align-items: flex-start; margin: 8px 0 16px; }
.verdict svg { width: 36px; height: 36px; flex: none; margin-top: 2px; }
/* "Build it safely" on the "built with AI" screen, and "Happy with the answers?" after the questions. */
.end-card {
margin-top: 24px; padding: 18px 20px 4px;
border: 3px solid var(--accent); border-radius: 16px; background: var(--surface);
}
.end-card h2 { margin-bottom: 0.4em; }
.end-card .actions { margin-top: 12px; }
/* ---------- Step 3: one compact row per question ---------- */
.screen-subheading { margin: 20px 0 8px; }
.screen-tips { margin: 0 0 8px; padding-left: 1.25em; }
.screen-tips li + li { margin-top: 6px; }
.q-reason > p:first-child { margin-top: 0; }
details.meaning .q-text { margin: 4px 0 0; }
.q-list { margin-top: 8px; }
.q-row { padding: 22px 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.q-row + .q-row { border-top: 1px solid var(--border); }
.q-row > * { margin: 0; }
/* Desktop: label and chips share the first line; the question runs full width below. */
@media (min-width: 640px) {
.q-row { grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 8px; }
.q-row .q-label { grid-column: 1; grid-row: 1; align-self: center; }
.q-row .chips { grid-column: 2; grid-row: 1; flex-wrap: nowrap; }
.q-row .q-text, .q-row .q-reason, .q-row .q-note, .q-row .why, .q-row .q-links, .q-row .detail { grid-column: 1 / -1; }
.chip label { min-width: 0; }
}
@media (max-width: 639px) {
.q-row .chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chip label { width: 100%; min-width: 0; padding: 8px 6px; }
}
.q-label { margin: 0; font-size: 1.1875rem; display: flex; gap: 10px; align-items: baseline; }
.q-num { flex: none; color: var(--muted); font-size: 1rem; min-width: 1.2em; }
.q-text { margin: 0; }
.q-reason { font-size: 1rem; }
.q-note { display: flex; gap: 8px; align-items: flex-start; font-size: 1rem; margin: 8px 0 0; }
.q-note svg { margin-top: 2px; }
details.why > summary, details.later > summary { cursor: pointer; list-style: none; }
details.why > summary::-webkit-details-marker, details.later > summary::-webkit-details-marker { display: none; }
details.why > summary {
display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
color: var(--link); font-size: 1rem; font-weight: 700;
text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px;
}
details.why > summary::before, details.later > summary::before {
content: ""; width: 8px; height: 8px; flex: none;
border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
transform: rotate(-45deg); margin-right: 4px;
}
details[open].why > summary::before, details[open].later > summary::before { transform: rotate(45deg); }
.risks { margin: 4px 0 0; padding: 0; list-style: none; font-size: 1rem; }
.risks li { margin: 0; padding: 10px 0; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.risks li svg.icon { margin-top: 3px; }
.risks li + li { border-top: 1px solid var(--border); }
/* ---------- Step 4 ---------- */
.summary { list-style: none; padding: 0; margin: 16px 0 0; }
.summary li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; margin: 0; }
.summary li + li { border-top: 1px solid var(--border); }
.outcomes { border: 0; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; min-width: 0; }
.outcomes legend { font-weight: 700; font-size: 1.25rem; margin-bottom: 8px; padding: 0; }
.outcome-name { display: block; font-weight: 700; font-size: 1.125rem; }
.outcome-term { font-weight: 400; color: var(--muted); font-size: 1rem; }
.outcome-desc { display: block; color: var(--muted); font-size: 1rem; }
.outcome-next { display: block; font-size: 1rem; margin-top: 6px; }
.next-steps { margin-top: 20px; }
/* "Where are you with this idea?": a tinted card with the same short buttons as the tool question. */
.stage-card { border: 0; margin: 20px 0 0; padding: 16px 18px; min-width: 0; background: var(--panel); border-radius: 12px; }
.stage-card legend { float: left; width: 100%; padding: 0; }
.stage-card legend + * { clear: left; }
.stage-heading { font-size: 1.1875rem; margin: 0 0 4px; }
.decide-summary { font-weight: 700; margin: 0 0 6px; }
/* What to do next: one panel with a clear lead, then the safeguards in two labelled groups. */
.next-panel { background: var(--panel); border-top: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px 6px; }
.next-heading { font-size: 1.1875rem; margin-bottom: 6px; }
.next-lead { font-weight: 700; font-size: 1.125rem; }
.safer-block { margin-top: 8px; }
.safer-heading { font-size: 1.125rem; margin: 16px 0 2px; }
.safer-group { margin-top: 14px; }
.safer-group-heading { font-size: 1rem; margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.safer { list-style: none; padding: 0; margin: 0 0 12px; }
.safer li { margin: 0; padding: 10px 0 10px 18px; position: relative; font-size: 1rem; }
.safer li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.safer li + li { border-top: 1px solid var(--border); }
.safer-for { display: block; color: var(--muted); font-size: 0.9375rem; margin-top: 2px; }
.next-list li > p { margin: 0; }
.keep { background: var(--panel); border-radius: 12px; padding: 16px 18px; }
.keep > p:first-child { margin-bottom: 6px; }
.keep ul { margin: 0 0 4px; }
.keep .actions { margin: 12px 0 16px; }
.keep-note { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 1rem; margin: 0 0 10px; }
.keep-note:last-child { margin-bottom: 0; }
.keep-note svg.icon { margin-top: 3px; }
.take-actions .btn { flex: 0 1 auto; }
.keep #excel-help { margin: 8px 0 12px; }
.more-options { margin-top: 6px; }
.more-options .review-field { max-width: 280px; margin-top: 8px; }
.laws { margin-top: 22px; }
.laws p { margin: 0 0 4px; }
.laws-list { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.laws-list li { margin: 0; }
.all-actions { margin-top: 26px; }
.share { margin-top: 20px; }
.share-heading { font-size: 1.125rem; margin-bottom: 4px; }
.share .review-field { margin-top: 12px; max-width: 280px; }
.share .actions { margin-top: 14px; }
.share-status { margin: 10px 0 0; font-weight: 700; }
.share-status:empty { display: none; }
.copy-box { margin-top: 6px; font-size: 0.9375rem; }
/* ---------- "Build it safely" (step 4 and its own page) ---------- */
/* On step 4: a yellow border in both themes, edged in dark like the Yes badge, so it stands out
on the white card too. */
.build-panel {
margin: 28px 0; padding: 18px 20px 8px; border-radius: 16px; background: var(--surface);
border: 3px solid var(--yes-bg); box-shadow: 0 0 0 2px var(--yes-border);
}
.build-panel > h2 { margin-bottom: 0.4em; }
.build-panel h3, .build-safely-page h2 { margin: 22px 0 8px; font-size: 1.125rem; }
.build-list { margin: 0 0 12px; padding-left: 1.3em; }
.build-list li { margin-bottom: 6px; }
/* "Does anything need approval before others see it?": an optional block the person can add. */
.build-option { margin: 4px 0 16px; padding: 12px 16px; border: 2px solid var(--border-strong); border-radius: 12px; background: var(--panel); }
.build-option p { margin-bottom: 8px; }
.build-added { display: flex; gap: 8px; align-items: center; font-weight: 700; }
.prompt-box {
margin: 0 0 4px; padding: 14px 16px; border: 2px solid var(--border-strong); border-radius: 12px;
background: var(--panel); color: var(--text);
font-family: inherit; font-size: 0.9375rem; line-height: 1.55;
white-space: pre-wrap; overflow-wrap: anywhere;
}
.due { display: inline-block; margin-left: 6px; padding: 0 8px; border: 2px solid var(--yes-border); border-radius: 999px;
background: var(--yes-bg); color: var(--yes-text); font-size: 0.875rem; font-weight: 700; }
.rules { list-style: none; padding: 0; margin: 0 0 8px; }
.rules li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 0; padding: 12px 0; }
.rules li + li { border-top: 1px solid var(--border); }
.rules li svg.icon { margin-top: 3px; }
.next-list .safer-block { background: var(--panel); border-radius: 12px; padding: 4px 16px 2px; margin: 10px 0 8px; }
/* ---------- Step 6: the finish line ---------- */
.done-head { display: flex; gap: 14px; align-items: flex-start; }
.done-head > svg { width: 40px; height: 40px; color: var(--accent); margin-top: 2px; }
.done-head h1 { margin: 0; }
.done-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; margin: 24px 0 0; }
.done-summary dt { color: var(--muted); font-size: 1rem; }
.done-summary dd { margin: 0; font-weight: 700; font-size: 1.1875rem; }
.next-list { padding-left: 1.4em; }
/* Direct children only, so lists inside a step (like the safeguards) keep their own spacing. */
.next-list > li { padding-left: 4px; }
.next-list > li::marker { font-weight: 700; }
.later-heading { margin-top: 36px; }
.later-list { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
details.later + details.later { border-top: 1px solid var(--border); }
details.later > summary {
display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; min-height: 56px; padding: 10px 0;
}
.later-title { font-weight: 700; font-size: 1.125rem; flex: 1 1 auto; }
.later-progress { color: var(--muted); font-size: 1rem; }
/* Phones: progress always sits on its own line under the title, so all three rows match. */
@media (max-width: 599px) {
details.later > summary { row-gap: 0; }
.later-progress { flex-basis: 100%; padding-left: 24px; }
}
.later-body { padding: 0 0 24px; }
.later-body h3 { margin-top: 24px; }
.record { margin: 12px 0 0; }
.record-row { padding: 12px 0; }
.record-row + .record-row { border-top: 1px solid var(--border); }
.record dt { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.record dd { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.record .empty { color: var(--muted); font-style: italic; }
.record-edit .field:first-child { margin-top: 12px; }
.record-edit textarea { min-height: 96px; }
.tests { list-style: none; padding: 0; margin: 12px 0 0; }
.tests li { margin: 0; }
.tests li + li { border-top: 1px solid var(--border); }
.test-row { align-items: flex-start; margin: 0; padding: 10px 0; font-weight: 400; }
.test-row input { margin-top: 3px; }
.test-text { display: block; font-weight: 700; }
.test-for { display: block; color: var(--muted); font-size: 0.9375rem; }
.tests-footer { margin: 16px 0 0; }
.test-link { display: block; padding: 0 0 10px 36px; font-size: 1rem; }
.test-row .marker-ai { margin-bottom: 4px; }
.first-heading { font-size: 1.125rem; margin: 18px 0 0; }
.watch-heading { font-size: 1rem; margin: 18px 0 6px; }
.section-subheading { font-size: 1rem; margin: 18px 0 0; padding-top: 4px; }
.later-body > .section-subheading:first-child { margin-top: 4px; }
.closing { margin: 32px 0 0; font-size: 1.1875rem; font-weight: 700; line-height: 1.5; }
/* ---------- My AI checks ---------- */
.check-list { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--border); }
.check-item { margin: 0; padding: 20px 0; }
.check-item + .check-item { border-top: 1px solid var(--border); }
.check-title { font-size: 1.25rem; margin-bottom: 8px; }
.check-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 0; }
.check-meta dt { font-size: 0.9375rem; color: var(--muted); }
.check-meta dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.check-progress { margin: 12px 0 0; font-weight: 700; }
.check-item details { margin-top: 4px; }
.check-item details h3 { margin-top: 16px; font-size: 1.125rem; }
.clear-row { margin-top: 12px; }
.clear-row p { margin: 0; }
/* ---------- About ---------- */
.about-section { margin-top: 32px; }
.about-intro { margin-top: 20px; }
.contact-line { font-weight: 700; margin-bottom: 0; }
.self-screen { list-style: none; padding: 0; margin: 16px 0 0; }
.self-row { margin: 0; padding: 14px 0; }
.self-row + .self-row { border-top: 1px solid var(--border); }
.self-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.self-head .q-label { font-size: 1.125rem; }
.self-row .q-reason { margin-top: 6px; }
/* ---------- Print or save as PDF: only the summary sheet, in black on white ---------- */
#print-sheet { display: none; }
@media print {
body > *:not(#print-sheet) { display: none !important; }
body { background: #fff; color: #000; font-size: 11pt; line-height: 1.4; display: block; min-height: 0; }
#print-sheet { display: block; color: #000; }
#print-sheet h1 { font-size: 18pt; margin: 0 0 8pt; }
#print-sheet h2 { font-size: 13pt; margin: 14pt 0 4pt; break-after: avoid; }
#print-sheet ul { list-style: none; padding: 0; margin: 0; }
#print-sheet li { margin: 0 0 4pt; padding-left: 18pt; text-indent: -18pt; break-inside: avoid; }
#print-sheet .box { font-size: 13pt; }
#print-sheet .url, #print-sheet .foot { color: #333; font-size: 9pt; }
} |