.not-found-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10.4375rem;
}

.not-found-number {
    width: 22.6875rem;
    height: 9.3125rem;
}

.not-found-copy p {
    max-width: 17.9375rem;
    margin-top: 3.4375rem;
    font-size: 0.8125rem;
    line-height: 1.1875rem;
}

.not-found-copy .button {
    margin-top: 2.6875rem;
}

@media (max-width: 959px) {
    .not-found-copy {
        min-height: 31.25rem;
    }
}

@media (max-width: 479px) {
    .not-found.hero {
        display: block;
        padding: 0;
    }
    .not-found-copy {
        min-height: 20.5rem;
        height: auto;
        padding-top: 6.6875rem;
        border: 0;
    }
    .not-found-number {
        width: 6.5rem;
        height: 2.6875rem;
    }
    .not-found-copy p {
        margin-top: 1.25rem;
        max-width: 16.4375rem;
    }
    .not-found-copy .button {
        margin-top: 1.25rem;
        width: 16.25rem;
        min-height: 3.75rem;
    }
    .not-found .hero-image {
        display: block;
        width: 100%;
        height: 21.25rem;
        border-radius: 0;
    }
}

.document-layout {
    display: grid;
    grid-template-columns: 27rem minmax(0, 1fr);
    gap: 5.0625rem;
    margin: 0 3.9375rem 5rem 6rem;
    padding-top: 7.5rem;
    align-items: start;
}

.page-navigation {
    position: sticky;
    top: 7.5rem;
    align-self: start;
}

.page-navigation > summary {
    display: none;
}

.page-navigation nav {
    display: flex;
    flex-direction: column;
    gap: 0.4375rem;
    font-size: 0.6875rem;
    line-height: 1rem;
}

.page-navigation nav > a {
    margin-left: 2.0625rem;
}

.page-navigation nav > a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}

.page-navigation .nav-category {
    font-size: 1.125rem;
    line-height: 1.375rem;
    letter-spacing: -0.0625rem;
    margin: 1rem 0 0.125rem;
}

.page-navigation .nav-category:first-child {
    margin-top: 0;
}

.price-section {
    position: relative;
    padding: 1.25rem 0;
}

.price-section:first-child {
    padding-top: 0;
}

.price-section h1,
.price-category h2 {
    font-size: 1.9375rem;
    line-height: 2.3125rem;
    letter-spacing: -0.1rem;
    color: #333132;
}

.price-section h2 {
    font-size: 1.125rem;
    line-height: 1.375rem;
    letter-spacing: -0.05rem;
    color: #434345;
}

.price-section.price-category h2 {
    font-size: 1.9375rem;
    line-height: 2.3125rem;
    margin-top: 3rem;
}

.price-intro {
    font-size: 0.6875rem;
    line-height: 1rem;
    margin-top: 0.625rem;
    color: #b5b5b5;
    white-space: pre-line;
}

.price-category > .price-intro {
    margin-top: 1.5rem;
}

.price-list {
    margin: 1.375rem 0 0;
}

.price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.5rem 5rem;
    gap: 1rem;
    align-items: start;
    margin-top: 0.625rem;
    font-size: 0.6875rem;
    line-height: 1rem;
    letter-spacing: -0.025rem;
}

.price-row:first-child {
    margin-top: 0;
}

.price-row dt {
    font-weight: 400;
}

.price-row dd {
    margin: 0;
}

.price-duration {
    color: #b5b5b5;
}

.price-amount {
    text-align: right;
    white-space: nowrap;
}

.price-description {
    display: block;
    color: #b5b5b5;
    white-space: pre-line;
    line-height: 1.2rem;
    margin-top: 0.2rem;
}

.price-subheading {
    font-weight: 500;
    margin-top: 1.5rem;
}

.price-category:first-child .price-list {
    margin-top: 2.25rem;
}

.anchor {
    position: absolute;
    top: 0;
    scroll-margin-top: 6rem;
}

.license-section h1,
.privacy-section > h2 {
    font-size: 1.9375rem;
    line-height: 2.3125rem;
    letter-spacing: -0.1rem;
    color: #333132;
    max-width: 30rem;
}

.license-section .image-button {
    display: block;
    width: 100%;
    margin-top: 1.875rem;
}

.license-scan {
    width: 100%;
    height: auto;
}

