.preview-site{--ink:#172c43;--muted:#596a7b;--accent:#125d68;--line:#dae4e6;margin:0;color:var(--ink);background:#f7faf9;font-family:Arial,"Myanmar Text",sans-serif;line-height:1.7}.preview-site *{box-sizing:border-box}.preview-site [hidden]{display:none!important}.preview-site a{text-decoration:none;color:var(--accent)}.preview-site button,.preview-site input,.preview-site select,.preview-site textarea{font:inherit}.preview-site button,.preview-site .primary{cursor:pointer;border:1px solid var(--line);border-radius:9px;padding:10px 16px;display:inline-block}.preview-site button{background:white;color:var(--ink)}.preview-site button:disabled{opacity:.6;cursor:wait}.preview-site .primary{background:var(--accent);color:#fff;border-color:var(--accent)}.preview-site :focus-visible{outline:3px solid #ca8533;outline-offset:3px}.preview-header{max-width:1180px;margin:auto;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:12px;font-weight:700;color:var(--ink)!important}.brand img{object-fit:contain}.brand small{display:block;color:var(--muted);font-weight:400}.preview-header nav{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.preview-wrap{max-width:1132px;margin:auto;padding:0 24px}.preview-hero{padding:48px 0 32px;max-width:760px}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.15em;color:var(--accent)}.preview-hero h1{font-size:clamp(28px,5vw,48px);line-height:1.5;margin:14px 0}.preview-hero h1 span{display:block;font-size:.6em;color:var(--muted);font-weight:400}.preview-hero p,.course-intro p{max-width:760px;white-space:pre-wrap}.preview-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 26px}.preview-groups button{text-align:left;min-height:78px;font-weight:700;padding:18px}.preview-groups button[aria-pressed=true]{background:var(--accent);color:#fff;border-color:var(--accent)}.course-intro{background:#eaf2ef;border:1px solid #d1e2dc;border-radius:16px;padding:28px;margin-bottom:38px}.course-intro h2{margin:5px 0;font-size:27px}.preview-site h2{overflow-wrap:anywhere}.preview-site h2 small{display:block;font-size:14px;font-weight:400;color:var(--muted)}.preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:42px}.preview-card{min-width:0;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px}.preview-card h3{margin:8px 0;font-size:19px;overflow-wrap:anywhere}.preview-card p{color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere}.preview-card button{max-width:100%;white-space:normal;overflow-wrap:anywhere}.preview-player{width:100%;aspect-ratio:16/9;min-height:200px;border:0;margin-top:15px}.preview-empty{color:var(--muted);grid-column:1/-1;padding:22px;border:1px dashed var(--line);border-radius:12px}.preview-cta{padding:30px;background:#eaf2ef;border-radius:16px;margin:20px 0 40px}.preview-site footer{text-align:center;padding:28px;color:var(--muted);border-top:1px solid var(--line)}.preview-site dialog{width:min(960px,96vw);max-height:94dvh;padding:18px;border:1px solid var(--line);border-radius:12px;color:var(--ink);background:#f7faf9}.preview-site dialog::backdrop{background:#101e30cc}.reader-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;position:sticky;top:-18px;background:#f7faf9;padding:12px 0;z-index:1}.reader-toolbar h2{font-size:18px;margin:0;min-width:0}.reader-toolbar button{flex-shrink:0}.preview-page{display:block;max-width:100%;height:auto;margin:0 auto 18px;user-select:none}.preview-admin-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:24px;align-items:start}.preview-editor{background:white;border:1px solid var(--line);border-radius:14px;padding:22px;margin-bottom:24px}.preview-site label{display:block;font-weight:600;margin:12px 0}.preview-site input,.preview-site select,.preview-site textarea{display:block;width:100%;max-width:100%;padding:11px;margin:6px 0;border:1px solid #aabcc1;border-radius:7px;color:var(--ink);background:white}.preview-site textarea{min-height:100px;resize:vertical}.preview-actions{display:flex;gap:8px;flex-wrap:wrap}.preview-admin-list .preview-card{margin-bottom:14px}.badge{font-size:12px;border-radius:20px;padding:3px 10px;background:#eaf2ef}.preview-note{font-size:14px;color:var(--muted)}.preview-error{color:#ad2020!important}.preview-site .danger{color:#ad2020}.preview-site #adminStatus{position:sticky;top:0;background:#f7faf9;z-index:2;padding:10px 0}.preview-site .page-thumbnails{display:flex;gap:8px;overflow:auto;margin:14px 0}.page-thumbnails img{width:90px;height:120px;object-fit:contain;border:1px solid var(--line)}@media(max-width:760px){.preview-grid,.preview-admin-grid{grid-template-columns:1fr}.preview-groups{grid-template-columns:1fr}.preview-groups button{min-height:0;padding:13px 16px}.preview-header{padding:16px}.preview-wrap{padding:0 16px}.preview-hero{padding:24px 0 18px}.course-intro{padding:20px}.preview-header nav{gap:14px}.preview-cta{padding:20px}}@media print{.preview-site #readerPages{display:none}}

/* Public page only. Shared admin controls retain their original styles. */
.preview-landing{--ink:#112951;--accent:#163b78;--muted:#52617a;--line:#dce1ea;background:#faf9f5;font-family:Arial,"Myanmar Text",sans-serif}
.preview-landing .preview-header{max-width:1320px;padding:22px 32px;gap:20px}.preview-landing .brand img{width:62px;height:62px;border-radius:10px}.preview-landing .brand strong{display:block;font:700 clamp(22px,2.5vw,30px)/1.2 Georgia,serif;color:#102858}.preview-landing .brand small{margin-top:7px;font:italic 15px/1.4 Georgia,serif;color:#855b18}.preview-landing .preview-header nav a{padding:10px 22px;border:1px solid #cbd4e3;border-radius:8px;font-weight:700}.preview-landing .preview-wrap{max-width:1320px;padding:0 32px}.preview-banner{margin:0 0 46px;border:1px solid #d8c18f;border-radius:16px;overflow:hidden;box-shadow:0 14px 35px #14274e12;background:white}.preview-banner img{display:block;width:100%;height:auto}.preview-welcome{text-align:center;margin:0 auto 50px;max-width:750px}.preview-landing .eyebrow{color:#906414;font-size:11px;letter-spacing:.19em;font-weight:700}.preview-welcome h1{font:700 clamp(34px,5vw,48px)/1.2 Georgia,serif;margin:12px 0 20px;color:#102858}.preview-welcome p{line-height:2;color:#475873;font-size:16px}.access-note{display:inline-block;padding:6px 16px;border-radius:30px;border:1px solid #dfcca3;background:#fff9e9;color:#705017;font-size:13px}.choose-heading{border-top:1px solid #ded4be;padding-top:30px;scroll-margin-top:22px}.choose-heading h2{font-size:26px;margin:8px 0 12px;line-height:1.7}.choose-heading p:last-child{color:var(--muted);font-size:15px}.preview-landing .primary{background:#15366e;color:#fff;border:1px solid #15366e;padding:12px 22px;font-weight:700;border-radius:8px;box-shadow:0 4px 12px #10285816}.preview-landing .primary:hover{background:#214989}.preview-landing .preview-groups{gap:20px;margin:26px 0 30px}.preview-landing .preview-groups button{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:228px;padding:26px;background:#fff;border:1px solid #ccd5e4;border-top:4px solid #bf963f;border-radius:14px;box-shadow:0 8px 20px #17366408;transition:box-shadow .15s,border-color .15s}.preview-landing .preview-groups button:hover{border-color:#a98439;box-shadow:0 10px 26px #16366c18}.course-icon{width:46px;height:46px;border-radius:12px;display:grid;place-items:center;background:#edf1f8;color:#143d7f;font:28px Georgia,serif}.course-card-title{font-size:21px;line-height:1.45;font-weight:700}.course-card-subtitle{font-size:13px;color:var(--muted);font-weight:400}.course-card-action{font-size:14px;color:#163b78;font-weight:700;margin-top:auto}.preview-landing .preview-groups button[aria-pressed=true]{background:linear-gradient(135deg,#102b5b,#1b4382);color:white;border-color:#cda954;box-shadow:0 8px 22px #132f6525}.preview-landing .preview-groups button[aria-pressed=true] .course-icon{background:#ffffff16;color:#f5d58a}.preview-landing .preview-groups button[aria-pressed=true] .course-card-subtitle{color:#dce6f6}.preview-landing .preview-groups button[aria-pressed=true] .course-card-action{color:#ffe3a1}.preview-landing .course-intro{background:#fff;border:1px solid #d9dfea;border-left:5px solid #bd9340;box-shadow:0 6px 22px #142d5106;padding:30px 32px;scroll-margin-top:22px}.course-heading-line{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.availability{font-size:12px;border:1px solid #ddc796;background:#fcf7ea;color:#755119;border-radius:20px;padding:5px 12px}.preview-landing .course-intro h2{font-size:29px;margin:10px 0}.preview-landing .course-intro p{color:var(--muted);line-height:1.9}.preview-landing h2{font-weight:700;line-height:1.7}.preview-landing h2 small{font-size:13px;letter-spacing:.06em;margin-top:4px}.preview-landing .preview-card{padding:24px;box-shadow:0 6px 18px #142d5108}.preview-landing .preview-card h3{font-size:21px;line-height:1.6}.preview-landing .preview-card button{background:#163b78;color:white;border-color:#163b78;font-weight:700}.preview-landing .preview-empty{background:#fff;border-style:solid;padding:25px;line-height:1.9}.preview-landing .preview-cta{background:linear-gradient(120deg,#0d254f,#173d79);color:#fff;border:1px solid #b18b40;border-radius:16px;padding:38px;margin:40px 0 56px}.preview-landing .preview-cta h2{margin:0 0 12px}.preview-landing .preview-cta p{color:#dce6f6}.preview-landing .preview-cta .primary{background:#f1d491;color:#172c50;border-color:#f1d491;margin-top:8px}.preview-landing footer{display:flex;justify-content:space-between;align-items:flex-start;gap:36px;padding:44px max(32px,calc((100% - 1256px)/2));text-align:left;background:#0c2044;border-top:3px solid #c7a05b;color:#e5ebf4}.preview-landing footer .eyebrow{color:#e6c77f}.preview-landing footer .footer-brand>strong{display:block;font:700 34px/1.3 Georgia,serif;color:white;margin:8px 0}.preview-landing footer .footer-brand p{font:italic 17px/1.6 Georgia,serif;color:#e4c88f;margin:0}.preview-landing footer .footer-info>strong{font-size:19px;color:white}.preview-landing footer .footer-info p{font-size:14px;line-height:1.9;color:#c4d1e6}.preview-landing footer nav{display:flex;gap:12px 22px;flex-wrap:wrap;font-size:14px}.preview-landing footer nav a{color:#f1d491}.preview-landing footer nav a:hover{text-decoration:underline}.preview-landing #previewStatus:empty{display:none}.preview-landing :focus-visible{outline:3px solid #bd8e2d;outline-offset:4px}
@media(max-width:760px){.preview-landing .preview-header{padding:18px 16px}.preview-landing .preview-wrap{padding:0 16px}.preview-landing .brand img{width:48px;height:48px}.preview-landing .brand small{font-size:12px}.preview-landing .preview-header nav{gap:10px}.preview-landing .preview-header nav a{padding:8px 18px}.preview-banner{border-radius:10px;margin-bottom:30px}.preview-welcome{margin-bottom:34px}.preview-welcome p{font-size:14px}.preview-landing .preview-groups{grid-template-columns:1fr;gap:14px}.preview-landing .preview-groups button{min-height:0;display:grid;grid-template-columns:46px 1fr;gap:5px 16px;padding:20px}.course-icon{grid-row:1/4}.course-card-title,.course-card-subtitle,.course-card-action{grid-column:2}.course-card-title{font-size:20px}.course-card-action{margin-top:7px}.preview-landing .course-intro{padding:22px}.preview-landing .course-intro h2{font-size:24px}.preview-landing .preview-cta{padding:26px}.preview-landing footer{flex-direction:column;padding:34px 22px}.choose-heading h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.preview-landing .preview-groups button{transition:none}}

/* Equal course-card rows; compact AS course titles retain full readable text. */
.preview-landing .preview-groups{grid-auto-rows:1fr}
.preview-landing .preview-groups button{min-width:0;height:100%;box-sizing:border-box}
.preview-landing .course-card-title{white-space:pre-line;overflow-wrap:break-word}
@media(max-width:760px){.preview-landing .preview-groups{grid-auto-rows:auto}}

@media(min-width:761px){.preview-grid.ai-subject-pairs{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-subject-pairs .subject-row-start{grid-column-start:1}}
.preview-share-status{flex-basis:100%;font-size:14px;overflow-wrap:anywhere}.preview-share-status:empty{display:none}.preview-card{scroll-margin-top:20px}.preview-landing .preview-card .preview-download{display:inline-block;background:#163b78;color:#fff;border:1px solid #163b78;border-radius:9px;padding:10px 16px;font-weight:700;text-decoration:none}.preview-download:hover{filter:brightness(1.1)}
.preview-share-menu{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;padding:14px;background:#eef3f8;border-radius:10px}.preview-share-menu a{padding:8px 12px;border:1px solid #c3cedd;background:white;border-radius:7px;font-weight:700;text-decoration:none}.preview-share-menu small{flex-basis:100%;line-height:1.8}

.preview-landing #graphDemoCard.graph-showcase{background:linear-gradient(125deg,#09233d,#173c59);color:#fff;border:1px solid #315570;border-radius:24px;padding:36px;display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:26px;overflow:hidden;box-shadow:0 16px 38px #0b294323}.preview-landing #graphDemoCard[hidden]{display:none!important}#graphDemoCard .eyebrow{color:#67e8d6;letter-spacing:2px;font-size:12px}#graphDemoCard h2{color:#fff;font-size:38px;line-height:1.18;margin:14px 0 20px}#graphDemoCard h2 span{color:#ffcf7b}#graphDemoCard .graph-copy>p:not(.eyebrow){color:#dbe8ef;line-height:1.9}#graphDemoCard .graph-tags{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}#graphDemoCard .graph-tags span{border:1px solid #577285;border-radius:20px;padding:5px 12px;font-size:12px;color:#d9ecef}#graphDemoCard a.primary{display:inline-block;background:#ffcf7b;color:#09233d;padding:12px 22px;border-radius:10px;font-weight:750;text-decoration:none}#graphDemoCard .graph-art svg{display:block;width:100%;height:auto;filter:drop-shadow(0 12px 20px #0003)}#graphDemoCard .graph-caption{text-align:center;font-size:10px;letter-spacing:2px;color:#c2d7e4;margin-top:12px}#graphDemoCard .graph-caption span{color:#ffcf7b;margin:0 10px}@media(max-width:760px){.preview-landing #graphDemoCard.graph-showcase{grid-template-columns:1fr;padding:24px;gap:16px}#graphDemoCard h2{font-size:32px}}

.chemistry-workflow-card{grid-column:1/-1;border-top:4px solid #1a9c96!important;background:#edf7e9!important}.chemistry-downloads{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.chemistry-workflow-card h3{color:#104c56}.chemistry-workflow-card .preview-player{max-height:72vh;object-fit:contain}.preview-landing .chemistry-downloads .preview-download{background:#116c69;border-color:#116c69;color:#fff}.preview-landing .chemistry-downloads .preview-download:hover{background:#0c5552;border-color:#0c5552}

.chemistry-download-picker{margin-top:18px;border:1px solid #b6d5c4;border-radius:10px;padding:14px 18px}.chemistry-download-picker summary{cursor:pointer;font-weight:700;color:#116c69;line-height:1.8}.chemistry-download-picker select{flex:1;min-width:0;max-width:520px;padding:12px;border:1px solid #8dbbb1;border-radius:8px;background:#fff;color:#104c56;font:inherit}.chemistry-download-picker .preview-download[hidden]{display:none!important}.chemistry-download-picker .chemistry-downloads{align-items:center}

.chemistry-download-picker summary{display:list-item;width:fit-content;max-width:100%;box-sizing:border-box;padding:10px 18px;background:#116c69;color:#fff;border:1px solid #116c69;border-radius:9px;font-weight:700;list-style-position:inside}.chemistry-download-picker summary:hover{background:#0c5552;border-color:#0c5552}.chemistry-download-picker summary:focus-visible{outline:3px solid #116c69;outline-offset:4px}
