/*
 * Landing page (/resources/): signed out, parent and teacher (Concept D).
 * Plain CSS, no build step. Everything is scoped to #sr-landing so the shop
 * theme and the lab theme cannot change it, and every button sets its own
 * background, colour, border and shadow in each state.
 *
 * Widths follow the Figma frames: content 1360 at 1920, 1200 at 1440
 * (120 side margins), 20 px margins at 390.
 */

#sr-landing {
    --l-navy: #004974;
    --l-navy-dark: #003a5d;
    --l-blue: #0168A5;
    --l-sky: #2FAEDB;
    --l-sky-bg: #EBF7FD;
    --l-green: var(--sr-green-1);
    --l-green-dark: var(--sr-green-hover);
    --l-body: #434A4F;
    --l-body-2: #555666;
    --l-dark: #18203D;
    --l-light: #A1A4A7;
    --l-border: #D9DBDC;
    --l-ring: 0 0 0 3px #fff, 0 0 0 6px #0F88D1;
    --l-head: 'Mikado', 'Nunito', 'Trebuchet MS', sans-serif;
    --l-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --l-gutter: 120px;
    --l-gap: 120px;

    background: #fff;
    color: var(--l-body);
    font-family: var(--l-text);
    font-size: 16px;
    line-height: 1.5;
    padding-bottom: var(--l-gap);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

#sr-landing *,
#sr-landing *::before,
#sr-landing *::after {
    box-sizing: border-box;
}

#sr-landing [hidden] {
    display: none !important;
}

#sr-landing img {
    max-width: 100%;
    height: auto;
}

#sr-landing h2,
#sr-landing h3,
#sr-landing p,
#sr-landing li,
#sr-landing ul,
#sr-landing ol {
    margin: 0;
    padding: 0;
}

#sr-landing ul,
#sr-landing ol {
    list-style: none;
}

/* components.css styles every p on the site (Inter 18); undo it here. */
:where(#sr-landing) p,
:where(#sr-landing) li,
:where(#sr-landing) button {
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
}

#sr-landing a {
    text-decoration: none;
}

.sr-l-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */

.sr-l-wrap {
    width: min(1360px, calc(100% - 2 * var(--l-gutter)));
    margin-inline: auto;
}

.sr-l-wrap--narrow {
    width: min(1200px, calc(100% - 2 * var(--l-gutter)));
}

.sr-l-section,
.sr-l-band,
.sr-l-yourbook {
    margin-top: var(--l-gap);
}

/* Shared by other teachers sits directly above Share Your Work as its proof,
   so the two read as one block. */
#sr-l-shared + * {
    margin-top: calc(var(--l-gap) * 0.5);
}

.sr-l-center {
    text-align: center;
}

/* ------------------------------------------------------------------ */
/* Type                                                                */
/* ------------------------------------------------------------------ */

#sr-landing .sr-l-h2 {
    font-family: var(--l-head);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.4;
    letter-spacing: 0;
    color: var(--l-navy);
    text-transform: none;
}

#sr-landing .sr-l-h3 {
    font-family: var(--l-head);
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: 0;
    color: var(--l-navy);
}

#sr-landing .sr-l-lead {
    font-family: var(--l-text);
    font-size: 18px;
    line-height: 1.5;
    color: var(--l-body-2);
}

#sr-landing .sr-l-eyebrow {
    font-family: var(--l-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--l-sky);
}

.sr-l-intro-text {
    max-width: 1094px;
    margin: 0 auto 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#sr-landing .sr-l-intro-text .sr-l-h2 {
    max-width: 846px;
    margin-inline: auto;
}

.sr-l-head {
    margin-bottom: 32px;
}

.sr-l-head--row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

/* ------------------------------------------------------------------ */
/* Links (the buttons, pills and chips are in components.css)          */
/* ------------------------------------------------------------------ */

.sr-l-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

#sr-landing .sr-l-link {
    font-family: var(--l-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--l-blue);
    text-decoration: none;
    border-radius: 4px;
}

#sr-landing .sr-l-link:hover {
    color: var(--l-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

#sr-landing .sr-l-link:focus {
    outline: none;
}

#sr-landing .sr-l-link:focus-visible {
    box-shadow: 0 0 0 3px #0F88D1;
}

#sr-landing .sr-l-link--button {
    padding: 8px 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

#sr-landing .sr-l-link--button:hover,
#sr-landing .sr-l-link--button:focus,
#sr-landing .sr-l-link--button:active {
    background: transparent;
    color: var(--l-navy);
    border: 0;
}

/* ------------------------------------------------------------------ */
/* Intro with the video still                                          */
/* ------------------------------------------------------------------ */

.sr-l-intro__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.sr-l-intro__media {
    flex: 0 1 540px;
    position: relative;
}

.sr-l-intro__media img {
    display: block;
    width: 100%;
}

