/* This file is the source of truth for book CSS. It is published like system modules
and when running locally, it overwrites what ever is imported from the blog */
/* AvailaBooks brand fonts (brand.md §3): Alegreya for headings and reading text, Alegreya Sans for UI.
   Imported here so books already published with older font links pick them up too. */
@import url("https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,400;0,500;0,700;1,400&family=Alegreya+Sans:ital,wght@0,400;0,500;0,700;1,400&display=swap");
:root {
--font-zoom: 1;
/* Brand tokens (brand.md §2), the same palette as app.availabooks.org and availabooks.org. */
--avb-ink: #1B2A4A;
--avb-ai: #C2662D;
--avb-ai-text: #A4521F;
--avb-tld: #7A8499;
--avb-navy-ground: #16233D;
--font-serif: "Alegreya", Georgia, "Times New Roman", serif;
--font-sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
--page-bg: #FFFFFF;
--surface: #ffffff;
--surface-soft: #EDEFF3;
--surface-muted: #DCE0E7;
--text: #1A1F2B;
--text-muted: #5D6575;
--heading: var(--avb-ink);
/* Navy is the primary action color. */
--accent: var(--avb-ink);
--accent-strong: var(--avb-navy-ground);
--accent-soft: color-mix(in srgb, var(--avb-ink) 10%, #FFFFFF);
/* Links: navy ink text (14:1 on white) marked by a copper underline, the brand's accent. Thin copper text was
hard to read at body size. */
--link: var(--avb-ink);
--link-strong: var(--avb-navy-ground);
--link-underline: var(--avb-ai);
--link-soft: color-mix(in srgb, var(--avb-ai) 12%, #FFFFFF);
--danger: #b91c1c;
--warning: #fef3c7;
--border: #DCE0E7;
/* Edges of form fields: at least 3:1 against white and --page-bg (WCAG 1.4.11). */
--field-border: #7b8597;
--shadow-sm: 0 1px 2px color-mix(in srgb, var(--avb-navy-ground) 8%, transparent);
--shadow-md: 0 12px 30px color-mix(in srgb, var(--avb-navy-ground) 12%, transparent);
--shadow-lg: 0 24px 60px color-mix(in srgb, var(--avb-navy-ground) 16%, transparent);
--radius-sm: 0.3rem;
--radius-md: 0.8rem;
--radius-lg: 1.35rem;
}
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
min-height: 100vh;
font-family: var(--font-sans);
font-weight: 400;
font-style: normal;
font-size: calc(1rem  * var(--font-zoom));
line-height: 1.72;
color: var(--text);
background: var(--page-bg);
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
}
.module{
display:none
}
h1:has(span.header-section-number){
display:none;
}
.material-symbols-outlined{
font-size: calc(1rem  * var(--font-zoom));
cursor:pointer;
user-select:none;
}
summary::marker {
color: var(--text-muted);
}
#msg-galley{
position:fixed;
top:0;
right:0;
height:100vh;
min-width:calc(20rem  * var(--font-zoom));
max-width:50%;
/* Above message()'s modal .msg-overlay (z-index 9998) */
z-index:9999;
background-color: transparent;
pointer-events: none;
padding: 1rem 1rem 0 0;
font-family: var(--font-sans);
font-optical-sizing: auto;
font-weight: 400;
font-style: normal;
font-variation-settings: "width" 100;
}
.msg-close{
position:absolute;
top:calc(3px  * var(--font-zoom));
right:calc(3px  * var(--font-zoom));
display: inline-flex;
align-items: center;
justify-content: center;
width: 1.25rem;
height: 1.25rem;
padding: 0;
background-color:var(--danger);
color: white;
font-weight:700;
font-size:calc(.7rem  * var(--font-zoom));
border-radius: 999px;
cursor:pointer;
}
.msg-dialog{
position: relative;
background-color:var(--surface);
margin-bottom:.75rem;
pointer-events: auto;
border-radius:var(--radius-sm);
border: 1px solid var(--border);
box-shadow: var(--shadow-md);
overflow: hidden;
}
.msg-button-{
margin: 0 .5rem .5rem 0;
}
.msg-button-bar{
background-color:var(--surface-soft);
text-align:center;
padding:.75rem;
border-top: 1px solid var(--border);
}
.msg-title{
background:var(--accent);
color:white;
font-weight:700;
padding:.55rem 2rem .55rem .85rem;
}
.msg-message{
background-color:var(--surface);
padding: .85rem;
}
#page-data{
display:none
}
.toast{
position:fixed;
bottom:2rem;
left:50%;
transform:translateX(-50%);
z-index:9999;
background-color:purple;
color:#fff;
padding:.7rem 1.25rem;
border-radius:var(--radius-md);
box-shadow:var(--shadow-lg);
}
.toast.success{
background-color:#15803d;
}
.toast.error{
background-color:var(--danger);
}
#menu{
top:0;
left:-100px;
position:fixed;
display:none;
background:var(--surface);
padding:0;
z-index:11;
transition: left .25s ease, box-shadow .25s ease;
height:100vh;
min-width:min(22rem, 88vw);
max-width:75vw;
overflow: auto;
border-right: 1px solid var(--border);
box-shadow: var(--shadow-lg);
}
#book-data{display:none}
#menu-content{
padding:1rem 1.25rem 2rem;
}
.menu-button{
display:inline-flex;
align-items:center;
justify-content:center;
min-width:2.4rem;
height:2.4rem;
padding:0 .6rem;
cursor:pointer;
color:var(--text-muted);
border-radius:999px;
transition: background .18s ease, color .18s ease, transform .18s ease;
vertical-align:middle;
}
.menu-button:hover{
background:var(--accent-soft);
color:var(--accent-strong);
transform: translateY(-1px);
}
/* Icon controls are real <button>s so keyboards and screen readers can use
   them; strip the browser's button look so they keep their icon styling.
   :where() keeps this at zero specificity, so every rule above and below wins. */
:where(button.menu-button, button.tool, button.tool-row, button.msg-close){
border:0;
background:transparent;
margin:0;
}
:where(button.tool){
padding-top:0;
padding-bottom:0;
}
:where(button.tool-row){
display:block;
padding:0;
font:inherit;
color:inherit;
text-align:left;
}
.entry-header > .open-menu-button{
flex:0 0 auto;
margin-right:.4em;
}
/* Keyboard focus is always visible on reader controls. */
.entry-header :focus-visible,
#menu :focus-visible,
.account-menu :focus-visible,
.msg-dialog :focus-visible,
button.nav:focus-visible{
outline:3px solid var(--accent);
outline-offset:2px;
}
/* Focus moved by script after a click or tap (see focusFromScript in system.js): no ring.
   :is(#menu, html) lifts it above the "#menu :focus-visible" rule. */
