/* Give article content the full width when the author/sidebar plugin has no output. */
.article-details-wrap.article-details-wrap--no-author {
    grid-template-columns: minmax(0, 1fr);
}

/* Joomla category blogs: editorial archive inspired by the SP Page Builder blog pages. */
.native-blog-archive {
    --category-ink: var(--sppb-text-variation-2, #101218);
    --category-muted: var(--sppb-text-primary-alpha-7-1, #626765);
    --category-line: rgba(21, 25, 23, .14);
    position: relative;
    margin-inline: calc(50% - 50vw);
    padding: 76px max(32px, calc((100vw - 1350px) / 2)) 92px;
    border-radius: 22px;
    background: #f1f1ee;
    color: var(--category-ink);
}

.native-blog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 64px;
}

.native-blog-heading h1 {
    margin: 0;
    color: var(--category-ink);
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1;
}

.native-blog-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.native-blog-filters a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #fff;
    color: #555956;
    font-size: 15px;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.native-blog-filters a:hover,
.native-blog-filters a:focus-visible {
    border-color: #b8bbb6;
    color: #111;
}

.native-blog-filters a.is-active {
    background: #101218;
    color: #fff;
}

.native-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 42px 30px;
}

.native-blog-card {
    min-width: 0;
}

.native-blog-card[hidden] {
    display: none !important;
}

.native-blog-card > a:first-child {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
}

/* Joomla/Helix versions place the intro-image wrapper either inside or outside its link. */
.native-blog-card > .article-intro-image {
    display: block;
    float: none !important;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
}

.native-blog-card > .article-intro-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.native-blog-card > a:first-child .article-intro-image {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    margin: 0;
    overflow: hidden;
}

.native-blog-card .article-intro-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
}

.native-blog-card:hover .article-intro-image img {
    transform: scale(1.035);
}

.native-blog-card .article-body {
    display: flex;
    min-height: 265px;
    flex-direction: column;
    padding: 24px 0 0;
}

.native-blog-card .article-header {
    margin: 0 0 12px;
}

.native-blog-card .article-header h1,
.native-blog-card .article-header h2,
.native-blog-card .article-header h4 {
    margin: 0;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(27px, 2.35vw, 34px);
    font-weight: 400;
    line-height: 1.16;
}

.native-blog-card .article-header a {
    color: var(--category-ink);
    text-decoration: none;
}

.native-blog-card .article-info {
    display: flex;
    order: 2;
    margin: 0 0 10px;
}

.native-blog-card .article-info .createdby,
.native-blog-card .article-info .published,
.native-blog-card .fields-container {
    display: none !important;
}

.native-blog-card .article-info .category-name a {
    color: var(--category-muted);
    font-size: 13px;
    text-decoration: none;
}

.native-blog-card .article-introtext {
    order: 3;
    flex: 1 0 auto;
    color: var(--category-muted);
    font-size: 15px;
    line-height: 1.55;
}

.native-blog-card .readmore {
    order: 4;
    margin-top: 10px;
}

.native-blog-card .readmore a {
    color: var(--category-ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.native-blog-card .readmore a::after {
    content: '\2197';
    display: inline-block;
    margin-left: 8px;
    transition: transform .2s ease;
}

.native-blog-card .readmore a:hover::after {
    transform: translate(3px, -3px);
}

.native-blog-empty,
.native-blog-filter-empty {
    padding: 24px;
    border: 1px solid var(--category-line);
    border-radius: 12px;
    color: var(--category-muted);
}

.native-blog-pagination {
    margin-top: 48px;
}

.native-blog-pagination .counter {
    color: var(--category-muted);
}

@media (max-width: 991px) {
    .native-blog-archive {
        padding-block: 56px 72px;
    }

    .native-blog-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 42px;
    }

    .native-blog-filters {
        justify-content: flex-start;
    }

    .native-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 36px 22px;
    }
}

