/* about.html */

html.page-about {
    --ink: #172b27;
    --muted: #52645f;
    --paper: #f4f7f2;
    --forest: #17483e;
    --coral: #e47755;
    --line: #d8e1da;
}

html.page-about,
html.page-about * {
    box-sizing: border-box;
}

html.page-about body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: linear-gradient(rgba(23, 72, 62, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 72, 62, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

html.page-about .page {
    width: min(100% - 40px, 900px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

html.page-about header,
html.page-about footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0;
}

html.page-about header {
    border-bottom: 1px solid var(--line);
}

html.page-about header a,
html.page-about footer a {
    color: var(--forest);
}

html.page-about header a {
    font-weight: 800;
    text-decoration: none;
}

html.page-about .page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
}

html.page-about main {
    width: min(100%, 720px);
    margin: auto;
    padding: 64px 0 72px;
}

html.page-about .eyebrow {
    margin: 0 0 16px;
    color: #a44a31;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.page-about h1 {
    margin: 0;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 500;
    line-height: 1;
}

html.page-about h2 {
    margin: 34px 0 10px;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 500;
}

html.page-about p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

html.page-about main a {
    color: var(--forest);
    font-weight: 700;
}

html.page-about footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 520px) {
    html.page-about .page {
        width: min(100% - 32px, 900px);
    }

    html.page-about main {
        padding: 52px 0;
    }
}

/* best-sat-resources.html */

html.page-best-sat-resources {
    --ink: #172b27;
    --muted: #52645f;
    --paper: #f4f7f2;
    --forest: #17483e;
    --coral: #e47755;
    --line: #d8e1da;
    --card: rgba(255, 255, 255, 0.84);
}

html.page-best-sat-resources,
html.page-best-sat-resources * {
    box-sizing: border-box;
}

html.page-best-sat-resources body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: linear-gradient(rgba(23, 72, 62, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 72, 62, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.7;
}

html.page-best-sat-resources .page {
    width: min(100% - 40px, 1040px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

html.page-best-sat-resources .site-nav,
html.page-best-sat-resources footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0;
}

html.page-best-sat-resources .site-nav {
    border-bottom: 1px solid var(--line);
}

html.page-best-sat-resources .site-nav a:first-child,
html.page-best-sat-resources footer a {
    color: var(--forest);
}

html.page-best-sat-resources .site-nav a:first-child {
    font-weight: 800;
    text-decoration: none;
}

html.page-best-sat-resources .nav-links,
html.page-best-sat-resources .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
}

html.page-best-sat-resources main {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 52px 0 72px;
}

html.page-best-sat-resources .hero {
    padding: 38px;
    border-radius: 5px;
    color: white;
    background: var(--forest);
    border-bottom: 5px solid var(--coral);
}

html.page-best-sat-resources .eyebrow {
    margin: 0 0 14px;
    color: #ffd0bd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.page-best-sat-resources h1,
html.page-best-sat-resources h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.2;
}

html.page-best-sat-resources h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 4rem);
}

html.page-best-sat-resources .hero p:last-child {
    max-width: 690px;
    margin: 18px 0 0;
    color: #e5eee8;
    font-size: 1.05rem;
}

html.page-best-sat-resources .resource-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

html.page-best-sat-resources .resource-card {
    padding: 22px 26px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--coral);
    border-radius: 5px;
    background: var(--card);
}

html.page-best-sat-resources .resource-card h2 {
    margin: 0 0 6px;
    color: var(--forest);
    font-size: 1.5rem;
}

html.page-best-sat-resources .resource-card p {
    margin: 0 0 10px;
    color: var(--muted);
}

html.page-best-sat-resources .resource-card a {
    color: var(--forest);
    font-weight: 800;
}

html.page-best-sat-resources .resource-card a:focus-visible,
html.page-best-sat-resources .site-nav a:focus-visible,
html.page-best-sat-resources footer a:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

html.page-best-sat-resources footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

html.page-best-sat-resources .footer-links a {
    color: var(--forest);
}

@media (max-width: 600px) {
    html.page-best-sat-resources .page {
        width: min(100% - 32px, 1040px);
    }

    html.page-best-sat-resources main {
        padding: 34px 0 50px;
    }

    html.page-best-sat-resources .hero,
    html.page-best-sat-resources .resource-card {
        padding: 22px;
    }
}

/* contact.html */

html.page-contact {
    --ink: #172b27;
    --muted: #52645f;
    --paper: #f4f7f2;
    --forest: #17483e;
    --line: #d8e1da;
}

html.page-contact,
html.page-contact * {
    box-sizing: border-box;
}

html.page-contact body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: linear-gradient(rgba(23, 72, 62, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 72, 62, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

html.page-contact .page {
    width: min(100% - 40px, 900px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

html.page-contact header,
html.page-contact footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0;
}

html.page-contact header {
    border-bottom: 1px solid var(--line);
}

html.page-contact header a,
html.page-contact footer a {
    color: var(--forest);
}

html.page-contact header a {
    font-weight: 800;
    text-decoration: none;
}

html.page-contact .page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
}

html.page-contact main {
    width: min(100%, 720px);
    margin: auto;
    padding: 64px 0 72px;
}

html.page-contact .eyebrow {
    margin: 0 0 16px;
    color: #a44a31;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.page-contact h1 {
    margin: 0;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 500;
    line-height: 1;
}

html.page-contact p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

html.page-contact main a {
    color: var(--forest);
    font-weight: 700;
}

html.page-contact footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 520px) {
    html.page-contact .page {
        width: min(100% - 32px, 900px);
    }

    html.page-contact main {
        padding: 52px 0;
    }
}

/* grammar.html */

html.page-grammar {
    --ink: #172b27;
    --muted: #52645f;
    --paper: #f4f7f2;
    --forest: #17483e;
    --coral: #e47755;
    --line: #d8e1da;
    --card: rgba(255, 255, 255, 0.84);
}

html.page-grammar,
html.page-grammar * {
    box-sizing: border-box;
}

html.page-grammar {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

html.page-grammar body {
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: linear-gradient(rgba(23, 72, 62, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 72, 62, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.7;
}

html.page-grammar .page {
    width: min(100% - 40px, 1040px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

html.page-grammar .site-nav,
html.page-grammar footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0;
}

html.page-grammar .site-nav {
    border-bottom: 1px solid var(--line);
}

html.page-grammar .site-nav a:first-child,
html.page-grammar footer a {
    color: var(--forest);
}

html.page-grammar .site-nav a:first-child {
    font-weight: 800;
    text-decoration: none;
}

html.page-grammar .nav-links,
html.page-grammar .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
}

html.page-grammar main {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 52px 0 72px;
}

html.page-grammar .hero {
    padding: 38px;
    border-radius: 5px;
    color: white;
    background: var(--forest);
    border-bottom: 5px solid var(--coral);
}

html.page-grammar .eyebrow {
    margin: 0 0 14px;
    color: #ffd0bd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.page-grammar h1,
html.page-grammar h2,
html.page-grammar h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.2;
}

html.page-grammar h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 4rem);
}

html.page-grammar .hero p {
    max-width: 690px;
    margin: 18px 0 0;
    color: #e5eee8;
    font-size: 1.05rem;
}

html.page-grammar .quick-rule {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--coral);
    background: var(--card);
}

html.page-grammar .quick-rule strong {
    color: var(--forest);
}

html.page-grammar .contents,
html.page-grammar .lesson,
html.page-grammar .practice-note {
    margin-top: 22px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--card);
}

