/* HRUS Events index v2 — only applies to events.html, shared Hero/Header/Footer untouched. */
.ev-page {
    --ev-green: #4a871d;
    --ev-accent: #70b52e;
    --ev-ink: #18242a;
    --ev-muted: #66736c;
    --ev-rule: #e0e8dc
}

.ev-page [hidden] {
    display: none!important
}

.ev-section {
    background: #fff;
    padding: clamp(50px,6vw,78px) 0 92px
}

.ev-wrap {
    width: min(1130px,calc(100% - 64px));
    margin-inline:auto}

.ev-visually-hidden {
    position: absolute!important;
    width: 1px!important;
    height: 1px!important;
    padding: 0!important;
    border: 0!important;
    overflow: hidden!important;
    clip: rect(0,0,0,0)!important;
    white-space: nowrap!important
}

.ev-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--ev-rule)
}

.ev-status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto
}

.ev-status__button {
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    color: #66726a;
    border: 1px solid transparent;
    border-radius: 999px;
    line-height: 1.35;
    padding: 11px 17px;
    transition: background .2s,color .2s
}

.ev-status__button:hover:not(.is-active) {
    background: #f2f7ee;
    color: var(--ev-green)
}

.ev-status__button.is-active {
    background: linear-gradient(135deg, var(--green), var(--green-600));
    border-color: linear-gradient(135deg, var(--green), var(--green-600));
    color: #fff
}

.ev-controls__fields {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
    max-width: 590px
}

.ev-search,.ev-select {
    background: #f7f9f6;
    border: 1px solid #dbe7d5;
    border-radius: 999px;
    height: 56px;
    display: flex;
    align-items: center;
    color: #6c786d;
    transition: background .2s,border .2s,box-shadow .2s
}

.ev-search:focus-within,.ev-select:focus-within {
    background: #fff;
    border-color: #70a83d;
    box-shadow: 0 0 0 3px rgba(112,168,61,.10)
}

.ev-search {
    flex: 1 1 300px;
    min-width: 160px;
    gap: 12px;
    padding-inline:19px 12px}

.ev-search>svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    color: var(--ev-green)
}

.ev-search>input {
    border: 0!important;
    outline: none!important;
    background: transparent!important;
    box-shadow: none!important;
    width: 100%;
    height: 100%;
    min-width: 0;
    font: inherit;
    font-size: 15px;
    font-weight: 400;
    color: var(--ev-ink)
}

.ev-search>input::placeholder {
    color: #78847b;
    opacity: 1
}

.ev-search__clear {
    border: 0;
    background: none;
    font-size: 24px;
    cursor: pointer;
    color: #748071;
    line-height: 1;
    padding: 5px
}

.ev-select {
    position: relative;
    flex: 0 0 186px;
    padding-inline:17px 15px}

.ev-select select {
    font: inherit;
    font-size: 14px;
    color: #3f5240;
    background: transparent;
    border: 0;
    appearance: none;
    outline: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    padding: 0 0 0 18px
}

.ev-select>svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    position: absolute;
    inset-inline-end: 16px;
    pointer-events: none;
    color: var(--ev-green)
}

.ev-list {
    display: block
}

.ev-item {
    position: relative;
    display: grid;
    grid-template-columns: 132px minmax(0,1fr) 168px;
    gap: 28px;
    align-items: center;
    padding: 34px 32px;
    border-bottom: 1px solid var(--ev-rule);
    min-width: 0;
    transition: background .2s
}

.ev-item:hover {
    background: #fafcf9
}

.ev-item__date {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    border-inline-end:1px solid #e2e9df;min-width: 0;
    padding-inline:8px 20px}

.ev-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
    color: var(--ev-ink);
    line-height: 1.15;
    gap: 4px
}

.ev-date__day {
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -.04em;
    color: #385e30;
    line-height: 1
}

.ev-date__month {
    font-size: 14px;
    font-weight: 600;
    color: #374739
}

.ev-date__year {
    font-size: 12px;
    font-weight: 400;
    color: #79867a
}

.ev-date--archive {
    gap: 10px;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #586e5a
}

.ev-date--archive svg {
    width: 32px;
    height: 32px;
    stroke: #629545;
    flex: 0 0 auto
}

.ev-item__body {
    min-width: 0
}

.ev-item__head {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
    margin-bottom: 10px
}

.ev-item__title {
    font-size: clamp(21px,2vw,25px);
    font-weight: 700;
    line-height: 1.36;
    color: var(--ev-ink);
    margin: 0;
    letter-spacing: 0
}

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

.ev-item__title a:hover {
    color: var(--ev-green)
}

.ev-item__kind {
    font-size: 12px;
    line-height: 1.4;
    padding: 5px 10px;
    background: #eff6e8;
    border-radius: 999px;
    color: #457c26;
    font-weight: 600;
    white-space: nowrap
}

.ev-item__description {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ev-muted);
    margin: 0;
    max-width: 650px;
    font-weight: 400
}

.ev-item__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 7px;
    margin-top: 16px;
    color: #6c786f;
    font-size: 13px
}

.ev-item__meta-point {
    display: inline-flex;
    align-items: center;
    gap: 7px
}

.ev-item__meta-point svg {
    width: 16px;
    height: 16px;
    stroke: #76a654;
    flex: 0 0 auto
}

.ev-item__meta-point bdi {
    unicode-bidi: isolate
}

