/* ==========================================================================
   IIME page-builder blocks
   Styles for sections that are composed in the CMS page builder.
   Builds on the tokens defined in iime-modern.css.
   ========================================================================== */

ii-block { display: block; }
.ii-block-empty {
    border: 1.5px dashed var(--ii-line-2); border-radius: var(--ii-radius); background: var(--ii-bg);
    color: var(--ii-muted); text-align: center; padding: 34px 20px; font: 500 14px/1.5 var(--ii-sans);
}

/* ---------- Document page (policies, long-form content) ---------- */
.ii-doc-section { padding-top: 70px; }
.ii-toc { position: sticky; top: calc(var(--ii-header-h) + 24px); border-left: 2px solid var(--ii-line); padding-left: 18px; }
.ii-toc h6 { font: 600 11px var(--ii-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ii-muted); margin-bottom: 14px; }
.ii-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.ii-toc a { font-size: 13.5px; color: var(--ii-text); display: block; line-height: 1.4; }
.ii-toc a.is-active { color: var(--ii-red); font-weight: 600; }
.ii-doc { background: #fff; border: 1px solid var(--ii-line); border-radius: var(--ii-radius-lg); padding: clamp(24px, 4vw, 56px); box-shadow: var(--ii-shadow-sm); }
.ii-doc > *:first-child { margin-top: 0; }
.ii-doc h2, .ii-doc h3 { scroll-margin-top: calc(var(--ii-header-h) + 20px); }

/* ---------- Feature cards ---------- */
.ii-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.ii-feature {
    background: #fff; border: 1px solid var(--ii-line); border-radius: var(--ii-radius-lg); padding: 30px 28px;
    box-shadow: var(--ii-shadow-sm); transition: transform .35s var(--ii-ease), box-shadow .35s var(--ii-ease);
}
.ii-feature:hover { transform: translateY(-4px); box-shadow: var(--ii-shadow); }
.ii-feature-ico {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
    background: linear-gradient(135deg, var(--ii-navy-2), var(--ii-navy-3)); color: #fff; font-size: 20px;
}
.ii-feature h4 { font: 600 20px/1.3 var(--ii-serif); color: var(--ii-ink); margin: 0 0 10px; }
.ii-feature p { margin: 0; color: var(--ii-text); line-height: 1.65; }

/* ---------- Partner logos ---------- */
.ii-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.ii-logo {
    display: grid; place-items: center; width: 170px; height: 104px; padding: 18px; background: #fff;
    border: 1px solid var(--ii-line); border-radius: var(--ii-radius); box-shadow: var(--ii-shadow-sm);
}
.ii-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: .3s; }
.ii-logo:hover img { filter: none; opacity: 1; }

/* ---------- Testimonials ---------- */
.ii-testis { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.ii-testi { margin: 0; background: #fff; border: 1px solid var(--ii-line); border-radius: var(--ii-radius-lg); padding: 28px; box-shadow: var(--ii-shadow-sm); display: flex; flex-direction: column; gap: 18px; }
.ii-testi blockquote { margin: 0; font: italic 500 17px/1.6 var(--ii-serif); color: var(--ii-ink); }
.ii-testi figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.ii-testi figcaption img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; background: var(--ii-bg); padding: 6px; }
.ii-testi figcaption b { display: block; color: var(--ii-ink); }
.ii-testi figcaption small { color: var(--ii-muted); }

/* ---------- Team ---------- */
.ii-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.ii-member { text-align: center; }
.ii-member-img { aspect-ratio: 1; border-radius: var(--ii-radius-lg); overflow: hidden; background: var(--ii-bg); border: 1px solid var(--ii-line); display: grid; place-items: center; margin-bottom: 14px; }
.ii-member-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.ii-member h5 { font: 600 17px var(--ii-serif); color: var(--ii-ink); margin: 0 0 4px; }
.ii-member span { color: var(--ii-muted); font-size: 14px; }

/* ---------- Media + text ---------- */
.ii-media { border-radius: var(--ii-radius-lg); overflow: hidden; box-shadow: var(--ii-shadow); }
.ii-media img { width: 100%; display: block; }

@media (max-width: 991px) {
    .ii-toc { display: none; }
}
