/* These rules apply only to the demonstration pages. The approved Book home is unchanged. */
.book-viewer-page{margin:0!important;padding:0!important;overflow:hidden;background:#eef0f2;height:100vh;height:100dvh}
.book-viewer{position:fixed;inset:0;display:flex;flex-direction:column;min-width:0}
.book-band{flex:0 0 auto;position:relative;z-index:20;background:#fff;box-shadow:0 2px 10px #1f29330b}
.book-viewer .book-toolbar{position:static;display:grid;grid-template-columns:minmax(0,1fr) 300px minmax(0,1fr);align-items:center;gap:16px;padding:10px 18px;border:0;border-bottom:1px solid var(--border-mid);border-radius:0;box-shadow:none;background:#fff;backdrop-filter:none}
.book-brand-nav,.book-options{display:flex;align-items:center;gap:10px;min-width:0}
.book-brand{display:flex;align-items:center;flex-shrink:0;padding:2px 0}
.book-brand img{display:block;width:44px;height:auto}
.book-viewer .book-home{padding:7px 10px}
.book-options{justify-content:flex-end;flex-wrap:wrap;gap:8px 12px}
.book-viewer .book-case-nav{display:flex;flex:none;min-width:0;gap:5px;width:100%;justify-content:center}
.book-viewer .book-case-nav select{width:100%;min-width:0;max-width:none;height:36px;font-size:.77rem;margin:0;padding:6px 24px 6px 9px;background:#fff}
.book-viewer .book-view-nav,.book-viewer .book-device-nav{gap:4px;padding-left:0;border-left:0;margin-left:0}
.book-viewer .book-device-nav{padding-left:12px;border-left:1px solid #cfd2d5}
.book-viewer .book-control{border:1px solid #cfd2d5;border-radius:6px;background:#fff;color:var(--color-text);font-size:.73rem;line-height:1.15;min-height:34px;padding:7px 9px;text-decoration:none}
.book-viewer .book-control:hover{background:#f5f4f2;border-color:#969da2}
.book-viewer .book-control[aria-pressed="true"]{background:#bc002d0e;border-color:#bc002d55;color:var(--color-red)}
.book-viewer .book-arrow{width:32px;min-width:32px;padding:4px;font:18px/1 Arial,sans-serif}
.book-viewer .book-context{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;gap:22px;padding:10px 18px;border-bottom:1px solid var(--border-mid);background:#fff;color:var(--color-muted);min-width:0}
.book-context-left{flex:1;min-width:0}
.book-viewer .book-context h1{font:400 .82rem/1.4 var(--font-main);letter-spacing:0;color:var(--color-text);margin:0}
.book-viewer .book-description{font:400 .77rem/1.65 var(--font-main);color:var(--color-muted);margin:5px 0 0;max-width:950px}
.book-context-right{flex:0 0 auto;display:flex;flex-direction:column;align-items:flex-end;gap:2px;position:relative}
.book-context-meta{display:flex;align-items:center;gap:14px;font-size:.72rem;line-height:1.4}
.book-viewer #concept-position{margin:0;font-variant-numeric:tabular-nums;white-space:nowrap}
.book-ui-languages{display:flex;gap:7px;border-left:1px solid var(--border-mid);padding-left:10px;font-size:.62rem}
.book-ui-languages [aria-current]{color:var(--color-red)}
.book-ui-languages a{color:var(--color-muted)}
.book-ui-languages a:hover{color:var(--color-red)}
.book-rights{position:relative;text-align:right}
.book-rights-trigger{border:0;background:none;color:var(--color-muted);padding:0;font:400 .6rem/1.5 var(--font-main);cursor:pointer;text-align:right}
.book-rights-trigger:hover{color:var(--color-text)}
.book-rights-popup{position:absolute;right:0;top:100%;width:360px;max-width:calc(100vw - 30px);padding:15px 17px;background:#fff;border:1px solid #d2d5d8;border-radius:8px;box-shadow:0 8px 30px #17222026;text-align:left;z-index:30}
.book-viewer .book-rights-popup p{font-size:.72rem;line-height:1.65;color:var(--color-muted);margin:0;max-height:50dvh;overflow:auto}
.book-rights-popup a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.book-viewer #official-link{display:inline-block;margin-top:5px;font-size:.77rem;line-height:1.65;color:var(--color-red)}
.book-viewer .book-stage{flex:1;min-height:0;max-height:none;height:auto;border:0;border-radius:0;padding:8px;overflow:hidden;background:#eef0f2}
.book-viewer .book-stage iframe,.book-viewer .book-reference{max-width:none}
.book-viewer .book-stage.is-mobile .book-reference{max-width:390px}
@media(max-width:1190px){.book-viewer .book-toolbar{grid-template-columns:1fr 1fr;gap:8px 16px}.book-brand-nav{grid-column:1;grid-row:1}.book-options{grid-column:2;grid-row:1}.book-viewer .book-case-nav{grid-column:1/-1;grid-row:2;max-width:560px;justify-self:center}.book-viewer .book-case-nav select{font-size:.8rem}}
@media(max-width:650px){.book-viewer .book-toolbar{grid-template-columns:1fr;padding:8px 10px;gap:7px}.book-brand-nav{grid-column:1;grid-row:1;justify-content:flex-start}.book-brand img{width:40px}.book-viewer .book-case-nav{grid-column:1;grid-row:2;max-width:none}.book-options{grid-column:1;grid-row:3;justify-content:space-between;gap:6px 8px}.book-viewer .book-control{font-size:.66rem;min-height:30px;padding:6px 5px}.book-viewer .book-case-nav select{height:32px;font-size:.73rem}.book-viewer .book-arrow{min-height:30px;font-size:16px}.book-viewer .book-view-nav,.book-viewer .book-device-nav{gap:3px}.book-viewer .book-device-nav{padding-left:8px}.book-viewer .book-context{padding:8px 10px;gap:12px}.book-viewer .book-context h1{font-size:.73rem;line-height:1.35}.book-viewer .book-description{font-size:.7rem;line-height:1.6}.book-context-right{max-width:105px}.book-context-meta{gap:7px;font-size:.63rem}.book-ui-languages{font-size:.58rem;gap:4px;padding-left:6px}.book-rights-trigger{font-size:.55rem;line-height:1.25}.book-viewer .book-stage{padding:4px}.book-viewer #official-link{font-size:.7rem;line-height:1.6}}
@media(max-width:360px){.book-viewer .book-control{font-size:.6rem;padding:6px}.book-viewer .book-home{font-size:.69rem}.book-viewer .book-context{gap:8px}.book-context-right{max-width:95px}}
/* On small screens, let the permanent description use the full available width. */
@media(max-width:650px){
 .book-viewer .book-context{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:4px 12px}
 .book-context-left,.book-description-panel{display:contents}
 .book-viewer .book-description-panel[hidden]{display:none}
 .book-description-panel h1{grid-column:1;grid-row:1}
 .book-context-right{grid-column:2;grid-row:1;justify-self:end}
 .book-viewer .book-description{grid-column:1/-1;grid-row:2;margin:0;max-width:none}
 .book-viewer #official-link{grid-column:1/-1;grid-row:3;justify-self:start;margin-top:0}
}
@media(max-width:360px){.book-viewer .book-context{grid-template-columns:minmax(0,1fr) 95px;column-gap:8px}}
