/* Halmo events - public UI. No external dependencies. */
.halmo-wydarzenia,
.halmo-ev {
    --_ink: var(--hm-ink, #17231f);
    --_muted: var(--hm-muted, #61706a);
    --_line: var(--hm-line, #dfe7e2);
    --_surface: var(--hm-surface, #fff);
    --_surface-soft: var(--hm-bg, #f4f7f5);
    --_primary: var(--hm-primary, #26785a);
    --_primary-dark: var(--hm-primary-dark, #15563f);
    --_accent: var(--hm-accent, #e66c3f);
    --_shadow: 0 20px 55px rgba(18, 40, 32, .1);
    color: var(--_ink);
    font-family: var(--hm-font-base, inherit);
}

.halmo-wydarzenia *,
.halmo-ev * {
    box-sizing: border-box;
}

.halmo-wydarzenia a,
.halmo-ev a {
    text-underline-offset: 3px;
}

/* ====================================================================== */
/* Listing shortcode                                                      */
/* ====================================================================== */
.halmo-wydarzenia {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

.halmo-wy__payload {
    display: none !important;
}

.halmo-wy__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.halmo-wy__stan {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    background: var(--_surface-soft);
    border: 1px solid var(--_line);
    border-radius: 999px;
}

.halmo-wy__stanbtn,
.halmo-wy__cyklbtn {
    appearance: none;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.halmo-wy__stanbtn {
    min-height: 40px;
    padding: 8px 18px;
    color: var(--_muted);
    background: transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.halmo-wy__stanbtn:hover {
    color: var(--_ink);
}

.halmo-wy__stanbtn.is-active {
    color: #fff;
    background: var(--_primary);
    box-shadow: 0 6px 18px rgba(38, 120, 90, .22);
}

.halmo-wy__searchwrap {
    position: relative;
    flex: 1 1 300px;
    max-width: 430px;
}

.halmo-wy__searchwrap::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 16px;
    width: 15px;
    height: 15px;
    border: 2px solid var(--_muted);
    border-radius: 50%;
    transform: translateY(-58%);
    opacity: .75;
    pointer-events: none;
}

.halmo-wy__searchwrap::after {
    content: "";
    position: absolute;
    top: calc(50% + 7px);
    left: 29px;
    width: 7px;
    height: 2px;
    background: var(--_muted);
    transform: rotate(45deg);
    opacity: .75;
    pointer-events: none;
}

.halmo-wy__search {
    width: 100%;
    min-height: 48px;
    padding: 11px 16px 11px 46px;
    color: var(--_ink);
    background: var(--_surface);
    border: 1px solid var(--_line);
    border-radius: 14px;
    font: inherit;
    font-size: 15px;
    box-shadow: 0 7px 22px rgba(23, 35, 31, .04);
}

.halmo-wy__search:focus {
    border-color: var(--_primary);
    outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--_primary) 16%, transparent);
}

.halmo-wy__cykle {
    display: flex;
    gap: 8px;
    margin: 0 0 16px;
    padding: 2px 0 5px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.halmo-wy__cyklbtn {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 13px;
    color: var(--_muted);
    background: var(--_surface);
    border: 1px solid var(--_line);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.halmo-wy__cyklbtn:hover,
.halmo-wy__cyklbtn.is-active,
.halmo-wy__cyklbtn[aria-selected="true"] {
    color: var(--_primary-dark);
    border-color: color-mix(in srgb, var(--_primary) 55%, var(--_line));
    background: color-mix(in srgb, var(--_primary) 8%, var(--_surface));
}

.halmo-wy__count {
    margin-left: 4px;
    opacity: .65;
}

.halmo-wy__meta {
    min-height: 20px;
    margin: 0 0 12px;
    color: var(--_muted);
    font-size: 13px;
}

.halmo-wy__grid {
    display: grid;
    grid-template-columns: repeat(var(--halmo-wy-columns, 3), minmax(0, 1fr));
    gap: 22px;
}

.halmo-wy__card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: var(--_surface);
    border: 1px solid var(--_line);
    border-radius: 20px;
    box-shadow: 0 10px 34px rgba(18, 40, 32, .07);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.halmo-wy__card:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--_primary) 35%, var(--_line));
    box-shadow: 0 20px 50px rgba(18, 40, 32, .13);
}

.halmo-wy__card.is-current {
    border-color: color-mix(in srgb, var(--_primary) 70%, var(--_line));
}

.halmo-wy__card.is-ended {
    --_primary: var(--_muted);
}

.halmo-wy__thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #dfe9e4;
    text-decoration: none;
}

.halmo-wy__thumbimg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.halmo-wy__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 23, 17, .02), rgba(7, 23, 17, .38));
}

.halmo-wy__thumb.is-empty {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .55), transparent 26%),
        linear-gradient(145deg, color-mix(in srgb, var(--_primary) 78%, #9bc4b5), color-mix(in srgb, var(--_primary-dark) 92%, #122b22));
}

.halmo-wy__thumbmark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 74px;
    height: 74px;
    border: 2px solid rgba(255, 255, 255, .65);
    border-radius: 20px;
    transform: translate(-50%, -50%) rotate(8deg);
}

.halmo-wy__thumbmark::before,
.halmo-wy__thumbmark::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, .62);
    border-radius: 3px;
}

