:root {
    --navy: #243b53;
    --text: #334e68;
    --muted: #627d98;
    --page: #f7f8fb;
    --card: #ffffff;
    --border: #dfe7ef;
    --gold: #e1b954;
    --accent: #657a9c;
    --accent-light: #eaf0f8;
    --shadow: 0 12px 32px rgba(36,59,83,.08);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--text);
    background: var(--page);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

a { color: inherit; }

.announcement-bar {
    padding: 10px 20px;
    color: var(--navy);
    background: var(--gold);
    text-align: center;
    font-weight: 800;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px clamp(18px,5vw,70px);
    border-bottom: 1px solid var(--border);
    background: white;
}

.logo {
    color: var(--navy);
    font-size: 1.25rem;
    font-weight: 900;
    text-decoration: none;
}

.main-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.main-navigation a {
    padding: 8px 11px;
    border-radius: 11px;
    color: var(--muted);
    font-weight: 750;
    text-decoration: none;
}

.main-navigation a:hover {
    color: var(--navy);
    background: #f3f6f9;
}

.worksheet-hero {
    --hero-accent: #657a9c;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    gap: 35px;
    width: min(1140px, calc(100% - 34px));
    margin: 38px auto;
    padding: clamp(32px,5vw,62px);
    border: 1px solid color-mix(in srgb, var(--hero-accent) 24%, white);
    border-radius: 32px;
    background:
        radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--hero-accent) 16%, transparent), transparent 34%),
        linear-gradient(135deg, white, color-mix(in srgb, var(--hero-accent) 9%, white));
    box-shadow: var(--shadow);
}

.hero-label {
    color: var(--hero-accent);
    font-weight: 900;
    letter-spacing: .09em;
}

.worksheet-hero h1 {
    margin: 8px 0 12px;
    color: var(--navy);
    font-size: clamp(2.8rem,6vw,5rem);
    line-height: 1.03;
}

.worksheet-hero p {
    max-width: 700px;
}

.primary-button {
    display: inline-flex;
    margin-top: 16px;
    padding: 13px 19px;
    border-radius: 14px;
    color: white;
    background: var(--hero-accent);
    font-weight: 850;
    text-decoration: none;
}

.worksheet-art {
    position: relative;
    min-height: 280px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: white;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.paper {
    position: absolute;
    width: 118px;
    height: 155px;
    border: 3px solid var(--navy);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow);
}

.paper::before,
.paper::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    height: 5px;
    border-radius: 99px;
    background: var(--accent-light);
}

.paper::before { top: 42px; box-shadow: 0 22px 0 var(--accent-light), 0 44px 0 var(--accent-light); }
.paper::after { top: 108px; width: 52px; right: auto; background: var(--hero-accent); }

.paper-one { left: 55px; top: 55px; transform: rotate(-7deg); }
.paper-two { left: 120px; top: 35px; transform: rotate(6deg); }

.pencil {
    position: absolute;
    right: 55px;
    bottom: 53px;
    width: 145px;
    height: 19px;
    border: 3px solid var(--navy);
    border-radius: 99px;
    background: var(--gold);
    transform: rotate(-38deg);
}

.pencil::before {
    content: "";
    position: absolute;
    left: -22px;
    top: -3px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 23px solid var(--navy);
}

.pencil::after {
    content: "";
    position: absolute;
    right: -17px;
    top: 1px;
    width: 19px;
    height: 11px;
    border-radius: 0 99px 99px 0;
    background: #d99a9e;
}

.check-token {
    position: absolute;
    right: 42px;
    top: 36px;
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border: 5px solid white;
    border-radius: 50%;
    color: white;
    background: var(--hero-accent);
    box-shadow: 0 0 0 2px var(--hero-accent), var(--shadow);
    font-size: 2rem;
    font-weight: 900;
}

.page-section {
    width: min(1140px, calc(100% - 34px));
    margin: 46px auto;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 26px;
    text-align: center;
}

.section-heading h2 {
    color: var(--navy);
    font-size: clamp(1.9rem,4vw,2.55rem);
}

.choice-grid,
.topic-grid,
.form-grid,
.pack-grid,
.paper-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 19px;
}

.choice-card,
.topic-card,
.form-card,
.pack-card,
.paper-card {
    --card-accent: #657a9c;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 25px;
    border: 1px solid color-mix(in srgb, var(--card-accent) 23%, white);
    border-radius: 23px;
    background: white;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.choice-icon,
.topic-icon,
.pack-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 17px;
    color: var(--navy);
    background: color-mix(in srgb, var(--card-accent) 14%, white);
    font-size: 1.7rem;
    font-weight: 900;
}

.choice-card h3,
.topic-card h3,
.form-card h3,
.pack-card h3,
.paper-card h3 {
    margin: 16px 0 7px;
    color: var(--navy);
}

.card-link {
    margin-top: auto;
    padding-top: 17px;
    color: var(--card-accent);
    font-weight: 900;
}

.guidance-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 15px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: white;
    box-shadow: var(--shadow);
}

.guidance-item {
    padding: 18px;
    border-radius: 17px;
    background: #f8fafc;
}

.guidance-item strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy);
}

.shelf-status {
    display: inline-flex;
    width: fit-content;
    margin-top: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--card-accent);
    background: color-mix(in srgb, var(--card-accent) 12%, white);
    font-size: .83rem;
    font-weight: 900;
}

.notice {
    --notice-accent: #657a9c;
    padding: 20px 23px;
    border-left: 5px solid var(--notice-accent);
    border-radius: 0 17px 17px 0;
    color: var(--navy);
    background: color-mix(in srgb, var(--notice-accent) 10%, white);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    width: min(1140px, calc(100% - 34px));
    margin: 25px auto -10px;
    color: var(--muted);
    font-size: .92rem;
}

.breadcrumbs a {
    color: var(--navy);
    font-weight: 800;
    text-decoration: none;
}

.challenge-page {
    --hero-accent: #b8833f;
    color: #f7f8fb;
    background: #192a3c;
}

.challenge-page .site-header,
.challenge-page .choice-card,
.challenge-page .paper-card,
.challenge-page .guidance-panel {
    color: var(--text);
}

.challenge-page .worksheet-hero {
    color: var(--text);
}

.challenge-page .page-section .section-heading h2 {
    color: white;
}

.challenge-page .page-section .section-heading p {
    color: #cfdae5;
}

.site-footer {
    margin-top: 60px;
    padding: 36px 20px;
    color: white;
    background: var(--navy);
    text-align: center;
}

@media (max-width: 860px) {
    .worksheet-hero { grid-template-columns: 1fr; }
    .guidance-panel { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .choice-grid,
    .topic-grid,
    .form-grid,
    .pack-grid,
    .paper-grid {
        grid-template-columns: 1fr;
    }
}
