:root{--space-blue:#24477b;--space-deep:#142c52;--ink:#20334e;--green:#24477b;--bg:#f5f8fc;--line:#dce5f0}body{color:#20334e;background:#f5f8fc}h1,h2,h3{color:#203c65}nav button.active,.paper-modes button.on,.tabs button.selected{background:#e5edf9!important;color:#24477b!important;border-color:#7899c6!important}.primary{background:#24477b!important;color:white!important}.hero{background:linear-gradient(115deg,#e5ecfb,#e1f2f3)!important}.site-brand-copy span{color:#398aa4!important}.material-form-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.material-form-heading h2{margin:0}.chapter-material-options{grid-template-columns:repeat(4,minmax(0,1fr))}.chapter-material-options button{min-height:47px;padding:4px}.chapter-video-list{padding-left:23px}.chapter-video-list li{padding:8px 0;border-bottom:1px solid #e3e9f3}.home-feedback,.home-social{margin-top:35px}.home-feedback h2 small,.home-social h2 small{font-size:14px;font-weight:400}.feedback-carousel{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:12px;align-items:center;margin-top:18px;background:#fff;border:1px solid #dce5f0;border-radius:16px;padding:18px}.feedback-carousel>button{font-size:34px;border:0;background:#e6eef9;border-radius:50%;width:40px;height:40px;line-height:1;color:#24477b}.feedback-carousel figure{margin:0;text-align:center;min-width:0}.feedback-carousel img{display:block;max-width:100%;width:auto;height:auto;max-height:560px;margin:auto}.feedback-carousel figcaption{font-size:13px;margin-top:12px;color:#677994}.social-qr-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:18px}.social-qr-grid>a{display:grid;text-align:center;gap:10px;text-decoration:none;background:white;border:1px solid #dce5f0;border-radius:12px;padding:12px;color:#24477b;min-width:0}.social-qr-grid img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}.access-callout{display:flex;align-items:center;gap:24px;padding:24px;border-radius:16px;background:#e8effa;margin-top:30px}.access-callout img{width:130px;height:auto;flex-shrink:0}.access-callout h2{font-size:22px}.access-callout h2 small{font-size:16px;font-weight:400}.portal-contact-actions{display:flex;gap:18px;align-items:center;margin-top:16px}.portal-contact-actions a{display:inline-block;text-decoration:none}.paper-filters label:has([data-p1-field="paper"]){flex:0 0 145px;width:145px;min-width:0}.paper-filters [data-p1-field="paper"]{width:100%}.p1-question{border:0;border-bottom:1px solid #dfe4ec;border-radius:0;box-shadow:none;padding:24px 18px;background:white}.p1-stem,.p1-choices button{font-family:Arial,Helvetica,sans-serif!important;font-size:16px!important;line-height:1.65!important;color:#202733}.p1-choices{grid-template-columns:1fr;gap:4px;margin-top:13px}.p1-choices button,.p1-choices button:disabled{background:transparent;border:0;border-radius:0;padding:5px 0;box-shadow:none}.p1-choices button>b{background:none;border:0;border-radius:0;padding:0 6px 0 0;min-width:22px;color:inherit}.p1-choices button.selected{background:#e8eef8}.p1-choices button.answer-correct{background:#edf7f0}.paper-q-ref{font-size:13px;letter-spacing:0;color:#64758d}.kbat-page{margin:18px 0}.kbat-page img{display:block;width:100%;height:auto;max-height:none!important}.p3-reading{max-width:1050px}.p3-reading .paper-tags{display:none}.home-feedback a:focus-visible,.social-qr-grid a:focus-visible{outline:3px solid #7396cd;outline-offset:4px}@media(max-width:700px){.social-qr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feedback-carousel{grid-template-columns:30px minmax(0,1fr) 30px;gap:5px;padding:12px 5px}.feedback-carousel>button{width:28px;height:32px;font-size:27px}.access-callout{padding:18px;gap:15px;align-items:flex-start}.access-callout img{width:90px}.access-callout h2{font-size:18px}.portal-contact-actions{flex-wrap:wrap;gap:10px}.material-form-heading a{font-size:12px}.paper-filters label:has([data-p1-field="paper"]){flex:0 0 100px;width:100px}.p1-question{padding:18px 10px}.p1-stem,.p1-choices button{font-size:15px!important}.chapter-material-options button{font-size:11px}}
.paper-filters:has([data-p1-field="chapterKey"]){grid-template-columns:140px minmax(0,1fr)}.paper-filters:has([data-p1-field="year"]){grid-template-columns:minmax(0,1fr) 140px}.paper-filters label:has([data-p1-field="paper"]){width:auto}.p2-document{padding:20px;background:#fff;border-radius:12px;margin-top:20px}.p2-document h2{font-size:18px;margin-bottom:14px}.p2-document iframe{display:block;width:100%;height:75vh;min-height:450px;border:1px solid #dce5f0;margin-top:15px}.p2-mark-scheme{margin-top:24px}.p2-mark-scheme summary{cursor:pointer;color:#b32135;font-weight:600}.p2-reading-note{line-height:1.8;margin-top:20px}.p2-errata{color:#a92d3c;background:#fff1f2;padding:15px;border-radius:8px}.p1-progress select{max-width:100%;padding:8px;font:inherit;min-width:0}@media(max-width:700px){.paper-filters:has([data-p1-field="chapterKey"]){grid-template-columns:90px minmax(0,1fr)}.paper-filters:has([data-p1-field="year"]){grid-template-columns:minmax(0,1fr) 90px}.p2-document{padding:12px}}

.paper-filters label:only-child{grid-column:1/-1;width:100%}
.feedback-carousel{width:640px;max-width:100%;grid-template-columns:40px minmax(0,1fr) 40px;justify-content:center;margin-inline:auto}.feedback-carousel figure{height:490px;display:flex;flex-direction:column}.feedback-viewport{display:block;width:100%;height:460px;flex:none;overflow:auto;overscroll-behavior:contain;background:#f7f9fc;scrollbar-gutter:stable;border-radius:8px}.feedback-carousel .feedback-viewport img{display:block;width:100%;max-width:none;height:auto;max-height:none;object-fit:initial;margin:0}.feedback-carousel figcaption{height:20px;flex:none;margin:10px 0 0}.social-qr-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:18px}.social-qr-grid>a{display:flex;align-items:center;justify-content:center;width:190px;height:210px;flex:0 0 190px;padding:5px;border:0;background:transparent;gap:0}.social-qr-grid img{width:180px;height:200px;aspect-ratio:auto;object-fit:contain;flex:none}@media(max-width:700px){.feedback-carousel{width:380px;grid-template-columns:28px minmax(0,1fr) 28px;gap:5px}.feedback-carousel figure{height:450px}.feedback-viewport{height:420px}.social-qr-grid{gap:8px}.social-qr-grid>a{width:150px;height:170px;flex-basis:150px}.social-qr-grid img{width:140px;height:160px}}@media(max-width:350px){.social-qr-grid>a{flex-basis:130px;width:130px;height:150px}.social-qr-grid img{width:125px;height:140px}}
.p1-choices button{align-items:baseline}.p1-choices .paper-equation{margin:0 0 6px;font-weight:400;line-height:inherit}.p1-choices .paper-equation:last-child{margin-bottom:0}
.paper-choice-line{display:flex;align-items:baseline;column-gap:4px;min-width:0}.paper-choice-line+.paper-choice-line{margin-top:3px}.p1-choices .paper-choice-line .paper-equation{flex:1;min-width:0;margin:0}
.lab-chapter-heading{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;align-items:baseline;gap:8px}.lab-chapter-name{flex-basis:auto;min-width:0}.lab-chapter-count{margin-left:0;white-space:nowrap}
.feedback-viewport{overscroll-behavior:auto}
.home-class-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:stretch}.home-class-card{display:flex;flex-direction:column;gap:8px;padding:20px;min-width:0}.home-class-card h2{font-size:24px;line-height:1.3;margin:0}.home-class-card>.eyebrow{font-size:10px;line-height:1.5}.home-class-stats{display:flex;gap:8px 16px;flex-wrap:wrap;margin:4px 0 10px;color:#73818a;font-size:14px}.home-class-stats>span{white-space:nowrap}.home-class-actions{display:grid;gap:4px;margin-top:auto}.home-class-actions .home-class-link{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;padding:7px 0;margin:0;text-align:left;line-height:1.4;font-size:14px}.home-class-link>span:last-child{flex:none;white-space:nowrap}.home-class-link>span:first-child{min-width:0}@media(max-width:560px){.home-class-grid{grid-template-columns:1fr;gap:12px}.home-class-card{padding:18px}.home-class-stats{margin-bottom:6px}}
.hero.home-hero-carousel{padding:0!important;min-height:0!important}.home-hero-window{overflow:hidden}.home-hero-track{display:grid;grid-auto-flow:column;grid-auto-columns:100%;align-items:stretch;transition:transform .45s ease}.home-hero-slide{position:relative;padding:30px 30px 60px;min-width:0;overflow:hidden}.home-hero-slide .primary{display:inline-block;text-decoration:none;margin-top:16px}.home-hero-slide .teacher-avatar{pointer-events:none}.home-physics-slide{background:linear-gradient(115deg,#e6eefb,#e0f2f4)}.physics-banner-symbol{position:absolute;right:25px;bottom:60px;font-size:70px;font-weight:800;color:#24477b;opacity:.09;pointer-events:none}.home-hero-controls{display:flex;gap:10px;align-items:center;justify-content:flex-end;position:absolute;right:24px;bottom:16px;color:#24477b}.home-hero-controls button{border:1px solid #b2c6e2;border-radius:7px;background:#ffffffd9;color:#24477b;width:30px;height:28px;line-height:1;font-size:18px}.home-hero-counter{font-size:12px}.feedback-auto-control{border:0;border-radius:4px;background:#e5edf8;color:#24477b;padding:2px 7px;font-size:11px;cursor:pointer}.feedback-viewport img{animation:feedback-slide-in .3s ease}@keyframes feedback-slide-in{from{opacity:.35;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}@media(max-width:600px){.home-hero-slide{padding:24px 22px 58px}.home-hero-controls{right:20px;bottom:14px}.physics-banner-symbol{font-size:45px}}@media(prefers-reduced-motion:reduce){.home-hero-track{transition:none}.feedback-viewport img{animation:none}}

.home-hero-slide{padding-bottom:30px}.home-hero-slide .eyebrow{padding-right:125px;min-height:28px;display:flex;align-items:center}.home-hero-controls{top:30px;bottom:auto;right:30px;gap:6px}.home-hero-counter{font-weight:700}.home-hero-controls button{border:0;background:transparent;width:24px;height:24px}.home-hero-controls [data-hero-pause]{font-size:13px}@media(max-width:600px){.home-hero-slide{padding-bottom:24px}.home-hero-slide .eyebrow{font-size:10px;letter-spacing:1.2px;padding-right:112px}.home-hero-controls{top:24px;right:22px;gap:3px}}

.home-physics-slide{isolation:isolate;padding-right:245px}.home-physics-slide h2,.home-physics-slide p,.home-physics-slide a,.home-physics-slide .eyebrow{position:relative;z-index:1}.physics-card-logo{position:absolute;width:150px;height:150px;right:40px;top:95px;z-index:0}.physics-card-watermark{position:absolute;width:320px;height:320px;right:-55px;bottom:-65px;opacity:.065;pointer-events:none;z-index:0}.physics-chinese-heading{font-weight:600}.physics-chinese-copy{font-size:.85em}@media(max-width:600px){.home-physics-slide{padding-right:22px}.physics-card-logo{width:72px;height:72px;right:18px;top:auto;bottom:20px;opacity:.85}.physics-card-watermark{width:290px;height:290px;right:-60px;bottom:50px;opacity:.09}.home-physics-slide .primary{margin-right:70px}.physics-chinese-heading{font-size:.9em}}

.home-physics-slide .physics-whole-card-link{position:absolute;inset:0;z-index:4;display:block;margin:0;border-radius:inherit;cursor:pointer}.physics-whole-card-link:focus-visible{outline:3px solid #24477b;outline-offset:-5px}.home-hero-controls{z-index:5}

/* Show the complete screenshot on hover/focus without resizing the carousel. */
.feedback-viewport{overflow:hidden;scrollbar-gutter:auto;cursor:zoom-in}
.feedback-carousel .feedback-viewport:hover img,.feedback-carousel .feedback-viewport:focus img,.feedback-carousel .feedback-viewport:focus-within img{width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center;animation:none}
.feedback-viewport:hover,.feedback-viewport:focus{cursor:default}
@media(hover:none){.feedback-carousel .feedback-viewport img{height:100%;object-fit:contain;object-position:center}}

.chemistry-hero-title{display:flex;align-items:center;gap:20px;position:relative;z-index:1}.chemistry-hero-title h2{flex:1;min-width:0;margin-bottom:0}.chemistry-hero-title>img{width:100px;height:100px;object-fit:contain;flex:none;border-radius:50%}.chemistry-hero-chinese{position:relative;z-index:1;margin:12px 0 22px!important;color:#4c5976}.home-hero-slide:has(.chemistry-hero-title)>.teacher-avatar{display:none!important}@media(max-width:600px){.chemistry-hero-title{gap:12px}.chemistry-hero-title>img{width:72px;height:72px}.chemistry-hero-chinese{font-size:16px!important}}

.paper-filters:has([data-p1-field="year"]){grid-template-columns:140px minmax(0,1fr)}
.paper-filters:has([data-p1-field="year"]) label:has([data-p1-field="paper"]){order:-1}
.paper-filters label:has([data-p1-field="year"]),.paper-filters label:has([data-p1-field="chapterKey"]){width:100%;min-width:0;max-width:none}
@media(max-width:700px){.paper-filters:has([data-p1-field="year"]){grid-template-columns:90px minmax(0,1fr)}}

.paper-filters:has([data-p1-field="year"]),.paper-filters:has([data-p1-field="chapterKey"]){grid-template-columns:160px minmax(0,1fr)}
.paper-filters select[data-p1-field="paper"]{appearance:none;-webkit-appearance:none;padding-right:32px;padding-left:12px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2324477b' stroke-width='1.6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:12px 8px}
@media(max-width:700px){.paper-filters:has([data-p1-field="year"]),.paper-filters:has([data-p1-field="chapterKey"]){grid-template-columns:108px minmax(0,1fr)}}

.p1-state-choice{width:100%;border-collapse:collapse;table-layout:fixed;font:inherit;text-align:center;margin:0}
.p1-state-choice th,.p1-state-choice td{padding:7px 5px;border:1px solid #dce5f0;font-size:inherit;line-height:1.4;text-align:center;overflow-wrap:normal}
.p1-state-choice th{background:#eef3fa;font-weight:600}.p1-state-choice td{font-weight:400}
.p1-choices button:has(.p1-state-choice){align-items:center;margin-bottom:10px}.p1-choice-copy:has(.p1-state-choice){flex:1;min-width:0}

/* Consistent horizontal room for every single-select arrow; preserve vertical sizing. */
select:not([multiple]):not([size]){appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box;padding-left:12px!important;padding-right:36px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2324477b' stroke-width='1.6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:12px 8px!important}

#paper-library .paper-filters select{padding-top:5px!important;padding-bottom:5px!important;min-height:0!important;height:auto!important;line-height:1.35}

.home-class-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important}.home-class-actions .home-class-link{gap:6px;justify-content:flex-start;white-space:nowrap;min-width:0}.class-link-short{display:none}@media(max-width:700px){.home-class-actions .class-link-full{display:none}.home-class-actions .class-link-short{display:inline}}

.feedback-viewport{display:flex;align-items:center;justify-content:center}.feedback-carousel .feedback-viewport img{width:100%;height:100%;object-fit:cover;object-position:center;margin:auto}.feedback-carousel .feedback-viewport:hover img,.feedback-carousel .feedback-viewport:focus img{object-fit:contain}@media(hover:none){.feedback-carousel .feedback-viewport img{object-fit:contain}}

/* Compact Overview, branded banners, and overlay readers. */
.chemistry-banner{isolation:isolate}.chemistry-card-watermark{position:absolute;right:-40px;bottom:-40px;width:310px;height:310px;object-fit:contain;opacity:.1;z-index:0;pointer-events:none}.chemistry-banner>.eyebrow,.chemistry-banner>p{position:relative;z-index:1}
.physics-ribbon{position:absolute;z-index:2;display:flex;flex-direction:column;text-align:center;background:#315782;color:white;padding:5px 17px;font-size:11px;font-weight:700;line-height:1.35;pointer-events:none;box-shadow:0 2px 6px #24477b15}.physics-ribbon small{font-size:10px;font-weight:400}.physics-ribbon-top{top:13px;left:13px;transform:rotate(-10deg)}.physics-ribbon-bottom{bottom:13px;right:13px;transform:rotate(-10deg)}.home-physics-slide{padding-top:74px;padding-bottom:62px}
.ref-home-cards .card{display:flex!important;flex-direction:row!important;align-items:center;justify-content:flex-start;gap:12px;padding:14px 16px!important;min-height:0!important;text-align:left}.ref-home-cards .card>.icon{flex:none;font-size:28px;margin:0!important}.ref-home-cards .card{flex-wrap:wrap}.ref-home-cards .card>strong{flex:1;min-width:0}.ref-home-cards .home-card-chinese{flex-basis:calc(100% - 42px);margin-left:42px;margin-top:-8px}.home-class-card{padding-block:20px!important}.home-class-stats{margin-block:10px!important}.home-class-actions{margin-top:14px!important}
.material-reader-dialog{position:fixed;bottom:auto;left:4vw;right:4vw;width:92vw;max-width:1300px;max-height:none;margin:0 auto;padding:0;border:1px solid #ccd9e9;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 16px 70px #0b23474d}.material-reader-dialog[open]{display:flex;flex-direction:column}.material-reader-dialog::backdrop{background:#132d4b55}.material-reader-toolbar{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#eef3fa;flex:none}.material-reader-toolbar select{flex:1;min-width:0;padding-block:5px}.material-reader-close{border:0;background:transparent;font-size:30px;color:#24477b;line-height:1;width:38px;height:38px}.material-reader-dialog iframe{width:100%;height:100%;flex:1;min-height:0;border:0}
.feedback-viewport{touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:pointer}.feedback-viewport img{pointer-events:none}.feedback-carousel .feedback-viewport:hover img,.feedback-carousel .feedback-viewport:focus img{object-fit:cover}
.feedback-zoom-dialog{position:fixed;inset:3vh 3vw;margin:auto;width:94vw;height:94dvh;max-width:1100px;max-height:94dvh;border:0;border-radius:12px;padding:42px 0 0;background:#f4f7fb;overflow:hidden}.feedback-zoom-dialog::backdrop{background:#10213bd9}.feedback-zoom-dialog>button{position:absolute;right:10px;top:3px;z-index:2;border:0;background:transparent;font-size:32px;color:#24477b}.feedback-zoom-scroll{overflow:auto;height:100%;width:100%;overscroll-behavior:contain}.feedback-zoom-scroll img{display:block;width:150%;max-width:none;height:auto;margin:0}
.paper-filters:has([data-p1-field="year"]),.paper-filters:has([data-p1-field="chapterKey"]){grid-template-columns:210px minmax(0,1fr)}
@media(max-width:700px){.ref-home-cards .card{padding:10px 12px!important;gap:9px}.ref-home-cards .card>.icon{font-size:23px}.ref-home-cards .home-card-chinese{margin-left:32px;flex-basis:calc(100% - 32px)}.home-class-card{padding-block:16px!important}.paper-filters:has([data-p1-field="year"]),.paper-filters:has([data-p1-field="chapterKey"]){grid-template-columns:148px minmax(0,1fr)}.physics-ribbon{font-size:9px;padding:4px 10px}.physics-ribbon small{font-size:9px}.physics-ribbon-top{left:9px;top:12px}.physics-ribbon-bottom{right:8px;bottom:10px}.home-physics-slide{padding-top:66px;padding-bottom:65px}.material-reader-dialog{left:2vw;right:2vw;width:96vw}.chemistry-card-watermark{width:260px;height:260px;right:-55px;opacity:.11}}

/* Compact corner remarks overlay the card without increasing its height. */
.physics-ribbon{flex-direction:row;align-items:center;gap:6px;white-space:nowrap;padding:3px 9px;font-size:10px;line-height:1.25;opacity:.48;box-shadow:none}
.physics-ribbon small{display:inline;font-size:inherit;font-weight:500;white-space:nowrap}
.home-physics-slide{padding-top:30px;padding-bottom:30px}
@media(max-width:700px){.physics-ribbon{font-size:8px;padding:3px 7px;gap:4px}.physics-ribbon small{font-size:inherit}.home-physics-slide{padding-top:24px;padding-bottom:24px}}

.home-class-grid{gap:10px}.home-class-card{padding:12px 16px!important;gap:3px}.home-class-card h2{margin:0;line-height:1.2}.home-class-stats{margin:4px 0!important;line-height:1.4}.home-class-actions{margin-top:5px!important;gap:10px!important}.home-class-actions .home-class-link{padding:4px 0;line-height:1.3}
@media(max-width:560px){.home-class-grid{gap:8px}.home-class-card{padding:11px 14px!important}}

.owner-member-table{width:100%;border-collapse:collapse;margin:18px 0}.owner-member-table th,.owner-member-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #dce5f0;overflow-wrap:anywhere}.owner-member-table th{background:#eef3fa}.owner-counts{display:flex;gap:20px;flex-wrap:wrap;margin:18px 0}.owner-panel>.primary{display:inline-block;text-decoration:none;margin:12px 0}

.p1-option-image{display:block;width:auto;max-width:100%;height:auto;max-height:340px;object-fit:contain}.p1-choices button:has(.p1-option-image){align-items:center;margin-bottom:12px}.p1-original-options{margin:15px 0}.p1-original-options img{display:block;max-width:100%;width:auto;height:auto;max-height:none}.p1-choices.with-option-table{display:flex;gap:22px;flex-wrap:wrap}.p1-choices.with-option-table button{min-width:44px;min-height:44px}.p1-choices.with-option-table .p1-choice-copy{flex:none}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