#sr-landing .sr-l-intro__video {
    display: block;
    position: relative;
    border-radius: 16px;
}

#sr-landing .sr-l-intro__video:focus {
    outline: none;
}

#sr-landing .sr-l-intro__video:focus-visible {
    box-shadow: var(--l-ring);
}

.sr-l-intro__play {
    position: absolute;
    left: 50%;
    top: 48.5%;
    width: 68px;
    height: 68px;
    margin: -34px 0 0 -34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #DB4454;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.sr-l-intro__video:hover .sr-l-intro__play {
    transform: scale(1.06);
    background: #c73847;
}

.sr-l-intro__text {
    flex: 0 1 580px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

#sr-landing .sr-l-intro__text .sr-l-lead {
    max-width: 546px;
    margin-top: -16px;
}

/* ------------------------------------------------------------------ */
/* Carousels (Featured, Shared by other teachers)                      */
/* ------------------------------------------------------------------ */

#sr-landing .sr-l-splide {
    position: relative;
    visibility: visible;
}

#sr-landing .sr-l-splide .splide__track {
    overflow: hidden;
    padding: 4px 0 12px;
    margin: -4px 0 -12px;
}

#sr-landing .sr-l-splide:not(.is-initialized) .splide__list {
    display: flex;
    gap: 24px;
    overflow-x: auto;
}

#sr-landing .sr-l-splide:not(.is-initialized) .splide__slide {
    flex: 0 0 calc((100% - 72px) / 4);
}

#sr-landing .sr-l-splide:not(.is-initialized) .sr-l-arrows {
    display: none;
}

#sr-landing .splide__slide {
    display: flex;
    height: auto;
}

#sr-landing .splide__slide > .sr-resource-card,
#sr-landing .sr-l-cards > li > .sr-resource-card {
    width: 100%;
    height: 100%;
}

#sr-landing .sr-l-arrow,
#sr-landing .sr-l-arrow:hover,
#sr-landing .sr-l-arrow:focus,
#sr-landing .sr-l-arrow:active {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 50px;
    height: 50px;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--l-green);
    border-radius: 50%;
    background: #fff;
    color: var(--l-green);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 73, 116, 0.08);
    transform: translateY(-50%);
    cursor: pointer;
    outline: none;
}

#sr-landing .sr-l-arrow:hover {
    background: #F4FAED;
    box-shadow: 0 6px 16px rgba(0, 73, 116, 0.14);
}

#sr-landing .sr-l-arrow:focus-visible {
    box-shadow: var(--l-ring);
}

#sr-landing .sr-l-arrow:active {
    background: #E8F4DA;
}

#sr-landing .sr-l-arrow[disabled] {
    opacity: 0.4;
    cursor: default;
    background: #fff;
    box-shadow: none;
}

#sr-landing .sr-l-arrow svg {
    width: 32px;
    height: 32px;
    fill: none;
    transform: none;
}

#sr-landing .sr-l-arrow--prev {
    left: -70px;
}

#sr-landing .sr-l-arrow--prev svg {
    transform: rotate(180deg);
}

#sr-landing .sr-l-arrow--next {
    right: -70px;
}

/* ------------------------------------------------------------------ */
/* Subject cards                                                       */
/* ------------------------------------------------------------------ */

.sr-l-band {
    position: relative;
}

.sr-l-band__wave {
    display: block;
    width: 100%;
    height: clamp(10px, 3vw, 57px);
}

.sr-l-band__body {
    position: relative;
}

.sr-l-subjects {
    color: var(--l-sky-bg);
}

.sr-l-subjects .sr-l-band__body {
    background: var(--l-sky-bg);
    color: var(--l-body);
    padding-block: 117px;
    margin-block: -1px;
}

.sr-l-subjects .sr-l-band__wave--bottom {
    height: clamp(10px, 2.75vw, 53px);
}

.sr-l-subjects__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

#sr-landing .sr-subject-card,
#sr-landing .sr-subject-card:visited {
    --sr-cc-accent: var(--l-sky);
    --sr-cc-bg: var(--l-sky-bg);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    border: 1px solid var(--sr-cc-accent);
    border-radius: 24px;
    background: #fff;
    color: var(--l-dark);
    text-decoration: none;
    box-shadow: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#sr-landing .sr-subject-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 73, 116, 0.12);
    color: var(--l-dark);
}

#sr-landing .sr-subject-card:focus {
    outline: none;
}

#sr-landing .sr-subject-card:focus-visible {
    box-shadow: var(--l-ring);
}

.sr-subject-card__icon {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
}

.sr-subject-card__icon img {
    display: block;
    width: 100%;
    height: 100%;
}

.sr-subject-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#sr-landing .sr-subject-card__title {
    margin: 0;
    font-family: var(--l-head);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--l-navy);
}