.privacy-section {
    padding-top: 7.5rem;
    scroll-margin-top: 4rem;
}

.privacy-section > h2 {
    margin-bottom: 3rem;
}

.policy-section {
    margin-bottom: 1.5rem;
}

.policy-section h3 {
    font-size: 1.125rem;
    line-height: 1.375rem;
    letter-spacing: -0.04rem;
    margin-bottom: 0.625rem;
}

.policy-section p {
    font-size: 0.6875rem;
    line-height: 1rem;
    white-space: pre-line;
    margin: 0.625rem 0;
}

.license-section {
    scroll-margin-top: 6rem;
}

.teaching-layout {
    padding-top: 9.125rem;
}

.teaching-layout .page-navigation {
    top: 9rem;
}

.teaching-layout .page-navigation nav {
    gap: 1rem;
}

.teaching-layout .page-navigation .nav-category {
    margin: 0;
}

.teaching-layout .page-navigation a:last-child {
    margin-top: 7.5rem;
}

.teaching-content > section {
    scroll-margin-top: 6rem;
}

.teaching-intro h1 {
    font-size: 1.9375rem;
    line-height: 2.3125rem;
    letter-spacing: -0.1rem;
}

.teaching-intro > p {
    font-size: 0.6875rem;
    line-height: 1rem;
    margin-top: 1.9375rem;
    max-width: 25rem;
}

.teaching-directions {
    margin-top: 2.5625rem;
}

.teaching-content h2 {
    font-size: 1.125rem;
    line-height: 1.375rem;
    letter-spacing: -0.05rem;
}

.teaching-directions ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.625rem;
    margin-top: 1.3125rem;
}

.teaching-directions li {
    padding: 0.5rem 0.8125rem;
    border-radius: 2rem;
    background: #f5f5f5;
    font-size: 0.6875rem;
    line-height: 1rem;
}

.teaching-teacher {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 2.5625rem;
}

.teacher-photo {
    width: 100%;
    height: 19.75rem;
    object-fit: cover;
    border-radius: 0.1875rem;
}

.teaching-teacher > div {
    display: flex;
    flex-direction: column;
}

.teaching-teacher p {
    font-size: 0.6875rem;
    line-height: 1rem;
}

.teaching-teacher p:first-of-type {
    margin-top: auto;
}

.teaching-teacher p:last-child {
    margin-top: 0.625rem;
}

.teaching-process {
    padding-top: 5.4375rem;
}

.teaching-process h2,
.teaching-format > h2,
.teaching-programs > h2 {
    font-size: 1.9375rem;
    line-height: 2.3125rem;
    letter-spacing: -0.1rem;
}

.teaching-process > p {
    margin-top: 1.5625rem;
    max-width: 29rem;
    font-size: 0.6875rem;
    line-height: 1rem;
}

.teaching-process ol {
    padding: 0;
    margin: 1.625rem 0 0;
    list-style: none;
}

.teaching-process li {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    border-top: 1px solid #ddd;
    padding: 1rem 0;
    font-size: 0.6875rem;
    line-height: 1rem;
}

.teaching-process li > span {
    color: #aaa;
}

.teaching-gallery {
    margin-top: 2.5rem;
    min-width: 0;
}

.teaching-gallery .carousel-toolbar {
    padding: 0;
    margin-bottom: 1rem;
}

.teaching-gallery .carousel-toolbar > p {
    width: auto;
    padding: 0;
}

.teaching-gallery .carousel {
    padding: 0;
    gap: 0;
    scroll-snap-type: x mandatory;
}

.teaching-gallery .image-button {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.teaching-gallery img {
    width: 100%;
    height: 31.25rem;
    object-fit: cover;
}

.teaching-format {
    position: relative;
    padding-top: 5.8125rem;
}

.teaching-format > h2 {
    max-width: 28rem;
    position: relative;
    z-index: 1;
}

.teaching-shape {
    position: absolute;
    top: 0;
    right: -1rem;
    width: 13rem;
    height: 13rem;
    object-fit: contain;
}

.teaching-format > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.25rem;
    margin-top: 2.5rem;
}

.teaching-format article:first-child {
    grid-column: 1/-1;
    max-width: 15.5rem;
}

.format-index {
    display: flex;
    align-items: center;
    gap: 6rem;
    margin-bottom: 0.625rem;
    color: #aaa;
}

