/* GID design system: the plugins' layer (LifterLMS, BuddyPress, bbPress), 2026-10-12.
   Loaded by wordpress/mu-plugins/gid-design-system.php after the plugins' own styles, whatever theme is active,
   so the plugins keep the one design system even if the theme changes. Sizes and colours are named only
   (--t-*, --ink, --line ... from tokens.css, built from website/design-system/tokens.json); a typed-in size fails
   website/design-system/check_type.py. Moved here from the theme's style.css. */

.llms-syllabus-wrapper .llms-section-title { font-family: var(--font-display); font-size: var(--t-lede); margin: 32px 0 8px; padding: 0; background: none; color: var(--ink); }
.llms-lesson-preview { margin: 0; }
.llms-lesson-preview .llms-lesson-link { display: block; padding: 12px 16px; border: var(--stroke-card) solid var(--line); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); text-decoration: none; margin-bottom: 8px; }
.llms-lesson-preview .llms-lesson-link:hover { border-color: var(--site); }
.llms-lesson-preview.is-complete .llms-lesson-complete, .llms-lesson-complete { color: var(--status-live); }
.llms-progress .progress-bar, .llms-progress .llms-progress-bar { background: var(--surface-sunk); border-radius: 999px; height: 8px; overflow: hidden; }
.llms-progress .progress-bar-complete { background: var(--site); height: 100%; }
.llms-access-plans .llms-access-plan-content, .llms-access-plan .llms-access-plan-content { background: var(--surface); border: var(--stroke-card) solid var(--line); border-radius: var(--radius-l); }
.llms-notice { border-radius: var(--radius-l); border: var(--stroke-card) solid var(--line); background: var(--surface-sunk); color: var(--ink); padding: 12px 16px; }
.llms-notice.llms-error { border-color: var(--status-held); background: var(--status-held-bg); }
/* LifterLMS's course lists (My courses, the dashboard): the same card as the catalogue's nd-course-card -
   picture 16:9 on top, then progress, title and a line of small facts. The author line ("metaverse", the
   site's own account) and "Status: Enrolled" (always true on a list of your own courses) are hidden. */