.sr-subject-card__desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--l-dark);
}

.sr-subject-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--sr-cc-accent);
}

.sr-subject-card__link svg {
    flex: none;
    width: 16px;
    height: 16px;
    transition: transform 0.15s ease;
}

.sr-subject-card:hover .sr-subject-card__link svg {
    transform: translateX(3px);
}

/* ------------------------------------------------------------------ */
/* Promo bands (seasonal, Share Your Work)                              */
/* ------------------------------------------------------------------ */

.sr-cta-band {
    display: flex;
    align-items: center;
    gap: 80px;
    min-height: 600px;
    padding: 80px 100px;
    border-radius: 60px;
    background: #EBF8F5;
}

.sr-cta-band--purple {
    background: #F4F1FB;
}

.sr-cta-band--image-left {
    flex-direction: row-reverse;
}

.sr-cta-band__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

#sr-landing .sr-cta-band__title {
    font-family: var(--l-head);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--l-navy);
    text-transform: capitalize;
}

.sr-cta-band__desc {
    font-size: 18px;
    line-height: 1.5;
    color: var(--l-body);
}

#sr-landing .sr-cta-band__btn {
    min-width: 320px;
    margin-top: 16px;
}

.sr-cta-band__media {
    flex: 0 1 520px;
}

.sr-cta-band__media img {
    display: block;
    width: 100%;
}

/* ------------------------------------------------------------------ */
/* One Syllabus accordion                                              */
/* ------------------------------------------------------------------ */

.sr-l-syllabus {
    color: var(--l-blue);
}

.sr-l-syllabus .sr-l-band__wave--top {
    height: clamp(10px, 1.95vw, 37px);
    margin-bottom: -1px;
}

.sr-l-syllabus .sr-l-band__wave--bottom {
    height: clamp(10px, 2.9vw, 55px);
    margin-top: -1px;
}

.sr-l-syllabus .sr-l-band__body {
    background: var(--l-blue);
    padding-block: 120px;
}

.sr-l-syllabus .sr-l-intro-text {
    margin-bottom: 40px;
    max-width: 890px;
}

#sr-landing .sr-l-syllabus .sr-l-h2,
#sr-landing .sr-l-syllabus .sr-l-lead {
    color: #fff;
}

.sr-l-syllabus__body {
    display: flex;
    align-items: center;
    gap: 100px;
}

.sr-l-syllabus__media {
    flex: 0 0 540px;
}

.sr-l-syllabus__media img {
    display: block;
    width: 100%;
}

.sr-l-steps {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sr-l-step {
    background: #fff;
    border: 1px solid #E7E9EE;
    border-radius: 16px;
    padding: 24px;
}

.sr-l-step.is-open {
    border-color: #fff;
}

#sr-landing .sr-l-step__heading {
    margin: 0;
    font-size: inherit;
}

#sr-landing .sr-l-step__toggle,
#sr-landing .sr-l-step__toggle:hover,
#sr-landing .sr-l-step__toggle:focus,
#sr-landing .sr-l-step__toggle:active {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    color: var(--l-navy);
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    outline: none;
}

#sr-landing .sr-l-step__toggle:focus-visible {
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0F88D1;
}

.sr-l-step__num {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--l-text);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: var(--l-light);
    background: rgba(161, 164, 167, 0.1);
    border: 2px solid rgba(161, 164, 167, 0.4);
}

.sr-l-step__title {
    flex: 1;
    font-family: var(--l-head);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--l-navy);
}

.sr-l-step__chev {
    flex: none;
    color: var(--l-navy);
    transition: transform 0.2s ease;
}

.sr-l-step__toggle:hover .sr-l-step__title {
    color: var(--l-blue);
}

.sr-l-step.is-open .sr-l-step__num {
    background: var(--l-green);
    border-color: var(--l-green);
    color: #fff;
}

.sr-l-step.is-open .sr-l-step__title {
    color: var(--l-blue);
}

.sr-l-step__toggle[aria-expanded="true"] .sr-l-step__chev {
    transform: rotate(180deg);
}

.sr-l-step__panel {
    padding: 8px 0 0 56px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--l-body);
}

/* ------------------------------------------------------------------ */
/* Your Teaching Toolkit                                               */
/* ------------------------------------------------------------------ */

#sr-landing .sr-l-toolkit .sr-l-h2 {
    line-height: 1;
    margin-bottom: 48px;
}

.sr-l-toolkit__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

#sr-landing .sr-l-tool,
#sr-landing .sr-l-tool:visited {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    height: 100%;
    padding: 32px 24px;
    border-radius: 16px;
    background: #FBF8F4;
    text-align: center;
    text-decoration: none;
    color: var(--l-body);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#sr-landing .sr-l-tool:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 73, 116, 0.1);
}

#sr-landing .sr-l-tool:focus {
    outline: none;
}

