/**
 * Full page homepage CSS for Moodle / Moove.
 *
 * This stylesheet is activated only on the Moodle site front page by
 * local_fullpagehome. Selectors are scoped with body.local-fullpagehome-active
 * to avoid affecting My courses, course pages, administration or reports.
 */

body.local-fullpagehome-active {
    overflow-x: hidden;
}

/* Remove the default framed Moodle layout around the frontpage content. */
body.local-fullpagehome-active #page,
body.local-fullpagehome-active #page-wrapper,
body.local-fullpagehome-active #page-content,
body.local-fullpagehome-active #region-main-box,
body.local-fullpagehome-active section#region-main,
body.local-fullpagehome-active div[role="main"],
body.local-fullpagehome-active .main-inner,
body.local-fullpagehome-active #page.drawers .main-inner,
body.local-fullpagehome-active .header-maxwidth,
body.local-fullpagehome-active .secondary-navigation .moremenu,
body.local-fullpagehome-active .drawer-toggles .drawer-toggler {
    max-width: none !important;
}

body.local-fullpagehome-active .main-inner,
body.local-fullpagehome-active #page.drawers .main-inner,
body.local-fullpagehome-active #page-content,
body.local-fullpagehome-active #region-main-box,
body.local-fullpagehome-active section#region-main,
body.local-fullpagehome-active div[role="main"] {
    width: 100% !important;
}

