/* Модуль 2 — общий фундамент: контейнер (мобильный паддинг), карточка события (hover/press/focus/motion).
   Грузится только на страницах Модуля 2 (event/community/activate-card), поэтому правила .ibd-container
   здесь не влияют на страницы бизнес-справочника. */

/* У плагинного .ibd-container нет мобильного оверрайда — выравниваем с темой (16px) на страницах Модуля 2 */
@media (max-width: 768px) {
    .ibd-event-wrapper .ibd-container,
    .ibd-feed-wrapper .ibd-container,
    .ibd-community-wrapper .ibd-container,
    .ibd-activation-wrapper .ibd-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ── EventCard: hover-lift, нажатие CTA, фокус ── */
.ec-lift { will-change: transform; }
/* Система макетов (qa/restyle/SPEC.md, 20.10.2026): карточка без подъёма и тяжёлой тени -
   наведение показывает оранжевая рамка; кнопка без подпрыгивания и фильтра. */
.ec-lift:hover {
    transform: none !important;
    box-shadow: 0 1px 2px rgba(30, 42, 50, .04) !important;
    border-color: #F5820A !important;
    transition: border-color .15s ease;
}
.ec-cta { transition: background-color .15s ease; }
.ec-cta:hover { transform: none; filter: none; }
.ec-cta:active { transform: none; }
/* Текст на оранжевом. Белый на #F5820A - 2.6:1, цвет фирменный и не меняется, поэтому
   кнопка записи на карточке держит WCAG «крупный текст» (от 18.66px при 700+; вес 800 уже
   inline) и лёгкую тёмную тень. Размер inline (14.5px в module2-render.php) - перебить
   можно только !important. Размер один на все состояния, чтобы кнопка не прыгала при записи.
   Тень - только когда текст белый, то есть фон оранжевый («Пойду», «Подать заявку»,
   «В лист ожидания»): у «Вы идёте» и «Заявка на одобрении» фон светлый. Белый текст
   ловим по inline-стилю: сервер пишет «color:#fff», module2-card.js - «color: rgb(255, 255, 255)».
   Решение владельца 20.10.2026: размер как в макетах - 15px на кнопке 44 (было 19px). */
.ec-cta[data-ec-rsvp] { font-size: 15px !important; }
.ec-cta[data-ec-rsvp][style*="color:#fff;" i],
.ec-cta[data-ec-rsvp][style*="color: rgb(255, 255, 255)"] { text-shadow: 0 1px 1px rgba(120, 50, 0, .35); }
.ec-cta:focus-visible,
.ec-lift a:focus-visible {
    outline: 2px solid #2E86C1;
    outline-offset: 2px;
    border-radius: 12px;
}

@media (prefers-reduced-motion: reduce) {
    .ec-lift,
    .ec-cta,
    [data-ec-meter] { transition: none !important; }
    .ec-lift { opacity: 1 !important; transform: none !important; }
}

/* ── Модалка «Позвать друзей» (общая: страница встречи и страница клуба) ──
   Рендерится в wp_footer, вне .evpage/.cmpx, поэтому классы глобальные.
   Живёт в base, а не в module2-event.css: на странице клуба тот не подключается. */
.ev-invite-modal { position: fixed; inset: 0; z-index: 100150; display: flex; padding: 18px; }
.ev-invite-modal[hidden] { display: none; }
.ev-invite-ov { position: fixed; inset: 0; background: rgba(30, 42, 50, .55); }
.ev-invite-card { position: relative; width: 100%; max-width: 440px; margin: auto; background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 18px 50px rgba(24, 60, 90, .18); display: flex; flex-direction: column; max-height: 82vh; }
.ev-invite-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ev-invite-head b { font-size: 18px; font-weight: 700; color: #1e2a32; }
/* Закрыть - круглая иконка-кнопка (круг - часть смысла, SPEC); цель 40px. */
.ev-invite-x { border: 0; background: transparent; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 1; color: #1E2A32; }
.ev-invite-x:hover { background: #F3F8FC; }
.ev-invite-hint { font-size: 13px; color: #5B7385; line-height: 1.45; margin-bottom: 12px; }
.ev-invite-msg { min-height: 16px; margin-top: 8px; font-size: 13px; font-weight: 700; color: #b32d2e; text-align: center; }
.ev-invite-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid #E3ECF2; }
.ev-invite-cancel { min-height: 44px; border: 1px solid #E3ECF2; background: #fff; color: #1E2A32; font-family: inherit; font-weight: 700; font-size: 15px; padding: 0 18px; border-radius: 12px; cursor: pointer; }
.ev-invite-cancel:hover { background: #fff; border-color: #F5820A; }
.ev-invite-send { min-height: 44px; border: 0; background: #f5820a; color: #fff; font-family: inherit; font-weight: 800; font-size: 15px; padding: 0 20px; border-radius: 12px; cursor: pointer; transition: background .16s ease; }
.ev-invite-send:hover { background: #dc7000; }
.ev-invite-send:disabled { opacity: .4; cursor: default; }
.ev-invite-empty { text-align: center; padding: 18px 10px 8px; }
.ev-invite-empty p { color: #5B7385; font-size: 15px; line-height: 1.5; margin: 0 0 14px; }
.ev-invite-empty a { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; background: #f5820a; color: #fff; font-weight: 800; font-size: 15px; padding: 0 20px; border-radius: 12px; text-decoration: none; }
.ev-invite-empty a:hover { background: #dc7000; color: #fff; }
.ev-invite-cancel:focus-visible, .ev-invite-send:focus-visible, .ev-invite-empty a:focus-visible, .ev-invite-x:focus-visible { outline: 2px solid #2E86C1; outline-offset: 2px; }
/* Текст на оранжевом: вес 800 уже есть, добавляем тень у букв. «Отправить» - размер
   прежний: стоит парой с «Отмена» в тесном подвале модалки. «Найти людей» в пустом
   состоянии стоит одна по центру. Размер как в макетах - 15px на 44 (решение владельца
   20.10.2026, прежние 19px сняты). */
.ev-invite-send,
.ev-invite-empty a { text-shadow: 0 1px 1px rgba(120, 50, 0, .35); }

/* Переключатель «В клуб / На встречу» в модалке приглашения со страницы клуба */
.cinv-seg { display: flex; gap: 4px; background: #fff; border: 1px solid #E3ECF2; padding: 4px; border-radius: 12px; margin-bottom: 12px; }
.cinv-seg button { flex: 1; min-height: 36px; border: 0; background: transparent; font-family: inherit; font-weight: 700; font-size: 14px; color: #39505E; padding: 0 10px; border-radius: 10px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.cinv-seg button[aria-pressed="true"] { background: #FFF7EC; color: #1e2a32; box-shadow: inset 0 0 0 1px #F5820A; }
.cinv-seg button:disabled { opacity: .45; cursor: default; }
.cinv-event { margin-bottom: 12px; }
.cinv-event select { width: 100%; box-sizing: border-box; height: 48px; padding: 0 14px; border: 1px solid #E3ECF2; border-radius: 12px; font-size: 16px; font-family: inherit; color: #1E2A32; background: #fff; }
.cinv-event select:focus { outline: none; border-color: #1F6FA6; box-shadow: 0 0 0 3px #D9EBF9; }
.cinv-event[hidden] { display: none; }
