.resource-page {
    overflow: clip;
}
.resource-page .bg-top-main {
    pointer-events: none;
}
.resource-page [hidden] {
    display: none !important;
}
.resource-page .filter-label {
    text-transform: none;
}
.resource-filter-section .filters-panel {
    display: block;
}
.resource-page fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.resource-page legend {
    float: none;
    width: auto;
    margin: 0;
}
.resource-levels {
    flex: 0 1 auto;
}
.resource-page .resource-levels legend,
.resource-page .resource-axis-filter legend {
    margin-bottom: 12px;
}
.resource-filter-row .pill-list {
    width: auto;
}
.resource-level-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.resource-level-input:checked + .pill {
    background: var(--destaque_color);
    color: #fff;
}
.resource-level-input:focus-visible + .pill {
    outline: 3px solid var(--title_color);
    outline-offset: 3px;
}
.resource-page .pill {
    margin: 0;
}
.resource-page button:disabled {
    opacity: 1;
    cursor: not-allowed;
}
.resource-page .resource-axis-filter {
    flex: 0 1 auto;
}
.resource-page .resource-centres {
    min-width: 0;
    max-width: 100%;
}
.resource-filter-row {
    width: 100%;
    align-items: end;
    column-gap: 20px;
    row-gap: 20px;
}
.resource-filter-row-main {
    column-gap: 10px;
}
.resource-filter-row .filter-group {
    min-width: 0;
}
.resource-filter-row .search-group {
    flex: 0 0 280px;
}
.resource-select {
    border: 0;
    border-radius: 999px;
    background: var(--green-light);
    color: var(--text_color);
    padding: 9px 36px 9px 16px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    max-width: 340px;
    width: 100%;
    cursor: pointer;
}
.resource-select option,
.resource-select optgroup {
    background: #fff;
    color: var(--text_color);
}
.resource-select-shell {
    max-width: 100%;
}
.resource-select-display,
.resource-select-chevron {
    display: none;
}
.resource-select-shell.is-enhanced {
    position: relative;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    width: max-content;
    max-width: 340px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--green-light);
    color: var(--text_color);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}
