/*
Theme Name: Winrock Business School
Theme URI: https://winrockbusinessschool.com
Author: Winrock Business School
Description: Official theme for Winrock Business School (WBS), Accra, Ghana. Navy and gold brand styling, built around three pillars: Business Education, Corporate Solutions and the Centre for Entrepreneurship Development. On activation it creates the full site (pages, content, diagrams, menus and homepage) ready to edit.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wbs
Tags: education, business, one-column, custom-logo, custom-menu, translation-ready
*/

/* Layout: white header with navy utility bar, full-width navy and light bands per section, centred 1160px content column. Colours come from the WBS crest. */
:root {
  --wbs-navy: #052B4F;
  --wbs-navy-2: #0C3D6B;
  --wbs-navy-deep: #031D36;
  --wbs-gold: #D9A544;
  --wbs-gold-dark: #8E6514;
  --wbs-gold-tint: #FBF2DF;
  --wbs-white: #FFFFFF;
  --wbs-bg-alt: #F3F6FA;
  --wbs-ink: #0F1E33;
  --wbs-muted: #52627A;
  --wbs-line: #D5DCE6;
  --wbs-navy-tint: #E7EDF5;
  --wbs-on-navy-muted: #C9D6E6;
  --wbs-serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --wbs-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wbs-radius: 10px;
  --wbs-wrap: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--wbs-white);
  color: var(--wbs-ink);
  font-family: var(--wbs-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--wbs-navy-2); text-underline-offset: 3px; }
a:hover { color: var(--wbs-gold-dark); }
:focus-visible { outline: 3px solid var(--wbs-gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--wbs-serif); font-weight: 700; line-height: 1.2; color: var(--wbs-ink); text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(28px, 3.6vw, 38px); }
h3 { font-size: 22px; }
h4 { font-size: 19px; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--wbs-gold); color: var(--wbs-ink); padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip-link:focus { top: 12px; }

.wbs-wrap { max-width: var(--wbs-wrap); margin: 0 auto; padding-inline: 24px; }
@media (max-width: 600px) { .wbs-wrap { padding-inline: 18px; } body { font-size: 16px; } }

/* ---------- Buttons ---------- */
.btn, .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--wbs-sans); font-size: 15px; font-weight: 700; letter-spacing: .02em;
  padding: 12px 22px; border-radius: 6px; text-decoration: none; cursor: pointer;
  border: 2px solid var(--wbs-navy-2); color: var(--wbs-navy-2); background: transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--wbs-navy-2); color: var(--wbs-white); }
.btn-gold, .wp-block-button__link { background: var(--wbs-gold); border-color: var(--wbs-gold); color: #1B1405; }
.btn-gold:hover, .wp-block-button__link:hover { background: #C8932F; border-color: #C8932F; color: #1B1405; }
.btn-light { border-color: rgba(255,255,255,.7); color: var(--wbs-white); }
.btn-light:hover { background: var(--wbs-white); color: var(--wbs-navy); border-color: var(--wbs-white); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.text-link { font-weight: 700; text-decoration: none; color: var(--wbs-navy-2); }
.text-link:hover { color: var(--wbs-gold-dark); }

/* ---------- Header ---------- */
.utility-bar { background: var(--wbs-navy); color: var(--wbs-on-navy-muted); font-size: 14px; }
.utility-bar .wbs-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.utility-bar a { color: var(--wbs-white); text-decoration: none; }
.utility-bar a:hover { color: var(--wbs-gold); }
.utility-bar .tagline { color: var(--wbs-gold); font-family: var(--wbs-serif); font-style: italic; }
.utility-bar .contact-bits { display: flex; gap: 18px; flex-wrap: wrap; }

.site-header { background: var(--wbs-white); border-bottom: 3px solid var(--wbs-gold); position: sticky; top: 0; z-index: 100; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; position: relative; } }
.site-header .header-inner { max-width: 1320px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--wbs-navy); flex: none; }
.brand img, .brand .brand-crest { width: 46px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--wbs-serif); font-weight: 700; font-size: 22px; letter-spacing: .06em; text-transform: uppercase; color: var(--wbs-navy); }
.brand-sub { font-family: var(--wbs-serif); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--wbs-navy); }

.primary-nav { display: flex; align-items: center; gap: 12px; min-width: 0; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 2px; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: block; padding: 10px 7px; font-size: 14.5px; font-weight: 600; color: var(--wbs-ink); text-decoration: none; border-radius: 4px; white-space: nowrap; }
.primary-nav .menu a:hover, .primary-nav .menu .current-menu-item > a, .primary-nav .menu .current_page_item > a, .primary-nav .menu .current-menu-ancestor > a { color: var(--wbs-navy-2); box-shadow: inset 0 -3px 0 var(--wbs-gold); }
.primary-nav .sub-menu { position: absolute; left: 0; top: 100%; min-width: 240px; background: var(--wbs-white); border: 1px solid var(--wbs-line); border-top: 3px solid var(--wbs-gold); border-radius: 0 0 8px 8px; padding: 8px; display: none; box-shadow: 0 12px 28px rgba(5,43,79,.12); }
.primary-nav .menu li:hover > .sub-menu, .primary-nav .menu li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: 8px 12px; }
.header-cta { padding: 10px 16px; white-space: nowrap; }
.nav-toggle { display: none; background: var(--wbs-navy); color: var(--wbs-white); border: 0; border-radius: 6px; padding: 10px 16px; font: 700 15px var(--wbs-sans); cursor: pointer; }

@media (max-width: 1260px) {
  .nav-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--wbs-white); border-bottom: 3px solid var(--wbs-gold); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; box-shadow: 0 16px 32px rgba(5,43,79,.12); max-height: calc(100vh - 120px); overflow-y: auto; }
  .primary-nav.is-open { display: flex; }
  .primary-nav .menu { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .primary-nav .menu a { padding: 12px 4px; border-bottom: 1px solid var(--wbs-line); border-radius: 0; }
  .primary-nav .menu a:hover, .primary-nav .menu .current-menu-item > a { box-shadow: inset 4px 0 0 var(--wbs-gold); padding-left: 12px; }
  .primary-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .header-cta { margin-top: 16px; justify-content: center; }
  .site-header { position: relative; }
}

/* ---------- Hero ---------- */
.wbs-hero { background: var(--wbs-navy); color: var(--wbs-white); border-bottom: 5px solid var(--wbs-gold); padding-block: 72px 80px; position: relative; overflow: hidden; }
.wbs-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(217,165,68,.08); pointer-events: none; }
.wbs-hero .wbs-wrap { position: relative; z-index: 1; }
.wbs-hero h1 { color: var(--wbs-white); max-width: 18ch; }
.wbs-hero .hero-tag { font-family: var(--wbs-serif); font-style: italic; font-size: clamp(20px, 2.4vw, 26px); color: var(--wbs-gold); margin-bottom: 18px; }
.wbs-hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--wbs-white); max-width: 60ch; }
.wbs-hero p { color: var(--wbs-on-navy-muted); max-width: 62ch; }
.wbs-hero .eyebrow { color: var(--wbs-gold); }
.wbs-hero.compact { padding-block: 56px 60px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .wbs-hero { padding-block: 52px 60px; } }
.hero-audiences { display: flex; flex-direction: column; gap: 12px; }
.hero-audience { display: block; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-left: 4px solid var(--wbs-gold); border-radius: 8px; padding: 16px 20px; color: var(--wbs-white); text-decoration: none; transition: background .15s; }
.hero-audience:hover { background: rgba(255,255,255,.12); color: var(--wbs-white); }
.hero-audience strong { display: block; font-family: var(--wbs-serif); font-size: 19px; }
.hero-audience span { display: block; font-size: 15px; color: var(--wbs-on-navy-muted); }

