/* Popup · Editorial skin: wide split card (photo | text), serif title with italic accent,
   tracked caps date above the title, hairline above the buttons, square close */
.hm-pop__backdrop { background: rgba(28, 24, 20, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hm-pop__dialog {
    width: min(1040px, 100%);
    max-height: min(720px, calc(100svh - 48px));
    border-radius: var(--hm-radius-card);
    box-shadow: 0 30px 80px rgba(20, 16, 12, .35);
    transform: translateY(16px);
}
.hm-pop__scroll { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.hm-pop__media { position: relative; aspect-ratio: auto; min-height: 460px; }
.hm-pop__img { position: absolute; inset: 0; }

.hm-pop__close {
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--hm-c-line);
    border-radius: var(--hm-radius-btn);
    background: var(--hm-c-bg);
    box-shadow: none;
}
.hm-pop__close:hover { transform: none; background: var(--hm-c-text); color: var(--hm-c-bg); border-color: var(--hm-c-text); }
.hm-pop__close svg { width: 18px; height: 18px; stroke-width: 1.2; }

.hm-pop__body { justify-content: center; padding: clamp(48px, 5vw, 72px) clamp(32px, 4.5vw, 64px); }
.hm-pop__subtitle {
    order: -1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    color: var(--hm-c-accent);
    font-size: var(--hm-fs-eyebrow);
    font-weight: 500;
    letter-spacing: .24em;
}
.hm-pop__title { font-size: clamp(36px, 3.6vw, 52px); font-weight: 300; line-height: 1.02; }
.hm-pop__title em { display: block; }
.hm-pop__text { margin-top: 24px; color: var(--hm-c-muted); font-size: 15px; font-weight: 300; line-height: 1.75; }
.hm-pop__actions { gap: 10px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--hm-c-line); }
.hm-pop__actions .hm-btn { padding-inline: 26px; }

@media (max-width: 1023px) {
    .hm-pop__dialog { width: min(620px, 100%); }
    .hm-pop__scroll { display: block; }
    .hm-pop__media { aspect-ratio: 16 / 9; min-height: 0; }
    .hm-pop__img { position: static; }
}
@media (max-width: 767px) {
    .hm-pop__dialog { width: 100%; max-height: calc(100svh - 24px); transform: translateY(100%); }
    .hm-pop__media { aspect-ratio: 4 / 3; }
    .hm-pop__close { top: 14px; right: 14px; width: 40px; height: 40px; }
    .hm-pop__body { padding: 30px 22px calc(28px + env(safe-area-inset-bottom, 0px)); }
    .hm-pop__title { font-size: 38px; }
    .hm-pop__subtitle { margin-bottom: 16px; }
    .hm-pop__actions { padding-top: 24px; }
}

/* Layout "choice": narrow card, centred serif title, full-width square buttons */
.hm-pop--choice .hm-pop__dialog { width: min(480px, 100%); }
.hm-pop--choice .hm-pop__scroll { display: block; }
.hm-pop--choice .hm-pop__body { padding: 72px 48px 48px; }
.hm-pop--choice .hm-pop__title { font-size: clamp(34px, 3vw, 44px); }
.hm-pop--choice .hm-pop__title em { display: inline; }
.hm-pop--choice .hm-pop__text { margin-top: 14px; font-size: 15px; }
.hm-pop--choice .hm-pop__actions { margin-top: 32px; padding-top: 0; border-top: 0; }
@media (max-width: 767px) {
    .hm-pop--choice .hm-pop__dialog { width: 100%; }
    .hm-pop--choice .hm-pop__body { padding: 64px 22px calc(28px + env(safe-area-inset-bottom, 0px)); }
    .hm-pop--choice .hm-pop__title { font-size: 36px; }
}
