3.9 KiB
Shared result presentation polish
Width hierarchy
The main result container had expanded to 1140px, while the next-step callout retained a 950px cap, headings a 1050px cap, secondary images an 850px cap, and prose/related sections separate 780/800px caps. These independent leftovers caused accidental steps in the page edges.
The shared solver stylesheet now defines two result widths: --solver-result-width:71.25rem (1140px at the normal root size) and --solver-reading-width:56rem (896px). The full-width warm visual canvas is unchanged. The result container remains constrained to the main width; the next-step callout fills it naturally without its own max-width. Headings no longer have an additional cap. Recognition, deeper prose, mental-model parent, related material, supporting prose and secondary explanation use the shared reading width. Secondary demonstrations intentionally share that reading measure rather than inventing another image width. The reassurance card uses the reading measure and its introduction fills the card.
Question/entry/discovery layout widths remain separate, established layouts; this does not redesign the public site. Typography, content, hierarchy, primary and secondary recommendations and all image mappings are unchanged. The shared implementation covers all seven diagnostic families; reassurance retains its distinct approved treatment.
Screenshot inspection
A single shared native <dialog> serves all primary and secondary screenshot triggers. The existing anchor and optimised picture/srcset remain, with the new-tab target removed. With JavaScript enabled the link opens the in-page dialog; without JavaScript or native dialog support it remains a working same-tab image link.
The native top layer supplies modal semantics and an inert background. The dialog has a generic accessible heading, one obvious Close control and the selected screenshot's meaningful alt text on the image, without repeating that alt in hidden chrome. Enter opens the keyboard-accessible trigger. Focus moves to Close; Tab/Shift+Tab stay on the sole modal control. Escape, Close and backdrop clicks dismiss it. Closing restores the original trigger focus and the page's prior scroll/overflow/padding state. Scrollbar compensation avoids shifting the underlying content. Normal browser zoom/pinch remains available; no custom zoom application or gallery dependency.
Desktop maximum dimensions are 90vw/90dvh, with a proportional uncropped image. Mobile uses a 12px outer margin and responsive fitted image. The dialog lives inside the existing solver canvas so the public shell's direct-child content-width rule cannot override its viewport dimensions; an initial tablet test identified this additional wrapper interaction.
Normal pages continue to load responsive AVIF/WebP variants. The dialog has no image src until opened, when it loads the existing optimised 1280px WebP (31,248–94,090 bytes across the library). No screenshot derivative, mapping or master changed. A previously inspected image can be reused from the browser cache on a later page with zero transferred bytes; cold initial-page checks do not fetch the inspection image. The lightweight script is scoped to diagnostic pages and adds no dependency.
Small presentation changes
- “Also indicated by your answers” is now “You may also want to look at”. Existing supporting result selection, disclosures and evidence remain untouched.
- The conversation recap has its own
.solver-recapstyling rather than breadcrumb styling: modest gold accent, slightly larger/darker text, clear introductory label and light separators. Its answer text, accessible navigation label and Restart link remain unchanged. It remains secondary to the diagnosis and Start Here.
No scoring, routes, diagnosis data, thresholds, permanent editorial copy, metadata, sitemap, Review Mode or feedback/replay changes. Development deployment and verification are recorded in Deployment.md.