html.page-grammar .contents h2,
html.page-grammar .lesson h2,
html.page-grammar .practice-note h2 {
    margin: 0 0 12px;
    color: var(--forest);
    font-size: 1.65rem;
}

html.page-grammar .contents ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 28px;
    margin: 0;
    padding-left: 24px;
}

html.page-grammar a {
    color: var(--forest);
}

html.page-grammar a:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

html.page-grammar .lesson h3 {
    margin: 24px 0 8px;
    color: var(--forest);
    font-size: 1.2rem;
}

html.page-grammar .lesson h3:first-of-type {
    margin-top: 18px;
}

html.page-grammar .lesson p {
    margin: 10px 0;
}

html.page-grammar .lesson ul,
html.page-grammar .lesson ol {
    padding-left: 24px;
}

html.page-grammar .example {
    margin: 14px 0;
    padding: 15px 18px;
    border-left: 3px solid var(--line);
    background: #f4f7f2;
}

html.page-grammar .example p {
    margin: 4px 0;
}

html.page-grammar .wrong {
    color: #8f3024;
}

html.page-grammar .right {
    color: #155f45;
}

html.page-grammar .rule {
    color: var(--forest);
    font-weight: 800;
}

html.page-grammar .practice-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

html.page-grammar .practice-links a {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid var(--forest);
    border-radius: 4px;
    color: white;
    background: var(--forest);
    font-weight: 700;
    text-decoration: none;
}

html.page-grammar .practice-links a:hover {
    background: #236456;
}

html.page-grammar footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    html.page-grammar .page {
        width: min(100% - 32px, 1040px);
    }

    html.page-grammar main {
        padding: 34px 0 50px;
    }

    html.page-grammar .hero,
    html.page-grammar .contents,
    html.page-grammar .lesson,
    html.page-grammar .practice-note {
        padding: 22px;
    }

    html.page-grammar .contents ol {
        grid-template-columns: 1fr;
    }
}

/* grammar-plan.html */

html.page-grammar-plan {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --dark-bg: #1e293b;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-body: #f8fafc;
    --card-bg: #ffffff;
    --border: #e2e8f0;
    --accent: #f0fdf4;
    --accent-text: #166534;
}

html.page-grammar-plan,
html.page-grammar-plan * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html.page-grammar-plan body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    padding: 40px 20px;
}

html.page-grammar-plan .main-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Hero Header Section */
html.page-grammar-plan .hero {
    background: var(--dark-bg);
    color: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
    border-bottom: 5px solid var(--primary);
}

html.page-grammar-plan .hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
    color: #ffffff;
}

html.page-grammar-plan .hero h2 {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 16px;
}

html.page-grammar-plan .hero h3 {
    font-size: 1.3rem;
    font-weight: 500;
    color: #e2e8f0;
    line-height: 1.4;
}

/* Methodology Description Cards */
html.page-grammar-plan .info-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 32px;
}

html.page-grammar-plan .info-card p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

html.page-grammar-plan .info-card p:last-child {
    margin-bottom: 0;
    padding: 12px 16px;
    background-color: var(--accent);
    color: var(--accent-text);
    border-radius: 8px;
    font-weight: 500;
}

/* Schedule Title */
html.page-grammar-plan .schedule-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark-bg);
    letter-spacing: -0.02em;
}

/* Styled Dashboard Training Table */
html.page-grammar-plan .schedule-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 40px;
}

html.page-grammar-plan .schedule-table th {
    background: #f1f5f9;
    color: var(--dark-bg);
    text-align: left;
    padding: 16px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

html.page-grammar-plan .schedule-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
    font-weight: 500;
}

html.page-grammar-plan .schedule-table tr:last-child td {
    border-bottom: none;
}

html.page-grammar-plan .day-column {
    color: var(--dark-bg);
    font-weight: 700;
    width: 25%;
    background: #fafafa;
    border-right: 1px solid var(--border);
}

/* Rest Day Styling */
html.page-grammar-plan .rest-day {
    color: #94a3b8;
    font-style: italic;
    font-weight: 400;
}

/* Premium Action Links */
html.page-grammar-plan .part-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 4px 10px;
    background: #eff6ff;
    border-radius: 6px;
    transition: all 0.15s ease;
    border: 1px solid #dbeafe;
}

html.page-grammar-plan .part-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

html.page-grammar-plan .link-separator {
    color: var(--text-muted);
    font-weight: 400;
    margin: 0 6px;
}

html.page-grammar-plan {
    --primary: #17483e;
    --primary-hover: #236456;
    --dark-bg: #17483e;
    --text-main: #172b27;
    --text-muted: #52645f;
    --bg-body: #f4f7f2;
    --card-bg: #ffffff;
    --border: #d8e1da;
    --accent: #edf4ef;
    --accent-text: #17483e;
}

