/* Shared UI controls — consistent sizing and spacing across every public page. */
:root {
    --ui-control-height: 46px;
    --ui-control-height-sm: 40px;
    --ui-control-radius: 8px;
    --ui-modal-radius: 16px;
}

.btn,
.ppkg-card__btn,
.share-btn,
.news-cat-btn {
    min-height: var(--ui-control-height);
    padding: 0.7rem 1.35rem;
    border-radius: var(--ui-control-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.btn--sm,
.news-cat-btn,
.share-btn { min-height: var(--ui-control-height-sm); padding: 0.55rem 1rem; }
.btn--lg { min-height: 52px; padding: 0.85rem 1.75rem; }

.hero__actions,
.pcta__btns,
.rev-cta__btns,
.tzb-cta__btns,
.theme-detail__actions {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero__actions > .btn,
.pcta__btns > .btn,
.rev-cta__btns > .btn,
.tzb-cta__btns > .btn,
.theme-detail__actions > .btn { min-width: 170px; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

/* Video modal and gallery lightbox use the same control scale. */
.video-modal { padding: clamp(0.75rem, 3vw, 1.5rem); }
.video-modal__dialog {
    width: min(960px, 100%);
    max-height: calc(100dvh - 3rem);
    padding: 1.25rem;
    border-radius: var(--ui-modal-radius);
    overflow: auto;
}
.video-modal__close,
.tzb-lightbox__close,
.tzb-lightbox__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(15,12,10,.72);
    color: #fff;
    line-height: 1;
    cursor: pointer;
}
.video-modal__close { top: 0.75rem; right: 0.75rem; font-size: 1.35rem; }
.video-modal__title { min-height: 44px; margin: 0 3.25rem 0.75rem 0; display: flex; align-items: center; }
.video-modal__player video { display: block; border-radius: 10px; }
.tzb-lightbox__close { top: 1rem; right: 1rem; font-size: 1.25rem; opacity: 1; }
.tzb-lightbox__nav { width: 48px; height: 48px; font-size: 2rem; }

@media (max-width: 640px) {
    .btn:not(.site-footer__newsletter .btn),
    .ppkg-card__btn { min-height: 46px; }
    .hero__actions > .btn,
    .pcta__btns > .btn,
    .rev-cta__btns > .btn,
    .tzb-cta__btns > .btn,
    .theme-detail__actions > .btn { width: 100%; min-width: 0; }
    .video-modal { padding: 0.5rem; }
    .video-modal__dialog { max-height: calc(100dvh - 1rem); padding: 0.85rem; border-radius: 12px; }
    .video-modal__close { top: 0.6rem; right: 0.6rem; }
    .video-modal__title { margin-right: 3rem; }
    .tzb-lightbox__nav { width: 44px; height: 44px; }
    .tzb-lightbox__nav--prev { left: 0.5rem; }
    .tzb-lightbox__nav--next { right: 0.5rem; }
}