.halmo-wy__thumbmark::before {
    top: 18px;
    left: 14px;
    right: 14px;
    height: 5px;
}

.halmo-wy__thumbmark::after {
    top: 32px;
    left: 14px;
    width: 34px;
    height: 22px;
}

.halmo-wy__pill {
    position: absolute;
    z-index: 1;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    color: #fff;
    background: rgba(13, 31, 24, .78);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    backdrop-filter: blur(8px);
}

.halmo-wy__pill.is-live {
    background: var(--_accent);
}

.halmo-wy__cardbody {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 17px 20px 18px;
}

.halmo-wy__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 5px;
}

.halmo-wy__cykl {
    color: var(--_primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.halmo-wy__current {
    padding: 3px 8px;
    color: var(--_primary-dark);
    background: color-mix(in srgb, var(--_primary) 10%, transparent);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.halmo-wy__title {
    margin: 0;
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.24;
}

.halmo-wy__title a {
    color: var(--_ink);
    text-decoration: none;
}

.halmo-wy__title a:hover {
    color: var(--_primary);
}

.halmo-wy__sub {
    min-height: 1.5em;
    margin: 6px 0 0;
    overflow: hidden;
    color: var(--_muted);
    font-size: 14px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.halmo-wy__facts {
    display: grid;
    gap: 7px;
    margin: 12px 0 0;
    color: var(--_ink);
    font-size: 13px;
    font-weight: 650;
}

.halmo-wy__fact {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.halmo-wy__fact::before {
    flex: 0 0 auto;
    width: 18px;
    color: var(--_primary);
    font-size: 14px;
    text-align: center;
}

.halmo-wy__fact--date::before { content: "◷"; }
.halmo-wy__fact--place::before { content: "⌖"; }

.halmo-wy__excerpt {
    display: -webkit-box;
    margin: 14px 0 0;
    overflow: hidden;
    color: var(--_muted);
    font-size: 14px;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.halmo-wy__cardfoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 19px;
}

.halmo-wy__cardfoot > span {
    color: var(--_muted);
    font-size: 11px;
    font-weight: 700;
}

.halmo-wy__more {
    color: var(--_primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.halmo-wy__more span {
    display: inline-block;
    transition: transform .16s ease;
}

.halmo-wy__more:hover span {
    transform: translateX(3px);
}

.halmo-wy__empty,
.halmo-wy__loading {
    padding: 44px 24px;
    color: var(--_muted);
    background: var(--_surface-soft);
    border: 1px dashed var(--_line);
    border-radius: 18px;
    text-align: center;
}

.halmo-wydarzenia[data-uklad="lista"] .halmo-wy__grid {
    grid-template-columns: 1fr;
}

.halmo-wydarzenia[data-uklad="lista"] .halmo-wy__card {
    flex-direction: row;
}

.halmo-wydarzenia[data-uklad="lista"] .halmo-wy__thumb {
    flex: 0 0 330px;
    aspect-ratio: auto;
    min-height: 225px;
}


/* 0.73.1 - protect the event teaser from Kadence link/button defaults. */
.halmo-wydarzenia .halmo-wy__badges {
    margin: 0 0 5px !important;
}

.halmo-wydarzenia .halmo-wy__title {
    margin: 0 !important;
}

.halmo-wydarzenia .halmo-wy__sub {
    margin: 6px 0 0 !important;
}

.halmo-wydarzenia .halmo-wy__sub.is-empty {
    visibility: hidden;
}

.halmo-wydarzenia .halmo-wy__title > a,
.halmo-wydarzenia .halmo-wy__title > a:visited {
    color: var(--_ink) !important;
    text-decoration: none !important;
}

.halmo-wydarzenia .halmo-wy__title > a:hover,
.halmo-wydarzenia .halmo-wy__title > a:focus-visible {
    color: var(--_primary) !important;
}

.halmo-wydarzenia .halmo-wy__more,
.halmo-wydarzenia .halmo-wy__more:visited,
.halmo-wydarzenia .halmo-wy__cykl {
    color: var(--_primary) !important;
}

.halmo-wydarzenia .halmo-wy__more:hover,
.halmo-wydarzenia .halmo-wy__more:focus-visible {
    color: var(--_primary-dark) !important;
}

.halmo-wydarzenia .halmo-wy__current {
    color: var(--_primary-dark) !important;
    background: color-mix(in srgb, var(--_primary) 10%, transparent) !important;
}

.halmo-wydarzenia .halmo-wy__stanbtn {
    color: var(--_muted) !important;
    background: transparent !important;
}

.halmo-wydarzenia .halmo-wy__stanbtn:hover,
.halmo-wydarzenia .halmo-wy__stanbtn:focus-visible {
    color: var(--_ink) !important;
    background: transparent !important;
}

.halmo-wydarzenia .halmo-wy__stanbtn.is-active,
.halmo-wydarzenia .halmo-wy__stanbtn.is-active:hover,
.halmo-wydarzenia .halmo-wy__stanbtn.is-active:focus-visible {
    color: #fff !important;
    background: var(--_primary) !important;
}

.halmo-wydarzenia .halmo-wy__cyklbtn,
.halmo-wydarzenia .halmo-wy__cyklbtn:visited {
    color: var(--_muted) !important;
    background: var(--_surface) !important;
}

.halmo-wydarzenia .halmo-wy__cyklbtn:hover,
.halmo-wydarzenia .halmo-wy__cyklbtn:focus-visible,
.halmo-wydarzenia .halmo-wy__cyklbtn.is-active,
.halmo-wydarzenia .halmo-wy__cyklbtn[aria-selected="true"] {
    color: var(--_primary-dark) !important;
    border-color: color-mix(in srgb, var(--_primary) 55%, var(--_line)) !important;
    background: color-mix(in srgb, var(--_primary) 8%, var(--_surface)) !important;
}

/* ====================================================================== */
/* Shared single event UI                                                 */
/* ====================================================================== */
.halmo-ev {
    width: 100%;
    background: var(--_surface);
}

.halmo-ev__wide {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.halmo-ev__main {
    position: relative;
}

/* Navigation */
.halmo-ev__nav {
    position: sticky;
    top: var(--hm-event-sticky-offset, 0px);
    z-index: 80;
    width: 100%;
    background: color-mix(in srgb, var(--_surface) 94%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--_line) 82%, transparent);
    box-shadow: 0 5px 18px rgba(16, 37, 29, .04);
    backdrop-filter: saturate(135%) blur(12px);
}

body.admin-bar .halmo-ev__nav {
    top: calc(var(--hm-event-sticky-offset, 0px) + 32px);
}

.halmo-ev__navinner {
    display: flex;
    align-items: center;
    width: min(1240px, calc(100% - 32px));
    min-height: 66px;
    margin-inline: auto;
    gap: 20px;
}

.halmo-ev__brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    color: var(--_ink);
    font-size: 14px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
}

.halmo-ev__brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.halmo-ev__brandmark {
    position: relative;
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    background: var(--_primary);
    border-radius: 9px 9px 9px 3px;
    transform: rotate(-3deg);
}

.halmo-ev__brandmark::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.halmo-ev__menupanel {
    min-width: 0;
}

.halmo-ev__menu,
.halmo-ev__more ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.halmo-ev__menu {
    display: flex;
    align-items: center;
    gap: 3px;
}

.halmo-ev__menu > li > a,
.halmo-ev__more summary {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 8px 11px;
    color: var(--_muted);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: color .16s ease, background .16s ease;
}

.halmo-ev__menu > li > a:hover,
.halmo-ev__menu > li > a[aria-current="page"],
.halmo-ev__more summary:hover {
    color: var(--_primary-dark);
    background: color-mix(in srgb, var(--_primary) 9%, transparent);
}

.halmo-ev__more {
    position: relative;
}

.halmo-ev__more details {
    position: relative;
}

.halmo-ev__more summary {
    list-style: none;
}

.halmo-ev__more summary::-webkit-details-marker {
    display: none;
}

.halmo-ev__more summary span {
    margin-left: 5px;
}

.halmo-ev__more ul {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    padding: 8px;
    background: var(--_surface);
    border: 1px solid var(--_line);
    border-radius: 14px;
    box-shadow: var(--_shadow);
}

.halmo-ev__more ul a {
    display: block;
    padding: 9px 11px;
    color: var(--_ink);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.halmo-ev__more ul a:hover,
.halmo-ev__more ul a[aria-current="page"] {
    color: var(--_primary-dark);
    background: var(--_surface-soft);
}

.halmo-ev__toggle {
    display: none;
    flex: 0 0 auto;
    width: 44px;
    height: 40px;
    padding: 9px 10px;
    border: 1px solid var(--_line);
    border-radius: 11px;
    background: var(--_surface);
    cursor: pointer;
}

.halmo-ev__toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    background: var(--_ink);
    border-radius: 2px;
}

/* Hero
 * 0.73.7: event-first editorial hero inspired by contemporary conference sites.
 * Strong typography + clear actions on the left, poster/ticket composition on the right.
 * The actual event artwork remains a responsive <img> with object-fit:contain.
 */
.halmo-ev__hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--_ink);
    background:
        radial-gradient(circle at 84% 15%, color-mix(in srgb, var(--_primary) 18%, transparent), transparent 30%),
        radial-gradient(circle at 4% 100%, color-mix(in srgb, var(--_accent) 11%, transparent), transparent 34%),
        linear-gradient(122deg, #fbfdfc 0%, color-mix(in srgb, var(--_surface-soft) 82%, #fff) 53%, color-mix(in srgb, var(--_primary) 5%, #fff) 100%);
    border-bottom: 1px solid var(--_line);
}

.halmo-ev__hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: .34;
    background-image: radial-gradient(circle, color-mix(in srgb, var(--_primary) 25%, transparent) 1px, transparent 1.25px);
    background-size: 20px 20px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 47%, #000 74%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, transparent 47%, #000 74%, transparent 100%);
}

.halmo-ev__hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -120px;
    right: 5.5%;
    width: 330px;
    height: 330px;
    border: 1px solid color-mix(in srgb, var(--_primary) 18%, transparent);
    border-radius: 50%;
    opacity: .72;
}

.halmo-ev__heroyear {
    position: absolute;
    z-index: -1;
    top: 50%;
    right: clamp(18px, 4vw, 76px);
    color: transparent;
    font-size: clamp(126px, 16vw, 238px);
    font-weight: 900;
    letter-spacing: -.075em;
    line-height: .8;
    opacity: .17;
    pointer-events: none;
    transform: translateY(-48%);
    -webkit-text-stroke: 1px color-mix(in srgb, var(--_primary) 42%, transparent);
    text-stroke: 1px color-mix(in srgb, var(--_primary) 42%, transparent);
}

.halmo-ev__heroinner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(350px, .78fr);
    align-items: center;
    width: min(1220px, calc(100% - 40px));
    min-height: 392px;
    margin-inline: auto;
    padding: clamp(48px, 5.5vw, 72px) 0;
    gap: clamp(52px, 7vw, 104px);
}

.halmo-ev--subpage .halmo-ev__heroinner {
    min-height: 342px;
    padding-block: clamp(40px, 4.5vw, 58px);
}

.halmo-ev__herocopy {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 760px;
}

.halmo-ev__herocopy::before {
    content: "";
    display: block;
    width: 56px;
    height: 5px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--_primary) 0 72%, var(--_accent) 72% 100%);
    border-radius: 999px;
}

