/* ---- Teaching modules: wide tool pages (all candidates) ---- */
.tool-page { max-width: none; }
body:has(.tool-page) .container.content { max-width: 96vw; }
.tool-breadcrumb { margin-bottom: .25rem; font-size: .9rem; }
.tool-meta { color: #767676; margin-top: -.5rem; }
.tool-frame { width: 100%; height: 86vh; min-height: 720px; border: 1px solid #e5e5e5; border-radius: 6px; overflow: hidden; background: #fff; }
.tool-frame iframe { width: 100%; height: 100%; border: 0; }
.tool-links { font-size: .9rem; color: #767676; margin-top: .5rem; }

/* ---- Candidate C: indented module links under "Teaching" in the sidebar ---- */
.sidebar-nav-sub::before { content: "\2514\00a0"; opacity: .6; }
.tlist li { margin-bottom: 1rem; }
.tlist-mod { color: #767676; }

/* ---- Teaching list with a small thumbnail per module ---- */
.tlist { list-style: none; padding-left: 0; }
.tlist-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.tlist-thumb { order: 2; }
.tlist-thumb img { width: 150px; height: auto; border: 1px solid #e5e5e5; border-radius: 6px; display: block; }
.tlist-text { flex: 1; order: 1; }
@media (max-width: 38em) { .tlist-item { flex-direction: column; } .tlist-thumb { order: 0; } .tlist-thumb img { width: 100%; } }
/* sidebar: course heading, then its modules */
.sidebar-nav-course { padding-left: 2.2rem !important; font-size: inherit; opacity: .95; }   /* same size as Home / Teaching */
.sidebar-nav-sub { padding-left: 3.2rem !important; font-size: .92em; opacity: .9; }      /* slightly smaller than its course */

/* sidebar text at the same size as the page body (Lanyon default is 12px on wide screens) */
.sidebar { font-size: 1rem; }
@media (min-width: 30em) { .sidebar { font-size: 1rem; } }
.sidebar-nav-course { padding-left: 2rem !important; }
.sidebar-nav-sub    { padding-left: 2.9rem !important; }
