h1:focus {
    outline: none;
}

:root {
    --jd-brand: #ff7043;
    --jd-brand-soft: #fff3e0;
}

html, body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.body {
    display: flex;
    flex: 1;
}

.content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.content-narrow {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.layout-drawer-container {
    width: 100%;
}

.top-nav {
    background: var(--jd-brand);
    color: #fff;
    padding: 0.45rem 1.5rem;
}

.top-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-nav-left {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.logo-wordmark {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.top-banner-text {
    margin-left: 0.65rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.42);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.top-environment-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.35rem;
    padding: 0.12rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.top-nav-links,
.jd-footer__links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.jd-nav-link,
.jd-nav-link:visited,
.jd-nav-link:active {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid transparent;
    box-sizing: border-box;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.jd-nav-link:hover,
.jd-nav-link:focus,
.jd-nav-link.active {
    background: #fff;
    color: var(--jd-brand) !important;
    border-color: var(--jd-brand);
}

.jd-nav-menu-trigger {
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}

.jd-nav-menu-trigger:hover,
.jd-nav-menu-trigger:focus {
    outline: none;
}

.jd-nav-menu-icon {
    margin-left: 0.1rem;
}

.admin-nav-popover .mud-paper {
    border-radius: 12px;
}

/* Shared helpers used by top-right account menu */
.mr-1 {
    margin-right: 0.25rem;
}

.text-brand {
    color: var(--jd-brand) !important;
}

.brand-strong {
    color: var(--jd-brand) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.brand-inline-link,
.brand-inline-link:visited,
.brand-inline-link:active {
    color: var(--jd-brand) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.brand-inline-link:hover,
.brand-inline-link:focus {
    color: var(--jd-brand) !important;
    text-decoration: underline !important;
}

.plan-accent {
    color: var(--jd-brand);
    font-weight: 600;
}

.menu-line {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

/* Top-right account trigger and popover (cloned style direction from JD Align). */
.account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 9999px;
    color: #fff !important;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.account-trigger .mud-avatar-content {
    color: inherit !important;
}

.account-trigger:hover {
    background: var(--jd-brand-soft) !important;
    border-color: var(--jd-brand);
    color: var(--jd-brand) !important;
}

.account-popover {
    margin-top: 60px;
    margin-right: 0;
}

.account-card {
    min-width: 300px;
    max-width: 360px;
    border-radius: 12px;
    box-shadow: none;
    border: 0;
    background: #fff;
    padding: 1rem 1rem 0.75rem !important;
}

.account-links {
    padding: 0.25rem 0.75rem 0.5rem;
}

.account-links .menu-line {
    width: 100%;
    padding: 0.25rem 0;
}

.account-links .mud-link {
    color: var(--jd-brand) !important;
}

.account-menu-link {
    display: inline-flex;
    align-items: center;
    width: 100%;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.account-menu-link:hover,
.account-menu-link:focus {
    background: rgba(255, 112, 67, 0.08);
    text-decoration: none;
}

.account-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    display: block;
}

.account-logo-wordmark {
    color: var(--jd-brand);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.account-avatar-lg {
    width: 56px;
    height: 56px;
    font-weight: 800;
}

.account-avatar-brand,
.account-avatar-brand.mud-avatar {
    background: var(--jd-brand) !important;
    color: #fff !important;
}

.account-profile-link,
.account-profile-link:visited,
.account-profile-link:hover,
.account-profile-link:focus {
    color: var(--jd-brand) !important;
    font-weight: 600;
    text-decoration: none;
}

.jd-nav-profile-btn {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.jd-footer {
    background: var(--jd-brand);
    color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.jd-footer__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 12px clamp(24px, 6vw, 64px);
}

.jd-footer__copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
}

.jd-footer__copy-detail {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.88;
}

.jd-footer .jd-nav-link,
.jd-footer .jd-nav-link:visited,
.jd-footer .jd-nav-link:active {
    color: #fff !important;
}

.jd-footer .jd-nav-link:hover,
.jd-footer .jd-nav-link:focus,
.jd-footer .jd-nav-link.active {
    color: var(--jd-brand) !important;
    background: #fff;
}

/* MudBlazor + JD Align style bridge */
.jd-btn, .jd-btn.mud-button-root {
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    line-height: 1 !important;
    background-color: var(--jd-brand);
    color: #fff;
    border-radius: 6px;
    border: 1px solid #f58025;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    transition: background-color .2s, color .2s;
    text-transform: none !important;
}

.jd-btn.jd-btn-save, .jd-btn.jd-btn-save.mud-button-root {
    background: var(--jd-brand);
    color: #fff !important;
}

.jd-btn.jd-btn-save:hover, .jd-btn.jd-btn-save.mud-button-root:hover {
    background: var(--jd-brand-soft);
    color: var(--jd-brand) !important;
    box-shadow: 0 2px 6px rgba(255, 112, 67, .35);
}

.jd-btn:disabled, .jd-btn.mud-button-root:disabled {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
    background: #f5f5f5 !important;
    color: #999 !important;
    border-color: #ddd !important;
}

.jd-icon-btn-brand, .jd-icon-btn-brand.mud-icon-button-root {
    color: var(--jd-brand) !important;
}

.jd-icon-btn-brand:hover, .jd-icon-btn-brand.mud-icon-button-root:hover {
    background: rgba(255, 112, 67, .12);
}

.admin-card {
    padding: 1rem;
}

.profile-drawer .mud-drawer-content {
    background: #fff;
}

.admin-card .mud-input-control {
    margin-top: 0;
}

.user-accounts-reference {
    padding: .75rem 1rem;
}

.user-accounts-reference-list {
    margin: 0;
    padding-left: 1.2rem;
}

.user-accounts-reference-list li {
    margin: .15rem 0;
}

.admin-detail-pairs {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: .75rem;
    row-gap: .35rem;
    font-size: .8125rem;
}

.admin-detail-label {
    font-weight: 700;
    color: #1f2933;
    white-space: nowrap;
}

.admin-detail-value {
    overflow-wrap: anywhere;
    min-width: 0;
}

.payment-recovery-reference {
    margin-bottom: 1rem;
}

.admin-reference-card {
    padding: 1rem;
    height: 100%;
}

.admin-reference-table-wrap {
    overflow-x: auto;
}

.admin-reference-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .8125rem;
}

.admin-reference-table th,
.admin-reference-table td {
    border: 1px solid #e3e8ef;
    padding: .45rem .55rem;
    text-align: left;
    vertical-align: top;
}

.admin-reference-table th {
    background: #f8fafc;
    color: #1f2933;
    font-weight: 700;
}

.blueprint-inline-setting {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-top: .75rem;
}

.blueprint-inline-setting-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.blueprint-inline-setting-title {
    display: block;
    font-weight: 700;
    line-height: 1.25;
}

.blueprint-inline-setting-copy .text-muted {
    display: block;
    margin-top: .15rem;
}

.blueprint-number-field,
.blueprint-number-field.mud-input-control {
    flex: 0 0 7.25rem;
    width: 7.25rem;
    min-width: 7.25rem;
    max-width: 7.25rem;
}

.blueprint-number-field input {
    text-align: right;
}

@media (max-width: 600px) {
    .blueprint-inline-setting {
        align-items: stretch;
        flex-direction: column;
        gap: .25rem;
    }

    .blueprint-number-field {
        width: 9rem;
        max-width: 9rem;
    }
}

.student-login-page {
    max-width: 560px;
}

.student-login-card {
    padding: 1rem 1rem 0.9rem;
}

.student-login-form {
    width: 100%;
    max-width: 420px;
}

.student-login-input,
.student-login-input .mud-input-control,
.student-login-input .mud-input,
.student-login-input .mud-input-slot {
    width: 100%;
    max-width: 420px;
}

.student-login-input .mud-input-input,
.student-login-input input {
    color: #25313f !important;
    -webkit-text-fill-color: #25313f !important;
    caret-color: #25313f;
}

.student-login-input input:-webkit-autofill,
.student-login-input input:-webkit-autofill:hover,
.student-login-input input:-webkit-autofill:focus,
.student-login-input input:-webkit-autofill:active {
    -webkit-text-fill-color: #25313f !important;
    caret-color: #25313f;
    transition: background-color 9999s ease-in-out 0s;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}

.student-login-submit,
.student-login-submit.mud-button-root {
    width: auto !important;
    min-width: 156px;
    align-self: flex-start;
}

.radio-inline-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Brand-colored radio selection (scoped) */
.jd-radio-group .mud-radio.mud-checked .mud-radio-icon,
.jd-radio-group .mud-radio.mud-checked svg,
.jd-radio-group .mud-radio .mud-radio-icon,
.jd-radio-group .mud-radio svg {
    color: var(--jd-brand) !important;
}

/* Brand-colored parent dashboard form controls. Scoped classes keep MudBlazor defaults elsewhere. */
.jd-brand-select .mud-input.mud-focused .mud-input-outlined-border,
.jd-brand-select .mud-input:focus-within .mud-input-outlined-border {
    border-color: var(--jd-brand) !important;
}

.jd-brand-select .mud-input-label.mud-focused,
.jd-brand-select .mud-input-adornment,
.jd-brand-select .mud-input-adornment .mud-icon-root,
.jd-brand-select svg {
    color: var(--jd-brand) !important;
}

.jd-brand-checkbox.mud-checkbox .mud-icon-root,
.jd-brand-checkbox.mud-checkbox svg,
.jd-brand-checkbox.mud-checkbox.mud-checked .mud-icon-root,
.jd-brand-checkbox.mud-checkbox.mud-checked svg {
    color: var(--jd-brand) !important;
}

.jd-brand-textfield .mud-input-outlined-border {
    border-color: rgba(255, 112, 67, 0.75) !important;
    border-width: 2px !important;
}

.jd-brand-textfield .mud-input.mud-focused .mud-input-outlined-border,
.jd-brand-textfield .mud-input:focus-within .mud-input-outlined-border {
    border-color: var(--jd-brand) !important;
}

.jd-brand-textfield .mud-input-label,
.jd-brand-textfield .mud-input-label.mud-focused {
    color: var(--jd-brand) !important;
}

/* Questions check page styles */
.questions-check-filter-header {
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.questions-check-match-count {
    min-width: 13rem;
    max-width: 100%;
    text-align: center;
    white-space: nowrap;
}

.questions-check-backup-box .mud-button-root {
    white-space: nowrap;
    text-transform: none !important;
}

.questions-check-active-validation-box {
    display: flex;
    flex: 1 1 520px;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 1.5rem;
    min-width: min(100%, 340px);
}

.questions-check-english-exam-generation-box {
    flex: 0 1 25%;
    min-width: 0;
}

.questions-check-active-validation-actions {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: 100%;
}

.questions-check-active-validation-box .mud-button-root {
    white-space: nowrap;
    text-transform: none !important;
}

@media (max-width: 959.98px) {
    .questions-check-english-exam-generation-box {
        flex-basis: 50%;
    }
}

.questions-check-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
}

.jd-brand-spinner,
.jd-brand-spinner svg {
    color: var(--jd-brand) !important;
}

.jd-brand-icon-button,
.jd-brand-icon-button .mud-icon-root,
.jd-brand-icon-button svg {
    color: var(--jd-brand) !important;
}

@media (max-width: 720px) {
    .questions-check-active-validation-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .questions-check-active-validation-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 599.98px) {
    .questions-check-english-exam-generation-box {
        flex-basis: 100%;
    }
}

.question-check-card {
    height: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.test-question-status-bar {
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    border-color: rgba(255, 112, 67, 0.18) !important;
    background: #fffaf6;
}

.test-question-status-bar-expired {
    border-color: rgba(183, 28, 28, 0.28) !important;
    background: #fff7f6;
}

.test-question-status-content,
.test-question-nav-content,
.test-question-number-row {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.test-question-timer-panel {
    min-width: min(18rem, 100%);
}

.test-question-timer-text {
    font-weight: 700;
    color: var(--jd-brand);
}

.test-question-timer-text-expired {
    color: #b71c1c;
}

.test-question-timer-track {
    width: 100%;
    height: 0.4rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.1);
}

.test-question-timer-progress {
    height: 100%;
    border-radius: inherit;
    background: var(--jd-brand);
    transition: width 180ms ease;
}

.test-question-timer-progress-expired {
    background: #b71c1c;
}

.test-question-nav-panel {
    padding: 0.85rem 1rem;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

.test-question-nav-button {
    display: inline-flex;
    min-width: 2rem;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.25rem;
    font-weight: 500;
    color: var(--jd-brand) !important;
    text-decoration: none !important;
    cursor: pointer;
}

.test-question-nav-button-current {
    color: #111827 !important;
    font-weight: 800;
}

.test-question-nav-button:hover {
    text-decoration: underline !important;
}

.test-question-next-button {
    width: auto;
    white-space: nowrap;
}

.test-question-nav-content {
    width: 100%;
}

.test-question-number-row {
    flex: 1 1 auto;
    justify-content: center;
}

.test-question-action-row {
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-left: auto;
}

.exam-response-field textarea {
    line-height: 1.45;
    min-height: clamp(34rem, 74vh, 68rem);
}

.exam-response-layout {
    align-items: flex-start;
}

.exam-response-layout > .mud-grid-item,
.exam-section-detail-column,
.exam-answer-column {
    min-width: 0;
}

.exam-section-detail-column .vce-english-exam-card,
.exam-section-detail-column .vce-exam-page {
    width: 100%;
    max-width: none;
}

.exam-section-detail-column .vce-exam-page {
    padding-left: clamp(18px, 3vw, 44px);
    padding-right: clamp(18px, 3vw, 44px);
}

.exam-response-panel {
    position: sticky;
    top: 0.75rem;
    width: 100%;
}

.exam-framework-options {
    gap: 0.35rem 0.8rem;
}

.exam-section-a-topic-selector {
    padding: 0.75rem 0.9rem;
    border-color: rgba(255, 112, 67, 0.32) !important;
    background: #fffaf6;
}

.exam-section-a-option-selector {
    margin-top: 0.15rem;
}

.exam-section-a-option-selector .mud-radio {
    align-items: center;
}

.exam-framework-selector .mud-radio {
    align-items: flex-start;
}

@media (max-width: 1279.98px) {
    .exam-response-panel {
        position: static;
    }
}

.question-feedback-panel {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #fffaf6;
    border: 1px solid rgba(255, 112, 67, 0.14);
}

.question-feedback-panel-side {
    height: 100%;
}

.question-feedback-actions {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.question-feedback-history-item {
    padding: 0.7rem 0.85rem;
    background: #ffffff;
    border: 1px solid rgba(255, 112, 67, 0.12);
}

.test-check-sessions-layout {
    align-items: stretch;
}

.demo-overview-card {
    height: 100%;
}

.test-check-summary-card {
    height: 100%;
}

.test-check-summary-table td {
    padding: 0.55rem 0;
    vertical-align: top;
}

.test-check-summary-key {
    width: 38%;
    padding-right: 1rem;
}

.test-check-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.25rem;
}

.test-check-summary-grid-student {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.test-check-summary-item {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #fff8f4;
    border: 1px solid rgba(255, 112, 67, 0.12);
}

.question-card-chip-row {
    flex-wrap: wrap;
}

.parent-dashboard-grid {
    align-items: stretch;
}

.student-year-card {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: #fff8f4;
    border: 1px solid rgba(255, 112, 67, 0.12);
}

.student-chip-row {
    flex-wrap: wrap;
}

.parent-student-login-id {
    white-space: nowrap;
}

.teacher-access-request-history-card {
    padding: 0.9rem;
    border-radius: 12px;
    background: #fff8f4;
    border: 1px solid rgba(255, 112, 67, 0.12);
}

.teacher-access-request-layout {
    align-items: flex-start;
}

.teacher-access-subject-card {
    padding: 1rem;
}

.teacher-access-subject-grid {
    align-items: start;
}

.teacher-access-side-panel {
    min-width: 0;
}

.teacher-access-request-form-card {
    padding: 1rem;
}

.teacher-access-admin-grant-card {
    margin-top: 1rem;
    padding: 1rem;
}

.teacher-access-admin-grant-grid {
    align-items: flex-start;
}

.teacher-access-admin-selected-grant {
    padding: 0.85rem;
    border-color: rgba(255, 112, 67, 0.22);
    background: #fffaf7;
}

.teacher-access-filter {
    min-width: 170px;
}

.home-page {
    width: 100%;
    gap: 32px;
}

.school-learning-page {
    max-width: 1480px;
    margin: 0 auto;
    padding: 1.1rem 2rem 2.75rem;
    box-sizing: border-box;
    color: #1f2937;
}

.home-container {
    margin: 0 auto;
    padding: 0 30px;
}

.home-hero {
    background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
    border-radius: 16px;
}

.home-hero-chip {
    width: fit-content;
    color: var(--jd-brand) !important;
    border-color: rgba(255, 112, 67, 0.32) !important;
    background: rgba(255, 243, 224, 0.85) !important;
    font-weight: 600;
}

.home-hero-copy {
    max-width: 46rem;
}

.home-hero-copy-block {
    max-width: none;
    margin: 0;
}

.home-hero-cta-wrap {
    /*width: 100%;*/
}

.home-hero-cta {
/*    width: min(100%, 700px);
*/    margin: 0 auto;
/*    background: #fff3e0 !important;
*/    border-radius: 12px;
}

.home-hero-sign-up,
.home-hero-sign-up.mud-button-root {
    border-color: #2fbf71 !important;
    box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.18), 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.home-hero-sign-up:hover,
.home-hero-sign-up.mud-button-root:hover {
    box-shadow: 0 0 0 4px rgba(47, 191, 113, 0.22), 0 2px 6px rgba(255, 112, 67, 0.35) !important;
}

.home-pricing-link,
.home-pricing-link:visited {
    color: var(--jd-brand) !important;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.home-pricing-link:hover,
.home-pricing-link:focus {
    color: #e45d31 !important;
}

.home-section-block {
    padding: 0;
}

.home-final-section {
    padding-top: 0.5rem;
}

.home-final-header {
    gap: 0.35rem;
    flex-wrap: wrap;
}

.home-product-card,
.home-highlight-card,
.home-coverage-card,
.home-step-card {
    height: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 112, 67, 0.12);
    background: #fff;
}

.home-product-card.mud-paper,
.home-step-card.mud-paper {
    border-radius: 12px !important;
}

.home-highlight-card {
    background: #fff8f4;
}

.home-product-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
}

.home-product-card-live {
    border-color: rgba(47, 191, 113, 0.2);
    box-shadow: inset 0 0 0 1px rgba(47, 191, 113, 0.08);
}

.school-learning-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 112, 67, 0.12);
    background: linear-gradient(180deg, #fffaf6 0%, #ffffff 100%);
}

.school-learning-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 58rem;
}

.school-learning-hero h1.mud-typography {
    max-width: 760px;
    color: #243244;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.16;
}

.school-learning-hero-illustration {
    position: absolute;
    top: 1.25rem;
    right: 1.8rem;
    width: 12rem;
    pointer-events: none;
}

.school-learning-mini-practice-card {
    width: 100%;
    padding: 0.85rem;
    border: 1px solid rgba(255, 112, 67, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.07);
}

.school-learning-mini-card-top,
.school-learning-mini-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.45rem;
}

.school-learning-mini-card-top {
    margin-bottom: 0.6rem;
}

.school-learning-mini-card-top .mud-icon-root {
    color: var(--jd-brand);
}

.school-learning-mini-row + .school-learning-mini-row {
    margin-top: 0.45rem;
}

.school-learning-mini-line {
    display: block;
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(141, 121, 98, 0.18);
}

.school-learning-mini-line-long {
    background: rgba(47, 191, 113, 0.26);
}

.school-learning-mini-line-short {
    width: 70%;
}

.school-learning-mini-check {
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: #4caf50;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.76);
}

.school-learning-mini-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 999px;
}

.school-learning-mini-dot-orange {
    background: rgba(255, 112, 67, 0.72);
}

.school-learning-mini-dot-green {
    background: rgba(47, 191, 113, 0.72);
}

.school-learning-mini-chip {
    width: 1.7rem;
    height: 0.86rem;
    border-radius: 999px;
    border: 1px solid rgba(57, 142, 89, 0.2);
    background: #e9f8ef;
}

.school-learning-mini-progress {
    height: 0.42rem;
    margin-top: 0.7rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 243, 224, 0.95);
}

.school-learning-mini-progress span {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--jd-brand), #4caf50);
}

.school-learning-card-heading {
    gap: 0.55rem;
}

.school-learning-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
}

.school-learning-card-icon-parent {
    color: var(--jd-brand);
    border: 1px solid rgba(255, 112, 67, 0.18);
    background: #fff3e0;
}

.school-learning-card-icon-student {
    color: #1f8f55;
    border: 1px solid rgba(57, 142, 89, 0.18);
    background: #e9f8ef;
}

.school-learning-section-heading {
    gap: 0.5rem 1rem;
}

.school-learning-readable-copy {
    max-width: 82ch;
}

.school-learning-now-grid {
    align-items: stretch;
}

.school-learning-teacher-access-note {
    height: 100%;
    margin-top: 0;
    padding: 1rem;
    border: 1px solid rgba(47, 191, 113, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 250, 246, 0.98), rgba(233, 248, 239, 0.72));
}