/* ---------- Sections ---------- */
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--wbs-gold-dark); margin-bottom: 10px; }
.wbs-section { padding-block: 80px; }
.wbs-section.alt { background: var(--wbs-bg-alt); }
.wbs-section.tight { padding-block: 56px; }
.wbs-section + .wbs-section:not(.alt):not(.navy) { padding-top: 24px; }
.wbs-section.alt + .wbs-section, .wbs-section.navy + .wbs-section { padding-top: 80px; }
@media (max-width: 700px) { .wbs-section { padding-block: 56px; } .wbs-section.alt + .wbs-section, .wbs-section.navy + .wbs-section { padding-top: 56px; } }
.sec-head { max-width: 760px; margin-bottom: 36px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { font-size: 18px; color: var(--wbs-muted); }
.sec-head .tag { font-family: var(--wbs-serif); font-style: italic; font-size: 20px; color: var(--wbs-navy-2); }
.prose { max-width: 68ch; }
.prose p { color: var(--wbs-ink); }
.muted { color: var(--wbs-muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.block-gap { margin-top: 48px; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 360px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--wbs-white); border: 1px solid var(--wbs-line); border-radius: var(--wbs-radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.alt .card { border-color: #DCE3EC; }
.card h3, .card h4 { margin: 0; }
.card p { margin: 0; color: var(--wbs-muted); font-size: 16px; }
.card .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--wbs-gold-dark); }
.card .text-link { margin-top: auto; padding-top: 6px; }
.card.pillar { border-top: 4px solid var(--wbs-gold); padding-top: 28px; }
.card.pillar .num { font-family: var(--wbs-serif); font-size: 15px; color: var(--wbs-gold-dark); font-weight: 700; }
.card.pillar .tagline { font-family: var(--wbs-serif); font-style: italic; color: var(--wbs-navy-2); }
.card.statement { background: var(--wbs-navy); border-color: var(--wbs-navy); }
.card.statement .k { color: var(--wbs-gold); }
.card.statement p { color: var(--wbs-white); font-family: var(--wbs-serif); font-size: 19px; line-height: 1.5; }
.card.icon-card::before { content: ""; width: 34px; height: 4px; background: var(--wbs-gold); border-radius: 2px; }

/* ---------- Chips & lists ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: 15px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--wbs-navy-tint); color: var(--wbs-navy); }
.chips.gold li { background: var(--wbs-gold-tint); color: #5C410A; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--wbs-gold); border-bottom: 3px solid var(--wbs-gold); transform: rotate(-45deg); }
.check-list.cols { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: 32px; }

/* ---------- Tables ---------- */
.tbl { overflow-x: auto; border: 1px solid var(--wbs-line); border-radius: var(--wbs-radius); background: var(--wbs-white); }
.tbl table { border-collapse: collapse; width: 100%; font-size: 16px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 14px 18px; border-bottom: 1px solid var(--wbs-line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--wbs-navy); background: var(--wbs-navy-tint); }
.tbl td:first-child { font-weight: 700; }

/* ---------- Diagrams ---------- */
.wbs-figure { margin: 0; display: flex; flex-direction: column; gap: 12px; max-width: 900px; }
.wbs-figure.center { margin-inline: auto; }
.wbs-figure .dia { overflow-x: auto; background: var(--wbs-white); border: 1px solid var(--wbs-line); border-radius: var(--wbs-radius); padding: 16px; }
.wbs-figure svg { display: block; width: 100%; min-width: 620px; height: auto; }
.wbs-figure figcaption { font-size: 15px; color: var(--wbs-muted); max-width: 70ch; }
.wbs-figure.center figcaption { text-align: center; margin-inline: auto; }
.d-title { font-family: var(--wbs-serif); font-weight: 700; font-size: 17px; fill: var(--wbs-ink); }
.d-navy { fill: var(--wbs-navy); }
.d-on { fill: var(--wbs-white); }
.d-gold { fill: var(--wbs-gold); }
.d-gold-text { fill: var(--wbs-gold); }
.d-box { fill: var(--wbs-white); stroke: var(--wbs-line); stroke-width: 1.5; }
.d-box-b { fill: var(--wbs-navy-tint); stroke: var(--wbs-navy-2); stroke-width: 1.5; }
.d-box-g { fill: var(--wbs-gold-tint); stroke: var(--wbs-gold); stroke-width: 2; }
.d-band { fill: var(--wbs-navy-tint); stroke: var(--wbs-line); stroke-width: 1.25; }
.d-name { font-family: var(--wbs-serif); font-weight: 700; font-size: 16px; fill: var(--wbs-ink); }
.d-txt { font-family: var(--wbs-sans); font-size: 13.5px; fill: var(--wbs-muted); }
.d-ink { fill: var(--wbs-ink); }
.d-tag { font-family: var(--wbs-sans); font-weight: 700; font-size: 12.5px; fill: var(--wbs-gold-dark); letter-spacing: .04em; }
.d-who { font-family: var(--wbs-sans); font-weight: 700; font-size: 14px; fill: var(--wbs-ink); }
.d-num { font-family: var(--wbs-sans); font-weight: 700; font-size: 12px; fill: var(--wbs-gold-dark); letter-spacing: .1em; }
.d-line { stroke: var(--wbs-muted); stroke-width: 1.5; fill: none; }
.d-rule { stroke: var(--wbs-line); stroke-width: 1; }
.d-arrow { fill: var(--wbs-muted); }

/* ---------- CTA bands ---------- */
.wbs-section.navy { background: var(--wbs-navy); color: var(--wbs-white); }
.navy h2, .navy h3, .navy h4 { color: var(--wbs-white); }
.navy .eyebrow { color: var(--wbs-gold); }
.navy .sec-head p { color: var(--wbs-on-navy-muted); }
.cta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.cta-card { border: 1px solid rgba(255,255,255,.18); border-top: 4px solid var(--wbs-gold); border-radius: var(--wbs-radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; background: rgba(255,255,255,.04); }
.cta-card h3 { font-size: 21px; margin: 0; }
.cta-card p { color: var(--wbs-on-navy-muted); margin: 0; }
.cta-card .btn { margin-top: auto; align-self: flex-start; }
.cta-card .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--wbs-gold); }
.cta-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-strip h2 { margin: 0; }
.cta-strip p { margin: 6px 0 0; color: var(--wbs-on-navy-muted); }

/* ---------- Posts (Insights) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.post-card { background: var(--wbs-white); border: 1px solid var(--wbs-line); border-radius: var(--wbs-radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/9; background: var(--wbs-navy-tint); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h3 { font-size: 20px; margin: 0; }
.post-card h3 a { color: var(--wbs-ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--wbs-navy-2); }
.post-card .meta { font-size: 13px; color: var(--wbs-muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.post-card p { color: var(--wbs-muted); font-size: 16px; margin: 0; }
.empty-note { background: var(--wbs-bg-alt); border: 1px dashed var(--wbs-line); border-radius: var(--wbs-radius); padding: 24px; color: var(--wbs-muted); }

/* ---------- Default page / post content ---------- */
.page-head { background: var(--wbs-navy); border-bottom: 5px solid var(--wbs-gold); padding-block: 56px; }
.page-head h1 { color: var(--wbs-white); margin: 0; }
.page-head .meta { color: var(--wbs-gold); margin-top: 10px; font-size: 15px; }
.entry-default { padding-block: 56px 80px; }
.entry-default > * { max-width: 760px; }
.entry-default > .alignwide { max-width: var(--wbs-wrap); }
.entry-default > .alignfull { max-width: none; }
.entry-default blockquote { border-left: 4px solid var(--wbs-gold); margin: 1.5em 0; padding: 4px 0 4px 20px; font-family: var(--wbs-serif); font-size: 20px; color: var(--wbs-navy); }
.entry-default ul li::marker, .entry-default ol li::marker { color: var(--wbs-gold-dark); }
.pagination { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--wbs-line); border-radius: 6px; text-decoration: none; }
.pagination .current { background: var(--wbs-navy); color: var(--wbs-white); border-color: var(--wbs-navy); }

/* ---------- Contact & form ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--wbs-line); }
.contact-list .label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--wbs-gold-dark); padding-top: 3px; }
.contact-list .value { overflow-wrap: anywhere; }
.wbs-form { display: grid; gap: 16px; background: var(--wbs-white); border: 1px solid var(--wbs-line); border-top: 4px solid var(--wbs-gold); border-radius: var(--wbs-radius); padding: 28px; }
.wbs-form .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.wbs-form label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.wbs-form input, .wbs-form select, .wbs-form textarea { width: 100%; font: 16px var(--wbs-sans); color: var(--wbs-ink); padding: 11px 12px; border: 1.5px solid var(--wbs-line); border-radius: 6px; background: var(--wbs-white); }
.wbs-form input:focus, .wbs-form select:focus, .wbs-form textarea:focus { outline: none; border-color: var(--wbs-navy-2); box-shadow: 0 0 0 3px rgba(12,61,107,.15); }
.wbs-form textarea { min-height: 140px; resize: vertical; }
.wbs-form .hp { position: absolute; left: -9999px; }
.wbs-form .btn { justify-self: start; border: 0; }
.form-notice { padding: 14px 18px; border-radius: 8px; font-weight: 600; }
.form-notice.ok { background: #E6F4EA; color: #1D5E33; }
.form-notice.err { background: #FDECEA; color: #8A1F17; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wbs-navy-deep); color: var(--wbs-on-navy-muted); font-size: 15px; border-top: 5px solid var(--wbs-gold); }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 48px; }
@media (max-width: 900px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .crest-tile { width: 64px; background: var(--wbs-white); border-radius: 8px; padding: 6px; }
.footer-brand .name { font-family: var(--wbs-serif); font-size: 22px; color: var(--wbs-white); font-weight: 700; line-height: 1.2; }
.footer-brand .motto { font-family: var(--wbs-serif); font-style: italic; color: var(--wbs-gold); }
.site-footer h2 { font-family: var(--wbs-sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--wbs-gold); margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--wbs-white); text-decoration: none; }
.site-footer a:hover { color: var(--wbs-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 20px; font-size: 14px; }
.footer-bottom .wbs-wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- WordPress core alignment ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption-text, .wp-element-caption { font-size: 14px; color: var(--wbs-muted); }
.sticky, .gallery-caption, .bypostauthor { }

/* ---------- Course catalogue (Short Courses, Certificates, Executive Education) ---------- */
.course-nav { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.course-nav a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--wbs-line); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--wbs-ink); background: var(--wbs-white); }
.course-nav a:hover, .course-nav a[aria-current="page"] { border-color: var(--wbs-gold); background: var(--wbs-gold-tint); color: var(--wbs-ink); }
.course-list { display: grid; gap: 22px; }
.course { background: var(--wbs-white); border: 1px solid var(--wbs-line); border-left: 5px solid var(--wbs-navy); border-radius: var(--wbs-radius); padding: 28px; display: grid; gap: 14px; scroll-margin-top: 110px; }
.course:target { border-left-color: var(--wbs-gold); box-shadow: 0 0 0 3px rgba(217,165,68,.25); }
.course-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.course-head h3 { margin: 0; font-size: 23px; max-width: 34ch; }
.course .type { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--wbs-gold-dark); margin-bottom: 6px; }
.course-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.course-facts li { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 6px; background: var(--wbs-navy-tint); color: var(--wbs-navy); white-space: nowrap; }
.course-facts li.fee { background: var(--wbs-gold-tint); color: #5C410A; }
.course > p { margin: 0; max-width: 75ch; }
.course details { border-top: 1px solid var(--wbs-line); padding-top: 12px; }
.course summary { cursor: pointer; font-weight: 700; color: var(--wbs-navy-2); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.course summary::-webkit-details-marker { display: none; }
.course summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--wbs-navy); color: var(--wbs-white); font-size: 15px; line-height: 1; }
.course details[open] summary::before { content: "–"; }
.course-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 36px; padding-top: 18px; }
.course-detail h4 { font-family: var(--wbs-sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--wbs-gold-dark); margin: 0 0 10px; }
.course-detail ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 16px; }
.course-detail ul li::marker { color: var(--wbs-gold); }
.course-detail p { font-size: 16px; margin: 0; }
.course .btns { margin-top: 0; }
.course-note { font-size: 15px; color: var(--wbs-muted); max-width: 75ch; }
@media (max-width: 600px) { .course { padding: 22px; } .course-head h3 { font-size: 20px; } }

