/* Operations. Layout of the event concept, colors from the homepage. */

.ev,
.ev-modal {
    --ev-bg: #0c0e11;
    --ev-raised: #121418;
    --ev-text: #f4f1ea;
    --ev-soft: #ddd9d0;
    --ev-muted: #a7a59d;
    --ev-gold: #e0b15a;
    --ev-gold-hover: #c9963a;
    --ev-ink: #14110c;
    --ev-line: rgba(255, 255, 255, .08);
    --ev-line-strong: rgba(255, 255, 255, .16);
    --ev-ok: #8faf78;
    --ev-danger: #c46a5a;
    --ev-info: #8aa0b4;
    --ev-blue: #8ebcff;
    --ev-red: #ff9696;
    color: var(--ev-text);
    font-family: Manrope, "Golos Text", sans-serif;
}

.ev {
    width: min(1180px, calc(100% - 40px));
    margin: 28px auto 80px;
}

.ev a {
    color: inherit;
    text-decoration: none;
}

.ev-hero,
.ev-op-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ev-line);
    border-radius: 12px;
    background: var(--ev-raised);
}

.ev-hero {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(12, 14, 17, .12) 0%, rgba(12, 14, 17, .86) 80%),
        url("/images/landing/landing-hero.jpg") center 28% / cover no-repeat;
}

.ev-kicker {
    margin: 0 0 8px;
    color: var(--ev-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.ev-title,
.ev-op-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.05;
    text-transform: uppercase;
}

.ev-title {
    max-width: 760px;
    font-size: clamp(32px, 4vw, 46px);
}

.ev-lead {
    max-width: 640px;
    margin: 12px 0 0;
    color: var(--ev-soft);
    font-size: 15px;
    line-height: 1.5;
}

.ev-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.ev-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ev-tab {
    appearance: none;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ev-muted);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 650;
    padding: 8px 12px;
}

.ev-tab.is-on,
.ev-step.is-on {
    background: var(--ev-raised);
    box-shadow: inset 0 0 0 1px var(--ev-line);
    color: var(--ev-text);
}

.ev-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.ev-filters .ev-input {
    flex: 1 1 220px;
    width: auto;
}

.ev-filters .ev-select {
    width: auto;
    min-width: 140px;
}

.ev-input,
.ev-select,
.ev-textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--ev-line-strong);
    border-radius: 8px;
    background: var(--ev-bg);
    color: var(--ev-text);
    font: inherit;
    font-size: 14px;
    padding: 10px 12px;
}

.ev-file-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 8px;
    border: 1px solid var(--ev-line-strong);
    border-radius: 8px;
    background: var(--ev-bg);
    color: var(--ev-text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 14px;
}

.ev-file-btn input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.ev-textarea {
    min-height: 140px;
    resize: vertical;
}

.ev-input:focus,
.ev-select:focus,
.ev-textarea:focus,
.ev-file:focus,
.ev-btn:focus-visible,
.ev-tab:focus-visible,
.ev-choice:focus-visible,
.ev-slot:focus-within {
    outline: 2px solid rgba(224, 177, 90, .55);
    outline-offset: 1px;
}

.ev-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.ev-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 148px;
    overflow: hidden;
    border: 1px solid var(--ev-line);
    border-radius: 12px;
    background: var(--ev-raised);
}

.ev-card:hover {
    border-color: rgba(224, 177, 90, .45);
}

.ev-card-media {
    display: grid;
    place-items: center;
    background: #0c0e11 center / cover no-repeat;
}

.ev-card-media.has-banner,
.ev-op-hero.has-banner {
    background-image:
        linear-gradient(180deg, rgba(12, 14, 17, .05), rgba(12, 14, 17, .55)),
        var(--banner);
    background-size: cover;
    background-position: center;
}

.ev-card-media span {
    color: rgba(224, 177, 90, .9);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .14em;
}

