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

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

.page-hero {
    padding: 120px 24px 48px;
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 60%, #fff5f5 100%);
}
.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(--primary); font-weight: 700; }

.std-row { margin-top: 16px; }
.std {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    background: #eef2ff;
    color: #4338ca;
    padding: 3px 10px;
    border-radius: 50px;
    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: 16px;
    box-shadow: var(--shadow-lg);
    background: var(--light);
}
.thumbs figcaption { margin-top: 8px; font-weight: 700; font-size: 0.9rem; color: var(--dark-light); }

.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.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #b45309;
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 6px;
}

.sample-q {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}
.sample-from { font-size: 0.85rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.sample-img { max-height: 260px; border-radius: 12px; margin-bottom: 14px; background: #fef9ec; }
.sample-question { font-size: 1.25rem; font-weight: 800; color: var(--dark); 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: 12px;
    border: 2px solid var(--light);
    font-weight: 700;
    color: var(--dark-light);
}
.sample-q details[open] .sample-options li.correct,
.sample-q:has(details[open]) .sample-options li.correct { border-color: #4ade80; background: #f0fdf4; }
.sample-q summary { cursor: pointer; font-weight: 800; color: var(--primary); }
.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: 50px; background: var(--light); font-weight: 700; color: var(--dark-light); }

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

.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: 12px;
    background: var(--white);
    font-weight: 800;
    color: var(--dark-light);
    box-shadow: var(--shadow-sm);
}
.grade-switch a[aria-current="page"] { background: var(--gradient); color: var(--white); }

.unit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.unit-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.unit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.unit-num { font-size: 0.75rem; font-weight: 800; color: var(--primary); 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.8rem; font-weight: 700; color: var(--gray); }
.also { margin-top: 28px; }
.also a { color: var(--primary); font-weight: 700; }

.hs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hs-card { background: var(--white); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow); }
.hs-icon { font-size: 2.2rem; margin-bottom: 10px; }
.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(--white); border-radius: var(--radius); 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(--light);
}
.scope-table thead th, .std-table thead th { background: var(--dark); color: var(--white); font-size: 0.9rem; }
.scope-table td a { display: block; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.scope-table td span { font-size: 0.85rem; color: var(--gray); }
.scope-table tbody th { white-space: nowrap; }

.std-grade {
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}
.std-grade summary { cursor: pointer; padding: 16px 20px; font-weight: 800; display: flex; justify-content: space-between; }
.std-grade summary span { color: var(--gray); font-weight: 700; font-size: 0.9rem; }
.std-table a { color: var(--primary); font-weight: 700; }
.page-section h2.left + .std-grade, .page-section h2.left { margin-top: 12px; }

.page-cta { padding: 64px 24px; text-align: center; background: var(--gradient); color: var(--white); }
.page-cta h2 { color: var(--white); }
.page-cta p { color: rgba(255, 255, 255, 0.9); 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: 50px;
    background: var(--white);
    border: 1px solid rgba(99, 102, 241, 0.18);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: background 0.2s ease, color 0.2s ease;
}
a.pb:hover { background: var(--primary); color: var(--white); }
.pb-current { background: var(--dark); color: var(--white); border-color: var(--dark); }
.pb-sep { color: var(--gray-light); font-weight: 800; }

/* Units in this grade, current one highlighted */
.unit-rail { background: var(--white); border-bottom: 1px solid var(--light); padding: 18px 24px; position: sticky; top: 64px; z-index: 50; }
.rail-label { display: block; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray); 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: 50px;
    background: var(--light);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-light);
}
.rail a b {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--white); color: var(--primary); font-size: 0.8rem;
}
.rail a:hover { background: #e0e7ff; }
.rail a[aria-current="page"] { background: var(--gradient); color: var(--white); }
.rail a[aria-current="page"] b { color: var(--primary-dark); }

/* 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: 800; color: var(--dark-light); }
.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-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.grade-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--c); }
.gc-badge {
    flex: 0 0 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--c); color: var(--white); font-size: 1.5rem; font-weight: 900;
}
.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.8rem; font-weight: 800; color: var(--gray); }
.gc-go { font-size: 1.4rem; font-weight: 800; color: var(--c); 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-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.sj-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: #c7d2fe; }
.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(--primary); transform: translateX(3px); }