/* ---------- Photos ---------- */
/* Banner photo: set with style="--hero-img:url(...)" or the page's Featured Image. Navy fades over the left so text stays readable. */
.wbs-hero.has-photo {
  background-color: var(--wbs-navy);
  background-image:
    linear-gradient(90deg, rgba(5,43,79,.96) 0%, rgba(5,43,79,.9) 36%, rgba(5,43,79,.55) 62%, rgba(5,43,79,.12) 100%),
    var(--hero-img, none);
  background-size: cover;
  background-position: var(--hero-pos, right 30%);
}
.wbs-hero.has-photo::after { display: none; }
.wbs-hero.has-photo.compact { padding-block: 84px 92px; }
@media (max-width: 900px) {
  .wbs-hero.has-photo { background-image: linear-gradient(180deg, rgba(5,43,79,.7) 0%, rgba(5,43,79,.9) 55%, rgba(5,43,79,.96) 100%), var(--hero-img, none); background-position: var(--hero-pos, center 30%); }
}
.photo { margin: 0; position: relative; }
.photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--wbs-radius); }
.photo.tall img { aspect-ratio: 4 / 5; }
.photo.wide img { aspect-ratio: 16 / 9; }
.photo.framed::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 3px solid var(--wbs-gold); border-radius: var(--wbs-radius); z-index: -1; }
.photo figcaption { font-size: 14px; color: var(--wbs-muted); margin-top: 10px; }
@media (max-width: 600px) { .photo.framed::before { inset: 10px -10px -10px 10px; } }
.split.media { align-items: center; }
.split.media .photo { isolation: isolate; }
.card.has-img { padding: 0; overflow: hidden; }
.card.has-img .card-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card.has-img .card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card.pillar.has-img { border-top: 0; padding-top: 0; }
.card.pillar.has-img .card-body { border-top: 4px solid var(--wbs-gold); }
.hero-photo-card { border-radius: var(--wbs-radius); overflow: hidden; border: 1px solid rgba(255,255,255,.18); }
.hero-photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-band { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; }
.photo-band img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; border-radius: var(--wbs-radius); display: block; }
@media (max-width: 700px) { .photo-band { grid-template-columns: 1fr 1fr; } .photo-band img:first-child { grid-column: 1 / -1; } }
.grid-2up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .grid-2up { grid-template-columns: 1fr; } }

/* =====================================================================
   WBS Community (BuddyPress Nouveau)
   ===================================================================== */
/* Top bar member links */
.utility-bar .wbs-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--wbs-gold); color: #1B1405; font-size: 12px; font-weight: 700; }

/* Community landing page */
.wbs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wbs-stats div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-top: 4px solid var(--wbs-gold); border-radius: 8px; padding: 18px 14px; text-align: center; }
.wbs-stats strong { display: block; font-family: var(--wbs-serif); font-size: clamp(28px, 4vw, 40px); color: var(--wbs-white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.wbs-stats span { font-size: 14px; color: var(--wbs-on-navy-muted); }
.wbs-group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.wbs-group-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--wbs-white); border: 1px solid var(--wbs-line); border-left: 4px solid var(--wbs-navy); border-radius: var(--wbs-radius); text-decoration: none; color: var(--wbs-ink); transition: border-color .15s, box-shadow .15s; }
.wbs-group-card:hover { border-left-color: var(--wbs-gold); box-shadow: 0 8px 22px rgba(5,43,79,.1); color: var(--wbs-ink); }
.wbs-group-card strong { font-family: var(--wbs-serif); font-size: 18px; }
.wbs-group-card .desc { color: var(--wbs-muted); font-size: 15px; }
.wbs-group-card .meta { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--wbs-gold-dark); letter-spacing: .04em; }
.chips a { color: inherit; text-decoration: none; }
.chips li:has(a):hover { background: var(--wbs-gold-tint); }
.steps-list { counter-reset: step; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; }
.steps-list li { counter-increment: step; position: relative; padding-left: 52px; }
.steps-list li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; background: var(--wbs-navy); color: var(--wbs-gold); font-family: var(--wbs-serif); font-weight: 700; display: grid; place-items: center; }
@media (max-width: 600px) { .wbs-stats strong { font-size: 26px; } }

