/* Visual QA fixes, 27 Nov 2026 */
html.dark .btn-lift.bg-white.text-deep-slate{background-color:#fff!important;color:#1a2b3c!important}
html.dark .btn-lift[style*="212, 148, 10"]{color:#1a2b3c!important}
html.dark svg.max-w-\[360px\] text{fill:rgba(234,241,244,.75)}
html.dark svg.max-w-\[360px\] polygon[fill="none"],html.dark svg.max-w-\[360px\] line{stroke:rgba(234,241,244,.16)}
ol.lg\:grid-cols-4>li[style*="opacity: 0.5"]{opacity:.85!important}
@media (prefers-reduced-motion:reduce){ol.lg\:grid-cols-4>li{opacity:1!important}}
svg text[font-family="Plus Jakarta Sans"]{font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif}
svg text[font-family="JetBrains Mono"]{font-family:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace}
header .mt-14:has(>p:only-child){display:none}
.overflow-x-auto>table th:first-child,.overflow-x-auto>table td:first-child{position:sticky;left:0;background:var(--surface-card,#fff);z-index:1}
html.dark .overflow-x-auto>table th:first-child,html.dark .overflow-x-auto>table td:first-child{background:#15242f}
@media (max-width:767px){.overflow-x-auto:has(>table){-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}}
p.text-\[3rem\] .font-data{white-space:nowrap;font-size:clamp(2rem,10vw,3rem)}
.justify-between.font-data.text-\[0\.66rem\]{gap:.75rem}
input.roi-range{height:28px;background:transparent}
input.roi-range::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:#0a7e8c40}
input.roi-range::-moz-range-track{height:6px;border-radius:999px;background:#0a7e8c40}
html.dark input.roi-range::-webkit-slider-runnable-track{background:#eaf1f433}
html.dark input.roi-range::-moz-range-track{background:#eaf1f433}
input.roi-range::-webkit-slider-thumb{width:24px;height:24px;margin-top:-9px}
@media (max-width:767px){footer button.block{padding-block:10px}button.px-3.py-1\.5{min-height:40px}}
/* Contrast */
.text-white\/35,.text-white\/45{color:rgba(255,255,255,.7)!important}
p.text-lg.text-white\/55,p.text-white\/55{color:rgba(255,255,255,.74)!important}
p.text-white\/85.text-sm{color:#fff!important}
span.text-2xl.font-data[style*="145, 197, 203"]{color:#0a7e8c!important}
html.dark span.text-2xl.font-data[style*="145, 197, 203"]{color:#5fc4cf!important}
html:not(.dark) .hover\:underline,html:not(.dark) a.text-\[0\.78rem\]{color:#08707c}
html.dark :where(a,button,[tabindex]):focus-visible{outline-color:#4fc3cf}

/* Visual / a11y QA pass 2 (27 Nov 2026) - appends to qa_27nov.css, no overlap */

/* 1. Discovery-programme stats: "<= 15 min" clipped at 390px (col too narrow for nowrap mono at 10vw) */
@media (max-width:639px){
  .grid.grid-cols-2.lg\:grid-cols-4.gap-10{column-gap:1rem}
  p.text-\[3rem\] .font-data{font-size:clamp(1.6rem,8.2vw,3rem)}
}

/* 2. Pricing "Recommended for ship managers" / "Limited places" pill wrapped to 2 lines and covered the tier name */
.relative.rounded-2xl>.absolute.-top-3\.5.left-1\/2{white-space:nowrap;max-width:calc(100% - 1.5rem);overflow:hidden;text-overflow:ellipsis}

/* 3. Knowledge cards: type pill (WHITEPAPER / GUIDE ...) stretched to full card width */
.card-rise.flex-col>span.rounded-full.font-data{align-self:flex-start}

/* 4. Mini-chart legends: end labels wrapped ("GROUP / A") */
.justify-between.font-data.text-\[0\.66rem\]>span:first-child,
.justify-between.font-data.text-\[0\.66rem\]>span:last-child{white-space:nowrap}
.justify-between.font-data.text-\[0\.66rem\]>span:nth-child(2):not(:last-child){text-align:center}

/* 5. Footer legal row: "Cookie settings" / "Book a demo" broke over two lines at 390px; 20px-tall tap targets */
footer .flex.items-center.gap-5{flex-wrap:wrap;column-gap:1.25rem;row-gap:.25rem}
footer .flex.items-center.gap-5>button{white-space:nowrap}
@media (max-width:767px){footer .flex.items-center.gap-5>button{padding-block:10px}}

/* 6. Closing CTA band: stacked buttons had mismatched widths on mobile */
@media (max-width:639px){
  .mt-10.flex.flex-col.sm\:flex-row.items-center.justify-center.gap-3>:is(a,button){width:100%;max-width:20rem;justify-content:center}
}

/* 7. Security & compliance badges: third badge orphaned on its own row when there is room for three */
@media (min-width:640px){
  .grid.grid-cols-2.gap-3.flex-shrink-0:has(>:nth-child(3):last-child){grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* 8. Modal close (x): 20x20 hit area and ~2:1 icon contrast */
button.absolute.top-4.right-4{padding:10px;margin:-10px;border-radius:10px}
button.absolute.top-4.right-4.text-deep-slate\/35{color:rgba(26,43,60,.65)}
html.dark button.absolute.top-4.right-4.text-deep-slate\/35{color:rgba(234,241,244,.7)}

/* 9. Form fields had no visible keyboard focus (outline transparent, no ring) */
:is(input,select,textarea):not([type=range]):not([type=checkbox]):not([type=radio]):focus-visible{outline:2px solid #0a7e8c!important;outline-offset:1px}
html.dark :is(input,select,textarea):not([type=range]):not([type=checkbox]):not([type=radio]):focus-visible{outline-color:#4fc3cf!important}

/* 10. ROI sliders: qa_27nov's input.roi-range rules lose to input[type=range].roi-range, so the 6px-tall
       input / 18px thumb stayed. Re-assert with enough specificity. */
input[type=range].roi-range.roi-range{height:28px;background:transparent}
input[type=range].roi-range.roi-range::-webkit-slider-thumb{width:22px;height:22px;margin-top:-8px}
input[type=range].roi-range.roi-range::-moz-range-thumb{width:16px;height:16px}

/* 11. Contrast (axe color-contrast failures) */
/* 11a. Home "one hire, end to end" dimmed steps: ink-72 text at .85 opacity = 4.1:1 */
html:not(.dark) ol.lg\:grid-cols-4>li [style*="color: var(--ink-72)"]{color:rgba(26,43,60,.88)!important}
/* 11b. Ship-managers rotation timeline labels (green 3.4:1 on white, teal 3.3:1 on dark) */
html:not(.dark) span.font-data.md\:block[style*="10, 158, 124"]{color:#077a5f!important}
html.dark span.font-data.md\:block[style*="10, 126, 140"]{color:#5fc4cf!important}
html.dark span.font-data.md\:block[style*="10, 158, 124"]{color:#4fcfa8!important}
/* 11c. Crewing talent-pool rank filter chips (3.3:1) */
span.px-3.py-1\.5.rounded-full.text-\[0\.78rem\][style*="var(--ink-55)"]{color:var(--ink-72)!important}
/* 11d. Light --teal-ink (#0a7e8c) is only 4.0-4.2:1 on the teal/sand tints it sits on (candidate initials,
        "TIDE ADVISOR" pill, /product "Browse by solution" button...). Nudge the token, not each use: 4.6-5.5:1 */
html:root:not(.dark){--teal-ink:#087482}
/* Crewing STRONG fit badges (2.9:1 light, 4.1:1 dark) and MODERATE badges (2.3:1 light) */
html:not(.dark) span.text-\[0\.68rem\].rounded-md[style*="10, 158, 124"]{color:#066b54!important}
html.dark span.text-\[0\.68rem\].rounded-md[style*="10, 158, 124"]{color:#4fcfa8!important}
html:not(.dark) span.text-\[0\.68rem\].rounded-md[style*="212, 148, 10"]{color:#8a5d00!important}
/* 11e. Home advisor quote: credentials line at ink-72 x .85 opacity (4.1:1) */
html:not(.dark) figcaption span[style*="var(--ink-72)"][style*="opacity: 0.85"]{opacity:1!important}
/* 11f. Knowledge related-reading "GATED" tag (2.6:1 light, 3.9:1 dark) */
span.text-\[0\.6rem\].rounded-full[style*="rgba(26, 43, 60, 0.45)"]{color:rgba(26,43,60,.72)!important}
span.text-\[0\.6rem\].rounded-full[style*="234, 241, 244, 0.51"]{color:rgba(234,241,244,.78)!important}
/* 11g. Dark mode: Scout panel OPEN / DONE status pills used dark ink on teal/grey (2.6:1) */
html.dark span.rounded-full.px-2.py-0\.5[style*="color: var(--on-ink)"]:not([style*="amber"]){color:#fff!important}

/* 12. Dark mode: inverted product-mock SVGs turned the dark window title bar light grey */
html.dark svg:has(>rect:first-child[fill="#F8F6F1"])>rect[width="240"][height="26"][fill="#1A2B3C"]{fill:#e4ebef}
html.dark svg:has(>rect:first-child[fill="#F8F6F1"])>text[fill="#fff"][opacity="0.6"]{fill:#1a2b3c}

/* 13. Dark mode: "one hire, end to end" step cards lost their outline (dark-ink border on dark bg) */
html.dark ol.lg\:grid-cols-4>li[style*="rgba(26, 43, 60, 0.08)"]{border-color:rgba(234,241,244,.1)!important}
#hero{background:linear-gradient(180deg,#1a2b3c 0%,#172836 70%,#14303f 100%)!important}#hero::before,#hero::after{display:none!important}
#hero>div.rounded-full[class*="blur-["]{display:none!important}#hero>div.absolute.bottom-0::after{display:none!important}
@media(max-width:1023px){#hero .grid>div.hidden{display:block!important;margin:8px 0 0;padding:0 14px}#hero .float-slow{animation:none!important}}