html.page-grammar-plan body {
    background-color: var(--bg-body);
    background-image: linear-gradient(rgba(23, 72, 62, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 72, 62, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

html.page-grammar-plan .main-container {
    max-width: 900px;
}

html.page-grammar-plan .site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 26px;
}

html.page-grammar-plan .site-nav a:first-child {
    color: var(--dark-bg);
    font-weight: 800;
    text-decoration: none;
}

html.page-grammar-plan .site-nav .upload-link {
    color: var(--dark-bg);
    font-weight: 700;
    text-decoration: none;
}

html.page-grammar-plan .site-nav .upload-link:hover {
    color: #a44a31;
}

html.page-grammar-plan .hero {
    background: var(--dark-bg);
    border: 0;
    border-bottom: 5px solid #e47755;
    border-radius: 5px;
    box-shadow: none;
}

html.page-grammar-plan .hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 500;
    letter-spacing: 0;
}

html.page-grammar-plan .hero h2 {
    color: #f1a083;
}

html.page-grammar-plan .info-card {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 5px;
    box-shadow: none;
}

html.page-grammar-plan .schedule-title {
    color: var(--dark-bg);
}

html.page-grammar-plan .schedule-table {
    border-radius: 5px;
    box-shadow: none;
}

html.page-grammar-plan .schedule-table th {
    background: #e8efea;
    color: var(--dark-bg);
}

html.page-grammar-plan .day-column {
    color: var(--dark-bg);
    background: #f2f6f2;
}

html.page-grammar-plan .part-link {
    color: var(--dark-bg);
    background: #edf4ef;
    border-color: #cad9cf;
    border-radius: 4px;
}

html.page-grammar-plan .part-link:hover {
    background: var(--dark-bg);
    border-color: var(--dark-bg);
}

@media (max-width: 560px) {
    html.page-grammar-plan body {
        padding: 24px 16px;
    }

    html.page-grammar-plan .hero,
    html.page-grammar-plan .info-card {
        padding: 24px;
    }

    html.page-grammar-plan .schedule-table th,
    html.page-grammar-plan .schedule-table td {
        padding: 12px 14px;
    }

    html.page-grammar-plan .day-column {
        width: 30%;
    }
}

/* index.html */

html.page-home {
    --ink: #172b27;
    --muted: #52645f;
    --paper: #f4f7f2;
    --forest: #17483e;
    --coral: #e47755;
    --line: #d8e1da;
}

html.page-home,
html.page-home * {
    box-sizing: border-box;
}

html.page-home body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: linear-gradient(rgba(23, 72, 62, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 72, 62, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

html.page-home .page {
    width: min(100% - 40px, 1040px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

html.page-home .topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

html.page-home .primary-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 24px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

html.page-home .primary-nav a {
    color: var(--forest);
    font-size: 0.9rem;
    font-weight: 700;
}

html.page-home .wordmark {
    color: var(--forest);
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
}

html.page-home .top-note {
    color: var(--muted);
    font-size: 0.88rem;
}

html.page-home main {
    width: min(100%, 900px);
    margin: auto;
    padding: 64px 0 72px;
}

html.page-home .eyebrow {
    margin: 0 0 18px;
    color: #a44a31;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.page-home h1 {
    max-width: 720px;
    margin: 0;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 9vw, 5.4rem);
    font-weight: 500;
    line-height: 0.98;
}

html.page-home .intro {
    max-width: 700px;
    margin: 22px 0 30px;
    padding-left: 1.3rem;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.7;
}

html.page-home .intro li{
    padding-left: 0.25rem;
}

html.page-home .intro li::marker{
    color: var(--coral);
}

html.page-home .intro strong {
    color: var(--ink);
}

html.page-home .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

html.page-home .study-plan-callout {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    margin: -20px 0 42px;
    padding: 22px 24px;
    border-left: 5px solid var(--coral);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
}

html.page-home .study-plan-callout blockquote {
    margin: 0;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.5;
}

html.page-home .study-plan-callout blockquote p {
    margin: 0;
}

html.page-home .study-plan-callout .action {
    flex-shrink: 0;
}

html.page-home .sponsored-link-row {
    margin: -28px 0 42px;
}

html.page-home .sponsored-link-row .action {
    width: 100%;
    justify-content: center;
}

html.page-home .action {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 20px;
    border: 1px solid var(--forest);
    border-radius: 5px;
    color: white;
    background: var(--forest);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 150ms ease, transform 150ms ease;
}

html.page-home .action.secondary {
    color: var(--forest);
    background: rgba(255, 255, 255, 0.78);
}

html.page-home .action:hover {
    background: #236456;
    transform: translateY(-2px);
}

html.page-home .action.secondary:hover {
    color: white;
}

html.page-home .action:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

html.page-home .arrow {
    color: var(--coral);
    font-size: 1.25rem;
}

html.page-home .section-label {
    margin: 0 0 16px;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 500;
}

html.page-home .parts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

html.page-home .part-card {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: border-color 150ms ease, transform 150ms ease;
}

html.page-home .part-card:hover {
    border-color: var(--forest);
    transform: translateY(-2px);
}

html.page-home .part-card:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

html.page-home .sat-motivation {
    margin-top: 40px;
    padding: 28px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--coral);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.84);
}

html.page-home .sat-motivation h2 {
    margin: 0 0 16px;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 5vw, 2.3rem);
    font-weight: 500;
    line-height: 1.15;
}

html.page-home .sat-motivation p:not(.countdown-eyebrow) {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.7;
}

html.page-home .sat-motivation .action {
    margin-top: 8px;
}

html.page-home .part-card strong {
    color: var(--forest);
    font-size: 1.05rem;
}

html.page-home .part-card span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

html.page-home .benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

html.page-home .benefits h2 {
    margin: 0 0 8px;
    color: var(--forest);
    font-size: 1rem;
}

html.page-home .benefits p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.6;
}

html.page-home .volunteer-feature {
    margin-top: 44px;
    padding: 24px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--coral);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
}

html.page-home .volunteer-feature h2 {
    margin: 0 0 8px;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    font-weight: 500;
}

html.page-home .volunteer-feature p {
    max-width: 700px;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
}

html.page-home .volunteer-feature .actions {
    margin: 0;
}

html.page-home .referral-rewards {
    margin-top: 40px;
}

html.page-home .referral-heading {
    max-width: 760px;
    margin-bottom: 18px;
}

html.page-home .referral-heading .countdown-eyebrow {
    margin: 0 0 8px;
    color: #a44a31;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.page-home .referral-heading h2 {
    margin: 0 0 10px;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 500;
    line-height: 1.15;
}

html.page-home .referral-heading > p:last-child,
html.page-home .referral-signup > p,
html.page-home .referral-how p {
    color: var(--muted);
    line-height: 1.65;
}

html.page-home .referral-heading > p:last-child {
    margin: 0;
}

html.page-home .referral-card,
html.page-home .referral-result {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
    gap: 28px;
    padding: 26px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--coral);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
}

html.page-home .referral-result[hidden] {
    display: none;
}

html.page-home .referral-signup h3,
html.page-home .referral-how h3,
html.page-home .referral-result h3 {
    margin: 0 0 10px;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 500;
}

html.page-home .referral-signup > p {
    margin: 0 0 18px;
}

html.page-home .referral-gift {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid rgba(228, 119, 85, 0.45);
    border-radius: 6px;
    color: var(--ink);
    background: #fff6f1;
    line-height: 1.55;
}

html.page-home .referral-gift strong {
    color: #8c3f2a;
}

html.page-home .referral-gift span {
    color: var(--muted);
    font-size: 0.92rem;
}

html.page-home .referral-field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

html.page-home .referral-field label,
html.page-home .referral-result-details > label {
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 700;
}

html.page-home .referral-field input {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #aebeb2;
    border-radius: 5px;
    color: var(--ink);
    background: white;
    font: inherit;
}

html.page-home .referral-field input:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 2px;
}

html.page-home .referral-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

html.page-home .referral-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--forest);
}

html.page-home .referral-consent a {
    color: var(--forest);
    font-weight: 700;
}

html.page-home .referral-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid var(--forest);
    border-radius: 5px;
    color: var(--forest);
    background: white;
    font: inherit;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 150ms ease, transform 150ms ease;
}

html.page-home .referral-button-primary {
    color: white;
    background: var(--forest);
}

html.page-home .referral-button:hover:not(:disabled) {
    background: #236456;
    color: white;
    transform: translateY(-1px);
}

html.page-home .referral-button:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

html.page-home .referral-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

html.page-home .referral-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: referral-spin 700ms linear infinite;
}

html.page-home .referral-spinner[hidden] {
    display: none;
}

@keyframes referral-spin {
    to {
        transform: rotate(360deg);
    }
}

html.page-home .referral-status {
    min-height: 1.4em;
    margin: 12px 0 0;
    color: var(--forest);
    font-size: 0.92rem;
    line-height: 1.5;
}

html.page-home .referral-status.is-error,
html.page-home .referral-error {
    color: #9c3327;
}

html.page-home .referral-how {
    padding: 20px;
    border-radius: 6px;
    background: #f0f5ef;
}

html.page-home .referral-how ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 1.3rem;
    color: var(--ink);
    line-height: 1.55;
}

html.page-home .referral-how li::marker {
    color: #a44a31;
    font-weight: 800;
}

html.page-home .referral-how p {
    margin: 16px 0 0;
    font-size: 0.88rem;
}

html.page-home .referral-result {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.7fr);
    margin-top: 18px;
}

html.page-home .referral-result-details > p:not(.countdown-eyebrow, .referral-status) {
    color: var(--muted);
}

