/* Navigation and app layout shared by the browser and Telegram Mini App. */
.learning-hq .hq-symbols {position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.learning-hq .appwrap {
  --hq-safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px));
  --hq-safe-left:max(env(safe-area-inset-left,0px),var(--tg-content-safe-area-inset-left,0px),var(--tg-safe-area-inset-left,0px));
  --hq-safe-right:max(env(safe-area-inset-right,0px),var(--tg-content-safe-area-inset-right,0px),var(--tg-safe-area-inset-right,0px));
}
.learning-hq .appwrap,.learning-hq .brandbar,.learning-hq .brandbar *,.learning-hq #nav,.learning-hq #nav * {box-sizing:border-box}
.learning-hq.hq-document {margin:0}
.learning-hq.hq-document .hq-body > main {min-width:0}
.learning-hq .brandbar a:focus-visible,.learning-hq .brandbar summary:focus-visible,.learning-hq #nav a:focus-visible {outline:3px solid #fae0a3;outline-offset:-3px}
.learning-hq .appwrap .sr-only {position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.learning-hq .phone.appwrap {
  width:100%;
  max-width:1800px;
  min-height:100dvh;
  padding:0;
  border:0;
  margin:0 auto;
  font-family:var(--body);
}
.learning-hq .hq-body {min-width:0;padding-bottom:max(8px,var(--hq-safe-bottom))}
.learning-hq .hq-body .main {width:100%;max-width:1180px;min-width:0;margin:0 auto;padding:clamp(16px,2.6vw,38px)}
.learning-hq.in-home .hq-body .main {max-width:none;padding:0}
.learning-hq .hq-body #notice:not(:empty),.learning-hq #comment-reward-notice:not(:empty) {margin:12px clamp(14px,2.3vw,36px)}
.learning-hq .hq-body #balance:empty {display:none}
.learning-hq .hq-body #notice button {margin-left:.4em}
.learning-hq .brandbar {
  position:relative;z-index:30;min-width:0;width:auto;max-width:none;margin:0;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:max(10px,env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px)) clamp(14px,3vw,30px) 10px;
  background:#101c22;border:0;border-bottom:1px solid #304044;
}
.learning-hq .brandbar a,.learning-hq #nav a {font-family:var(--body);text-decoration:none}
.learning-hq .brandbar .brand {
  flex:0 1 auto;display:inline-flex;align-items:center;justify-content:flex-start;gap:9px;margin:0;padding:0;
  border:0;background:transparent;font-size:21px;font-weight:730;color:var(--ink);line-height:1;letter-spacing:-.03em;
}
.learning-hq .brandbar .brand img {width:32px;height:32px;object-fit:contain;border:0;border-radius:0;background:transparent}
.learning-hq .brandbar .brand small {display:block;margin-top:4px;font-size:9px;line-height:1.15;font-weight:600;letter-spacing:.085em;color:#b1c2bc}
.learning-hq .brandbar .brandnav {
  position:static;transform:none;display:flex;align-items:center;gap:4px;width:auto;max-width:none;
  background:transparent;border:0;padding:0;margin:0;
}
.learning-hq .brandbar .brandnav a,.learning-hq .brandbar .navmore summary,.learning-hq .brandbar #profile {
  display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:9px;
  margin:0;min-width:0;min-height:42px;padding:8px 10px;
  border:0;border-radius:5px;background:transparent;color:#d0ded7;
  font-size:14px;font-weight:550;line-height:1.25;white-space:normal;
}
.learning-hq .brandbar .icon,.learning-hq #nav .icon {
  display:block;width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;
  stroke-linecap:round;stroke-linejoin:round;
}
.learning-hq .brandbar .brandnav a:hover,.learning-hq .brandbar .navmore summary:hover,.learning-hq .brandbar #profile:hover {background:#203431;color:#d7f8e8}
.learning-hq .brandbar .brandnav a:is(.active,[aria-current="page"],[aria-current="location"]),.learning-hq .brandbar #profile:is(.active,[aria-current="page"]) {background:#203932;color:#bcf9d6;box-shadow:inset 2px 0 #81e9bb}
.learning-hq .brandbar .navmore {position:relative;margin:0;padding:0;background:transparent;border:0}
.learning-hq .brandbar .navmore summary {list-style:none;cursor:pointer}
.learning-hq .brandbar .navmore summary::-webkit-details-marker {display:none}
.learning-hq .brandbar .navmore[open] summary {background:#203431}
.learning-hq .brandnav:not(:has(> a[aria-current])) .navmore:has(a[aria-current="page"]) > summary {
  color:#bcf9d6;background:#203932;
}
.learning-hq .brandbar .navitems {
  position:absolute;top:100%;right:0;z-index:25;width:212px;max-width:calc(100vw - 30px);
  max-height:min(60dvh,400px);overflow:auto;overscroll-behavior:contain;
  padding:6px;background:#15282b;border:1px solid #3b514e;border-radius:7px;box-shadow:0 9px 23px #0006;
}
.learning-hq .brandbar #profile {display:grid;grid-template-columns:18px auto;justify-content:start;column-gap:6px;row-gap:1px;min-height:42px}
.learning-hq .brandbar #profile .icon {grid-column:1;grid-row:1 / span 2;align-self:center}
.learning-hq .brandbar #profile .hq-account-label,.learning-hq .brandbar #profile .header-points {grid-column:2}
.learning-hq .brandbar #profile .header-points {font:600 12px/1.2 var(--body);color:var(--accent)}
.learning-hq .hq-prize-action {display:block;margin-top:3px;color:var(--accent);font-weight:650}
.learning-hq #nav.mobiletabs {display:none}

@media (min-width:1020px) {
  .learning-hq .phone.appwrap {display:grid;grid-template-columns:clamp(168px,13.2vw,210px) minmax(0,1fr);align-items:start}
  .learning-hq .brandbar {
    position:sticky;top:0;flex-direction:column;align-items:stretch;justify-content:flex-start;
    gap:23px;height:100vh;height:100dvh;overflow-y:auto;overscroll-behavior:contain;
    padding:24px 12px max(16px,var(--hq-safe-bottom));
    border-bottom:0;border-right:1px solid #314247;background:linear-gradient(155deg,#17272b,#101b21 78%);
  }
  .learning-hq .brandbar .brand {min-height:35px;padding-left:2px}
  .learning-hq .brandbar .brandnav {flex-direction:column;align-items:stretch}
  .learning-hq .brandbar .brandnav>a,.learning-hq .brandbar .navmore summary {width:100%;flex:0 0 auto;min-height:40px}
  .learning-hq .brandbar .navitems {
    position:static;width:100%;max-width:none;max-height:none;
    margin:2px 0 0;padding:2px 0 2px 6px;border:0;border-left:1px solid #39554c;border-radius:0;box-shadow:none;background:transparent;
  }
  .learning-hq .brandbar #profile {margin-top:auto}
}
@media (max-width:1019px) {
  .learning-hq .hq-body {padding-bottom:calc(64px + var(--hq-safe-bottom))}
  .learning-hq .appwrap :target {scroll-margin-bottom:calc(64px + var(--hq-safe-bottom))}
  .learning-hq .brandbar {padding-left:max(clamp(14px,3vw,30px),var(--hq-safe-left));padding-right:max(clamp(14px,3vw,30px),var(--hq-safe-right))}
  .learning-hq .brandbar .brandnav {margin-left:auto}
  .learning-hq .brandbar .brandnav>a {display:none}
  .learning-hq .brandbar #profile,.learning-hq .brandbar .navmore summary {min-height:44px}
  .learning-hq #nav.mobiletabs {
    position:fixed;bottom:0;left:0;right:0;transform:none;z-index:28;width:100%;max-width:none;margin:0;border-radius:0;
    display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:center;gap:0;
    border-top:1px solid #344549;background:#101c22;
    padding:3px max(5px,var(--hq-safe-right)) calc(3px + var(--hq-safe-bottom)) max(5px,var(--hq-safe-left));
  }
  .learning-hq #nav.mobiletabs a {
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
    min-width:0;min-height:49px;padding:4px 1px;background:transparent;color:#c1d0cb;
    border:0;border-radius:5px;font:550 12px/1.15 var(--body);
  }
  .learning-hq #nav.mobiletabs a:is(.active,[aria-current="page"],[aria-current="location"]) {color:#baf3d4;background:#1a302e}
  .learning-hq .phone .brandbar .navitems a {min-height:44px}
}
@media (max-width:480px) {
  .learning-hq .brandbar {gap:4px;padding-left:max(10px,var(--hq-safe-left));padding-right:max(10px,var(--hq-safe-right))}
  .learning-hq .brandbar .brand {gap:5px;font-size:18px}
  .learning-hq .brandbar .brand img {width:28px;height:28px}
  .learning-hq .brandbar .brand small {font-size:8px}
  .learning-hq .brandbar #profile,.learning-hq .brandbar .navmore summary {padding-inline:7px;font-size:12px}
  .learning-hq .brandbar .navmore summary {gap:4px}
  .learning-hq .brandbar #profile .header-points {font-size:11px}
}
@media (max-width:359px) {
 .learning-hq .brandbar .brand img {width:24px;height:24px}
 .learning-hq .brandbar .navmore summary {min-width:44px;justify-content:center}
}

@media print {
  .learning-hq .phone.appwrap {display:block;min-height:0}
  .learning-hq .brandbar,.learning-hq #nav.mobiletabs {display:none}
  .learning-hq .hq-body {padding-bottom:0}
}