/* Page frame for BuddyPress screens */
body.buddypress .entry-default { padding-block: 40px 72px; }
body.buddypress .entry-default > * { max-width: none; }
#buddypress.buddypress-wrap { font-family: var(--wbs-sans); color: var(--wbs-ink); font-size: 16px; }
#buddypress a { color: var(--wbs-navy-2); }
#buddypress a:hover { color: var(--wbs-gold-dark); }
#buddypress h2, #buddypress h3, #buddypress .screen-heading { font-family: var(--wbs-serif); color: var(--wbs-ink); }
#buddypress .screen-heading { font-size: 24px; margin: 24px 0 16px; }

/* Buttons */
#buddypress .generic-button a, #buddypress .generic-button button, #buddypress button, #buddypress input[type="submit"], #buddypress input[type="button"], #buddypress a.button, #buddypress .button,
.buddypress-wrap .bp-list .action .generic-button a, .buddypress-wrap .bp-list .action .generic-button button {
  font-family: var(--wbs-sans); font-size: 14px; font-weight: 700; line-height: 1.2; padding: 9px 16px; border-radius: 6px;
  border: 2px solid var(--wbs-navy-2); background: var(--wbs-white); color: var(--wbs-navy-2); box-shadow: none; text-decoration: none; cursor: pointer;
}
#buddypress .generic-button a:hover, #buddypress .generic-button button:hover, #buddypress button:hover, #buddypress .button:hover { background: var(--wbs-navy-2); color: var(--wbs-white); }
#buddypress input[type="submit"], #buddypress .standard-form #submit, #buddypress #aw-whats-new-submit, #buddypress .submit input[type="submit"] { background: var(--wbs-gold); border-color: var(--wbs-gold); color: #1B1405; }
#buddypress input[type="submit"]:hover { background: #C8932F; border-color: #C8932F; color: #1B1405; }
#buddypress .bp-tooltip:after { font-family: var(--wbs-sans); }

/* Forms */
#buddypress input[type="text"], #buddypress input[type="email"], #buddypress input[type="password"], #buddypress input[type="url"], #buddypress input[type="search"], #buddypress input[type="tel"], #buddypress textarea, #buddypress select {
  font: 16px var(--wbs-sans); color: var(--wbs-ink); background: var(--wbs-white); border: 1.5px solid var(--wbs-line); border-radius: 6px; padding: 10px 12px; box-shadow: none; max-width: 100%;
}
#buddypress input:focus, #buddypress textarea:focus, #buddypress select:focus { outline: none; border-color: var(--wbs-navy-2); box-shadow: 0 0 0 3px rgba(12,61,107,.15); }
#buddypress .standard-form label, #buddypress .standard-form legend, #buddypress .standard-form span.label { font-weight: 700; font-size: 15px; color: var(--wbs-ink); }
#buddypress .standard-form p.description, #buddypress .field-visibility-settings-notoggle, #buddypress .field-visibility-settings-toggle { font-size: 13px; color: var(--wbs-muted); }
#buddypress .standard-form .radio label, #buddypress .standard-form .checkbox label, #buddypress .input-options label { font-weight: 400; }
#buddypress .caps-icon svg, #buddypress .caps-warning svg, .caps-icon svg { width: 16px; height: 16px; }
#buddypress .caps-warning { font-size: 13px; color: var(--wbs-muted); display: flex; align-items: center; gap: 6px; }
#buddypress #pass-strength-result { border-radius: 6px; font-size: 13px; }