.resource-select-shell.is-enhanced.has-selection {
    background: var(--destaque_color);
    color: #fff;
}
.resource-select-shell.is-enhanced .resource-select-display {
    display: block;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.resource-select-shell.is-enhanced .resource-select-chevron {
    display: block;
    flex-shrink: 0;
    font-size: 12px;
}
.resource-select-shell.is-enhanced .resource-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    padding: 0;
    opacity: 0;
}
.resource-select-shell:focus-within {
    outline: 2px solid var(--title_color);
    outline-offset: 3px;
}
.resource-search-button {
    background: none;
    border: 0;
    padding: 6px;
    color: var(--text_color);
}
.resource-request-error {
    color: #8b251f;
    padding: 12px 0;
}
.resource-loading {
    color: var(--text_color);
}
#resourceLoading {
    display: none !important;
}
.resource-page .active-filters-bar {
    margin-top: 8px;
}
.resource-result-summary {
    position: relative;
    z-index: 1;
}
.resource-page .resource-active-tag {
    text-decoration: none;
}
.resource-page .resource-active-tag:hover {
    color: var(--title_color);
    box-shadow: 0 0 0 1px var(--destaque_color);
}
.resource-page [aria-busy='true'] {
    opacity: 0.55;
    pointer-events: none;
}
.resource-result-summary,
#resourceResults {
    scroll-margin-top: 170px;
}
.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
@media (min-width: 768px) {
    .resources-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 1200px) {
    .resources-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.resources-grid .resource-card {
    width: 100%;
    height: 270px;
    background-color: #506048;
}
.resources-grid .resource-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.resources-grid .resource-card::before {
    background: linear-gradient(
        to top,
        rgba(12, 23, 16, 0.92),
        rgba(12, 23, 16, 0.25) 78%,
        rgba(12, 23, 16, 0.1)
    );
}
.resources-grid .resource-card:hover::before,
.resources-grid .resource-card:focus-visible::before {
    background: rgba(62, 117, 20, 0.94);
}
.resources-grid .resource-card__badge {
    top: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
    font-size: 12px;
}
.resources-grid .resource-card__content {
    left: 20px;
    right: 20px;
    bottom: 20px;
}
.resources-grid .resource-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    line-height: 1.3;
}
.resources-grid .resource-card__grade {
    font-size: 11px;
    line-height: 1.4;
    max-width: calc(100% - 30px);
}
.resources-grid .resource-card__subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.resources-grid .resource-card:focus-visible .resource-card__subtitle {
    max-height: 80px;
    opacity: 1;
}
.resource-page .page-btn {
    text-decoration: none;
}
.resource-page .page-btn.disabled {
    opacity: 0.5;
}
.resource-empty {
    padding: 40px 0;
}
.resource-empty h2 {
    font-size: 24px;
}
.resource-metadata {
    display: flex;
    flex-wrap: wrap;
}
.resource-metadata .field {
    flex: 1 1 180px;
    padding: 8px 16px;
    border-left: 1px solid #b9d17f;
}
.resource-metadata .field:first-child {
    border-left: 0;
}
.resource-detail-image {
    flex-shrink: 0;
}
.resource-detail-subtitle {
    font-size: 18px;
}
.resource-image-lines {
    position: absolute;
    width: 28px;
    left: -40px;
    top: 25%;
    bottom: 25%;
    background: repeating-linear-gradient(
        45deg,
        transparent 0 9px,
        rgba(79, 79, 79, 0.2) 9px 10px,
        transparent 10px 18px
    );
}
.resource-rich-text {
    overflow-wrap: anywhere;
}
.resource-rich-text img {
    max-width: 100%;
    height: auto;
}
.resource-rich-text table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
}
.resource-rich-text h2,
.resource-materials h2 {
    font-size: clamp(26px, 3vw, 42px);
}
.resource-downloads {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 30, 40, 0.06);
}
.resource-downloads .resource-item {
    padding: 18px;
    gap: 8px;
    min-width: 0;
    border: 1px solid #eef0f2;
}
.resource-downloads .resource-left {
    min-width: 0;
}
.resource-downloads .resource-title {
    overflow-wrap: anywhere;
}
.resource-downloads .resource-icon {
    width: 28px;
    height: 28px;
}
.resource-page .share-row {
    flex-wrap: wrap;
}
.resource-page .copy-feedback {
    max-width: 320px;
}
@media (max-width: 767px) {
    .resources-grid {
        gap: 16px 12px;
    }
    .resources-grid .resource-card__content {
        left: 12px;
        right: 12px;
        bottom: 16px;
    }
    .resources-grid .resource-card__badge {
        top: 12px;
        right: 12px;
        max-width: calc(100% - 24px);
        padding: 4px 8px;
    }
}
@media (hover: none) {
    .resources-grid .resource-card__subtitle {
        max-height: 54px;
        opacity: 1;
    }
}
@media (min-width: 1920px) {
    .resource-filter-row-main {
        column-gap: 20px;
    }
}
@media (max-width: 1919px) {
    .resource-filter-row-main > .divider:last-child {
        display: none !important;
    }
}
@media (max-width: 991px) {
    .resource-image-lines {
        display: none;
    }
}
@media (max-width: 575px) {
    .resource-page .search-group,
    .resource-page .filter-group {
        min-width: 0;
        width: 100%;
    }
    .resource-filter-row .search-group {
        flex-basis: 100%;
    }
    .resource-select-shell.is-enhanced {
        max-width: 100%;
    }
    .resource-page .divider {
        display: none;
    }
    .resource-select {
        max-width: none;
    }
    .resource-page .active-filters-bar {
        padding: 16px;
    }
    .resource-page .clear-filters {
        margin-left: 0;
    }
    .resource-downloads {
        grid-template-columns: 1fr;
    }
    .resource-metadata .field {
        border-left: 0;
        border-bottom: 1px solid #b9d17f;
        padding: 8px 0 16px;
    }
    .resource-metadata .field:last-child {
        border-bottom: 0;
    }
    .resource-page .resource-detail-intro .breadcrumb {
        overflow-wrap: anywhere;
    }
}