@media (max-width: 575px) {
    .native-blog-archive {
        margin-inline: calc(50% - 50vw);
        padding: 42px 20px 56px;
        border-radius: 14px;
    }

    .native-blog-header {
        gap: 22px;
        margin-bottom: 30px;
    }

    .native-blog-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .native-blog-filters a {
        flex: 0 0 auto;
        min-height: 42px;
        padding-inline: 18px;
    }

    .native-blog-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .native-blog-card .article-body {
        min-height: 0;
        padding-top: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .native-blog-filters a,
    .native-blog-card .article-intro-image img,
    .native-blog-card .readmore a::after {
        transition: none;
    }
}

/* Retain the shared category-card styling for other Joomla layouts. */
.com-content-category-blog {
    --category-ink: var(--sppb-text-variation-2, #101218);
    --category-muted: var(--sppb-text-primary-alpha-7-1, #626765);
    --category-line: rgba(21, 25, 23, .14);
}

.com-content-category-blog > .cat-children {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.com-content-category-blog > .cat-children > h3 {
    grid-column: 1 / -1;
    margin: 0 0 12px;
    color: var(--category-ink);
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 400;
    line-height: 1.05;
}

.com-content-category-blog > .cat-children > .com-content-category-blog__child {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--category-line);
    border-radius: 12px;
    background: #f5f6f3;
    transition: background-color .2s ease, border-color .2s ease;
}

.com-content-category-blog > .cat-children > .com-content-category-blog__child:hover,
.com-content-category-blog > .cat-children > .com-content-category-blog__child:focus-within {
    background: #edf1ec;
    border-color: #879b8e;
}

.com-content-category-blog .com-content-category-blog__child > .item-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    color: var(--category-ink);
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 400;
    line-height: 1.15;
}

.com-content-category-blog .com-content-category-blog__child > .item-title > a:not([data-bs-toggle]) {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    flex: 1 1 auto;
    gap: 16px;
    color: inherit;
    text-decoration: none;
}

.com-content-category-blog .com-content-category-blog__child > .item-title > a:not([data-bs-toggle])::after {
    content: '\2197';
    font-family: sans-serif;
    font-size: 20px;
    font-weight: 400;
    transition: transform .2s ease;
}

.com-content-category-blog .com-content-category-blog__child > .item-title > a:not([data-bs-toggle]):hover::after {
    transform: translate(3px, -3px);
}

.com-content-category-blog .com-content-category-blog__child a:focus-visible {
    outline: 2px solid #315d47;
    outline-offset: 4px;
}

.com-content-category-blog .com-content-category-blog__description {
    margin-top: 16px;
    color: var(--category-muted);
    font-size: 15px;
    line-height: 1.6;
}

.com-content-category-blog .com-content-category-blog__child .badge {
    padding: 6px 10px;
    border-radius: 100px;
    background: #dce8df !important;
    color: #254a36;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
}

.com-content-category-blog .com-content-category-blog__child .collapse.show {
    padding: 18px 0 0 16px;
    border-inline-start: 1px solid var(--category-line);
}

.com-content-category-blog .com-content-category-blog__child .collapse .com-content-category-blog__child + .com-content-category-blog__child {
    margin-top: 16px;
}

.com-content-category-blog > .alert-info {
    padding: 16px 20px;
    border: 1px solid var(--category-line);
    border-radius: 10px;
    background: #f5f6f3;
    color: var(--category-muted);
    font-size: 15px;
}

.com-content-category-blog .article-list .article {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--category-line);
    border-radius: 12px;
    background: #fff;
}

.com-content-category-blog .article-list .article-intro-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.com-content-category-blog .article-list .article-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.com-content-category-blog .article-list .article:hover .article-intro-image img {
    transform: scale(1.025);
}

.com-content-category-blog .article-list .article-body {
    display: flex;
    min-height: 250px;
    flex-direction: column;
    padding: 22px 24px 24px;
}

.com-content-category-blog .article-list .article-header h1,
.com-content-category-blog .article-list .article-header h2,
.com-content-category-blog .article-list .article-header h4 {
    margin: 0 0 14px;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(27px, 2.5vw, 34px);
    font-weight: 400;
    line-height: 1.12;
}

.com-content-category-blog .article-list .article-header a {
    color: var(--category-ink);
    text-decoration: none;
}

.com-content-category-blog .article-list .article-info {
    display: flex;
    margin: 0 0 14px;
}

.com-content-category-blog .article-list .article-info .createdby,
.com-content-category-blog .article-list .article-info .published,
.com-content-category-blog .article-list .fields-container {
    display: none;
}

.com-content-category-blog .article-list .article-info .category-name a {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 100px;
    background: #edf1ec;
    color: #315d47;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
}

.com-content-category-blog .article-list .article-introtext {
    flex: 1 0 auto;
    color: var(--category-muted);
    line-height: 1.6;
}

.com-content-category-blog .article-list .readmore {
    margin-top: 14px;
}

.com-content-category-blog .article-list .readmore a {
    color: var(--category-ink);
    font-weight: 500;
    text-decoration: none;
}

.com-content-category-blog .article-list .readmore a::after {
    content: '\2197';
    display: inline-block;
    margin-left: 8px;
    transition: transform .2s ease;
}

.com-content-category-blog .article-list .readmore a:hover::after {
    transform: translate(3px, -3px);
}

@media (max-width: 991px) {
    .com-content-category-blog > .cat-children {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .com-content-category-blog > .cat-children {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }

    .com-content-category-blog > .cat-children > .com-content-category-blog__child {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .com-content-category-blog .com-content-category-blog__child,
    .com-content-category-blog .com-content-category-blog__child > .item-title > a::after {
        transition: none;
    }
}

/* Use the colored logo and translucent rounded panel before scrolling on every page. */
#sp-header:not(.header-sticky) {
    height: 72px;
}

#sp-header:not(.header-sticky) > .container {
    margin-top: 16px;
    padding-left: 32px !important;
    padding-right: 32px !important;
    border-radius: 90px;
    background: rgba(0, 0, 0, .2);
    backdrop-filter: blur(10px);
}

#sp-header:not(.header-sticky) #sp-logo .logo-image {
    filter: none !important;
}