html.page-home .referral-result-details .countdown-eyebrow {
    margin: 0 0 6px;
    color: #a44a31;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.page-home .referral-link-output {
    display: block;
    margin-top: 6px;
    color: var(--forest);
    font-weight: 700;
    overflow-wrap: anywhere;
}

html.page-home .referral-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

html.page-home .referral-qr-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

html.page-home .referral-qr {
    max-width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
}

html.page-home .referral-qr img {
    display: block;
    width: min(100%, 280px);
    height: auto;
}

html.page-home .referral-qr-actions {
    margin-top: 4px;
}

@media (max-width: 700px) {
    html.page-home .referral-card,
    html.page-home .referral-result {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }

    html.page-home .referral-how {
        padding: 18px;
    }
}

html.page-home .more-links {
    display: flex;
    gap: 22px;
    margin-top: 30px;
    font-size: 0.92rem;
}

html.page-home .more-links a {
    color: var(--forest);
    font-weight: 700;
}

html.page-home footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

html.page-home .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

html.page-home .footer-links a {
    color: var(--forest);
}

@media (max-width: 520px) {
    html.page-home .page {
        width: min(100% - 32px, 1040px);
    }

    html.page-home .top-note {
        max-width: 140px;
        text-align: right;
    }

    html.page-home .topbar {
        align-items: stretch;
    }

    html.page-home main {
        padding: 58px 0;
    }

    html.page-home .actions {
        flex-direction: column;
        margin-bottom: 38px;
    }

    html.page-home .study-plan-callout {
        align-items: stretch;
        margin-top: -14px;
        padding: 20px;
    }

    html.page-home .action {
        width: 100%;
    }

    html.page-home .parts,
    html.page-home .benefits {
        grid-template-columns: 1fr;
    }

    html.page-home .part-card {
        min-height: 0;
    }

    html.page-home .benefits {
        gap: 20px;
        margin-top: 34px;
    }

    html.page-home .more-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* learn-sat-regression.html */

html.page-learn-sat-regression {
    --ink: #172b27;
    --muted: #52645f;
    --paper: #f4f7f2;
    --forest: #17483e;
    --coral: #e47755;
    --line: #d8e1da;
    --card: rgba(255, 255, 255, 0.84);
}

html.page-learn-sat-regression,
html.page-learn-sat-regression * {
    box-sizing: border-box;
}

html.page-learn-sat-regression body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: linear-gradient(rgba(23, 72, 62, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 72, 62, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.7;
}

html.page-learn-sat-regression .page {
    width: min(100% - 40px, 1040px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

html.page-learn-sat-regression .site-nav,
html.page-learn-sat-regression footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0;
}

html.page-learn-sat-regression .site-nav {
    border-bottom: 1px solid var(--line);
}

html.page-learn-sat-regression .site-nav a:first-child,
html.page-learn-sat-regression footer a {
    color: var(--forest);
}

html.page-learn-sat-regression .site-nav a:first-child {
    font-weight: 800;
    text-decoration: none;
}

html.page-learn-sat-regression .nav-links,
html.page-learn-sat-regression .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
}

html.page-learn-sat-regression main {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 52px 0 72px;
}

html.page-learn-sat-regression .hero {
    padding: 38px;
    border-radius: 5px;
    color: white;
    background: var(--forest);
    border-bottom: 5px solid var(--coral);
}

html.page-learn-sat-regression .eyebrow {
    margin: 0 0 14px;
    color: #ffd0bd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.page-learn-sat-regression h1,
html.page-learn-sat-regression h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.2;
}

html.page-learn-sat-regression h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 4rem);
}

html.page-learn-sat-regression .hero p:last-child {
    max-width: 690px;
    margin: 18px 0 0;
    color: #e5eee8;
    font-size: 1.05rem;
}

html.page-learn-sat-regression .video-card {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--card);
}

html.page-learn-sat-regression .video-card h2 {
    margin: 0 0 8px;
    color: var(--forest);
    font-size: 1.65rem;
}

html.page-learn-sat-regression .video-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

html.page-learn-sat-regression .video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #172b27;
}

html.page-learn-sat-regression .video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

html.page-learn-sat-regression .resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

html.page-learn-sat-regression .resource-links a {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid var(--forest);
    border-radius: 4px;
    color: white;
    background: var(--forest);
    font-weight: 700;
    text-decoration: none;
}

html.page-learn-sat-regression .resource-links a:hover {
    background: #236456;
}

html.page-learn-sat-regression a:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

html.page-learn-sat-regression footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

html.page-learn-sat-regression .footer-links a {
    color: var(--forest);
}

@media (max-width: 600px) {
    html.page-learn-sat-regression .page {
        width: min(100% - 32px, 1040px);
    }

    html.page-learn-sat-regression main {
        padding: 34px 0 50px;
    }

    html.page-learn-sat-regression .hero,
    html.page-learn-sat-regression .video-card {
        padding: 22px;
    }
}

/* part1.html */

html.page-practice-test {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --success-bg: #f0fdf4;
    --error: #ef4444;
    --error-bg: #fef2f2;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-body: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

html.page-practice-test,
html.page-practice-test * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html.page-practice-test body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    padding: 20px;
    line-height: 1.6;
}

html.page-practice-test .dashboard-container {
    max-width: 850px;
    margin: 40px auto;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

html.page-practice-test .header {
    background: #1e293b;
    color: white;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--primary);
}

html.page-practice-test .header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

html.page-practice-test .progress-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

