*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:5rem;overflow-x:hidden}body{margin:0;background:var(--bg)!important;color:var(--text)!important;font:400 var(--text-md)/var(--leading) var(--font)!important;min-height:100vh;overflow-x:hidden}body,body *{font-family:var(--font)!important;box-shadow:none!important;text-shadow:none!important;background-image:none!important}body *{color:var(--text)!important}body :is(p,li,blockquote){line-height:var(--leading)}body :is(h1,h2,h3,h4,h5,h6){font-weight:600;letter-spacing:-.025em;line-height:1.2}body h1{font-size:clamp(1.75rem,3vw,2rem)}body h2{font-size:var(--text-xl)}body h3{font-size:var(--text-lg)}body :is(a,.link){color:var(--accent)!important}body a:hover{color:var(--accent-hover)!important}body :is(button,input,select,textarea){font:inherit;max-width:100%}body :is(button,.btn){background:var(--surface)!important;border:1px solid var(--line-strong)!important;border-radius:var(--radius-md)!important;color:var(--text)!important;cursor:pointer;padding:.6rem .85rem}body :is(button,.btn):hover{border-color:var(--accent)!important;color:var(--accent)!important}body :is(input,select,textarea){background:var(--bg)!important;border:1px solid var(--line-strong)!important;border-radius:var(--radius-md)!important;color:var(--text)!important;padding:.6rem .7rem}body :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:3px solid var(--focus)!important;outline-offset:3px!important}body :is(article,.card,.course,.study-card,.study-item,.study-profile,.study-flashcard-progress,.auth-shell,.desk-sources,.study-visual,.panel,.box,.sheet,.callout,.continue-card,.flashcard-study-tools){background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:var(--radius-md)!important;color:var(--text)!important}body table{border-collapse:collapse;max-width:100%;width:100%}body :is(th,td){border:1px solid var(--line);padding:.55rem;text-align:left}body th{background:var(--surface-2)!important}body img,body svg,body iframe{max-width:100%}body pre,body code{max-width:100%;overflow:auto}.home-page main{margin:0 auto;max-width:1120px;padding:1.5rem 1rem}.home-page .eyebrow{color:var(--text-3)!important;font-size:var(--text-xs);letter-spacing:.08em;text-transform:uppercase}.home-page h1{max-width:65ch}.home-page .intro{color:var(--text-2)!important;max-width:var(--measure)}.home-page .label{border-top:1px solid var(--line);color:var(--text-3)!important;font-size:var(--text-sm);font-weight:600;letter-spacing:0;padding-top:.8rem}.home-page .courses{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr));margin:1rem 0}.home-page .course{display:flex;flex-direction:column;gap:.45rem;min-height:0;padding:1rem;text-decoration:none}.home-page .course h2{font-size:var(--text-lg);margin:.25rem 0}.home-page .course p{color:var(--text-2)!important;font-size:var(--text-sm);margin:0}.home-page .course>small{font-size:var(--text-xs);font-weight:600}.home-page .course>span{color:var(--accent)!important;font-size:var(--text-sm);margin-top:auto;padding-top:.5rem}.home-page .course-progress{font-size:var(--text-xs);font-weight:400;margin-top:.5rem}.home-page .course-progress i{background:var(--surface-2)!important;border-radius:0;display:block;height:4px;margin-top:.4rem}.home-page .course-progress b{background:var(--accent)!important}.home-page .auth-shell{padding:1rem}.home-page .auth-copy{color:var(--text-2)!important}.home-page .profile-bar{border:0;margin:0;padding:0}.home-page .profile-bar button{width:auto}body .site-header{align-items:center;background:var(--bg)!important;border-bottom:1px solid var(--line);display:flex;gap:1rem;justify-content:space-between;margin:0 auto;padding:.8rem max(1rem,calc((100vw - 1120px)/2));position:relative;z-index:var(--z-header)}.site-brand{color:var(--text)!important;font-size:.95rem;font-weight:700;text-decoration:none;white-space:nowrap}.site-nav{align-items:center;display:flex;flex-wrap:wrap;gap:.4rem}.site-nav a,.site-header button{border:0!important;color:var(--text-2)!important;font-size:var(--text-sm);padding:.45rem .6rem!important;text-decoration:none}.site-nav a[aria-current],.site-nav a:hover{background:var(--surface)!important;color:var(--accent)!important}.theme-toggle{white-space:nowrap}.site-footer{border-top:1px solid var(--line);color:var(--text-3)!important;font-size:var(--text-xs);margin:3rem auto 0;max-width:1120px;padding:1rem 1rem 2rem}.site-footer p{color:var(--text-3)!important;margin:0}.site-skip{background:var(--bg)!important;border:1px solid var(--line);left:1rem;padding:.6rem .9rem;position:absolute;top:-10rem;z-index:99}.site-skip:focus{top:1rem}.site-reading-progress{background:var(--accent);height:3px;left:0;position:fixed;top:0;transform-origin:left;transform:scaleX(0);width:100%;z-index:var(--z-toast)}.site-reader-tools{align-items:center;background:var(--surface)!important;border:1px solid var(--line);display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem auto;max-width:var(--measure);padding:.65rem}.site-reader-tools button{padding:.4rem .65rem}.site-bookmark[aria-pressed=true]{color:var(--accent)!important}.continue-card{align-items:center;display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;margin:0 auto 2rem;max-width:1120px;padding:1rem 1.2rem}.continue-card p{margin:.2rem 0}.continue-card a{font-weight:600}
@media(max-width:640px){body{font-size:1rem!important}.site-header{align-items:flex-start!important;flex-direction:column;padding:.65rem 1rem!important}.site-nav{gap:.15rem}.site-nav a{padding:.35rem .4rem!important}.site-header .profile-bar{margin:0;width:100%}.continue-card{align-items:flex-start;flex-direction:column}.site-reader-tools{margin:.5rem;padding:.5rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

@media(max-width:700px){.home-page .courses{grid-template-columns:minmax(0,1fr)}.home-page main{padding:1rem}}
main:has(>.site-reader-tools){margin-left:auto!important;margin-right:auto!important;max-width:min(var(--measure),100%)!important;padding:clamp(1rem,4vw,3rem)!important}
main:has(>.site-reader-tools) .site-reader-tools{margin:0 0 1.5rem;max-width:none}

body :is(){background:var(--surface)!important;border-color:var(--line)!important;border-radius:var(--radius-md)!important;color:var(--text)!important}

body :is(.tag,.chip,.badge,.marks-badge,.tier-badge){background:var(--surface-2)!important;border:1px solid var(--line)!important;border-radius:var(--radius-sm)!important;color:var(--text-2)!important}
body :is(.card-face,.card-front,.card-back){background:var(--surface)!important;border-color:var(--line)!important}
body :is(.progress-bar,.progress-fill,.progress,.progress i,.study-progress){background:var(--surface-2)!important;border-radius:0!important}
body :is(.progress-fill,.progress i,.study-progress i){background:var(--accent)!important}
body :is(.study-item.status-not-started,.study-item.status-in-progress,.study-item.status-done,.study-item.status-revise,.study-item.status-ignored){border-left:1px solid var(--line)!important}
body *{background-color:transparent!important}
body :is(article,.card,.course,.study-card,.study-item,.study-profile,.study-flashcard-progress,.auth-shell,.desk-sources,.study-visual,.panel,.box,.sheet,.callout,.continue-card,.flashcard-study-tools,.site-reader-tools){background-color:var(--surface)!important}
body :is(button,.btn,input,select,textarea,th){background-color:var(--surface)!important}
body :is(.progress-bar,.progress-fill,.progress,.progress i,.study-progress){background-color:var(--surface-2)!important}
body :is(.progress-fill,.progress i,.study-progress i,.course-progress b){background-color:var(--accent)!important}
body :is(.site-header,.site-footer){background-color:var(--bg)!important}

body table{display:block;overflow-x:auto}

/* Milestone 2b: compact shared chrome and consistent legacy-page presentation. */
body .site-header{min-height:56px;padding-block:.55rem}
body,body *{-webkit-text-fill-color:currentColor!important}
body :is(p,li,blockquote,a,button,input,select,textarea,label,small,th,td,summary,figcaption,caption,span){font-size:max(14px,1em)!important}
.site-menu-toggle{display:none}
.site-menu{align-items:center;display:flex;gap:.35rem}
.site-menu[hidden]{display:none!important}
.site-account{white-space:nowrap}
.site-account,.site-header .theme-toggle{font-size:14px!important;padding:.4rem .55rem!important}
.site-nav{flex-wrap:nowrap}
.site-nav a{font-size:14px!important;white-space:nowrap}
.start-with-course{color:var(--text-3)!important;margin:0 auto 1rem;max-width:1120px;padding-inline:1rem}
body .continue-card{font-size:1rem}
body :is(){font-size:15px!important}

body .mapc-auth-dialog{background:rgb(0 0 0 / 35%)!important}
body .mapc-auth-dialog .auth-shell{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:var(--radius-md)!important;box-shadow:none!important;color:var(--text)!important;font-family:var(--font)!important}
body .mapc-auth-dialog :is(label,.auth-kicker,.auth-copy,.auth-switch,.auth-message,small){font-family:var(--font)!important;font-size:15px!important}
body .mapc-auth-dialog h2{font-size:24px!important;font-weight:600!important}
body :is(small,.hint,.kbd-hints,.card-label,.tag,.tier-badge,.eyebrow,.desk-kicker,.route-label,.source-links span,.course-progress){font-size:max(14px,1em)!important}
body :is(.nav-row,.nav,.navigation){gap:.5rem}
body :is(.nav-row button,.nav button,.navigation button){min-height:42px}
@media(max-width:640px){
  body .site-header{align-items:center!important;display:flex!important;flex-direction:row!important;gap:.5rem;justify-content:space-between!important;min-height:56px;padding:.45rem .75rem!important}
  .site-brand{font-size:15px!important;max-width:calc(100vw - 100px);overflow:hidden;text-overflow:ellipsis}
  .site-menu-toggle{display:block!important;flex:0 0 auto;font-size:14px!important;min-height:40px;padding:.35rem .65rem!important}
  .site-menu{align-items:stretch;background:var(--bg);border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:.25rem;left:0;padding:.5rem .75rem .75rem;position:absolute;right:0;top:100%;z-index:var(--z-header)}
  .site-menu[hidden]{display:none!important}
  .site-nav{align-items:stretch;display:flex;flex-direction:column;gap:0;width:100%}
  .site-nav a,.site-menu button{min-height:42px;text-align:left;width:100%}
  .site-header .profile-bar{width:100%}
  
  
  
  
  
  
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}body *,body *::before,body *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* Milestone 2c: shared flashcard bar — fixed to the bottom on every width.
   One row (3 + 2 equal buttons) on wide screens, two tidy rows on phones.
   --flash-bar-h is measured by common-chrome.js so page content never hides behind it. */
body.has-flashcard-controls{padding-bottom:calc(var(--flash-bar-h,132px) + 24px)!important}
body.has-flashcard-controls :is(.flash-dup,.flashcard-original-nav){display:none!important}
body.has-flashcard-controls .flashcard-study-tools{background:var(--bg)!important;background-color:var(--bg)!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;bottom:0;display:grid;gap:.4rem .5rem;grid-template-columns:3fr 2fr;left:0;margin:0;max-width:none;padding:.5rem max(.75rem,calc((100vw - 860px)/2)) max(.6rem,env(safe-area-inset-bottom));position:fixed;right:0;z-index:var(--z-header)}
body.has-flashcard-controls .flash-stats{color:var(--text-2)!important;font-size:14px!important;grid-column:1/-1;margin:0;text-align:center}
body.has-flashcard-controls .flash-bar-row{display:grid;gap:.4rem;min-width:0}
body.has-flashcard-controls .flash-bar-move{grid-template-columns:repeat(3,minmax(0,1fr))}
body.has-flashcard-controls .flash-bar-rate{grid-template-columns:repeat(2,minmax(0,1fr))}
body.has-flashcard-controls .flashcard-study-tools button{font-size:15px!important;min-height:44px;min-width:0;overflow:hidden;padding:.4rem .5rem!important;text-overflow:ellipsis;white-space:nowrap;width:100%}
body.has-flashcard-controls .flashcard-study-tools [data-flash-reveal]{border-color:var(--accent)!important;color:var(--accent)!important}
body.has-flashcard-controls .flashcard-study-tools button[aria-pressed=true]{background-color:var(--accent-soft)!important;border-color:var(--accent)!important;color:var(--accent)!important}
@media(max-width:560px){body.has-flashcard-controls .flashcard-study-tools{grid-template-columns:1fr}}
/* Skip link (placed first in <body> by the build and common-chrome.js). */
body .skip-link{background:var(--bg)!important;border:1px solid var(--line);left:1rem;padding:.6rem .9rem;position:fixed!important;top:-10rem;z-index:99}
body .skip-link:focus{top:.5rem}
/* Minimum on-screen text size (14px) for small legacy labels. Print layouts keep their paper sizes. */
@media screen{body :is(kbd,b,strong,em,i,h3,h4,h5,h6,footer,aside,.footer,.site-footer,.key-terms-title,.theory-meta,.marks-badge,.card-t,.card-s,.insight,.formula-box,.formula-box *,td div,th div){font-size:max(14px,1em)!important}}
/* Emoji icon slots emptied in the 2c sweep take no space. */
body :is(.theme-icon,.si,.search-icon):empty{display:none!important}
/* Course switcher in the shared header (common-chrome.js). */
.site-courses{margin-right:auto;position:relative}
.site-courses-toggle[aria-expanded="true"]{background:var(--surface)!important;color:var(--text)!important}
body .site-header .site-courses-menu{background:var(--bg)!important;border:1px solid var(--line);border-radius:var(--radius-md);left:0;list-style:none;margin:.25rem 0 0;max-height:min(70vh,32rem);min-width:18rem;overflow-y:auto;padding:.25rem;position:absolute;top:100%;z-index:calc(var(--z-header) + 1)}
.site-courses-menu[hidden]{display:none!important}
.site-courses-menu li{margin:0!important;padding:0!important}
body .site-header .site-courses-menu a{border-radius:var(--radius-sm);color:var(--text)!important;display:block;font-size:14px!important;line-height:1.4;padding:.5rem .6rem!important;text-decoration:none}
body .site-header .site-courses-menu a:hover{background:var(--surface)!important}
body .site-header .site-courses-menu a[aria-current]{background:var(--accent-soft)!important;color:var(--accent)!important;font-weight:600}
.site-courses-code{color:var(--text-3);font-variant-numeric:tabular-nums;margin-right:.35rem}
.site-courses-menu a[aria-current] .site-courses-code{color:inherit}
@media(max-width:640px){
  .site-brand{max-width:calc(100vw - 190px)!important}
  .site-courses{position:static}
  .site-courses-toggle{flex:0 0 auto;min-height:40px;padding:.35rem .65rem!important}
  .site-courses-menu{border-left:0;border-radius:0;border-right:0;left:0;margin:0;min-width:0;right:0;width:auto}
  .site-courses-menu a{min-height:42px}
}
/* Milestone 5: site search (common-chrome.js). */
.site-header .site-search-trigger{align-items:center;display:inline-flex;flex:0 0 auto;gap:.4rem;white-space:nowrap}
.site-search-trigger svg{flex:0 0 auto}
body .site-search-kbd{border:1px solid var(--line-strong);border-radius:var(--radius-sm);color:var(--text-3)!important;font-size:12px!important;line-height:1;padding:.15rem .35rem}
body .site-search-dialog{background:var(--bg)!important;border:1px solid var(--line)!important;border-radius:var(--radius-md);color:var(--text)!important;margin:8vh auto auto;max-height:80vh;max-width:min(40rem,calc(100vw - 1.5rem));padding:0;width:100%}
.site-search-dialog::backdrop{background:rgb(0 0 0 / 40%)}
.site-search-panel{display:flex;flex-direction:column;max-height:80vh;padding:1rem}
.site-search-head{align-items:center;display:flex;gap:1rem;justify-content:space-between;margin-bottom:.6rem}
body .site-search-title{font-size:var(--text-md)!important;margin:0}
body .site-search-close{font-size:14px!important;padding:.35rem .6rem!important}
body .site-search-input{font-size:16px!important;width:100%}
body .site-search-status{color:var(--text-3)!important;font-size:14px!important;margin:.6rem 0 .25rem}
.site-search-results{min-height:0;overflow-y:auto;overscroll-behavior:contain}
body .site-search-group{border-top:1px solid var(--line);color:var(--text-3)!important;font-size:13px!important;font-weight:600;letter-spacing:.02em;margin:.5rem 0 .2rem;padding-top:.5rem}
body .site-search-option{border:1px solid transparent;border-radius:var(--radius-sm);color:var(--text)!important;display:block;padding:.5rem .6rem;text-decoration:none}
body .site-search-option[aria-selected=true]{background:var(--surface)!important;border-color:var(--line-strong)}
.site-search-option>span{display:block;overflow-wrap:anywhere}
body .site-search-option-title{font-weight:600}
body .site-search-option-meta{color:var(--accent)!important;font-size:13px!important}
body .site-search-option-desc{color:var(--text-2)!important;display:-webkit-box!important;font-size:13px!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
body .site-search-option mark{background:var(--accent-soft)!important;border-radius:2px;color:inherit!important;padding:0 .05em}
@media(max-width:640px){
  .site-header .site-search-trigger{margin-left:auto;min-height:40px;padding:.35rem .55rem!important}
  .site-search-label,.site-search-kbd{display:none!important}
  .site-brand{max-width:calc(100vw - 240px)!important}
  body .site-search-dialog{margin-top:.75rem;max-height:calc(100vh - 1.5rem)}
  .site-search-panel{max-height:calc(100vh - 1.5rem)}
}
html body dialog.site-search-dialog,html body .site-search-panel{background:var(--bg)!important;background-color:var(--bg)!important;opacity:1}

/* Milestone 6: visual polish — spacing rhythm, link underlines, reading controls, home and course templates. */
/* Links: underline only inside running text; chrome, cards, chips and buttons stay clean. */
body a{text-decoration:none}
body :is(p,li,dd,td,blockquote,figcaption) a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
body :is(nav,header,footer,.ct-tools,.ct-toc,.ct-units,.ct-pager,.course,.hero-links,.continue-card,.site-search-results,.site-courses-menu,.site-reader-tools) a{text-decoration:none}
body :is(.ct-crumbs,.ct-units,.ct-pager) a:hover{text-decoration:underline}

/* Reading controls: unboxed row of small icon buttons, right-aligned. */
body div.site-reader-tools{align-items:center;background:transparent!important;background-color:transparent!important;border:0!important;display:flex;flex-wrap:nowrap;gap:var(--space-1);justify-content:flex-end;margin:0 0 var(--space-4);max-width:none;padding:0}
body .site-reader-tools .site-tool{align-items:center;background-color:transparent!important;border:1px solid transparent!important;border-radius:var(--radius-md)!important;color:var(--text-2)!important;display:inline-flex;font-size:14px!important;font-weight:500;height:var(--control-size);justify-content:center;line-height:1;padding:0!important;width:var(--control-size)}
body .site-reader-tools .site-tool *{color:inherit!important}
body .site-reader-tools .site-tool:hover,body .site-reader-tools .site-tool[aria-expanded=true]{border-color:var(--line-strong)!important;color:var(--accent)!important}
body .site-reader-tools .site-bookmark[aria-pressed=true]{color:var(--accent)!important}
.site-textsize{position:relative}
body .site-textsize-pop{background:var(--popover-bg)!important;background-color:var(--popover-bg)!important;border:1px solid var(--line);border-radius:var(--radius-md);display:flex;gap:var(--space-1);padding:var(--space-1);position:absolute;right:0;top:calc(100% + var(--space-1));z-index:calc(var(--z-header) - 1)}
.site-textsize-pop[hidden]{display:none!important}
body .site-textsize-pop button{font-size:14px!important;min-height:var(--control-size);min-width:2.75rem;padding:0 var(--space-2)!important}
.site-crumb-bar{align-items:center;display:flex;gap:var(--space-3);justify-content:space-between;margin-bottom:var(--space-6)}
.site-crumb-bar .ct-crumbs{margin:0;min-width:0}
.site-crumb-bar .site-reader-tools{flex:0 0 auto;margin:0!important}
@media(max-width:640px){
  .site-crumb-bar{align-items:stretch;flex-direction:column-reverse;gap:var(--space-2)}
  .site-crumb-bar .site-reader-tools{align-self:flex-end}
  main:has(>.site-reader-tools){padding-top:var(--space-2)!important}
}

/* Home: hero, year groups, course cards, continue card. */
.home-page main{padding-top:var(--space-10)}
.home-page .eyebrow{margin:0 0 var(--space-2)}
.home-page h1{margin:0 0 var(--space-3)}
.home-page .intro{margin:0 0 var(--space-6)}
.home-page .intro:has(+.intro-note){margin-bottom:var(--space-1)}
.home-page .intro-note{color:var(--text-3)!important;font-size:var(--text-sm);margin:0 0 var(--space-6);max-width:var(--measure)}
.hero-links{display:flex;flex-wrap:wrap;gap:var(--space-2);margin:0 0 var(--space-10)}
body .hero-links a{border:1px solid var(--line-strong);border-radius:var(--radius-md);color:var(--text)!important;font-size:var(--text-sm)!important;font-weight:500;padding:var(--space-2) var(--space-4)}
body .hero-links a:hover{border-color:var(--accent);color:var(--accent)!important}
body.home-page h2.label{border-top:0;font-size:var(--text-sm)!important;font-weight:600;letter-spacing:0;margin:var(--section-gap) 0 var(--space-3);padding-top:0}
.home-page .courses{gap:var(--space-4);margin:0}
body.home-page .course{background-color:var(--bg)!important;gap:var(--space-1);padding:var(--space-5)}
body.home-page .course:hover{border-color:var(--accent)!important}
body.home-page .course>small{color:var(--text-3)!important;font-size:12px!important;font-weight:500;letter-spacing:.06em;text-transform:uppercase}
body.home-page .course h3{font-size:var(--text-md);font-weight:600;margin:0}
body.home-page .course{min-width:0}
body.home-page .course p{max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.home-page .course>span{color:var(--accent)!important;font-size:var(--text-sm)!important;padding-top:var(--space-2)}
body.home-page .course-progress{color:var(--text-2)!important;font-size:13px!important;margin-top:var(--space-2)}
body.home-page .course-progress span{color:var(--text-2)!important}
body.home-page .course-progress i{background-color:var(--track)!important;height:2px;margin-top:var(--space-1)}
body.home-page .course-progress b{display:block;height:100%}
.course-progress[hidden]{display:none!important}
body.home-page .continue-card{background-color:var(--bg)!important;gap:var(--space-4);margin:0 0 var(--space-4);max-width:none;padding:var(--space-5)}
body.home-page .continue-card strong{font-size:var(--text-sm);font-weight:600}
body.home-page .continue-card p{color:var(--text-2)!important;font-size:var(--text-sm)}
body.home-page .continue-card a{border:1px solid var(--line-strong);border-radius:var(--radius-md);font-size:var(--text-sm)!important;font-weight:500;padding:var(--space-2) var(--space-4);white-space:nowrap}
body.home-page .continue-card a:hover{border-color:var(--accent)}
.home-page main>.continue-card+h2.label{margin-top:var(--space-6)}

/* Course and unit templates. */
.ct-main.ct-wide{max-width:var(--measure-wide)}
.ct-wide :is(.ct-lede,.ct-section>p,.ct-facts){max-width:70ch}
.ct-section{margin-bottom:var(--section-gap)}
.ct-section h2{margin-bottom:var(--space-4)}
.ct-toc ul{gap:var(--space-2);margin-top:var(--space-5)}
body .ct-toc a{background-color:var(--chip-bg)!important;border:1px solid var(--chip-border);border-radius:999px;color:var(--text-2)!important;display:inline-block;font-size:13px!important;line-height:1.4;padding:var(--space-1) var(--space-3);white-space:nowrap}
body .ct-toc a:hover{border-color:var(--accent);color:var(--accent)!important}
@media(max-width:640px){
  body .ct-toc{margin-inline:calc(-1 * var(--space-4))}
  body .ct-toc ul{flex-wrap:nowrap;overflow-x:auto;padding:0 var(--space-4) var(--space-1);scrollbar-width:thin}
  .ct-toc li{flex:0 0 auto}
}
.ct-tools{gap:var(--space-3)}
body .ct-tools li{display:flex;flex-direction:column;gap:var(--space-1);padding:var(--space-4);position:relative;transition:border-color var(--motion-fast)}
body .ct-tools a{color:var(--text)!important;font-weight:500}
body .ct-tools a::after{content:"";inset:0;position:absolute}
body .ct-tools .ct-note{color:var(--text-3)!important}
body .ct-tools li:hover{border-color:var(--accent)}
body .ct-tools li:hover a{color:var(--accent)!important}
@supports selector(:has(a)){
  body .ct-tools li:has(a:focus-visible){border-color:var(--accent);outline:3px solid var(--focus);outline-offset:2px}
  body .ct-tools a:focus-visible{outline:none!important}
}
