/* Product and solution pages. Loaded after vahansense.css, which supplies the .vs type, list, CTA and AI bar styles. */

.sp-visual img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: contain; }
.sp-visual.sp-photo img { height: 380px; object-fit: cover; border-radius: 12px; }
.sp-visual.sp-zoom { overflow: hidden; aspect-ratio: 4 / 3; }
.sp-visual.sp-zoom img { height: 100%; max-height: none; object-fit: cover; transform: scale(1.18); }
.sp-intro { margin: -.75rem 0 32px; color: var(--muted); font-size: 1.1rem; }

.sp-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.sp-steps li { border-top: 3px solid var(--navy); padding-top: 18px; counter-increment: step; }
.sp-steps i { display: block; font-size: 34px; margin-bottom: 10px; }
.sp-steps h3::before { content: counter(step) ". "; }
.sp-steps p { margin: 0; color: var(--muted); }

.sp-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.sp-split > img { width: 100%; height: auto; border-radius: 12px; }
.sp-wide { display: block; width: 100%; height: auto; margin-top: 32px; }

.sp-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sp-points li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sp-points i { font-size: 22px; margin-top: 1px; }

.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.sp-chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--navy); font-weight: 700; font-size: .92rem; }

.sp-chart { margin: 0; padding: 20px; border: 2px solid var(--navy); border-radius: 12px; background: #fff; }
.sp-chart svg { display: block; width: 100%; height: auto; }
.sp-chart figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }

.sp-table { width: 100%; border-collapse: collapse; }
.sp-table th, .sp-table td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.sp-table thead th { border-bottom: 2px solid var(--navy); color: var(--navy); }
.sp-table tbody th { color: var(--navy); }
.sp-table .sp-on { background: #eef0fb; font-weight: 700; }

.sp-quote { margin: 0; max-width: 820px; }
.sp-quote blockquote { margin: 0 0 18px; color: var(--navy); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.55; }
.sp-quote figcaption { display: flex; align-items: center; gap: 14px; font-weight: 800; color: var(--navy); }
.sp-quote img { width: 76px; height: 76px; object-fit: contain; }

.sp-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.sp-cases figure { margin: 0; }
.sp-cases img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.sp-cases figcaption { margin-top: 12px; color: var(--navy); font-weight: 700; }

.sp-accordion details p { margin-bottom: 0; padding-bottom: 14px; max-width: 75ch; }
.sp-accordion details p:last-child { padding-bottom: 20px; }

.sp-related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.sp-related a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 62px; border-bottom: 1px solid var(--line); color: var(--navy); font-weight: 800; }
.sp-related a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 991px) {
   .sp-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
   .sp-steps { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .sp-cases, .sp-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .sp-visual.sp-photo img { height: 280px; }
}

@media (max-width: 600px) {
   .sp-steps, .sp-cases, .sp-related { grid-template-columns: minmax(0, 1fr); }
   .sp-table th, .sp-table td { padding: 12px 6px; font-size: .88rem; }
}

/* Hero: same container as the header, artwork held to a moderate size */
.sp .vs-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.sp .sp-visual { justify-self: end; width: 100%; max-width: 500px; }
.sp .sp-visual img { margin: 0 auto; max-height: 380px; object-fit: contain; }
.sp .sp-visual:not(.sp-photo) img { width: 100%; }
.sp .sp-visual.sp-photo img { height: 360px; max-height: none; object-fit: cover; }

/* Capability explorer */
.sp-explorer { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.sp-tabs { display: flex; flex-direction: column; padding: 12px; background: #05054d; }
.sp-tabs button { display: flex; align-items: center; gap: 14px; flex: 1; min-height: 50px; padding: 10px 14px; border: 0; border-radius: 8px; background: none; color: #d6d8f0; font: inherit; font-weight: 700; text-align: left; }
.vs .sp-tabs i.uil { color: inherit; font-size: 22px; }
.sp-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.sp-tabs button[aria-selected="true"] { background: #fff; color: #05054d; }
.vs .sp-tabs button:focus-visible { outline-color: #fff; outline-offset: -3px; }
.sp-panel { padding: 40px; }
.sp-panel + .sp-panel { border-top: 1px solid var(--line); }
.sp-explorer.is-ready .sp-panel { border-top: 0; }
.sp-panel[hidden] { display: none; }
.vs .sp-panel h3 { display: flex; align-items: center; gap: 16px; font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 12px; }
.vs .sp-panel h3 i.uil { display: grid; place-items: center; flex: 0 0 64px; height: 64px; border-radius: 14px; background: #eef0fb; font-size: 34px; }
.sp-summary { font-size: 1.15rem; color: var(--muted); margin-bottom: 22px; }
.sp-highlights { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); }
.sp-highlights li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.sp-highlights i { font-size: 22px; }
.sp-panel summary { cursor: pointer; color: var(--navy); font-weight: 800; padding: 8px 0; }
.sp-panel details p { margin: 10px 0 0; color: var(--muted); max-width: 75ch; }
.sp-panel-photo { padding: 0; }
.sp-panel-photo > img { display: block; width: 100%; height: 300px; object-fit: cover; }
.sp-panel-photo > div { padding: 28px 40px 36px; }

/* Where it is used */
.sp-use { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.sp-use-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-use article { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.sp-use img { display: block; width: 100%; height: 260px; object-fit: cover; }
.sp-use article > div { padding: 22px 24px 24px; }
.vs .sp-use h3 { font-size: 1.35rem; }
.sp-use p { color: var(--muted); margin-bottom: 16px; }
.sp-use ul { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.sp-use li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); }
.sp-use li i { font-size: 20px; }

@media (max-width: 991px) {
   .sp .vs-hero-grid, .sp-explorer { grid-template-columns: minmax(0, 1fr); }
   .sp .sp-visual { justify-self: center; }
   .sp-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
   .sp-tabs button { min-height: 44px; padding: 8px 10px; font-size: .9rem; }
   .sp .sp-visual.sp-photo img { height: 300px; }
   .sp-use-3 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
   .sp-use { grid-template-columns: minmax(0, 1fr); }
   .sp-use img { height: 200px; }
   .sp-panel { padding: 24px 18px; }
   .sp-panel-photo { padding: 0; }
   .sp-panel-photo > img { height: 190px; }
   .sp-panel-photo > div { padding: 20px 18px 24px; }
   .vs .sp-panel h3 i.uil { flex-basis: 48px; height: 48px; font-size: 26px; }
}
