/* Blog: scoped styles, independent from the theme's cards and sliders. */
body header .navbar{background:#111!important}
body .blog-library .editorial-card h2 a{color:#282c33;font-weight:700;-webkit-text-fill-color:currentColor}
body .blog-filter select{padding-right:12px}
body #slider .no-slider.slider-h-25 [data-aos]{display:block!important;opacity:1!important;transform:none!important;visibility:visible!important}
body .blog-filter select{flex:1 1 300px;min-width:120px;max-width:none;-webkit-appearance:auto;appearance:auto;-webkit-text-fill-color:#30343a;color:#30343a}
body #content.editorial-page h1.article-title{color:#282c33!important;-webkit-text-fill-color:#282c33!important;background:none!important}
body #content.editorial-page h1.article-title:before{display:none}
@media(max-width:575px){.blog-library>.container,#content.editorial-page>.container{padding-left:20px;padding-right:20px}#content.editorial-page>.container>.row,#content.editorial-page main>.row{margin-left:0;margin-right:0}#content.editorial-page main,#content.editorial-page main>.row>.col-12,#content.editorial-page .sidebar{padding-left:0!important;padding-right:0!important}body .blog-filter select{flex-basis:150px}}
body #slider.featured:after{display:none}
body #slider .no-slider.slider-h-25{height:auto;min-height:300px}
body #slider .no-slider.slider-h-25 .swiper-wrapper,body #slider .no-slider.slider-h-25 .swiper-slide{height:auto;min-height:inherit}
body #slider .no-slider.slider-h-25 .slide-content{margin:0;width:100%;padding:155px 24px 58px}
body #slider .no-slider.slider-h-25 .inner{top:auto;padding:0}
body #slider .no-slider.slider-h-25 .title{font-size:clamp(2rem,4vw,3.4rem);line-height:1.2;margin:0 auto 22px}
body #slider .no-slider.slider-h-25 .breadcrumb{flex-wrap:wrap;gap:5px 0;margin:0;line-height:1.6}
@media(max-width:575px){body #slider .no-slider.slider-h-25{min-height:260px}body #slider .no-slider.slider-h-25 .slide-content{padding:134px 22px 38px}body #slider .no-slider.slider-h-25 .breadcrumb{font-size:.85rem}body #slider .no-slider.slider-h-25 .breadcrumb-item.active{overflow-wrap:anywhere}}
.editorial-eyebrow,.editorial-category{color:#cc1530;font-size:.75rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase}
.blog-library{padding:72px 0;background:#f5f5f6;color:#30343a}
.blog-intro{max-width:760px;margin:0 0 32px}.blog-intro h2{font-size:clamp(1.8rem,4vw,2.8rem);line-height:1.16;margin:14px 0 20px}.blog-intro p{font-size:1.05rem;line-height:1.8;color:#5e6268}
.blog-filter{display:flex;align-items:center;gap:16px;margin-bottom:32px;padding:20px 24px;background:#fff;border:1px solid #e5e5e8;border-radius:10px}.blog-filter label{margin:0;white-space:nowrap;font-weight:600}.blog-filter select{width:auto;flex:1;min-width:0;min-height:46px;color:#30343a;background:#f5f5f6;border:1px solid #d7d9dc;border-radius:5px;padding:10px 36px 10px 12px}.blog-filter .btn{margin:0}
.editorial-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.editorial-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid #e5e5e8;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px #11111105;transition:box-shadow .2s}
.editorial-card:hover{box-shadow:0 12px 32px #1111110c}.editorial-card>a{display:block;background:#eee}.editorial-card img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:top}
.editorial-card-body{display:flex;flex-direction:column;flex:1;padding:26px}.editorial-card h2{font-size:1.2rem;line-height:1.45;margin:14px 0}.editorial-card h2 a{color:#24272d}.editorial-card p{font-size:.93rem;line-height:1.7;color:#65696e;margin:0 0 24px}.editorial-card-date{font-size:.78rem;color:#757b83;margin-top:auto}.editorial-read{color:#cb1530;font-weight:600;font-size:.88rem;display:flex;justify-content:space-between;gap:12px;margin-top:20px;padding-top:18px;border-top:1px solid #ececef}.blog-library .pagination{justify-content:center;margin:36px 0 0;flex-wrap:wrap}
#content.editorial-page{background:#fff;color:#30343a;padding:64px 0}
.editorial-page .article-title{font-size:clamp(1.85rem,3.4vw,3rem);line-height:1.19;letter-spacing:-.025em;margin-bottom:20px}
.editorial-page .article-meta{color:#6b727b;font-size:.8rem;line-height:1.7;margin:0 0 28px}
.editorial-page .article-cover{display:block;width:100%;height:auto;max-height:480px;object-fit:contain;background:#f5f5f6;border-radius:12px;margin:0 0 36px}
.editorial-page .article-body{font-size:1rem;line-height:1.85;overflow-wrap:anywhere}
.editorial-page .article-body p{font-size:inherit;line-height:inherit;color:#515761;margin:0 0 1.3em}
.editorial-page .article-body .article-lead{font-size:1.15rem;color:#30343a;line-height:1.8}
.editorial-page .article-body section{padding:0;margin:42px 0;background:transparent;overflow:visible}
.editorial-page .article-body h2{font-size:1.55rem;line-height:1.35;letter-spacing:-.02em;color:#282c33;margin:0 0 20px;scroll-margin-top:130px}
.editorial-page .article-body h3{font-size:1.2rem;line-height:1.5;color:#282c33}
.editorial-page .article-toc{background:#f6f6f8;border:1px solid #e9e9ed;border-left:3px solid #ed1b34;border-radius:8px;padding:26px 30px;margin:32px 0 40px}
.editorial-page .article-toc strong{color:#30343a}.editorial-page .article-toc ol{padding-left:22px;margin:12px 0 0}.editorial-page .article-toc li{padding:5px 0}.editorial-page .article-toc a{color:#4a505a;font-size:.94rem;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#c4c8ce}
.editorial-page .article-body a:not(.btn){color:#c91530;text-underline-offset:4px}.editorial-page .blog-project{margin:40px 0;background:#f8f8fa;border:1px solid #e7e7ec;border-radius:10px;overflow:hidden}.editorial-page .blog-project img{display:block;width:100%;height:auto;max-height:480px;object-fit:contain}.editorial-page .blog-project figcaption{padding:20px 24px;color:#626871;font-size:.85rem;line-height:1.75}
.editorial-page .article-checklist{padding:28px 30px;background:#faf5f6;border:1px solid #f0dce0;border-radius:10px;margin:40px 0}.editorial-page .article-checklist ul{padding-left:22px;margin:0}.editorial-page .article-checklist li{margin:10px 0;line-height:1.7}.editorial-page .article-checklist li::marker{color:#d51631}
.editorial-page .article-next-step{padding:32px;background:#141619;border-radius:12px;margin-top:40px}.editorial-page .article-next-step h2{color:#fff}.editorial-page .article-next-step p{color:#d3d6dc}.editorial-page .article-next-step .btn{margin-top:10px;white-space:normal}
.editorial-page .sidebar .widget-author{background:#f5f5f7;border:1px solid #e7e7eb;padding:24px;border-radius:12px}.editorial-page .sidebar .list-group-item{background:transparent}.editorial-page .sidebar .author img{max-width:180px;height:auto}.editorial-page .sidebar .author .title{font-size:1.2rem;line-height:1.5}.editorial-page .sidebar .biography{font-size:.9rem;color:#606772;line-height:1.7}
@media(max-width:991px){.editorial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editorial-page .sidebar{margin-top:40px}.editorial-page main,.editorial-page .sidebar{padding-left:15px!important;padding-right:15px!important}}
@media(max-width:575px){.blog-library{padding:44px 0}.blog-filter{flex-wrap:wrap;padding:18px;gap:10px}.blog-filter label{width:100%}.blog-filter .btn{padding-left:18px;padding-right:18px}.editorial-grid{grid-template-columns:1fr;gap:24px}.editorial-card-body{padding:24px}.editorial-card h2{font-size:1.22rem}.editorial-card p{font-size:.95rem}#content.editorial-page{padding:40px 0}.editorial-page .article-body{font-size:1rem;line-height:1.8}.editorial-page .article-body .article-lead{font-size:1.05rem}.editorial-page .article-body h2{font-size:1.4rem}.editorial-page .article-toc,.editorial-page .article-checklist,.editorial-page .article-next-step{padding:24px 20px}.editorial-page .blog-project figcaption{padding:18px}.editorial-page .article-cover{margin-bottom:28px}}
@media(prefers-reduced-motion:reduce){.editorial-card{transition:none}}

/* Prevent inherited full-width labels from squeezing the topic selector. */
body .blog-filter label{width:auto;flex:0 0 auto}body .blog-filter select{padding-right:12px}@media(max-width:575px){body .blog-filter label{width:100%;flex-basis:100%}}


/* Maxima Design blog — dark visual identity, 2026-11-30.
   Additive override: preserve the existing layout, navigation and article HTML. */
body:has(.blog-library),
body:has(#content.editorial-page) {
    --primary-color: #ED1B34;
    --secondary-color: #ED1B34;
    background: #111416;
}

.blog-library,
#content.editorial-page {
    --blog-bg: #111416;
    --blog-surface: #191919;
    --blog-panel: #202728;
    --blog-border: #343C3E;
    --blog-copy: #D6DCDF;
    --blog-muted: #ADB7BC;
    --blog-accent: #ED1B34;
    background: var(--blog-bg);
    color: var(--blog-copy);
    color-scheme: dark;
}

body:has(.blog-library) #slider .title,
body:has(#content.editorial-page) #slider .title,
.blog-library .blog-intro h2,
body .blog-library .editorial-card h2 a,
body #content.editorial-page h1.article-title,
#content.editorial-page .article-body :is(h2, h3, h4),
#content.editorial-page .sidebar .title {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    background-image: none !important;
}

.blog-library { padding: 64px 0 80px; }
.blog-library .blog-intro { max-width: 810px; margin-bottom: 28px; }
.blog-library .blog-intro h2 { font-weight: 700; letter-spacing: -.035em; }
.blog-library .blog-intro p { color: var(--blog-muted); max-width: 730px; }
.blog-library :is(.editorial-eyebrow, .editorial-category) {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #F5F5F5;
    font-size: .7rem;
    line-height: 1.6;
    letter-spacing: .085em;
}
.blog-library :is(.editorial-eyebrow, .editorial-category)::before {
    content: "";
    flex: 0 0 14px;
    width: 14px;
    height: 3px;
    background: var(--blog-accent);
}

/* A compact control row, without a pale full-width panel. */
body .blog-library .blog-filter {
    flex-wrap: wrap;
    gap: 12px 16px;
    padding: 16px 0;
    margin: 0 0 32px;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--blog-border);
    border-bottom: 1px solid var(--blog-border);
    border-radius: 0;
}
body .blog-library .blog-filter label { color: #F5F5F5; font-size: .88rem; }
body .blog-library .blog-filter select {
    flex: 0 1 420px;
    width: auto;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-color: #424B4F;
    border-radius: 3px;
    background: var(--blog-surface);
    color: #F5F5F5;
    -webkit-text-fill-color: #F5F5F5;
    font-size: .9rem;
}
.blog-library .blog-filter .btn {
    min-height: 44px;
    padding: 10px 22px;
    border: 1px solid var(--blog-accent);
    border-radius: 3px;
    background: var(--blog-accent);
    color: #FFFFFF;
    -webkit-text-fill-color: #FFFFFF;
    font-size: 1.1875rem;
    font-weight: 700;
}
.blog-library .blog-filter .btn:hover { background: #CA142B; border-color: #CA142B; }

/* Entire 16:9 covers above opaque title panels; no text over photographs. */
.blog-library .editorial-grid { gap: 26px; align-items: stretch; }
.blog-library .editorial-card {
    position: relative;
    border: 1px solid var(--blog-border);
    border-radius: 6px;
    background: var(--blog-surface);
    box-shadow: 0 15px 35px #00000026;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.blog-library .editorial-card:hover {
    border-color: #697477;
    box-shadow: 0 18px 38px #00000040;
}
.blog-library .editorial-card > a { background: var(--blog-panel); }
.blog-library .editorial-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    object-position: center;
}
.blog-library .editorial-card-body {
    position: relative;
    padding: 26px 26px 24px;
    background: var(--blog-surface);
}
.blog-library .editorial-card-body::after {
    content: "";
    position: absolute;
    top: 21px;
    right: 19px;
    width: 20px;
    height: 20px;
    background: var(--blog-accent);
    clip-path: polygon(0 0, 65% 0, 100% 35%, 100% 100%, 88% 100%, 88% 40%, 60% 12%, 0 12%);
    pointer-events: none;
}
.blog-library .editorial-card .editorial-category { padding-right: 17px; }
.blog-library .editorial-card h2 {
    font-size: 1.22rem;
    line-height: 1.4;
    margin: 17px 0 14px;
    font-weight: 700;
    letter-spacing: -.02em;
}
body .blog-library .editorial-card h2 a {
    display: inline;
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit !important;
    text-decoration: none;
}
.blog-library .editorial-card h2 a:hover {
    text-decoration: underline;
    text-decoration-color: var(--blog-accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.blog-library .editorial-card p { color: var(--blog-muted); font-size: .92rem; line-height: 1.75; }
.blog-library .editorial-card-date { color: var(--blog-muted); }
body .blog-library .editorial-read {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    border-top-color: var(--blog-border);
    text-decoration: none;
}
body .blog-library .editorial-read span { color: #ED1B34 !important; -webkit-text-fill-color: #ED1B34 !important; font-size: 1.2rem; }
body .blog-library .editorial-read:hover { color: #FFFFFF !important; text-decoration: underline; text-decoration-color: #ED1B34; text-underline-offset: 4px; }
.blog-library .pagination .page-item .page-link {
    background: var(--blog-surface);
    border: 1px solid var(--blog-border);
    color: #FFFFFF;
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.3;
}
.blog-library .pagination .page-item.active .page-link,
.blog-library .pagination .page-item .page-link:hover {
    background: var(--blog-accent);
    border-color: var(--blog-accent);
    color: #FFFFFF;
}
.blog-library .pagination .page-item.disabled .page-link { color: #8D989D; background: var(--blog-bg); }

/* Reading surface and secondary panels stay in the same dark palette. */
body #content.editorial-page { background: var(--blog-bg); color: var(--blog-copy); }
#content.editorial-page .article-meta { color: var(--blog-muted); }
#content.editorial-page .article-cover { background: var(--blog-panel); border-radius: 6px; }
#content.editorial-page .article-body { color: var(--blog-copy); }
#content.editorial-page .article-body :is(p, li) { color: var(--blog-copy); }
#content.editorial-page .article-body :is(strong, b, .article-lead) { color: #F5F5F5; }
#content.editorial-page .article-body :is(h2, h3)[id] { scroll-margin-top: 120px; }
#content.editorial-page .article-body h2 { margin-top: 36px; }
#content.editorial-page .article-body section > h2:first-child { margin-top: 0; }
#content.editorial-page .article-body a:not(.btn) {
    color: #F5F5F5;
    text-decoration: underline;
    text-decoration-color: var(--blog-accent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}
#content.editorial-page .article-body a:not(.btn):hover { color: #FFFFFF; text-decoration-thickness: 2.5px; }
#content.editorial-page :is(.article-toc, .article-checklist, .blog-project, .sidebar .widget-author) {
    background: var(--blog-surface);
    border-color: var(--blog-border);
    border-radius: 6px;
}
#content.editorial-page .article-toc { border-left-color: var(--blog-accent); }
#content.editorial-page .article-toc :is(strong, a) { color: #F5F5F5; }
#content.editorial-page .article-body figcaption { color: var(--blog-muted) !important; }
#content.editorial-page .article-checklist li::marker { color: var(--blog-accent); }
#content.editorial-page .article-next-step {
    background: var(--blog-panel);
    border-left: 3px solid var(--blog-accent);
    border-radius: 6px;
}
#content.editorial-page .article-next-step :is(p, h2) { color: #F5F5F5; }
#content.editorial-page .article-next-step .btn { font-size: 1.1875rem; font-weight: 700; }
#content.editorial-page .sidebar :is(.biography, .list-group-item) { color: var(--blog-muted); }
#content.editorial-page .sidebar .list-group-item { border-color: var(--blog-border); }
#content.editorial-page .sidebar .list-group-item a { color: #F5F5F5; }
#content.editorial-page .sidebar .badge { background: var(--blog-panel); color: #F5F5F5; border-color: var(--blog-border); }
#content.editorial-page .sidebar .badge.active { border: 1px solid var(--blog-accent); }

/* Related articles use opaque captions too, without the theme's image blur. */
body:has(#content.editorial-page) #news { background: #191919; }
body:has(#content.editorial-page) #news .card {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    background: #202728;
    border: 1px solid #343C3E;
    border-radius: 6px;
}
body:has(#content.editorial-page) #news .card .image-over::before { display: none; }
body:has(#content.editorial-page) #news .card .image-over img {
    z-index: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    filter: none !important;
    transform: none !important;
}
body:has(#content.editorial-page) #news .card-caption { position: static; background: #202728; }
body:has(#content.editorial-page) #news .card-body { padding: 24px; }
body:has(#content.editorial-page) #news .card-caption h4 { color: #FFFFFF; -webkit-text-fill-color: #FFFFFF; }
body:has(#content.editorial-page) #news .card-footer { flex-wrap: wrap; gap: 8px 16px; border-color: #343C3E; }

.blog-library :is(a, select, button):focus-visible,
#content.editorial-page :is(a, select, button):focus-visible {
    outline: 2px solid #ED1B34;
    outline-offset: 4px;
}

@media (min-width: 992px) {
    .blog-library .editorial-card:first-child { grid-column: span 2; grid-row: span 2; }
    .blog-library .editorial-card:first-child .editorial-card-body { padding: 36px; }
    .blog-library .editorial-card:first-child h2 { max-width: 650px; font-size: clamp(1.8rem, 2.65vw, 2.65rem); line-height: 1.25; margin: 20px 0; }
    .blog-library .editorial-card:first-child p { max-width: 610px; font-size: 1.05rem; line-height: 1.8; }
    .blog-library .editorial-card:first-child .editorial-card-body::after { top: 30px; right: 28px; width: 25px; height: 25px; }
}
@media (min-width: 576px) and (max-width: 991px) {
    .blog-library .editorial-card:first-child { grid-column: span 2; }
    .blog-library .editorial-card:first-child h2 { font-size: 1.8rem; line-height: 1.3; }
}
@media (max-width: 575px) {
    .blog-library { padding: 42px 0 56px; }
    .blog-library .blog-intro { margin-bottom: 24px; }
    .blog-library .editorial-grid { gap: 24px; }
    body .blog-library .blog-filter { padding: 14px 0; gap: 10px; }
    body .blog-library .blog-filter select { flex: 1 1 150px; min-width: 0; }
    .blog-library .editorial-card-body { padding: 24px; }
    .blog-library .editorial-card h2 { font-size: 1.25rem; }
}

/* Native anchors remain usable without JavaScript. Respect reduced motion. */
html:has(#content.editorial-page) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html:has(#content.editorial-page) { scroll-behavior: auto; }
    .blog-library .editorial-card { transition: none; }
}
