/* Phone repairs, Nov 17. Desktop compositions remain in their page styles. */
@media (max-width: 1024px) {
  .cp-header .cp-brand .cp-disclosure {
    display: block;
  }
  .cp-header .cp-site-desktop {
    display: none;
  }
  .cp-header .cp-site-mobile {
    display: inline;
  }
  .cp-header .cp-site-trigger {
    gap: 5px;
    padding-inline: 4px;
    font-size: 15px;
    color: inherit;
  }
  .cp-header .cp-brand {
    gap: 8px;
  }
  .cp-header .cp-bar .cp-contact,
  .cp-header .cp-bar .cp-login {
    display: none !important;
  }
  .cp-header .cp-sites {
    left: 0;
    min-width: 180px;
    max-width: calc(100vw - 40px);
  }
  .cp-header .cp-sites .cp-choice {
    min-height: 44px;
  }
  .cp-drawer {
    --panel: #fff;
    --preview-ink: #171b18;
    --soft-ink: #626762;
    --rule: #e5e5e2;
    --hover: #f2f3f1;
    background: #fff !important;
    color: #171b18 !important;
  }
  .cp-drawer .cp-drawer-inner {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  .cp-drawer .cp-drawer-heading {
    margin-bottom: 4px;
    background: #fff;
  }
  .cp-drawer .cp-drawer-link {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 12px 3px;
    border-bottom: 1px solid var(--rule);
    font-size: 17px;
    font-weight: 600;
  }
  .cp-drawer .cp-drawer-actions {
    gap: 4px;
    margin-top: 24px;
  }
  .cp-drawer .cp-drawer-actions .cp-contact {
    min-height: 50px;
    background: #171b18 !important;
    color: #fff !important;
    border: 0;
    border-radius: 8px;
  }
  .cp-drawer-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-size: 16px;
    font-weight: 500;
  }
  .cp-drawer .cp-menu-link {
    min-height: 48px;
    padding: 8px 10px;
  }
  .cp-drawer .cp-menu-link small,
  .cp-drawer .cp-menu-art,
  .cp-drawer .cp-menu-heading {
    display: none;
  }
  .cp-drawer .cp-menu-grid {
    padding-left: 8px;
  }
  .cp-drawer .cp-menu-grid > section + section {
    margin-top: 0;
  }
  .cp-drawer .cp-menu-link strong {
    font-weight: 500;
  }
  .cp-drawer :focus-visible {
    outline: 2px solid #171b18;
    outline-offset: 2px;
  }
  .cp-drawer .cp-close-button:focus:not(:focus-visible) {
    outline: none;
  }
  /* Main-site navigation shares the same phone hierarchy. */
  body .site-header .rt,
  body .site-header .nav {
    display: none !important;
  }
  body .site-header .menu-btn {
    display: block;
    width: 44px;
    height: 44px;
    margin-left: auto;
  }
  body .site-header .bar {
    height: 66px;
    min-height: 66px;
  }
  body.page-home .site-header {
    background: transparent !important;
    color: #fff !important;
    border: 0;
    backdrop-filter: none;
  }
  body.page-home .site-header :is(.logo, .menu-btn) {
    color: #fff;
  }
  body .drawer {
    background: #fff;
    color: #171b18;
    padding-top: 78px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  body .drawer .logo {
    color: #171b18 !important;
    font-size: 31px;
    top: 16px !important;
  }
  body .drawer .drawer-close {
    top: 11px;
    color: #171b18;
  }
  body .drawer .d-link {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0;
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e2;
    color: #171b18;
  }
  body .drawer .d-lang {
    min-height: 54px;
    border-bottom: 1px solid #e5e5e2;
    padding-block: 5px;
  }
  body .drawer .d-actions {
    display: grid;
    gap: 4px;
    margin-top: 24px;
  }
  body .drawer .d-actions .btn {
    margin: 0;
    min-height: 50px;
    border: 0;
    border-radius: 8px;
    background: #171b18;
    color: white;
  }
  body .drawer .d-signin {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-size: 16px;
  }
  /* All education heroes use their flat page colour on phones. */
  body.world-schools main > .band-hero {
    background-image: none !important;
    background-color: var(--page) !important;
  }
  /* Keep every feature visible on phones, including longer translated names. */
  body.page-schools #students.v-a .stu-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
  }
  body.page-schools #students.v-a .stu-tabs .stu-tab {
    min-width: 0;
    font-size: clamp(20px, 5.6vw, 28px);
    white-space: normal;
    line-height: 1.2;
    opacity: 1;
    color: #645c52;
  }
  body.page-schools #students.v-a .stu-tabs .stu-tab.is-on {
    color: #171b18;
  }
  body.page-schools #students.v-a .stu-slide .sx-list {
    display: flex !important;
    flex-flow: row wrap;
    justify-content: center;
    height: auto;
    gap: 6px;
    list-style: none;
    margin: 0 0 18px;
    padding: 20px 0 0;
  }
  body.page-schools #students.v-a .sx-list > li {
    flex: 0 1 auto;
    max-width: 100%;
    min-width: 0;
  }
  body.page-schools #students.v-a .sx-list .sx-more {
    display: none;
  }
  body.page-schools #students.v-a .sx-list .sx-it {
    display: flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 6px 10px;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    font: inherit;
    color: var(--ink);
    text-align: left;
  }
  body.page-schools #students.v-a .sx-list .sx-it.is-on {
    background: #fffaf2;
    color: #211d17;
    border-color: #998573;
  }
  body.page-schools #students.v-a .sx-list .sx-it img {
    display: block;
    width: 29px;
    height: 29px;
    object-fit: contain;
    flex: none;
  }
  body.page-schools #students.v-a .sx-list .sx-it > span {
    display: none;
  }
  body.page-schools #students.v-a .sx-list .sx-it b {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
    color: inherit;
  }
  body.page-schools #students.v-a .stu-slide .sx-picker {
    display: none !important;
  }
  body.page-schools #students {
    padding-top: 36px !important;
  }
  /* Remove stacked decorative frames from the class previews. */
  html body.page-students #class .hb-cards {
    gap: 36px;
    margin-top: 28px;
  }
  html body.page-students #class .hb-card {
    padding: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
  }
  html body.page-students #class .hb-well {
    height: auto;
    padding: 0;
    background: none;
    border-radius: 16px;
    overflow: hidden;
  }
  html body.page-students #class .hb-win {
    width: 100%;
    height: 350px;
    padding: 14px;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px #e5dfd5;
  }
  html body.page-students #class .hb-card > h3 {
    margin: 18px 0 0;
    font-size: 22px;
  }
  html body.page-students #class .hb-card > p {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.5;
  }
  html body.page-students #class .hb-asst {
    height: 360px;
  }
  html body.page-students #class .hb-asst .hb-chat {
    flex: 1;
    min-height: 0;
  }
  html body.page-students #class .hb-in {
    margin-top: 10px;
  }
  body.page-students .band-hero.side.st-hero .hero-split {
    gap: 28px;
  }
  body.page-students .st-hero .hv {
    margin-top: 0 !important;
  }
  body.page-students .st-hero .hv-ipad {
    box-shadow:
      inset 0 0 0 1px #555,
      0 12px 24px -20px #0006;
  }
  body.page-students .hv-scr.rn.is-interactive {
    aspect-ratio: auto;
    height: 350px;
  }
  body.page-students .rn.is-interactive .rn-card {
    width: calc(100% - 24px);
    top: 54%;
    border-radius: 12px;
    box-shadow: 0 8px 24px #402b2226;
  }
  body.page-students .rn.is-interactive .rn-head {
    padding: 9px 12px;
    gap: 8px;
    font-size: 14px;
    background: #9b4600;
  }
  body.page-students .rn.is-interactive .rn-head svg {
    width: 20px;
    height: 20px;
  }
  body.page-students .rn.is-interactive .rn-timer,
  body.page-students .rn.is-interactive .rn-tap {
    display: none;
  }
  body.page-students .rn.is-interactive .rn-q {
    font-size: 17px;
    line-height: 1.3;
    padding: 14px 12px;
    text-align: left;
  }
  body.page-students .rn.is-interactive .rn-opts {
    gap: 7px;
    padding: 0 10px 12px;
  }
  body.page-students .rn.is-interactive .rn-opt {
    appearance: none;
    border: 0;
    min-height: 44px;
    width: 100%;
    padding: 8px;
    gap: 10px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.2;
    text-align: left;
    color: #2a1d14;
    cursor: pointer;
    border-radius: 8px;
  }
  body.page-students .rn.is-interactive .rn-opt.ok {
    color: #fff;
    background: #21703c;
  }
  body.page-students .rn.is-interactive .rn-opt.wrong {
    outline: 2px solid #a72c17;
    outline-offset: -2px;
  }
  body.page-students .rn.is-interactive .rn-l {
    width: 25px;
    height: 25px;
    flex: none;
    border-radius: 5px;
    font-size: 13px;
    background: #9b4600;
  }
  body.page-students .rn.is-interactive .rn-hud {
    font-size: 12px;
    left: 10px;
    right: 10px;
    top: 10px;
  }
  body.page-students .rn.is-interactive .rn-hud > span {
    padding: 6px 9px;
  }
  body.page-students .rn.is-interactive .rn-hud svg {
    width: 16px;
    height: 16px;
  }
  .rn-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    min-height: 44px;
  }
  .rn-controls button {
    flex: none;
    border: 0;
    border-radius: 8px;
    padding: 11px 14px;
    min-height: 44px;
    background: #171b18;
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    cursor: pointer;
  }
  .rn-controls p {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #56584f;
  }
}
@media (max-width: 370px) {
  .cp-header .cp-brand {
    gap: 5px;
  }
  .cp-header .cp-site-trigger {
    font-size: 13px;
  }
  .cp-header .cp-mobile-trigger {
    padding-inline: 6px;
  }
  .cp-header .cp-mobile-trigger span {
    display: none;
  }
}
@media (max-width: 1024px) {
  body .drawer .d-actions .btn {
    justify-content: center;
  }
  body main > .hero.wash::before {
    display: none !important;
  }
  body .closing,
  body.page-schools .closing > .wrap {
    background-image: none !important;
    background-color: var(--page) !important;
  }
  html body.page-students #class .hb-asst .hb-track {
    transform: none !important;
  }
  html body.page-students #class .hb-asst .hb-track,
  html body.page-students #class .hb-asst .hb-track * {
    animation: none !important;
  }
  html body.page-students #class .hb-asst :is(.hb-ai0, .hb-me, .hb-ai) {
    opacity: 1;
    transform: none;
  }
  html body.page-students #class .hb-asst :is(.hb-me2, .hb-ai2, .hb-dots) {
    display: none;
  }
  html body.page-students #class .hb-asst .hb-reply {
    height: auto;
    min-height: 0;
  }
  html body.page-students #class .hb-asst .hb-ai {
    grid-area: auto;
  }
  .rn-controls button {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
  }
}
@media (max-width: 1024px) {
  body .cp-header .cp-mobile-trigger {
    min-width: 44px;
  }
  html body main .xact,
  html body main .cs-sel,
  html body main .cs-tabs button,
  html body main .wt-sel,
  html body main .wt-o,
  html body main .wpg-board,
  html body.page-administrators main .aud button,
  html body.page-administrators .band-hero .btn {
    min-height: 44px !important;
  }
  html body main .pr-step button {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
  }
  html body.page-teachers main .cs-menu,
  html body.page-workplaces main .wt-menu {
    width: min(300px, calc(100vw - 64px));
    max-width: none;
    left: auto !important;
    right: 0 !important;
  }
  html body.page-administrators .tg button::before {
    content: '';
    position: absolute;
    inset: -10px -2px;
    min-height: 44px;
    min-width: 44px;
  }
}

