/* =========================================================
   Software page — matches demosites.bragyst.com/hawaii-led-screen/software/
   Uses the page banner / reveal styles from about.css; the rules
   below are scoped under .sw-main.
   ========================================================= */
/* ---------- Hero banner (desktop) ----------
   Desktop image: assets/img/software-banner.jpg */
.about-main.sw-main .pagehead.sw-hero {
   --hero-bg: url("../img/software-banner.jpg");
}

/* ---------- Hero banner (mobile, phones up to 760px) ----------
   TO CHANGE: replace assets/img/software-banner-mobile.jpg (1080 x 1350, under 200 KB)
   or edit the first url below. The second url is a fallback to the desktop image.
   Banner height: change 960 (e.g. 1350 taller, 600 shorter).
   The long selector and !important beat the generic phone banner rule in about.css
   ("Phones: the whole banner photo, no crop"), which would otherwise show the desktop
   image as a thin strip. */
@media (max-width: 760px) {
   .about-main.sw-main .pagehead.has-banner.banner-about.sw-hero:not(.team-hero):not(.has-cat-bg-m) {
      --hero-bg: url("../img/software-banner-mobile.jpg"), url("../img/software-banner.jpg");
      min-height: calc(100vw * 960 / 1080) !important;
      display: flex !important;
      flex-direction: column !important;
      justify-content: flex-end !important;
      padding-top: calc(var(--hdr, 76px) + 70px) !important;
      padding-bottom: 24px !important;
      background-color: #061333 !important;
      background-image: linear-gradient(0deg, rgba(4, 16, 46, .9) 0%, rgba(4, 16, 46, .55) 32%, rgba(4, 16, 46, 0) 60%), var(--hero-bg) !important;
      background-size: cover !important;
      background-position: center !important;
      background-repeat: no-repeat !important;
   }

   .about-main.sw-main .pagehead.sw-hero .wrap {
      width: 100%;
   }
}

.sw-main .swgrid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
   gap: 20px
}

.sw-main .swcard {
   border: 1px solid var(--line);
   border-radius: var(--rad);
   padding: 24px;
   background: #fff;
   box-shadow: var(--sh)
}

.sw-main .swcard h4 {
   font-family: var(--font);
   font-size: 16px;
   font-weight: 500;
   color: var(--ink);
   margin: 0 0 8px
}

.sw-main .dllist {
   list-style: none;
   margin: 14px 0 0;
   padding: 0;
   display: flex;
   flex-direction: column;
   gap: 9px
}

.sw-main .dllist li {
   font-family: var(--font);
   font-size: 12.5px;
   color: var(--mut);
   background: var(--soft);
   border-radius: 7px;
   padding: 8px 11px;
   word-break: break-all;
   line-height: 1.4
}

.sw-main .dllist li:has(.dlfile) {
   padding: 0;
   background: none
}

.sw-main .dlfile {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 8px;
   font-family: var(--font);
   font-size: 12.5px;
   color: var(--blue);
   background: var(--blue-soft, #EEF2FB);
   border-radius: 7px;
   padding: 8px 11px;
   line-height: 1.4;
   transition: background .2s
}

.sw-main .dlfile:hover {
   background: var(--line)
}

.sw-main .dlfile svg {
   flex-shrink: 0
}