#sr-landing .sr-l-tool:focus-visible {
    box-shadow: var(--l-ring);
}

.sr-l-tool__art {
    position: relative;
    height: 120px;
    width: 200px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-l-tool__art img {
    max-height: 120px;
    width: auto;
}

#sr-landing .sr-l-tool__fan {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 72px;
    height: auto;
    margin-left: -36px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.sr-l-tool__fan--l {
    transform: translateX(-52px) translateY(4px) rotate(-9.6deg);
}

.sr-l-tool__fan--c {
    z-index: 1;
    transform: translateY(-4px);
}

.sr-l-tool__fan--r {
    z-index: 2;
    transform: translateX(52px) translateY(4px) rotate(9.8deg);
}

#sr-landing .sr-l-tool__paper {
    border: 0.4px solid var(--l-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.sr-l-tool__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sr-l-tool__title {
    font-size: 18px;
    font-weight: 600;
    line-height: 20px;
    color: var(--l-navy);
}

.sr-l-tool:hover .sr-l-tool__title {
    color: var(--l-blue);
}

.sr-l-tool__desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--l-body);
}

#sr-landing .sr-l-toolkit__more {
    margin-top: 48px;
}

/* ------------------------------------------------------------------ */
/* We're here for you                                                  */
/* ------------------------------------------------------------------ */

.sr-l-contact {
    display: flex;
    align-items: center;
    gap: 80px;
    min-height: 600px;
    padding: 60px 100px;
    border-radius: 60px;
    background: var(--l-sky);
    color: #fff;
}

.sr-l-contact__text {
    flex: 1 0 380px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

#sr-landing .sr-l-contact__title {
    font-family: var(--l-head);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    text-transform: capitalize;
}

.sr-l-contact__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#sr-landing .sr-l-contact__row,
#sr-landing .sr-l-contact__row:visited {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
}

#sr-landing .sr-l-contact__row:hover {
    color: #fff;
}

#sr-landing .sr-l-contact__row:hover .sr-l-contact__main,
#sr-landing .sr-l-contact__row:hover .sr-l-contact__line--email {
    text-decoration: underline;
    text-underline-offset: 3px;
}

#sr-landing .sr-l-contact__row:focus {
    outline: none;
}

#sr-landing .sr-l-contact__row:focus-visible {
    box-shadow: 0 0 0 3px #fff;
}

.sr-l-contact__icon {
    position: relative;
    flex: 0 0 48px;
    width: 48px;
    height: 50px;
}

#sr-landing .sr-l-contact__icon img {
    position: absolute;
    inset: 0;
    width: 48px;
    height: auto;
}

.sr-l-contact__icon-shadow {
    mix-blend-mode: multiply;
}

#sr-landing .sr-l-contact__icon .sr-l-contact__icon-glyph {
    inset: auto;
    left: 50%;
    top: 46%;
    width: 28px;
    transform: translate(-50%, -50%);
}

.sr-l-contact__words {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sr-l-contact__main {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

.sr-l-contact__line {
    font-size: 16px;
    line-height: 1.5;
}

.sr-l-contact__line--email {
    font-size: 20px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.sr-l-contact__busy {
    font-size: 18px;
    line-height: 1.5;
    color: #fff;
}

#sr-landing .sr-l-contact__btn {
    min-width: 200px;
    margin-top: 8px;
}

.sr-l-contact__media {
    flex: 0 1 600px;
    min-width: 0;
}

.sr-l-contact__media img {
    display: block;
    width: 100%;
}

/* ------------------------------------------------------------------ */
/* Concept D: Your book                                                 */
/* ------------------------------------------------------------------ */

.sr-l-yb-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
}

.sr-l-yb-books {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sr-l-yb-pills,
.sr-l-yb-shortcuts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sr-l-picker {
    margin-top: 16px;
    padding: 24px 28px 28px;
    border: 1.5px solid #DCEFF8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 73, 116, 0.12);
}

.sr-l-picker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

#sr-landing .sr-l-picker__title {
    font-family: var(--l-head);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--l-navy);
}

#sr-landing .sr-l-picker__close,
#sr-landing .sr-l-picker__close:hover,
#sr-landing .sr-l-picker__close:focus,
#sr-landing .sr-l-picker__close:active {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--l-light);
    box-shadow: none;
    cursor: pointer;
    outline: none;
}

#sr-landing .sr-l-picker__close:hover {
    background: var(--l-sky-bg);
    color: var(--l-navy);
}

#sr-landing .sr-l-picker__close:focus-visible {
    box-shadow: var(--l-ring);
}

.sr-l-picker__groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px 32px;
}

#sr-landing .sr-l-picker__subject {
    margin-bottom: 10px;
    font-family: var(--l-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--l-light);
}

