/* Softway listing pages (category blogs, products) on top of softway-blocks.css: title band, breadcrumb,
   picture cards, filter chips, pager. Pages wrap their content in .sw-page. */

/* The page draws its own title band, so the template's grey title strip and body padding step aside. */
body:has(.sw-page) #sp-page-title { display: none; }
#sp-main-body:has(.sw-page) { padding-top: 0; padding-bottom: 0; }
.sw-page { font-family: "Be Vietnam Pro", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.sw-page > .sw-block:last-child { padding-bottom: 96px; }
.sw-page .sw-block:not([class*="sw-tone--"]) + .sw-block:not([class*="sw-tone--"]) { padding-top: 0; }
.sw-page .sw-band + .sw-block:not([class*="sw-tone--"]) { padding-top: 72px; }

/* ---------- Title band ---------- */
.sw-band { padding: 56px 0 60px; overflow: hidden; background: radial-gradient(800px 420px at 92% -20%, rgba(241, 72, 51, .32), transparent 62%), radial-gradient(640px 380px at -5% 120%, rgba(64, 120, 255, .2), transparent 60%), linear-gradient(165deg, #0b1830 0%, #13284a 100%); }
.sw-band::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.sw-band .sw-wrap { position: relative; z-index: 1; }
.sw-band__title { margin-top: 14px !important; color: #fff !important; font-size: clamp(30px, 4vw, 46px); line-height: 1.15; font-weight: 800; }
.sw-band__lead { max-width: 720px; margin-top: 14px !important; color: #c9d3e3; font-size: 17.5px; line-height: 1.65; }
.sw-band__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px !important; }
.sw-band__facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #dfe6f1; font-size: 14px; font-weight: 600; }
.sw-band__facts .sw-icon { color: #ff8a78; }
.sw-band__facts a:hover { color: #fff; }
.sw-band__actions { margin-top: 28px; }

/* ---------- Closing call to action ---------- */
.sw-page-cta { overflow: hidden; }
.sw-page-cta::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(241, 72, 51, .35), transparent 70%); pointer-events: none; }
.sw-page-cta::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 60%); mask-image: linear-gradient(90deg, #000, transparent 60%); pointer-events: none; }
.sw-page-cta .sw-wrap { position: relative; z-index: 1; }
.sw-page-cta .sw-cta__points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }

.sw-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13.5px; color: #93a3bd; }
.sw-crumbs li { display: inline-flex; align-items: center; }
.sw-crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 10px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.sw-crumbs a { color: #c9d3e3; }
.sw-crumbs a:hover { color: #fff; }
.sw-crumbs [aria-current] { color: #ff9f8f; font-weight: 600; }

/* ---------- Category children ---------- */
.sw-cat__child .sw-card__icon img { width: 32px; height: 32px; object-fit: contain; }
.sw-cat__tags { padding-top: 24px; }

/* ---------- Posts ---------- */
.sw-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sw-post { position: relative; display: flex; flex-direction: column; border: 1px solid var(--sw-line); border-radius: var(--sw-radius); background: #fff; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.sw-post:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--sw-shadow-lg); }
.sw-post__cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sw-soft); }
/* The picture fills the frame without setting its height, so a tall full-page screenshot cannot stretch the card. */
.sw-post__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.sw-post:hover .sw-post__cover img { transform: scale(1.05); }
.sw-post__badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--sw-brand); color: #fff; font-size: 12px; font-weight: 800; }
.sw-post__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.sw-post__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--sw-muted); font-size: 13px; font-weight: 600; }
.sw-post__meta span::before { content: "•"; margin-right: 14px; opacity: .5; }
.sw-post__title { margin-top: 8px !important; font-size: 19px; line-height: 1.38; font-weight: 700; }
.sw-post__title a::after { content: ""; position: absolute; inset: 0; }
.sw-post:hover .sw-post__title a { color: var(--sw-brand); }
.sw-post__text { margin-top: 10px !important; color: var(--sw-muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sw-post:hover .sw-card__more .sw-icon { transform: translateX(3px); }
.sw-post__edit { position: relative; z-index: 2; margin-top: 10px; }
.sw-post.system-unpublished { opacity: .6; }

/* First post of a list gets a wide card on large screens. */
@media (min-width: 1000px) {
	.sw-posts > .sw-post:first-child:not(:only-child) { grid-column: span 2; flex-direction: row; }
	.sw-posts > .sw-post:first-child:not(:only-child) .sw-post__cover { flex: 0 0 56%; aspect-ratio: auto; min-height: 300px; }
	.sw-posts > .sw-post:first-child:not(:only-child) .sw-post__body { justify-content: center; padding: 32px; }
	.sw-posts > .sw-post:first-child:not(:only-child) .sw-post__title { font-size: 24px; }
}

/* Stand-in cover for items without a picture */
.sw-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, var(--sw-c1), var(--sw-c2)); color: #fff; }
.sw-cover::before { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -80px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.sw-cover::after { content: ""; position: absolute; width: 140px; height: 140px; right: 40px; bottom: -90px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.sw-cover__letter { position: absolute; left: 18px; bottom: -14px; font-size: 120px; font-weight: 800; line-height: 1; opacity: .16; }
.sw-cover__icon { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 22px; background: rgba(255, 255, 255, .16); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .3s ease; }
.sw-cover__icon .sw-icon { width: 36px; height: 36px; }
.sw-post:hover .sw-cover__icon { transform: scale(1.08) rotate(-4deg); }

.sw-more-links { margin-top: 40px; padding: 24px 28px; border-radius: var(--sw-radius); background: var(--sw-soft); }
.sw-more-links h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px !important; }
.sw-more-links ul { display: grid; gap: 6px; }
.sw-more-links a { color: var(--sw-ink); font-weight: 600; }
.sw-more-links a:hover { color: var(--sw-brand); }

/* ---------- Pager (Joomla pagination markup) ---------- */
.sw-pager { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 48px; }
.sw-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 !important; padding: 0; list-style: none; box-shadow: none; }
.sw-pager li { margin: 0; }
.sw-pager li > a, .sw-pager li > span { display: inline-flex !important; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 12px !important; border: 1px solid var(--sw-line) !important; border-radius: 12px !important; background: #fff !important; color: var(--sw-ink) !important; font-size: 14.5px; font-weight: 700; float: none !important; transition: border-color .15s ease, color .15s ease; }
.sw-pager li > a:hover { border-color: var(--sw-brand) !important; color: var(--sw-brand) !important; }
.sw-pager li.active > a, .sw-pager li.active > span { border-color: var(--sw-brand) !important; background: var(--sw-brand) !important; color: #fff !important; }
.sw-pager li.disabled > a, .sw-pager li.disabled > span { opacity: .45; }
.sw-pager__count { color: var(--sw-muted); font-size: 13.5px; }

/* ---------- Article page ---------- */
.sw-article .entry-header, .sw-article .page-header { display: none; }
.sw-article__main .sw-wrap { position: relative; max-width: 900px; }
.sw-article__main .item-page { font-size: 17px; }
.sw-article__main .print-pdf { top: -8px !important; }
.sw-article .sw-prose table { width: 100%; border-collapse: collapse; }
.sw-article .sw-prose td, .sw-article .sw-prose th { padding: 8px 10px; border: 1px solid var(--sw-line); }
.sw-article .sw-prose iframe { max-width: 100%; border-radius: 12px; }
.sw-article .tags, .sw-article .helix-social-share { margin-top: 32px; }

/* ---------- Software detail ---------- */
.sw-product-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.sw-product-hero .sw-actions { margin-top: 26px; }
.sw-product-hero .sw-band__facts { margin-top: 22px !important; }
.sw-product-hero__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 18px !important; }
.sw-product-hero__price strong { color: #fff; font-size: 32px; font-weight: 800; }
.sw-product-hero__price del { color: #93a3bd; font-size: 17px; }
.sw-product-hero__price span { padding: 3px 10px; border-radius: 999px; background: var(--sw-brand); color: #fff; font-size: 13px; font-weight: 800; }
.sw-product-hero__edit { display: inline-block; margin-top: 16px; color: #ff9f8f; font-size: 14px; text-decoration: underline !important; }
.sw-product-hero__frame { position: relative; border-radius: 16px; background: #fff; overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); transform: perspective(1400px) rotateY(-6deg); transition: transform .4s ease; }
.sw-product-hero__frame:hover { transform: none; }
.sw-product-hero__bar { display: flex; gap: 6px; padding: 11px 14px; background: #eef1f5; }
.sw-product-hero__bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.sw-product-hero__bar i:nth-child(2) { background: #fbbf24; }
.sw-product-hero__bar i:nth-child(3) { background: #34d399; }
.sw-product-hero__screen { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sw-soft); }
.sw-product-hero__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.sw-product-page__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.sw-product-page__grid:has(.sw-toc) { grid-template-columns: 260px minmax(0, 1fr); align-items: start; }
.sw-product-page__grid .sw-prose { max-width: none; margin: 0; }
.sw-toc { position: sticky; top: 110px; padding: 20px 22px; border: 1px solid var(--sw-line); border-radius: var(--sw-radius); background: #fff; font-size: 14.5px; }
.sw-toc ul { display: grid; gap: 6px; margin-top: 4px; }
.sw-toc ul ul { margin: 6px 0 0 12px; }
.sw-toc a { color: var(--sw-text); }
.sw-toc a:hover { color: var(--sw-brand); }

.sw-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sw-shots a { display: block; border-radius: var(--sw-radius); background: #fff; overflow: hidden; box-shadow: var(--sw-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.sw-shots a:hover { transform: translateY(-4px); box-shadow: var(--sw-shadow-lg); }
.sw-shots__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sw-soft); }
.sw-shots__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sw-shots__name { display: block; padding: 12px 14px; color: var(--sw-ink); font-size: 14.5px; font-weight: 600; }

@media (max-width: 900px) {
	.sw-product-hero, .sw-product-page__grid:has(.sw-toc) { grid-template-columns: 1fr; }
	.sw-product-hero__frame { transform: none; }
	.sw-toc { position: static; }
	.sw-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ---------- Document library (the list keeps its own card styles) ---------- */
.sw-docs .document-groups-header h3 { display: none; }
.sw-docs .document-groups-header { justify-content: flex-end; }
.sw-docs .document-groups-section-title { font-size: 20px; font-weight: 800; color: var(--sw-ink); margin: 32px 0 14px !important; }
.sw-docs .document-group-card { border-radius: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.sw-docs .document-group-card:hover { transform: translateY(-3px); box-shadow: var(--sw-shadow-lg); }

/* ---------- Account sign-up ---------- */
.sw-signup__grid { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 56px; align-items: start; }
.sw-signup__copy { position: sticky; top: 120px; }
.sw-signup .sw-cta__points { color: #c9d3e3; }
.sw-signup .sw-cta__points .sw-icon { color: #4ade80; }
.sw-signup .sw-actions { margin-top: 28px; }
.sw-signup__form .form-group { margin: 0 0 14px; }
.sw-signup__form label { display: inline-block; margin-bottom: 6px; color: var(--sw-ink); font-size: 14px; font-weight: 600; }
.sw-signup__form .optional { margin-left: 6px; color: var(--sw-muted); font-size: 12.5px; }
.sw-signup__form .star { color: var(--sw-brand); }
.sw-block .sw-signup__form input[type="text"], .sw-block .sw-signup__form input[type="email"], .sw-block .sw-signup__form input[type="password"], .sw-block .sw-signup__form select, .sw-block .sw-signup__form textarea { width: 100% !important; height: 48px !important; margin: 0; padding: 0 14px !important; border: 1px solid var(--sw-line) !important; border-radius: 12px !important; background: var(--sw-soft) !important; color: var(--sw-ink); font: inherit; font-size: 15.5px; box-shadow: none !important; }
.sw-block .sw-signup__form textarea { height: auto !important; padding: 12px 14px !important; }
.sw-signup__form input:focus, .sw-signup__form select:focus { outline: none; border-color: var(--sw-brand) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(241, 72, 51, .12) !important; }
.sw-signup__form .invalid { border-color: #dc2626 !important; }
.sw-tone--dark .sw-signup__form .sw-lead__title { color: var(--sw-ink); }
.sw-signup__form fieldset.radio, .sw-signup__form .radio { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; padding: 0; border: 0; }
.sw-signup__form .radio label, .sw-signup__form fieldset label { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 0; font-weight: 500; }
.sw-signup__form input[type="radio"], .sw-signup__form input[type="checkbox"] { position: static; width: 16px; height: 16px; margin: 0 !important; accent-color: var(--sw-brand); }
.sw-signup__form .spacer { display: none; }
.sw-signup__submit { display: grid; gap: 10px; margin-top: 8px; text-align: center; }
.sw-signup__cancel { color: var(--sw-muted); font-size: 14px; }
.sw-signup__cancel:hover { color: var(--sw-ink); }

@media (max-width: 900px) {
	.sw-signup__grid { grid-template-columns: 1fr; gap: 32px; }
	.sw-signup__copy { position: static; }
}

/* ---------- Long description ---------- */
.sw-prose { max-width: 820px; margin: 0 auto; color: var(--sw-text); font-size: 17px; line-height: 1.75; }
.sw-prose > * + * { margin-top: 1em !important; }
.sw-prose h2, .sw-prose h3, .sw-prose h4 { color: var(--sw-ink); font-weight: 800; line-height: 1.3; margin-top: 1.6em !important; }
.sw-prose h2 { font-size: 28px; } .sw-prose h3 { font-size: 22px; } .sw-prose h4 { font-size: 18px; }
.sw-prose ul, .sw-prose ol { padding-left: 1.3em !important; list-style: disc; }
.sw-prose ol { list-style: decimal; }
.sw-prose li + li { margin-top: .4em; }
.sw-prose a { color: var(--sw-brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sw-prose img { margin: 1.4em auto; border-radius: 14px; }

/* ---------- Empty state ---------- */
.sw-empty { max-width: 560px; margin: 0 auto; padding: 48px 32px; border: 1px dashed var(--sw-line); border-radius: 20px; text-align: center; }
.sw-empty .sw-card__icon { margin: 0 auto; }
.sw-empty h2 { margin-top: 18px !important; font-size: 22px; font-weight: 800; }
.sw-empty p { margin-top: 8px !important; color: var(--sw-muted); }
.sw-empty .sw-actions { justify-content: center; margin-top: 24px; }

/* ---------- Product filter chips + toolbar ---------- */
.sw-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--sw-line); border-radius: 999px; background: #fff; color: var(--sw-ink); font-size: 14.5px; font-weight: 600; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.sw-chips a:hover { border-color: var(--sw-brand); color: var(--sw-brand); }
.sw-chips a[aria-current] { border-color: var(--sw-ink); background: var(--sw-ink); color: #fff; }
.sw-chips em { font-style: normal; font-size: 12.5px; opacity: .65; }
.sw-toolbar__count { color: var(--sw-muted); font-size: 14.5px; }
.sw-toolbar__count strong { color: var(--sw-ink); }

.sw-product .sw-post__cover { aspect-ratio: 4 / 3; }
.sw-product__cat { display: inline-block; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: #fff1ee; color: var(--sw-brand); font-size: 12.5px; font-weight: 700; }
.sw-product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 12px !important; }
.sw-product__price strong { color: var(--sw-brand); font-size: 18px; font-weight: 800; }
.sw-product__price del { color: var(--sw-muted); font-size: 14px; }
.sw-product__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.sw-product__foot .sw-card__more { padding-top: 0; }
.sw-product__guide { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 6px; color: var(--sw-muted); font-size: 13.5px; font-weight: 600; }
.sw-product__guide:hover { color: var(--sw-ink); }

/* ---------- Picture cards (softway_people addon) ---------- */
.sw-people__grid { display: grid; gap: 20px; }
.sw-person { position: relative; display: flex; flex-direction: column; border-radius: var(--sw-radius); background: #fff; overflow: hidden; box-shadow: var(--sw-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.sw-person:hover { transform: translateY(-4px); box-shadow: var(--sw-shadow-lg); }
.sw-person__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(160deg, #13284a, #0b1830); }
.sw-people--wide .sw-person__photo { aspect-ratio: 16 / 10; }
.sw-person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.sw-person:hover .sw-person__photo img { transform: scale(1.04); }
.sw-person__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(11, 24, 48, .35)); pointer-events: none; }
.sw-person__initials { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 44px; font-weight: 800; letter-spacing: .02em; background: radial-gradient(260px 200px at 80% 0%, rgba(241, 72, 51, .45), transparent 70%); }
.sw-person__body { padding: 16px 18px 18px; }
.sw-person__name { font-size: 17px; font-weight: 700; line-height: 1.35; }
.sw-person__name a::after { content: ""; position: absolute; inset: 0; }
.sw-person__role { margin-top: 4px !important; color: var(--sw-brand); font-size: 13.5px; font-weight: 600; }
.sw-person__text { margin-top: 8px !important; color: var(--sw-muted); font-size: 14.5px; }
.sw-tone--soft .sw-person { box-shadow: none; border: 1px solid #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.sw-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.sw-people--portrait .sw-people__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.sw-person__body { padding: 12px 12px 14px; }
	.sw-person__name { font-size: 15px; }
	.sw-person__role { font-size: 12.5px; }
}

@media (max-width: 600px) {
	.sw-band { padding: 40px 0 44px; }
	.sw-band__lead { font-size: 16px; }
	.sw-band__facts li { font-size: 13px; padding: 6px 12px; }
	.sw-posts { grid-template-columns: 1fr; gap: 16px; }
	.sw-post__body { padding: 16px 18px 18px; }
	.sw-post__title { font-size: 17.5px; }
	.sw-page .sw-band + .sw-block:not([class*="sw-tone--"]) { padding-top: 44px; }
	.sw-page > .sw-block:last-child { padding-bottom: 64px; }
	.sw-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
	.sw-chips a { flex: none; }
	.sw-prose { font-size: 16px; }
}
