/* The landing page. It uses the site's colours from styles.css and adds its own layout. */
.landing{
  --ld-max:1180px;
  --ld-wash-a:rgba(14,124,65,.11);
  --ld-wash-b:rgba(26,107,199,.09);
  --ld-wash-c:rgba(176,32,143,.06);
  --ld-other:#d3d7dc;
  --ld-lift:0 1px 2px rgba(20,20,30,.04), 0 12px 32px rgba(20,20,30,.08);
}
:root[data-theme="dark"] .landing{
  --ld-wash-a:rgba(46,168,103,.16);
  --ld-wash-b:rgba(122,179,234,.10);
  --ld-wash-c:rgba(226,111,201,.08);
  --ld-other:#3a4049;
  --ld-lift:0 1px 2px rgba(0,0,0,.4), 0 14px 34px rgba(0,0,0,.5);
}

.ld-wrap{max-width:var(--ld-max); margin:0 auto; padding:0 32px;}
.ld-card{background:var(--card); border-radius:20px; box-shadow:var(--shadow);}
.ld-h2{display:flex; align-items:center; gap:12px; margin:0 0 28px; font-size:28px; line-height:1.2; font-weight:700;
  letter-spacing:-.024em; color:var(--ink);}
.ld-h2::before{content:""; flex:none; width:5px; height:24px; border-radius:3px; background:var(--accent);}
.ld-sec{padding:88px 0 0;}
.ld-sub{margin:-12px 0 28px; max-width:760px; font-size:15.5px; line-height:1.6; color:var(--sec); text-wrap:pretty;}

/* ---- the opening ---------------------------------------------------------- */
.ld-hero{position:relative; padding:56px 0 52px;
  background:
    linear-gradient(to bottom, transparent 55%, var(--bg)),
    radial-gradient(760px 520px at 80% 34%, var(--ld-wash-a), transparent 62%),
    radial-gradient(620px 460px at 102% 96%, var(--ld-wash-b), transparent 62%),
    radial-gradient(560px 420px at -4% -10%, var(--ld-wash-c), transparent 62%);}
.ld-hero-grid{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px; align-items:center;}
.ld-hero h1{margin:0; font-size:46px; line-height:1.08; font-weight:700; letter-spacing:-.032em; color:var(--ink);
  text-wrap:balance;}
/* the letters that make up the name RaDOr stand out from the rest of the words */
.ld-hero h1.ld-name{color:var(--ink);}
.ld-name b{font-weight:inherit; color:var(--accent);}
.ld-lead{margin:14px 0 28px; max-width:540px; font-size:16px; line-height:1.55; letter-spacing:-0.01em;
  color:color-mix(in srgb, var(--ink) 78%, var(--bg)); text-wrap:pretty;}
.ld-lead b{font-weight:600; color:var(--accent);}

.ld-ask{display:flex; flex-direction:column; gap:2px; max-width:580px; padding:7px 7px 7px 20px;
  background:var(--card); border:1px solid var(--line); border-radius:16px; box-shadow:var(--ld-lift);}
.ld-ask:focus-within{border-color:var(--accent);}
.ld-ask textarea{max-height:150px; padding:11px 12px 6px 0; font:inherit; font-size:16px; line-height:1.4;
  color:var(--ink); background:none; border:none; outline:none; resize:none; overflow-y:auto;}
.ld-ask textarea::placeholder{color:var(--mut);}
.ld-field{display:grid;}
.ld-field textarea, .ld-ghost{grid-area:1 / 1;}
.ld-ghost{align-self:start; padding:11px 12px 6px 0; font-size:16px; line-height:1.4; color:var(--mut);
  white-space:pre-wrap; pointer-events:none;}
.ld-ghost[hidden], .ld-example[hidden], .ld-example-use[hidden], .ld-kinds[hidden]{display:none;}
.ld-ask-row{display:flex; align-items:center; gap:12px;}
.ld-example{position:relative; display:flex; align-items:center; gap:6px; min-width:0;}
.ld-example-kind{display:inline-flex; align-items:center; gap:5px; margin-left:-8px; padding:8px;
  font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:10.5px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--accent-dk); background:none; border:none; border-radius:8px; cursor:pointer;
  transition:background .15s;}