.sr-l-picker__books {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Which book and part is showing is announced to screen readers only;
   a problem loading one shows (is-shown). */
.sr-l-yb-status:not(.is-shown) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.sr-l-yb-status.is-shown {
    margin-top: 12px;
    font-size: 14px;
    color: var(--l-body);
}

.sr-l-yb-panel {
    margin-top: 26px;
    transition: opacity 0.15s ease;
}

.sr-l-yb-panel.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.sr-l-part-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 36px 40px;
    border-radius: 24px;
    background: var(--l-sky-bg);
    overflow: hidden;
}

.sr-l-sparkle {
    position: absolute;
    display: block;
    pointer-events: none;
}

.sr-l-sparkle svg {
    display: block;
    width: 100%;
    height: 100%;
}

.sr-l-sparkle--a {
    top: 18px;
    right: 12px;
    width: 22px;
    height: 22px;
}

.sr-l-sparkle--b {
    top: 40px;
    right: 46px;
    width: 12px;
    height: 12px;
}

.sr-l-sparkle--c {
    bottom: 40px;
    left: 14px;
    width: 16px;
    height: 16px;
}

.sr-l-part-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.sr-l-book {
    display: flex;
    align-items: center;
    gap: 26px;
    min-width: 0;
}

.sr-l-cover {
    flex: none;
    display: block;
    width: 84px;
    height: 119px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 6px 14px rgba(0, 73, 116, 0.22);
    transform: rotate(4deg);
}

.sr-l-cover--drawn {
    --l-cover: #ED6377;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 8px 10px 12px;
    /* A book until Safar supplies the real covers: a darker spine on the
       left, a soft sheen and the name on a white plate. */
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 5px, rgba(255, 255, 255, 0.22) 5px 6px, transparent 6px),
        linear-gradient(160deg, rgba(255, 255, 255, 0.24) 0 34%, transparent 34%),
        var(--l-cover);
    color: #fff;
    font-family: var(--l-head);
    font-weight: 700;
    text-align: center;
    overflow: hidden;
}

/* The shop's product photo: square, with the book in the middle, so it
   shows at 182% wide, centred, and the frame crops to the book. */
.sr-l-cover--photo {
    position: relative;
    overflow: hidden;
    background: #fff;
}

#sr-landing .sr-l-cover--photo .sr-l-cover__img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 182%;
    max-width: none;
    height: auto;
    transform: translate(-50%, -50%);
}

.sr-l-cover--learn-to-read {
    --l-cover: #2ABB9B;
}

.sr-l-cover--learn-by-heart {
    --l-cover: #8C75C1;
}

.sr-l-cover--learn-arabic,
.sr-l-cover--general {
    --l-cover: var(--l-sky);
}

.sr-l-cover__brand {
    font-size: 11px;
    line-height: 1;
    opacity: 0.95;
}

.sr-l-cover__name {
    padding: 5px 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--l-cover);
    font-size: 13px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.sr-l-book__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#sr-landing .sr-l-book__title {
    font-family: var(--l-head);
    font-size: 40px;
    font-weight: 700;
    line-height: 48px;
    color: var(--l-navy);
}

.sr-l-book__meta {
    font-size: 16px;
    line-height: 1.5;
    color: var(--l-body);
}

/* Where the teacher left off, right of the book's title. */
.sr-l-resume {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
    text-align: right;
}

#sr-landing .sr-l-resume__link {
    font-size: 17px;
    color: var(--l-navy);
}

#sr-landing .sr-l-resume__link:hover {
    color: var(--l-blue);
}

#sr-landing .sr-l-resume__last {
    font-size: 14px;
    font-weight: 500;
    color: var(--l-body);
}

/* The parts as tabs on a white sheet of lesson cards. */
.sr-l-tabs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.sr-l-tabs::-webkit-scrollbar {
    display: none;
}

#sr-landing .sr-l-tab,
#sr-landing .sr-l-tab:hover,
#sr-landing .sr-l-tab:focus,
#sr-landing .sr-l-tab:active {
    position: relative;
    flex: none;
    margin: 0;
    padding: 13px 22px 12px;
    border: 1.5px solid #DCEFF8;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
    background: #F7FBFE;
    box-shadow: none;
    font-family: var(--l-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--l-blue);
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#sr-landing .sr-l-tab:hover {
    background: #fff;
    color: var(--l-navy);
}

#sr-landing .sr-l-tab:focus-visible {
    box-shadow: inset 0 0 0 3px #0F88D1;
}

#sr-landing .sr-l-tab[aria-selected="true"] {
    background: #fff;
    font-family: var(--l-head);
    font-size: 17px;
    font-weight: 700;
    color: var(--l-navy);
}

/* The chosen tab runs into the sheet below it. */
#sr-landing .sr-l-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 4px;
    background: #fff;
}

.sr-l-sheet {
    padding: 26px 28px 28px;
    border: 1.5px solid #DCEFF8;
    border-radius: 18px;
    background: #fff;
}

