/* Shared presentation layer for Bayee's learning tools. Content and behaviour stay in each page. */
body.bayee-page.bayee-tool{
  --serif:var(--by-font);
  --page:var(--paper);
  --card:var(--white);
  color:var(--ink);
  background:var(--paper);
}

body.bayee-page.bayee-tool > .topbar,
body.bayee-page.bayee-tool > .bar,
body.bayee-page.bayee-tool > footer,
body.bayee-page.bayee-tool .mini-foot,
body.bayee-page.bayee-tool .site-return,
body.bayee-page.bayee-tool .wrap > .foot,
body.bayee-page.bayee-tool .card > .foot{display:none!important}

body.bayee-page.bayee-tool .wrap,
body.bayee-page.bayee-tool main.wrap{
  width:min(1120px,calc(100% - 40px));
  max-width:1120px;
  margin:0 auto;
  padding:32px 0 64px;
}
body.bayee-page.bayee-tool[data-bayee-section="privacy"] .wrap{max-width:880px}

body.bayee-page.bayee-tool :is(h1,h2,h3,h4,h5,h6){
  font-family:var(--by-font)!important;
  color:var(--ink);
  letter-spacing:-.35px;
}
body.bayee-page.bayee-tool :is(main,.wrap) a{color:var(--orange-dark)}