.format-index .drop-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.format-index .drop-icon img {
    width: 0.5rem;
    height: 0.625rem;
}

.teaching-format h3 {
    font-size: 1.125rem;
    line-height: 1.375rem;
    letter-spacing: -0.05rem;
}

.teaching-format article > p:last-child {
    font-size: 0.6875rem;
    line-height: 1rem;
    margin-top: 0.625rem;
    max-width: 15.5rem;
}

.teaching-programs {
    padding-top: 5rem;
}

.program-note {
    display: flex;
    gap: 1.5rem;
    margin: 1.875rem 0 2.5rem;
    font-size: 0.6875rem;
    line-height: 1rem;
    justify-content: space-between;
}

.program-note p + p {
    margin: 0;
}

.teaching-program {
    border-top: 1px solid #ddd;
}

.teaching-program:last-child {
    border-bottom: 1px solid #ddd;
}

.teaching-program summary {
    display: grid;
    grid-template-columns: 1fr 7rem;
    gap: 0.5rem 1rem;
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 1rem 0;
}

.teaching-program summary::-webkit-details-marker {
    display: none;
}

.program-category {
    font-size: 0.625rem;
    line-height: 1rem;
    color: #bbb;
    grid-column: 1;
}

.teaching-program h3 {
    font-size: 1.125rem;
    line-height: 1.375rem;
    grid-column: 1;
    letter-spacing: -0.05rem;
}

.program-more {
    font-size: 0.8125rem;
    line-height: 1rem;
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    display: flex;
    gap: 1.2rem;
    align-items: center;
    color: #999;
}

.program-more b {
    font-size: 2rem;
    font-weight: 300;
    transition: transform 0.2s;
}

.teaching-program[open] .program-more b {
    transform: rotate(45deg);
}

.program-description {
    padding: 1rem 0 2rem;
}

.program-description dl {
    margin: 0 0 2rem;
}

.agenda-row {
    font-size: 0.6875rem;
    line-height: 1rem;
    margin-top: 0.375rem;
    white-space: pre-line;
}

.agenda-row dt,
.agenda-row dd {
    margin: 0;
}

.agenda-timed {
    display: grid;
    grid-template-columns: 5.375rem 1fr;
    margin: 1.5rem 0 0.625rem;
}

.agenda-timed dt {
    color: #aaa;
}

.agenda-timed:first-child {
    margin-top: 0;
}

@media (max-width: 959px) {
    .teaching-layout {
        padding-top: 7.5rem;
    }
    .teaching-layout .page-navigation a:last-child {
        margin-top: 1rem;
    }
    .teaching-intro > p,
    .teaching-teacher p,
    .teaching-process > p,
    .teaching-process li,
    .teaching-format article > p:last-child,
    .agenda-row {
        font-size: 0.8125rem;
        line-height: 1.1875rem;
    }
    .teaching-gallery img {
        height: 28rem;
    }
    .teacher-photo {
        height: 22rem;
    }
    .teaching-process {
        padding-top: 3.75rem;
    }
}