.sr-l-tabs + .sr-l-sheet {
    /* The panel's own gap, taken back so the tabs sit on the sheet. */
    margin-top: -25.5px;
    border-top-left-radius: 0;
}

/* A part on its way: the open part's cards fade with a light shimmer. */
.sr-l-sheet.is-loading .sr-l-lgrid {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.sr-l-sheet.is-loading .sr-l-lcard {
    position: relative;
    overflow: hidden;
}

.sr-l-sheet.is-loading .sr-l-lcard::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.75) 50%, transparent 80%);
    transform: translateX(-100%);
    animation: sr-l-shimmer 1.1s ease-in-out infinite;
}

@keyframes sr-l-shimmer {
    to {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sr-l-sheet.is-loading .sr-l-lcard::after {
        display: none;
    }
}

.sr-l-sheet__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

#sr-landing .sr-l-sheet__title {
    font-family: var(--l-head);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--l-navy);
}

.sr-l-sheet__count {
    flex: none;
    font-size: 15px;
    color: var(--l-body);
}

.sr-l-lgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sr-l-part-panel--dense .sr-l-lgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.sr-l-lesson-item {
    display: flex;
    min-width: 0;
}

#sr-landing .sr-l-lcard,
#sr-landing .sr-l-lcard:visited {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 18px 20px;
    border: 1.5px solid var(--l-border);
    border-radius: 16px;
    background: #fff;
    color: var(--l-navy);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#sr-landing a.sr-l-lcard:hover {
    transform: translateY(-2px);
    border-color: var(--l-sky);
    box-shadow: 0 8px 20px rgba(0, 73, 116, 0.14);
    color: var(--l-navy);
}

#sr-landing a.sr-l-lcard:focus {
    outline: none;
}

#sr-landing a.sr-l-lcard:focus-visible {
    box-shadow: var(--l-ring);
}

#sr-landing a.sr-l-lcard:active {
    transform: none;
    box-shadow: none;
}

.sr-l-lcard__badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--l-navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.2px;
    color: #fff;
}

.sr-l-lcard__title {
    font-family: var(--l-head);
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
    color: var(--l-navy);
}

.sr-l-lcard__types {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sr-l-lcard__type {
    padding: 3px 9px;
    border-radius: 13px;
    background: var(--l-sky-bg);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--l-blue);
}

.sr-l-lcard__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.sr-l-lcard__see {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--l-blue);
}

a.sr-l-lcard:hover .sr-l-lcard__see {
    color: var(--l-navy);
}

#sr-landing .sr-l-lcard--empty {
    border-style: dashed;
    border-color: #BFE0F0;
    background: #F7FBFE;
}

.sr-l-lcard--empty .sr-l-lcard__badge {
    background: #DCEFF8;
    color: var(--l-navy);
}

.sr-l-lcard--empty .sr-l-lcard__title {
    color: #5B6F7E;
}

/* An empty lesson: the invitation sits at the foot, the credit beside the button. */
.sr-l-lcard__invite {
    margin-top: auto;
    padding-top: 6px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--l-body);
}

.sr-l-lcard--empty .sr-l-lcard__foot {
    flex-wrap: wrap;
    margin-top: 0;
    padding-top: 0;
}

.sr-l-lcard__credit {
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.4;
    color: var(--l-light);
}

#sr-landing:not(#sr-x) .sr-l-lcard .sr-pbtn--tiny {
    flex: none;
    text-transform: none;
    font-size: 14px;
    letter-spacing: 0;
}

.sr-l-part-panel--dense .sr-l-lcard {
    gap: 6px;
}

#sr-landing .sr-l-part-panel--dense .sr-l-lcard {
    padding: 14px 16px;
}

.sr-l-part-panel--dense .sr-l-lcard__title {
    font-size: 16px;
    line-height: 21px;
}

.sr-l-part-panel--dense .sr-l-lcard__invite {
    font-size: 13px;
}


#sr-landing:not(#sr-x) .sr-l-part-panel--dense .sr-l-lcard .sr-pbtn--tiny {
    padding-inline: 12px;
    font-size: 13px;
}

/* Every lesson shows on a wide screen; a phone shows eight and this. */
#sr-landing .sr-l-lessons__more {
    display: none;
    margin-top: 12px;
    text-align: center;
}

.sr-l-part-panel__note,
#sr-landing .sr-l-empty {
    font-size: 16px;
    line-height: 1.5;
    color: var(--l-body);
}

#sr-landing .sr-l-empty {
    margin-top: 32px;
}

#sr-landing .sr-l-empty a {
    font-weight: 600;
    color: var(--l-blue);
}

.sr-l-row {
    margin-top: 49px;
}

.sr-l-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.sr-l-cards > li {
    display: flex;
    min-width: 0;
}