.ev-card-body,
.ev-panel,
.ev-facts,
.ev-side,
.ev-stat {
    padding: 16px 18px;
}

.ev-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ev-badges,
.ev-chips,
.ev-meta,
.ev-side-head,
.ev-person,
.ev-section,
.ev-signed,
.ev-dialog-foot,
.ev-check,
.ev-section-edit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ev-badge,
.ev-tag,
.ev-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ev-line-strong);
    border-radius: 999px;
    color: var(--ev-soft);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
}

.ev-badge--mode,
.ev-tab.is-on {
    color: var(--ev-text);
}

.ev-badge--registration {
    border-color: rgba(224, 177, 90, .45);
    color: var(--ev-gold);
}


.ev-badge--live {
    border-color: rgba(141, 206, 120, 0.55);
    color: #9dce8c;
}

.ev-badge--upcoming {
    border-color: rgba(138, 160, 180, .45);
    color: var(--ev-info);
}

.ev-badge--completed {
    color: var(--ev-muted);
}

.ev-card-title,
.ev-panel-title,
.ev-side-head h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.25;
}

.ev-panel-title,
.ev-side-head h3 {
    font-size: 16px;
}

.ev-meta,
.ev-muted,
.ev-hint,
.ev-fact span,
.ev-note {
    color: var(--ev-muted);
    font-size: 13px;
    line-height: 1.45;
}

.ev-fill {
    width: min(220px, 100%);
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, .08);
}

.ev-fill > span,
.ev-bar > span {
    display: block;
    height: 100%;
    background: var(--ev-gold);
}

.ev-chip--blufor,
.ev-tag--blufor {
    border-color: rgba(142, 188, 255, .35);
    color: var(--ev-blue);
}

.ev-chip--opfor,
.ev-tag--opfor {
    border-color: rgba(255, 150, 150, .35);
    color: var(--ev-red);
}

.ev-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--ev-line-strong);
    border-radius: 8px;
    background: transparent;
    color: var(--ev-text);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 14px;
    text-align: center;
}

.ev-btn-gold {
    border-color: transparent;
    background: var(--ev-gold);
    color: var(--ev-ink);
}

.ev-btn-gold:hover {
    background: var(--ev-gold-hover);
}

.ev-btn-ghost:hover {
    border-color: rgba(224, 177, 90, .45);
}

.ev-btn-danger {
    border-color: rgba(196, 106, 90, .45);
    color: var(--ev-danger);
}

.ev-btn:disabled,
.ev-choice:disabled {
    cursor: default;
    opacity: .45;
}

.ev-empty,
.ev-note,
.ev-status-note {
    margin: 0;
    border: 1px solid var(--ev-line);
    border-radius: 12px;
    background: var(--ev-raised);
    padding: 18px;
}

.ev-op-hero {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 16px;
    padding: 22px;
}

.ev-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    color: var(--ev-muted);
    font-size: 13px;
}

.ev-crumbs a:hover {
    color: var(--ev-gold);
}

.ev-op-title {
    max-width: 900px;
    font-size: clamp(30px, 4vw, 44px);
}

.ev-op-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.ev-op-grid,
.ev-split,
.ev-hq,
.ev-choice-grid,
.ev-stats,
.ev-form-grid {
    display: grid;
    gap: 18px;
}

.ev-form-grid.cols-3 {
    grid-template-columns: 1.1fr .8fr .7fr;
}

.ev-form-grid.cols-2 {
    grid-template-columns: 1fr 1fr;
}

.ev-op-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    margin-top: 18px;
}

.ev-op-grid.is-single,
.ev-split,
.ev-hq {
    align-items: start;
}

.ev-split {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, .75fr);
    margin-top: 22px;
}

.ev-panel,
.ev-facts,
.ev-side,
.ev-stat,
.ev-dialog {
    border: 1px solid var(--ev-line);
    border-radius: 12px;
    background: var(--ev-raised);
}