@media (max-width: 479px) {
    .teaching-layout {
        padding-top: 6rem;
    }
    .teaching-intro h1 {
        font-size: 1.5rem;
        line-height: 1.8125rem;
        letter-spacing: -0.0625rem;
    }
    .teaching-intro > p {
        margin-top: 1.5rem;
    }
    .teaching-directions {
        margin-top: 2.5rem;
    }
    .teaching-directions li {
        font-size: 0.6875rem;
        line-height: 1rem;
        padding: 0.5rem 0.625rem;
    }
    .teaching-teacher {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }
    .teacher-photo {
        height: 19rem;
    }
    .teaching-teacher p:first-of-type {
        margin-top: 1.25rem;
    }
    .teaching-content h2 {
        font-size: 1.375rem;
        line-height: 1.625rem;
    }
    .teaching-process h2,
    .teaching-format > h2,
    .teaching-programs > h2 {
        font-size: 1.5rem;
        line-height: 1.8125rem;
    }
    .teaching-process li {
        grid-template-columns: 2.5rem 1fr;
        gap: 1rem;
    }
    .teaching-gallery img {
        height: 21.4375rem;
    }
    .teaching-gallery .carousel-toolbar > p {
        font-size: 0.6875rem;
        line-height: 1rem;
        width: 10rem;
    }
    .teaching-format {
        padding-top: 3.75rem;
    }
    .teaching-shape {
        width: 7rem;
        height: 7rem;
        right: -1rem;
        top: 1.5rem;
    }
    .teaching-format > h2 {
        max-width: 15rem;
    }
    .teaching-format > div {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2.5rem;
    }
    .teaching-format article:first-child {
        max-width: none;
    }
    .teaching-format article > p:last-child {
        max-width: none;
    }
    .teaching-format h3 {
        font-size: 1.125rem;
        line-height: 1.375rem;
    }
    .format-index {
        gap: 1.5rem;
    }
    .teaching-programs {
        padding-top: 3.75rem;
    }
    .program-note {
        display: block;
        font-size: 0.6875rem;
        line-height: 1rem;
        margin: 1.5rem 0 2rem;
    }
    .program-note p + p {
        margin-top: 0.625rem;
    }
    .teaching-program summary {
        grid-template-columns: 1fr 1.5rem;
        gap: 0.5rem;
    }
    .teaching-program h3 {
        font-size: 1.125rem;
        line-height: 1.375rem;
    }
    .program-more {
        font-size: 0;
        gap: 0;
    }
    .program-more b {
        font-size: 1.75rem;
    }
    .program-category {
        font-size: 0.625rem;
    }
    .agenda-timed {
        grid-template-columns: 5rem 1fr;
        gap: 0.625rem;
    }
    .agenda-row {
        font-size: 0.75rem;
        line-height: 1.125rem;
    }
    .program-description .button {
        width: 100%;
    }
}

.document-layout {
    margin-right: 3rem;
}

.page-navigation:not([open]) > nav {
    display: none;
}

.teaching-intro h1 {
    max-width: 34.375rem;
}

.price-content {
    grid-column: 2;
}

.teaching-title-mobile {
    display: none;
}

.page-navigation > summary::after {
    content: '';
    background: url('../icons/section-picker.svg') center/contain no-repeat;
    width: 1rem;
    height: 1rem;
}

.teaching-directions li {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}

@media (min-width: 960px) and (max-width: 1199px) {
    .document-layout {
        margin-left: 3rem;
        margin-right: 3rem;
        grid-template-columns: 17rem 1fr;
        gap: 4rem;
    }
    .price-row {
        grid-template-columns: minmax(0, 1fr) 3rem 4rem;
        gap: 0.5rem;
    }
}

@media (max-width: 959px) {
    .document-layout {
        display: block;
        margin: 0 1.875rem 4rem;
        padding-top: 7.5rem;
    }
    .page-navigation {
        position: static;
        margin-bottom: 2rem;
    }
    .page-navigation > summary {
        display: block;
        font-size: 1rem;
        padding: 1rem;
        border-bottom: 1px solid #ddd;
        cursor: pointer;
    }
    .page-navigation > summary::after {
        content: '';
        float: right;
    }
    .page-navigation nav {
        padding: 1rem;
    }
    .price-content,
    .documents-content {
        max-width: none;
    }
    .price-row {
        font-size: 0.8125rem;
        line-height: 1.1875rem;
    }
    .price-intro,
    .price-description {
        font-size: 0.8125rem;
        line-height: 1.1875rem;
    }
    .policy-section p {
        font-size: 0.8125rem;
        line-height: 1.1875rem;
    }
}