:is(#menu, html) .pointer-focus:focus,
:is(#menu, html) .pointer-focus:focus-visible{
outline:none;
}
/* Site themes may give every <button> a border; drop it on the round icon buttons.
   :is() makes this beat a bare "button" rule; none of these classes set a border. */
:where(button):is(.menu-button, .tool, .tool-row, .msg-close){
border:0;
}
/* The header fades out on scroll; bring it back while something in it has focus. */
.dim-header:focus-within{
opacity:1;
}
/* Hidden visually, still read by screen readers. */
.sr-only{
position:absolute;
width:1px;
height:1px;
padding:0;
margin:-1px;
overflow:hidden;
clip:rect(0,0,0,0);
white-space:nowrap;
border:0;
}
.login-button.logged-in{
background:#2e7d32;
color:#fff;
}
/* Signed in with a profile avatar: the picture replaces the person icon. */
.login-button.has-avatar{
background:none;
padding:0;
}
.login-button .login-avatar{
display:block;
width:2.1rem;
height:2.1rem;
border-radius:999px;
object-fit:cover;
box-shadow:0 0 0 2px var(--surface), 0 0 0 3px var(--border);
}
/* Account menu opened from the avatar (system.js handleLogin). */
.account-menu{
position:fixed;
z-index:1000;
min-width:11rem;
padding:.35rem;
background:var(--surface);
border:1px solid var(--border);
border-radius:var(--radius-md);
box-shadow:var(--shadow-md);
}
.account-menu-item{
display:flex;
align-items:center;
gap:.6rem;
padding:.5rem .75rem;
border-radius:.5rem;
color:var(--text);
text-decoration:none;
font-size:.95rem;
}
.account-menu-item:hover,
.account-menu-item:focus-visible{
background:var(--accent-soft);
color:var(--accent-strong);
}
.account-menu-item .material-symbols-outlined{
font-size:1.2rem;
}
.account-menu-user{
padding:.35rem .75rem .55rem;
margin-bottom:.25rem;
border-bottom:1px solid var(--border);
max-width:16rem;
}
.account-menu-name,
.account-menu-email{
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}
.account-menu-name{
color:var(--text);
font-weight:600;
}
.account-menu-email{
color:var(--text-muted);
font-size:.85rem;
}
.account-menu-divided{
margin-top:.25rem;
border-top:1px solid var(--border);
border-radius:0 0 .5rem .5rem;
}
.menu-header{
top:0;
position:sticky;
background:var(--surface);
opacity:1;
margin:0;
padding:.45rem .6rem;
border-bottom:1px solid var(--border);
box-shadow: var(--shadow-sm);
z-index:1;
}
#book-title{
font-weight:700;
letter-spacing:.02em;
}
#menu-courses{
margin:0 0 1.25rem;
padding-bottom:1rem;
border-bottom:1px solid var(--border);
}
#menu-courses .menu-courses-picker{
margin:0;
}
#menu-courses .menu-courses-current{
display:flex;
align-items:center;
gap:.45rem;
list-style:none;
cursor:default;
font-size:.95rem;
font-weight:700;
line-height:1.3;
color:var(--heading);
padding:0;
}
#menu-courses details.menu-courses-picker > .menu-courses-current{
cursor:pointer;
}
#menu-courses .menu-courses-current::-webkit-details-marker{
display:none;
}
#menu-courses .menu-courses-current-name{
flex:1 1 auto;
min-width:0;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
}
#menu-courses .menu-courses-current .menu-course-books{
flex:0 1 auto;
justify-content:flex-end;
}
#menu-courses .menu-courses-chevron{
flex-shrink:0;
font-size:1.25rem !important;
color:var(--text-muted);
transition:transform .18s ease;
}
#menu-courses details.menu-courses-picker[open] > .menu-courses-current .menu-courses-chevron{
transform:rotate(180deg);
}
#menu-courses .menu-courses-hint{
margin:.35rem 0 0;
font-size:.88rem;
color:var(--text-muted);
}
#menu-courses .menu-courses-list{
list-style:none;
margin:.4rem 0 0;
padding:0;
display:flex;
flex-direction:column;
gap:.25rem;
}
#menu-courses .menu-course{
display:flex;
flex-direction:row;
align-items:center;
justify-content:space-between;
gap:.4rem .55rem;
margin:0;
padding:.3rem .45rem;
border:1px solid var(--border);
border-radius:var(--radius-sm);
background:var(--surface);
cursor:pointer;
}
#menu-courses .menu-course:hover{
background:var(--accent-soft);
border-color:#bfdbfe;
}
#menu-courses .menu-course.menu-course-selecting{
opacity:.7;
pointer-events:none;
}
#menu-courses .menu-course-current{
background:var(--accent-soft);
border-color:#bfdbfe;
}
#menu-courses .menu-course-meta{
min-width:0;
display:flex;
flex-wrap:wrap;
align-items:baseline;
gap:.2rem .4rem;
}
#menu-courses .menu-course-title{
font-size:.88rem;
font-weight:600;
color:var(--heading);
line-height:1.25;
}
#menu-courses .menu-course-role{
font-size:.72rem;
color:var(--text-muted);
}
#menu-courses .menu-course-books{
display:flex;
flex-wrap:wrap;
align-items:flex-end;
justify-content:flex-end;
gap:.3rem;
}
#menu-courses .menu-course-select{
flex-shrink:0;
display:inline-flex;
align-items:center;
justify-content:center;
min-width:1.65rem;
height:2.15rem;
padding:.15rem .28rem .2rem .38rem;
border:1px solid #93c5fd;
border-left:3px solid var(--accent-strong);
border-radius:2px 4px 4px 2px;
background:
linear-gradient(90deg, rgba(15,23,42,.08) 0 3px, transparent 3px),
linear-gradient(180deg, #eff6ff 0%, #dbeafe 55%, #bfdbfe 100%);
color:var(--accent-strong);
font:inherit;
font-size:.68rem;
font-weight:700;
letter-spacing:.02em;
line-height:1;
text-transform:lowercase;
box-shadow:
1px 1px 0 rgba(15,23,42,.06),
2px 2px 4px rgba(15,23,42,.1),
inset 0 1px 0 rgba(255,255,255,.65);
cursor:pointer;
transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}
#menu-courses .menu-courses-list .menu-course-select{
min-width:1.45rem;
height:1.9rem;
font-size:.62rem;
padding:.1rem .22rem .15rem .32rem;
}
#menu-courses .menu-course-select:hover:not(:disabled){
transform:translateY(-1px);
background:
linear-gradient(90deg, rgba(15,23,42,.1) 0 3px, transparent 3px),
linear-gradient(180deg, #dbeafe 0%, #bfdbfe 55%, #93c5fd 100%);
border-color:#60a5fa;
box-shadow:
1px 2px 0 rgba(15,23,42,.08),
2px 4px 8px rgba(15,23,42,.14),
inset 0 1px 0 rgba(255,255,255,.7);
}
#menu-courses .menu-course-select:disabled{
cursor:default;
}
#menu-courses .menu-course-select-spinner{
font-size:1rem !important;
line-height:1;
animation:menu-course-spin .7s linear infinite;
}
#menu-courses .menu-courses-list .menu-course-select-spinner{
font-size:.9rem !important;
}
@keyframes menu-course-spin{
to{transform:rotate(360deg)}
}
#menu-courses .menu-course-select-current,
#menu-courses .menu-course-select-current:disabled{
opacity:1;
transform:none;
background:
linear-gradient(90deg, rgba(15,23,42,.18) 0 3px, transparent 3px),
linear-gradient(180deg, #3b82f6 0%, #2563eb 55%, #1d4ed8 100%);
border-color:var(--accent-strong);
border-left-color:#1e3a8a;
color:#fff;
font-weight:700;
box-shadow:
1px 1px 0 rgba(15,23,42,.12),
2px 2px 5px rgba(37,99,235,.35),
inset 0 1px 0 rgba(255,255,255,.25);
}
#menu-courses .menu-course-select-plain,
#menu-courses .menu-courses-list .menu-course-select-plain{
min-width:0;
height:auto;
padding:.2rem .55rem;
border:1px solid var(--border);
border-left-width:1px;
border-radius:999px;
background:var(--surface);
color:var(--accent);
font-size:.72rem;
font-weight:600;
letter-spacing:normal;
text-transform:none;
box-shadow:none;
}
#menu-courses .menu-course-select-plain:hover:not(:disabled){
transform:none;
background:var(--accent-soft);
border-color:#bfdbfe;
box-shadow:none;
}
#search-div{
width:100%;
white-space: nowrap;
margin-top: 1.5rem;
}
#search-div h6{
margin:0 0 .45rem 0;
font-size:.78rem;
font-weight:700;
letter-spacing:.08em;
text-transform:uppercase;
color:var(--text-muted);
}
#search{
width: calc(100% - 2.25rem);
border:1px solid var(--field-border);
border-radius:999px;
padding:.55rem .85rem;
font: inherit;
font-size:.92rem;
color:var(--text);
background:var(--surface);
box-shadow: var(--shadow-sm);
transition: border-color .18s ease, box-shadow .18s ease;
}
#search:focus{
border-color:var(--accent);
}
#search:focus-visible{
outline:2px solid var(--accent);
outline-offset:2px;
}
#search-button{
padding-left:.45rem;
color:var(--accent);
vertical-align:middle;
}
#search-results{
font-size:.86rem;
margin-top: .85rem;
}
.search-result{
margin-top:.65rem;
padding:.75rem;
cursor:pointer;
border:1px solid var(--border);
border-radius:var(--radius-sm);
background:var(--surface);
box-shadow: var(--shadow-sm);
transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.search-result:hover{
background-color:#f8fbff;
border-color:#bfdbfe;
box-shadow:0 10px 24px rgba(37, 99, 235, .1);
transform: translateY(-1px);
}
.search-result-title{
font-weight:bold;
color:var(--heading);
}
.search-result-line{
display:block;
margin:.25rem 0 .35rem .75rem;
color:var(--text-muted);
text-decoration:none;
}
.search-result-line:hover{
text-decoration:underline;
}
.search-result-line mark{
background-color:var(--warning);
border-radius:.2rem;
padding:0 .15rem;
color:inherit;
}
.chapter-result-link{
display:block;
color:var(--heading);
text-decoration:none;
}
.chapter-result-link:hover{
text-decoration:underline;
}
.toc-section-container{
margin-left:.75rem;
}
.toc-text-container{
margin-left:1.25rem;
color:var(--text-muted);
}
.chapter-section{
margin-top: calc(3rem  * var(--font-zoom));
margin-bottom: calc(3rem  * var(--font-zoom));
}
.hide{
display:none
}
img{
max-width:100%;
height:auto;
border-radius:var(--radius-md);
}
.entry-content img{
cursor:zoom-in;
}
.entry-content figure{
text-align:center;
}
.entry-content p:has(> img:only-child){
text-align:center;
}
.entry-header{
position:fixed;
top:0;
left: 0;
width: 100%;
transition:opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
padding: .35rem .75rem;
-webkit-user-select: none; /* Safari */
user-select: none; /* Standard syntax */
background: var(--surface);
border-bottom:1px solid var(--border);
box-shadow:var(--shadow-sm);
z-index:10;
}
.entry-header .post-title{
display:flex;
align-items:center;
gap:.4em;
min-width:0;
flex:1 1 auto;
overflow:hidden;
}
.entry-header .post-title #title{
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
min-width:0;
}
button.nav{
border-radius:999px;
border:1px solid var(--border);
background:var(--surface);
color:var(--accent);
box-shadow: var(--shadow-md);
width:2.8rem;
height:2.8rem;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
}
.nav{
position: fixed;
bottom: 1rem;
opacity:1.0;
transition:opacity 0.35s ease, transform 0.18s ease, box-shadow 0.18s ease;
pointer-events: all;
}
.nav:hover{
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
.dim-button:hover{opacity: 1.0;}
.dim-button{opacity: .8;}
.dim-button:focus-visible{opacity: 1.0;}
.dim-header:hover{opacity: 1.0;}
.dim-header{opacity: 0;}
#prior-button {
left: 1rem;
}
#next-button {
right: 1rem;
}
.span-link{
cursor:pointer;
color:var(--accent);
font-weight:500;
}
.span-link:hover{
text-decoration: underline;
color:var(--accent-strong);
}
a:link {color: var(--link); text-decoration:none}
a:visited {color: var(--link);}
a:hover {background-color: var(--link-soft); color: var(--link-strong); border-radius:.25rem;}
a:active {color: var(--link-strong);}
/* Links in running text: navy with a thick copper underline (so they aren't told apart by color alone, WCAG 1.4.1).
The offset keeps the line clear of descenders. */
.post-body :is(p, li, dd, td, blockquote, figcaption, .book-chapter) a:not([class]):link,
.post-body :is(p, li, dd, td, blockquote, figcaption, .book-chapter) a:not([class]):visited {
text-decoration: underline;
text-decoration-color: var(--link-underline);
text-decoration-thickness: 2px;
text-underline-offset: 0.2em;
text-decoration-skip-ink: auto;
}
/* TOC page background image (config.json's heroImage — see toc.js). Fixed
behind the whole page; the ::after veil is the page color at high opacity,
densest in the middle where the title and chapter list sit and thinner
toward the edges, so the picture reads as a pale wash rather than competing
with the text. */
.book-hero{
position:fixed;
inset:0;
z-index:-1;
background-position:center;
background-size:cover;
background-repeat:no-repeat;
}
.book-hero::after{
content:"";
position:absolute;
inset:0;
background:radial-gradient(ellipse 60% 75% at 50% 45%,
color-mix(in srgb, var(--page-bg) 93%, transparent),
color-mix(in srgb, var(--page-bg) 74%, transparent));
}
.book-title{
margin-top: 6rem;
font-family:var(--font-serif);
font-size:clamp(2.4rem, 7vw, calc(4rem  * var(--font-zoom)));
line-height:1.05;
text-align: center;
font-weight: 700;
color:var(--heading);
}
.book-author{
margin-top: 1rem;
font-size:calc(1.45rem  * var(--font-zoom));
text-align: center;
color:var(--text-muted);
}
.book-toc{
text-align: center;
margin-top:2rem;
}
.book-chapters{
display: inline-block;
}
.book-chapter{
text-align:left;
padding-left: 1rem;
text-indent: -1rem;
margin-bottom: 0.55rem;
}
.book-footer{
text-align: center;
margin: 3rem 0 2rem;
font-size:calc(0.95rem  * var(--font-zoom));
line-height:1.6;
color:var(--text-muted);
}
.book-footer a{
color:var(--accent);
}
.book-qr{
margin:0 auto 1.5rem;
font-size:calc(0.85rem  * var(--font-zoom));
}
.book-qr-code{
width:140px;
margin:0 auto .4rem;
}
.book-qr-code svg, .qr-box svg{
display:block;
width:100%;
height:auto;
}
/* Already on a phone: no point showing a code to scan */
@media (max-width: 700px), (pointer: coarse){
.book-qr{
display:none;
}
}
.tool-row{
cursor:pointer;
margin-top:.5rem;
}
.tool-row:hover .tool{
color:var(--accent);
}
.qr-box{
max-width:260px;
margin:0 auto;
}
.qr-caption, .qr-note{
text-align:center;
margin-top:.5rem;
}
.qr-note{
color:#b45309;
}
.qr-url{
text-align:center;
margin-top:.5rem;
font-size:12px;
color:#666;
word-break:break-all;
}
.tool {
cursor:pointer;
font-size:calc(18px  * var(--font-zoom));
font-weight:400;
vertical-align: middle;
padding-left:.6rem;
color:var(--text-muted);
transition: color .18s ease, transform .18s ease;
}
.tool:hover {
color:var(--accent);
transform: translateY(-1px);
}
.lead-in{
margin-top:4rem;
}
.example, .indent, .category{
margin:1rem 0 0 1.1rem;
}
.category div:first-child{
color:var(--danger);
font-weight:700;
}
.example div:first-child{
color:var(--danger);
font-style: italic;
}
h1{
font-family:var(--font-serif);
font-size:clamp(1.35rem, 4vw, calc(2.1rem * var(--font-zoom)));
line-height:1.18;
color:var(--heading);
font-weight:500;
text-wrap:balance;
margin:0 0 1rem 0;
}
h2, h3{
font-family:var(--font-serif);
color:var(--heading);
line-height:1.24;
letter-spacing:-.015em;
text-wrap:balance;
}
h2{
font-weight:500;
font-size:clamp(1.55rem, 4vw, calc(2.15rem * var(--font-zoom)));
margin:3rem 0 1rem;
padding-top:.5rem;
}
h3{
font-size:clamp(1.2rem, 3vw, calc(1.45rem * var(--font-zoom)));
margin:2.25rem 0 .8rem;
}
/* Section numbers ("1.1") take the AvailaBooks copper accent. Headings are large and bold, so #C2662D passes 3:1. */
.header-section-number{
color:var(--avb-ai);
font-weight:700;
}
/* audio-player.js makes these jump the narration player to their clip */
body.has-narration .header-section-number,
body.has-narration .note blockquote p:first-child::before,
body.has-narration .tip blockquote p:first-child::before,
body.has-narration .term blockquote p:first-child::before,
body.has-narration .caution blockquote p:first-child::before,
body.has-narration .review blockquote p:first-child::before,
body.has-narration .objectives::before{
cursor:pointer;
}
p{
margin-top:0;
margin-bottom:1.15rem;
}
p.vignette{
color:var(--danger)
}
.no-dot{
list-style-type: none;
}
ul.no-dot li{
padding-left: 1rem;
text-indent: -1rem;
margin-bottom: 0.3rem;
}
audio{
height:30px;
width:100%;
max-width:34rem;
}
div.post-body{
max-width:940px;
margin:0 auto;
padding:clamp(5.2rem, 7vw, 6.25rem) clamp(1.15rem, 4vw, 3.5rem) 4rem;
background:transparent;
}
/* Reader chose "Use full window width" in the menu */
body.full-width div.post-body{
max-width:none;
}
#width-tool[aria-pressed="true"] .tool{
color:var(--accent);
}
div.index-boxnbt{
background:var(--surface);
padding-bottom:2rem;
}
/* The z-index:-1 .book-hero paints beneath this box's opaque surface, so let
it show through on TOC pages that have one. */
div.index-boxnbt:has(.book-hero){
background:transparent;
}
.assessment-toolbar{
display:flex;
align-items:center;
justify-content:flex-end;
gap:6px;
margin-top:2rem;
padding:8px 10px;
background: linear-gradient(180deg, #1f2937, #111827);
border-radius: var(--radius-md);
border: 1px solid rgba(148, 163, 184, 0.22);
box-shadow: var(--shadow-lg);
}
.assessment-toolbar button{
display:inline-flex;
align-items:center;
gap:6px;
font:inherit;
font-size:13px;
font-weight:700;
padding:6px 14px;
border:0;
border-radius:6px;
background:transparent;
color:#8b949e;
cursor:pointer;
transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.assessment-toolbar button:hover{
background: rgba(255, 255, 255, 0.1);
color: #e6edf3;
}
.assessment-toolbar button:active{
background: rgba(255, 255, 255, 0.06);
transform: scale(0.96);
}
.assessment-toolbar button .material-symbols-outlined{
font-size:18px;
cursor:inherit;
}
.assessment-toolbar .assessment-submit:hover{
background: rgba(63, 185, 80, 0.18);
color: #3fb950;
}
.assessment-toolbar .assessment-submit.is-confirming{
background: rgba(63, 185, 80, 0.24);
color: #3fb950;
box-shadow: inset 0 0 0 1px #3fb950;
}
.assessment-toolbar button:disabled{
opacity:0.6;
cursor:wait;
}
.assessment-submit-hint{
margin-right:auto;
color:#e6edf3;
font-size:13px;
}
.assessment-submit-hint[hidden]{
display:none;
}
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 20;
font-size: 18px;
line-height: 1;
}
blockquote{
margin:1.75rem 0;
padding:1rem 1.25rem 1rem 1.35rem;
background:var(--surface-soft);
border-left:.35rem solid var(--accent);
border-radius:0 var(--radius-md) var(--radius-md) 0;
color:#334155;
}
.note blockquote{
background:#E8F5E9;
border-left:.35rem solid darkgreen;
}
.note blockquote p:first-child::before {
content: "Note: ";
font-weight: bold;
color:#147523;
}
.tip blockquote{
background:#F3E5F5;
border-left:.35rem solid purple;
}
.tip blockquote p:first-child::before {
  content: "Tip: ";
  font-weight: bold;
  color:rgb(182, 0, 182);
}
.term blockquote{
background:#E3EDF7;
border-left:.35rem solid var(--avb-ink);
}
.term blockquote p:first-child::before {
content: "Term: ";
font-weight: bold;
color:#2161c1;
}
.caution blockquote{
background:#FFE2E2;
border-left:.35rem solid red;
}
.caution blockquote p:first-child::before {
content: "Caution: ";
font-weight: bold;
color:#b91c1c;
}
.review blockquote{
background:#FFF8E1;
border-left:.35rem solid gold;
}
.review blockquote p:first-child::before {
  content: "Review: ";
  font-weight: bold;
  color:#7a5d00;
}

div.learning {
  background-color: var(--avb-ink);
  padding-top: .4rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  border-radius: 4px;
  margin: 1rem;
}

div.learning p:first-child{
  color:lightblue;
  font-weight: bold;
  text-align: center;
  margin-bottom: .5rem;
}

.learning .objectives{
  font-size: 1rem;
  margin-top:0;
  font-family: var(--font-sans);
}

.objectives{
  display:block;
  background:#E3EDF7;
  border-left:.35rem solid var(--avb-ink);
  border-right:.35rem solid var(--avb-ink);
  border-bottom:.35rem solid var(--avb-ink);
  border-radius:4px;
  padding:.75rem 1rem;
}
.objectives::before {
  content: "After completing this lesson, the successful student will be able to:";
  display:block;
  font-weight: bold;
  color:var(--avb-ink);
  text-align: left;
  margin-bottom:.5rem;
}
.objectives ol{
  margin:0;
}

.ai-conversation blockquote{
  background:#f1f1f1;
  border:1px solid #ccc;
  border-radius: 5px;
}

/* the caption sits just below the box, so pull the box's bottom margin in */
.ai-conversation blockquote:has(+ div.ai-source){
  margin-bottom:.35rem;
}

/* interview.js: parts only the AI should see stay hidden until the script
   rebuilds the block, so readers never glimpse what the interviewee holds back */
div.interview:not([data-interview-mounted]) > div:is(.interviewee, .reveal, .record, .debrief, .evaluate){
  display:none;
}

/* recap.js (RECAP, once knowledge-check): the author's notes for the AI are never shown to readers */
div.knowledge-check > div.focus,
div.recap > div.focus{
  display:none;
}

div.ai-prompt{
  background:white;
  border:1px solid grey;
  border-radius: 10px;
  padding:10px 20px 10px 20px;
  box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.3);
  margin: 0 1rem 1rem 1rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

span.ai-prompt-x{
  font-size: 1.8em;
}

div.ai-source{
  margin: 0 0 1.75rem 0;
  font-size: .8rem;
  font-style: italic;
  color: #444;
  text-align: right;
}

div.ai-source-pending{
  color: firebrick;
  font-weight: bold;
}







blockquote p:last-child{
margin-bottom:0;
}
hr{
height:1px;
border:0;
background:var(--border);
margin:2.75rem 0;
}
ul, ol{
padding-left:1.45rem;
margin:0 0 1.25rem;
}
li{
margin:.45rem 0;
}
code{
font-family:"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
font-size:.92em;
color:#0f766e;
background:#ecfdf5;
border:1px solid #bbf7d0;
border-radius:.35rem;
padding:.08rem .32rem;
}
pre code,
.sourceCode code{
color:inherit;
background:transparent;
border:0;
border-radius:0;
padding:0;
font-size:inherit;
}
pre,
pre.javascript-code,
pre.javascript-example,
pre.spreadsheet,
div.sourceCode pre{
margin:1rem 0;
padding:.75rem .85rem;
overflow:auto;
background:#0f172a;
color:#dbeafe;
border:1px solid rgba(148, 163, 184, .28);
border-radius:var(--radius-md);
box-shadow:var(--shadow-md);
font-family:"SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
font-size:.88rem;
line-height:1.38;
tab-size:2;
white-space:pre;
}
div.sourceCode{
margin:1rem 0;
}
div.sourceCode pre{
margin:0;
}
.sourceCode .kw,
.sourceCode .cf{
color:#93c5fd;
}
.sourceCode .fu,
.sourceCode .at{
color:#67e8f9;
}
.sourceCode .st{
color:#86efac;
}
.sourceCode .dv{
color:#fbbf24;
}
.sourceCode .co{
color:#94a3b8;
font-style:italic;
}

/* Tables: either wrapped in div.table (wrapper scrolls) or bare inside the
   chapter body (the table itself becomes the scroll box). */
div.table{
margin:1.5rem 0 2rem;
max-width:100%;
overflow-x:auto;
-webkit-overflow-scrolling:touch;
border:1px solid var(--border);
border-radius:var(--radius-md);
box-shadow:var(--shadow-sm);
background:var(--surface);
}
div.table table{
width:100%;
min-width:max-content;
margin:0;
}
.post-body table:not(div.table table){
display:block;
width:max-content;
max-width:100%;
margin:1.5rem 0 2rem;
overflow-x:auto;
-webkit-overflow-scrolling:touch;
border:1px solid var(--border);
border-radius:var(--radius-md);
box-shadow:var(--shadow-sm);
background:var(--surface);
}
div.table table,
.post-body table{
border-collapse:separate;
border-spacing:0;
font-variant-numeric:tabular-nums;
}
div.table th,
div.table td,
.post-body th,
.post-body td{
padding:.72rem .85rem;
border-bottom:1px solid var(--border);
text-align:left;
vertical-align:top;
overflow-wrap:anywhere;
}
div.table th,
.post-body th{
font-size:.86rem;
font-weight:700;
color:var(--heading);
background:var(--surface-soft);
}
div.table tbody th[scope=row],
.post-body tbody th[scope=row]{
font-size:inherit;
background:transparent;
}
div.table tr:last-child > th,
div.table tr:last-child > td,
.post-body table tr:last-child > th,
.post-body table tr:last-child > td{
border-bottom:0;
}
div.table tbody tr:nth-child(even) > td,
div.table tbody tr:nth-child(even) > th[scope=row],
.post-body tbody tr:nth-child(even) > td,
.post-body tbody tr:nth-child(even) > th[scope=row]{
background:color-mix(in srgb, var(--surface-soft) 50%, transparent);
}
div.table caption,
.post-body caption{
padding:.6rem .85rem;
font-size:.86rem;
text-align:left;
caption-side:bottom;
}
.monaco {
width: 100%;
margin: 1.5rem 0;
border-radius: var(--radius-md);
overflow: hidden;
box-shadow: var(--shadow-lg);
border: 1px solid rgba(148, 163, 184, 0.22);
}
.monaco-bar {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 2px;
padding: 8px 10px;
background: linear-gradient(180deg, #1f2937, #111827);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.monaco-bar-label {
flex: 1;
font-family: var(--font-sans);
font-size: 11px;
font-weight: 700;
color: #94a3b8;
letter-spacing: 0.5px;
text-transform: uppercase;
padding-left: 4px;
}
.monaco-tool {
border: 0;
background: transparent;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
border-radius: 6px;
color: #8b949e;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
}
.monaco-tool:focus-visible,
.exitButton:focus-visible,
.monaco-func-select:focus-visible {
outline: 2px solid #93c5fd;
outline-offset: 1px;
}
.monaco-keyhint {
display: none;
font-family: var(--font-sans);
font-size: 11px;
color: #cbd5e1;
margin-right: 8px;
}
.monaco:focus-within .monaco-keyhint {
display: inline;
}
.monaco-tool:hover {
background: rgba(255, 255, 255, 0.1);
color: #e6edf3;
}
.monaco-tool:active {
background: rgba(255, 255, 255, 0.06);
transform: scale(0.92);
}
.monaco-tool[data-action="run"]:hover {
background: rgba(63, 185, 80, 0.18);
color: #3fb950;
}
.editor-holder {
background-color: #1e1e1e;
padding: 8px 0;
}
.editor {
margin: 0;
padding: 0;
}
.console {
background: #161b22;
border-top: 1px solid rgba(255, 255, 255, 0.07);
padding: 8px 0 6px;
position: relative;
min-height: 36px;
font-family: 'Consolas', 'Cascadia Code', 'Courier New', monospace;
font-size: 13px;
}
.console-line {
color: #c9d1d9;
padding: 2px 40px 2px 14px;
line-height: 1.6;
white-space: pre-wrap;
word-break: break-all;
}
.console-line:first-of-type {
margin-top: 2px;
}
.console-line.error {
color: #f85149;
background: rgba(248, 81, 73, 0.06);
}
.exitButton {
border: 0;
background: transparent;
padding: 0;
position: absolute;
top: 6px;
right: 8px;
display: flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border-radius: 4px;
color: #6e7681;
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
}
.exitButton:hover {
background: rgba(255, 255, 255, 0.1);
color: #c9d1d9;
}
.exitButton .material-symbols-outlined {
font-size: 15px;
}
pre.code {
color: #a8ff78;
background: #0d1117;
padding: 1rem 1.15rem;
margin: 1.35rem 0;
font-size: 14px;
border-radius: var(--radius-md);
border: 1px solid rgba(255, 255, 255, 0.07);
overflow-x: auto;
}
@media (max-width: 700px) {
body {
font-size: calc(1.2rem * var(--font-zoom));
}
#msg-galley {
left: 0;
right: 0;
max-width: none;
min-width: 0;
padding: .75rem;
}
#menu {
max-width: 92vw;
}
.entry-header {
padding: .25rem .4rem;

}
div.post-body {
padding-left: 1rem;
padding-right: 1rem;
}
.nav {
bottom: .75rem;
}
#prior-button {
left: .75rem;
}
#next-button {
right: .75rem;
}
}
/* Chapter audio narration (see tools/system-files/<version>/audio-player.js) */
/* A long paragraph is narrated in parts (span.audio-chunk): the paragraph
   keeps the side bar, and the part being read gets the background. */
