.ep-home {
    display: grid;
    gap: 20px;
    min-width: 0;
}
.ep-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}
@media (max-width: 1000px) {
    .ep-home-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .ep-home-col-right {
        order: -1;
    }
}
.ep-home-col,
.ep-home-news {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.ep-home-tiles > a:focus-visible,
.ep-home-news-list a:focus-visible,
.ep-home-all:focus-visible,
.ep-home-photo:focus-visible,
.ep-cal button:focus-visible,
.ep-cal-btn:focus-visible {
    outline: 2px solid #237a06;
    outline-offset: 2px;
}

.ep-home-news-list {
    max-height: 210px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}
.ep-home-news-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid #e4e9e3;
}
.ep-home-news-list li:last-child {
    border-bottom: 0;
}
.ep-home-news-icon {
    flex: none;
    width: 14px;
    height: 14px;
    margin-top: 3px;
    color: #2fa308;
}
.ep-home-news-list a {
    font-size: 13.5px;
    font-weight: 600;
    color: #122019;
    overflow-wrap: anywhere;
}
.ep-home-news-list a:hover {
    color: #237a06;
    text-decoration: underline;
}
/* Show all: an arrow that moves right on hover. */
.ep-home-all {
    align-items: center;
    gap: 6px;
}
.ep-home-all-icon {
    width: 16px;
    height: 16px;
    transition: transform .15s ease;
}
.ep-home-all:hover .ep-home-all-icon,
.ep-home-all:focus-visible .ep-home-all-icon {
    transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
    .ep-home-all-icon {
        transition: none;
    }
}
.ep-home-none {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    font-size: 13px;
    color: #5f6b5b;
}
.ep-home-none-icon {
    width: 18px;
    height: 18px;
}
.ep-home-all {
    display: flex;
    justify-content: flex-end;
    font-size: 13px;
    font-weight: 700;
    color: #237a06;
}

.ep-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px;
    border-radius: 10px;
    background: #2fa308;
    color: #fff;
}
.ep-cal-month {
    font-size: 14px;
    font-weight: 700;
}
.ep-cal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.ep-cal-btn:hover {
    background: #237a06;
}
.ep-cal-btn:focus-visible {
    outline-color: #fff;
    outline-offset: -2px;
}
.ep-cal-btn .fi-icon {
    width: 18px;
    height: 18px;
}
.ep-cal {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 4px;
    margin-bottom: 12px;
}
.ep-cal th {
    padding: 4px 0;
    text-align: center;
    font-size: 11.5px;
    font-weight: 700;
    color: #5f6b5b;
}
.ep-cal td {
    padding: 0;
    text-align: center;
}
.ep-cal td button {
    display: block;
    width: 100%;
    padding: 7px 0;
    border: 1px solid #e4e9e3;
    border-radius: 10px;
    background: #f7faf5;
    color: #122019;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.ep-cal td button:hover {
    border-color: #2fa308;
    background: #ecf7e6;
    color: #237a06;
}
.ep-cal .ep-cal-we button {
    border-color: #f6caca;
    background: #fdecec;
    color: #c62828;
}
.ep-cal .ep-cal-today button {
    position: relative;
    border-color: #2fa308;
    background: #2fa308;
    color: #fff;
    font-weight: 800;
}
/* Today: a green ring that grows and fades, no shadow. */
.ep-cal .ep-cal-today button::after {
    content: '';
    position: absolute;
    inset: -2px;
    border: 3px solid #4cc21f;
    border-radius: 12px;
    pointer-events: none;
    animation: ep-cal-today-pulse 1.8s ease-out infinite;
}
@keyframes ep-cal-today-pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    80%,
    100% {
        opacity: 0;
        transform: scale(1.18, 1.3);
    }
}
@media (prefers-reduced-motion: reduce) {
    .ep-cal .ep-cal-today button::after {
        animation: none;
        opacity: .5;
    }
}
.ep-cal-list-title {
    margin: 4px 0 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #5f6b5b;
}
.ep-cal-add {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}
.ep-home-col > *,
.ep-home-news > * {
    min-width: 0;
}
.ep-home .fi-section-header-heading {
    overflow-wrap: anywhere;
}

