/* Small interactions within the original homepage layout. */
.wp-home #platform, .wp-home #workspace-screens { scroll-margin-top: 96px; }
.wp-home-feature { transition: border-color .2s, box-shadow .2s; }
.wp-home-screen-open { position: relative; display: block; overflow: hidden; cursor: zoom-in; }
.wp-home-screen-open img { transition: transform .3s ease; }
.wp-home-screen-open:focus-visible { outline-offset: -4px; }
.wp-home-screen-hint { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #dbe2ef; border-radius: 8px; background: #fff; color: #1b2559; font-size: 12px; font-weight: 600; box-shadow: 0 3px 12px #1b25590d; }
.wp-home-screen-hint i { font-size: 16px; }
.wp-home-screen-tabs[hidden], [data-gallery-panel][hidden] { display: none !important; }
.wp-home-screen-tabs { display: flex; align-items: stretch; gap: 8px; margin-bottom: 22px; overflow-x: auto; border-bottom: 1px solid #e2e8f0; scrollbar-width: thin; scrollbar-color: #ccd8ee transparent; }
.wp-home-screen-tabs button { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 1 0 auto; gap: 9px; min-height: 52px; padding: 14px 18px; border-bottom: 2px solid transparent; color: #64748b; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .2s, background .2s; }
.wp-home-screen-tabs button i { font-size: 18px; }
.wp-home-screen-tabs button[aria-selected='true'] { color: #315ede; border-bottom-color: #3b6cff; }
.wp-home-screen-tabs button:hover { color: #315ede; background: #f8faff; }
.wp-home-screen-tabs button:focus-visible { outline: 2px solid #3b6cff; outline-offset: -4px; }
.wp-home-screens.is-enhanced .wp-home-screen-panels { display: block; }
.wp-home-screens.is-enhanced [data-gallery-panel] { animation: wp-screen-appear .2s ease both; }
.wp-home-screens.is-enhanced .wp-home-screen-open { display: flex; align-items: center; justify-content: center; height: clamp(170px, 48vw, 620px); background: #f8fafc; }
.wp-home-screens.is-enhanced .wp-home-screen-open img { width: 100%; height: 100%; object-fit: contain; }
.wp-home-screens.is-enhanced figcaption { min-height: 90px; }
@keyframes wp-screen-appear { from { opacity: .5; } to { opacity: 1; } }
@media (hover: hover) and (pointer: fine) {
    .wp-home-feature:hover { border-color: #b6c8f2; box-shadow: 0 6px 20px #1b25590a; }
    .wp-home-screen-hint { opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; }
    .wp-home-screen-open:hover .wp-home-screen-hint, .wp-home-screen-open:focus-visible .wp-home-screen-hint { opacity: 1; transform: none; }
    .wp-home-screen-open:hover img { transform: scale(1.015); }
}
.wp-home-preview { width: min(1320px, calc(100% - 48px)); max-width: none; max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow: auto; border: 1px solid #dbe2ef; border-radius: 16px; background: #fff; color: #1b2559; box-shadow: 0 24px 80px #0f172a40; overscroll-behavior: contain; }
.wp-home-preview:not([open]) { display: none; }
.wp-home-preview::backdrop { background: #0f172ac4; }
.wp-home-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 24px; border-bottom: 1px solid #e2e8f0; }
.wp-home-preview-head p { margin-bottom: 4px; color: #64748b; font-size: 11px; }
.wp-home-preview-head h2 { font-size: 18px; line-height: 1.35; font-weight: 700; }
.wp-home-preview button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 8px; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid #dbe2ef; border-radius: 8px; background: #fff; color: #1b2559; font-size: 13px; cursor: pointer; }
.wp-home-preview button:hover { border-color: #a8bcff; background: #f5f7fc; }
.wp-home-preview button:focus-visible { outline: 3px solid #3b6cff; outline-offset: 2px; }
.wp-home-preview-image { display: block; width: 100%; height: min(65dvh, 740px); object-fit: contain; background: #f8fafc; }
.wp-home-preview-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; border-top: 1px solid #e2e8f0; }
.wp-home-preview-foot > p { max-width: 660px; color: #64748b; font-size: 14px; line-height: 1.65; }
.wp-home-preview-controls { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wp-home-preview-controls > span { min-width: 35px; color: #64748b; font-size: 12px; text-align: center; }
@media (max-width: 767px) {
    .wp-home-screen-tabs { gap: 2px; margin-bottom: 16px; }
    .wp-home-screen-tabs button { padding-inline: 12px; font-size: 12px; }
    .wp-home-screen-tabs button i { font-size: 16px; }
    .wp-home-screens.is-enhanced figcaption { min-height: 118px; }
    .wp-home-preview { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
    .wp-home-preview-head { padding: 14px 16px; }
    .wp-home-preview-image { height: auto; max-height: 55dvh; }
    .wp-home-preview-foot { flex-direction: column; align-items: start; gap: 16px; padding: 16px; }
    .wp-home-preview-controls { align-self: center; }
    .wp-home-screen-hint { right: 10px; bottom: 10px; padding: 6px 9px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    .wp-home-feature, .wp-home-screen-open img, .wp-home-screen-hint { transition: none; transform: none !important; }
    .wp-home-screens.is-enhanced [data-gallery-panel] { animation: none; }
    .wp-home-screen-tabs button { transition: none; }
}
