/* Shared official navigation, used by the Next site and course word pages. */
.site-header nav[aria-label="主导航"]{gap:10px;align-items:center}
.site-header nav[aria-label="主导航"] a{padding:9px 10px;border-radius:9px;white-space:nowrap}
.site-header nav a[aria-current="page"],.site-header .mobile-menu a[aria-current="page"]{color:#a40002;background:#f1e2d9;font-weight:700}
.site-header .contact-link{border:0;border-radius:0;background:transparent;padding:10px 0;white-space:nowrap}
.site-header .mobile-menu{border:0;background:transparent;border-radius:0}
.site-header .mobile-menu summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:7px 10px;font:14px "Microsoft YaHei",Arial,sans-serif}
.site-header .mobile-menu summary b{font-size:22px;font-weight:400}
.site-header .mobile-menu>div{top:calc(100% + 8px)}
.site-header .mobile-menu>div>strong{font-size:12px;color:#756d62;padding:9px 12px}
@media(max-width:1100px){.site-header nav[aria-label="主导航"],.site-header .contact-link{display:none}.site-header .mobile-menu{display:block}.site-header .header-inner{height:68px;gap:12px}}
@media(max-width:480px){.site-header .brand-logo{width:40px;height:40px}.site-header .brand b{font-size:14px}.site-header .brand small{font-size:8px;letter-spacing:0}.site-header .mobile-menu summary{padding:8px 0;gap:6px;font-size:12px}.site-header .container.header-inner{width:calc(100% - 28px)}}

/* Same logo, palette and navigation on the buildless word pages. */
.word-brand{--paper:#f7f2e8;--ink:#26352f;--red:#a40002;--muted:#756d62;--line:#ded5c7;--wash:#efe8d9;--serif:"Noto Serif SC","Songti SC",SimSun,serif;--sans:"Noto Sans SC","Microsoft YaHei",Arial,sans-serif;background:var(--paper);font-family:var(--sans);color:#575850}
.word-brand .penny-site-header{position:sticky;top:0;z-index:20;max-width:none;width:100%;padding:0;margin:0;border:0;border-bottom:1px solid #ded5c7;background:rgba(247,242,232,.96);backdrop-filter:blur(14px);display:block}
.word-brand .penny-header-inner{width:min(1120px,calc(100% - 48px));height:72px;margin:auto;display:flex;align-items:center;gap:28px}
.word-brand .penny-brand{display:flex;align-items:center;gap:10px;margin-right:auto;white-space:nowrap;flex-shrink:0}
.word-brand .penny-brand img{width:54px;height:54px;border-radius:50%;object-fit:contain}
.word-brand .penny-brand b{display:block;color:#26352f;font:700 16px/1.5 var(--serif)}
.word-brand .penny-brand small{display:block;margin-top:2px;color:#756d62;font-size:9px;letter-spacing:.055em;line-height:1.5}
.word-brand .penny-site-header .penny-main-nav{display:flex;gap:10px;margin:0;align-items:center;font-size:14px}
.word-brand .penny-main-nav a{padding:9px 10px;border-radius:9px;white-space:nowrap;color:#575850}
.word-brand .penny-main-nav a[aria-current="page"],.word-brand .penny-mobile-menu a[aria-current="page"]{background:#f1e2d9;color:#a40002;font-weight:700}
.word-brand .penny-contact{padding:10px 0;color:#a40002;font-size:14px;font-weight:700;white-space:nowrap}
.word-brand .penny-mobile-menu{display:none;position:relative;margin:0;border:0;padding:0;background:transparent}
.word-brand .penny-mobile-menu summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;min-height:44px;padding:7px 10px;color:#26352f;font-size:14px;white-space:nowrap}
.word-brand .penny-mobile-menu summary::-webkit-details-marker{display:none}
.word-brand .penny-mobile-menu summary b{font-size:22px;font-weight:400}
.word-brand .penny-mobile-menu>div{position:absolute;right:0;top:calc(100% + 8px);width:220px;display:grid;padding:12px;border:1px solid #ded5c7;border-radius:16px;background:#fffdf8;box-shadow:0 18px 50px #32281c24}
.word-brand .penny-mobile-menu>div>strong{font-size:12px;color:#756d62;padding:9px 12px}
.word-brand .penny-mobile-menu a{padding:12px;border-radius:9px;font-size:14px;color:#26352f;line-height:1.5}
.word-brand .penny-site-header a:focus-visible,.word-brand .penny-mobile-menu summary:focus-visible{outline:3px solid #a4000270;outline-offset:3px}
.word-brand main{width:min(1040px,calc(100% - 48px));max-width:1040px;padding:0;margin:auto}
.word-brand .word-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}
.word-brand .site-breadcrumb{padding:0;font-size:14px}
.word-brand .word-tabs{display:flex;gap:8px;margin:0;font-size:14px}
.word-brand .word-tabs a{padding:7px 14px;border-radius:24px;min-height:42px}
.word-brand .word-tabs a.active{color:#a40002;background:#f1e2d9;font-weight:700}
.word-brand .word-return{display:flex;justify-content:space-between;align-items:center;min-height:56px;border-bottom:1px solid var(--line);font-size:15px;color:var(--red)}
.word-brand h2,.word-brand h3,.word-brand .library-intro h1,.word-brand .view-section h1{font-family:var(--serif);color:var(--ink)}
.word-brand .library-intro{padding:38px 0 32px;max-width:790px}
.word-brand .library-intro h1{font-size:38px;line-height:1.5;margin:14px 0 16px}
.word-brand .library-intro>p{font-size:16px;line-height:1.9;color:#756d62}
.word-brand .eyebrow{letter-spacing:.06em;font-size:12px}
.word-brand #searchForm{border-color:var(--line);border-radius:16px;box-shadow:none;margin-top:24px}
.word-brand #searchForm button,.word-brand .listen,.word-brand .primary{border-radius:28px;background:var(--red)}
.word-brand .word-card,.word-brand .course-card,.word-brand .saved-sentence,.word-brand .example,.word-brand .quiz{border:1px solid var(--line);border-radius:20px;background:#fffcf6}
.word-brand .word-title{color:var(--ink)}
.word-brand .card-tags span{border-radius:20px;background:#efe8d9;color:#675d51}
.word-brand .filter.selected{background:#f1e2d9;border-color:#cda59a;color:#a40002}
.word-brand .outline,.word-brand .inline-audio-options button{border-radius:24px}
.word-brand .review-section,.word-brand .library-note,.word-brand .review-card{border-radius:20px;background:#efe8d9}
.word-brand .word-site-footer{display:flex;align-items:center;gap:24px;max-width:1040px;width:calc(100% - 48px);margin:35px auto 0;padding:28px 0 40px;border-top:1px solid var(--line);font-size:14px;color:#756d62}
.word-brand .word-site-footer>div{margin-right:auto;font-family:var(--serif);font-size:18px;color:var(--ink)}
.word-brand .word-site-footer small{display:block;font:12px/1.8 var(--sans);color:#756d62;margin-top:5px}
.word-brand .word-site-footer>a{color:var(--red);white-space:nowrap}
@media(max-width:1100px){.word-brand .penny-site-header .penny-main-nav,.word-brand .penny-contact{display:none}.word-brand .penny-mobile-menu{display:block}.word-brand .penny-header-inner{height:68px;gap:12px}}
@media(max-width:780px){.word-brand .word-toolbar{padding:16px 0}.word-brand .word-tabs{display:none}.word-brand .library-intro{padding-top:24px}.word-brand .library-intro h1{font-size:29px}.word-brand .library-intro>p{font-size:16px}.word-brand .library-stats{font-size:12px}.word-brand #search{font-size:16px}.word-brand .word-card{padding:22px}.word-brand .word-card>p{font-size:15px}.word-brand .filter{font-size:14px;min-height:44px}.word-brand .mobile-nav a span{font-size:14px}.word-brand .word-site-footer{flex-wrap:wrap;gap:14px;padding-bottom:110px}.word-brand .word-site-footer>div{width:100%;font-size:17px}.word-brand .site-breadcrumb{font-size:13px}.word-brand .example{border-radius:16px}.word-brand .word-return{min-height:48px}}
@media(max-width:480px){.word-brand .penny-header-inner{width:calc(100% - 28px);gap:10px}.word-brand .penny-brand{gap:8px}.word-brand .penny-brand img{width:40px;height:40px}.word-brand .penny-brand b{font-size:14px}.word-brand .penny-brand small{font-size:8px;letter-spacing:0}.word-brand .penny-mobile-menu summary{padding:8px 0;gap:6px;font-size:12px}.word-brand main{width:calc(100% - 32px)}.word-brand .word-site-footer{width:calc(100% - 32px)}}

/* Local mobile review refinement, shared with the official site. */
.daily-return-bar{padding-top:12px;padding-bottom:0}.daily-return-button{display:inline-flex;align-items:center;min-height:44px;padding:7px 13px;border:1px solid #d9cbbb;border-radius:10px;background:#fffcf6;color:#a40002!important;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
.word-brand .daily-return-button{line-height:1.5}.word-brand .word-return{padding:7px 0;min-height:58px}.word-brand.library-page .word-toolbar{padding:7px 0}
.word-brand.detail-page .hero{display:block;padding:18px 0}.word-brand.detail-page .hero>div{position:relative}.word-brand.detail-page .hero h1{font-size:58px;letter-spacing:-2px;margin:0 0 4px}.word-brand.detail-page .hero h1 span{font-size:18px;letter-spacing:0}.word-brand.detail-page .hero .lead{font-size:18px;margin:4px 0;padding-right:150px}.word-brand.detail-page .hero .subtle{display:none}.word-brand.detail-page .hero-actions{position:absolute;right:0;top:10px;bottom:auto;margin:0}
.word-brand.detail-page #learn{padding-top:18px}.word-brand.detail-page .section-heading h2{font-size:21px;margin:0}.word-brand.detail-page .section-heading{margin-bottom:12px}
.word-brand.detail-page .learning-layout{display:grid;grid-template-columns:1fr;gap:16px}.word-brand.detail-page .usage-picker{background:none;border:0;margin:0;padding:0}
.word-brand.detail-page .example-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0}
.word-brand.detail-page .example-nav button{border:1px solid #ded5c7;background:#fffcf6;border-radius:12px;padding:10px 12px;min-height:64px;gap:9px;line-height:1.4}
.word-brand.detail-page .example-nav button.active{background:#f5e5de;border:2px solid #a40002;padding:9px 11px;color:#a40002}
.word-brand.detail-page .nav-num{font:600 14px/1.5 var(--sans);color:inherit;min-width:16px}.word-brand.detail-page .nav-title{font-size:16px}.word-brand.detail-page .nav-title small{font-size:12px;line-height:1.5;margin-top:3px}.word-brand.detail-page .example{scroll-margin-top:82px;min-height:0}
.word-brand.detail-page .course-footer{padding:26px 0 12px}.word-brand.detail-page .course-footer h2{font-size:22px;margin:0 0 14px}.course-source-list{list-style:none;padding:0;margin:0;border-top:1px solid #ded5c7}.course-source-list li{display:grid;grid-template-columns:75px minmax(0,1fr);gap:12px;padding:12px 2px;border-bottom:1px solid #ded5c7;align-items:baseline}.course-source-list span{font-size:14px;color:#756d62}.course-source-list b{font-size:16px;font-weight:400;color:#26352f}
@media(max-width:780px){
 .site-header .header-inner,.word-brand .penny-header-inner{height:56px}.site-header .brand small,.word-brand .penny-brand small{display:none}.site-header .mobile-menu summary span,.word-brand .penny-mobile-menu summary span{display:none}.site-header .mobile-menu summary,.word-brand .penny-mobile-menu summary{justify-content:center;width:44px;min-height:44px;padding:0}.site-header .mobile-menu summary b,.word-brand .penny-mobile-menu summary b{font-size:24px}
 .site-header .brand-logo,.word-brand .penny-brand img{width:36px;height:36px}.site-header .brand b,.word-brand .penny-brand b{font-size:14px}
 .word-brand.detail-page .hero{padding:14px 0}.word-brand.detail-page .hero h1{font-size:43px}.word-brand.detail-page .hero h1 span{font-size:16px;margin-left:14px}.word-brand.detail-page .hero .lead{font-size:16px;margin:4px 0;padding-right:0}.word-brand.detail-page .hero-actions{top:4px}.word-brand.detail-page #saveWord{font-size:13px;min-height:44px;padding:7px 10px}
 .word-brand.detail-page .example-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.word-brand.detail-page .nav-title{font-size:16px}.word-brand.detail-page .example-nav button{padding:10px;gap:7px;min-height:64px}.word-brand.detail-page .example-nav button.active{padding:9px}.word-brand.detail-page .nav-title small{font-size:12px}.word-brand.detail-page .section-heading h2{font-size:19px}.word-brand.detail-page .learning-layout{gap:14px}.word-brand.detail-page .example{scroll-margin-top:68px}.word-brand.detail-page .usage-title{font-size:23px}
 .word-brand.detail-page .course-footer h2{font-size:20px}.course-source-list li{padding:12px 0}.word-brand .word-site-footer{margin-top:24px}.daily-return-bar{padding-top:8px}
}

@media(max-width:780px){
 .word-brand.detail-page .hero .lead{padding-right:0}
 .word-brand.detail-page .example-top{min-height:24px;margin-bottom:8px}
}

/* Always reachable usage menu; native dialog manages focus and Escape. */
.word-brand.detail-page .sentence-stepper #openUsageDialog{background:#fff9f1;color:#a40002;border:1px solid #d9cbbb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;line-height:1.3;min-width:92px;padding:5px 10px}
#openUsageDialog b{font-size:15px;font-weight:600}#openUsageDialog #sentenceCount{font-size:12px;color:#756d62;line-height:1.5}
.usage-dialog{box-sizing:border-box;width:min(480px,calc(100% - 24px));max-height:82dvh;margin:auto;padding:18px;border:1px solid #ded5c7;border-radius:18px;background:#fffcf6;color:#26352f;overflow:auto;overscroll-behavior:contain}
.usage-dialog::backdrop{background:#15211bcc}.usage-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.usage-dialog-top h2{font-size:22px;margin:0}.usage-dialog-top button{border:1px solid #ded5c7;border-radius:8px;background:#fffdf8;padding:8px 12px;min-height:44px;font-size:15px;color:#61574d}
.usage-dialog-options{display:grid;gap:8px}.usage-dialog-options button{width:100%;display:flex;align-items:center;gap:12px;border:1px solid #ded5c7;border-radius:10px;background:#fffdf8;padding:11px 14px;text-align:left;min-height:62px;color:#26352f;font:16px/1.4 var(--sans)}
.usage-dialog-options button.selected{border:2px solid #a40002;padding:10px 13px;background:#f5e5de;color:#a40002}.usage-option-number{width:20px;text-align:center;font-weight:600;flex-shrink:0}.usage-dialog-options b{font-weight:600}.usage-dialog-options small{display:block;font-size:13px;color:#756d62;margin-top:3px}
body:has(.usage-dialog[open]){overflow:hidden}
@media(max-width:780px){
 .word-brand.detail-page .sentence-stepper{display:grid;grid-template-columns:minmax(0,1fr) 100px minmax(0,1fr);gap:10px;padding:8px 14px calc(8px + env(safe-area-inset-bottom));z-index:25}
 .word-brand.detail-page .sentence-stepper button{font-size:16px;min-height:48px;max-width:none;padding:8px;border-radius:10px}
 .word-brand.detail-page .sentence-stepper #openUsageDialog{min-height:48px;padding:4px 8px}
 .usage-dialog{margin:auto 0 0;width:100%;max-width:none;max-height:85dvh;border-radius:18px 18px 0 0;padding:18px 16px calc(20px + env(safe-area-inset-bottom))}
}

/* On phones, the fixed usage menu is the single navigation entry. */
@media(max-width:780px){
 .word-brand.detail-page #learn>.section-heading,
 .word-brand.detail-page .learning-layout>aside{display:none}
}