body.local-fullpagehome-active .main-inner,
body.local-fullpagehome-active #page.drawers .main-inner {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.local-fullpagehome-active #page-content,
body.local-fullpagehome-active #region-main-box,
body.local-fullpagehome-active section#region-main,
body.local-fullpagehome-active div[role="main"] {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Moove usually adds a white card around the main content. Remove only the
   immediate Moodle wrapper card so content cards/widgets inside the homepage
   can keep their own design. */
body.local-fullpagehome-remove-card section#region-main > .card,
body.local-fullpagehome-remove-card section#region-main > .card > .card-body,
body.local-fullpagehome-remove-card div[role="main"] > .card,
body.local-fullpagehome-remove-card div[role="main"] > .card > .card-body,
body.local-fullpagehome-remove-card .sitetopic > .card,
body.local-fullpagehome-remove-card .sitetopic > .card > .card-body {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Remove the Moodle page title area shown above the homepage content. */
body.local-fullpagehome-hide-title #page-header,
body.local-fullpagehome-hide-title header#page-header,
body.local-fullpagehome-hide-title .page-header-headings,
body.local-fullpagehome-hide-title .page-context-header,
body.local-fullpagehome-hide-title .page-header-image,
body.local-fullpagehome-hide-title .breadcrumb-nav,
body.local-fullpagehome-hide-title .page-navbar,
body.local-fullpagehome-hide-title .page-header-actions {
    display: none !important;
}

body.local-fullpagehome-hide-title .main-inner:before,
body.local-fullpagehome-hide-title .main-inner:after {
    display: none !important;
}

/* Keep Moodle editing usable: controls remain visible and clickable. */
body.local-fullpagehome-editing .activity-item,
body.local-fullpagehome-editing .section-modchooser,
body.local-fullpagehome-editing .editing_move,
body.local-fullpagehome-editing .actions,
body.local-fullpagehome-editing .dropdown-menu,
body.local-fullpagehome-editing .popover,
body.local-fullpagehome-editing .modal {
    z-index: auto;
}

body.local-fullpagehome-editing .modal,
body.local-fullpagehome-editing .modal-backdrop,
body.local-fullpagehome-editing .drawer,
body.local-fullpagehome-editing .dropdown-menu,
body.local-fullpagehome-editing .popover {
    z-index: 1050;
}

/* Optional compact mode for the course secondary navigation bar. Disabled by default. */
body.local-fullpagehome-compact-secondarynav .secondary-navigation {
    margin-bottom: 0 !important;
}

/* Common frontpage/course-section wrappers. */
body.local-fullpagehome-active .course-content,
body.local-fullpagehome-active .course-content ul,
body.local-fullpagehome-active .course-content .section,
body.local-fullpagehome-active .course-content .section.main,
body.local-fullpagehome-active .sitetopic,
body.local-fullpagehome-active .frontpage-course-list-all,
body.local-fullpagehome-active .frontpage-category-names,
body.local-fullpagehome-active .frontpage-course-list-enrolled {
    max-width: none !important;
    width: 100% !important;
}

body.local-fullpagehome-active .course-content,
body.local-fullpagehome-active .sitetopic {
    margin: 0 !important;
    padding: 0 !important;
}

body.local-fullpagehome-active .course-content .section.main,
body.local-fullpagehome-active .course-content .section.main > .content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Blocks and full-width HTML sections placed on the homepage can use this helper class. */
body.local-fullpagehome-active .local-fullpagehome-section,
body.local-fullpagehome-active .eurecat-home-section,
body.local-fullpagehome-active .p-marc-home-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Give editors a safe class to recover a normal centered section inside a full-width home. */
body.local-fullpagehome-active .local-fullpagehome-contained {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    body.local-fullpagehome-active .main-inner,
    body.local-fullpagehome-active #page.drawers .main-inner,
    body.local-fullpagehome-active #page-content,
    body.local-fullpagehome-active #region-main-box,
    body.local-fullpagehome-active section#region-main,
    body.local-fullpagehome-active div[role="main"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.local-fullpagehome-active .local-fullpagehome-contained {
        width: min(100%, calc(100% - 24px));
    }
}

/* Moodle 5.x / Moove extra wrappers observed on frontpage course rendering. */
body.local-fullpagehome-active #page.drawers,
body.local-fullpagehome-active #page-wrapper #page,
body.local-fullpagehome-active .drawercontent,
body.local-fullpagehome-active .drawers .main-inner,
body.local-fullpagehome-active #topofscroll,
body.local-fullpagehome-active .main-inner > .container,
body.local-fullpagehome-active .main-inner > .container-fluid,
body.local-fullpagehome-active #page-content > .container,
body.local-fullpagehome-active #page-content > .container-fluid {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.local-fullpagehome-hide-title #page-header .w-100,
body.local-fullpagehome-hide-title #page-header .card,
body.local-fullpagehome-hide-title .header-heading,
body.local-fullpagehome-hide-title .page-header,
body.local-fullpagehome-hide-title .page-header-title,
body.local-fullpagehome-hide-title .page-header-headings h1,
body.local-fullpagehome-hide-title h1.h2,
body.local-fullpagehome-hide-title h1.header-heading {
    display: none !important;
}

body.local-fullpagehome-active #page-header,
body.local-fullpagehome-active header#page-header {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
}

body.local-fullpagehome-remove-card #region-main > .card,
body.local-fullpagehome-remove-card #region-main > .card > .card-body,
body.local-fullpagehome-remove-card #region-main .sitetopic > .section,
body.local-fullpagehome-remove-card #region-main .course-section,
body.local-fullpagehome-remove-card #region-main .course-section .section-item,
body.local-fullpagehome-remove-card #region-main .section.main,
body.local-fullpagehome-remove-card #region-main .section.main > .content,
body.local-fullpagehome-remove-card #region-main .generalbox,
body.local-fullpagehome-remove-card #region-main .course-content .single-section {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.local-fullpagehome-remove-card #region-main > .card,
body.local-fullpagehome-remove-card #region-main > .card > .card-body,
body.local-fullpagehome-remove-card #region-main .sitetopic,
body.local-fullpagehome-remove-card #region-main .course-section,
body.local-fullpagehome-remove-card #region-main .course-section .section-item,
body.local-fullpagehome-remove-card #region-main .section.main,
body.local-fullpagehome-remove-card #region-main .section.main > .content,
body.local-fullpagehome-remove-card #region-main .course-content .single-section {
    margin: 0 !important;
    padding: 0 !important;
}

body.local-fullpagehome-compact-secondarynav .secondary-navigation,
body.local-fullpagehome-compact-secondarynav #page-navbar,
body.local-fullpagehome-compact-secondarynav .moremenu.navigation {
    margin-bottom: 0 !important;
}

/*
 * v1.0.2 fallback for Moodle 5.x + Moove sites where the new output hooks or
 * legacy callbacks load the stylesheet but the PHP body classes are not yet
 * present. These rules are restricted to the Moodle frontpage body classes
 * observed in Moodle 5.2/Moove: pagelayout-frontpage + path-site.
 */
body.pagelayout-frontpage.path-site {
    overflow-x: hidden;
}

body.pagelayout-frontpage.path-site #page,
body.pagelayout-frontpage.path-site #page-wrapper,
body.pagelayout-frontpage.path-site #page-content,
body.pagelayout-frontpage.path-site #region-main-box,
body.pagelayout-frontpage.path-site section#region-main,
body.pagelayout-frontpage.path-site div[role="main"],
body.pagelayout-frontpage.path-site .main-inner,
body.pagelayout-frontpage.path-site #page.drawers .main-inner,
body.pagelayout-frontpage.path-site .header-maxwidth,
body.pagelayout-frontpage.path-site .secondary-navigation .moremenu,
body.pagelayout-frontpage.path-site .drawer-toggles .drawer-toggler,
body.pagelayout-frontpage.path-site #topofscroll,
body.pagelayout-frontpage.path-site .main-inner > .container,
body.pagelayout-frontpage.path-site .main-inner > .container-fluid,
body.pagelayout-frontpage.path-site #page-content > .container,
body.pagelayout-frontpage.path-site #page-content > .container-fluid {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.pagelayout-frontpage.path-site .main-inner,
body.pagelayout-frontpage.path-site #page.drawers .main-inner,
body.pagelayout-frontpage.path-site #page-content,
body.pagelayout-frontpage.path-site #region-main-box,
body.pagelayout-frontpage.path-site section#region-main,
body.pagelayout-frontpage.path-site div[role="main"] {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.pagelayout-frontpage.path-site #page-header,
body.pagelayout-frontpage.path-site header#page-header,
body.pagelayout-frontpage.path-site .page-header-headings,
body.pagelayout-frontpage.path-site .page-context-header,
body.pagelayout-frontpage.path-site .page-header-image,
body.pagelayout-frontpage.path-site .breadcrumb-nav,
body.pagelayout-frontpage.path-site .page-navbar,
body.pagelayout-frontpage.path-site .page-header-actions,
body.pagelayout-frontpage.path-site .header-heading,
body.pagelayout-frontpage.path-site .page-header,
body.pagelayout-frontpage.path-site .page-header-title,
body.pagelayout-frontpage.path-site .page-header-headings h1,
body.pagelayout-frontpage.path-site h1.h2,
body.pagelayout-frontpage.path-site h1.header-heading {
    display: none !important;
}

body.pagelayout-frontpage.path-site section#region-main > .card,
body.pagelayout-frontpage.path-site section#region-main > .card > .card-body,
body.pagelayout-frontpage.path-site div[role="main"] > .card,
body.pagelayout-frontpage.path-site div[role="main"] > .card > .card-body,
body.pagelayout-frontpage.path-site .sitetopic > .card,
body.pagelayout-frontpage.path-site .sitetopic > .card > .card-body,
body.pagelayout-frontpage.path-site #region-main > .card,
body.pagelayout-frontpage.path-site #region-main > .card > .card-body,
body.pagelayout-frontpage.path-site #region-main .sitetopic > .section,
body.pagelayout-frontpage.path-site #region-main .course-section,
body.pagelayout-frontpage.path-site #region-main .course-section .section-item,
body.pagelayout-frontpage.path-site #region-main .section.main,
body.pagelayout-frontpage.path-site #region-main .section.main > .content,
body.pagelayout-frontpage.path-site #region-main .generalbox,
body.pagelayout-frontpage.path-site #region-main .course-content .single-section {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.pagelayout-frontpage.path-site .course-content,
body.pagelayout-frontpage.path-site .course-content ul,
body.pagelayout-frontpage.path-site .course-content .section,
body.pagelayout-frontpage.path-site .course-content .section.main,
body.pagelayout-frontpage.path-site .sitetopic,
body.pagelayout-frontpage.path-site .frontpage-course-list-all,
body.pagelayout-frontpage.path-site .frontpage-category-names,
body.pagelayout-frontpage.path-site .frontpage-course-list-enrolled {
    max-width: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.pagelayout-frontpage.path-site .local-fullpagehome-section,
body.pagelayout-frontpage.path-site .eurecat-home-section,
body.pagelayout-frontpage.path-site .p-marc-home-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

body.pagelayout-frontpage.path-site .local-fullpagehome-contained {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    body.pagelayout-frontpage.path-site .local-fullpagehome-contained {
        width: min(100%, calc(100% - 24px));
    }
}

/*
 * v1.0.13-beta14 surgical adjustment.
 * Moodle 5.2 + Moove 5.2.0 frontpage drawer toggle correction.
 * The visible purple button reported by the client belongs to the primary
 * drawer (theme_boost-drawers-primary), not to the blocks drawer. Previous
 * block-drawer selectors did not affect it. This block only moves the frontpage
 * drawer toggle from the left edge to the right edge. It does not alter the
 * drawer panel itself, the secondary navigation, the banner, mobile layout, or
 * any non-frontpage page.
 */
body.pagelayout-frontpage.path-site .drawer-toggles .drawer-toggler.drawer-left-toggle,
body.pagelayout-frontpage.path-site .drawer-toggles .drawer-toggler[data-target="theme_boost-drawers-primary"],
body.pagelayout-frontpage.path-site .drawer-toggles button.drawertoggle[data-target="theme_boost-drawers-primary"],
body.local-fullpagehome-active .drawer-toggles .drawer-toggler.drawer-left-toggle,
body.local-fullpagehome-active .drawer-toggles .drawer-toggler[data-target="theme_boost-drawers-primary"],
body.local-fullpagehome-active .drawer-toggles button.drawertoggle[data-target="theme_boost-drawers-primary"] {
    left: auto !important;
    right: 0 !important;
    inset-inline-start: auto !important;
    inset-inline-end: 0 !important;
}

body.pagelayout-frontpage.path-site .drawer-toggles .drawer-left-toggle .btn,
body.pagelayout-frontpage.path-site .drawer-toggles .drawer-left-toggle button,
body.local-fullpagehome-active .drawer-toggles .drawer-left-toggle .btn,
body.local-fullpagehome-active .drawer-toggles .drawer-left-toggle button {
    left: auto !important;
    right: 0 !important;
    inset-inline-start: auto !important;
    inset-inline-end: 0 !important;
}


/*
 * v1.0.15-beta16 surgical adjustment.
 * Correction limited to the Moodle/Moove drawer toggle on the site frontpage.
 * The previous plugin full-width rules accidentally made the drawer toggler
 * container occupy 100% width, leaving the visible "Open block drawer" button
 * visually stuck at the left edge. This block restores the drawer toggler
 * width to auto and pins only the right/block drawer toggle to the right edge.
 * No banner, secondary navigation, mobile menu, drawer panel or content rules
 * are changed here.
 */
body.pagelayout-frontpage.path-site .drawer-toggles .drawer-toggler,
body.local-fullpagehome-active .drawer-toggles .drawer-toggler {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
}

body.pagelayout-frontpage.path-site .drawer-toggles .drawer-toggler.drawer-right-toggle,
body.local-fullpagehome-active .drawer-toggles .drawer-toggler.drawer-right-toggle,
body.pagelayout-frontpage.path-site .drawer-toggles .drawer-toggler:has([data-target="theme_boost-drawers-blocks"]),
body.local-fullpagehome-active .drawer-toggles .drawer-toggler:has([data-target="theme_boost-drawers-blocks"]),
body.pagelayout-frontpage.path-site .drawer-toggles .drawer-toggler:has([aria-controls="theme_boost-drawers-blocks"]),
body.local-fullpagehome-active .drawer-toggles .drawer-toggler:has([aria-controls="theme_boost-drawers-blocks"]) {
    position: fixed !important;
    left: auto !important;
    right: 0 !important;
    inset-inline-start: auto !important;
    inset-inline-end: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    transform: none !important;
    z-index: 1041 !important;
}

body.pagelayout-frontpage.path-site .drawer-toggles .drawer-toggler.drawer-right-toggle .btn,
body.local-fullpagehome-active .drawer-toggles .drawer-toggler.drawer-right-toggle .btn,
body.pagelayout-frontpage.path-site .drawer-toggles .drawer-toggler.drawer-right-toggle button,
body.local-fullpagehome-active .drawer-toggles .drawer-toggler.drawer-right-toggle button,
body.pagelayout-frontpage.path-site .drawer-toggles [data-target="theme_boost-drawers-blocks"],
body.local-fullpagehome-active .drawer-toggles [data-target="theme_boost-drawers-blocks"],
body.pagelayout-frontpage.path-site .drawer-toggles [aria-controls="theme_boost-drawers-blocks"],
body.local-fullpagehome-active .drawer-toggles [aria-controls="theme_boost-drawers-blocks"] {
    left: auto !important;
    right: auto !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    transform: none !important;
}

/*
 * v1.0.19-beta20 surgical adjustment.
 * Simplify Moodle section divider lines on the full-page homepage.
 * Some Moodle/Moove frontpage widgets can show two horizontal separators
 * because the course section wrapper adds its own top/bottom borders around
 * custom homepage content. This removes the duplicated wrapper dividers and
 * leaves a single simple separator between consecutive homepage sections.
 *
 * Scope: only the site frontpage, only the region-main/course-section wrappers.
 * It does not modify the banner, secondary navigation, mobile behaviour,
 * drawer button, enable/disable loader, or content/widget cards.
 */
body.local-fullpagehome-active #region-main .course-content .section.main,
body.local-fullpagehome-active #region-main .course-content .course-section,
body.local-fullpagehome-active #region-main .sitetopic .section,
body.pagelayout-frontpage.path-site #region-main .course-content .section.main,
body.pagelayout-frontpage.path-site #region-main .course-content .course-section,
body.pagelayout-frontpage.path-site #region-main .sitetopic .section {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body.local-fullpagehome-active #region-main .course-content .section.main::before,
body.local-fullpagehome-active #region-main .course-content .section.main::after,
body.local-fullpagehome-active #region-main .course-content .course-section::before,
body.local-fullpagehome-active #region-main .course-content .course-section::after,
body.local-fullpagehome-active #region-main .sitetopic .section::before,
body.local-fullpagehome-active #region-main .sitetopic .section::after,
body.pagelayout-frontpage.path-site #region-main .course-content .section.main::before,
body.pagelayout-frontpage.path-site #region-main .course-content .section.main::after,
body.pagelayout-frontpage.path-site #region-main .course-content .course-section::before,
body.pagelayout-frontpage.path-site #region-main .course-content .course-section::after,
body.pagelayout-frontpage.path-site #region-main .sitetopic .section::before,
body.pagelayout-frontpage.path-site #region-main .sitetopic .section::after {
    border: 0 !important;
    box-shadow: none !important;
}

body.local-fullpagehome-active #region-main .course-content .section.main + .section.main,
body.local-fullpagehome-active #region-main .course-content .course-section + .course-section,
body.pagelayout-frontpage.path-site #region-main .course-content .section.main + .section.main,
body.pagelayout-frontpage.path-site #region-main .course-content .course-section + .course-section {
    border-top: 1px solid var(--bs-border-color, #dee2e6) !important;
}

/*
 * v1.0.20-beta21 surgical adjustment.
 * Remove all Moodle/Moove horizontal divider lines between homepage widgets.
 * This intentionally only targets divider elements and section-wrapper borders
 * on the site frontpage. It does not modify the banner, secondary navigation,
 * responsive behaviour, drawer button, enable/disable loader, or card/widget
 * internal design.
 */
body.local-fullpagehome-active #region-main hr,
body.pagelayout-frontpage.path-site #region-main hr,
body.local-fullpagehome-active #region-main .course-content hr,
body.pagelayout-frontpage.path-site #region-main .course-content hr,
body.local-fullpagehome-active #region-main .sitetopic hr,
body.pagelayout-frontpage.path-site #region-main .sitetopic hr {
    display: none !important;
    border: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.local-fullpagehome-active #region-main .course-content .section.main,
body.local-fullpagehome-active #region-main .course-content .section.main + .section.main,
body.local-fullpagehome-active #region-main .course-content .course-section,
body.local-fullpagehome-active #region-main .course-content .course-section + .course-section,
body.local-fullpagehome-active #region-main .course-content .course-section .section-item,
body.local-fullpagehome-active #region-main .sitetopic .section,
body.pagelayout-frontpage.path-site #region-main .course-content .section.main,
body.pagelayout-frontpage.path-site #region-main .course-content .section.main + .section.main,
body.pagelayout-frontpage.path-site #region-main .course-content .course-section,
body.pagelayout-frontpage.path-site #region-main .course-content .course-section + .course-section,
body.pagelayout-frontpage.path-site #region-main .course-content .course-section .section-item,
body.pagelayout-frontpage.path-site #region-main .sitetopic .section {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body.local-fullpagehome-active #region-main .course-content .section.main::before,
body.local-fullpagehome-active #region-main .course-content .section.main::after,
body.local-fullpagehome-active #region-main .course-content .course-section::before,
body.local-fullpagehome-active #region-main .course-content .course-section::after,
body.local-fullpagehome-active #region-main .course-content .course-section .section-item::before,
body.local-fullpagehome-active #region-main .course-content .course-section .section-item::after,
body.local-fullpagehome-active #region-main .sitetopic .section::before,
body.local-fullpagehome-active #region-main .sitetopic .section::after,
body.pagelayout-frontpage.path-site #region-main .course-content .section.main::before,
body.pagelayout-frontpage.path-site #region-main .course-content .section.main::after,
body.pagelayout-frontpage.path-site #region-main .course-content .course-section::before,
body.pagelayout-frontpage.path-site #region-main .course-content .course-section::after,
body.pagelayout-frontpage.path-site #region-main .course-content .course-section .section-item::before,
body.pagelayout-frontpage.path-site #region-main .course-content .course-section .section-item::after,
body.pagelayout-frontpage.path-site #region-main .sitetopic .section::before,
body.pagelayout-frontpage.path-site #region-main .sitetopic .section::after {
    border: 0 !important;
    box-shadow: none !important;
}

/*
 * v1.0.21-beta22 surgical adjustment.
 * Remove the remaining thin grey Moodle/Moove separator lines between
 * homepage widgets. The inspected element is:
 *   .activity-item.focus-control.activityinline
 * with border-bottom: 1px solid #dee2e6.
 *
 * Scope: site frontpage homepage widget/activity wrappers only.
 * This does not modify the banner, secondary navigation, responsive layout,
 * drawer button, enable/disable loader, or widget/card internal content.
 */
body.local-fullpagehome-active #region-main .activity-item.activityinline,
body.local-fullpagehome-active #region-main .activity-item.focus-control.activityinline,
body.pagelayout-frontpage.path-site #region-main .activity-item.activityinline,
body.pagelayout-frontpage.path-site #region-main .activity-item.focus-control.activityinline {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body.local-fullpagehome-active #region-main .activity-item.activityinline::before,
body.local-fullpagehome-active #region-main .activity-item.activityinline::after,
body.local-fullpagehome-active #region-main .activity-item.focus-control.activityinline::before,
body.local-fullpagehome-active #region-main .activity-item.focus-control.activityinline::after,
body.pagelayout-frontpage.path-site #region-main .activity-item.activityinline::before,
body.pagelayout-frontpage.path-site #region-main .activity-item.activityinline::after,
body.pagelayout-frontpage.path-site #region-main .activity-item.focus-control.activityinline::before,
body.pagelayout-frontpage.path-site #region-main .activity-item.focus-control.activityinline::after {
    border: 0 !important;
    box-shadow: none !important;
}
