.is-articles-page { background: #f6f9f8; }
.is-articles-page .navigation { float: none; }
.aq-articles-page { clear: both; padding: 36px 0 60px; }
.aq-articles-page a:focus-visible { outline: 2px solid #009d87; outline-offset: 4px; }
.aq-articles-page a:focus:not(:focus-visible) { outline: none !important; box-shadow: none !important; }
.aq-articles-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.aq-articles-heading h1 { color: #173f38; font-size: 32px; font-weight: 600; }
.aq-articles-heading > span { color: #72847d; font-size: 14px; }
.aq-articles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.aq-article-card { display: flex; flex-direction: column; border: 1px solid #e5eee8; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 6px 24px #173f3208; }
.aq-article-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #edf5f0; }
.aq-article-image img { width: 100%; height: 100%; object-fit: cover; }
.aq-article-image-logo img { object-fit: contain; padding: 36px; background: #f1f8f4; }
.aq-article-card-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 24px; }
.aq-article-category { display: inline-block; color: #008779; background: #e9f7f0; border-radius: 5px; padding: 5px 10px; font-size: 12px; font-weight: 500; margin-bottom: 14px; }
.aq-article-card h2 { font-size: 21px; font-weight: 600; line-height: 1.4; margin-bottom: 14px; overflow-wrap: anywhere; }
.aq-article-card h2 a { color: #173f38; }
.aq-article-card h2 a:hover { color: #008779; }
.aq-article-card p { color: #52636a; font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.aq-article-read { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: auto; color: #008779; font-weight: 600; }
.aq-article-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; color: #72847d; font-size: 13px; margin-bottom: 24px; overflow-wrap: anywhere; }
.aq-article-breadcrumb a { color: #008779; }
.aq-article-detail-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.aq-article-detail, .aq-article-related { background: #fff; border: 1px solid #e9efec; border-radius: 14px; padding: 32px; box-shadow: 0 8px 36px #173f3208; }
.aq-article-detail h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 600; line-height: 1.35; color: #173f38; margin-bottom: 24px; overflow-wrap: anywhere; }
.aq-article-featured { margin-bottom: 28px; overflow: hidden; border-radius: 10px; background: #f1f8f4; }
.aq-article-featured img { display: block; width: 100%; height: 400px; object-fit: contain; }
.aq-article-featured.aq-article-image-logo img { height: 300px; }
.aq-article-copy p { color: #52636a; font-size: 16px; line-height: 1.9; margin-bottom: 22px; }
.aq-article-gallery-section h2, .aq-article-related > h2 { color: #173f38; font-size: 21px; font-weight: 600; margin-bottom: 20px; }
.aq-article-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aq-article-gallery a { display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 3 / 2; }
.aq-article-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aq-article-back { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; margin-top: 28px; color: #008779; font-weight: 500; }
.aq-article-related { padding: 24px; }
.aq-article-related-item { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-top: 1px solid #edf1ef; }
.aq-article-related-item img { width: 76px; height: 68px; flex-shrink: 0; object-fit: cover; border-radius: 6px; }
.aq-article-related-item > div { min-width: 0; }
.aq-article-related-item span { color: #008779; font-size: 12px; }
.aq-article-related-item h3 { color: #344d47; font-size: 15px; font-weight: 500; line-height: 1.5; margin-top: 5px; overflow-wrap: anywhere; }
@media (max-width: 991px) { .is-articles-page { padding-top: 68px; } .aq-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aq-article-detail-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .aq-articles-page { padding: 24px 0 36px; } .aq-articles-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } .aq-article-card-body, .aq-article-detail, .aq-article-related { padding: 22px 20px; } .aq-articles-heading h1 { font-size: 28px; } .aq-article-gallery { gap: 10px; } .aq-article-featured.aq-article-image-logo img { height: 220px; padding: 24px; } }
@media (max-width: 374px) { .aq-article-card-body, .aq-article-detail, .aq-article-related { padding: 20px 16px; } .aq-article-gallery { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .aq-article-featured img { height: 280px; } }

.aq-articles-heading { padding-bottom: 20px; border-bottom: 1px solid #dfe9e3; margin-bottom: 28px; }
.aq-article-card { transition: border-color .2s, box-shadow .2s; }
.aq-article-card:hover { border-color: #afd4c7; box-shadow: 0 12px 30px #173f3212; }
.aq-article-card .aq-article-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.8; min-height: 3.6em; margin-bottom: 18px; }
.aq-article-read { width: 100%; border-top: 1px solid #edf1ef; padding-top: 16px; justify-content: space-between; }
.aq-article-intro { color: #52636a; font-size: 17px; line-height: 1.8; margin-bottom: 24px; }
@media (prefers-reduced-motion: reduce) { .aq-article-card { transition: none; } }

.aq-article-gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 10px; }
.aq-article-gallery a { flex: 0 0 calc(50% - 8px); scroll-snap-align: start; }
@media (min-width: 992px) { .aq-article-gallery a { flex-basis: calc((100% - 32px) / 3); } }
.aq-gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.aq-gallery-controls button, .aq-gallery-close { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid #dbe7e1; border-radius: 50%; background: #fff; color: #008779; cursor: pointer; font-size: 24px; }
.aq-gallery-controls span { font-size: 13px; color: #52636a; }
.aq-gallery-controls button:focus-visible, .aq-gallery-close:focus-visible { outline: 2px solid #009d87; outline-offset: 3px; }
.aq-gallery-lightbox { position: fixed; inset: 0; margin: auto; width: min(1100px, calc(100% - 24px)); max-height: 92vh; max-height: 92dvh; overflow: auto; padding: 56px 20px 20px; border: 0; border-radius: 16px; background: #10251f; }
.aq-gallery-lightbox::backdrop { background: #081812dc; backdrop-filter: blur(5px); }
.aq-gallery-lightbox > img { display: block; width: 100%; height: 65vh; height: 65dvh; object-fit: contain; touch-action: pan-y; }
.aq-gallery-lightbox { box-sizing: border-box; min-width: 0; max-width: calc(100vw - 24px); }
.aq-gallery-lightbox > img { min-width: 0; max-width: 100%; }
.aq-gallery-close { position: absolute; right: 12px; top: 8px; }
.aq-gallery-lightbox .aq-gallery-controls span { color: #fff; }
body:has(.aq-gallery-lightbox[open]) { overflow: hidden; }
@media (max-width: 767px) { .aq-article-gallery a { flex-basis: 100%; } .aq-gallery-lightbox { padding: 56px 12px 16px; } .aq-gallery-lightbox > img { height: 60vh; height: 60dvh; } }

.aq-gallery-slider { position: relative; }
.aq-gallery-slider .aq-article-gallery { padding-bottom: 0; scrollbar-width: none; }
.aq-gallery-slider .aq-article-gallery::-webkit-scrollbar { display: none; }
.aq-gallery-slider > .aq-gallery-controls { position: absolute; top: 50%; left: 10px; right: 10px; margin: 0; transform: translateY(-50%); pointer-events: none; }
.aq-gallery-slider > .aq-gallery-controls button { pointer-events: auto; width: 42px; height: 42px; border: 1px solid #ffffff9c; background: #fffffff0; color: #008779; box-shadow: 0 3px 14px #10251f26; }
.aq-gallery-slider > .aq-gallery-controls button:hover { background: #008779; color: #fff; }
@media (max-width: 767px) { .aq-gallery-slider > .aq-gallery-controls { left: 8px; right: 8px; } .aq-gallery-slider > .aq-gallery-controls button { width: 44px; height: 44px; } }
@media (max-width: 767px) {
    .aq-gallery-lightbox {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        height: auto;
        max-height: calc(100dvh - 24px);
        padding: 56px 12px 16px;
        overflow-x: hidden;
    }
    .aq-gallery-lightbox[open] { display: flex; flex-direction: column; }
    .aq-gallery-lightbox > img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: calc(100dvh - 160px);
        min-height: 0;
        flex: 0 1 auto;
        object-fit: contain;
    }
    .aq-gallery-lightbox > .aq-gallery-controls { flex: 0 0 auto; }
}

/* Article details: open reading layout. */
.is-article-details-page .aq-articles-page { padding-top: 40px; }
.is-article-details-page .aq-article-breadcrumb { padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid #dfe9e3; }
.is-article-details-page .aq-article-detail-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
.is-article-details-page .aq-article-detail { padding: 0; }
.is-article-details-page .aq-article-category { font-size: 12px; letter-spacing: .3px; padding: 7px 12px; border-radius: 20px; margin-bottom: 18px; }
.is-article-details-page .aq-article-detail h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.35; letter-spacing: -.5px; margin-bottom: 22px; max-width: 820px; }
.is-article-details-page .aq-article-intro { padding-left: 20px; border-left: 3px solid #009d87; font-size: 17px; line-height: 1.85; margin-bottom: 30px; color: #49675e; }
.is-article-details-page .aq-article-featured { display: flex; justify-content: center; background: #eef3f0; border-radius: 12px; padding: 16px; margin-bottom: 32px; }
.is-article-details-page .aq-article-featured img { width: 100%; height: 400px; object-fit: contain; border-radius: 6px; }
.is-article-details-page .aq-article-copy { max-width: 760px; }
.is-article-details-page .aq-article-copy p { font-size: 16px; line-height: 2; margin-bottom: 24px; }
.is-article-details-page .aq-article-gallery-section { padding-top: 20px; margin-top: 28px; border-top: 1px solid #dfe9e3; }
.is-article-details-page .aq-article-back { margin-top: 32px; padding: 12px 0; border-top: 1px solid #dfe9e3; width: 100%; }
.is-article-details-page .aq-article-related { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 0 24px; border-left: 1px solid #dfe9e3; }
.is-article-details-page .aq-article-related > h2 { font-size: 20px; margin-bottom: 16px; }
.is-article-details-page .aq-article-related-item { padding: 20px 0; gap: 14px; }
.is-article-details-page .aq-article-related-item img { width: 84px; height: 84px; border-radius: 10px; }
.is-article-details-page .aq-article-related-item h3 { font-size: 15px; font-weight: 600; }
@media (max-width: 991px) {
    .is-article-details-page .aq-article-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .is-article-details-page .aq-article-related { padding: 26px 0 0; border-left: 0; border-top: 1px solid #dfe9e3; }
}
@media (max-width: 767px) {
    .is-article-details-page .aq-articles-page { padding-top: 24px; }
    .is-article-details-page .aq-article-detail h1 { font-size: 28px; }
    .is-article-details-page .aq-article-intro { font-size: 16px; padding-left: 14px; }
    .is-article-details-page .aq-article-featured { padding: 10px; }
    .is-article-details-page .aq-article-featured img { height: 280px; }
    .is-article-details-page .aq-article-copy p { font-size: 15px; }
}

/* Related articles sidebar card. */
.is-article-details-page .aq-article-related {
    padding: 24px;
    background: #fff;
    border: 1px solid #e2ebe6;
    border-radius: 16px;
    box-shadow: 0 8px 28px #173f320a;
}
.is-article-details-page .aq-article-related > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 20px;
}
.is-article-details-page .aq-article-related > h2::before {
    content: '';
    width: 4px;
    height: 22px;
    border-radius: 3px;
    background: #009d87;
}
.is-article-details-page .aq-article-related-item {
    padding: 16px 0;
    gap: 14px;
}
.is-article-details-page .aq-article-related-item:last-child { padding-bottom: 0; }
.is-article-details-page .aq-article-related-item img {
    width: 78px;
    height: 92px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center top;
}
.is-article-details-page .aq-article-related-item span {
    display: inline-block;
    font-size: 11px;
    margin-bottom: 5px;
    color: #008779;
}
.is-article-details-page .aq-article-related-item h3 {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 0;
    transition: color .2s;
}
.is-article-details-page .aq-article-related-item:hover h3 { color: #009d87; }
@media (max-width: 767px) { .is-article-details-page .aq-article-related { padding: 22px 20px; } }
@media (prefers-reduced-motion: reduce) { .is-article-details-page .aq-article-related-item h3 { transition: none; } }

@media (min-width: 992px) {
    .is-article-details-page .aq-article-related {
        position: sticky;
        top: 68px;
        max-height: calc(100vh - 92px);
        overflow-y: auto;
        scrollbar-width: thin;
    }
}