.school-learning-pricing-section {
    padding: 1.25rem;
    border: 1px solid rgba(255, 112, 67, 0.16);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 250, 246, 0.98), rgba(255, 255, 255, 0.98) 58%, rgba(233, 248, 239, 0.7));
    box-shadow: inset 0 0 0 1px rgba(255, 112, 67, 0.04);
}

.school-learning-pricing-grid {
    align-items: center;
}

.school-learning-pricing-actions {
    width: 100%;
}

.school-learning-coverage-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
}

.school-learning-coverage-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(255, 112, 67, 0.56), rgba(47, 191, 113, 0.32));
    opacity: 0.75;
}

.school-learning-coverage-heading {
    position: relative;
    margin: -1rem -1rem 0;
    padding: 0.75rem 1rem;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 112, 67, 0.28);
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.18), rgba(255, 190, 92, 0.16) 55%, rgba(0, 137, 167, 0.08));
    box-shadow: inset 0 -1px 0 rgba(255, 112, 67, 0.18);
}

.school-learning-coverage-heading::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--jd-brand);
}

.mud-typography.school-learning-coverage-title {
    position: relative;
    z-index: 1;
    color: #243447;
    font-weight: 500;
}

.school-learning-coverage-title-prefix {
    font-weight: 800;
}

.home-product-heading {
    gap: 0.75rem;
    flex-wrap: wrap;
}

.home-product-actions {
    align-items: center;
}

.home-highlight-item + .home-highlight-item {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 112, 67, 0.12);
}

.home-step-card {
    background: linear-gradient(180deg, #fff9f5 0%, #ffffff 100%);
}

.home-step-number {
    color: var(--jd-brand);
    font-weight: 800;
}

.home-subject-chip,
.home-subject-chip.mud-chip {
    background: #e9f8ef !important;
    color: #1f6b43 !important;
    font-weight: 600;
    border: 1px solid rgba(57, 142, 89, 0.28) !important;
    box-shadow: none;
}

.home-subject-chip .mud-chip-content {
    color: inherit !important;
}

.school-learning-page .home-subject-chip,
.school-learning-page .home-subject-chip.mud-chip {
    color: #243447 !important;
    font-weight: 700;
}

.school-learning-page .home-subject-chip .mud-chip-content {
    color: inherit !important;
}

/* Homepage visual enhancement: scoped to the public home content area. */
.home-container {
    max-width: 1480px;
    padding: 1.1rem 2rem 2.75rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    color: #1f2937;
}

.home-container .text-muted {
    color: #455364 !important;
}

.home-container .mud-typography {
    letter-spacing: 0;
}

.home-section-divider {
    display: none;
    margin: 0 !important;
    opacity: 0;
}

.home-hero.hero-section {
    padding: 3rem 2.25rem;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(255, 112, 67, 0.14);
    background:
        linear-gradient(135deg, rgba(255, 243, 224, 0.9) 0%, rgba(255, 250, 246, 0.96) 48%, rgba(239, 247, 255, 0.88) 100%);
    box-shadow: 0 18px 44px rgba(31, 41, 55, 0.08);
}

.home-hero-layout {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
}

.hero-section__title.mud-typography {
    max-width: 640px;
    color: #243244;
    font-size: clamp(2rem, 2.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.16;
    white-space: nowrap;
}

.hero-section__lead.mud-typography {
    max-width: 720px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.home-hero-point-list {
    max-width: 660px;
    margin: 1.1rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    text-align: left;
}

.home-hero-point {
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr);
    align-items: flex-start;
    gap: 0.55rem;
}

.home-hero-point .mud-icon-root {
    margin-top: 0.18rem;
}

.hero-section__support.mud-typography {
    font-size: 1.04rem;
    line-height: 1.55;
}

.hero-section__fineprint.mud-typography {
    font-size: 0.98rem;
    line-height: 1.55;
}

.home-signup-card-wrap {
    width: min(100%, 520px);
    margin-top: 2rem;
}

.home-signup-card.mud-paper {
    width: 100%;
    padding: 1.35rem 1.45rem !important;
    border-color: rgba(255, 112, 67, 0.1) !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 22px rgba(31, 41, 55, 0.06);
}

.home-signup-benefits {
    width: 100%;
    margin: 0.35rem 0 0;
    padding-left: 1.15rem;
    color: #455364;
    font-size: 1rem;
    line-height: 1.55;
    text-align: left;
}

.home-signup-benefits li + li {
    margin-top: 0.2rem;
}

.home-signup-note.mud-typography {
    width: 100%;
    white-space: nowrap;
}

.home-hero-visual {
    min-width: 0;
    margin: 0;
}

.home-hero-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
    border: 1px solid rgba(255, 112, 67, 0.18);
    border-radius: 20px;
    background: #fff8ef;
    box-shadow: 0 24px 52px rgba(31, 41, 55, 0.14);
}

.home-notice-banner.mud-alert {
    padding: 0.95rem 1.15rem !important;
    border-color: rgba(245, 158, 11, 0.38) !important;
    border-radius: 8px;
    background: #fff7df !important;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.08);
}

.home-notice-banner .mud-alert-icon,
.home-notice-banner .mud-alert-icon .mud-icon-root,
.home-notice-banner .mud-alert-message,
.home-notice-banner .mud-alert-message .mud-typography {
    color: #a45505 !important;
}

.home-feature-grid {
    align-items: stretch;
}

.home-feature-grid > .mud-grid-item {
    display: flex;
}

.feature-card {
    width: 100%;
    min-height: 100%;
    padding: 1.8rem;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(31, 41, 55, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 112, 67, 0.18);
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.11);
}

.feature-card__inner.mud-paper {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: 0.9rem;
    background: transparent;
}

.feature-card .mud-typography-h5 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
}

.feature-card .mud-icon-root {
    padding: 0.32rem;
    border-radius: 999px;
    background: #e9f8ef;
}

.feature-list.help-list {
    margin-top: 0.45rem;
    padding-left: 0;
    list-style: none;
    line-height: 1.68;
}

.feature-list.help-list li {
    position: relative;
    padding-left: 1.65rem;
}

.feature-list.help-list li::before {
    content: "";
    position: absolute;
    top: 0.56rem;
    left: 0.15rem;
    width: 0.42rem;
    height: 0.72rem;
    border-right: 2px solid #22a35a;
    border-bottom: 2px solid #22a35a;
    transform: rotate(40deg);
}

.home-program-section {
    padding-top: 0.15rem;
}

.home-program-section > .mud-stack {
    margin-bottom: 1.1rem !important;
}

.home-program-section .mud-typography-h5 {
    font-weight: 700;
    line-height: 1.28;
}

.home-container .program-card.mud-paper {
    height: 100%;
    padding: 1.8rem;
    border-color: rgba(31, 41, 55, 0.1) !important;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
    box-shadow: 0 14px 32px rgba(31, 41, 55, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-container .program-card.mud-paper:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 112, 67, 0.18) !important;
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.11);
}

.home-year-chip.mud-chip {
    min-height: 34px;
    border-radius: 999px !important;
    font-size: 0.98rem;
    font-weight: 700;
}

.home-year-chip-junior.mud-chip {
    background: #e7f8ef !important;
    color: #1f6b43 !important;
    border-color: rgba(31, 107, 67, 0.22) !important;
}

.home-year-chip-senior.mud-chip {
    background: #e8f1ff !important;
    color: #2453a6 !important;
    border-color: rgba(36, 83, 166, 0.22) !important;
}

.home-cta-button-primary.mud-button-root {
    min-height: 44px;
    padding: 0.64rem 1.25rem !important;
    border: 1px solid var(--jd-brand) !important;
    border-radius: 8px !important;
    background: var(--jd-brand) !important;
    color: #fff !important;
    box-shadow: 0 10px 20px rgba(255, 112, 67, 0.2) !important;
    font-weight: 700 !important;
    letter-spacing: 0;
    text-transform: none !important;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.home-cta-button-primary.mud-button-root:hover,
.home-cta-button-primary.mud-button-root:focus-visible {
    transform: translateY(-1px);
    background: #e45d31 !important;
    box-shadow: 0 12px 24px rgba(228, 93, 49, 0.26) !important;
}

.home-cta-links {
    flex-wrap: wrap;
    gap: 0.65rem !important;
}

.home-cta-link,
.home-cta-link:visited {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.78rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 112, 67, 0.55);
    font-size: 0.98rem;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.home-cta-link:hover,
.home-cta-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(255, 112, 67, 0.14);
}