.ld-example-kind:hover, .ld-example-kind[aria-expanded="true"]{background:color-mix(in srgb, var(--ink) 6%, transparent);}
.ld-kinds{position:absolute; top:calc(100% + 6px); left:-8px; z-index:30; display:flex; flex-direction:column;
  min-width:190px; padding:6px; background:var(--card); border:1px solid var(--line); border-radius:14px;
  box-shadow:var(--ld-lift);}
.ld-kinds button{padding:7px 10px; font:inherit; font-size:13.5px; text-align:left; color:var(--ink); background:none;
  border:none; border-radius:8px; cursor:pointer;}
.ld-kinds button:hover, .ld-kinds button:focus-visible{background:color-mix(in srgb, var(--ink) 5%, transparent);
  outline:none;}
.ld-kinds button.on{font-weight:600; color:var(--accent-dk);}
.ld-example-use{display:inline-flex; align-items:center; gap:6px; padding:7px 10px; font:inherit; font-size:13.5px;
  font-weight:500; white-space:nowrap; color:var(--sec); background:none; border:none; border-radius:10px; cursor:pointer;
  transition:background .15s, color .15s;}
.ld-example-use:hover{color:var(--ink); background:color-mix(in srgb, var(--ink) 6%, transparent);}
.ld-send{flex:none; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px;
  margin-left:auto; color:#fff; background:var(--accent); border:none; border-radius:12px; cursor:pointer;}
.ld-send:hover{background:var(--accent-dk);}

/* a faint grid of dots behind the opening, fading out towards its foot */
.ld-hero::before{content:""; position:absolute; inset:0; pointer-events:none; opacity:.55;
  background-image:radial-gradient(circle, color-mix(in srgb, var(--ink) 15%, transparent) 1px, transparent 1.4px);
  background-size:24px 24px;
  -webkit-mask-image:linear-gradient(to bottom, #000 0%, transparent 94%);
  mask-image:linear-gradient(to bottom, #000 0%, transparent 94%);}
.ld-hero > .ld-wrap{position:relative;}

/* ---- the radar ------------------------------------------------------------- */
.ld-radar{margin:0;}
.ld-radar-body{display:grid; grid-template-columns:minmax(0,390px) auto; justify-content:center; align-items:center;
  column-gap:22px;}
.ld-radar-stage{position:relative; width:100%; aspect-ratio:1;}
.ld-radar-stage::before{content:""; position:absolute; inset:5%; border-radius:50%; background:var(--card);
  box-shadow:var(--ld-lift);}
.ld-radar-stage svg{position:absolute; inset:0; width:100%; height:100%; overflow:visible;}
.ld-beam-clip{position:absolute; inset:5%; border-radius:50%; overflow:hidden; pointer-events:none;}
.ld-beam{position:absolute; inset:0;
  background:conic-gradient(from 0deg, transparent 0deg 268deg,
    color-mix(in srgb, var(--accent) 7%, transparent) 326deg, color-mix(in srgb, var(--accent) 22%, transparent) 360deg);}
.ld-ring{fill:none; stroke:var(--line); stroke-width:1;}
.ld-radar-layer{transition:opacity .45s ease;}
.ld-wedge{opacity:.045;}
:root[data-theme="dark"] .ld-wedge{opacity:.07;}
.ld-dot{stroke:var(--card); stroke-width:2;}
.ld-hit{fill:transparent;}
.ld-label{font-size:11.5px; font-weight:500; fill:var(--sec); paint-order:stroke; stroke:var(--card); stroke-width:4px;
  stroke-linejoin:round; pointer-events:none;}
.ld-centre-label{font-size:13px; font-weight:650; fill:var(--ink);}
.ld-node-label{font-size:13px; fill:var(--ink);}
.ld-relation{font-family:ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size:9.5px; letter-spacing:.04em;
  fill:var(--mut);}
.ld-tip{position:absolute; z-index:5; transform:translate(-50%, calc(-100% - 12px)); padding:6px 10px; white-space:nowrap;
  font-size:12px; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:8px;
  box-shadow:var(--ld-lift); pointer-events:none;}
.ld-tip b{font-weight:600;}
.ld-tip span{color:var(--mut);}
/* the radar is drawn at about two thirds of its size, so its words are set larger */
.ld-radar .ld-label{font-size:16px;}
.ld-radar .ld-centre-label{font-size:18px;}
.ld-legend{display:grid; gap:9px; font-size:12px; color:var(--sec);}
.ld-legend span{display:inline-flex; align-items:center; gap:6px;}
.ld-legend i{width:8px; height:8px; border-radius:50%;}
.ld-radar figcaption{margin:6px auto 0; text-align:center; font-size:11.5px; line-height:1.5; color:var(--mut);}

/* a part of the page that eases in when it is first scrolled to */
.ld-ease{opacity:0; transform:translateY(14px); transition:opacity .6s ease, transform .6s ease;}
.ld-ease.in{opacity:1; transform:none;}

/* ---- one fact followed from its passage to the page -------------------------------- */
.ld-trail{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:48px;}
.ld-trail-step{position:relative; padding:22px 24px 24px;}
.ld-on-grid{background-image:radial-gradient(circle, color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 1.4px);
  background-size:18px 18px;}
.ld-trail-step + .ld-trail-step::before{content:"\2192"; position:absolute; left:-34px; top:50%; transform:translateY(-50%);
  font-size:20px; color:var(--mut);}
.ld-trail-head{display:flex; align-items:center; gap:10px; margin-bottom:14px; font-size:13px; font-weight:600; color:var(--sec);}
.ld-trail-head i{display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; font-style:normal;
  font-size:12px; font-weight:700; color:var(--accent-dk); background:var(--accent-bg); border-radius:50%;}
.ld-trail .ld-trail-text{font-size:15px; line-height:1.65; color:var(--ink);}
.ld-mark{padding:0 1px; color:inherit; background:none; box-shadow:inset 0 -2px 0 color-mix(in srgb, var(--tint) 75%, transparent);}
.ld-trail-source{display:inline-block; margin-top:12px; font-size:12.5px; color:var(--accent-dk); text-decoration:none;}
.ld-trail-source:hover{text-decoration:underline;}
.ld-trail .ld-trail-note{margin-top:14px; font-size:12.5px; color:var(--mut);}
.ld-triple{display:flex; flex-direction:column; align-items:flex-start; gap:8px;}
.ld-entity{display:inline-flex; align-items:center; gap:8px; padding:6px 12px; font-size:14px; font-weight:500; color:var(--ink);
  background:var(--bg); border-radius:999px;}
.ld-entity i{width:9px; height:9px; border-radius:50%;}
.ld-triple-relation{position:relative; margin-left:17px; padding:5px 0 5px 16px; font-family:ui-monospace, SFMono-Regular, Menlo,
  Consolas, monospace; font-size:11px; letter-spacing:.08em; color:var(--mut); border-left:2px solid var(--line2);}
.ld-triple-relation::after{content:""; position:absolute; left:-6px; bottom:-4px; border:5px solid transparent;
  border-top-color:var(--line2); border-bottom-width:0;}

/* ---- the judge's marks, straight under the opening ---------------------------- */
.ld-compare .ld-results{padding:16px 16px 8px; box-shadow:var(--ld-lift);}
.ld-results-head{padding:0 14px 12px;}
.ld-results-head .ld-h2{margin:0; font-size:21px;}
.ld-results-head .ld-h2::before{height:18px;}
.ld-results .ld-results-head p{margin:6px 0 0 17px; font-size:13px; line-height:1.5; color:var(--mut);}
.ld-scroll{overflow-x:auto;}
.ld-bt{min-width:700px;}
#ld-marks{--cell:92px; --gap:14px; min-width:820px;}
.ld-bt-row{display:grid; grid-template-columns:minmax(150px,1.1fr) repeat(var(--measures, 3), minmax(var(--cell, 120px),1fr));
  column-gap:var(--gap, 24px); align-items:center; padding:0 14px; border-radius:10px;}
.ld-bt-heads{padding-top:2px; padding-bottom:4px; font-size:12.5px; line-height:1.35; font-weight:500; color:var(--mut);}
.ld-bt-name{padding:5px 0; font-size:14px; font-weight:500; color:var(--ink);}
.ld-bt-cell{display:flex; align-items:center; gap:8px; padding:5px 0; min-width:0;}
.ld-bt-bar{flex:none; height:10px; border-radius:0 4px 4px 0; background:var(--ld-other);}
.ld-bt-val{font-size:13px; color:var(--sec); font-variant-numeric:tabular-nums;}
.ld-bt-row.us{background:var(--accent-bg);}
.ld-bt-row.us .ld-bt-name{font-weight:700;}
.ld-bt-row.us .ld-bt-val{font-weight:600; color:var(--ink);}
/* on phones, one small chart per measure instead of the wide table */
.ld-bt-small{display:none;}
.ld-bt-measure{display:flex; flex-direction:column; gap:4px;}
.ld-bt-measure-title{margin-bottom:2px; font-size:12.5px; font-weight:500; color:var(--mut);}
.ld-bt-line{display:grid; grid-template-columns:118px minmax(0,1fr); align-items:center; gap:10px; padding:3px 8px;
  border-radius:8px; font-size:13px; color:var(--ink);}
.ld-bt-line.us{font-weight:700; background:var(--accent-bg);}
.ld-bt-line .ld-bt-cell{padding:0;}
.ld-bt-line.us .ld-bt-val{font-weight:600; color:var(--ink);}
.ld-bt-cell.best .ld-bt-bar{background:var(--accent);}
.ld-bt-cell.best .ld-bt-val{font-weight:700; color:var(--accent);}
/* the way on to the About page */
.ld-more{margin:14px 0 0; padding:0 4px;}

/* ---- samples beside the rows ------------------------------------------------- */
.ld-card p{margin:0; font-size:14.5px; line-height:1.6; color:var(--sec);}
.ld-pill{display:inline-block; margin-left:3px; padding:1px 8px; font-size:11.5px; font-weight:600; white-space:nowrap;
  color:var(--accent-dk); background:var(--accent-bg); border-radius:999px;}
.ld-patient{display:flex; flex-direction:column; gap:10px;}
.ld-patient-head{font-size:12.5px; color:var(--mut);}
.ld-patient-chips{display:flex; flex-wrap:wrap; gap:6px;}
.ld-patient-chips span{padding:3px 10px; font-size:12.5px; color:var(--ink); background:var(--card); border-radius:999px;}
.ld-patient-chips b{font-weight:500; color:var(--mut);}

/* ---- pages, patients, graph -------------------------------------------------- */
.ld-row{display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:64px; align-items:center;
  padding:16px 0 40px;}
.ld-row-flip{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);}
.ld-row-flip .ld-row-text{order:2;}
.ld-row-text h3{margin:0 0 10px; font-size:21px; line-height:1.3; font-weight:650; letter-spacing:-.015em;
  color:var(--ink);}
.ld-row-text p{margin:0 0 18px; font-size:15.5px; line-height:1.65; color:var(--sec);}
.ld-go{display:inline-flex; align-items:center; gap:6px; font-size:14.5px; font-weight:600; color:var(--accent-dk);
  text-decoration:none;}
.ld-go::after{content:"→"; transition:transform .15s;}
.ld-go:hover::after{transform:translateX(3px);}
.ld-row-view{position:relative; height:380px; overflow:hidden;}
.ld-row-view.ld-row-auto{height:auto; min-height:380px; display:flex;}
.ld-row-auto .ld-cases{position:static; flex:1; justify-content:center;}
.ld-row-view > svg{display:block; width:100%; height:100%;}
.ld-bodymap{position:absolute; inset:18px 18px 18px;}
.ld-bodymap svg{width:100%; height:100%; max-width:none; margin:0;}

/* the patients panel: an age strip, then the most frequent findings */
.ld-cases{position:absolute; inset:0; padding:24px 28px; display:flex; flex-direction:column; gap:18px;}
.ld-cases-title{font-size:15px; font-weight:650; color:var(--ink);}
.ld-cases-title span{font-weight:400; color:var(--mut);}
.ld-cases-label{margin-bottom:6px; font-size:12.5px; color:var(--mut);}
.ld-cases svg{display:block; width:100%; height:auto; overflow:visible;}
.ld-axis{font-size:11px; fill:var(--mut);}
.ld-find{display:grid; grid-template-columns:minmax(0,1fr) 120px 28px; align-items:center; gap:10px; padding:3px 0;
  font-size:13px; color:var(--ink);}
.ld-find-bar{height:8px; border-radius:0 4px 4px 0; background:var(--tc-phenotype);}
.ld-find-n{font-size:12.5px; color:var(--sec); text-align:right; font-variant-numeric:tabular-nums;}

/* a sample from a page or a patient under the text of a row */
.ld-row-text .ld-sample{margin:0 0 18px; padding:14px 16px; font-size:13.5px; line-height:1.55; color:var(--ink);
  background:var(--card); border-radius:12px;}
.ld-row-text .ld-patient-chips span{background:var(--bg);}

/* ---- the foot -------------------------------------------------------------- */
.ld-foot{margin-top:72px; padding:30px 0 40px; background:var(--card); border-top:1px solid var(--line);}
.ld-foot p{margin:0 0 6px; font-size:14px; color:var(--sec);}
.ld-foot a{color:var(--accent-dk); text-decoration:none; font-weight:500;}
.ld-foot a:hover{text-decoration:underline;}
.ld-foot .ld-fine{font-size:12.5px; color:var(--mut);}

/* a way back to the question box once it has scrolled away */
.ld-fab{position:fixed; right:24px; bottom:24px; z-index:40; display:inline-flex; align-items:center; gap:8px;
  padding:12px 18px; font-size:14px; font-weight:600; color:#fff; text-decoration:none; background:var(--accent);
  border-radius:999px; box-shadow:0 8px 24px rgba(14,124,65,.30); opacity:0; transform:translateY(12px);
  pointer-events:none; transition:opacity .2s, transform .2s;}
.ld-fab.on{opacity:1; transform:none; pointer-events:auto;}
.ld-fab:hover{background:var(--accent-dk);}
.ld-fab svg{flex:none;}
.ld-fab-beam{transform-box:view-box; transform-origin:12px 12px; animation:ld-sweep 4s linear infinite;}
@keyframes ld-sweep{to{transform:rotate(360deg);}}

@media (min-width:981px) and (max-height:900px){
  .ld-hero{padding:10px 0 12px;}
  .ld-hero h1{font-size:42px;}
  .ld-radar-body{grid-template-columns:minmax(0,360px) auto;}
}
@media (min-width:981px) and (max-height:820px){
  .ld-radar-body{grid-template-columns:minmax(0,320px) auto;}
}
@media (max-width:980px){
  .ld-hero-grid{grid-template-columns:minmax(0,1fr); gap:44px;}
  .ld-hero h1{font-size:42px;}
  .ld-row{grid-template-columns:minmax(0,1fr);}
  .ld-trail{grid-template-columns:minmax(0,1fr); gap:40px;}
  .ld-trail-step + .ld-trail-step::before{content:"\2193"; left:50%; top:-31px; transform:translateX(-50%);}
  .ld-dense .ld-scroll{display:none;}
  .ld-dense .ld-bt-small{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:22px 28px; padding:0 6px;}
  .ld-row{gap:24px;}
  .ld-row-flip .ld-row-text{order:0;}
}
@media (max-width:600px){
  .ld-wrap{padding:0 16px;}
  .ld-hero{padding:36px 0 80px;}
  .ld-hero h1{font-size:34px;}
  .ld-example-use span{display:none;}
  .ld-radar-body{grid-template-columns:minmax(0,360px);}
  .ld-legend{grid-template-columns:repeat(3, auto); justify-content:center; gap:4px 18px; margin-top:8px;}
  .ld-sec{padding-top:60px;}
  .ld-h2{font-size:23px;}
  .ld-h2::before{height:20px;}
  .ld-row-view{height:320px;}
  .ld-row-view.ld-row-auto{min-height:0;}
  #ld-graph{height:auto;}
  #ld-graph > svg{height:auto;}
  #ld-graph .ld-node-label{font-size:21px;}
  #ld-graph .ld-centre-label{font-size:22px;}
  #ld-graph .ld-axis{font-size:19px;}
  #ld-graph .ld-relation{display:none;}
  .ld-cases{padding:20px;}
  .ld-compare .ld-results{padding:22px 14px 18px;}
  .ld-results-head{padding:0 6px 16px;}
  .ld-scroll{display:none;}
  .ld-bt-small, .ld-dense .ld-bt-small{display:grid; grid-template-columns:minmax(0,1fr); gap:18px; padding:0 6px;}
  .ld-fab{right:16px; bottom:16px;}
}
@media (prefers-reduced-motion:reduce){
  .ld-fab, .ld-go::after{transition:none;}
  .ld-fab-beam{animation:none;}
}