/* Invitation for a teacher with no books yet. */
.sr-l-invite {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding: 48px 56px;
}

.sr-l-invite__covers {
    position: relative;
    flex: 0 0 140px;
    height: 130px;
}

.sr-l-invite__covers .sr-l-cover {
    position: absolute;
    top: 6px;
}

.sr-l-invite__covers .sr-l-cover:first-child {
    left: 0;
    transform: rotate(-8deg);
}

.sr-l-invite__covers .sr-l-cover:last-child {
    left: 52px;
}

.sr-l-invite__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.sr-l-invite__text .sr-l-book__meta {
    max-width: 620px;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

/* Below 1440 the side margins stay 120 until there is no room for the
   carousel arrows outside the column, then the arrows move up beside
   the heading. */
@media (max-width: 1279px) {
    #sr-landing {
        --l-gutter: 40px;
    }

    #sr-landing .sr-l-arrows {
        position: absolute;
        top: -76px;
        right: 0;
        display: flex;
        gap: 12px;
    }

    #sr-landing .sr-l-arrow,
    #sr-landing .sr-l-arrow:hover,
    #sr-landing .sr-l-arrow:focus,
    #sr-landing .sr-l-arrow:active {
        position: static;
        transform: none;
        width: 48px;
        height: 48px;
    }

    #sr-landing .sr-l-carousel .sr-l-head {
        padding-right: 124px;
    }

    .sr-cta-band,
    .sr-l-contact {
        padding: 64px 64px;
        gap: 48px;
    }

    .sr-cta-band__media {
        flex-basis: 440px;
    }

    .sr-l-syllabus__body {
        gap: 56px;
    }

    .sr-l-syllabus__media {
        flex-basis: 420px;
    }

    .sr-l-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .sr-l-lgrid,
    .sr-l-part-panel--dense .sr-l-lgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #sr-landing {
        --l-gap: 88px;
    }

    #sr-landing .sr-l-h2,
    #sr-landing .sr-cta-band__title,
    #sr-landing .sr-l-book__title {
        font-size: 32px;
        line-height: 1.3;
    }

    .sr-l-intro__inner {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .sr-l-intro__media {
        flex: none;
        width: min(540px, 100%);
    }

    .sr-l-intro__text {
        flex: none;
        align-items: center;
        gap: 24px;
    }

    #sr-landing .sr-l-intro__text .sr-l-lead {
        margin-top: -8px;
    }

    .sr-l-actions {
        justify-content: center;
    }

    .sr-l-subjects__grid {
        grid-template-columns: 1fr;
        max-width: 664px;
        margin-inline: auto;
    }

    .sr-cta-band,
    .sr-cta-band--image-left,
    .sr-l-contact {
        flex-direction: column;
        min-height: 0;
        padding: 48px;
        border-radius: 40px;
        text-align: center;
        gap: 32px;
    }

    .sr-cta-band__media,
    .sr-l-contact__media {
        order: -1;
        flex: none;
        width: min(520px, 100%);
    }

    .sr-cta-band__text,
    .sr-l-contact__text {
        flex: none;
        align-items: center;
    }

    .sr-l-contact__list {
        text-align: left;
    }

    .sr-l-syllabus__body {
        flex-direction: column;
        gap: 16px;
    }

    .sr-l-steps {
        display: contents;
    }

    .sr-l-syllabus__media {
        order: 2;
        flex: none;
        width: min(420px, 100%);
        margin-block: 8px;
    }

    .sr-l-step {
        order: 3;
        width: 100%;
    }

    .sr-l-step:first-child {
        order: 1;
    }

    .sr-l-toolkit__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sr-l-part-panel__head {
        align-items: flex-start;
    }

    .sr-l-invite {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 36px 32px;
    }
}

