/* ============================================================
   GLOBAL ACCENT → BURDA RED.
   The MasterStudy frontend (course catalog, single course, course player,
   filters, buttons, tabs, progress) is driven by these CSS custom properties
   (default blue rgba(34,122,255)). Overriding them recolours the whole LMS UI
   in one place. !important so it wins regardless of plugin load order.
   ============================================================ */
:root{
  --masterstudy-color--primary-100:#E2001A !important;
  --masterstudy-color--primary-hover:#C2061B !important;
  --masterstudy-color--primary-70:rgba(226,0,26,.7) !important;
  --masterstudy-color--primary-50:rgba(226,0,26,.5) !important;
  --masterstudy-color--primary-30:rgba(226,0,26,.3) !important;
  --masterstudy-color--primary-10:rgba(226,0,26,.1) !important;
  --masterstudy-color--primary-5:rgba(226,0,26,.05) !important;
  --accent-100:#E2001A !important;
  --accent-70:rgba(226,0,26,.7) !important;
  --accent-10:rgba(226,0,26,.1) !important;
  --accent-hover:#C2061B !important;
  --color-accent:#E2001A !important;
  --color-main:#E2001A !important;
  --chakra-colors-primary:#E2001A !important;
  --lms-filter-filterTogglerBgColor:rgba(226,0,26,.1) !important;
  --lms-filter-filterTogglerBgColorHover:rgba(226,0,26,.18) !important;
}

/* Safety net: common MasterStudy blue buttons/links that may not use the vars. */
.stm-lms-buy_button .stm_lms_button,
.masterstudy-button,
a.masterstudy-button,
button.masterstudy-button,
[class*="single_course"] [class*="button"]:not(.button-secondary),
.stm_lms_course__sidebar .stm_lms_button{
  background-color:#E2001A !important;
  border-color:#E2001A !important;
  color:#fff !important;
}
/* The <body> itself carries `masterstudy-theme`, so this "MasterStudy links"
 * safety net actually matched EVERY link on the site — including our own
 * buttons, whose white label it replaced with the inherited body ink. That is
 * why the red "Pieteikties" CTA rendered with near-black text. Excluding our
 * own `bz-` components keeps the net where it was aimed. */
[class*="masterstudy"] a:not([class*="bz-"]):not([class*="bs-"]){ color:inherit; }