.home-cta-link-primary,
.home-cta-link-primary:visited {
    border-color: var(--jd-brand);
    background: var(--jd-brand);
    color: #fff !important;
}

.home-cta-link-primary:hover,
.home-cta-link-primary:focus-visible {
    background: #e45d31;
    color: #fff !important;
}

.home-cta-link-secondary,
.home-cta-link-secondary:visited {
    background: #fff;
    color: var(--jd-brand) !important;
}

.home-cta-link-secondary:hover,
.home-cta-link-secondary:focus-visible {
    background: var(--jd-brand);
    color: #fff !important;
}

.home-teacher-access-note {
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 41, 55, 0.08);
}

.home-teacher-access-note > .mud-stack-row {
    gap: 0.45rem !important;
}

.teacher-review-access-list {
    margin-top: 0.25rem;
    line-height: 1.55;
}

.teacher-review-access-list li + li {
    margin-top: 0.35rem;
}

.home-teacher-access-link {
    align-self: flex-start;
}

.faq-panel .mud-stack {
    gap: 0.72rem !important;
}

.faq-card {
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
}

.faq-card__summary {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.95rem;
    border: 0;
    background: transparent;
    color: #223047;
    cursor: default;
    font: inherit;
    text-align: left;
}

.faq-card__question {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.32;
}

.faq-card__arrow.mud-icon-root {
    flex: 0 0 auto;
    color: var(--jd-brand);
}

.faq-card__answer {
    padding: 0 0.95rem 0.95rem;
    border-top: 1px solid rgba(31, 41, 55, 0.06);
}

.faq-card__answer[hidden] {
    display: none !important;
}

.faq-card__answer .mud-typography {
    margin-top: 0.7rem;
    font-size: 0.98rem;
    line-height: 1.58;
}

.home-user-status.mud-alert {
    border-color: rgba(34, 163, 90, 0.38) !important;
    border-radius: 8px;
    background: #f1fbf5 !important;
}

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .home-container .program-card.mud-paper,
    .home-cta-button-primary.mud-button-root,
    .home-cta-link {
        transition: none;
    }

    .feature-card:hover,
    .home-container .program-card.mud-paper:hover,
    .home-cta-button-primary.mud-button-root:hover,
    .home-cta-link:hover {
        transform: none;
    }
}

.test-check-practice-layout {
    align-items: flex-start;
}

.test-check-subtopic-radio-group {
    flex-direction: column;
    gap: 0.65rem;
    align-items: flex-start;
}

.test-check-subtopic-radio-group .mud-radio {
    align-items: flex-start;
    max-width: 100%;
}

.test-check-subtopic-radio-group .mud-typography {
    line-height: 1.45;
}

.test-check-blueprint-panel {
    gap: 0.25rem;
}

.test-check-blueprint-actions {
    width: auto;
    min-width: 0;
    align-items: flex-start;
}

.test-check-blueprint-actions .mud-button-root {
    width: auto !important;
    align-self: flex-start;
}

@media (max-width: 900px) {
    .home-container,
    .school-learning-page {
        padding: 1rem 1rem 2.25rem;
        gap: 1.5rem;
    }

    .school-learning-hero-illustration {
        display: none;
    }

    .home-hero.hero-section {
        padding: 2.25rem 1.5rem;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
        gap: 1.65rem;
    }

    .home-hero-copy-block {
        max-width: 760px;
    }

    .home-signup-card-wrap {
        margin-top: 1.65rem;
    }

    .home-hero-visual {
        width: min(100%, 760px);
        margin: 0 auto;
    }

    .home-hero-visual img {
        max-height: 300px;
        aspect-ratio: 16 / 9;
    }

    .feature-card,
    .home-container .program-card.mud-paper {
        padding: 1.35rem;
    }

    .home-cta-stack .mud-button-root {
        width: 100%;
    }

    .home-final-header {
        align-items: flex-start !important;
    }

    .school-learning-pricing-actions {
        justify-content: flex-start !important;
    }

    .test-check-blueprint-actions {
        width: auto;
        min-width: 0;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .home-container,
    .school-learning-page {
        width: 100vw;
        max-width: 100vw;
        margin-right: 0;
        margin-left: 0;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .logo-img {
        height: 46px;
    }

    .logo-wordmark {
        font-size: 1.2rem;
    }

    .account-logo {
        height: 38px;
    }

    .home-hero-cta {
        width: 100%;
    }

    .school-learning-card-icon {
        width: 1.8rem;
        height: 1.8rem;
    }

    .home-hero.hero-section {
        width: 100%;
        padding: 1.65rem 0.85rem;
        box-sizing: border-box;
    }

    .home-hero-layout,
    .home-hero-copy-block,
    .home-hero-point-list,
    .hero-section__title.mud-typography,
    .hero-section__lead.mud-typography {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero-section__title.mud-typography {
        font-size: 1.82rem;
        line-height: 1.18;
        overflow-wrap: normal;
        white-space: normal;
    }

    .hero-section__lead.mud-typography {
        font-size: 1.02rem;
    }

    .home-hero-point {
        grid-template-columns: 1.15rem minmax(0, 1fr);
        gap: 0.45rem;
    }

    .home-hero-point .mud-typography {
        overflow-wrap: anywhere;
    }

    .home-signup-card.mud-paper {
        padding: 1.15rem !important;
    }

    .home-hero-visual img {
        max-height: 220px;
        border-radius: 16px;
    }

    .home-signup-note.mud-typography {
        white-space: normal;
    }

    .home-cta-links {
        width: 100%;
        align-items: stretch !important;
    }

    .home-cta-link,
    .home-cta-link:visited {
        width: 100%;
    }

    .faq-card__summary {
        align-items: flex-start;
    }
}

.question-check-options {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.question-check-options li {
    margin-bottom: 0.3rem;
}

.question-composite-parts {
    gap: 0.75rem;
}

.question-composite-part {
    border-left: 3px solid rgba(255, 101, 58, 0.28);
    padding-left: 0.85rem;
}

.question-composite-children {
    margin-left: 0.75rem;
}

.skillalign-math-text {
    white-space: normal;
    line-height: 1.6;
}

.question-passage-text {
    white-space: pre-line;
}

.question-passage-table-wrap {
    display: block;
    overflow-x: auto;
}

.question-passage-table-title {
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.question-passage-table {
    width: 100%;
    min-width: 420px;
    border-collapse: collapse;
    font-size: 0.9rem;
    line-height: 1.35;
}

.question-passage-table th,
.question-passage-table td {
    border: 1px solid rgba(0, 0, 0, 0.28);
    padding: 0.35rem 0.5rem;
    text-align: left;
    vertical-align: top;
}

.question-passage-table th {
    background: rgba(0, 0, 0, 0.04);
    font-weight: 600;
}

.question-passage-map-wrap {
    display: block;
    overflow-x: auto;
}

.question-passage-map {
    width: 100%;
    min-width: 300px;
    max-width: 460px;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 4px;
    background: #f7fbf6;
}

.question-passage-geometry {
    width: 100%;
    min-width: 300px;
    max-width: 460px;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 4px;
    background: #fbfbfb;
}

.question-passage-scale-grid {
    width: 100%;
    min-width: 300px;
    max-width: 460px;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 4px;
    background: #fbfbfb;
}

.question-passage-line-graph {
    width: 100%;
    min-width: 300px;
    max-width: 460px;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 4px;
    background: #fff;
}

.question-passage-map-ground {
    fill: #f7fbf6;
    stroke: none;
}

.question-passage-map-pond {
    fill: #d8eef8;
    stroke: #5aa4c3;
    stroke-width: 2;
}

.question-passage-map-tree {
    fill: #76a65e;
    stroke: #4f7f3b;
    stroke-width: 1.5;
}

.question-passage-map-feature,
.question-passage-map-fence,
.question-passage-map-diagonal,
.question-passage-map-right-angle,
.question-passage-map-north,
.question-passage-map-scale {
    stroke: #333;
    stroke-width: 2;
    stroke-linecap: round;
}

.question-passage-map-north-head {
    fill: #333;
}

.question-passage-map-fence {
    stroke-width: 3;
}

.question-passage-map-diagonal {
    stroke-dasharray: 5 4;
}

.question-passage-map-right-angle {
    stroke-width: 1.5;
}

.question-passage-map-label {
    fill: #333;
    font-size: 12px;
}

.question-passage-map-point {
    fill: #222;
    font-size: 15px;
    font-weight: 700;
}

.question-passage-map-note {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    line-height: 1.4;
}

.question-passage-geometry-circle {
    fill: #fff;
    stroke: #555;
    stroke-width: 2;
}

.question-passage-geometry-triangle {
    fill: rgba(255, 112, 67, 0.08);
    stroke: #333;
    stroke-width: 2.5;
}

.question-passage-geometry-dashed {
    stroke: #333;
    stroke-width: 2;
    stroke-dasharray: 5 4;
}

.question-passage-geometry-radius {
    stroke: #666;
    stroke-width: 1.8;
}

.question-passage-scale-grid-small {
    fill: none;
    stroke: rgba(0, 0, 0, 0.24);
    stroke-width: 0.6;
}

.question-passage-scale-grid-large {
    fill: none;
    stroke: rgba(0, 0, 0, 0.55);
    stroke-width: 1;
}

.question-passage-scale-grid-rectangle {
    fill: rgba(120, 120, 120, 0.38);
    stroke: #333;
    stroke-width: 2;
}

.question-passage-graph-axis,
.question-passage-graph-grid {
    stroke: #333;
    stroke-linecap: round;
}

.question-passage-graph-axis {
    stroke-width: 1.4;
}

.question-passage-graph-grid {
    stroke: rgba(0, 0, 0, 0.35);
    stroke-width: 0.8;
}

.question-passage-graph-axis-head {
    fill: #333;
}

.question-passage-graph-curve {
    fill: none;
    stroke: #222;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.question-passage-journey-options {
    width: 100%;
    min-width: 320px;
    max-width: 760px;
}

.question-passage-journey-plot {
    fill: #fff;
    stroke: rgba(0, 0, 0, 0.35);
    stroke-width: 0.8;
}

.question-passage-journey-line {
    fill: none;
    stroke: #222;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.question-passage-network {
    width: 100%;
    min-width: 300px;
    max-width: 520px;
}

.question-passage-weighted-network {
    width: 100%;
    min-width: 300px;
    max-width: 560px;
}

.question-passage-network-edge {
    stroke: #333;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.question-passage-network-vertex {
    fill: #222;
}

.question-passage-weighted-network-label {
    fill: #222;
    font-size: 13px;
    font-weight: 600;
}

.question-passage-scatterplot {
    width: 100%;
    min-width: 320px;
    max-width: 620px;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 4px;
    background: #fff;
}

.question-passage-grid-line {
    stroke: rgba(0, 0, 0, 0.28);
    stroke-width: 0.7;
}

.question-passage-axis-line {
    stroke: #222;
    stroke-width: 1.7;
}

.question-passage-axis-arrow {
    fill: #222;
}

.question-passage-axis-label,
.question-passage-axis-tick {
    fill: #222;
    font-size: 9px;
}

.question-passage-line-of-best-fit {
    stroke: #222;
    stroke-width: 1.4;
}

.question-passage-scatter-point {
    fill: #222;
}

.vce-psychology-dog-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.vce-psychology-dog-line-primary {
    stroke: #222;
}

.vce-psychology-dog-line-secondary {
    stroke: #222;
    stroke-dasharray: 3 4;
}

.vce-psychology-dog-point-primary {
    fill: #222;
}

.vce-psychology-dog-point-secondary {
    fill: #fff;
    stroke: #222;
    stroke-width: 1.3;
}

.vce-psychology-dog-key {
    fill: #fff;
    stroke: #333;
    stroke-width: 1;
}

.question-passage-die-net {
    width: 100%;
    min-width: 300px;
    max-width: 480px;
}

.question-passage-die-net-face {
    fill: #fff;
    stroke: #222;
    stroke-width: 1.2;
}

.question-passage-die-net-pip {
    fill: #222;
}

.question-passage-spinner-comparison {
    width: 100%;
    min-width: 320px;
    max-width: 560px;
    height: auto;
    border: 1px solid rgba(0, 0, 0, 0.24);
    border-radius: 4px;
    background: #fff;
}

.question-passage-spinner-bar {
    stroke: #333;
    stroke-width: 0.8;
}

.question-passage-spinner-bar-red,
.question-passage-spinner-sector-red {
    fill: #f16b5f;
}

.question-passage-spinner-bar-white,
.question-passage-spinner-sector-white {
    fill: #fff;
}

.question-passage-spinner-bar-green,
.question-passage-spinner-sector-green {
    fill: #7ab978;
}

.question-passage-spinner-bar-yellow,
.question-passage-spinner-sector-yellow {
    fill: #f6d66f;
}

.question-passage-spinner-sector {
    stroke: #333;
    stroke-width: 1;
}

.question-passage-spinner-outline {
    fill: none;
    stroke: #222;
    stroke-width: 1.4;
}

.question-passage-spinner-pin {
    fill: #222;
}

.question-passage-cost-revenue-graph {
    width: 100%;
    min-width: 320px;
    max-width: 560px;
}

.question-passage-cost-revenue-line {
    fill: none;
    stroke: #222;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.question-supporting-text {
    white-space: normal;
    line-height: 1.7;
}

.question-supporting-text.question-passage-text {
    white-space: pre-line;
}

.question-supporting-label {
    display: block;
    margin-bottom: 0.15rem;
}

.question-supporting-value {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.skillalign-math-text mjx-container {
    margin: 0 !important;
    font-size: 1em !important;
}

.skillalign-math-text mjx-container[display="true"] {
    display: block;
    margin: 0.45rem 0 !important;
    text-align: center !important;
    overflow-x: auto;
    overflow-y: hidden;
}

.diagram-preview-card {
    margin-top: 0.35rem;
    padding: 0.75rem;
    border-radius: 10px;
    background: #fff8f4;
    border: 1px solid rgba(255, 112, 67, 0.22);
}

.diagram-preview-title {
    display: block;
    margin-bottom: 0.35rem;
    color: #8a4b2f;
    font-weight: 700;
}

.diagram-svg {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
}

.physics-force-diagram-wrap,
.physics-graph-wrap,
.science-bar-chart-wrap,
.biology-food-web-wrap,
.flow-diagram-wrap,
.earth-space-cycle-wrap,
.physics-tow-rope-wrap,
.physics-vertical-circle-wrap,
.physics-puck-collision-wrap,
.physics-spring-oscillation-wrap,
.physics-spring-projectile-wrap,
.physics-projectile-drop-wrap,
.physics-incline-motion-wrap,
.physics-banked-circular-wrap,
.physics-field-direction-options-wrap,
.physics-current-loop-wrap,
.physics-electric-field-zero-wrap,
.physics-satellite-orbit-work-wrap,
.physics-electric-field-square-wrap,
.physics-electron-plates-wrap,
.physics-electron-magnetic-field-wrap,
.physics-earth-satellite-orbit-wrap,
.physics-single-transformer-wrap,
.physics-ac-rms-dc-wrap,
.physics-ac-waveform-options-wrap,
.physics-motor-torque-wrap,
.physics-falling-magnet-emf-wrap,
.physics-transformer-transmission-wrap,
.physics-rotating-coil-generator-wrap,
.physics-diffraction-wrap,
.physics-double-slit-wrap,
.physics-energy-level-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.2rem;
}

.physics-force-diagram-svg {
    display: block;
    width: auto;
    min-width: 0;
    max-width: none;
}

.physics-graph-svg {
    width: 100%;
    min-width: 420px;
    max-width: 680px;
}

.science-bar-chart-svg {
    display: block;
    width: auto;
    min-width: 460px;
    max-width: none;
}

.biology-food-web-svg {
    display: block;
    width: auto;
    min-width: 620px;
    max-width: none;
}

.earth-space-cycle-svg {
    width: 100%;
    min-width: 520px;
    max-width: 860px;
}

.flow-diagram-svg {
    width: 100%;
    min-width: 420px;
    max-width: 680px;
}

.flow-diagram-connector {
    stroke: #1d4ed8;
    stroke-width: 2.8;
    stroke-linecap: round;
}

.flow-diagram-arrow {
    fill: #1d4ed8;
}

.flow-diagram-node {
    fill: #eff6ff;
    stroke: #2563eb;
    stroke-width: 1.8;
}

.flow-diagram-label {
    font-size: 0.72rem;
    font-weight: 700;
    fill: #172554;
}

.physics-force-line {
    stroke: #1d4ed8;
    stroke-width: 4.2;
    stroke-linecap: round;
}

.physics-tow-rope-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.physics-vertical-circle-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 360px;
    margin: 0 auto;
}

.physics-puck-collision-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 520px;
    margin: 0 auto;
}

.physics-spring-oscillation-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 360px;
    margin: 0 auto;
}

.physics-spring-projectile-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 560px;
    margin: 0 auto;
}

.physics-projectile-drop-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 520px;
    margin: 0 auto;
}