@media (max-width: 767px) {
    #sr-landing {
        --l-gutter: 20px;
        --l-gap: 60px;
    }

    #sr-landing .sr-l-h2,
    #sr-landing .sr-cta-band__title,
    #sr-landing .sr-l-contact__title {
        font-size: 24px;
        line-height: 1.3;
    }

    #sr-landing .sr-l-h3 {
        font-size: 22px;
    }

    #sr-landing .sr-l-lead {
        font-size: 15px;
    }

    #sr-landing:not(#sr-x) .sr-pbtn--wide {
        min-width: 270px;
        min-height: 48px;
        padding: 12px 24px;
        font-size: 14px;
        letter-spacing: 0.28px;
    }

    #sr-landing:not(#sr-x) .sr-pbtn--compact,
    #sr-landing:not(#sr-x) .sr-pbtn--tiny {
        min-width: 0;
        min-height: 40px;
    }

    .sr-l-actions {
        flex-direction: column;
        align-items: center;
    }

    .sr-l-intro__media {
        width: 335px;
        max-width: 100%;
    }

    .sr-l-intro-text {
        margin-bottom: 40px;
        gap: 10px;
    }

    .sr-l-head {
        margin-bottom: 16px;
    }

    #sr-landing .sr-l-arrows {
        display: none;
    }

    #sr-landing .sr-l-carousel .sr-l-head {
        padding-right: 0;
    }

    #sr-landing .sr-l-splide:not(.is-initialized) .splide__slide {
        flex-basis: 288px;
    }

    .sr-l-subjects .sr-l-band__body {
        padding-block: 40px;
    }

    .sr-l-subjects__grid {
        gap: 20px;
    }

    #sr-landing .sr-subject-card {
        display: grid;
        grid-template-columns: 60px minmax(0, 1fr);
        align-items: center;
        gap: 16px;
    }

    .sr-subject-card__icon {
        width: 60px;
        height: 60px;
    }

    .sr-subject-card__content {
        display: contents;
    }

    .sr-subject-card__desc,
    .sr-subject-card__link {
        grid-column: 1 / -1;
    }

    .sr-cta-band,
    .sr-cta-band--image-left,
    .sr-l-contact {
        padding: 32px 20px;
        border-radius: 24px;
        gap: 24px;
    }

    .sr-cta-band__text {
        gap: 12px;
    }

    #sr-landing .sr-cta-band__title {
        line-height: 1.2;
    }

    .sr-cta-band__desc,
    .sr-l-contact__busy {
        font-size: 15px;
    }

    .sr-l-contact__media {
        width: 240px;
    }

    .sr-l-contact__row {
        gap: 12px;
    }

    .sr-l-contact__main,
    .sr-l-contact__line--email {
        font-size: 15px;
    }

    .sr-l-contact__line {
        font-size: 15px;
    }

    .sr-l-syllabus .sr-l-band__body {
        padding-block: 40px;
    }

    .sr-l-step {
        padding: 20px;
    }

    .sr-l-step__panel {
        padding-left: 56px;
    }

    .sr-l-syllabus__media {
        width: 300px;
    }

    #sr-landing .sr-l-toolkit .sr-l-h2 {
        margin-bottom: 24px;
    }

    .sr-l-toolkit__grid {
        grid-template-columns: 1fr;
    }

    #sr-landing .sr-l-toolkit__more {
        margin-top: 24px;
    }

    .sr-l-yb-bar {
        align-items: flex-start;
    }

    .sr-l-part-panel {
        padding: 24px 20px;
        border-radius: 20px;
        gap: 20px;
    }

    .sr-l-book {
        gap: 18px;
    }

    .sr-l-cover {
        width: 60px;
        height: 85px;
    }

    .sr-l-cover__name {
        font-size: 10px;
        overflow-wrap: normal;
    }

    #sr-landing .sr-l-book__title {
        font-size: 26px;
        line-height: 1.2;
    }

    .sr-l-book__meta {
        font-size: 14px;
    }

    .sr-l-resume {
        align-items: flex-start;
        text-align: left;
    }

    .sr-l-tabs {
        /* The row scrolls sideways to the panel's edge. */
        margin-right: -20px;
        padding-right: 20px;
    }

    #sr-landing .sr-l-tab,
    #sr-landing .sr-l-tab:hover,
    #sr-landing .sr-l-tab:focus,
    #sr-landing .sr-l-tab:active {
        padding: 11px 16px 10px;
        font-size: 15px;
    }

    #sr-landing .sr-l-tab[aria-selected="true"] {
        font-size: 16px;
    }

    .sr-l-sheet {
        padding: 18px 14px 16px;
        border-radius: 16px;
    }

    .sr-l-tabs + .sr-l-sheet {
        margin-top: -21.5px;
    }

    .sr-l-sheet__count {
        display: none;
    }

    .sr-l-lgrid,
    .sr-l-part-panel--dense .sr-l-lgrid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sr-l-lesson-item--more {
        display: none;
    }

    #sr-landing .sr-l-lessons__more {
        display: block;
    }

    #sr-landing .sr-l-lcard {
        padding: 14px 16px;
    }

    .sr-l-lcard__title {
        font-size: 18px;
        line-height: 23px;
    }

    .sr-l-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding: 4px 4px 12px;
        margin: -4px -4px 0;
    }

    .sr-l-cards > li {
        flex: 0 0 288px;
        scroll-snap-align: start;
    }

    .sr-l-invite {
        padding: 28px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #sr-landing *,
    #sr-landing *::before,
    #sr-landing *::after {
        transition: none !important;
    }
}

/* News about the teacher's own shares (shared/share-news.php). The page's
   reset above clears paragraph padding, so the banner gets it back. */
#sr-landing .sr-landing__news {
    margin-top: 24px;
}
#sr-landing .sr-my-news__item {
    padding: 12px 16px;
}
