/* =====================================================================
   Skin v1 - visual layer only. Sits after base.css and diag.css.
   Content, routes and behaviour are untouched; this file changes how
   the app looks.
   ===================================================================== */

:root{
  --r-card:22px;
  --font-display:"Manrope","Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --brand-2:#12A594;
  --brand-3:#17C2AE;
  --coral:#FF6B5A;
  --amber:#FFB020;
  --violet:#7B61FF;
  --sky:#2D9CDB;
  --bg:#F1F6F7;
  --surface:#FFFFFF;
  --surface-2:#EAF2F3;
  --border:#E0EAEC;
  --border-strong:#C8D8DB;
  --text:#08222C;
  --text-2:#3B4E58;
  --text-3:#5F7480;
  --brand:#0B5F68;
  --brand-soft:#E4F4F3;
  --shadow-1:0 1px 2px rgba(6,32,42,.05);
  --shadow-2:0 2px 6px rgba(6,32,42,.05),0 16px 32px -22px rgba(6,32,42,.40);
  --shadow-3:0 3px 10px rgba(6,32,42,.06),0 26px 52px -28px rgba(6,32,42,.48);
}
html[data-theme="dark"]{
  --bg:#07131A;
  --surface:#0E1C24;
  --surface-2:#14262F;
  --border:#1E323C;
  --border-strong:#2C4652;
  --text:#E9F1F4;
  --text-2:#B7C6CC;
  --text-3:#8FA3AC;
  --brand:#6CC3BD;
  --brand-soft:#0F2F33;
  --shadow-1:0 1px 2px rgba(0,0,0,.35);
  --shadow-2:0 2px 8px rgba(0,0,0,.30),0 18px 36px -22px rgba(0,0,0,.75);
  --shadow-3:0 3px 12px rgba(0,0,0,.35),0 28px 56px -28px rgba(0,0,0,.8);
}

body{background:
  radial-gradient(120% 60% at 100% 0%,rgba(23,194,174,.10),transparent 60%),
  radial-gradient(100% 50% at 0% 0%,rgba(123,97,255,.07),transparent 55%),
  var(--bg);
  background-attachment:fixed}

h1,h2,h3,.h1,.sc-t,.dn,.pname,.brand-title,.q h2{font-family:var(--font-display)}
h1,.h1,h2,h3{letter-spacing:-.03em;font-weight:800}

/* ---------------- header ---------------- */
.hdr{background:color-mix(in srgb,var(--bg) 82%,transparent);border-bottom:1px solid transparent}
.hdr.scrolled{border-bottom-color:var(--border);background:color-mix(in srgb,var(--bg) 92%,transparent)}
.hdr-in{height:62px}
.brand-mark{width:38px;height:38px;border-radius:13px;background:linear-gradient(150deg,#17C2AE,#0B5F68);color:#fff;
  box-shadow:0 10px 20px -12px rgba(14,124,134,.95)}
.brand-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.14em;font-weight:800;color:var(--text-3)}
.brand-title{font-size:15.5px;font-weight:800;letter-spacing:-.015em}

