/* The existing Rx theme, applied to subject sections within each year. */
.rx-inner .year-prescribed-note{font-size:13px;line-height:1.5;color:var(--muted);margin:0 4px 16px;max-width:65ch}
.rx-inner .year-subject-sections{display:grid;gap:16px}
.rx-inner .year-subject-section{padding:16px;background:var(--surface);border:1px solid var(--hairline);border-radius:20px;box-shadow:var(--rx-shadow);scroll-margin-top:18px;min-width:0}
.rx-inner .year-subject-section>header{display:flex;align-items:flex-start;gap:10px;margin:0 0 16px}
.rx-inner .year-subject-section>header>div{min-width:0;flex:1}
.rx-inner .year-subject-section h2{font:700 23px/1.2 var(--rx-heading);margin:0;overflow-wrap:anywhere}
.rx-inner .year-subject-section header p{margin:5px 0 0;color:var(--muted);font-size:13px}
.rx-inner .year-subject-section>h3{font:600 14px/1.4 var(--ui);margin:0 0 8px;color:var(--muted)}
.rx-inner .year-book-list{padding:0;margin:0;list-style:none;display:grid;gap:0}
.rx-inner .year-book-list>li{display:flex;gap:10px;padding:10px 0;align-items:flex-start;border-bottom:1px solid var(--hairline);min-width:0}
.rx-inner .year-book-list>li:last-child{border-bottom:0}
.rx-inner .year-book-list .rx-row-icon{width:30px;height:34px;flex-basis:30px;border-radius:8px}
.rx-inner .year-book-list .rx-row-icon .icon-svg{width:20px;height:20px}
.rx-inner .year-book-list li>div{min-width:0;flex:1}
.rx-inner .year-book-list strong{display:block;font-size:15px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}
.rx-inner .year-book-list li>div>span{display:block;color:var(--muted);font-size:13px;line-height:1.45;margin-top:4px}
.rx-inner .year-book-empty{font-size:14px;color:var(--muted);line-height:1.5;margin:0 0 12px}
.rx-inner .year-subject-notes{margin:10px 0 8px}
.rx-inner .year-notes-link{display:flex;align-items:center;gap:9px;min-height:48px;padding:10px 12px;background:var(--rx-tab);border-radius:11px;color:var(--rx-link);font-size:14px;font-weight:600;line-height:1.3}
.rx-inner .year-notes-link>.icon-svg{width:19px;height:19px}.rx-inner .year-notes-link>.icon-svg:last-child{margin-left:auto}
.rx-inner .year-subject-roadmap{margin:0;border-top:1px solid var(--hairline);scroll-margin-top:20px}
.rx-inner .year-subject-roadmap>summary{display:flex;align-items:center;gap:9px;min-height:48px;padding:8px 2px;cursor:pointer;list-style:none;font-size:14px;color:var(--text);font-weight:500}
.rx-inner .year-subject-roadmap>summary>.icon-svg{width:19px;height:19px}.rx-inner .year-subject-roadmap>summary>.icon-svg:last-child{margin-left:auto;transition:transform 180ms ease-out}
.rx-inner .year-subject-roadmap[open]>summary>.icon-svg:last-child{transform:rotate(90deg)}
.rx-inner .year-subject-roadmap ol{margin:0 0 8px;padding-left:22px;font-size:14px;line-height:1.55;color:var(--muted)}
.rx-inner .year-subject-roadmap li+li{margin-top:8px}
.rx-inner .year-margin-note{font-family:Caveat,cursive;font-size:18px;line-height:1.35;color:var(--muted);margin:-4px 7px 0}
.rx-inner .year-note-subject{margin:20px 0;scroll-margin-top:16px;min-width:0}
.rx-inner .year-subject-summary{max-width:65ch;font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 14px}
.rx-inner .year-note-subject>header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.rx-inner .year-note-subject>header h2{font:700 23px/1.2 var(--rx-heading);margin:0;min-width:0;max-width:26ch}
.rx-inner .year-notes-reader .filter-chips button{font-size:13px;max-width:260px;white-space:normal;text-align:left}
@media(min-width:768px){.rx-inner .year-subject-section{padding:20px}.rx-inner .year-book-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px}.rx-inner .year-subject-section>header h2{font-size:27px}.rx-inner .year-subject-section>h3{font-size:15px}}
@media(prefers-reduced-motion:reduce){.rx-inner .year-subject-roadmap>summary>.icon-svg{transition:none}}