/* Single course page: title → Lora, tab accents → red. */
.single-stm-courses .bz-lms h1,
[class*="single_course__title"],
[class*="course__title"]{ font-family:"Lora",Georgia,serif !important; }
[class*="course-tabs"] [class*="active"],
[class*="single_course"] [class*="tab"][class*="active"]{ color:#E2001A !important; border-color:#E2001A !important; }

/* ============================================================
   Burda brand layer for the MasterStudy LMS account/dashboard.
   Precise overrides (real MasterStudy classes). Goal: clean hierarchy,
   Burda red as the single accent, our type, no demo data.
   ============================================================ */
body.wp-child-theme-burda.masterstudy-theme{
  font-family:"Archivo",system-ui,sans-serif;
  color:#17110E;
}

/* --- kill demo header top bar (New York address / US phone / hours / English) --- */
body.wp-child-theme-burda.masterstudy-theme .header_top_bar{ display:none !important; }

/* --- type: headings → Lora --- */
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account h1,
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account h2,
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account h3,
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account-profile__info,
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account-menu__list-section-title{
  font-family:"Lora",Georgia,serif;
}

/* --- sidebar active item: blue → Burda red, with a stitched-feel left bar --- */
.masterstudy-account-menu__list-item_active,
.masterstudy-account-menu__list-item_active *{ color:#E2001A !important; }
.masterstudy-account-menu__list-item_active{
  background:rgba(226,0,26,.07) !important;
  box-shadow:inset 3px 0 0 #E2001A;
  border-radius:6px;
}
.masterstudy-account-menu__list-item:hover{ color:#C2061B; }
.masterstudy-account-mobile-menu__link_active{ color:#E2001A !important; border-color:#E2001A !important; }

/* --- instructor-mode switcher: blue → red when on --- */
.masterstudy-switcher input:checked + .masterstudy-switcher-background,
.masterstudy-switcher.is-active .masterstudy-switcher-background,
.masterstudy-switcher_checked .masterstudy-switcher-background,
.masterstudy-account-menu-switcher .masterstudy-switcher-background{ background:#E2001A !important; }

/* --- tabs (All / Published / In Draft) active → red --- */
.masterstudy-tabs__item_active{ background:#E2001A !important; color:#fff !important; border-color:#E2001A !important; }

/* --- primary buttons / CTAs in the account → Burda red --- */
.masterstudy-account .stm_lms_button,
.masterstudy-account button[type="submit"],
.masterstudy-account-have-question__button,
.masterstudy-instructor-courses a[class*="add"],
.masterstudy-account a[class*="_add"]{
  background:#E2001A !important;
  border-color:#E2001A !important;
  color:#fff !important;
  border-radius:2px !important;
}
.masterstudy-account .stm_lms_button:hover,
.masterstudy-account-have-question__button:hover{ background:#C2061B !important; }

/* --- links / profile accents --- */
.masterstudy-account-profile__link{ color:#C2061B !important; }
.masterstudy-account a:not(.masterstudy-account-menu__list-item):not([class*="button"]):not(.stm_lms_button){ color:#C2061B; }

/* --- form fields --- */
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account input,
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account select,
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account textarea{ border-radius:2px !important; }
body.wp-child-theme-burda.masterstudy-theme .masterstudy-account input:focus{
  border-color:#E2001A !important; box-shadow:0 0 0 3px rgba(226,0,26,.14) !important; outline:none !important;
}

/* --- footer: hide demo Archives/Categories widgets for a clean footer --- */
body.wp-child-theme-burda.masterstudy-theme .footer_widgets_wrapper{ display:none !important; }

/* --- dashboard layout polish: card-based panels on paper (clear hierarchy) --- */
body.wp-child-theme-burda.masterstudy-theme .bz-lms{ background:#F7F2EA; }
.masterstudy-account-container{ max-width:1200px; margin-left:auto; margin-right:auto; gap:30px; align-items:flex-start; }
.masterstudy-account-sidebar__wrapper{
  background:#fff; border:1px solid #E0D7C8; border-radius:8px;
  box-shadow:0 18px 40px -28px rgba(23,17,14,.35); padding:22px 16px;
}
.masterstudy-account-profile{ padding:4px 6px 16px; border-bottom:1px dashed #C9BCA8; margin-bottom:12px; }
.masterstudy-account-profile__name{ font-family:"Lora",Georgia,serif; font-size:1.15rem; }
.masterstudy-account-menu__list-section-title{ letter-spacing:.12em; }
.masterstudy-instructor-courses,
.masterstudy-account-courses,
.masterstudy-account-content,
.masterstudy-account-dashboard{
  background:#fff; border:1px solid #E0D7C8; border-radius:8px;
  box-shadow:0 18px 40px -28px rgba(23,17,14,.35);
  padding:clamp(20px,3vw,32px); min-height:340px;
}

/* ===================================================================
 * LMS-WIDE BRAND LAYER
 * -------------------------------------------------------------------
 * MasterStudy ships its own design tokens — primary #227aff, ink
 * #001931, muted #4d5e6f/#808c98, hairline #dbe0e9, wash #eef1f7 —
 * and its own typography (Montserrat / Open Sans). The earlier rules
 * in this file only re-skinned the account area, so every other LMS
 * surface (course detail, catalog, wishlist, checkout, modals) still
 * rendered in MasterStudy's palette inside our branded shell.
 *
 * Rather than restyle ~290 individual classes, the rules below key on
 * MasterStudy's own BEM conventions (`_style-primary`, `_active`,
 * `__title`, `__link`) so new components inherit the brand for free.
 *
 * Everything is scoped to body.wp-child-theme-burda — the parent theme
 * is never modified.
 * =================================================================== */

body.wp-child-theme-burda{
  --ms-primary:#E2001A;      /* was #227aff */
  --ms-primary-ink:#C2061B;
  --ms-ink:#17110E;          /* was #001931 */
  --ms-muted:#5E554E;        /* was #4d5e6f / #808c98 */
  --ms-line:#E0D7C8;         /* was #dbe0e9 */
  --ms-wash:#F7F2EA;         /* was #eef1f7 */
  --ms-stitch:#C9BCA8;       /* dashed stitch motif, as on the landing pages */
}

/* --- 1. Typography ------------------------------------------------ */
/* MasterStudy enqueues Montserrat + Open Sans; inherit our stack. */
body.wp-child-theme-burda [class*="masterstudy-"],
body.wp-child-theme-burda [class^="stm_lms"],
body.wp-child-theme-burda [class*="stm-lms"]{
  font-family:"Archivo",system-ui,sans-serif;
}
body.wp-child-theme-burda [class*="masterstudy-"] h1,
body.wp-child-theme-burda [class*="masterstudy-"] h2,
body.wp-child-theme-burda [class*="masterstudy-"] h3,
body.wp-child-theme-burda [class*="masterstudy-"] h4,
body.wp-child-theme-burda [class*="masterstudy-"][class*="__title"]:not(.masterstudy-button__title),
body.wp-child-theme-burda [class*="masterstudy-"][class*="__name"]{
  font-family:"Lora",Georgia,serif;
  color:var(--ms-ink);
}
/* `.masterstudy-button__title` is the label span inside every LMS button, so
 * the `__title` rule above was setting buttons in Lora site-wide. Buttons are
 * Archivo everywhere else on the site; the exclusion keeps them there. */

/* --- 2. Primary actions ------------------------------------------ */
body.wp-child-theme-burda .masterstudy-button_style-primary,
body.wp-child-theme-burda .masterstudy-buy-button__link,
body.wp-child-theme-burda .stm-lms-buy_button a,
body.wp-child-theme-burda [class*="masterstudy-"][class*="__empty-button"]{
  background:var(--ms-primary) !important;
  border-color:var(--ms-primary) !important;
  color:#fff !important;
  border-radius:4px;
  font-weight:600;
  letter-spacing:.01em;
}
body.wp-child-theme-burda .masterstudy-button_style-primary:hover,
body.wp-child-theme-burda .masterstudy-buy-button__link:hover,
body.wp-child-theme-burda .stm-lms-buy_button a:hover{
  background:var(--ms-primary-ink) !important;
  border-color:var(--ms-primary-ink) !important;
}

/* Secondary / tertiary: outlined in brand red rather than MS blue. */
body.wp-child-theme-burda .masterstudy-button_style-secondary,
body.wp-child-theme-burda .masterstudy-button_style-tertiary{
  color:var(--ms-primary) !important;
  border-color:var(--ms-line) !important;
  background:transparent !important;
}
body.wp-child-theme-burda .masterstudy-button_style-secondary:hover,
body.wp-child-theme-burda .masterstudy-button_style-tertiary:hover{
  border-color:var(--ms-primary) !important;
  background:rgba(226,0,26,.05) !important;
}
/* MasterStudy paints the label WHITE on hover because its own hover fills the
 * button with solid accent. We keep the fill light, so that rule left white
 * text on a 5%-red wash — invisible. The label lives in a child span with its
 * own colour, so overriding the button element alone never reached it. */
body.wp-child-theme-burda .masterstudy-button_style-secondary:hover .masterstudy-button__title,
body.wp-child-theme-burda .masterstudy-button_style-tertiary:hover .masterstudy-button__title,
body.wp-child-theme-burda .masterstudy-button_style-secondary:hover::before,
body.wp-child-theme-burda .masterstudy-button_style-secondary:hover::after,
body.wp-child-theme-burda .masterstudy-button_style-tertiary:hover::before,
body.wp-child-theme-burda .masterstudy-button_style-tertiary:hover::after{
  color:var(--ms-primary-ink) !important;
  border-color:var(--ms-primary-ink) !important;
}

/* Keyboard focus is invisible in MasterStudy (`outline:0` on every button). */
body.wp-child-theme-burda .masterstudy-button:focus-visible{
  outline:3px solid var(--ms-primary-ink) !important;
  outline-offset:2px;
}

/* --- 3. Links and inline accents ---------------------------------- */
body.wp-child-theme-burda [class*="masterstudy-"] a:not([class*="button"]):not([class*="__link_"]){
  color:var(--ms-primary-ink);
}
body.wp-child-theme-burda [class*="masterstudy-"] a:not([class*="button"]):hover{
  color:var(--ms-primary);
}

/* --- 4. Active states (MasterStudy suffixes every active node) -----
 * `_active` also marks *open containers* — the course-completion popup is
 * `masterstudy-single-course-complete_active` while visible — so the blanket
 * rule was inheriting brand red into every line of text inside them. Restrict
 * it to the nav/tab items it was written for by excluding open overlays. */
/* `tabs__item_active` is excluded too: it is a *filled* pill (white on red from
 * the rule above), so repainting its text with the accent left the label
 * invisible — red on red. */
body.wp-child-theme-burda [class*="masterstudy-"][class$="_active"]:not([class*="-complete"]):not([class*="modal"]):not([class*="popup"]):not([class*="tabs__item"]),
body.wp-child-theme-burda [class*="masterstudy-"][class*="_active "]:not([class*="-complete"]):not([class*="modal"]):not([class*="popup"]):not([class*="tabs__item"]){
  color:var(--ms-primary) !important;
  border-color:var(--ms-primary) !important;
}
body.wp-child-theme-burda .masterstudy-single-course-tabs__item_active,
body.wp-child-theme-burda .masterstudy-enrolled-courses-tabs__block_active{
  border-bottom-color:var(--ms-primary) !important;
  box-shadow:inset 0 -2px 0 0 var(--ms-primary);
}

/* --- 5. Panels, cards, hairlines ---------------------------------- */
body.wp-child-theme-burda .masterstudy-single-course-details,
body.wp-child-theme-burda .masterstudy-single-course-description,
body.wp-child-theme-burda .masterstudy-single-course-instructor,
body.wp-child-theme-burda .masterstudy-single-course-reviews,
body.wp-child-theme-burda .masterstudy-single-course-complete,
body.wp-child-theme-burda .masterstudy-enrolled-courses,
body.wp-child-theme-burda .masterstudy-account-wishlist{
  background:#fff;
  border:1px solid var(--ms-line);
  border-radius:8px;
  box-shadow:0 18px 40px -28px rgba(23,17,14,.35);
  padding:clamp(18px,2.6vw,28px);
}
body.wp-child-theme-burda [class*="masterstudy-"] hr,
body.wp-child-theme-burda [class*="masterstudy-"][class*="__divider"]{
  border-color:var(--ms-line);
}

/* --- 6. Form controls --------------------------------------------- */
body.wp-child-theme-burda [class*="masterstudy-"] input:not([type=submit]),
body.wp-child-theme-burda [class*="masterstudy-"] select,
body.wp-child-theme-burda [class*="masterstudy-"] textarea{
  border:1px solid var(--ms-line);
  border-radius:4px;
  font-family:"Archivo",system-ui,sans-serif;
}
body.wp-child-theme-burda [class*="masterstudy-"] input:focus,
body.wp-child-theme-burda [class*="masterstudy-"] select:focus,
body.wp-child-theme-burda [class*="masterstudy-"] textarea:focus{
  border-color:var(--ms-primary) !important;
  box-shadow:0 0 0 3px rgba(226,0,26,.14) !important;
  outline:none !important;
}

/* --- 7. Rating stars: MS amber → brand red ------------------------ */
body.wp-child-theme-burda .masterstudy-single-course-rating__star svg,
body.wp-child-theme-burda [class*="masterstudy-"][class*="__star"] svg{
  fill:var(--ms-primary);
  color:var(--ms-primary);
}

/* --- 8. Modals ---------------------------------------------------- */
body.wp-child-theme-burda [class*="masterstudy-"][class*="modal"]{
  border-radius:8px;
  border:1px solid var(--ms-line);
  font-family:"Archivo",system-ui,sans-serif;
}

/* --- 9. Modules outside the school's model ------------------------
 * Accounts are created by the school (see inc/portal.php) and there is
 * no marketplace, so MasterStudy's instructor-signup and enterprise
 * upsell surfaces are hidden rather than restyled. Remove these rules
 * if the school ever opens public instructor registration. */
body.wp-child-theme-burda .masterstudy-become-instructor-modal,
body.wp-child-theme-burda .masterstudy-enterprise-modal,
body.wp-child-theme-burda .masterstudy-account-become-instructor{
  display:none !important;
}

/* There is no e-shop (see CLAUDE.md) — course fees are invoiced by the school,
 * so MasterStudy's orders screen is always empty and only confuses students.
 * Hidden by href so it survives MasterStudy's class churn between releases. */
/* The menu item IS the anchor (not a wrapper around one), so match the href
 * on the item itself. */
body.wp-child-theme-burda a.masterstudy-account-menu__list-item[href*="/my-orders"],
body.wp-child-theme-burda .masterstudy-account-mobile-menu__link[href*="/my-orders"]{
  display:none !important;
}

/* MasterStudy paints an editorial post-status chip (green = published) onto
 * every catalog card, including for logged-out visitors. It is an authoring
 * affordance, not customer-facing, and its green sits outside the palette. */
body.wp-child-theme-burda .stm_lms_post_status{
  display:none !important;
}

/* --- 10. Latvian capitalisation -----------------------------------
 * MasterStudy applies `text-transform: capitalize` to menu labels, tabs and
 * headings — an English title-case convention. Latvian capitalises only the
 * first word and proper nouns, so "Mani kursi" was rendering as "Mani Kursi".
 * Left as-is, every translated string in the LMS is subtly misspelled. */
/* !important is required: MasterStudy's own rules are more specific
 * (e.g. `.masterstudy-account-menu__list a.…__list-item .…__list-item-label`
 * at 0,3,1), so a scoped attribute selector alone loses the cascade. */
body.wp-child-theme-burda [class*="masterstudy-"],
body.wp-child-theme-burda [class*="masterstudy-"]::before,
body.wp-child-theme-burda [class*="masterstudy-"]::after,
body.wp-child-theme-burda [class^="stm_lms"],
body.wp-child-theme-burda [class*="stm-lms"]{
  text-transform:none !important;
}
/* MasterStudy also capitalises *unclassed* children (`.…__meta-block span`),
 * which the selectors above cannot reach — that is why course cards still read
 * "4 Lekcijas" instead of "4 lekcijas". Elements with no class of their own are
 * never styled deliberately by us, so resetting them is safe. */
body.wp-child-theme-burda [class*="masterstudy-"] *:not([class]),
body.wp-child-theme-burda [class^="stm_lms"] *:not([class]),
body.wp-child-theme-burda [class*="stm-lms"] *:not([class]){
  text-transform:none !important;
}
/* Keep the deliberate small-caps section headings from our own brand layer. */
body.wp-child-theme-burda .masterstudy-account-menu__list-section-title{
  text-transform:uppercase !important;
}

/* --- 11. Container width ------------------------------------------
 * The site wrap is 1480px with clamp(22px,4vw,56px) side padding; MasterStudy
 * ships Bootstrap's 1200px .container with 15px padding, so every LMS page sat
 * visibly narrower than — and inset from — our own header and footer. Align
 * the LMS containers to the site wrap so the column edges line up throughout. */
/* `.bz-wrap` already supplies the 1480px cap and the side gutter, and the LMS
 * renders its own `.container` inside it. Capping/padding the inner container
 * too just insets the content twice — so let it fill the wrap instead. */
body.wp-child-theme-burda .bz-lms .bz-wrap > .container,
body.wp-child-theme-burda .bz-lms .bz-wrap .container{
  max-width:100% !important;
  width:100%;
  padding-left:0 !important;
  padding-right:0 !important;
  margin-left:0;
  margin-right:0;
}
/* A `.container` that is NOT inside our wrap still needs the site cap. */
body.wp-child-theme-burda .bz-lms > .container,
body.wp-child-theme-burda .masterstudy-account-container,
body.wp-child-theme-burda .stm_lms_courses_wrapper,
body.wp-child-theme-burda .masterstudy-single-course{
  max-width:var(--maxw,1480px) !important;
  margin-left:auto;
  margin-right:auto;
}
/* Inner grids inherit the container's width rather than Bootstrap's cap. */
body.wp-child-theme-burda .stm_lms_courses_wrapper,
body.wp-child-theme-burda .stm_lms_courses__archive_wrapper{
  width:100%;
}

/* --- 12. Type harmony with the landing pages ----------------------
 * Match the site's body size and heading rhythm so moving from the landing
 * into the LMS doesn't read as a different site. */
body.wp-child-theme-burda .bz-lms{
  font-size:1rem;
  line-height:1.6;
  color:var(--ms-ink);
}
body.wp-child-theme-burda .bz-lms h1,
body.wp-child-theme-burda [class*="masterstudy-"] h1{
  font-size:clamp(1.9rem,3.4vw,2.6rem);
  font-weight:600;
  line-height:1.06;
  letter-spacing:-.01em;
}
body.wp-child-theme-burda .bz-lms h2,
body.wp-child-theme-burda [class*="masterstudy-"] h2{
  font-size:clamp(1.35rem,2.2vw,1.75rem);
  font-weight:600;
  line-height:1.15;
}
body.wp-child-theme-burda .bz-lms h3,
body.wp-child-theme-burda [class*="masterstudy-"] h3{
  font-size:clamp(1.1rem,1.6vw,1.3rem);
  font-weight:600;
}

/* Buttons: match the landing's CTA shape rather than MasterStudy's uppercase
 * pill. `.heading_font` is MasterStudy's own class and sits outside the
 * masterstudy-/stm- prefixes, so the section-10 reset does not reach it. */
body.wp-child-theme-burda .bz-lms a.heading_font,
body.wp-child-theme-burda .bz-lms .heading_font{
  text-transform:none !important;
  letter-spacing:0 !important;
  font-family:"Archivo",system-ui,sans-serif !important;
}

/* --- 13. Avoid double-nested panels -------------------------------
 * The tab body already renders inside a panel, so styling the description as
 * a card too produced a card-inside-a-card on the course page. */
body.wp-child-theme-burda .masterstudy-single-course-tabs__content
  .masterstudy-single-course-description{
  background:transparent;
  border:0;
  box-shadow:none;
  padding:0;
}

/* --- 14. Catalog list view ----------------------------------------
 * The grid view picks up card styling from MasterStudy; the list view does
 * not — rows sat flush against each other with no gap, no card edge and a
 * bleeding thumbnail. Give list rows the same card treatment as the grid. */
body.wp-child-theme-burda .stm_lms_courses_list_view .stm_lms_courses__single{
  margin-bottom:22px;
  background:#fff;
  border:1px solid var(--ms-line);
  border-radius:8px;
  box-shadow:0 18px 40px -28px rgba(23,17,14,.35);
  overflow:hidden;
}
body.wp-child-theme-burda .stm_lms_courses_list_view .stm_lms_courses__single__inner{
  display:flex;
  gap:clamp(16px,2vw,28px);
  align-items:stretch;
  padding:0;
}
/* MasterStudy lays this row out with floats and fixed column widths
 * (image / --inner / --info). Inside a flex container the floats are ignored
 * but the fixed widths remain, leaving a dead gap mid-row. Clear the floats
 * and let the middle column absorb the free space. */
body.wp-child-theme-burda .stm_lms_courses_list_view .stm_lms_courses__single__inner > *{
  float:none !important;
  width:auto !important;
  margin:0 !important;
}
body.wp-child-theme-burda .stm_lms_courses_list_view .stm_lms_courses__single--image{
  flex:0 0 clamp(200px,22%,280px) !important;
  overflow:hidden;
  align-self:stretch;
}
body.wp-child-theme-burda .stm_lms_courses_list_view .stm_lms_courses__single--image img{
  width:100%; height:100%; object-fit:cover; display:block;
}
/* Title + excerpt: take the remaining width. */
body.wp-child-theme-burda .stm_lms_courses_list_view .stm_lms_courses__single--inner{
  flex:1 1 auto !important;
  min-width:0;
  padding:clamp(16px,2vw,26px) 0;
  display:flex; flex-direction:column; gap:8px; justify-content:center;
}
/* The category label is floated too, which squeezed it into a narrow column
 * beside the title instead of sitting above it. */
body.wp-child-theme-burda .stm_lms_courses_list_view .stm_lms_courses__single--inner > *{
  float:none !important;
  width:auto !important;
  max-width:100%;
}
/* Price / wishlist / author: only as wide as its content. */
body.wp-child-theme-burda .stm_lms_courses_list_view .stm_lms_courses__single--info{
  flex:0 0 auto !important;
  padding:clamp(16px,2vw,26px) clamp(16px,2vw,26px) clamp(16px,2vw,26px) 0;
  display:flex; flex-direction:column; gap:10px;
  justify-content:center; align-items:flex-end;
}
/* The hover CTA is stacked under the thumbnail in list view — keep it inside
 * the card and on the site's button shape. */
body.wp-child-theme-burda .stm_lms_courses_list_view .stm_lms_courses__single--image a.heading_font{
  border-radius:0;
  padding:12px 18px;
  font-weight:600;
}
@media (max-width:700px){
  body.wp-child-theme-burda .stm_lms_courses_list_view .stm_lms_courses__single__inner{
    flex-direction:column;
  }
  body.wp-child-theme-burda .stm_lms_courses_list_view .stm_lms_courses__single--info{
    padding:0 18px 18px;
  }
}

/* --- 15. Course player --------------------------------------------
 * The player's "Course:" label is hardcoded in MasterStudy's compiled Vue
 * bundle, so the gettext layer cannot reach it. The course title sits
 * directly beneath it, so the label carries no information — hide it rather
 * than leave one English word in an otherwise Latvian player. */
body.wp-child-theme-burda .masterstudy-course-player-header__course-label{
  display:none !important;
}

/* --- 16. Course-completion popup ----------------------------------
 * The last screen a student sees in a course, so it carries the most brand
 * weight of any LMS surface — and shipped the least on-brand: MasterStudy's
 * blue check disc, an amber/green icon set, a 48px number, and two identical
 * ghost buttons with no hierarchy.
 *
 * Rebuilt on the landing-page vocabulary: paper card, Lora numerals and
 * title, dashed-stitch rules, red reserved as the single accent, one solid
 * CTA. Strings are localised in inc/lms-i18n.php (the template is PHP, so
 * every label goes through gettext).
 *
 * Scoped to `.masterstudy-single-course-complete`: the popup and the inline
 * progress pill on the course page.
 * ------------------------------------------------------------------ */

/* --- 16.1 Card + entrance ----------------------------------------- */
body.wp-child-theme-burda .masterstudy-single-course-complete{
  background:rgba(23,17,14,.5);
  backdrop-filter:blur(3px);
  transition:opacity .22s ease,visibility .22s ease;
  padding:20px;
}
/* MasterStudy slides the card a full viewport height from below (translateY
 * 100% over .4s), which reads as a mobile action sheet and overshoots badly
 * on desktop. Replace with the site's short rise + settle. */
body.wp-child-theme-burda .masterstudy-single-course-complete__wrapper{
  width:min(560px,100%);
  /* MasterStudy stretches the dialog to `height:100%` below 576px, which left
     a third of the card empty under the buttons on a phone. Size to content;
     the max-height still caps it. */
  height:auto;
  max-height:min(700px,calc(100vh - 40px));
  background:#fff;
  border:1px solid var(--ms-line);
  border-radius:8px;
  box-shadow:0 26px 60px -34px rgba(23,17,14,.45);
  transform:translateY(16px) scale(.985);
  opacity:0;
  transition:transform .32s cubic-bezier(.2,.7,.2,1),opacity .26s ease;
}
body.wp-child-theme-burda .masterstudy-single-course-complete_active .masterstudy-single-course-complete__wrapper{
  transform:translateY(0) scale(1);
  opacity:1;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__container{
  padding:clamp(26px,4vw,44px);
  text-align:center;
}

/* Close: MasterStudy's 25px puck is below the 44px touch target this school's
 * students need, and its grey sits outside the palette. */
body.wp-child-theme-burda .masterstudy-single-course-complete__close{
  width:38px;
  height:38px;
  top:14px;
  right:14px;
  background:var(--ms-wash);
  border:1px solid var(--ms-line);
  transition:background .18s ease,border-color .18s ease;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__close::after{
  color:var(--ms-muted);
  font-size:11px;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__close:hover{
  background:rgba(226,0,26,.07);
  border-color:var(--ms-primary);
}
body.wp-child-theme-burda .masterstudy-single-course-complete__close:hover::after{
  color:var(--ms-primary);
}
body.wp-child-theme-burda .masterstudy-single-course-complete__close:focus-visible{
  outline:3px solid var(--ms-primary-ink);
  outline-offset:2px;
}

/* --- 16.2 Head --------------------------------------------------
 * The courses are reading material for lessons at school, so there is no
 * score: one centred stack of check, «Kurss ir pabeigts!» and the course
 * title (template override stm-lms-templates/components/course/complete.php).
 * The top padding keeps the close button clear of the stack on a phone. */
body.wp-child-theme-burda .masterstudy-single-course-complete__container{
  padding-top:64px;
}
body.wp-child-theme-burda .bz-complete-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  margin-bottom:6px;
}
body.wp-child-theme-burda .bz-complete-head__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  border-radius:50%;
  background:rgba(226,0,26,.08);
}
body.wp-child-theme-burda .bz-complete-head__icon::after{
  content:"";
  width:26px;
  height:26px;
  background:var(--ms-primary);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
/* Not finished yet: neutral disc with an exclamation, not a celebration. */
body.wp-child-theme-burda .bz-complete-head_open .bz-complete-head__icon{
  background:rgba(23,17,14,.06);
}
body.wp-child-theme-burda .bz-complete-head_open .bz-complete-head__icon::after{
  background:var(--ms-muted);
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v9m0 3.5v.01' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v9m0 3.5v.01' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
body.wp-child-theme-burda .bz-complete-head__title{
  margin:0;
  font-family:"Lora",Georgia,serif;
  font-size:clamp(1.5rem,5.5vw,1.9rem);
  font-weight:600;
  line-height:1.15;
  letter-spacing:-.01em;
  color:var(--ms-ink);
}

/* --- 16.3 Course title ------------------------------------------- */
/* The course name sits under the heading as a quiet sans line. The blanket
 * serif rules for `[class*="masterstudy-"] h2` and `[class*="__title"]` are
 * more specific, hence the selector and the !important on font and colour. */
body.wp-child-theme-burda .masterstudy-single-course-complete h2.masterstudy-single-course-complete__title{
  font-family:"Archivo",system-ui,sans-serif !important;
  font-size:1.05rem;
  font-weight:500;
  line-height:1.4;
  color:var(--ms-muted) !important;
  max-width:420px;
  margin:4px auto 22px;
}

/* --- 16.4 Curriculum tally ----------------------------------------
 * Was a 240px column of centred rows divided by grey hairlines. Widened to
 * a readable ledger with the site's dashed-stitch rules, label left / value
 * right, and the plugin's multi-coloured icon set flattened to ink so the
 * only colour left in the card is the check and the main button. */
body.wp-child-theme-burda .masterstudy-single-course-complete__curiculum-statistic{
  max-width:340px;
  margin:0 auto 30px;
  text-align:left;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__curiculum-statistic-item.show-item{
  height:auto;
  padding:13px 2px;
  border-top:2px dashed var(--ms-stitch);
  gap:10px;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__curiculum-statistic-item img{
  margin-right:0;
  filter:grayscale(1) brightness(.45);
  opacity:.75;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__curiculum-statistic-item > span{
  display:flex;
  width:100%;
  justify-content:space-between;
  align-items:baseline;
  gap:12px;
  color:var(--ms-muted) !important;
  font-size:.95rem;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__curiculum-statistic-item strong{
  color:var(--ms-ink) !important;
  font-variant-numeric:lining-nums tabular-nums;
}

/* --- 16.5 Actions -------------------------------------------------
 * Both buttons ship as `tertiary`, so the popup offered two identical ghosts
 * and no answer to "what now?". The main action gets the site's solid CTA. */
body.wp-child-theme-burda .masterstudy-single-course-complete__buttons{
  gap:12px;
  flex-wrap:wrap;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__buttons .masterstudy-button{
  border-radius:2px !important;
  height:48px;
  padding:0 26px;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__buttons .masterstudy-button__title{
  font-weight:700;
  font-size:.95rem;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__buttons [data-id="gotit"]{
  background:var(--ms-primary) !important;
  border-color:var(--ms-primary) !important;
  box-shadow:0 12px 26px -12px rgba(226,0,26,.65);
}
body.wp-child-theme-burda .masterstudy-single-course-complete__buttons [data-id="gotit"] .masterstudy-button__title{
  color:#fff !important;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__buttons [data-id="gotit"]:hover{
  background:var(--ms-primary-ink) !important;
  border-color:var(--ms-primary-ink) !important;
  transform:translateY(-2px);
  box-shadow:0 18px 32px -12px rgba(226,0,26,.7);
}
/* «Sertifikāts» (opens Mani dokumenti) is the primary action: solid red,
 * and «Atvērt kursu» drops to the ghost so the card never shows two reds. */
body.wp-child-theme-burda .masterstudy-single-course-complete__buttons .bz-certificate-btn{
  background:var(--ms-primary) !important;
  border-color:var(--ms-primary) !important;
  box-shadow:0 12px 26px -12px rgba(226,0,26,.65);
}
body.wp-child-theme-burda .masterstudy-single-course-complete__buttons .bz-certificate-btn .masterstudy-button__title{
  color:#fff !important;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__buttons .bz-certificate-btn:hover{
  background:var(--ms-primary-ink) !important;
  border-color:var(--ms-primary-ink) !important;
  transform:translateY(-2px);
}
body.wp-child-theme-burda .masterstudy-single-course-complete__buttons:has(.bz-certificate-btn) [data-id="gotit"]{
  background:transparent !important;
  border:2px solid var(--ms-ink) !important;
  box-shadow:none;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__buttons:has(.bz-certificate-btn) [data-id="gotit"] .masterstudy-button__title{
  color:var(--ms-ink) !important;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__buttons:has(.bz-certificate-btn) [data-id="gotit"]:hover{
  background:var(--ms-ink) !important;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__buttons:has(.bz-certificate-btn) [data-id="gotit"]:hover .masterstudy-button__title{
  color:var(--ms-wash) !important;
}
@media (max-width:460px){
  body.wp-child-theme-burda .masterstudy-single-course-complete__buttons{
    flex-direction:column;
  }
  body.wp-child-theme-burda .masterstudy-single-course-complete__buttons .masterstudy-button{
    width:100%;
  }
}

/* --- 16.6 Loading state ------------------------------------------- */
body.wp-child-theme-burda .masterstudy-single-course-complete__loading{
  font-family:"Lora",Georgia,serif;
  font-size:1.25rem;
  font-weight:600;
  color:var(--ms-ink);
  padding-top:14px;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__loading::before{
  border-color:var(--ms-primary);
}

/* --- 16.8 Inline progress pill on the course page ----------------- */
body.wp-child-theme-burda .masterstudy-single-course-complete-block{
  background:var(--ms-wash);
  border:1px solid var(--ms-line);
  border-radius:8px;
}
body.wp-child-theme-burda .masterstudy-single-course-complete-block__title{
  font-family:"Lora",Georgia,serif;
  color:var(--ms-ink);
}
body.wp-child-theme-burda .masterstudy-single-course-complete-block__icon{
  border:1px solid var(--ms-line);
}
body.wp-child-theme-burda .masterstudy-single-course-complete-block__details{
  border-radius:2px;
  background:var(--ms-primary);
  transition:background .18s ease;
}
body.wp-child-theme-burda .masterstudy-single-course-complete-block__details:hover{
  background:var(--ms-primary-ink);
}

/* --- 16.9 Dark mode + reduced motion ------------------------------
 * The player has its own dark-mode toggle; without these the card would stay
 * white paper inside a dark player. */
body.wp-child-theme-burda .masterstudy-course-player-content_dark-mode .masterstudy-single-course-complete__wrapper,
body.wp-child-theme-burda .masterstudy-course-player-content_dark-mode .masterstudy-single-course-complete__review-form{
  background:#1E1E1E;
  border-color:rgba(255,255,255,.1);
}
body.wp-child-theme-burda .masterstudy-course-player-content_dark-mode .masterstudy-single-course-complete__title,
body.wp-child-theme-burda .masterstudy-course-player-content_dark-mode .masterstudy-single-course-complete__review-title,
body.wp-child-theme-burda .masterstudy-course-player-content_dark-mode .masterstudy-single-course-complete__curiculum-statistic-item strong{
  color:#fff !important;
}
body.wp-child-theme-burda .masterstudy-course-player-content_dark-mode .masterstudy-single-course-complete__curiculum-statistic-item.show-item{
  border-top-color:rgba(255,255,255,.12);
}
body.wp-child-theme-burda .masterstudy-course-player-content_dark-mode .masterstudy-single-course-complete__curiculum-statistic-item img{
  filter:grayscale(1) brightness(2.2);
}
body.wp-child-theme-burda .masterstudy-course-player-content_dark-mode .masterstudy-single-course-complete__buttons [data-id="leave_review"]{
  border-color:rgba(255,255,255,.35) !important;
}
body.wp-child-theme-burda .masterstudy-course-player-content_dark-mode .masterstudy-single-course-complete__buttons [data-id="leave_review"] .masterstudy-button__title{
  color:#fff !important;
}

@media (prefers-reduced-motion:reduce){
  body.wp-child-theme-burda .masterstudy-single-course-complete__wrapper{
    transition:opacity .2s ease;
    transform:none;
  }
  body.wp-child-theme-burda .masterstudy-single-course-complete_active .masterstudy-single-course-complete__wrapper{
    transform:none;
  }
  body.wp-child-theme-burda .masterstudy-single-course-complete__buttons .masterstudy-button:hover{
    transform:none;
  }
  body.wp-child-theme-burda .masterstudy-single-course-complete__loading::before{
    animation:none;
  }
}

/* --- 16.10 Review editor (WordPress TinyMCE inside the popup) ------
 * `components/wp-editor` drops a stock TinyMCE into the dialog, so the one
 * place a student writes free text arrived in WordPress admin-grey with
 * MasterStudy's blue chrome — and a 250px-tall frame that pushed the actions
 * off screen on a laptop. Restyled to the card's own paper vocabulary. */
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-editor .mce-tinymce{
  border:1px solid var(--ms-line) !important;
  border-radius:4px;
  box-shadow:none !important;
  overflow:hidden;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-editor .mce-top-part,
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-editor .mce-toolbar-grp,
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-editor .mce-toolbar{
  background:var(--ms-wash) !important;
  border:0 !important;
  border-bottom:1px solid var(--ms-line) !important;
  box-shadow:none !important;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-editor .mce-btn{
  background:transparent !important;
  border:0 !important;
  border-radius:2px;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-editor .mce-btn:hover,
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-editor .mce-btn.mce-active{
  background:rgba(226,0,26,.08) !important;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-editor .mce-ico{
  color:var(--ms-ink) !important;
}
/* MasterStudy draws a second, blue-grey 2px frame around the iframe itself and
 * offsets it 5px — a box inside a box. The `.mce-tinymce` border above is the
 * only edge this field needs. */
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-editor .mce-edit-area{
  border:0 !important;
  margin:0 !important;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-editor .mce-edit-area iframe{
  border:0 !important;
  border-radius:0 !important;
}
/* The live word counter is MasterStudy's own, appended by JS with a single
 * hardcoded plural — Latvian needs three (0 vārdu / 1 vārds / 5 vārdi), so any
 * fixed form is wrong for most counts. It tells a student writing two
 * sentences nothing, so it is dropped here rather than shown ungrammatically.
 * (`words` is still translated in inc/lms-i18n.php for the instructor
 * surfaces, where the counter earns its place.) */
body.wp-child-theme-burda .masterstudy-single-course-complete .masterstudy-wp-editor__word-count{
  display:none !important;
}
/* MasterStudy forces 250px; with the toolbar, stars and actions that made the
 * dialog taller than a 13" viewport. */
body.wp-child-theme-burda .masterstudy-single-course-complete #editor_add_review_complete_popup_ifr{
  height:150px !important;
}
/* Back button: a pale-pink chip next to a solid CTA read as a disabled
 * button. Same ghost as the first screen, one size down. */
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-actions [data-id*="review-back"]{
  background:transparent !important;
  border:2px solid var(--ms-ink) !important;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-actions [data-id*="review-back"] .masterstudy-button__title{
  color:var(--ms-ink) !important;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-actions [data-id*="review-back"]:hover{
  background:var(--ms-ink) !important;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__review-form-actions [data-id*="review-back"]:hover .masterstudy-button__title{
  color:var(--ms-wash) !important;
}
/* Stars are the rating input — make the target obvious before it is clicked. */
body.wp-child-theme-burda .masterstudy-single-course-complete__review-rating{
  padding:12px 22px;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__review-rating span{
  transition:transform .12s ease;
}
body.wp-child-theme-burda .masterstudy-single-course-complete__review-rating span:hover{
  transform:scale(1.12);
}

/* --- 17. Course player: curriculum sidebar ------------------------
 * The student's main navigation while learning, and still in MasterStudy's
 * palette: an #eef1f7 rail, #4d5e6f slate section bands (dark enough that the
 * ink title on them failed contrast), a lavender current-lesson row and the
 * plugin's green/blue lesson-type icons. Repainted onto paper. */
body.wp-child-theme-burda .masterstudy-course-player-curriculum{
  background:var(--ms-wash);
  border-right:1px solid var(--ms-line);
}
body.wp-child-theme-burda .masterstudy-course-player-curriculum__title{
  font-family:"Lora",Georgia,serif;
  color:var(--ms-ink);
}
/* Section bands → light, with the stitch rule doing the separating. */
body.wp-child-theme-burda .masterstudy-curriculum-accordion__section{
  background:#fff !important;
  border-top:1px solid var(--ms-line);
  border-bottom:1px solid var(--ms-line);
}
body.wp-child-theme-burda .masterstudy-curriculum-accordion__section-title{
  font-family:"Lora",Georgia,serif;
  color:var(--ms-ink) !important;
}
body.wp-child-theme-burda .masterstudy-curriculum-accordion__section-count{
  color:var(--ms-muted) !important;
  font-variant-numeric:lining-nums tabular-nums;
}
body.wp-child-theme-burda .masterstudy-curriculum-accordion__toggler-icon{
  filter:grayscale(1) brightness(.5);
}
/* Lesson rows: paper, with the current lesson marked by a red spine on a warm
 * wash rather than MasterStudy's lavender fill. */
body.wp-child-theme-burda .masterstudy-curriculum-accordion__item{
  background:#fff;
}
body.wp-child-theme-burda .masterstudy-curriculum-accordion__link{
  border-bottom:1px dashed var(--ms-line);
}
body.wp-child-theme-burda .masterstudy-curriculum-accordion__link:hover{
  background:var(--ms-wash);
}
body.wp-child-theme-burda .masterstudy-curriculum-accordion__link_current{
  background:rgba(226,0,26,.05) !important;
  box-shadow:inset 3px 0 0 var(--ms-primary);
}
body.wp-child-theme-burda .masterstudy-curriculum-accordion__title{
  color:var(--ms-ink);
}
/* Lesson-type icons ship one colour per type (green text, blue quiz …) —
 * four accents competing with the brand's one. Flattened to ink, as in the
 * completion popup. */
body.wp-child-theme-burda .masterstudy-curriculum-accordion__meta-wrapper img,
body.wp-child-theme-burda .masterstudy-curriculum-accordion__icon{
  filter:grayscale(1) brightness(.45);
  opacity:.7;
}
body.wp-child-theme-burda .masterstudy-curriculum-accordion__meta-wrapper span{
  color:var(--ms-muted);
}
/* Progress rail (player sidebar and course cards share this component). */
body.wp-child-theme-burda .masterstudy-progress__bar-empty{
  border-bottom-color:var(--ms-line) !important;
}
body.wp-child-theme-burda .masterstudy-progress__bar-filled{
  border-bottom-color:var(--ms-primary) !important;
}
body.wp-child-theme-burda .masterstudy-progress__title,
body.wp-child-theme-burda .masterstudy-progress__percent{
  color:var(--ms-muted);
  font-size:.9rem;
}

/* --- 18. Course cards (account + catalog) -------------------------
 * The card is the school's shop window inside the LMS. Three problems:
 * a blue-wash meta strip, a solid red "Pabeigts" button that reads as a call
 * to action when it is a status, and — for any course without a featured
 * image — an empty <img src=""> rendering as a broken-image icon.
 * ------------------------------------------------------------------ */
body.wp-child-theme-burda .masterstudy-course-card__meta{
  background:var(--ms-wash) !important;
  border:1px solid var(--ms-line);
  border-radius:4px;
}
body.wp-child-theme-burda .masterstudy-course-card__meta-block span{
  color:var(--ms-muted) !important;
}
body.wp-child-theme-burda .masterstudy-course-card__meta-block i::before{
  color:var(--ms-muted) !important;
}
body.wp-child-theme-burda .masterstudy-course-card__progress-title{
  color:var(--ms-muted);
  font-size:.85rem;
}
body.wp-child-theme-burda .masterstudy-course-card__start-time{
  color:var(--ms-muted);
  font-size:.85rem;
}
body.wp-child-theme-burda .masterstudy-course-card__info-title h3{
  font-family:"Lora",Georgia,serif;
}
/* A finished course offers nothing to click — state it, don't sell it. */
body.wp-child-theme-burda .masterstudy-course-card [data-id="completed"],
body.wp-child-theme-burda .masterstudy-course-card__button_completed,
body.wp-child-theme-burda .masterstudy-course-card .masterstudy-button_style-primary[href="#"]{
  background:var(--ms-wash) !important;
  border:1px solid var(--ms-line) !important;
  box-shadow:none !important;
}
body.wp-child-theme-burda .masterstudy-course-card [data-id="completed"] .masterstudy-button__title,
body.wp-child-theme-burda .masterstudy-course-card__button_completed .masterstudy-button__title{
  color:var(--ms-muted) !important;
}
/* The demoted "open course" action (see the start-course filter in
 * inc/lms-i18n.php) — MasterStudy's secondary style carries no border, so
 * without this it collapses into a bare text link beside a solid CTA. */
body.wp-child-theme-burda .masterstudy-course-card .masterstudy-button_style-secondary{
  border:1.5px solid var(--ms-line) !important;
  border-radius:2px !important;
}
body.wp-child-theme-burda .masterstudy-course-card .masterstudy-button_style-secondary .masterstudy-button__title{
  color:var(--ms-ink) !important;
}
body.wp-child-theme-burda .masterstudy-course-card .masterstudy-button_style-secondary:hover{
  border-color:var(--ms-ink) !important;
  background:var(--ms-ink) !important;
}
body.wp-child-theme-burda .masterstudy-course-card .masterstudy-button_style-secondary:hover .masterstudy-button__title{
  color:var(--ms-wash) !important;
}

/* Courses with no featured image: MasterStudy prints `<img src="">`, which the
 * browser draws as a broken-image glyph. Hide it and give the frame a paper
 * placeholder carrying the school's own spool glyph, so an un-illustrated
 * course still looks deliberate. */
body.wp-child-theme-burda .masterstudy-course-card__image-link img[src=""],
body.wp-child-theme-burda .masterstudy-course-card__image-link img:not([src]),
body.wp-child-theme-burda .stm_lms_courses__single--image__container img[src=""],
body.wp-child-theme-burda .stm_lms_courses__single--image__container img:not([src]),
body.wp-child-theme-burda .masterstudy-student-course-card__image-link img[src=""],
body.wp-child-theme-burda .masterstudy-student-course-card__image-link img:not([src]),
body.wp-child-theme-burda .masterstudy-lazyload-image img[data-src=""]{
  display:none !important;
}
/* The catalog uses the older `stm_lms_courses__single` card, so it needs the
 * same treatment under its own class names. */
body.wp-child-theme-burda .stm_lms_courses__single--image__container:has(img[src=""]),
body.wp-child-theme-burda .stm_lms_courses__single--image__container:has(img:not([src])),
body.wp-child-theme-burda .masterstudy-course-card__image-link:has(img[src=""]),
body.wp-child-theme-burda .masterstudy-course-card__image-link:has(img:not([src])),
body.wp-child-theme-burda .masterstudy-course-card__image-link:has(img[data-src=""]){
  display:flex;
  align-items:center;
  justify-content:center;
  /* The <img> was the only thing giving these frames a size — without an
   * explicit width the placeholder collapses to the glyph. */
  width:100%;
  aspect-ratio:330/185;
  background:
    repeating-linear-gradient(135deg,rgba(226,0,26,.03) 0 12px,transparent 12px 24px),
    var(--ms-wash);
  border-bottom:1px solid var(--ms-line);
}
body.wp-child-theme-burda .stm_lms_courses__single--image__container:has(img[src=""])::after,
body.wp-child-theme-burda .stm_lms_courses__single--image__container:has(img:not([src]))::after,
body.wp-child-theme-burda .masterstudy-course-card__image-link:has(img[src=""])::after,
body.wp-child-theme-burda .masterstudy-course-card__image-link:has(img:not([src]))::after,
body.wp-child-theme-burda .masterstudy-course-card__image-link:has(img[data-src=""])::after{
  content:"";
  /* The catalog card already has an absolutely-positioned `::after` (its hover
   * veil), so ours inherits `position:absolute` and ignores the flex centring
   * unless it is put back in flow. */
  position:relative !important;
  inset:auto !important;
  width:56px;
  height:56px;
  background:var(--ms-stitch);
  -webkit-mask:url("img/icons/spool.png") center/contain no-repeat;
  mask:url("img/icons/spool.png") center/contain no-repeat;
}

/* The subscription badge ("Members only", with MasterStudy's green tick) rides
 * on the membership addon. This school sells no memberships and no
 * subscriptions — course fees are invoiced (see CLAUDE.md) — so the badge
 * states a restriction that does not exist, in English, in a palette we do not
 * use. Hidden alongside the other modules outside the school's model above.
 * Remove this rule if memberships are ever switched on. */
body.wp-child-theme-burda .course_available_only_in_subscription{
  display:none !important;
}

/* --- 19. Public teacher / student profile -------------------------
 * Linked from every course page ("Pasniedzējs: …"), so it is the school's
 * public face for its staff — and it rendered as a bare MasterStudy panel with
 * a Gravatar silhouette. (The avatar itself is replaced with a local branded
 * placeholder in inc/portal.php, which also stops the Gravatar request.)
 * ------------------------------------------------------------------ */
body.wp-child-theme-burda .masterstudy-instructor-public__info,
body.wp-child-theme-burda .masterstudy-student-public__info{
  background:#fff;
  border:1px solid var(--ms-line);
  border-radius:8px;
  box-shadow:0 18px 40px -28px rgba(23,17,14,.35);
}
body.wp-child-theme-burda .masterstudy-instructor-public__name,
body.wp-child-theme-burda .masterstudy-student-public__name{
  font-family:"Lora",Georgia,serif;
  color:var(--ms-ink);
}
body.wp-child-theme-burda .masterstudy-instructor-public__position,
body.wp-child-theme-burda .masterstudy-instructor-public__member{
  color:var(--ms-muted);
}
body.wp-child-theme-burda .masterstudy-instructor-public__stats-value{
  font-family:"Lora",Georgia,serif;
  font-size:1.35rem;
  color:var(--ms-ink);
}
body.wp-child-theme-burda .masterstudy-instructor-public__stats-label{
  color:var(--ms-muted);
}
/* The avatar is a plain <img>; the stitched ring ties it to the brand. */
body.wp-child-theme-burda .masterstudy-instructor-public img.avatar,
body.wp-child-theme-burda .masterstudy-student-public img.avatar,
body.wp-child-theme-burda .masterstudy-account-profile img.avatar{
  border-radius:50%;
  background:var(--ms-wash);
}
/* Tab pills: match the site's button shape rather than MasterStudy's capsule. */
body.wp-child-theme-burda .masterstudy-tabs_style-buttons .masterstudy-tabs__item{
  border-radius:2px !important;
  font-weight:600;
  padding:10px 20px;
  transition:background .18s ease,color .18s ease;
}
body.wp-child-theme-burda .masterstudy-tabs__item:not(.masterstudy-tabs__item_active):hover{
  background:rgba(226,0,26,.07) !important;
  color:var(--ms-primary-ink) !important;
}

/* Student profile: the completed-courses list and its pager. */
body.wp-child-theme-burda .masterstudy-student-course-card{
  border:1px solid var(--ms-line);
  border-radius:8px;
}
body.wp-child-theme-burda .masterstudy-student-course-card__title{
  font-family:"Lora",Georgia,serif;
  color:var(--ms-ink);
}
body.wp-child-theme-burda .masterstudy-student-course-card__info-block span{
  color:var(--ms-muted);
}
body.wp-child-theme-burda .masterstudy-student-public__list-pagination a,
body.wp-child-theme-burda .masterstudy-student-public__list-pagination span,
body.wp-child-theme-burda .masterstudy-pagination__item{
  border-radius:2px !important;
}
/* The stat rows next to the avatar (courses completed / quizzes). */
body.wp-child-theme-burda .masterstudy-student-public__statistic-title,
body.wp-child-theme-burda .masterstudy-student-public__statistic-label{
  color:var(--ms-muted);
}
body.wp-child-theme-burda .masterstudy-student-public__statistic-value{
  font-family:"Lora",Georgia,serif;
  color:var(--ms-ink);
}

/* The student profile lists courses as rows, not tiles: its thumbnail is a
 * fixed-size cell beside the title, so it needs the placeholder at thumbnail
 * scale — stretching it to full width (as the grid cards want) swallowed the
 * whole row. */
body.wp-child-theme-burda .masterstudy-student-course-card__image-link:has(img[src=""]),
body.wp-child-theme-burda .masterstudy-student-course-card__image-link:has(img:not([src])){
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:96px;
  height:64px;
  border-radius:4px;
  background:
    repeating-linear-gradient(135deg,rgba(226,0,26,.03) 0 12px,transparent 12px 24px),
    var(--ms-wash);
  border:1px solid var(--ms-line);
}
body.wp-child-theme-burda .masterstudy-student-course-card__image-link:has(img[src=""])::after,
body.wp-child-theme-burda .masterstudy-student-course-card__image-link:has(img:not([src]))::after{
  content:"";
  position:relative;
  width:30px;
  height:30px;
  background:var(--ms-stitch);
  -webkit-mask:url("img/icons/spool.png") center/contain no-repeat;
  mask:url("img/icons/spool.png") center/contain no-repeat;
}

/* --- 20. Share dialog ---------------------------------------------
 * MasterStudy paints each network in its own brand colour, so the dialog
 * arrived with six competing accents — Facebook blue, Twitter black, LinkedIn
 * blue, Telegram blue, WhatsApp green, a slate "copy" — inside a school whose
 * whole LMS uses exactly one. The glyphs are icon-font characters, so their
 * silhouettes stay recognisable without the fills; the tiles become paper and
 * the brand accent marks the one you are pointing at.
 * ------------------------------------------------------------------ */
body.wp-child-theme-burda .masterstudy-single-course-share-button-modal__wrapper{
  background:#fff;
  border:1px solid var(--ms-line);
  border-radius:8px;
  box-shadow:0 26px 60px -34px rgba(23,17,14,.45);
}
body.wp-child-theme-burda .masterstudy-single-course-share-button-modal__container{
  padding:clamp(22px,3vw,30px);
}
body.wp-child-theme-burda .masterstudy-single-course-share-button-modal__header-title{
  font-family:"Lora",Georgia,serif;
  font-weight:600;
  font-size:1.3rem;
  line-height:1.2;
  color:var(--ms-ink);
}
body.wp-child-theme-burda .masterstudy-single-course-share-button-modal__close{
  width:38px;
  height:38px;
  top:18px;
  right:18px;
  background:var(--ms-wash);
  border:1px solid var(--ms-line);
  transition:background .18s ease,border-color .18s ease;
}
body.wp-child-theme-burda .masterstudy-single-course-share-button-modal__close:hover{
  background:rgba(226,0,26,.07);
  border-color:var(--ms-primary);
}
body.wp-child-theme-burda .masterstudy-single-course-share-button-modal__close:focus-visible{
  outline:3px solid var(--ms-primary-ink);
  outline-offset:2px;
}
/* One tile treatment for every network — including the per-network hover
 * shades, which are separate rules in the plugin. */
body.wp-child-theme-burda .masterstudy-single-course-share-button-modal a.masterstudy-single-course-share-button-modal__link,
body.wp-child-theme-burda .masterstudy-single-course-share-button-modal a.masterstudy-single-course-share-button-modal__link:hover{
  background:var(--ms-wash) !important;
  border:1px solid var(--ms-line);
  border-radius:2px;
  color:var(--ms-ink) !important;
  font-weight:600;
  padding:12px 15px;
  transition:border-color .18s ease,color .18s ease,background .18s ease;
}
body.wp-child-theme-burda .masterstudy-single-course-share-button-modal a.masterstudy-single-course-share-button-modal__link::before{
  color:var(--ms-ink) !important;
  transition:color .18s ease;
}
body.wp-child-theme-burda .masterstudy-single-course-share-button-modal a.masterstudy-single-course-share-button-modal__link:hover{
  background:rgba(226,0,26,.06) !important;
  border-color:var(--ms-primary);
  color:var(--ms-primary-ink) !important;
}
body.wp-child-theme-burda .masterstudy-single-course-share-button-modal a.masterstudy-single-course-share-button-modal__link:hover::before{
  color:var(--ms-primary) !important;
}
body.wp-child-theme-burda .masterstudy-single-course-share-button-modal a.masterstudy-single-course-share-button-modal__link:focus-visible{
  outline:3px solid var(--ms-primary-ink);
  outline-offset:2px;
}
/* The inline "share" row on the course page uses circular chips of the same
 * six colours. */
body.wp-child-theme-burda .masterstudy-single-course-share-button__link{
  background:var(--ms-wash) !important;
  border:1px solid var(--ms-line);
}
body.wp-child-theme-burda .masterstudy-single-course-share-button__link::before{
  color:var(--ms-ink) !important;
}
body.wp-child-theme-burda .masterstudy-single-course-share-button__link:hover{
  background:rgba(226,0,26,.07) !important;
  border-color:var(--ms-primary);
}
body.wp-child-theme-burda .masterstudy-single-course-share-button__link:hover::before{
  color:var(--ms-primary) !important;
}

/* --- 21. Single course page ---------------------------------------
 * The LMS course page is where a prospective student decides, and it was the
 * one page that still read as "an LMS plugin" rather than as this school: a
 * plain title, hairline panels and MasterStudy's grey label stack, with none
 * of the stitch/paper vocabulary the marketing pages establish two clicks
 * earlier. These rules carry that vocabulary across without touching layout.
 * ------------------------------------------------------------------ */
/* Category eyebrow, as on the landing pages. */
body.wp-child-theme-burda .masterstudy-single-course-categories a,
body.wp-child-theme-burda .masterstudy-single-course__category{
  font-size:.78rem;
  letter-spacing:.18em;
  text-transform:uppercase !important;
  font-weight:700;
  color:var(--ms-primary-ink) !important;
}
/* Title: the stitched rule under it is the motif that runs through the site. */
body.wp-child-theme-burda .masterstudy-single-course-title,
body.wp-child-theme-burda .masterstudy-single-course__title{
  display:block;
  font-family:"Lora",Georgia,serif;
  letter-spacing:-.01em;
}
/* The meta row under the title: MasterStudy leaves the three blocks
 * top-aligned and gives the instructor one a card, so an instructor, a count
 * and a rating sat at three different levels. One row, one level, no card —
 * the hairlines between them already do the separating. */
body.wp-child-theme-burda .masterstudy-single-course__info-block{
  align-items:center;
}
body.wp-child-theme-burda .masterstudy-single-course-instructor{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 18px 0 0 !important;
}
/* Info panel as a ledger: label left, value right, stitched separators —
 * the same table the completion popup uses, so the two read as one system. */
body.wp-child-theme-burda .masterstudy-single-course-details__title{
  font-family:"Lora",Georgia,serif;
  font-size:1.15rem;
  color:var(--ms-ink);
}
body.wp-child-theme-burda .masterstudy-single-course-details__item{
  border-top:2px dashed var(--ms-line);
  padding:12px 0;
}
body.wp-child-theme-burda .masterstudy-single-course-details__item:first-of-type{
  border-top:0;
}
body.wp-child-theme-burda .masterstudy-single-course-details__name{
  color:var(--ms-muted);
}
body.wp-child-theme-burda .masterstudy-single-course-details__quantity{
  color:var(--ms-ink);
  font-weight:700;
  font-variant-numeric:lining-nums tabular-nums;
}
body.wp-child-theme-burda .masterstudy-single-course-details__icon::before{
  color:var(--ms-muted) !important;
}
/* Instructor card + the counter beside it. */
body.wp-child-theme-burda .masterstudy-single-course-instructor-card,
body.wp-child-theme-burda .masterstudy-single-course-author{
  background:#fff;
  border:1px solid var(--ms-line);
  border-radius:8px;
}
body.wp-child-theme-burda .masterstudy-single-course-current-students__count{
  font-family:"Lora",Georgia,serif;
  font-size:1.35rem;
  color:var(--ms-ink);
  font-variant-numeric:lining-nums tabular-nums;
}
body.wp-child-theme-burda .masterstudy-single-course-current-students__title{
  color:var(--ms-muted);
}
/* Tabs: the stitched underline instead of MasterStudy's solid rule. */
body.wp-child-theme-burda .masterstudy-single-course-tabs__list{
  border-bottom:2px dashed var(--ms-line) !important;
}

/* --- 22. Parent-theme page title band ------------------------------
 * Pages with no template of ours (the student-portal pages) fall through to
 * the parent theme, which stamps a slate-blue banner with a centred title —
 * off-palette, and a duplicate: the portal shortcodes print their own heading
 * directly underneath. Hidden where a portal block is present; other plain
 * pages keep their banner, restyled onto paper. */
body.wp-child-theme-burda:has(.bs-portal) .entry-header,
body.wp-child-theme-burda:has(.bs-portal) .entry-title,
body.wp-child-theme-burda:has(.bs-portal) .entry-title-left,
body.wp-child-theme-burda:has(.bs-portal) .stm_lms_page_title,
body.wp-child-theme-burda:has(.bs-portal) .page_title_inner,
body.wp-child-theme-burda:has(.bs-portal) .titlebar{
  display:none !important;
}
body.wp-child-theme-burda .entry-header,
body.wp-child-theme-burda .entry-title,
body.wp-child-theme-burda .entry-title-left,
body.wp-child-theme-burda .titlebar{
  background:var(--ms-wash) !important;
  color:var(--ms-ink) !important;
}
body.wp-child-theme-burda .entry-title h1,
body.wp-child-theme-burda .entry-title-left h1,
body.wp-child-theme-burda .titlebar h1{
  font-family:"Lora",Georgia,serif;
  color:var(--ms-ink) !important;
  text-transform:none !important;
}

/* --- 23. Public single course page ---------------------------------
 * Labels next to the title block («Pasniedzējs», «Ilgums», «Dalīties») and the
 * teacher's name were caught by the section-1 `__title`/`__name` → Lora rule
 * and sat in a serif between Archivo neighbours. Lora stays for headings
 * (course title, «Kursa informācija»); small labels and buttons are Archivo,
 * and the button label is white on red like every other red CTA. */
body.wp-child-theme-burda .masterstudy-single-course-instructor__title,
body.wp-child-theme-burda .masterstudy-single-course-instructor__name,
body.wp-child-theme-burda .masterstudy-single-course-current-students__title,
body.wp-child-theme-burda .masterstudy-single-course-details__name,
body.wp-child-theme-burda .masterstudy-single-course-share-button__title,
body.wp-child-theme-burda .masterstudy-single-course-wishlist__title,
body.wp-child-theme-burda .masterstudy-buy-button__title{
  font-family:"Archivo",system-ui,sans-serif !important;
}
body.wp-child-theme-burda .masterstudy-single-course-instructor__title{ color:var(--ms-muted); font-size:.85rem; }
body.wp-child-theme-burda .masterstudy-single-course-instructor__name{ font-weight:600; }
body.wp-child-theme-burda .masterstudy-buy-button__title{
  color:#fff !important;
  font-weight:600;
  letter-spacing:.01em;
  text-transform:none;
}
/* Our own double top padding (.bz-lms + .stm-lms-wrapper) left ~110px of
 * blank paper above the eyebrow. */
body.wp-child-theme-burda.single-stm-courses .bz-lms .stm-lms-wrapper{ padding-top:0; }
/* Info blocks emptied by lms-course-page.php (no reviews, tiny student count)
 * would otherwise keep their divider lines. */
body.wp-child-theme-burda .masterstudy-single-course__info-block:not(:has(*)){ display:none; }
/* …and the last block still showing loses its right-hand divider. */
body.wp-child-theme-burda .masterstudy-single-course__info-block:not(:has(~ .masterstudy-single-course__info-block *)){ border-right:0; }
/* Cover image: the 3:2 artwork was cropped to 460px tall, cutting the
 * «burda» mark in its top corner. Show it whole. */
body.wp-child-theme-burda .masterstudy-single-course-description__image{
  max-height:none !important;
  height:auto !important;
  object-fit:contain !important;
}
/* Teacher initials (replaces the grey silhouette). */
body.wp-child-theme-burda .bz-course-ini{
  width:48px; height:48px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--ms-wash,#F5F0EA); color:var(--ms-ink); border:1px solid var(--ms-line,#E5DED6);
  font-family:"Lora",Georgia,serif; font-weight:600; font-size:1.05rem;
}
/* MasterStudy prints src="#" when a course has no picture; show a quiet
 * paper tile instead of the browser's broken-image icon. */
body.wp-child-theme-burda img[src="#"]{
  visibility:hidden;
}
body.wp-child-theme-burda :has(> img[src="#"]){
  background:var(--ms-wash,#F5F0EA);
}

/* Reading-only support material: no ratings, no pass/fail tab for students. */
.masterstudy-account .masterstudy-course-card__rating{display:none !important;}
.masterstudy-enrolled-courses-tabs__block:last-child{display:none !important;}