.page-teachers .cs-opt:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
@media (max-width: 1024px) {
  body.page-schools #how {
    padding-bottom: 20px !important;
  }
}

@media (max-width: 1024px) {
  body.page-home .trust {
    position: relative;
  }
  body.page-home .trust > .label {
    display: block;
    padding-inline-end: 46px;
    min-height: 24px;
  }
  body.page-home .trust-logos > img[src$='duke-university.svg'],
  body.page-home .trust-logos > .un {
    justify-self: end;
  }
  body.page-home .trust-logos > img[src$='duke-university.svg'] {
    width: auto;
    object-position: right;
  }
  body.page-home .drawer .d-link {
    border: 0;
    font-size: clamp(21px, 5.7vw, 26px);
    letter-spacing: -0.035em;
    min-height: 54px;
  }
  body.page-home .drawer .d-lang {
    margin-top: 16px;
    border-block: 1px solid #e5e5e2;
  }
}

@media (max-width: 1024px) {
  body.page-home #drawer {
    --orange: #171b18;
  }
  body.page-home #drawer :focus-visible {
    outline: 2px solid #171b18;
    outline-offset: 2px;
  }
  body.page-home .site-header .home-language {
    display: flex;
    align-items: center;
    position: relative;
    margin-inline-start: auto;
    color: white;
  }
  body.page-home .site-header .home-language::before {
    content: '';
    position: absolute;
    inset: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.33);
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.45);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    pointer-events: none;
  }
  body.page-home .site-header .home-language select {
    position: relative;
    appearance: none;
    height: 44px;
    padding: 0 23px 0 11px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
  }
  body.page-home .home-language select:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
  }
  body.page-home .home-language option {
    background: white;
    color: #171b18;
  }
  body.page-home .home-language svg {
    position: absolute;
    right: 9px;
    width: 8px;
    height: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    pointer-events: none;
  }
  body.page-home .site-header .menu-btn {
    margin-left: 0;
  }
}

@media (min-width: 1025px) {
  body.page-home .site-header .home-language {
    display: none;
  }
}