.halmo-ev__herometa {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 12px;
    margin-bottom: 16px;
}

.halmo-ev__eyebrow {
    margin: 0;
    color: var(--_primary);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.halmo-ev__status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: var(--_primary-dark);
    background: color-mix(in srgb, var(--_primary) 9%, #fff);
    border: 1px solid color-mix(in srgb, var(--_primary) 18%, var(--_line));
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .025em;
}

.halmo-ev__status.is-live {
    color: #fff;
    background: var(--_accent);
    border-color: transparent;
}

.halmo-ev__title {
    max-width: 15.5ch;
    margin: 0;
    color: var(--_ink);
    font-size: clamp(48px, 5.5vw, 74px);
    font-weight: 880;
    letter-spacing: -.05em;
    line-height: .94;
    text-wrap: balance;
}

.halmo-ev--subpage .halmo-ev__title {
    max-width: 18ch;
    font-size: clamp(43px, 4.9vw, 64px);
}

.halmo-ev__hero .halmo-ev__sub {
    max-width: 54ch;
    margin: 18px 0 0;
    color: var(--_muted);
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.55;
}

.halmo-ev__herofacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 22px;
}

.halmo-ev__herofact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--_ink);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.4;
}

.halmo-ev__herofact::before {
    display: inline-grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    color: var(--_primary);
    background: color-mix(in srgb, var(--_primary) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--_primary) 15%, var(--_line));
    border-radius: 50%;
    font-size: 12px;
}