html.page-practice-test .header-status {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

html.page-practice-test .timer-badge {
    min-width: 150px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    text-align: center;
}

html.page-practice-test .timer-badge.is-overtime {
    border-color: #fecaca;
    background: #991b1b;
}

html.page-practice-test .quiz-body {
    padding: 32px;
}

html.page-practice-test .practice-overview {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

html.page-practice-test .practice-overview h2 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

html.page-practice-test .practice-overview p {
    color: var(--text-muted);
}

html.page-practice-test .question-meta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

html.page-practice-test .question-text {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 24px;
    white-space: pre-wrap;
}

html.page-practice-test .options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

html.page-practice-test .option-card {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    text-align: left;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-main);
}

html.page-practice-test .option-card:hover:not(.disabled) {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

html.page-practice-test .option-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #e2e8f0;
    border-radius: 6px;
    margin-right: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    flex-shrink: 0;
}

html.page-practice-test .option-card.correct-pick {
    background: var(--success-bg);
    border-color: var(--success);
    color: #065f46;
}

html.page-practice-test .option-card.correct-pick .option-letter {
    background: var(--success);
    color: white;
}

html.page-practice-test .option-card.incorrect-pick {
    background: var(--error-bg);
    border-color: var(--error);
    color: #991b1b;
}

html.page-practice-test .option-card.incorrect-pick .option-letter {
    background: var(--error);
    color: white;
}

html.page-practice-test .option-card.reveal-correct {
    background: var(--success-bg);
    border-color: var(--success);
}

html.page-practice-test .option-card.disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

html.page-practice-test .explanation-panel {
    margin-top: 24px;
    padding: 24px;
    border-radius: 8px;
    display: none;
    animation: slideIn 0.3s ease-out;
    border-left: 5px solid;
}

html.page-practice-test .explanation-panel.correct-style {
    background: var(--success-bg);
    border-color: var(--success);
    color: #065f46;
}

html.page-practice-test .explanation-panel.incorrect-style {
    background: var(--error-bg);
    border-color: var(--error);
    color: #991b1b;
}

html.page-practice-test .exp-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

html.page-practice-test .exp-desc {
    font-size: 0.95rem;
    line-height: 1.6;
}

html.page-practice-test .action-container {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    min-height: 48px;
}

html.page-practice-test .next-btn {
    display: none;
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

html.page-practice-test .next-btn:hover {
    background: var(--primary-hover);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

html.page-practice-test .back-btn {
    background-color: #2563eb;
    /* Clean blue */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

html.page-practice-test .back-btn:hover {
    background-color: #1d4ed8;
    /* Darker blue on hover */
}

html.page-practice-test {
    --primary: #17483e;
    --primary-hover: #236456;
    --success: #16845f;
    --success-bg: #edf7f1;
    --error: #cf584b;
    --error-bg: #fff0ed;
    --text-main: #172b27;
    --text-muted: #52645f;
    --bg-body: #f4f7f2;
    --card-bg: #ffffff;
    --border-color: #d8e1da;
}

html.page-practice-test body {
    background-color: var(--bg-body);
    background-image: linear-gradient(rgba(23, 72, 62, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 72, 62, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

html.page-practice-test .site-nav {
    max-width: 850px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 18px;
    margin: 0 auto;
    padding: 8px 0 18px;
    border-bottom: 1px solid var(--border-color);
}

html.page-practice-test .site-nav a {
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
}

html.page-practice-test .dashboard-container {
    border-radius: 5px;
    box-shadow: none;
    border-color: var(--border-color);
}

html.page-practice-test .header {
    background: var(--primary);
    border-bottom: 4px solid #e47755;
}

html.page-practice-test .header h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

html.page-practice-test .progress-badge {
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
}

html.page-practice-test .question-meta {
    color: #a44a31;
}

html.page-practice-test .option-card {
    border-width: 1px;
    border-color: var(--border-color);
    border-radius: 5px;
}

html.page-practice-test .option-card:hover:not(.disabled) {
    background: #f2f6f2;
    border-color: #a9beb0;
}

html.page-practice-test .option-letter {
    background: #edf4ef;
    color: var(--primary);
    border-radius: 4px;
}

html.page-practice-test .next-btn,
html.page-practice-test .back-btn {
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    box-shadow: none;
}

html.page-practice-test .next-btn:hover,
html.page-practice-test .back-btn:hover {
    background: var(--primary-hover);
}

html.page-practice-test .dashboard-container+a {
    display: block;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 24px;
}

html.page-practice-test .back-btn {
    cursor: pointer;
}

@media (max-width: 560px) {
    html.page-practice-test body {
        padding: 16px;
    }

    html.page-practice-test .dashboard-container {
        margin: 22px auto;
    }

    html.page-practice-test .header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }

    html.page-practice-test .header h1 {
        font-size: 1.35rem;
    }

    html.page-practice-test .header-status {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
    }

    html.page-practice-test .quiz-body {
        padding: 22px 18px;
    }

    html.page-practice-test .option-card {
        padding: 14px;
    }

    html.page-practice-test .explanation-panel {
        padding: 18px;
    }
}

/* privacy.html */

html.page-privacy {
    --ink: #172b27;
    --muted: #52645f;
    --paper: #f4f7f2;
    --forest: #17483e;
    --line: #d8e1da;
}

html.page-privacy,
html.page-privacy * {
    box-sizing: border-box;
}

html.page-privacy body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: linear-gradient(rgba(23, 72, 62, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 72, 62, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

html.page-privacy .page {
    width: min(100% - 40px, 900px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

html.page-privacy header,
html.page-privacy footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0;
}

html.page-privacy header {
    border-bottom: 1px solid var(--line);
}

html.page-privacy header a,
html.page-privacy footer a {
    color: var(--forest);
}

html.page-privacy header a {
    font-weight: 800;
    text-decoration: none;
}

html.page-privacy .page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
}

html.page-privacy main {
    width: min(100%, 720px);
    margin: auto;
    padding: 64px 0 72px;
}

html.page-privacy .eyebrow {
    margin: 0 0 16px;
    color: #a44a31;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.page-privacy h1 {
    margin: 0;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 500;
    line-height: 1;
}

html.page-privacy h2 {
    margin: 32px 0 8px;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 500;
}

html.page-privacy p,
html.page-privacy li {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

html.page-privacy ul {
    padding-left: 22px;
}

html.page-privacy main a {
    color: var(--forest);
    font-weight: 700;
}

html.page-privacy footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 520px) {
    html.page-privacy .page {
        width: min(100% - 32px, 900px);
    }

    html.page-privacy main {
        padding: 52px 0;
    }
}

/* sat-grammar-videos.html */

html.page-sat-grammar-videos {
    --ink: #172b27;
    --muted: #52645f;
    --paper: #f4f7f2;
    --forest: #17483e;
    --coral: #e47755;
    --line: #d8e1da;
    --card: rgba(255, 255, 255, 0.84);
}

html.page-sat-grammar-videos,
html.page-sat-grammar-videos * {
    box-sizing: border-box;
}

html.page-sat-grammar-videos {
    scroll-behavior: smooth;
}

html.page-sat-grammar-videos body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: linear-gradient(rgba(23, 72, 62, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 72, 62, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.7;
}

html.page-sat-grammar-videos .page {
    width: min(100% - 40px, 1040px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

html.page-sat-grammar-videos .site-nav,
html.page-sat-grammar-videos footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0;
}

html.page-sat-grammar-videos .site-nav {
    border-bottom: 1px solid var(--line);
}

html.page-sat-grammar-videos .site-nav a:first-child,
html.page-sat-grammar-videos footer a {
    color: var(--forest);
}

html.page-sat-grammar-videos .site-nav a:first-child {
    font-weight: 800;
    text-decoration: none;
}

html.page-sat-grammar-videos .nav-links,
html.page-sat-grammar-videos .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
}

html.page-sat-grammar-videos main {
    width: min(100%, 820px);
    margin: 0 auto;
    padding: 52px 0 72px;
}

html.page-sat-grammar-videos .hero {
    padding: 38px;
    border-radius: 5px;
    color: white;
    background: var(--forest);
    border-bottom: 5px solid var(--coral);
}

html.page-sat-grammar-videos .eyebrow {
    margin: 0 0 14px;
    color: #ffd0bd;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.page-sat-grammar-videos h1,
html.page-sat-grammar-videos h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.2;
}

html.page-sat-grammar-videos h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(2.4rem, 7vw, 4rem);
}

html.page-sat-grammar-videos .hero p:last-child {
    max-width: 690px;
    margin: 18px 0 0;
    color: #e5eee8;
    font-size: 1.05rem;
}

html.page-sat-grammar-videos .video-card {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--card);
}

html.page-sat-grammar-videos .video-card h2 {
    margin: 0 0 8px;
    color: var(--forest);
    font-size: 1.65rem;
}

html.page-sat-grammar-videos .video-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

html.page-sat-grammar-videos .video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #172b27;
}

html.page-sat-grammar-videos .video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

html.page-sat-grammar-videos .resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

html.page-sat-grammar-videos .resource-links a {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid var(--forest);
    border-radius: 4px;
    color: white;
    background: var(--forest);
    font-weight: 700;
    text-decoration: none;
}

html.page-sat-grammar-videos .resource-links a:hover {
    background: #236456;
}

html.page-sat-grammar-videos a:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

html.page-sat-grammar-videos footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

html.page-sat-grammar-videos .footer-links a {
    color: var(--forest);
}

@media (max-width: 600px) {
    html.page-sat-grammar-videos .page {
        width: min(100% - 32px, 1040px);
    }

    html.page-sat-grammar-videos main {
        padding: 34px 0 50px;
    }

    html.page-sat-grammar-videos .hero,
    html.page-sat-grammar-videos .video-card {
        padding: 22px;
    }
}

/* upload.html */

html.page-upload {
    --ink: #172b27;
    --muted: #52645f;
    --paper: #f4f7f2;
    --forest: #17483e;
    --coral: #e47755;
    --line: #d8e1da;
}

html.page-upload,
html.page-upload * {
    box-sizing: border-box;
}

html.page-upload body {
    min-height: 100vh;
    margin: 0;
    padding: 0 20px;
    color: var(--ink);
    background: var(--paper);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

html.page-upload .page {
    width: min(100%, 860px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

html.page-upload header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 26px 0;
    border-bottom: 1px solid var(--line);
}

html.page-upload .header-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

html.page-upload header a {
    color: var(--forest);
    font-weight: 800;
    text-decoration: none;
}

html.page-upload .header-links a {
    font-size: 0.9rem;
}

html.page-upload main {
    margin: auto 0;
    padding: 72px 0;
}

html.page-upload .eyebrow {
    margin: 0 0 18px;
    color: #a44a31;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.page-upload h1 {
    max-width: 700px;
    margin: 0;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 8vw, 4.8rem);
    font-weight: 500;
    line-height: 1.02;
}

html.page-upload .description {
    max-width: 620px;
    margin: 24px 0 32px;
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.7;
}

html.page-upload .question-form {
    display: grid;
    gap: 20px;
    max-width: 680px;
    margin: 32px 0;
}

html.page-upload .form-field {
    display: grid;
    gap: 8px;
}

html.page-upload .form-field label,
html.page-upload .field-label {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 700;
}

html.page-upload .question-form input,
html.page-upload .question-form select,
html.page-upload .question-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #b8c9bd;
    border-radius: 4px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

html.page-upload .question-form textarea {
    min-height: 120px;
    resize: vertical;
}

html.page-upload .question-form input:focus-visible,
html.page-upload .question-form select:focus-visible,
html.page-upload .question-form textarea:focus-visible {
    outline: 3px solid rgba(228, 119, 85, 0.45);
    border-color: var(--forest);
}

html.page-upload .answer-fields {
    display: grid;
    gap: 12px;
}

html.page-upload .submit-button {
    min-height: 50px;
    justify-self: start;
    padding: 0 20px;
    border: 1px solid var(--forest);
    border-radius: 4px;
    color: #fff;
    background: var(--forest);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

html.page-upload .submit-button:hover {
    background: #236456;
}

html.page-upload .submit-button:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

html.page-upload .back-link {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid var(--forest);
    border-radius: 5px;
    color: white;
    background: var(--forest);
    font-weight: 700;
    text-decoration: none;
}

html.page-upload .back-link:hover {
    background: #236456;
}

html.page-upload .back-link:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

html.page-upload footer {
    padding: 18px 0 24px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

html.page-upload fieldset.form-field {
    border: 0;
    padding: 0;
    margin: 0;
}

/* volunteer-hours.html */

html.page-volunteer-hours {
    --ink: #172b27;
    --muted: #52645f;
    --paper: #f4f7f2;
    --forest: #17483e;
    --coral: #e47755;
    --line: #d8e1da;
}

html.page-volunteer-hours,
html.page-volunteer-hours * {
    box-sizing: border-box;
}

html.page-volunteer-hours body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background-color: var(--paper);
    background-image: linear-gradient(rgba(23, 72, 62, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 72, 62, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

html.page-volunteer-hours .page {
    width: min(100% - 40px, 900px);
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

html.page-volunteer-hours header,
html.page-volunteer-hours footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 22px 0;
}

html.page-volunteer-hours header {
    border-bottom: 1px solid var(--line);
}

html.page-volunteer-hours header a,
html.page-volunteer-hours footer a {
    color: var(--forest);
}

html.page-volunteer-hours header a {
    font-weight: 800;
    text-decoration: none;
}

html.page-volunteer-hours .page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
}

html.page-volunteer-hours main {
    width: min(100%, 720px);
    margin: auto;
    padding: 64px 0 72px;
}

html.page-volunteer-hours .eyebrow {
    margin: 0 0 16px;
    color: #a44a31;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

html.page-volunteer-hours h1 {
    margin: 0;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 500;
    line-height: 1;
}

html.page-volunteer-hours h2 {
    margin: 34px 0 10px;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 500;
}

html.page-volunteer-hours p,
html.page-volunteer-hours li {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

html.page-volunteer-hours .hour-callout {
    margin: 28px 0;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--coral);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
}

html.page-volunteer-hours .hour-callout p {
    margin: 0;
    color: var(--forest);
    font-size: 1.15rem;
    font-weight: 700;
}

html.page-volunteer-hours ol {
    padding-left: 24px;
}

html.page-volunteer-hours main a {
    color: var(--forest);
    font-weight: 700;
}

html.page-volunteer-hours .form-notice {
    display: block;
    padding: 16px 18px;
    border-radius: 5px;
    color: var(--forest);
    background: #e7efe8;
    font-weight: 700;
    text-decoration: none;
}

html.page-volunteer-hours .form-notice:hover {
    background: #dce9de;
}

html.page-volunteer-hours .form-notice:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

html.page-volunteer-hours footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 520px) {
    html.page-volunteer-hours .page {
        width: min(100% - 32px, 900px);
    }

    html.page-volunteer-hours main {
        padding: 52px 0;
    }
}

.countdown-eyebrow {
    margin: 0 0 8px;
    color: #a44a31;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.personal-tools {
    margin: 42px 0;
}

.local-storage-notice {
    margin: 0 0 24px;
    padding: 13px 16px;
    border-left: 4px solid #e47755;
    color: #384c45;
    background: #fff8f4;
    font-size: .9rem;
    line-height: 1.55;
}

.personal-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.personal-tool-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid #d8e1da;
    border-radius: 5px;
    background: rgba(255, 255, 255, .86);
}

.personal-tool-card h3 {
    margin: 0 0 12px;
    color: #17483e;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.25;
}

.personal-tool-card p {
    color: #52645f;
    line-height: 1.55;
}

.personal-tool-card button {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #17483e;
    border-radius: 4px;
    color: white;
    background: #17483e;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.personal-tool-card button:hover:not(:disabled) {
    border-color: #e47755;
    background: #236456;
}

.personal-tool-card button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.personal-tool-card button:focus-visible,
.personal-tool-card select:focus-visible,
.personal-tool-card input:focus-visible {
    outline: 3px solid #e47755;
    outline-offset: 2px;
}

.personal-tool-card select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #b9c9bf;
    border-radius: 4px;
    color: #172b27;
    background: white;
    font: inherit;
}

.daily-question-preview {
    margin: 10px 0;
    color: #172b27 !important;
    line-height: 1.65;
}

.daily-question-options {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.personal-tool-card .daily-question-option {
    width: 100%;
    min-height: 44px;
    color: #17483e;
    background: white;
    text-align: left;
    font-weight: 500;
    line-height: 1.45;
}

.personal-tool-card .daily-question-option.is-correct {
    border-color: #28734b;
    color: #185631;
    background: #edf7ef;
}

.personal-tool-card .daily-question-option.is-incorrect {
    border-color: #b34636;
    color: #8a2f25;
    background: #fff1ee;
}

.personal-tool-card .daily-question-option:disabled {
    opacity: 1;
    cursor: default;
}

.daily-question-result {
    font-weight: 800;
}

.daily-question-result.is-correct {
    color: #185631 !important;
}

.daily-question-result.is-incorrect {
    color: #8a2f25 !important;
}

.personal-list {
    display: grid;
    gap: 10px;
    max-height: 310px;
    overflow: auto;
    margin: 12px 0 0;
    padding-left: 20px;
}

.personal-list li {
    color: #52645f;
    font-size: .9rem;
    line-height: 1.5;
}

.personal-list a {
    color: #17483e;
    font-weight: 700;
}

.personal-list button {
    min-height: 30px;
    margin-left: 8px;
    padding: 4px 8px;
    color: #17483e;
    background: #fff;
    font-size: .75rem;
}

.streak-readout {
    margin: 12px 0;
    color: #17483e !important;
    font-size: 1.08rem;
    font-weight: 700;
}

.mistake-summary-list {
    display: grid;
    gap: 7px;
    margin: 12px 0 0;
    padding-left: 20px;
    color: #52645f;
    font-size: .88rem;
}

.personal-tool-status {
    min-height: 1.3em;
    margin: 8px 0 0 !important;
    font-size: .8rem;
}

.printable-builder {
    grid-column: 1/-1;
}

.printable-rules {
    display: grid;
    gap: 9px;
    margin: 12px 0 18px;
    padding: 14px;
    border: 1px solid #d8e1da;
    border-radius: 4px;
}

.printable-rules legend {
    padding: 0 5px;
    color: #17483e;
    font-weight: 700;
}

.printable-rules label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #52645f;
    font-size: .88rem;
    line-height: 1.5;
}

.printable-rules input {
    flex: 0 0 auto;
    margin-top: 4px;
    accent-color: #17483e;
}

#print-question-help {
    display: block;
    margin-top: 6px;
    color: #66766f;
    line-height: 1.45;
}

.print-study-sheet {
    margin-top: 14px;
}

.question-personal-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    padding: 12px;
    border: 1px solid #d8e1da;
    border-radius: 5px;
    background: #f7faf7;
}

.question-personal-tools button {
    padding: 9px 13px;
    border: 1px solid #17483e;
    border-radius: 4px;
    color: #17483e;
    background: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.question-personal-tools button.is-bookmarked {
    color: white;
    background: #17483e;
}

.local-storage-inline {
    margin: 0;
    color: #66766f;
    font-size: .78rem;
    line-height: 1.45;
}

.printable-sheet-output {
    display: none;
}

.personal-tool-card small {
    color: #66766f;
    font-size: .78rem;
}

.personal-tool-card select[multiple] {
    min-height: 130px;
}

@media (max-width:760px) {
    .personal-tools-grid {
        grid-template-columns: 1fr;
    }

    .printable-builder {
        grid-column: auto;
    }
}

@media print {
    body.printing-study-sheet * {
        visibility: hidden !important;
    }

    body.printing-study-sheet #printable-sheet,
    body.printing-study-sheet #printable-sheet * {
        visibility: visible !important;
    }

    body.printing-study-sheet #printable-sheet {
        display: block !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        padding: 24px;
        color: #111;
        background: #fff;
        font-family: Arial, sans-serif;
        line-height: 1.6;
    }

    body.printing-study-sheet #printable-sheet h1 {
        color: #17483e;
    }
}

@media screen {
    html,
    html body {
        background-color: #fbfcfb !important;
        background-image: radial-gradient(ellipse at top left, rgba(210, 198, 238, 0.24), transparent 58%),
            radial-gradient(ellipse at bottom right, rgba(190, 224, 199, 0.24), transparent 58%) !important;
        animation: none !important;
    }
}

@media screen and (prefers-reduced-motion: reduce) {
    html,
    html body {
        background-color: #fbfcfb !important;
    }
}

/* Homepage refresh: SAT Reading & Writing question bank */
html.page-home {
    --ink: #141b2e;
    --muted: #657087;
    --paper: #f5f7fb;
    --forest: #202a43;
    --coral: #7357ff;
    --line: #e0e5ef;
    --home-lime: #c4ff72;
    --home-purple: #7357ff;
}

html.page-home body {
    color: var(--ink);
    background-color: var(--paper) !important;
    background-image:
        radial-gradient(ellipse at 9% 8%, rgba(128, 104, 255, 0.09), transparent 34%),
        radial-gradient(ellipse at 92% 38%, rgba(146, 208, 99, 0.11), transparent 30%) !important;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

html.page-home .page {
    width: min(100% - 48px, 1200px);
}

html.page-home .topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    align-items: center;
    padding: 16px 0;
    border-bottom-color: rgba(209, 216, 230, 0.8);
    background: rgba(245, 247, 251, 0.88);
    backdrop-filter: blur(16px);
}

html.page-home .wordmark {
    color: #202a43;
    font-size: 1.08rem;
    font-weight: 850;
    letter-spacing: -0.045em;
}

html.page-home .wordmark span {
    color: var(--home-purple);
}

html.page-home .home-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.8vw, 32px);
}

html.page-home .home-nav a {
    color: #4c5870;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    transition: color 160ms ease;
}

html.page-home .home-nav a:hover {
    color: var(--home-purple);
}

html.page-home .home-nav a:focus-visible,
html.page-home .home-section-heading > a:focus-visible,
html.page-home .home-domain-card:focus-visible,
html.page-home .home-cta:focus-visible,
html.page-home .home-cta-secondary:focus-visible {
    outline: 3px solid var(--home-purple);
    outline-offset: 4px;
}

html.page-home main {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 58px) 0 76px;
}

html.page-home .home-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    align-items: center;
    gap: clamp(30px, 5vw, 76px);
    overflow: hidden;
    padding: clamp(30px, 5vw, 70px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    color: #f7f8ff;
    background:
        radial-gradient(ellipse at 5% 2%, rgba(117, 83, 255, 0.42), transparent 48%),
        radial-gradient(ellipse at 92% 100%, rgba(92, 161, 130, 0.24), transparent 44%),
        linear-gradient(132deg, #12182b 0%, #1c2741 54%, #182b36 100%);
    box-shadow: 0 28px 80px rgba(27, 38, 67, 0.17);
}

html.page-home .home-hero::after {
    position: absolute;
    z-index: -1;
    top: -190px;
    right: 24%;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.025), 0 0 0 90px rgba(255, 255, 255, 0.02);
}

html.page-home .home-hero-copy,
html.page-home .home-hero-card {
    position: relative;
    z-index: 1;
}

html.page-home .home-hero .eyebrow,
html.page-home .home-section-heading .eyebrow {
    margin: 0 0 16px;
    color: #c5f58f;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
}

html.page-home .home-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #f8f9ff;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: clamp(2.75rem, 6.1vw, 5.2rem);
    font-weight: 760;
    letter-spacing: -0.065em;
    line-height: 0.99;
}

