/* Source-study layout. Typography, colours and shared components come from Taffee's site CSS. */
.study-page .ft-nav-inner{min-height:72px}
.study-page .ft-nav nav a{font-size:12px;min-height:38px;padding:9px 15px}
.study-breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding-block:25px;font-size:11px;color:var(--muted)}
.study-breadcrumb>a:hover{color:var(--accent)}
.study-breadcrumb>span:not(.wiki-version){color:var(--quiet)}
.study-breadcrumb .wiki-version{margin:0 0 0 auto}
.study-page .wiki-article-heading h1{overflow-wrap:anywhere;white-space:normal}
.study-lead{font-size:15px;line-height:1.85;color:var(--muted);margin-top:18px;max-width:620px}
.study-actions{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin-top:25px}
.study-actions .text-link{color:var(--accent)}
.study-page .wiki-prose .study-note{font-size:12px;line-height:1.8;margin-top:0}
.study-page .wiki-prose .study-note p{margin:10px 0}
.study-page .wiki-prose pre{padding:20px}
.study-page .wiki-prose .study-files{border:1px solid var(--line);border-radius:3px;margin:18px 0;background:var(--surface-soft)}
.study-files>summary{display:flex;align-items:center;gap:12px;list-style:none;padding:17px 20px;cursor:pointer;color:var(--text)}
.study-files>summary::-webkit-details-marker{display:none}
.study-files>summary::after{content:'+';color:var(--accent);font-size:18px}
.study-files[open]>summary::after{content:'−'}
.study-files>summary small{font-size:11px;color:var(--quiet);margin-left:auto}
.study-page .wiki-prose .study-files ul{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.study-page .wiki-prose .study-files li{margin:0;padding:0}
.study-files li+li{border-top:1px solid var(--line)}
.study-page .wiki-prose .study-files li a{display:flex;justify-content:space-between;align-items:baseline;gap:18px;padding:11px 20px;text-decoration:none;font-size:12px}
.study-files li a:hover{background:var(--surface)}
.study-files li a>span{overflow-wrap:anywhere}
.study-files li small{flex-shrink:0;font-size:10px;color:var(--quiet)}
.study-file-reading{grid-template-columns:minmax(0,1fr)}
.study-path{font:12px/1.8 Consolas,monospace;color:var(--quiet);margin-top:15px;overflow-wrap:anywhere}
.study-file-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:24px}
.study-file-actions>span{font-size:11px;color:var(--quiet)}
.study-file-actions .button{min-height:40px;padding:10px 14px;font-size:11px;color:var(--accent)}
.study-file-actions .button:hover{border-color:var(--accent)}
.study-source pre{max-width:100%;max-height:78vh;white-space:pre;overscroll-behavior:contain;scrollbar-color:var(--line) var(--surface-soft)}
.study-source pre code{font:12px/1.85 Consolas,monospace;color:var(--text)}
.study-image{padding:28px;border:1px solid var(--line);border-radius:3px;background:var(--surface-soft);text-align:center}
.study-image img{image-rendering:pixelated;max-width:100%;height:auto}
.study-image figcaption{font-size:11px;color:var(--quiet);margin-top:20px}
.study-page .wiki-sidebar-note a{display:inline-block;color:var(--accent);margin-top:10px}
.study-page .site-footer{margin-top:0}
@media(max-width:1050px){.study-page .desktop-nav{gap:18px;margin-right:0}.study-page .header-cta{display:none}}
@media(max-width:850px){.study-page .wiki-sidebar>nav{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.study-page .ft-nav-inner{gap:14px}.study-page .ft-nav nav{display:flex;width:100%;gap:8px}.study-page .ft-nav nav a{flex:1;font-size:11px;padding:9px 8px}.study-breadcrumb{padding-block:20px;font-size:10px}.study-breadcrumb .wiki-version{font-size:9px}.study-page .wiki-layout{padding-top:24px}.study-page .wiki-article-heading h1{font-size:32px}.study-page .wiki-sidebar>nav{gap:15px}.study-actions{gap:15px}.study-lead{font-size:14px}.study-files li small{display:none}.study-files>summary{padding:14px}.study-page .wiki-prose .study-files li a{padding:12px 14px}.study-page .wiki-prose pre{padding:16px}.study-source pre code{font-size:11px}.study-file-actions{gap:14px}}
@media print{.study-page .site-header,.study-page .site-footer,.study-breadcrumb,.study-actions,.study-file-actions{display:none}.study-source pre{max-height:none;white-space:pre-wrap}}