body.bayee-page.bayee-tool .hero{
  position:relative;
  isolation:isolate;
  margin:0 0 20px;
  padding:30px clamp(22px,4vw,46px);
  background:var(--cream)!important;
  color:var(--ink)!important;
  border:1px solid var(--line)!important;
  border-radius:20px!important;
  box-shadow:none!important;
  text-align:left!important;
}
body.bayee-page.bayee-tool .hero::before{display:none!important}
body.bayee-page.bayee-tool .hero :is(h1,h2){
  margin:0 0 8px;
  color:var(--ink)!important;
  background:none!important;
  -webkit-text-fill-color:currentColor!important;
  font-size:clamp(27px,4vw,38px)!important;
  line-height:1.27;
}
body.bayee-page.bayee-tool .hero p{color:#526174!important;font-size:15px;line-height:1.8}
body.bayee-page.bayee-tool .hero .badge,
body.bayee-page.bayee-tool .hero .eyebrow{
  display:inline-block;
  margin:0 0 10px;
  padding:4px 10px;
  background:#fff!important;
  color:var(--orange-dark)!important;
  border:1px solid #efc99d;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  letter-spacing:1px;
}
body.bayee-page.bayee-tool .hero :is(.hnote,.release-note,.stats,.st){color:#5f6f80!important}
body.bayee-page.bayee-tool .hero .hnote,
body.bayee-page.bayee-tool .hero .st{
  background:#fff!important;
  border:1px solid var(--line)!important;
  color:#526174!important;
  box-shadow:none!important;
}
body.bayee-page.bayee-tool .hero .st b{color:var(--orange-dark)!important;font-family:var(--by-font)!important}

body.bayee-page.bayee-tool :is(.panel,.card,.reader,.acard,.qcard,.pcard,.vcard,.gcard,.stat,.w,.vocab-detail,.grade,.stickybar){
  background:var(--white)!important;
  border-color:var(--line)!important;
  box-shadow:none!important;
}
body.bayee-page.bayee-tool :is(.panel,.card,.reader){border-radius:16px!important}
body.bayee-page.bayee-tool :is(.passage,.part-figure,.note,.gloss,.scorebar,.code-box,.dim,.wprompt,.pguide,.exqexp){
  background:#fff8ef!important;
  border-color:var(--line)!important;
  box-shadow:none!important;
}
body.bayee-page.bayee-tool :is(.panel,.card,.reader) :is(h2,h3,h4){color:var(--ink)!important}
body.bayee-page.bayee-tool :is(.muted,.hint,.lab,.meta,.sub,.ameta,.lvnote,.srcnote,.mini-foot){color:var(--muted)!important}

body.bayee-page.bayee-tool :is(button,.btn,.button,.tab,.more){
  font-family:var(--by-font)!important;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
body.bayee-page.bayee-tool :is(.btn,.button,button:not(.vocab-spk)){
  background:var(--orange)!important;
  color:#fff!important;
  border:1px solid var(--orange)!important;
  box-shadow:none!important;
}
body.bayee-page.bayee-tool :is(.btn,.button,button:not(.vocab-spk)):hover{background:var(--orange-dark)!important}
body.bayee-page.bayee-tool :is(.btn.ghost,.button.ghost,button.ghost,.btn.grey){
  background:#fff!important;
  color:var(--orange-dark)!important;
  border-color:#e8b579!important;
}
body.bayee-page.bayee-tool :is(.tab,.seg button,.more){
  background:#fff!important;
  border-color:var(--line)!important;
  color:#526174!important;
  box-shadow:none!important;
}
body.bayee-page.bayee-tool :is(.tab.on,.seg button.on,.extools .on){
  background:var(--orange)!important;
  color:#fff!important;
  border-color:var(--orange)!important;
}
body.bayee-page.bayee-tool .tab.tab-dl{color:var(--orange-dark)!important;border-color:#e8b579!important}
body.bayee-page.bayee-tool .vocab-spk{border-color:#e8b579!important;color:var(--orange-dark)!important;background:#fff!important}
body.bayee-page.bayee-tool .vocab-spk:hover,
body.bayee-page.bayee-tool .vocab-spk.playing{background:var(--orange)!important;color:#fff!important}

body.bayee-page.bayee-tool :is(input[type="text"],input[type="tel"],input[type="search"],select,textarea){
  background:#fff!important;
  color:var(--ink)!important;
  border-color:var(--line)!important;
  border-radius:10px!important;
}
body.bayee-page.bayee-tool :is(input[type="text"],input[type="tel"],input[type="search"],select,textarea):focus{
  border-color:var(--orange)!important;
  box-shadow:0 0 0 3px rgba(238,132,28,.14)!important;
}
body.bayee-page.bayee-tool .file-box{background:#fffaf6!important;border-color:#e8b579!important}
body.bayee-page.bayee-tool .file-box:hover{background:#fff3e5!important;border-color:var(--orange)!important}

body.bayee-page.bayee-tool .pcard,
body.bayee-page.bayee-tool .vcard{border-left-color:var(--orange)!important}
body.bayee-page.bayee-tool .pcard:hover{background:#fff8ef!important;transform:none!important}
body.bayee-page.bayee-tool .stickybar{top:94px!important}
body.bayee-page.bayee-tool .bar .track{background:#f7eadc!important}
body.bayee-page.bayee-tool .bar .fill{background:var(--orange)!important}
body.bayee-page.bayee-tool .ww,
body.bayee-page.bayee-tool .vf-w,
body.bayee-page.bayee-tool .rk,
body.bayee-page.bayee-tool .yearrow .y,
body.bayee-page.bayee-tool .res b,
body.bayee-page.bayee-tool .stat .v{color:var(--orange-dark)!important;font-family:var(--by-font)!important}
body.bayee-page.bayee-tool .w.open{border-color:#e8b579!important}

body.bayee-page.bayee-tool[data-bayee-section="writing"] .grid{gap:20px}
body.bayee-page.bayee-tool[data-bayee-section="writing"] .hero .eyebrow{color:var(--orange-dark)!important}
body.bayee-page.bayee-tool[data-bayee-section="writing"] .notice{background:#fff3e5!important;border-color:#efc99d!important;color:#71512c!important}
body.bayee-page.bayee-tool[data-bayee-section="writing"] .facts li{border-color:var(--line)!important}
body.bayee-page.bayee-tool[data-bayee-section="privacy"] .card{padding:clamp(24px,5vw,42px)!important}
body.bayee-page.bayee-tool[data-bayee-section="privacy"] h2{border-left-color:var(--orange)!important}

@media(max-width:760px){
  body.bayee-page.bayee-tool .wrap,
  body.bayee-page.bayee-tool main.wrap{width:calc(100% - 32px);padding:24px 0 48px}
  body.bayee-page.bayee-tool .hero{padding:24px 20px;margin-bottom:16px}
  body.bayee-page.bayee-tool .hero :is(h1,h2){font-size:27px!important}
  body.bayee-page.bayee-tool .stickybar{top:128px!important}
  body.bayee-page.bayee-tool .panel,
  body.bayee-page.bayee-tool .card,
  body.bayee-page.bayee-tool .reader{padding:18px!important}
}
