:root {
    --public-ink: #1e2932;
    --public-muted: #64747a;
    --public-paper: #fbfaf7;
    --public-green: #176b53;
    --public-border: #e8e8df;
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
body.public-site {
    margin: 0;
    background: var(--public-paper);
    color: var(--public-ink);
    font-family: "DM Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.public-site a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.public-header { height: 78px; background: rgba(251, 250, 247, .96); border-bottom: 1px solid #eeede6; }
.public-nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.public-brand { display: inline-flex; align-items: center; gap: 10px; font-family: Manrope, sans-serif; font-weight: 800; font-size: 1.1rem; letter-spacing: -.06em; }
.public-brand-mark { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--public-green); border-radius: 11px; font-size: 1rem; letter-spacing: -.08em; }
.brand-light { color: #779087; font-weight: 500; }
.public-nav-links { display: flex; align-items: center; gap: 38px; color: #53615d; font-size: .9rem; }
.public-nav-links a:hover, .footer-links a:hover { color: var(--public-green); }
.nav-admin-link { padding: 10px 15px; border: 1px solid #d9ded7; border-radius: 8px; color: #35443e; font-size: .85rem; font-weight: 600; }
.nav-admin-link span { margin-left: 8px; color: var(--public-green); }
.learning-hero { overflow: hidden; background: #f0f1e9; }
.learning-hero-inner { min-height: 424px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 28px; }
.hero-copy { padding: 66px 0 70px; position: relative; z-index: 1; }
.eyebrow { display: block; margin-bottom: 15px; color: var(--public-green); font-size: .73rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.hero-copy h1, .public-page-hero h1 { max-width: 620px; margin: 0; font-family: Manrope, sans-serif; font-size: clamp(2.6rem, 5vw, 4.3rem); font-weight: 700; letter-spacing: -.065em; line-height: 1.08; }
.hero-copy h1 span { color: var(--public-green); }
.hero-copy > p { max-width: 450px; margin: 20px 0 26px; color: #61716c; font-size: 1.03rem; line-height: 1.7; }
.hero-search { display: flex; width: min(100%, 510px); padding: 5px; background: #fff; border: 1px solid #e8e9e0; border-radius: 10px; box-shadow: 0 8px 24px rgba(27, 52, 42, .06); }
.hero-search input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; outline: none; color: var(--public-ink); font: inherit; }
.hero-search input::placeholder { color: #9ba6a0; }
.hero-search button { padding: 0 17px; border: 0; border-radius: 7px; background: var(--public-green); color: #fff; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; }
.hero-search button span { margin-left: 8px; }
.hero-note { margin-top: 16px; color: #697872; font-size: .81rem; }
.hero-note-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 1px; border-radius: 50%; background: #68a080; }
.hero-art { position: relative; height: 370px; }
.art-sun { position: absolute; right: 44px; top: 39px; width: 250px; height: 250px; border-radius: 50%; background: #e1e7d8; }
.art-book { position: absolute; top: 96px; width: 173px; height: 223px; border-radius: 5px 15px 15px 5px; box-shadow: 12px 18px 28px rgba(39, 58, 46, .13); }
.art-book-back { right: 222px; top: 123px; transform: rotate(-12deg); background: #d3a772; }
.art-book-front { right: 78px; display: flex; flex-direction: column; justify-content: space-between; padding: 27px 21px; transform: rotate(7deg); background: #235e4c; color: #f9f4e6; font-family: Manrope, sans-serif; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.art-book-front:before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(245, 236, 210, .35); border-radius: 2px 10px 10px 2px; }
.art-book-front i { width: 38px; height: 38px; align-self: flex-end; border: 1px solid #ddc98e; border-radius: 50%; }
.art-spark { position: absolute; color: #bb8156; font-size: 1.8rem; }
.spark-one { right: 308px; top: 72px; }
.spark-two { right: 47px; bottom: 51px; color: #71927e; font-size: 1.3rem; }
.art-caption { position: absolute; right: 76px; bottom: 11px; color: #67786d; font-size: .74rem; font-style: italic; }
.learning-section { padding-top: 68px; padding-bottom: 70px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(1.55rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.045em; }
.text-link { padding-bottom: 5px; color: var(--public-green) !important; font-size: .87rem; font-weight: 600; white-space: nowrap; }
.text-link span { margin-left: 7px; }
.subject-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.subject-card { position: relative; min-height: 142px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; overflow: hidden; padding: 18px 20px; border: 1px solid var(--public-border); border-radius: 11px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.subject-card:hover, .lesson-card:hover { transform: translateY(-3px); box-shadow: 0 13px 28px rgba(29, 50, 39, .08); }
.subject-icon { position: absolute; top: 17px; right: 18px; display: grid; place-items: center; width: 41px; height: 41px; border-radius: 12px; background: #edf3ed; color: #3f785f; font-family: Manrope, sans-serif; font-size: 1rem; font-weight: 700; }
.subject-tone-1 .subject-icon { background: #f6eee1; color: #a17439; }
.subject-tone-2 .subject-icon { background: #f1eaf1; color: #906c8f; }
.subject-tone-3 .subject-icon { background: #eaf0f4; color: #5b7891; }
.subject-card-name { font-family: Manrope, sans-serif; font-weight: 700; font-size: 1.02rem; }
.subject-card-meta { margin-top: 5px; color: #85918b; font-size: .77rem; }
.subject-arrow { position: absolute; right: 20px; bottom: 20px; color: #89a194; }
.browse-card-step { margin-bottom: 10px; color: var(--public-green); font-size: .65rem; font-weight: 800; letter-spacing: .12em; }
.browse-card-copy { display: flex; flex-direction: column; align-items: flex-start; padding-right: 62px; }
.subject-card .browse-card-copy .subject-card-meta { display: block; line-height: 1.4; }
.subject-card .subject-arrow { font-size: .73rem; font-weight: 600; white-space: nowrap; }
.browse-intro { margin: 8px 0 0; color: var(--public-muted); line-height: 1.6; }
.browse-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.browse-steps li { position: relative; max-width: 100%; padding: 9px 13px; border: 1px solid #e3e8de; border-radius: 8px; background: rgba(255,255,255,.72); color: #68766e; font-size: .76rem; line-height: 1.35; }
.browse-steps li:not(:last-child)::after { content: "\203A"; margin-left: 10px; color: #9aaa9e; font-size: 1rem; }
.browse-steps li a { color: var(--public-green); }
.browse-steps li strong { margin-left: 4px; color: var(--public-ink); font-weight: 700; }
.browse-steps li.is-current { border-color: #bad1bf; background: #edf4ed; color: var(--public-green); }
.browse-steps li.is-upcoming { background: transparent; }
.subject-context { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--public-green); border-radius: 0 8px 8px 0; background: #f1f4ec; }
.subject-context span { color: #728077; font-size: .66rem; font-weight: 800; letter-spacing: .1em; }
.subject-context strong { color: var(--public-ink); font-size: .88rem; }
.recent-section { border-top: 1px solid #eeede6; border-bottom: 1px solid #eeede6; background: #f6f5f0; }
.recent-section .learning-section { padding-top: 62px; padding-bottom: 70px; }
.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lesson-card { overflow: hidden; border: 1px solid var(--public-border); border-radius: 11px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.lesson-card-art { position: relative; height: 130px; overflow: hidden; display: flex; align-items: flex-end; padding: 15px 18px; background: #dbe8da; }
.lesson-card-art > span { position: relative; z-index: 1; color: rgba(38, 77, 57, .72); font-family: Manrope, sans-serif; font-size: 1.7rem; font-weight: 700; }
.lesson-card-art i, .lesson-card-art b { position: absolute; display: block; border-radius: 50%; }
.lesson-card-art i { width: 120px; height: 120px; right: 25px; top: 32px; border: 1px solid rgba(38, 77, 57, .22); }
.lesson-card-art b { width: 66px; height: 66px; right: 53px; top: 59px; background: rgba(255,255,255,.34); }
.lesson-art-1 { background: #eee0c9; }
.lesson-art-1 > span { color: #937548; }
.lesson-art-1 i { border-color: rgba(147,117,72,.25); }
.lesson-art-2 { background: #e3e0ec; }
.lesson-art-2 > span { color: #746b92; }
.lesson-art-2 i { border-color: rgba(116,107,146,.28); }
.lesson-card-body { padding: 19px 19px 18px; }
.lesson-kicker { overflow: hidden; color: #6e8c7b; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.lesson-card h3 { margin: 9px 0 8px; font-family: Manrope, sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.4; }
.lesson-card h3 a:hover { color: var(--public-green); }
.lesson-card p { min-height: 43px; margin: 0; color: #76827c; font-size: .83rem; line-height: 1.6; }
.lesson-read-link { display: inline-block; margin-top: 17px; color: var(--public-green) !important; font-size: .82rem; font-weight: 700; }
.lesson-read-link span { margin-left: 5px; }
.learning-stat-band { display: flex; justify-content: space-between; align-items: center; padding-top: 29px; padding-bottom: 29px; }
.learning-stat-band > div { display: flex; align-items: baseline; gap: 10px; color: #76827c; font-size: .84rem; }
.stat-number { color: var(--public-green); font-family: Manrope, sans-serif; font-size: 1.3rem; font-weight: 800; }
.learning-stat-band > a { color: var(--public-green); font-size: .85rem; font-weight: 700; }
.learning-stat-band > a span { margin-left: 8px; }
.public-footer { border-top: 1px solid #eeede6; background: #f4f3ed; }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { font-size: .96rem; }
.footer-brand .public-brand-mark { width: 29px; height: 29px; border-radius: 9px; font-size: .86rem; }
.footer-inner p { margin: 0; color: #7b8780; font-size: .8rem; }
.footer-links { display: flex; gap: 20px; color: #66736c; font-size: .8rem; }
.footer-copyright { color: #929c96; font-size: .75rem; }
.public-page-hero { padding: 55px 0 45px; background: #f0f1e9; }
.public-page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.public-page-hero p { max-width: 650px; margin: 14px 0 0; color: #63736b; line-height: 1.65; }
.catalog-wrap { padding-top: 38px; padding-bottom: 70px; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.catalog-tools form { display: flex; gap: 9px; width: min(100%, 610px); }
.catalog-tools input, .catalog-tools select { min-width: 0; padding: 11px 12px; border: 1px solid #dfe3da; border-radius: 7px; background: #fff; color: var(--public-ink); font: inherit; }
.catalog-tools input { flex: 1; }
.catalog-tools select { width: 180px; }
.catalog-tools button, .catalog-search-button { padding: 0 16px; border: 0; border-radius: 7px; background: var(--public-green); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.result-count { color: #7c8982; font-size: .83rem; white-space: nowrap; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 35px; }
.pagination a, .pagination span { padding: 9px 13px; border: 1px solid #dfe3da; border-radius: 7px; background: #fff; font-size: .85rem; }
.pagination .current { border-color: var(--public-green); background: var(--public-green); color: white; }
.empty-panel { display: flex; flex-direction: column; gap: 6px; padding: 26px; border: 1px dashed #d9ddd3; border-radius: 10px; background: #fff; color: #77837c; }
.empty-panel strong { color: #35443e; }
.reading-wrap { display: grid; grid-template-columns: minmax(0, 760px) 250px; gap: 55px; padding-top: 38px; padding-bottom: 75px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 23px; color: #7a8981; font-size: .79rem; }
.breadcrumbs a { color: var(--public-green); }
.reading-article h1 { margin: 0 0 13px; font-family: Manrope, sans-serif; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.055em; line-height: 1.17; }
.reading-meta { display: flex; flex-wrap: wrap; gap: 9px; color: #829087; font-size: .83rem; }
.reading-content { margin-top: 32px; padding-top: 28px; border-top: 1px solid #e7e8df; color: #394940; font-size: 1.02rem; line-height: 1.9; overflow-wrap: anywhere; }
.reading-sidebar { align-self: start; padding: 20px; border: 1px solid var(--public-border); border-radius: 10px; background: #fff; }
.reading-sidebar h2 { margin: 0 0 14px; font-family: Manrope, sans-serif; font-size: 1rem; }
.reading-sidebar a { display: block; padding: 10px 0; border-top: 1px solid #eff0e9; color: #63736b; font-size: .84rem; line-height: 1.45; }
.reading-sidebar a:hover { color: var(--public-green); }
.reading-sidebar .sidebar-all { margin-top: 5px; color: var(--public-green); font-weight: 700; }
.back-link { display: inline-block; margin-top: 26px; color: var(--public-green) !important; font-size: .87rem; font-weight: 700; }
@media (max-width: 800px) {
    .learning-hero-inner { grid-template-columns: 1fr .65fr; }
    .hero-art { transform: scale(.78); transform-origin: center right; margin-left: -80px; }
    .subject-grid, .lesson-grid, .catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .reading-wrap { grid-template-columns: 1fr; gap: 30px; }
    .reading-sidebar { order: 2; }
    .footer-inner { padding-top: 20px; padding-bottom: 20px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
    .container { width: min(100% - 32px, 1120px); }
    .public-header { height: 66px; }
    .public-nav-links { gap: 14px; font-size: .78rem; }
    .nav-admin-link { padding: 8px 10px; font-size: .76rem; }
    .public-nav-links a:nth-child(2) { display: none; }
    .learning-hero-inner { min-height: auto; display: block; }
    .hero-copy { padding: 54px 0 34px; }
    .hero-copy h1 { font-size: 2.8rem; }
    .hero-copy > p { font-size: .95rem; }
    .hero-search button { padding: 0 11px; font-size: .78rem; }
    .hero-art { display: none; }
    .learning-section, .recent-section .learning-section { padding-top: 45px; padding-bottom: 48px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .subject-grid, .lesson-grid, .catalog-grid { grid-template-columns: 1fr; }
    .subject-card { min-height: 125px; }
    .learning-stat-band { align-items: flex-start; flex-direction: column; gap: 13px; }
    .footer-inner { align-items: flex-start; flex-direction: column; gap: 13px; }
    .catalog-tools { align-items: flex-start; flex-direction: column; }
    .catalog-tools form { flex-wrap: wrap; }
    .catalog-tools input { flex-basis: 100%; }
    .catalog-tools select { flex: 1; width: auto; }
    .catalog-tools button { min-height: 44px; }
    .result-count { white-space: normal; }
    .public-page-hero { padding: 40px 0 35px; }
}

:root {
    --public-ink: #123c52;
    --public-muted: #64748b;
    --public-paper: #f2f7f6;
    --public-green: #087f63;
    --public-border: #dbe5e3;
    --public-orange: #ef8733;
}
body.public-site { background: var(--public-paper); color: var(--public-ink); font-family: "Segoe UI", Arial, sans-serif; }
.public-site a { color: inherit; }
.container { width: min(calc(100% - 32px), 1120px); }
.public-header { position: sticky; top: 0; z-index: 20; height: auto; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--public-border); box-shadow: 0 2px 12px rgba(23,32,51,.035); }
.public-nav { min-height: 78px; }
.public-brand { gap: 0; font-family: "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
.public-brand-copy { display: flex; flex-direction: column; }
.public-brand-name { color: var(--public-ink); font-size: 1.65rem; font-weight: 800; letter-spacing: -.055em; line-height: 1.05; }
.brand-dot { color: var(--public-green); }
.public-brand-tagline { margin-top: 3px; color: #718096; font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.public-menu-button { width: 54px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #ccd9dc; border-radius: 12px; background: #fff; cursor: pointer; }
.public-menu-button span { width: 25px; height: 2px; background: var(--public-ink); transition: transform .18s ease, opacity .18s ease; }
.public-menu-button[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.public-menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.public-menu-button[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.public-nav-panel { display: none; border-top: 1px solid #edf1f1; background: #fff; }
.public-nav-panel.is-open { display: block; }
.public-nav-links { min-height: 54px; display: flex; align-items: center; justify-content: flex-start; gap: 27px; color: #52677a; font-size: .88rem; }
.public-nav-links a:hover { color: var(--public-green); }
.learning-hero { padding: 27px 0 0; background: transparent; }
.learning-hero-inner { min-height: auto; display: block; }
.hero-copy { padding: 38px 38px 29px; border: 1px solid #e0e9e6; border-radius: 19px; background: linear-gradient(135deg,#fff 0%,#f7fbfa 62%,#fff7ed 100%); box-shadow: 0 10px 30px rgba(23,50,77,.06); }
.eyebrow { margin-bottom: 12px; color: var(--public-green); font-size: .77rem; letter-spacing: .09em; }
.hero-copy h1, .public-page-hero h1 { max-width: 760px; color: var(--public-ink); font-family: "Segoe UI", Arial, sans-serif; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 750; letter-spacing: -.04em; }
.hero-copy > p { max-width: 690px; margin: 12px 0 22px; color: var(--public-muted); font-size: 1rem; line-height: 1.65; }
.hero-search { width: 100%; margin-top: 22px; padding: 18px; border: 1px solid var(--public-border); border-radius: 15px; background: rgba(255,255,255,.9); box-shadow: 0 5px 18px rgba(23,50,77,.04); }
.hero-search-fields { display: grid; width: 100%; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 13px; }
.hero-search-field { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.hero-search-field label { color: #455b6d; font-size: .79rem; font-weight: 700; }
.hero-search select, .hero-search input { width: 100%; min-width: 0; height: 47px; padding: 10px 12px; border: 1px solid #d6e0e0; border-radius: 9px; background: #fff; color: var(--public-ink); font: inherit; font-size: .9rem; }
.hero-search select:focus, .hero-search input:focus { outline: 3px solid rgba(8,127,91,.12); border-color: var(--public-green); }
.hero-search button { min-height: 47px; padding: 0 20px; border: 0; border-radius: 9px; background: var(--public-green); color: #fff; font-size: .9rem; font-weight: 700; }
.hero-search button:hover { background: #066d4e; }
.hero-note { margin-top: 14px; color: #718096; font-size: .82rem; }
.hero-note-dot { background: var(--public-orange); }
.learning-section { padding-top: 37px; padding-bottom: 36px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { color: var(--public-ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 1.45rem; letter-spacing: -.02em; }
.text-link, .lesson-read-link, .back-link { color: var(--public-green) !important; }
.subject-grid { grid-template-columns: repeat(3, 1fr); gap: 13px; }
.subject-card { min-height: 104px; display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 15px; padding: 16px; border-color: var(--public-border); border-radius: 14px; box-shadow: 0 2px 9px rgba(23,50,77,.025); }
.subject-card-name, .subject-card-meta { display: block; }
.subject-icon { position: static; flex: 0 0 42px; }
.subject-card .subject-arrow { right: 17px; bottom: auto; top: 50%; transform: translateY(-50%); color: var(--public-green); font-size: 1.1rem; }
.subject-tone-0 .subject-icon { background: #edf7f3; color: var(--public-green); }
.subject-tone-1 .subject-icon { background: #fff1e5; color: #b85c0a; }
.subject-tone-2 .subject-icon { background: #edf2f8; color: #395b7c; }
.subject-tone-3 .subject-icon { background: #f6efdf; color: #987139; }
.subject-card-name { padding-right: 21px; color: var(--public-ink); font-family: "Segoe UI", Arial, sans-serif; font-size: 1rem; }
.subject-card-meta { margin-top: 4px; color: #748395; font-size: .77rem; }
.recent-section { border-top: 1px solid var(--public-border); border-bottom: 1px solid var(--public-border); background: rgba(255,255,255,.55); }
.recent-section .learning-section { padding-top: 34px; padding-bottom: 35px; }
.lesson-grid { display: flex; flex-direction: column; gap: 0; overflow: hidden; border: 1px solid var(--public-border); border-radius: 14px; background: #fff; }
.lesson-card { display: flex; align-items: center; overflow: visible; border: 0; border-bottom: 1px solid #e7eeec; border-radius: 0; box-shadow: none; }
.lesson-card:last-child { border-bottom: 0; }
.lesson-card:hover { transform: none; box-shadow: none; background: #fbfdfc; }
.lesson-card-art { display: none; }
.lesson-card-body { flex: 1; display: grid; grid-template-columns: minmax(100px,.55fr) minmax(160px,1fr) minmax(120px,1.2fr) auto; align-items: center; gap: 15px; padding: 14px 18px; }
.lesson-kicker { color: var(--public-green); font-size: .72rem; }
.lesson-card h3 { margin: 0; color: var(--public-ink); font-family: "Segoe UI", Arial, sans-serif; font-size: .97rem; }
.lesson-card p { min-height: 0; margin: 0; color: #718096; font-size: .81rem; }
.lesson-read-link { margin: 0; white-space: nowrap; }
.learning-stat-band { padding-top: 20px; padding-bottom: 20px; }
.stat-number { color: var(--public-green); }
.public-page-hero { padding: 38px 0 31px; border-bottom: 1px solid var(--public-border); background: linear-gradient(135deg,#fff 0%,#edf7f3 100%); }
.public-page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.public-page-hero p { color: var(--public-muted); }
.catalog-wrap { padding-top: 28px; }
.catalog-tools input, .catalog-tools select { border-color: #d6e0e0; border-radius: 9px; }
.catalog-tools button { border-radius: 9px; background: var(--public-green); }
.lesson-card .lesson-card-body { padding: 17px 18px; }
.reading-wrap { margin-top: 24px; margin-bottom: 32px; padding: 28px; border: 1px solid var(--public-border); border-radius: 19px; background: #fff; box-shadow: 0 10px 30px rgba(23,50,77,.05); }
.breadcrumbs { color: #64748b; }
.reading-article h1 { color: var(--public-ink); font-family: "Segoe UI", Arial, sans-serif; }
.reading-content { color: #263e55; }
.reading-sidebar { border-color: var(--public-border); }
.reading-sidebar h2 { color: var(--public-ink); font-family: "Segoe UI", Arial, sans-serif; }
.public-footer { margin-top: 0; border-top: 1px solid var(--public-border); background: #fff; }
.footer-inner { min-height: 105px; }
.footer-brand { color: var(--public-ink) !important; font-family: "Segoe UI", Arial, sans-serif; font-size: 1.14rem; font-weight: 800; letter-spacing: -.04em; }
.footer-inner p { max-width: 340px; color: #718096; line-height: 1.5; }
.footer-links { color: #52677a; }
.footer-copyright { color: #718096; }
.empty-panel { border-color: var(--public-border); }
.profile-page { min-height: 65vh; padding-top: 42px; padding-bottom: 72px; }
.profile-card { overflow: hidden; border: 1px solid var(--public-border); border-radius: 14px; background: #fff; }
.profile-cover { height: 190px; background-color: #e1e7d8; background-position: center; background-size: cover; }
.profile-cover-default { background-image: linear-gradient(120deg, #e1e7d8, #d8e5de 55%, #efe6d5); }
.profile-summary { display: flex; align-items: center; gap: 18px; padding: 0 28px; }
.profile-avatar { width: 92px; height: 92px; margin-top: -34px; flex: 0 0 92px; border: 4px solid #fff; border-radius: 50%; object-fit: cover; background: #fff; }
.profile-avatar-placeholder { display: grid; place-items: center; color: #fff; background: var(--public-green); font-family: Manrope, sans-serif; font-size: 2rem; font-weight: 700; }
.profile-summary h1 { margin: 12px 0 2px; font-family: Manrope, sans-serif; font-size: clamp(1.45rem, 4vw, 2rem); letter-spacing: -.04em; overflow-wrap: anywhere; }
.profile-username { color: var(--public-muted); font-size: .9rem; }
.profile-edit-link { margin-left: auto; padding: 9px 14px; border: 1px solid var(--public-border); border-radius: 8px; color: var(--public-green) !important; font-size: .85rem; font-weight: 600; }
.profile-bio { max-width: 760px; margin: 14px 28px 0; color: #53615d; line-height: 1.7; white-space: normal; overflow-wrap: anywhere; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 18px; margin: 20px 28px 24px; color: var(--public-muted); font-size: .82rem; }
.profile-contributions { padding-top: 42px; }
.profile-empty { padding: 26px; border: 1px dashed #d8ded5; border-radius: 10px; color: var(--public-muted); text-align: center; }
.profile-not-found { max-width: 680px; margin: 44px auto; padding: 32px; }
.profile-not-found h1 { font-family: Manrope, sans-serif; }
.profile-not-found p { color: var(--public-muted); }
.learning-hero { padding: 22px 0 0; }
.hero-copy { padding: 32px 36px 24px; border-color: #e3eae4; border-radius: 16px; background: #fff; box-shadow: 0 4px 18px rgba(23, 50, 77, .035); }
.hero-copy .eyebrow { margin-bottom: 8px; }
.hero-copy h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.hero-copy > p { margin: 9px 0 0; }
.hero-search { max-width: 760px; margin-top: 18px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.hero-search-fields { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.hero-search button { min-width: 120px; }
.hero-note { margin-top: 12px; }
.home-boards { padding-top: 32px; padding-bottom: 32px; }
.home-section-heading { align-items: flex-start; margin-bottom: 15px; }
.home-section-heading .eyebrow { margin-bottom: 6px; }
.home-section-heading .browse-intro { margin-top: 5px; }
.board-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 360px)); }
.home-board-card { min-height: 94px; justify-content: flex-start; padding: 15px; }
.home-board-card .subject-icon { flex-basis: 40px; width: 40px; height: 40px; }
.home-board-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.home-board-copy .browse-card-step { margin: 0 0 3px; font-size: .59rem; }
.home-board-copy .subject-card-name { padding-right: 0; line-height: 1.25; }
.home-board-copy .subject-card-meta { margin-top: 3px; }
.home-board-card .subject-arrow { right: 15px; color: #70877a; font-size: 1.3rem; }
.recent-section .learning-section { padding-top: 28px; padding-bottom: 30px; }
.quick-nav { position: fixed; z-index: 1000; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 5px; padding: 7px; border: 1px solid rgba(220, 230, 222, .9); border-radius: 999px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 26px rgba(23, 56, 43, .2); }
.quick-nav a { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: #476458; -webkit-tap-highlight-color: transparent; }
.quick-nav a:hover, .quick-nav a:focus-visible { outline: none; background: #eaf3ec; color: var(--public-green); }
.quick-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.quick-nav a:focus-visible { box-shadow: inset 0 0 0 2px #8bb49a; }
@media (max-width: 800px) {
    .subject-grid { grid-template-columns: repeat(2, 1fr); }
    .lesson-card-body { grid-template-columns: minmax(90px,.5fr) minmax(140px,1fr) auto; }
    .lesson-card p { display: none; }
}
@media (max-width: 560px) {
    .container { width: min(calc(100% - 24px), 1120px); }
    .public-nav { min-height: 72px; }
    .public-brand-name { font-size: 1.45rem; }
    .public-brand-tagline { font-size: .58rem; }
    .public-nav-links { align-items: stretch; flex-direction: column; gap: 0; padding-top: 7px; padding-bottom: 7px; }
    .public-nav-links a { padding: 11px 2px; border-bottom: 1px solid #edf1f1; }
    .public-nav-links a:last-child { border-bottom: 0; }
    .learning-hero { padding-top: 12px; }
    .hero-copy { padding: 28px 18px 23px; border-radius: 16px; }
    .hero-copy h1 { font-size: 2.2rem; }
    .hero-copy > p { font-size: .9rem; }
    .hero-search { padding: 13px; }
    .hero-search-fields { grid-template-columns: 1fr; gap: 10px; }
    .hero-search button { width: 100%; }
    .subject-grid { grid-template-columns: 1fr; }
    .browse-steps { gap: 6px; }
    .browse-steps li { flex: 1 1 auto; padding: 8px 10px; }
    .browse-steps li:not(:last-child)::after { margin-left: 5px; }
    .subject-card .subject-arrow { right: 16px; bottom: 17px; }
    .browse-card-copy { padding-right: 55px; }
    .section-heading { flex-direction: row; align-items: flex-end; }
    .section-heading h2 { font-size: 1.25rem; }
    .section-heading .text-link { font-size: .75rem; white-space: normal; text-align: right; }
    .lesson-card-body { grid-template-columns: 1fr auto; gap: 5px 10px; padding: 13px; }
    .lesson-kicker { grid-column: 1 / -1; }
    .lesson-card h3 { grid-column: 1; }
    .lesson-card p { display: none; }
    .lesson-read-link { grid-column: 2; grid-row: 2; font-size: .75rem; }
    .reading-wrap { margin-top: 15px; padding: 20px 15px; }
    .footer-inner { align-items: flex-start; }
    .footer-links { flex-wrap: wrap; }
    .profile-page { padding-top: 24px; padding-bottom: 46px; }
    .profile-cover { height: 140px; }
    .profile-summary { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 0 18px; }
    .profile-avatar { width: 76px; height: 76px; flex-basis: 76px; }
    .profile-summary h1 { margin-top: 12px; }
    .profile-edit-link { margin: 0 0 4px 88px; }
    .profile-bio { margin-right: 18px; margin-left: 18px; }
    .profile-meta { gap: 10px 16px; margin-right: 18px; margin-left: 18px; }
    .profile-not-found { margin: 24px auto; padding: 22px; }
    .quick-nav { right: 50%; bottom: max(14px, env(safe-area-inset-bottom)); gap: 3px; padding: 6px; transform: translateX(50%); }
    .quick-nav a { width: 48px; height: 48px; }
    .hero-copy { padding: 26px 22px 20px; }
    .hero-search { padding: 0; }
    .board-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 360px)); }
    .home-board-card { min-height: 88px; }
}

[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 10001; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-160%); border-radius: 7px; background: #123c32; color: #fff !important; font-weight: 700; }
.skip-link:focus { transform: translateY(0); outline: 3px solid #f0bd42; outline-offset: 2px; }
.public-site :focus-visible { outline: 3px solid #0b6048; outline-offset: 3px; }
.discovery-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 16px; }
.discovery-filters label { color: #3c5147; font-size: .82rem; font-weight: 700; }
.discovery-filters input, .discovery-filters select { min-height: 42px; padding: 8px 11px; border: 1px solid #9aa99e; border-radius: 7px; background: #fff; color: #1e2932; font: inherit; }
.discovery-filters input { flex: 1 1 220px; min-width: 150px; }
.discovery-filters select { min-width: 170px; }
.discovery-empty { margin: 10px 0; padding: 15px; border: 1px dashed #879a8d; border-radius: 8px; color: #364a3e; }
.learning-actions, .subject-follow-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 5px; }
.learning-button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 14px; border: 1px solid #507460; border-radius: 8px; background: #fff; color: #174c37 !important; font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; text-decoration: none !important; }
.learning-button:hover, .learning-button:focus-visible { background: #e9f2eb; }
.learning-button-primary { background: #176b53; color: #fff !important; }
.learning-button:disabled { opacity: .6; cursor: wait; }
.learning-status, .subject-follow-wrap [data-follow-status] { color: #40564a; font-size: .84rem; }
.learning-signin { margin: 18px 0; color: var(--public-muted); font-size: .86rem; }
.learning-signin a { color: var(--public-green); font-weight: 700; text-decoration: underline; }
.lesson-report { margin: 16px 0 22px; color: #44554c; }
.lesson-report summary { width: fit-content; color: #235a42; font-weight: 700; cursor: pointer; }
.lesson-report form { display: grid; max-width: 580px; gap: 8px; margin-top: 12px; padding: 16px; border: 1px solid #d7e0d8; border-radius: 9px; background: #f8faf7; }
.lesson-report label { font-size: .85rem; font-weight: 700; }
.lesson-report label span { color: #738077; font-weight: 400; }
.lesson-report select, .lesson-report textarea { width: 100%; padding: 10px; border: 1px solid #9aa99e; border-radius: 7px; background: #fff; color: #1e2932; font: inherit; }
.my-learning-page { padding-top: 46px; padding-bottom: 65px; }
.learning-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.learning-page-heading h1 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.05em; }
.learning-page-heading p { max-width: 620px; margin: 10px 0 0; color: var(--public-muted); line-height: 1.6; }
.learning-dashboard-section { margin: 32px 0; }
.learning-dashboard-section .section-heading { margin-bottom: 14px; }
.learning-list { display: grid; gap: 10px; }
.learning-list-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; border: 1px solid var(--public-border); border-radius: 10px; background: #fff; }
.learning-list-card h3 { margin: 5px 0; font-size: 1.02rem; }
.learning-list-card h3 a { color: #18563d; text-decoration: underline; text-underline-offset: 2px; }
.learning-list-card span, .learning-list-card small { color: var(--public-muted); font-size: .8rem; }
.learning-progress-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.learning-progress-card { position: relative; padding: 17px; border: 1px solid var(--public-border); border-radius: 10px; background: #fff; }
.learning-progress-card h3 { margin: 0 0 5px; font-size: 1.02rem; }
.learning-progress-card span, .learning-progress-card p { color: var(--public-muted); font-size: .82rem; }
.learning-progress-card progress { display: block; width: calc(100% - 48px); height: 10px; margin-top: 15px; accent-color: #176b53; }
.learning-progress-card > strong { position: absolute; right: 17px; bottom: 16px; color: #174c37; font-size: .82rem; }
.subject-follow-wrap [data-follow-status] { flex-basis: 100%; }
.preview-label { width: fit-content; padding: 7px 10px; border: 1px solid #8a4b0b; border-radius: 6px; background: #fff5dd; color: #713b00; }
@media (max-width: 560px) {
    .discovery-filters { align-items: stretch; }
    .discovery-filters label { flex: 1 0 100%; }
    .discovery-filters input, .discovery-filters select { flex: 1 1 100%; width: 100%; }
    .learning-page-heading { align-items: flex-start; flex-direction: column; }
    .learning-list-card { align-items: flex-start; flex-direction: column; }
    .learning-actions > .learning-button { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

:root {
    --public-ink: #17364a;
    --public-muted: #647b86;
    --public-paper: #f3f7f6;
    --public-green: #087f63;
    --public-border: #dce8e5;
    --public-orange: #d97725;
    --public-shadow: 0 12px 32px rgba(18, 60, 82, .07);
}

body.public-site {
    background: var(--public-paper);
    color: var(--public-ink);
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.55;
}

.public-site :focus-visible {
    outline-color: #087f63;
}

.public-header {
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 3px 16px rgba(18, 60, 82, .045);
    backdrop-filter: blur(14px);
}

.public-nav-panel {
    border-top-color: #e6efed;
    box-shadow: 0 15px 28px rgba(18, 60, 82, .08);
}

.public-nav-links a {
    transition: color .16s ease, background-color .16s ease;
}

.public-nav-links a:hover,
.public-nav-links a:focus-visible {
    color: var(--public-green);
}

.public-menu-button {
    border-color: #d3e1de;
    box-shadow: 0 2px 6px rgba(18, 60, 82, .04);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.public-menu-button:hover {
    border-color: #a9c9bf;
    background: #f5faf8;
    box-shadow: 0 4px 12px rgba(18, 60, 82, .08);
}

.hero-copy {
    border-color: #dbe8e3;
    background: linear-gradient(125deg, #fff 0%, #f5faf7 68%, #fff7ed 100%);
    box-shadow: var(--public-shadow);
}

.hero-copy h1,
.public-page-hero h1,
.learning-page-heading h1 {
    color: #14394b;
    letter-spacing: -.045em;
}

.hero-search,
.reading-wrap {
    border-color: #dce8e5;
    box-shadow: var(--public-shadow);
}

.hero-search select,
.hero-search input,
.catalog-tools input,
.catalog-tools select,
.discovery-filters input,
.discovery-filters select,
.lesson-report select,
.lesson-report textarea {
    border-color: #cbdad7;
}

.hero-search select:focus,
.hero-search input:focus,
.catalog-tools input:focus,
.catalog-tools select:focus,
.discovery-filters input:focus,
.discovery-filters select:focus,
.lesson-report select:focus,
.lesson-report textarea:focus {
    border-color: var(--public-green);
    outline: 3px solid rgba(8, 127, 99, .13);
}

.hero-search button,
.catalog-tools button,
.learning-button-primary {
    background: #087f63;
    box-shadow: 0 3px 8px rgba(8, 127, 99, .14);
    transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.hero-search button:hover,
.catalog-tools button:hover,
.learning-button-primary:hover {
    background: #066b54;
    box-shadow: 0 5px 13px rgba(8, 127, 99, .2);
    transform: translateY(-1px);
}

.section-heading h2,
.reading-article h1,
.reading-sidebar h2 {
    color: #17364a;
}

.subject-card,
.lesson-grid,
.reading-wrap,
.profile-card,
.learning-list-card,
.learning-progress-card {
    border-color: #dce8e5;
    box-shadow: 0 3px 12px rgba(18, 60, 82, .035);
}

.subject-card {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.subject-card:hover,
.subject-card:focus-visible,
.lesson-card:focus-within {
    border-color: #a9c9bf;
    box-shadow: 0 12px 26px rgba(18, 60, 82, .1);
    transform: translateY(-2px);
}

.lesson-card {
    transition: background-color .16s ease;
}

.lesson-card:hover {
    background: #f5faf8;
}

.browse-steps li.is-current,
.community-tabs a.is-active {
    border-color: #b8d5ca;
    background: #eaf5f0;
    color: #07664f;
}

.public-page-hero {
    border-bottom-color: #dce8e5;
    background: linear-gradient(120deg, #fff 0%, #edf7f3 72%, #fbf3e8 100%);
}

.reading-content {
    color: #283f4b;
    line-height: 1.85;
}

.reading-content h2,
.reading-content h3 {
    color: #17364a;
    letter-spacing: -.025em;
}

.reading-content a {
    color: #076b52;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.public-footer {
    background: #fff;
}

.quick-nav {
    border-color: #d7e5e0;
    box-shadow: 0 8px 24px rgba(18, 60, 82, .17);
    backdrop-filter: blur(12px);
}

.quick-nav a {
    transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.quick-nav a:hover {
    transform: translateY(-2px);
}

@media (max-width: 560px) {
    .hero-copy {
        border-radius: 15px;
        box-shadow: 0 8px 22px rgba(18, 60, 82, .06);
    }
    .public-nav-panel {
        max-height: calc(100dvh - 72px);
        overflow-y: auto;
    }
    .quick-nav {
        box-shadow: 0 6px 20px rgba(18, 60, 82, .15);
    }
}
