/* LydiaRx site styles, derived from the website v3 prototype */
:root{ --lav:#8C84C8; --navy:#0D2438; --teal:#1F6F78; --lteal:#7CCBD2; --mist:#EEF4F5; --line:#C9D5D9; --ink:#1B262E; --grey:#5B6B74; --bg:#FFFFFF; --gate:#8A4B00; --gate-bg:#FFF4E5; box-sizing:border-box; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]){ --lav:#B8B0EC; --navy:#E3ECF1; --teal:#7CCBD2; --mist:#132B3A; --line:#2F4855; --ink:#E6EEF2; --grey:#A9B8C0; --bg:#0B1A24; --gate:#F3B76A; --gate-bg:#2A2110; } }
:root[data-theme="dark"]{ --lav:#B8B0EC; --navy:#E3ECF1; --teal:#7CCBD2; --mist:#132B3A; --line:#2F4855; --ink:#E6EEF2; --grey:#A9B8C0; --bg:#0B1A24; --gate:#F3B76A; --gate-bg:#2A2110; }
*,*::before,*::after{ box-sizing:inherit; }
html,body{ margin:0; background:var(--bg); color:var(--ink); }
body{ font-family:"Liberation Sans",Arial,Helvetica,sans-serif; font-size:15px; line-height:1.55; }
h1,h2,h3,.serif,.fig{ font-family:"DejaVu Serif",Georgia,"Times New Roman",serif; color:var(--navy); font-weight:700; margin:0; }
h1{ font-size:2.5em; line-height:1.12; letter-spacing:-0.01em; max-width:15em; }
h2{ font-size:1.6em; line-height:1.25; max-width:24em; }
h3{ font-size:1.08em; line-height:1.3; }
p{ margin:0 0 .85em; max-width:68ch; }
a{ color:var(--teal); text-decoration:underline; text-underline-offset:3px; }
a:focus-visible,button:focus-visible{ outline:3px solid var(--teal); outline-offset:2px; }
.lead{ font-size:1.15em; color:var(--grey); max-width:60ch; }
.small{ font-size:.86em; } .muted{ color:var(--grey); }

.wrap{ max-width:1120px; margin:0 auto; padding:0 28px; }
.slate{ background:var(--mist); border-bottom:1px solid var(--line); font-size:.8em; color:var(--grey); }
.slate .wrap{ display:flex; justify-content:space-between; gap:12px; padding:8px 28px; flex-wrap:wrap; }
.chrome{ border-bottom:1px solid var(--line); background:var(--bg); }
.chrome .wrap{ display:flex; align-items:center; justify-content:space-between; padding:16px 28px; gap:16px; flex-wrap:wrap; }
.wordmark{ font-family:"DejaVu Serif",Georgia,serif; font-weight:700; font-size:1.3em; color:var(--navy); text-decoration:none; }
.wordmark span{ color:var(--teal); }
a.wordmark{ font-size:1.8em; }
.nav{ display:flex; gap:22px; flex-wrap:wrap; font-size:.93em; }
.nav a{ white-space:nowrap; color:var(--ink); text-decoration:none; padding:4px 0; border-bottom:2px solid transparent; }
.nav a.on{ color:var(--navy); font-weight:700; border-bottom-color:var(--teal); }
/* Pangenome navigation (Home page trial) */
.chrome.pg .wrap{ flex-wrap:nowrap; padding:12px 28px 10px; gap:40px; }
.pgnav{ position:relative; display:grid; grid-template-columns:repeat(7,1fr); flex:1; max-width:820px; gap:0; font-size:.88em; }
.pg-rail{ position:absolute; left:0; top:0; width:100%; height:40px; overflow:visible; pointer-events:none; color:var(--teal); }
.pgnav a{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; gap:4px; padding:0; border:0; text-align:center; white-space:normal; line-height:1.25; color:var(--ink); }
.pg-n{ height:40px; display:flex; align-items:center; justify-content:center; }
.pg-spine{ stroke:var(--lav); }
.pg-node{ width:15px; height:15px; border-radius:50%; background:var(--bg); border:2.5px solid var(--teal); box-sizing:border-box; transition:transform .15s, background .15s, box-shadow .15s; }
.pgnav a:hover .pg-node, .pgnav a:focus-visible .pg-node{ background:var(--teal); transform:scale(1.2); }
.pgnav a:hover .pg-lbl{ color:var(--teal); }
.pgnav a.on{ border:0; font-weight:700; color:var(--navy); }
.pgnav a.on .pg-node{ width:22px; height:22px; background:var(--teal); box-shadow:0 0 0 5px rgba(31,111,120,.18); }
@media (max-width:860px){ .chrome.pg .wrap{ flex-wrap:wrap; gap:16px; padding:16px 28px; } .pgnav{ display:flex; flex:1 1 100%; flex-wrap:wrap; gap:4px 22px; max-width:none; font-size:.93em; } .pg-rail,.pg-n{ display:none; } .pgnav a{ flex-direction:row; padding:4px 0; border-bottom:2px solid transparent; white-space:nowrap; } .pgnav a.on{ border-bottom-color:var(--teal); } }
.subnav{ background:var(--mist); border-bottom:3px solid var(--teal); font-size:1em; }
.subnav .wrap{ display:flex; gap:8px; padding:16px 28px 0; flex-wrap:wrap; align-items:flex-end; }
.subnav a{ color:var(--ink); text-decoration:none; font-weight:600; padding:12px 22px; background:var(--bg); border:1px solid var(--line); border-bottom:none; border-radius:8px 8px 0 0; box-shadow:0 -2px 6px rgba(13,36,56,.08); transition:color .15s, border-color .15s; }
.subnav a:hover{ color:var(--teal); border-color:var(--teal); }
@media (max-width:600px){ .subnav .wrap{ padding:12px 16px; gap:8px; } .subnav a{ padding:9px 14px; font-size:.92em; border-bottom:1px solid var(--line); border-radius:8px; } .subnav a.on{ border-color:var(--teal); } } .subnav a.on{ font-weight:700; color:var(--bg); background:var(--teal); border-color:var(--teal); }
.hero{ padding:64px 0 40px; }
.hero .wrap{ display:grid; grid-template-columns:1fr; gap:30px; align-items:center; }
.hero.has-gfx .wrap{ grid-template-columns:1.1fr .9fr; }
.hero-gfx{ color:var(--teal); }
/* Home hero map: clickable section strand */
html{ scroll-behavior:smooth; }
.sec[id^="h-"]{ scroll-margin-top:12px; }
.gfx-orig{ width:72%; margin:0 auto 26px; }
.gfx-orig .cap{ text-align:center; }
.heromap .hm-item{ cursor:pointer; }
.heromap .hm-node{ transition:fill .15s, r .15s; }
.heromap .hm-item, .heromap .hm-lbl{ text-decoration:none; }
.heromap .hm-lbl{ transition:fill .15s; }
.heromap .hm-item:hover .hm-node, .heromap .hm-item:focus-visible .hm-node{ fill:#7CCBD2; r:21px; }
.heromap .hm-item:hover .hm-lbl, .heromap .hm-item:focus-visible .hm-lbl{ fill:#FFFFFF; text-decoration:underline; }
.heromap .hm-item:hover .hm-tick{ opacity:1; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
/* Section maps on white banners */
.hm2 .hm-kicker{ fill:var(--teal); }
.hm2 .hm-bub, .hm2 .hm-tick{ stroke:var(--teal); }
.hm2 .hm-dot{ fill:var(--teal); }
.hm2 .hm-node{ fill:var(--bg); stroke:var(--teal); }
.hm2 .hm-lbl{ fill:var(--navy); }
.hm2 .hm-item:hover .hm-node, .hm2 .hm-item:focus-visible .hm-node{ fill:var(--teal); r:21px; }
.hm2 .hm-item:hover .hm-lbl, .hm2 .hm-item:focus-visible .hm-lbl{ fill:var(--teal); text-decoration:underline; }
.sec[id]{ scroll-margin-top:12px; }
@media (max-width:767px){ .hero svg.heromap, .hero .hero-gfx{ display:none; } }
.hero-gfx svg{ display:block; width:100%; height:auto; }
.hero h1{ margin:10px 0 18px; } .hero .lead{ margin-bottom:26px; }
.eyebrow{ font-size:.78em; letter-spacing:.14em; text-transform:uppercase; color:var(--teal); font-weight:700; }
.hero.dark{ background:#0D2438; } .hero.dark h1,.hero.dark .lead{ color:#fff; } .hero.dark .lead{ opacity:.9; } .hero.dark .eyebrow{ color:#7CCBD2; }
.hero.dark .btn{ background:#fff; color:#0D2438; border-color:#fff; } .hero.dark a.link{ color:#fff; }
.hero.dark .cap{ color:#C9D8DF; font-size:.82em; margin-top:8px; }
.btns{ display:flex; gap:22px; align-items:center; flex-wrap:wrap; }
.btn{ display:inline-block; background:var(--navy); color:var(--bg); text-decoration:none; padding:11px 20px; font-weight:700; font-size:.95em; border:2px solid var(--navy); }
.link{ font-weight:700; }
.sec{ padding:52px 0; } .sec.mist{ background:var(--mist); }
.sec .wrap{ display:grid; grid-template-columns:210px 1fr; gap:20px 40px; align-items:start; }
.lab{ font-size:1.24em; line-height:1.3; color:var(--teal); padding-top:4px; }
.lab::after{ content:""; display:block; width:40px; height:2.5px; background:var(--teal); margin-top:10px; }
.body{ min-width:0; } .body>h2{ margin-bottom:14px; }
.stand{ font-size:1.06em; color:var(--grey); max-width:62ch; margin-bottom:22px; }
.gfx{ margin:18px 0 8px; } .gfx svg{ width:100%; height:auto; display:block; }
.cols{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; margin-top:18px; } .cols.two{ grid-template-columns:repeat(2,1fr); } .cols.four{ grid-template-columns:repeat(4,1fr); gap:22px; }
.col{ border-top:2px solid var(--teal); padding-top:14px; } .col .num{ font-family:"DejaVu Serif",Georgia,serif; color:var(--teal); font-size:.82em; letter-spacing:.1em; margin-bottom:6px; }
.col h3{ margin-bottom:8px; } .col p{ font-size:.95em; } .col .ip{ font-style:italic; color:var(--grey); font-size:.88em; border-top:1px solid var(--line); padding-top:8px; margin-top:10px; }
.stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:22px; margin:16px 0 18px; }
.stats div{ border-left:2px solid var(--teal); padding-left:14px; font-size:.9em; color:var(--grey); }
.stats .fig{ display:block; font-size:2.1em; line-height:1.1; margin-bottom:4px; }
.split{ border:1px solid var(--line); background:var(--bg); padding:26px 30px; display:grid; grid-template-columns:1fr 1fr; gap:30px; margin-top:14px; }
.split h3{ margin-bottom:10px; } .split ul{ margin:0; padding:0; list-style:none; }
.split li{ padding:6px 0 6px 22px; position:relative; font-size:.95em; border-top:1px solid var(--line); }
.split li::before{ content:"\2713"; position:absolute; left:0; top:6px; color:var(--teal); font-weight:700; }
.tl{ list-style:none; margin:14px 0 0; padding:0; } .tl li{ display:grid; grid-template-columns:120px 1fr; gap:0 26px; }
.tl .when{ font-family:"DejaVu Serif",Georgia,serif; color:var(--navy); font-weight:700; text-align:right; padding-top:2px; font-size:.95em; }
.tl .what{ border-left:2px solid var(--teal); padding:0 0 24px 24px; position:relative; }
.tl .what::before{ content:""; position:absolute; left:-7px; top:6px; width:12px; height:12px; border-radius:50%; background:var(--bg); border:2px solid var(--teal); }
.tl h3{ margin-bottom:4px; } .tl p{ font-size:.95em; margin-bottom:0; }
.rule{ list-style:none; margin:14px 0 0; padding:0; } .rule li{ border-top:1px solid var(--line); padding:14px 0; display:grid; grid-template-columns:200px 1fr; gap:20px; }
.rule li:last-child{ border-bottom:1px solid var(--line); } .rule .k{ font-weight:700; color:var(--navy); font-size:.95em; }
.rule .k small{ display:block; font-weight:400; color:var(--grey); font-size:.88em; margin-top:2px; } .rule p{ margin:0; font-size:.95em; }
.dash{ margin:12px 0 0; padding:0; list-style:none; } .dash li{ padding:8px 0 8px 18px; position:relative; font-size:.95em; max-width:72ch; }
.dash li::before{ content:""; position:absolute; left:0; top:16px; width:8px; height:2px; background:var(--teal); } .dash b{ color:var(--navy); }
.faq{ list-style:none; margin:10px 0 0; padding:0; } .faq li{ display:grid; grid-template-columns:240px 1fr; gap:24px; padding:16px 0; border-top:1px solid var(--line); }
.faq li:last-child{ border-bottom:1px solid var(--line); } .faq .q{ font-family:"DejaVu Serif",Georgia,serif; font-weight:700; color:var(--navy); font-size:1.02em; } .faq p{ margin:0; font-size:.95em; }
.sowe{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px 32px; margin-top:14px; }
.sowe div{ border-top:2px solid var(--teal); padding-top:12px; } .sowe h3{ font-size:1.05em; margin-bottom:8px; }
.sowe p{ font-size:.93em; margin:0; } .sowe p b{ color:var(--teal); font-weight:700; }
.countries{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; margin-top:16px; }
.country{ border:1px solid var(--line); background:var(--bg); padding:18px 20px 14px; }
.country h3{ font-size:1.25em; margin-bottom:8px; } .country p{ font-size:.92em; margin:0 0 12px; }
.country .stage{ font-size:.78em; color:var(--teal); font-weight:700; letter-spacing:.06em; text-transform:uppercase; border-top:1px solid var(--line); padding-top:10px; }
.team{ display:grid; grid-template-columns:repeat(5,1fr); gap:26px 22px; margin-top:16px; }
.team .pt{ width:92px; height:92px; border-radius:50%; object-fit:cover; display:block; margin-bottom:10px; }
.team .disc{ background:var(--teal); color:#fff; font-family:"DejaVu Serif",Georgia,serif; font-weight:700; font-size:1.6em; display:flex; align-items:center; justify-content:center; }
.team b{ display:block; color:var(--navy); font-family:"DejaVu Serif",Georgia,serif; font-size:1.05em; }
.team span{ display:block; color:var(--teal); font-size:.74em; letter-spacing:.08em; text-transform:uppercase; margin:3px 0 6px; font-weight:700; }
.team p{ font-size:.86em; margin:0; }
.team-hint{ color:var(--grey); font-size:.9em; margin:6px 0 4px; }
.team.reveal > div{ position:relative; outline:none; cursor:pointer; }
.team.reveal .pt{ transition:box-shadow .15s; }
.team.reveal > div:hover .pt, .team.reveal > div:focus .pt, .team.reveal > div:focus-within .pt{ box-shadow:0 0 0 3px var(--bg), 0 0 0 6px var(--teal); }
.team.reveal > div:focus-visible b{ text-decoration:underline; }
.team.reveal p{ position:absolute; top:calc(100% + 8px); left:0; width:300px; z-index:5; background:var(--bg); color:var(--ink); border:1px solid var(--line); border-top:3px solid var(--teal); border-radius:8px; box-shadow:0 12px 30px rgba(13,36,56,.18); padding:14px 16px; line-height:1.5; opacity:0; visibility:hidden; transform:translateY(6px); transition:opacity .15s, transform .15s, visibility .15s; pointer-events:none; }
.team.reveal > div:hover p, .team.reveal > div:focus p, .team.reveal > div:focus-within p{ opacity:1; visibility:visible; transform:none; }
.team.reveal > div:nth-child(5n) p, .team.reveal > div:nth-child(5n+4) p{ left:auto; right:0; }
@media (max-width:860px){ .team.reveal p{ width:min(300px, 86vw); } .team.reveal > div:nth-child(odd) p{ left:0; right:auto; } .team.reveal > div:nth-child(even) p{ left:auto; right:0; } }
.strip{ display:flex; gap:18px; flex-wrap:wrap; margin:10px 0 18px; } .strip .pt{ width:72px; height:72px; border-radius:50%; object-fit:cover; }
.article p{ max-width:68ch; font-size:1.02em; } .article .dek{ color:var(--grey); font-size:1.08em; margin-bottom:22px; }
.form label{ display:block; font-weight:700; color:var(--navy); font-size:.9em; margin:14px 0 6px; }
.form .in{ border:1px solid var(--line); background:var(--bg); height:40px; } .form .in.ta{ height:120px; }
.form .in.sel{ height:auto; min-height:40px; padding:10px 12px; color:var(--grey); font-size:.9em; line-height:1.4; }
.band{ background:#0D2438; color:#fff; padding:52px 0; } .band .wrap{ display:block; }
.band h2{ color:#fff; margin-bottom:10px; } .band p{ color:#fff; opacity:.85; margin-bottom:22px; }
.band .btn{ background:#fff; color:#0D2438; border-color:#fff; } .band a.link{ color:#fff; }
.foot{ border-top:1px solid var(--line); padding:26px 0 30px; font-size:.82em; color:var(--grey); } .foot .wrap{ display:block; }
.foot .row{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:10px; } .foot a{ color:var(--grey); text-decoration:none; margin-left:18px; }
.gate{ display:inline-block; background:var(--gate-bg); color:var(--gate); font-size:.78em; padding:1px 7px; border-radius:2px; vertical-align:middle; margin-left:4px; }
.note{ font-size:.86em; color:var(--gate); background:var(--gate-bg); padding:10px 14px; margin-top:18px; max-width:72ch; }
@media (max-width:860px){ body{ font-size:14px; } .sec .wrap,.hero.has-gfx .wrap{ grid-template-columns:1fr; gap:10px 0; } .cols,.cols.two,.cols.four,.split,.sowe,.countries{ grid-template-columns:1fr; } .team{ grid-template-columns:repeat(2,1fr); } .faq li,.rule li{ grid-template-columns:1fr; gap:6px; } .tl li{ grid-template-columns:80px 1fr; } h1{ font-size:1.9em; } }
/* Lavender accents: a light third colour */
.lab::after{ background:var(--lav); }
.dash li::before{ background:var(--lav); }
.tl .what::before{ border-color:var(--lav); }
.stats div{ border-left-color:var(--lav); }
a.link{ text-decoration-color:var(--lav); text-decoration-thickness:2px; }
.pgnav a.on .pg-node{ box-shadow:0 0 0 5px rgba(140,132,200,.32); }
::selection{ background:rgba(140,132,200,.32); }

.lrx-form .in{ display:block; width:100%; box-sizing:border-box; height:44px; padding:9px 12px; font:inherit; font-size:1em; color:var(--ink); border-radius:4px; }
.lrx-form textarea.in{ height:150px; resize:vertical; line-height:1.5; }
.lrx-form select.in{ appearance:auto; }
.lrx-form .in:focus{ outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(140,132,200,.35); }
.lrx-form .opt{ font-weight:400; color:var(--grey); }
.lrx-form .hp{ position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden; }
.lrx-form .ts-slot{ margin-top:16px; min-height:0; }
.lrx-form .form-note{ margin-top:12px; }
.lrx-form .btn{ cursor:pointer; font:inherit; font-weight:700; margin-top:6px; }
.lrx-form .btn[disabled]{ opacity:.6; cursor:wait; }
.lrx-form .form-status{ margin:12px 0 0; font-weight:600; min-height:1.4em; }
.lrx-form .form-status.ok{ color:var(--teal); }
.lrx-form .form-status.err{ color:#B3261E; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .lrx-form .form-status.err{ color:#F2B8B5; } }
:root[data-theme="dark"] .lrx-form .form-status.err{ color:#F2B8B5; }

/* Legal pages */
.sec > .wrap.legal{ display:block !important; padding-top:0; padding-bottom:24px; }
.legal > *{ max-width:780px; }
.legal h1{ margin-bottom:8px; }
.legal h3{ margin:30px 0 8px; }
.legal p, .legal li{ line-height:1.6; }
.legal ul{ margin:8px 0 8px 1.4em; padding:0; }
.legal li{ margin:6px 0; }
