/* Apps-only layout. Existing catalog artwork, order, and shared styles stay intact. */
.js-enabled .apps-showcase .apps-reveal,
.js-enabled .apps-showcase .apps-reveal.is-visible { opacity: 1; transform: none; transition: none; }
.apps-showcase .apps-hero { display: block; padding: 28px 0 24px; }
.apps-showcase .apps-hero-heading h1 { max-width: 1100px; font-size: clamp(36px, 4vw, 58px); line-height: 1.02; }
.apps-title-mobile { display: none; }
.apps-showcase .apps-hero-lede { max-width: 100%; margin: 14px auto 24px; text-align: center; font-size: 16px; line-height: 1.5; }
.apps-community { display: grid; grid-template-columns: minmax(0, .39fr) minmax(0, .61fr); overflow: hidden; border: 1px solid #dfe9ed; border-radius: 8px; background: #f5fafc; }
.apps-community-copy { padding: 28px 30px; align-self: center; }
.apps-eyebrow { margin: 0 0 10px; color: #0b7ca8; font-size: 11px; line-height: 1.4; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.apps-community h2 { margin: 0 0 14px; font-family: var(--display); font-size: clamp(27px, 2.5vw, 36px); font-weight: 720; line-height: 1.05; letter-spacing: -.025em; }
.apps-community h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.apps-community-copy > p:not(.apps-eyebrow) { max-width: 37ch; margin: 0; color: var(--muted-readable); font-size: 15px; line-height: 1.5; }
.apps-community-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 18px; }
.apps-community-actions .apps-button { margin: 0; }
.apps-community-explore { display: inline-flex; min-height: 44px; align-items: center; color: #075f81; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.apps-community small { display: block; margin-top: 16px; color: #595959; font-size: 11px; line-height: 1.5; }
.apps-community-art { display: flex; align-items: center; background: #080e18; min-width: 0; }
.apps-community-art img { width: 100%; height: auto; object-fit: contain; }
.apps-showcase .apps-hero-strip { width: 100%; margin-top: 20px; gap: 14px; }
.apps-showcase .apps-hero-mark { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-content: center; padding: 14px; min-height: 84px; transform: none; animation: none; }
.apps-showcase .apps-hero-mark img { width: 52px; height: 52px; grid-row: 1 / 3; margin: 0; }
.apps-showcase .apps-hero-mark strong { margin: 0 0 3px; font-size: 14px; align-self: end; }
.apps-showcase .apps-hero-mark span { font-size: 11px; line-height: 1.4; }
.apps-showcase .apps-section { padding-top: 34px; }
.apps-showcase .apps-lab-section { margin-top: 26px; padding-top: 30px; }
.apps-showcase .apps-section-heading { margin-bottom: 14px; gap: 8px; }
.apps-showcase .apps-section-heading h2 { font-size: clamp(27px, 3vw, 38px); }
.apps-showcase .apps-section-heading > span { font-size: 15px; max-width: 78ch; }
.apps-shelf-controls[hidden], .apps-shelf-controls button[hidden] { display: none; }
.apps-shelf-controls { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; flex-wrap: wrap; }
.apps-shelf-controls button { min-height: 44px; padding: 0 14px; border: 1px solid #dfe7eb; border-radius: 8px; background: #fff; color: #075f81; font: 700 12px var(--sans); cursor: pointer; }
.apps-shelf-controls button:hover { background: #eaf7fc; }
.apps-shelf-controls button:disabled { color: #707070; cursor: default; background: #f5f5f5; }
.apps-shelf-controls [data-shelf-all] { margin-left: auto; }
.apps-shelf-count { color: #595959; font-size: 12px; font-variant-numeric: tabular-nums; min-width: 70px; text-align: center; }
.apps-showcase :is(a, button, [tabindex]):focus-visible { outline: 3px solid #0b7ca8; outline-offset: 3px; }
.apps-shelf.is-enhanced:not(.is-expanded) .apps-shelf-track {
    --shelf-capacity: 3;
    display: grid; grid-auto-flow: column; grid-template-columns: none;
    grid-auto-columns: calc((100% - 36px) / 3); gap: 18px;
    overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    scroll-padding: 0; padding: 4px 0 18px; scrollbar-width: none;
    overscroll-behavior-x: contain;
    transition: opacity 160ms ease;
}
.apps-shelf[data-app-shelf="personal"].is-enhanced:not(.is-expanded) .apps-shelf-track {
    --shelf-capacity: 4; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px;
}
.apps-shelf.is-enhanced .apps-shelf-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.apps-shelf.is-enhanced .apps-shelf-track > article { scroll-snap-align: start; min-width: 0; box-shadow: none; translate: none; }
.apps-shelf.is-enhanced .apps-shelf-track > article:hover { translate: none; }
.apps-shelf.is-enhanced .apps-shelf-track > article[inert] { pointer-events: none; }
.apps-shelf.is-wrapping .apps-shelf-track { opacity: 0; }
.apps-shelf.is-expanded .apps-shelf-track { overflow: visible; }
.apps-showcase .apps-card-copy h3 { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.08; }
.apps-showcase .apps-lab-card h3 { font-size: 22px; line-height: 1.1; }
.apps-showcase .apps-lab-card[data-app-key="shownext"] h3 { font-size: 18px; }
.apps-showcase .apps-interest-panel { margin-top: 24px; }
.apps-shelf-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1100px) {
    .apps-community-copy { padding: 24px; }
    .apps-showcase .apps-hero-mark { grid-template-columns: 42px minmax(0, 1fr); padding: 12px; gap: 0 8px; }
    .apps-showcase .apps-hero-mark img { width: 42px; height: 42px; }
}
@media (max-width: 980px) {
    .apps-community { grid-template-columns: minmax(0, .43fr) minmax(0, .57fr); }
    .apps-community-copy { padding: 20px; }
    .apps-community h2 { font-size: 29px; }
    .apps-community h3 { font-size: 18px; }
    .apps-shelf.is-enhanced:not(.is-expanded) .apps-shelf-track,
    .apps-shelf[data-app-shelf="personal"].is-enhanced:not(.is-expanded) .apps-shelf-track { --shelf-capacity: 2; grid-auto-columns: calc((100% - 18px) / 2); gap: 18px; }
    .apps-showcase .apps-hero-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .apps-showcase .apps-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .apps-showcase .apps-hero { padding-top: 20px; }
    .apps-title-desktop { display: none; }
    .apps-title-mobile { display: inline; }
    .apps-showcase .apps-hero-heading h1 { font-size: 34px; max-width: 11ch; }
    .apps-showcase .apps-hero-lede { font-size: 15px; margin: 12px 0 20px; }
    .apps-community { display: flex; flex-direction: column; }
    .apps-community-art { order: -1; }
    .apps-community-copy { padding: 22px; width: 100%; }
    .apps-community h2 { font-size: 29px; }
    .apps-community-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 16px; }
    .apps-community-explore { font-size: 11px; }
    .apps-showcase .apps-hero-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
    .apps-showcase .apps-hero-mark strong { align-self: auto; }
    .apps-showcase .apps-section-heading h2 { font-size: 28px; }
    .apps-shelf.is-enhanced:not(.is-expanded) .apps-shelf-track,
    .apps-shelf[data-app-shelf="personal"].is-enhanced:not(.is-expanded) .apps-shelf-track { --shelf-capacity: 1; grid-auto-columns: 90%; gap: 14px; }
    .apps-shelf-controls { gap: 6px; }
    .apps-shelf-controls button { padding: 0 10px; font-size: 11px; }
    .apps-shelf-count { min-width: 53px; font-size: 11px; }
    .apps-shelf-controls [data-shelf-all] { margin-left: 0; }
    .apps-showcase .apps-feature-grid, .apps-showcase .apps-lab-grid { grid-template-columns: 1fr; }
    .apps-showcase .apps-feature-card, .apps-showcase .apps-lab-card { height: 100%; }
    .apps-showcase .apps-card-copy h3 { font-size: 26px; }
    .apps-showcase .apps-interest-panel strong { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
    .apps-shelf.is-enhanced:not(.is-expanded) .apps-shelf-track { transition: none; scroll-behavior: auto; }
}