/* ---------------- home hero ---------------- */
.hero2{position:relative;overflow:hidden;border-radius:28px;padding:22px 22px 20px;color:#EAF6F7;
  background:
    radial-gradient(120% 90% at 108% -12%,rgba(23,194,174,.60),transparent 58%),
    radial-gradient(90% 70% at -10% 112%,rgba(123,97,255,.40),transparent 58%),
    linear-gradient(158deg,#05222D 0%,#0A4A55 55%,#0E7C86 100%);
  box-shadow:0 30px 60px -34px rgba(6,52,60,.95),inset 0 0 0 1px rgba(255,255,255,.09)}
.hero2::before{content:"";position:absolute;inset:0;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.12) 1px,transparent 1px);
  background-size:17px 17px;opacity:.45;
  -webkit-mask-image:linear-gradient(180deg,#000,transparent 72%);
  mask-image:linear-gradient(180deg,#000,transparent 72%)}
.hero2>*{position:relative;z-index:1}
.hero2 .pill{display:inline-flex;align-items:center;gap:6px;font-size:10.5px;font-weight:800;letter-spacing:.12em;
  text-transform:uppercase;color:#BDE7E4;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);
  padding:6px 12px;border-radius:999px}
.hero2 h1{color:#fff;font-size:33px;line-height:1.06;font-weight:800;letter-spacing:-.035em;margin:14px 0 0;max-width:11ch}
.hero2-lede{color:#C6E5E7;font-size:14.5px;line-height:1.55;margin:12px 0 0;max-width:32ch}
.hero2-cta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:20px;min-height:56px;
  padding:0 18px;border-radius:17px;background:linear-gradient(180deg,#FFD07A,#F5A623);color:#3A2400;
  font-family:var(--font-display);font-weight:800;font-size:15.5px;letter-spacing:-.01em;
  box-shadow:0 16px 28px -14px rgba(245,166,35,.95)}
.hero2-cta svg{width:20px;height:20px}
.hero2-stats{display:flex;gap:22px;margin-top:20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.15)}
.hero2-stats div{display:flex;flex-direction:column;gap:1px}
.hero2-stats b{font-family:var(--font-display);font-size:20px;font-weight:800;color:#fff;line-height:1}
.hero2-stats span{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#9DC8CB;font-weight:700}

/* ---------------- home path ---------------- */
.path-h{font-family:var(--font-display);font-size:11px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;
  color:var(--text-3);margin:26px 4px 12px}
.path{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.pstep{display:flex;align-items:center;gap:14px;background:var(--surface);border:1px solid var(--border);
  border-radius:20px;padding:15px 16px;box-shadow:var(--shadow-2);color:var(--text);
  transition:transform .14s ease,box-shadow .2s ease,border-color .2s}
.pstep:active{transform:scale(.99)}
.pnum{flex:none;width:46px;height:46px;border-radius:16px;display:grid;place-items:center;
  font-family:var(--font-display);font-weight:800;font-size:17px;color:#fff;
  background:linear-gradient(150deg,#17C2AE,#0B7A72);box-shadow:0 14px 24px -14px rgba(14,124,134,.95)}
.path li:nth-child(2) .pnum{background:linear-gradient(150deg,#5BB8F0,#2D9CDB);box-shadow:0 14px 24px -14px rgba(45,156,219,.95)}
.path li:nth-child(3) .pnum{background:linear-gradient(150deg,#FFD07A,#F5A623);color:#3A2400;box-shadow:0 14px 24px -14px rgba(245,166,35,.95)}
.pstep .pt{flex:1;min-width:0}
.pstep b{display:block;font-family:var(--font-display);font-size:16.5px;font-weight:800;letter-spacing:-.02em;line-height:1.2}
.pstep small{display:block;font-size:12.5px;color:var(--text-3);line-height:1.45;margin-top:4px}
.pchev{flex:none;color:var(--text-3);font-size:22px;line-height:1}

/* ---------------- home tiles ---------------- */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.tile{display:flex;flex-direction:column;gap:10px;background:var(--surface);border:1px solid var(--border);
  border-radius:20px;padding:16px;box-shadow:var(--shadow-2);color:var(--text)}
.tile.wide{grid-column:1/-1}
.tile-head{display:flex;align-items:center;gap:12px;color:inherit}
.tic{flex:none;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;
  background:var(--brand-soft);color:var(--brand)}
.tic svg{width:19px;height:19px}
.tile b{display:block;font-family:var(--font-display);font-size:15.5px;font-weight:800;letter-spacing:-.02em}
.tile small{display:block;font-size:12px;color:var(--text-3);line-height:1.4;margin-top:2px}
.tile .chips{display:flex;flex-wrap:wrap;gap:6px}
.tile .chips a{font-size:12px;font-weight:600;padding:7px 12px;border-radius:999px;background:var(--surface-2);
  color:var(--text-2);border:1px solid var(--border)}
.tile.t-spon .tic{background:#FFF1DC;color:#9A5B00}
.tile.t-about .tic{background:#EFEBFF;color:#5B45D6}
html[data-theme="dark"] .tile.t-spon .tic{background:#33240A;color:#FCD34D}
html[data-theme="dark"] .tile.t-about .tic{background:#211B3F;color:#C4B5FD}

/* ---------------- page furniture ---------------- */
.view>h1,.view>h1.h1{font-size:27px;line-height:1.14;margin:12px 0 6px}
.seqbar{margin:12px 0 0;display:flex;justify-content:space-between;align-items:center;gap:8px}
.seqbar a,.seqbar span{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:999px;
  font-size:12px;font-weight:800;letter-spacing:.01em}
.seqbar a{background:var(--surface);border:1px solid var(--border);color:var(--text-2);box-shadow:var(--shadow-1)}
.seqbar span{background:var(--brand-soft);color:var(--brand);border:1px solid transparent}
.note{border-radius:18px;box-shadow:var(--shadow-1)}
.sub{font-size:13.5px;color:var(--text-3);line-height:1.55}

/* ---------------- disease list ---------------- */
.dlist{gap:9px}
.drow{border-radius:18px;padding:13px 15px;min-height:70px;box-shadow:var(--shadow-1);border:1px solid var(--border)}
.drow .num{width:38px;height:38px;border-radius:13px;font-family:var(--font-display);font-size:14.5px;font-weight:800;
  background:var(--surface-2);color:var(--text-2)}
.drow .num.c-viral{background:#F4E9FF;color:#6D28D9}
.drow .num.c-bacterial{background:#FFE8E1;color:#C2410C}
.drow .num.c-fungal{background:#E5F7E9;color:#15803D}
.drow .num.c-parasitic{background:#FFF3D6;color:#A16207}
.drow .num.c-env{background:#E0F2FE;color:#0369A1}
html[data-theme="dark"] .drow .num.c-viral{background:#2A1B45;color:#C4B5FD}
html[data-theme="dark"] .drow .num.c-bacterial{background:#3A1D12;color:#FDBA8C}
html[data-theme="dark"] .drow .num.c-fungal{background:#12301F;color:#86EFAC}
html[data-theme="dark"] .drow .num.c-parasitic{background:#33240A;color:#FCD34D}
html[data-theme="dark"] .drow .num.c-env{background:#0C2A3D;color:#7DD3FC}
.drow .dn{font-size:15.5px;font-weight:800;letter-spacing:-.02em}
h3.grp{font-family:var(--font-display);margin-top:24px}

/* ---------------- disease page head ---------------- */
.dhead{background:var(--surface);border:1px solid var(--border);border-radius:26px;overflow:hidden;
  box-shadow:var(--shadow-3);margin-top:14px}
.dhead .ph{background:var(--surface-2);border:0}
.dhead .ph img{max-height:250px}
.dhead .ph figcaption{padding:9px 18px 11px}
.dhead-b{padding:16px 18px 4px;background:linear-gradient(180deg,var(--brand-soft),transparent 68%)}
.dhead h1{font-size:26px;line-height:1.12;margin:10px 0 2px}
.dhead .de{font-size:13px;color:var(--text-3)}
.dhead .sum{font-size:14.5px;line-height:1.55;margin-top:10px}
.dhead .sum.key{font-weight:700;color:var(--text)}

/* ---------------- cards, results, cases ---------------- */
.rcard{border-radius:22px;box-shadow:var(--shadow-2);border:1px solid var(--border)}
.rcard .rtop{padding:16px 16px 4px}
.rcard.case .rank{width:42px;height:42px;border-radius:14px;font-family:var(--font-display);font-size:16px;
  background:linear-gradient(150deg,#17C2AE,#0B7A72);color:#fff;box-shadow:0 12px 22px -14px rgba(14,124,134,.9)}
.rank{background:linear-gradient(150deg,#17C2AE,#0B7A72);color:#fff;border-radius:13px}
.meter{height:7px;border-radius:99px}
.meter i{border-radius:99px;background:linear-gradient(90deg,#12A594,#17C2AE)}
.meter.mid i{background:linear-gradient(90deg,#F5A623,#FFC65C)}
.meter.low i{background:linear-gradient(90deg,#94A3B8,#B8C4CE)}
.rcard .more{border-top:1px solid var(--border);font-weight:800;color:var(--brand);padding:13px 16px;display:block}
.rcard .cb{padding:0 16px 14px}

/* ---------------- sign picker ---------------- */
.steps{gap:7px;margin:16px 0 20px}
.steps i{height:6px;border-radius:99px;background:var(--surface-3)}
.steps i.on{background:linear-gradient(90deg,#12A594,#17C2AE)}
.q h2{font-size:23px;font-weight:800;letter-spacing:-.03em}
.opt{border-radius:18px;min-height:56px;padding:14px 16px;box-shadow:var(--shadow-1);
  transition:transform .12s ease,border-color .2s,background .2s,box-shadow .2s}
.opt[aria-pressed=true]{background:linear-gradient(180deg,#E7F8F6,#D5F1EF);border-color:#0FA79A;
  box-shadow:0 14px 26px -20px rgba(14,124,134,.95)}
html[data-theme="dark"] .opt[aria-pressed=true]{background:linear-gradient(180deg,#0F2F33,#123A3E)}
.opt .ck{width:24px;height:24px;border-radius:8px}
.bar{background:color-mix(in srgb,var(--bg) 86%,transparent);box-shadow:0 -12px 30px -24px rgba(6,32,42,.6)}
.bar .cnt{font-weight:700;color:var(--text-2)}
.btn{border-radius:15px;font-family:var(--font-display);font-weight:800;letter-spacing:-.01em}
.btn.primary{background:linear-gradient(180deg,#12A594,#0B7A72);border-color:#0B7A72;
  box-shadow:0 14px 26px -16px rgba(14,124,134,.95)}
.btn.nav{border-radius:18px}
.actions .btn{min-height:52px}

/* ---------------- sponsor ---------------- */
.prod{border-radius:16px;box-shadow:var(--shadow-1)}
.prod-c{border-radius:20px}
.spnote{border-radius:14px}
.ftr{color:var(--text-3);font-size:12.5px;padding-top:28px}

@media (min-width:560px){
  .hero2 h1{font-size:38px}
  .hero2-lede{max-width:40ch}
  .tiles{grid-template-columns:1fr 1fr}
}

/* ---------------- sections and square tiles ---------------- */
.block{margin-top:26px}
.sh{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 12px;color:var(--text)}
.sh-t b{display:block;font-family:var(--font-display);font-size:20px;font-weight:800;letter-spacing:-.03em;line-height:1.15}
.sh-t small{display:block;font-size:12.5px;color:var(--text-3);margin-top:3px}
.sh-o{display:inline-flex;align-items:center;gap:4px;flex:none;font-size:12px;font-weight:800;color:var(--brand);
  background:var(--brand-soft);padding:8px 12px;border-radius:999px}
.sh-o svg{width:14px;height:14px}
.sq-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.sq{position:relative;display:flex;flex-direction:column;justify-content:space-between;gap:8px;aspect-ratio:1/1;
  padding:12px 11px;border-radius:20px;background:var(--surface);border:1px solid var(--border);
  box-shadow:var(--shadow-2);color:var(--text);overflow:hidden}
.sq::after{content:"";position:absolute;inset-block:0;inset-inline-start:0;width:4px;
  background:linear-gradient(180deg,#17C2AE,#0B7A72)}
.sq-grid .sq:nth-child(3n+2)::after{background:linear-gradient(180deg,#5BB8F0,#2D9CDB)}
.sq-grid .sq:nth-child(3n+3)::after{background:linear-gradient(180deg,#FFD07A,#F5A623)}
.sq-i{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--brand-soft);color:var(--brand)}
.sq-i svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sq-grid .sq:nth-child(3n+2) .sq-i{background:#E4F1FB;color:#1F7FB8}
.sq-grid .sq:nth-child(3n+3) .sq-i{background:#FFF1DC;color:#9A5B00}
.sq-n{display:block;font-family:var(--font-display);font-size:12.8px;font-weight:800;letter-spacing:-.015em;line-height:1.15}
html[data-theme="dark"] .sq-grid .sq:nth-child(3n+2) .sq-i{background:#0C2A3D;color:#7DD3FC}
html[data-theme="dark"] .sq-grid .sq:nth-child(3n+3) .sq-i{background:#33240A;color:#FCD34D}

/* wide single tile (the action section) */
.sq-wide{display:flex;align-items:center;gap:14px;padding:16px 16px;border-radius:20px;
  background:linear-gradient(150deg,#0A4A55,#0E7C86 70%,#12A594);color:#fff;
  box-shadow:0 22px 40px -26px rgba(10,74,85,.95)}
.sq-wide .sq-i{width:42px;height:42px;border-radius:14px;background:rgba(255,255,255,.16);color:#fff}
.sq-wide .sq-i svg{width:21px;height:21px}
.sq-wide .sq-t{flex:1;min-width:0}
.sq-wide b{display:block;font-family:var(--font-display);font-size:16.5px;font-weight:800;letter-spacing:-.02em}
.sq-wide small{display:block;font-size:12.5px;color:#C6E5E7;margin-top:3px}
.sq-wide .sq-a{flex:none;color:#fff;opacity:.8}
.sq-wide .sq-a svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* section page: two columns with name and one line */
.sq-grid.two{grid-template-columns:repeat(2,1fr);gap:10px}
.sq.sq-lg{aspect-ratio:1/1;padding:14px 13px}
.sq.sq-lg .sq-n,.sq.sq-lg b{font-size:15px}
.sq.sq-lg small{display:block;font-size:11.5px;color:var(--text-3);line-height:1.3;margin-top:4px}
.sq.sq-lg .sq-t{display:block}
.sq .sq-i svg,.sh-o svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* section-page tile: link affordance in the corner */
.sq.sq-lg .sq-a{position:absolute;top:12px;inset-inline-end:12px;color:var(--text-3)}
.sq.sq-lg .sq-a svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sq.sq-lg .sq-t{margin-top:auto}
.sq-grid.two .sq{aspect-ratio:1/1}

/* ---------------- shrimp mark, section icons ---------------- */
.hero2 .hero-shp{position:absolute;top:12px;inset-inline-end:12px;width:72px;height:96px;
  color:#fff;opacity:.16;pointer-events:none;z-index:0}
.sh{gap:11px}
.sh .sh-t{flex:1;min-width:0}
.sh-i{flex:none;width:38px;height:38px;display:grid;place-items:center;border-radius:13px;
  background:var(--brand-soft);color:var(--brand)}
.sh-i svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html[data-theme="dark"] .sh-i{background:rgba(23,194,174,.16);color:#5EE0CE}
.brand-mark svg{width:17px;height:23px}

/* tile composition: icon, label and line grouped and centred, no dead band */
.sq{justify-content:center;gap:9px;min-height:104px;padding:13px 12px;aspect-ratio:auto}
.sq .sq-i{margin-bottom:1px}
.sq-n{font-size:12.7px;line-height:1.22}
.sq-grid.two .sq{aspect-ratio:auto;min-height:128px}
.sq.sq-lg{aspect-ratio:auto;min-height:136px;padding:14px 13px;justify-content:center;gap:7px}
.sq.sq-lg .sq-t{margin-top:0}
.sq.sq-lg .sq-n,.sq.sq-lg b{font-size:15.2px;line-height:1.2}
.sq.sq-lg small{margin-top:5px}
.sq-wide{min-height:0}
.sq-grid:not(.two) .sq-n{min-height:2.5em}
.sq-d{display:block;font-size:11.8px;color:var(--text-3);line-height:1.32;margin-top:2px}
.sq-grid.two .sq{gap:7px;min-height:132px;justify-content:center}
.sq-grid.two .sq-n{min-height:0}