.physics-incline-motion-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 560px;
    margin: 0 auto;
}

.physics-banked-circular-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 640px;
    margin: 0 auto;
}

.physics-field-direction-options-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
}

.physics-current-loop-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 520px;
    margin: 0 auto;
}

.physics-electric-field-zero-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 480px;
    margin: 0 auto;
}

.physics-satellite-orbit-work-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 480px;
    margin: 0 auto;
}

.physics-electric-field-square-svg,
.physics-electron-plates-svg,
.physics-electron-magnetic-field-svg,
.physics-earth-satellite-orbit-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 520px;
    margin: 0 auto;
}

.physics-single-transformer-svg,
.physics-ac-rms-dc-svg,
.physics-ac-waveform-options-svg,
.physics-motor-torque-svg,
.physics-falling-magnet-emf-svg,
.physics-rotating-coil-generator-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 560px;
    margin: 0 auto;
}

.physics-transformer-transmission-svg,
.physics-diffraction-svg,
.physics-double-slit-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 520px;
    margin: 0 auto;
}

.physics-energy-level-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 420px;
    margin: 0 auto;
}

.physics-pointer-meter-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 520px;
    margin: 0 auto;
}

.physics-force-accel-svg {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 560px;
    margin: 0 auto;
}

.physics-transformer-source,
.physics-diffraction-source,
.physics-double-slit-source {
    fill: #f8fafc;
    stroke: #475569;
    stroke-width: 2;
}

.physics-transformer-wire,
.physics-transformer-wave,
.physics-transformer-coil,
.physics-diffraction-beam,
.physics-diffraction-ray,
.physics-double-slit-beam,
.physics-double-slit-ray,
.physics-energy-level-transition {
    fill: none;
    stroke: #334155;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.physics-transformer-wave {
    stroke: #0f766e;
    stroke-width: 2;
}

.physics-transformer-coil {
    stroke: #1d4ed8;
    stroke-width: 2.7;
}

.physics-transformer-core,
.physics-transformer-load {
    fill: #eef2ff;
    stroke: #475569;
    stroke-width: 2;
}

.physics-transformer-transmission-line {
    stroke: #1d4ed8;
}

.physics-transformer-arrowhead,
.physics-diffraction-arrowhead,
.physics-double-slit-arrowhead,
.physics-energy-level-arrowhead {
    fill: #334155;
}

.physics-diffraction-beam,
.physics-diffraction-ray,
.physics-double-slit-beam,
.physics-double-slit-ray {
    stroke: #1d4ed8;
}

.physics-diffraction-sample {
    fill: #fef3c7;
    stroke: #92400e;
    stroke-width: 1.8;
}

.physics-diffraction-lattice circle {
    fill: #92400e;
}

.physics-diffraction-screen,
.physics-double-slit-screen {
    fill: #f1f5f9;
    stroke: #64748b;
    stroke-width: 1.8;
}

.physics-diffraction-ring {
    fill: none;
    stroke: #0f766e;
    stroke-width: 2;
}

.physics-diffraction-spot {
    fill: #0f766e;
}

.physics-double-slit-wave {
    fill: none;
    stroke: #0f766e;
    stroke-width: 2.1;
    stroke-linecap: round;
}

.physics-double-slit-barrier {
    fill: #475569;
}

.physics-double-slit-gap {
    fill: #fff8f4;
}

.physics-double-slit-bright-band {
    fill: #fde68a;
    stroke: #d97706;
    stroke-width: 1;
}

