/* Narrow compatibility additions; supplied theme CSS remains authoritative. */
.cscom-main{min-width:0}.cscom-entry-body{overflow-wrap:anywhere}.cscom-entry-body img,.cscom-entry-body video,.cscom-entry-body iframe{max-width:100%}.cscom-entry-body img{height:auto}.cscom-entry-body table{display:block;max-width:100%;overflow-x:auto}.cscom-side-item{display:flex;gap:10px;align-items:center;padding:10px 0;list-style:none}.cscom-side-thumb{flex:0 0 76px}.cscom-side-thumb img{display:block;width:76px;height:54px;object-fit:cover;border-radius:5px}.cscom-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.cscom-register-link{display:block;text-align:center;margin-top:15px}.cscom-downloads form{margin:0}.cscom-downloads .dlx94-mainbtn{width:100%;border:0;cursor:pointer}.cscom-downloads{gap:12px}.cscom-entry-summary{margin:20px 0}.cscom-items:empty{display:none}.cscom-related{margin-top:32px}.cscom-related h2{margin-bottom:20px}.cscom-main .cscard-desc p{margin:0}.cscom-main .cscard-desc{overflow-wrap:anywhere}.cscat-body{padding:25px}.cscom-main .post-tags{padding:0;list-style:none}
.cscom-source-stats{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin:16px 0 24px;padding:14px 16px;border:1px solid #272c39;border-radius:10px;background:#10131a;font-size:13px;color:#b8c0cc}.cscom-source-stat{display:inline-flex;align-items:center;gap:7px}.cscom-source-stat b{color:#fff;font-weight:600}.cscom-source-stat i{color:#e46229}.cscom-like-form{display:inline-flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0}.cscom-like-button{display:inline-flex;align-items:center;gap:7px;background:transparent;cursor:pointer;font:inherit;border:1px solid #363c4b;padding:7px 11px;border-radius:6px;color:#d4d8e0}.cscom-like-button:hover,.cscom-like-button.is-liked{color:#ff8350;border-color:#e46229}.cscom-like-button:disabled{opacity:.6;cursor:wait}.cscom-like-button .cscard-like-count{font-weight:700}.cscom-like-status{font-size:12px;color:#ffac87}.cscom-like-native-label{font-size:11px;color:#9da6b7}.cscom-source-stats [hidden]{display:none!important}.cscom-main .cscard-stats-row{flex-wrap:wrap}
.cscom-stat-icon{display:inline-block;flex:0 0 16px;vertical-align:middle}.cscom-like-button.is-liked .cscom-stat-icon{fill:currentColor}.cscom-nav-section>summary{cursor:pointer;list-style-position:outside;color:#e46229}.cscom-nav-section>summary>a{display:inline!important}.sidebar-cat .cscom-nav-section>ul{padding-left:14px;border-left:1px solid #303644;margin:8px 0 8px 4px}.cscom-nav-item [aria-current="page"]{color:#ff8350!important}.cscom-nav-section .cscom-nav-item{list-style:none}
.cscom-owner-tools{display:flex;justify-content:flex-end;margin:0 0 10px}.cscom-owner-edit{font-size:12px;color:#e7986e;border:1px solid #5b3c2e;padding:5px 9px;border-radius:5px}.cscom-owner-edit:hover{color:#fff;border-color:#ff8350}
@media(max-width:991px){.cscom-main{margin-bottom:30px}.cscom-main .fg-gallery{max-width:100%}}@media(max-width:575px){.cscom-entry-body pre{overflow-x:auto;max-width:100%}.cscat-body{padding:18px}.cscom-main .entry-title-wrap h1{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.csf2-canvas{display:none}html{scroll-behavior:auto!important}}

/* Shared file/article listings use the supplied cards in a two-column grid. */
.cscom-main #allEntries.cscom-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch !important;
    width: 100%;
    margin: 0;
    padding: 0;
}
.cscom-main #allEntries.cscom-items:empty { display: none; }
.cscom-main #allEntries.cscom-items > .cscard {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: auto;
    max-width: 100%;
    margin: 0;
    float: none;
}
.cscom-main .cscom-items > .cscard .cscard-img-wrap { flex-shrink: 0; }
.cscom-main .cscom-items > .cscard .cscard-img-wrap > a:first-child { display: block; height: 100%; }
.cscom-main .cscom-items > .cscard .cscard-body { flex: 1 0 auto; min-width: 0; }
.cscom-main .cscom-items > .cscard .cscard-title { overflow-wrap: anywhere; }
.cscom-main .cscom-items > .cscard .cscard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cscom-main .cscom-items > .cscard .cscard-actions > a { min-width: 0; padding-inline: 8px; }
.cscom-main .cscom-items > .cscard .cscard-actions > a:only-child { grid-column: 1 / -1; }
.cscom-main .cscom-items > .cscard .cscard-foot { flex-shrink: 0; }
@media (max-width: 640px) {
    .cscom-main #allEntries.cscom-items { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* The preview determines the gallery height; the rail scrolls inside it. */
.cscom-listing-shell{box-sizing:border-box;width:100%;min-width:0;margin:0 0 40px;padding:16px;border:1px solid #ffffff14;border-radius:16px;background:#10131a;box-shadow:0 14px 38px #0005}
.cscom-listing-content{min-width:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none}
.cscom-listing-shell .csort-counter-label{color:#919dad}
.cscom-home-roulette-slot{min-width:0}
.blog-area .cshero-wrap{width:100%!important;max-width:100%!important;margin-left:0!important;margin-right:0!important}
.blog-area>.container>.row>.col-lg-4>.blog-sidebar{box-sizing:border-box;width:calc(100% - 25px);max-width:none}
@media(min-width:861px) and (max-width:1199px){.blog-area .cshero-right{flex:0 0 46%;max-width:46%}}
@media(max-width:991px){.blog-area>.container>.row>.cscom-main,.blog-area>.container>.row>.col-lg-4{width:100%!important;max-width:100%!important;flex:0 0 100%!important;margin-left:0!important;margin-right:0!important}.blog-area>.container>.row>.col-lg-4>.blog-sidebar{width:100%;margin-left:0;margin-right:0}}
@media(max-width:575px){.cscom-listing-shell{padding:12px}}
.cscom-main #fgGallery { display: block; min-height: 0; }
.cscom-main #fgGallery .fg-gallery__main { margin-right: 166px; min-height: 0; aspect-ratio: auto; }
.cscom-main #fgGallery .fg-gallery__main-link { height: auto; min-height: 0; }
.cscom-main #fgGallery .fg-gallery__main img { width: 100%; height: auto; min-height: 0; aspect-ratio: auto; object-fit: contain; transform: none; will-change: opacity; }
.cscom-main #fgGallery .fg-gallery__main-link:hover img { transform: none; }
.cscom-main #fgGallery .fg-gallery__rail { position: absolute; top: 12px; right: 12px; bottom: 12px; width: 152px; min-height: 0; overflow: hidden; }
.cscom-main #fgGallery .fg-gallery__rail-head { flex: 0 0 auto; }
.cscom-main #fgGallery .fg-gallery__thumbs { flex: 1 1 auto; flex-direction: column; height: auto !important; min-height: 0; max-height: none !important; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 1px; scrollbar-gutter: auto; }
.cscom-main #fgGallery .fg-gallery__thumb { flex: 0 0 auto; width: 100%; }
.cscom-main #fgGallery .fg-gallery__thumb:focus-visible { outline: 2px solid #ff7a2f; outline-offset: -3px; }
@media (max-width: 640px) {
    .cscom-main #fgGallery .fg-gallery__main { margin-right: 0; aspect-ratio: auto; }
    .cscom-main #fgGallery .fg-gallery__rail { position: relative; inset: auto; width: 100%; margin-top: 10px; }
    .cscom-main #fgGallery .fg-gallery__thumbs { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 1px 1px 8px; }
    .cscom-main #fgGallery .fg-gallery__thumb { flex: 0 0 74px; width: 74px; }
}
.cscom-image-viewer { position: fixed; inset: 0; box-sizing: border-box; width: min(1360px, calc(100vw - 24px)); max-width: none; height: min(920px, calc(100dvh - 24px)); max-height: none; margin: auto; padding: 52px 50px 42px; overflow: hidden; color: #f4f6fb; background: #0b0d12; border: 1px solid #303746; border-radius: 14px; box-shadow: 0 24px 100px #000b; }
.cscom-image-viewer::backdrop { background: #03060bea; }
.cscom-image-viewer img { display: block; width: 100%; height: 100%; object-fit: contain; }
.cscom-image-viewer button { position: absolute; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #343b49; border-radius: 10px; background: #171c26; color: #fff; font-size: 26px; cursor: pointer; }
.cscom-image-viewer button:hover, .cscom-image-viewer button:focus-visible { border-color: #ff6600; color: #ff8a42; outline: none; }
.cscom-image-viewer button:disabled { opacity: .25; cursor: default; }
.cscom-image-viewer-close { top: 8px; right: 8px; }
.cscom-image-viewer-prev { top: calc(50% - 19px); left: 6px; }
.cscom-image-viewer-next { top: calc(50% - 19px); right: 6px; }
.cscom-image-viewer-count { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); color: #b8c0cc; font: 600 13px 'Manrope', sans-serif; }
html:has(.cscom-image-viewer[open]) { overflow: hidden; }
@media(max-width:640px) { .cscom-image-viewer { padding-inline: 40px; border-radius: 10px; } .cscom-image-viewer button { width: 32px; height: 36px; } }

/* Match the download counters to the adjacent button, including POST buttons. */
.cscom-main .cscom-downloads { --cscom-download-height: 54px; align-items: stretch; }
.cscom-main .cscom-downloads > form { display: flex; min-width: 0; }
.cscom-main .cscom-downloads .dlx94-mainbtn { min-width: 0; min-height: var(--cscom-download-height); height: 100%; padding-block: 8px; }
.cscom-main .cscom-downloads > form > .dlx94-mainbtn { flex: 1; }
.cscom-main .cscom-downloads .dlx94-mainbtn__ico { flex-shrink: 0; }
.cscom-main .cscom-downloads .dlx94-mainbtn__text { min-width: 0; white-space: normal; text-align: center; line-height: 1.2; }
.cscom-main .cscom-downloads .dlx94-metrics { align-self: stretch; align-items: stretch; }
.cscom-main .cscom-downloads .dlx94-metric { align-self: stretch; min-height: var(--cscom-download-height); }
@media(max-width:520px) { .cscom-main .cscom-downloads { --cscom-download-height: 50px; } }

/* Native download forms retain the reference theme's orange buttons. */
.cscom-main .cscom-downloads > form > button.dlx94-mainbtn {
  appearance: none;
  background: linear-gradient(135deg, #e44c01 0%, #ff7a2f 52%, #ff8c00 100%) !important;
  border: 1px solid rgba(255,122,47,.32);
  color: #fff !important;
}
.cscom-main .cscard-actions > .cscom-card-download { display: flex; width: 100%; min-width: 0; align-self: stretch; margin: 0; }
.cscom-main .cscom-card-download > button.cscard-btn-dl {
  flex: 1 1 auto; width: 100% !important; min-width: 0; max-width: 100%; height: 100%; padding-inline: 8px; box-sizing: border-box; appearance: none; cursor: pointer;
  background: linear-gradient(135deg, #ff3d00, #ff6200) !important; color: #fff !important;
}
.cscom-main .cscom-downloads .dlx94-mainbtn:focus-visible,
.cscom-main .cscom-card-download .cscard-btn-dl:focus-visible { outline: 2px solid #ffad61; outline-offset: 3px; }
.cscom-entry-body .csacc-wrap + .csart-final { margin-top: 24px; }

/* Let article specification tables occupy their complete container width. */
.cscom-entry-body table.csart-itbl { display: table; width: 100%; table-layout: fixed; }
@media(max-width:560px) {
  .cscom-entry-body table.csart-itbl td { padding: 10px 12px; }
  .cscom-entry-body table.csart-itbl td:first-child { white-space: normal; }
}