.halmo-ev__herofact--date::before { content: "◷"; }
.halmo-ev__herofact--place::before { content: "⌖"; }

.halmo-ev__heroactions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 25px;
}

.halmo-ev__herocta,
.halmo-ev__herolink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    font-size: 13px;
    font-weight: 820;
    line-height: 1;
    text-decoration: none;
}

.halmo-ev__herocta {
    padding: 13px 17px;
    color: #fff;
    background: var(--_primary);
    border: 1px solid var(--_primary);
    border-radius: 13px;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--_primary) 22%, transparent);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.halmo-ev__herocta:visited,
.halmo-ev__herocta:hover,
.halmo-ev__herocta:focus {
    color: #fff;
}

.halmo-ev__herocta:hover {
    background: var(--_primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 34px color-mix(in srgb, var(--_primary) 28%, transparent);
}

.halmo-ev__herocta span {
    font-size: 15px;
    transition: transform .18s ease;
}

.halmo-ev__herocta:hover span {
    transform: translate(2px, -2px);
}

.halmo-ev__herolink {
    padding: 10px 2px;
    color: var(--_ink);
    border-bottom: 1px solid color-mix(in srgb, var(--_ink) 22%, transparent);
}

.halmo-ev__herolink:visited,
.halmo-ev__herolink:hover,
.halmo-ev__herolink:focus {
    color: var(--_ink);
}

.halmo-ev__herolink:hover {
    border-color: var(--_primary);
}

.halmo-ev__herovisual {
    position: relative;
    z-index: 2;
    width: min(100%, 450px);
    justify-self: end;
}

.halmo-ev__herovisual::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: -15px 18px 20px -20px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--_primary) 18%, #fff), color-mix(in srgb, var(--_primary) 5%, #fff));
    border: 1px solid color-mix(in srgb, var(--_primary) 15%, var(--_line));
    border-radius: 32px;
    transform: rotate(-3deg);
}

