body.hl-site header{
  background:#ffffffed;border-color:#dce1ea;color:#263247;
  --ink:#263247;--graphite:#657187;--rail:#34405b;--grid-bold:#d5dbe6;--laser:#7059a4;
}
body.hl-site .hrow{gap:20px;min-height:70px;height:auto;padding-top:12px;padding-bottom:12px}
body.hl-site .mark{
  gap:9px;color:#28324b;font-family:Georgia,"Times New Roman",serif;
  font-size:24px;font-weight:700;letter-spacing:-.055em;line-height:1.15;white-space:nowrap;
}
body.hl-site .mark img{width:26px;height:26px;top:0;filter:none;border-radius:6px;background:#fff;content:url("logo/brand/haslalab-light.svg?v=20261112-logo")}
html[data-theme="dark"] body.hl-site .mark img{background:#111017;content:url("logo/brand/haslalab-dark.svg?v=20261112-logo")}
body.hl-site .clogo{max-width:48%}
body.hl-site .clogo:is([data-logo-key="ortvay"],[data-logo-key="usnco"],[data-logo-key="putnam"],[data-logo-key="useso"],[data-logo-key="mskbo"]){max-width:56%}
body.hl-site .archive-resources{margin:28px 0}
body.hl-site .archive-resources h2{font-size:1.15rem}
body.hl-site .archive-resources .btn{margin:0 6px 8px 0}
body.hl-site .archive-resources figure{margin:20px 0;max-width:1024px}
body.hl-site .archive-resources img{display:block;max-width:100%;height:auto;background:#fff;border:1px solid var(--grid-bold);border-radius:5px}
body.hl-site .archive-resources figcaption{margin-top:8px;font-size:12px;color:var(--graphite)}
body.hl-site .mark em{
  display:block;font-family:var(--mono);font-size:9px;font-weight:500;
  letter-spacing:.1em;color:#6e778b;padding-left:1px;
}
body.hl-site #nav{margin-left:7px;gap:23px;align-items:center}
body.hl-site #nav a{
  font-family:var(--sans);font-size:13px;letter-spacing:0;
  font-weight:500;padding:7px 0;border-bottom-width:2px;white-space:nowrap;
}
body.hl-site #nav a.on{color:#5c438f;border-color:#7059a4;font-weight:650}
body.hl-site #siteTheme{
  width:31px;height:31px;border:1px solid #d5dbe6;border-radius:6px;
  padding:0;display:grid;place-items:center;flex:none;background:#fff;
  color:#43516d;cursor:pointer;font:16px/1 var(--sans);
}
body.hl-site #siteTheme:hover{border-color:#8670b3;background:#f6f3fc}
body.hl-site #acct{flex:none;margin-left:auto}
/* HaslaEdu, the family site: a quiet link beside the logo */
body.hl-site .hl-edu{display:inline-flex;align-items:center;gap:4px;flex:none;margin-left:-8px;padding:4px 9px;border:1px solid #d5dbe6;border-radius:999px;
  color:#5c438f;font:600 12px/1 var(--sans);text-decoration:none;white-space:nowrap}
body.hl-site .hl-edu svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
body.hl-site .hl-edu:hover{border-color:#8670b3;background:#f6f3fc}
html[data-theme="dark"] body.hl-site .hl-edu{color:#c9b8f0;border-color:#51435f}
html[data-theme="dark"] body.hl-site .hl-edu:hover{background:#231b2e}
body.hl-site #acct a{padding:6px 10px;line-height:1.45}
body.hl-site #acct .acct-me>span:not(.cmav){
  display:inline;max-width:112px;white-space:normal;overflow:visible;
  text-overflow:clip;overflow-wrap:anywhere;
}
body.hl-site #acct .acct-me>.cmav{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  width:22px;height:22px;margin:0;line-height:1;vertical-align:middle;
}
body.hl-site #acct .acct-me>img.cmav{object-fit:cover;object-position:center}
body.hl-site header .lang{flex:none;margin-left:0;padding:2px;border-color:#d5dbe6}
body.hl-site header .lang button{padding:5px 8px;gap:6px;letter-spacing:.02em;font-size:11px}
body.hl-site header .lang button[aria-pressed="true"]{background:#34405b;color:#fff}

body.hl-site .hl-home{padding-top:25px;padding-bottom:24px}
body.hl-site .hl-home section{padding:0}
body.hl-site .hl-home-header{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
  padding-bottom:19px;margin-bottom:20px;border-bottom:1px solid var(--grid-bold);
}
body.hl-site .hl-home-header h1{
  font:650 29px/1.25 var(--sans);letter-spacing:-.035em;color:var(--ink);
}
body.hl-site .hl-home-header p{margin:7px 0 0;font-size:13px;color:var(--graphite);line-height:1.65}
body.hl-site .hl-home-cover{
  display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);
  align-items:center;gap:26px;min-height:280px;margin:0 0 22px;
}
body.hl-site .hl-home-cover .screen{width:100%;max-width:520px;margin:0;justify-self:center}
body.hl-site .hl-cover-info{min-width:0;padding:10px 0}
body.hl-site .hl-cover-info h1,
body.hl-site .hl-cover-info h2,
body.hl-site .hl-cover-info h3{font-size:23px;line-height:1.4;letter-spacing:-.025em}
body.hl-site .hl-cover-info p{font-size:13px;color:var(--graphite);line-height:1.7;margin:9px 0 17px}
body.hl-site .hl-cover-info .hl-cover-label{font-size:11px;font-weight:600;letter-spacing:.02em;margin:0 0 7px}
body.hl-site .hl-cover-info .hl-cover-meta{font-family:var(--mono);font-size:11.5px;margin:10px 0 17px}
body.hl-site .hl-cover-info .mono{font-size:12px;color:var(--graphite)}
body.hl-site .hl-cover-info .btn:not(.ghost) .mono{color:inherit}
body.hl-site .hl-cover-info .btn{padding:9px 14px;font-size:13px}
body.hl-site .hl-cover-info .cta{margin-top:18px;gap:8px}
body.hl-site .hl-home-studio{
  --studio-home-panel:#fff;--studio-home-ink:#263247;--studio-home-muted:#657187;
  --studio-home-line:#d5dbe6;--studio-home-accent:#7059a4;--studio-home-hover:#f8f5fe;--studio-home-on-accent:#fff;
  margin-top:30px;color:var(--studio-home-ink);
}
body.hl-site .hl-studio-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
body.hl-site .hl-studio-kicker{font:10px/1.5 var(--mono);letter-spacing:.12em;color:var(--studio-home-muted);margin:0 0 7px}
body.hl-site .hl-studio-heading h2{font-size:22px;font-weight:650;letter-spacing:-.035em;line-height:1.4}
body.hl-site .hl-studio-heading h2+p{font-size:13px;line-height:1.7;color:var(--studio-home-muted);margin:6px 0 0}
body.hl-site .hl-studio-open{display:inline-flex;align-items:center;justify-content:center;padding:9px 14px;flex:none;border:1px solid var(--studio-home-accent);border-radius:6px;background:var(--studio-home-accent);color:var(--studio-home-on-accent);font-size:12px;font-weight:600;white-space:nowrap}
body.hl-site .hl-studio-open:hover{filter:brightness(1.08)}
body.hl-site .hl-studio-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--studio-home-panel);border:1px solid var(--studio-home-line);border-radius:10px;overflow:hidden}
body.hl-site .hl-studio-feature{display:flex;flex-direction:column;padding:23px;min-width:0;border-right:1px solid var(--studio-home-line);transition:background .15s}
body.hl-site .hl-studio-feature:last-child{border-right:0}
body.hl-site .hl-studio-feature:hover{background:var(--studio-home-hover)}
body.hl-site .hl-studio-feature:focus-visible{outline:2px solid var(--studio-home-accent);outline-offset:-4px;border-radius:6px}
body.hl-site .hl-studio-feature-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;color:var(--studio-home-accent)}
body.hl-site .hl-studio-number{font:11px var(--mono);letter-spacing:.05em;color:var(--studio-home-muted)}
body.hl-site .hl-studio-feature h3{font-size:17px;line-height:1.5;letter-spacing:-.025em}
body.hl-site .hl-studio-feature p{font-size:12.5px;line-height:1.8;color:var(--studio-home-muted);margin:10px 0 16px;max-width:54ch}
body.hl-site .hl-studio-detail{font-size:10.5px;line-height:1.7;color:var(--studio-home-muted);margin-top:auto}
body.hl-site .hl-studio-action{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;padding-top:13px;border-top:1px solid var(--studio-home-line);font-size:12px;font-weight:600;color:var(--studio-home-accent)}
body.hl-site .hl-studio-action>span{font-size:18px;font-weight:400;line-height:1}
body.hl-site .hl-studio-foot{display:flex;align-items:baseline;justify-content:space-between;gap:8px 24px;flex-wrap:wrap;margin-top:12px}
body.hl-site .hl-studio-foot p{font-size:11px;line-height:1.8;color:var(--studio-home-muted);margin:0}
body.hl-site .hl-studio-foot .hl-studio-login{font-weight:500;color:var(--studio-home-ink)}
html[data-theme="dark"] body.hl-site .hl-home-studio{
  --studio-home-panel:#1b1825;--studio-home-ink:#ebe8f5;--studio-home-muted:#aca6bd;
  --studio-home-line:#3b344d;--studio-home-accent:#bca0ed;--studio-home-hover:#30253c;--studio-home-on-accent:#1c1228;
}
@media(max-width:780px){
  body.hl-site .hl-studio-features{grid-template-columns:minmax(0,1fr)}
  body.hl-site .hl-studio-feature{padding:20px;border-right:0;border-bottom:1px solid var(--studio-home-line)}
  body.hl-site .hl-studio-feature:last-child{border-bottom:0}
  body.hl-site .hl-studio-feature-top{margin-bottom:11px}
  body.hl-site .hl-studio-feature p{margin-bottom:12px}
  body.hl-site .hl-studio-heading{gap:14px;align-items:flex-start;flex-wrap:wrap}
  body.hl-site .hl-studio-heading h2{font-size:20px}
  body.hl-site .hl-studio-heading h2+p{font-size:12px}
  body.hl-site .hl-studio-open{padding:8px 12px;font-size:12px}
  body.hl-site .hl-studio-foot{display:block}
  body.hl-site .hl-studio-foot p+p{margin-top:5px}
}
body.hl-site .hl-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
body.hl-site .hl-tools .btn{
  padding:7px 11px;gap:6px;font-size:12px;border-radius:6px;
  font-weight:500;white-space:nowrap;
}
body.hl-site .hl-section-head{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin-bottom:13px;
}
body.hl-site .hl-section-head h2{font-size:17px;letter-spacing:-.025em}
body.hl-site .hl-section-head>a{font-size:12px;color:var(--graphite);white-space:nowrap}
body.hl-site .hl-section-head>a:hover{color:var(--laser)}
body.hl-site .hl-dashboard{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:25px}
body.hl-site .hl-panel{min-width:0;background:#fff;border:1px solid var(--grid-bold);border-radius:8px;overflow:hidden}
body.hl-site .hl-panel-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:12px 15px;background:#fbfcfe;border-bottom:1px solid var(--grid-bold);
}
body.hl-site .hl-panel-head h2{font-size:14px;font-weight:650;letter-spacing:-.02em}
body.hl-site .hl-panel-head>a{font-size:11px;color:var(--graphite);white-space:nowrap}
body.hl-site .hl-panel-head>a:hover{color:var(--laser)}
body.hl-site .hl-post-table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left}
body.hl-site .hl-post-table th{
  padding:7px 12px;background:#f7f9fc;border-bottom:1px solid #e7ebf1;
  color:var(--graphite);font-size:10.5px;font-weight:500;
}
body.hl-site .hl-post-table td{
  padding:9px 12px;border-bottom:1px solid #edf0f5;
  vertical-align:middle;font-size:12px;line-height:1.55;
}
body.hl-site .hl-post-table tr:last-child td{border-bottom:0}
body.hl-site .hl-post-table th:first-child,
body.hl-site .hl-post-table td:first-child{width:auto}
body.hl-site .hl-post-table th:nth-child(2),
body.hl-site .hl-post-table td:nth-child(2){width:78px;color:var(--graphite);font-size:10.5px;white-space:nowrap}
body.hl-site .hl-post-table th:last-child,
body.hl-site .hl-post-table td:last-child{width:58px;text-align:right;color:var(--graphite);font-size:10.5px;white-space:nowrap}
body.hl-site .hl-post-table td:first-child>a{display:inline;overflow-wrap:anywhere}
body.hl-site .hl-post-table td:first-child>a:hover{text-decoration:underline}
body.hl-site .hl-post-table em,
body.hl-site .hl-post-table .hl-comment-count{color:#7059a4;font-size:11px;font-style:normal;margin-left:4px;white-space:nowrap}
body.hl-site .hl-update{display:flex;gap:12px;align-items:baseline;padding:10px 15px;border-bottom:1px solid #edf0f5;font-size:12px;line-height:1.55}
body.hl-site .hl-update:last-child{border-bottom:0}
body.hl-site .hl-update time{font-family:var(--mono);font-size:10.5px;color:var(--graphite);flex:none;min-width:50px}
body.hl-site .hl-update a{min-width:0;overflow-wrap:anywhere}
body.hl-site .hl-update a:hover{text-decoration:underline}
body.hl-site .hl-empty{padding:18px 15px;margin:0;font-size:12px;color:var(--graphite)}
body.hl-site .hl-home+footer{margin-top:12px}

body.hl-site .hl-lab{margin-top:28px;border-top:1px solid var(--grid-bold);padding-top:22px!important}
body.hl-site .hl-lab .screen{max-width:760px;margin:0}
body.hl-site .hl-lab .hl-section-head .btn{padding:7px 11px;font-size:12px}
html[data-theme="dark"] body.hl-site header{
  background:#1b1622f5;border-color:#44374f;color:#ebe8f5;
  --ink:#ebe8f5;--graphite:#b5a8c8;--rail:#3b2e4b;--grid-bold:#44374f;--laser:#bca0ed;
}
html[data-theme="dark"] body.hl-site .mark{color:#e9ecf5}
html[data-theme="dark"] body.hl-site :is(.about .wm,.cmrail .srv img){filter:none}
html[data-theme="dark"] body.hl-site .mark em{color:#a8b2c8}
/* Dark variants remove the exterior backing and brighten neutral lettering.
   Brand colours and the original source files stay intact. */
html[data-theme="dark"] body.hl-site :is(.clogo,.subjs img){padding:0;border:0;background:transparent}
html[data-theme="dark"] body.hl-site #nav a.on{color:#cfbdf2;border-color:#b09bdb}
html[data-theme="dark"] body.hl-site #siteTheme,
html[data-theme="dark"] body.hl-site header .lang,
html[data-theme="dark"] body.hl-site #acct a{background:#2b2236;color:#ebe5f4;border-color:#51405e}
html[data-theme="dark"] body.hl-site header .lang button:hover{background:#3a2c49;color:#ebe5f4}
html[data-theme="dark"] body.hl-site header .lang button[aria-pressed="true"]{background:#6a568f;color:#fff}

html[data-theme="dark"] body.hl-site{
  --paper:#111017;--grid-fine:#24202e;--grid-bold:#3b344d;
  --ink:#ebe8f5;--graphite:#aca6bd;--rail:#30283f;--laser:#bea4ee;--brass:#dcba73;
  background-color:#111017;background-image:none;color:#ebe8f5;color-scheme:dark;
}
html[data-theme="dark"] body.hl-site[data-site-route="archive"] .comp,
html[data-theme="dark"] body.hl-site[data-site-route="archive"] .subjs a,
html[data-theme="dark"] body.hl-site .hl-home-archive .comp,
html[data-theme="dark"] body.hl-site .hl-home-archive .subjs a,
html[data-theme="dark"] body.hl-site .hl-panel{background:#1b1825;border-color:#3b344d}
html[data-theme="dark"] body.hl-site .hl-panel-head,
html[data-theme="dark"] body.hl-site .hl-post-table th{background:#25202f;border-color:#3b344d}
html[data-theme="dark"] body.hl-site .hl-post-table td,
html[data-theme="dark"] body.hl-site .hl-update{border-color:#332c41}
html[data-theme="dark"] body.hl-site .hl-post-table em,
html[data-theme="dark"] body.hl-site .hl-post-table .hl-comment-count{color:#c4adef}
html[data-theme="dark"] body.hl-site .hl-home .btn.ghost{background:#1b1825;color:#ebe8f5;border-color:#51455f}
html[data-theme="dark"] body.hl-site[data-site-route="archive"] .subjs a[aria-current="true"],
html[data-theme="dark"] body.hl-site .hl-home-archive .subjs a[aria-current="true"]{border-color:#b7a0e9;box-shadow:inset 0 0 0 1px #b7a0e9}

html[data-theme="dark"] body.hl-site .cm{
  --cm-acc:#bca0ed;--cm-acc2:#a88bd9;--cm-up:#ffa17f;--cm-down:#b7a8f0;
  --cm-rail:#19161f;--cm-rail2:#2b2437;--cm-line:#3b334a;--cm-soft:#26202f;
}
html[data-theme="dark"] body.hl-site :is(.cmpanel,.cmside,.cmauth .card,.cmcrop .box,.cmnote,.arcard,.arpanel,.arprog,.arprob,.arpk,.arstats>div,.person,.ritem,.screen){
  background:#1b1825;border-color:#3b334a;color:var(--ink);
}
html[data-theme="dark"] body.hl-site :is(.cmform label,.cmauth label,.cmauth .rules,.cmside .in,.cmcard .sn,.dcbody,.dcside .nm){color:#d4cce2}
html[data-theme="dark"] body.hl-site .cmrail{background:var(--cm-rail);color:#ccc2dc}
html[data-theme="dark"] body.hl-site .cmrail :is(.srv,.servers,.me,.auth){border-color:#3b334a}
html[data-theme="dark"] body.hl-site .cmrail :is(.servers button,a.ch,.me .ops a,.me .ops button){color:#b8accb}
html[data-theme="dark"] body.hl-site .cmrail :is(.sec,.hash,.cnt,.me .sub){color:#a397b7}
html[data-theme="dark"] body.hl-site .cmrail a.ch.on{background:#362a45;color:#eee6fa}
html[data-theme="dark"] body.hl-site .cmrail .servers button span{background:#2b2437}
html[data-theme="dark"] body.hl-site .cmrail .servers button.on span{background:#786295}
html[data-theme="dark"] body.hl-site .cmrail .auth .pri{color:#1a1224}
html[data-theme="dark"] body.hl-site :is(.cmseg,.cmtags a,.cm .cmsel,.cmbtn,.cmrec button,.arweeks a,.arseg button[aria-selected="true"]){
  background:#231d2c;border-color:#45394f;color:#ddd4e9;
}
html[data-theme="dark"] body.hl-site :is(.cmseg .on,.cmbtn.pri,.cmactivitytabs a[aria-current],.cmpg span){background:#bca0ed;border-color:#bca0ed;color:#1c1228}
html[data-theme="dark"] body.hl-site .cmbtn.pri:hover{background:#ceb4fa}
html[data-theme="dark"] body.hl-site :is(.cmtags a.on,.cmtext a,.cmactivity .source){color:#cfb4fa;border-color:#80659e}
html[data-theme="dark"] body.hl-site .cm :is(input,select,textarea){background:#141019;color:#ebe8f5;border-color:#51435f;color-scheme:dark}
html[data-theme="dark"] body.hl-site .cm :is(input,select,textarea)::placeholder{color:#9b8eac}
html[data-theme="dark"] body.hl-site .cm :is(input,select,textarea):focus{border-color:#bca0ed;box-shadow:0 0 0 3px #bca0ed22}
html[data-theme="dark"] body.hl-site :is(.cmprev,.arprev){border-color:#51435f}
html[data-theme="dark"] body.hl-site .cmtbl th{background:#211b2a;color:#b7acc7;border-color:#3b334a}
html[data-theme="dark"] body.hl-site .cmtbl td{border-color:#332b40;color:#b7acc7}
html[data-theme="dark"] body.hl-site .cmtbl td.t{color:#ebe8f5}
html[data-theme="dark"] body.hl-site .cmtbl td.t a:visited{color:#c3a9e2}
html[data-theme="dark"] body.hl-site .cmtbl tr:hover td{background:#292132}
html[data-theme="dark"] body.hl-site .cmtbl tr.nt td{background:#302823}
html[data-theme="dark"] body.hl-site .cmtbl .cc{color:#ffa3ae}
html[data-theme="dark"] body.hl-site .ar .armine td{background:#33263f!important}
html[data-theme="dark"] body.hl-site .cmtag{background:#332740;color:#d0b9f0}
html[data-theme="dark"] body.hl-site .cmtag.gen{background:#302a36;color:#c8bfd4}
html[data-theme="dark"] body.hl-site .cmtag.q{background:#193a32;color:#8cdcc0}
html[data-theme="dark"] body.hl-site .cmtag.info{background:#3c2a20;color:#f7bd89}
html[data-theme="dark"] body.hl-site .cmtag.review{background:#332442;color:#d4b8f5}
html[data-theme="dark"] body.hl-site .cmtag.bug{background:#3c222e;color:#ffb3bf}
html[data-theme="dark"] body.hl-site .cmtag.notice{background:#bca0ed;color:#1c1228}
html[data-theme="dark"] body.hl-site .cmcard:hover{background:#231c2d}
html[data-theme="dark"] body.hl-site .cmvote button:hover{background:#3c304b}
html[data-theme="dark"] body.hl-site :is(.cmc,.cmc.rp,.arsub){border-color:#3b334a}
html[data-theme="dark"] body.hl-site .cmrec .up{color:#ffa17f}
html[data-theme="dark"] body.hl-site .cmrec .dn{color:#b7a8f0}
html[data-theme="dark"] body.hl-site :is(.cmrec .up:hover,.cmrec .up.on){background:#39251f;border-color:#ffa17f}
html[data-theme="dark"] body.hl-site :is(.cmrec .dn:hover,.cmrec .dn.on){background:#30243e;border-color:#b7a8f0}
html[data-theme="dark"] body.hl-site :is(.cmerr,.cmnick.no){color:#ffabb8}
html[data-theme="dark"] body.hl-site .cmnick.ok{color:#90d8b2}
html[data-theme="dark"] body.hl-site .cmtoast{background:#3c2c4e;color:#f1e7fb}
html[data-theme="dark"] body.hl-site :is(.dcside .ct,.dcbody p){color:#b7acc7}
html[data-theme="dark"] body.hl-site .dcbody .acts a:not(.join),
html[data-theme="dark"] body.hl-site .dcbody .acts button{background:#2a2134;border-color:#45394f;color:#e2d6ef}
html[data-theme="dark"] body.hl-site .oauth a:not(.discord):not(.naver):not(.github):not(.kakao),
html[data-theme="dark"] body.hl-site .oauth span{background:#2a2134;color:#e2d6ef;border-color:#45394f}
html[data-theme="dark"] body.hl-site .ar .arkind{background:#332740;color:#d0b9f0}
html[data-theme="dark"] body.hl-site .ar .arkind.essay{background:#3c2e20;color:#efc288}
html[data-theme="dark"] body.hl-site .ar .arrep th{background:#27202f}
html[data-theme="dark"] body.hl-site :is(.ar .arrule,.ar q){background:#3d3021;color:#f0cb8f}
html[data-theme="dark"] body.hl-site .ar .arres.ok{background:#18352b;border-color:#385d4a;color:#a0e1bc}
html[data-theme="dark"] body.hl-site .ar .arres.no{background:#3b222d;border-color:#6c3e4e;color:#ffbcc8}
html[data-theme="dark"] body.hl-site :is(.arinfo.ok,.ardec.met,.arfb .good em){color:#99dcb7}
html[data-theme="dark"] body.hl-site :is(.arwarn,.ardec.partial,.arfb .fix em){color:#edc18a}
html[data-theme="dark"] body.hl-site .ardec.uncertain{color:#b7acc7}
html[data-theme="dark"] body.hl-site .lang{background:#241d2e;border-color:#45394f}
html[data-theme="dark"] body.hl-site .lang button{color:#b7acc7}
html[data-theme="dark"] body.hl-site .lang button[aria-pressed="true"]{background:#786295;color:#fff}
html[data-theme="dark"] body.hl-site .hl-cover-info .btn{background:#bca0ed;border-color:#bca0ed;color:#1c1228}
html[data-theme="dark"] body.hl-site .hl-cover-info .btn.ghost{background:#241d2e;border-color:#51435f;color:#e5d9f0}

/* Archive years, source material and exam portals share the same dark surfaces. */
html[data-theme="dark"] body.hl-site{--paper-2:#26202f;--accent:#bca0ed}
html[data-theme="dark"] body.hl-site :is(.comp,.subjs a,.yr,.prob,.cnote,.thy,.genlink,.modesw a,.rupho-stages a,.grpsel,.grpbar,.xm .xmbox){
  background:#1b1825;border-color:#3b334a;color:#ebe8f5;
}
html[data-theme="dark"] body.hl-site :is(.yr.none,.prob.soon,.ritem.soon){background:transparent}
body.hl-site .yr .dot{background:#e02424;box-shadow:0 0 0 2.5px rgba(224,36,36,.18)}
html[data-theme="dark"] body.hl-site .yr .dot{background:#ff6268;box-shadow:0 0 0 3px rgba(255,98,104,.22),0 0 9px rgba(255,98,104,.45)}
html[data-theme="dark"] body.hl-site :is(.comp:hover,.subjs a:hover,.yr:hover,.genlink:hover,.modesw a:hover,.rupho-stages a:hover){border-color:#8e71ad}
html[data-theme="dark"] body.hl-site .subjs a[aria-current="true"],
html[data-theme="dark"] body.hl-site .rupho-stages a[aria-current="page"]{border-color:#bca0ed;box-shadow:inset 0 0 0 1px #bca0ed}
html[data-theme="dark"] body.hl-site .cnote{border-left-color:#bca0ed;color:#b8acc8}
html[data-theme="dark"] body.hl-site :is(.trknote button,.yrexam a,.thy .ex a){color:#cbb0f0}
html[data-theme="dark"] body.hl-site :is(.modesw a.on,.modesw a.ex.on,.modesw a.review.on){background:#3a2a49;border-color:#ad8cd5}
html[data-theme="dark"] body.hl-site .modesw a.on b{color:#f0e5fc}
html[data-theme="dark"] body.hl-site .modesw a.on span{color:#d0bedf}
html[data-theme="dark"] body.hl-site .xm .xmnote{background:#2b2030;border-color:#584258}
html[data-theme="dark"] body.hl-site .xm .xmnote b{color:#dac1f5}
html[data-theme="dark"] body.hl-site .xm .xmnote ol{color:#c7bbd5}
html[data-theme="dark"] body.hl-site .xm .xmnote li::before{background:#bca0ed;color:#1c1228}
html[data-theme="dark"] body.hl-site .xm .xmbox h2{background:#2e223a;color:#e9daf7}
html[data-theme="dark"] body.hl-site .xm th{background:#25202f;border-color:#3b334a;color:#b7acc7}
html[data-theme="dark"] body.hl-site .xm td{border-color:#332b40}
html[data-theme="dark"] body.hl-site .xm tr.xmset td{background:#26202f}
html[data-theme="dark"] body.hl-site .xm .st{background:#332740;color:#d0b9f0}
html[data-theme="dark"] body.hl-site .xm .st.graded{background:#18392c;color:#96dfb6}
html[data-theme="dark"] body.hl-site :is(.xm .st.running,.xm .st.scanning){background:#3c2d20;color:#f2c48b}
html[data-theme="dark"] body.hl-site .xm .go{background:#bca0ed;color:#1c1228}
html[data-theme="dark"] body.hl-site .xm .go.sec{background:#241d2e;border-color:#51435f;color:#e5d9f0}
html[data-theme="dark"] body.hl-site :is(.xm .xmme .tk,.xm .xmme a.lnk){color:#cbb0f0}
html[data-theme="dark"] body.hl-site :is(.tag,.grptag){background:#2e2738;color:#bdb0d0}
html[data-theme="dark"] body.hl-site .thytag{background:#332740;color:#d0b9f0}
html[data-theme="dark"] body.hl-site :is(.grptag.ga){background:#19362d;color:#98dabb}
html[data-theme="dark"] body.hl-site :is(.grptag.gb){background:#1e3043;color:#a5d1f2}
html[data-theme="dark"] body.hl-site :is(.grptag.gc){background:#342540;color:#d4b5f2}
html[data-theme="dark"] body.hl-site .grpsel button:hover,
html[data-theme="dark"] body.hl-site .grpbar button:hover{background:#34273f;color:#ebe0f7}
html[data-theme="dark"] body.hl-site .grpsel button[aria-pressed="true"],
html[data-theme="dark"] body.hl-site .grpbar button[aria-pressed="true"]{background:#786295;color:#fff}
html[data-theme="dark"] body.hl-site .btn:hover{background:#3b2c4b;border-color:#9f7ccc;color:#f2e9fc}
html[data-theme="dark"] body.hl-site .btn.ghost:hover{background:#30253c;border-color:#9576b8;color:#f0e5fb}
html[data-theme="dark"] body.hl-site .person .av{background:#231c2c}
html[data-theme="dark"] body.hl-site .cred .cm.silver{color:#c9c5d1}
html[data-theme="dark"] body.hl-site .cred .cm.bronze{color:#dfb581}
html[data-theme="dark"] body.hl-site .noflag{background:repeating-linear-gradient(45deg,#2d2537 0 5px,#41364c 5px 10px)}
html[data-theme="dark"] body.hl-site .adfit-banner-label{color:#a396b4}
html[data-theme="dark"] body.hl-site #view input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html[data-theme="dark"] body.hl-site #view select,
html[data-theme="dark"] body.hl-site #view textarea{background:#141019;color:#ebe8f5;border-color:#51435f;color-scheme:dark}

/* wide screens and tablets in landscape: the English labels are wider than the Korean ones and the header row is
   capped by the page width, so it is kept compact enough for English — the KO/EN switch stays put in both languages */
@media(min-width:1101px){
  body.hl-site .hrow{gap:14px}
  body.hl-site #nav{gap:16px;margin-left:2px}
  body.hl-site #hlxSearch .kb{display:none}
}
@media(min-width:1101px) and (max-width:1300px){
  body.hl-site .mark em{display:none}
  body.hl-site #hlxSearch{width:31px;height:31px;padding:0;justify-content:center;flex:none}
  body.hl-site #hlxSearch .t{display:none}
  body.hl-site #nav{gap:14px}
}
@media(max-width:1100px){
  body.hl-site .hrow{
    display:grid;grid-template-columns:minmax(0,1fr) 31px auto auto;
    gap:9px 13px;padding-top:10px;padding-bottom:0;
  }
  body.hl-site .mark{grid-column:1;grid-row:1;justify-self:start}
  body.hl-site .hl-edu{grid-column:1;grid-row:1;justify-self:end;margin-left:0}
  body.hl-site #siteTheme{grid-column:2;grid-row:1}
  body.hl-site #acct{grid-column:3;grid-row:1;margin-left:0}
  body.hl-site header .lang{grid-column:4;grid-row:1;margin-left:0}
  body.hl-site #nav{
    grid-column:1/-1;grid-row:2;order:unset;margin:0;width:100%;
    gap:0;border-top:1px solid var(--grid-bold);justify-content:space-between;
  }
  body.hl-site #nav a{flex:1;text-align:center;padding:10px 3px;font-size:13px}
  body.hl-site .hl-home-header{align-items:flex-start;flex-wrap:wrap}
  body.hl-site .hl-home{padding-top:21px}
  body.hl-site .hl-home-cover{gap:21px;min-height:280px}
  body.hl-site .hl-cover-info h1,
  body.hl-site .hl-cover-info h2,
  body.hl-site .hl-cover-info h3{font-size:20px}
}
@media(max-width:640px){
  body.hl-site .hrow{grid-template-columns:minmax(105px,1fr) 28px auto 86px;column-gap:6px;row-gap:8px}
  body.hl-site .mark{
    display:grid;grid-template-columns:23px auto;column-gap:6px;row-gap:2px;
    font-size:20px;line-height:1.1;letter-spacing:-.05em;
  }
  body.hl-site .mark img{width:23px;height:23px;grid-column:1;grid-row:1/3;align-self:center}
  body.hl-site .mark em{display:block;grid-column:2;grid-row:2;font-size:7.4px;letter-spacing:.08em;padding:0}
  body.hl-site #siteTheme{width:28px;height:28px;font-size:15px}
  /* no room beside the logo on a phone: the link takes a short second line, under the buttons */
  body.hl-site .hl-edu{grid-column:1/-1;grid-row:2;justify-self:end;margin:-2px 0 6px;padding:3px 8px;font-size:11px}
  body.hl-site #acct a{gap:5px;padding:5px 6px;font-size:11px}
  body.hl-site #acct .acct-me>span:not(.cmav){display:inline;max-width:48px;font-size:10px;line-height:1.2;white-space:normal}
  body.hl-site header .lang{width:86px;padding:2px;justify-content:space-between;gap:0}
  body.hl-site header .lang button{font-size:10px;padding:4px 4px;gap:3px;letter-spacing:0}
  body.hl-site header .lang .lflag{height:10px}
  body.hl-site header .lang .lflag.ko{width:15px}
  body.hl-site header .lang .lflag.en{width:20px}
  body.hl-site #nav a{font-size:11.5px;padding-top:10px;padding-bottom:10px;letter-spacing:0}

  body.hl-site .hl-home-header{gap:13px;padding-bottom:16px;margin-bottom:18px}
  body.hl-site .hl-home-header h1{font-size:26px}
  body.hl-site .hl-home-header p{font-size:12px}
  body.hl-site .hl-home-cover{grid-template-columns:1fr;gap:12px;min-height:0;margin-bottom:18px}
  body.hl-site .hl-cover-info{padding:2px 0 8px}
  body.hl-site .hl-cover-info h1,
  body.hl-site .hl-cover-info h2,
  body.hl-site .hl-cover-info h3{font-size:20px}
  body.hl-site .hl-cover-info p{font-size:12px;margin:7px 0 12px}
  body.hl-site .hl-cover-info .cta{margin-top:12px}
  body.hl-site .hl-tools{gap:6px}
  body.hl-site .hl-tools .btn{font-size:11.5px;padding:7px 9px}
  body.hl-site .hl-section-head h2{font-size:16px}
  body.hl-site .hl-section-head>a{font-size:11px}
  body.hl-site .hl-dashboard{grid-template-columns:1fr;gap:16px;margin-top:20px}
  body.hl-site .hl-post-table th:nth-child(2),
  body.hl-site .hl-post-table td:nth-child(2){width:69px}
  body.hl-site .hl-post-table th:last-child,
  body.hl-site .hl-post-table td:last-child{width:53px}
  body.hl-site .hl-post-table td{padding-left:10px;padding-right:10px;font-size:11.5px}
  body.hl-site .hl-panel-head{padding:11px 12px}
  body.hl-site .hl-update{padding:10px 12px}
}
@media(max-width:360px){
  body.hl-site .hrow{grid-template-columns:minmax(94px,1fr) 26px auto 79px;column-gap:4px}
  body.hl-site .mark{font-size:18px;grid-template-columns:20px auto;column-gap:4px}
  body.hl-site .mark img{width:20px;height:20px}
  body.hl-site .mark em{font-size:6.8px}
  body.hl-site header .lang{width:79px}
  body.hl-site header .lang button{padding-left:3px;padding-right:3px}
  body.hl-site #acct .acct-me>span:not(.cmav){max-width:38px}
}

/* Notices stay above the current page, like a mailbox. Native dialog handles
   focus trapping, Escape and the inert background. */
body.hl-site .hl-more{border:0;padding:0;background:none;color:var(--graphite);font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}
body.hl-site .hl-more:hover{color:var(--laser)}
body.hl-site .hl-panel-actions,body.hl-site .hl-mail-head-actions{display:flex;align-items:center;gap:12px;flex:none}
body.hl-site .hl-notice-write{white-space:nowrap}
body.hl-site .hl-mail-compose:empty,body.hl-site #homeNoticeWrite:empty{display:none}
body.hl-site .hl-pin-badge{display:inline-block;margin-right:7px;color:#765626;font:600 11px/1.6 var(--sans);white-space:nowrap}
body.hl-site .hl-mailbox{box-sizing:border-box;width:min(900px,calc(100% - 40px));max-width:none;max-height:min(850px,90vh);max-height:min(850px,90svh);padding:0;border:1px solid #d5cddd;border-radius:14px;background:#fff;color:var(--ink);box-shadow:0 24px 100px #15102040;overflow:hidden}
body.hl-site .hl-mailbox[open]{display:flex;flex-direction:column}
body.hl-site .hl-mailbox::backdrop{background:#15102099;backdrop-filter:blur(3px)}
body.hl-site .hl-mail-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:24px 26px 18px;border-bottom:1px solid var(--grid-bold);flex:none}
body.hl-site .hl-mail-head h2{margin:0;font:650 22px/1.4 var(--sans);letter-spacing:-.025em}
body.hl-site .hl-mail-head p{margin:6px 0 0;font-size:12px;color:var(--graphite);line-height:1.6}
body.hl-site .hl-mail-close{display:grid;place-items:center;width:34px;height:34px;padding:0;flex:none;border:1px solid var(--grid-bold);border-radius:7px;background:none;color:var(--ink);font:26px/1 var(--sans);cursor:pointer}
body.hl-site .hl-mail-tabs{display:flex;gap:7px;padding:14px 26px;flex:none;background:#faf9fc;border-bottom:1px solid var(--grid-bold)}
body.hl-site .hl-mail-tabs button{padding:7px 16px;border:1px solid transparent;border-radius:20px;background:none;color:var(--graphite);font:500 13px/1.4 var(--sans);cursor:pointer}
body.hl-site .hl-mail-tabs button[aria-pressed="true"]{border-color:#d7cee6;background:#eee8f8;color:#5c438f}
body.hl-site .hl-mail-scroll{padding:8px 26px 24px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-gutter:stable}
body.hl-site .hl-mail-item{border-bottom:1px solid var(--grid-bold)}
body.hl-site .hl-mail-item summary{display:grid;grid-template-columns:66px minmax(0,1fr) auto 15px;align-items:center;gap:12px;list-style:none;padding:18px 0;cursor:pointer}
body.hl-site .hl-mail-item summary::-webkit-details-marker{display:none}
body.hl-site .hl-mail-kind{font-size:11px;color:var(--graphite)}
body.hl-site .hl-mail-title{font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
body.hl-site .hl-mail-item summary time{font:11px/1.5 var(--mono);color:var(--graphite);white-space:nowrap}
body.hl-site .hl-mail-chevron{color:var(--graphite);transition:transform .15s}
body.hl-site .hl-mail-item[open] .hl-mail-chevron{transform:rotate(180deg)}
body.hl-site .hl-mail-item.is-pinned .hl-mail-kind{color:#765626;font-weight:650}
body.hl-site .hl-mail-body{padding:0 0 22px 78px;font-size:14px;line-height:1.85;overflow-wrap:anywhere}
body.hl-site .hl-mail-body p{margin:0 0 15px}
body.hl-site .hl-mail-copy{white-space:pre-wrap;margin-bottom:18px}
body.hl-site .hl-mail-copy a{color:var(--laser);text-decoration:underline;text-underline-offset:3px}
body.hl-site .hl-mail-actions{display:flex;flex-wrap:wrap;gap:8px}
body.hl-site .hl-mail-status{font-size:12px;color:var(--graphite);line-height:1.8;margin:15px 0 0}
body.hl-site .hl-mail-status:empty{display:none}
body.hl-site .hl-mail-more{display:block;margin:20px auto 0}
body.hl-site .hl-mail-more[hidden]{display:none}
body.hl-site .hl-mailbox :is(button,a,summary):focus-visible{outline:2px solid var(--laser);outline-offset:4px;border-radius:5px}
html[data-theme="dark"] body.hl-site .hl-mailbox{background:#1d1826;border-color:#51435f;box-shadow:0 24px 100px #0008}
html[data-theme="dark"] body.hl-site .hl-mail-tabs{background:#251e30}
html[data-theme="dark"] body.hl-site .hl-mail-tabs button[aria-pressed="true"]{background:#3d2e50;color:#e0c7ff;border-color:#69517f}
html[data-theme="dark"] body.hl-site .hl-pin-badge,
html[data-theme="dark"] body.hl-site .hl-mail-item.is-pinned .hl-mail-kind{color:#dfbc79}
@media(max-width:600px){
  body.hl-site .hl-mailbox{width:calc(100% - 16px);max-height:94vh;max-height:94svh;border-radius:10px}
  body.hl-site .hl-mail-head{padding:18px 16px 15px;gap:10px}
  body.hl-site .hl-mail-head-actions{gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:145px}
  body.hl-site .hl-mail-head-actions .hl-notice-write{font-size:11px;padding:6px 8px}
  body.hl-site .hl-mail-head h2{font-size:19px}
  body.hl-site .hl-mail-tabs{padding:11px 16px}
  body.hl-site .hl-mail-tabs button{padding:6px 13px;font-size:12px}
  body.hl-site .hl-mail-scroll{padding:4px 16px 20px}
  body.hl-site .hl-mail-item summary{grid-template-columns:minmax(0,1fr) auto 13px;gap:5px 9px;padding:15px 0}
  body.hl-site .hl-mail-kind{grid-column:1;grid-row:1}
  body.hl-site .hl-mail-title{grid-column:1/3;grid-row:2;font-size:13px}
  body.hl-site .hl-mail-item summary time{grid-column:2;grid-row:1;font-size:10px}
  body.hl-site .hl-mail-chevron{grid-column:3;grid-row:1/3}
  body.hl-site .hl-mail-body{padding:0 0 19px;font-size:13px}
}

/* Public leaderboards keep the profile identity and score visible at every width. */
body.hl-site .ar .ar-rank-panel{padding:0;overflow:hidden}
body.hl-site .ar .ar-rank-panel>.arempty{padding:24px 16px}
body.hl-site .ar .ar-rank-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}
body.hl-site .ar .ar-rank-table caption{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.hl-site .ar .ar-rank-table th{padding:12px 10px;background:#f7f8fc;border-bottom:1px solid var(--grid-bold);color:var(--graphite);font-size:12px;font-weight:600;text-align:center}
body.hl-site .ar .ar-rank-table td{padding:14px 10px;border-bottom:1px solid var(--grid,#e6eaf0);text-align:center;color:var(--graphite);font-variant-numeric:tabular-nums;vertical-align:middle}
body.hl-site .ar .ar-rank-table tbody tr:last-child td{border-bottom:0}
body.hl-site .ar .ar-rank-table tbody tr:hover td{background:#f8f7fc}
body.hl-site .ar .ar-rank-table .ar-rank-number{width:52px}
body.hl-site .ar .ar-rank-table .ar-rank-user{text-align:left;padding-left:14px}
body.hl-site .ar .ar-rank-table .ar-rank-tier{width:144px}
body.hl-site .ar .ar-rank-table .ar-rank-score{width:94px;text-align:right}
body.hl-site .ar .ar-rank-table .ar-rank-score b{font-size:16px;color:var(--ink)}
body.hl-site .ar .ar-rank-table .ar-rank-solved-cell{width:78px}
body.hl-site .ar .ar-rank-position{display:inline-grid;place-items:center;min-width:24px;color:var(--graphite);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
body.hl-site .ar .ar-rank-person{display:flex;align-items:center;gap:12px;min-width:0;color:var(--ink);text-decoration:none;border-radius:6px}
body.hl-site .ar .ar-rank-person:visited{color:var(--ink)}
body.hl-site .ar .ar-rank-person:hover .ar-rank-name{text-decoration:underline;text-underline-offset:3px}
body.hl-site .ar .ar-rank-person:focus-visible{outline:2px solid var(--laser,#7059a4);outline-offset:4px}
body.hl-site .ar .ar-rank-person .ar-rank-avatar{width:42px;height:42px;flex:0 0 42px;object-fit:cover;object-position:center;border:1px solid var(--grid-bold);border-radius:50%;overflow:hidden}
body.hl-site .ar .ar-rank-person .ar-rank-avatar-default{display:grid;place-items:center;background:#eaf0f7;color:#73829a}
body.hl-site .ar .ar-rank-avatar-default svg{width:28px;height:28px;fill:currentColor}
body.hl-site .ar .ar-rank-person .ar-rank-identity{display:block;min-width:0;flex:1;overflow:visible;white-space:normal}
body.hl-site .ar .ar-rank-person .ar-rank-name{display:block;overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;font-size:15px;font-weight:700;line-height:1.4}
body.hl-site .ar .ar-rank-person .ar-rank-meta{display:flex;align-items:center;flex-wrap:wrap;gap:3px 9px;margin-top:4px;color:var(--graphite);font-size:11px;line-height:1.4}
body.hl-site .ar .ar-rank-meta .artier{font-size:11px}
body.hl-site .ar .ar-rank-person .ar-rank-mobile-meta{display:none}
body.hl-site .ar .ar-rank-top{list-style:none;padding:0;margin:2px 0 14px}
body.hl-site .ar .ar-rank-top li{display:flex;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid var(--grid,#e6eaf0)}
body.hl-site .ar .ar-rank-top li:last-child{border-bottom:0}
body.hl-site .ar .ar-rank-top li>.ar-rank-position{flex:0 0 22px;overflow:visible}
body.hl-site .ar .ar-rank-top .ar-rank-person{flex:1;gap:9px}
body.hl-site .ar .ar-rank-top .ar-rank-avatar{width:36px;height:36px;flex-basis:36px}
body.hl-site .ar .ar-rank-top .ar-rank-name{font-size:13.5px}
body.hl-site .ar .ar-rank-top-score{flex:none;text-align:right;line-height:1.35;font-variant-numeric:tabular-nums}
body.hl-site .ar .ar-rank-top-score b{display:block;color:var(--ink);font-size:15px}
body.hl-site .ar .ar-rank-top-score small{display:block;color:var(--graphite);font-size:10px}
html[data-theme="dark"] body.hl-site .ar .ar-rank-table th{background:#25202f;border-color:#3b334a}
html[data-theme="dark"] body.hl-site .ar .ar-rank-table td,
html[data-theme="dark"] body.hl-site .ar .ar-rank-top li{border-color:#332b40}
html[data-theme="dark"] body.hl-site .ar .ar-rank-table tbody tr:hover td{background:#292132}
html[data-theme="dark"] body.hl-site .ar .ar-rank-person .ar-rank-avatar{border-color:#51435f}
html[data-theme="dark"] body.hl-site .ar .ar-rank-person .ar-rank-avatar-default{background:#332c40;color:#c2b2d4}
html[data-theme="dark"] body.hl-site .ar .ar-rank-table .artier[style*="--c:#2d2d2d"],
html[data-theme="dark"] body.hl-site .ar .ar-rank-top .artier[style*="--c:#2d2d2d"]{color:#b8accb}
@media(max-width:760px){
  body.hl-site .ar .ar-rank-table .ar-rank-tier,
  body.hl-site .ar .ar-rank-table .ar-rank-solved-cell{display:none}
  body.hl-site .ar .ar-rank-table .ar-rank-number{width:34px}
  body.hl-site .ar .ar-rank-table .ar-rank-score{width:72px}
  body.hl-site .ar .ar-rank-table th{padding:11px 7px}
  body.hl-site .ar .ar-rank-table td{padding:12px 7px}
  body.hl-site .ar .ar-rank-table .ar-rank-user{padding-left:4px}
  body.hl-site .ar .ar-rank-table .ar-rank-person{gap:9px}
  body.hl-site .ar .ar-rank-table .ar-rank-avatar{width:36px;height:36px;flex-basis:36px}
  body.hl-site .ar .ar-rank-table .ar-rank-name{font-size:14px}
  body.hl-site .ar .ar-rank-table .ar-rank-mobile-meta{display:flex}
  body.hl-site .ar .ar-rank-table .ar-rank-score b{font-size:15px}
}

/* Keep the experiment beside its statement without replacing the answer workspace. */
body.hl-site .ar-experiment{margin-top:22px;min-width:0}
body.hl-site .ar-experiment-toolbar{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--grid-bold)}
body.hl-site .ar-experiment-toolbar .cmbtn[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--paper,#fff)}
body.hl-site .ar-experiment-toolbar>span{margin-left:auto;font-size:11px;color:var(--graphite)}
body.hl-site .ar-experiment-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;align-items:start;min-width:0}
body.hl-site .ar-experiment[data-mode="split"] .ar-experiment-workspace{grid-template-columns:minmax(0,1.08fr) minmax(0,1fr)}
body.hl-site .ar-experiment-workspace>.arstmt{min-width:0;margin-top:0}
body.hl-site .ar-experiment-lab{min-width:0;position:sticky;top:90px;border:1px solid var(--grid-bold);border-radius:8px;overflow:hidden;background:var(--paper,#fff)}
body.hl-site .ar-experiment-lab[hidden],body.hl-site .ar-experiment .arstmt[hidden]{display:none}
body.hl-site .ar-experiment-lab-title{display:flex;align-items:center;justify-content:space-between;padding:11px 14px;border-bottom:1px solid var(--grid-bold);font-size:12px;color:var(--ink)}
body.hl-site .ar-experiment-lab-title>span{font:11px var(--mono);color:var(--graphite)}
body.hl-site .ar-experiment-lab iframe{display:block;width:100%;height:clamp(420px,68dvh,720px);border:0;color-scheme:light dark}
body.hl-site .ar-experiment-lab>.arnote{margin:0;padding:12px 14px;border-top:1px solid var(--grid-bold);font-size:11px;line-height:1.7}
html[data-theme="dark"] body.hl-site .ar-experiment-toolbar .cmbtn[aria-pressed="true"]{background:#bea4ee;border-color:#bea4ee;color:#1b1226}
html[data-theme="dark"] body.hl-site .ar-experiment-lab{background:#17131f}
@media(max-width:1199px){
  body.hl-site .ar-experiment-toolbar .ar-experiment-split{display:none}
  body.hl-site .ar-experiment-lab{position:static}
}
@media(max-width:600px){
  body.hl-site .ar-experiment-toolbar>span{width:100%;margin:3px 0 0}
  body.hl-site .ar-experiment-lab iframe{height:68dvh;min-height:380px}
}

/* The canonical monthly capture workspace shares the homepage's black/purple palette. */
body.hl-site .ar .armonthly-capture{display:grid;grid-template-columns:minmax(270px,340px) minmax(0,1fr);gap:22px;align-items:start;margin:16px 0 22px}
body.hl-site .ar .arpanel.armonthly-qr-card{margin:0;padding:24px;border:1px solid #50405f;border-radius:14px;background:#1b1625;color:#eee8f7;box-shadow:0 7px 22px #15102012}
body.hl-site .ar .armonthly-qr-eyebrow{display:block;margin-bottom:8px;font:600 10px/1.7 var(--mono);letter-spacing:.05em;color:#bca3dc}
body.hl-site .ar .armonthly-qr-card h4{margin:0 0 18px;color:#eee8f7;font-size:19px;line-height:1.5;letter-spacing:-.025em}
body.hl-site .ar .armonthly-qr-card .arnote{color:#c4b7d3;font-size:12px;line-height:1.8}
body.hl-site .ar .armonthly-qr-code{width:min(208px,100%);padding:12px;margin:0 auto 18px;border:1px solid #eadff5;border-radius:11px;background:#fff;color:#21172c}
body.hl-site .ar .armonthly-qr-code svg{display:block;width:100%;height:auto}
body.hl-site .ar .armonthly-qr-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
body.hl-site .ar .armonthly-qr-card .cmbtn{border-color:#675276;background:#2b2238;color:#eadff7;white-space:normal;text-align:center}
body.hl-site .ar .armonthly-qr-card .cmbtn.pri{border-color:#bea4ee;background:#bea4ee;color:#1b1226}
body.hl-site .ar .armonthly-qr-card [data-capture-start]{display:block;margin:10px auto 18px;min-height:42px;padding:10px 20px}
body.hl-site .ar .armonthly-qr-card .armonthly-qr-private{margin:18px 0 0;padding-top:16px;border-top:1px solid #44364f;color:#b4a4c6;font-size:11px;line-height:1.8}
body.hl-site .ar .armonthly-qr-card .armonthly-qr-steps{display:grid;gap:8px;margin:14px 0 0;padding-left:20px}
body.hl-site .ar .armonthly-qr-card .armonthly-qr-steps li::marker{color:#c7a9ee;font-weight:700}
body.hl-site .ar .armonthly-qr-card :is(button,a):focus-visible{outline:2px solid #d4b7ff;outline-offset:4px}
@media(max-width:860px){body.hl-site .ar .armonthly-capture{grid-template-columns:1fr}}
@media(max-width:600px){
  body.hl-site .ar .arpanel.armonthly-qr-card{padding:20px}
  body.hl-site .ar .armonthly-capture{gap:18px}
  body.hl-site .ar .armonthly-qr-card h4{font-size:18px}
}

/* ═══ site-ux.js: quick ways in, continue, search, "done" marks, the phone tab bar ═══ */
body.hl-site{--hlx-card:#fff;--hlx-acc:#5d43b0;--hlx-acc-soft:rgba(93,67,176,.09)}
html[data-theme="dark"] body.hl-site{--hlx-card:#1a1622;--hlx-acc:#bca0ed;--hlx-acc-soft:rgba(188,160,237,.13)}
.hlx-home{margin:22px 0 4px}
.hlx-cont{display:flex;align-items:center;gap:14px 18px;flex-wrap:wrap;border:1px dashed var(--grid-bold);border-radius:12px;padding:12px 16px;background:var(--hlx-card)}
.hlx-cont .m{min-width:0;flex:1 1 260px}
.hlx-cont .m b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hlx-cont .m span{font-size:12.5px;color:var(--graphite)}
.hlx-cont .more{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:12px;color:var(--graphite)}
.hlx-cont .more a{border:1px solid var(--grid-bold);border-radius:999px;padding:2px 9px;color:var(--ink);text-decoration:none}
.hlx-cont .go{background:var(--hlx-acc);color:#fff;border-radius:8px;padding:8px 14px;text-decoration:none;font-weight:600;font-size:13px;white-space:nowrap}
html[data-theme="dark"] body.hl-site .hlx-cont .go{color:#16121d}
#hlxSearch{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--grid-bold);border-radius:999px;padding:5px 8px 5px 10px;background:var(--hlx-card);color:var(--graphite);font:13px var(--sans);cursor:pointer;white-space:nowrap}
#hlxSearch:hover{border-color:var(--hlx-acc);color:var(--ink)}
#hlxSearch svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
#hlxSearch .kb{font:500 10.5px var(--mono);border:1px solid var(--grid-bold);border-bottom-width:2px;border-radius:4px;padding:0 5px}
@media(max-width:1100px){
  body.hl-site .hrow{grid-template-columns:minmax(0,1fr) 31px 31px auto auto}
  body.hl-site #hlxSearch{grid-column:2;grid-row:1;width:31px;height:31px;padding:0;justify-content:center}
  body.hl-site #hlxSearch .t,body.hl-site #hlxSearch .kb{display:none}
  body.hl-site #siteTheme{grid-column:3} body.hl-site #acct{grid-column:4} body.hl-site header .lang{grid-column:5}
}
@media(max-width:640px){
  html.hlx-has-tabs body.hl-site #hlxSearch{display:none}
  html.hlx-has-tabs body.hl-site .hrow{grid-template-columns:minmax(0,1fr) auto auto auto}
  html.hlx-has-tabs body.hl-site #siteTheme{grid-column:2} html.hlx-has-tabs body.hl-site #acct{grid-column:3} html.hlx-has-tabs body.hl-site header .lang{grid-column:4}
}
.hlx-dim{position:fixed;inset:0;z-index:200;background:rgba(18,24,33,.38);display:flex;justify-content:center;align-items:flex-start;padding:min(14vh,110px) 12px 12px}
.hlx-pal{width:min(620px,100%);background:var(--hlx-card);border:1px solid var(--grid-bold);border-radius:14px;box-shadow:0 18px 44px rgba(18,24,33,.28);overflow:hidden;color:var(--ink)}
.hlx-pal input{width:100%;border:0;border-bottom:1px solid var(--grid-fine);padding:15px 18px;font:16px var(--sans);background:transparent;color:var(--ink);outline:none}
.hlx-pal ul{list-style:none;margin:0;padding:6px;max-height:min(420px,56vh);overflow:auto}
.hlx-pal li{display:flex;gap:10px;align-items:center;padding:9px 12px;border-radius:9px;cursor:pointer;font-size:14px}
.hlx-pal li[aria-selected="true"]{background:var(--hlx-acc-soft)}
.hlx-pal li .k{font:500 10.5px var(--mono);border:1px solid var(--grid-bold);border-radius:4px;padding:0 6px;color:var(--graphite);min-width:46px;text-align:center;flex:none}
.hlx-pal li .l{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hlx-pal li .s{margin-left:auto;color:var(--hlx-acc);font-size:11px}
.hlx-pal li.none{cursor:default;color:var(--graphite);font-size:13px;line-height:1.5}
.hlx-pal .f{display:flex;gap:14px;padding:8px 16px;border-top:1px solid var(--grid-fine);font:11px var(--mono);color:var(--graphite)}
@media(hover:none){.hlx-pal .f{display:none}}
.hlx-done{font:500 11px var(--mono);color:#2f8a5b;border:1px solid currentColor;border-radius:4px;padding:0 6px;margin-right:8px;white-space:nowrap}
html[data-theme="dark"] body.hl-site .hlx-done{color:#6fcf97}
.hlx-filter{display:flex;gap:6px;margin:0 0 14px}
.hlx-filter button{border:1px solid var(--grid-bold);border-radius:999px;padding:4px 12px;background:var(--hlx-card);color:var(--ink);font:12.5px var(--sans);cursor:pointer}
.hlx-filter button[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
#hlxTabs{display:none}
@media(max-width:640px){
  html.hlx-has-tabs #nav{display:none}
  html.hlx-has-tabs #hlxTabs{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:fixed;left:0;right:0;bottom:0;z-index:70;background:var(--hlx-card);border-top:1px solid var(--grid-bold);
    padding:5px max(4px,env(safe-area-inset-left,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(4px,env(safe-area-inset-right,0px))}
  #hlxTabs a,#hlxTabs button{display:grid;justify-items:center;gap:1px;padding:4px 0;font:10.5px var(--sans);color:var(--graphite);text-decoration:none;white-space:nowrap;border:0;background:none;cursor:pointer;min-width:0}
  #hlxTabs svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
  #hlxTabs a[aria-current="page"]{color:var(--hlx-acc);font-weight:600}
  html.hlx-has-tabs body{padding-bottom:calc(64px + env(safe-area-inset-bottom,0px))}
  html.hlx-has-tabs .hlai-btn{bottom:calc(74px + env(safe-area-inset-bottom,0px))!important}
}
@media print{#hlxTabs,#hlxSearch,.hlx-dim{display:none!important}}

/* monthly photographed answers: each sent page as in exam/contest grading, the photo beside its recognized text, and an
   enlarged view (arMonthlyPageZoom) with the photo large beside the full transcript */
body.hl-site .ar .armonthly-page-grid{display:grid;grid-template-columns:minmax(150px,42%) minmax(0,1fr);gap:14px;margin-top:10px;align-items:start}
body.hl-site .ar .armonthly-page-photo img{display:block;width:100%;height:auto;max-height:420px;object-fit:contain;border:1px solid var(--grid-fine,#dce7f1);border-radius:8px;background:#fff;cursor:zoom-in}
body.hl-site .ar .armonthly-page-read{max-height:420px;overflow:auto;border:1px solid var(--grid-fine,#dce7f1);border-radius:8px;padding:10px 12px;background:var(--paper,#fbfcfd)}
body.hl-site .ar .armonthly-page-read-h{display:block;font-size:13px;margin-bottom:6px}
body.hl-site .ar .armonthly-page-zoom{margin-top:8px}
@media(max-width:640px){body.hl-site .ar .armonthly-page-grid{grid-template-columns:1fr}}
.armonthly-zoom{position:fixed;inset:0;z-index:1000;background:rgba(10,14,24,.62);display:flex;align-items:center;justify-content:center;padding:18px}
.armonthly-zoom-card{background:var(--paper,#fbfcfd);color:var(--ink,#151a2d);border-radius:12px;width:min(1400px,100%);max-height:calc(100vh - 36px);display:flex;flex-direction:column;box-shadow:0 18px 60px rgba(0,0,0,.35)}
.armonthly-zoom-head{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--grid-fine,#dce7f1)}
.armonthly-zoom-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:16px;padding:16px;overflow:hidden;min-height:0}
.armonthly-zoom-photo{overflow:auto;max-height:calc(100vh - 120px)}
.armonthly-zoom-photo img{display:block;width:100%;height:auto;border-radius:8px;background:#fff}
.armonthly-zoom-read{overflow:auto;max-height:calc(100vh - 120px);padding-right:6px}
@media(max-width:860px){.armonthly-zoom-body{grid-template-columns:1fr;overflow:auto}.armonthly-zoom-photo,.armonthly-zoom-read{max-height:none}}
body.hl-site .ar .armonthly-page-photo [hidden]{display:none!important}

/* the one-off arrival announcement (site-ux.js notice) */
.hlx-notice{position:fixed;inset:0;z-index:1200;background:rgba(10,14,24,.5);display:flex;align-items:center;justify-content:center;padding:18px}
.hlx-notice-card{background:var(--paper,#fbfcfd);color:var(--ink,#151a2d);border-radius:14px;max-width:420px;width:100%;padding:26px 24px 18px;box-shadow:0 18px 60px rgba(0,0,0,.3)}
.hlx-notice-card h2{font-size:21px;margin:0 0 12px;line-height:1.35}
.hlx-notice-card p{margin:0 0 6px;font-size:15px;line-height:1.6;color:var(--graphite,#3a4256)}
.hlx-notice-actions{display:flex;gap:10px;margin-top:18px}
.hlx-notice-go{flex:1;text-align:center;background:#6f4dcc;color:#fff!important;border-radius:10px;padding:11px 14px;font-weight:600;text-decoration:none}
.hlx-notice-actions button{background:transparent;border:1px solid var(--grid-bold,#b4cadc);border-radius:10px;padding:11px 16px;color:inherit;cursor:pointer}
.hlx-notice-never{display:flex;align-items:center;gap:6px;margin-top:14px;font-size:13px;color:var(--graphite,#5a6378);cursor:pointer}
html[data-theme="dark"] .hlx-notice-card{background:#1c1825;color:#ede7f6}
html[data-theme="dark"] .hlx-notice-card p{color:#c9c0d8}

/* the HaslaEdu Windows app (site-ux.js: ?desktop=1): a PC window, so the pages use more of its width */
html.hl-desktop body.hl-site .shell{max-width:1440px}
html.hl-desktop body.hl-site .archive-reading>.archive-categories{max-width:1360px}

/* HPhO (hpho.js) and the tab between it and the monthly problems */
body.hl-site .hpho-tabs{display:flex;gap:4px;margin:18px 0 0;border-bottom:1px solid var(--grid-bold,#d5dbe6)}
body.hl-site .hpho-tabs a{padding:9px 14px;font-weight:600;font-size:14px;color:#5c6b7a;text-decoration:none;border-bottom:2px solid transparent;margin-bottom:-1px}
body.hl-site .hpho-tabs a[aria-current="page"]{color:#5c438f;border-color:#7059a4}
body.hl-site .hpho{padding-bottom:60px}
body.hl-site .hpho-note{max-width:70ch;margin:6px 0 18px;padding:12px 14px;border-left:3px solid #7059a4;background:#f6f3fc;border-radius:6px;font-size:14px;line-height:1.6}
body.hl-site .hpho-facts{list-style:none;padding:0;margin:0 0 24px;display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
body.hl-site .hpho-facts li{border:1px solid #d5dbe6;border-radius:10px;padding:12px 14px;background:#fff;display:flex;flex-direction:column;gap:4px}
body.hl-site .hpho-facts b{font-size:15px}body.hl-site .hpho-facts span{font-size:13px;color:#5c6b7a}
body.hl-site .hpho-round,body.hl-site .hpho-rules{border:1px solid #d5dbe6;border-radius:12px;background:#fff;padding:18px 20px;margin:0 0 18px}
body.hl-site .hpho-round h2,body.hl-site .hpho-rules h2{font-size:18px;margin:0}
body.hl-site .hpho-round-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.hl-site .hpho-status{font-size:12px;font-weight:700;padding:4px 9px;border-radius:999px;background:#eef1f6;color:#43516d}
body.hl-site .hpho-status.is-open{background:#e7f6ec;color:#1d7a3e}
body.hl-site .hpho-muted{color:#5c6b7a;font-size:13px;margin:6px 0}
body.hl-site .hpho-times{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px 18px;margin:12px 0 16px}
body.hl-site .hpho-times dt{font-size:12px;color:#5c6b7a}body.hl-site .hpho-times dd{margin:2px 0 0;font-weight:600}
body.hl-site .hpho-form{display:grid;gap:12px;max-width:560px;margin-top:10px}
body.hl-site .hpho-form h3{margin:0;font-size:16px}
body.hl-site .hpho-form label{display:grid;gap:5px;font-size:13px;font-weight:600}
body.hl-site .hpho-form select{padding:8px 10px;border:1px solid #c9d1de;border-radius:7px;font:inherit;font-weight:400;background:#fff;color:inherit}
body.hl-site .hpho-form .hpho-check{display:flex;gap:8px;align-items:flex-start;font-weight:400;line-height:1.5}
body.hl-site .hpho-form .hpho-check input{margin-top:3px;flex:none}
body.hl-site .hpho-btn{display:inline-block;justify-self:start;padding:10px 16px;border:0;border-radius:8px;background:#2f3a4d;color:#fff;font:600 14px/1 var(--sans);cursor:pointer;text-decoration:none}
body.hl-site .hpho-link{border:0;background:none;color:#b42318;cursor:pointer;padding:6px 0;font:inherit;font-size:13px;text-decoration:underline}
body.hl-site .hpho-mine{border-top:1px dashed #d5dbe6;padding-top:12px}
body.hl-site .hpho-badge{display:inline-block;margin:0 0 6px;font-size:12px;font-weight:700;color:#1d7a3e}
body.hl-site .hpho-no{font-family:var(--mono);font-size:18px;letter-spacing:.06em}
body.hl-site .hpho-rules ol{margin:10px 0 0;padding-left:20px;display:grid;gap:8px;line-height:1.6;font-size:14px}
html[data-theme="dark"] body.hl-site .hpho-facts li,html[data-theme="dark"] body.hl-site .hpho-round,html[data-theme="dark"] body.hl-site .hpho-rules{background:#17131f;border-color:#3b344d}
html[data-theme="dark"] body.hl-site .hpho-note{background:#231b2e}
html[data-theme="dark"] body.hl-site .hpho-form select{background:#141019;border-color:#51435f}
html[data-theme="dark"] body.hl-site .hpho-btn{background:#bca0ed;color:#17131f}
html[data-theme="dark"] body.hl-site .hpho-tabs a[aria-current="page"]{color:#c9b8f0;border-color:#bca0ed}
body.hl-site .hpho-form [hidden]{display:none}

/* a tablet narrow enough that the logo and the Edu link would meet: the link gets its own short line above the menu */
@media(min-width:641px) and (max-width:820px){
  body.hl-site .hl-edu{grid-column:1/-1;grid-row:2;justify-self:end;margin:-4px 0 2px;padding:3px 8px;font-size:11px}
  body.hl-site #nav{grid-row:3}
}
body.hl-site .hpho-rules ul{margin:10px 0 0;padding-left:20px;display:grid;gap:6px;line-height:1.6;font-size:14px}
body.hl-site .hpho-rules>p{margin:8px 0 0;font-size:14px}
body.hl-site .hpho-aid{display:grid;gap:10px;padding:12px;border:1px dashed #c9d1de;border-radius:8px}
body.hl-site .hpho-aid [hidden]{display:none}
body.hl-site .hpho-form textarea{padding:8px 10px;border:1px solid #c9d1de;border-radius:7px;font:inherit;font-weight:400;background:#fff;color:inherit;resize:vertical}
html[data-theme="dark"] body.hl-site .hpho-form textarea{background:#141019;border-color:#51435f}

/* HPhO exam page (hpho-exam.js): one bar with the candidate number, the lights and the clock, MIPT-style */
body.hl-site .hpho-exam-bar{position:sticky;top:0;z-index:20;display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:16px 0;padding:12px 16px;border:1px solid #d5dbe6;border-radius:10px;background:#fff;font-size:14px}
body.hl-site .hpho-exam-title{font-size:15px;margin-right:auto}
body.hl-site .hpho-light{display:inline-flex;align-items:center;gap:6px;font-size:13px}
body.hl-site .hpho-light::before{content:"";width:9px;height:9px;border-radius:50%;background:#9aa4b2}
body.hl-site .hpho-light.is-ok::before{background:#1d9a4d}body.hl-site .hpho-light.is-bad::before{background:#d92d20}
body.hl-site .hpho-exam-clock b{font-family:var(--mono);font-size:20px;margin-left:6px}
body.hl-site .hpho-exam-clock.is-low b{color:#d92d20}
body.hl-site .hpho-exam-big{font-family:var(--mono);font-size:44px;font-weight:700;margin:4px 0 14px}
body.hl-site .hpho-checks{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:8px;max-width:520px}
body.hl-site .hpho-checks li{display:flex;justify-content:space-between;padding:10px 12px;border:1px solid #d5dbe6;border-radius:8px}
body.hl-site .hpho-checks li.is-ok b{color:#1d7a3e}body.hl-site .hpho-checks li.is-bad b{color:#b42318}
body.hl-site .hpho-exam-rules{margin:0 0 16px;padding-left:20px;display:grid;gap:6px;line-height:1.6;font-size:14px}
body.hl-site .hpho-btn:disabled{opacity:.45;cursor:not-allowed}
html[data-theme="dark"] body.hl-site .hpho-exam-bar{background:#17131f;border-color:#3b344d}
html[data-theme="dark"] body.hl-site .hpho-checks li{border-color:#3b344d}
body.hl-site .hpho-self{position:fixed;right:16px;bottom:16px;width:176px;height:132px;object-fit:cover;border-radius:10px;border:2px solid #7059a4;background:#000;z-index:60;transform:scaleX(-1)}

/* the HPhO logo: a light and a dark file, the site's theme picks one */
body.hl-site .hpho-logo{margin:0;line-height:0}
body.hl-site .hpho-wordmark{height:clamp(84px,14vw,128px);width:auto}
body.hl-site .hpho-exam-icon{width:30px;height:30px;vertical-align:middle;margin-right:10px}
body.hl-site .hpho-logo-dark,html[data-theme="dark"] body.hl-site .hpho-logo-light{display:none}
html[data-theme="dark"] body.hl-site .hpho-logo-dark{display:inline-block}

/* the HPhO exam page fills the exam window: none of the site around it */
body.hl-site[data-site-route="hpho-exam"]>header,body.hl-site[data-site-route="hpho-exam"]>footer,
body.hl-site[data-site-route="hpho-exam"] .hlai-btn,body.hl-site[data-site-route="hpho-exam"] .hlai-panel,
body.hl-site[data-site-route="hpho-exam"] .adfit-side,body.hl-site[data-site-route="hpho-exam"] .adfit-banner,
body.hl-site[data-site-route="hpho-exam"] #haslalab-adfit-banner,body.hl-site[data-site-route="hpho-exam"] .rail,
body.hl-site[data-site-route="hpho-exam"] .hlx-notice{display:none!important}
/* the technical check: a larger preview, the step's instructions and a sound meter */
body.hl-site .hpho-check-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
body.hl-site .hpho-check-grid{display:grid;grid-template-columns:minmax(260px,400px) minmax(0,1fr);gap:24px 56px;align-items:start;margin-top:12px}
body.hl-site .hpho-check-grid .hpho-checks{margin:0;max-width:none}
body.hl-site .hpho-check-side{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,1fr);grid-auto-rows:min-content;gap:14px 20px;min-width:0;align-items:start}
body.hl-site .hpho-check-media,body.hl-site .hpho-check-info{display:grid;gap:14px;min-width:0;align-content:start}
body.hl-site .hpho-check-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin:0;min-height:40px}
body.hl-site .hpho-self-slot{position:relative;aspect-ratio:4/3;border-radius:12px;background:#0f0d16;overflow:hidden;display:grid;place-items:center;color:#a49cb8;font-size:14px}
body.hl-site .hpho-self-slot .hpho-self{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0}
body.hl-site .hpho-check-side .hpho-step{margin:0;max-width:none}
body.hl-site .hpho-check-problem{padding:12px 14px;border:1px solid #f0c4bf;border-radius:10px;background:#fdf3f2}
body.hl-site .hpho-check-problem .hpho-form-msg{margin:0}
html[data-theme="dark"] body.hl-site .hpho-check-problem{background:#2a1716;border-color:#6b2f2a}
@media (max-width:1180px){body.hl-site .hpho-check-side{grid-template-columns:1fr}body.hl-site .hpho-check-grid{column-gap:32px}}
@media (max-width:860px){body.hl-site .hpho-check-grid{grid-template-columns:1fr}}
body.hl-site .hpho-step{margin:16px 0 0;padding:14px 16px;max-width:520px;border:1px solid #7059a4;border-radius:10px;background:#f6f3fb}
body.hl-site .hpho-step h3{margin:0 0 6px;font-size:16px}body.hl-site .hpho-step p{margin:6px 0}
body.hl-site .hpho-step-quote{font-size:18px;font-weight:600}
body.hl-site .hpho-meter{height:10px;border-radius:5px;background:#e3deee;overflow:hidden;margin:10px 0}
body.hl-site .hpho-meter i{display:block;height:100%;width:0;background:#1d7a3e;transition:width .1s linear}
html[data-theme="dark"] body.hl-site .hpho-step{background:#1d1828;border-color:#5b4a85}
html[data-theme="dark"] body.hl-site .hpho-meter{background:#2b2540}

/* HPhO exam entrance (theory above, experiment below), waiting room, paper viewer and submission page */
body.hl-site .hpho-tracks{display:grid;gap:12px;margin-top:12px}
body.hl-site .hpho-track{border:1px solid #d5dbe6;border-radius:10px;padding:14px 16px}
body.hl-site .hpho-track-head{display:flex;align-items:baseline;gap:10px}body.hl-site .hpho-track-head h3{margin:0;font-size:17px}
body.hl-site .hpho-track-when{margin:6px 0 2px;font-weight:600}
body.hl-site .hpho-track p{margin:6px 0}
body.hl-site .hpho-room-grid{display:grid;grid-template-columns:minmax(240px,340px) minmax(0,1fr);gap:16px 40px;align-items:start;margin:8px 0 16px}
body.hl-site .hpho-room h3,body.hl-site .hpho-upload h3{font-size:16px;margin:16px 0 4px}
body.hl-site .hpho-lang{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600}
body.hl-site .hpho-lang select{padding:7px 10px;border:1px solid #c9d1de;border-radius:7px;font:inherit;background:#fff;color:inherit}
body.hl-site .hpho-pv{margin-top:10px}
body.hl-site .hpho-pv-bar{position:sticky;top:72px;z-index:5;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;background:inherit}
body.hl-site .hpho-pv-tabs,body.hl-site .hpho-pv-zoom{display:flex;flex-wrap:wrap;gap:6px}
body.hl-site .hpho-pv-bar button{padding:7px 12px;border:1px solid #c9d1de;border-radius:7px;background:#fff;color:inherit;font:600 13px/1 var(--sans);cursor:pointer}
body.hl-site .hpho-pv-tabs button[aria-pressed="true"]{background:#2f3a4d;border-color:#2f3a4d;color:#fff}
body.hl-site .hpho-pv-pages{display:grid;gap:12px;justify-items:center;overflow-x:auto}
body.hl-site .hpho-pv-page{width:100%;display:grid;justify-items:center;background:#f3f4f7;border-radius:4px}
body.hl-site .hpho-pv-page canvas{display:block;box-shadow:0 1px 4px rgba(0,0,0,.18);user-select:none}
body.hl-site .hpho-over{border-color:#d92d20}body.hl-site .hpho-over h2{color:#b42318}
body.hl-site .hpho-over-pen{font-size:18px;font-weight:700;margin:10px 0 4px}
body.hl-site .hpho-upload-grid{display:grid;grid-template-columns:minmax(260px,420px) minmax(0,1fr);gap:16px 32px;align-items:start;margin-top:10px}
body.hl-site .hpho-btn-quiet{background:#eef1f6;color:#2f3a4d}
body.hl-site .hpho-thumbs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
body.hl-site .hpho-thumbs img{width:84px;height:112px;object-fit:cover;border:1px solid #d5dbe6;border-radius:6px}
body.hl-site .hpho-step-cue{font-weight:700;color:#5c6b7a}body.hl-site .hpho-step-cue.is-now{color:#1d7a3e;font-size:18px}
@media (max-width:860px){body.hl-site .hpho-room-grid,body.hl-site .hpho-upload-grid{grid-template-columns:1fr}}
html[data-theme="dark"] body.hl-site .hpho-track{border-color:#3b344d}
html[data-theme="dark"] body.hl-site .hpho-lang select,html[data-theme="dark"] body.hl-site .hpho-pv-bar button{background:#141019;border-color:#51435f}
html[data-theme="dark"] body.hl-site .hpho-pv-tabs button[aria-pressed="true"]{background:#bca0ed;border-color:#bca0ed;color:#17131f}
html[data-theme="dark"] body.hl-site .hpho-pv-page{background:#221d2c}
html[data-theme="dark"] body.hl-site .hpho-btn-quiet{background:#2b2540;color:#e6def7}
body.hl-site .hpho-admin{margin-top:16px;border-top:1px dashed #d5dbe6;padding-top:12px}
body.hl-site .hpho-admin summary{cursor:pointer;font-weight:700}
body.hl-site .hpho-admin input[type=file],body.hl-site .hpho-admin input:not([type]){font:inherit;font-weight:400}
body.hl-site .hpho-table-wrap{overflow-x:auto}
body.hl-site .hpho-table{border-collapse:collapse;font-size:13px;min-width:720px}
body.hl-site .hpho-table th,body.hl-site .hpho-table td{padding:6px 8px;border-bottom:1px solid #e3e7ee;text-align:left;white-space:nowrap}
body.hl-site .hpho-table tr.is-review{background:#fff6e5}
body.hl-site .hpho-status.is-review{background:#fff1d6;color:#9a5b00}
body.hl-site .hpho-events{font-size:12px;max-height:320px;overflow:auto;padding-left:18px;font-family:var(--mono)}
html[data-theme="dark"] body.hl-site .hpho-table tr.is-review{background:#2c2316}
body.hl-site .hpho-scan-view{font-size:22px;font-weight:700;color:#5c438f;margin:10px 0}body.hl-site .hpho-scan-view b{font-family:var(--mono);margin-left:8px}
body.hl-site .hpho-live{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:10px;margin-top:8px}
body.hl-site .hpho-live-tile{border:1px solid #d5dbe6;border-radius:8px;padding:8px;font-size:12px}
body.hl-site .hpho-live-tile.is-review{border-color:#e0a030}body.hl-site .hpho-live-tile.is-off{opacity:.7;border-color:#d92d20}
body.hl-site .hpho-live-tile header{display:flex;align-items:center;gap:8px;margin-bottom:6px}
body.hl-site .hpho-live-pics{display:grid;grid-template-columns:1fr 1.3fr;gap:4px}
body.hl-site .hpho-live-pics img,body.hl-site .hpho-live-pics span{width:100%;aspect-ratio:4/3;object-fit:cover;background:#0f0d16;border-radius:4px;display:grid;place-items:center;color:#a49cb8}
body.hl-site .hpho-live-tile ul{margin:6px 0 0;padding-left:16px}
body.hl-site .hpho-clips{font-size:12px;columns:2;padding-left:18px}
body.hl-site .hpho-clip-video{width:100%;max-width:720px;margin-top:8px;background:#000}
html[data-theme="dark"] body.hl-site .hpho-live-tile{border-color:#3b344d}
body.hl-site .hpho-cover{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:rgba(20,10,10,.96);color:#fff;text-align:center;padding:24px}
body.hl-site .hpho-cover h2{font-size:26px;margin:0 0 10px;color:#ffb4ab}body.hl-site .hpho-cover p{font-size:17px;max-width:44ch;margin:0 auto}
/* HPhO phone (hpho-phone.js) */
body.hl-site .hpho-phone{max-width:560px;margin:0 auto;padding:12px 16px 40px}
body.hl-site .hpho-phone-title{font-size:20px;margin:8px 0 2px}
body.hl-site .hpho-phone h2{font-size:18px;margin:12px 0 6px}
body.hl-site .hpho-phone-cam{position:relative;aspect-ratio:16/9;background:#0f0d16;border-radius:10px;overflow:hidden;margin:10px 0}
body.hl-site .hpho-phone-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body.hl-site .hpho-phone-steps{display:flex;flex-wrap:wrap;gap:6px;list-style:none;padding:0;margin:8px 0;font-size:12px}
body.hl-site .hpho-phone-steps li{padding:4px 8px;border-radius:999px;background:#eef1f6}body.hl-site .hpho-phone-steps li.is-ok{background:#e7f6ec;color:#1d7a3e}body.hl-site .hpho-phone-steps li.is-now{background:#7059a4;color:#fff}
body.hl-site .hpho-phone-hint{font-weight:700;font-size:18px;min-height:1.4em}body.hl-site .hpho-phone-hint.is-bad{color:#d92d20}
body.hl-site .hpho-phone-live{color:#d92d20}
body.hl-site .hpho-qr{display:grid;grid-template-columns:200px minmax(0,1fr);gap:16px;align-items:center;margin:10px 0}
body.hl-site .hpho-qr svg{width:200px;height:200px;background:#fff;padding:8px;border-radius:8px}
body.hl-site .hpho-qr ul{list-style:none;padding:0;margin:0;display:grid;gap:4px;font-size:14px}body.hl-site .hpho-qr li.is-ok::before{content:"✓ ";color:#1d7a3e}body.hl-site .hpho-qr li:not(.is-ok)::before{content:"… ";color:#9aa4b2}
body.hl-site .hpho-phone-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:90;display:flex;gap:16px;align-items:center;padding:12px 16px;border-radius:12px;background:#fff3f2;border:2px solid #d92d20}
body.hl-site .hpho-phone-banner svg{width:120px;height:120px;background:#fff;padding:4px}
html[data-theme="dark"] body.hl-site .hpho-phone-steps li{background:#2b2540}
body.hl-site[data-site-route="hpho-exam"] #hlxTabs{display:none!important}
/* network badge (exam bar, phone), Monito-style: three bars */
body.hl-site .hpho-net{display:inline-flex;align-items:flex-end;gap:2px;font-size:12px;white-space:nowrap}
body.hl-site .hpho-net i{display:inline-block;width:4px;background:#c9d1de;border-radius:1px}body.hl-site .hpho-net i:nth-child(1){height:5px}body.hl-site .hpho-net i:nth-child(2){height:8px}body.hl-site .hpho-net i:nth-child(3){height:11px;margin-right:4px}
body.hl-site .hpho-net.is-good i{background:#1d9a4d}body.hl-site .hpho-net.is-fair i:nth-child(-n+2){background:#d98c00}body.hl-site .hpho-net.is-poor i:nth-child(1){background:#d92d20}body.hl-site .hpho-net.is-off{color:#d92d20}
body.hl-site .hpho-allow-list{margin:8px 0;padding-left:20px;display:grid;gap:4px;font-size:14px}
body.hl-site .hpho-phone-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
body.hl-site .hpho-phone-guide{display:grid;grid-template-columns:120px 1fr;gap:12px;align-items:center;margin:8px 0}
body.hl-site .hpho-example{margin:0;text-align:center;font-size:11px;color:#5c6b7a}body.hl-site .hpho-example svg{width:120px;height:90px}
body.hl-site .hpho-example .ex-wall{fill:#d5dbe6}body.hl-site .hpho-example .ex-desk{fill:#b8a27a}body.hl-site .hpho-example .ex-me{fill:#7059a4}
body.hl-site .hpho-example .ex-phone rect{fill:#2f3a4d}body.hl-site .hpho-example .ex-ray{stroke:#7059a4;stroke-width:1.5;stroke-dasharray:3 3;fill:none}
body.hl-site .hpho-example .ex-arrow{stroke:#1d7a3e;stroke-width:2;fill:none}body.hl-site .hpho-example .ex-head{fill:#1d7a3e}
body.hl-site .hpho-example .ex-sweep{transform-origin:100px 100px;animation:hphoSweep 3.2s ease-in-out infinite alternate}
body.hl-site .hpho-example .ex-tilt-up{animation:hphoTiltUp 3.2s ease-in-out infinite alternate}body.hl-site .hpho-example .ex-tilt-down{animation:hphoTiltDown 3.2s ease-in-out infinite alternate}
@keyframes hphoSweep{from{transform:rotate(-40deg)}to{transform:rotate(40deg)}}
@keyframes hphoTiltUp{from{transform:rotate(0)}to{transform:rotate(-55deg)}}@keyframes hphoTiltDown{from{transform:rotate(0)}to{transform:rotate(55deg)}}
body.hl-site .hpho-meter-big{height:16px;border-radius:8px}
@media (prefers-reduced-motion:reduce){body.hl-site .hpho-example .ex-phone{animation-duration:6s}}
body.hl-site .hpho-example .ex-ring{fill:none;stroke:#d5dbe6;stroke-width:6}
body.hl-site .hpho-example .ex-spin{animation:hphoSpin 6s linear infinite}@keyframes hphoSpin{to{transform:rotate(360deg)}}
body.hl-site .hpho-track-box{position:absolute;inset:0;width:100%;height:100%;transform:scaleX(-1);pointer-events:none}
body.hl-site .hpho-example .ex-monitor{fill:#2f3a4d}body.hl-site .hpho-example .ex-key{fill:#9aa4b2}body.hl-site .hpho-example .ex-pawn{fill:#7059a4}
body.hl-site .hpho-example .ex-back{stroke-dasharray:4 3}
body.hl-site .hpho-example .ex-pan{animation:hphoPan 3.6s ease-in-out infinite alternate}@keyframes hphoPan{from{transform:translateX(-56px)}to{transform:translateX(56px)}}
body.hl-site .hpho-example .ex-nod-up{animation:hphoNodUp 4s ease-in-out infinite}@keyframes hphoNodUp{0%,15%{transform:rotate(0)}50%,60%{transform:rotate(-60deg)}95%,100%{transform:rotate(0)}}
body.hl-site .hpho-example .ex-nod-down{animation:hphoNodDown 4s ease-in-out infinite}@keyframes hphoNodDown{0%,15%{transform:rotate(0)}50%,60%{transform:rotate(60deg)}95%,100%{transform:rotate(0)}}
body.hl-site .hpho-phone-video.is-front{transform:scaleX(-1)}body.hl-site .hpho-flip{font-size:15px;color:#5c438f}
body.hl-site .hpho-forbidden{border:2px solid #d92d20;background:#fff1f0;border-radius:10px;padding:12px 14px;margin-top:10px}
body.hl-site .hpho-forbidden h3{margin:0 0 6px;color:#b42318;font-size:18px}body.hl-site .hpho-forbidden-item{font-size:20px;font-weight:800;margin:4px 0;color:#b42318}
html[data-theme="dark"] body.hl-site .hpho-forbidden{background:#3a1512;border-color:#ff6b5e}html[data-theme="dark"] body.hl-site .hpho-forbidden h3,html[data-theme="dark"] body.hl-site .hpho-forbidden-item{color:#ff9a90}
body.hl-site .hpho-samples p{font-size:14px;line-height:1.6;margin:8px 0 12px;color:#465269}
body.hl-site .hpho-sample-table{width:100%;border-collapse:collapse;font-size:14px}
body.hl-site .hpho-sample-table td{padding:10px 8px;border-top:1px solid #e3e8f0;vertical-align:middle}
body.hl-site .hpho-sample-table td small{display:block;color:#657187;font-size:12px}
body.hl-site .hpho-sample-table td a + small{display:inline;margin-left:2px}
body.hl-site .hpho-sample-code{font-weight:700;color:#5c438f;width:3.2em}
body.hl-site .hpho-sample-other{font-size:12.5px;text-align:right}
html[data-theme="dark"] body.hl-site .hpho-samples p{color:#c9c3d8}
html[data-theme="dark"] body.hl-site .hpho-sample-table td{border-color:#3b344d}
@media(max-width:640px){body.hl-site .hpho-sample-table tr{display:grid;grid-template-columns:3em 1fr;padding:8px 0;border-top:1px solid #e3e8f0}
  body.hl-site .hpho-sample-table td{border:0;padding:3px 4px}body.hl-site .hpho-sample-table td:nth-child(n+3){grid-column:2}
  body.hl-site .hpho-sample-other{text-align:left}}
body.hl-site .hpho-samples p.hpho-sample-guides{font-size:14px;margin:0 0 10px}
body.hl-site .hpho-sample-guides b{margin-right:6px}
body.hl-site .hpho-sample-alt{font-size:12px;margin-left:2px}
body.hl-site .hpho-sample-sim{font-size:12.5px;font-weight:600;white-space:nowrap}
