/* ===== Generated pages: grade, unit, standards, homeschool ===== */

.eyebrow.left, h2.left { text-align: left; }

.page-hero {
    padding: 120px 24px 48px;
    background: var(--surface-kid);
}
.page-hero h1 { font-size: 2.6rem; margin: 6px 0 14px; letter-spacing: -0.01em; }
.page-lede { font-size: 1.15rem; max-width: 760px; line-height: 1.7; }

.crumbs { display: block; max-width: none; margin: 0 0 18px; padding: 0; font-size: 0.875rem; color: var(--gray); }
.crumbs a { color: var(--brand); font-weight: 600; }

.std-row { margin-top: 16px; }
.std {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    background: var(--brand-tint);
    color: var(--brand);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    margin: 2px 2px 2px 0;
    font-variant-numeric: tabular-nums;
}

.page-section { padding: 56px 24px; }
.page-section.alt { background: var(--light); }

.thumb-strip { padding: 32px 24px 0; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.thumbs figure { margin: 0; }
.thumbs img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface-parent);
}
.thumbs figcaption { margin-top: 8px; font-weight: 500; font-size: 0.9rem; color: var(--ink-muted); }

.chapter { margin-bottom: 28px; }
.chapter h3 { font-size: 1.2rem; margin-bottom: 10px; }
.lesson-list { padding-left: 22px; display: grid; gap: 10px; }
.lesson-list li { color: var(--dark); }
.lesson-list li > span:not(.tag) { display: block; color: var(--gray); font-size: 0.95rem; }
.tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand);
    background: var(--brand-tint);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: 6px;
}

.sample-q {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}
.sample-from { font-size: 0.85rem; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.sample-img { max-height: 260px; border-radius: var(--radius-md); margin-bottom: 14px; background: var(--surface-kid); }
.sample-question { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--ink); margin-bottom: 14px; }
.sample-options { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.sample-options li {
    padding: 12px 14px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    font-weight: 500;
    color: var(--ink);
}
.sample-q details[open] .sample-options li.correct,
.sample-q:has(details[open]) .sample-options li.correct { border-color: var(--correct); background: var(--correct-tint); }
.sample-q summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.sample-q details p { margin-top: 10px; }
.sample-hint { font-size: 0.9rem; font-style: italic; }

.vocab { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.vocab li { padding: 6px 14px; border-radius: var(--radius-full); background: var(--surface-card); border: 1px solid var(--border); font-weight: 500; color: var(--ink); }

.unit-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-weight: 600; }
.unit-nav a { color: var(--brand); }

.grade-switch { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.grade-switch a {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--surface-card);
    border: 1px solid var(--border);
    font-weight: 600;
    color: var(--ink);
}
.grade-switch a:hover { border-color: var(--brand); }
.grade-switch a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.unit-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.unit-card:hover { border-color: var(--brand); box-shadow: var(--shadow-lift); }
.unit-num { font-size: 0.75rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.08em; }
.unit-card h3 { font-size: 1.2rem; margin: 6px 0 8px; }
.unit-card p { font-size: 0.9rem; margin-bottom: 10px; }
.unit-meta { font-size: 0.8125rem; font-weight: 600; color: var(--ink-muted); }
.also { margin-top: 28px; }
.also a { color: var(--brand); font-weight: 600; }

.hs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hs-card { background: var(--surface-card); border-radius: var(--radius-xl); padding: 26px; border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.hs-card h3 { font-size: 1.2rem; margin-bottom: 8px; }

.table-scroll { overflow-x: auto; }
.scope-table, .std-table { width: 100%; border-collapse: collapse; background: var(--surface-card); border-radius: var(--radius-md); overflow: hidden; }
.scope-table th, .scope-table td, .std-table th, .std-table td {
    text-align: left;
    vertical-align: top;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.scope-table thead th, .std-table thead th { background: var(--surface-parent); color: var(--ink); font-size: 0.9rem; font-weight: 600; }
.scope-table thead th .i, h2.left .i { color: var(--subj-text); margin-right: 4px; }
.scope-table td a { display: block; font-weight: 600; color: var(--brand); margin-bottom: 4px; }
.scope-table td span { font-size: 0.85rem; color: var(--ink-muted); }
.scope-table tbody th { white-space: nowrap; }

.std-grade {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    overflow: hidden;
}
.std-grade summary { cursor: pointer; padding: 16px 20px; font-weight: 600; display: flex; justify-content: space-between; }
.std-grade summary span { color: var(--ink-muted); font-weight: 500; font-size: 0.9rem; }
.std-table a { color: var(--brand); font-weight: 600; }
.page-section h2.left + .std-grade, .page-section h2.left { margin-top: 12px; }

.page-cta { padding: 64px 24px; text-align: center; background: var(--brand-tint); color: var(--ink); }
.page-cta h2 { color: var(--ink); }
.page-cta p { color: var(--ink-muted); margin-bottom: 22px; }
.page-cta-buttons { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

@media (max-width: 1024px) {
    .unit-grid, .hs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .page-hero h1 { font-size: 1.9rem; }
    .unit-grid, .hs-grid, .thumbs { grid-template-columns: 1fr; }
    .sample-options { grid-template-columns: 1fr; }
}

/* "You are here" path chips */
.pathbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px; max-width: none; margin: 0 0 22px; padding: 0; }
.pb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: var(--surface-card);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand);
    transition: background 0.2s ease, color 0.2s ease;
}
.pb .i { width: 16px; height: 16px; }
a.pb:hover { background: var(--brand-tint); }
.pb-current { background: var(--brand-tint); color: var(--ink); border-color: var(--brand-tint); }
.pb-sep { color: var(--ink-subtle); font-weight: 600; }

/* Units in this grade, current one highlighted */
.unit-rail { background: var(--surface-card); border-bottom: 1px solid var(--border); padding: 18px 24px; position: sticky; top: 64px; z-index: 50; }
.rail-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 10px; }
.rail { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.rail a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    padding: 8px 14px 8px 8px;
    border-radius: var(--radius-full);
    background: var(--surface-parent);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ink);
}
.rail a b {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--surface-card); color: var(--brand); font-size: 0.8125rem; font-weight: 600;
}
.rail a:hover { background: var(--brand-tint); }
.rail a[aria-current="page"] { background: var(--brand); color: var(--on-brand); }
.rail a[aria-current="page"] b { color: var(--brand-strong); }