.physics-double-slit-spacing {
    fill: none;
    stroke: #dc2626;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.physics-energy-level-line,
.physics-energy-level-ground-line {
    stroke: #334155;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.physics-energy-level-ground-line {
    stroke-width: 3;
}

.physics-energy-level-transition {
    stroke: #dc2626;
    stroke-width: 3;
}

.physics-energy-level-arrowhead {
    fill: #dc2626;
}

.physics-energy-level-photon {
    fill: none;
    stroke: #1d4ed8;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.physics-pointer-meter-body,
.physics-pointer-meter-note {
    fill: #f8fafc;
    stroke: #475569;
    stroke-width: 2;
}

.physics-pointer-meter-scale,
.physics-pointer-meter-tick,
.physics-pointer-meter-zero-mark {
    fill: none;
    stroke: #334155;
    stroke-width: 2;
    stroke-linecap: round;
}

.physics-pointer-meter-pointer {
    stroke: #dc2626;
    stroke-width: 3;
    stroke-linecap: round;
}

.physics-pointer-meter-pivot {
    fill: #334155;
}

.physics-pointer-meter-eye {
    fill: #dbeafe;
    stroke: #1e40af;
    stroke-width: 1.6;
}

.physics-pointer-meter-eye-lines line {
    stroke: #94a3b8;
    stroke-width: 1.4;
    stroke-dasharray: 4 5;
}

.physics-pointer-meter-friction {
    fill: none;
    stroke: #d97706;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.physics-force-accel-bench,
.physics-force-accel-axis {
    stroke: #334155;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.physics-force-accel-cart {
    fill: #f8fafc;
    stroke: #475569;
    stroke-width: 2;
}

.physics-force-accel-wheel,
.physics-force-accel-point {
    fill: #1d4ed8;
    stroke: #1e3a8a;
    stroke-width: 1.2;
}

.physics-force-accel-force,
.physics-force-accel-expected-line,
.physics-force-accel-observed-line {
    fill: none;
    stroke: #1d4ed8;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.physics-force-accel-force {
    stroke: #dc2626;
}

.physics-force-accel-observed-line {
    stroke: #2563eb;
}

.physics-force-accel-arrowhead {
    fill: #dc2626;
}

.physics-spring-support,
.physics-spring-hatching,
.physics-spring-coil,
.physics-spring-motion {
    fill: none;
    stroke: #334155;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.physics-spring-hatching {
    stroke-width: 1.6;
}

.physics-spring-lower-coil {
    opacity: 0.42;
}

.physics-spring-mass-top,
.physics-spring-mass-bottom {
    fill: #e0f2fe;
    stroke: #0369a1;
    stroke-width: 2;
}

.physics-spring-mass-bottom {
    opacity: 0.78;
}

.physics-spring-motion {
    stroke: #16a34a;
    stroke-width: 3.2;
}

.physics-spring-motion-arrowhead {
    fill: #16a34a;
}

.physics-spring-projectile-table,
.physics-spring-projectile-wall {
    fill: #e2e8f0;
    stroke: #475569;
    stroke-width: 2;
}

.physics-spring-projectile-table-leg,
.physics-spring-projectile-floor,
.physics-spring-projectile-spring,
.physics-spring-projectile-launch,
.physics-spring-projectile-path,
.physics-spring-projectile-height {
    fill: none;
    stroke: #334155;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.physics-spring-projectile-spring {
    stroke-width: 2.6;
}

.physics-spring-projectile-ball {
    fill: #fef3c7;
    stroke: #92400e;
    stroke-width: 2;
}

.physics-spring-projectile-launch {
    stroke: #1d4ed8;
    stroke-width: 3.2;
}

.physics-spring-projectile-arrowhead {
    fill: #1d4ed8;
}

.physics-spring-projectile-path {
    stroke: #0284c7;
    stroke-dasharray: 6 6;
}

.physics-spring-projectile-height {
    stroke: #dc2626;
    stroke-width: 1.8;
}

.physics-projectile-drop-ledge,
.physics-projectile-drop-wall,
.physics-projectile-drop-floor,
.physics-projectile-drop-velocity,
.physics-projectile-drop-path,
.physics-projectile-drop-height {
    fill: none;
    stroke: #334155;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.physics-projectile-drop-ledge {
    fill: #e2e8f0;
    stroke: #475569;
}

.physics-projectile-drop-ball {
    fill: #fef3c7;
    stroke: #92400e;
    stroke-width: 2;
}

.physics-projectile-drop-velocity {
    stroke: #1d4ed8;
    stroke-width: 3.2;
}

.physics-projectile-drop-arrowhead {
    fill: #1d4ed8;
}

.physics-projectile-drop-path {
    stroke: #0284c7;
    stroke-dasharray: 6 6;
}

.physics-projectile-drop-height {
    stroke: #dc2626;
    stroke-width: 1.8;
}

.physics-incline-slope,
.physics-incline-floor,
.physics-incline-reference,
.physics-incline-angle-arc,
.physics-incline-callout,
.physics-incline-motion,
.physics-incline-weight,
.physics-incline-normal,
.physics-incline-resistance,
.physics-incline-component {
    fill: none;
    stroke: #334155;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.physics-incline-reference {
    stroke-dasharray: 6 6;
    opacity: 0.65;
}

.physics-incline-callout {
    stroke-width: 1.5;
    opacity: 0.55;
}

.physics-incline-object {
    fill: #e2e8f0;
    stroke: #475569;
    stroke-width: 2;
}

.physics-incline-motion {
    stroke: #16a34a;
    stroke-width: 3.2;
}

.physics-incline-weight,
.physics-incline-normal,
.physics-incline-component {
    stroke: #1d4ed8;
    stroke-width: 3.2;
}

.physics-incline-resistance {
    stroke: #dc2626;
    stroke-width: 3.2;
}

.physics-incline-component {
    stroke-dasharray: 5 5;
    opacity: 0.75;
}

.physics-incline-motion-arrowhead {
    fill: #16a34a;
}

.physics-incline-force-arrowhead {
    fill: #1d4ed8;
}

.physics-incline-resistance-arrowhead {
    fill: #dc2626;
}

.physics-banked-track-edge,
.physics-banked-track-centre,
.physics-banked-radius,
.physics-banked-callout,
.physics-banked-divider,
.physics-banked-horizontal,
.physics-banked-slope,
.physics-banked-angle-arc,
.physics-banked-speed,
.physics-banked-side-force,
.physics-banked-normal,
.physics-banked-weight,
.physics-banked-resultant {
    fill: none;
    stroke: #334155;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.physics-banked-track-edge {
    stroke: #94a3b8;
    stroke-width: 3;
}

.physics-banked-track-centre,
.physics-banked-horizontal {
    stroke-dasharray: 6 6;
    opacity: 0.72;
}

.physics-banked-radius,
.physics-banked-normal,
.physics-banked-resultant {
    stroke: #1d4ed8;
    stroke-width: 3;
}

.physics-banked-speed {
    stroke: #16a34a;
    stroke-width: 3;
}

.physics-banked-side-force,
.physics-banked-weight {
    stroke: #dc2626;
    stroke-width: 3;
}

.physics-banked-callout,
.physics-banked-divider {
    stroke-width: 1.4;
    opacity: 0.55;
}

.physics-banked-slope {
    stroke-width: 2.6;
}

.physics-banked-angle-arc {
    stroke-width: 1.8;
}

.physics-banked-car,
.physics-banked-bank-car {
    fill: #e2e8f0;
    stroke: #475569;
    stroke-width: 2;
}

.physics-banked-wheel,
.physics-banked-centre {
    fill: #475569;
}

.physics-field-direction-table {
    fill: #ffffff;
    stroke: #94a3b8;
    stroke-width: 1.8;
}

.physics-field-direction-grid-line {
    stroke: #cbd5e1;
    stroke-width: 1.2;
}

.physics-field-direction-arrow {
    stroke: #1d4ed8;
    stroke-width: 3;
    stroke-linecap: round;
}

.physics-field-direction-arrowhead {
    fill: #1d4ed8;
}

.physics-field-direction-source {
    fill: #f8fafc;
    stroke: #334155;
    stroke-width: 2.2;
}

.physics-field-direction-symbol {
    fill: #111827;
    font-size: 0.82rem;
    font-weight: 800;
}

.physics-current-loop-wire,
.physics-current-loop-loop {
    fill: none;
    stroke: #111827;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.physics-current-loop-current {
    stroke: #111827;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.physics-current-loop-arrowhead {
    fill: #111827;
}

.physics-current-loop-gap-guide {
    stroke: #94a3b8;
    stroke-width: 1.4;
    stroke-dasharray: 4 5;
}

.physics-current-loop-label {
    fill: #111827;
    font-size: 0.84rem;
    font-weight: 800;
}

.physics-current-loop-side-label {
    fill: #111827;
    font-size: 0.9rem;
    font-weight: 800;
}

.physics-current-loop-caption {
    fill: #475569;
    font-size: 0.72rem;
    font-weight: 700;
}

.physics-electric-field-zero-charge {
    fill: #ffffff;
    stroke: #111827;
    stroke-width: 2.2;
}

.physics-electric-field-zero-charge-label {
    fill: #111827;
    font-size: 0.98rem;
    font-weight: 800;
}

.physics-electric-field-zero-separation {
    stroke: #111827;
    stroke-width: 1.8;
    stroke-dasharray: 5 6;
    stroke-linecap: round;
}

.physics-electric-field-zero-measure,
.physics-electric-field-zero-tick {
    stroke: #111827;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.physics-electric-field-zero-arrowhead {
    fill: #111827;
}

.physics-electric-field-zero-distance {
    fill: #111827;
    font-size: 0.9rem;
    font-weight: 800;
}

.physics-satellite-orbit-path {
    fill: none;
    stroke: #111827;
    stroke-width: 1.8;
    stroke-dasharray: 6 7;
}

.physics-satellite-planet {
    stroke: #111827;
    stroke-width: 2;
}

.physics-satellite-planet-highlight {
    stop-color: #ffffff;
}

.physics-satellite-planet-shade {
    stop-color: #cbd5e1;
}

.physics-satellite-body {
    fill: #f8fafc;
    stroke: #111827;
    stroke-width: 2;
}

.physics-satellite-label-line {
    stroke: #111827;
    stroke-width: 1.4;
    stroke-linecap: round;
}

.physics-satellite-orbit-label {
    fill: #111827;
    font-size: 0.9rem;
    font-weight: 800;
}

.physics-satellite-orbit-caption {
    fill: #475569;
    font-size: 0.76rem;
    font-weight: 700;
}

.physics-electric-field-square-outline {
    fill: none;
    stroke: #111827;
    stroke-width: 2;
    stroke-dasharray: 6 7;
}

.physics-electric-field-square-charge {
    fill: #111827;
    stroke: #111827;
    stroke-width: 1.5;
}

.physics-electric-field-square-empty {
    fill: #ffffff;
    stroke: #111827;
    stroke-width: 2;
}

.physics-electric-field-square-target {
    stroke-width: 2.6;
}

.physics-electric-field-square-label {
    fill: #111827;
    font-size: 0.86rem;
    font-weight: 800;
}

.physics-electric-field-square-caption {
    fill: #475569;
    font-size: 0.76rem;
    font-weight: 700;
}

.physics-electric-field-square-measure {
    stroke: #475569;
    stroke-width: 1.4;
    stroke-linecap: round;
}

.physics-electric-field-square-compass line {
    stroke: #475569;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.physics-electric-field-square-compass path {
    fill: #475569;
}

.physics-electric-field-square-compass text {
    fill: #475569;
    font-size: 0.72rem;
    font-weight: 800;
}

.physics-electron-plates-filament-box {
    fill: #f8fafc;
    stroke: #334155;
    stroke-width: 2;
}

.physics-electron-plates-filament {
    fill: none;
    stroke: #111827;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.physics-electron-plates-plate {
    stroke: #111827;
    stroke-width: 4;
    stroke-linecap: round;
}

.physics-electron-plates-path,
.physics-electron-plates-wire,
.physics-electron-plates-measure {
    fill: none;
    stroke: #111827;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.physics-electron-plates-electron {
    fill: #ffffff;
    stroke: #1d4ed8;
    stroke-width: 2;
}

.physics-electron-plates-arrowhead {
    fill: #111827;
}

.physics-electron-plates-battery-short,
.physics-electron-plates-battery-long {
    stroke: #111827;
    stroke-width: 2;
    stroke-linecap: round;
}

.physics-electron-plates-label {
    fill: #111827;
    font-size: 0.9rem;
    font-weight: 800;
}

.physics-electron-plates-caption {
    fill: #475569;
    font-size: 0.76rem;
    font-weight: 700;
}

.physics-electron-magnetic-field-region {
    fill: #f8fafc;
    stroke: #94a3b8;
    stroke-width: 1.6;
}

.physics-electron-magnetic-cross line {
    stroke: #111827;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.physics-electron-magnetic-dot {
    fill: #111827;
}

.physics-electron-magnetic-electron {
    fill: #ffffff;
    stroke: #111827;
    stroke-width: 2;
}

.physics-electron-magnetic-electron-label,
.physics-electron-magnetic-label {
    fill: #111827;
    font-size: 0.88rem;
    font-weight: 800;
}

.physics-electron-magnetic-caption {
    fill: #475569;
    font-size: 0.76rem;
    font-weight: 700;
}

.physics-electron-magnetic-velocity {
    stroke: #1d4ed8;
    stroke-width: 3;
    stroke-linecap: round;
}

.physics-electron-magnetic-arrowhead {
    fill: #1d4ed8;
}

.physics-earth-satellite-orbit-path {
    fill: none;
    stroke: #111827;
    stroke-width: 1.8;
    stroke-dasharray: 6 7;
}

.physics-earth-satellite-earth {
    stroke: #111827;
    stroke-width: 2;
}

.physics-earth-satellite-highlight {
    stop-color: #ffffff;
}

.physics-earth-satellite-shade {
    stop-color: #cbd5e1;
}

.physics-earth-satellite-body {
    fill: #f8fafc;
    stroke: #111827;
    stroke-width: 1.6;
}

.physics-earth-satellite-panel {
    fill: #dbeafe;
    stroke: #111827;
    stroke-width: 1.2;
}

.physics-earth-satellite-label-line,
.physics-earth-satellite-altitude {
    stroke: #111827;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.physics-earth-satellite-arrowhead {
    fill: #111827;
}

.physics-earth-satellite-label {
    fill: #111827;
    font-size: 0.82rem;
    font-weight: 800;
}

.physics-earth-satellite-caption {
    fill: #475569;
    font-size: 0.76rem;
    font-weight: 700;
}

.physics-single-transformer-source,
.physics-ac-rms-dc-source {
    fill: #f8fafc;
    stroke: #334155;
    stroke-width: 2;
}

.physics-single-transformer-wave,
.physics-ac-rms-dc-wave {
    fill: none;
    stroke: #0f766e;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.physics-single-transformer-wire {
    fill: none;
    stroke: #111827;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.physics-single-transformer-core {
    fill: #eef2ff;
    stroke: #334155;
    stroke-width: 2;
}

.physics-single-transformer-coil {
    fill: none;
    stroke: #1d4ed8;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.physics-single-transformer-arrowhead {
    fill: #111827;
}

.physics-single-transformer-load {
    fill: #f8fafc;
    stroke: #334155;
    stroke-width: 2;
}

.physics-single-transformer-label,
.physics-single-transformer-load-label {
    fill: #111827;
    font-size: 0.78rem;
    font-weight: 800;
}

.physics-single-transformer-caption {
    fill: #475569;
    font-size: 0.72rem;
    font-weight: 700;
}

.physics-ac-rms-dc-wire-loop {
    fill: none;
    stroke: #111827;
    stroke-width: 2;
}

.physics-ac-rms-dc-lamp {
    fill: #fefce8;
    stroke: #334155;
    stroke-width: 2;
}

.physics-ac-rms-dc-filament {
    stroke: #b45309;
    stroke-width: 2;
    stroke-linecap: round;
}

.physics-ac-rms-dc-battery-short,
.physics-ac-rms-dc-battery-long {
    stroke: #111827;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.physics-ac-rms-dc-label {
    fill: #111827;
    font-size: 0.86rem;
    font-weight: 800;
}

.physics-ac-rms-dc-caption,
.physics-ac-rms-dc-polarity {
    fill: #475569;
    font-size: 0.72rem;
    font-weight: 700;
}

.physics-ac-waveform-panel {
    fill: #f8fafc;
    stroke: #cbd5e1;
    stroke-width: 1.4;
}

.physics-ac-waveform-axis {
    stroke: #475569;
    stroke-width: 1.2;
    stroke-linecap: round;
}

.physics-ac-waveform-trace {
    fill: none;
    stroke: #1d4ed8;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.physics-ac-waveform-rating {
    fill: #111827;
    font-size: 0.9rem;
    font-weight: 800;
}

.physics-ac-waveform-option {
    fill: #111827;
    font-size: 0.84rem;
    font-weight: 800;
}

.physics-ac-waveform-scale,
.physics-ac-waveform-caption {
    fill: #475569;
    font-size: 0.68rem;
    font-weight: 700;
}

.physics-motor-torque-magnet {
    fill: #f8fafc;
    stroke: #334155;
    stroke-width: 2;
}

.physics-motor-torque-pole {
    fill: #111827;
    font-size: 1.1rem;
    font-weight: 800;
}

.physics-motor-torque-field-line {
    stroke: #64748b;
    stroke-width: 1.6;
    stroke-dasharray: 5 5;
    stroke-linecap: round;
}

.physics-motor-torque-axis {
    stroke: #475569;
    stroke-width: 1.6;
    stroke-dasharray: 5 5;
}

.physics-motor-torque-coil,
.physics-motor-torque-coil-diagonal {
    fill: none;
    stroke: #111827;
    stroke-width: 2.2;
    stroke-linejoin: round;
}

.physics-motor-torque-current {
    stroke: #1d4ed8;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.physics-motor-torque-arrowhead {
    fill: #1d4ed8;
}

.physics-motor-torque-battery-short,
.physics-motor-torque-battery-long {
    stroke: #111827;
    stroke-width: 2;
    stroke-linecap: round;
}

.physics-motor-torque-label {
    fill: #111827;
    font-size: 0.84rem;
    font-weight: 800;
}

.physics-motor-torque-caption {
    fill: #475569;
    font-size: 0.72rem;
    font-weight: 700;
}

.physics-emf-panel,
.physics-emf-apparatus-panel,
.physics-generator-panel {
    fill: #f8fafc;
    stroke: #cbd5e1;
    stroke-width: 1.5;
}

.physics-emf-title {
    fill: #111827;
    font-size: 0.94rem;
    font-weight: 800;
}

.physics-emf-axis,
.physics-emf-tick,
.physics-generator-lead {
    stroke: #475569;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.physics-emf-zero-line,
.physics-generator-field-line {
    stroke: #64748b;
    stroke-width: 1.4;
    stroke-dasharray: 5 5;
    stroke-linecap: round;
}

.physics-emf-trace,
.physics-generator-wave {
    fill: none;
    stroke: #1d4ed8;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.physics-emf-point {
    fill: #1d4ed8;
    stroke: #ffffff;
    stroke-width: 1.5;
}

.physics-emf-spike-label,
.physics-generator-label {
    fill: #111827;
    font-size: 0.82rem;
    font-weight: 800;
}

.physics-emf-axis-label,
.physics-emf-caption,
.physics-emf-tick-label,
.physics-generator-caption {
    fill: #475569;
    font-size: 0.68rem;
    font-weight: 700;
}

.physics-emf-magnet,
.physics-generator-magnet,
.physics-generator-scope {
    fill: #eef2ff;
    stroke: #334155;
    stroke-width: 2;
}

.physics-emf-magnet-label,
.physics-generator-pole {
    fill: #111827;
    font-size: 1rem;
    font-weight: 800;
}

.physics-emf-coil,
.physics-emf-solenoid-link,
.physics-generator-coil,
.physics-generator-coil-line,
.physics-generator-motion {
    fill: none;
    stroke: #111827;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.physics-emf-fall-arrow {
    stroke: #1d4ed8;
    stroke-width: 2.6;
    stroke-linecap: round;
}

.physics-emf-arrowhead,
.physics-generator-arrowhead {
    fill: #1d4ed8;
}

.physics-generator-rotation-guide {
    fill: none;
    stroke: #94a3b8;
    stroke-width: 1.4;
    stroke-dasharray: 5 5;
}

.physics-generator-coil {
    fill: #f8fafc;
}

.physics-generator-motion {
    stroke: #1d4ed8;
    stroke-width: 2.5;
}

.physics-banked-blue-arrowhead {
    fill: #1d4ed8;
}

.physics-banked-green-arrowhead {
    fill: #16a34a;
}

.physics-banked-red-arrowhead {
    fill: #dc2626;
}

.physics-puck-collision-track {
    stroke: #94a3b8;
    stroke-width: 2;
    stroke-linecap: round;
}

.physics-puck-collision-puck-one {
    fill: #dbeafe;
    stroke: #1d4ed8;
    stroke-width: 2;
}

.physics-puck-collision-puck-two {
    fill: #fee2e2;
    stroke: #dc2626;
    stroke-width: 2;
}

.physics-puck-collision-velocity {
    stroke: #334155;
    stroke-width: 3.2;
    stroke-linecap: round;
}

.physics-puck-collision-arrowhead {
    fill: #334155;
}

.physics-vertical-circle-path {
    fill: none;
    stroke: #334155;
    stroke-width: 1.7;
    stroke-dasharray: 6 5;
}

.physics-vertical-circle-string,
.physics-vertical-circle-string-faint {
    stroke: #334155;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.physics-vertical-circle-string-faint {
    opacity: 0.35;
}

.physics-vertical-circle-centre,
.physics-vertical-circle-location-dot {
    fill: #1f2937;
}

.physics-vertical-circle-ball {
    fill: #e5e7eb;
    stroke: #1f2937;
    stroke-width: 1.8;
}

.physics-vertical-circle-callout,
.physics-vertical-circle-motion-arc {
    fill: none;
    stroke: #334155;
    stroke-width: 1.6;
    stroke-linecap: round;
}

.physics-vertical-circle-motion-arc {
    stroke-dasharray: 4 6;
    opacity: 0.65;
}

.physics-tow-rope-water {
    fill: #e0f2fe;
    stroke: #7dd3fc;
    stroke-width: 1.4;
}

.physics-tow-rope-surface,
.physics-tow-rope-splash {
    fill: none;
    stroke: #0284c7;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.physics-tow-rope-board {
    fill: #f8fafc;
    stroke: #475569;
    stroke-width: 2;
}

.physics-tow-rope-rider-fill {
    fill: #fef3c7;
    stroke: #92400e;
    stroke-width: 2;
}

.physics-tow-rope-body-line,
.physics-tow-rope-rope {
    fill: none;
    stroke: #334155;
    stroke-width: 4;
    stroke-linecap: round;
}

.physics-tow-rope-rope {
    stroke-dasharray: 7 6;
}

.physics-tow-rope-tow-point {
    fill: #64748b;
}

.physics-tow-rope-force,
.physics-tow-rope-resistance,
.physics-tow-rope-acceleration {
    fill: none;
    stroke: #1d4ed8;
    stroke-width: 5;
    stroke-linecap: round;
}

.physics-tow-rope-resistance {
    stroke: #dc2626;
}

.physics-tow-rope-acceleration {
    stroke: #16a34a;
    stroke-width: 4;
}

.physics-tow-rope-arrowhead {
    fill: #1d4ed8;
}

.physics-tow-rope-resistance-arrowhead {
    fill: #dc2626;
}

.physics-tow-rope-acceleration-arrowhead {
    fill: #16a34a;
}

.physics-force-panel-label,
.physics-force-arrow-label,
.physics-force-body-label,
.physics-tow-rope-label,
.physics-tow-rope-force-label,
.physics-vertical-circle-label,
.physics-vertical-circle-point-label,
.physics-puck-collision-label,
.physics-puck-collision-row-label,
.physics-puck-collision-puck-label,
.physics-spring-label,
.physics-spring-mass-label,
.physics-spring-projectile-label,
.physics-projectile-drop-label,
.physics-incline-label,
.physics-field-direction-label,
.physics-field-direction-option-label,
.physics-transformer-label,
.physics-transformer-core-label,
.physics-diffraction-label,
.physics-double-slit-label,
.physics-energy-level-label,
.physics-graph-point-label,
.physics-graph-tick-label {
    font-size: 0.84rem;
    font-weight: 600;
}

.physics-puck-collision-puck-label {
    font-size: 0.68rem;
}

.physics-force-motion-hint,
.physics-graph-axis-label {
    font-size: 0.82rem;
    font-weight: 600;
}

.physics-graph-axis {
    stroke-width: 2.4;
}

.physics-graph-tick {
    stroke: #64748b;
    stroke-width: 1.6;
}

.physics-graph-line {
    fill: none;
    stroke: #1d4ed8;
    stroke-width: 3.2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.physics-graph-point {
    fill: #1d4ed8;
    stroke: #ffffff;
    stroke-width: 2;
}

.physics-magnetic-force-title,
.physics-magnetic-force-label {
    font-size: 0.84rem;
    font-weight: 700;
}

.physics-magnetic-force-small {
    font-size: 0.72rem;
    font-weight: 600;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 3px;
    stroke-linejoin: round;
}

.physics-magnetic-force-beam,
.physics-magnetic-force-axis {
    stroke: #334155;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.physics-magnetic-force-pivot {
    fill: #e2e8f0;
    stroke: #334155;
    stroke-width: 2;
}

.physics-magnetic-force-mass {
    fill: #f8fafc;
    stroke: #334155;
    stroke-width: 2;
}

.physics-magnetic-force-solenoid,
.physics-magnetic-force-note {
    fill: #f8fafc;
    stroke: #94a3b8;
    stroke-width: 1.8;
}

.physics-magnetic-force-coil,
.physics-magnetic-force-loop {
    fill: none;
    stroke: #1d4ed8;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.physics-magnetic-force-loop {
    stroke: #0f172a;
    stroke-width: 2.4;
}

.physics-magnetic-force-down {
    fill: none;
    stroke: #dc2626;
    stroke-width: 3;
    stroke-linecap: round;
}

.physics-magnetic-force-arrowhead {
    fill: #dc2626;
}

.physics-magnetic-force-trend {
    stroke: #1d4ed8;
    stroke-width: 3.2;
    stroke-linecap: round;
}

.physics-magnetic-force-error-bar {
    stroke: #64748b;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.physics-magnetic-force-point {
    fill: #1d4ed8;
    stroke: #ffffff;
    stroke-width: 2;
}

.science-bar-chart-axis {
    stroke-width: 2.4;
}

.science-bar-chart-bar {
    fill: var(--jd-brand);
}

.science-bar-chart-label,
.biology-food-web-node-label,
.biology-food-web-link-label {
    font-size: 0.84rem;
    font-weight: 600;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.science-bar-chart-axis-label,
.biology-food-web-role-label {
    font-size: 0.82rem;
    font-weight: 600;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.biology-food-web-legend {
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.95);
    stroke-width: 4px;
    stroke-linejoin: round;
}

.biology-food-web-link {
    stroke: #2563eb;
    stroke-width: 3.2;
    stroke-linecap: round;
}

.biology-food-web-node {
    stroke-width: 2.4;
}

.biology-food-web-node-producer {
    fill: #dcfce7;
    stroke: #15803d;
}

.biology-food-web-node-consumer {
    fill: #dbeafe;
    stroke: #2563eb;
}

.biology-food-web-node-decomposer {
    fill: #fef3c7;
    stroke: #d97706;
}

.earth-space-cycle-panel-label,
.earth-space-cycle-body-label {
    font-size: 0.84rem;
    font-weight: 600;
}

.earth-space-sunlight-line {
    stroke: #f59e0b;
    stroke-width: 3;
    stroke-linecap: round;
}

.earth-space-sun {
    fill: url(#earth-space-sun-fill);
    stroke: #d97706;
    stroke-width: 2.2;
}

.earth-space-earth {
    fill: #bfdbfe;
    stroke: #2563eb;
    stroke-width: 2.2;
}

.earth-space-moon {
    fill: #e5e7eb;
    stroke: #6b7280;
    stroke-width: 1.8;
}

.chemistry-particle-diagram-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.2rem;
}

.chemistry-particle-diagram-svg {
    width: 100%;
    min-width: 520px;
    max-width: 760px;
}

.chemistry-particle-panel-label {
    font-size: 11px;
}

.diagram-label,
.diagram-annotation,
.diagram-axis-label {
    fill: #3b2a22;
    font-size: 11px;
    font-weight: 600;
    paint-order: stroke fill;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 2.5px;
    stroke-linejoin: round;
}

.diagram-axis {
    stroke: #5c5c5c;
    stroke-width: 2;
}

.diagram-grid-line {
    stroke: rgba(0, 0, 0, 0.08);
    stroke-width: 1;
}

.diagram-shape-line {
    stroke: var(--jd-brand);
    stroke-width: 2.4px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.diagram-helper-line {
    stroke: rgba(255, 112, 67, 0.6);
    stroke-width: 1.6px;
    stroke-dasharray: 4 3;
    stroke-linecap: round;
    fill: none;
}

.diagram-region-fill {
    fill: rgba(255, 112, 67, 0.16);
    stroke: rgba(255, 112, 67, 0.28);
    stroke-width: 1px;
}

.diagram-angle-sector {
    fill: rgba(255, 112, 67, 0.18);
    stroke: rgba(255, 112, 67, 0.42);
    stroke-width: 1.2px;
}

.argand-vector {
    stroke: #222;
    stroke-width: 1.8px;
}

.argand-z-vector {
    stroke: #3154ff;
    stroke-width: 2px;
}

.argand-w-vector {
    stroke: #ff3f34;
    stroke-width: 2px;
}

.argand-root-triangle {
    stroke: rgba(32, 32, 32, 0.78);
    stroke-width: 1.4px;
}

.argand-product-vector {
    stroke: #3154ff;
    stroke-width: 2px;
}

.argand-root-circle {
    fill: none;
    stroke: rgba(32, 32, 32, 0.36);
    stroke-dasharray: 5 4;
    stroke-width: 1.2px;
}

.argand-point {
    fill: var(--jd-brand);
}

.argand-product-point {
    fill: #3154ff;
}

.argand-z-point {
    fill: #3154ff;
}

.argand-w-point {
    fill: #ff3f34;
}

.argand-root-point {
    fill: #222;
}

.argand-angle-arc {
    fill: rgba(49, 84, 255, 0.12);
    stroke: rgba(49, 84, 255, 0.45);
}

.diagram-json-fallback {
    margin: 0;
    padding: 0.65rem;
    white-space: pre-wrap;
    overflow-x: auto;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.78rem;
}

.jd-quiz-choice {
    padding: 2px 6px;
    border-radius: 6px;
}

.jd-quiz-choice-correct {
    color: #000;
    font-weight: 600;
    background: #e7f5e8;
}

/* Question review selected-row style (aligned to JD admin selection behavior). */
.jd-review-row {
    cursor: pointer;
}

.jd-review-row-selected {
    background: var(--jd-brand-soft) !important;
    border-left: 3px solid var(--jd-brand);
}

.pricing-page {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.pricing-hero {
    width: 100%;
    box-sizing: border-box;
    padding: clamp(1rem, 2vw, 1.5rem);
}

.pricing-helper-text {
    color: #6f6f6f;
}

.pricing-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 1rem;
}

.pricing-loading-skeletons {
    width: min(720px, 100%);
}

.pricing-bundle-callout {
    width: fit-content;
    margin-top: 0.15rem;
    box-shadow: 0 6px 14px rgba(47, 191, 113, 0.14);
}

.pricing-bundle-callout .mud-chip-content {
    font-weight: 700;
}

.pricing-hero h1.mud-typography,
.help-page .help-hero h1.mud-typography {
    max-width: 760px;
    color: #243244;
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.16;
}

.pricing-hero h1.mud-typography {
    text-align: center;
}

.pricing-table-card {
    overflow: hidden;
}

.pricing-table-overview-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.pricing-table-overview-layout > .pricing-card {
    align-self: start;
}

.pricing-overview-column {
    align-self: start;
    min-width: 0;
}

.pricing-framework-table-column {
    min-width: 0;
}

.pricing-framework-filter {
    margin-bottom: 1rem;
}

.pricing-framework-filter-label {
    color: #3f3f3f;
    font-weight: 700;
}

.pricing-framework-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.25rem;
    border: 1px solid rgba(255, 112, 67, 0.18);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.08), rgba(0, 137, 167, 0.04));
    overflow: visible;
}

.pricing-framework-tab.mud-button-root {
    flex: 1 1 7rem;
    min-height: 42px;
    min-width: 6.5rem;
    border-radius: 6px;
    color: #243244;
    font-weight: 700;
    text-transform: none;
}

.pricing-framework-tab.mud-button-root:hover {
    background: rgba(255, 112, 67, 0.1);
}

.pricing-framework-tab-active.mud-button-root,
.pricing-framework-tab-active.mud-button-root:hover {
    background: #fff;
    color: var(--jd-brand);
    box-shadow: inset 0 -3px 0 var(--jd-brand);
}

.pricing-framework-tab-pending.mud-button-root {
    cursor: wait;
}

.pricing-framework-tab-spinner {
    margin-right: 0.35rem;
}

.pricing-framework-tab-content {
    position: relative;
    padding: 1rem;
    background: #fff;
}

.pricing-framework-tab-content-busy .pricing-group-section {
    opacity: 0.45;
    pointer-events: none;
}

.pricing-framework-tab-loading {
    position: absolute;
    inset: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 8rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--jd-brand);
    font-weight: 700;
}

.pricing-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.pricing-group-grid.demo-catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-group-grid.parent-free-subject-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-group-grid.teacher-access-subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 1440px) {
    .pricing-group-grid.teacher-access-subject-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pricing-group-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.pricing-group-section {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 112, 67, 0.18);
    border-radius: 8px;
    background: #fff;
}

.pricing-group-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 112, 67, 0.16);
    background: #fffaf7;
}