#sp-header.header-sticky #sp-logo .logo-image {
    filter: brightness(0) !important;
}

/* White navigation on the translucent panel; dark navigation after it sticks. */
#sp-header:not(.header-sticky) #sp-menu .sp-megamenu-wrapper .sp-megamenu-parent .sp-menu-item > a,
#sp-header:not(.header-sticky) #sp-menu .sp-megamenu-wrapper .sp-megamenu-parent .sp-menu-item > span {
    color: #fff !important;
}

#sp-header:not(.header-sticky) #offcanvas-toggler .burger-icon > span {
    background-color: #fff !important;
}

#sp-header.header-sticky > .container,
body.creative-home #sp-header.header-sticky > .container {
    margin-top: 16px !important;
    border-radius: 90px !important;
    background: rgba(0, 0, 0, .2) !important;
    backdrop-filter: blur(10px) !important;
}

#sp-header.header-sticky #sp-menu .sp-megamenu-wrapper .sp-megamenu-parent .sp-menu-item > a,
#sp-header.header-sticky #sp-menu .sp-megamenu-wrapper .sp-megamenu-parent .sp-menu-item > span {
    color: #252525 !important;
}

#sp-header.header-sticky #sp-menu .sp-megamenu-wrapper .sp-megamenu-parent .sp-menu-item.active > a,
#sp-header.header-sticky #sp-menu .sp-megamenu-wrapper .sp-megamenu-parent .sp-menu-item > a:hover,
#sp-header.header-sticky #sp-menu .sp-megamenu-wrapper .sp-megamenu-parent .sp-menu-item > a:focus {
    color: #0345bf !important;
}

#sp-header.header-sticky #offcanvas-toggler .burger-icon > span {
    background-color: #252525 !important;
}

@media (max-width: 1199px) {
    #sp-header:not(.header-sticky) > .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

@media (max-width: 991px) {
    #sp-header:not(.header-sticky) > .container {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 575px) {
    #sp-header:not(.header-sticky) > .container {
        width: calc(100% - 15px);
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}