/* Expanded academic index: each subject goes straight to its year section. */
.rx-academic .bvsc-year-sections{display:grid;gap:26px;margin-top:20px}
.rx-academic .bvsc-year-heading{display:flex;align-items:center;gap:10px;margin:0 1px 12px;min-width:0}
.rx-academic .bvsc-year-heading>div{flex:1;min-width:0}
.rx-academic .bvsc-year-heading h2{font:700 26px/1.15 var(--rx-heading);margin:0}
.rx-academic .bvsc-year-heading p{font-size:12px;color:var(--muted);margin:4px 0 0}
.rx-academic .bvsc-year-number{display:grid;place-items:center;width:42px;height:46px;flex:0 0 42px;border-radius:12px;background:var(--rx-tone);font:700 25px/1 var(--rx-heading);color:#101b43}
.rx-academic .bvsc-year-link{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:48px;min-width:88px;padding:6px;color:var(--rx-link);font-size:13px;font-weight:600}
.rx-academic .bvsc-year-link .icon-svg{width:16px;height:16px}
.rx-academic .bvsc-subject-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rx-academic .bvsc-subject-tile{display:grid;grid-template-columns:minmax(0,1fr) 18px;align-content:start;gap:8px;min-height:142px;min-width:0;padding:13px 12px;background:var(--surface);border:1px solid var(--hairline);border-radius:17px;box-shadow:var(--rx-shadow);transition:transform 160ms ease-out,border-color 160ms ease-out}
.rx-academic .bvsc-subject-tile>.rx-row-icon{width:33px;height:36px;border-radius:9px}
.rx-academic .bvsc-subject-tile>.rx-row-icon>.icon-svg{width:24px;height:24px}
.rx-academic .bvsc-subject-tile>.icon-svg{width:16px;height:18px;color:var(--rx-link);align-self:center}
.rx-academic .bvsc-subject-tile h3{grid-column:1/-1;font:700 17px/1.25 var(--rx-heading);margin:0;color:var(--text);overflow-wrap:anywhere}
.rx-academic .bvsc-subject-tile p{grid-column:1/-1;font-size:12px;line-height:1.4;color:var(--muted);margin:0}
.rx-academic .bvsc-subject-tile:active{transform:translateY(1px)}
@media(hover:hover){.rx-academic .bvsc-subject-tile:hover{transform:translateY(-2px);border-color:var(--line)}}
/* Notes are the primary action in every subject section. */
.rx-academic .year-subject-section>header{margin-bottom:14px}
.rx-academic .year-subject-notes{margin:0 0 16px}
.rx-academic .year-notes-link{min-height:76px;padding:12px;gap:11px;border-radius:14px;background:var(--rx-blue);color:#fff;box-shadow:0 4px 12px #0769ce1a;transition:background 180ms ease-out,transform 150ms ease-out}
.rx-academic .year-notes-link:hover{background:var(--rx-blue-hover)}
.rx-academic .year-notes-link:active{transform:translateY(1px)}
.rx-academic .year-notes-symbol{display:grid;place-items:center;flex:0 0 36px;width:36px;height:40px;border-radius:10px;background:#ffffff1a}
.rx-academic .year-notes-symbol>.icon-svg{width:24px;height:24px}
.rx-academic .year-notes-copy{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.rx-academic .year-notes-copy strong{font:600 16px/1.25 var(--ui);color:inherit}
.rx-academic .year-notes-copy small{font-size:12px;line-height:1.35;font-weight:400;color:#fff}
.rx-academic .year-subject-roadmap>summary{border-radius:9px;padding-inline:5px}
.rx-academic .year-subject-roadmap>summary:hover{background:var(--rx-tab)}
.rx-academic .year-note-subject>header{padding:12px;background:var(--surface);border:1px solid var(--hairline);border-radius:14px}
/* Keep the bottom compact without reducing touch targets or safe-area space. */
.rx-academic .reading-page{padding-bottom:4px}
.rx-academic .source-note{margin-block:12px}
.rx-academic .page-checked{padding-top:4px;margin-top:6px}
.rx-academic .rx-footer{padding:6px 0 12px}
.rx-academic .rx-footer>.container{border-top:1px solid var(--hairline);padding-top:4px}
.rx-academic .rx-footer>.container>nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;max-width:560px;margin-inline:auto}
.rx-academic .rx-footer>.container>nav a{justify-content:center;text-align:center;min-width:0;min-height:48px;padding:3px 2px;font-size:12px;line-height:1.3}
.rx-academic .rx-footer-ecosystem{flex-wrap:nowrap;justify-content:space-between;gap:8px;border-top:1px solid var(--hairline)}
.rx-academic .rx-footer-ecosystem>nav{gap:8px;font-size:12px}
.rx-academic .rx-footer-ecosystem nav a{font-size:12px}
.rx-academic .rx-footer .text-button{font-size:12px;white-space:nowrap}
.rx-academic .rx-footer .footer-note{margin:2px auto 0;max-width:80ch;font-size:12px;line-height:1.4}
@media(min-width:768px){.rx-academic .bvsc-subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rx-academic .bvsc-subject-tile{padding:16px;min-height:148px}.rx-academic .bvsc-subject-tile h3{font-size:19px}.rx-academic .bvsc-year-heading h2{font-size:29px}.rx-academic .rx-footer-ecosystem{justify-content:center;gap:20px}}
@media(min-width:1024px){.rx-academic .bvsc-subject-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.rx-academic .bvsc-subject-tile,.rx-academic .year-notes-link{transition:none;transform:none}}