.demo-group-section .pricing-group-heading,
.pricing-page .pricing-group-section .pricing-group-heading,
.teacher-access-request-page .pricing-group-section .pricing-group-heading {
    position: relative;
    overflow: hidden;
    border-bottom-color: rgba(255, 112, 67, 0.28);
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.18), rgba(255, 190, 92, 0.16) 55%, rgba(0, 137, 167, 0.08));
    box-shadow: inset 0 -1px 0 rgba(255, 112, 67, 0.18);
}

.demo-group-section .pricing-group-heading::before,
.pricing-page .pricing-group-section .pricing-group-heading::before,
.teacher-access-request-page .pricing-group-section .pricing-group-heading::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--jd-brand);
}

.pricing-group-title {
    font-weight: 700;
    color: #2f2f2f;
}

.demo-group-section .pricing-group-title,
.pricing-page .pricing-group-section .pricing-group-title,
.teacher-access-request-page .pricing-group-section .pricing-group-title {
    font-weight: 800;
}

.demo-group-section .pricing-group-heading .pricing-helper-text,
.pricing-page .pricing-group-section .pricing-group-heading .pricing-helper-text,
.teacher-access-request-page .pricing-group-section .pricing-group-heading .pricing-helper-text {
    color: #4f5965;
    font-weight: 600;
}