html.page-home .home-hero h1 span {
    color: var(--home-lime);
}

html.page-home .home-hero-lede {
    max-width: 650px;
    margin: 22px 0 0;
    color: #cbd2e2;
    font-size: clamp(1.02rem, 1.5vw, 1.16rem);
    line-height: 1.7;
}

html.page-home .home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    margin-top: 28px;
}

html.page-home .home-cta,
html.page-home .home-cta-secondary {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 0.96rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

html.page-home .home-cta {
    color: #151b2d;
    background: var(--home-lime);
    box-shadow: 0 8px 24px rgba(196, 255, 114, 0.16);
}

html.page-home .home-cta:hover {
    background: #d3ff9a;
    transform: translateY(-2px);
}

html.page-home .home-cta-secondary {
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #f7f8ff;
    background: rgba(255, 255, 255, 0.04);
}

html.page-home .home-cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.09);
}

html.page-home .home-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    margin: 26px 0 0;
    padding: 0;
    color: #cbd2e2;
    font-size: 0.84rem;
    list-style: none;
}

html.page-home .home-trust-row li::before {
    margin-right: 7px;
    color: var(--home-lime);
    content: "✓";
    font-weight: 800;
}

html.page-home .home-hero-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: rgba(9, 14, 27, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
}

html.page-home .home-hero-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #cbd2e2;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.12em;
}

