@charset "UTF-8";
:root{--paper:#f6f0e5;--sheet:#fcf9f2;--red:#b74432;--ink:#243d35;--gold:#b7955c;--muted:#59635b;--line:#dbd7c9;--serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;--sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--hanzi:"Kaiti SC",STKaiti,KaiTi,"Songti SC",serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.7 var(--sans);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.55}img{display:block;max-width:100%}p,h1,h2,h3{margin:0}p+p{margin-top:16px}h1,h2,h3{font-family:var(--serif);font-weight:500;line-height:1.12;letter-spacing:-.035em}em{font-weight:400;color:var(--red)}h2{font-size:48px}h3{font-size:29px}.container{width:min(1280px,calc(100% - 96px));margin-inline:auto}.section-pad{padding-block:96px}.eyebrow{font:500 11px/1.6 var(--sans);letter-spacing:.16em;text-transform:uppercase}.tiny-rule{display:inline-block;width:28px;height:1px;background:var(--red);vertical-align:middle;margin-right:10px}.muted{color:var(--muted)}.red{color:var(--red)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;z-index:1000;top:-70px;left:16px;padding:12px 20px;background:var(--ink);color:white}.skip-link:focus{top:12px}:focus-visible{outline:3px solid var(--red);outline-offset:5px}[hidden]{display:none!important}
.site-header{position:relative;z-index:20;border-bottom:1px solid var(--line);background:var(--paper)}.nav-shell{height:88px;display:flex;align-items:center;gap:30px}.brand{display:inline-flex;align-items:center;gap:10px;flex-shrink:0;font:600 28px/1 var(--serif);letter-spacing:-1.1px}.brand img{width:38px;height:38px}.desktop-nav{display:flex;align-items:center;gap:26px;margin-left:auto;font-size:12px;font-weight:500;white-space:nowrap}.nav-group{position:relative}.nav-group>summary{list-style:none;cursor:pointer;padding:20px 0}.nav-group>summary::-webkit-details-marker{display:none}.nav-group>summary:after{content:"⌄";margin-left:6px;font-size:13px}.nav-menu{position:absolute;top:54px;left:-20px;min-width:240px;border:1px solid var(--line);padding:10px;background:var(--sheet);box-shadow:0 16px 30px #243d3510;border-radius:8px}.nav-menu a{display:block;padding:10px;border-radius:4px}.nav-menu a:hover{background:var(--paper)}.desktop-nav>a:hover,.nav-group>summary:hover{color:var(--red)}.nav-actions{display:flex;align-items:center;gap:17px;white-space:nowrap;font-size:12px}.nav-actions .button{font-size:12px;padding:11px 15px;min-height:42px}.plain-button{border:0;background:none;padding:8px 0}.language-link{padding-left:15px;border-left:1px solid var(--line)}.menu-toggle{display:none;margin-left:auto;background:none;border:1px solid var(--line);border-radius:5px;padding:8px 13px}.mobile-menu{padding:12px 24px 24px;background:var(--sheet);border-top:1px solid var(--line)}.mobile-menu a,.mobile-menu button{display:block;padding:12px 0;border:0;background:none;width:100%;text-align:left}.mobile-menu .button{padding:12px 18px;color:white;text-align:center}
.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:49px;border:1px solid var(--red);background:var(--red);color:var(--sheet);border-radius:5px;padding:12px 22px;font-weight:500;font-size:13px;line-height:1.5;transition:background .2s,transform .2s}.button:hover{background:#993626;border-color:#993626;transform:translateY(-1px)}.button-outline{background:transparent;border-color:#aaa99b;color:var(--ink)}.button-outline:hover{background:#eae4d8;border-color:var(--ink)}.button-green{background:var(--ink);border-color:var(--ink)}.button-green:hover{background:#345047;border-color:#345047}.button-cream{background:var(--paper);border-color:var(--paper);color:var(--ink)}.button-cream:hover{background:white;border-color:white}.actions{display:flex;gap:14px;flex-wrap:wrap}.text-link{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;font-weight:500;font-size:13px;border-bottom:1px solid #a8aea1;padding-bottom:6px}.text-link:hover{color:var(--red);border-color:var(--red)}.text-link span{font-size:18px}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;margin-bottom:44px}.section-heading .eyebrow{margin-bottom:15px;color:#707567}.section-heading>p{color:var(--muted);font-size:14px;margin-bottom:4px}
.hero{display:grid;grid-template-columns:1.18fr 1fr;gap:44px;padding-top:64px;padding-bottom:79px;align-items:center}.hero h1{font-size:66px;line-height:1.05;margin:23px 0 22px;letter-spacing:-.048em}.hero h1 em{display:inline-block}.hero-promise{font-family:var(--serif);font-size:23px;line-height:1.35}.hero-description{color:#61695f;font-size:14px;line-height:1.8;max-width:490px;margin:20px 0 27px}.hero-search{max-width:468px;margin-top:25px}.search-form{display:flex;align-items:center;gap:12px;background:var(--sheet);border:1px solid var(--line);border-radius:5px;padding:7px 8px 7px 15px}.search-form svg{width:19px;height:19px;stroke:var(--muted);fill:none;stroke-width:1.5;flex-shrink:0}.search-form input{width:100%;min-width:0;border:0;background:none;padding:7px 0;color:var(--ink);font-size:12px}.search-form input:focus{outline:0}.search-form:focus-within{outline:2px solid var(--red);outline-offset:3px}.search-form button{border:0;background:none;font-size:20px;width:32px}.hero-art{display:flex;flex-direction:column;align-items:center;position:relative;padding-top:30px}.art-note{position:absolute;right:8px;top:-14px;transform:rotate(6deg);font:italic 16px/1.25 var(--serif);color:var(--muted);text-align:center}.hero-card{height:442px;width:100%;max-width:440px;perspective:1400px;background:none;border:0;padding:0;transform:rotate(3deg);text-align:left}.hero-card-inner{display:block;position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.2,.7,.2,1)}.hero-card.is-flipped .hero-card-inner{transform:rotateY(180deg)}.card-face{display:block;position:absolute;inset:0;overflow:hidden;border:1px solid #d9d1bf;border-radius:12px;background:var(--sheet);backface-visibility:hidden;box-shadow:9px 18px 40px #243d3514}.card-front:after{content:"";position:absolute;inset:10px;border:1px solid #cdbf9d66;border-radius:6px;pointer-events:none}.rest-illustration{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:65% 50%;mix-blend-mode:multiply}.hero-hanzi{position:absolute;top:24px;left:30px;font:124px/1 var(--hanzi);color:var(--red)}.hero-pinyin{position:absolute;left:43px;top:156px;font:19px var(--serif);letter-spacing:.04em}.hero-pinyin span{margin:0 5px}.flip-hint{position:absolute;bottom:19px;left:0;width:100%;text-align:center;font-size:11px;letter-spacing:.05em}.card-front .flip-hint{background:#fcf9f2dd;left:50%;transform:translateX(-50%);width:auto;white-space:nowrap;padding:4px 13px;border-radius:20px}.flip-hint>span{margin-right:6px}.card-back{transform:rotateY(180deg);text-align:center;padding:30px 24px}.card-back>.eyebrow{font-size:10px}.back-hanzi{display:block;font:70px/1.1 var(--hanzi);margin-top:11px;color:var(--red)}.back-meaning{font:18px var(--serif)}.component-equation{display:flex;justify-content:center;align-items:center;gap:24px;margin:15px 0;font:43px/1.2 var(--hanzi)}.component-equation small{display:block;font:11px var(--sans);margin-top:4px}.component-equation b{font:18px var(--serif);color:var(--gold)}.memory-note{display:block;font-size:12px;color:var(--muted)}.example-zh{display:block;margin-top:17px;font:21px var(--hanzi)}.example-en{display:block;font:italic 14px var(--serif);margin-top:4px}.art-link{margin-top:32px;font-size:12px}
.goals{padding-bottom:90px;border-top:1px solid var(--line);padding-top:38px}.goal-heading h2{font-size:39px}.goal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.goal-card{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#faf6ee;transition:transform .2s}.goal-card:hover{transform:translateY(-3px)}.audience-image{background-image:url("/site-assets/audiences.hf03-v1.jpg");background-repeat:no-repeat;background-size:300% auto;background-position-y:56%}.family{background-position-x:0}.travel{background-position-x:50%}.academic{background-position-x:100%}.goal-image{display:block;height:215px;border-bottom:1px solid #e4dfd4}.goal-copy{padding:26px 25px 23px}.card-kicker{font-size:9px;letter-spacing:.16em;color:#757667}.goal-copy h3{font-size:28px;margin-top:12px}.goal-copy>p{font-size:13px;color:var(--muted);margin:14px 0 17px;min-height:67px}.tags{display:flex;gap:7px;flex-wrap:wrap}.tags a,.chip{padding:4px 9px;border:1px solid #d9d5c7;border-radius:4px;font-size:10px;line-height:1.7}.tags a:hover,.chip:hover{border-color:var(--red);color:var(--red)}.goal-copy .text-link{margin-top:24px;width:100%;font-size:12px}
.why-section{background:#eee9de;border-block:1px solid #e4dfd3}.why-section .section-heading{margin-bottom:70px}.feature-row{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:100px;max-width:1060px;margin:0 auto 74px}.feature-row:last-child{margin-bottom:0}.feature-row.reversed{grid-template-columns:1fr 1.1fr}.feature-row.reversed .feature-copy{grid-column:1;grid-row:1}.feature-row.reversed>.mini-review{grid-column:2;grid-row:1}.feature-number{font:italic 18px var(--serif);color:var(--gold);display:block;margin-bottom:14px}.feature-copy h3{font-size:39px}.feature-copy p{font-size:14px;color:var(--muted);margin:20px 0 24px;max-width:380px}.character-study,.mini-review,.scenario-demo{padding:31px 34px;background:var(--sheet);border:1px solid #d5d0c3;border-radius:8px;box-shadow:0 10px 26px #243d3505}.study-label{font-size:9px;letter-spacing:.16em;color:var(--muted)}.study-equation{display:flex;gap:21px;align-items:center;justify-content:center;margin:31px 0 35px;font:60px/1 var(--hanzi)}.study-equation b{font:20px var(--serif);color:var(--gold)}.study-equation small{font:12px var(--sans);display:block;text-align:center;color:var(--muted);margin-top:14px}.study-bottom{display:flex;align-items:center;gap:17px;border-top:1px solid var(--line);padding-top:22px}.mini-seal,.small-seal{display:inline-flex;align-items:center;justify-content:center;width:33px;height:33px;border:1px solid var(--red);font:26px var(--hanzi);color:var(--red);border-radius:3px}.study-bottom p{font:italic 16px/1.5 var(--serif)}.review-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px}.review-top .eyebrow{font-size:9px}.mini-card{display:block;width:100%;border:0;background:none;min-height:160px;padding:10px}.mini-card>span{font:85px var(--hanzi);display:block}.mini-card small{display:block;font-size:11px;color:var(--muted)}.review-actions{display:flex;gap:10px}.review-actions .button{flex:1;min-height:39px;font-size:11px;padding:10px}.review-feedback{color:var(--muted);font-size:10px;text-align:center;margin-top:13px;min-height:17px}.scenario-meta{display:flex;justify-content:space-between;align-items:center}.scenario-meta .eyebrow{font-size:10px}.scenario-sentence{font:34px/1.5 var(--hanzi);margin:27px 0 5px;white-space:nowrap}.scenario-sentence button{font:inherit;border:0;border-bottom:1px solid var(--red);padding:0 2px;background:transparent;color:var(--red)}.scenario-pinyin{font-size:12px;color:var(--muted)}.scenario-translation{font:italic 18px var(--serif);margin-top:8px}.word-reveal{display:flex;align-items:center;gap:16px;background:#f0ecdf;border:1px solid #e0dac8;margin-top:29px;padding:16px;border-radius:5px;min-height:89px}.word-char{font:42px var(--hanzi);color:var(--red)}.word-reveal strong{font-size:12px;font-weight:500}.word-reveal p{font-size:10px;color:var(--muted);margin-top:4px}.word-reveal>a{margin-left:auto;font-size:24px}
.name-feature{display:grid;grid-template-columns:1.1fr 1fr;background:var(--ink);color:var(--paper);border-radius:9px;overflow:hidden}.name-copy{padding:48px 56px}.name-copy .eyebrow{color:#d2c5a9}.demo-label{font-size:8px;letter-spacing:.07em;margin-left:8px;border:1px solid currentColor;border-radius:2px;padding:2px 5px;vertical-align:middle}.name-copy h3{font-size:47px;margin:20px 0 18px}.name-copy h3 em{color:#dbc799}.name-copy>p{font-size:13px;color:#d1d6c9;max-width:350px}.name-form{display:grid;grid-template-columns:1fr 1fr;gap:14px 12px;margin-top:25px}.name-form label{display:block;font-size:10px;margin-bottom:5px}.name-form label span{opacity:.65}.name-form input,.name-form select{width:100%;border:1px solid #889081;border-radius:4px;background:#f6f0e50b;color:var(--paper);padding:10px;font-size:12px;height:42px}.name-form input::placeholder{color:#c0c6b6}.name-form option{color:var(--ink);background:var(--paper)}.name-form .button{grid-column:1/-1;justify-self:start;min-height:42px;font-size:12px}.name-note{font-size:9px;display:block;margin-top:15px;color:#c0c8b9}.name-art{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;border-left:1px solid #bbc4b32b}.name-stamp{color:#d2b88c;border:1px solid #d2b88c;padding:3px 7px;writing-mode:vertical-rl;align-self:flex-end;font:20px var(--hanzi);position:absolute;right:36px;top:36px;border-radius:3px}.name-characters{display:flex;gap:14px}.name-characters>span{display:inline-flex;align-items:center;justify-content:center;width:91px;height:113px;border-block:1px solid #9cab9340;font:76px var(--hanzi);color:#e5dbbc}.name-art p{font:italic 26px var(--serif);margin-top:24px;letter-spacing:.06em}.name-rule{height:1px;width:37px;background:var(--gold);margin:25px 0}.name-art>small{font:italic 14px var(--serif);color:#bdc9ba}.culture-links{display:grid;grid-template-columns:repeat(3,1fr);margin-top:22px;gap:22px}.culture-links>a{display:flex;gap:15px;align-items:center;padding:25px 0;border-bottom:1px solid var(--line)}.culture-glyph{font:36px var(--hanzi);color:var(--red);flex-shrink:0}.culture-links h3{font:500 14px/1.4 var(--sans);letter-spacing:0}.culture-links p{font-size:11px;color:var(--muted);margin-top:5px}.culture-links a>span:last-child{margin-left:auto;font-size:20px}
.journal-section{background:#eee9de;border-block:1px solid #e1ddd2}.journal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}.journal-image{display:block;aspect-ratio:1.7;border:1px solid #d6d0bd;border-radius:7px;overflow:hidden}.journal-image img{width:100%;height:100%;object-fit:cover}.journal-card .card-kicker{display:block;margin-top:22px}.journal-card h3{font-size:26px;line-height:1.2;margin:11px 0 17px;letter-spacing:-.02em}.journal-card h3 a:hover{color:var(--red)}.character-chips{display:flex;gap:7px;flex-wrap:wrap}.character-chips a{font:23px var(--hanzi);padding:4px 9px;border:1px solid #cbc5b6;border-radius:3px;min-width:37px;text-align:center}.character-chips a:hover{color:var(--red);border-color:var(--red);background:var(--sheet)}.journal-note{margin-top:30px;font-size:11px;color:var(--muted)}.faq-section{display:grid;grid-template-columns:1fr 1.65fr;gap:80px}.faq-intro .eyebrow{margin-bottom:17px}.faq-intro>p:not(.eyebrow){font-size:14px;color:var(--muted);margin:22px 0}.faq-list details{border-top:1px solid #cecdbd;padding:22px 0}.faq-list details:last-child{border-bottom:1px solid #cecdbd}.faq-list summary{font-size:14px;font-weight:500;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:24px;line-height:1.55}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary:after{content:"+";font:24px/1 var(--serif);color:var(--red)}.faq-list details[open] summary:after{content:"−"}.faq-list details p{font-size:13px;color:var(--muted);margin-top:17px}.faq-list details>a{font-size:12px;display:inline-block;color:var(--red);margin-top:13px}
.site-footer{background:#243d35;color:#e5e4d6;padding:55px 0 25px}.footer-top{display:flex;justify-content:space-between;align-items:center;padding-bottom:31px;border-bottom:1px solid #c4cbb22a;margin-bottom:32px}.footer-top>p{font:italic 22px var(--serif);color:#becbb7}.footer-columns{display:grid;grid-template-columns:repeat(4,1fr);gap:30px}.footer-columns h3{font:500 10px var(--sans);letter-spacing:.12em;text-transform:uppercase;color:#d5bc92;margin-bottom:18px}.footer-columns a{display:block;font-size:12px;color:#c8d0c0;margin:9px 0}.footer-columns a:hover{color:white;text-decoration:underline}.footer-base{display:flex;justify-content:space-between;font-size:10px;color:#9fb19e;border-top:1px solid #c4cbb22a;margin-top:38px;padding-top:22px}.account-dialog{max-width:480px;width:calc(100% - 40px);border:1px solid var(--line);padding:45px;background:var(--paper);border-radius:12px;color:var(--ink);box-shadow:0 20px 80px #152f2340}.account-dialog::backdrop{background:#10281fad;backdrop-filter:blur(4px)}.account-dialog h2{font-size:37px;margin:20px 0}.account-dialog p{font-size:13px}.account-dialog .button{margin-top:24px}.icon-button{background:none;border:0;font-size:25px}.dialog-close{position:absolute;top:10px;right:16px}.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:6px;padding:12px 25px;box-shadow:0 8px 25px #0002;z-index:90;max-width:calc(100% - 40px)}
/* Interior pages share the same quiet editorial system. */
.breadcrumbs{display:flex;flex-wrap:wrap;gap:10px;font-size:11px;color:var(--muted);padding-top:30px}.breadcrumbs a:hover{color:var(--red)}.page-intro{padding:48px 0 42px;max-width:810px}.page-intro .eyebrow{color:var(--red);margin-bottom:17px}.page-intro h1{font-size:60px;line-height:1.05}.page-intro>p:not(.eyebrow){color:var(--muted);font-size:16px;max-width:680px;margin-top:21px}.page-intro .actions{margin-top:26px}.page-body{padding-bottom:90px}.preview-note{font-size:12px;color:var(--muted);border-left:2px solid var(--gold);padding:12px 18px;background:#eee8da;margin-bottom:32px}.page-art{height:300px;border-radius:8px;overflow:hidden;margin:10px 0 35px;background-position-y:52%;border:1px solid var(--line)}.section-label{font:500 10px var(--sans);letter-spacing:.14em;text-transform:uppercase;margin:37px 0 20px}.tile-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.tile{border:1px solid var(--line);border-radius:7px;padding:26px;background:var(--sheet);position:relative}.tile h2,.tile h3{font-size:27px;margin-bottom:14px}.tile p{font-size:13px;color:var(--muted)}.tile .text-link{margin-top:25px}.tile .tag{display:inline-block;color:var(--red);font-size:10px;margin-bottom:16px}.tile-glyph{display:block;font:45px var(--hanzi);color:var(--red);margin-bottom:20px}.tile a.cover-link:after{content:"";position:absolute;inset:0}.tile:has(.cover-link):hover{border-color:var(--red)}.char-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:15px}.char-tile{display:flex;flex-direction:column;align-items:center;text-align:center;padding:23px 12px;border:1px solid var(--line);border-radius:6px;background:var(--sheet)}.char-tile>span{font:64px/1.2 var(--hanzi);color:var(--ink)}.char-tile>strong{font:500 13px var(--sans);margin:8px 0 3px;color:var(--red)}.char-tile>small{font-size:11px;color:var(--muted)}.char-tile:hover{border-color:var(--red);transform:translateY(-2px)}.subnav{display:flex;gap:12px;flex-wrap:wrap;margin:25px 0 34px}.subnav a{font-size:12px;padding:8px 14px;border:1px solid var(--line);border-radius:4px}.subnav a[aria-current=page],.subnav a:hover{background:var(--ink);border-color:var(--ink);color:var(--paper)}.inline-search{max-width:600px;margin-bottom:30px}.empty-state{padding:45px;border:1px dashed #bab7a6;border-radius:8px}.empty-state h2{font-size:32px;margin-bottom:14px}.empty-state p{font-size:14px;color:var(--muted)}.character-detail{display:grid;grid-template-columns:1fr 1.2fr;gap:65px;align-items:start}.character-portrait{background:var(--sheet);border:1px solid var(--line);border-radius:9px;text-align:center;overflow:hidden}.character-portrait .big-character{font:190px/1.5 var(--hanzi);color:var(--red);padding:25px;display:block}.character-portrait.has-art{position:relative;min-height:390px}.character-portrait.has-art img{width:100%;height:390px;object-fit:cover}.character-portrait.has-art .big-character{position:absolute;top:0;left:10px;font-size:125px;padding:16px}.character-facts h2{font-size:40px;margin-bottom:16px}.character-facts .pinyin{font:italic 25px var(--serif);color:var(--red)}.character-facts p{font-size:14px;color:var(--muted);margin-top:18px}.example-block{border-top:1px solid var(--line);margin:25px 0;padding-top:23px}.example-block strong{display:block;font:29px var(--hanzi);margin-bottom:10px}.example-block small{color:var(--muted)}.character-facts .actions{margin-top:25px}.practice-area{max-width:680px;margin:auto}.practice-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:18px}.practice-card{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:350px;border:1px solid #d0c7b2;border-radius:12px;width:100%;background:var(--sheet);padding:26px;text-align:center;position:relative;overflow:hidden;box-shadow:0 12px 32px #243d3509}.practice-card .practice-hanzi{font:125px var(--hanzi);color:var(--red);position:relative}.practice-card.has-art .practice-hanzi{align-self:flex-start;margin-left:15px;margin-top:-70px}.practice-card .practice-pinyin{font:24px var(--serif);margin:7px 0}.practice-card .practice-meaning{font-size:15px;max-width:420px;margin-top:12px}.practice-card .practice-hint{font-size:11px;color:var(--muted);margin-top:12px}.practice-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;mix-blend-mode:multiply}.practice-card.has-art .practice-hint{position:absolute;bottom:25px;background:var(--sheet);padding:3px 12px;border-radius:10px}.practice-controls{display:flex;gap:14px;margin-top:22px}.practice-controls>*{flex:1}.practice-instruction{text-align:center;color:var(--muted);font-size:12px;margin:18px 0}.practice-summary{padding:40px;border:1px solid var(--line);border-radius:8px;text-align:center}.practice-summary h2{margin-bottom:20px}.practice-summary .actions{justify-content:center;margin-top:28px}.stroke-panel{max-width:550px;margin:auto;text-align:center}.stroke-grid{background:var(--sheet);width:280px;height:280px;border:1px solid var(--line);margin:0 auto 25px;display:block}.stroke-grid .guide{stroke:#d6cdbb;stroke-width:1;stroke-dasharray:5}.stroke-grid .ghost{stroke:#e4ddcf;stroke-width:9;fill:none;stroke-linecap:round;stroke-linejoin:round}.stroke-grid .stroke{stroke:var(--ink);stroke-width:9;fill:none;stroke-linecap:round;stroke-linejoin:round;opacity:0}.stroke-grid .stroke.active{opacity:1;stroke:var(--red)}.stroke-grid .stroke.done{opacity:1}.stroke-panel .actions{justify-content:center}.stroke-panel p{margin:20px 0;font-size:13px;color:var(--muted)}.content-prose{max-width:720px;margin:auto}.content-prose h2{font-size:32px;margin:38px 0 18px}.content-prose p{color:#5e675c;font-size:15px}.content-prose .lead{font:25px/1.5 var(--serif);color:var(--ink);margin-bottom:28px}.article-art{height:340px;object-fit:cover;width:100%;border-radius:8px;margin-bottom:35px}.article-chars{padding:25px;background:#eee8dc;border:1px solid var(--line);border-radius:7px;margin:32px 0}.article-chars h3{font-size:24px;margin-bottom:18px}.article-chars .text-link{margin-top:20px}.name-workspace{display:grid;grid-template-columns:1fr 1.2fr;gap:34px;align-items:start}.name-form-panel{padding:30px;border:1px solid var(--line);border-radius:8px;background:var(--ink);color:var(--paper)}.name-form-panel h2{font-size:31px}.name-form-panel .name-form{display:block}.name-form-panel .name-form>div{margin-bottom:20px}.name-form-panel p{font-size:12px;margin-top:20px;color:#cbd3c4}.name-result{padding:30px 35px;background:var(--sheet);border:1px solid var(--line);border-radius:8px}.name-result h2{font:76px/1.4 var(--hanzi);color:var(--red);margin:10px 0}.name-result .name-reading{font:24px var(--serif);margin-bottom:20px}.name-result p{font-size:14px;color:var(--muted)}.name-result .character-chips{margin:22px 0}.story-list{display:grid;grid-template-columns:repeat(2,1fr);gap:23px}.story-list .tile-glyph{font-size:40px;letter-spacing:.18em}.search-section h2{font-size:29px;margin-bottom:24px}.search-section{margin:38px 0}.comparison-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:25px}.comparison-grid .tile{display:flex;gap:25px;align-items:center}.comparison-grid .tile-glyph{font-size:72px;margin:0}
@media(min-width:1500px){.hero{padding-top:85px;padding-bottom:100px}.hero h1{font-size:76px}.hero-card{max-width:470px;height:467px}.hero-description{font-size:15px}.goal-image{height:230px}}
@media(max-width:1200px){.container{width:calc(100% - 64px)}.nav-shell{gap:20px}.desktop-nav{gap:17px;font-size:11px}.nav-actions{gap:12px}.nav-actions .button{font-size:10px;padding:10px}.hero{gap:28px}.hero h1{font-size:58px}.hero-card{height:400px}.hero-promise{font-size:21px}.feature-row{gap:65px}.name-copy{padding:40px}.name-characters{gap:7px}.name-characters>span{font-size:65px;width:76px}.goal-copy{padding:23px 20px}.goal-copy h3{font-size:25px}.goal-image{height:195px}}
@media(max-width:1050px){.desktop-nav,.nav-actions{display:none}.menu-toggle{display:block}.nav-shell{height:76px}.hero h1{font-size:53px}.hero .eyebrow{font-size:9px}.hero-card{height:380px}.hero-hanzi{font-size:105px}.hero-pinyin{top:137px}.hero-art{padding-top:25px}.hero-description{font-size:13px}.hero .button{font-size:11px;padding:11px 15px}.hero-promise{font-size:20px}.section-heading h2{font-size:42px}.feature-row{gap:45px}.feature-copy h3{font-size:34px}.character-study,.mini-review,.scenario-demo{padding:26px}.study-equation{gap:13px;font-size:53px}.scenario-sentence{font-size:29px}.name-copy h3{font-size:42px}.name-form{grid-template-columns:1fr}.name-characters>span{width:67px;font-size:58px}.culture-links{gap:25px}.culture-links>a{gap:10px}.culture-links h3{font-size:12px}.culture-links p{font-size:10px}.goal-grid{gap:17px}.goal-copy h3{font-size:24px}.goal-copy>p{font-size:12px;min-height:70px}.goal-image{height:175px}.tags{gap:5px}.tags a{font-size:9px}.goal-copy .text-link{font-size:11px}.char-grid{grid-template-columns:repeat(5,1fr)}.faq-section{gap:45px}.faq-intro h2{font-size:42px}}
@media(max-width:760px){.container{width:calc(100% - 40px)}.section-pad{padding-block:62px}.nav-shell{height:72px}.brand{font-size:27px}.brand img{width:35px;height:35px}.hero{grid-template-columns:1fr;padding-top:40px;gap:35px;padding-bottom:55px}.hero h1{font-size:58px;margin-top:20px;line-height:1.06}.hero .eyebrow{font-size:10px}.hero-promise{font-size:23px}.hero-description{font-size:14px;max-width:580px}.hero .button{font-size:12px;min-height:47px;padding:11px 18px}.hero-search{max-width:none}.hero-art{max-width:430px;margin:25px auto 0;width:92%;padding-top:10px}.hero-card{max-width:420px;height:420px;transform:rotate(2deg)}.art-note{top:-15px;right:0;z-index:1;font-size:13px}.hero-hanzi{font-size:116px}.hero-pinyin{top:150px}.hero-art .art-link{margin-top:25px}.section-heading{align-items:flex-start;gap:20px;margin-bottom:30px}.section-heading>p{font-size:11px;max-width:155px}.section-heading h2{font-size:37px}.goal-heading h2{font-size:34px}.section-heading .eyebrow{font-size:9px;margin-bottom:12px}.goal-grid{grid-template-columns:1fr;gap:20px}.goal-card{display:grid;grid-template-columns:.8fr 1fr}.goal-image{height:100%;min-height:250px;background-size:auto 100%;border-bottom:0;border-right:1px solid var(--line)}.goal-image.family{background-position-x:0}.goal-image.travel{background-position-x:50%}.goal-image.academic{background-position-x:100%}.goal-copy{padding:24px}.goal-copy>p{min-height:auto;margin:12px 0}.goal-copy h3{font-size:26px}.goal-copy .text-link{margin-top:20px}.goals{padding-bottom:60px}.feature-row,.feature-row.reversed{grid-template-columns:1fr;gap:25px;margin-bottom:54px}.feature-row.reversed .feature-copy,.feature-row.reversed>.mini-review{grid-column:auto;grid-row:auto}.feature-copy{order:-1}.feature-copy h3{font-size:34px}.feature-copy h3 br{display:none}.feature-copy p{max-width:none;margin:13px 0 17px}.feature-number{margin-bottom:10px}.why-section .section-heading{margin-bottom:40px}.why-section .section-heading>p{display:none}.feature-row>div:not(.feature-copy){max-width:560px;width:100%;margin:auto}.study-equation{font-size:68px;gap:23px}.scenario-sentence{font-size:34px}.name-feature{grid-template-columns:1fr}.name-copy{padding:33px 28px}.name-copy h3{font-size:42px}.name-copy>p{max-width:470px}.name-form{grid-template-columns:1fr 1fr}.name-art{border-left:0;border-top:1px solid #bbc4b32b;min-height:280px;padding:35px}.name-characters>span{width:75px;font-size:68px;height:88px}.name-art>p{font-size:22px;margin-top:19px}.name-rule{margin:17px 0}.name-stamp{top:25px;right:25px;font-size:16px}.culture-links{grid-template-columns:1fr;gap:0}.culture-links>a{padding:20px 0;gap:20px}.culture-links h3{font-size:14px}.culture-links p{font-size:12px}.culture-glyph{font-size:38px}.journal-grid{grid-template-columns:1fr;gap:36px}.journal-card h3{font-size:28px}.journal-image{aspect-ratio:1.8}.journal-card .card-kicker{margin-top:17px}.journal-section .section-heading{display:block}.journal-section .section-heading .text-link{margin-top:24px}.faq-section{grid-template-columns:1fr;gap:32px}.faq-intro h2{font-size:39px}.faq-intro h2 br{display:none}.faq-intro h2 em:before{content:" "}.faq-intro>p:not(.eyebrow){display:none}.faq-intro .text-link{margin-top:22px}.footer-top{align-items:flex-start;gap:25px;flex-direction:column}.footer-top>p{font-size:20px}.footer-columns{grid-template-columns:1fr 1fr;gap:30px 20px}.footer-columns h3{line-height:1.6}.footer-base{gap:16px;flex-direction:column}.page-intro{padding:35px 0}.page-intro h1{font-size:45px}.page-intro>p:not(.eyebrow){font-size:14px}.page-art{height:230px}.tile-grid{grid-template-columns:1fr}.char-grid{grid-template-columns:repeat(3,1fr);gap:10px}.char-tile{padding:18px 8px}.char-tile>span{font-size:52px}.character-detail{grid-template-columns:1fr;gap:35px}.character-portrait{max-width:450px;width:100%;margin:auto}.page-body{padding-bottom:60px}.story-list{grid-template-columns:1fr}.name-workspace{grid-template-columns:1fr}.name-result h2{font-size:65px}.comparison-grid{grid-template-columns:1fr}.article-art{height:240px}.content-prose .lead{font-size:22px}.practice-card{min-height:320px}.practice-controls .button{font-size:12px;padding:12px}.practice-summary{padding:28px 18px}.practice-summary h2{font-size:35px}.account-dialog{padding:35px}.account-dialog h2{font-size:32px}}
@media(max-width:420px){.hero h1{font-size:49px}.hero-promise{font-size:21px}.hero .actions{gap:9px}.hero .button{padding:11px 13px;gap:12px;font-size:11px}.hero .eyebrow{font-size:8px;letter-spacing:.13em}.hero-card{height:365px}.hero-hanzi{font-size:100px;left:24px}.hero-pinyin{top:132px;left:33px;font-size:17px}.back-hanzi{font-size:57px}.card-back{padding:23px 18px}.component-equation{font-size:34px;margin:12px 0}.example-zh{margin-top:13px;font-size:19px}.card-back .eyebrow{font-size:8px}.memory-note{font-size:10px}.card-back .flip-hint{font-size:10px;bottom:15px}.goal-card{grid-template-columns:1fr}.goal-image{height:190px;min-height:0;background-size:300% auto;border-right:0;border-bottom:1px solid var(--line)}.goal-copy{padding:24px}.goal-copy>p{font-size:13px}.goal-copy h3{font-size:29px}.tags a{font-size:10px}.goal-copy .text-link{font-size:12px}.section-heading>p{display:none}.name-form{grid-template-columns:1fr}.character-study,.mini-review,.scenario-demo{padding:25px 20px}.study-equation{font-size:57px;gap:15px}.scenario-sentence{font-size:29px}.scenario-translation{font-size:17px}.word-reveal{padding:12px;gap:12px}.name-result{padding:25px}.name-result h2{font-size:58px}.hero-search input{font-size:11px}.page-intro h1{font-size:40px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
.sign-in-layout{display:grid;grid-template-columns:1fr 1fr;gap:90px;max-width:1050px;margin:auto}.sign-in-card{padding:40px;border:1px solid var(--line);border-radius:9px;background:var(--sheet)}.sign-in-card h2{font-size:39px;margin:15px 0 12px}.sign-in-card>p{font-size:13px}.account-form-preview{margin-top:28px}.account-form-preview .button{width:100%}.account-form-preview label{display:block;font-size:12px;margin:14px 0 6px}.account-form-preview input{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:4px;background:var(--paper);font-size:13px}.account-form-preview .button:last-child{margin-top:24px}.form-divider{display:flex;gap:12px;align-items:center;font-size:11px;color:var(--muted);margin:22px 0}.form-divider:before,.form-divider:after{content:"";height:1px;background:var(--line);flex:1}.account-preview-note{font-size:11px!important;color:var(--muted);margin:18px 0 22px}.account-benefits{padding-top:20px}.account-benefits>h2{font-size:41px;margin-bottom:30px}.account-benefits>div{position:relative;padding-left:34px;margin:24px 0}.account-benefits>div>span{position:absolute;left:0;top:4px;font:italic 15px var(--serif);color:var(--gold)}.account-benefits h3{font:500 15px var(--sans);letter-spacing:0}.account-benefits p{font-size:13px;color:var(--muted);margin-top:9px}.account-benefits>p{font-size:12px;border-top:1px solid var(--line);padding-top:21px}.learning-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.learning-stats article{padding:27px;border:1px solid var(--line);border-radius:8px;background:var(--sheet)}.learning-stats strong{display:block;font:64px/1.2 var(--serif);color:var(--red);margin:13px 0 6px}.learning-stats small{font-size:12px;color:var(--muted)}.learning-next{display:flex;align-items:center;justify-content:space-between;gap:28px;background:var(--ink);color:var(--paper);padding:35px 40px;border-radius:8px;margin:30px 0 55px}.learning-next h2{font-size:34px;margin:10px 0}.learning-next p{font-size:13px;color:#cdd5c6}.learning-next .eyebrow{color:#d8c6a7;font-size:10px}.learning-next .button{flex-shrink:0;background:var(--paper);border-color:var(--paper);color:var(--ink)}.learning-heading h2,.learning-history h2{font-size:33px}.saved-word-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:15px}.saved-word{padding:22px 12px;background:var(--sheet);border:1px solid var(--line);border-radius:6px;text-align:center}.saved-word>a:first-child{display:flex;flex-direction:column;align-items:center}.saved-word>a>span{font:63px var(--hanzi)}.saved-word strong{font-size:13px;color:var(--red);font-weight:500;margin-top:5px}.saved-word small{font-size:11px;color:var(--muted);margin-top:4px;min-height:36px}.word-status{display:block;font-size:9px;color:#9c442e;background:#f0e3d6;border-radius:3px;padding:4px;margin:10px 0 14px}.word-status.familiar{color:#345441;background:#e5ebdf}.saved-word .text-link{font-size:11px}.learning-history{margin-top:55px}.learning-history h2{margin:15px 0 24px}.session-list{padding:0;list-style:none}.session-list li{display:flex;align-items:center;justify-content:space-between;gap:22px;border-top:1px solid var(--line);padding:22px 0}.session-list li:last-child{border-bottom:1px solid var(--line)}.session-list strong{font-size:14px;font-weight:500;display:block}.session-list small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.session-list p{font-size:12px;color:var(--muted);margin:0}.session-list p span{padding:0 7px}.session-list a{font-size:12px;color:var(--red)}.empty-state .text-link{margin-top:20px}
@media(max-width:1180px){.desktop-nav,.nav-actions{display:none}.menu-toggle{display:block}.nav-shell{height:76px}.sign-in-layout{gap:45px}.saved-word-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:760px){.nav-shell{height:72px}.sign-in-layout{grid-template-columns:1fr;gap:35px}.sign-in-card{padding:28px}.account-benefits{padding:0}.account-benefits>h2{font-size:35px}.learning-stats{grid-template-columns:1fr;gap:12px}.learning-stats article{display:grid;grid-template-columns:1fr auto;align-items:center;padding:20px 23px}.learning-stats strong{grid-column:2;grid-row:1/3;margin:0;font-size:47px}.learning-stats small{grid-column:1}.learning-stats .eyebrow{font-size:10px}.learning-next{flex-direction:column;align-items:flex-start;padding:28px;margin-bottom:38px}.learning-next h2{font-size:31px}.learning-heading{display:block}.learning-heading .text-link{margin-top:19px}.saved-word-grid{grid-template-columns:repeat(3,1fr);gap:9px}.saved-word{padding:17px 9px}.saved-word>a>span{font-size:50px}.saved-word small{font-size:10px}.word-status{font-size:8px}.session-list li{flex-wrap:wrap;gap:10px}.session-list li>div{width:100%}.session-list p{font-size:11px}.learning-heading h2,.learning-history h2{font-size:30px}}
.mobile-nav-group>summary{display:flex;justify-content:space-between;align-items:center;cursor:pointer;list-style:none;padding:12px 0}.mobile-nav-group>summary::-webkit-details-marker{display:none}.mobile-nav-group>summary:after{content:"⌄"}.mobile-nav-group[open]>summary:after{content:"⌃"}.mobile-nav-links{padding:4px 16px;margin-bottom:10px;border-left:2px solid var(--gold);background:var(--paper);border-radius:0 5px 5px 0}.mobile-nav-links a{font-size:13px}.nav-menu a[aria-current=page],.mobile-nav-links a[aria-current=page]{color:var(--red);font-weight:600}
.skip-link{clip-path:inset(50%)}.skip-link:focus{clip-path:none}
@media print{.site-header,.site-footer,.breadcrumbs,.actions,.preview-note,.no-print{display:none!important}body{background:white}.char-grid{grid-template-columns:repeat(3,1fr)}.char-tile{break-inside:avoid;min-height:180px}.container{width:100%}.page-intro{padding:20px 0}.page-intro h1{font-size:36px}}

:where(a,button,input,select,summary,[tabindex]):focus-visible{outline:3px solid #B74432;outline-offset:3px}

/* Dictionary pages inherit the HF-03 paper, ink and cinnabar palette. */
.hf04{padding-top:42px;padding-bottom:70px}.hf04 h1{font-size:clamp(2rem,5vw,3.6rem);margin:16px 0 24px}.hf04 section{scroll-margin-top:110px}.hf04 [hidden]{display:none!important}.hf04 button,.hf04 select,.hf04 input{font:inherit;min-height:44px;padding:9px 13px;border:1px solid #918776;border-radius:6px;background:#fffaf0;color:#263c33;max-width:100%}.hf04 button{cursor:pointer}.hf04 button:disabled{cursor:default;color:#665e52;background:#eee7dc}.hf04 :focus-visible{outline:3px solid #ad392b;outline-offset:3px}.hf04 form{margin:24px 0}.hf04 label{display:block;font-weight:600;margin:8px 0}.hf-search-row{display:flex;gap:10px}.hf-search-row input{flex:1;min-width:0}.hf04 li{margin:9px 0;overflow-wrap:anywhere}.hf04 .large-hanzi{font-size:100px;line-height:1.4;color:#ad392b}.character-hero{display:flex;align-items:center;gap:30px}.reading-information [data-reading-panel]{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.7fr);gap:36px;align-items:start}.character-info{background:#eee8dc;border:1px solid #d1c6b4;padding:24px;border-radius:12px;overflow-wrap:anywhere}.character-info h2{margin-top:0}.character-info dl{margin:0}.character-info dt{font-weight:700;margin-top:15px}.character-info dd{margin:4px 0}.character-info ul{padding-left:18px}.kanji{font-family:'Hiragino Mincho ProN','Yu Mincho','Noto Serif JP',serif;font-size:1.8rem}.reading-controls{margin:20px 0}.reading-controls select{width:100%}.stroke-stage{width:min(100%,280px);height:280px;display:grid;place-items:center;border:1px solid #b2a792;background:linear-gradient(90deg,transparent 49.7%,#ded6c8 50%,transparent 50.3%),linear-gradient(transparent 49.7%,#ded6c8 50%,transparent 50.3%);font-size:130px}.stroke-stage svg{width:100%;height:100%}.stroke-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:18px 0}.stroke-controls label{display:flex;gap:8px;align-items:center}.stroke-static{display:block;width:100%;height:auto}.stroke-panel figure{margin:24px 0}.stroke-panel figcaption{font-size:.9rem}.hf04 .content-prose{max-width:860px}.hf04 .content-prose section{margin:36px 0}.pinyin-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:start}.pinyin-syllable{background:#fffaf0;border:1px solid #c9beaa;border-radius:8px;padding:12px;overflow-wrap:anywhere}.pinyin-syllable summary{cursor:pointer;font-size:1.15rem;min-height:32px}.pinyin-syllable ul{padding-left:18px}.pinyin-syllable p{font-size:.9rem}.pinyin-grid .pinyin-syllable[open]{grid-column:span 2}.comparison{margin:25px 0;padding:20px;background:#eee8dc;border-radius:8px}.audio-unavailable{padding:12px;background:#eee8dc}.hf04 .subnav{flex-wrap:wrap;white-space:normal}.hf04 [data-pinyin-filter]{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.hf04 [data-pinyin-filter] label{width:auto}.hf04 .preview-note{overflow-wrap:anywhere}@media(max-width:700px){.reading-information [data-reading-panel]{grid-template-columns:1fr;gap:16px}.character-hero{gap:16px}.character-info{padding:18px}.pinyin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pinyin-grid .pinyin-syllable[open]{grid-column:1/-1}.hf04 .content-prose{width:100%}.hf04{padding-top:24px}.hf04 .subnav{overflow:visible}.hf04 [data-pinyin-filter]{display:block}.hf04 [data-pinyin-filter] input,.hf04 [data-pinyin-filter] select{width:100%}}@media print{.stroke-controls,.reading-controls,[data-hf-save],.hf04 form{display:none}.pinyin-grid{display:block}.pinyin-syllable{break-inside:avoid}.stroke-static{max-width:100%}}

/* HF-06 local learning */
/* Local learning overview and actions */
.guest-learning{max-width:1100px;padding-bottom:64px;overflow-wrap:anywhere}
.guest-learning .page-intro{padding-bottom:24px}
.guest-learning .learning-note{color:var(--muted);margin-top:16px}
.guest-learning .learning-toolbar{gap:10px;margin-top:20px}
.guest-learning .learning-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;margin:0;padding:10px 17px;border:1px solid #8b9488;border-radius:999px;background:var(--sheet);color:var(--ink);font:500 13px/1.5 var(--sans);text-align:center;text-decoration:none;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.guest-learning .learning-button:hover:not(:disabled){background:#e6ecdf;border-color:var(--ink);transform:translateY(-1px)}
.guest-learning .learning-button:active:not(:disabled){transform:translateY(1px);background:#dce5d5}
.guest-learning .learning-button:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.guest-learning .learning-button:disabled{opacity:.5;cursor:default}
.guest-learning .learning-button-danger{color:#9c3225;border-color:#b96858;background:#fff6ef}
.guest-learning [data-guest-settings],.guest-learning [data-guest-import],.guest-learning .learning-panel{margin-block:24px;padding:26px;border:1px solid var(--line);border-radius:16px;background:var(--sheet)}
.guest-learning h2{font:500 27px/1.2 var(--serif);margin-bottom:14px}
.guest-learning .learning-panel>p,.guest-learning [data-guest-settings]>p,.guest-learning [data-guest-import]>p{color:var(--muted);margin-bottom:18px}
.guest-learning .learning-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:12px}
.guest-learning .learning-stats article{display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:18px;border:1px solid var(--line);border-radius:12px;background:var(--sheet)}
.guest-learning .learning-stats h2{font:500 12px/1.5 var(--sans);letter-spacing:0;margin:0;color:var(--muted)}
.guest-learning .learning-stats strong{font:44px/1.2 var(--serif);margin:12px 0 0}
.guest-learning .learning-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}
.guest-learning .learning-session-list{list-style:none;margin:0;padding:0}
.guest-learning .learning-session-list li{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:18px 0;border-bottom:1px solid var(--line)}
.guest-learning .learning-session-list li:last-child{border-bottom:0;padding-bottom:0}
.guest-learning .learning-session-list li>div:first-child{flex:1 1 220px}
.guest-learning .learning-session-list strong{display:block;font-weight:600}
.guest-learning .learning-session-list small{display:block;color:var(--muted);margin-top:5px;line-height:1.6}
.guest-learning .learning-session-list .learning-actions{margin:0}
.guest-learning .learning-pagination{justify-content:flex-end;color:var(--muted);font-size:13px}
.guest-learning .learning-details{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}
.guest-learning .learning-details summary{cursor:pointer;font-weight:500}
.guest-learning .learning-details p{margin-top:14px}
.guest-learning .learning-details p .learning-button{margin-right:10px}
.guest-learning .learning-settings-form,.guest-learning .learning-import-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;margin-top:20px}
.guest-learning label{display:flex;flex:1 1 200px;flex-direction:column;gap:7px;font-size:13px;font-weight:500;min-width:0}
.guest-learning input,.guest-learning select{width:100%;min-height:44px;max-width:100%;border:1px solid #8b9488;border-radius:8px;padding:9px;background:var(--paper);font:inherit;color:var(--ink)}
.guest-learning input[type=file]{white-space:normal}
.guest-learning [data-guest-status]:not(:empty){padding:14px;border:1px solid var(--line);border-radius:10px;margin-block:20px}
.guest-learning .tile p{white-space:pre-line;margin-bottom:16px}
.guest-learning .tile .learning-button{margin:6px 6px 0 0}
.five-elements-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.five-elements-grid .tile{min-width:0;padding:24px 18px;display:flex;flex-direction:column;align-items:flex-start}
.five-elements-grid h2{font-size:25px;margin-bottom:12px}
.five-elements-grid .tile p{margin:0 0 12px;font-size:13px}
.five-elements-grid .tile>.button{margin-top:auto;padding:10px 14px}
.five-elements-grid .element-example{display:inline-flex;gap:5px;border:1px solid var(--line);border-radius:999px;padding:4px 10px;margin-top:6px}
.five-elements-grid .element-example:hover{background:#e6ecdf;border-color:var(--ink)}
@media(max-width:1000px){.five-elements-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.five-elements-grid .tile{grid-column:span 2}.five-elements-grid .tile:nth-child(4){grid-column:2/span 2}}
@media(max-width:600px){.guest-learning [data-guest-settings],.guest-learning [data-guest-import],.guest-learning .learning-panel{padding:20px}.guest-learning .learning-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.guest-learning .learning-session-list .learning-actions{width:100%}.five-elements-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.five-elements-grid .tile,.five-elements-grid .tile:nth-child(4){grid-column:auto}.five-elements-grid .tile:last-child{grid-column:1/-1;max-width:calc((100% - 16px)/2);width:100%;justify-self:center}}


/* HF07: compact source lists and phrase contexts share the dictionary layout. */
.hf07 { padding-bottom: 4rem; overflow-wrap: anywhere; }
.hf07 form { display:flex; flex-wrap:wrap; gap:1rem; align-items:end; margin:1.5rem 0; }
.hf07 select { max-width:100%; }
.hf07-list { padding-left:1.6rem; }
.hf07-entry { padding:1rem; margin:0 0 .75rem; border:1px solid var(--line,#d5cbbc); border-radius:12px; }
.hf07-entry strong { font-size:1.5rem; }
.hf07-entry p { margin:.5rem 0; }
.hf07-entry small { color:#635a50; }
.hf07-sentence { margin:2rem 0; padding:1.25rem; border:1px solid #d5cbbc; border-radius:12px; scroll-margin-top:6rem; }
.hf07-token { margin:.75rem 0; padding:.75rem; background:#f5efdf; border-radius:8px; scroll-margin-top:6rem; }
.hf07-token summary { font-size:1.2rem; cursor:pointer; }
.hf07 [hidden] { display:none!important; }
nav a[aria-current="page"] { text-decoration:underline; text-underline-offset:.3em; }
@media(max-width:600px) { .hf07 form label { width:100%; } .hf07-entry { padding:.7rem; } }

/* HF-08: answer-first paragraphs, robust wrapping and keyboard landing. */
[data-seo-lead]{max-width:72ch;margin:0 0 24px;font-size:1.05rem;line-height:1.7;overflow-wrap:anywhere}
.hero [data-seo-lead]{font-family:var(--serif);font-size:23px;line-height:1.4}
main:focus{outline:none}.hf04 h1{overflow-wrap:anywhere}.eyebrow{display:block}
.hf04 .character-info dd{min-width:0}.hf04 .reading-information>*{min-width:0}
.hf04 input:focus-visible,.hf04 select:focus-visible{scroll-margin:24px}

.lazy-audience{position:relative;overflow:hidden}.lazy-audience img{position:absolute;width:300%;max-width:none;height:100%;object-fit:cover;object-position:center;left:0;top:0}.lazy-audience.travel img{left:-100%}.lazy-audience.academic img{left:-200%}

.section-heading .eyebrow,.card-kicker{color:#59604f}.feature-number{color:#77603c}

/* The layout container follows usable CSS width, including 200% zoom. */
body{container: hf-layout / inline-size}
@container hf-layout (min-width:1500px){.hero{padding-top:85px;padding-bottom:100px}.hero h1{font-size:76px}.hero-card{max-width:470px;height:467px}.hero-description{font-size:15px}.goal-image{height:230px}}
@container hf-layout (max-width:1200px){.container{width:calc(100% - 64px)}.nav-shell{gap:20px}.desktop-nav{gap:17px;font-size:11px}.nav-actions{gap:12px}.nav-actions .button{font-size:10px;padding:10px}.hero{gap:28px}.hero h1{font-size:58px}.hero-card{height:400px}.hero-promise{font-size:21px}.feature-row{gap:65px}.name-copy{padding:40px}.name-characters{gap:7px}.name-characters>span{font-size:65px;width:76px}.goal-copy{padding:23px 20px}.goal-copy h3{font-size:25px}.goal-image{height:195px}}
@container hf-layout (max-width:1050px){.desktop-nav,.nav-actions{display:none}.menu-toggle{display:block}.nav-shell{height:76px}.hero h1{font-size:53px}.hero .eyebrow{font-size:9px}.hero-card{height:380px}.hero-hanzi{font-size:105px}.hero-pinyin{top:137px}.hero-art{padding-top:25px}.hero-description{font-size:13px}.hero .button{font-size:11px;padding:11px 15px}.hero-promise{font-size:20px}.section-heading h2{font-size:42px}.feature-row{gap:45px}.feature-copy h3{font-size:34px}.character-study,.mini-review,.scenario-demo{padding:26px}.study-equation{gap:13px;font-size:53px}.scenario-sentence{font-size:29px}.name-copy h3{font-size:42px}.name-form{grid-template-columns:1fr}.name-characters>span{width:67px;font-size:58px}.culture-links{gap:25px}.culture-links>a{gap:10px}.culture-links h3{font-size:12px}.culture-links p{font-size:10px}.goal-grid{gap:17px}.goal-copy h3{font-size:24px}.goal-copy>p{font-size:12px;min-height:70px}.goal-image{height:175px}.tags{gap:5px}.tags a{font-size:9px}.goal-copy .text-link{font-size:11px}.char-grid{grid-template-columns:repeat(5,1fr)}.faq-section{gap:45px}.faq-intro h2{font-size:42px}}
@container hf-layout (max-width:760px){.container{width:calc(100% - 40px)}.section-pad{padding-block:62px}.nav-shell{height:72px}.brand{font-size:27px}.brand img{width:35px;height:35px}.hero{grid-template-columns:1fr;padding-top:40px;gap:35px;padding-bottom:55px}.hero h1{font-size:58px;margin-top:20px;line-height:1.06}.hero .eyebrow{font-size:10px}.hero-promise{font-size:23px}.hero-description{font-size:14px;max-width:580px}.hero .button{font-size:12px;min-height:47px;padding:11px 18px}.hero-search{max-width:none}.hero-art{max-width:430px;margin:25px auto 0;width:92%;padding-top:10px}.hero-card{max-width:420px;height:420px;transform:rotate(2deg)}.art-note{top:-15px;right:0;z-index:1;font-size:13px}.hero-hanzi{font-size:116px}.hero-pinyin{top:150px}.hero-art .art-link{margin-top:25px}.section-heading{align-items:flex-start;gap:20px;margin-bottom:30px}.section-heading>p{font-size:11px;max-width:155px}.section-heading h2{font-size:37px}.goal-heading h2{font-size:34px}.section-heading .eyebrow{font-size:9px;margin-bottom:12px}.goal-grid{grid-template-columns:1fr;gap:20px}.goal-card{display:grid;grid-template-columns:.8fr 1fr}.goal-image{height:100%;min-height:250px;background-size:auto 100%;border-bottom:0;border-right:1px solid var(--line)}.goal-image.family{background-position-x:0}.goal-image.travel{background-position-x:50%}.goal-image.academic{background-position-x:100%}.goal-copy{padding:24px}.goal-copy>p{min-height:auto;margin:12px 0}.goal-copy h3{font-size:26px}.goal-copy .text-link{margin-top:20px}.goals{padding-bottom:60px}.feature-row,.feature-row.reversed{grid-template-columns:1fr;gap:25px;margin-bottom:54px}.feature-row.reversed .feature-copy,.feature-row.reversed>.mini-review{grid-column:auto;grid-row:auto}.feature-copy{order:-1}.feature-copy h3{font-size:34px}.feature-copy h3 br{display:none}.feature-copy p{max-width:none;margin:13px 0 17px}.feature-number{margin-bottom:10px}.why-section .section-heading{margin-bottom:40px}.why-section .section-heading>p{display:none}.feature-row>div:not(.feature-copy){max-width:560px;width:100%;margin:auto}.study-equation{font-size:68px;gap:23px}.scenario-sentence{font-size:34px}.name-feature{grid-template-columns:1fr}.name-copy{padding:33px 28px}.name-copy h3{font-size:42px}.name-copy>p{max-width:470px}.name-form{grid-template-columns:1fr 1fr}.name-art{border-left:0;border-top:1px solid #bbc4b32b;min-height:280px;padding:35px}.name-characters>span{width:75px;font-size:68px;height:88px}.name-art>p{font-size:22px;margin-top:19px}.name-rule{margin:17px 0}.name-stamp{top:25px;right:25px;font-size:16px}.culture-links{grid-template-columns:1fr;gap:0}.culture-links>a{padding:20px 0;gap:20px}.culture-links h3{font-size:14px}.culture-links p{font-size:12px}.culture-glyph{font-size:38px}.journal-grid{grid-template-columns:1fr;gap:36px}.journal-card h3{font-size:28px}.journal-image{aspect-ratio:1.8}.journal-card .card-kicker{margin-top:17px}.journal-section .section-heading{display:block}.journal-section .section-heading .text-link{margin-top:24px}.faq-section{grid-template-columns:1fr;gap:32px}.faq-intro h2{font-size:39px}.faq-intro h2 br{display:none}.faq-intro h2 em:before{content:" "}.faq-intro>p:not(.eyebrow){display:none}.faq-intro .text-link{margin-top:22px}.footer-top{align-items:flex-start;gap:25px;flex-direction:column}.footer-top>p{font-size:20px}.footer-columns{grid-template-columns:1fr 1fr;gap:30px 20px}.footer-columns h3{line-height:1.6}.footer-base{gap:16px;flex-direction:column}.page-intro{padding:35px 0}.page-intro h1{font-size:45px}.page-intro>p:not(.eyebrow){font-size:14px}.page-art{height:230px}.tile-grid{grid-template-columns:1fr}.char-grid{grid-template-columns:repeat(3,1fr);gap:10px}.char-tile{padding:18px 8px}.char-tile>span{font-size:52px}.character-detail{grid-template-columns:1fr;gap:35px}.character-portrait{max-width:450px;width:100%;margin:auto}.page-body{padding-bottom:60px}.story-list{grid-template-columns:1fr}.name-workspace{grid-template-columns:1fr}.name-result h2{font-size:65px}.comparison-grid{grid-template-columns:1fr}.article-art{height:240px}.content-prose .lead{font-size:22px}.practice-card{min-height:320px}.practice-controls .button{font-size:12px;padding:12px}.practice-summary{padding:28px 18px}.practice-summary h2{font-size:35px}.account-dialog{padding:35px}.account-dialog h2{font-size:32px}}
@container hf-layout (max-width:420px){.hero h1{font-size:49px}.hero-promise{font-size:21px}.hero .actions{gap:9px}.hero .button{padding:11px 13px;gap:12px;font-size:11px}.hero .eyebrow{font-size:8px;letter-spacing:.13em}.hero-card{height:365px}.hero-hanzi{font-size:100px;left:24px}.hero-pinyin{top:132px;left:33px;font-size:17px}.back-hanzi{font-size:57px}.card-back{padding:23px 18px}.component-equation{font-size:34px;margin:12px 0}.example-zh{margin-top:13px;font-size:19px}.card-back .eyebrow{font-size:8px}.memory-note{font-size:10px}.card-back .flip-hint{font-size:10px;bottom:15px}.goal-card{grid-template-columns:1fr}.goal-image{height:190px;min-height:0;background-size:300% auto;border-right:0;border-bottom:1px solid var(--line)}.goal-copy{padding:24px}.goal-copy>p{font-size:13px}.goal-copy h3{font-size:29px}.tags a{font-size:10px}.goal-copy .text-link{font-size:12px}.section-heading>p{display:none}.name-form{grid-template-columns:1fr}.character-study,.mini-review,.scenario-demo{padding:25px 20px}.study-equation{font-size:57px;gap:15px}.scenario-sentence{font-size:29px}.scenario-translation{font-size:17px}.word-reveal{padding:12px;gap:12px}.name-result{padding:25px}.name-result h2{font-size:58px}.hero-search input{font-size:11px}.page-intro h1{font-size:40px}}
@container hf-layout (max-width:1180px){.desktop-nav,.nav-actions{display:none}.menu-toggle{display:block}.nav-shell{height:76px}.sign-in-layout{gap:45px}.saved-word-grid{grid-template-columns:repeat(4,1fr)}}
@container hf-layout (max-width:760px){.nav-shell{height:72px}.sign-in-layout{grid-template-columns:1fr;gap:35px}.sign-in-card{padding:28px}.account-benefits{padding:0}.account-benefits>h2{font-size:35px}.learning-stats{grid-template-columns:1fr;gap:12px}.learning-stats article{display:grid;grid-template-columns:1fr auto;align-items:center;padding:20px 23px}.learning-stats strong{grid-column:2;grid-row:1/3;margin:0;font-size:47px}.learning-stats small{grid-column:1}.learning-stats .eyebrow{font-size:10px}.learning-next{flex-direction:column;align-items:flex-start;padding:28px;margin-bottom:38px}.learning-next h2{font-size:31px}.learning-heading{display:block}.learning-heading .text-link{margin-top:19px}.saved-word-grid{grid-template-columns:repeat(3,1fr);gap:9px}.saved-word{padding:17px 9px}.saved-word>a>span{font-size:50px}.saved-word small{font-size:10px}.word-status{font-size:8px}.session-list li{flex-wrap:wrap;gap:10px}.session-list li>div{width:100%}.session-list p{font-size:11px}.learning-heading h2,.learning-history h2{font-size:30px}}
@container hf-layout (max-width:700px){.reading-information [data-reading-panel]{grid-template-columns:1fr;gap:16px}.character-hero{gap:16px}.character-info{padding:18px}.pinyin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pinyin-grid .pinyin-syllable[open]{grid-column:1/-1}.hf04 .content-prose{width:100%}.hf04{padding-top:24px}.hf04 .subnav{overflow:visible}.hf04 [data-pinyin-filter]{display:block}.hf04 [data-pinyin-filter] input,.hf04 [data-pinyin-filter] select{width:100%}}
@container hf-layout (max-width:600px) { .hf07 form label { width:100%; } .hf07-entry { padding:.7rem; } }

/* Local learning record entry, shared by practice and progress pages. */
.learning-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:1rem 1.5rem;margin-block:1rem}.learning-toolbar p{margin:0;font-size:.9rem}.learning-history-link{display:inline-flex;align-items:center;gap:.75rem;flex-shrink:0;padding:.75rem 1.2rem;border:1px solid #294f40;border-radius:999px;background:#294f40;color:#fff;box-shadow:0 4px 12px #294f4020;font-weight:600;line-height:1.4}.learning-history-link small{display:block;font-size:.75rem;font-weight:400}.learning-history-link:hover{background:#1d3b2f}.learning-history-link:focus-visible{outline:3px solid #b94b35;outline-offset:4px}
@media(min-width:1181px){.nav-shell{gap:20px}.desktop-nav{gap:17px}.nav-actions{gap:12px}}

/* HF-11 pronunciation controls */
.pronunciation-button{margin:.35rem .35rem .35rem 0;min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}.pronunciation-button[aria-pressed="true"]{outline:2px solid currentColor;outline-offset:2px}.pronunciation-tools{max-width:var(--container,72rem);margin:1.5rem auto;padding:0 1rem}.context-links{margin-block:1.5rem}.context-links a{display:inline-block;margin:.25rem .35rem .25rem 0}

/* One navigation tree serves every viewport, including the no-JavaScript fallback. */
.site-header .primary-nav{display:flex;margin-left:auto;gap:24px}
.site-header .primary-nav[hidden]{display:none}
.editorial-lesson{max-width:78ch;margin:3rem 0;line-height:1.8}
.editorial-lesson h2,.editorial-lesson h3{margin-top:1.6em;line-height:1.25}
.editorial-lesson p,.editorial-lesson li{margin-block:.9em}
.editorial-lesson a{text-decoration:underline;text-underline-offset:.2em}
.editorial-lesson [lang="zh-CN"]{font-family:var(--hanzi)}
@media(max-width:1180px){
 .site-header .nav-shell{flex-wrap:wrap;height:auto;min-height:72px;padding-block:16px}
 .site-header .menu-toggle{margin-left:auto}
 .site-header .primary-nav{flex-basis:100%;flex-direction:column;align-items:stretch;gap:0;padding-block:12px}
 .site-header .primary-nav>a,.site-header .primary-nav summary{padding:12px;font-size:15px}
 .site-header .primary-nav .nav-menu{position:static;box-shadow:none;border:0;background:transparent;padding-left:24px;min-width:0}
 .site-header .primary-nav .nav-menu a{font-size:14px;padding:10px}
}

/* HF-13 printable cards: both A4 and Letter fit six cards on one portrait page. */
.worksheet-page{padding-top:32px;padding-bottom:32px}.worksheet-page h1{font-size:clamp(1.8rem,4vw,2.7rem)}.worksheet-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0}.worksheet-card{border:1px dashed #817c70;padding:18px;text-align:center;background:#fffdf8;break-inside:avoid;overflow-wrap:anywhere}.worksheet-card h2{font:4rem/1.2 'Kaiti SC','STKaiti',serif;margin:0 0 8px}.worksheet-card h2 a{text-decoration:none}.worksheet-card p{margin:8px 0}.worksheet-pinyin{font-size:1.3rem}.worksheet-cue,.worksheet-attribution{font-size:.85rem;line-height:1.5}.editorial-links li{display:flex;gap:16px;align-items:center}.editorial-preview{padding:16px;border-left:4px solid #a4392b}.worksheet-attribution{max-width:900px}@media(max-width:700px){.worksheet-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.worksheet-card{padding:12px}}@media print{@page{size:auto;margin:12mm}.worksheet-page{width:100%;max-width:none;padding:0}.worksheet-page h1{font-size:19pt;margin:0 0 6mm}.worksheet-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:3mm;margin:0 0 5mm}.worksheet-card{height:84mm;padding:5mm 3mm;background:white;color:black;box-sizing:border-box}.worksheet-card h2{font-size:40pt}.worksheet-card p{font-size:11pt;line-height:1.35}.worksheet-card .worksheet-cue{font-size:9pt}.worksheet-attribution{font-size:8pt;line-height:1.35;color:black}.worksheet-card a{color:black}.worksheet-page .no-print{display:none!important}}

/* Cultural tools and local teacher decks. Rules below use only hf-cultural- and hf-teacher- prefixes. */
.hf-cultural-tool{margin:24px 0}
.hf-cultural-form{display:grid;gap:12px;max-width:640px}
.hf-cultural-form label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.hf-cultural-form input,.hf-cultural-form select,.hf-cultural-form textarea,.hf-teacher-form input,.hf-teacher-form textarea{font:inherit;min-height:44px;padding:9px 12px;border:1px solid #918776;border-radius:8px;background:#fffaf0;color:#263c33;max-width:100%}
.hf-cultural-cards,.hf-teacher-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:16px}
.hf-cultural-card,.hf-teacher-choice{border:1px solid #d9d0c1;border-radius:16px;padding:16px;background:#fffdf8;min-width:0}
.hf-cultural-card h2,.hf-cultural-card h3{font:500 28px/1.2 serif;margin:0 0 8px}
.hf-cultural-char{margin-right:6px}
.hf-cultural-note{color:#5c564c}
.hf-cultural-five{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:16px}
.hf-teacher-workspace{max-width:1100px}
.hf-teacher-choices{max-height:420px;overflow:auto}
.hf-teacher-choice{display:flex;gap:8px;align-items:center;border-radius:10px}
.hf-teacher-print{box-sizing:border-box;margin:16px auto;background:#fff;color:#000}
.hf-teacher-print[data-paper="A4"]{width:186mm;height:270mm}
.hf-teacher-print[data-paper="Letter"]{width:190mm;height:250mm}
.hf-teacher-print-grid{display:grid;grid-template-columns:repeat(var(--hf-cols),minmax(0,1fr));grid-template-rows:repeat(var(--hf-rows),minmax(0,1fr));width:100%;height:calc(100% - 12mm);gap:1.5mm}
.hf-teacher-print h2{margin:0 0 2mm;font-size:11pt;line-height:1.2;break-after:avoid}
.hf-teacher-card{box-sizing:border-box;border:1px dashed #817c70;padding:1.2mm;min-width:0;min-height:0;display:flex;flex-direction:column;align-items:center;text-align:center;break-inside:avoid;page-break-inside:avoid;overflow-wrap:anywhere}
.hf-teacher-glyph{font:700 14pt/1 'Kaiti SC','STKaiti',serif;margin:0}
.hf-teacher-meta{margin:0;font-size:7pt;line-height:1.15}
.hf-teacher-trace{width:8mm;height:8mm;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;border:0.4pt solid #333;margin-top:0.8mm;flex:0 0 auto}
.hf-teacher-trace span{border-right:0.3pt solid #bbb;border-bottom:0.3pt solid #bbb}
.hf-teacher-print[data-density="roomy"] .hf-teacher-glyph{font-size:28pt}
.hf-teacher-print[data-density="roomy"] .hf-teacher-meta{font-size:11pt}
.hf-teacher-print[data-density="roomy"] .hf-teacher-trace{width:22mm;height:22mm}
.hf-teacher-print[data-density="compact"] .hf-teacher-glyph{font-size:16pt}
.hf-teacher-print[data-density="dense"] .hf-teacher-glyph{font-size:9pt}
.hf-teacher-print[data-density="dense"] .hf-teacher-meta{font-size:5.5pt}
.hf-teacher-print[data-density="dense"] .hf-teacher-trace{width:5mm;height:5mm}
@media(max-width:800px){.hf-cultural-five{grid-template-columns:repeat(2,minmax(0,1fr))}.hf-cultural-five .hf-cultural-card:last-child{grid-column:1 / -1;max-width:calc((100% - 12px) / 2);justify-self:center}}
@media print{
  .hf-teacher-no-print,.hf-cultural-form,.hf-cultural-no-print{display:none!important}
  .hf-teacher-print{break-after:avoid;page-break-after:avoid;margin:0}
  .hf-teacher-card,.hf-teacher-print-grid{break-inside:avoid;page-break-inside:avoid}
  @page{size:auto;margin:12mm}
}

/* Integrated teacher print output contains only the selected deck. */
.hf-teacher-workspace [data-teacher-print-slot]{max-width:100%;overflow:auto}
@media print{body.hf-teacher-printing> *{display:none!important}body.hf-teacher-printing>[data-teacher-print-document]{display:block!important}}

/* Keep dense print cells within their border while retaining full meanings. */
.hf-teacher-print .hf-teacher-glyph{margin:0 0 .5mm}
.hf-teacher-print[data-density="dense"] .hf-teacher-card{padding:.6mm}

/* Culture gallery: an original illustrated scroll, with a persistent chapter rail. */
.tools-gallery{--tools-ink:#243e34;--tools-muted:#586158;--tools-red:#9e3e30;--tools-rule:#cfc8b7;max-width:1600px;margin:0 auto;padding:44px 48px 52px;color:var(--tools-ink)}
.tools-gallery-heading{display:flex;align-items:center;justify-content:space-between;gap:40px;padding:0 0 34px 272px}
.tools-gallery-kicker{font-size:10px;font-weight:650;letter-spacing:.18em;display:flex;align-items:center;gap:11px;color:#715d42;margin-bottom:14px}
.tools-gallery-kicker>span{width:23px;height:1px;background:#9e3e30}
.tools-gallery-heading h1{font:500 clamp(32px,3.5vw,51px)/1.1 var(--serif);letter-spacing:-.04em}
.tools-gallery-heading [data-seo-lead]{font-size:13px;line-height:1.7;max-width:650px;color:var(--tools-muted);margin-top:15px}
.tools-gallery-note{font-size:11px;line-height:1.8;color:#665f51;flex:0 0 170px;text-align:right;margin:0!important}
.tools-gallery-note [lang=zh-CN]{font:15px/2 var(--hanzi);letter-spacing:.11em;color:#394c3a}
.tools-gallery-layout{display:grid;grid-template-columns:232px minmax(0,1fr);column-gap:40px;position:relative;align-items:start}
.tools-gallery-layout::before{content:"";position:absolute;top:0;bottom:0;left:232px;width:1px;background:linear-gradient(#dbd3c3,#beb9a6 20%,#c9c0ad 80%,transparent)}
.tools-path-rail{position:sticky;top:32px;padding:12px 26px 0 0;min-width:0}
.tools-rail-intro{display:flex;align-items:center;gap:15px;padding:5px 0 32px}
.tools-rail-seal{border:1px solid #a54836;outline:1px solid #b65e46;outline-offset:-5px;display:grid;place-items:center;width:43px;height:47px;font:26px var(--hanzi);color:var(--tools-red);transform:rotate(-4deg)}
.tools-rail-intro p{font:18px/1.5 var(--serif)}.tools-rail-intro em{color:#635c4c;font-size:16px}
.tools-rail-items{position:relative;display:grid;gap:2px}
.tools-rail-items>a{position:relative;display:flex;align-items:center;gap:16px;min-height:84px;padding:12px 4px;color:#665f50;border-radius:5px;transition:color .25s,background .25s}
.tools-rail-items>a:hover{color:var(--tools-red);background:#ece5d6}.tools-rail-items>a[aria-current]{color:var(--tools-red)}
.tools-path-stamp{width:35px;height:38px;border:1px solid #b7ad98;display:grid;place-items:center;color:#6a6a56;font:23px var(--hanzi);transition:all .3s;transform:rotate(-3deg)}
.tools-rail-items>a[aria-current] .tools-path-stamp{background:var(--tools-red);color:#fff8e9;border-color:var(--tools-red);box-shadow:inset 0 0 0 3px #f6ecdc}
.tools-path-label{display:grid;gap:4px}.tools-path-label>span{display:flex;gap:13px;align-items:center}.tools-path-label [lang=zh-CN]{font:19px var(--hanzi);letter-spacing:.16em}.tools-path-number{font:10px var(--sans);letter-spacing:.12em}.tools-path-label strong{font-size:12px;font-weight:550;letter-spacing:.01em}
.tools-path-indicator{position:absolute;top:0;right:-27px;width:3px;height:84px;border-radius:3px;background:var(--tools-red);transition:transform .55s cubic-bezier(.22,.75,.18,1),height .3s;z-index:2}
.tools-rail-foot{font:13px/1.8 var(--hanzi);letter-spacing:.07em;color:#75664e;padding:34px 0 0 4px}.tools-rail-foot span{font:10px/2 var(--sans);letter-spacing:.025em;color:#665f50}
.tools-rail-toggle{display:none}.tools-showcase-stream{display:grid;gap:32px;min-width:0}
.tools-scene{--scene-shift:0px;position:relative;isolation:isolate;overflow:hidden;border:1px solid #d6cfbc;border-radius:7px;min-height:720px;padding:29px 34px 22px;scroll-margin-top:24px;background:#e9e5d6}
.tools-scene-art{position:absolute;inset:-28px;z-index:-3;transform:translate3d(0,var(--scene-shift),0);filter:blur(1.1px);pointer-events:none}.tools-scene-art img{width:100%;height:100%;object-fit:cover;object-position:62% center;opacity:.88}
.tools-scene-scrim{position:absolute;inset:0;z-index:-2;background:linear-gradient(100deg,rgba(247,242,229,.92),rgba(247,242,229,.62) 42%,rgba(242,236,216,.15)),linear-gradient(0deg,rgba(231,223,202,.64),transparent 44%);pointer-events:none}
.tools-scene-menu .tools-scene-scrim{background:linear-gradient(105deg,rgba(249,240,223,.93),rgba(249,240,223,.53) 50%,rgba(240,220,181,.12))}.tools-scene-zodiac .tools-scene-scrim{background:linear-gradient(105deg,rgba(244,237,213,.95),rgba(247,239,213,.54) 45%,rgba(221,202,150,.12))}.tools-scene-tattoo .tools-scene-scrim{background:linear-gradient(105deg,rgba(242,234,220,.94),rgba(242,234,220,.59) 45%,rgba(221,209,188,.1))}
.tools-scene-chapter{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:.18em;color:#615c4c;padding:0 2px 24px}.tools-scene-chapter [lang=zh-CN]{font:16px var(--hanzi);letter-spacing:.18em}
.tools-studio{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:34px;align-items:stretch;min-height:553px}
.tools-gallery-enhanced .tools-studio{transition:opacity .7s ease,transform .8s cubic-bezier(.22,.75,.18,1)}.tools-gallery-enhanced .tools-scene:not(.is-revealed) .tools-studio{opacity:.35;transform:translateY(18px)}
.tools-controls{min-width:0;padding:12px 0 4px}
.tools-studio-eyebrow{font-size:9px;line-height:1.8;letter-spacing:.16em;color:#705c40;margin-bottom:16px}
.tools-controls h2{display:flex;flex-direction:column;gap:7px;font:500 clamp(27px,2.55vw,37px)/1.12 var(--serif);letter-spacing:-.04em}
.tools-controls h2 [lang=zh-CN]{font:35px/1.2 var(--hanzi);letter-spacing:.13em}
.tools-studio-description{font-size:13px;line-height:1.8;margin-top:18px;max-width:360px;color:#465346}
.tools-studio-form{margin-top:25px}.tools-studio-form fieldset{display:grid;gap:14px;border:0;padding:0;margin:0;min-inline-size:0}
.tools-studio-form label{display:flex;flex-direction:column;gap:7px;font-size:10px;font-weight:600;letter-spacing:.02em;color:#3e4c3f}
.tools-studio-form input,.tools-studio-form select,.tools-studio-form textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:43px;font:13px/1.5 var(--sans);border:1px solid #b4b49d;border-radius:3px;background:rgba(255,253,245,.9);color:#263b30;padding:10px 12px;outline-offset:3px}
.tools-studio-form textarea{resize:vertical;font-family:var(--hanzi);font-size:22px;letter-spacing:.12em}.tools-studio-form input[name=text]{font-family:var(--hanzi);font-size:25px;letter-spacing:.12em}.tools-studio-form input::placeholder{color:#6b6b5c;font-size:11px;letter-spacing:0}.tools-fields-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.tools-primary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;width:100%;border:1px solid #294e3d;border-radius:3px;background:#294e3d;color:#fffbed;padding:11px 15px;font-size:12px;font-weight:550;transition:background .2s}.tools-primary:hover{background:#173e2c}.tools-primary>span{font-size:19px;font-weight:400}
.tools-input-note{font-size:10px;line-height:1.65;color:#5a5c4d;margin:0!important}.tools-studio-status{font-size:11px;line-height:1.6;color:#394f3a;min-height:18px;margin-top:8px}
.tools-quick-picks{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:9px;color:#655b45}.tools-quick-picks button{border:1px solid #b7ac96;background:#faf4e6;min-height:32px;padding:3px 9px;border-radius:3px;color:#314b3b;font:15px var(--hanzi)}
.tools-dedicated-link{display:inline-flex;align-items:center;gap:17px;font-size:10px;font-weight:600;border-bottom:1px solid #aca78f;padding:0 0 5px;color:#2e4c39;margin-top:8px}.tools-dedicated-link:hover{color:#8c382c}
.tools-stage{position:relative;display:flex;flex-direction:column;min-width:0;min-height:500px;padding:24px 25px 19px;background:rgba(255,252,240,.91);border:1px solid rgba(178,172,145,.72);border-radius:4px;box-shadow:0 17px 45px -30px #4d593c,0 0 0 5px rgba(253,248,231,.32);backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.tools-stage-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;min-height:46px;font-size:8px;letter-spacing:.13em;line-height:1.7;color:#625e4c}.tools-stage-heading>span:first-child{padding-top:6px}
.tools-stage-seal{display:grid;place-items:center;width:33px;height:36px;flex-shrink:0;background:#a44835;border:3px double #f4e4c7;outline:1px solid #a44835;color:#fff5db;font:24px var(--hanzi);transform:rotate(4deg)}
.tools-preview-center{text-align:center;position:relative;padding:22px 0 15px;min-height:187px;display:flex;align-items:center;flex-direction:column;justify-content:center}
.tools-preview-glyphs{font:500 clamp(62px,7vw,105px)/1.22 var(--hanzi);letter-spacing:.07em;display:flex;justify-content:center;flex-wrap:wrap;gap:3px;color:#294332;margin:0}.tools-preview-glyphs>a{text-decoration:none;border-bottom:1px solid transparent;transition:color .2s,border-color .2s}.tools-preview-glyphs>a:hover{color:#9e3e30;border-color:#9e3e30}.tools-preview-glyphs-many{font-size:clamp(40px,4.1vw,63px)}
.tools-preview-pinyin{font:italic 17px/1.6 var(--serif);letter-spacing:.09em;margin:8px 0 0!important;color:#6a5a3f}
.tools-preview-rule{display:block;width:36px;height:1px;background:#b8a77b;margin-top:17px}
.tools-name-choices{display:flex;justify-content:center;gap:12px;margin:4px 0 13px}.tools-name-choices button{min-width:50px;min-height:33px;background:transparent;border:1px solid #b9b29b;color:#4c5943;font:18px var(--hanzi);border-radius:2px}.tools-name-choices button[aria-pressed=true]{border-color:#8b4f38;background:#eae0cb;color:#7e382b}
.tools-study-links{display:grid;gap:0;border-top:1px solid #ded6c0;margin-top:auto}.tools-study-links>a{display:flex;gap:12px;align-items:center;padding:9px 1px;border-bottom:1px solid #e5decb;min-width:0;color:#314c38}.tools-study-links>a>[lang=zh-CN]{font:30px/1.3 var(--hanzi)}.tools-study-links>a>span:nth-child(2){font:13px/1.5 var(--serif);flex:1;min-width:0}.tools-study-links small{display:block;font:10px/1.5 var(--sans);color:#59614f}.tools-study-links>a>span:last-child{font-size:15px;color:#736146}.tools-study-links>a:hover{background:#eee9d6}.tools-unlisted{font-size:12px;padding:9px 0;color:#605b4c}.tools-unlisted [lang=zh-CN]{font:25px var(--hanzi)}
.tools-stage-bottom{display:grid;gap:10px;padding-top:15px;color:#615f50;font:italic 11px var(--serif)}.tools-save{background:transparent;border:0;padding:2px 0;min-height:28px;text-align:left;font:10px var(--sans);color:#4a5c40;cursor:pointer}.tools-save:hover{color:#923c2c;text-decoration:underline}
.tools-preview-notice{font-size:10px;line-height:1.7;text-align:center;color:#5a5c4e;padding:0 3px;margin:2px 0 18px!important}.tools-preview-empty{padding:65px 10px;color:#6c614a;gap:22px}.tools-preview-empty>span{font:90px var(--hanzi);opacity:.45}.tools-preview-empty p{font-size:13px;line-height:1.7;letter-spacing:0}
.tools-scene-footnote{font-size:9px;line-height:1.7;color:#515746;border-top:1px solid #bcb79e;padding-top:13px;margin-top:24px!important;position:relative}
.tools-stage-zodiac{background:rgba(255,249,229,.92)}.tools-stage-zodiac .tools-preview-center::before{content:"";position:absolute;inset:1px 40px;border:1px solid #c6af77;border-radius:50%;opacity:.45;box-shadow:0 0 0 9px rgba(188,159,86,.08),0 0 0 21px rgba(188,159,86,.04);pointer-events:none}.tools-zodiac-year{position:relative;font-size:91px}.tools-zodiac-label{text-align:center;font:17px var(--serif);color:#77602e;margin:4px 0 13px!important;letter-spacing:.04em}
.tools-stage-tattoo{background-color:rgba(254,250,239,.93);background-image:linear-gradient(rgba(126,103,66,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(126,103,66,.055) 1px,transparent 1px);background-size:36px 36px}.tools-stage-tattoo .tools-preview-glyphs{color:#1e3028}.tools-deck-preview-name{text-align:center;font:italic 17px var(--serif);color:#6f5d3f;margin-bottom:18px!important}.tools-gallery-footer{display:flex;justify-content:space-between;gap:20px;padding:25px 0 0 272px;font-size:11px;color:#5d624f}.tools-gallery-footer a{text-decoration:underline;text-underline-offset:4px}
@media(min-width:1600px){.tools-scene{padding:34px 43px 25px}.tools-studio{gap:48px}.tools-controls{padding-top:26px}.tools-studio-description{font-size:14px}.tools-stage{padding:28px 34px 22px}}
@media(max-width:1180px){.tools-gallery{padding:32px 24px 42px}.tools-gallery-heading{padding-left:224px}.tools-gallery-note{display:none}.tools-gallery-layout{grid-template-columns:194px minmax(0,1fr);gap:30px}.tools-gallery-layout::before{left:194px}.tools-path-rail{padding-right:20px}.tools-path-indicator{right:-21px}.tools-path-label strong{font-size:11px}.tools-path-label [lang=zh-CN]{font-size:18px}.tools-rail-items>a{gap:12px}.tools-scene{padding:24px 23px 20px}.tools-studio{gap:22px}.tools-stage{padding:19px 18px 16px}.tools-studio-eyebrow{font-size:8px}.tools-controls h2{font-size:28px}.tools-controls h2 [lang=zh-CN]{font-size:30px}.tools-preview-glyphs{font-size:75px}.tools-preview-glyphs-many{font-size:48px}.tools-gallery-footer{padding-left:224px}}
@media(max-width:900px){.tools-gallery{padding:24px 18px 35px}.tools-gallery-heading{padding:0 6px 25px}.tools-gallery-heading h1{font-size:36px}.tools-gallery-heading [data-seo-lead]{font-size:12px}.tools-gallery-kicker{font-size:8px}.tools-gallery-layout{display:block}.tools-gallery-layout::before{display:none}.tools-path-rail{position:sticky;top:0;z-index:15;padding:0;margin:0 -1px 18px;background:rgba(246,240,229,.97);backdrop-filter:blur(14px);border:1px solid #c7c0ad;border-radius:4px}.tools-rail-intro,.tools-rail-foot{display:none}.tools-gallery-enhanced .tools-rail-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:13px 17px;border:0;background:transparent;color:#344e3a;font:13px var(--sans);min-height:48px}.tools-rail-toggle>span:last-child{font-size:20px}.tools-rail-items{padding:6px 14px 12px}.tools-gallery-enhanced .tools-path-rail:not([data-open=true]) .tools-rail-items{display:none}.tools-rail-items>a{min-height:64px;padding-left:5px}.tools-path-indicator{display:none}.tools-path-label{display:flex;align-items:center;gap:16px}.tools-path-label>span{gap:12px}.tools-path-label strong{font-size:13px}.tools-path-label [lang=zh-CN]{font-size:20px}.tools-showcase-stream{gap:22px}.tools-scene{scroll-margin-top:76px;min-height:680px}.tools-studio{gap:25px}.tools-controls h2{font-size:30px}.tools-controls h2 [lang=zh-CN]{font-size:34px}.tools-preview-glyphs{font-size:84px}.tools-preview-glyphs-many{font-size:51px}.tools-gallery-footer{padding:22px 5px 0;font-size:10px;display:block}.tools-gallery-footer a{display:inline-block;margin:12px 0 0}.tools-stage{backdrop-filter:blur(6px)}}
@media(max-width:600px){.tools-gallery-heading h1{font-size:32px}.tools-scene{padding:23px 20px 18px}.tools-scene-chapter{padding-bottom:21px}.tools-studio{grid-template-columns:1fr;gap:25px;min-height:0}.tools-controls{padding-top:0}.tools-controls h2{font-size:34px}.tools-controls h2 [lang=zh-CN]{font-size:34px}.tools-studio-description{font-size:13px;max-width:none}.tools-studio-eyebrow{font-size:8px;margin-bottom:12px}.tools-studio-form{margin-top:20px}.tools-stage{min-height:460px;padding:24px}.tools-preview-glyphs{font-size:91px}.tools-preview-glyphs-many{font-size:58px}.tools-studio-form input,.tools-studio-form select{font-size:16px}.tools-scene-art{inset:-20px;filter:blur(1.4px)}.tools-scene-art img{object-position:67% center}.tools-scene-scrim{background:linear-gradient(180deg,rgba(246,240,225,.9),rgba(246,240,225,.57) 38%,rgba(246,240,225,.25))}.tools-gallery-note{display:none}.tools-scene-footnote{font-size:10px;margin-top:21px!important}.tools-stage-bottom{font-size:12px}.tools-save{font-size:11px}.tools-study-links small{font-size:11px}.tools-gallery-kicker{letter-spacing:.1em}.tools-path-label strong{font-size:12px}}
@media(prefers-reduced-motion:reduce){html:has(.tools-gallery){scroll-behavior:auto}.tools-gallery .tools-path-indicator,.tools-gallery .tools-studio,.tools-gallery a,.tools-gallery button{transition:none!important}.tools-gallery .tools-scene-art{transform:none}.tools-gallery-enhanced .tools-scene:not(.is-revealed) .tools-studio{opacity:1;transform:none}}

.tools-path-number::after{content:" ·"}

/* Owner-approved invitations below the English chapter titles. */
.tools-path-guide{display:block;max-width:160px;font:11px/1.5 var(--sans);letter-spacing:0;color:#5b6354}
.tools-rail-items>a[aria-current] .tools-path-guide{color:#6c493d}
@media(max-width:900px){.tools-path-label{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 14px;flex:1}.tools-path-guide{grid-column:1 / -1;max-width:none;font-size:11px}}

/* Character page (.hf-char-*) — appended for the HF-04 visual contract. Rules above are unchanged. */
body:has(.hf-char-page){background:#F5EFE6;color:#1E352F}
body:has(.hf-char-page) .site-header{background:#F5EFE6}
.hf-char-page{
  --hf-char-paper:#F5EFE6;
  --hf-char-ink:#1E352F;
  --hf-char-red:#B84A32;
  --hf-char-card:#FBF7F0;
  --hf-char-beige:#F6E6D8;
  --hf-char-muted:#3A4F47;
  --hf-char-line:#C9BBA4;
  --hf-char-serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Times New Roman",serif;
  --hf-char-song:"Songti SC","STSong","SimSun","Songti TC","Noto Serif SC","Noto Serif CJK SC","Source Han Serif SC",PMingLiU,"Kaiti SC",STKaiti,KaiTi,serif;
  position:relative;
  width:min(1200px,calc(100% - 64px));
  max-width:1200px;
  margin-inline:auto;
  padding-top:28px;
  padding-bottom:80px;
  color:var(--hf-char-ink);
  background:transparent;
  overflow-wrap:break-word
}
.hf-char-page h1.hf-char-sr-only{
  position:absolute;
  left:0;
  top:0;
  width:1px;
  height:1px;
  margin:-1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0
}
.hf-char-page p[data-seo-lead]{
  position:static;
  width:auto;
  height:auto;
  max-width:70ch;
  margin:0 0 14px;
  padding:0;
  overflow:visible;
  clip:auto;
  clip-path:none;
  white-space:normal;
  border:0;
  color:var(--hf-char-muted);
  font:400 13px/1.45 var(--sans);
  letter-spacing:0
}
.hf-char-breadcrumb{
  display:block;
  margin:0 0 18px;
  color:var(--hf-char-muted);
  font:500 13px/1.5 var(--sans)
}
.hf-char-breadcrumb a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 2px;
  color:var(--hf-char-ink);
  text-decoration:underline;
  text-underline-offset:3px;
  vertical-align:middle
}
.hf-char-layout{
  display:grid;
  grid-template-columns:minmax(0,68fr) minmax(0,32fr);
  column-gap:28px;
  align-items:start
}
.hf-char-main,.hf-char-utility,.hf-char-intuition{min-width:0}
.hf-char-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 14px
}
.hf-char-tags span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 10px;
  border:1px solid var(--hf-char-ink);
  border-radius:999px;
  color:var(--hf-char-ink);
  background:transparent;
  font:650 11px/1.3 var(--sans);
  letter-spacing:.08em;
  text-transform:uppercase
}
.hf-char-hero{
  display:flex;
  align-items:center;
  gap:18px 24px
}
.hf-char-glyph-column{
  flex:0 0 auto;
  width:min(100%,252px)
}
.hf-char-stage{
  position:relative;
  display:grid;
  place-items:center;
  width:100%;
  aspect-ratio:1;
  border:1.5px solid var(--hf-char-ink);
  border-radius:2px;
  background-color:var(--hf-char-card);
  background-image:
    linear-gradient(to right,transparent calc(50% - .5px),var(--hf-char-line) calc(50% - .5px),var(--hf-char-line) calc(50% + .5px),transparent calc(50% + .5px)),
    linear-gradient(to bottom,transparent calc(50% - .5px),var(--hf-char-line) calc(50% - .5px),var(--hf-char-line) calc(50% + .5px),transparent calc(50% + .5px)),
    linear-gradient(to bottom right,transparent calc(50% - .6px),var(--hf-char-line) calc(50% - .6px),var(--hf-char-line) calc(50% + .6px),transparent calc(50% + .6px)),
    linear-gradient(to bottom left,transparent calc(50% - .6px),var(--hf-char-line) calc(50% - .6px),var(--hf-char-line) calc(50% + .6px),transparent calc(50% + .6px));
  background-repeat:no-repeat;
  background-size:100% 100%
}
.hf-char-glyph{
  z-index:0;
  color:var(--hf-char-ink);
  font:500 118px/1 var(--hf-char-song);
  letter-spacing:0
}
.hf-char-page button.hf-char-stroke-toggle{
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:auto;
  max-width:calc(100% - 16px);
  min-height:44px;
  margin:0;
  padding:8px 12px;
  border:1px solid var(--hf-char-ink);
  border-radius:999px;
  background:#FBF7F0;
  color:var(--hf-char-ink);
  font:650 12px/1.2 var(--sans);
  text-align:center;
  cursor:pointer
}
.hf-char-seal{
  position:absolute;
  right:10px;
  bottom:10px;
  z-index:1;
  display:inline-grid;
  place-items:center;
  min-width:28px;
  min-height:28px;
  padding:2px 4px;
  border:1px solid var(--hf-char-red);
  box-shadow:inset 0 0 0 3px #FBF7F0,inset 0 0 0 4px var(--hf-char-red);
  background:#FBF7F0;
  color:var(--hf-char-red);
  font:16px/1 var(--hf-char-song);
  pointer-events:none;
  transform:rotate(-8deg)
}
.hf-char-pronunciation{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  width:100%;
  margin-top:12px
}
.hf-char-page em.hf-char-pinyin{
  flex:1 0 auto;
  margin:0;
  color:var(--hf-char-ink);
  font:italic 500 clamp(1.55rem,2.4vw,2rem)/1.1 var(--hf-char-serif);
  letter-spacing:.01em
}
.hf-char-page button[data-pronunciation],
.hf-char-page button[data-hf-copy]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:auto;
  min-width:44px;
  min-height:44px;
  margin:0;
  padding:8px 14px;
  border-radius:999px;
  font:650 13px/1 var(--sans);
  cursor:pointer
}
.hf-char-page button[data-pronunciation]{
  border:1px solid var(--hf-char-red);
  background:var(--hf-char-red);
  color:#fff
}
.hf-char-page button[data-hf-copy]{
  border:1px solid var(--hf-char-ink);
  background:var(--hf-char-card);
  color:var(--hf-char-ink)
}
.hf-char-page [data-hf-copy-status]{
  color:var(--hf-char-ink);
  font:600 13px/1.4 var(--sans)
}
.hf-char-page [data-hf-copy-status]:empty{display:none}
.hf-char-intuition{flex:1 1 auto}
.hf-char-page h2.hf-char-meaning{
  margin:0;
  color:var(--hf-char-red);
  font:500 clamp(2.25rem,3.5vw,3.25rem)/1.08 var(--hf-char-serif);
  letter-spacing:-.03em;
  text-wrap:balance
}
.hf-char-hook{
  max-width:40rem;
  margin:12px 0 0;
  color:var(--hf-char-ink);
  font:1.05rem/1.6 var(--hf-char-serif)
}
.hf-char-intuition p + p{margin-top:8px}
.hf-char-page details.hf-char-reference,
.hf-char-page details.hf-char-strokes{margin-top:22px}
.hf-char-page details.hf-char-reference > summary,
.hf-char-page details.hf-char-strokes > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:44px;
  padding:8px 0;
  color:var(--hf-char-ink);
  font:650 15px/1.4 var(--sans);
  letter-spacing:0;
  list-style:none;
  cursor:pointer;
  pointer-events:auto
}
.hf-char-page details.hf-char-reference > summary::-webkit-details-marker,
.hf-char-page details.hf-char-strokes > summary::-webkit-details-marker{display:none}
.hf-char-page details.hf-char-reference > summary::after,
.hf-char-page details.hf-char-strokes > summary::after{
  content:"+";
  color:var(--hf-char-red);
  font:400 1.4rem/1 var(--hf-char-serif)
}
.hf-char-page details.hf-char-reference[open] > summary::after,
.hf-char-page details.hf-char-strokes[open] > summary::after{content:"–"}
.hf-char-reference > :not(summary),
.hf-char-strokes > :not(summary){margin-top:12px}
.hf-char-page .hf-char-reference{overflow-wrap:anywhere}
.hf-char-page .hf-char-reference :is(p,li,dd,dt){
  color:var(--hf-char-ink);
  font-size:.95rem;
  line-height:1.6
}
.hf-char-page .hf-char-reference :is(h2,h3){
  margin:12px 0 8px;
  color:var(--hf-char-ink);
  font:500 1.25rem/1.25 var(--hf-char-serif);
  letter-spacing:0
}
.hf-char-page .hf-char-reference select,
.hf-char-page .hf-char-reference input{
  width:min(100%,28rem);
  min-height:44px;
  border:1px solid var(--hf-char-ink);
  border-radius:8px;
  background:var(--hf-char-card);
  color:var(--hf-char-ink)
}
.hf-char-page .character-info{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent
}
.hf-char-page .reading-information [data-reading-panel]{display:block}
.hf-char-page .hf-char-strokes .stroke-panel{
  max-width:none;
  margin:0;
  text-align:left
}
.hf-char-page .hf-char-strokes .stroke-panel h2{
  margin:0 0 8px;
  color:var(--hf-char-ink);
  font:650 1.15rem/1.3 var(--sans);
  letter-spacing:.02em
}
.hf-char-page .hf-char-strokes .stroke-panel p{
  margin:8px 0;
  color:var(--hf-char-ink);
  font-size:.92rem;
  line-height:1.55;
  text-align:left
}
.hf-char-page .hf-char-strokes .stroke-stage{
  width:min(100%,400px);
  height:auto;
  aspect-ratio:1;
  margin:12px 0;
  border:1.5px solid var(--hf-char-ink);
  border-radius:4px;
  background-color:var(--hf-char-card);
  background-image:
    linear-gradient(to right,transparent calc(50% - .5px),var(--hf-char-line) calc(50% - .5px),var(--hf-char-line) calc(50% + .5px),transparent calc(50% + .5px)),
    linear-gradient(to bottom,transparent calc(50% - .5px),var(--hf-char-line) calc(50% - .5px),var(--hf-char-line) calc(50% + .5px),transparent calc(50% + .5px)),
    linear-gradient(to bottom right,transparent calc(50% - .6px),var(--hf-char-line) calc(50% - .6px),var(--hf-char-line) calc(50% + .6px),transparent calc(50% + .6px)),
    linear-gradient(to bottom left,transparent calc(50% - .6px),var(--hf-char-line) calc(50% - .6px),var(--hf-char-line) calc(50% + .6px),transparent calc(50% + .6px));
  background-repeat:no-repeat;
  background-size:100% 100%;
  color:var(--hf-char-ink);
  font:160px/1 var(--hf-char-song)
}
.hf-char-page .hf-char-strokes .stroke-stage svg{width:100%;height:100%}
.hf-char-page .hf-char-strokes .stroke-grid{
  width:min(100%,400px);
  height:auto;
  aspect-ratio:1;
  margin:12px 0
}
.hf-char-page .hf-char-strokes .stroke-controls{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin:12px 0
}
.hf-char-page .hf-char-strokes .stroke-controls label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:auto;
  min-height:44px;
  margin:0;
  font-weight:650
}
.hf-char-page .hf-char-strokes .stroke-controls button,
.hf-char-page .hf-char-strokes .stroke-controls select{
  width:auto;
  min-width:44px;
  min-height:44px;
  margin:0;
  padding:8px 12px;
  border:1px solid var(--hf-char-ink);
  border-radius:8px;
  background:var(--hf-char-card);
  color:var(--hf-char-ink);
  font:650 13px/1.2 var(--sans)
}
.hf-char-page .hf-char-strokes .stroke-panel figure{max-width:100%;margin:16px 0 0}
.hf-char-page .hf-char-strokes .stroke-static{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  border-radius:8px;
  background:var(--hf-char-card)
}
.hf-char-page details.hf-char-strokes[open] .stroke-panel,
.hf-char-page details.hf-char-strokes[open] .stroke-static{
  display:block!important;
  visibility:visible;
  max-width:100%;
  height:auto
}
.hf-char-page .hf-char-strokes figcaption{
  margin-top:8px;
  color:var(--hf-char-muted);
  font-size:.85rem;
  line-height:1.5;
  text-align:left
}
.hf-char-page .hf-char-strokes .stroke-panel a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:4px 0;
  color:var(--hf-char-ink);
  text-decoration:underline;
  text-underline-offset:3px
}
.hf-char-section{margin-top:40px}
.hf-char-page h2.hf-char-section-title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 16px;
  color:var(--hf-char-ink);
  font:650 12px/1.4 var(--sans);
  letter-spacing:.16em;
  text-transform:uppercase
}
.hf-char-page h2.hf-char-section-title::before{
  content:"";
  width:8px;
  height:8px;
  flex:none;
  background:var(--hf-char-red)
}
.hf-char-formula{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 16px;
  max-width:100%;
  margin:0;
  padding:16px 18px;
  border:1px solid var(--hf-char-ink);
  border-radius:12px
}
.hf-char-formula-sign{
  flex:none;
  color:var(--hf-char-ink);
  font:1.75rem/1 var(--hf-char-serif)
}
.hf-char-page :is(a,span).hf-char-component{
  position:relative;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:1px;
  min-width:5.6rem;
  min-height:44px;
  padding:8px 16px 10px;
  color:var(--hf-char-ink);
  text-align:center;
  text-decoration:none;
  background:
    linear-gradient(var(--hf-char-ink),var(--hf-char-ink)) left top / 12px 1.5px no-repeat,
    linear-gradient(var(--hf-char-ink),var(--hf-char-ink)) left top / 1.5px 100% no-repeat,
    linear-gradient(var(--hf-char-ink),var(--hf-char-ink)) left bottom / 12px 1.5px no-repeat,
    linear-gradient(var(--hf-char-ink),var(--hf-char-ink)) right top / 12px 1.5px no-repeat,
    linear-gradient(var(--hf-char-ink),var(--hf-char-ink)) right top / 1.5px 100% no-repeat,
    linear-gradient(var(--hf-char-ink),var(--hf-char-ink)) right bottom / 12px 1.5px no-repeat
}
.hf-char-component-glyph{
  color:var(--hf-char-ink);
  font:500 1.85rem/1.1 var(--hf-char-song)
}
.hf-char-component-pinyin{
  color:var(--hf-char-ink);
  font:italic .8rem/1.25 var(--hf-char-serif)
}
.hf-char-page small.hf-char-component-meaning{
  color:var(--hf-char-ink);
  font:600 .75rem/1.25 var(--sans)
}
.hf-char-derivatives{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,8.5rem),1fr));
  gap:10px;
  margin-top:16px
}
.hf-char-derivatives > :is(a,article):not(.hf-char-component){
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:76px;
  padding:12px 10px;
  border:1px solid #E4D7C4;
  border-radius:10px;
  background:var(--hf-char-card);
  color:var(--hf-char-ink);
  text-align:center;
  text-decoration:none
}
.hf-char-derivatives > :is(a,article):not(.hf-char-component) :is(span,strong){
  font:500 1.8rem/1 var(--hf-char-song)
}
.hf-char-derivatives > :is(a,article):not(.hf-char-component) small{
  color:var(--hf-char-muted);
  font:italic .85rem/1.3 var(--hf-char-serif)
}
.hf-char-page p.hf-char-mnemonic{
  margin:16px 0 0;
  color:var(--hf-char-ink);
  font:italic 1.05rem/1.6 var(--hf-char-serif)
}
.hf-char-word-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));
  gap:12px
}
.hf-char-word{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px 10px;
  min-width:0;
  padding:14px 16px;
  border:1px solid var(--hf-char-ink);
  border-radius:12px;
  background:transparent
}
.hf-char-word-hanzi{
  color:var(--hf-char-ink);
  font:500 1.35rem/1.3 var(--hf-char-song)
}
.hf-char-word-pinyin{
  color:var(--hf-char-ink);
  font:italic 1rem/1.3 var(--hf-char-serif)
}
.hf-char-word-meaning{
  flex:1 1 8rem;
  min-width:0;
  color:var(--hf-char-ink);
  font:.95rem/1.4 var(--sans)
}
.hf-char-word button[data-pronunciation]{margin-left:auto}
.hf-char-sentences{display:grid;gap:4px}
.hf-char-sentence{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-width:0;
  padding:12px 0;
  border-bottom:1px solid #E4D7C4
}
.hf-char-sentence > div{min-width:0}
.hf-char-sentence p + p{margin-top:2px}
.hf-char-sentence-hanzi{
  margin:0;
  color:var(--hf-char-ink);
  font:500 clamp(1.25rem,2vw,1.5rem)/1.45 var(--hf-char-song)
}
.hf-char-sentence-pinyin{
  margin:0;
  color:var(--hf-char-muted);
  font:.95rem/1.45 var(--sans)
}
.hf-char-sentence-translation{
  margin:4px 0 0;
  color:var(--hf-char-ink);
  font:italic 1.05rem/1.5 var(--hf-char-serif)
}
.hf-char-page .hf-char-sentence button[data-pronunciation]{
  flex:none;
  width:44px;
  height:44px;
  min-width:44px;
  min-height:44px;
  max-width:44px;
  margin:0;
  padding:0;
  gap:0;
  overflow:hidden;
  border:1px solid var(--hf-char-red);
  border-radius:50%;
  background:var(--hf-char-red);
  color:transparent;
  font-size:0;
  line-height:0;
  letter-spacing:0;
  white-space:nowrap
}
.hf-char-page .hf-char-sentence button[data-pronunciation] span{
  display:block;
  overflow:visible;
  color:#fff;
  font-size:15px;
  line-height:1;
  letter-spacing:0
}
.hf-char-page strong.hf-char-highlight{
  color:var(--hf-char-red);
  font-weight:700
}
.hf-char-notes{
  margin-top:32px;
  padding-top:16px;
  border-top:1px solid #E4D7C4;
  color:var(--hf-char-muted);
  font:12px/1.6 var(--sans)
}
.hf-char-utility{
  position:sticky;
  top:24px;
  z-index:1;
  display:flex;
  flex-direction:column;
  gap:10px;
  align-self:start;
  max-height:calc(100dvh - 48px);
  padding:18px 16px 16px;
  overflow:auto;
  scroll-padding:12px;
  border-radius:14px;
  background:var(--hf-char-ink);
  color:#F5EFE6
}
.hf-char-page h2.hf-char-utility-title{
  margin:0;
  color:#F5EFE6;
  font:650 12px/1.4 var(--sans);
  letter-spacing:.16em;
  text-transform:uppercase
}
.hf-char-page .hf-char-utility button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:48px;
  margin:0;
  padding:12px 14px;
  border-radius:8px;
  font:650 14px/1.25 var(--sans);
  text-align:center;
  white-space:normal;
  cursor:pointer
}
.hf-char-page button.hf-char-save{
  border:1px solid var(--hf-char-red);
  background:var(--hf-char-red);
  color:#fff
}
.hf-char-page button.hf-char-print{
  border:1px solid var(--hf-char-beige);
  background:var(--hf-char-beige);
  color:var(--hf-char-ink)
}
.hf-char-page button.hf-char-practice{
  min-height:44px;
  border:1px solid #E7D3C0;
  background:transparent;
  color:#F5EFE6
}
.hf-char-page [data-hf-save-status]{
  display:block;
  margin:0;
  color:#F5EFE6;
  font:.85rem/1.45 var(--sans)
}
.hf-char-page [data-hf-save-status]:empty{display:none}
.hf-char-family{
  margin-top:6px;
  padding-top:12px;
  border-top:1px solid rgba(245,239,230,.35);
  color:#F5EFE6;
  font:.92rem/1.55 var(--sans)
}
.hf-char-family h2{
  margin:0 0 6px;
  color:#F5EFE6;
  font:650 11px/1.4 var(--sans);
  letter-spacing:.14em;
  text-transform:uppercase
}
.hf-char-page p.hf-char-radical{margin:0 0 10px;color:#E7D3C0}
.hf-char-family-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}
.hf-char-family-grid:empty{display:none}
.hf-char-page a.hf-char-family-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
  min-height:72px;
  min-width:44px;
  padding:10px 8px;
  border-radius:8px;
  background:var(--hf-char-card);
  color:var(--hf-char-ink);
  text-align:center;
  text-decoration:none
}
.hf-char-family-card span{
  color:var(--hf-char-ink);
  font:500 clamp(1.35rem,2vw,1.8rem)/1 var(--hf-char-song)
}
.hf-char-family-card small{
  color:var(--hf-char-muted);
  font:italic .8rem/1.2 var(--hf-char-serif)
}
.hf-char-page .hf-char-utility a:not(.hf-char-family-card){
  color:#F5EFE6;
  text-decoration:underline;
  text-underline-offset:3px
}
.hf-char-page button svg,
.hf-char-page .hf-char-utility button svg{width:1.1em;height:1.1em;flex:none}
.hf-char-page button.hf-char-save:hover:not(:disabled),
.hf-char-page button[data-pronunciation]:hover:not(:disabled){background:#9C3E2A;border-color:#9C3E2A}
.hf-char-page button.hf-char-print:hover:not(:disabled){background:#FFF8F2;border-color:#FFF8F2}
.hf-char-page button.hf-char-stroke-toggle:hover:not(:disabled),
.hf-char-page button[data-hf-copy]:hover:not(:disabled){background:#FFF8F2}
.hf-char-page button.hf-char-practice:hover:not(:disabled){background:#FFF8F2;color:var(--hf-char-ink)}
.hf-char-page button:active:not(:disabled){transform:translateY(1px)}
.hf-char-page a.hf-char-component:hover,
.hf-char-derivatives > a:hover,
.hf-char-page a.hf-char-family-card:hover{background-color:#FFF8F2}
.hf-char-page :focus-visible{outline:3px solid var(--hf-char-red);outline-offset:3px}
.hf-char-utility :focus-visible{outline-color:#F5EFE6}
.hf-char-page button:disabled,
.hf-char-page button[disabled],
.hf-char-page .hf-char-strokes .stroke-controls button:disabled{
  cursor:default;
  opacity:1;
  border-color:#CDB9A4;
  background:#E7D3C0;
  color:var(--hf-char-muted);
  transform:none
}
.hf-char-page .hf-char-sentence button[data-pronunciation]:disabled,
.hf-char-page .hf-char-sentence button[data-pronunciation][disabled]{
  width:44px;
  height:44px;
  padding:0;
  border-radius:50%;
  background:#E7D3C0;
  color:transparent;
  font-size:0
}
.hf-char-page .hf-char-sentence button[data-pronunciation]:disabled span,
.hf-char-page .hf-char-sentence button[data-pronunciation][disabled] span{color:var(--hf-char-muted)}
@media(max-width:900px) and (min-width:768px){
  .hf-char-glyph{font-size:92px}
  .hf-char-page h2.hf-char-meaning{font-size:clamp(1.85rem,3vw,2.4rem)}
}
@media(max-width:767px){
  .hf-char-page{width:min(1200px,calc(100% - 32px));padding-top:18px;padding-bottom:48px}
  .hf-char-layout{grid-template-columns:minmax(0,1fr);row-gap:28px}
  .hf-char-utility{position:static;top:auto;max-height:none;overflow:visible}
  .hf-char-hero{flex-direction:column;align-items:stretch;gap:16px}
  .hf-char-glyph-column{width:100%}
  .hf-char-stage{width:min(100%,240px)}
  .hf-char-glyph{font-size:104px}
  .hf-char-page h2.hf-char-meaning{font-size:clamp(2rem,8vw,2.6rem)}
  .hf-char-page select,
  .hf-char-page input,
  .hf-char-page textarea{font-size:16px}
}
@media(max-width:380px){
  .hf-char-family-grid{gap:8px}
  .hf-char-word{padding:12px}
}
@media(prefers-reduced-motion:reduce){
  .hf-char-page,
  .hf-char-page *,
  .hf-char-page *::before,
  .hf-char-page *::after{
    animation:none!important;
    transition:none!important;
    scroll-behavior:auto!important
  }
  .hf-char-page button:active:not(:disabled){transform:none}
}
@media(prefers-contrast:more){
  .hf-char-stage,
  .hf-char-formula,
  .hf-char-word,
  .hf-char-family-card,
  .hf-char-utility{border:2px solid var(--hf-char-ink)}
}
@media(forced-colors:active){
  .hf-char-utility,
  .hf-char-stage,
  .hf-char-word,
  .hf-char-formula,
  .hf-char-family-card,
  .hf-char-page button{
    forced-color-adjust:auto;
    border:1px solid CanvasText;
    background:Canvas;
    color:CanvasText
  }
  .hf-char-page :focus-visible{outline-color:Highlight}
  .hf-char-glyph,
  .hf-char-page h2.hf-char-meaning,
  .hf-char-page strong.hf-char-highlight{color:CanvasText}
}
@media print{
  .hf-char-page{width:100%;max-width:none;padding:0;color:#1E352F;background:#fff}
  .hf-char-layout{display:block}
  body:has(.hf-char-page) :is(.site-header,.site-footer,.skip-link),
  .hf-char-utility{display:none!important}
  .hf-char-page button,
  .hf-char-page [data-hf-copy-status],
  .hf-char-page [data-hf-save-status]{display:none!important}
  .hf-char-breadcrumb a{min-height:0;text-decoration:none}
  .hf-char-page details.hf-char-reference > :not(summary),
  .hf-char-page details.hf-char-strokes > :not(summary){display:block!important}
  .hf-char-page details.hf-char-reference > summary::after,
  .hf-char-page details.hf-char-strokes > summary::after{content:none}
  .hf-char-stage,
  .hf-char-formula,
  .hf-char-word,
  .hf-char-sentence,
  .hf-char-family-card{break-inside:avoid}
  .hf-char-page h2.hf-char-meaning,
  .hf-char-page strong.hf-char-highlight{
    color:#B84A32!important;
    -webkit-print-color-adjust:exact;
    print-color-adjust:exact
  }
}

/* Codex integration after the Grok 4.7 stylesheet handoff: compact page ending. */
.hf-char-page .hf-char-section .hf-char-notes{margin-top:12px;padding-top:0;border-top:0}
.hf-char-footer{border-top:1px solid #C9BBA4;padding:22px 16px 28px;text-align:center;background:#F5EFE6;color:#1E352F;font:13px/1.6 var(--sans)}
.hf-char-footer nav{display:flex;justify-content:center;gap:28px}
.hf-char-footer a{display:inline-flex;align-items:center;min-height:44px;text-decoration:underline;text-underline-offset:3px}
.hf-char-footer p{margin-top:4px}
body:has(.hf-char-page) .pronunciation-tools{max-width:1200px;margin:0 auto 22px;padding:0 16px;font-size:12px;color:#3A4F47}
body:has(.hf-char-page) .pronunciation-tools button{min-height:44px;border:1px solid #1E352F;border-radius:6px;background:#FBF7F0;color:#1E352F;padding:6px 12px}
@media(min-width:901px){.hf-char-glyph{font-size:156px}}
@media print{.hf-char-footer,body:has(.hf-char-page) .pronunciation-tools{display:none!important}}
/* Keep the foundation-character expansion as a compact row of four real results. */
.hf-char-page .hf-char-derivatives{flex:1 1 360px;min-width:0;width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}
.hf-char-page .hf-char-derivatives .hf-char-component{min-width:0;padding-inline:8px;overflow-wrap:anywhere}
.hf-char-page .hf-char-word-meaning{flex:1 1 4rem}
.hf-char-page .hf-char-word button[data-pronunciation]{flex:none;width:44px;height:44px;padding:0;border-radius:50%;font-size:0}
.hf-char-page .hf-char-word button[data-pronunciation] span{font-size:15px}
@media(max-width:767px){.hf-char-page .hf-char-derivatives{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Owner browser comments: pronunciation-row stroke control and fuller teaching definitions. */
.hf-char-page button.hf-char-stroke-toggle{position:static;inset:auto;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;margin:0;border-radius:50%;font-size:24px;line-height:1}
.hf-char-page .hf-char-pronunciation{gap:6px}
.hf-char-page .hf-char-pronunciation button[data-pronunciation],.hf-char-page .hf-char-pronunciation button[data-hf-copy]{padding-inline:10px;font-size:13px}
.hf-char-page .hf-char-definitions{display:grid;gap:7px;list-style:none;margin:16px 0 0;padding:0;color:#1E352F;font:500 15px/1.4 var(--sans)}
.hf-char-page .hf-char-definitions li{margin:0;display:flex;gap:10px;align-items:baseline;overflow-wrap:anywhere}
.hf-char-page .hf-char-definitions li>span{flex:none;color:#B84A32;font:500 11px/1.4 var(--sans);letter-spacing:.06em}
.hf-char-page .hf-char-hook{font-size:1.05rem;line-height:1.6;margin-top:16px;text-wrap:pretty}

/* Hero outline is the completed Hanzi Writer/Arphic glyph, matching stroke playback exactly. */
.hf-char-page .hf-char-glyph{display:grid;place-items:center;width:90%;height:90%;font-size:0;line-height:0}
.hf-char-page .hf-char-glyph-image{display:block;width:100%;height:100%;object-fit:contain}

/* Owner review: readable stroke-order label and a clean character-page ending. */
.hf-char-page .hf-char-pronunciation{display:grid;grid-template-columns:max-content minmax(0,1fr) max-content;gap:6px}
.hf-char-page .hf-char-pronunciation em.hf-char-pinyin,.hf-char-page .hf-char-pronunciation [data-hf-copy-status]{grid-column:1 / -1}
.hf-char-page button.hf-char-stroke-toggle{width:auto;min-width:0;height:auto;min-height:44px;padding:7px 8px;border-radius:999px;font:650 12px/1.3 var(--sans);white-space:normal}
.hf-char-audio-status:not(:empty){width:min(1200px,calc(100% - 32px));margin:0 auto 20px;color:#1E352F;font:13px/1.5 var(--sans)}