.pricing-group-table .mud-table-cell {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.demo-group-table th:first-child,
.demo-group-table td:first-child {
    width: 5.25rem;
    min-width: 5.25rem;
    max-width: 5.25rem;
}

.pricing-page .pricing-group-table th:nth-child(2),
.pricing-page .pricing-group-table td:nth-child(2),
.teacher-access-request-page .pricing-group-table th:nth-child(2),
.teacher-access-request-page .pricing-group-table td:nth-child(2) {
    width: 5.25rem;
    min-width: 5.25rem;
    max-width: 5.25rem;
}

.pricing-page .pricing-subject-name,
.teacher-access-request-page .pricing-subject-name {
    color: #243447;
    font-weight: 700;
}

.pricing-page .pricing-subject-in-development .pricing-subject-name {
    color: inherit;
    font-weight: 500;
}

/* Keep catalogue subject links readable; reserve brand orange for interaction states. */
.demo-group-table .mud-link {
    color: #243447 !important;
    font-weight: 700;
}

.demo-group-table .mud-link:hover,
.demo-group-table .mud-link:focus-visible {
    color: var(--jd-brand) !important;
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}

.demo-version-row {
    cursor: pointer;
}

.demo-version-row-selected td {
    background: rgba(255, 112, 67, 0.1) !important;
    box-shadow: inset 3px 0 0 var(--jd-brand);
}

.demo-version-row-selected:hover td {
    background: rgba(255, 112, 67, 0.14) !important;
}

.demo-copyright-note,
.test-check-copyright-note {
    margin-top: 0.15rem;
}

.question-admin-visual-answer-grid,
.demo-question-visual-choice-grid {
    align-items: flex-start;
}

.question-admin-visual-column,
.demo-question-visual-column,
.question-admin-answer-column {
    min-width: 0;
}

.demo-admin-question-list .diagram-preview-card,
.demo-question-list .diagram-preview-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.demo-admin-question-list .diagram-preview-title,
.demo-question-list .diagram-preview-title {
    align-self: flex-start;
}

.demo-admin-question-list .diagram-svg,
.demo-question-list .diagram-svg {
    width: min(100%, 24rem);
    min-width: 0;
    max-width: 24rem;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
}

.demo-admin-question-list .physics-graph-svg,
.demo-admin-question-list .science-bar-chart-svg,
.demo-admin-question-list .biology-food-web-svg,
.demo-admin-question-list .earth-space-cycle-svg,
.demo-question-list .physics-graph-svg,
.demo-question-list .science-bar-chart-svg,
.demo-question-list .biology-food-web-svg,
.demo-question-list .earth-space-cycle-svg {
    width: min(100%, 42rem);
    max-width: 42rem;
}

.demo-admin-question-list .physics-force-diagram-wrap,
.demo-admin-question-list .physics-graph-wrap,
.demo-admin-question-list .science-bar-chart-wrap,
.demo-admin-question-list .biology-food-web-wrap,
.demo-admin-question-list .earth-space-cycle-wrap,
.demo-admin-question-list .chemistry-particle-diagram-wrap,
.demo-question-list .physics-force-diagram-wrap,
.demo-question-list .physics-graph-wrap,
.demo-question-list .science-bar-chart-wrap,
.demo-question-list .biology-food-web-wrap,
.demo-question-list .earth-space-cycle-wrap,
.demo-question-list .chemistry-particle-diagram-wrap {
    display: flex;
    justify-content: center;
    overflow-x: auto;
}

.demo-question-list .demo-question-prompt,
.demo-question-list .demo-question-prompt .skillalign-math-text {
    font-weight: 700;
    text-align: left;
    white-space: pre-line;
}

.demo-question-list .demo-question-prompt .katex-display,
.demo-question-list .question-composite-parts .katex-display {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.demo-question-list .question-composite-parts .skillalign-math-text {
    text-align: left;
    white-space: pre-line;
}

.demo-question-list .demo-question-prompt .skillalign-math-text mjx-container[display="true"],
.demo-question-list .question-composite-parts .skillalign-math-text mjx-container[display="true"] {
    text-align: left !important;
}

.demo-question-list .demo-question-text-panel {
    min-width: 0;
}

.demo-question-list .question-composite-parts {
    gap: 1.35rem;
}

.demo-question-list .question-composite-part {
    border-left: 0;
    padding-left: 0;
}

.demo-question-list .question-composite-part + .question-composite-part {
    margin-top: 0.35rem;
}

.demo-question-list .demo-choice-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0.45rem;
}

.demo-question-list .demo-choice-list .demo-choice-option,
.demo-question-list .demo-choice-list .mud-radio,
.demo-question-list .demo-choice-list label {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    margin: 0 !important;
}

.demo-question-list .demo-choice-list .mud-radio > span:last-child,
.demo-question-list .demo-choice-list .mud-radio .mud-typography,
.demo-question-list .demo-choice-list .skillalign-math-text {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.demo-question-list .demo-diagram-placeholder {
    width: 100%;
    justify-content: center;
    background: #fff;
    border-style: dashed;
    color: #607d8b;
    text-align: center;
}

.demo-question-list .demo-diagram-placeholder .mud-typography {
    color: inherit;
}

.demo-question-list .demo-question-answer-column {
    min-width: 0;
}

.demo-question-list .demo-question-answer-feedback {
    width: 100%;
}

@media (max-width: 959.98px) {
    .demo-question-list .demo-question-visual-placeholder-item {
        display: none;
    }
}

.demo-subquestion-feedback {
    border: 1px solid rgba(120, 144, 156, 0.45);
    border-radius: 4px;
    color: #37474f;
    margin: 0.65rem 0 0.85rem;
    padding: 0.85rem 1rem;
}

.demo-subquestion-feedback-correct {
    border-color: #00c853;
    color: #008a35;
}

.demo-subquestion-feedback-incorrect {
    border-color: #ff9800;
    color: #9a5b00;
}

.pricing-development-marker {
    color: var(--jd-brand);
    font-weight: 800;
    line-height: 1;
}

.pricing-subject-in-development,
.pricing-subject-in-development .pricing-development-marker {
    color: #6c757d;
}

.pricing-summary-card {
    padding: 1.25rem;
}

.pricing-subscription-update-tip {
    padding: 0.85rem;
    border-color: rgba(255, 112, 67, 0.32);
    background: linear-gradient(135deg, #fff7f2 0%, #ffffff 100%);
}

.pricing-subscription-update-tip .mud-icon-root {
    color: var(--jd-brand);
    margin-top: 0.1rem;
}

.pricing-subscription-update-tip .mud-typography-body2 {
    color: #5f5f5f;
    line-height: 1.45;
}

.pricing-side-panel {
    width: 100%;
}

.pricing-select-column {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    text-align: center;
}

.pricing-price-column {
    width: 7.75rem;
    min-width: 7.75rem;
    max-width: 7.75rem;
    text-align: right;
    white-space: nowrap;
}

.pricing-year-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff8f4;
    color: #8a4b2f;
    font-weight: 700;
}

.pricing-year-divider td {
    border-top: 2px solid rgba(255, 112, 67, 0.24) !important;
}

.pricing-row-selected td {
    background: rgba(255, 112, 67, 0.08);
}

.pricing-row-selected:hover td {
    background: rgba(255, 112, 67, 0.12);
}

.pricing-row-locked td {
    background: rgba(255, 193, 7, 0.08);
}

.pricing-row-locked:hover td {
    background: rgba(255, 193, 7, 0.12);
}

.pricing-row-disabled td {
    background: rgba(120, 120, 120, 0.06);
    color: #7a7a7a;
}

.pricing-row-disabled:hover td {
    background: rgba(120, 120, 120, 0.08);
}

.pricing-row-disabled .pricing-year-badge {
    background: #f4f4f4;
    color: #7a7a7a;
}

.pricing-summary-sticky {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    z-index: 2;
}

.pricing-summary-item {
    padding: 0.75rem;
    background: #fffaf7;
    border-color: rgba(255, 112, 67, 0.2);
}

.pricing-summary-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
}

.pricing-summary-item-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.pricing-summary-item-title {
    font-weight: 600;
    min-width: 0;
}

.pricing-summary-item-price {
    white-space: nowrap;
    font-weight: 700;
    color: #3f3f3f;
}

.pricing-summary-remove-btn.mud-icon-button {
    width: 2rem;
    height: 2rem;
    color: var(--jd-brand);
}

.pricing-summary-remove-btn.mud-icon-button:hover {
    background: var(--jd-brand-soft);
}

.pricing-summary-footer {
    align-items: stretch;
    gap: 1rem;
}

.pricing-summary-metrics {
    gap: 0.25rem;
}

.pricing-summary-total {
    color: #2f2f2f;
}

.pricing-summary-buttons {
    justify-content: flex-end;
    gap: 0.5rem;
}

.pricing-clear-btn,
.pricing-clear-btn.mud-button-root {
    color: var(--jd-brand) !important;
    border-color: rgba(255, 112, 67, 0.45) !important;
    text-transform: none !important;
}

.pricing-clear-btn:hover,
.pricing-clear-btn.mud-button-root:hover {
    background: var(--jd-brand-soft) !important;
}

.pricing-select-checkbox,
.pricing-select-checkbox .mud-icon-root,
.pricing-select-checkbox svg {
    color: var(--jd-brand) !important;
}

.pricing-empty-state {
    color: #6f6f6f;
}

.pricing-availability-note {
    display: block;
    margin: 0.9rem 1rem 1rem;
}

.pricing-practice-coverage-link {
    display: inline-block;
    margin: 0.55rem 1rem 0;
}

.pricing-wishlist-card {
    padding: clamp(1rem, 2vw, 1.5rem);
    border-color: rgba(255, 112, 67, 0.22);
}

.pricing-wishlist-grid {
    align-items: stretch;
}

.pricing-wishlist-builder,
.pricing-wishlist-summary {
    height: 100%;
}

.pricing-wishlist-radios {
    gap: 0.25rem 0.7rem;
}

.pricing-wishlist-actions {
    gap: 0.5rem;
}

.pricing-wishlist-empty,
.pricing-wishlist-item {
    padding: 0.75rem;
    border-color: rgba(255, 112, 67, 0.2);
}

.pricing-wishlist-empty {
    background: #fffaf7;
    color: #6f6f6f;
}

.pricing-wishlist-items {
    max-height: 280px;
    overflow: auto;
}

.pricing-wishlist-item {
    background: #ffffff;
}

.pricing-wishlist-item-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.pricing-wishlist-item-title {
    font-weight: 700;
    color: #2f2f2f;
}

.subscribe-page {
    max-width: 1080px;
    margin: 0 auto;
}

.checkout-loading-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 260px);
    width: 100%;
    padding: clamp(2rem, 6vw, 5rem) 1rem;
}

.checkout-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(420px, 100%);
    padding: 2.5rem 1.5rem !important;
    text-align: center;
}

.checkout-loading-spinner,
.checkout-loading-spinner svg {
    color: var(--jd-brand) !important;
}

.checkout-loading-text {
    color: #2f2f2f;
}

.subscribe-page-grid {
    align-items: flex-start;
}

.subscribe-plan-card,
.subscribe-form-card,
.subscribe-empty-card,
.legal-card {
    border-radius: 16px;
}

.plan-summary {
    width: 100%;
    min-width: 320px;
    border-right: 1px solid #ddd;
    padding-right: 2rem;
}

.subscribe-plan-card .mud-card-content,
.subscribe-form-card .mud-card-content {
    padding: clamp(1.25rem, 2vw, 1.75rem);
}

.subscribe-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-left: 0;
}

.subscribe-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.subscribe-title {
    font-family: inherit;
    line-height: 1.1;
    color: var(--jd-brand);
    font-weight: 700;
}

.subscribe-term-chip {
    background: var(--jd-brand) !important;
    color: #fff !important;
    font-weight: 600;
    padding: 0 0.5rem;
    height: 22px;
    line-height: 22px;
    border-radius: 9999px;
    text-transform: capitalize;
}

.brand-note {
    border-color: rgba(255, 112, 67, 0.55) !important;
    background: rgba(255, 248, 244, 0.7);
}

.brand-accent {
    color: var(--jd-brand);
}

.brand-note .mud-alert-message,
.brand-note .mud-alert-message .mud-typography,
.brand-note .mud-alert-message span,
.brand-note .mud-alert-message p {
    color: #1f1f1f !important;
}

.brand-note .mud-alert-icon,
.brand-note .mud-alert-icon .mud-icon-root,
.brand-note .mud-alert-icon svg {
    color: var(--jd-brand) !important;
}

.subscribe-selected-item-row,
.subscribe-amount-row,
.amount-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.subscribe-selected-item-row {
    padding: 0.55rem 0;
}

.amount-row.total {
    font-weight: 600;
}

.checkout-first-total {
    align-items: center;
    padding-top: 0.2rem;
}

.subscribe-info-box {
    padding: 1rem 1.1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}

.subscribe-note-box {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 1rem 1.1rem !important;
}

.renewal-estimate-box {
    background: #fafafa;
    border-color: #e5e5e5;
}

.renewal-estimate-box,
.renewal-estimate-box .mud-typography {
    color: #6f6f6f !important;
}

.subscribe-feature-list {
    margin: 0;
    padding-left: 1.1rem;
}

.subscribe-feature-list li {
    margin-bottom: 0.45rem;
}

.agreement-box {
    margin-top: 1rem;
}

.agreement-checkbox .mud-button-root,
.agreement-checkbox label {
    align-items: flex-start;
}

.agreement-checkbox .mud-checkbox .mud-icon-root,
.agreement-checkbox .mud-checkbox svg,
.agreement-checkbox .mud-checkbox.mud-checked .mud-icon-root,
.agreement-checkbox .mud-checkbox.mud-checked svg {
    color: var(--jd-brand) !important;
}

.agreement-text {
    color: #5f5f5f;
}

.subscribe-promo-actions {
    justify-content: flex-end;
}

.promo-code {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #2e7d32;
}

.text-black {
    color: #1f1f1f !important;
}

.plan-promo {
    margin-bottom: 0.75rem;
    text-align: left;
    width: 100%;
}

.plan-promo .mud-alert-icon {
    margin-top: 0.1rem;
}

.plan-promo ul,
.plan-promo li,
.plan-promo .mud-typography {
    color: #1f1f1f;
}

.plan-promo .promo-code {
    color: #2e7d32 !important;
}

.checkout-pay-today {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    padding: 0.75rem 0 0.25rem;
    border-top: 1px solid #eee;
}

.checkout-pay-today-amount {
    color: #1f1f1f;
    line-height: 1.2;
    white-space: nowrap;
}

.subscribe-form-actions {
    gap: 0.75rem;
}

.checkout-merchant-note {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.4rem;
    color: #5f5f5f;
}

.checkout-merchant-logo {
    width: 104px;
    height: auto;
    flex: 0 0 auto;
    object-fit: contain;
}

.checkout-merchant-copy {
    line-height: 1.35;
}

.subscribe-back-link,
.subscribe-back-link.mud-button-root {
    color: var(--jd-brand) !important;
    text-transform: none !important;
}

.start-trial-btn,
.start-trial-btn.mud-button-root {
    min-width: 220px;
    font-weight: 700 !important;
    text-transform: none !important;
    background: var(--jd-brand) !important;
    color: #fff !important;
    border-radius: 8px !important;
}

.start-trial-btn:hover,
.start-trial-btn.mud-button-root:hover {
    background: #ff824f !important;
}

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.payment-success-page {
    max-width: 1080px;
    margin: 0 auto;
}

.billing-page {
    max-width: 1200px;
    margin: 0 auto;
}

.subscription-management-page {
    max-width: 1280px;
    margin: 0 auto;
}

.billing-card {
    max-width: 760px;
}

.subscription-current-card,
.subscription-history-card,
.subscription-edit-card,
.subscription-summary-card {
    border-radius: 16px;
}

.subscription-current-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.subscription-current-item-row + .subscription-current-item-row {
    margin-top: 0.25rem;
}

.subscription-current-item-price {
    white-space: nowrap;
    font-weight: 600;
}

.subscription-current-total-row .mud-typography:first-child {
    visibility: hidden;
}

.pricing-summary-item-current {
    background: rgba(255, 112, 67, 0.08) !important;
    border-color: rgba(255, 112, 67, 0.18) !important;
}

.pricing-summary-item-scheduled-removal {
    background: rgba(255, 244, 229, 0.95) !important;
    border-color: rgba(191, 121, 33, 0.2) !important;
}

.pricing-summary-item-scheduled-removal-pending {
    background: rgba(255, 248, 238, 0.95) !important;
}

.pricing-summary-item-title-struck {
    color: #7b4b31;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.pricing-summary-item-price-muted {
    color: #7b4b31;
}

.subscription-summary-metrics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem 1rem;
    align-items: center;
}

