/* Only Cells site look (25 Oct 2026 uplift): the header, menus, display settings, background and footer
   on every page. Everything is scoped to .ocx- classes so the tools, the Library and the Morphology Monthly
   cases inside the page are not touched. Header and footer are always navy; menus follow light/dark. */
@font-face{font-family:"Manrope";font-style:normal;font-weight:200 800;font-display:swap;src:url(/assets/fonts/Manrope.woff2) format("woff2")}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:200 800;font-display:swap;src:url(/assets/fonts/PlusJakartaSans.woff2) format("woff2")}
:root{
  --ocx-navy:#001a4e; --ocx-navy-2:#000d2b; --ocx-cyan:#22d3ee; --ocx-on:#ffffff; --ocx-on-muted:#cdd7ea;
  --ocx-surface:#ffffff; --ocx-surface-2:#eef2f8; --ocx-ink:#001a4e; --ocx-text:#24304a; --ocx-muted:#4f5b75; --ocx-line:#d9e0ec; --ocx-accent:#0b6b85;
  --ocx-font:"Manrope",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; --ocx-display:"Plus Jakarta Sans","Manrope",ui-sans-serif,system-ui,sans-serif;
  scroll-padding-top:84px;
}
:root[data-theme="dark"]{
  --ocx-surface:#0f1730; --ocx-surface-2:#141e3b; --ocx-ink:#f1f5ff; --ocx-text:#d3dbec; --ocx-muted:#a3afc8; --ocx-line:#26314f; --ocx-accent:#67e8f9;
}
/* the page colours the old header used to set (body classes are fixed in the static pages) */
:root[data-theme="dark"] body.ocx-body{background-color:#484848;color:#f5f5f5}
[hidden].ocx-h,.ocx-top [hidden],.ocx-foot [hidden]{display:none!important}
.ocx-top{display:contents}
.ocx-top,.ocx-top *,.ocx-foot,.ocx-foot *{box-sizing:border-box}
.ocx-head,.ocx-sheet,.ocx-foot,.ocx-skip{font-family:var(--ocx-font);-webkit-font-smoothing:antialiased;line-height:1.5;letter-spacing:0}
.ocx-head svg,.ocx-sheet svg,.ocx-foot svg{display:block;flex:none}
.ocx-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;padding:0;margin:-1px}
.ocx-skip{position:fixed;left:12px;top:-80px;z-index:200;background:#fff;color:var(--ocx-navy);padding:10px 16px;border-radius:10px;font-weight:800;font-size:16px;text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.ocx-skip:focus{top:12px;outline:3px solid var(--ocx-cyan);outline-offset:2px}
#ocxMain{display:block;height:0;outline:none}

/* background: wavy contours and floating lab gear (both themes) */
.ocx-bg{pointer-events:none;position:fixed;inset:0;z-index:0;overflow:hidden}
.ocx-bg svg,.ocx-bg canvas{position:absolute;inset:0;width:100%;height:100%;user-select:none}
#ocxWaves{color:#001a4e}
:root[data-theme="dark"] #ocxWaves{color:#fff}
html.ocx-nowaves #ocxWaves,html.ocx-nofloat #ocxFloat{display:none}

/* header */
.ocx-head{position:sticky;top:0;z-index:110;width:100%;background:rgba(0,26,78,.96);color:#fff;border-bottom:1px solid rgba(255,255,255,.1);box-shadow:0 6px 18px -12px rgba(0,0,0,.5)}
@supports (backdrop-filter:blur(1px)){.ocx-head{background:rgba(0,26,78,.9);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px)}}
:root[data-theme="dark"] .ocx-head{background:rgba(2,8,33,.94)}
.ocx-wrap{position:relative;max-width:1280px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
@media (min-width:640px){.ocx-wrap{padding-left:max(24px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px))}}
.ocx-bar{display:flex;align-items:center;gap:16px;height:68px}
.ocx-head a,.ocx-sheet a,.ocx-foot a{color:inherit}
.ocx-head :focus-visible,.ocx-sheet :focus-visible,.ocx-foot :focus-visible{outline:3px solid var(--ocx-cyan);outline-offset:2px;border-radius:8px}
.ocx-pop :focus-visible{outline-color:var(--ocx-accent)}
.ocx-logo{display:flex;align-items:center;flex:none;border-radius:8px}
.ocx-logo img{display:block;height:38px;width:auto}
.ocx-nav{display:flex;gap:2px;margin-left:6px}
.ocx-nav a{position:relative;text-decoration:none;color:#dbe4f5;font-weight:700;font-size:15px;padding:10px 12px;border-radius:10px;white-space:nowrap}
.ocx-nav a:hover{color:#fff;background:rgba(255,255,255,.08)}
.ocx-nav a[aria-current="page"]{color:#fff}
.ocx-nav a[aria-current="page"]::after{content:"";position:absolute;left:12px;right:12px;bottom:3px;height:3px;border-radius:3px;background:var(--ocx-cyan)}
.ocx-act{margin-left:auto;display:flex;align-items:center;gap:8px}
.ocx-ib{position:relative;width:44px;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.06);color:#fff;display:grid;place-items:center;cursor:pointer;padding:0;font:inherit;text-decoration:none}
.ocx-ib:hover,.ocx-ib[aria-expanded="true"]{background:rgba(255,255,255,.16)}
.ocx-ib svg{width:20px;height:20px}
.ocx-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--ocx-cyan);color:var(--ocx-navy);font:800 12px/20px var(--ocx-font);text-align:center;box-shadow:0 0 0 2px var(--ocx-navy)}
.ocx-theme .ocx-sun{display:none} :root[data-theme="dark"] .ocx-theme .ocx-sun{display:block} :root[data-theme="dark"] .ocx-theme .ocx-moon{display:none}
.ocx-signin{display:inline-flex;align-items:center;height:44px;padding:0 18px;border-radius:999px;background:#fff;color:var(--ocx-navy)!important;font-weight:800;text-decoration:none;font-size:15px;white-space:nowrap}
.ocx-signin:hover{background:#e6fbff}
.ocx-me{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 12px 0 4px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.24);color:#fff;font:inherit;font-weight:700;font-size:15px;cursor:pointer;max-width:240px}
.ocx-me:hover,.ocx-me[aria-expanded="true"]{background:rgba(255,255,255,.18)}
.ocx-av{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:16px;color:var(--ocx-navy);background:linear-gradient(135deg,#67e8f9,#a5b4fc);flex:none;font-family:var(--ocx-display)}
.ocx-av svg{width:20px;height:20px}
.ocx-hi{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ocx-me>svg{width:16px;height:16px}
.ocx-burger{display:none}
@media (max-width:1023px){.ocx-nav{display:none}.ocx-burger{display:grid}.ocx-act .ocx-wide{display:none}}
@media (max-width:640px){.ocx-hi{display:none}.ocx-me{padding:0 4px;gap:0}.ocx-me>svg{display:none}.ocx-signin{padding:0 14px}.ocx-bar{gap:10px}.ocx-act{gap:6px}.ocx-logo img{height:34px}}
@media (max-width:359px){.ocx-logo img{height:28px}}

/* pop-up panels: search, display settings, account */
.ocx-pop{position:absolute;right:max(16px,env(safe-area-inset-right,0px));top:64px;width:320px;max-width:calc(100vw - 24px);background:var(--ocx-surface);color:var(--ocx-text);border:1px solid var(--ocx-line);border-radius:18px;box-shadow:0 30px 60px -20px rgba(0,0,0,.45);padding:10px;z-index:120}
.ocx-pop h2{font-family:var(--ocx-display);font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--ocx-accent);margin:6px 10px 6px}
.ocx-pop-hello{padding:10px 12px 12px;border-bottom:1px solid var(--ocx-line);margin-bottom:6px}
.ocx-pop-hello b{display:block;font-family:var(--ocx-display);font-size:19px;font-weight:800;color:var(--ocx-ink);line-height:1.25}
.ocx-pop-hello span{font-size:14px;color:var(--ocx-muted)}
.ocx-pop ul{list-style:none;margin:0;padding:0}
.ocx-pop li a{display:flex;align-items:center;min-height:44px;padding:8px 12px;border-radius:10px;text-decoration:none;font-weight:600;font-size:15px;color:var(--ocx-ink)}
.ocx-pop li a:hover{background:var(--ocx-surface-2)}
.ocx-pop hr{border:0;border-top:1px solid var(--ocx-line);margin:6px 0}
.ocx-find{display:flex;gap:8px;padding:4px}
.ocx-find input{flex:1;min-width:0;height:46px;border-radius:999px;border:1px solid var(--ocx-line);background:var(--ocx-surface);color:var(--ocx-ink);padding:0 16px;font:inherit;font-size:16px}
.ocx-find input::placeholder{color:var(--ocx-muted);opacity:1}
.ocx-find button{height:46px;border:0;border-radius:999px;background:var(--ocx-navy);color:#fff;font:inherit;font-weight:800;padding:0 18px;cursor:pointer}
:root[data-theme="dark"] .ocx-find button{background:var(--ocx-cyan);color:var(--ocx-navy)}
.ocx-pop .ocx-note{font-size:13px;color:var(--ocx-muted);margin:6px 10px 4px}

/* display settings rows (in the pop-up and in the phone menu) */
.ocx-set{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:6px 10px;border-top:1px solid var(--ocx-line);font-size:15px}
.ocx-set:first-of-type{border-top:0}
.ocx-set b{display:block;font-weight:700;color:var(--ocx-ink)}
.ocx-set small{display:block;font-size:13px;color:var(--ocx-muted);line-height:1.35}
/* "Match my device" under Dark theme (11 Nov 2026) */
.ocx-tdev{display:inline-block;min-height:24px;padding:2px 0;margin:0;border:0;background:none;font:inherit;font-weight:700;color:var(--ocx-ink);text-decoration:underline;text-underline-offset:2px;cursor:pointer}
.ocx-tdev:hover{text-decoration-thickness:2px}
.ocx-sw{position:relative;flex:none;width:52px;height:30px;border-radius:999px;border:2px solid var(--ocx-muted);background:transparent;cursor:pointer;padding:0}
.ocx-sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--ocx-muted);transition:transform .15s}
.ocx-sw[aria-checked="true"]{background:var(--ocx-accent);border-color:var(--ocx-accent)}
.ocx-sw[aria-checked="true"]::after{transform:translateX(22px);background:#fff}
:root[data-theme="dark"] .ocx-sw[aria-checked="true"]::after{background:var(--ocx-navy)}
.ocx-size{display:flex;align-items:center;gap:6px}
.ocx-size button{width:44px;height:44px;border-radius:12px;border:1px solid var(--ocx-line);background:var(--ocx-surface-2);color:var(--ocx-ink);font:inherit;font-weight:800;cursor:pointer}
.ocx-size button:disabled{opacity:.45;cursor:default}
.ocx-size output{min-width:48px;text-align:center;font-weight:700;color:var(--ocx-ink);font-variant-numeric:tabular-nums}

/* phone menu */
.ocx-sheet{position:fixed;inset:0;z-index:130;background:rgba(0,8,30,.6);display:flex;justify-content:flex-end}
.ocx-sheet-in{width:min(420px,100%);height:100%;background:linear-gradient(180deg,#001a4e,#000d2b);color:#fff;padding:14px max(16px,env(safe-area-inset-right,0px)) 24px 16px;display:flex;flex-direction:column;gap:14px;overflow:auto;overscroll-behavior:contain}
.ocx-sheet-top{display:flex;justify-content:space-between;align-items:center}
.ocx-sheet-top img{height:34px;width:auto}
.ocx-sheet-hello{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:16px;padding:12px 14px;display:flex;gap:12px;align-items:center}
.ocx-sheet-hello .ocx-av{width:44px;height:44px;font-size:18px}
.ocx-sheet-hello b{display:block;font-family:var(--ocx-display);font-size:18px;font-weight:800;line-height:1.25}
.ocx-sheet-hello div span{font-size:14px;color:var(--ocx-on-muted)}
.ocx-sheet .ocx-find{padding:0;background:#fff;border-radius:999px;padding:4px}
.ocx-sheet .ocx-find input{border:0;height:42px;background:transparent;color:var(--ocx-navy)}
.ocx-sheet .ocx-find input::placeholder{color:#4f5b75}
.ocx-sheet .ocx-find button{height:42px;background:var(--ocx-navy);color:#fff}
.ocx-sheet nav ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.ocx-sheet nav a{display:flex;gap:14px;align-items:center;padding:10px;border-radius:14px;text-decoration:none}
.ocx-sheet nav a:hover,.ocx-sheet nav a[aria-current="page"]{background:rgba(255,255,255,.09)}
.ocx-sheet nav i{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.2);flex:none;font-style:normal}
.ocx-sheet nav i svg{width:22px;height:22px}
.ocx-sheet nav b{display:block;font-size:17px;font-weight:700;line-height:1.3}
.ocx-sheet nav span{display:block;font-size:14px;color:var(--ocx-on-muted);line-height:1.35}
.ocx-sheet details{border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(255,255,255,.04)}
.ocx-sheet summary{cursor:pointer;min-height:48px;display:flex;align-items:center;padding:0 14px;font-weight:700;font-size:16px;list-style:none}
.ocx-sheet summary::-webkit-details-marker{display:none}
.ocx-sheet summary::after{content:"+";margin-left:auto;font-size:22px;font-weight:400}
.ocx-sheet details[open] summary::after{content:"−"}
.ocx-sheet .ocx-sets{--ocx-ink:#fff;--ocx-muted:#cdd7ea;--ocx-line:rgba(255,255,255,.14);--ocx-accent:#22d3ee;--ocx-surface-2:rgba(255,255,255,.08);padding:0 4px 6px}
.ocx-sheet .ocx-sw[aria-checked="true"]::after{background:var(--ocx-navy)}
.ocx-sheet-foot{margin-top:auto;display:flex;gap:8px;flex-wrap:wrap}
.ocx-sheet-foot a{flex:1;display:flex;align-items:center;justify-content:center;min-height:48px;border-radius:999px;padding:0 16px;font-weight:800;text-decoration:none;border:1px solid rgba(255,255,255,.3);color:#fff}
.ocx-sheet-foot a.ocx-solid{background:#fff;color:var(--ocx-navy)!important;border-color:#fff}

/* slim title band above each tool: breadcrumb, icon and lab area */
.ocx-band{position:relative;z-index:10;background:rgba(255,255,255,.92);border-bottom:1px solid var(--ocx-line);font-family:var(--ocx-font);color:var(--ocx-text)}
:root[data-theme="dark"] .ocx-band{background:rgba(15,23,48,.94)}
.ocx-band-in{display:flex;align-items:center;gap:12px;min-height:56px;padding-top:8px;padding-bottom:8px;flex-wrap:wrap}
.ocx-a-h{--ocx-c:#7c3aed}.ocx-a-t{--ocx-c:#dc2626}.ocx-a-m{--ocx-c:#0d9488}.ocx-a-b{--ocx-c:#2563eb}
:root[data-theme="dark"] .ocx-a-h{--ocx-c:#a78bfa}:root[data-theme="dark"] .ocx-a-t{--ocx-c:#f87171}:root[data-theme="dark"] .ocx-a-m{--ocx-c:#2dd4bf}:root[data-theme="dark"] .ocx-a-b{--ocx-c:#60a5fa}
.ocx-band-ic{flex:none;width:38px;height:38px;border:2px solid var(--ocx-c);border-radius:10px;display:grid;place-items:center;color:var(--ocx-ink)}
.ocx-band-ic svg{display:block;width:22px;height:22px}
.ocx-crumbs{min-width:0;flex:1 1 260px}
.ocx-crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:2px 0;font-size:15px}
.ocx-crumbs li{display:flex;align-items:center;min-width:0}
.ocx-crumbs li+li::before{content:"/";margin:0 10px;color:var(--ocx-muted)}
.ocx-crumbs a{color:var(--ocx-muted);text-decoration:none;font-weight:600;min-height:32px;display:inline-flex;align-items:center}
.ocx-crumbs a:hover{color:var(--ocx-ink);text-decoration:underline}
.ocx-crumbs a:focus-visible{outline:3px solid var(--ocx-accent);outline-offset:2px;border-radius:6px}
.ocx-crumbs [aria-current]{color:var(--ocx-ink);font-weight:800}
.ocx-band-area{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--ocx-muted);white-space:nowrap}
.ocx-band-dot{width:10px;height:10px;border-radius:50%;background:var(--ocx-c)}
@media (max-width:640px){.ocx-band-area{display:none}.ocx-crumbs ol{font-size:14px}}

/* navy title band on tool pages, matching the toolkit page (P6, 5 Nov 2026). Not used by the barcode generator. */
.ocx-tband{background:radial-gradient(70% 120% at 88% 10%,#0b3a8a 0%,#001a4e 55%,#000d2b 100%);border-bottom:0;color:#fff;padding:18px 0 34px}
:root[data-theme="dark"] .ocx-tband{background:radial-gradient(70% 120% at 88% 10%,#0b2a66 0%,#020821 60%,#010514 100%);border-bottom:1px solid #26314f}
.ocx-tband .ocx-crumbs ol{font-size:14px}
.ocx-tband .ocx-crumbs li+li::before{color:rgba(255,255,255,.45)}
.ocx-tband .ocx-crumbs a{color:#cdd7ea}
.ocx-tband .ocx-crumbs a:hover{color:#fff}
.ocx-tband .ocx-crumbs a:focus-visible{outline-color:#22d3ee}
.ocx-tband .ocx-crumbs [aria-current]{color:#fff}
.ocx-tband-row{display:flex;align-items:flex-start;gap:18px;margin-top:14px}
.ocx-tband .ocx-band-ic{width:60px;height:60px;border-radius:16px;border:2px solid rgba(255,255,255,.28);background:rgba(255,255,255,.06);color:#fff;margin-top:4px}
.ocx-tband .ocx-band-ic svg{width:32px;height:32px}
.ocx-tband-txt{min-width:0;flex:1}
.ocx-tband .ocx-band-area{display:inline-flex;color:#a5f3fc;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;white-space:normal}
.ocx-tband .ocx-a-h{--ocx-c:#c4b5fd}.ocx-tband .ocx-a-t{--ocx-c:#fca5a5}.ocx-tband .ocx-a-m{--ocx-c:#5eead4}.ocx-tband .ocx-a-b{--ocx-c:#93c5fd}
.ocx-tband-title{margin:8px 0 0;font-family:var(--ocx-display);font-weight:800;font-size:clamp(28px,4.2vw,46px);line-height:1.08;letter-spacing:-.03em;color:#fff;overflow-wrap:anywhere}
.ocx-tband-lead{margin:10px 0 0;max-width:68ch;font-size:17px;line-height:1.55;color:#cdd7ea}
@media (max-width:640px){.ocx-tband{padding:14px 0 26px}.ocx-tband-row{gap:12px}.ocx-tband .ocx-band-ic{width:44px;height:44px;border-radius:12px}.ocx-tband .ocx-band-ic svg{width:24px;height:24px}.ocx-tband .ocx-crumbs li:last-child{display:none}.ocx-tband-lead{font-size:16px}}
/* the page's own heading, description and back link: kept for screen readers, hidden from view, as the band shows them */
html.ocx-tool main h1,html.ocx-tool main h1+p,html.ocx-tool main div:has(>h1):not(:has(>:not(h1,p))),html.ocx-tool main .lt-head:has(>.lt-icon+div>h1){position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;margin:0!important;padding:0!important;border:0!important}
html.ocx-tool main div.justify-between:has(>div>h1:first-child){justify-content:flex-end;align-items:flex-end}
html.ocx-tool main #ocBackLink,html.ocx-tool main div.mb-6.border-b:has(>a[href="/toolkit"]:only-child){display:none!important}
/* smallest print in the tools raised to 12px so labels stay readable */
html.ocx-tool main .text-\[10px\],html.ocx-tool main .text-\[11px\]{font-size:12px!important}

/* footer */
.ocx-foot{position:relative;z-index:10;margin-top:64px;background:var(--ocx-navy);color:var(--ocx-on-muted);font-size:15px}
:root[data-theme="dark"] .ocx-foot{background:#020821;border-top:1px solid #26314f}
.ocx-fgrid{padding-top:44px;padding-bottom:24px;display:grid;grid-template-columns:minmax(0,1.6fr) repeat(4,minmax(0,1fr));gap:28px}
.ocx-foot img{display:block;height:38px;width:auto;margin-bottom:12px}
.ocx-foot p{margin:0;max-width:34ch;line-height:1.55}
.ocx-foot h2{font-family:var(--ocx-display);color:#fff;font-size:15px;font-weight:800;letter-spacing:0;margin:0 0 10px;line-height:1.3}
.ocx-foot ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.ocx-foot li a{display:inline-flex;align-items:center;min-height:32px;color:#e7edf9;text-decoration:none}
.ocx-foot a:hover{text-decoration:underline;color:#fff}
.ocx-legal{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.14);padding-top:16px;display:flex;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;font-size:14px}
.ocx-legal>span:last-child{display:flex;gap:8px 20px;flex-wrap:wrap}
.ocx-legal a{color:#e7edf9;min-height:32px;display:inline-flex;align-items:center}
@media (max-width:900px){.ocx-fgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.ocx-fbrand{grid-column:1/-1}}
@media (max-width:380px){.ocx-fgrid{grid-template-columns:minmax(0,1fr)}}

@media (prefers-reduced-motion:reduce){.ocx-top *,.ocx-foot *{transition:none!important;animation:none!important}}
@media print{.ocx-top,.ocx-foot{display:none!important}}
@media (forced-colors:active){.ocx-sw[aria-checked="true"]::after{background:CanvasText}.ocx-sw::after{background:CanvasText}.ocx-badge{border:1px solid CanvasText}}

/* Stage 8 accessibility audit (27 Oct 2026): text in the tools that was too pale on light backgrounds (WCAG 2.2, 4.5:1),
   in light mode only; dark mode already passes. Colours only; nothing moves. */
:root:not([data-theme="dark"]) main :is(.text-neutral-400,.text-neutral-300){color:#666}
:root:not([data-theme="dark"]) main .text-neutral-500{color:#5c5c5c}
:root:not([data-theme="dark"]) main :is(.text-cyan-600,.text-cyan-500,.text-cyan-400,.text-cyan-300){color:#0e6a80}
:root:not([data-theme="dark"]) main :is(.text-red-500,.text-red-600,.text-red-400){color:#b91c1c}
:root:not([data-theme="dark"]) main :is(.text-amber-500,.text-amber-400,.text-amber-300,.text-yellow-500){color:#92400e}
:root:not([data-theme="dark"]) main :is(.text-purple-500,.text-purple-400,.text-purple-300){color:#6b21a8}
main .bg-cyan-600.text-white{background-color:#0e6a80}
:root:not([data-theme="dark"]) main :is(.text-emerald-400,.text-emerald-500,.text-green-500){color:#047857}
[data-theme="dark"] main .text-neutral-500{color:#a3a3a3}
[data-theme="dark"] main .text-red-500{color:#f87171}
[data-theme="dark"] main .text-purple-500{color:#c084fc}
/* links inside a sentence are underlined, so they don't rely on colour alone */
main p > a:not([class]), .ocx-lead a, .ocg-lead a{text-decoration:underline;text-underline-offset:2px}
main [role="region"][tabindex="0"]:focus-visible{outline:3px solid #0e7490;outline-offset:2px}
/* a number box and its unit side by side shrink to fit a 320 px wide screen (reflow) */
main .flex > input:not([type=checkbox]):not([type=radio]){min-width:0}
/* light/dark fade (26 Oct 2026): oc-site.js uses a page cross-fade where the browser has one, otherwise .ocx-themefade eases the colours */
::view-transition-old(root),::view-transition-new(root){animation-duration:.35s;animation-timing-function:ease}
html.ocx-themefade,html.ocx-themefade *,html.ocx-themefade *::before,html.ocx-themefade *::after{transition:background-color .35s ease,color .35s ease,border-color .35s ease,fill .35s ease,stroke .35s ease,box-shadow .35s ease!important}
/* pictures fade in as they load, over a soft placeholder the shape of the picture (26 Oct 2026); oc-site.js adds .ocx-imgwait until the picture arrives */
img.ocx-imgwait{opacity:0;background-color:rgba(120,130,150,.16)}
img.ocx-imgin{transition:opacity .4s ease}
@media (prefers-reduced-motion: reduce){img.ocx-imgin{transition:none}}
/* sign in without leaving the page (28 Oct 2026): the small box under the header that oc-site.js opens from Sign in */
.ocx-login{width:340px;padding:14px 16px 12px}
.ocx-login-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ocx-login h2{margin:2px 0}
.ocx-login .ocx-login-x{width:40px;height:40px;border:0;border-radius:999px;background:transparent;color:var(--ocx-ink);font-size:24px;line-height:1;cursor:pointer}
.ocx-login .ocx-login-x:hover{background:var(--ocx-surface-2)}
.ocx-login-sub{margin:0 0 10px;font-size:13.5px;color:var(--ocx-muted)}
.ocx-login-f{display:flex;flex-direction:column;gap:6px;margin:0}
.ocx-login-f label{font-size:14px;font-weight:700;color:var(--ocx-ink);margin-top:4px}
.ocx-login-f input{height:46px;border-radius:12px;border:1px solid var(--ocx-line);background:var(--ocx-surface);color:var(--ocx-ink);padding:0 14px;font:inherit;font-size:16px;width:100%;min-width:0;box-sizing:border-box}
.ocx-login-f input:focus-visible{outline:3px solid var(--ocx-accent);outline-offset:1px}
.ocx-login-pw{display:flex;gap:6px}
.ocx-login-pw input{flex:1}
.ocx-login .ocx-login-eye{flex:none;height:46px;padding:0 12px;border:1px solid var(--ocx-line);border-radius:12px;background:var(--ocx-surface-2);color:var(--ocx-ink);font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.ocx-login .ocx-login-go{margin-top:10px;height:48px;border:0;border-radius:999px;background:var(--ocx-navy);color:#fff;font:inherit;font-size:16px;font-weight:800;cursor:pointer}
:root[data-theme="dark"] .ocx-login .ocx-login-go{background:var(--ocx-cyan);color:var(--ocx-navy)}
.ocx-login .ocx-login-go:disabled{opacity:.7;cursor:progress}
.ocx-login-err{margin:6px 0 0;padding:8px 10px;border-radius:10px;background:#fdecec;color:#8f1d1d;font-size:14px}
:root[data-theme="dark"] .ocx-login-err{background:#3b1520;color:#ffc9c9}
.ocx-login-err a,.ocx-login-links a{color:var(--ocx-accent);font-weight:700}
.ocx-login-ok{margin:6px 0;padding:12px;border-radius:12px;background:#e3f6ea;color:#14532d;font-weight:700}
:root[data-theme="dark"] .ocx-login-ok{background:#10331f;color:#b7f0c8}
.ocx-login-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 14px;margin:12px 0 2px;font-size:14px}
@media (max-width:420px){.ocx-login{left:12px;right:12px;width:auto}}

/* Reduce motion (9 Nov 2026, Anas: "Add an option to reduce motion for accessibility purposes"). Display settings ›
   Reduce motion puts .ocx-still on <html> (a small script at the top of each page sets it before anything draws, so
   there is no flash). It follows the device's own "reduce motion" setting until the visitor chooses (oc-motion).
   Animations and transitions finish at once (a hair over zero so "animation ended" events still fire), smooth
   scrolling jumps, and the floating lab gear is drawn still. Nothing is hidden and no colours change. */
html.ocx-still,html.ocx-still *{scroll-behavior:auto!important}
html.ocx-still *,html.ocx-still *::before,html.ocx-still *::after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important}
html.ocx-still::view-transition-group(*),html.ocx-still::view-transition-old(*),html.ocx-still::view-transition-new(*){animation:none!important}
/* Courses in the main menu (14 Nov 2026): eight links fit on one line from 1024px with the account button as a round
   initial (as on phones; its name stays in aria-label) and slightly tighter links up to 1199px. Only headers that carry
   the Courses link, so the barcode generator page keeps its header exactly as it was. */
@media (min-width:1024px) and (max-width:1199px){#ocxTop:has(.ocx-nav [data-ocx-nav="courses"]) .ocx-nav a{padding:10px 9px}#ocxTop:has(.ocx-nav [data-ocx-nav="courses"]) .ocx-hi{display:none}#ocxTop:has(.ocx-nav [data-ocx-nav="courses"]) .ocx-me{padding:0 4px;gap:0}#ocxTop:has(.ocx-nav [data-ocx-nav="courses"]) .ocx-me>svg{display:none}}

/* Tool pages in light mode: no dark or grey flash (18 Nov 2026, 2.172). Each toolkit tool first draws its card dark
   (the saved page and the tool's first draw), then switches to light, with a 0.2 s fade that showed grey. Until
   oc-site.js sees the light card (html.ocx-tr), the dark card is hidden and nothing in main fades. Safety: shown after 3 s. */
html[data-theme="light"]:not(.ocx-tr) main div.rounded-2xl[class*="bg-[#333333]/90"],
html[data-theme="light"]:not(.ocx-tr) main div[class*="bg-[#282828]/80"] { visibility: hidden; animation: ocxShow 0s 3s forwards; }
html[data-theme="light"]:not(.ocx-tr) main, html[data-theme="light"]:not(.ocx-tr) main * { transition: none !important; }
@keyframes ocxShow { to { visibility: visible; } }

/* 20 Nov 2026 (accessibility re-test): long tags, links and tables in posts (only) no longer make phones scroll sideways */
main>.max-w-4xl:has(>.mb-6>a[href="/posts"]){min-width:0;width:100%}main>.max-w-4xl:has(>.mb-6>a[href="/posts"]) a,main>.max-w-4xl:has(>.mb-6>a[href="/posts"]) .font-mono{overflow-wrap:anywhere}@media (max-width:640px){main>.max-w-4xl:has(>.mb-6>a[href="/posts"]) table{display:block;max-width:100%;overflow-x:auto}}