ul.llms-loop-list[class] { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
ul.llms-loop-list[class] > li.llms-loop-item { width: auto; float: none; margin: 0; padding: 0; background: none; border: 0; }
.llms-loop-item-content { background: var(--surface); border: var(--stroke-card) solid var(--line); border-radius: var(--radius-l); overflow: hidden; height: 100%; margin: 0; padding: 0; }
.llms-loop-item-content:hover { border-color: var(--site); }
.llms-loop-item-content .llms-loop-link { display: flex; flex-direction: column; height: 100%; color: var(--ink); text-decoration: none; }
.llms-loop-item-content .llms-featured-image { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; margin: 0; background: var(--surface-sunk); }
.llms-loop-item-content .llms-progress { box-sizing: border-box; width: 100%; display: flex; flex-direction: row; align-items: center; gap: 10px; height: auto; padding: 14px 20px 0; margin: 0; }
.llms-loop-item-content .llms-progress .llms-progress-bar { flex: 1; width: auto; min-width: 0; top: 0; height: 8px; }
.llms-loop-item-content .llms-progress .progress__indicator { display: block; float: none; height: auto; margin: 0; order: 2; font: 600 var(--t-cap)/1 var(--font-sans); color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.llms-loop-item-content .llms-loop-title { font-family: var(--font-sans); font-size: var(--t-read); line-height: 1.35; color: var(--ink); margin: 0; padding: 12px 20px 0; }
.llms-loop-item-content .llms-loop-item-footer { padding: 6px 20px 18px; display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: auto; }
.llms-loop-item-content .llms-meta, .llms-loop-item-content .llms-meta p { margin: 0; padding: 0; font-size: var(--t-ui); line-height: 1.5; color: var(--ink-muted); }
.llms-loop-item-content .llms-author, .llms-loop-item-content .llms-enroll-status { display: none; }
.llms-course-navigation .llms-lesson-preview { flex: 1; }
#buddypress, .buddypress-wrap { color: var(--ink); }
.buddypress-wrap .bp-navs { background: none; border-bottom: var(--stroke-card) solid var(--line); }
.buddypress-wrap .bp-navs li a, .buddypress-wrap .bp-navs li span { color: var(--ink-muted); }
.buddypress-wrap .bp-navs li.selected a, .buddypress-wrap .bp-navs li.current a { color: var(--ink); background: none; border-bottom: 3px solid var(--site); }
.buddypress-wrap .bp-navs li a .count { background: var(--surface-sunk); color: var(--ink-muted); border: 0; }
.buddypress-wrap .item-list > li, .buddypress-wrap .activity-list .activity-item { border-color: var(--line) !important; background: var(--surface); }
.buddypress-wrap .grid.item-list > li .list-wrap { background: var(--surface); border: var(--stroke-card) solid var(--line); border-radius: var(--radius-l); }
.buddypress-wrap .item-avatar img, .buddypress-wrap img.avatar { border-radius: 50%; }
.buddypress-wrap .item-meta, .buddypress-wrap .activity-header .time-since, .buddypress-wrap .last-activity { color: var(--ink-muted); }
.buddypress-wrap .bp-list .item-title a, .buddypress-wrap .list-title a { color: var(--ink); font-weight: 700; }
.buddypress-wrap .bp-feedback { background: var(--surface-sunk); color: var(--ink); border-radius: var(--radius-m); box-shadow: none; }
.buddypress-wrap .select-wrap, .buddypress-wrap .select-wrap select { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.buddypress-wrap #item-header { background: var(--surface); border: var(--stroke-card) solid var(--line); border-radius: var(--radius-l); padding: 24px; }
#bbpress-forums { font-size: var(--t-ui); }
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-replies, #bbpress-forums .bbp-body > ul { border-color: var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); }
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer { background: var(--surface-sunk); border-color: var(--line); color: var(--ink-muted); font-weight: 600; }
#bbpress-forums div.odd, #bbpress-forums ul.odd { background: var(--surface); }
#bbpress-forums div.even, #bbpress-forums ul.even { background: var(--paper); }
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic { border-color: var(--line); }
#bbpress-forums .bbp-forum-title, #bbpress-forums .bbp-topic-permalink { color: var(--ink); font-weight: 700; }
#bbpress-forums .bbp-forum-content, #bbpress-forums .bbp-topic-meta, #bbpress-forums .bbp-author-role { color: var(--ink-muted); }
#bbpress-forums .bbp-breadcrumb, #bbpress-forums .bbp-breadcrumb a { color: var(--ink-muted); }
/* Accessibility (axe, 2026-10-09). Sub-forum links at least 24px tall (WCAG 2.5.8); the forum search keeps its label
   for screen readers (bbPress marks it "hidden", which hides it from them too). */
#bbpress-forums .bbp-forums-list li { display: inline-block; margin: 2px 10px 2px 0; }
#bbpress-forums .bbp-forums-list .bbp-forum-link, #bbpress-forums a.bbp-forum-link { display: inline-flex; align-items: center; min-height: 24px; }
#bbp-search-form label.hidden, .bbp-search-form label[for="bbp_search"] { display: block !important; position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#bbpress-forums .bbp-reply-permalink, #bbpress-forums .bbp-topic-permalink, #bbpress-forums .bbp-admin-links, #bbpress-forums .bbp-admin-links a, #bbpress-forums .bbp-topic-edit-link, #bbpress-forums .bbp-reply-edit-link { color: var(--ink-muted); }
#bbpress-forums .bbp-topic-description a, #bbpress-forums .bbp-forum-description a, #bbpress-forums .bbp-reply-content a { text-decoration: underline; }
#bbpress-forums div.bbp-reply-header, #bbpress-forums div.bbp-topic-header { background: var(--surface-sunk); border-color: var(--line); }
.llms-syllabus-wrapper .llms-lesson-preview, .llms-syllabus-wrapper .llms-lesson-preview .llms-favorite-wrapper { background: none; }
.llms-syllabus-wrapper .llms-lesson-preview { position: relative; }
.llms-syllabus-wrapper .llms-lesson-preview .llms-favorite-wrapper { position: absolute; right: 64px; top: 12px; font-size: var(--t-cap); color: var(--ink-muted); }
.llms-syllabus-wrapper .llms-lesson-link .llms-lesson-title { color: var(--ink); font-weight: 600; }
/* The dashboard's side menu. LifterLMS styles these links with a five-class selector (padding 10px 0), so the
   rules below start from "body.logged-in" to outrank it. The current page is shown the way the site shows a
   card - white, thin border, bold - not with a coloured bar (a bar on a rounded item drew as a yellow curve). */
.llms-student-dashboard .llms-sd-nav .llms-sd-items { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
body.logged-in .llms-sd-layout-columns .llms-sd-nav .llms-sd-items .llms-sd-item a,
.llms-student-dashboard .llms-sd-nav .llms-sd-item a { display: block; padding: 8px 12px; border: var(--stroke-card) solid transparent; border-radius: var(--radius-m); color: var(--ink-muted); text-decoration: none; box-shadow: none; }
body.logged-in .llms-sd-layout-columns .llms-sd-nav .llms-sd-items .llms-sd-item a:hover { background: var(--surface-sunk); color: var(--ink); }
body.logged-in .llms-sd-layout-columns .llms-sd-nav .llms-sd-items .llms-sd-item.current a { background: var(--surface); border-color: var(--line); color: var(--ink); font-weight: 700; }
.llms-student-dashboard .llms-sd-section { background: var(--surface); border: var(--stroke-card) solid var(--line); border-radius: var(--radius-l); padding: 20px 24px; }
/* LifterLMS styles its buttons with stronger selectors (.llms-button-secondary.wp-element-button: grey;
   the dashboard's section footer: display inline-block, which left the label stuck to the top of a 44px
   box). Matched here with equal-or-stronger selectors, so every LifterLMS button looks like the theme's. */
body .llms-button-primary.wp-element-button, body .llms-button-action.wp-element-button { background: var(--site); color: var(--site-on); border: var(--stroke-control) solid var(--site); }
body .llms-button-secondary.wp-element-button { background: var(--surface); color: var(--ink); border: var(--stroke-control) solid var(--line-strong); }
body .llms-button-secondary.wp-element-button:hover { background: var(--surface-sunk); }
body .llms-student-dashboard .llms-sd-section .llms-sd-section-footer a.llms-button-secondary,
body .llms-student-dashboard a.llms-button-primary, body .llms-student-dashboard a.llms-button-secondary { display: inline-flex; align-items: center; min-height: 44px; }
.llms-student-dashboard .llms-sd-section-footer { margin-top: 12px; }
/* LifterLMS form fields are width:100% plus side padding, so the "Mark complete" row was 1px wider than a phone. */
.llms-form-field { box-sizing: border-box; max-width: 100%; }
/* The course page (UI review 2026-09-30): the price box in the site's own look, lessons folded by week. */
.llms-access-plan-title { background: var(--surface-sunk) !important; color: var(--ink) !important; font-weight: 700; border-radius: var(--radius-l) var(--radius-l) 0 0; }
.llms-access-plan-pricing.regular { display: none; }
.llms-access-plan-footer .llms-button-action { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 22px; }
/* BuddyPress's count badges in the directory tabs: the theme's own colours, readable in every theme (axe, 2026-10-09: 2.56:1 in dark). */
.buddypress-wrap .bp-navs li .count, #buddypress .count { background: var(--surface-sunk, #f3f4f6); color: var(--ink, #1d1f24); border-color: var(--line, #e7e7ec); }
/* BuddyPress's small grey text (last active, group details, dates) follows the page's own text colour, so it reads in the dark themes too. */
.buddypress-wrap .item-meta, .buddypress-wrap .last-activity, .buddypress-wrap .group-details, .buddypress-wrap .meta{ color: color-mix(in srgb, currentColor 75%, transparent) !important; }
/* BuddyPress's tab bars and group descriptions carry their own light backgrounds and grey text; the page's own ground and text instead (dark themes, axe 2026-10-09). */
.buddypress-wrap .bp-navs, .buddypress-wrap .bp-navs ul, .buddypress-wrap .bp-navs li, .buddypress-wrap .bp-navs li a, .buddypress-wrap .subnav-filters,
.buddypress-wrap .item-body, .buddypress-wrap nav, .buddypress-wrap .item-list-tabs, .buddypress-wrap .bp-subnavs, .buddypress-wrap .subnav, .buddypress-wrap .subnav li, .buddypress-wrap .subnav li a { background: transparent !important; }
.buddypress-wrap .bp-navs li a, .buddypress-wrap .group-desc, .buddypress-wrap .group-desc p { color: inherit !important; }
.buddypress-wrap .activity-list .activity-header, .buddypress-wrap .activity-list .activity-header > p, .buddypress-wrap .activity-list .time-since { color: inherit !important; }
@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) .buddypress-wrap .bp-group-short-description { background: var(--surface-sunk, #262628) !important; } }
html[data-theme="dark"] .buddypress-wrap .bp-group-short-description, html[data-theme="contrast"] .buddypress-wrap .bp-group-short-description { background: var(--surface-sunk, #262628) !important; }
/* Phone size (step 4, 2026-10-09). BuddyPress's messages bar (search, select all, filter) wraps instead of running
   off a narrow screen (WCAG 1.4.10); message subjects take the page's text colour, underlined (BuddyPress's blue was
   3.4:1, 1.4.3); names linked inside activity lines are underlined so they are told apart without colour (1.4.1). */
.buddypress-wrap #subsubnav > ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; max-width: 100%; }
.buddypress-wrap #subsubnav > ul > li { max-width: 100%; min-width: 0; }
.buddypress-wrap #user_messages_search_form { display: flex; max-width: 100%; }
.buddypress-wrap #user_messages_search { min-width: 0; flex: 1 1 auto; }
.buddypress-wrap .thread-content a.subject, .buddypress-wrap #message-threads a.subject { color: inherit !important; text-decoration: underline; text-underline-offset: 2px; }
.buddypress-wrap .activity-header a, .buddypress-wrap .activity-inner p a { text-decoration: underline !important; text-underline-offset: 2px; }
#buddypress.buddypress-wrap .item-meta, #buddypress.buddypress-wrap .last-activity, #buddypress.buddypress-wrap .activity-header .time-since,
#buddypress.buddypress-wrap .time-since, #buddypress.buddypress-wrap .bp-navs li a .count, #buddypress.buddypress-wrap span.count,
#buddypress.buddypress-wrap #item-header .item-meta, #buddypress.buddypress-wrap #item-header .activity { font-size: var(--t-cap); }
#buddypress.buddypress-wrap .bp-list .list-title, #buddypress.buddypress-wrap .bp-list .item-title, #buddypress.buddypress-wrap .list-title a,
#buddypress.buddypress-wrap .bp-list .item-title a { font-size: var(--t-lede); line-height: 1.3; }
#buddypress.buddypress-wrap #item-header h2.user-nicename, #buddypress.buddypress-wrap #item-header h2, #buddypress.buddypress-wrap #item-header-content h2.user-nicename { font-size: var(--t-sub); line-height: 1.2; }
#buddypress.buddypress-wrap .bp-navs li a, #buddypress.buddypress-wrap .bp-navs li span, #buddypress.buddypress-wrap .subnav li a { font-size: var(--t-ui); }
#buddypress.buddypress-wrap .activity-header, #buddypress.buddypress-wrap .activity-header p, #buddypress.buddypress-wrap .activity-inner,
#buddypress.buddypress-wrap .activity-inner p, #buddypress.buddypress-wrap .acomment-content, #buddypress.buddypress-wrap .profile-fields td,
#buddypress.buddypress-wrap .group-description, #buddypress.buddypress-wrap .item-desc { font-size: var(--t-read); line-height: 1.6; }
#buddypress.buddypress-wrap .group-desc, #buddypress.buddypress-wrap .group-desc p, #buddypress.buddypress-wrap .item .item-block .group-details { font-size: var(--t-ui); }
#buddypress.buddypress-wrap .activity-meta .button, #buddypress.buddypress-wrap .activity-meta a, #buddypress.buddypress-wrap .bp-generic-meta .button,
#buddypress.buddypress-wrap .generic-button a, #buddypress.buddypress-wrap .generic-button button, #buddypress.buddypress-wrap button,
#buddypress.buddypress-wrap input[type=submit] { font-size: var(--t-ui); }
html body #bbpress-forums, html body #bbpress-forums ul.bbp-forums, html body #bbpress-forums ul.bbp-topics, html body #bbpress-forums ul.bbp-replies,
html body #bbpress-forums div.bbp-topic-content, html body #bbpress-forums div.bbp-reply-content { font-size: var(--t-ui); }
html body #bbpress-forums .bbp-forum-title, html body #bbpress-forums .bbp-topic-permalink, html body #bbpress-forums li.bbp-forum-info .bbp-forum-title { font-size: var(--t-read); }
html body #bbpress-forums div.bbp-topic-content, html body #bbpress-forums div.bbp-reply-content, html body #bbpress-forums div.bbp-topic-content p,
html body #bbpress-forums div.bbp-reply-content p { font-size: var(--t-read); line-height: 1.6; }
html body #bbpress-forums .bbp-forum-content, html body #bbpress-forums .bbp-forum-info .bbp-forum-content, html body #bbpress-forums p.bbp-topic-meta, html body #bbpress-forums .bbp-forums-list, html body #bbpress-forums .bbp-forums-list a,
html body #bbpress-forums .bbp-topic-meta, html body #bbpress-forums .bbp-author-name, html body #bbpress-forums .bbp-author-role,
html body #bbpress-forums li.bbp-forum-freshness, html body #bbpress-forums li.bbp-forum-freshness a, html body #bbpress-forums li.bbp-topic-freshness,
html body #bbpress-forums li.bbp-topic-freshness a, html body #bbpress-forums .bbp-breadcrumb, html body #bbpress-forums .bbp-breadcrumb a,
html body #bbpress-forums .bbp-breadcrumb span, html body #bbpress-forums li.bbp-header, html body #bbpress-forums li.bbp-header li,
html body #bbpress-forums li.bbp-footer, html body #bbpress-forums .bbp-pagination, html body #bbpress-forums div.bbp-reply-header,
html body #bbpress-forums div.bbp-topic-header, html body #bbpress-forums .bbp-reply-post-date, html body #bbpress-forums .bbp-topic-post-date { font-size: var(--t-cap); }
.llms-extra .llms-lessons-count, .llms-extra span, .llms-lesson-preview .llms-lesson-counter, .llms-lesson-preview .llms-extra { font-size: var(--t-ui); }
#buddypress.buddypress-wrap .bp-list .item-meta, #buddypress.buddypress-wrap .bp-list .last-activity, #buddypress.buddypress-wrap .bp-list p.last-activity span,
#buddypress.buddypress-wrap .activity-header a.activity-time-since, #buddypress.buddypress-wrap .activity-header .time-since,
#buddypress.buddypress-wrap .activity-meta .comment-count { font-size: var(--t-cap); }
#buddypress.buddypress-wrap .activity-list .load-more a, #buddypress.buddypress-wrap .activity-list .load-newest a { font-size: var(--t-ui); }
html body #bbpress-forums .bbp-template-notice, html body #bbpress-forums .bbp-template-notice li, html body #bbpress-forums .bbp-template-notice li a,
html body #bbpress-forums .bbp-admin-links, html body #bbpress-forums .bbp-admin-links a, html body #bbpress-forums div.bbp-reply-author .bbp-author-role,
html body #bbpress-forums div.bbp-topic-author .bbp-author-role { font-size: var(--t-cap); }
html body #bbpress-forums li.bbp-header div, html body #bbpress-forums li.bbp-header .bbp-reply-content, html body #bbpress-forums li.bbp-header .bbp-topic-content,
html body #bbpress-forums li.bbp-footer div, html body #bbpress-forums li.bbp-footer .bbp-reply-content, html body #bbpress-forums li.bbp-footer .bbp-topic-content { font-size: var(--t-cap); font-weight: 600; }
/* A profile without a cover picture: BuddyPress's white name sat on a light grey (contrast about 1.6:1); the name in ink on the surface instead. */
#buddypress.buddypress-wrap #header-cover-image { background-color: var(--surface-sunk); }
#buddypress.buddypress-wrap #item-header-cover-image h2.user-nicename, #buddypress.buddypress-wrap #item-header-cover-image .user-nicename { color: var(--ink); text-shadow: none; }
/* LifterLMS's buttons, as the theme draws every button (kept here too, so they hold under any theme). */
.llms-button-primary, .llms-button-action, .llms-button-secondary {
	font: 600 var(--t-ui)/1 var(--font-sans); min-height: 44px; padding: 0 20px; border-radius: var(--radius-button);
	border: var(--stroke-control) solid var(--site); background: var(--site); color: var(--site-on); cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.llms-button-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.llms-button-primary:disabled { opacity: .5; cursor: not-allowed; }
/* Form fields and the forum's editor toolbar (type-audit.mjs, 2026-10-12): BuddyPress set 16px, bbPress's toolbar 11px.
   Controls are 15; on a touch screen form text stays at least 16px so Safari on iPhone does not zoom the page. */
#buddypress.buddypress-wrap input:not([type=checkbox]):not([type=radio]), #buddypress.buddypress-wrap select,
#buddypress.buddypress-wrap textarea, html body #bbpress-forums input:not([type=checkbox]):not([type=radio]),
html body #bbpress-forums select, html body #bbpress-forums textarea, html body #bbpress-forums .quicktags-toolbar input { font-size: var(--t-ui); }
@media (pointer: coarse) {
	#buddypress.buddypress-wrap input:not([type=checkbox]):not([type=radio]), #buddypress.buddypress-wrap select,
	#buddypress.buddypress-wrap textarea, html body #bbpress-forums input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]),
	html body #bbpress-forums select, html body #bbpress-forums textarea { font-size: max(16px, 1em); }
}
/* The page frame (2026-10-12, tokens.json layout): forums and member pages use the frame, a post's text keeps the
   reading column, and BuddyPress's wrapper stays inside the frame (its own side margins pushed it 14px past). */
html body #bbpress-forums div.bbp-topic-content > *, html body #bbpress-forums div.bbp-reply-content > *,
#buddypress.buddypress-wrap .activity-inner > *, #buddypress.buddypress-wrap .profile-fields { max-width: var(--read); }
#buddypress.buddypress-wrap { margin-inline: 0; }
/* BuddyPress pulls its sort boxes 25px to the right (margin-right: -25px) to hide their own arrow: they ended 4px past the frame. */
#buddypress.buddypress-wrap .select-wrap select { margin-right: 0; }
/* A profile's avatar box counted its padding outside its width (content-box) and ended 12px past a phone's frame. */
#buddypress.buddypress-wrap #item-header-avatar { box-sizing: border-box; }
/* BuddyPress lifts the content width on its pages (body.buddypress .entry-content { max-width: none }): the frame again. */
body.buddypress main .entry-content:not(.alignwide):not(.alignfull) { max-width: var(--frame); }