/* Grade switcher label */
.grade-switch-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.grade-switch-row > span { font-weight: 600; color: var(--ink-muted); }
.grade-switch-row .grade-switch { margin-top: 0; }

/* Subject page: one big card per grade */
.grade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grade-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.grade-card:hover { box-shadow: var(--shadow-lift); border-color: var(--subj-text); }
.gc-badge {
    flex: 0 0 56px; height: 56px; border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    background: var(--subj); color: var(--on-subject);
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
}
.gc-body { flex: 1; min-width: 0; }
.gc-body h2 { text-align: left; font-size: 1.25rem; margin: 0 0 4px; }
.gc-body p { font-size: 0.85rem; margin-bottom: 6px; }
.gc-meta { font-size: 0.8125rem; font-weight: 600; color: var(--ink-muted); }
.gc-go { font-size: 1.4rem; font-weight: 600; color: var(--subj-text); transition: transform 0.2s ease; }
.grade-card:hover .gc-go { transform: translateX(4px); }

@media (max-width: 1024px) { .grade-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .grade-grid { grid-template-columns: 1fr; }
    .unit-rail { top: 56px; padding: 12px 16px; }
}

/* /subjects: whole card is the link */
.sj-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    color: inherit;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.sj-card:hover { box-shadow: var(--shadow-lift); border-color: var(--brand); }
.sj-card h2 { text-align: left; font-size: 1.5rem; margin: 0; }
.sj-card > p { margin-bottom: 16px; }
.sj-card .topic-list { margin-bottom: 18px; }
.sj-card:hover .subject-cta { background: var(--brand-strong); }

