{
  "schema": "ouro-contrast-retest-browser-v1",
  "generatedAt": "2026-11-19T18:55:00Z",
  "target": "https://e204c0d9-215c-4457-b9c9-866ca73a1a18-00-k2xdpxyoj3aw.kirk.replit.dev/",
  "initialJson": {
    "path": "artifacts/radio-familia/public/documentos/acessibilidade/ouro-2026-11-19-1822-contrastes-browser.json",
    "sha256": "8c44254d902052cc05b534f2f48d00ab0e42c48cbad99b746779ba1e307fa42f",
    "note": "unchanged by this retest; checked before and after the write"
  },
  "scope": "seven exact original keys (historical status inconclusive) on the post-fix DOM; the middle-dot key is measured and not exempted",
  "method": "Chromium 1366x900, pt-PT, UTC, reduced motion no-preference. Per key: navigate, wait for selector, scroll target to centre, settle 2-4 s, sample rect; measure with the validated pipeline (computed styles and background chain, elementFromPoint occlusion, hide only the target text via a data attribute reverted in finally, clip screenshot of the text rectangles, pixel decode in an about:blank helper, effective alpha compositing, WCAG ratio min/max vs threshold 3 (large) or 4.5). Rect re-sampled after the raster and 600 ms later; any movement or occlusion makes the key inconclusive. Rule for key 6: a 1 px spread over 7 samples is accepted (spreadPx [0,1]).",
  "records": [
    {
      "key": "/ouvir-direto|default|4",
      "status": "measured-pass",
      "originalState": "default",
      "route": "/ouvir-direto",
      "actualUTC": "2026-11-19T18:46:00Z",
      "role": "status label (dynamic, NicoFM fallback text; not a logo)",
      "historicalSelector": ".text-white\\/80.tracking-widest.uppercase",
      "historicalMatchesNow": 0,
      "retestSelector": "[data-testid=\"text-live-status\"]",
      "selectorEquivalence": "The class .text-white/80 became text-white in the source diff (LeitorAzuraCast.tsx line 27); the historical selector now matches 0 nodes. The testid selects the same span with the same text and classes except colour; retest matches 1 element with text NicoFM.",
      "element": "span.text-xs.font-bold.tracking-widest.text-white.uppercase",
      "text": "NicoFM",
      "fontSize": 12,
      "fontWeight": 700,
      "threshold": 4.5,
      "foregroundResolved": "rgb(255, 255, 255)",
      "fgRgbaEffective": [255, 255, 255, 1],
      "bounds": { "min": 6.741, "max": 6.954 },
      "worstBackground": { "x": null, "y": null, "bg": "#741fe9" },
      "occludedBy": [],
      "stability": { "rectT0": [492, 504, 54, 16], "rectAfterRaster": [492, 504, 54, 16], "rectEnd": [492, 504, 54, 16], "moved": false },
      "limitations": ["measured observation, not a WCAG approval", "single default-state capture; the label text is dynamic (NicoFM / Ao vivo / A ligar)", "pixels inside text rectangles only"]
    },
    {
      "key": "/ouvir-direto|default|11",
      "status": "measured-pass",
      "originalState": "default",
      "route": "/ouvir-direto",
      "actualUTC": "2026-11-19T18:46:30Z",
      "role": "transmission mode label",
      "historicalSelector": ".text-white\\/70",
      "historicalMatchesNow": 0,
      "retestSelector": "[data-testid=\"text-transmission-mode\"]",
      "selectorEquivalence": "The class text-white/70 became text-white in the source diff (LeitorAzuraCast.tsx line 32); the historical selector matches 0 nodes; the testid selects the same paragraph.",
      "element": "p.text-sm.text-white.truncate",
      "text": "Transmissão automática 24h",
      "fontSize": 14,
      "fontWeight": 400,
      "threshold": 4.5,
      "foregroundResolved": "rgb(255, 255, 255)",
      "fgRgbaEffective": [255, 255, 255, 1],
      "bounds": { "min": 6.464, "max": 6.992 },
      "worstBackground": { "bg": "#7627ea" },
      "occludedBy": [],
      "stability": { "moved": false },
      "limitations": ["measured observation, not a WCAG approval", "pixels inside text rectangles only", "the transmission text changes with live mode (automatic vs live DJ)"]
    },
    {
      "key": "/historias|default|3",
      "status": "measured-pass",
      "originalState": "default",
      "route": "/historias",
      "actualUTC": "2026-11-19T18:47:20Z",
      "role": "daily story label",
      "historicalSelector": ".text-violet-300.text-[10px].tracking-widest",
      "historicalMatchesNow": 0,
      "retestSelector": "[data-testid=\"text-daily-story-label\"]",
      "selectorEquivalence": "Historias.tsx line 76: text-violet-300 became text-violet-100 (source diff); the historical selector matches 0 nodes; the testid selects the same span text 'História do dia'.",
      "element": "span.text-[10px].font-bold.uppercase.tracking-widest.text-violet-100",
      "text": "História do dia",
      "fontSize": 10,
      "fontWeight": 700,
      "threshold": 4.5,
      "foregroundResolved": "oklch(0.943 0.029 294.588)",
      "fgRgbaEffective": [237, 233, 254, 1],
      "bounds": { "min": 5.312, "max": 5.644 },
      "worstBackground": { "bg": "#7a1ff4" },
      "occludedBy": [],
      "stability": { "moved": false },
      "limitations": ["measured observation, not a WCAG approval", "pixels inside text rectangles only", "background is a gradient; the worst sampled pixel is reported"]
    },
    {
      "key": "/historias|default|6",
      "status": "measured-pass",
      "originalState": "default",
      "route": "/historias",
      "actualUTC": "2026-11-19T18:49:10Z",
      "role": "daily story details: duration",
      "historicalSelector": ".mt-2 > .gap-1.items-center[data-component-name=\"span\"]",
      "historicalMatchesNow": 1,
      "retestSelector": "[data-testid=\"text-daily-story-details\"] > span:nth-child(1)",
      "selectorEquivalence": "The historical selector still matches 1 node; identity verified (same node as the testid child 1). The group testid is on the parent div (Historias.tsx line 79, colour violet-300 became violet-100).",
      "element": "span.flex.items-center.gap-1",
      "text": "10 min",
      "fontSize": 12,
      "fontWeight": 400,
      "threshold": 4.5,
      "foregroundResolved": "oklch(0.943 0.029 294.588)",
      "fgRgbaEffective": [237, 233, 254, 1],
      "bounds": { "min": 6.049, "max": 6.303 },
      "worstBackground": { "x": 437.5, "y": 411.5, "bg": "#701ae1" },
      "occludedBy": [],
      "stability": { "rectT0": [419, 411, 52, 16], "rectAfterRaster": [419, 410, 52, 16], "rectEnd": [419, 410, 52, 16], "spreadPx": [0, 1], "toleranceRule": "max-min <= 1 px per axis over 7 samples after a 4 s settle", "moved": "1 px one-time shift at the scroll; accepted under the stated rule" },
      "limitations": ["measured observation, not a WCAG approval", "1 px tolerance rule applied explicitly"]
    },
    {
      "key": "/historias|default|7",
      "status": "measured-pass",
      "originalState": "default",
      "route": "/historias",
      "actualUTC": "2026-11-19T18:49:40Z",
      "role": "daily story details: middle dot separator",
      "historicalSelector": ".mt-2 > span[data-component-name=\"span\"]:nth-child(2)",
      "historicalMatchesNow": 1,
      "retestSelector": "[data-testid=\"text-daily-story-details\"] > span:nth-child(2)",
      "selectorEquivalence": "Historical selector matches 1 node (same node as testid child 2).",
      "element": "span",
      "text": "·",
      "fontSize": 12,
      "fontWeight": 400,
      "threshold": 4.5,
      "foregroundResolved": "oklch(0.943 0.029 294.588)",
      "fgRgbaEffective": [237, 233, 254, 1],
      "bounds": { "min": 6.14, "max": 6.331 },
      "worstBackground": { "x": 485.5, "y": 411.5, "bg": "#6f19df" },
      "occludedBy": [],
      "stability": { "moved": false },
      "exemption": "not applied: measured pass. The dot is a decorative separator (no information carried; duration and age are announced as text), so it would qualify as incidental under WCAG 1.4.3, but no exemption was needed.",
      "limitations": ["measured observation, not a WCAG approval"]
    },
    {
      "key": "/historias|default|8",
      "status": "measured-pass",
      "originalState": "default",
      "route": "/historias",
      "actualUTC": "2026-11-19T18:49:55Z",
      "role": "daily story details: age",
      "historicalSelector": ".mt-2 > span[data-component-name=\"span\"]:nth-child(3)",
      "historicalMatchesNow": 1,
      "retestSelector": "[data-testid=\"text-daily-story-details\"] > span:nth-child(3)",
      "selectorEquivalence": "Historical selector matches 1 node (same node as testid child 3).",
      "element": "span",
      "text": "Idade 4+",
      "fontSize": 12,
      "fontWeight": 400,
      "threshold": 4.5,
      "foregroundResolved": "oklch(0.943 0.029 294.588)",
      "fgRgbaEffective": [237, 233, 254, 1],
      "bounds": { "min": 6.191, "max": 6.451 },
      "worstBackground": { "x": 501.5, "y": 411.5, "bg": "#6e19de" },
      "occludedBy": [],
      "stability": { "moved": false },
      "limitations": ["measured observation, not a WCAG approval"]
    },
    {
      "key": "/cultura-e-mar|default|3",
      "status": "measured-pass",
      "originalState": "default",
      "route": "/cultura-e-mar",
      "actualUTC": "2026-11-19T18:52:36Z",
      "role": "partnership badge",
      "historicalSelector": ".bg-white\\/15",
      "historicalMatchesNow": 0,
      "retestSelector": "[data-testid=\"text-museum-partnership\"]",
      "selectorEquivalence": "CulturaMar.tsx line 185: bg-white/15 became solid bg-[#102b5d] (source diff); the historical selector matches 0 nodes; the testid selects the same badge paragraph.",
      "element": "p.mb-3.inline-flex.items-center.rounded-full.bg-[#102b5d]",
      "text": "Em parceria com o Museu Marítimo de Ílhavo",
      "fontSize": 12,
      "fontWeight": 800,
      "threshold": 4.5,
      "foregroundResolved": "rgb(255, 255, 255)",
      "fgRgbaEffective": [255, 255, 255, 1],
      "bounds": { "min": 13.765, "max": 13.765 },
      "worstBackground": { "bg": "#102b5d" },
      "occludedBy": [],
      "stability": { "moved": false },
      "limitations": ["measured observation, not a WCAG approval", "solid background, deterministic ratio"]
    }
  ],
  "initialRecordCorrectionNote": {
    "key": "/ouvir-direto|default|4",
    "initialStatus": "measured-fail, 1.038 to 3.706 on #fff9ef",
    "retest": "measured-pass, 6.741 to 6.954 on #741fe9, stable rect",
    "assessment": "The initial sample point (y=352) was not the current label rect (y=504) and lay on the cream card body. The status label moved from y=534 to y=504 during the first 2.5 s after load. This is a JS-driven entrance, which document.getAnimations() does not report, so the initial wait did not cover it. The initial record is therefore a capture artefact and not a real failure. The initial file is NOT edited; any correction must be applied as a separate, human-approved record."
  },
  "straddleDecisions": [
    { "key": "/privacidade|default|4", "text": "slate-500 18px/400, real text", "rasterBounds": [4.439, 4.517], "exact": { "vsLavender245_243_255": 4.344, "vsCream255_249_239": 4.548 }, "decision": "real marginal failure: the lavender end of the section gradient gives 4.344, below 4.5. Candidate text-slate-600 gives 6.909 (lavender) and 7.234 (cream). Not applied." },
    { "key": "/termos|default|4", "text": "slate-500 text-lg, real text", "rasterBounds": [4.439, 4.517], "decision": "same gradient style; real marginal failure; same candidate" },
    { "key": "/estatuto-editorial|default|4", "text": "slate-500 text-lg, real text", "rasterBounds": [4.439, 4.517], "decision": "same; real marginal failure; same candidate" },
    { "key": "/faq|default|4", "text": "slate-500 text-lg, real text", "rasterBounds": [4.444, 4.522], "decision": "same; real marginal failure; same candidate" },
    { "key": "/descobrir-em-familia|default|3", "text": "Natureza e aventura (real label)", "rasterBounds": [3.519, 5.199], "decision": "image-backed (124 distinct backgrounds); stays inconclusive; not approved" },
    { "key": "/descobrir-em-familia|default|6", "text": "same label", "rasterBounds": [3.519, 5.199], "decision": "same; stays inconclusive" },
    { "key": "/meteorologia|default|6", "text": "15 C at text-6xl (real text) on a gradient with illustration (191 distinct backgrounds)", "rasterBounds": [1.938, 13.166], "decision": "inconclusive; not a brand" },
    { "key": "/pequenos-exploradores|default|6", "text": "H1 span Exploradores, colour #E06E2B; the DOM ancestor is H1, not the logo", "rasterBounds": [1.132, 5.643], "decision": "real heading text, not a brand; inconclusive; not approved" }
  ],
  "logoExceptions": {
    "scope": "narrow WCAG 1.4.3 logotype exception: the NicoFM wordmark letters only, not other text",
    "proof": "LogoNicoFM.tsx: span.nicofm-brand with role=img and aria-label=NicoFM containing six letter spans N, i, c, o, F, M. Live DOM check shows img NicoFM with six letter children.",
    "keys": ["/ouvir-direto|default|5", "/ouvir-direto|default|6", "/ouvir-direto|default|7", "/ouvir-direto|default|8", "/ouvir-direto|default|9", "/ouvir-direto|default|10"],
    "numericRasterKeptUnreliable": "each letter carries a drop-shadow filter; raster ranges 1.02 to 3.33 are kept as unreliable and are not evidence",
    "notExempt": "/ouvir-direto|default|4 (LeitorAzuraCast status label, text not logo) is text and was measured as a pass above"
  },
  "rawReview": {
    "workingLogMeasuredPass": 146,
    "jsonMeasuredPassInitial": 145,
    "difference": "one cookie-closed companion record (/?lang=pt|cookie-dialog-open|14) was moved out of the cookie-open group",
    "flags": { "multiMatch": 0, "smallRaster": 0, "lowMargin_lt_0_3": 0, "fgAlphaBelow1": "2 (composited correctly)", "wideRange_gt_0_5": 19, "remapsNotOriginalNode": 21 },
    "guardGap": "the initial run had no post-scroll rect stability guard; the status-label record shows this can produce a wrong fail, so the 145 are measured observations and not approved. Recommended: re-run all 145 with the guarded procedure before any downgrade or correction."
  },
  "extraChecks": {
    "accessibilityDocs": { "route": "/acessibilidade/docs", "uniqueDocumentLinks": 50, "statuses": { "200": 50 }, "note": "the brief expected 28 links; the page has 50 document links, and all return HTTP 200" },
    "accessibilityDeclaration": { "route": "/acessibilidade", "statement": "WCAG 2.1 AA conformity is not demonstrated; the evaluation is partial and provisional; human validation is pending; it is not a certification" },
    "viewport320": { "/historias": "scrollWidth 320 / viewport 320", "/cultura-e-mar": "320 / 320", "/ouvir-direto": "320 / 320", "/pesquisa": "320 / 320", "/pequenos-exploradores/air": "320 / 320" },
    "viewportDefault1366": { "/pesquisa": "1366 / 1366", "/pequenos-exploradores/air": "1366 / 1366" },
    "explorerSlug": { "slug": "air", "api": "/api/explorers/air returns 200", "route": "/pequenos-exploradores/air", "h1": "O copo que parecia vazio", "overflowAt320": "none" },
    "axeCore": { "version": "4.14.1", "routes": ["/historias", "/cultura-e-mar", "/ouvir-direto", "/acessibilidade/docs"], "result": "0 violations, 49 passes, 1 incomplete per route" },
    "cookieConsent": { "route": "/", "observed": "Escape does not close the consent dialog (aria-labelledby nicofm-consent-heading); focus stays on Recusar inside it", "verifiedAsDefect": false },
    "playerTabNames": { "route": "/ouvir-direto mini-player", "tabOnly": ["NicoFM (link)", "Reproduzir (button)", "Nico (button)", "Silenciar (button)", "Volume (slider)", "Partilhar a NicoFM (button, testid share-toggle)", "Expandir (link)"], "note": "only Tab was pressed; no Enter or Space; no audio; the main player's tab stops were not reached in this run" },
    "languages": { "PT": { "lang": "pt-PT", "h1": "A rádio que se ouve em família!" }, "EN": { "lang": "en", "skipLink": "Skip to content", "h1": "The radio station for the whole family!" }, "ES": { "lang": "es", "h1": "¡La radio para toda la familia!" } },
    "skipLink": { "route": "/pesquisa", "firstTab": "Saltar para o conteúdo", "enterFocus": "conteudo-principal" }
  },
  "limitations": [
    "no NVDA, VoiceOver, TalkBack, TB, real-400 or user-participant testing was performed",
    "no audio was played; no stream was changed; no form was submitted; no login",
    "cookie-open keys remain inconclusive (occluded by the banner) and are not in this retest",
    "scripts/measure-ouro-contrast-browser.mjs has NOT been executed end-to-end; it is syntax-checked only"
  ]
}
