/* Solutions pages — elevated visual sections (scene photo, quotes, showcase).
   Loaded only by pages that declare extraCss. Logical properties for RTL/LTR. */

/* ---------- breakout: wider than the 820px article column, centered ---------- */
.sx-breakout {
    width: min(1120px, calc(100vw - 2.4rem));
    margin-inline: calc((100% - min(1120px, calc(100vw - 2.4rem))) / 2);
}

/* ---------- section headers ---------- */
.page .sx-h2 {
    text-align: center;
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    margin: 0 0 0.6rem;
}
.page .sx-sub {
    text-align: center;
    color: var(--muted-2);
    max-width: 44rem;
    margin: 0 auto 2.2rem;
}

/* ---------- 1 · clinic scene ---------- */
.sx-scene {
    /* margin-block only — the shorthand `margin` would override .sx-breakout's
       margin-inline centering and shove the figure off the page edge in RTL */
    margin-block: 2.8rem 1rem;
}
.sx-scene__frame {
    position: relative;
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow:
        0 30px 70px rgba(11, 18, 32, 0.18),
        0 8px 22px  rgba(11, 18, 32, 0.10);
}
.sx-scene__frame img {
    display: block;
    width: 100%;
    height: auto;
}
.sx-scene__chip {
    position: absolute;
    inset-block-end: 1rem;
    inset-inline-start: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.05rem;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
            backdrop-filter: blur(14px) saturate(150%);
    color: var(--ink);
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 14px rgba(11, 18, 32, 0.18);
}
.sx-scene__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-soft));
}
.page .sx-scene figcaption {
    margin-block-start: 0.75rem;
    text-align: center;
    color: var(--muted-1);
    font-size: 0.84rem;
}

/* ---------- 2 · quotes ---------- */
.sx-quotes { margin-block: 3.6rem 1.2rem; }
.sx-quotes__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.1rem;
    align-items: stretch;
}
.page .sx-quote {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 1.5rem 1.5rem 1.35rem;
    box-shadow: 0 10px 26px rgba(11, 18, 32, 0.06);
    transition: transform 0.5s var(--ease-spring), box-shadow 0.4s var(--ease-smooth);
}
.page .sx-quote:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(11, 18, 32, 0.11);
}
.sx-quote__mark {
    display: block;
    height: 1.35rem;
    font-size: 2.7rem;
    line-height: 0.9;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.9;
    user-select: none;
}
.sx-quote blockquote { margin: 0; }
.page .sx-quote blockquote p {
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.72;
    color: var(--ink);
}
.sx-quote footer {
    margin-block-start: auto;
    padding-block-start: 0.9rem;
    border-block-start: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.sx-quote footer strong { font-size: 0.95rem; color: var(--ink); }
.sx-quote footer span { font-size: 0.83rem; color: var(--muted-1); }

/* ---------- 3 · visual showcase ---------- */
.sx-show { margin-block: 3.4rem 1.2rem; }
.sx-show__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}
.page .sx-tile {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-decoration: none;
    background: linear-gradient(180deg, #f6f9fd 0%, #ffffff 78%);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 1.25rem 1.3rem 1.2rem;
    transition: transform 0.5s var(--ease-spring),
                box-shadow 0.4s var(--ease-smooth),
                border-color 0.3s var(--ease-smooth);
}
.page .sx-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 122, 224, 0.45);
    box-shadow: 0 16px 38px rgba(11, 18, 32, 0.10);
}
.sx-tile__viz {
    height: 96px;
    margin-block-end: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sx-tile__viz svg {
    width: 100%;
    height: 100%;
    display: block;
}
.sx-tile--hero { grid-column: span 2; }
.sx-tile--hero .sx-tile__viz { height: 132px; }
.page .sx-tile h3 {
    margin: 0.2rem 0 0.15rem;
    font-size: 1.02rem;
    transition: color 0.3s var(--ease-smooth);
}
.page .sx-tile:hover h3 { color: var(--accent); }
.page .sx-tile p {
    margin: 0;
    font-size: 0.89rem;
    line-height: 1.6;
    color: var(--muted-2);
}
.page .sx-tile--wide {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: 1.4rem;
    padding-block: 1.1rem;
}
.sx-tile--wide .sx-tile__viz {
    height: 76px;
    flex: 0 0 96px;
    margin-block-end: 0;
}
.sx-tile--wide .sx-tile__txt { flex: 1; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .sx-show__grid { grid-template-columns: 1fr 1fr; }
    .sx-tile--hero { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .sx-show__grid { grid-template-columns: 1fr; }
    .sx-tile--hero, .sx-tile--wide { grid-column: auto; }
    .page .sx-tile--wide { flex-direction: column; align-items: flex-start; }
    .sx-scene__chip { font-size: 0.78rem; padding: 0.4rem 0.85rem; }
}