.ev-panel + .ev-panel,
.ev-side + .ev-side,
.ev-field + .ev-field {
    margin-top: 14px;
}

.ev-prose {
    margin: 10px 0 0;
    color: var(--ev-soft);
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-wrap;
}

.ev-facts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ev-fact {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--ev-line);
    padding-bottom: 8px;
}

.ev-fact b {
    font-weight: 650;
    text-align: right;
}

.ev-side {
    padding: 0;
    border-left: 3px solid var(--ev-gold);
}

.ev-side--blufor {
    border-left-color: var(--ev-blue);
}

.ev-side--opfor {
    border-left-color: var(--ev-red);
}

.ev-side-head,
.ev-section,
.ev-person {
    padding: 12px 14px;
}

.ev-side-head {
    justify-content: space-between;
    border-bottom: 1px solid var(--ev-line);
}

.ev-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ev-gold);
}

.ev-side--blufor .ev-dot {
    background: var(--ev-blue);
}

.ev-side--opfor .ev-dot {
    background: var(--ev-red);
}

.ev-section,
.ev-person {
    justify-content: space-between;
    border-top: 1px solid var(--ev-line);
}

.ev-section:first-child,
.ev-person:first-child {
    border-top: 0;
}

.ev-person-main,
.ev-section-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ev-hq {
    grid-template-columns: 220px minmax(0, 1fr);
    margin-top: 22px;
}

.ev-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 92px;
}

.ev-nav button {
    appearance: none;
    display: flex;
    justify-content: space-between;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ev-muted);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 12px;
    text-align: left;
}

.ev-nav button.is-on {
    background: var(--ev-raised);
    box-shadow: inset 0 0 0 1px var(--ev-line);
    color: var(--ev-text);
}

.ev-nav-count {
    color: var(--ev-muted);
    font-weight: 650;
}

.ev-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ev-stat b,
.ev-ring span {
    display: block;
    font-size: 22px;
    font-weight: 800;
}

.ev-stat span,
.ev-check-list {
    color: var(--ev-muted);
    font-size: 13px;
}

.ev-ring {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--ev-gold) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0);
}

.ev-ring span {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ev-raised);
    font-size: 13px;
}

.ev-bar-row {
    display: grid;
    grid-template-columns: minmax(90px, .7fr) minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
}

.ev-bar-row.is-plain {
    grid-template-columns: 1fr auto;
}

.ev-bar {
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, .08);
}

.ev-check-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.ev-check-list li {
    padding: 7px 0;
    border-top: 1px solid var(--ev-line);
}

.ev-check-list li.is-on {
    color: var(--ev-soft);
}

.ev-field label,
.ev-check strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 750;
}

.ev-hint,
.ev-error {
    margin: 6px 0 0;
}

.ev-error {
    color: var(--ev-danger);
    font-size: 13px;
}

.ev-check {
    align-items: flex-start;
    margin: 12px 0;
}

.ev-check input,
.ev-slot input {
    margin-top: 3px;
    accent-color: var(--ev-gold);
}

.ev-check small,
.ev-choice small,
.ev-step span {
    display: block;
    color: var(--ev-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.ev-section-edit {
    align-items: stretch;
}

.ev-section-edit .ev-input {
    flex: 1;
}

.ev-thumb {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--ev-line);
}

.ev-modal {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 9, 11, .72);
}

.ev-dialog {
    width: min(860px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    overflow: auto;
}

.ev-steps {
    margin: 0;
    padding: 18px 14px;
    list-style: none;
    border-right: 1px solid var(--ev-line);
}

.ev-step {
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ev-muted);
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    padding: 10px;
    text-align: left;
}

.ev-dialog-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
}

.ev-dialog-main h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.ev-choice-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
}

.ev-choice,
.ev-slot {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    border: 1px solid var(--ev-line-strong);
    border-radius: 12px;
    background: var(--ev-bg);
    color: var(--ev-text);
    cursor: pointer;
    font: inherit;
    text-align: left;
    padding: 14px;
}

