

/* Study-guide page layout and typography */

.study-guide {
    padding: 58px 40px 72px;
    border-bottom: 1px solid var(--line);
}

.study-guide__content {
    max-width: 860px;
    margin: 0 auto;
}

.study-guide h1 {
    margin: 58px 0 20px;
    color: #0c2e62;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 600;
    line-height: 1.18;
    text-align: center;
}

.study-guide h2 {
    margin: 52px 0 16px;
    color: #27313a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.2;
}

.study-guide .exercise-set-label {
    display: block;
    margin-bottom: 0.3rem;
    color: #6b7680;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.2;
    text-transform: uppercase;
}

.study-guide h3 {
    margin: 28px 0 10px;
    color: var(--ink);
    font-size: 19px;
}

.study-guide p {
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 17px;
}

.study-guide ul,
.study-guide ol {
    margin: 0 0 22px 28px;
    color: var(--muted);
    font-size: 17px;
}

.study-guide li {
    margin-bottom: 6px;
}

/* Tables and notes */

.study-guide table {
    width: 100%;
    margin: 24px 0 28px;
    border-collapse: collapse;
    color: var(--muted);
    font-size: 16px;
}

.study-guide th,
.study-guide td {
    padding: 11px 14px;
    border: 1px solid var(--line);
    text-align: left;
}

.study-guide th {
    background: var(--blue-pale);
    color: var(--ink);
}

.study-guide .note {
    margin: 26px 0;
    padding: 18px 20px;
    border-left: 4px solid var(--blue);
    border-radius: 0 4px 4px 0;
    background: var(--blue-pale);
}

.study-guide .note .title p {
    margin-bottom: 5px;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.study-guide .note > p:last-child {
    margin-bottom: 0;
}

/* Compact linked headings and text grids */

.compact-heading-link {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.compact-heading-link + .compact-heading-link {
    margin-top: 0;
}

.compact-heading-link:last-of-type {
    margin-bottom: 1rem;
}

.text-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 760px);
    margin: 26px auto 34px;
    overflow: hidden;
    border: 1px solid #d8dee9;
    border-radius: 10px;
    background: #d8dee9;
    color: #263042;
    gap: 1px;
    box-shadow: 0 8px 24px rgb(39 51 89 / 8%);
}

.text-grid__heading,
.text-grid__cell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 10px;
    text-align: center;
}

.text-grid__heading {
    min-height: 52px;
    background: #eef1f7;
    font-size: 18px;
    font-weight: 700;
}

.text-grid__cell {
    min-height: 70px;
    background: #fff;
    font-size: 17px;
}

/* Shared exercise-set overview structures */

.level-structure {
    margin-top: 2.5rem;
    margin-bottom: 6rem;
}

.level-track {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.level-group.foundations {
    flex: 1;
}

.level-group.progress .level-items {
    justify-content: center;
    width: 100%;
}

.study-guide h3.level-group-heading {
    margin: 28px 0 0.15rem;
    color: var(--ink);
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0;
    text-align: center;
    text-transform: none;
}

.level-items {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 0.9rem;
    border: 2px solid #d7dee5;
    border-radius: 0.75rem;
}

.level-items span:not(.connector) {
	color: #667581;
    font-weight: 700;
    white-space: nowrap;
}

.connector {
    color: #7b8794;
}

/* Level 2: staggered exercise-set overview */
.level-structure--staggered {
    margin-top: 2.5rem;
    margin-bottom: 3rem;
}

.level-track--staggered {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-start;
}

.level-pattern {
    width: min(680px, 100%);
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    gap: 1.25rem;
    min-height: 52px;
    padding: 0.5rem 1.1rem;
    border: 2px solid #d7dee5;
    border-radius: 0.75rem;
    background: #fff;
}

.level-pattern:nth-child(2) { margin-left: 40px; }
.level-pattern:nth-child(3) { margin-left: 80px; }
.level-pattern:nth-child(4) { margin-left: 120px; }
.level-pattern:nth-child(5) { margin-left: 160px; }
.level-pattern:nth-child(6) { margin-left: 200px; }
.level-pattern:nth-child(7) { margin-left: 240px; }
.level-pattern:nth-child(8) { margin-left: 280px; }

.level-pattern h3 {
    margin: 0;
    color: #27313a;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}

.level-pattern p {
    margin: 0;
    color: #6b7680;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .level-pattern,
    .level-pattern:nth-child(n) {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .level-pattern {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

/* Stacked categorized exercise tracks */
.level-structure--stacked {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.level-structure--stacked .level-group {
    width: 100%;
}

.level-structure--stacked .level-items {
    justify-content: center;
    gap: 0.45rem;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
}

.level-structure--stacked .level-items span:not(.connector) {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .level-structure--stacked .level-items {
        flex-direction: column;
        gap: 0.4rem;
    }

    .level-structure--stacked .connector {
        transform: rotate(90deg);
    }
}

/* Responsive study-guide typography */
@media (max-width: 700px) {
    .study-guide {
        padding: 42px 20px 56px;
    }

    .study-guide h1 {
        font-size: 32px;
    }

    .study-guide h2 {
        font-size: 29px;
    }

    .study-guide p,
    .study-guide ul,
    .study-guide ol {
        font-size: 16px;
    }
}