@media (max-width: 479px) {
    .document-layout {
        margin: 0 1.25rem 3.5rem;
        padding-top: 6rem;
    }
    .page-navigation {
        margin: 0 -0.625rem 2rem;
    }
    .page-navigation > summary {
        font-size: 0.875rem;
        padding: 0.9375rem;
    }
    .page-navigation nav {
        font-size: 0.8125rem;
        line-height: 1.1875rem;
        gap: 0.75rem;
    }
    .page-navigation .nav-category {
        font-size: 1.125rem;
        line-height: 1.375rem;
    }
    .price-section {
        padding: 1.875rem 0;
    }
    .price-section h1,
    .price-section.price-category h2 {
        font-size: 1.5rem;
        line-height: 1.8125rem;
        letter-spacing: -0.0625rem;
    }
    .price-section h2 {
        font-size: 1.125rem;
        line-height: 1.375rem;
    }
    .price-row {
        grid-template-columns: minmax(0, 1fr) 4.75rem;
        gap: 0.375rem 0.625rem;
        margin-top: 1rem;
    }
    .price-row dt {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    .price-duration {
        grid-column: 2;
        grid-row: 2;
        text-align: right;
        font-size: 0.6875rem;
    }
    .price-amount {
        grid-column: 2;
        grid-row: 1;
    }
    .price-description {
        margin-top: 0.375rem;
        font-size: 0.75rem;
        line-height: 1.125rem;
    }
    .license-section h1,
    .privacy-section > h2 {
        font-size: 1.5rem;
        line-height: 1.8125rem;
    }
    .privacy-section {
        padding-top: 3.75rem;
    }
    .privacy-section > h2 {
        margin-bottom: 2.5rem;
    }
    .policy-section h3 {
        font-size: 1.125rem;
        line-height: 1.375rem;
    }
    .policy-section {
        margin-bottom: 2rem;
    }
}

/* The source uses stacked price rows and a horizontal teaching menu on phones. */
@media (max-width: 479px) {
    .document-layout {
        margin: 0 1.875rem 3.5rem;
        padding-top: 5.5625rem;
    }
    .page-navigation {
        margin: 0 0 1.4375rem;
    }
    .page-navigation > summary {
        display: flex;
        gap: 0.5rem;
        align-items: center;
        padding: 0;
        border: 0;
        font-size: 1rem;
        line-height: 1.1875rem;
        letter-spacing: -0.0375rem;
    }
    .page-navigation > summary::after {
        float: none;
        width: 2.125rem;
        height: 2.125rem;
        margin: -0.46875rem 0 -0.46875rem -0.5rem;
    }
    .price-section h1,
    .price-section.price-category h2 {
        font-size: 2.125rem;
        line-height: 2.5625rem;
        letter-spacing: -0.125rem;
    }
    .price-section h1 {
        max-width: 14.25rem;
    }
    .price-section h2 {
        font-size: 1.25rem;
        line-height: 1.5rem;
    }
    .price-category > .price-intro {
        margin-top: 1.25rem;
    }
    .price-intro {
        font-size: 0.75rem;
        line-height: 1.0625rem;
    }
    .price-row {
        grid-template-columns: 6.25rem minmax(0, 1fr);
        gap: 0.625rem 0;
        margin-top: 1.25rem;
        letter-spacing: -0.03125rem;
    }
    .price-row dt {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .price-duration {
        grid-column: 1;
        grid-row: 2;
        text-align: left;
        font-size: 0.8125rem;
    }
    .price-amount {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
    }
    .price-section {
        padding: 1.625rem 0;
    }
    .teaching-layout {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
        padding-top: 5.9375rem;
    }
    .teaching-layout .page-navigation {
        margin: 0 -0.25rem 1.9375rem;
    }
    .teaching-layout .page-navigation > summary {
        display: none;
    }
    .teaching-layout .page-navigation nav {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 0.625rem;
        padding: 0 0 0.75rem;
    }
    .teaching-layout .page-navigation a.nav-category {
        flex: 0 0 auto;
        font-size: 0.8125rem;
        line-height: 1rem;
        letter-spacing: -0.025rem;
        padding: 0.25rem 0.625rem;
        margin: 0;
        border: 1px solid #eee;
        border-radius: 2rem;
    }
    .teaching-layout .page-navigation a:last-child {
        display: none;
    }
    .teaching-title-desktop {
        display: none;
    }
    .teaching-title-mobile {
        display: block;
        font-size: 1.75rem;
        line-height: 2.125rem;
        color: #333132;
        letter-spacing: -0.1rem;
    }
    .teaching-title-mobile > span {
        display: block;
        font-size: 1.5rem;
        line-height: 1.8125rem;
        color: #67686b;
        margin-top: 0.625rem;
        letter-spacing: -0.0625rem;
    }
    .teaching-intro > p {
        max-width: 16.25rem;
        margin-top: 1.9375rem;
    }
    .documents-layout {
        margin-left: 1.25rem;
        margin-right: 1.25rem;
    }
    .documents-layout .page-navigation {
        margin-left: 0.625rem;
        margin-right: 0.625rem;
    }
    .license-section h1 {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .license-section .image-button:first-of-type {
        margin-top: 0;
    }
}
