.heg-shell {
    --heg-ink: #002b64;
    --heg-green: #188c31;
    --heg-radius: 17px;
    padding: 10px 22px 16px;
    border-radius: 0 0 30px 30px;
    background: #f0f4fa;
    color: var(--heg-ink);
    font-family: inherit;
}
.heg-shell *, .heg-shell *::before, .heg-shell *::after { box-sizing: border-box; }
.heg-grid { display: grid; gap: 18px; align-items: stretch; }
.heg-grid.heg-columns-1 { grid-template-columns: minmax(0, 1fr); }
.heg-grid.heg-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.heg-grid.heg-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.heg-grid.heg-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.heg-shell .heg-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--heg-radius);
    background: #fff;
    box-shadow: 0 5px 12px rgb(21 49 89 / 9%);
}
.heg-shell .heg-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    border-radius: var(--heg-radius) var(--heg-radius) 0 0;
    overflow: hidden;
    color: var(--heg-ink);
    text-decoration: none;
    background: transparent;
    transition: box-shadow .18s ease, transform .18s ease;
}
.heg-shell .heg-card-link:hover { color: var(--heg-ink); transform: translateY(-2px); box-shadow: 0 8px 20px rgb(21 49 89 / 14%); }
.heg-shell .heg-card-link:focus-visible { outline: 3px solid var(--heg-ink); outline-offset: 4px; }
.heg-media { position: relative; height: 190px; overflow: hidden; background: #d9e6f0; }
.heg-shell img.heg-image { display: block; width: 100%; height: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; object-fit: cover; object-position: center; }
.heg-placeholder { display: grid; place-items: center; height: 100%; color: #486e8d; background: linear-gradient(120deg, #d8e7ef, #b7cfe0); }
.heg-placeholder svg { width: 65px; height: 65px; }
.heg-badge { position: absolute; bottom: 0; left: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 36px; min-height: 37px; padding: 4px 5px 3px; border-radius: 9px 9px 0 0; background: var(--heg-green); color: #fff; font-weight: 800; line-height: 1; }
.heg-month { font-size: 9px; letter-spacing: .4px; }
.heg-day { margin-top: 2px; font-size: 17px; }
.heg-body { display: flex; flex: 1; flex-direction: column; min-height: 100px; padding: 13px 16px 16px; }
.heg-shell .heg-title { margin: 0; padding: 0; color: var(--heg-ink); font-family: inherit; font-size: 15px; font-style: normal; font-weight: 700; line-height: 1.35; text-transform: none; letter-spacing: normal; overflow-wrap: anywhere; }
.heg-shell .heg-subtitle { margin: 5px 0 0; padding: 0; color: #3f6596; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.heg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 23px; margin-top: auto; padding-top: 15px; color: var(--heg-ink); font-size: 12px; font-weight: 500; line-height: 1.4; }
.heg-time { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.heg-time svg { flex: 0 0 15px; width: 15px; height: 15px; }
.heg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 16px 14px; }
.heg-shell .heg-details-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 7px 9px; border: 1px solid var(--heg-ink); border-radius: 7px; background: var(--heg-ink); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.heg-shell .heg-details-link:hover { background: #001e47; color: #fff; text-decoration: underline; }
.heg-shell .heg-details-link:focus-visible { outline: 3px solid var(--heg-ink); outline-offset: 3px; }
.heg-details-link svg { flex: 0 0 16px; width: 16px; height: 16px; }
.heg-shell .heg-calendar-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 7px 9px; border: 1px solid #d8e4dc; border-radius: 7px; background: #f1f8f3; color: #126b27; font-size: 12px; font-weight: 600; line-height: 1.4; text-decoration: none; }
.heg-shell .heg-calendar-link:hover { background: #e1f0e5; color: #0c521c; text-decoration: underline; }
.heg-shell .heg-calendar-link:focus-visible { outline: 3px solid var(--heg-ink); outline-offset: 3px; }
.heg-calendar-link svg { flex: 0 0 16px; width: 16px; height: 16px; }
.heg-empty { padding: 16px; }
@media (max-width: 900px) { .heg-grid.heg-columns-3, .heg-grid.heg-columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .heg-shell { padding: 10px 12px 14px; } .heg-grid.heg-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; } .heg-media { height: 210px; } }
@media (prefers-reduced-motion: reduce) { .heg-shell .heg-card-link { transition: none; } .heg-shell .heg-card-link:hover { transform: none; } }