html.page-home .home-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--home-lime);
    box-shadow: 0 0 16px rgba(196, 255, 114, 0.8);
}

html.page-home .home-question-total {
    margin: 18px 0 -4px;
    color: #f8f9ff;
    font-size: clamp(3.9rem, 6vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 1;
}

html.page-home .home-question-caption {
    margin: 8px 0 20px;
    color: #cbd2e2;
    font-size: 0.94rem;
}

html.page-home .home-domain-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: #e2e6ef;
    font-size: 0.82rem;
}

html.page-home .home-domain-summary strong {
    color: var(--home-lime);
    font-size: 0.8rem;
}

html.page-home .home-card-footnote {
    margin: 18px 0 0;
    color: #aeb8cc;
    font-size: 0.78rem;
    line-height: 1.5;
}

html.page-home .home-domain-section {
    margin: clamp(48px, 8vw, 92px) 0 0;
    scroll-margin-top: 96px;
}

html.page-home .home-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

html.page-home .home-section-heading .eyebrow {
    margin-bottom: 8px;
    color: var(--home-purple);
}

html.page-home .home-section-heading h2 {
    max-width: 700px;
    margin: 0;
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    font-weight: 740;
    letter-spacing: -0.055em;
    line-height: 1.08;
}

html.page-home .home-section-heading > a {
    flex: 0 0 auto;
    color: #5941db;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
}

