/* Wonder refinement: large, level navigation; badge artwork stays shared. */
body[data-design=journey]{font-size:18px}#demo{position:fixed;bottom:0;left:0;right:0;z-index:30;min-height:30px;font-size:12px;padding:5px 18px}#demo button{font-size:12px}#header{position:fixed;inset:0 auto 30px 0;width:194px;height:auto;padding:28px 16px;background:#e5efe3;border-right:1px solid var(--line);display:flex;flex-direction:column;align-items:stretch;gap:35px}.brand{font-size:23px;line-height:1.12;justify-content:center}.brand-symbol{font-size:34px}nav{margin:0;display:grid;gap:16px}nav button{min-height:94px;background:#fff9ee;border:2px solid #c1d0c1;border-bottom-width:5px;border-radius:18px;display:grid;place-items:center;gap:2px;font-size:20px;font-weight:750;padding:12px 5px}nav button>span{font-size:30px;line-height:1}nav button.active{background:var(--accent);color:white;border-color:#ab3a1c}.sidebar-note{margin-top:auto;text-align:center;color:var(--muted)}#app{margin-left:194px;max-width:none;padding:25px 32px 65px}footer{display:none}h1{font-size:44px;letter-spacing:-.04em;margin-bottom:12px}.choose-page{max-width:850px;margin:12px auto;text-align:center}.choose-page>p{font-size:23px;margin-bottom:22px}.year-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;max-width:700px;margin:auto}.year-grid button{display:flex;align-items:center;justify-content:space-between;padding:20px 28px;min-height:120px;border:2px solid #bbd4c1;border-bottom-width:6px;background:#e5efe3;border-radius:22px}.year-grid button:nth-child(4n+3),.year-grid button:nth-child(4n+4){background:#fce8c4;border-color:#e2cd9f}.year-grid strong{font-size:46px}.year-grid span{font-size:19px}.primary,.secondary{font-size:21px;min-height:62px}body[data-design=journey] .hero{min-height:calc(100vh - 125px);border:0;gap:0}body[data-design=journey] .hero h1{font-size:clamp(46px,5.8vw,78px)}body[data-design=journey] .hero-art{transform:none;border-radius:45% 45% 22% 22%;margin:20px 0}.hero .actions{flex-direction:column;align-items:start;gap:15px}.hero .lead{font-size:25px}.identity-steps{display:flex;justify-content:center;gap:25px;font-size:22px;margin:22px 0}.identity-steps b{color:#738779}.identity-steps .current{color:var(--accent)}.class-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.class-grid button,.number-grid button{font-size:27px;min-height:62px;border:2px solid #c0d5c4;background:#fff;border-bottom-width:4px}.number-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}.selection-bar{display:flex;justify-content:center;align-items:center;gap:30px;margin:15px 0 22px}.selection-bar b{font-size:28px}.choose-page .demo-note{font-size:15px;margin:12px 0;color:#64776b}.reader-heading{padding:0;gap:15px}.reader-heading h1{font-size:30px;margin:0}.reader-heading small{font-size:17px;font-weight:500;margin-left:12px;color:var(--muted)}.reader-heading button{font-size:17px}.reader-layout{grid-template-columns:210px minmax(0,1fr);gap:20px;margin-top:14px}#book-index{max-height:calc(100vh - 145px);position:static;padding-right:4px}#book-index button{font-size:16px;min-height:52px;gap:9px;padding:10px 8px;border-bottom:1px solid var(--line);line-height:1.3}#book-index .selected{background:#e5efe3;border-radius:10px;font-weight:700}.reader-stage{padding:12px;background:#e5efe3;border-radius:18px;align-self:start}.reader-controls{gap:12px;margin-bottom:12px;font-size:17px}.reader-controls button{min-width:52px;min-height:48px;padding:5px 12px;font-size:24px}.reader-controls label{font-size:15px}.collection-head{padding:0 0 18px}.collection-head h1{font-size:40px}.collection-head .eyebrow{font-size:17px;letter-spacing:.03em;margin-bottom:8px}.collection-score span{font-size:16px}.collection-tools{display:block;padding:15px 0;background:var(--bg)}.months{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;overflow:visible;max-width:980px;margin:auto}.months button{border:2px solid #c1d0c1;background:white;font-size:20px;font-weight:700;min-height:55px;padding:10px}.legend{font-size:15px;justify-content:center;flex-wrap:wrap;gap:12px 25px}body[data-design=journey] .topic-list{border:0;padding:0}body[data-design=journey] .topic-row:before{display:none}body[data-design=journey] .badge-cell:nth-child(n){padding-top:24px}.badge-label{font-size:13px;letter-spacing:0}.badge-cell>p{font-size:15px}.topic-heading .eyebrow{font-size:13px}.topic-heading h2{font-size:29px}.text-button{font-size:16px}.secret b{font-size:14px}.secret small{font-size:12px}.badge-name{font-size:11px}.demo-controls{font-size:14px}[hidden]{display:none!important}
@media(max-width:850px){#header{width:150px;padding:20px 10px}.brand{font-size:20px}nav button{font-size:17px;min-height:87px}#app{margin-left:150px;padding:20px 20px 60px}.reader-layout{grid-template-columns:150px minmax(0,1fr);gap:12px}#book-index button{font-size:14px}.year-grid button{padding:20px;min-height:110px}.year-grid span{font-size:16px}.number-grid{grid-template-columns:repeat(6,1fr)}.months button{font-size:17px}.badge-label{flex-direction:column}.topic-row{padding:16px}.identity-steps{font-size:18px;gap:12px}}
@media(max-width:600px){#header{width:108px;padding:20px 6px;gap:25px}.brand{font-size:16px}.brand-symbol{display:none}nav{display:grid;width:auto;order:initial}nav button{font-size:15px;min-height:80px}#app{margin-left:108px;padding:16px 12px 60px}h1{font-size:33px}.year-grid{gap:10px}.year-grid button{flex-direction:column;min-height:100px;padding:12px}.year-grid strong{font-size:35px}.year-grid span{font-size:13px}.class-grid{grid-template-columns:repeat(3,1fr)}.number-grid{grid-template-columns:repeat(4,1fr);gap:8px}.identity-steps{display:grid;gap:6px}.months{grid-template-columns:repeat(2,1fr)}.reader-layout{display:flex;flex-direction:column-reverse}.reader-heading{flex-wrap:wrap}.reader-heading h1{font-size:25px}.reader-heading small{display:none}#book-index{max-height:220px;width:100%}.reader-stage{width:100%}.reader-controls{gap:5px;font-size:14px}.reader-controls label{display:none}.collection-score{display:none}.hero .actions{align-items:stretch}.hero-art{max-width:280px}.hero h1{font-size:45px!important}.primary,.secondary{font-size:18px}.collection-head h1{font-size:32px}.legend{justify-content:start}.badge-grid{grid-template-columns:1fr}}

/* Shared home centerline and confirmed SMILE classes, 15 Sep 2026. */
#header nav{position:absolute;top:50%;left:16px;right:16px;transform:translateY(-50%)}
body[data-view=home] #app{padding-top:0;padding-bottom:30px}
body[data-design=journey] .hero{min-height:calc(100dvh - 30px);max-width:1400px;margin:auto;align-items:center;grid-template-columns:1.1fr 1fr;gap:24px}
body[data-design=journey] .hero-art{margin:0;max-width:580px;width:100%;justify-self:center}
body[data-design=journey] .hero-copy{padding:0;text-align:center}
body[data-design=journey] .hero h1{font-family:inherit;font-size:clamp(30px,3.6vw,58px);font-weight:750;line-height:1.16;letter-spacing:-.045em;margin-bottom:22px}
.hero h1 span{display:block;white-space:nowrap}.hero h1 span:first-child{font-size:1.3em;margin-bottom:8px}
.hero .lead{margin:0 auto}.hero .actions{align-items:center;margin:28px 0 0}
.year-grid button:nth-child(1),.year-grid button:nth-child(2){background:#e5efe3;border-color:#bbd4c1}
.year-grid button:nth-child(3),.year-grid button:nth-child(4){background:#fce8c4;border-color:#e2cd9f}
.year-grid button:nth-child(5),.year-grid button:nth-child(6){background:#e8e4f6;border-color:#c7bcdf}
.identity-page h2{font-size:28px;margin:18px 0 24px}.identity-steps{font-size:20px}
.smile-chooser{max-width:720px;margin:35px auto 0}.smile-letters{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;position:relative;z-index:1}
.smile-letters button{font-size:clamp(32px,5vw,62px);font-weight:800;min-height:112px;padding:12px 0;border:2px solid #a7c6b1;border-bottom-width:6px;background:#e5efe3;border-radius:24px}
.smile-letters button:nth-child(2){background:#fce8c4;border-color:#ddcda1}.smile-letters button:nth-child(3){background:#e8e4f6;border-color:#c7bcdf}.smile-letters button:nth-child(4){background:#f9e2dc;border-color:#e0b9b0}.smile-letters button:nth-child(5){background:#dff0f2;border-color:#b0d4d6}
.class-smile{height:190px;position:relative;margin:20px 8% 0}.class-smile span{position:absolute;inset:0 0 15px;border-bottom:12px solid #d87535;border-radius:0 0 50% 50%;transform:none}.class-smile i{position:absolute;top:20px;width:15px;height:22px;background:#34584b;border-radius:50%;left:32%}.class-smile i:nth-child(2){left:auto;right:32%}
@media(max-width:850px){#header nav{left:10px;right:10px}.smile-letters{gap:10px}.smile-letters button{min-height:92px}.class-smile{height:160px}.identity-steps{font-size:18px}body[data-design=journey] .hero{gap:18px}}
@media(max-width:600px){#header nav{left:6px;right:6px}body[data-design=journey] .hero{grid-template-columns:1fr;gap:25px;padding:40px 0;min-height:calc(100dvh - 30px)}body[data-design=journey] .hero h1{font-size:clamp(22px,5.3vw,32px)!important}.hero .actions{align-items:stretch}.smile-letters{gap:5px}.smile-letters button{min-height:66px;font-size:30px;border-radius:12px}.class-smile{height:110px;margin-top:15px}.class-smile span{border-bottom-width:8px}.class-smile i{height:14px;width:10px;top:5px}.identity-steps{display:flex;font-size:13px;gap:10px}.identity-page h2{font-size:23px}.selection-bar{gap:10px}}
.english-dates{background:#e5efe3;border-radius:18px;padding:20px;margin-top:18px;text-align:center}.english-dates h2{font-size:25px;margin-bottom:14px}.english-dates>div{display:flex;justify-content:center;flex-wrap:wrap;gap:12px}.english-dates span{background:white;border-radius:12px;padding:10px 15px;font-size:19px}.english-dates b{color:#ad431f}.english-dates p{margin:15px 0 0;font-size:18px}.demo-calendar{padding:15px;border:1px dashed var(--line);border-radius:12px}.demo-calendar button{margin:6px}.demo-calendar .selected{background:var(--accent);color:white}.earned-card{text-align:center}.earned-card .badge-scene{width:min(400px,75vw);margin:auto}.earned-card h2{margin:0;font-size:36px}@media(max-width:600px){.badge-grid{grid-template-columns:1fr!important}}

/* Compact badge collection with generated UI artwork. */
body[data-view=badges] #app{padding-top:14px}
.collection-head{position:relative;display:flex;align-items:center;min-height:56px;padding:0 0 10px}
.collection-head h1{font-size:28px;margin:0}.collection-head .eyebrow{font-size:16px;margin:4px 0 0}
#change-student{position:absolute;left:50%;transform:translateX(-50%);min-height:44px;padding:8px 16px}
.collection-tools{display:flex;align-items:center;gap:16px;padding:8px 0;position:static}
.months{flex:1;margin:0;max-width:none;gap:6px;grid-template-columns:repeat(4,minmax(0,1fr))}
.months button{font-size:17px;min-height:42px;padding:6px 8px}
.collection-score{display:flex;flex-direction:column;align-items:center;min-width:110px}
.collection-score strong{font-size:30px;line-height:1.1}.collection-score small{font-size:20px}.collection-score span{font-size:14px}
.english-dates{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 16px;padding:8px 12px;margin:2px 0 12px;border-radius:12px}
.english-dates h2{font-size:16px;margin:0}.english-dates>div{gap:7px}.english-dates span{font-size:15px;padding:4px 8px;border-radius:6px}
body[data-design=journey] .topic-row{padding:10px 16px;margin:0 0 12px;border-radius:18px}
.topic-heading{align-items:center;margin:0;padding:0;gap:10px}.topic-heading h2{font-size:23px;margin:0}.topic-heading h2 span{font-size:16px;font-weight:500;white-space:nowrap;color:var(--muted)}
.topic-heading .text-button{font-size:15px;padding:6px 10px}
.badge-grid{gap:10px}
body[data-design=journey] .badge-cell:nth-child(n){padding:5px 0 0;min-width:0}
.badge-label{display:block;text-align:center;font-size:14px;font-weight:750;margin:0}
.badge-button{display:block;width:100%;max-width:180px;margin:0 auto;padding:0}
.badge-button .badge-scene{width:100%;margin:0}
.badge-cell>p{font-size:13px;margin:0;text-align:center}
.demo-controls{font-size:12px;margin:2px 0 0;padding:0;border:0}.demo-controls summary{opacity:.65}
.demo-calendar{margin-top:12px;font-size:14px}
.generated-lock{width:42%;height:58%;object-fit:contain;filter:drop-shadow(0 3px 4px #75614130)}
.secret{pointer-events:none}
.smile-chooser{--smile-gap:14px}.smile-letters{gap:var(--smile-gap)}
.class-smile{height:auto;position:relative;margin:12px calc((100% - 4 * var(--smile-gap))/10) 0}
.class-smile img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.smile-options{display:flex;justify-content:center;gap:10px;margin-top:22px}
.smile-options button{min-height:44px;padding:8px 16px}.smile-options button[aria-pressed=true]{background:#dff0e6;border:2px solid #548573}
@media(min-width:1250px){.months{grid-template-columns:repeat(8,minmax(0,1fr))}}
@media(max-width:850px){.smile-chooser{--smile-gap:10px}.badge-button{max-width:180px}.topic-heading h2{font-size:21px}.collection-tools{gap:10px}.collection-score{min-width:95px}}
@media(max-width:600px){.smile-chooser{--smile-gap:5px}.collection-head{display:block;padding-bottom:55px}#change-student{bottom:5px;white-space:nowrap}.months{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-score{display:flex;min-width:75px}.collection-score strong{font-size:25px}.collection-score span{font-size:12px}.badge-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:2px}.badge-grid:has(>.badge-cell:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))!important}.topic-heading{flex-wrap:wrap}.topic-heading h2 span{font-size:14px}.badge-label{font-size:11px}.badge-name{font-size:8px}}

/* Keep badge numbers attached to their last word; widen short orphaning labels. */
.badge-name-tail{white-space:nowrap}.badge-name.badge-name-wide{left:18%;right:18%}

/* Keep the emblem centre fixed independently of grid track sizing and rocking. */
body[data-design=journey] .hero-art{aspect-ratio:1;position:relative;align-self:center}
body[data-design=journey] .hero-art>.badge-scene{position:absolute;inset:0;width:100%;height:100%;max-width:none;margin:0;transform:none}
.hero-art .badge-carrier{transform-origin:50% 50%;animation:none}
#demo{min-height:52px;font-size:18px;padding:2px 18px calc(2px + env(safe-area-inset-bottom));gap:16px}
#demo button,#demo a{font-size:18px;min-height:44px;display:inline-flex;align-items:center;padding:8px}
#header{bottom:calc(52px + env(safe-area-inset-bottom))}
#app{padding-bottom:calc(85px + env(safe-area-inset-bottom))}
@media(max-width:600px){#demo{gap:2px;padding-inline:6px;font-size:16px}#demo>span{display:none}#demo button,#demo a{font-size:16px;padding:6px}body[data-design=journey] .hero-art{max-width:280px}}

/* The public reader fits the viewport; its topic menu has its own scroll region. */
body.reader-open{height:100dvh;overflow:hidden}
body.reader-open #app{height:calc(100dvh - 52px - env(safe-area-inset-bottom));padding:8px 16px;display:flex;flex-direction:column;min-height:0}
body.reader-open .reader-heading{flex:none;min-height:48px}
.reader-heading-actions{display:flex;gap:8px}.reader-heading-actions button{min-height:44px;padding:8px 12px}
body.reader-open .reader-layout{flex:1;min-height:0;margin-top:8px;grid-template-columns:210px minmax(0,1fr)}
body.reader-open .reader-stage{height:100%;min-height:0;padding:8px;overflow:hidden}
body.reader-open #book-index{height:100%;max-height:none;overflow-y:scroll;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:auto;scrollbar-color:#6b8d7b #dcebe3;padding-right:8px}
#book-index::-webkit-scrollbar{width:10px}#book-index::-webkit-scrollbar-track{background:#dcebe3;border-radius:10px}#book-index::-webkit-scrollbar-thumb{background:#6b8d7b;border-radius:10px;border:2px solid #dcebe3}
.topic-scroll-hint{position:sticky;top:0;background:var(--bg);padding:6px 0;font-size:15px;font-weight:700;margin:0;z-index:1}
#book-index button{border:2px solid #b9ccbf;border-radius:12px;background:#fffdf8;margin-bottom:8px;padding:12px;min-height:56px;box-shadow:0 2px 0 #b9ccbf}
#book-index button.selected{background:#dcefe1;border:3px solid #347354;color:#214d38;box-shadow:none}
#reader-fullscreen{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));border:0;border-radius:0;background:#dcebe3;color:#203e36;overflow:hidden}
#reader-fullscreen[open]{display:flex;flex-direction:column;gap:6px}.fullscreen-toolbar{display:flex;align-items:center;gap:10px;flex:none}.fullscreen-toolbar button{min-width:44px;min-height:44px;padding:8px 12px;background:#fffdf8;color:#203e36}.fullscreen-toolbar #reader-position{margin-left:auto;white-space:nowrap}#reader-help{margin:0;text-align:center;font-size:14px;flex:none}#fullscreen-paper{width:100%;flex:1;min-height:0;border:0}
@media(max-width:600px){body.reader-open #app{padding:6px}body.reader-open .reader-heading h1{font-size:20px}.reader-heading-actions button{font-size:14px;padding:6px}.reader-heading-actions{gap:4px}body.reader-open .reader-layout{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 145px;gap:8px}body.reader-open .reader-stage{grid-row:1}body.reader-open #book-index{grid-row:2}.fullscreen-toolbar{gap:4px;flex-wrap:wrap}.fullscreen-toolbar button{font-size:14px;padding:6px}.fullscreen-toolbar #reader-position{font-size:14px}}

.topic-menu{position:relative;min-height:0;max-height:calc(100dvh - 145px)}.topic-menu #book-index{height:100%;padding-right:24px;scrollbar-width:none}.topic-menu #book-index::-webkit-scrollbar{display:none}#topic-scroll{position:absolute;right:0;top:38px;bottom:4px;height:calc(100% - 42px);width:22px;padding:0;border:0;background:transparent;writing-mode:vertical-lr;direction:ltr;accent-color:#347354;cursor:ns-resize;touch-action:none}
body.reader-open .topic-menu{height:100%;max-height:none}body.reader-open .topic-menu #book-index{padding-right:24px}
@media(max-width:600px){body.reader-open .topic-menu{grid-row:2}body.reader-open .topic-menu #book-index{max-height:none}}

/* Final approved trio: horizontal when it fits, vertically stacked on phones. */
.topic-row{container-type:inline-size}
@container (max-width:540px){body[data-design=journey] .badge-grid{grid-template-columns:minmax(0,1fr)!important;gap:20px;padding:12px 0 18px}body[data-design=journey] .badge-cell{display:flex;flex-direction:column;align-items:center}body[data-design=journey] .badge-button{max-width:230px;width:100%}body[data-design=journey] .badge-label{font-size:15px}body[data-design=journey] .badge-name{font-size:11px}}

/* Compact flat reader. Navigation occupies its own gutters, never the booklet. */
#reader-fullscreen{padding:6px max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))}
#reader-fullscreen .fullscreen-toolbar{display:flex;flex-wrap:nowrap;gap:6px;justify-content:space-between;min-height:44px}
#reader-fullscreen .fullscreen-toolbar button{font-size:14px;min-height:44px;padding:6px 10px;white-space:nowrap}
#reader-fullscreen .fullscreen-stage{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:2px;flex:1;min-height:0;width:100%}
#reader-fullscreen.reader-topic-only .fullscreen-stage{grid-template-columns:minmax(0,1fr)}
#reader-fullscreen #fullscreen-paper{display:block;width:100%;height:100%;min-width:0;min-height:0;border:0}
#reader-fullscreen .reader-side{width:44px;min-width:44px;height:56px;min-height:44px;padding:0;border-radius:14px;background:#fffdf8;color:#203e36;font-size:34px;line-height:1}
#reader-fullscreen .reader-side:disabled{opacity:.32}
.reader-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#reader-fullscreen .reader-practice{color:#66470a;background:#fff1c9;border:1px solid #936b1a;border-radius:9px;padding:4px 8px;min-height:44px;display:flex;align-items:center;box-sizing:border-box;font-size:12px;font-weight:700;text-decoration:underline}

/* Compact navigation and readable month choices, including narrow phones. */
#header{z-index:31}
#header .sidebar-toggle{position:absolute;top:50%;left:100%;transform:translateY(-50%);width:28px;min-width:28px;height:64px;padding:0;border:1px solid #b5cbb9;border-left:0;border-radius:0 14px 14px 0;background:#e5efe3;color:#203e36;font-size:32px;box-shadow:2px 2px 3px #203e3612}
body.sidebar-collapsed #header{width:0;padding:0;border:0}
body.sidebar-collapsed #header>:not(.sidebar-toggle){visibility:hidden;pointer-events:none}
body.sidebar-collapsed #app{margin-left:0;padding-left:34px}
.months{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));min-width:0}
.months button{white-space:nowrap}
.topic-heading .topic-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.topic-actions .text-button{margin:0;white-space:nowrap}
@media(max-width:850px){
 .collection-tools{flex-direction:column;align-items:stretch}
 .months{width:100%;flex:auto;grid-template-columns:repeat(auto-fit,minmax(96px,1fr))}
 .months button{font-size:16px;padding:6px;min-height:44px}
 .collection-score{display:flex;align-items:center;min-width:0}
 .topic-heading{flex-direction:column;align-items:flex-start}
 .topic-heading .topic-actions{flex-direction:column;align-items:flex-start;gap:2px}
}
#reader-fullscreen.reader-browse .fullscreen-stage{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:6px}
#reader-fullscreen.reader-browse #fullscreen-paper{flex:0 1 auto;width:100%;height:auto;aspect-ratio:794 / 1123;max-height:calc(100% - 50px)}
#reader-fullscreen .reader-page-controls{display:flex;justify-content:center;gap:24px;flex:none;height:44px}
#reader-fullscreen .reader-page-controls .reader-side{width:64px;height:44px;min-height:44px}

body.video-demo-clean #demo{visibility:hidden}
#admin-student-list{max-height:480px;overflow-y:auto}


/* The topic itself opens its booklet page; keep its date close below. */
.topic-row .topic-heading{display:block}
.topic-title-block h2{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:6px;row-gap:0}
.topic-title-block .topic-title-link{appearance:none;border:0;border-radius:4px;background:none;box-shadow:none;min-height:0;min-width:0;margin:0;padding:0;font:inherit;font-weight:inherit;letter-spacing:inherit;line-height:1.25;color:#ad421f;text-align:left;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;cursor:pointer}
.topic-title-block .topic-title-link:focus-visible{outline:3px solid #267e73;outline-offset:3px}
.topic-title-block .topic-date{margin:3px 0 0;font-size:14px;line-height:1.3;color:#53685d}

/* Keep the same six actions visible across public and staff surfaces. */
#demo>a{margin-left:0}#demo>span{margin-right:auto}#demo{justify-content:flex-end}
@media(max-width:760px){
 #demo{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:0 4px;padding:2px 8px calc(2px + env(safe-area-inset-bottom));min-height:92px}
 #demo>span{display:none}#demo a,#demo button{justify-content:center;font-size:14px;letter-spacing:0;padding:6px 4px;min-height:44px}
 #header{bottom:calc(92px + env(safe-area-inset-bottom))}
 #app{padding-bottom:calc(125px + env(safe-area-inset-bottom))}
 body.reader-open #app{height:calc(100dvh - 92px - env(safe-area-inset-bottom))}
}
