/* Shared legal footer is outside paper/export roots and hidden in embedded lessons. */
.yc-site-legal{padding:20px 16px;text-align:center;font:12px/1.7 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:inherit;opacity:.8}
.yc-site-legal a{color:inherit;text-decoration:none}.yc-site-legal a:hover{text-decoration:underline;text-underline-offset:3px}
.kbemb .yc-site-legal,.yc-embedded .yc-site-legal{display:none}.yc-stage-current{font-size:13px;white-space:nowrap;opacity:.85}
.yc-header-account{display:flex;align-items:center;flex-shrink:0}
@media print{.yc-site-legal{display:none!important}}

/* Keep the eight math sections on one row when space allows. */
@media (min-width: 1161px) {
  .top .yc-math-nav {max-width: 1480px; gap: clamp(8px, 1vw, 16px)}
  .top .yc-math-nav .links {gap: clamp(9px, 1vw, 16px); font-size: 14px}
}
/* Accounts on the home and paper-builder headers need more room. */
@media (min-width: 1280px) {
  .top .yc-math-nav .links {display: flex}
}
.top .yc-math-nav .menu .drop a[aria-current="page"] {
  background: rgba(60, 179, 113, .20); color: #fff; font-weight: 700;
}
@media (max-width: 360px) {
  .top .yc-math-nav {padding-inline: 10px; column-gap: 4px}
  .top .yc-math-nav > .brand {gap: 6px}
}
