/* Shared child picker; the native dialog keeps keyboard focus inside it. */
html.service-children-open { overflow: hidden; }
.service-showcase-children-panel { margin: 0; right: auto; bottom: auto; transform: none; color: #1d2340; }
.services-categories-toggle { display: none; }
.service-showcase-children-panel:not([open]) { display: none; }
.service-showcase-children-panel::backdrop { background: rgba(25,20,48,.32); backdrop-filter: blur(3px); }
.service-children-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.service-children-head small { display: block; color: #777184; font-size: .72rem; margin-bottom: 4px; }
.service-children-head strong { color: #51439c; font-size: 1rem; }
.service-children-head button { flex: 0 0 44px; height: 44px; border: 1px solid #e6e1f2; border-radius: 12px; background: #f7f5fc; color: #51439c; font: inherit; font-size: 1.4rem; cursor: pointer; }
.service-child-icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 10px; color: #51439c; background: #eeebf9; }
.service-child-icon svg { width: 21px; height: 21px; }
.service-showcase-children-list a { min-height: 56px; gap: 10px; }
.service-showcase-children-list a > span:last-child { margin-inline-start: auto; color: #51439c; }
.service-showcase-mark-placeholder svg { width: 28px; height: 28px; }

@media (max-width: 760px) {
    .services-landing > section > .container { width: calc(100% - 28px); }
    .services-hero { margin: 12px 14px 0; padding: 22px 0; border-radius: 22px; }
    .services-hero > .container { width: calc(100% - 36px) !important; }
    .services-eyebrow { font-size: .7rem; gap: 7px; }
    .services-eyebrow::before { width: 18px; }
    .services-hero h1 { font-size: clamp(1.5rem,6.1vw,2rem); line-height: 1.4; margin: 8px 0; max-width: 460px; }
    .services-hero p { font-size: .8rem; line-height: 1.8; }
    .services-hero-actions { margin-top: 16px; gap: 8px; }
    .services-hero-actions a { flex: 1 1 auto; min-height: 44px; padding: 9px 10px; font-size: .73rem; border-radius: 11px; }
    .services-main { padding: 22px 0 28px; scroll-margin-top: 78px; }
    .services-intro { margin-bottom: 12px; }
    .services-intro-label { display: none; }
    .services-intro h2 { font-size: 1.2rem; margin: 0; }
    .services-intro p { font-size: .8rem; }
    .services-filter-bar { padding: 12px; border-radius: 18px; box-shadow: none; margin-bottom: 16px; }
    .services-filter-bar__main { gap: 12px; }
    .services-categories-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #e6e1f2; border-radius: 11px; color: #51439c; background: #f7f5fc; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
    .services-categories-toggle svg { width: 18px; height: 18px; }
    .services-categories-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
    .services-categories-toggle[aria-expanded="false"] + .services-filter-tabs { display: none; }
    .services-filter-controls { order: -1; grid-template-columns: minmax(0,1fr) 64px; gap: 8px; }
    .services-filter-search { grid-column: 1 / -1; }
    .services-filter-search input { min-height: 46px; font-size: 16px; border-radius: 12px; }
    .services-filter-sort, .services-filter-apply { min-height: 44px; border-radius: 10px; font-size: .76rem; }
    .services-filter-tabs { gap: 6px; }
    .services-filter-tabs a { min-height: 40px; border: 1px solid #eeeaf6; border-radius: 10px; padding: 7px 10px; font-size: .7rem; }
    .services-filter-bar__foot { gap: 8px; }
    .services-directory-link { min-height: 44px; font-size: .75rem; border-radius: 10px; }
    .services-filter-meta { font-size: .7rem; gap: 7px; }
    .services-showcases { grid-template-columns: 1fr; gap: 14px; }
    .service-showcase { display: block; position: relative; border-radius: 20px; box-shadow: 0 5px 18px rgba(32,33,62,.035); }
    .service-showcase:hover, .service-showcase:focus-within { transform: none; box-shadow: 0 5px 18px rgba(32,33,62,.035); }
    .service-showcase-rail { display: contents; }
    .service-showcase-mark { position: absolute; top: 16px; right: 14px; display: block; padding: 0; }
    .service-showcase-mark img, .service-showcase-mark-placeholder { display: grid; width: 46px; height: 46px; border: 0; border-radius: 13px; object-fit: contain; background: #51439c; color: white; box-shadow: none; }
    .service-showcase-number { display: none; }
    .service-showcase-action { position: absolute; top: 18px; left: 14px; width: 44px; height: 44px; min-height: 44px; border-radius: 12px; background: #f3f0fb; padding: 0; }
    .service-showcase-action-icon { border: 0; font-size: 1.25rem; }
    .service-showcase-action-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .service-showcase-content { padding: 16px 14px; }
    .service-showcase-main { display: flex; flex-direction: column; }
    .service-showcase-title-row { display: contents; }
    .service-showcase h3 { display: flex; align-items: center; min-height: 46px; margin: 0 0 12px; padding-inline: 58px 50px; font-size: 1rem; line-height: 1.55; }
    .service-showcase-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0; font-size: .79rem; line-height: 1.8; }
    .service-showcase-categories { margin-top: 8px; }
    .service-showcase-category { font-size: .64rem; min-height: 28px; }
    .service-showcase-children-toggle { order: 4; width: 100%; min-height: 44px; margin: 12px 0 0; padding: 8px 12px; background: #f6f4fc; border: 1px solid #eae5f7; border-radius: 12px; font-size: .76rem; }
    .service-showcase-children-toggle__arrow { margin-inline-start: auto; }
    .service-showcase-output-area { margin-top: 12px; }
    .service-showcase-outputs-heading { margin: 0 0 8px; font-size: .69rem; color: #777184; }
    .service-showcase-outputs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
    .service-showcase-output-media { width: 100%; height: auto; aspect-ratio: 4 / 5; background: #f8f7fb; }
    .service-showcase-output img { width: 100%; height: 100%; object-fit: contain; }
    .service-showcase-output a { border-radius: 12px; box-shadow: none; }
    .service-showcase-output-copy { padding: 7px 6px; }
    .service-showcase-output strong { font-size: .65rem; }
    .service-showcase-output small { font-size: .6rem; }
    .service-showcase-output-area--empty, .service-showcase-output--empty { display: none; }
    .service-showcase-children-panel { inset: auto 16px 16px !important; width: calc(100% - 32px); max-width: 540px; max-height: min(76dvh,640px); margin-inline: auto; padding: 18px; border-radius: 24px; overscroll-behavior: contain; }
    .service-showcase-children-list { gap: 8px; }
    .service-showcase-children-list a { font-size: .85rem; border-radius: 13px; background: #fff; }
    .services-bottom-cta { margin-top: 18px; padding: 18px; gap: 12px; border-radius: 18px; }
    .services-bottom-cta strong { font-size: .94rem; }
    .services-bottom-cta p { font-size: .78rem; }
    .services-bottom-cta a { width: 100%; min-height: 44px; font-size: .8rem; }
}