.halmo-ev__herovisual::after {
    content: "";
    position: absolute;
    z-index: 4;
    top: -22px;
    right: -18px;
    width: 62px;
    height: 62px;
    background: color-mix(in srgb, var(--_accent) 82%, #fff);
    border: 10px solid color-mix(in srgb, var(--_surface-soft) 74%, #fff);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(24, 42, 36, .09);
}

.halmo-ev__heroart {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid color-mix(in srgb, var(--_primary) 16%, var(--_line));
    border-radius: 26px;
    box-shadow: 0 30px 72px rgba(25, 53, 43, .17);
    transform: rotate(.65deg);
}

.halmo-ev__heroartmedia {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 258px;
    margin: 13px 13px 0;
    overflow: hidden;
    aspect-ratio: 4 / 2.78;
    background:
        radial-gradient(circle at 78% 16%, rgba(255,255,255,.78), transparent 25%),
        linear-gradient(145deg, color-mix(in srgb, var(--_primary) 7%, #fff), color-mix(in srgb, var(--_surface-soft) 78%, #fff));
    border-radius: 17px;
}

.halmo-ev__heroartmedia::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .58);
    border-radius: inherit;
}

.halmo-ev__heroimg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.halmo-ev__heroartmeta {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 0;
    min-height: 76px;
    padding: 13px 17px 14px;
}

.halmo-ev__heroartmeta > span {
    min-width: 0;
    padding-right: 15px;
}

.halmo-ev__heroartmeta > span + span {
    padding-left: 16px;
    border-left: 1px dashed color-mix(in srgb, var(--_primary) 20%, var(--_line));
}

.halmo-ev__heroartmeta small,
.halmo-ev__heroartmeta strong {
    display: block;
}

.halmo-ev__heroartmeta small {
    margin-bottom: 4px;
    color: var(--_primary);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.halmo-ev__heroartmeta strong {
    overflow: hidden;
    color: var(--_ink);
    font-size: 12px;
    font-weight: 780;
    line-height: 1.38;
    text-overflow: ellipsis;
}

.halmo-ev__heroart.is-placeholder .halmo-ev__heroartmedia {
    background:
        radial-gradient(circle at 72% 22%, rgba(255, 255, 255, .72), transparent 25%),
        linear-gradient(145deg, color-mix(in srgb, var(--_primary) 18%, #fff), color-mix(in srgb, var(--_primary-dark) 13%, #fff));
}

.halmo-ev__heroartmark {
    width: 92px;
    height: 92px;
    border: 2px solid color-mix(in srgb, var(--_primary) 36%, transparent);
    border-radius: 28px;
    transform: rotate(8deg);
}

/* Intro */
.halmo-ev__intro {
    position: relative;
    padding: clamp(54px, 8vw, 96px) 0;
}

.halmo-ev__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    width: min(1080px, calc(100% - 40px));
    margin-inline: auto;
    gap: clamp(36px, 7vw, 86px);
    align-items: start;
}

.halmo-ev__article {
    min-width: 0;
    font-size: clamp(17px, 1.7vw, 20px);
    line-height: 1.75;
}

.halmo-ev__summary {
    position: sticky;
    top: 92px;
    padding: 24px;
    background: var(--_surface-soft);
    border: 1px solid var(--_line);
    border-radius: 18px;
}

body.admin-bar .halmo-ev__summary {
    top: calc(var(--hm-event-sticky-offset, 0px) + 124px);
}

.halmo-ev__summarylabel {
    display: block;
    margin-bottom: 16px;
    color: var(--_primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.halmo-ev__summaryrow {
    position: relative;
    padding: 0 0 15px 27px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--_line);
}

.halmo-ev__summaryrow::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--_primary);
    font-size: 17px;
}

.halmo-ev__summaryrow.is-date::before { content: "◷"; }
.halmo-ev__summaryrow.is-place::before { content: "⌖"; }
.halmo-ev__summaryrow.is-pages::before { content: "≡"; }

.halmo-ev__summaryrow small,
.halmo-ev__summaryrow strong {
    display: block;
}

.halmo-ev__summaryrow small {
    margin-bottom: 3px;
    color: var(--_muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.halmo-ev__summaryrow strong {
    color: var(--_ink);
    font-size: 14px;
    line-height: 1.45;
}

.halmo-ev__summarycta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    color: #fff;
    background: var(--_primary);
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.halmo-ev__summarycta:hover {
    color: #fff;
    background: var(--_primary-dark);
}

/* Generic sections */
.halmo-ev__section {
    padding: clamp(58px, 8vw, 94px) 0;
}

.halmo-ev__section--pages {
    background: var(--_surface-soft);
    border-block: 1px solid var(--_line);
}

.halmo-ev__sectionhead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}

.halmo-ev__kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--_primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.halmo-ev__sectionhead h2 {
    margin: 0;
    color: var(--_ink);
    font-size: clamp(28px, 4vw, 45px);
    letter-spacing: -.025em;
    line-height: 1.08;
}

.halmo-ev__sectionhead > p {
    max-width: 480px;
    margin: 0;
    color: var(--_muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Subpage cards */
.halmo-ev__pagegrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.halmo-ev__pagecard {
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    background: var(--_surface);
    border: 1px solid var(--_line);
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(18, 40, 32, .06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.halmo-ev__pagecard:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(18, 40, 32, .12);
}

.halmo-ev__pageimage {
    position: relative;
    display: block;
    aspect-ratio: 16 / 8.8;
    background-color: color-mix(in srgb, var(--_primary) 15%, var(--_surface-soft));
    background-position: center;
    background-size: cover;
    text-decoration: none;
}

.halmo-ev__pageimage.is-empty {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--_primary) 13%, #fff), color-mix(in srgb, var(--_primary) 32%, #fff));
}

.halmo-ev__pageimage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(7, 28, 20, .42));
}

.halmo-ev__pagenumber {
    position: absolute;
    z-index: 1;
    bottom: 13px;
    left: 15px;
    color: #fff;
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.halmo-ev__pagebody {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 20px;
}

.halmo-ev__pagebody h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
}

.halmo-ev__pagebody h3 a {
    color: var(--_ink);
    text-decoration: none;
}

.halmo-ev__pagebody h3 a:hover {
    color: var(--_primary);
}

.halmo-ev__pagebody p {
    display: -webkit-box;
    margin: 10px 0 18px;
    overflow: hidden;
    color: var(--_muted);
    font-size: 14px;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.halmo-ev__pagelink {
    margin-top: auto;
    color: var(--_primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

/* Legacy content */
.halmo-ev__section--legacy {
    padding-block: 0;
}

.halmo-ev__legacy {
    display: grid;
    grid-template-columns: minmax(220px, .55fr) minmax(0, 1.45fr);
    gap: clamp(32px, 7vw, 90px);
    padding: clamp(56px, 8vw, 92px) 0;
    border-bottom: 1px solid var(--_line);
    scroll-margin-top: 92px;
}

.halmo-ev__legacyhead {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.halmo-ev__legacyhead > span {
    flex: 0 0 auto;
    color: var(--_primary);
    font-size: 13px;
    font-weight: 850;
}

.halmo-ev__legacyhead h2 {
    margin: 0;
    font-size: clamp(27px, 3.5vw, 43px);
    letter-spacing: -.025em;
    line-height: 1.08;
}

.halmo-ev__legacybody {
    min-width: 0;
}

/* Archive */
.halmo-ev__section--archive {
    background: color-mix(in srgb, var(--_primary-dark) 96%, #0b1a15);
    color: #fff;
}

.halmo-ev__section--archive .halmo-ev__kicker,
.halmo-ev__section--archive .halmo-ev__sectionhead h2 {
    color: #fff;
}

.halmo-ev__editionlinks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.halmo-ev__editionlinks a {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) 24px;
    align-items: center;
    min-height: 74px;
    padding: 13px 16px;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 13px;
    text-decoration: none;
    transition: background .16s ease, transform .16s ease;
}

.halmo-ev__editionlinks a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .11);
    transform: translateX(3px);
}

.halmo-ev__editionlinks span {
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    font-weight: 800;
}

.halmo-ev__editionlinks strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.halmo-ev__editionlinks i {
    font-style: normal;
    text-align: right;
}

/* Event footer */
.halmo-ev__footer {
    padding: 30px 0;
    background: var(--_surface-soft);
    border-top: 1px solid var(--_line);
}

.halmo-ev__backlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--_primary-dark);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

/* ====================================================================== */
/* Event subpages                                                         */
/* ====================================================================== */
.halmo-ev__subpagewrap {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    padding: clamp(38px, 6vw, 72px) 0 clamp(62px, 8vw, 100px);
}

.halmo-ev__breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 30px;
    color: var(--_muted);
    font-size: 12px;
}

.halmo-ev__breadcrumbs a {
    color: var(--_primary);
    font-weight: 700;
    text-decoration: none;
}

.halmo-ev__subpagearticle {
    font-size: clamp(16.5px, 1.55vw, 19px);
    line-height: 1.75;
}

.halmo-ev__pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 54px;
    padding-top: 26px;
    border-top: 1px solid var(--_line);
}

.halmo-ev__pager > div:last-child {
    text-align: right;
}

.halmo-ev__pager a {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    padding: 15px 17px;
    color: var(--_ink);
    background: var(--_surface-soft);
    border: 1px solid var(--_line);
    border-radius: 14px;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease;
}

.halmo-ev__pager a:hover {
    color: var(--_primary-dark);
    border-color: color-mix(in srgb, var(--_primary) 50%, var(--_line));
    transform: translateY(-2px);
}

.halmo-ev__pager small,
.halmo-ev__pager strong {
    display: block;
}

.halmo-ev__pager small {
    margin-bottom: 5px;
    color: var(--_muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.halmo-ev__pager strong {
    font-size: 14px;
    line-height: 1.45;
}

/* Gutenberg/content guardrails */
.halmo-ev .prose > :first-child { margin-top: 0; }
.halmo-ev .prose > :last-child { margin-bottom: 0; }

.halmo-ev .prose h2,
.halmo-ev .prose h3,
.halmo-ev .prose h4 {
    color: var(--_ink);
    line-height: 1.2;
    text-wrap: balance;
}

.halmo-ev .prose h2 {
    margin: 1.8em 0 .65em;
    font-size: clamp(27px, 3vw, 38px);
    letter-spacing: -.022em;
}

.halmo-ev .prose h3 {
    margin: 1.55em 0 .6em;
    font-size: clamp(22px, 2.3vw, 28px);
}

.halmo-ev .prose p,
.halmo-ev .prose ul,
.halmo-ev .prose ol {
    margin-block: 0 1.15em;
}

.halmo-ev .prose a {
    color: var(--_primary);
}

.halmo-ev .prose img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.halmo-ev .prose blockquote {
    margin: 1.7em 0;
    padding: 4px 0 4px 24px;
    border-left: 4px solid var(--_primary);
    font-size: 1.08em;
}

.halmo-ev .wp-block-button__link {
    color: #fff;
    background: var(--_primary);
    border-radius: 10px;
}

.halmo-ev .wp-block-file__button {
    color: #fff;
    background: var(--_primary);
}

/* Focus */
.halmo-ev a:focus-visible,
.halmo-ev button:focus-visible,
.halmo-wydarzenia a:focus-visible,
.halmo-wydarzenia button:focus-visible,
.halmo-wydarzenia input:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--_accent) 72%, #fff);
    outline-offset: 3px;
}

/* ====================================================================== */
/* Responsive                                                             */
/* ====================================================================== */
@media (max-width: 1020px) {
    .halmo-wy__grid,
    .halmo-ev__pagegrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .halmo-ev__toggle {
        display: block;
    }

    .halmo-ev__menupanel {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 10px 16px 16px;
        background: var(--_surface);
        border-bottom: 1px solid var(--_line);
        box-shadow: 0 15px 28px rgba(16, 37, 29, .13);
    }

    .halmo-ev__menupanel.is-open {
        display: block;
    }

    .halmo-ev__navinner {
        position: relative;
    }

    .halmo-ev__menu {
        display: grid;
        gap: 3px;
    }

    .halmo-ev__menu > li > a,
    .halmo-ev__more summary {
        display: flex;
        width: 100%;
        min-height: 42px;
        padding-inline: 12px;
    }

    .halmo-ev__more ul {
        position: static;
        min-width: 0;
        margin-top: 3px;
        padding: 3px 0 3px 14px;
        border: 0;
        box-shadow: none;
    }

    .halmo-ev__content {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 42px;
    }
}

@media (max-width: 900px) {
    .halmo-ev__heroinner {
        grid-template-columns: minmax(0, 1fr) minmax(290px, 350px);
        gap: 38px;
    }

    .halmo-ev__herovisual::after {
        right: -8px;
    }

    .halmo-ev__title {
        font-size: clamp(44px, 6vw, 62px);
    }
}

@media (max-width: 782px) {
    body.admin-bar .halmo-ev__nav {
        top: calc(var(--hm-event-sticky-offset, 0px) + 46px);
    }

    .halmo-wy__grid,
    .halmo-ev__pagegrid,
    .halmo-ev__editionlinks {
        grid-template-columns: 1fr;
    }

    .halmo-wydarzenia[data-uklad="lista"] .halmo-wy__card {
        flex-direction: column;
    }

    .halmo-wydarzenia[data-uklad="lista"] .halmo-wy__thumb {
        flex-basis: auto;
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .halmo-ev__content {
        grid-template-columns: 1fr;
    }

    .halmo-ev__summary {
        position: static;
        order: -1;
    }

    .halmo-ev__legacy {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .halmo-ev__sectionhead {
        align-items: flex-start;
        flex-direction: column;
    }

    .halmo-ev__pager {
        grid-template-columns: 1fr;
    }

    .halmo-ev__pager > div:last-child {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .halmo-wy__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .halmo-wy__stan {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .halmo-wy__searchwrap {
        max-width: none;
    }

    .halmo-wy__card {
        border-radius: 16px;
    }

    .halmo-ev__wide,
    .halmo-ev__heroinner,
    .halmo-ev__content,
    .halmo-ev__subpagewrap {
        width: min(100% - 28px, 1180px);
    }

    .halmo-ev__navinner {
        width: calc(100% - 24px);
        min-height: 60px;
    }

    .halmo-ev__brand {
        max-width: calc(100% - 62px);
    }

    .halmo-ev__heroinner,
    .halmo-ev--subpage .halmo-ev__heroinner {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-block: 34px 38px;
        gap: 34px;
    }

    .halmo-ev__herocopy::before {
        width: 48px;
        margin-bottom: 16px;
    }

    .halmo-ev__title,
    .halmo-ev--subpage .halmo-ev__title {
        max-width: 15ch;
        font-size: clamp(38px, 11.4vw, 54px);
        line-height: .96;
    }

    .halmo-ev__herofacts {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .halmo-ev__heroactions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 24px;
    }

    .halmo-ev__herocta,
    .halmo-ev__herolink {
        width: fit-content;
        max-width: 100%;
    }

    .halmo-ev__herovisual {
        width: min(94%, 390px);
        justify-self: start;
        margin-left: 10px;
    }

    .halmo-ev__herovisual::before {
        inset: -10px 10px 16px -10px;
        border-radius: 26px;
        transform: rotate(-2deg);
    }

    .halmo-ev__herovisual::after {
        top: -18px;
        right: -12px;
        width: 52px;
        height: 52px;
        border-width: 8px;
    }

    .halmo-ev__heroart {
        transform: none;
        border-radius: 22px;
    }

    .halmo-ev__heroartmedia {
        min-height: 0;
        margin: 10px 10px 0;
        border-radius: 14px;
    }

    .halmo-ev__heroartmeta {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px 14px 14px;
    }

    .halmo-ev__heroartmeta > span {
        padding: 0;
    }

    .halmo-ev__heroartmeta > span + span {
        padding: 8px 0 0;
        border-top: 1px dashed color-mix(in srgb, var(--_primary) 20%, var(--_line));
        border-left: 0;
    }

    .halmo-ev__heroyear {
        top: auto;
        right: -16px;
        bottom: 44px;
        font-size: 116px;
        transform: none;
    }

    .halmo-ev__pagecard {
        border-radius: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .halmo-wy__card,
    .halmo-wy__more span,
    .halmo-ev__herocta,
    .halmo-ev__herocta span,
    .halmo-ev__pagecard,
    .halmo-ev__editionlinks a,
    .halmo-ev__pager a {
        transition: none;
    }

    .halmo-wy__card:hover,
    .halmo-ev__herocta:hover,
    .halmo-ev__pagecard:hover,
    .halmo-ev__editionlinks a:hover,
    .halmo-ev__pager a:hover {
        transform: none;
    }
}

/* Event information index - intentionally independent from featured images. */
.halmo-ev__sectionhead--index {
    align-items: center;
}

.halmo-ev__pageindex {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.halmo-ev__pageitem {
    position: relative;
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 132px;
    gap: 18px;
    overflow: hidden;
    padding: 22px 22px 22px 18px;
    color: var(--_ink) !important;
    background:
        radial-gradient(circle at 95% 0%, color-mix(in srgb, var(--_primary) 8%, transparent) 0, transparent 38%),
        var(--_surface);
    border: 1px solid color-mix(in srgb, var(--_line) 88%, var(--_primary));
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(18, 40, 32, .045);
    text-decoration: none !important;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.halmo-ev__pageitem::before {
    content: "";
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 3px;
    background: var(--_primary);
    border-radius: 0 8px 8px 0;
    transform: scaleY(.36);
    transform-origin: center;
    transition: transform .22s ease;
}

.halmo-ev__pageitem:hover,
.halmo-ev__pageitem:focus-visible {
    color: var(--_ink) !important;
    border-color: color-mix(in srgb, var(--_primary) 35%, var(--_line));
    box-shadow: 0 18px 42px rgba(18, 40, 32, .105);
    transform: translateY(-3px);
}

.halmo-ev__pageitem:hover::before,
.halmo-ev__pageitem:focus-visible::before {
    transform: scaleY(1);
}

.halmo-ev__pageitem-no {
    align-self: start;
    min-width: 34px;
    padding-top: 3px;
    color: color-mix(in srgb, var(--_primary) 72%, var(--_muted));
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.halmo-ev__pageitem-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--_primary-dark);
    background: color-mix(in srgb, var(--_primary) 10%, var(--_surface));
    border: 1px solid color-mix(in srgb, var(--_primary) 18%, var(--_line));
    border-radius: 15px;
    transition: transform .22s ease, background-color .22s ease;
}

.halmo-ev__pageitem:hover .halmo-ev__pageitem-icon {
    background: color-mix(in srgb, var(--_primary) 15%, var(--_surface));
    transform: rotate(-3deg) scale(1.04);
}

.halmo-ev__pageitem-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.halmo-ev__pageitem-copy {
    display: block;
    min-width: 0;
}

.halmo-ev__pageitem-copy strong {
    display: block;
    margin: 0 0 7px;
    color: var(--_ink);
    font-size: 19px;
    font-weight: 820;
    line-height: 1.24;
}

.halmo-ev__pageitem-copy small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--_muted);
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.halmo-ev__pageitem-arrow {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--_primary);
    background: color-mix(in srgb, var(--_primary) 7%, var(--_surface));
    border: 1px solid color-mix(in srgb, var(--_primary) 16%, var(--_line));
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.halmo-ev__pageitem:hover .halmo-ev__pageitem-arrow {
    color: #fff;
    background: var(--_primary);
    transform: translateX(3px);
}

@media (max-width: 820px) {
    .halmo-ev__pageindex {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .halmo-ev__pageitem {
        grid-template-columns: auto minmax(0, 1fr) auto;
        min-height: 112px;
        gap: 13px;
        padding: 18px 16px;
    }

    .halmo-ev__pageitem-no {
        display: none;
    }

    .halmo-ev__pageitem-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .halmo-ev__pageitem-copy strong {
        font-size: 17px;
    }

    .halmo-ev__pageitem-arrow {
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .halmo-ev__pageitem,
    .halmo-ev__pageitem::before,
    .halmo-ev__pageitem-icon,
    .halmo-ev__pageitem-arrow {
        transition: none;
    }

    .halmo-ev__pageitem:hover,
    .halmo-ev__pageitem:hover .halmo-ev__pageitem-icon,
    .halmo-ev__pageitem:hover .halmo-ev__pageitem-arrow {
        transform: none;
    }
}