.subscription-summary-label {
    color: #273142;
}

.subscription-summary-value {
    text-align: right;
    white-space: nowrap;
}

.billing-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.help-page {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.help-hero,
.help-section-card,
.help-link-card {
    border-radius: 18px;
}

.help-hero {
    background:
        radial-gradient(circle at top right, rgba(255, 112, 67, 0.16), transparent 38%),
        linear-gradient(135deg, #fffaf6 0%, #ffffff 72%);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    border-color: rgba(255, 112, 67, 0.18) !important;
}

.help-hero-copy {
    max-width: 760px;
    color: #4f5b69;
}

.help-link-card {
    height: 100%;
    padding: 1.2rem 1.25rem;
    border-color: rgba(255, 112, 67, 0.14) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.help-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    border-color: rgba(255, 112, 67, 0.28) !important;
}

.curriculum-card-pathways {
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 112, 67, 0.14);
}

.curriculum-card-pathway-label {
    color: #5c6b7a;
    font-weight: 700;
}

.curriculum-card-pathway-list {
    margin: 0;
    padding-left: 1.15rem;
    color: #334155;
    line-height: 1.45;
}

.curriculum-card-pathway-list li + li {
    margin-top: 0.18rem;
}

.curriculum-coverage-group-heading {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 112, 67, 0.18);
    border-bottom-color: rgba(255, 112, 67, 0.28);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 112, 67, 0.18), rgba(255, 190, 92, 0.16) 55%, rgba(0, 137, 167, 0.08));
    box-shadow: inset 0 -1px 0 rgba(255, 112, 67, 0.18);
}

.curriculum-coverage-group-heading::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--jd-brand);
}

.curriculum-coverage-group-heading .pricing-group-title {
    color: #243447;
    font-weight: 800;
}

.curriculum-coverage-group-heading .pricing-helper-text {
    color: #4f5965;
    font-weight: 600;
}

.curriculum-alignment-notice.mud-alert {
    color: #111827 !important;
}

.curriculum-alignment-notice .mud-alert-message,
.curriculum-alignment-notice .mud-alert-message .mud-typography,
.curriculum-alignment-notice .mud-alert-message li {
    color: #111827 !important;
}

.curriculum-alignment-title {
    color: #111827 !important;
    font-weight: 700;
}

.curriculum-alignment-list {
    margin: 0;
    padding-left: 1.15rem;
    color: #111827;
    line-height: 1.5;
}

.curriculum-alignment-list li + li {
    margin-top: 0.28rem;
}

.help-section-card {
    padding: 1.25rem 1.35rem;
    border-color: rgba(255, 112, 67, 0.14) !important;
}

.demo-meta-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.demo-meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.8rem;
    border: 1px solid rgba(255, 112, 67, 0.2);
    border-radius: 999px;
    background: rgba(255, 248, 242, 0.95);
    color: #5d6b79;
    font-size: 0.88rem;
    font-weight: 600;
}

.demo-state-panel {
    border-radius: 16px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 112, 67, 0.18);
    background: linear-gradient(135deg, rgba(255, 248, 242, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.demo-state-panel-ready {
    box-shadow: 0 10px 24px rgba(255, 112, 67, 0.08);
}

.demo-state-panel-progress {
    background: linear-gradient(135deg, rgba(247, 250, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-color: rgba(58, 123, 213, 0.18);
}

.demo-progress-card {
    border-color: rgba(58, 123, 213, 0.18) !important;
}

.demo-compact-list {
    margin-top: 0.25rem;
}

.demo-summary-strip {
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 112, 67, 0.16);
    border-radius: 8px;
    background: rgba(255, 248, 242, 0.7);
    color: #26313f;
    font-weight: 600;
}

.demo-summary-metrics,
.demo-result-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.demo-result-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
}

.demo-summary-metrics div,
.demo-result-metrics div {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(86, 98, 112, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
}

.demo-summary-metrics span,
.demo-result-metrics span {
    display: block;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 600;
}

.demo-summary-metrics strong,
.demo-result-metrics strong {
    display: block;
    margin-top: 0.18rem;
    color: #26313f;
    font-size: 1rem;
}

.demo-completion-card {
    border-color: rgba(255, 112, 67, 0.2) !important;
    background:
        radial-gradient(circle at top right, rgba(255, 112, 67, 0.05), transparent 32%),
        linear-gradient(135deg, #fffaf6 0%, #ffffff 72%);
}

.demo-result-panel {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.7fr);
    gap: 1rem;
    align-items: stretch;
}

.demo-completion-score-panel {
    height: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 1.1rem 1.2rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 112, 67, 0.18);
}

.demo-completion-score-value {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
    color: #d95c37;
}

.demo-completion-score-label {
    color: #4f5b69;
    font-size: 0.95rem;
    font-weight: 600;
}

.demo-result-score-heading {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.demo-result-summary-zone {
    min-width: 0;
}

.demo-result-sentence {
    color: #26313f;
    font-weight: 700;
}

.demo-result-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.demo-result-metric-grid div {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(86, 98, 112, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.demo-result-metric-grid span {
    display: block;
    color: #667085;
    font-size: 0.78rem;
    font-weight: 600;
}

.demo-result-metric-grid strong {
    display: block;
    margin-top: 0.18rem;
    color: #26313f;
    font-size: 1rem;
}

.demo-action-zone {
    height: 100%;
    padding: 1rem;
    border-color: rgba(86, 98, 112, 0.14) !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
}

.demo-action-zone-primary {
    border-color: rgba(255, 112, 67, 0.2) !important;
    background: rgba(255, 248, 242, 0.64);
}

.demo-action-buttons {
    padding-top: 0.2rem;
}

.demo-action-button {
    min-width: 132px;
}

.demo-action-note {
    color: #667085;
}

.demo-experience-note {
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(255, 112, 67, 0.14);
    border-radius: 8px;
    background: rgba(255, 248, 242, 0.62);
    color: #4f5b69;
}

.demo-value-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #4f5b69;
}

.demo-value-list li + li {
    margin-top: 0.4rem;
}

.demo-two-column-list {
    columns: 2;
}

.demo-completion-actions {
    padding-top: 0.25rem;
}

.help-breadcrumbs {
    color: #64748b;
    flex-wrap: wrap;
}

.help-breadcrumbs .mud-link,
.help-list .mud-link,
.help-link-card .mud-link {
    color: var(--jd-brand) !important;
    font-weight: 600;
}

.curriculum-coverage-group .help-link-card .mud-link:not(.curriculum-coverage-planned-link) {
    color: #243447 !important;
    font-weight: 700;
}

.curriculum-coverage-group .help-link-card .mud-link:not(.curriculum-coverage-planned-link):hover,
.curriculum-coverage-group .help-link-card .mud-link:not(.curriculum-coverage-planned-link):focus-visible {
    color: var(--jd-brand) !important;
    text-decoration: underline;
    text-underline-offset: 0.15rem;
}

.curriculum-practice-search-summary {
    margin-top: 0.2rem;
}

.curriculum-demo-links {
    margin-top: 0.1rem;
}

.curriculum-demo-links-label {
    color: #4f5965;
    font-weight: 700;
}

.curriculum-demo-link.mud-button-root {
    border-color: rgba(255, 112, 67, 0.34) !important;
    color: var(--jd-brand) !important;
    font-weight: 700;
    text-transform: none;
}

.curriculum-demo-link.mud-button-root:hover,
.curriculum-demo-link.mud-button-root:focus-visible {
    border-color: rgba(255, 112, 67, 0.58) !important;
    background: rgba(255, 112, 67, 0.08) !important;
}

.help-link-card .mud-link.curriculum-coverage-planned-link {
    color: #64748b !important;
}

.curriculum-acara-highlight {
    background: #e9f8ef !important;
    color: #1f6b43 !important;
    font-weight: 700;
}

.help-list {
    margin: 0.85rem 0 0;
    padding-left: 1.2rem;
    padding-left: 18px;
    line-height: 1.8;
}

.help-list li + li {
    margin-top: 0.65rem;
}

.billing-label {
    font-weight: 600;
}

.billing-field {
    width: 100%;
    max-width: 420px;
}

.billing-field .mud-input-root {
    height: 36px;
}

.readonly-style .mud-input-input {
    cursor: default;
}

/* Keep the hover and selected states aligned with JD Align's invoice tables. */
.custom-hover-table.mud-table-row:hover,
.custom-hover-table.selected,
.custom-hover-table.selected td {
    background: var(--jd-brand-soft) !important;
}

.billing-refresh-btn.spin {
    animation: billing-spin 1s linear infinite;
}

.payment-success-card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 16px;
}

.payment-success-alert {
    border-radius: 16px;
}

.payment-success-reference {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #fffaf7;
    border-color: rgba(255, 112, 67, 0.22) !important;
}

.payment-success-actions {
    justify-content: flex-start;
}

.payment-summary-links {
    justify-content: flex-end;
}

.details-table {
    width: 100%;
}

.key-col {
    width: 240px;
}

.key-cell {
    white-space: nowrap;
    font-weight: 600;
}

@keyframes billing-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1199.98px) {
    .pricing-group-grid {
        grid-template-columns: 1fr;
    }

    .pricing-group-grid.teacher-access-subject-grid,
    .pricing-group-grid.parent-free-subject-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1080px) {
    .pricing-table-overview-layout {
        grid-template-columns: minmax(0, 1fr) minmax(18.5rem, 0.55fr);
    }

    .pricing-table-overview-layout .pricing-overview-card {
        margin-top: 1rem;
        padding-top: 0;
    }
}

@media (min-width: 960px) {
    .pricing-group-grid.demo-catalog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 959.98px) {
    .pricing-group-grid.demo-catalog-grid {
        grid-template-columns: 1fr;
    }

    .pricing-group-grid.teacher-access-subject-grid,
    .pricing-group-grid.parent-free-subject-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 959.98px) {
    .pricing-summary-sticky {
        position: static;
    }

    .pricing-summary-footer,
    .subscription-summary-metrics {
        align-items: stretch;
    }

    .pricing-summary-buttons {
        justify-content: flex-start;
    }

    .plan-summary,
    .subscribe-form-card,
    .payment-success-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .plan-summary {
        border-right: 0;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .pricing-summary-item-main {
        flex-direction: column;
        gap: 0.35rem;
    }

    .help-hero,
    .help-section-card,
    .help-link-card {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .test-check-summary-grid {
        grid-template-columns: 1fr;
    }

    .test-check-summary-grid-student {
        grid-template-columns: 1fr;
    }

    .subscription-summary-metrics-grid {
        grid-template-columns: 1fr;
    }

    .subscription-summary-value {
        text-align: left;
    }

    .demo-summary-metrics,
    .demo-result-metrics,
    .demo-result-metric-grid,
    .demo-result-panel {
        grid-template-columns: 1fr;
    }

    .demo-action-button {
        width: 100%;
    }

    .demo-action-buttons {
        width: 100%;
    }

    .demo-two-column-list {
        columns: 1;
    }

    .subscribe-selected-item-row,
    .subscribe-amount-row,
    .subscribe-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .subscribe-promo-actions {
        justify-content: flex-start;
    }

    .key-col {
        width: 42%;
    }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

@media (max-width: 1199.98px) {
    .test-check-summary-grid-student {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 899.98px) {
    .test-check-summary-grid-student {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 599.98px) {
    .test-check-summary-grid-student {
        grid-template-columns: 1fr;
    }

    .demo-completion-score-panel {
        min-height: 0;
    }
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}


/* Card base */
.pricing-card {
    width: 100%;
    padding: 20px 22px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.pricing-card:hover {
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.pricing-table-overview-layout .pricing-overview-card {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.pricing-table-overview-layout .pricing-overview-card:hover {
    border-color: transparent;
    box-shadow: none !important;
}

.pricing-questions-card {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.pricing-questions-card:hover {
    border-color: transparent !important;
    box-shadow: none !important;
}

.pricing-card .mud-icon-root,
.pricing-card .mud-list-item-icon {
    color: var(--jd-brand) !important;
}

/* Header weight */
.fw-600 {
    font-weight: 600;
}

/* List styling */
.pricing-list .mud-list-item {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 0.92rem;
}

/* Q&A blocks */
.qa-block {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(0,0,0,0.02);
}

.qa-question {
    font-weight: 600;
    margin-bottom: 2px;
}

.qa-answer {
    color: #6b7280; /* softer grey */
    line-height: 1.4;
}
.vce-english-exam-card {
    font-family: Arial, Helvetica, sans-serif;
}

.vce-exam-page {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
    margin: 0 auto;
    max-width: 900px;
    min-height: 720px;
    padding: 28px 44px;
}

.vce-exam-page-running-header {
    border-bottom: 1px solid #111827;
    display: flex;
    font-size: 0.82rem;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 5px;
}

.vce-exam-section-heading {
    display: grid;
    gap: 7px;
}

.vce-exam-section-title-row {
    align-items: baseline;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.vce-exam-section-marks {
    flex: 0 0 auto;
    font-weight: 700;
}

.vce-exam-heavy-rule {
    border-top: 2px solid #111827;
    margin: 18px 0 20px;
}

.vce-exam-prompt-block {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
}

.vce-exam-block-heading {
    font-weight: 700;
}

.vce-exam-section-b-framework-body {
    white-space: pre-wrap;
}

.vce-exam-instruction-list {
    margin: 0;
    padding-left: 18px;
}

.vce-exam-instruction-list li {
    margin-bottom: 4px;
}

.vce-exam-task-text,
.vce-exam-source-text {
    white-space: pre-wrap;
    line-height: 1.5;
}

.vce-exam-source-text {
    font-size: 0.92rem;
}

.vce-exam-material-text {
    font-size: 0.92rem;
    line-height: 1.5;
}

.vce-exam-material-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 2px;
}

.vce-exam-material-byline {
    margin-bottom: 12px;
}

.vce-exam-material-body {
    margin-bottom: 14px;
    white-space: pre-wrap;
}

.vce-exam-material-visual {
    border: 1px solid #9ca3af;
    font-size: 0.9rem;
    margin: 16px 0;
    padding: 14px 16px;
    white-space: pre-wrap;
}

.vce-exam-sample-panel {
    margin: 22px 0;
}

.vce-exam-section-b-sample-panels {
    margin-top: 10px;
}

.vce-exam-sample-title {
    font-weight: 700;
    margin-bottom: 8px;
}

.vce-exam-end-rule {
    border-top: 1px solid #d1d5db;
    margin: 20px 0 8px;
}

@media (max-width: 700px) {
    .vce-exam-page {
        padding: 22px 18px;
    }

    .vce-exam-page-running-header {
        flex-direction: column;
        gap: 2px;
    }
}