html.page-home .home-section-heading > a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

html.page-home .home-domain-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

html.page-home .home-domain-card {
    min-height: 218px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 26px rgba(30, 43, 74, 0.045);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

html.page-home .home-domain-card:hover {
    transform: translateY(-4px);
    border-color: #bcb2ff;
    box-shadow: 0 18px 40px rgba(37, 46, 78, 0.11);
}

html.page-home .home-domain-number {
    color: #7867c6;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

html.page-home .home-domain-card h3 {
    margin: 22px 0 8px;
    color: #202a43;
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.025em;
}

html.page-home .home-domain-card p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

html.page-home .home-domain-count {
    margin-top: auto;
    padding: 5px 9px;
    border-radius: 999px;
    color: #48409a;
    background: #f0edff;
    font-size: 0.76rem;
    font-weight: 750;
}

html.page-home .study-plan-callout,
html.page-home .volunteer-feature,
html.page-home .sat-motivation {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 30px rgba(30, 43, 74, 0.045);
}

html.page-home .study-plan-callout {
    margin: 42px 0;
    border-left: 4px solid var(--home-purple);
}

html.page-home .study-plan-callout blockquote {
    color: #303956;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 650;
}

html.page-home .action {
    min-height: 48px;
    border-radius: 11px;
    border-color: #27314c;
    background: #27314c;
    font-size: 0.92rem;
}

html.page-home .action.secondary {
    border-color: var(--line);
    color: #303956;
    background: #fff;
}

html.page-home .action:hover {
    background: #394665;
}

html.page-home .section-label {
    color: #202a43;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 740;
    letter-spacing: -0.05em;
}

html.page-home .parts {
    gap: 16px;
}

html.page-home .part-card {
    min-height: 150px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 26px rgba(30, 43, 74, 0.045);
}

html.page-home .part-card strong {
    color: #202a43;
}

html.page-home .part-card:hover {
    border-color: #bcb2ff;
    box-shadow: 0 16px 34px rgba(37, 46, 78, 0.1);
}

html.page-home .sat-motivation {
    border-left: 4px solid var(--home-lime);
}

html.page-home .sat-motivation h2,
html.page-home .referral-heading h2 {
    color: #202a43;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-weight: 740;
    letter-spacing: -0.045em;
}

html.page-home .benefits {
    gap: 14px;
    border-top: 0;
}

html.page-home .benefits > div {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
}

html.page-home .benefits h2 {
    color: #202a43;
}

html.page-home .volunteer-feature {
    border-left: 4px solid var(--home-purple);
}

html.page-home .referral-card,
html.page-home .referral-result {
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(30, 43, 74, 0.045);
}

html.page-home .referral-how {
    border-radius: 14px;
    background: #f2f3fa;
}

html.page-home .referral-button,
html.page-home .referral-field input {
    border-radius: 10px;
}

html.page-home .primary-nav {
    margin-top: 24px;
    padding: 22px 0;
    border-top-color: var(--line);
    gap: 10px 22px;
}

html.page-home .primary-nav a,
html.page-home .footer-links a,
html.page-home .more-links a {
    color: #4d5871;
}

html.page-home .primary-nav a:hover,
html.page-home .footer-links a:hover,
html.page-home .more-links a:hover {
    color: var(--home-purple);
}

html.page-home .more-links {
    flex-wrap: wrap;
    row-gap: 12px;
}

html.page-home footer {
    border-top-color: var(--line);
}

@media (max-width: 980px) {
    html.page-home .home-hero {
        grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
        gap: 28px;
    }

    html.page-home .home-domain-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    html.page-home .page {
        width: min(100% - 32px, 1200px);
    }

    html.page-home .home-hero {
        grid-template-columns: 1fr;
        padding: 30px;
        border-radius: 24px;
    }

    html.page-home .home-hero-card {
        max-width: 520px;
    }

    html.page-home .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    html.page-home .home-domain-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {
    html.page-home .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 14px 0;
    }

    html.page-home .home-nav {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }

    html.page-home .home-nav a {
        font-size: 0.75rem;
        white-space: nowrap;
    }

    html.page-home main {
        padding-top: 24px;
    }

    html.page-home .home-hero {
        padding: 25px 20px;
    }

    html.page-home .home-hero h1 {
        font-size: clamp(2.6rem, 13vw, 3.8rem);
    }

    html.page-home .home-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    html.page-home .home-cta,
    html.page-home .home-cta-secondary {
        width: 100%;
    }

    html.page-home .home-trust-row {
        display: grid;
        gap: 8px;
    }

    html.page-home .home-domain-grid {
        grid-template-columns: 1fr;
    }

    html.page-home .home-domain-card {
        min-height: 180px;
    }

    html.page-home .parts,
    html.page-home .benefits {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.page-home *,
    html.page-home *::before,
    html.page-home *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}