/* Sign-up / request membership */
#buddypress #signup-form, #buddypress .register-page { max-width: 980px; }
#buddypress .register-section { background: var(--wbs-white); border: 1px solid var(--wbs-line); border-top: 4px solid var(--wbs-gold); border-radius: var(--wbs-radius); padding: 24px 26px; }
#buddypress .register-section h2 { font-size: 21px; margin-top: 0; }
#buddypress .layout-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; }
#buddypress .layout-wrap > * { float: none; width: auto; margin: 0; }
@media (max-width: 800px) { #buddypress .layout-wrap { grid-template-columns: 1fr; } }

/* Notices */
#buddypress .bp-feedback { border: 0; border-left: 4px solid var(--wbs-gold); background: var(--wbs-gold-tint); color: var(--wbs-ink); border-radius: 6px; box-shadow: none; font-size: 15px; }
#buddypress .bp-feedback .bp-icon { background: var(--wbs-navy); border-radius: 6px 0 0 6px; }

/* Navigation tabs */
#buddypress .bp-navs { background: transparent; border: 0; }
#buddypress .bp-navs ul { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
#buddypress .bp-navs ul li { float: none; margin: 0; }
#buddypress .bp-navs ul li a, #buddypress .bp-navs ul li span { border: 1.5px solid var(--wbs-line); border-radius: 999px; padding: 7px 14px; background: var(--wbs-white); color: var(--wbs-ink); font-weight: 600; font-size: 14px; text-decoration: none; }
#buddypress .bp-navs ul li a:hover { border-color: var(--wbs-gold); background: var(--wbs-gold-tint); color: var(--wbs-ink); }
#buddypress .bp-navs ul li.selected a, #buddypress .bp-navs ul li.current a { background: var(--wbs-navy); border-color: var(--wbs-navy); color: var(--wbs-white); }
#buddypress .bp-navs ul li .count { background: var(--wbs-gold); color: #1B1405; border: 0; font-size: 12px; padding: 1px 7px; border-radius: 9px; margin-left: 4px; }
#buddypress .bp-navs ul li.selected .count, #buddypress .bp-navs ul li.current .count { background: var(--wbs-gold); color: #1B1405; }
#buddypress .bp-subnavs, #buddypress .bp-navs.bp-subnavs { margin-top: 10px; }
#buddypress .bp-subnavs ul li a { font-size: 13px; padding: 5px 12px; }
#buddypress .main-navs.dir-navs { margin-bottom: 18px; }

/* Directory search and filters */
#buddypress .subnav-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 0 0 20px; }
#buddypress .subnav-filters > * { float: none; margin: 0; }
#buddypress .dir-search form, #buddypress .bp-dir-search-form { display: flex; align-items: stretch; border: 1.5px solid var(--wbs-line); border-radius: 6px; background: var(--wbs-white); overflow: hidden; }
#buddypress .dir-search input[type="search"] { border: 0; min-width: 240px; }
#buddypress .dir-search button { border: 0; border-left: 1.5px solid var(--wbs-line); border-radius: 0; background: var(--wbs-navy-tint); color: var(--wbs-navy); padding: 0 14px; }
#buddypress .select-wrap { border: 1.5px solid var(--wbs-line); border-radius: 6px; background: var(--wbs-white); }
#buddypress .select-wrap select { border: 0; }
#buddypress .bp-pagination { color: var(--wbs-muted); font-size: 14px; }

/* Member and group cards (grid layout) */
#buddypress .bp-list { border: 0; }
#buddypress .bp-list.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 0; }
#buddypress .bp-list.grid > li { width: auto; float: none; margin: 0; padding: 0; border: 0; }
#buddypress .bp-list.grid > li .list-wrap { height: 100%; background: var(--wbs-white); border: 1px solid var(--wbs-line); border-top: 4px solid var(--wbs-gold); border-radius: var(--wbs-radius); padding: 22px 18px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
#buddypress .bp-list.grid > li:hover .list-wrap { box-shadow: 0 8px 22px rgba(5,43,79,.1); }
#buddypress .bp-list.grid .item-avatar { float: none; width: auto; margin: 0 0 6px; }
#buddypress .bp-list.grid .item-avatar img.avatar { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--wbs-navy-tint); }
#buddypress .bp-list.grid .item { float: none; width: auto; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
#buddypress .bp-list .item-title, #buddypress .bp-list .list-title { font-family: var(--wbs-serif); font-size: 19px; line-height: 1.25; margin: 0; }
#buddypress .bp-list .item-title a, #buddypress .bp-list .list-title a { color: var(--wbs-ink); text-decoration: none; }
#buddypress .bp-list .item-meta, #buddypress .bp-list .last-activity, #buddypress .bp-list .meta { font-size: 13px; color: var(--wbs-muted); }
#buddypress .bp-list .item-desc, #buddypress .bp-list .group-desc { font-size: 14px; color: var(--wbs-muted); margin: 4px 0; }
#buddypress .bp-list.grid .action, #buddypress .bp-list.grid .members-action-buttons { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
#buddypress .bp-list.grid .action .generic-button { float: none; margin: 0; }
.wbs-member-biz { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 4px; }
.wbs-member-biz .biz-name { font-size: 15px; color: var(--wbs-navy); }
.wbs-member-biz .biz-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.wbs-member-biz .biz-tags span { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--wbs-navy-tint); color: var(--wbs-navy); }
.wbs-member-biz .biz-tags span:first-child { background: var(--wbs-gold-tint); color: #5C410A; }

/* Single member / group header */
#buddypress #item-header, #buddypress #cover-image-container { margin-bottom: 18px; }
#buddypress #header-cover-image { background-color: var(--wbs-navy); background-image: linear-gradient(120deg, var(--wbs-navy) 0%, var(--wbs-navy-2) 70%, #1a4f80 100%); height: 200px; border-bottom: 4px solid var(--wbs-gold); border-radius: var(--wbs-radius) var(--wbs-radius) 0 0; }
#buddypress #item-header-cover-image { padding-top: 0; }
#buddypress #item-header-avatar img.avatar, #buddypress #item-header-cover-image #item-header-avatar img { border: 4px solid var(--wbs-white); border-radius: 50%; box-shadow: 0 6px 18px rgba(5,43,79,.18); background: var(--wbs-white); }
#buddypress #item-header-content, #buddypress #item-header-cover-image #item-header-content { color: var(--wbs-ink); }
#buddypress #item-header .user-nicename, #buddypress #item-header-cover-image h2.user-nicename { color: var(--wbs-muted); font-family: var(--wbs-sans); font-size: 15px; text-shadow: none; margin-top: 8px; }
#buddypress #item-header .activity, #buddypress #item-header .item-meta { color: var(--wbs-muted); font-size: 13px; }
#buddypress .group-status { font-weight: 700; color: var(--wbs-navy); }
#buddypress #item-header .group-item-actions h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--wbs-gold-dark); font-family: var(--wbs-sans); }
#buddypress .desc-wrap { background: var(--wbs-bg-alt); border: 0; border-left: 4px solid var(--wbs-gold); border-radius: 6px; }
#buddypress .desc-wrap .group-description { background: transparent; box-shadow: none; }

/* Profile fields */
#buddypress .profile .bp-widget h3, #buddypress .profile h2.screen-heading { font-size: 20px; }
#buddypress .profile table.profile-fields { border-collapse: collapse; width: 100%; background: var(--wbs-white); border: 1px solid var(--wbs-line); border-radius: var(--wbs-radius); overflow: hidden; }
#buddypress .profile table.profile-fields tr td { border-bottom: 1px solid var(--wbs-line); padding: 12px 16px; background: transparent; }
#buddypress .profile table.profile-fields tr:last-child td { border-bottom: 0; }
#buddypress .profile table.profile-fields td.label { width: 32%; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--wbs-gold-dark); border-right: 0; }
#buddypress .profile table.profile-fields .data p { margin: 0; }

/* Activity */
#buddypress #whats-new-form { background: var(--wbs-white); border: 1px solid var(--wbs-line); border-top: 4px solid var(--wbs-gold); border-radius: var(--wbs-radius); padding: 18px; box-shadow: none; }
#buddypress #whats-new-avatar img.avatar { border-radius: 50%; }
#buddypress .activity-list.bp-list { background: transparent; padding: 0; border: 0; }
#buddypress .activity-list .activity-item { background: var(--wbs-white); border: 1px solid var(--wbs-line); border-radius: var(--wbs-radius); padding: 18px; margin: 0 0 14px; box-shadow: none; }
#buddypress .activity-list .activity-item .activity-avatar img.avatar, #buddypress .activity-list .item-avatar img.avatar { border-radius: 50%; }
#buddypress .activity-list .activity-content .activity-header { font-size: 14px; color: var(--wbs-muted); }
#buddypress .activity-list .activity-content .activity-inner { background: var(--wbs-bg-alt); border-radius: 8px; padding: 12px 14px; font-size: 16px; color: var(--wbs-ink); }
#buddypress .activity-list .activity-content .activity-meta.action { background: transparent; border: 0; }
#buddypress .activity-list .activity-meta .button { border: 0; background: transparent; color: var(--wbs-muted); padding: 4px 8px; }

/* Messages and notifications */
#buddypress .bp-messages-content, #buddypress #message-threads { background: var(--wbs-white); border-radius: var(--wbs-radius); }
#buddypress .message-thread-list li.selected, #buddypress .message-thread-list li.unread { background: var(--wbs-gold-tint); }
#buddypress table.notifications th { background: var(--wbs-navy-tint); color: var(--wbs-navy); }

@media (max-width: 600px) {
  #buddypress .dir-search input[type="search"] { min-width: 0; width: 100%; }
  #buddypress .subnav-filters > * { width: 100%; }
  #buddypress #header-cover-image { height: 130px; }
  body.buddypress .entry-default { padding-block: 28px 56px; }
}
/* Grid fixes over BuddyPress defaults */
#buddypress .bp-list.grid::before, #buddypress .bp-list.grid::after { content: none; display: none; }
#buddypress.buddypress-wrap .grid.bp-list > li .list-wrap { min-height: 0; position: static; overflow: visible; }
#buddypress.buddypress-wrap .grid.bp-list > li .item-block, #buddypress.buddypress-wrap .grid.bp-list > li .group-desc { min-height: 0; }
#buddypress.buddypress-wrap .grid.bp-list > li .action { position: static; width: 100%; padding: 12px 0 0; margin-top: auto; }
#buddypress.buddypress-wrap .grid.bp-list > li .action .generic-button { width: 100%; margin: 0; }
#buddypress .subnav-filters .subnav-search, #buddypress .subnav-filters .dir-search { margin-right: auto; }
#buddypress .field-visibility-settings-toggle button.visibility-toggle-link, #buddypress button.visibility-toggle-link { border: 0; background: none; color: var(--wbs-navy-2); padding: 0 4px; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
#buddypress .field-visibility-settings-toggle button.visibility-toggle-link:hover { background: none; color: var(--wbs-gold-dark); }
#buddypress .field-visibility-settings { background: var(--wbs-bg-alt); border-radius: 6px; padding: 10px 12px; font-size: 14px; }
#buddypress .activity-list .activity-avatar img.avatar, #buddypress .activity-list .item-avatar img.avatar { width: 52px; height: 52px; max-width: 52px; }
#buddypress #whats-new-avatar img.avatar { width: 48px; height: 48px; }

/* =====================================================================
   Student Portal
   ===================================================================== */
.portal-welcome { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; background: var(--wbs-navy-tint); border-left: 5px solid var(--wbs-gold); border-radius: var(--wbs-radius); padding: 26px 28px; }
.portal-welcome h2 { margin: 0 0 4px; }
.portal-welcome p { margin: 0; font-size: 15px; }
.portal-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.portal-tiles div { background: var(--wbs-white); border-radius: 8px; padding: 14px 10px; text-align: center; border-top: 3px solid var(--wbs-navy); }
.portal-tiles strong { display: block; font-family: var(--wbs-serif); font-size: 30px; line-height: 1.1; color: var(--wbs-navy); font-variant-numeric: tabular-nums; }
.portal-tiles span { font-size: 13px; color: var(--wbs-muted); }
.portal-h { font-size: 26px; margin: 40px 0 18px; }
.portal-courses { display: grid; gap: 22px; }
.portal-course { background: var(--wbs-white); border: 1px solid var(--wbs-line); border-top: 4px solid var(--wbs-gold); border-radius: var(--wbs-radius); padding: 24px 26px; }
.pc-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--wbs-line); }
.pc-head h3 { margin: 0; font-size: 22px; }
.pc-head .type { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--wbs-gold-dark); margin-bottom: 6px; }
.pc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 18px; }
.pc-block h4 { font-family: var(--wbs-sans); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--wbs-navy); margin: 0 0 10px; }
.pc-block h4 + * { margin-top: 0; }
.pc-block * + h4 { margin-top: 18px; }
.pc-dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 15px; }
.pc-dl dt { color: var(--wbs-muted); }
.pc-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.pc-list { margin: 0; padding-left: 18px; font-size: 15px; }
.pc-list li::marker { color: var(--wbs-gold); }
.pc-materials { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pc-materials a { display: block; padding: 10px 12px; border: 1px solid var(--wbs-line); border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 15px; }
.pc-materials a::after { content: " ↗"; color: var(--wbs-gold-dark); }
.pc-materials a:hover { border-color: var(--wbs-gold); background: var(--wbs-gold-tint); }
.pc-results { background: var(--wbs-bg-alt); border-radius: 8px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pc-results h4 { margin-bottom: 0; }
.pc-results .pc-dl { width: 100%; }
.pc-remarks { font-size: 15px; font-style: italic; margin: 0; border-left: 3px solid var(--wbs-gold); padding-left: 10px; }
.result-badge { display: inline-block; font-weight: 700; font-size: 15px; padding: 6px 14px; border-radius: 999px; }
.result-badge.is-merit { background: var(--wbs-gold); color: #1B1405; }
.result-badge.is-pass { background: #E6F4EA; color: #1D5E33; }
.result-badge.is-fail { background: #FDECEA; color: #8A1F17; }
.result-badge.is-pending { background: var(--wbs-line); color: var(--wbs-ink); }
.result-pending { margin: 0; font-size: 15px; color: var(--wbs-muted); }
.cert-no { font-size: 13px; margin: -4px 0 0; }
.portal-help { margin-top: 28px; color: var(--wbs-muted); }
@media (max-width: 960px) { .pc-grid { grid-template-columns: 1fr 1fr; } .pc-results { grid-column: 1 / -1; } .portal-welcome { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pc-grid { grid-template-columns: 1fr; } .portal-course { padding: 20px; } .portal-welcome { padding: 20px; } .portal-tiles strong { font-size: 24px; } }

/* Portal log-in */
.portal-login { align-items: start; }
.portal-login-form h2 { margin: 0 0 4px; font-size: 24px; }
.portal-login-form form p { margin: 0 0 14px; }
.portal-login-form label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.portal-login-form input[type="text"], .portal-login-form input[type="password"] { width: 100%; font: 16px var(--wbs-sans); padding: 11px 12px; border: 1.5px solid var(--wbs-line); border-radius: 6px; }
.portal-login-form .login-remember label { font-weight: 400; display: inline-flex; gap: 8px; align-items: center; }
.portal-login-form .login-submit input { font: 700 15px var(--wbs-sans); padding: 12px 24px; border-radius: 6px; border: 0; background: var(--wbs-gold); color: #1B1405; cursor: pointer; }
.portal-login-form .login-submit input:hover { background: #C8932F; }

/* Certificate verification */
.verify-form label { font-weight: 700; }
.verify-row { display: flex; gap: 10px; flex-wrap: wrap; }
.verify-row input { flex: 1 1 260px; text-transform: uppercase; letter-spacing: .04em; }
.verify-row .btn { border: 0; }
.verify-result { margin-top: 22px; padding: 22px 24px; border-radius: var(--wbs-radius); border: 1px solid var(--wbs-line); background: var(--wbs-white); display: grid; gap: 14px; justify-items: start; }
.verify-result.ok { border-left: 5px solid #1D5E33; }
.verify-result.no { border-left: 5px solid #8A1F17; }
.verify-result p { margin: 0; }
.wbs-form input[type="checkbox"], .wbs-form input[type="radio"] { width: auto; }
.portal-login-form .login-remember label { display: inline-flex; align-items: center; gap: 8px; }

/* =====================================================================
   Digital Library
   ===================================================================== */
.lib-tabs ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 28px; padding: 0 0 16px; border-bottom: 1px solid var(--wbs-line); }
.lib-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--wbs-line); font-weight: 700; font-size: 15px; text-decoration: none; color: var(--wbs-ink); background: var(--wbs-white); }
.lib-tabs a:hover { border-color: var(--wbs-gold); background: var(--wbs-gold-tint); color: var(--wbs-ink); }
.lib-tabs a[aria-current="page"] { background: var(--wbs-navy); border-color: var(--wbs-navy); color: var(--wbs-white); }
.lib-tabs .n { background: var(--wbs-gold); color: #1B1405; border-radius: 9px; font-size: 12px; padding: 0 7px; }
.lib-intro { max-width: 70ch; color: var(--wbs-muted); }
.lib-search { display: grid; gap: 12px; margin-bottom: 18px; }
.lib-search-main { display: flex; gap: 10px; flex-wrap: wrap; }
.lib-search-main input { flex: 1 1 320px; font: 17px var(--wbs-sans); padding: 13px 14px; border: 1.5px solid var(--wbs-line); border-radius: 6px; }
.lib-search-main input:focus, .lib-filters select:focus { outline: none; border-color: var(--wbs-navy-2); box-shadow: 0 0 0 3px rgba(12,61,107,.15); }
.lib-search-main .btn { border: 0; }
.lib-filters { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 15px; }
.lib-filters label { font-weight: 700; color: var(--wbs-muted); }
.lib-filters select { font: 15px var(--wbs-sans); padding: 8px 10px; border: 1.5px solid var(--wbs-line); border-radius: 6px; background: var(--wbs-white); }
.lib-filters select + label { margin-left: 8px; }
.lib-chip { display: inline-flex; gap: 6px; align-items: center; background: var(--wbs-gold-tint); color: #5C410A; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.lib-chip a { text-decoration: none; color: inherit; font-size: 18px; line-height: 1; }
.lib-count { color: var(--wbs-muted); font-size: 15px; }
.lib-suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lib-suggest .k { font-weight: 700; color: var(--wbs-muted); }
.lib-suggest a { background: var(--wbs-navy-tint); color: var(--wbs-navy); padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.lib-suggest a:hover { background: var(--wbs-gold-tint); }
.lib-results { display: grid; gap: 16px; }
.lib-item { background: var(--wbs-white); border: 1px solid var(--wbs-line); border-left: 4px solid var(--wbs-navy); border-radius: var(--wbs-radius); padding: 20px 22px; display: grid; gap: 8px; }
.lib-item h3 { font-size: 20px; margin: 0; line-height: 1.3; }
.lib-type { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--wbs-gold-dark); }
.lib-meta { margin: 0; color: var(--wbs-navy-2); font-size: 15px; font-weight: 600; }
.lib-summary { margin: 0; color: var(--wbs-muted); font-size: 15px; max-width: 80ch; }
.lib-rights { margin: 0; font-size: 13px; color: var(--wbs-muted); }
.lib-subjects { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lib-subjects a { font-size: 13px; font-weight: 600; background: var(--wbs-navy-tint); color: var(--wbs-navy); padding: 3px 10px; border-radius: 999px; text-decoration: none; }
.lib-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.lib-save { margin: 0; }
.lib-btn { display: inline-flex; align-items: center; font: 700 14px var(--wbs-sans); padding: 8px 14px; border-radius: 6px; border: 1.5px solid var(--wbs-navy-2); color: var(--wbs-navy-2); background: var(--wbs-white); text-decoration: none; cursor: pointer; }
.lib-btn:hover { background: var(--wbs-navy-2); color: var(--wbs-white); }
.lib-btn.primary { background: var(--wbs-gold); border-color: var(--wbs-gold); color: #1B1405; }
.lib-btn.primary:hover { background: #C8932F; border-color: #C8932F; }
.lib-btn.is-saved { border-color: #1D5E33; color: #1D5E33; }
.lib-cite summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--wbs-navy-2); display: inline-block; }
.lib-cite-body { display: grid; gap: 10px; margin-top: 10px; }
.lib-cite-row { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 12px; align-items: start; background: var(--wbs-bg-alt); border-radius: 6px; padding: 10px 12px; }
.lib-cite-row .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--wbs-gold-dark); padding-top: 3px; }
.lib-cite-row p { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.lib-copy { font: 700 13px var(--wbs-sans); border: 1.5px solid var(--wbs-line); background: var(--wbs-white); border-radius: 6px; padding: 5px 10px; cursor: pointer; color: var(--wbs-navy-2); }
.lib-copy:hover { border-color: var(--wbs-gold); }
@media (max-width: 600px) { .lib-cite-row { grid-template-columns: 1fr; gap: 6px; } .lib-item { padding: 18px; } }
.lib-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 24px; color: var(--wbs-muted); }
.lib-credit { font-size: 13px; color: var(--wbs-muted); margin-top: 16px; }
.lib-db-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lib-db { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--wbs-white); border: 1px solid var(--wbs-line); border-top: 4px solid var(--wbs-gold); border-radius: var(--wbs-radius); text-decoration: none; color: var(--wbs-ink); }
.lib-db:hover { box-shadow: 0 8px 22px rgba(5,43,79,.1); color: var(--wbs-ink); }
.lib-db .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wbs-gold-dark); }
.lib-db strong { font-family: var(--wbs-serif); font-size: 18px; }
.lib-db strong::after { content: " ↗"; color: var(--wbs-gold-dark); font-family: var(--wbs-sans); }
.lib-db span:last-child { color: var(--wbs-muted); font-size: 15px; }
.lib-biblio { margin-top: 32px; background: var(--wbs-navy-tint); border-radius: var(--wbs-radius); padding: 22px 24px; }
.lib-biblio h3 { margin: 0 0 4px; }
.lib-biblio-block { display: grid; gap: 8px; margin-top: 16px; justify-items: start; }
.lib-biblio-block .k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--wbs-navy); }
.lib-biblio textarea { width: 100%; font: 15px var(--wbs-sans); padding: 12px; border: 1px solid var(--wbs-line); border-radius: 6px; background: var(--wbs-white); }
.lib-locked { max-width: 640px; background: var(--wbs-white); border: 1px solid var(--wbs-line); border-top: 4px solid var(--wbs-gold); border-radius: var(--wbs-radius); padding: 28px; }
.lib-locked h2 { margin-top: 0; }
.lib-help .check-list { font-size: 15px; }

/* =====================================================================
   Online courses (self-paced)
   ===================================================================== */
.ac-progress { height: 10px; border-radius: 999px; background: var(--wbs-navy-tint); overflow: hidden; }
.ac-progress span { display: block; height: 100%; background: var(--wbs-gold); border-radius: 999px; min-width: 4px; }
.ac-progress-label { font-size: 14px; margin: 6px 0 12px; }
.ac-small { font-size: 14px; margin: 10px 0 0; }
.ac-wide { width: 100%; justify-content: center; }

/* Catalogue */
.ac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ac-card { display: flex; flex-direction: column; background: var(--wbs-white); border: 1px solid var(--wbs-line); border-radius: var(--wbs-radius); overflow: hidden; min-width: 0; transition: box-shadow .15s, transform .15s; }
.ac-card:hover { box-shadow: 0 12px 28px rgba(5,43,79,.12); transform: translateY(-2px); }
.ac-card-img { display: block; aspect-ratio: 16 / 9; background: var(--wbs-navy); }
.ac-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-card-body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.ac-card-body .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--wbs-gold-dark); }
.ac-card h3 { margin: 0; font-size: 21px; line-height: 1.3; }
.ac-card h3 a { color: var(--wbs-ink); text-decoration: none; }
.ac-card h3 a:hover { color: var(--wbs-navy-2); }
.ac-card p { margin: 0; color: var(--wbs-muted); font-size: 15px; }
.ac-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ac-facts li { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 6px; background: var(--wbs-navy-tint); color: var(--wbs-navy); }
.ac-card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--wbs-line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ac-price { font-family: var(--wbs-serif); font-weight: 700; font-size: 22px; color: var(--wbs-navy); }
.ac-card-progress { flex: 1; display: grid; gap: 4px; font-size: 13px; color: var(--wbs-muted); }
.ac-card .btn { padding: 9px 16px; font-size: 14px; }
.ac-empty { max-width: 640px; background: var(--wbs-white); border: 1px solid var(--wbs-line); border-top: 4px solid var(--wbs-gold); border-radius: var(--wbs-radius); padding: 28px; }
.ac-empty h3 { margin-top: 0; }

/* Course page */
.ac-hero-facts { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ac-hero-facts li { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 6px; background: rgba(255,255,255,.12); color: var(--wbs-white); border: 1px solid rgba(255,255,255,.25); }
.ac-course { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 48px; align-items: start; }
.ac-side { position: sticky; top: 120px; }
.admin-bar .ac-side { top: 152px; }
.ac-buy { background: var(--wbs-white); border: 1px solid var(--wbs-line); border-top: 5px solid var(--wbs-gold); border-radius: var(--wbs-radius); padding: 24px; box-shadow: 0 14px 34px rgba(5,43,79,.1); }
.ac-buy .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--wbs-gold-dark); }
.ac-buy h2 { font-size: 24px; margin: 4px 0 14px; }
.ac-buy h3 { font-size: 18px; margin: 18px 0 4px; }
.ac-price-big { font-family: var(--wbs-serif); font-size: 40px; font-weight: 700; color: var(--wbs-navy); line-height: 1.1; margin-top: 4px; }
.ac-includes { font-size: 15px; gap: 6px; margin: 16px 0; }
.ac-buy .form-notice { font-size: 15px; }
.ac-signup { display: block; gap: 0; border: 0; border-top: 1px solid var(--wbs-line); border-radius: 0; padding: 4px 0 0; margin-top: 18px; position: relative; }
.ac-signup .btn.ac-wide { justify-self: stretch; }
.ac-signup p { margin: 0 0 12px; }
.ac-signup label { font-size: 14px; }
.ac-signup input { padding: 10px 12px; font-size: 16px; }
.ac-signup small { display: block; font-size: 13px; margin-top: 4px; }
.ac-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ac-pay-note { font-size: 13px; color: var(--wbs-muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--wbs-line); }
.ac-notice { margin-bottom: 24px; }
.ac-video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--wbs-radius); overflow: hidden; margin: 0 0 28px; }
.ac-video iframe, .ac-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ac-overview { margin-bottom: 8px; }
.ac-box { background: var(--wbs-bg-alt); border-radius: var(--wbs-radius); padding: 24px 26px; margin: 28px 0; }
.ac-box h2 { font-size: 24px; margin: 0 0 16px; }
.ac-h { font-size: 26px; margin: 40px 0 6px; }
.ac-modules { display: grid; gap: 16px; margin-top: 16px; }
.ac-module { border: 1px solid var(--wbs-line); border-radius: var(--wbs-radius); overflow: hidden; }
.ac-module h3 { margin: 0; font-family: var(--wbs-sans); font-size: 16px; font-weight: 700; padding: 12px 18px; background: var(--wbs-navy-tint); color: var(--wbs-navy); }
.ac-lessons { list-style: none; margin: 0; padding: 0; }
.ac-lessons li { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--wbs-line); }
.ac-lessons li:first-child { border-top: 0; }
.ac-ico { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--wbs-navy-tint); color: var(--wbs-navy); }
.is-done .ac-ico { background: #1D5E33; color: var(--wbs-white); }
.is-locked .ac-ico { background: transparent; border: 1.5px solid var(--wbs-line); }
.is-locked .ac-ico::before { content: ""; width: 8px; height: 6px; border: 2px solid var(--wbs-muted); border-radius: 1px; position: relative; top: 2px; box-shadow: 0 -5px 0 -2px var(--wbs-white), 0 -5px 0 0 var(--wbs-muted); }
.ac-l-title { flex: 1; min-width: 0; display: grid; }
.ac-l-title a { font-weight: 700; text-decoration: none; color: var(--wbs-navy-2); }
.ac-l-title a:hover { color: var(--wbs-gold-dark); }
.is-locked .ac-l-title { color: var(--wbs-muted); }
.ac-l-title small { font-size: 13px; color: var(--wbs-muted); }
.ac-tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--wbs-gold-tint); color: #5C410A; white-space: nowrap; }
.ac-steps { max-width: 70ch; }
.ac-complete { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--wbs-navy); color: var(--wbs-white); border-left: 6px solid var(--wbs-gold); border-radius: var(--wbs-radius); padding: 20px 24px; margin: 0 0 28px; }
.ac-complete h3 { color: var(--wbs-white); margin: 2px 0; font-size: 21px; }
.ac-complete .eyebrow { color: var(--wbs-gold); }
.ac-complete .muted { color: var(--wbs-on-navy-muted); margin: 0; font-size: 14px; }
@media (max-width: 960px) {
  .ac-course { grid-template-columns: 1fr; gap: 32px; }
  .ac-side { position: static; order: -1; }
}
@media (max-width: 420px) { .ac-2col { grid-template-columns: 1fr; gap: 0; } .ac-buy { padding: 20px 18px; } }