.now-reading-parent {
box-shadow: inset 3px 0 0 #f59e0b;
border-radius: var(--radius-sm);
padding-left: .6rem;
margin-left: -.6rem;
}
.audio-chunk.now-reading {
box-shadow: none;
padding-left: 0;
margin-left: 0;
border-radius: 2px;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.now-reading {
background: #fef3c7;
box-shadow: inset 3px 0 0 #f59e0b;
border-radius: var(--radius-sm);
padding-left: .6rem;
margin-left: -.6rem;
transition: background .2s ease;
}
/* Room below the chapter's last lines, so they can scroll up clear of the
   narration bar instead of being read out from behind it. */
body.has-narration {
padding-bottom: 4.5rem;
}
#audio-player {
position: fixed;
bottom: 1rem;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: .35rem;
max-width: min(31rem, calc(100vw - 2rem));
padding: .4rem .5rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 999px;
box-shadow: var(--shadow-md);
z-index: 10;
transition: box-shadow .18s ease;
}
#audio-player[hidden] {
display: none;
}
#audio-player:hover {
box-shadow: var(--shadow-lg);
}
#audio-player .audio-player-toggle {
flex-shrink: 0;
width: 2.2rem;
height: 2.2rem;
display: flex;
align-items: center;
justify-content: center;
border: 0;
border-radius: 999px;
background: var(--accent);
color: #fff;
cursor: pointer;
}
#audio-player .audio-player-prev,
#audio-player .audio-player-next,
#audio-player .audio-player-close {
flex-shrink: 0;
width: 2rem;
height: 2rem;
border: 0;
background: transparent;
color: var(--text-muted);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
#audio-player .audio-player-prev:disabled,
#audio-player .audio-player-next:disabled {
opacity: .35;
cursor: default;
}
#audio-player .audio-player-status {
flex: 1;
min-width: 0;
font-size: .82rem;
color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#audio-player .audio-player-speed {
flex-shrink: 0;
border: 1px solid var(--border);
border-radius: 999px;
background: var(--surface-soft);
color: var(--text);
font-size: .78rem;
font-weight: 600;
padding: .2rem .55rem;
cursor: pointer;
}
#audio-player .audio-player-speed:hover {
background: var(--surface-muted);
}
#audio-player .audio-player-volume {
flex-shrink: 0;
width: 2rem;
height: 2rem;
border: 0;
background: transparent;
color: var(--text-muted);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
#audio-player .audio-player-volume-slider {
flex-shrink: 0;
width: 3.5rem;
accent-color: var(--accent);
cursor: pointer;
}
/* page-volume.js: the volume-only bar for pages with sound but no narration bar */
#audio-volume-bar {
position: fixed;
bottom: 1rem;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: .35rem;
padding: .3rem .6rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 999px;
box-shadow: var(--shadow-md);
z-index: 10;
}
#audio-volume-bar .audio-volume-mute {
flex-shrink: 0;
width: 2rem;
height: 2rem;
border: 0;
background: transparent;
color: var(--text-muted);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
#audio-volume-bar .audio-volume-slider {
flex-shrink: 0;
width: 5rem;
accent-color: var(--accent);
cursor: pointer;
}
#audio-player-reopen {
position: fixed;
bottom: 1rem;
left: 50%;
transform: translateX(-50%);
width: 2.6rem;
height: 2.6rem;
display: flex;
align-items: center;
justify-content: center;
border: 1px solid var(--border);
border-radius: 999px;
background: var(--accent);
color: #fff;
box-shadow: var(--shadow-md);
cursor: pointer;
z-index: 10;
}
#audio-player-reopen[hidden] {
display: none;
}
#audio-player-reopen:hover {
box-shadow: var(--shadow-lg);
}
@media (max-width: 700px) {
#audio-player,
#audio-volume-bar,
#audio-player-reopen {
bottom: .75rem;
}
}
div.post-body p.submit-status {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.2rem;
margin: 1.25rem 0 0;
padding: 0.9rem 1rem;
border: 1px solid #bbf7d0;
border-left: 4px solid #16a34a;
border-radius: var(--radius-md);
background: #f0fdf4;
color: #14532d;
font-weight: 600;
line-height: 1.45;
box-shadow: var(--shadow-sm);
}
div.post-body p.submit-status::before {
content: "Submitted";
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: #15803d;
}
div.post-body p.submit-status.is-error {
border-color: #fde68a;
border-left-color: #d97706;
background: #fffbeb;
color: #78350f;
}
div.post-body p.submit-status.is-error::before {
content: "Needs attention";
color: #b45309;
}