.ev-choice.is-on,
.ev-slot.is-on {
    border-color: rgba(224, 177, 90, .7);
    box-shadow: inset 0 0 0 1px rgba(224, 177, 90, .7);
}

.ev-slot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.ev-summary {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.ev-summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--ev-line);
    padding-bottom: 8px;
}

.ev-dialog-foot {
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

.ev-dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.ev-x {
    width: 36px;
    min-height: 36px;
    padding: 0;
}

[x-cloak] {
    display: none !important;
}

@media (max-width: 980px) {
    .ev-op-grid,
    .ev-split,
    .ev-hq,
    .ev-stats,
    .ev-dialog,
    .ev-form-grid.cols-3,
    .ev-form-grid.cols-2 {
        grid-template-columns: 1fr;
    }

    .ev-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .ev-steps {
        display: flex;
        gap: 6px;
        border-right: 0;
        border-bottom: 1px solid var(--ev-line);
    }

    .ev-step span {
        display: none;
    }
}

@media (max-width: 720px) {
    .ev {
        width: calc(100% - 28px);
        margin-top: 16px;
    }

    .ev-hero,
    .ev-op-hero {
        min-height: 240px;
        padding: 16px;
    }

    .ev-toolbar,
    .ev-card,
    .ev-choice-grid,
    .ev-bar-row,
    .ev-stats {
        display: flex;
        flex-direction: column;
    }

    .ev-card-media {
        min-height: 132px;
    }

    .ev-btn,
    .ev-tab,
    .ev-nav button {
        min-height: 44px;
    }

    .ev-modal {
        align-items: flex-end;
        padding: 0;
    }

    .ev-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 12px 12px 0 0;
    }

    .ev-section-edit {
        flex-direction: column;
    }
}

.ev-status-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid rgba(224, 177, 90, 0.35);
    border-radius: 10px;
    background: rgba(224, 177, 90, 0.1);
    color: #f3e6c8;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}
.ev-status-note i {
    flex: none;
    color: #e6a31a;
    font-size: 12px;
}
body.is-light .ev-status-note {
    border-color: rgba(138, 93, 11, 0.28);
    background: rgba(138, 93, 11, 0.08);
    color: #6d5310;
}
body.is-light .ev-status-note i { color: #8a5d0b; }

.ev-staff__head { display: grid; gap: 8px; }
.ev-staff__switch,
.ev-staff__tools,
.ev-staff__list { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ev-staff__tools .ev-input { max-width: 240px; min-height: 36px; }
.ev-staff__stage {
    position: relative;
    margin-top: 12px;
    min-height: 460px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
        #0e1014;
    background-size: 48px 48px, 48px 48px, auto;
}
.ev-staff__stage.is-editing { cursor: crosshair; }
.ev-staff__stage img {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: contain;
    pointer-events: none;
}
.ev-staff__empty {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    color: #d9d4ca;
    text-align: center;
}
.ev-staff__empty span { color: #9a978f; font-size: 13px; }
.ev-staff__arrow {
    position: absolute;
    z-index: 1;
    height: 3px;
    transform-origin: 0 50%;
    pointer-events: none;
}
.ev-staff__arrow::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px 0 6px 8px;
    border-style: solid;
    border-color: transparent transparent transparent currentColor;
}
.ev-staff__pin {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    transform: translate(-50%, -100%);
    color: #f4f1ea;
    cursor: pointer;
}
.ev-staff__pin i {
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--c, #e6a31a);
    transform: rotate(-45deg);
}
.ev-staff__pin span {
    max-width: 160px;
    padding: 2px 6px;
    border-radius: 7px;
    background: rgba(8, 9, 12, .78);
    font-size: 12px;
    line-height: 1.3;
}
body.is-light .ev-staff__empty { color: #24180c; }
body.is-light .ev-staff__empty span { color: #6d6458; }
