@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
:root{--ink:#252927;--muted:#68706b;--gold:#987951;--line:#deded9;--paper:#ffffff;--cream:#ffffff;--dark:#222725;font-family:'DM Sans',Arial,sans-serif;color:var(--ink);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #a67d43;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2,h3,.brand strong{font-family:'Libre Baskerville',Georgia,serif;font-weight:400}.layout{display:grid;grid-template-columns:305px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--dark);color:#f2f0e8;display:flex;flex-direction:column;padding:45px 20px 24px;overflow-y:auto}.brand{padding:0 12px 36px;border-bottom:1px solid #484e49}.brand-small{color:#b9a47f;font-size:.67rem;letter-spacing:.24em;margin-bottom:19px}.brand strong{font-size:1.55rem;line-height:1.5;letter-spacing:.015em;display:block}.brand>span{display:block;color:#aaa9a0;margin-top:9px;font-family:Georgia,serif;font-style:italic;font-size:.96rem}.nav-label{font-size:.65rem;letter-spacing:.2em;color:#aaa698;padding:36px 15px 14px}.chapter{border:0;background:transparent;color:#c8cbc3;text-align:left;display:flex;align-items:baseline;gap:13px;padding:14px 12px;width:100%;border-radius:4px;line-height:1.4}.chapter:hover{background:#333b35}.chapter.active{background:#3c443b;color:#fff;border-left:2px solid #be9860}.chapter-num{font-size:.7rem;color:#a99a7e}.chapter-name{flex:1;font-size:.86rem}.chapter-state{font-size:.58rem;letter-spacing:.08em;color:#c8a16a}.sidebar-foot{margin-top:auto;padding:29px 12px 0;color:#b9bdb5;font-size:.74rem;line-height:1.65}.sidebar-foot span{color:#999d96}.mobile-header{display:none}main{min-width:0}.topline{height:83px;border-bottom:1px solid var(--line);padding:0 clamp(28px,7vw,105px);display:flex;align-items:center;justify-content:space-between;color:#737c76;font-size:.67rem;font-weight:600;letter-spacing:.18em}.separator{padding:0 10px;color:#bdaf96}#reader{max-width:1100px;margin:auto;padding:80px clamp(26px,6vw,95px) 30px}.eyebrow,.kicker{color:var(--gold);font-size:.66rem;font-weight:700;letter-spacing:.2em}.eyebrow{display:flex;align-items:center;gap:22px}.hairline{height:1px;width:55px;background:#bba377}h1{font-size:clamp(2.8rem,5.2vw,5.5rem);line-height:1.2;letter-spacing:-.065em;margin:25px 0 32px}h1 em{font-weight:400;color:#927b59}.lead{font:1.32rem/1.85 'Libre Baskerville',Georgia,serif;max-width:795px;color:#3f4741;margin-bottom:85px}.reading{border-top:1px solid var(--line);padding:38px 0 60px;display:grid;grid-template-columns:85px 1fr;gap:20px}.section-number{color:#9f8057;font-size:.8rem;letter-spacing:.16em;padding-top:8px}.reading h2,.example h2,.activity h2,.practice h2{font-size:clamp(1.45rem,2.5vw,2.35rem);line-height:1.4;letter-spacing:-.04em}.reading p,.example p,.activity>p,.practice p{font:1rem/1.9 'Libre Baskerville',Georgia,serif;color:#4d5550}.example{border:1px solid #e2ded5;background:#fff;border-radius:7px;padding:32px;margin-bottom:72px;box-shadow:0 15px 55px #3b352a08}.example-heading{display:flex;justify-content:space-between;gap:25px;align-items:flex-start}.example-heading h2{margin:12px 0 15px}.source{font-size:.73rem;color:#8f9690;margin-top:3px}.score-wrap{overflow:auto;margin:30px 0 24px;border:1px solid #e9e7e1;border-radius:3px;padding:22px;background:#fff}.score-wrap img{display:block;width:100%;min-width:600px;height:auto}.audio-slot{border-top:1px solid var(--line);padding:22px 0 0;display:flex;align-items:center;gap:16px}.play{display:grid;place-items:center;width:43px;height:43px;border:1px solid #c6bca7;border-radius:50%;color:#a69a82;font-size:1.5rem}.audio-slot strong,.audio-slot small{display:block}.audio-slot strong{font-size:.85rem}.audio-slot small{color:#929a94;font-size:.75rem;margin-top:4px}.coming{margin-left:auto;color:#999d98;font-size:.62rem;letter-spacing:.13em}.activity{background:#eae8df;padding:46px 38px 40px;margin:0 -18px 75px;border-radius:5px}.activity-top{display:flex;justify-content:space-between;gap:16px}.activity-index{font-size:.65rem;color:#8d918a;letter-spacing:.1em}.activity h2{margin:20px 0 10px}.activity>p{max-width:730px}.options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:30px}.option{background:#fff;border:1px solid #d6d3c9;border-radius:4px;padding:0;text-align:left;overflow:hidden;min-width:0;color:var(--ink);transition:border-color .2s,transform .2s,box-shadow .2s}.option:hover{transform:translateY(-3px);box-shadow:0 10px 25px #1b27211b}.option.chosen{border-color:#a17e4d;box-shadow:0 0 0 2px #a17e4d}.option-head,.option-foot{display:flex;justify-content:space-between;align-items:center;padding:16px;font-size:.8rem;font-weight:600;gap:8px}.option-letter{color:#a17e4d;margin-right:6px}.option-check{font-size:1.3rem;color:#a17e4d}.thumbnail{height:125px;padding:10px;display:flex;align-items:center;overflow:hidden;border-block:1px solid #eae8e2}.thumbnail img{width:100%;height:auto;max-height:100%;object-fit:contain}.option-foot{font-size:.7rem;color:#8a8d86}.selection{margin-top:26px;border-left:3px solid #9a7a50;padding:6px 0 6px 20px}.selection>span{font-size:.65rem;color:#967a55;letter-spacing:.12em}.selection strong{font-size:.75rem}.selection p{margin:10px 0;font:1rem/1.65 'Libre Baskerville',Georgia,serif}.selection button{background:transparent;border:0;border-bottom:1px solid #957653;padding:8px 0;color:#775b36;font-weight:600}.comparison{margin-top:28px}.comparison h3{font-size:1.3rem}.comparison figure{margin:15px 0;padding:18px;background:white;overflow:auto}.comparison figcaption{font-size:.84rem;margin-bottom:16px}.comparison img{display:block;min-width:600px;width:100%}.second{padding-bottom:45px}.steps{display:grid;grid-template-columns:repeat(2,1fr);gap:13px;margin:30px 0}.steps span{background:#ffffff;padding:17px 19px;font-size:.83rem;font-weight:700}.steps small{display:block;font-size:.72rem;font-weight:400;color:#686c64;margin-top:5px}.practice{background:#27312b;color:#f4f0e8;padding:44px 48px;margin:25px 0 65px;border-radius:4px}.practice h2{margin:17px 0}.practice p{color:#d5d8ce;max-width:720px;margin-bottom:0}footer{border-top:1px solid var(--line);padding:25px 0;font-size:.72rem;color:#929893;display:flex;justify-content:space-between}dialog{border:1px solid #d6d0c4;background:var(--paper);max-width:480px;width:calc(100% - 30px);padding:36px;box-shadow:0 20px 80px #0005}dialog::backdrop{background:#17201bd1}dialog h2{font-size:1.8rem;margin:18px 0}dialog p{line-height:1.7;color:#555d57}.close{float:right;border:0;background:transparent;font-size:1.6rem}.primary{background:#29332b;color:#fff;border:0;padding:13px 19px;border-radius:3px}
@media(max-width:1050px){.layout{grid-template-columns:245px 1fr}.sidebar{padding-inline:12px}.brand strong{font-size:1.2rem}.options{grid-template-columns:1fr}.option{display:grid;grid-template-columns:220px 1fr;align-items:center}.option-head{align-self:start}.thumbnail{height:105px;grid-column:2;grid-row:1/3;border:0;border-left:1px solid var(--line)}.option-foot{grid-column:1}.activity{margin-inline:0}}@media(max-width:700px){.layout{display:block}.mobile-header{display:flex;position:sticky;z-index:5;top:0;height:64px;align-items:center;justify-content:space-between;padding:0 21px;background:#222725;color:#f6f1e8;letter-spacing:.1em;font-size:.7rem}.mobile-header button{border:0;background:none;color:#fff;font-size:1.25rem;padding:9px}.mark{color:#c4a477;font-size:1.4rem}.sidebar{position:fixed;top:64px;left:0;bottom:0;z-index:4;width:min(330px,90vw);height:auto;transform:translateX(-102%);transition:transform .2s;box-shadow:10px 0 30px #0003}.sidebar.open{transform:translateX(0)}.topline{height:59px;padding:0 24px;font-size:.57rem;letter-spacing:.08em}#reader{padding:48px 23px 25px}h1{margin:23px 0}.lead{font-size:1.03rem;line-height:1.8;margin-bottom:60px}.reading{grid-template-columns:1fr;gap:7px;padding:28px 0 40px}.section-number{padding:0}.reading h2,.example h2,.activity h2{font-size:1.5rem}.example{padding:22px;margin:0 -5px 55px}.example-heading{display:block}.source{display:block;margin:0 0 14px}.score-wrap{margin-top:22px;padding:12px}.audio-slot{gap:10px;flex-wrap:wrap}.coming{margin-left:0;width:100%;padding-left:54px}.activity{padding:30px 17px;margin:0 -10px 50px}.activity-index{display:none}.options{gap:12px}.option{display:block}.thumbnail{height:105px;border:0;border-block:1px solid var(--line)}.steps{grid-template-columns:1fr}.practice{padding:32px 25px}footer{display:block}footer span{display:block;margin-top:6px}}
/* Quiet entrance to the book and future practice material. */
.cover{position:fixed;z-index:20;inset:0;display:flex;align-items:center;color:#f5eee3;background-color:#29231d;background-image:linear-gradient(0deg,rgba(39,28,21,.83),rgba(48,34,24,.10) 85%),linear-gradient(90deg,rgba(42,30,23,.85),rgba(52,37,26,.51) 45%,rgba(67,45,30,.14)),url('assets/vstopna-orgle-roke.jpg');background-position:center;background-size:cover;background-repeat:no-repeat;background-attachment:local;overflow:auto}
.cover[hidden]{display:none}
.cover-content{position:relative;width:min(1300px,100%);padding:56px clamp(35px,7vw,100px);margin:auto}
.cover-overline{color:#d0ad77;font-size:1.08rem;font-weight:600;letter-spacing:.2em}
.cover h1{font-size:clamp(2.8rem,5.5vw,5.4rem);line-height:1.17;letter-spacing:-.055em;margin:76px 0 22px;text-transform:uppercase;max-width:970px;text-shadow:0 2px 20px #10161070}
.cover h1:focus{outline:none}
.cover-subtitle{font:italic clamp(1.2rem,2vw,1.65rem)/1.5 'Libre Baskerville',Georgia,serif;margin:0;color:#e6ddd0}
.home-topbar{display:flex;justify-content:space-between;align-items:baseline;gap:24px}
.home-book{margin-top:36px;max-width:440px}
.home-book p{font:1rem/1.65 'DM Sans',Arial,sans-serif;color:#d0d0c5;margin:0 0 25px;max-width:38ch}
.open-book{border:0;background:#cba46c;color:#1f251f;font:1rem/1.4 'Libre Baskerville',Georgia,serif;padding:15px 21px;border-radius:3px;min-height:52px;display:inline-flex;align-items:center;justify-content:space-between;gap:30px;margin-top:auto}
.open-book:hover{background:#e2bc84}
.open-book:focus-visible{outline:2px solid #f5eee3;outline-offset:5px}
.back-home{display:inline-flex;align-items:center;gap:9px;border:0;background:transparent;color:#cbbb9d;padding:10px 0;margin-top:15px;font-size:.875rem;line-height:1.5;text-align:left}
.back-home:hover{color:#f5eee3;text-decoration:underline;text-underline-offset:4px}
@media(max-width:800px){
  .cover-content{padding:42px 28px}
  .cover h1{font-size:clamp(2.65rem,7.4vw,4rem);margin:52px 0 20px}
  .home-topbar{flex-wrap:wrap;gap:8px 24px}
  .home-book{margin-top:30px}
  .home-book p{margin-bottom:22px}
  .cover-overline{font-size:.96rem;letter-spacing:.17em}
  .cover-subtitle{font-size:1.2rem}
  .cover{background-position:61% center;background-image:linear-gradient(0deg,rgba(41,29,21,.90),rgba(50,35,26,.39)),linear-gradient(90deg,rgba(43,29,22,.82),rgba(56,40,29,.49)),url('assets/vstopna-orgle-roke.jpg')}
}
@media(max-width:380px){.cover-content{padding:36px 22px}.cover h1{font-size:2.35rem}}

.score-wrap,.thumbnail,.comparison figure{background:#f5f1e7}.score-wrap img,.thumbnail img,.comparison figure img{mix-blend-mode:multiply}
/* One continuous book page: whitespace and rules replace the former cards. */
.reading{grid-template-columns:115px minmax(0,1fr);gap:28px}.section-number{font:4rem/1 'Libre Baskerville',Georgia,serif;color:#c7c2b5;letter-spacing:-.09em;border-right:1px solid #b99a69}.example{background:transparent;border:0;border-top:1px solid #c3ab83;border-radius:0;box-shadow:none;padding:50px 0 60px;margin:0}.example-heading h2{margin-top:13px}.score-wrap{border:0;border-radius:0;background:#f5f1e7;padding:18px 0;margin:22px 0 0;scrollbar-color:#ac936f transparent}.score-wrap img{width:auto;min-width:100%;max-width:none;height:auto;min-height:100px}.scroll-hint{display:block;text-align:right;color:#857a66;font-size:.72rem;padding:8px 0 22px}.audio-slot{border-top:0;padding-top:0}.activity{background:transparent;border-top:1px solid #c3ab83;border-radius:0;padding:48px 0 58px;margin:0 0 40px}.activity>p{max-width:760px}.options{gap:0;margin:38px 0 0}.option{background:transparent;border:0;border-right:1px solid #d8d2c5;border-radius:0;padding:0 16px 0 0;transition:none;overflow:visible}.option+.option{padding-left:16px}.option:last-child{border-right:0;padding-right:0}.option:hover{transform:none;box-shadow:none}.option.chosen{border-color:#d8d2c5;box-shadow:none}.option-head{padding:0 0 10px;font-family:'Libre Baskerville',Georgia,serif;font-size:.97rem;align-items:center}.option.chosen .option-head>span:first-child{border-bottom:2px solid #a17e4d;padding-bottom:5px}.option-check{font-family:'DM Sans',Arial,sans-serif}.thumbnail{height:135px;border:0;background:#f5f1e7;display:block;overflow:auto;padding:10px 0;scrollbar-color:#ac936f transparent}.thumbnail img{width:480px;min-width:480px;max-height:none;height:auto;object-fit:initial}.option-foot{padding:8px 0;color:#747b72}.selection{width:calc((100% - 2px)/3);margin:20px 0 0 calc(var(--choice-index,0) * (100% / 3));border-left:2px solid #ab8757;padding:0 12px 0 16px}.selection p{font-size:.9rem}.comparison{border-top:1px solid #d8d2c5;padding-top:24px}.comparison figure{padding:16px 0;border-bottom:1px solid #d8d2c5;background:transparent}.comparison img{width:auto;min-width:1000px;max-width:none;mix-blend-mode:multiply}.practice{background:transparent;color:var(--ink);border-radius:0;border-left:2px solid #ae8a58;padding:5px 0 5px 35px;margin:0 0 70px}.practice h2{margin:17px 0}.practice p{color:#4d5550}
@media(max-width:1050px){.option{display:block}.option-head,.option-foot,.thumbnail{grid-column:auto;grid-row:auto}.thumbnail{height:120px;border:0}.selection{width:calc(100% / 3)}}
@media(max-width:700px){.reading{grid-template-columns:1fr;gap:12px}.section-number{font-size:2.8rem;border-right:0;border-bottom:1px solid #b99a69;width:max-content;padding-bottom:8px}.example{padding:35px 0 44px;margin:0}.score-wrap{padding:10px 0}.score-wrap img{min-width:800px}.activity{padding:37px 0 45px;margin:0 0 35px}.options{display:block;margin-top:28px}.option,.option+.option,.option:last-child{display:block;width:100%;border:0;border-bottom:1px solid #d8d2c5;padding:16px 0}.thumbnail{height:140px;border:0}.thumbnail img{width:610px;min-width:610px}.selection{width:100%;margin:22px 0 0;padding-left:16px}.practice{padding:4px 0 4px 22px;margin:0 0 55px}}
.score-wrap,.thumbnail,.comparison figure{background:transparent;overflow-x:auto;overflow-y:hidden}.score-wrap img,.thumbnail img,.comparison figure img{mix-blend-mode:multiply}
.thumbnail{height:165px;padding:12px 0 24px}.thumbnail img{display:block}@media(max-width:700px){.thumbnail{height:195px;padding:12px 0 24px}}
.reading>div:last-child{min-width:0}.reading .score-wrap{width:100%;max-width:100%;min-width:0}.reading .score-wrap img{max-width:none}.reading p:last-child{margin-bottom:0}
.score-wrap img,.reading .score-wrap img{display:block;width:1100px;min-width:1100px;max-width:none;height:auto;min-height:0}.comparison img{width:1100px;min-width:1100px;height:auto}@media(max-width:700px){.score-wrap img,.reading .score-wrap img{width:850px;min-width:850px}.comparison img{width:850px;min-width:850px}}
.thumbnail img{width:1100px;min-width:1100px;max-width:none;height:auto}.thumbnail{height:305px}@media(max-width:700px){.thumbnail img{width:850px;min-width:850px}.thumbnail{height:250px}}
#reader[hidden],#chapter-one[hidden]{display:none!important}#chapter-one{max-width:1100px;margin:auto;padding:80px clamp(26px,6vw,95px) 30px}#chapter-one h1{margin-bottom:65px}#chapter-one .reading{padding-bottom:58px}#chapter-one .reading p{font:1rem/1.9 'Libre Baskerville',Georgia,serif;color:#4d5550}#chapter-one .reading h2{font-size:clamp(1.45rem,2.5vw,2.35rem);letter-spacing:-.04em}#chapter-one .book-list{font:1rem/1.85 'Libre Baskerville',Georgia,serif;color:#4d5550;padding-left:25px;margin:4px 0 25px}#chapter-one .book-list li{padding-left:5px;margin:7px 0}.footnote{font-size:.84rem!important;border-left:2px solid #bd9c6b;padding-left:19px;margin-top:26px;color:#667068!important}#chapter-one blockquote{margin:25px 0 0;padding:4px 0 4px 25px;border-left:2px solid #b69562;color:#4d5550;font:italic .98rem/1.8 'Libre Baskerville',Georgia,serif}.decision{margin-top:42px;border-top:1px solid #c3ab83;padding-top:29px}.decision h3,.music-example h3,.history-heading{font:1.35rem/1.45 'Libre Baskerville',Georgia,serif;margin:15px 0 24px}.decision-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.decision-options button{border:0;border-right:1px solid #d7d0c1;background:transparent;text-align:left;padding:15px 18px 17px;color:#3e4640;font:1rem 'Libre Baskerville',Georgia,serif}.decision-options button:first-child{padding-left:0}.decision-options button:last-child{border-right:0}.decision-options button:hover,.decision-options button[aria-pressed=true]{color:#806136}.decision-options button[aria-pressed=true]{box-shadow:inset 0 -2px #9e7e50}.decision-response{margin:22px 0 0!important;padding:10px 0 10px 20px;border-left:2px solid #a88252}.music-example{margin:35px 0 45px}.music-example h3{margin-bottom:8px}.music-example .facsimile{margin-bottom:0}.music-example .facsimile img{mix-blend-mode:normal;width:1100px;min-width:1100px}.history-heading{margin:35px 0 18px}.history-wrap{overflow-x:auto;max-width:100%}.history-wrap table{border-collapse:collapse;min-width:620px;width:100%;font-size:.84rem;line-height:1.5}.history-wrap th{text-align:left;color:#896e4a;font-size:.67rem;letter-spacing:.09em;text-transform:uppercase}.history-wrap td,.history-wrap th{border-bottom:1px solid #d8d3c8;padding:13px 18px 13px 0;vertical-align:top}.history-wrap td:first-child{white-space:nowrap;font-weight:600}.end-chapter{border-top:1px solid #c3ab83;padding:26px 0 50px;display:flex;align-items:center;justify-content:space-between;gap:20px}.end-chapter span{color:#9a7e58;font-size:.67rem;letter-spacing:.17em}.end-chapter button{border:0;background:none;color:#26312a;font:1.1rem 'Libre Baskerville',Georgia,serif;text-align:right}.end-chapter button:hover{text-decoration:underline}@media(max-width:700px){#chapter-one{padding:48px 23px 25px}#chapter-one h1{margin-bottom:47px}#chapter-one .reading{padding-bottom:42px}.decision-options{grid-template-columns:1fr}.decision-options button,.decision-options button:first-child{padding:16px 0;border-right:0;border-bottom:1px solid #d7d0c1}.music-example .facsimile img{width:850px;min-width:850px}.end-chapter{display:block}.end-chapter button{display:block;text-align:left;margin:15px 0 0}}
.terms{margin:24px 0;padding:4px 0 4px 21px;border-left:1px solid #bba47e}.terms p{font-size:.83rem!important;margin:5px 0 12px!important;color:#6a7068!important}
/* Desktop reading follows the manuscript: small section number, short rule, title;
   the prose and full-width music follow beneath on the same page. */
@media(min-width:701px){
  .layout{grid-template-columns:230px minmax(0,1fr)}.sidebar{padding-inline:13px}
  #reader,#chapter-one{max-width:1510px;padding:65px clamp(28px,3.1vw,58px) 35px}
  .reading{display:grid;grid-template-columns:82px minmax(0,1fr);gap:0 12px;padding:37px 0 60px}
  .reading>div:last-child{display:contents}
  .reading .section-number{grid-column:1;grid-row:1;align-self:start;border:0;font:600 .85rem/1.5 'DM Sans',Arial,sans-serif;letter-spacing:.03em;color:#a68859;padding:7px 0 0}
  .reading .section-number:after{content:'';display:inline-block;width:35px;height:1px;background:#b59a6e;margin-left:10px;vertical-align:middle}
  .reading>div:last-child>*{grid-column:1/-1;min-width:0}
  .reading>div:last-child>h2{grid-column:2;grid-row:1;align-self:start;margin:0 0 34px;font-size:clamp(1.25rem,1.8vw,1.8rem)!important;line-height:1.42;letter-spacing:-.02em!important}
  .reading>div:last-child>p{max-width:1060px}
  .score-wrap,.reading .score-wrap,.thumbnail,.comparison figure{overflow-x:visible;overflow-y:visible;max-width:100%;width:100%}
  .score-wrap img,.reading .score-wrap img,.music-example .facsimile img,.comparison img{width:100%;max-width:1100px;min-width:0;height:auto}
  .scroll-hint{display:none}
  .options{display:grid;grid-template-columns:1fr;gap:0}.option,.option+.option,.option:last-child{display:block;width:100%;border:0;border-bottom:1px solid #d8d2c5;padding:22px 0}.option-head,.option-foot{padding-left:0;padding-right:0}.thumbnail{height:auto;padding:8px 0 12px}.thumbnail img{display:block;width:100%;max-width:1100px;min-width:0;height:auto}.selection{width:100%;margin:4px 0 20px;padding:5px 0 18px;border:0;color:#715a39}.selection p{max-width:1050px}
  .comparison img{max-width:1100px}
}
.section-number{border-right:0}.footnote,#chapter-one blockquote,.terms,.decision-response,.selection,.practice{border-left:0}.footnote,#chapter-one blockquote,.terms,.decision-response,.selection{padding-left:0}.practice{padding:30px 0;border-top:1px solid #c3ab83}.footnote{border-top:1px solid #d8d2c5;padding-top:14px}.terms{padding-top:10px;padding-bottom:4px}.option{background:transparent}
@media(max-width:700px){.reading .section-number{border:0;border-bottom:1px solid #b59a6e}.reading>div:last-child{min-width:0}.score-wrap,.thumbnail,.comparison figure{overflow-x:auto;overflow-y:hidden}.score-wrap img,.reading .score-wrap img,.music-example .facsimile img,.comparison img{width:850px;min-width:850px;max-width:none}.thumbnail img{width:850px;min-width:850px}.practice{padding:25px 0}}
@media(min-width:701px){
  .reading{grid-template-columns:32px minmax(190px,310px) 1px minmax(0,1fr);column-gap:14px}
  .reading:before{content:'';grid-column:3;grid-row:1;background:#c5b6a1;width:1px;align-self:stretch}
  .reading .section-number{grid-column:1;grid-row:1;padding-top:7px}
  .reading .section-number:after{display:none}
  .reading>div:last-child>h2{grid-column:2;grid-row:1;margin:0;padding:0 8px 0 0}
  .reading>div:last-child>p.section-summary{grid-column:4;grid-row:1;align-self:start;margin:0 0 6px!important;max-width:none}
  .reading>div:last-child>p:nth-of-type(2){margin-top:34px}
}
/* Keep the whole desktop page at the manuscript's reading measure. */
@media(min-width:701px){
  #reader,#chapter-one{max-width:760px;padding-inline:clamp(25px,3vw,38px)}
  .reading{grid-template-columns:32px minmax(155px,220px) 1px minmax(0,1fr)}
  .reading>div:last-child>p,.lead,.activity>p,.practice p,.selection p{max-width:100%}
  .score-wrap,.reading .score-wrap,.thumbnail,.music-example .facsimile{min-width:0;max-width:100%;overflow-x:hidden}
  .score-wrap img,.reading .score-wrap img,.music-example .facsimile img,.thumbnail img{display:block;width:100%;max-width:100%;min-width:0;height:auto}
}
/* Center the table of contents and reading page as one composition. */
@media(min-width:701px){
  .layout{width:100%;max-width:1160px;margin-inline:auto;grid-template-columns:clamp(250px,27vw,310px) minmax(0,1fr);column-gap:clamp(20px,3vw,40px)}
  .sidebar{padding-inline:22px}
  .brand strong{font-size:1.5rem}
  .chapter-name{font-size:.92rem}
  .topline{padding-inline:clamp(25px,3vw,38px)}
}
.chapter-pager{display:flex;justify-content:space-between;gap:24px;border-top:1px solid #c3ab83;padding:26px 0 50px}
.chapter-pager button{border:0;background:transparent;color:#26312a;padding:0;max-width:48%;cursor:pointer}
.chapter-pager button:hover .pager-title{text-decoration:underline}
.chapter-pager .pager-previous{text-align:left;margin-right:auto}
.chapter-pager .pager-next{text-align:right;margin-left:auto}
.pager-caption{display:block;color:#9a7e58;font:.67rem 'DM Sans',Arial,sans-serif;letter-spacing:.17em;margin-bottom:14px}
.pager-title{display:block;font:1.1rem/1.6 'Libre Baskerville',Georgia,serif}
@media(max-width:700px){.chapter-pager{display:block}.chapter-pager button{display:block;max-width:100%;text-align:left!important;margin:0 0 24px!important}}
.subchapters{display:grid;gap:1px;padding:2px 5px 14px 34px}
.subchapters[hidden]{display:none}
.subchapter{display:grid;grid-template-columns:33px minmax(0,1fr);gap:6px;width:100%;padding:9px 3px;border:0;background:transparent;color:#c9c8bf;text-align:left;font-size:.78rem;line-height:1.45}
.subchapter:hover,.subchapter:focus-visible{color:#fff;text-decoration:underline;text-underline-offset:3px}
.subchapter.current{color:#fff;font-weight:600;background:#394239;border-radius:3px}
.subchapter.current .subchapter-num{color:#e2bb80}
.subchapter-num{color:#bda37d;font-size:.69rem;line-height:1.65}
.reading[id]{scroll-margin-top:82px}
/* Reading rhythm: clear chapter breaks, close paragraphs, and a quiet table of contents. */
.sidebar{scrollbar-width:thin;scrollbar-color:#626b60 transparent}
.brand{padding-bottom:26px}
.nav-label{padding-top:27px;padding-bottom:17px}
.chapter-group{border-top:1px solid #404942;padding:6px 0}
.chapter-group:first-child{border-top:0}
.chapter{padding-block:12px}
.subchapters{gap:4px;padding:4px 3px 18px 25px}
.subchapter{grid-template-columns:37px minmax(0,1fr);gap:8px;padding:9px 8px;font-size:.8rem;line-height:1.55}
.subchapter.current{background:#394239}
#reader,#chapter-one{padding-top:46px}
#chapter-one h1{margin-bottom:39px}
#reader h1{margin-bottom:27px}
.lead{font-size:1.19rem;line-height:1.7;margin-bottom:43px}
.reading{padding-top:34px;padding-bottom:43px}
#chapter-one .reading{padding-bottom:43px}
.reading h2{margin-bottom:25px}
.reading p,.example p,.activity>p,.practice p,#chapter-one .reading p{line-height:1.75;margin-bottom:17px}
#chapter-one .book-list{line-height:1.72;margin-bottom:18px}
#chapter-one .book-list li{margin:4px 0}
#chapter-one blockquote{line-height:1.7;margin-top:18px}
.decision{margin-top:29px;padding-top:22px}
.music-example{margin:27px 0 33px}
.history-heading{margin-top:29px}
.example{padding-top:35px;padding-bottom:35px}
.activity{padding-top:36px;padding-bottom:37px;margin-bottom:18px}
.practice{margin-bottom:43px}
.option,.option+.option,.option:last-child{padding-top:18px;padding-bottom:18px}
.chapter-pager{padding-top:24px;padding-bottom:37px}
@media(min-width:701px){
  .reading>div:last-child>h2{margin-bottom:22px}
  .reading>div:last-child>p:nth-of-type(2){margin-top:18px}
}
@media(max-width:700px){
  #reader,#chapter-one{padding-top:37px}
  #chapter-one h1{margin-bottom:34px}
  .reading,#chapter-one .reading{padding-top:29px;padding-bottom:37px}
  .subchapters{padding-bottom:15px}
}
/* Section headings belong above the prose, at the full reading width. */
@media(min-width:701px){
  .reading{grid-template-columns:32px 38px minmax(0,1fr);column-gap:13px}
  .reading:before{grid-column:2;grid-row:1;align-self:start;margin-top:17px;width:38px;height:1px;background:#b59a6e}
  .reading .section-number{grid-column:1;grid-row:1;padding-top:5px}
  .reading>div:last-child>h2{grid-column:3;grid-row:1;margin:0!important;padding:0;font-size:clamp(1.35rem,2vw,1.7rem)!important;line-height:1.4}
  .reading>div:last-child>p.section-summary{grid-column:1/-1;grid-row:auto;margin:21px 0 8px!important}
  .reading>div:last-child>p:nth-of-type(2){margin-top:0}
}
@media(max-width:700px){
  .reading .section-number{font-size:.85rem;letter-spacing:.03em;border:0;padding:0;color:#a68859}
  .reading .section-number:after{content:'';display:inline-block;width:35px;height:1px;background:#b59a6e;margin-left:10px;vertical-align:middle}
  .reading h2,#chapter-one .reading h2{margin:4px 0 11px;font-size:1.43rem!important;line-height:1.42}
}
/* The opening sentence of each section is its visible summary. */
.reading>div:last-child>p.section-summary,
#chapter-one .reading>div:last-child>p.section-summary{
  font-size:1.1rem!important;
  line-height:1.68;
  color:#4f574f;
  font-style:italic;
  background:transparent;
  border-left:2px solid var(--gold);
  padding:3px 0 3px 20px;
  max-width:880px;
}
@media(min-width:701px){
  .reading>div:last-child>p.section-summary,
  #chapter-one .reading>div:last-child>p.section-summary{margin:18px 0 25px!important}
}
@media(max-width:700px){
  .reading>div:last-child>p.section-summary,
  #chapter-one .reading>div:last-child>p.section-summary{margin:12px 0 22px!important}
}
.glossary-joined{white-space:nowrap}
.glossary-term{display:inline;font:inherit;font-style:inherit;line-height:inherit;color:#775b39;background:none;border:0;padding:0;text-decoration:underline dotted #a8865e 1px;text-underline-offset:3px;cursor:help}
.glossary-term:hover,.glossary-term[aria-expanded=true]{color:#47351e;text-decoration-style:solid}
.glossary-term:focus-visible{outline:2px solid #9d794d;outline-offset:3px}
.glossary-popover{position:fixed;z-index:30;width:min(355px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow-y:auto;background:#fffcf6;border:1px solid #d7c8ae;box-shadow:0 14px 42px #20271e35;padding:22px 24px 24px;color:#303b33}
.glossary-popover[hidden]{display:none}
.glossary-label{display:block;font:.68rem 'DM Sans',Arial,sans-serif;letter-spacing:.15em;color:#9a7545;margin-bottom:10px}
.glossary-popover h2{font:1.24rem/1.4 'Libre Baskerville',Georgia,serif;margin:0 28px 12px 0}
.glossary-popover p{font:.9rem/1.65 'DM Sans',Arial,sans-serif;margin:0;color:#4c574d}
.glossary-close{position:absolute;top:9px;right:13px;border:0;background:transparent;color:#645b4e;font-size:1.55rem;line-height:1;padding:5px 7px}
@media(max-width:700px){.glossary-close{top:6px;right:7px;min-width:44px;min-height:44px}.glossary-popover{padding:20px 48px 22px 20px}}
/* A quiet visual cue for hands-on work and the reader's decisions. */
.practice{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:16px;background:#ffffff;border-top:1px solid #c3ab83;border-bottom:1px solid #ded6c9;border-left:0;border-radius:0;padding:27px 28px 29px;margin:15px 0 43px}
.practice-icon{grid-column:1;grid-row:1/4;color:#8e7047;padding-top:1px}
.practice>.kicker,.practice>h2,.practice>p{grid-column:2}
.practice>h2{margin:12px 0 9px}
.practice>p{margin:0;line-height:1.75}
@media(max-width:700px){.practice{grid-template-columns:28px minmax(0,1fr);column-gap:12px;padding:22px 17px 24px}.practice-icon svg{width:25px;height:23px}}
/* All reader choices share the same quiet visual language. */
.decision,.activity{background:#edf1ed;border-top:1px solid #adc0b3;border-bottom:1px solid #d4dfd5;border-left:0;border-radius:0}
.decision{margin:32px 0 9px;padding:27px 25px 28px}
.decision .kicker,.activity-top .kicker{display:inline-flex;align-items:center;gap:8px}
.choice-icon{width:23px;height:35px;flex:none;color:#557361}
.activity{padding:34px 26px 38px;margin-bottom:25px}
.practice-icon svg{width:28px;height:41px}
@media(max-width:700px){.decision{padding:23px 17px 25px}.activity{padding:28px 17px 31px}.activity-top{align-items:flex-start}.activity-index{text-align:right}}
/* A continuous reading sheet, with spacing in place of repeated section rules. */
body{background:var(--paper)}
.layout{background:transparent}
.layout>main{background:transparent;min-height:100vh;box-shadow:none}
.reading,#chapter-one .reading,.example{border-top:0}
.reading:before{content:none}
@media(min-width:701px){.reading:before{content:''}}
@media(max-width:700px){.layout{background:transparent}}
/* The four stages read as a sequence; the introductory summary keeps its inset. */
.steps{counter-reset:practice-step;gap:19px 32px;margin:27px 0 31px}
.steps span{position:relative;background:transparent;padding:4px 0 4px 39px;min-height:48px;line-height:1.45}
.steps span::before{counter-increment:practice-step;content:counter(practice-step,decimal-leading-zero);position:absolute;left:0;top:5px;color:#a38761;font:600 .7rem/1.5 'DM Sans',Arial,sans-serif;letter-spacing:.06em}
.steps small{line-height:1.5;margin-top:3px}
@media(max-width:700px){.steps{gap:17px;margin:24px 0}.steps span{min-height:0}}
@media(max-width:700px){.practice-icon svg{width:25px;height:37px}}
/* The practice heading uses the full text width beneath its compact header. */
.practice{grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:0}
.practice-icon{grid-column:1;grid-row:1;padding:0 0 0 4px;line-height:0}
.practice>.kicker{grid-column:2;grid-row:1;align-self:center;text-align:right}
.practice>h2,.practice>p{grid-column:1/-1}
.practice>h2{margin:13px 0 10px}
@media(max-width:700px){.practice{grid-template-columns:minmax(0,1fr) auto}.practice>.kicker{font-size:.59rem;letter-spacing:.12em}}
.practice{grid-template-columns:28px minmax(0,1fr)}
.practice-icon{grid-column:1;padding-left:0}
.practice>.kicker{grid-column:2;text-align:left;padding-left:5px}
@media(max-width:700px){.practice{grid-template-columns:25px minmax(0,1fr)}}
/* Keep the pipe motif beside the heading; no separate category line above it. */
.practice{display:block}
.practice h2,.decision h3,.activity h2{display:flex;align-items:center;gap:13px}
.practice h2{margin:0 0 10px}
.practice h2 .practice-icon{display:block;flex:none;line-height:0;padding:0}
.practice-icon svg{width:29px;height:47px}
.practice>p{margin:0}
.choice-icon{width:26px;height:45px;flex:none;align-self:center}
@media(max-width:700px){.practice h2,.decision h3,.activity h2{gap:10px}.practice-icon svg{width:27px;height:44px}.choice-icon{width:24px;height:42px}}
/* A more open italic for section summaries. */
.reading>div:last-child>p.section-summary,
#chapter-one .reading>div:last-child>p.section-summary{
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:1.13rem!important;
  font-style:italic;
  letter-spacing:.012em;
  line-height:1.72;
}
/* Selection controls signal their behavior without explanatory labels. */
.decision-options button{display:flex;align-items:center;gap:11px;cursor:pointer}
.decision-options button::before{content:'';width:15px;height:15px;flex:none;border:1.5px solid #8a9d8e;border-radius:50%;background:transparent}
.decision-options button:hover::before,.decision-options button:focus-visible::before{border-color:#496a55;background:#dce8dc}
.decision-options button[aria-pressed=true]::before{border:5px solid #557361;background:#fff}
.option{cursor:pointer}
.option .option-check{font-size:1.7rem;line-height:1;color:#77917e}
.option:hover .option-check,.option:focus-visible .option-check,.option.chosen .option-check{color:#395d46}
.option:hover .option-head>span:first-child,.option:focus-visible .option-head>span:first-child{text-decoration:underline;text-underline-offset:5px;text-decoration-color:#93ad98}
.option.chosen .option-head>span:first-child{text-decoration:none}
.example>p{margin-bottom:8px}
.example>.score-wrap{margin-top:12px;padding-block:7px}
.option-head{justify-content:flex-start;gap:11px}
.option-check{order:-1;display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px}
/* Captions identify the score without competing with chapter headings. */
.music-example h3,.notation-caption{
  font:400 .86rem/1.65 'DM Sans',Arial,sans-serif!important;
  letter-spacing:.005em;
  color:#667168;
  margin:11px 0 13px;
}
.score-caption,.music-example .score-caption,.example .score-caption,.reading .score-caption{
  display:block;
  margin:12px 0 5px;
  font:400 .86rem/1.65 'DM Sans',Arial,sans-serif!important;
  letter-spacing:.005em;
  color:#667168;
}
.score-caption-label{display:inline;color:var(--gold);font-size:.69rem;font-weight:700;letter-spacing:.14em;white-space:nowrap;margin-right:10px}
.example>.score-wrap{margin-top:0}
/* Book spacing: a caption belongs to its score, an example to its section. */
.reading,#chapter-one .reading{padding-block:27px 31px}
.reading>div:last-child>p.section-summary,
#chapter-one .reading>div:last-child>p.section-summary{margin:16px 0 19px!important}
.reading>div:last-child>p.section-summary:last-child,
#chapter-one .reading>div:last-child>p.section-summary:last-child{margin-bottom:0!important}
.reading p,.example p,.activity>p,.practice p,#chapter-one .reading p{margin-bottom:17px}
.reading p:last-child{margin-bottom:0}
.reading:has(+ .example){padding-bottom:16px}
.example{padding-block:8px 24px;margin:0}
.example>p{margin:0 0 12px}
.music-example{margin:25px 0 27px}
.score-caption,.music-example .score-caption,.example .score-caption,.reading .score-caption{margin:11px 0 3px}
.score-wrap,.reading .score-wrap,.music-example .facsimile{margin-top:0;margin-bottom:13px}
.example>.score-wrap{margin-top:0}
.activity{margin-top:13px;margin-bottom:16px}
.practice{margin-top:15px;margin-bottom:33px}
@media(max-width:700px){
  .reading,#chapter-one .reading{padding-block:24px 27px}
  .reading:has(+ .example){padding-bottom:13px}
  .example{padding-block:7px 21px}
  .activity{margin-top:10px;margin-bottom:12px}
}
body.cover-open{overflow:hidden}
.cover{scrollbar-width:none}
.cover::-webkit-scrollbar{display:none}
.level-switch{display:grid;gap:4px;position:sticky;top:0;z-index:1;margin:0;padding:16px 12px;border:0;border-bottom:1px solid #484e49;background:var(--dark);color:#f3eee4;text-align:left;line-height:1.4;width:100%}
.level-switch-label{font-size:.68rem;letter-spacing:.1em;color:#bfc3ba;text-transform:uppercase}
.level-switch-value{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.91rem;font-weight:600;color:#e1c28f}
.level-switch:hover .level-switch-value{text-decoration:underline;text-underline-offset:4px}
.level-dialog{width:min(540px,calc(100vw - 32px));max-height:min(740px,calc(100dvh - 32px));overflow-y:auto;padding:35px 38px 38px;border:1px solid #d8d0bf;background:#ffffff;color:#242825}
.level-dialog h2{font-size:1.8rem;line-height:1.35;margin:15px 0 13px}
.level-dialog p{font:1rem/1.7 'Libre Baskerville',Georgia,serif;margin-bottom:23px}
.level-options{display:grid;gap:9px}
.level-options button{display:grid;gap:5px;border:1px solid #d9d5ca;background:transparent;color:#303830;padding:16px 18px;text-align:left;line-height:1.4}
.level-options button:hover,.level-options button:focus-visible,.level-options button[aria-pressed=true]{border-color:#a88b61;background:#ffffff}
.level-options strong{font-size:1rem}.level-options span{font-size:.8rem;color:#69726a}
.glossary-term:disabled{color:inherit;text-decoration:none;cursor:inherit;opacity:1}
@media(max-width:700px){.level-dialog{padding:27px 21px}.level-dialog h2{font-size:1.45rem}}
/* The third chapter follows the same page measure and section rhythm. */
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors)[hidden]{display:none!important}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors){max-width:760px;margin:auto;padding:46px clamp(25px,3vw,38px) 30px}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) h1{margin-bottom:30px}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .lead{margin-bottom:22px}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .topic-heading{font:400 1.24rem/1.48 'Libre Baskerville',Georgia,serif;margin:29px 0 11px;color:#333b34}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) h4.topic-heading{font-size:1.07rem;margin-top:23px}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .manuscript-score{padding-block:6px;overflow-y:hidden}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .manuscript-score img{display:block;width:100%;min-width:0;max-width:100%;height:auto;margin:0 0 9px;mix-blend-mode:multiply}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .manuscript-score img:last-child{margin-bottom:0}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .score-caption{margin-top:14px;margin-bottom:3px}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .score-caption+.manuscript-score{margin-top:0}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .history-wrap{margin:18px 0 20px}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .decision{margin-top:31px}
@media(max-width:700px){
  :is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors){padding:37px 23px 25px}
  :is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .manuscript-score{overflow-x:auto;overflow-y:hidden}
  :is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .manuscript-score img{width:850px;min-width:850px;max-width:none}
  :is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .topic-heading{margin-top:24px}
}
.score-system{width:100%;min-width:0}
/* Space belongs between written systems, independently of each image's inner margins. */
.manuscript-score .score-system+.score-system{margin-top:28px}
.score-system:focus-visible{outline:2px solid #a88b61;outline-offset:2px}
@media(max-width:700px){
  .manuscript-score .score-system+.score-system{margin-top:24px}
  :is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .manuscript-score:has(.score-system){overflow:visible;padding-block:0}
  :is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .manuscript-score .score-system{overflow-x:auto;overflow-y:hidden;scrollbar-color:#ac936f transparent}
  :is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .manuscript-score .score-system img{margin-bottom:0}
}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .variation-label{margin:13px 0 3px;color:#6a756b;font:500 .82rem/1.5 'DM Sans',Arial,sans-serif}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .variation-label+.manuscript-score{margin-top:0}
/* Source-scale adjustments apply only on phones; desktop examples fill the page measure. */
@media(max-width:700px){:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .score-compact img{width:360px;min-width:360px;max-width:none}}
@media(max-width:700px){.music-example .facsimile img{width:760px;min-width:760px;max-width:none}}
/* Reduce multi-staff systems only on phones, keeping horizontal scrolling. */
@media(max-width:700px){
  :is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .manuscript-score[data-staves="2"]:not(.score-compact) img{width:748px;min-width:748px;max-width:none}
  :is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .manuscript-score[data-staves="3"] img{width:646px;min-width:646px;max-width:none}
  :is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .manuscript-score[data-staves="4"] img{width:578px;min-width:578px;max-width:none}
  :is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .manuscript-score.score-compact img{width:324px;min-width:324px;max-width:none}
}
/* Chapter four uses the same reading measure and score sizes as chapter three. */
#chapter-four[hidden]{display:none!important}
#chapter-four{max-width:760px;margin:auto;padding:46px clamp(25px,3vw,38px) 30px}
#chapter-four h1{margin-bottom:30px}
#chapter-four .lead{margin-bottom:16px}
#chapter-four .topic-heading{font:400 1.24rem/1.48 'Libre Baskerville',Georgia,serif;margin:29px 0 11px;color:#333b34}
#chapter-four .manuscript-score{padding-block:6px;overflow-y:hidden}
#chapter-four .manuscript-score img{display:block;width:100%;min-width:0;max-width:100%;height:auto;margin:0 0 9px;mix-blend-mode:multiply}
#chapter-four .manuscript-score img:last-child{margin-bottom:0}
#chapter-four .score-caption{margin-top:14px;margin-bottom:3px}
#chapter-four .score-caption+.manuscript-score{margin-top:0}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .reading .practice,#chapter-four .practice{margin:25px 0 32px}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .reading .practice h2,#chapter-four .practice h2{font-size:1.12rem;margin:0 0 9px;display:flex;align-items:center;gap:10px}
:is(#chapter-three,#chapter-melody,#chapter-harmony,#chapter-polyphony,#chapter-modulation,#chapter-colors) .reading .practice p,#chapter-four .practice p{font-size:.92rem}
@media(max-width:700px){
  #chapter-four{padding:37px 23px 25px}
  #chapter-four .manuscript-score{overflow-x:auto;overflow-y:hidden}
  #chapter-four .manuscript-score img{width:850px;min-width:850px;max-width:none}
  #chapter-four .manuscript-score[data-staves="2"] img{width:748px;min-width:748px;max-width:none}
  #chapter-four .manuscript-score[data-staves="3"] img{width:646px;min-width:646px;max-width:none}
  #chapter-four .manuscript-score.score-compact img{width:425px;min-width:425px;max-width:none}
  #chapter-four .manuscript-score:has(.score-system){overflow:visible;padding-block:0}
  #chapter-four .manuscript-score .score-system{overflow-x:auto;overflow-y:hidden;scrollbar-color:#ac936f transparent}
  #chapter-four .manuscript-score .score-system img{margin-bottom:0}
}
/* Chapter five keeps the same page measure and notation scale. */
#chapter-five[hidden]{display:none!important}
#chapter-five{max-width:760px;margin:auto;padding:46px clamp(25px,3vw,38px) 30px}
#chapter-five h1{margin-bottom:30px}
#chapter-five .lead{margin-bottom:16px}
#chapter-five .topic-heading{font:400 1.24rem/1.48 'Libre Baskerville',Georgia,serif;margin:29px 0 11px;color:#333b34}
#chapter-five .manuscript-score{padding-block:6px;overflow-y:hidden}
#chapter-five .manuscript-score img{display:block;width:100%;min-width:0;max-width:100%;height:auto;margin:0 0 9px;mix-blend-mode:multiply}
#chapter-five .manuscript-score img:last-child{margin-bottom:0}
#chapter-five .score-caption{margin-top:14px;margin-bottom:3px}
#chapter-five .score-caption+.manuscript-score{margin-top:0}
#chapter-five .reading .practice{margin:25px 0 32px}
#chapter-five .reading .practice h2{font-size:1.12rem;margin:0 0 9px;display:flex;align-items:center;gap:10px}
#chapter-five .reading .practice p{font-size:.92rem}
@media(max-width:700px){
  #chapter-five{padding:37px 23px 25px}
  #chapter-five .manuscript-score{overflow-x:auto;overflow-y:hidden}
  #chapter-five .manuscript-score img{width:850px;min-width:850px;max-width:none}
  #chapter-five .manuscript-score[data-staves="2"] img{width:748px;min-width:748px;max-width:none}
  #chapter-five .manuscript-score[data-staves="3"] img{width:646px;min-width:646px;max-width:none}
  #chapter-five .manuscript-score:has(.score-system){overflow:visible;padding-block:0}
  #chapter-five .manuscript-score .score-system{overflow-x:auto;overflow-y:hidden;scrollbar-color:#ac936f transparent}
  #chapter-five .manuscript-score .score-system img{margin-bottom:0}
}
/* Chapter six uses the same text measure as the preceding chapters. */
#chapter-six[hidden]{display:none!important}
#chapter-six{max-width:760px;margin:auto;padding:46px clamp(25px,3vw,38px) 30px}
#chapter-six h1{margin-bottom:30px}
#chapter-six .lead{margin-bottom:24px}
#chapter-six .topic-heading{font:400 1.24rem/1.48 'Libre Baskerville',Georgia,serif;margin:29px 0 11px;color:#333b34}
#chapter-six .reading .practice{margin:25px 0 32px}
#chapter-six .reading .practice h2{font-size:1.12rem;margin:0 0 9px;display:flex;align-items:center;gap:10px}
#chapter-six .reading .practice p{font-size:.92rem}
@media(max-width:700px){#chapter-six{padding:37px 23px 25px}}
/* Chapter seven follows the same reading measure and staff scale. */
#chapter-seven[hidden]{display:none!important}
#chapter-seven{max-width:760px;margin:auto;padding:46px clamp(25px,3vw,38px) 30px}
#chapter-seven h1{margin-bottom:30px}
#chapter-seven .lead{margin-bottom:24px}
#chapter-seven .reading .practice{margin:25px 0 32px}
#chapter-seven .reading .practice h2{font-size:1.12rem;margin:0 0 9px;display:flex;align-items:center;gap:10px}
#chapter-seven .reading .practice p{font-size:.92rem}
#chapter-seven .manuscript-score{padding-block:6px;overflow-y:hidden}
#chapter-seven .manuscript-score img{display:block;width:100%;min-width:0;max-width:100%;height:auto;margin:0 0 9px;mix-blend-mode:multiply}
#chapter-seven .manuscript-score img:last-child{margin-bottom:0}
#chapter-seven .score-caption{margin:14px 0 3px}
#chapter-seven .score-caption+.manuscript-score{margin-top:0}
@media(max-width:700px){
  #chapter-seven{padding:37px 23px 25px}
  #chapter-seven .manuscript-score{overflow-x:auto;overflow-y:hidden}
  #chapter-seven .manuscript-score[data-staves="3"] img{width:646px;min-width:646px;max-width:none;height:auto}
  #chapter-seven .manuscript-score[data-staves="4"] img{width:578px;min-width:578px;max-width:none;height:auto}
  #chapter-seven .manuscript-score:has(.score-system){overflow:visible;padding-block:0}
  #chapter-seven .manuscript-score .score-system{overflow-x:auto;overflow-y:hidden;scrollbar-color:#ac936f transparent}
  #chapter-seven .manuscript-score .score-system img{width:748px;min-width:748px;max-width:none;margin:0}
}
#chapter-eight[hidden]{display:none!important}
#chapter-eight{max-width:760px;margin:auto;padding:46px clamp(25px,3vw,38px) 30px}
#chapter-eight h1{margin-bottom:30px}
#chapter-eight .lead{margin-bottom:24px}
#chapter-eight .topic-heading{font:400 1.24rem/1.48 'Libre Baskerville',Georgia,serif;margin:29px 0 11px;color:#333b34}
#chapter-eight .reading .practice{margin:25px 0 32px}
#chapter-eight .reading .practice h2{font-size:1.12rem;margin:0 0 9px;display:flex;align-items:center;gap:10px}
#chapter-eight .reading .practice p{font-size:.92rem}
@media(max-width:700px){#chapter-eight{padding:37px 23px 25px}}
#chapter-nine[hidden]{display:none!important}
#chapter-nine{max-width:760px;margin:auto;padding:46px clamp(25px,3vw,38px) 30px}
#chapter-nine h1{margin-bottom:30px}
#chapter-nine .lead{margin-bottom:24px}
#chapter-nine .reading .practice{margin:25px 0 32px}
#chapter-nine .reading .practice h2{font-size:1.12rem;margin:0 0 9px;display:flex;align-items:center;gap:10px}
#chapter-nine .reading .practice p{font-size:.92rem}
#chapter-nine .manuscript-score{padding-block:6px;overflow-y:hidden}
#chapter-nine .manuscript-score img{display:block;width:100%;min-width:0;max-width:100%;height:auto;margin:0;mix-blend-mode:multiply}
#chapter-nine .score-caption{margin:14px 0 3px}
#chapter-nine .score-caption+.manuscript-score{margin-top:0}
@media(max-width:700px){
  #chapter-nine{padding:37px 23px 25px}
  #chapter-nine .manuscript-score{overflow-x:auto;overflow-y:hidden;scrollbar-color:#ac936f transparent}
  #chapter-nine .manuscript-score img{width:850px;min-width:850px;max-width:none}
  #chapter-nine .manuscript-score[data-staves="2"] img{width:748px;min-width:748px;max-width:none}
}

/* Two contrasting paths do not need an empty third column. */
@media(min-width:701px){.decision-options.two-options{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Shared book header keeps the sidebar dedicated to the contents. */
:root{--book-header-height:96px;--book-header-offset:var(--book-header-height)}
.book-header{position:sticky;top:0;z-index:5;background:#ffffff;color:var(--ink);border-bottom:1px solid var(--line);transition:transform .2s ease}
.book-header-hidden{--book-header-offset:0px}
.book-header-hidden .book-header{transform:translateY(-100%)}
.book-header-inner{max-width:1160px;margin-inline:auto;padding:12px 26px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:26px}
.book-header .brand{min-width:0;padding:0;border:0}
.book-header .brand-small{font-size:.75rem;line-height:1.4;letter-spacing:.14em;margin-bottom:3px;color:#806e50}
.book-header .brand strong{font-size:1.25rem;line-height:1.3;letter-spacing:0}
.book-header .brand>span{font-size:.875rem;line-height:1.4;margin-top:3px;color:var(--muted)}
.book-header-actions{display:flex;align-items:center;gap:26px}
.book-header .back-home{margin:0;white-space:nowrap;min-height:44px;color:var(--muted)}
.book-header .back-home:hover{color:var(--ink)}
.book-header .level-switch{position:static;width:auto;min-width:175px;padding:6px 0 6px 23px;border:0;border-left:1px solid var(--line);background:transparent;color:var(--ink)}
.book-header .level-switch-label{font-size:.75rem;letter-spacing:.035em;color:var(--muted)}
.book-header .level-switch-value{font-size:.875rem;color:#806e50}
.menu-toggle{display:none}
.layout{min-height:calc(100dvh - var(--book-header-height))}
.sidebar{top:var(--book-header-offset);height:calc(100dvh - var(--book-header-offset));padding-top:21px;transition:top .2s ease,height .2s ease,transform .2s}
.sidebar .nav-label{padding-top:0;padding-bottom:16px;font-size:.75rem;letter-spacing:.14em}
.reading[id]{scroll-margin-top:calc(var(--book-header-offset) + 18px)}
@media(min-width:701px) and (max-width:980px){
  .book-header-inner{gap:20px}
  .book-header .brand strong{font-size:1.2rem}
  .book-header-actions{gap:17px}
  .book-header .level-switch{min-width:166px;padding-left:17px}
}
@media(max-width:700px){
  .book-header-inner{padding:10px 20px 8px;grid-template-columns:36px minmax(0,1fr);gap:8px 14px}
  .menu-toggle{display:block;align-self:center;border:0;background:transparent;color:var(--ink);font-size:1.3rem;line-height:1;padding:10px 5px;min-height:44px}
  .book-header .brand-small{font-size:.75rem;margin-bottom:3px}
  .book-header .brand strong{font-size:1.05rem;line-height:1.35}
  .book-header .brand>span{display:none}
  .book-header-actions{grid-column:1/-1;justify-content:space-between;gap:16px;padding-top:6px;border-top:1px solid var(--line)}
  .book-header .level-switch{padding:0 0 0 16px;min-width:0}
  .book-header .level-switch-label{font-size:.75rem;letter-spacing:0}
  .book-header .back-home{font-size:.875rem}
  .sidebar{top:var(--book-header-offset);height:calc(100dvh - var(--book-header-offset));padding-top:21px}
}
@media(prefers-reduced-motion:reduce){.book-header,.sidebar{transition:none}}

/* Consistent captions, lists and stacked systems across every chapter. */
main article .score-caption{font:400 .86rem/1.65 'DM Sans',Arial,sans-serif!important;font-style:normal!important;letter-spacing:.005em;background:transparent;padding:0;margin:14px 0 3px!important;color:#667168}
main article .score-caption-label{font-size:.72rem}
main article .book-list{font:1rem/1.75 'Libre Baskerville',Georgia,serif;color:#4d5550;padding-left:25px;margin:4px 0 18px}
main article .book-list li{padding-left:5px;margin:4px 0}
@media(min-width:701px){#chapter-harmony .score-compact img{width:324px;max-width:100%;min-width:0}}
@media(max-width:700px){
  #chapter-nine .manuscript-score:has(.score-system){overflow:visible;padding-block:0}
  #chapter-nine .manuscript-score .score-system{overflow-x:auto;overflow-y:hidden;scrollbar-color:#ac936f transparent;padding-bottom:8px}
  #chapter-nine .manuscript-score .score-system img{margin-bottom:0}
  .thumbnail{height:auto;padding-block:12px 20px}
}

.book-header .brand-home{display:block;width:100%;text-align:left;background:transparent;color:inherit;cursor:pointer}
.book-header .brand-home:hover strong{text-decoration:underline;text-decoration-color:#a99a7e;text-underline-offset:4px}
.book-header .brand-home:focus-visible{outline:2px solid #a9814c;outline-offset:5px}


/* Uniform staff height on phones; keep the source image proportions. */
@media(max-width:700px){
  :is(.score-wrap,.thumbnail,.comparison) img[style*="--mobile-score-width"]{width:var(--mobile-score-width)!important;min-width:var(--mobile-score-width)!important;max-width:none!important;height:auto!important;max-height:none!important}
}

@media(max-width:700px){.thumbnail:has(img[style*="--mobile-score-width"]){height:auto;min-height:0;padding-block:8px 12px}}

/* Readable chapter headings and a consistent short introduction. */
main > article > h1{letter-spacing:0;line-height:1.22;margin-bottom:24px}
main > article > h1 em{letter-spacing:inherit}
main > article > p.lead{display:block;visibility:visible;font-size:1.12rem;line-height:1.75;color:#3f4741;max-width:100%;margin:0 0 30px}
main > article .reading h2,main > article .example h2,main > article .activity h2,main > article .practice h2{letter-spacing:0!important}
@media(max-width:700px){
  main > article > h1{font-size:clamp(2.45rem,8vw,3.3rem);line-height:1.25;margin-bottom:20px}
  main > article > p.lead{font-size:1rem;line-height:1.75;margin-bottom:26px}
}

/* Chapter overview sits immediately below its title, before section 1. */
main > article > p.chapter-summary{
 display:block!important;visibility:visible!important;opacity:1!important;
 font:400 1.08rem/1.8 'Libre Baskerville',Georgia,serif;
 color:#4d5550;max-width:100%;margin:0 0 32px!important;
}
@media(max-width:700px){main > article > p.chapter-summary{font-size:1rem;line-height:1.75;margin-bottom:26px!important}}

/* Chapter titles receive programmatic focus for screen readers, without a decorative outline. */
main > article > h1:focus{outline:none}

/* Short Vierne excerpts retain the staff scale of the surrounding examples. */
#chapter-seven .vierne-excerpt img{margin-inline:auto}
@media(min-width:701px){
 #chapter-seven .vierne-excerpt img{width:var(--excerpt-width);min-width:0;max-width:100%;height:auto}
}

#chapter-seven .cochereau-excerpt img{margin-inline:auto}
@media(min-width:701px){#chapter-seven .cochereau-excerpt img{width:var(--excerpt-width);min-width:0;max-width:100%;height:auto}}

#chapter-seven .dupre-excerpt img{margin-inline:auto}
@media(min-width:701px){#chapter-seven .dupre-excerpt img{width:var(--excerpt-width);min-width:0;max-width:100%;height:auto}}

/* Chapter links share a top edge; arrows never wrap onto a separate line. */
.chapter-pager{align-items:flex-start}
.chapter-pager button{display:flex;flex-direction:column;justify-content:flex-start}
.chapter-pager .pager-title{display:flex;align-items:baseline;gap:6px}
.chapter-pager .pager-title-text{min-width:0}
.chapter-pager .pager-arrow{flex:0 0 auto}
.chapter-pager .pager-next{align-items:flex-end}
@media(max-width:700px){.chapter-pager .pager-next{align-items:flex-start}}

/* Paired analyses keep a consistent staff scale and center short excerpts. */
#chapter-seven .paired-excerpt img{margin-inline:auto}
@media(min-width:701px){#chapter-seven .paired-excerpt img{width:var(--excerpt-width);min-width:0;max-width:100%;height:auto}}

/* Chapter 11 closes separately from the last composer example. */
#chapter-seven .chapter-conclusion{margin-top:44px}
#chapter-seven .chapter-conclusion h2{margin-bottom:16px}
@media(max-width:700px){#chapter-seven .chapter-conclusion{margin-top:32px}}

/* Example 47: smaller staff scale, centered within the book measure. */
#chapter-four .score-example-47 img{margin-inline:auto}
@media(min-width:701px){#chapter-four .score-example-47 img{width:425px;min-width:0;max-width:100%;height:auto}}

/* White score backgrounds blend with the book paper. */
.score-wrap img[src="assets/ritmicna-razsiritev-motiva-bela.png"],
.score-wrap img[src="assets/ritmicno-vprasanje-odgovor-belo.png"]{mix-blend-mode:multiply}

/* Audio excerpts sit quietly below their notation, without automatic playback. */
.audio-example{margin-top:16px}
.audio-example audio{display:block;width:100%;max-width:480px;height:40px;color-scheme:light}

/* Keep each harmonization recording beside its own choice, outside the button. */
.harmonization-choice{min-width:0;padding-bottom:18px;border-bottom:1px solid var(--line)}
.harmonization-choice .option{width:100%;border-bottom:0;padding-bottom:0}
.harmonization-choice .audio-example{margin-top:10px}


/* Fade only edges with additional notation available by horizontal scrolling. */
.score-edge-left,.score-edge-right{
  --score-edge-start:#000;
  --score-edge-end:#000;
  -webkit-mask-image:linear-gradient(to right,var(--score-edge-start),#000 24px,#000 calc(100% - 24px),var(--score-edge-end));
  mask-image:linear-gradient(to right,var(--score-edge-start),#000 24px,#000 calc(100% - 24px),var(--score-edge-end));
}
.score-edge-left{--score-edge-start:transparent}
.score-edge-right{--score-edge-end:transparent}


/* Keep narrow notation examples at their source engraving scale instead of enlarging them to the page width. Long examples may still shrink to fit. This keeps clef/staff size visually consistent across examples. */
@media(min-width:701px){
  main article .manuscript-score img{
    width:auto;
    max-width:100%;
    min-width:0;
    height:auto;
    margin-left:auto;
    margin-right:auto;
  }
}


/* Unified book audio player: browser-native controls stay hidden behind a consistent,
   quiet control surface on desktop, tablet and phone. */
.audio-example.audio-custom{display:flex;align-items:center;gap:11px;width:100%;max-width:none;margin-top:16px}
.audio-example.audio-custom audio{display:none}
.audio-custom-play{flex:0 0 38px;width:38px;height:38px;border:1px solid #c8bda9;border-radius:50%;background:transparent;color:#665b49;display:grid;place-items:center;padding:0;font-size:0}
.audio-custom-play::before{content:"";width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:8px solid currentColor;margin-left:2px}
.audio-example.is-playing .audio-custom-play::before{width:8px;height:10px;border:0;border-left:3px solid currentColor;border-right:3px solid currentColor;margin-left:0}
.audio-custom-time{flex:0 0 auto;min-width:68px;color:#777d77;font:500 .72rem/1 'DM Sans',Arial,sans-serif;font-variant-numeric:tabular-nums}
.audio-custom-range{flex:1;min-width:80px;height:22px;margin:0;accent-color:#9a805c;cursor:pointer}
@media(max-width:700px){.audio-example.audio-custom{max-width:100%;gap:9px}.audio-custom-time{min-width:64px;font-size:.69rem}}


/* Editorial rhythm: notation and its recording read as one compact unit, while
   successive ideas remain clearly separated. */
main article .music-example{
  margin-top:30px;
  margin-bottom:38px;
}
main article .music-example .score-caption{
  margin-bottom:7px!important;
}
main article .music-example .score-wrap{
  margin-top:0;
  margin-bottom:0;
}
main article .music-example .score-wrap + .audio-example,
main article .music-example .score-wrap + .audio-pair{
  margin-top:9px;
}
main article .music-example .audio-example{
  margin-bottom:0;
}
main article .music-example .audio-example + .score-wrap,
main article .music-example .audio-pair + .score-wrap{
  margin-top:25px;
}
main article .music-example + p,
main article .music-example + .topic-heading,
main article .music-example + .practice{
  margin-top:0;
}
main article .reading > div > .music-example:last-child{
  margin-bottom:10px;
}
@media(max-width:700px){
  main article .music-example{margin-top:25px;margin-bottom:32px}
  main article .music-example .score-caption{margin-bottom:6px!important}
  main article .music-example .score-wrap + .audio-example,
  main article .music-example .score-wrap + .audio-pair{margin-top:8px}
  main article .music-example .audio-example + .score-wrap,
  main article .music-example .audio-pair + .score-wrap{margin-top:22px}
}


/* Global editorial vertical rhythm: one spacing system across all chapters. */
main article .reading{padding-top:30px;padding-bottom:38px}
main article .reading h2{margin:0 0 16px}
main article .reading .topic-heading{margin-top:27px;margin-bottom:11px}
main article .reading h4.topic-heading{margin-top:22px;margin-bottom:9px}
main article .reading p,
main article .example p{margin-bottom:16px}
main article .reading p:last-child,
main article .example p:last-child{margin-bottom:0}
main article .reading .book-list{margin-top:7px;margin-bottom:18px}
main article .reading blockquote{margin-top:20px;margin-bottom:20px}
main article .reading .terms{margin-top:20px;margin-bottom:20px}
main article .reading .decision{margin-top:28px}
main article .reading .practice{margin-top:24px;margin-bottom:30px}
main article .reading .practice + .topic-heading,
main article .reading .music-example + .topic-heading{margin-top:28px}
main article .reading + .practice{margin-top:-8px;margin-bottom:38px}
main article .chapter-pager{margin-top:38px}
@media(max-width:700px){
  main article .reading{padding-top:26px;padding-bottom:32px}
  main article .reading h2{margin-bottom:14px}
  main article .reading .topic-heading{margin-top:24px;margin-bottom:10px}
  main article .reading h4.topic-heading{margin-top:20px;margin-bottom:8px}
  main article .reading p,main article .example p{margin-bottom:15px}
  main article .reading .practice{margin-top:21px;margin-bottom:26px}
  main article .reading .practice + .topic-heading,
  main article .reading .music-example + .topic-heading{margin-top:25px}
  main article .reading + .practice{margin-top:-6px;margin-bottom:32px}
}


/* Example 03: keep its recording visually attached to the notation. */
#chapter-one .score-caption + .score-wrap + .audio-example{margin-top:8px}


/* Legacy score markup follows the same editorial spacing as .music-example.
   This unifies caption -> notation -> audio without risky HTML restructuring. */
main article .score-caption + .score-wrap{margin-top:0}
main article .score-wrap + .audio-example,
main article .score-wrap + .audio-pair{margin-top:9px}
main article .audio-example + .score-wrap,
main article .audio-pair + .score-wrap{margin-top:25px}
main article .score-wrap + .score-caption{margin-top:28px!important}
main article .score-wrap + .variation-label{margin-top:22px}
main article .variation-label + .score-wrap{margin-top:4px}
@media(max-width:700px){
  main article .score-wrap + .audio-example,
  main article .score-wrap + .audio-pair{margin-top:8px}
  main article .audio-example + .score-wrap,
  main article .audio-pair + .score-wrap{margin-top:22px}
  main article .score-wrap + .score-caption{margin-top:25px!important}
  main article .score-wrap + .variation-label{margin-top:20px}
}


/* Responsive audit: prevent small-screen layout anomalies without changing the approved visual language. */
@media(max-width:1050px){
  main article .audio-pair{grid-template-columns:1fr!important;gap:9px!important}
}
@media(max-width:700px){
  main article{min-width:0}
  main article .score-wrap,
  main article .score-system,
  main article .audio-example,
  main article .audio-pair{max-width:100%}
  main article .audio-custom-range{min-width:0}
  main article .score-caption{overflow-wrap:anywhere}
  main article .practice,
  main article .activity{max-width:100%}
}



/* Comparison and observation replace quiz-like choices. */
.comparison-study{margin:24px 0 38px;padding:28px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.comparison-study>h3,.observation h3{font:400 1.15rem/1.5 'Libre Baskerville',Georgia,serif;margin:0 0 10px;color:#333b34}
.comparison-study>p{font:1rem/1.8 'Libre Baskerville',Georgia,serif;color:#4d5550;margin:0 0 22px}
.comparison-variants{display:grid;gap:28px}
.comparison-variant h4{font:600 .78rem/1.5 'DM Sans',Arial,sans-serif;letter-spacing:.06em;color:#806e50;margin:0 0 6px}
.comparison-variant .score-wrap{margin:0}
.comparison-variant .audio-example{margin-top:8px}
.observation-note{margin:9px 0 0!important;font:.88rem/1.65 'DM Sans',Arial,sans-serif!important;color:#68706b!important}
.observation{margin:20px 0 28px;padding:17px 0 17px 20px;border-left:2px solid #b69a70}
.observation p{margin:0!important;font:.95rem/1.75 'Libre Baskerville',Georgia,serif;color:#4d5550}
@media(max-width:700px){.comparison-study{margin:21px 0 32px;padding:24px 0}.comparison-variants{gap:24px}.observation{margin:18px 0 25px;padding-left:16px}}

/* =========================================================
   NOTNI PRIMERI — ENOTEN KONČNI SISTEM
   Desktop: brez vodoravnih drsnikov; primer se ne povečuje nad naravno širino
   in se po potrebi zmanjša do širine stolpca.
   Mobile: ohrani berljivo notno merilo; širok primer drsi samo znotraj svojega okvirja.
   ========================================================= */

.score-wrap,
.manuscript-score,
.score-system,
.comparison-variant,
.comparison-variant .score-wrap{
  min-width:0;
  max-width:100%;
}

.score-wrap img,
.manuscript-score img,
.score-system img,
.comparison-variant .score-wrap img{
  display:block;
  height:auto;
  background:transparent;
}

@media (min-width:701px){
  main article .score-wrap,
  main article .manuscript-score,
  main article .score-system,
  main article .comparison-variant,
  main article .comparison-variant .score-wrap{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:visible;
    overflow-y:visible;
    scrollbar-width:none;
  }

  main article .score-wrap::-webkit-scrollbar,
  main article .manuscript-score::-webkit-scrollbar,
  main article .score-system::-webkit-scrollbar,
  main article .comparison-variant .score-wrap::-webkit-scrollbar{
    display:none;
  }

  /* Same engraving reference on desktop. Never enlarge beyond 760px;
     never exceed the reading column. */
  main article .score-wrap img[src$=".svg"],
  main article .manuscript-score img[src$=".svg"],
  main article .score-system img[src$=".svg"],
  main article .comparison-variant .score-wrap img[src$=".svg"]{
    width:760px;
    min-width:0;
    max-width:100%;
    height:auto;
    margin-left:0;
    margin-right:auto;
  }

  main article :is(.score-wrap,.manuscript-score,.score-system).score-edge-left,
  main article :is(.score-wrap,.manuscript-score,.score-system).score-edge-right{
    -webkit-mask-image:none;
    mask-image:none;
  }
}

@media (max-width:700px){
  main article .score-wrap,
  main article .manuscript-score,
  main article .score-system,
  main article .comparison-variant .score-wrap{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-x:contain;
    padding-bottom:12px;
  }

  main article .score-wrap img[src$=".svg"],
  main article .manuscript-score img[src$=".svg"],
  main article .score-system img[src$=".svg"],
  main article .comparison-variant .score-wrap img[src$=".svg"]{
    width:760px;
    min-width:760px;
    max-width:none;
    height:auto;
    margin-left:0;
    margin-right:0;
  }
}


/* Example 20 sublabels: same restrained book typography above each modal example. */
.score-subcaption{
  margin:12px 0 2px;
  font-family:'DM Sans',Arial,sans-serif;
  font-size:.68rem;
  font-weight:400;
  line-height:1.2;
  letter-spacing:0;
  text-transform:none;
  color:var(--muted);
  opacity:.82;
}
.score-subcaption + .score-wrap{margin-top:0;padding-top:3px}


/* Score variant labels must remain genuinely small inside reading sections. */
main article .reading p.score-subcaption{
  margin:10px 0 1px!important;
  padding:0!important;
  font-family:'DM Sans',Arial,sans-serif!important;
  font-size:11px!important;
  font-weight:400!important;
  line-height:1.15!important;
  letter-spacing:0!important;
  text-transform:none!important;
  color:var(--muted)!important;
  opacity:.78;
}
main article .reading p.score-subcaption + .score-wrap{
  margin-top:0!important;
  padding-top:2px!important;
}


/* Mobile PNG notation: give each scrolling layer the same paper backdrop.
   This keeps white source backgrounds visually merged with the book page
   even when mobile browsers isolate mix-blend-mode inside overflow scrollers. */
@media(max-width:700px){
  main article .manuscript-score,
  main article .manuscript-score .score-system{
    background:var(--paper);
  }
  main article .manuscript-score img{
    mix-blend-mode:multiply;
  }
}



/* Titles live inside each score-system so they move together with the notation. */
.score-system-header{
  display:grid;
  align-items:end;
  gap:16px;
  width:max-content;
  min-width:100%;
  padding:0 0 6px;
  color:#2f332f;
  font:400 .96rem/1.25 'Libre Baskerville',Georgia,serif;
  white-space:nowrap;
}
.score-system-header.header-one{grid-template-columns:1fr}
.score-system-header.header-two{grid-template-columns:1fr 1fr}
.score-system-header.header-two span:first-child{text-align:left}
.score-system-header.header-two span:last-child{text-align:right}
.score-system-header.header-three{grid-template-columns:1fr 1fr 1fr}
.score-system-header.header-three span:first-child{text-align:left}
.score-system-header.header-three span:nth-child(2){text-align:center}
.score-system-header.header-three span:last-child{text-align:right}
.score-system-header + img{display:block}
@media(max-width:700px){
  .score-system-header{
    gap:14px;
    padding:0 0 4px;
    font-size:.88rem;
    line-height:1.2;
  }
}


/* High-resolution PNG notation already contains the book paper color.
   Do not multiply it again, otherwise the background becomes visibly darker. */
main article .score-wrap img[src$="-2x.png"],
main article .manuscript-score img[src$="-2x.png"],
main article .comparison img[src$="-2x.png"],
main article .thumbnail img[src$="-2x.png"]{
  mix-blend-mode:normal!important;
}

.example-39-panel img{width:auto;max-width:100%;min-width:0;margin-inline:auto}
@media(max-width:700px){
  main article .example-39-panel img{
    width:260px!important;
    min-width:260px!important;
    max-width:none!important;
  }
}

main article img[src*="final-notation/"]{mix-blend-mode:normal!important;background:transparent!important}

.score-center img{margin-left:auto!important;margin-right:auto!important}

/* Chapter 11 mobile: oversized notation must start at the left edge so it is never clipped by auto-centering. */
@media(max-width:700px){
  #chapter-seven .vierne-excerpt img,
  #chapter-seven .paired-excerpt img,
  #chapter-seven .dupre-excerpt img,
  #chapter-seven .cochereau-excerpt img{margin-left:0;margin-right:0}
}

/* Live HTML cover layers on a shared background (no text baked into the photograph). */
.cover{align-items:stretch;background-position:center center!important}
.cover-content{display:flex;flex-direction:column;justify-content:space-between;min-height:100dvh;width:min(1460px,100%);padding:clamp(35px,5vh,70px) clamp(25px,6vw,95px) 24px}
.cover-main{display:flex;justify-content:space-between;gap:35px;align-items:flex-start}
.cover-copy{max-width:720px;z-index:1}
.cover-heading{display:flex;align-items:flex-start;gap:18px;margin-top:34px}
.cover-pipes{width:60px;min-width:60px;height:72px;color:#e8bd7a;margin-top:8px}
.cover h1{font-family:'Libre Baskerville',Georgia,serif;text-transform:none;font-size:clamp(2.9rem,4.65vw,5.5rem);letter-spacing:-.055em;line-height:1.12;margin:0;max-width:720px}
.cover h1 span,.cover-tablet-screen strong span{display:block}
.cover-subtitle{font-size:clamp(1.25rem,2vw,1.85rem);margin:24px 0 10px}
.cover-kind{font:600 .75rem/1.5 'DM Sans',Arial,sans-serif;letter-spacing:.26em;color:#f0e0ca}
.cover-sales{width:clamp(230px,25vw,345px);min-width:230px;display:flex;flex-direction:column;align-items:center;gap:20px}
.cover-price{width:140px;height:140px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;background:linear-gradient(145deg,#f3d59f,#c7924b);color:#3d2819;border:2px solid #f5ddb1;box-shadow:0 5px 28px #0004;text-align:center}
.cover-price span{font:600 .74rem/1.5 'DM Sans',Arial,sans-serif;letter-spacing:.08em}
.cover-price strong{font:700 2.5rem/1.3 'Libre Baskerville',Georgia,serif;margin-top:8px}
.cover-tablet{width:100%;aspect-ratio:3/4;border:11px solid #151719;border-radius:15px;background:#e9e0d2;transform:rotate(3deg);box-shadow:0 22px 65px #0009;overflow:hidden}
.cover-tablet-screen{width:100%;height:100%;padding:12% 10%;display:flex;flex-direction:column;text-align:center;color:#302c27;font-family:'Libre Baskerville',Georgia,serif;gap:12px}
.cover-tablet-screen small{letter-spacing:.12em;font:600 .53rem 'DM Sans',Arial,sans-serif}
.cover-tablet-screen strong{font-size:clamp(1rem,1.5vw,1.6rem);line-height:1.25}
.cover-tablet-screen em{font-size:.72rem}
.cover-tablet-photo{flex:1;min-height:50px;background:url('assets/vstopna-orgle-roke.jpg') center/cover;margin-top:10px}
.cover-bottom{display:flex;flex-direction:column;align-items:center;gap:18px;z-index:1;padding-top:20px}
.cover-features{display:flex;justify-content:center;flex-wrap:wrap;gap:12px 0;text-align:center;width:100%;font:600 .75rem/1.5 'DM Sans',Arial,sans-serif;letter-spacing:.1em}
.cover-features span{padding:0 24px;border-right:1px solid #dfb77c}
.cover-features span:last-child{border-right:0}
.cover .open-book{min-width:min(500px,100%);justify-content:center;border-radius:35px;background:linear-gradient(130deg,#d7a45c,#ae752f);border:1px solid #ebc88e;font:700 1rem 'DM Sans',Arial,sans-serif;letter-spacing:.10em;text-transform:uppercase;box-shadow:0 8px 30px #0007}
.cover-website{font:600 .7rem 'DM Sans',Arial,sans-serif;letter-spacing:.3em;color:#eedac4}
body[data-book-owned="true"] .cover-sales{display:none}
body[data-book-owned="true"] .cover-main{justify-content:flex-start}
@media(max-width:800px){.cover-content{padding:32px 25px 22px}.cover-main{flex-direction:column;gap:20px}.cover-heading{gap:10px;margin-top:22px}.cover-pipes{width:38px;min-width:38px;height:50px}.cover h1{font-size:clamp(2.25rem,7vw,3.7rem)}.cover-sales{flex-direction:row;width:100%;justify-content:flex-end;align-items:center;gap:20px}.cover-price{width:105px;height:105px;flex-shrink:0}.cover-price strong{font-size:1.7rem}.cover-price span{font-size:.62rem}.cover-tablet{width:min(150px,30vw);min-width:95px;border-width:7px}.cover-features{font-size:.58rem}.cover-features span{padding:0 10px}.cover-kind{font-size:.65rem}.cover-subtitle{margin-top:16px}}
@media(max-width:420px){.cover-content{padding:22px 18px}.cover h1{font-size:2rem}.cover-features span{padding:0 6px}.cover-tablet{width:115px}.cover-price{width:95px;height:95px}}


/* Book-cover refinements: exact three-pipe icon, aligned second line, gold title and feature pictograms. */
.cover-heading h1 span{color:#A68C68;position:relative;left:-78px}
.cover-pipes{stroke:#A68C68}
.cover-features span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0}
.cover-features span b{font:inherit;font-weight:600}
.cover-features span svg{height:27px;width:32px;fill:none;stroke:#e6bb82;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:800px){.cover-heading h1 span{left:-48px}.cover-features span svg{width:25px;height:24px}.cover-features span{gap:5px}}

/* Exact original three-pipe logo from the supplied image, without the white background. */
.cover-heading img.cover-pipes{object-fit:contain;aspect-ratio:90/91;height:auto;align-self:flex-start;filter:brightness(1.25)}
@media(max-width:800px){.cover-heading img.cover-pipes{height:auto}}


/* The pre-purchase cover: larger tablet and price label on its upper edge. */
body:not([data-book-owned="true"]) .cover-sales{
  position:relative;
  width:clamp(290px,29vw,415px);
  min-width:0;
  padding:35px 24px 0 0;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:0;
}
body:not([data-book-owned="true"]) .cover-tablet{
  width:100%;
  transform:rotate(2deg);
  transform-origin:center;
}
body:not([data-book-owned="true"]) .cover-price{
  position:absolute;
  z-index:2;
  top:0;
  right:0;
  width:142px;
  height:142px;
  margin:0;
  padding:13px;
  box-sizing:border-box;
}
body:not([data-book-owned="true"]) .cover-price span{
  font-size:.68rem;
  line-height:1.45;
}
body:not([data-book-owned="true"]) .cover-price strong{
  font-size:2.3rem;
  margin-top:5px;
}
@media(max-width:800px){
  body:not([data-book-owned="true"]) .cover-sales{
    width:min(360px,85vw);
    margin-left:auto;
    padding:24px 16px 0 0;
  }
  body:not([data-book-owned="true"]) .cover-tablet{
    width:100%;
    min-width:0;
  }
  body:not([data-book-owned="true"]) .cover-price{
    width:110px;
    height:110px;
    padding:10px;
  }
  body:not([data-book-owned="true"]) .cover-price span{font-size:.54rem}
  body:not([data-book-owned="true"]) .cover-price strong{font-size:1.65rem}
}
@media(max-width:420px){
  body:not([data-book-owned="true"]) .cover-sales{width:min(260px,78vw)}
}

/* Blend the digital book mock-up into the warm organ photograph. */
body:not([data-book-owned="true"]) .cover-tablet{
  border:7px solid #302923;
  border-top-color:#494038;
  border-left-color:#3c342c;
  border-radius:12px;
  background:#d8cbb7;
  transform:perspective(1000px) rotateY(-7deg) rotateZ(1deg);
  transform-origin:50% 80%;
  box-shadow:13px 18px 23px rgba(22,12,7,.36),3px 6px 7px rgba(22,12,7,.23),inset 0 0 0 1px rgba(255,229,192,.16);
  filter:saturate(.87) brightness(.92);
}
body:not([data-book-owned="true"]) .cover-tablet-screen{
  background:linear-gradient(130deg,rgba(255,241,211,.16),rgba(92,65,41,.1)),#e3d8c6;
}
body:not([data-book-owned="true"]) .cover-tablet-photo{
  filter:sepia(.10) saturate(.89) brightness(.93);
}
@media(max-width:800px){
  body:not([data-book-owned="true"]) .cover-tablet{transform:perspective(900px) rotateY(-5deg) rotateZ(1deg);box-shadow:8px 11px 16px rgba(22,12,7,.35)}
}


/* Promotional tablet: clockwise tilt, warm left-side light and price on its rim. */
body:not([data-book-owned="true"]) .cover-sales{position:relative;padding-top:42px;padding-right:20px}
body:not([data-book-owned="true"]) .cover-tablet{
  position:relative;
  transform:perspective(1100px) rotateY(-8deg) rotateZ(5deg);
  transform-origin:50% 80%;
  border:6px solid #332b24;
  border-top-color:#504237;
  border-left-color:#544335;
  border-radius:15px;
  background:#e5d9c5;
  box-shadow:16px 22px 30px rgba(24,13,7,.36),5px 8px 11px rgba(24,13,7,.22),inset 0 0 0 1px rgba(255,231,194,.18);
  filter:saturate(.91) brightness(.95);
}
body:not([data-book-owned="true"]) .cover-tablet::before{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(112deg,rgba(255,235,202,.26),rgba(255,235,202,.09) 24%,transparent 49%);
}
body:not([data-book-owned="true"]) .cover-tablet-screen{background:#e5dac9}
body:not([data-book-owned="true"]) .cover-price{
  top:7px;right:0;z-index:5;width:132px;height:132px;
  box-shadow:0 10px 18px rgba(30,18,10,.24),inset 0 0 0 1px rgba(255,255,255,.18);
}
@media(max-width:800px){
 body:not([data-book-owned="true"]) .cover-sales{padding-top:30px;padding-right:14px}
 body:not([data-book-owned="true"]) .cover-tablet{transform:perspective(900px) rotateY(-6deg) rotateZ(4deg)}
 body:not([data-book-owned="true"]) .cover-price{top:2px;right:0;width:108px;height:108px}
}


/* Softer photo-like lighting on tablet, without dimming its screen. */
body:not([data-book-owned="true"]) .cover-tablet{
  isolation:isolate;
  border:5px solid #514334;
  border-left-color:#8a6b4c;
  border-top-color:#796047;
  border-radius:17px;
  transform:perspective(1200px) rotateY(-5deg) rotateZ(4deg);
  filter:none;
  box-shadow:0 13px 32px rgba(19,10,6,.29),-7px 3px 25px rgba(255,208,137,.16),inset 1px 0 2px rgba(255,236,201,.46);
}
body:not([data-book-owned="true"]) .cover-tablet-screen{
  background:linear-gradient(115deg,rgba(255,246,224,.43) 0%,rgba(255,237,204,.15) 38%,rgba(134,91,52,.035) 100%),#f0e7d8;
}
body:not([data-book-owned="true"]) .cover-tablet::before{
  inset:0;
  border-radius:12px;
  background:radial-gradient(ellipse at -10% 24%,rgba(255,239,202,.42),transparent 65%),linear-gradient(105deg,rgba(255,247,222,.23),transparent 53%);
  mix-blend-mode:screen;
  opacity:.78;
}
body:not([data-book-owned="true"]) .cover-tablet-photo{filter:sepia(.045) saturate(.96) brightness(1.02)}
@media(max-width:800px){
  body:not([data-book-owned="true"]) .cover-tablet{transform:perspective(900px) rotateY(-4deg) rotateZ(3deg)}
}


/* Tablet visual matched to the approved 3D promotional reference. */
body:not([data-book-owned="true"]) .cover-sales{
  padding-top:44px;
  padding-right:14px;
  overflow:visible;
}
body:not([data-book-owned="true"]) .cover-tablet{
  position:relative;
  isolation:isolate;
  transform:perspective(1050px) rotateY(-12deg) rotateX(2deg) rotateZ(7deg);
  transform-origin:50% 85%;
  border:9px solid #201a17;
  border-left-color:#413126;
  border-top-color:#6c4c35;
  border-right-color:#201a17;
  border-bottom-color:#191513;
  border-radius:19px;
  background:#e9ddc9;
  filter:none;
  box-shadow:14px 19px 19px rgba(20,10,5,.45),4px 8px 7px rgba(25,13,7,.29),-12px 0 24px rgba(241,170,94,.16),inset 1px 1px 2px rgba(255,230,185,.3);
}
body:not([data-book-owned="true"]) .cover-tablet::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  border-radius:7px;
  background:linear-gradient(106deg,rgba(255,228,174,.31) 0%,rgba(255,230,196,.13) 19%,transparent 49%);
  mix-blend-mode:screen;
  opacity:.8;
}
body:not([data-book-owned="true"]) .cover-tablet-screen{
  background:linear-gradient(100deg,#f5e8d2 0%,#eadbc5 45%,#dac8ad 100%);
}
body:not([data-book-owned="true"]) .cover-tablet-photo{
  filter:sepia(.08) saturate(.95) brightness(.98);
}
body:not([data-book-owned="true"]) .cover-price{
  top:8px;
  right:-2px;
  z-index:5;
  box-shadow:0 9px 15px rgba(20,11,6,.32),inset 0 1px 2px rgba(255,249,223,.62);
}
@media(max-width:800px){
  body:not([data-book-owned="true"]) .cover-tablet{
    transform:perspective(850px) rotateY(-9deg) rotateX(2deg) rotateZ(5deg);
    border-width:6px;
  }
  body:not([data-book-owned="true"]) .cover-price{top:3px;right:0}
}



/* Tablet rests lower on the console instead of floating in the scene. */
body:not([data-book-owned="true"]) .cover-sales{padding-top:70px;align-self:flex-end;margin-bottom:22px}
body:not([data-book-owned="true"]) .cover-tablet{transform:perspective(1100px) rotateY(-7deg) rotateZ(4deg);box-shadow:9px 13px 16px rgba(22,12,7,.35),-5px 0 15px rgba(250,199,132,.12)}
body:not([data-book-owned="true"]) .cover-price{top:42px;right:0}
@media(max-width:800px){body:not([data-book-owned="true"]) .cover-sales{align-self:flex-end;margin-bottom:0;padding-top:25px}body:not([data-book-owned="true"]) .cover-price{top:8px}}


/* Isolated transparent tablet PNG; organ photograph remains the existing CSS cover. */
body:not([data-book-owned="true"]) .cover-sales{position:relative;align-self:flex-end;width:clamp(270px,28vw,385px);padding:24px 10px 0 0;margin-bottom:0;overflow:visible}
body:not([data-book-owned="true"]) .cover-tablet-render{display:block;width:100%;height:auto;object-fit:contain;filter:drop-shadow(10px 14px 12px rgba(23,12,7,.28));transform:none}
body:not([data-book-owned="true"]) .cover-price{position:absolute;top:20px;right:0;z-index:4}
@media(max-width:800px){body:not([data-book-owned="true"]) .cover-sales{width:min(310px,72vw);padding:10px 6px 0 0}body:not([data-book-owned="true"]) .cover-price{top:3px}}

/* Exact approved tablet illustration, grounded at the right edge of the organ console. */
body:not([data-book-owned="true"]) .cover-sales{
  width:clamp(340px,33vw,465px);
  align-self:flex-end;
  margin-bottom:0;
  padding:0 12px 0 0;
}
body:not([data-book-owned="true"]) .cover-tablet-render{
  width:100%;
  height:auto;
  object-fit:contain;
  transform:translateY(14px);
  filter:drop-shadow(8px 13px 10px rgba(25,12,6,.18));
}
body:not([data-book-owned="true"]) .cover-price{top:10px;right:3px}
@media(max-width:800px){
  body:not([data-book-owned="true"]) .cover-sales{width:min(350px,78vw);padding:0 8px 0 0}
  body:not([data-book-owned="true"]) .cover-tablet-render{transform:none}
  body:not([data-book-owned="true"]) .cover-price{top:0;right:0}
}


/* Notation QA: uniform engraved staff scale, vector-first scores (2026-10-09). */
@media (min-width:701px){
  /* These SVGs use essentially the same 455–468-unit staff width.
     Keep the same staff and clef scale even for 2-, 3- and 4-staff examples. */
  main article .score-wrap.manuscript-score:not(.score-compact):not(.paired-excerpt):not(.dupre-excerpt):not(.vierne-excerpt):not(.cochereau-excerpt) img[src$=".svg"],
  main article .score-wrap:not(.manuscript-score) img[src$=".svg"],
  main article .comparison-variant .score-wrap img[src$=".svg"]{
    width:740px!important;
    min-width:0!important;
    max-width:100%!important;
    height:auto!important;
  }
  /* Compact notation has a shorter engraved staff, not a smaller clef. */
  main article .score-wrap.score-compact img[src$="primer-23.svg"]{
    width:270px!important;min-width:0!important;max-width:100%!important;
  }
  main article .score-wrap.score-compact img[src$="primer-52-vector.svg"]{
    width:520px!important;min-width:0!important;max-width:100%!important;
  }
}
@media (max-width:700px){
  /* JS measures staff height and sets --mobile-score-width. The fallback
     gives a readable single-line score before that measurement completes. */
  main article .score-wrap img[src$=".svg"],
  main article .score-system img[src$=".svg"],
  main article .comparison-variant .score-wrap img[src$=".svg"]{
    width:var(--mobile-score-width,580px)!important;
    min-width:var(--mobile-score-width,580px)!important;
    max-width:none!important;
    height:auto!important;
  }
  main article .score-wrap.score-compact img[src$="primer-23.svg"]{
    width:calc(var(--mobile-score-width,270px) * .9)!important;
    min-width:0!important;
  }
  main article .score-wrap.score-compact img[src$="primer-52-vector.svg"]{
    width:var(--mobile-score-width,410px)!important;
    min-width:0!important;
  }
  /* Keep individual lines independently scrollable without vertical scroll. */
  main article .manuscript-score:has(>.score-system){
    overflow:visible!important;
  }
  main article .manuscript-score .score-system{
    overflow-x:auto;
    overflow-y:hidden;
    max-width:100%;
  }
}


/* Mobile landing composition: balanced headline, tablet and four benefits. Desktop untouched. */
@media(max-width:700px){
  .cover{overflow-x:hidden}
  .cover-content{width:100%;box-sizing:border-box;min-height:100dvh;padding:25px 20px 22px;gap:22px}
  .cover-main{display:flex;flex-direction:column;align-items:stretch;gap:18px;width:100%;min-width:0}
  .cover-copy{width:100%;max-width:100%;box-sizing:border-box}
  .cover-overline{display:block;text-align:center;font-size:.82rem;letter-spacing:.19em}
  .cover-heading{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:19px}
  .cover-heading img.cover-pipes{width:40px;min-width:40px;height:auto;margin:0;align-self:center}
  .cover h1{width:100%;max-width:100%;text-align:center;font-size:clamp(2.05rem,7.2vw,3.2rem);line-height:1.13;letter-spacing:-.055em;margin:0}
  .cover-heading h1 span{display:block;left:0;position:static}
  .cover-subtitle{text-align:center;font-size:clamp(1rem,3.8vw,1.35rem);margin:15px auto 7px}
  .cover-kind{text-align:center;font-size:.61rem;letter-spacing:.18em}
  body:not([data-book-owned="true"]) .cover-sales{position:relative;align-self:center;width:min(300px,67vw);margin:0 auto;padding:12px 12px 0 0}
  body:not([data-book-owned="true"]) .cover-tablet-render{width:100%;height:auto;transform:none;display:block}
  body:not([data-book-owned="true"]) .cover-price{top:8px;right:-4px;width:102px;height:102px;padding:9px;z-index:5}
  body:not([data-book-owned="true"]) .cover-price span{font-size:.48rem;line-height:1.35}
  body:not([data-book-owned="true"]) .cover-price strong{font-size:1.5rem;margin-top:4px}
  .cover-bottom{width:100%;box-sizing:border-box;margin-top:auto;padding:8px 0 0;gap:15px;align-items:center}
  .cover-features{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:16px 8px;text-align:center;font-size:.63rem}
  .cover-features span{padding:0 4px!important;border:0!important;min-width:0;gap:5px}
  .cover-features span svg{width:27px;height:25px}
  .cover .open-book{width:min(100%,400px);min-width:0;min-height:50px;padding:13px 15px;font-size:.78rem;letter-spacing:.075em}
  .cover-website{font-size:.58rem;letter-spacing:.2em;text-align:center}
}
@media(max-width:390px){
  .cover-content{padding:19px 16px 19px;gap:15px}
  .cover h1{font-size:clamp(1.85rem,8vw,2.25rem)}
  body:not([data-book-owned="true"]) .cover-sales{width:min(245px,64vw)}
  body:not([data-book-owned="true"]) .cover-price{width:85px;height:85px;right:-3px;top:4px}
  body:not([data-book-owned="true"]) .cover-price strong{font-size:1.27rem}
  body:not([data-book-owned="true"]) .cover-price span{font-size:.43rem}
  .cover-features{gap:10px 6px;font-size:.56rem}
}

/* Solid cover button background keeps its label legible on mobile browsers. */
.cover .open-book{
  background:#e6c99a;
  color:#17120b;
}
.cover .open-book > span{
  color:inherit;
  -webkit-text-fill-color:currentColor;
}
.cover .open-book:hover{background:#f1dbb9}

/* Glossary triggers are inline annotated words, not rectangular buttons. */
main article button.glossary-term:not(:disabled),main article .glossary-term:not(:disabled){appearance:none;-webkit-appearance:none;display:inline!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;margin:0!important;padding:0!important;font:inherit!important;line-height:inherit!important;color:#775b39!important;text-decoration-line:underline!important;text-decoration-style:dotted!important;text-decoration-color:#a8865e!important;text-decoration-thickness:1px!important;text-underline-offset:3px!important;cursor:help}
main article .glossary-term:not(:disabled):hover{color:#47351e!important;text-decoration-style:solid!important}


/* Every practical challenge: organ pipes beside the text, vertically centered for multiple lines. */
main article .practice.practice-inline{
  display:grid;
  grid-template-columns:35px minmax(0,1fr);
  column-gap:15px;
  align-items:start;
}
main article .practice.practice-inline>h2{
  display:block;
  grid-column:1;
  grid-row:1;
  margin:0;
  padding:0;
  line-height:0;
}
main article .practice.practice-inline>h2 .practice-icon{
  margin:0;
  padding:0;
}
main article .practice.practice-inline>p{
  grid-column:2;
  grid-row:1;
  margin:0;
  min-width:0;
}
@media(max-width:700px){
  main article .practice.practice-inline{grid-template-columns:29px minmax(0,1fr);column-gap:12px}
  main article .practice.practice-inline>h2 .practice-icon svg{width:27px;height:44px}
}

/* Center the practice symbol against the full paragraph height, also for wrapped lines. */
main article .practice.practice-inline{align-items:center}
main article .practice.practice-inline>h2{align-self:center}
main article .practice.practice-inline>p{align-self:center}


/* Cleaner chapter typography: no decorative bars by section headings or introductory summaries. */
main article .reading>div:last-child>p.section-summary,
main article#chapter-one .reading>div:last-child>p.section-summary{
  border-left:0!important;
  padding-left:0!important;
}
main article .reading::before{content:none!important;display:none!important}
main article .reading .section-number::after{content:none!important;display:none!important}
@media(min-width:701px){
  main article .reading{grid-template-columns:32px minmax(0,1fr);column-gap:15px}
  main article .reading>div:last-child>h2{grid-column:2;grid-row:1}
  main article .reading>div:last-child>p.section-summary{grid-column:1/-1}
}


/* Vertically center section numbers with their headings. */
@media(min-width:701px){
 main article .reading .section-number{
   align-self:start;
   padding-top:0;
   min-height:2.35rem;
   display:flex;
   align-items:center;
 }
}
@media(max-width:700px){
 main article .reading .section-number{
   padding-top:0;
   align-self:center;
   line-height:1.42;
 }
}


/* Correct overlapping paragraphs in multi-paragraph practice exercises.
   Reserve a left gutter for the icon; keep paragraphs in ordinary document flow. */
main article .practice.practice-inline{
  display:block!important;
  position:relative;
  padding-left:48px!important;
}
main article .practice.practice-inline>h2{
  position:absolute;
  top:50%;
  left:0;
  transform:translateY(-50%);
  width:33px;
  height:auto;
  display:block;
  margin:0!important;
  padding:0!important;
  line-height:0;
}
main article .practice.practice-inline>p{
  display:block;
  position:static;
  margin:0 0 12px!important;
  padding:0!important;
  min-width:0;
}
main article .practice.practice-inline>p:last-child{margin-bottom:0!important}
@media(max-width:700px){
  main article .practice.practice-inline{padding-left:40px!important}
  main article .practice.practice-inline>h2{width:28px}
}


/* Quiet editorial treatment of Opazuj passages, without vertical rules. */
main article .observation{
 border:0!important;
 border-left:0!important;
 padding:8px 0 10px!important;
 margin:24px 0 30px;
 background:transparent;
}
main article .observation h3{
 margin:0 0 7px!important;
 font:italic 1.05rem/1.5 'Libre Baskerville',Georgia,serif!important;
 color:#927451;
}
main article .observation p{
 margin:0!important;
 font:italic 1rem/1.75 'Libre Baskerville',Georgia,serif!important;
 color:#596058;
}


/* Uniform separation between mode labels and their corresponding scores. */
main article .score-wrap:has(> .score-system) > p.score-subcaption{
  margin:18px 0 9px!important;
  padding:0!important;
  line-height:1.35!important;
}
main article .score-wrap:has(> .score-system) > p.score-subcaption:first-child{
  margin-top:18px!important;
}
main article .score-wrap:has(> .score-system) > p.score-subcaption + .score-system{
  margin-top:0!important;
}

/* New Finale path exports: preserve proportions and fit widened notation to the reading measure. */
@media(min-width:701px){
 main article .score-wrap img[src$="primer-53-path-new.svg"],
 main article .score-wrap img[src$="primer-54-path-new.svg"],
 main article .score-wrap img[src$="primer-11-4a-path-new.svg"]{
  width:690px!important;max-width:100%!important;min-width:0!important;height:auto!important;
 }
}
@media(max-width:700px){
 main article .score-wrap img[src$="primer-53-path-new.svg"],
 main article .score-wrap img[src$="primer-54-path-new.svg"],
 main article .score-wrap img[src$="primer-11-4a-path-new.svg"]{
  width:590px!important;min-width:590px!important;max-width:none!important;height:auto!important;
 }
}

/* Cover typography and optical alignment of the pipe mark with the first title line. */
@media(min-width:801px){
 .cover-heading img.cover-pipes{
   align-self:flex-start;
   margin-top:clamp(19px,2.15vw,32px);
 }
}
.cover h1{
 font-family:'Libre Baskerville',Georgia,serif;
 font-weight:400;
 line-height:1.11;
}
.cover-subtitle{
 font-family:Georgia,'Times New Roman',serif;
 font-style:italic;
 font-weight:400;
 letter-spacing:.005em;
 line-height:1.43;
}
.cover-kind{
 font-family:'DM Sans',Arial,sans-serif;
 font-size:clamp(.64rem,.82vw,.73rem);
 font-weight:600;
 letter-spacing:.14em;
 line-height:1.65;
 max-width:610px;
 text-wrap:balance;
}
@media(max-width:800px){
 .cover-heading img.cover-pipes{margin-top:0}
 .cover-kind{font-size:.65rem;letter-spacing:.12em;max-width:390px;margin-inline:auto}
}


/* Desktop cover: center title and tagline symmetrically, matching the mobile layout. */
@media(min-width:801px){
  .cover-main{justify-content:center}
  .cover-copy{
    width:100%;
    max-width:980px;
    margin-inline:auto;
    text-align:center;
    display:flex;
    flex-direction:column;
    align-items:center;
  }
  .cover-overline{display:block;text-align:center}
  .cover-heading{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:9px;
    margin:28px auto 0;
  }
  .cover-heading img.cover-pipes{
    align-self:center;
    margin:0 auto;
    width:54px;
    min-width:54px;
    height:auto;
  }
  .cover h1{width:100%;max-width:900px;text-align:center;margin:0}
  .cover-heading h1 span{display:block;position:static;left:auto}
  .cover-kind{
    width:100%;
    max-width:760px;
    margin:20px auto 0;
    text-align:center;
    text-wrap:balance;
  }
}


/* Desktop cover: tablet is a centered product illustration beneath the title. */
@media(min-width:801px){
  .cover-main{
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:20px;
    width:100%;
  }
  .cover-copy{flex:0 1 auto;max-width:min(100%,980px)}
  body:not([data-book-owned="true"]) .cover-sales{
    position:relative;
    align-self:center;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    width:clamp(180px,19vw,260px);
    min-width:0;
    margin:0 auto;
    padding:12px 12px 0 0;
  }
  body:not([data-book-owned="true"]) .cover-tablet-render{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
    transform:none;
    margin:0;
  }
  body:not([data-book-owned="true"]) .cover-price{
    top:0;
    right:-17px;
    width:clamp(75px,7.5vw,100px);
    height:clamp(75px,7.5vw,100px);
    z-index:5;
  }
}


/* Primary purchase action in the reading header. */
.book-header .book-buy{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  min-height:42px;
  padding:10px 20px;
  border:1px solid #98734a;
  border-radius:5px;
  background:#98734a;
  color:#fffaf2!important;
  text-decoration:none!important;
  font:600 .82rem/1.35 'DM Sans',Arial,sans-serif;
  letter-spacing:.025em;
  white-space:nowrap;
  box-shadow:0 2px 7px #4e35231a;
  transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.book-header .book-buy:hover{background:#765634;border-color:#765634;box-shadow:0 4px 12px #4e35232b}
.book-header .book-buy:focus-visible{outline:3px solid #c8a16a;outline-offset:3px}
@media(max-width:700px){
 .book-header .book-buy{min-height:38px;padding:9px 13px;font-size:.76rem}
}


/* Example 20: its first cropped Finale SVG starts closer to the top edge
   than the other three; compensate without changing the notes or other examples. */
main article .score-modes-20 > .score-subcaption:first-child + .score-system{
  padding-top:14px!important;
}


/* Keep the complete price label legible and contained in its gold circle. */
body:not([data-book-owned="true"]) .cover-price{
  box-sizing:border-box;
  width:124px;
  height:124px;
  min-width:124px;
  min-height:124px;
  padding:15px 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  overflow:hidden;
}
body:not([data-book-owned="true"]) .cover-price span{
  display:block;
  flex:0 0 auto;
  font:600 9px/1.3 'DM Sans',Arial,sans-serif;
  letter-spacing:.055em;
  text-align:center;
}
body:not([data-book-owned="true"]) .cover-price strong{
  display:block;
  flex:0 0 auto;
  margin:0;
  font:700 27px/1.1 'Libre Baskerville',Georgia,serif;
  letter-spacing:-.035em;
  white-space:nowrap;
  text-align:center;
}
@media(min-width:801px){
  body:not([data-book-owned="true"]) .cover-price{
    width:124px;
    height:124px;
    min-width:124px;
    min-height:124px;
    top:-9px;
    right:-37px;
  }
}
@media(max-width:800px){
  body:not([data-book-owned="true"]) .cover-price{
    width:104px;
    height:104px;
    min-width:104px;
    min-height:104px;
    padding:11px 7px;
    gap:3px;
  }
  body:not([data-book-owned="true"]) .cover-price span{font-size:8px;line-height:1.25}
  body:not([data-book-owned="true"]) .cover-price strong{font-size:23px;line-height:1.1;margin:0}
}

/* Cover title: more breathing room between letters and the two title lines. */
.cover-heading h1{
  letter-spacing:-.025em;
  line-height:1.27;
  text-wrap:balance;
}
.cover-heading h1 span{margin-top:.12em}
@media(max-width:800px){
  .cover-heading h1{letter-spacing:-.02em;line-height:1.28}
  .cover-heading h1 span{margin-top:.15em}
}

/* Editorial rhythm refinement 2026-10-10: section transitions and exercises. */
main article .reading .practice.practice-inline{
  margin-block:30px 34px;
}
main article .reading .practice.practice-inline + .topic-heading{
  margin-top:32px;
}
main article .reading .music-example + .music-example{
  margin-top:34px;
}
main article .reading .music-example + p,
main article .reading .score-wrap + p:not(.score-caption):not(.score-subcaption){
  margin-top:18px;
}
@media(max-width:700px){
  main article .reading .practice.practice-inline{margin-block:27px 30px}
  main article .reading .practice.practice-inline + .topic-heading{margin-top:29px}
  main article .reading .music-example + .music-example{margin-top:30px}
  main article .reading .music-example + p,
  main article .reading .score-wrap + p:not(.score-caption):not(.score-subcaption){margin-top:16px}
}

/* Final editorial rhythm: chapter introductions and section boundaries. */
main > article > .eyebrow{margin-bottom:12px}
main > article > h1{margin-top:0;margin-bottom:30px}
main article .reading > div:last-child > h2:first-child{margin-top:0}
main article .reading + .reading{margin-top:0}
main article .reading:last-of-type{padding-bottom:40px}
main article .reading + .chapter-pager{margin-top:34px}
@media(max-width:700px){
 main > article > .eyebrow{margin-bottom:10px}
 main > article > h1{margin-bottom:24px}
 main article .reading:last-of-type{padding-bottom:34px}
 main article .reading + .chapter-pager{margin-top:28px}
}


/* Book header: balanced, readable controls with explicit selected reading level. */
.book-header-inner{grid-template-columns:minmax(250px,1fr) auto;gap:clamp(16px,3vw,48px)}
.book-header-actions{gap:clamp(12px,1.8vw,24px);justify-content:flex-end;min-width:0}
.book-header .level-switch{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;min-width:170px;min-height:44px;padding:4px 20px 4px 0;border-left:0;border-right:1px solid var(--line);cursor:pointer}
.book-header .level-switch-label{font-size:.69rem;letter-spacing:.065em;line-height:1.35;white-space:nowrap}
.book-header .level-switch-value{display:block;font-size:.85rem;line-height:1.4;font-weight:600;color:#806e50}
.book-header .level-switch:hover .level-switch-value{text-decoration:underline;text-underline-offset:3px}
.book-header .level-switch:focus-visible{outline:2px solid #98734a;outline-offset:4px}
.book-header .brand{max-width:100%;text-align:left}
.book-header .brand strong{display:block}
.book-header .brand>span{display:block}
@media(min-width:701px) and (max-width:980px){
  .book-header-inner{grid-template-columns:minmax(220px,1fr) auto;gap:14px;padding-inline:20px}
  .book-header-actions{gap:12px}
  .book-header .level-switch{min-width:146px;padding:4px 12px 4px 0}
  .book-header .level-switch-label{font-size:.64rem}
  .book-header .book-buy{padding-inline:12px}
}
@media(max-width:700px){
  .book-header-inner{grid-template-columns:36px minmax(0,1fr);gap:9px 12px;padding:10px 16px 9px}
  .book-header .brand{grid-column:2;min-width:0}
  .book-header .brand strong{font-size:1.02rem}
  .book-header .brand>span{display:none}
  .book-header-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 12px;padding-top:9px}
  .book-header .level-switch{min-width:0;flex:1 1 128px;min-height:39px;padding:0 10px 0 0;border-right:1px solid var(--line);border-left:0}
  .book-header .level-switch-label{font-size:.62rem;white-space:normal}
  .book-header .level-switch-value{font-size:.77rem}
  .book-header .book-buy{flex-shrink:0}
  .book-header .book-account{flex-shrink:0}
}
@media(max-width:380px){
  .book-header-actions{gap:8px}
  .book-header .level-switch{flex-basis:108px}
  .book-header .book-buy{padding-inline:9px}
}

/* Warm book header aligned with reading panel rather than entire viewport. */
@media(min-width:701px){
  .book-header{background:transparent;border-bottom:0;box-shadow:none}
  .book-header-inner{box-sizing:border-box;max-width:1160px;width:100%;margin-left:auto;margin-right:auto;padding:15px clamp(20px,3vw,38px);background:#f6f2ea;border-bottom:1px solid #e5ddd0;border-radius:0 0 7px 7px}
}
@media(max-width:700px){
 .book-header{background:#f6f2ea;border-bottom:1px solid #e5ddd0}
 .book-header-inner{background:transparent}
}

/* Hidden purchase action must override its display:inline-flex declaration. */
.book-header .book-buy[hidden]{display:none!important}

/* Header polish: inset title and collapse dividers when checkout is hidden. */
@media(min-width:701px){
  .book-header-inner{padding-left:clamp(36px,4.5vw,62px)}
}
.book-header .book-header-actions{gap:0}
.book-header .level-switch{border-right:0;padding-right:0}
.book-header .book-header-actions > :not([hidden]) + :not([hidden]){border-left:1px solid #ded6c9;margin-left:clamp(14px,1.8vw,25px);padding-left:clamp(14px,1.8vw,25px)}
.book-header .book-buy[hidden]{display:none!important;margin:0!important;padding:0!important;border:0!important}
@media(max-width:700px){
 .book-header .book-header-actions{gap:10px}
 .book-header .book-header-actions > :not([hidden]) + :not([hidden]){margin-left:0;padding-left:10px}
}

/* Visitor cover: Slovenian examples */
.cover-benefit{max-width:570px;margin:23px auto 0;text-align:center;color:#f6eee3;text-shadow:0 1px 12px rgba(0,0,0,.38)}
.cover-benefit strong{display:block;font:600 clamp(.9rem,1.35vw,1.08rem)/1.45 'DM Sans',Arial,sans-serif;color:#e8c28e}
.cover-benefit p{margin:7px 0 0;font:400 clamp(.8rem,1.1vw,.94rem)/1.6 'DM Sans',Arial,sans-serif;color:#f1e7d9}
body[data-book-owned="true"] .cover-benefit{display:none}
@media(max-width:700px){.cover-benefit{margin-top:16px;max-width:360px;padding-inline:10px}.cover-benefit p{font-size:.78rem;line-height:1.48}}

/* Visitor benefit sits underneath the tablet; keep copy readable without resizing artwork. */
body:not([data-book-owned="true"]) .cover-sales .cover-benefit{
  box-sizing:border-box;
  flex:none;
  width:min(440px,calc(100vw - 48px));
  max-width:none;
  margin:12px auto 0;
  padding:0 8px;
  text-align:center;
}
body:not([data-book-owned="true"]) .cover-sales .cover-benefit strong{font-size:.96rem}
body:not([data-book-owned="true"]) .cover-sales .cover-benefit p{font-size:.83rem;line-height:1.55}
@media(max-width:700px){body:not([data-book-owned="true"]) .cover-sales .cover-benefit{width:min(360px,calc(100vw - 40px));margin-top:9px}}

/* Align the visitor tablet and its supporting copy around one shared centre. */
body:not([data-book-owned="true"]) .cover-sales{
  box-sizing:border-box;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:min(360px,78vw);
  min-width:0;
  margin-inline:auto;
  padding:0;
}
body:not([data-book-owned="true"]) .cover-tablet-render{
  display:block;
  width:100%;
  max-width:100%;
  height:auto;
  margin-inline:auto;
  transform:none;
}
body:not([data-book-owned="true"]) .cover-sales .cover-benefit{
  box-sizing:border-box;
  flex:0 0 auto;
  width:100%;
  max-width:100%;
  margin:14px auto 0;
  padding:0;
  text-align:center;
}
body:not([data-book-owned="true"]) .cover-price{
  position:absolute;
  top:8px;
  right:-18px;
  z-index:5;
}
@media(max-width:800px){
  body:not([data-book-owned="true"]) .cover-sales{width:min(300px,80vw);padding:0}
  body:not([data-book-owned="true"]) .cover-price{top:6px;right:-8px}
}

/* Extra breathing room for the book title inside the shared header. */
@media(min-width:701px){
  .book-header .brand{margin-left:14px}
}

/* Mirna, bez obarvana navigacija med poglavji. */
main article .chapter-pager{background:#f8f4ed;border-top:1px solid #e1d4c0;border-radius:9px;padding:24px 28px 28px;margin-bottom:24px}
main article .chapter-pager button{color:#364039}
main article .chapter-pager button:focus-visible{outline:2px solid #987b50;outline-offset:6px;border-radius:3px}
@media(max-width:700px){main article .chapter-pager{padding:22px 20px 6px}}

/* Naslovnica: svetlejša fotografija, predvsem na ozkem zaslonu. */
.cover{
  background-color:#57483b;
  background-image:linear-gradient(0deg,rgba(34,25,19,.51),rgba(40,31,24,.05) 80%),linear-gradient(90deg,rgba(40,29,22,.56),rgba(47,34,24,.25) 55%,rgba(50,34,24,.05)),url('assets/vstopna-orgle-roke.jpg');
}
@media(max-width:700px){
  .cover{
    background-image:linear-gradient(0deg,rgba(38,29,23,.58),rgba(44,33,25,.14)),linear-gradient(90deg,rgba(43,32,24,.48),rgba(51,38,28,.16)),url('assets/vstopna-orgle-roke.jpg');
  }
  main article .chapter-pager{
    background-color:#f8f4ed;
    border:1px solid #e1d4c0;
    border-radius:10px;
    padding:18px 18px 4px;
    margin-top:34px;
  }
  main article .chapter-pager button{max-width:100%;width:100%;padding:6px 0 14px}
  main article .chapter-pager button+button{border-top:1px solid #dfd1bc;padding-top:16px}
}

/* Keep the beige header's right edge inside the reading measure on tablets and desktop. */
@media(min-width:701px){
  .book-header-inner{
    width:min(100%, 1160px);
    max-width:1160px;
    margin-inline:auto;
    padding-right:clamp(26px,6vw,95px);
  }
}

/* Purchased edition: keep tablet artwork, remove sales copy and make reading primary. */
body[data-book-owned="true"] .cover [data-visitor-only]{display:none!important}
body[data-book-owned="true"] .cover-tablet-render{display:block;max-height:min(48vh,490px);width:auto;max-width:100%;object-fit:contain;margin-inline:auto}
body[data-book-owned="true"] .cover-sales{display:flex;flex-direction:column;align-items:center;justify-content:center}

/* Notni primer 25: more breathing room between the two systems. */
.score-wrap[aria-label="Notni primer 25, drugi sistem"]{margin-top:30px!important}

/* Example 59: retain desktop layout, show four independent score/audio pairs on phones. */
.example59-mobile{display:none}
@media(max-width:700px){
 .example59-desktop{display:none!important}
 .example59-mobile{display:block}
 .example59-mobile .score-wrap{margin:22px 0 8px;overflow-x:auto;overflow-y:hidden}
 .example59-mobile .score-wrap img{display:block;width:730px!important;min-width:730px!important;max-width:none!important;height:auto!important}
 .example59-mobile .audio-example{margin:0 0 26px}
}

/* Chapter numbers follow the last line of a wrapped chapter title,
   consistently in the table of contents on wide and narrow screens. */
#sidebar .chapter{align-items:flex-end}
#sidebar .chapter-num{align-self:flex-end;flex-shrink:0}
@supports (align-items:last baseline){
  #sidebar .chapter{align-items:last baseline}
  #sidebar .chapter-num{align-self:last baseline}
}

/* Match subsection numbers to the last line of their headings on desktop.
   Mobile subsection numbers remain on their own line as designed. */
@media(min-width:701px){
  main article .reading .section-number{
    display:block;min-height:0;padding:0;align-self:end;
  }
  main article .reading>div:last-child>h2{align-self:end}
  @supports (align-self:last baseline){
    main article .reading .section-number,
    main article .reading>div:last-child>h2{align-self:last baseline}
  }
}

/* Open-ended practical tasks retain the small organ-pipe question-mark icon.
   Listening waves are reserved for QR codes in the print/PDF edition. */
main article .practice.practice-inline>h2 .practice-icon img,
.practice-icon img{
  display:block;
  width:27px;
  height:44px;
  max-width:none;
  object-fit:contain;
}

/* Notni primer 31: add breathing room only after "1 · V osminkah",
   before the label "2 · V četrtinkah" (both desktop and phone). */
#chapter-polyphony .example31-eighths-audio + p.score-subcaption{
  margin-top:28px!important;
}

/* Align the right edge of the beige reading header with the article text,
   not the wider outer layout. Keep the left edge aligned with the sidebar.
   Match .layout's columns and the 760px article / responsive inner padding.
   On phones the full-width header is unchanged. */
@media(min-width:701px){
  .book-header .book-header-inner{
    --reader-gutter:clamp(25px,3vw,38px);
    --sidebar-column:clamp(250px,27vw,310px);
    --reader-column-gap:clamp(20px,3vw,40px);
    --reader-auto-margin:max(0px,calc((min(100%,1160px) - var(--sidebar-column) - var(--reader-column-gap) - 760px)/2));
    --header-right-inset:calc(var(--reader-gutter) + var(--reader-auto-margin));
    width:calc(min(100%,1160px) - var(--header-right-inset));
    max-width:none;
    margin-left:max(0px,calc((100% - 1160px)/2));
    margin-right:0;
    padding-right:16px;
  }
}

/* Desktop book prose alignment – Slovenian hyphenation; mobile remains ragged-right. */
@media (min-width: 701px) {
  .reading > div:last-child > p:not(.footnote),
  .reading > div:last-child > blockquote p,
  .reading > div:last-child > blockquote:not(:has(p)) {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }
  .reading .practice p,
  .reading .score-caption,
  .reading .score-subcaption,
  .reading .chapter-summary p {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }
}
@media (max-width: 700px) {
  /* Justified reading prose, with automatic Slovenian hyphenation on narrow screens. */
  .reading > div:last-child > p:not(.footnote),
  .reading > div:last-child > blockquote p,
  .reading > div:last-child > blockquote:not(:has(p)) {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }
  .reading .practice p,
  .reading .score-caption,
  .reading .score-subcaption,
  .reading .chapter-summary p {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }
}

/* Justify practical task paragraphs on all screen sizes. */
.reading .practice p,
.reading .practice-inline p {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* Justify chapter introduction paragraphs (e.g. Modulacija). */
article > p.lead.chapter-summary {
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}

/* Match standalone chapter-introduction paragraphs to lead typography. */
article > p:not(.lead) {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 1.75;
  color: #3f4741;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  max-width: 100%;
}
@media (max-width: 700px) {
  article > p:not(.lead) {
    font-size: 1rem;
    line-height: 1.75;
  }
}

/* Unified gold accents — 2026-10-15. One source of truth across cover and reader. */
:root{--gold:#A68C68;--book-gold:#A68C68}
.cover .cover-institution-link{margin-top:14px;font-size:.85rem;line-height:1.65}
.cover .cover-institution-link a{color:#E6C99A;text-decoration:underline;text-underline-offset:4px}
.cover .cover-institution-link a:focus-visible{outline:2px solid #E6C99A;outline-offset:5px}
.cover-overline,
.cover-heading h1 span,
.cover-benefit strong,
.cover-price strong,
.cover-website,
.eyebrow,.kicker,.section-number,.score-caption-label,
.chapter-num,.chapter-state,
.history-wrap th,.end-chapter span,
.bookmarks-count{color:var(--book-gold)}
.cover-features span svg{stroke:var(--book-gold)}
.cover-features span{border-right-color:var(--book-gold)}
.cover-pipes,
.cover-heading img.cover-pipes{
  filter:none;
}
.cover-heading img.cover-pipes{
  background-color:var(--book-gold);
  -webkit-mask:url('assets/ikona-orgel-izvirna.png') center/contain no-repeat;
  mask:url('assets/ikona-orgel-izvirna.png') center/contain no-repeat;
  /* Retain the image's layout while the mask supplies exactly one gold. */
  opacity:1;
}
.hairline{background:var(--book-gold)}
.decision,.end-chapter{border-top-color:var(--book-gold)}
.reading .footnote,.reading blockquote,.selection,.book-quote{border-left-color:var(--book-gold)}
.decision-options button[aria-pressed=true]{box-shadow:inset 0 -2px var(--book-gold)}
.decision-response{border-left-color:var(--book-gold)}

/* Recolor the raster cover emblem without editing its geometry. */
.cover-heading img.cover-pipes{opacity:0}
.cover-heading::before{
  content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);
  width:40px;height:41px;pointer-events:none;
  background:var(--book-gold);
  -webkit-mask:url('assets/ikona-orgel-izvirna.png') center/contain no-repeat;
  mask:url('assets/ikona-orgel-izvirna.png') center/contain no-repeat;
}

/* Approved cover corrections: lighter organ photo, subtitle and shared gold. */
.cover{background-color:#3b2a1e;background-image:linear-gradient(0deg,rgba(39,28,21,.68),rgba(48,34,24,.10) 88%),linear-gradient(90deg,rgba(42,30,23,.66),rgba(52,37,26,.34) 45%,rgba(67,45,30,.10)),url('assets/vstopna-orgle-roke.jpg')}
.cover-subtitle{display:block;margin:18px 0 13px;font:italic clamp(1.05rem,1.7vw,1.45rem)/1.55 'Libre Baskerville',Georgia,serif;color:#f5eee3;text-align:center}
@media(max-width:800px){
  .cover{background-image:linear-gradient(0deg,rgba(41,29,21,.78),rgba(50,35,26,.22)),linear-gradient(90deg,rgba(43,29,22,.66),rgba(56,40,29,.30)),url('assets/vstopna-orgle-roke.jpg')}
  .cover-subtitle{font-size:clamp(1rem,3.8vw,1.35rem);margin:13px auto 9px}
}

/* Keep emphasized chapter-title words in the same gold as chapter labels. */
main > article > h1 em{color:var(--book-gold)}

/* Muted antique gold palette, consistent across cover and book. */
:root{--gold:#A68C68;--book-gold:#A68C68}
.cover-overline,.cover-heading h1 span,.cover-benefit strong,
.cover-website,.cover-price strong,
.eyebrow,.kicker,.section-number,.score-caption-label,
.chapter-num,.chapter-state,.history-wrap th,.end-chapter span,
main > article > h1 em{color:var(--book-gold)}
.cover-features span svg{stroke:var(--book-gold)}
.cover-features span{border-right-color:var(--book-gold)}
.cover-heading::before{background:var(--book-gold)}
.hairline{background:var(--book-gold)}

/* Cover-only lighter typography; inner book keeps antique gold #A68C68. */
.cover{--cover-gold:#E6C99A}
.cover .cover-overline,.cover .cover-heading h1 span,.cover .cover-benefit strong,.cover .cover-website{color:var(--cover-gold)}
.cover .cover-heading::before{background:var(--cover-gold)}
.cover .cover-features span svg{stroke:var(--cover-gold)}
.cover .cover-features span{border-right-color:var(--cover-gold)}

/* Reversible adjustment to the first line of title within tablet artwork. */
.cover-tablet-art{display:block;position:relative;width:100%;line-height:0}
.cover-tablet-art>.cover-tablet-render{display:block;width:100%;height:auto}
.cover-tablet-art>.cover-tablet-title-recolor{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:fill;pointer-events:none;
  clip-path:polygon(27% 16%,77% 16%,77% 24%,27% 24%);
  filter:grayscale(1) brightness(1.17);
}

/* Leave breathing room above the desktop cover emblem and author. */
@media(min-width:801px){
  .cover-content{padding-top:88px}
  .cover-heading::before{top:32px}
}

/* Bibliografski kolofon: diskreten zaključek zadnjega poglavja. */
.book-colophon{margin:3rem 0 1.5rem;padding:1.25rem 0 0;border-top:1px solid var(--line)}
.book-colophon h2{font-size:1.05rem;font-weight:600;letter-spacing:.02em;margin:0 0 .8rem}
.book-colophon p{font-size:.88rem;line-height:1.7;text-align:left;color:var(--muted);margin:0}
.book-colophon a{color:inherit;text-decoration:underline;text-underline-offset:2px}


/* Purchase method selection; shares the book's typography and palette. */
.purchase-dialog{width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 32px);margin:auto;padding:32px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);overflow-y:auto}
.purchase-dialog::backdrop{background:#171c1973}
.purchase-dialog h2{font-size:clamp(1.45rem,4vw,1.8rem);line-height:1.4;letter-spacing:-.03em;margin:16px 0 12px}
.purchase-dialog>p{font-size:.9rem;line-height:1.7;color:var(--muted);margin-bottom:24px}
.purchase-close{float:right;display:grid;place-items:center;width:36px;height:36px;margin:-10px -10px 0 8px;border:0;border-radius:4px;background:transparent;color:var(--muted);font-size:1.6rem;line-height:1}
.purchase-close:hover{background:#98795112;color:var(--ink)}
.purchase-options{display:grid;gap:14px}
.purchase-option{display:flex;flex-direction:column;gap:9px;padding:20px;border:1px solid var(--line);border-radius:5px;text-decoration:none;color:var(--ink);background:#f8f6f1}
.purchase-option:hover{border-color:var(--gold);background:#f3efe6}
.purchase-option:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.purchase-option strong{font:400 1.1rem/1.5 'Libre Baskerville',Georgia,serif}
.purchase-option>span{font-size:.88rem;line-height:1.65;color:var(--muted)}
.purchase-option .purchase-option-action{margin-top:3px;color:#806e50;font-weight:600}
@media(max-width:700px){.purchase-dialog{padding:25px 20px}.purchase-option{padding:17px}}
