/* Reusable vocabulary companion for the ADA journey. */
.notebook-main{max-width:1030px}
.notebook-cover{display:flex;align-items:center;gap:25px;margin:55px 0 25px;padding:16px 0 22px}
.notebook-emblem{position:relative;flex:none;display:grid;place-items:center;width:125px;height:136px;border-radius:19px;background:linear-gradient(145deg,#44328d,#8065e4);color:white;font-size:69px;box-shadow:inset -9px -8px 0 rgba(34,20,91,.17),0 19px 36px rgba(62,37,138,.16);transform:rotate(-4deg)}
.notebook-emblem span{position:absolute;top:4px;right:3px;color:#efe1ad;font-size:28px}
.notebook-kicker{margin:0 0 6px;color:#8065c9;font-size:11px;letter-spacing:.16em;font-weight:850}
.notebook-cover h1{margin:0;font-size:clamp(34px,5vw,52px);letter-spacing:-.045em;color:#35264f}
.notebook-subtitle{font-size:15px;color:#776785;margin:5px 0 0}
.notebook-chapter{background:#fff;border:1px solid #e1d6f1;border-radius:21px;padding:24px;box-shadow:0 20px 45px rgba(56,38,106,.08)}
.notebook-chapter-heading{display:flex;align-items:center;gap:15px;padding:4px 4px 22px;color:#50328e}
.notebook-chapter-heading>span:first-child{font-size:31px}
.notebook-chapter-heading small{font-size:11px;color:#86729e;font-weight:800}
.notebook-chapter-heading h2{font-size:23px;margin:0}
.notebook-count{margin-left:auto;border-radius:99px;padding:7px 13px;background:#f0eaff;color:#554198;font-weight:850;font-size:12px}
.notebook-category{border:1px solid #e4dbf3;border-radius:16px;margin-bottom:13px;overflow:hidden;background:#faf8ff}
.notebook-category summary{display:flex;align-items:center;gap:15px;padding:15px 20px;cursor:pointer;color:#4e3b83;list-style:none;font-size:18px}
.notebook-category summary::-webkit-details-marker{display:none}
.notebook-category summary:focus-visible{outline:3px solid #9c82ee;outline-offset:-3px}
.notebook-category[open] summary{border-bottom:1px solid #eee8f6}
.notebook-category-icon{display:grid;place-items:center;width:43px;height:43px;background:#f1e9ff;border-radius:11px;font-size:26px}
.notebook-section-count{margin-left:auto;font-size:12px;color:#8c7aa2}
.notebook-expand{font-size:23px;transition:transform .16s}.notebook-category[open] .notebook-expand{transform:rotate(180deg)}
.notebook-words{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;padding:18px}
.notebook-word{border:1px solid #e5daf4;background:#fff;border-radius:15px;min-height:196px;display:flex;flex-direction:column;align-items:center;padding:16px;gap:10px}
.notebook-word-image{min-height:85px;display:grid;place-items:center}
.notebook-color{display:block;width:70px;height:70px;border-radius:50%;box-shadow:0 0 0 6px #fff,0 5px 17px #c5b9d9}
.notebook-emoji{font-size:67px}
.notebook-word strong{font-size:18px;color:#41316d;letter-spacing:.025em}
.notebook-listen{border:1px solid #d7c5f5;background:#f3edff;color:#523c99;border-radius:99px;padding:5px 23px;min-height:37px;cursor:pointer;font-size:19px}
.notebook-listen:hover,.notebook-listen:focus-visible{background:#e8ddff}
.notebook-listen[aria-busy=true]{background:#e1d8f7}
.notebook-footnote{font-size:12px;text-align:center;color:#887997;margin:18px 0}
.notebook-empty{border:1px dashed #ccb9e7;background:#fff;border-radius:16px;padding:36px;text-align:center;color:#5a4689}
.notebook-empty>span{font-size:42px}.notebook-empty h2{font-size:21px}
.notebook-empty a{display:inline-block;border-radius:10px;padding:12px 19px;background:#614ac9;color:white;text-decoration:none;font-weight:800}
.notebook-loading{color:#766987;text-align:center}
@media(max-width:600px){.notebook-cover{gap:16px;margin:25px 0}.notebook-emblem{width:78px;height:93px;font-size:41px}.notebook-chapter{padding:13px}.notebook-category summary{padding:10px;font-size:16px}.notebook-words{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:11px}.notebook-word{padding:9px;min-height:160px}.notebook-emoji{font-size:49px}.notebook-color{width:57px;height:57px}.notebook-word-image{min-height:64px}.notebook-word strong{font-size:15px}}
@media(prefers-reduced-motion:reduce){.notebook-expand{transition:none}}

/* Compact internal book: the object, not a fourth activity or another page. */
.ada-book-dialog{border:0;padding:0;background:transparent;box-shadow:none;width:min(760px,95vw);max-width:95vw;max-height:min(87dvh,930px);overflow:visible;color:#35294d}
.ada-book-dialog::backdrop{background:rgba(31,22,55,.48);backdrop-filter:blur(5px)}
.ada-book-sheet{display:flex;flex-direction:column;max-height:min(87dvh,930px);overflow:hidden;border:1px solid #cbb9ef;border-radius:22px;background:linear-gradient(130deg,#f8f1ff,#fffdf9 38%,#fff);box-shadow:0 28px 90px rgba(25,14,51,.34);transform-origin:left center}
.ada-book-dialog[open] .ada-book-sheet{animation:ada-book-open .35s cubic-bezier(.2,.7,.2,1) both}
.ada-book-head{display:flex;align-items:center;gap:12px;padding:13px 19px;border-bottom:1px solid #e3d6f0;background:linear-gradient(115deg,#e9dfff,#faf8ff)}
.ada-book-mark{font-size:39px;width:55px;text-align:center}
.ada-book-head small{font-size:10px;letter-spacing:.12em;font-weight:800;color:#7d6b9a;text-transform:uppercase}
.ada-book-head h2{font-size:25px;line-height:1.2;margin:2px 0;color:#463088}
.ada-book-close{margin-left:auto;display:grid;place-items:center;border:1px solid #d7cae9;width:40px;height:40px;border-radius:12px;background:#fff;color:#59447c;cursor:pointer;font-size:28px;line-height:1}
.ada-book-close:hover{background:#efe9fe}
.ada-book-pages{overflow:auto;overscroll-behavior:contain;min-height:140px;padding:14px 17px 5px}
.ada-book-pages .notebook-chapter{box-shadow:none;padding:0;border:0;background:transparent}
.ada-book-pages .notebook-chapter-heading{padding:4px 5px 12px}
.ada-book-pages .notebook-chapter-heading h2{font-size:18px}
.ada-book-pages .notebook-chapter-heading>span:first-child{font-size:23px}
.ada-book-pages .notebook-category{margin:0 0 10px}
.ada-book-pages .notebook-category summary{padding:9px 13px;gap:11px;font-size:15px}
.ada-book-pages .notebook-category-icon{width:32px;height:32px;font-size:20px}
.ada-book-pages .notebook-words{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;padding:10px}
.ada-book-pages .notebook-word{min-height:132px;padding:10px 6px;gap:4px}
.ada-book-pages .notebook-word-image{min-height:53px}
.ada-book-pages .notebook-emoji{font-size:40px}
.ada-book-pages .notebook-color{width:44px;height:44px;box-shadow:0 0 0 3px white,0 4px 10px #cabfda}
.ada-book-pages .notebook-word strong{font-size:13px}
.ada-book-pages .notebook-listen{font-size:15px;min-height:31px;padding:3px 14px}
.ada-book-pages .notebook-footnote{margin:12px 0;font-size:11px}
.notebook-phrases{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))!important}
.notebook-line{border:1px solid #e3d7f4;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:11px;padding:13px}
.notebook-line strong{font-size:14px;color:#46356e}
.book-new-pages .notebook-category[open] .notebook-word,.book-new-pages .notebook-category[open] .notebook-line{animation:ada-book-ink .48s both}
.book-new-pages .notebook-category[open] .notebook-word:nth-child(2),.book-new-pages .notebook-category[open] .notebook-line:nth-child(2){animation-delay:.12s}
.book-new-pages .notebook-category[open] .notebook-word:nth-child(3),.book-new-pages .notebook-category[open] .notebook-line:nth-child(3){animation-delay:.23s}
.book-new-pages .notebook-category[open] .notebook-word:nth-child(4){animation-delay:.32s}
@keyframes ada-book-open{from{transform:perspective(1100px) rotateY(-8deg) scale(.95);opacity:.4}to{transform:none;opacity:1}}
@keyframes ada-book-ink{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:none}}
@media(max-width:600px){.ada-book-dialog,.ada-book-sheet{max-height:89dvh}.ada-book-pages{padding:10px}.ada-book-pages .notebook-words{grid-template-columns:repeat(2,minmax(0,1fr))}.ada-book-pages .notebook-word{min-height:126px}.ada-book-head{padding:9px 11px}.ada-book-mark{font-size:29px;width:34px}}
@media(prefers-reduced-motion:reduce){.ada-book-dialog[open] .ada-book-sheet,.book-new-pages .notebook-category[open] .notebook-word,.book-new-pages .notebook-category[open] .notebook-line{animation:none}}


/* The alphabet is a second, non-diagnostic chapter in the shared carnet. */
.notebook-alphabet{margin-top:16px}
.notebook-alphabet .notebook-chapter-heading{flex-wrap:wrap}
.notebook-letter-pairs{padding:15px;display:grid;gap:11px;grid-template-columns:repeat(auto-fit,minmax(122px,1fr))}
.notebook-letter-pair{min-height:74px;display:flex;align-items:center;justify-content:space-evenly;gap:6px;
 border:1px solid #dfd2f1;border-radius:14px;background:white;color:#463277;font-family:Arial,Helvetica,sans-serif}
.notebook-letter-pair strong{font-size:clamp(30px,5vw,40px);font-weight:700;line-height:1.2}
.notebook-letter-pair>span{font-size:17px;color:#9285a2}
.notebook-to-come{margin:14px 0;padding:19px;background:#fbf8ff;border:1px dashed #d5c7eb;border-radius:16px;color:#5b4973}
.notebook-to-come h2{margin:0 0 7px;font-size:20px}
.notebook-to-come p{font-size:14px}
.notebook-to-come a{color:#6047ad;font-weight:800}
.notebook-warning{padding:12px;border-radius:11px;background:#fff6e9;color:#6c4d25}
.notebook-empty-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
@media(max-width:600px){
 .notebook-letter-pairs{grid-template-columns:repeat(2,minmax(0,1fr));padding:9px;gap:7px}
 .notebook-letter-pair{min-height:62px}
 .notebook-letter-pair strong{font-size:29px}
 .notebook-alphabet .notebook-count{margin-left:0}
}

/* The C11 food illustrations are identical in learning, checking and the carnet. */
.notebook-word-image .notebook-object{
 display:block;width:100%;height:100%;max-height:105px;object-fit:contain;
 padding:2px;box-sizing:border-box;
}
@media(max-width:560px){
 .notebook-word-image .notebook-object{max-height:84px}
}