/* ---- Reader notes and highlights (annotations.js) ---- */
mark.ab-hl {
color: inherit;
border-radius: 0.15em;
cursor: pointer;
}
.ab-hl-yellow { background: rgba(250, 204, 21, 0.38); }
.ab-hl-green { background: rgba(74, 222, 128, 0.35); }
.ab-hl-blue { background: rgba(96, 165, 250, 0.35); }
.ab-hl-pink { background: rgba(244, 114, 182, 0.32); }
.ab-hl-purple { background: rgba(167, 139, 250, 0.35); }
mark.ab-hl-changed {
text-decoration: underline dotted rgba(100, 116, 139, 0.9);
text-underline-offset: 0.2em;
}
mark.ab-hl-note-end::after {
content: "";
display: inline-block;
width: 0.45em;
height: 0.45em;
margin-left: 0.15em;
vertical-align: super;
border-radius: 999px;
background: var(--accent);
}
mark.ab-flash {
outline: 3px solid var(--accent);
outline-offset: 2px;
}
.ab-toolbar {
position: absolute;
z-index: 1000;
display: flex;
gap: 0.35rem;
align-items: center;
padding: 0.35rem 0.45rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 999px;
box-shadow: var(--shadow-md);
}
.ab-toolbar button {
font: inherit;
font-size: 0.85rem;
border: 0;
background: none;
cursor: pointer;
color: var(--accent-strong);
}
.ab-swatch {
width: 1.4rem;
height: 1.4rem;
border-radius: 999px !important;
border: 2px solid transparent !important;
padding: 0;
cursor: pointer;
}
.ab-swatch-on {
border-color: var(--accent-strong) !important;
}
/* Solid swatch colors; two classes so they beat ".ab-toolbar button { background: none }". */
.ab-swatch.ab-hl-yellow, .ab-highlight-swatch.ab-hl-yellow { background: #facc15; }
.ab-swatch.ab-hl-green, .ab-highlight-swatch.ab-hl-green { background: #4ade80; }
.ab-swatch.ab-hl-blue, .ab-highlight-swatch.ab-hl-blue { background: #60a5fa; }
.ab-swatch.ab-hl-pink, .ab-highlight-swatch.ab-hl-pink { background: #f472b6; }
.ab-swatch.ab-hl-purple, .ab-highlight-swatch.ab-hl-purple { background: #a78bfa; }
.ab-note-button {
display: inline-flex;
align-items: center;
gap: 0.15rem;
font-weight: 600;
}
.ab-panel {
position: fixed;
top: 0;
right: 0;
bottom: 0;
z-index: 1001;
width: min(24rem, 100vw);
overflow-y: auto;
padding: 1rem;
background: var(--surface);
border-left: 1px solid var(--border);
box-shadow: var(--shadow-md);
font-size: 0.95rem;
}
.ab-panel-head {
display: flex;
justify-content: space-between;
align-items: center;
}
.ab-panel-head h2 {
margin: 0;
font-size: 1.15rem;
}
.ab-panel-head button {
border: 0;
background: none;
cursor: pointer;
}
.ab-panel h3 {
margin: 1.25rem 0 0.25rem;
font-size: 1rem;
}
.ab-card {
margin: 0.75rem 0;
padding: 0.75rem;
border: 1px solid var(--border);
border-radius: var(--radius-md);
}
.ab-card-detached {
border-style: dashed;
}
.ab-quote {
margin: 0 0 0.5rem;
padding-left: 0.6rem;
border-left: 3px solid var(--border);
color: var(--text-muted);
font-style: italic;
}
.ab-quote-block {
font-size: 0.85rem;
max-height: 8rem;
overflow-y: auto;
}
.ab-changed {
margin-bottom: 0.5rem;
padding: 0.5rem;
border-radius: 0.4rem;
background: #fffbeb;
font-size: 0.85rem;
}
.ab-changed p,
.ab-was,
.ab-set-label {
margin: 0 0 0.35rem;
}
.ab-set-label,
.ab-was,
.ab-hint {
color: var(--text-muted);
font-size: 0.8rem;
}
/* The panel's list of this chapter's highlights and notes (annotations.js chapterHighlightList). */
.ab-highlight-list {
list-style: none;
margin: 0 0 1rem;
padding: 0;
}
.ab-highlight-item,
.ab-all-notes {
display: flex;
align-items: flex-start;
gap: .5rem;
width: 100%;
margin: 0 0 .35rem;
padding: .45rem .55rem;
border: 1px solid var(--border);
border-radius: .5rem;
background: var(--surface);
color: var(--text);
font: inherit;
font-size: .88rem;
text-align: left;
cursor: pointer;
}
.ab-highlight-item:hover,
.ab-all-notes:hover {
border-color: var(--accent);
}
.ab-highlight-swatch {
flex: 0 0 auto;
width: .8rem;
height: .8rem;
margin-top: .3rem;
border-radius: 999px;
}
.ab-panel-head h2:focus {
outline: none;
}
.ab-panel-head h2:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.ab-ui :focus-visible {
outline: 3px solid var(--accent);
outline-offset: 2px;
}
.ab-card textarea {
width: 100%;
box-sizing: border-box;
font: inherit;
padding: 0.4rem;
border: 1px solid var(--field-border);
border-radius: 0.35rem;
}
.ab-body {
white-space: pre-wrap;
}
.ab-colors,
.ab-actions {
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
margin-top: 0.5rem;
}
.ab-actions button,
.ab-changed button {
font: inherit;
font-size: 0.85rem;
padding: 0.3rem 0.6rem;
border: 1px solid var(--border);
border-radius: 0.35rem;
background: var(--surface);
cursor: pointer;
}
.ab-actions button.ab-danger {
color: #b91c1c;
}
.ab-actions button.ab-danger-confirm {
background: #b91c1c;
border-color: #b91c1c;
color: #fff;
}
.ab-confirm-text {
align-self: center;
font-size: 0.85rem;
font-weight: 600;
}
#ab-menu {
margin: 0.75rem 0;
}
.ab-row,
.ab-set-row {
display: flex;
align-items: center;
gap: 0.35rem;
}
.ab-set-title {
flex: 1;
}
.ab-set-all {
display: block;
font-size: 0.75rem;
}
.ab-set-all[hidden] {
display: none;
}
.ab-set-other {
margin-top: 0.4rem;
display: flex;
flex-wrap: wrap;
gap: 0.4rem 0.9rem;
align-items: center;
}
.ab-set-other .ab-hint {
flex-basis: 100%;
margin: 0;
}
/* Toolbar: which set a highlight goes into. */
.ab-set-chooser {
position: relative;
display: inline-flex;
border-left: 1px solid var(--border);
padding-left: 0.35rem;
}
.ab-toolbar .ab-set-button {
display: inline-flex;
align-items: center;
color: var(--text);
}
.ab-set-button-text {
max-width: 9rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ab-set-button .material-symbols-outlined {
font-size: 1.1rem;
}
.ab-set-menu {
position: absolute;
top: calc(100% + 0.4rem);
left: 0;
z-index: 1001;
display: grid;
min-width: 12rem;
max-width: 18rem;
max-height: 16rem;
overflow-y: auto;
padding: 0.3rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 0.5rem;
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.ab-set-menu[hidden] {
display: none;
}
.ab-toolbar .ab-set-menu button {
text-align: left;
padding: 0.35rem 0.5rem;
border-radius: 0.3rem;
color: var(--text);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ab-toolbar .ab-set-menu button:hover,
.ab-toolbar .ab-set-menu button:focus-visible {
background: var(--border);
}
.ab-toolbar .ab-set-menu button.ab-set-menu-on {
font-weight: 700;
}
.ab-set-menu .ab-hint {
margin: 0.3rem 0.5rem 0.1rem;
}
/* New-note card: "Save to". */
.ab-save-to {
display: flex;
align-items: center;
gap: 0.4rem;
margin-top: 0.5rem;
font-size: 0.85rem;
}
.ab-save-to select,
.ab-actions select {
max-width: 100%;
font: inherit;
font-size: 0.85rem;
}
.ab-set-other select {
max-width: 100%;
}
.ab-link-button {
background: none;
border: 0;
padding: 0;
color: inherit;
font: inherit;
font-size: 0.85rem;
text-decoration: underline;
cursor: pointer;
}
.ab-link-button:disabled {
cursor: progress;
opacity: 0.6;
}
#ab-search-scope {
gap: 0.75rem;
font-size: 0.85rem;
margin-top: 0.35rem;
}
.ab-search-quote,
.ab-search-body {
display: block;
}
.ab-search-quote {
font-style: italic;
color: var(--text-muted);
}
.ab-error {
margin: 0.5rem 0 0;
color: #b91c1c;
font-size: 0.85rem;
}
/* After a first note: offer to keep notes in the reader's Google Drive. */
.ab-drive-offer {
position: fixed;
left: 1rem;
bottom: 1rem;
z-index: 1001;
max-width: min(22rem, calc(100vw - 2rem));
padding: 0.75rem 1rem;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 0.5rem;
box-shadow: var(--shadow-md);
font-size: 0.9rem;
}
.ab-drive-offer p {
margin: 0 0 0.5rem;
}
.ab-drive-offer-actions {
display: flex;
gap: 0.75rem;
align-items: center;
}
/* Someone else's highlight, from a note set shared with the reader. */
mark.ab-hl-other {
box-shadow: inset 0 -2px 0 rgba(15, 23, 42, 0.35);
}
.ab-author {
display: flex;
align-items: center;
gap: 0.4rem;
margin: 0 0 0.4rem;
color: var(--text-muted);
font-size: 0.8rem;
}
.ab-author img,
.ab-set-owner img {
width: 1.4rem;
height: 1.4rem;
border-radius: 999px;
object-fit: cover;
vertical-align: middle;
}
.ab-set-owner {
display: block;
color: var(--text-muted);
font-size: 0.75rem;
}
.ab-invites {
margin: 0.35rem 0;
font-size: 0.85rem;
}
/* Last in this section: the toolbar and panel set display, which would
   otherwise override the hidden attribute. */
.ab-ui[hidden] {
display: none !important;
}