/* Home hero: greeting left, role and PASTI right. */
.ep-home-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.ep-home-hero-who {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    max-width: 460px;
}
.ep-home-photo {
    flex: none;
    border-radius: 50%;
}
.ep-home-photo img,
.ep-home-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}
.ep-home-initials {
    background: rgba(255, 255, 255, .2);
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}
.ep-home-photo:hover img,
.ep-home-photo:hover .ep-home-initials {
    border-color: #fff;
}
.ep-home-photo:focus-visible {
    outline-color: #fff;
}
.ep-home-hero-who small {
    display: block;
    white-space: pre-line;
}
.ep-home-hero-who b {
    display: block;
    font-size: 16px;
    line-height: 1.3;
}
.ep-home-hero-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin-top: 4px;
    font-size: 12.5px;
    color: #e3f3dc;
}
.ep-home-hero-state {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #fff;
}
.ep-home-hero-state img {
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 2px;
}
.ep-home-hero-area {
    flex-direction: column;
    align-items: flex-start;
}
@media (min-width: 900px) {
    .ep-home-hero {
        flex-wrap: nowrap;
    }
    .ep-home-hero > .ep-portal-hero-greet {
        flex: 1 1 auto;
        min-width: 0;
    }
    .ep-home-hero-who {
        flex: 0 0 auto;
        min-width: 320px;
    }
}
/* News boxes: Add sits on the right of the heading. */
.ep-home-news-box .fi-section-header {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}
.ep-home-news-box .fi-section-header-after-ctn {
    flex-shrink: 0;
    margin-inline-start: auto;
}
.ep-home-news-box .fi-section-header-content {
    flex-wrap: nowrap;
    align-items: center;
}
.ep-home-news-box .fi-section-header-text-ctn {
    flex: 1;
    min-width: 0;
}

/* Getting Started checklist. */
.ep-start {
    padding: 16px 20px;
    border: 2px solid #c6e6bd;
    border-radius: 12px;
    background: linear-gradient(#f3faf0, #fff 120px);
}
.ep-start-head {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}
.ep-start-head > div:first-child {
    flex: 1;
    min-width: 0;
}
.ep-start-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #12230f;
}
.ep-start-head p,
.ep-start-count {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: #5b6b58;
}
.ep-start-tools {
    display: flex;
    gap: 8px;
}
.ep-start-bar-track {
    height: 8px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #dcefd5;
}
.ep-start-bar-track > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #2fa308;
    transition: width 0.3s;
}
.ep-start-steps {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}
.ep-start-steps > li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #e4e9e3;
    border-radius: 10px;
    background: #fff;
}
.ep-start-steps > li.is-done {
    background: #f7f9f6;
}
.ep-start-check {
    display: grid;
    flex: none;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 2px solid #c9d3c6;
    border-radius: 999px;
    color: #fff;
}
.ep-start-check svg {
    width: 14px;
    height: 14px;
}
.is-done .ep-start-check {
    border-color: #2fa308;
    background: #2fa308;
}
.ep-start-icon {
    flex: none;
    width: 20px;
    height: 20px;
    color: #237a06;
}
.is-done .ep-start-icon {
    color: #9aa597;
}
.ep-start-text {
    display: grid;
    flex: 1;
    min-width: 0;
}
.ep-start-text b {
    font-size: 0.875rem;
    color: #12230f;
}
.is-done .ep-start-text b {
    color: #6b7768;
}
.ep-start-text small {
    font-size: 0.75rem;
    color: #6b7768;
}
.ep-start-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid #c6e6bd;
    border-radius: 12px;
    background: #fff;
    font-size: 0.875rem;
}
.ep-start-bar > span {
    flex: 1;
}
.ep-start-bar b {
    color: #237a06;
}
.ep-start-bar-icon {
    width: 20px;
    height: 20px;
    color: #237a06;
}
@media (max-width: 640px) {
    .ep-start-icon {
        display: none;
    }
}
