.subject-body { --subject-header-height: 88px; }
.subject-skip-link { position: fixed; top: 10px; left: 10px; z-index: 8000; padding: 12px 18px; border-radius: 10px; background: #fff; color: #11672e; box-shadow: 0 3px 15px #0002; transform: translateY(-160%); }
.subject-skip-link:focus { transform: translateY(0); }
.subject-page { --subject-ink: #183c26; --subject-green: #14893b; --subject-mint: #eef8f0; --subject-line: #e2eae4; --subject-muted: #65766a; --subject-top-gap: 25px; padding-top: calc(var(--subject-header-height) + var(--subject-top-gap)); padding-bottom: 58px; }
.subject-page .subject-paid-stage--focus { min-height: max(0px, calc(100vh - var(--subject-header-height) - var(--subject-top-gap))); min-height: max(0px, calc(100dvh - var(--subject-header-height) - var(--subject-top-gap))); }
.subject-page [hidden] { display: none !important; }
.subject-page .subject-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.subject-page section, .subject-page .subject-breadcrumbs { scroll-margin-top: calc(var(--subject-header-height) + 20px); }
.subject-page .subject-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: #78887d; font-size: 11px; line-height: 1.5; }
.subject-page .subject-breadcrumbs a { color: #687b6e; }
.subject-page .subject-breadcrumbs a:hover { color: var(--subject-green); }
.subject-page .subject-breadcrumbs [aria-current] { color: var(--subject-green); }
.subject-page .subject-intro { padding: 22px 0 20px; }
.subject-page .subject-intro h1 { margin: 0; color: var(--text-strong); font-size: 36px; line-height: 1.17; font-weight: 800; letter-spacing: -.04em; }
.subject-page .subject-intro h1 span { color: var(--subject-green); }
.subject-page .subject-intro p { margin: 8px 0 0; color: var(--subject-muted); font-size: 14px; line-height: 1.65; }
.subject-page .subject-catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.subject-page .subject-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.subject-page .subject-filter { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 15px; border: 1px solid #dfe7e1; border-radius: 999px; background: #fff; color: #435d4c; font-size: 14px; font-weight: 700; line-height: 1.45; }
.subject-page .subject-filter img { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; border-radius: 50%; }
.subject-page .subject-filter:hover { background: #f7faf7; border-color: #a4d4b2; }
.subject-page .subject-filter.is-active { color: #11672e; border-color: #b9dfc3; background: var(--subject-mint); }
.subject-page .subject-catalog-count { flex-shrink: 0; color: #78857c; font-size: 12px; white-space: nowrap; }
.subject-page .subject-school-form { display: none; }
.subject-page .subject-school-form select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #dfe7e1; border-radius: 11px; color: #344d3d; background: #fff; font-size: 14px; font-weight: 700; }
.subject-page .subject-school-submit { min-height: 44px; padding: 9px 12px; border: 1px solid #c9dfd0; border-radius: 11px; color: #11672e; background: var(--subject-mint); font-size: 13px; font-weight: 700; cursor: pointer; }
.subject-page[data-subject-enhanced="true"] .subject-school-submit { display: none; }
.subject-page .subject-catalog-grid, .subject-page .subject-free-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.subject-page .subject-course-card { display: flex; flex-direction: column; min-width: 0; padding: 17px; overflow: hidden; border: 1px solid var(--subject-line); border-radius: 19px; background: #fff; color: var(--subject-ink); box-shadow: 0 4px 14px #10281905; transition: border-color .16s ease, box-shadow .16s ease; }
.subject-page .subject-course-card:hover, .subject-page .subject-free-card:hover { color: var(--subject-ink); border-color: #94caa5; box-shadow: 0 8px 24px #10502317; }
.subject-page .subject-card-main { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 13px; flex: 1; min-height: 80px; margin-bottom: 14px; }
.subject-page .subject-course-cover { display: block; align-self: end; width: 72px; height: 80px; border-radius: 11px; object-fit: cover; overflow: hidden; background: var(--subject-mint); }
.subject-page .subject-cover-placeholder { display: flex; align-items: center; justify-content: center; color: #537e60; font-size: 30px; font-weight: 800; }
.subject-page .subject-card-info { display: flex; flex-direction: column; min-width: 0; min-height: 80px; }
.subject-page .subject-school-name { display: flex; align-items: center; gap: 6px; min-height: 24px; margin: 0 0 7px; color: var(--subject-ink); font-size: 16px; font-weight: 800; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.subject-page .subject-school-name img { width: 21px; height: 21px; flex: 0 0 21px; border-radius: 50%; object-fit: contain; }
.subject-page .subject-school-name > span { min-width: 0; }
.subject-page .subject-archive-label { display: inline-flex; align-self: flex-start; margin: 0 0 7px; padding: 3px 8px; border: 1px solid #dce1e5; border-radius: 999px; background: #f1f3f5; color: #56616a; font-size: 10px; line-height: 1.5; font-weight: 700; white-space: nowrap; }
.subject-page .subject-card-info h3 { margin: 0 0 5px; color: var(--subject-ink); font-size: 14px; line-height: 1.35; font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; }
.subject-page .subject-teacher { color: #66766b; font-size: 13px; line-height: 1.5; min-height: 20px; margin: auto 0 0; overflow-wrap: anywhere; }
.subject-page .subject-card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--subject-line); }
.subject-page .subject-card-pricing { min-height: 47px; }
.subject-page .subject-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; min-height: 27px; }
.subject-page .subject-price { color: var(--subject-ink); font-size: 21px; line-height: 1.25; letter-spacing: -.035em; font-weight: 800; white-space: nowrap; }
.subject-page .subject-old-price { color: #738779; font-size: 12px; font-weight: 400; line-height: 1.25; white-space: nowrap; }
.subject-page .subject-card-pricing > small { display: block; margin-top: 4px; color: var(--subject-muted); font-size: 10px; line-height: 1.6; }
.subject-page .subject-card-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 13px; border: 1px solid var(--subject-green); border-radius: 11px; background: var(--subject-green); color: #fff; font-size: 14px; line-height: 1.35; font-weight: 700; transition: background .16s ease, border-color .16s ease; }
.subject-page .subject-course-card:hover .subject-card-button, .subject-page .subject-course-card:focus-visible .subject-card-button { background: #11672e; border-color: #11672e; }
.subject-page .subject-empty { margin: 16px 0 0; padding: 20px; border: 1px solid var(--subject-line); border-radius: 16px; color: #586e60; background: #f8fbf9; font-size: 14px; line-height: 1.7; }
.subject-page .subject-section { margin-top: 58px; }
.subject-page .subject-section-head { margin-bottom: 24px; }
.subject-page .subject-section h2, .subject-page .subject-help h2 { margin: 0 0 12px; color: var(--subject-ink); font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -.035em; }
.subject-page .subject-section-head p { margin: 0; max-width: 690px; color: var(--subject-muted); font-size: 14px; line-height: 1.7; }
.subject-page .subject-free-card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid #d6e9dc; border-radius: 20px; background: #f5fbf6; color: var(--subject-ink); transition: border-color .16s ease, box-shadow .16s ease; }
.subject-page .subject-free-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.subject-page .subject-free-card-top .subject-school-name { flex: 1; min-width: 0; margin-bottom: 0; }
.subject-page .subject-free-label { flex: 0 0 auto; align-self: flex-start; padding: 4px 9px; border-radius: 999px; background: #e5f4e9; color: #11672e; font-size: 10px; line-height: 1.5; font-weight: 700; white-space: nowrap; }
.subject-page .subject-free-card > .subject-archive-label { margin: 9px 0 0; }
.subject-page .subject-free-card h3 { margin: 12px 0 9px; color: var(--subject-ink); font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.subject-page .subject-free-card p { margin: 0 0 16px; color: var(--subject-muted); font-size: 12px; line-height: 1.65; }
.subject-page .subject-free-action { margin-top: auto; padding-top: 10px; color: var(--subject-green); font-size: 13px; line-height: 1.5; font-weight: 700; }
.subject-page .subject-guide { display: grid; grid-template-columns: 1.25fr .75fr; gap: 45px; align-items: start; }
.subject-page .subject-eyebrow { display: inline-flex; align-items: center; margin-bottom: 17px; padding: 7px 11px; border: 1px solid #d6e9dc; border-radius: 999px; background: var(--subject-mint); color: var(--subject-green); font-size: 11px; line-height: 1.3; font-weight: 700; }
.subject-page .subject-guide-copy p { margin: 0 0 17px; color: #65736a; font-size: 14px; line-height: 1.85; }
.subject-page .subject-inventory .subject-guide-copy { max-width: 880px; }
.subject-page .subject-program-groups { display: grid; gap: 12px; margin-top: 24px; }
.subject-page .subject-program-group { min-width: 0; border: 1px solid var(--subject-line); border-radius: 17px; background: #fff; overflow: hidden; }
.subject-page .subject-program-group > summary { display: flex; align-items: center; gap: 14px; padding: 19px 22px; list-style: none; cursor: pointer; }
.subject-page .subject-program-group > summary::-webkit-details-marker { display: none; }
.subject-page .subject-program-group h3 { min-width: 0; margin: 0; color: var(--subject-ink); font-size: 20px; line-height: 1.35; font-weight: 800; overflow-wrap: anywhere; }
.subject-page .subject-program-count { margin-left: auto; flex-shrink: 0; color: var(--subject-muted); font-size: 12px; }
.subject-page .subject-program-toggle { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--subject-mint); color: #11672e; font-size: 19px; }
.subject-page .subject-program-group[open] .subject-program-toggle { font-size: 0; }
.subject-page .subject-program-group[open] .subject-program-toggle::after { content: '−'; font-size: 19px; }
.subject-page .subject-program-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 30px; margin: 0; padding: 0 22px 22px; list-style: none; }
.subject-page .subject-program-list li { min-width: 0; padding-top: 17px; border-top: 1px solid var(--subject-line); }
.subject-page .subject-program-list h4 { margin: 0 0 7px; color: var(--subject-ink); font-size: 15px; line-height: 1.5; font-weight: 700; overflow-wrap: anywhere; }
.subject-page .subject-program-list h4 a:hover { color: #11672e; text-decoration: underline; }
.subject-page .subject-program-list p { margin: 5px 0 0; color: var(--subject-muted); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.subject-page .subject-program-list .subject-program-format { color: #355d43; }
.subject-page .subject-program-profile { display: flex; align-items: center; gap: 12px; margin: 16px 0 9px; }
.subject-page .subject-profile-photo { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 14px; background: var(--subject-mint); object-fit: cover; }
.subject-page .subject-profile-heading { min-width: 0; }
.subject-page .subject-profile-label { display: block; color: var(--subject-muted); font-size: 11px; line-height: 1.5; }
.subject-page .subject-program-list .subject-program-teacher { margin: 3px 0 0; color: var(--subject-ink); font-size: 18px; line-height: 1.35; font-weight: 700; }
.subject-page .subject-program-list .subject-teacher-summary { margin: 10px 0 0; color: #4c6354; }
.subject-page .subject-teacher-details { margin: 5px 0 12px; }
.subject-page .subject-teacher-details > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--subject-green); font-size: 12px; font-weight: 700; line-height: 1.5; list-style: none; cursor: pointer; }
.subject-page .subject-teacher-details > summary::-webkit-details-marker { display: none; }
.subject-page .subject-teacher-details > summary > span { font-size: 17px; }
.subject-page .subject-teacher-details[open] > summary > span { font-size: 0; }
.subject-page .subject-teacher-details[open] > summary > span::after { content: '−'; font-size: 17px; }
.subject-page .subject-program-list .subject-teacher-bio { margin: 0; padding: 13px 15px; border-radius: 12px; background: #f6faf7; white-space: pre-line; }
.subject-page .subject-program-list .subject-teacher-source { margin: 0 0 6px; font-size: 11px; }
.subject-page .subject-program-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 14px; padding: 10px 16px; border: 1px solid #cce4d3; border-radius: 11px; color: #11672e; background: var(--subject-mint); font-size: 14px; line-height: 1.4; font-weight: 700; }
.subject-page .subject-program-action:hover { color: #11672e; border-color: #94caa5; background: #e3f3e7; }
.subject-page .subject-text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--subject-green); font-size: 13px; font-weight: 700; }
.subject-page .subject-guide-panel { padding: 28px; border: 1px solid var(--subject-line); border-radius: 22px; background: #f8faf8; }
.subject-page .subject-panel-label { display: block; margin-bottom: 14px; color: #11672e; font-size: 10px; letter-spacing: .08em; font-weight: 700; }
.subject-page .subject-guide-panel h3 { margin: 0 0 16px; color: var(--subject-ink); font-size: 20px; line-height: 1.3; }
.subject-page .subject-guide-panel ol { padding-left: 20px; margin: 0; }
.subject-page .subject-guide-panel li { padding-left: 3px; color: #627568; font-size: 13px; line-height: 1.8; }
.subject-page .subject-guide-panel li + li { margin-top: 12px; }
.subject-page .subject-guide-panel strong, .subject-page .subject-guide-panel li span { display: block; }
.subject-page .subject-guide-panel strong { margin-bottom: 3px; color: #344d3d; font-size: 12px; line-height: 1.5; }
.subject-page .subject-guide-panel li span { font-size: 11px; line-height: 1.65; }
.subject-page .subject-topics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.subject-page .subject-topic-card { display: grid; grid-template-columns: 35px minmax(0, 1fr); gap: 13px; padding: 22px; border: 1px solid var(--subject-line); border-radius: 18px; }
.subject-page .subject-topic-number { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--subject-mint); color: var(--subject-green); font-size: 11px; font-weight: 800; }
.subject-page .subject-topic-card h3 { margin: 1px 0 9px; color: var(--subject-ink); font-size: 18px; line-height: 1.3; }
.subject-page .subject-topic-card p { margin: 0; color: #65766a; font-size: 12px; line-height: 1.7; }
.subject-page .subject-faq { display: grid; gap: 10px; }
.subject-page .subject-faq details { border: 1px solid var(--subject-line); border-radius: 16px; background: #fff; }
.subject-page .subject-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 23px; color: var(--subject-ink); font-size: 14px; line-height: 1.5; font-weight: 700; }
.subject-page .subject-faq summary::-webkit-details-marker { display: none; }
.subject-page .subject-faq summary::after { content: "+"; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 23px; height: 23px; border-radius: 50%; background: var(--subject-mint); color: var(--subject-green); font-size: 18px; font-weight: 400; }
.subject-page .subject-faq details[open] summary::after { content: "−"; }
.subject-page .subject-faq details p { padding: 0 23px 20px; margin: 0; color: #627568; font-size: 13px; line-height: 1.8; }
.subject-page .subject-other-links { display: flex; flex-wrap: wrap; gap: 10px; }
.subject-page .subject-other-links a { display: inline-flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 44px; padding: 11px 15px; border: 1px solid var(--subject-line); border-radius: 12px; color: #344d3d; font-size: 14px; line-height: 1.5; font-weight: 700; }
.subject-page .subject-other-links a:hover { color: #11672e; border-color: #b9dfc3; background: var(--subject-mint); }
.subject-page .subject-help { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 58px; padding: 32px 35px; border: 1px solid #d6e9dc; border-radius: 22px; background: var(--subject-mint); }
.subject-page .subject-help h2 { font-size: 27px; }
.subject-page .subject-help p { margin: 0; max-width: 650px; color: #617268; font-size: 13px; line-height: 1.7; }
.subject-page .subject-help-button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 8px; min-height: 47px; padding: 12px 21px; border-radius: 13px; background: var(--subject-green); color: #fff; font-size: 13px; line-height: 1.35; font-weight: 700; }
.subject-page .subject-help-button:hover { color: #fff; background: #11672e; }
.subject-page a:focus-visible, .subject-page button:focus-visible, .subject-page select:focus-visible, .subject-page summary:focus-visible { outline: 3px solid var(--subject-green); outline-offset: 4px; }
@media (max-width: 1100px) {
    .subject-page .subject-catalog-grid, .subject-page .subject-free-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .subject-page .subject-catalog-toolbar { align-items: flex-start; }
    .subject-page .subject-catalog-count { padding-top: 13px; }
    .subject-page .subject-guide { grid-template-columns: 1.15fr .85fr; gap: 25px; }
    .subject-page .subject-help { padding: 28px; }
}
@media (max-width: 760px) {
    .subject-body { --subject-header-height: 135px; }
    .subject-page { --subject-top-gap: 22px; padding-bottom: 38px; }
    .subject-page .subject-intro { padding: 20px 0; }
    .subject-page .subject-intro h1 { font-size: 29px; line-height: 1.16; }
    .subject-page .subject-intro p { font-size: 13px; }
    .subject-page .subject-filter-row { display: none; }
    .subject-page .subject-school-form { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
    .subject-page .subject-catalog-toolbar { align-items: center; gap: 10px; margin-bottom: 15px; }
    .subject-page .subject-catalog-count { padding-top: 0; font-size: 11px; }
    .subject-page .subject-section { margin-top: 42px; }
    .subject-page .subject-section h2 { font-size: 25px; }
    .subject-page .subject-program-group > summary { gap: 10px; padding: 17px 18px; }
    .subject-page .subject-program-group h3 { font-size: 18px; }
    .subject-page .subject-program-count { font-size: 11px; }
    .subject-page .subject-program-list { grid-template-columns: 1fr; gap: 18px; padding: 0 18px 20px; }
    .subject-page .subject-guide { grid-template-columns: 1fr; gap: 24px; }
    .subject-page .subject-guide-panel { padding: 24px; }
    .subject-page .subject-help { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 42px; padding: 25px; }
    .subject-page .subject-help h2 { font-size: 25px; }
    .subject-page .subject-help-button { width: 100%; }
}
@media (max-width: 540px) {
    .subject-page .subject-catalog-grid, .subject-page .subject-free-grid, .subject-page .subject-topics-grid { grid-template-columns: 1fr; }
    .subject-page .subject-course-card { padding: 17px; }
    .subject-page .subject-catalog-toolbar { flex-wrap: wrap; }
    .subject-page .subject-school-form { flex-basis: 100%; }
    .subject-page .subject-catalog-count { padding-left: 1px; }
    .subject-page .subject-section-head { margin-bottom: 19px; }
    .subject-page .subject-free-card { padding: 22px; }
    .subject-page .subject-topic-card { padding: 20px; }
    .subject-page .subject-faq summary { padding: 19px 20px; }
    .subject-page .subject-faq details p { padding: 0 20px 19px; }
    .subject-page .subject-other-links a { flex-grow: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .subject-page a, .subject-page .subject-card-button { transition: none; }
}