/* Lesson page */
.ac-bar { background: var(--wbs-navy); color: var(--wbs-white); border-bottom: 4px solid var(--wbs-gold); }
.ac-bar .wbs-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; max-width: 1320px; }
.ac-back { color: var(--wbs-white); text-decoration: none; font-weight: 700; }
.ac-back:hover { color: var(--wbs-gold); }
.ac-bar-progress { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--wbs-on-navy-muted); }
.ac-bar-progress .ac-progress { width: 180px; background: rgba(255,255,255,.18); }
.ac-learn { max-width: 1320px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 48px; align-items: start; padding-block: 36px 72px; }
.ac-toc { position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow: auto; background: var(--wbs-bg-alt); border-radius: var(--wbs-radius); padding: 16px 0; }
.admin-bar .ac-toc { top: 142px; }
.ac-toc summary { cursor: pointer; font-weight: 700; padding: 0 18px 10px; color: var(--wbs-navy); list-style: none; }
.ac-toc summary::-webkit-details-marker { display: none; }
.ac-toc h2 { font-family: var(--wbs-sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--wbs-gold-dark); margin: 14px 18px 6px; }
.ac-toc ol { list-style: none; margin: 0; padding: 0; }
.ac-toc li a, .ac-toc li span { display: block; padding: 8px 18px 8px 42px; font-size: 15px; line-height: 1.35; text-decoration: none; color: var(--wbs-ink); position: relative; border-left: 3px solid transparent; }
.ac-toc li a::before, .ac-toc li span::before { content: ""; position: absolute; left: 18px; top: 11px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--wbs-line); background: var(--wbs-white); }
.ac-toc li.is-done a::before { background: #1D5E33; border-color: #1D5E33; }
.ac-toc li.is-done a::after { content: ""; position: absolute; left: 22px; top: 14px; width: 5px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.ac-toc li a:hover { background: var(--wbs-white); }
.ac-toc li.is-current a { background: var(--wbs-white); border-left-color: var(--wbs-gold); font-weight: 700; }
.ac-toc li.is-locked span { color: var(--wbs-muted); }
.ac-lesson header h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 4px 0 6px; }
.ac-lesson header .muted { margin: 0 0 24px; font-size: 15px; }
.ac-notes { max-width: 72ch; font-size: 18px; }
.ac-notes h2, .ac-notes h3 { margin-top: 1.4em; }
.ac-notes img { border-radius: 8px; }
.ac-files { margin: 32px 0; }
.ac-files h2, .ac-quiz h2 { font-size: 24px; margin: 0 0 12px; }
.ac-files ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 640px; }
.ac-files a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--wbs-line); border-radius: 8px; text-decoration: none; color: var(--wbs-ink); font-weight: 600; overflow-wrap: anywhere; }
.ac-files a:hover { border-color: var(--wbs-gold); background: var(--wbs-gold-tint); }
.ac-file-ext { flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: .05em; background: var(--wbs-navy); color: var(--wbs-white); border-radius: 4px; padding: 4px 6px; }
.ac-files small { margin-left: auto; white-space: nowrap; }
.ac-quiz { margin: 36px 0 24px; padding: 26px; background: var(--wbs-bg-alt); border-radius: var(--wbs-radius); border-top: 4px solid var(--wbs-navy); }
.ac-quiz form { display: grid; gap: 16px; justify-items: start; }
.ac-q { border: 1px solid var(--wbs-line); background: var(--wbs-white); border-radius: 8px; padding: 16px 18px; margin: 0; width: 100%; min-width: 0; }
.ac-q.is-wrong { border-color: #B3261E; box-shadow: inset 4px 0 0 #B3261E; }
.ac-q legend { font-weight: 700; padding: 0; float: left; width: 100%; margin-bottom: 10px; display: flex; gap: 10px; }
.ac-q legend em { font-weight: 400; color: var(--wbs-muted); }
.ac-q .n { flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--wbs-navy); color: var(--wbs-gold); display: grid; place-items: center; font-size: 13px; }
.ac-q-flag { clear: both; margin: 0 0 8px; color: #B3261E; font-size: 14px; font-weight: 700; }
.ac-opt { clear: both; display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 16px; }
.ac-opt:hover { background: var(--wbs-navy-tint); }
.ac-opt input { margin-top: 5px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--wbs-navy); }
.ac-quiz-result { padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; }
.ac-quiz-result.ok { background: #E3F1E7; color: #1D5E33; }
.ac-quiz-result.no { background: #FBE9E7; color: #8C1D18; }
.ac-answers { display: grid; gap: 10px; padding-left: 20px; }
.ac-right { color: #1D5E33; font-weight: 600; }
.ac-finish { margin: 36px 0 24px; padding: 22px 24px; background: var(--wbs-bg-alt); border-radius: var(--wbs-radius); }
.ac-finish p { margin: 0 0 12px; }
.ac-next-wrap { margin: 0 0 24px; }
.ac-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--wbs-line); }
.ac-pn a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--wbs-line); border-radius: 8px; text-decoration: none; font-weight: 700; color: var(--wbs-navy-2); }
.ac-pn a:hover { border-color: var(--wbs-gold); }
.ac-pn small { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--wbs-muted); font-weight: 700; }
.ac-pn-next { text-align: right; grid-column: 2; }
@media (max-width: 900px) {
  .ac-learn { grid-template-columns: 1fr; gap: 20px; padding-block: 20px 56px; }
  .ac-toc { position: static; max-height: none; }
  .ac-bar-progress .ac-progress { width: 110px; }
  .ac-notes { font-size: 17px; }
  .ac-quiz { padding: 20px 16px; }
}
@media (max-width: 560px) { .ac-pn { grid-template-columns: 1fr; } .ac-pn-next { grid-column: 1; } }