.ev-item__action {
    align-self: center;
    display: inline-flex;
    justify-self: center;
    justify-content: center;
    align-items: center;
    gap: 13px;
    white-space: nowrap;
    min-width: 155px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ev-green);
    border: 1px solid #d8e5ce;
    border-radius: 999px;
    padding: 12px 17px;
    text-decoration: none;
    background: #fff;
    transition: background .2s,border-color .2s
}

.ev-item__action svg {
    width: 17px;
    height: 17px;
    transition: transform .2s
}

.ev-item__action:hover {
    background: #f2f8ec;
    border-color: #a2cb83
}

.ev-item__action:hover svg {
    transform: translateX(-3px)
}

.ev-empty {
    text-align: center;
    padding: 90px 16px 85px
}

.ev-empty__symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #70a645;
    margin: auto auto 15px
}

.ev-empty__symbol svg {
    width: 30px;
    height: 30px
}

.ev-empty h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ev-ink);
    margin: 0 0 10px
}

.ev-empty p {
    font-size: 16px;
    color: #677469;
    margin: 0 0 22px
}

.ev-reset {
    border: 1px solid #d4e5c8;
    background: #f6faf2;
    color: #477c22;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border-radius: 999px;
    padding: 11px 22px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer
}

.ev-reset svg {
    width: 17px
}

.ev-afterlist {
    display: flex;
    justify-content: flex-end;
    margin-top: 31px
}

.ev-afterlist>a {
    display: inline-flex;
    gap: 11px;
    align-items: center;
    color: var(--ev-green);
    font-size: 14px;
    text-decoration: none;
    font-weight: 600
}

.ev-afterlist>a:hover {
    text-decoration: underline;
    text-underline-offset: 5px
}

.ev-afterlist svg {
    width: 17px;
    height: 17px
}

@media(max-width: 1060px) {
    .ev-controls {
        gap:18px
    }

    .ev-status {
        gap: 3px
    }

    .ev-status__button {
        padding: 11px 12px;
        font-size: 14px
    }

    .ev-controls__fields {
        gap: 9px
    }

    .ev-select {
        flex-basis: 170px
    }

    .ev-item {
        grid-template-columns: 115px minmax(0,1fr) 154px;
        gap: 20px;
        padding-inline:24px}

    .ev-item__action {
        font-size: 13px;
        padding: 11px 12px;
        min-width: 140px
    }
}

@media(max-width: 760px) {
    .ev-wrap {
        width:min(100% - 38px,580px)
    }

    .ev-section {
        padding: 38px 0 65px
    }

    .ev-controls {
        display: flex;
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 17px;
        padding-bottom: 23px
    }

    .ev-controls__fields {
        max-width: none;
        width: 100%
    }

    .ev-search {
        flex: 1 1 auto
    }

    .ev-select {
        flex: 0 0 150px
    }

    .ev-status {
        justify-content: center;
        gap: 5px
    }

    .ev-status__button {
        flex: 1;
        padding: 11px 7px;
        font-size: 13px
    }

    .ev-item {
        grid-template-columns: 82px minmax(0,1fr);
        gap: 18px;
        align-items: start;
        padding: 27px 12px
    }

    .ev-item__date {
        padding-inline:4px 12px;min-height: 92px;
        justify-content: center
    }

    .ev-date__day {
        font-size: 35px
    }

    .ev-date__month {
        font-size: 12px
    }

    .ev-item__head {
        gap: 8px
    }

    .ev-item__title {
        font-size: 20px
    }

    .ev-item__kind {
        font-size: 11px
    }

    .ev-item__description {
        font-size: 15px;
        line-height: 1.6
    }

    .ev-item__meta {
        font-size: 12px;
        margin-top: 12px;
        gap: 8px 14px
    }

    .ev-item__action {
        grid-column: 2;
        justify-self: start;
        margin-top: 3px;
        font-size: 13px;
        padding: 9px 13px;
        min-width: 0
    }
}

@media(max-width: 430px) {
    .ev-wrap {
        width:calc(100% - 30px)
    }

    .ev-controls__fields {
        gap: 9px;
        flex-wrap: wrap
    }

    .ev-search {
        flex: 1 1 100%;
        height: 54px
    }

    .ev-select {
        flex: 1 1 100%;
        height: 49px
    }

    .ev-status__button {
        font-size: 12px;
        padding: 10px 6px
    }

    .ev-item {
        grid-template-columns: 74px minmax(0,1fr);
        gap: 14px;
        padding-inline:8px}

    .ev-item__date {
        padding-inline:1px 9px}

    .ev-date__day {
        font-size: 31px
    }

    .ev-item__title {
        font-size: 19px
    }

    .ev-item__kind {
        font-size: 11px;
        padding: 3px 8px
    }
}

@media(prefers-reduced-motion:reduce) {
    .ev-page .ev-item,.ev-page .ev-item__action,.ev-page .ev-item__action svg,.ev-page .ev-status__button {
        transition: none!important
    }
}

/* v3: balanced date / action columns and explicit missing-date state. */
@media(max-width: 760px) {
    .ev-date--archive {
        font-size:11px;
        gap: 7px
    }

    .ev-date--archive svg {
        width: 28px;
        height: 28px
    }
}

@media(max-width: 430px) {
    .ev-date--archive {
        font-size:10.5px
    }

    .ev-date--archive svg {
        width: 26px;
        height: 26px
    }
}
