/*
 * Hydari theme — events (P33): an event's box (the big day of the Demo's "Event Day", the time, the other calendars, the repetition, the
 * place, the map, the speakers, "add to calendar"), the registration, the list by day, and the calendar's three views — year, month
 * (a list of busy days on a phone) and day. Palette tokens only, logical directions, the script's own line height.
 */

/* ---- an event's box ------------------------------------------------------------------------------------------------------------ */
.hy-event { display: grid; gap: 1rem; margin-block: 0 1.75rem; padding: 1.25rem; border-radius: var(--radius-card, 14px); background: var(--bg-card); border: 1px solid var(--border-light); box-shadow: var(--shadow-sm, none); }
.hy-event__when { display: flex; gap: 1rem; align-items: flex-start; }
.hy-event__day { display: grid; place-items: center; flex: none; inline-size: 5.5rem; padding: .6rem 0; border-radius: var(--radius-lg, 10px); background: var(--color-primary); color: var(--text-inverse, #fff); line-height: 1.15; text-align: center; }
.hy-event__num { font-size: 2.2rem; font-weight: 800; }
.hy-event__month { font-size: .85rem; font-weight: 600; }
.hy-event__dates { display: grid; gap: .3rem; min-inline-size: 0; }
.hy-event__dates p { display: flex; align-items: center; gap: .45rem; margin: 0; }
.hy-event__date { font-weight: 700; font-size: 1.1rem; }
.hy-event__time, .hy-event__rule { color: var(--text-secondary, var(--text-main)); }
.hy-event__others { color: var(--text-muted); font-size: .9rem; display: block !important; }
.hy-event__dates svg, .hy-event__place svg, .hy-event__label svg { flex: none; inline-size: 1.1em; block-size: 1.1em; color: var(--color-primary); }
.hy-event__coming summary { cursor: pointer; font-weight: 600; }
.hy-event__coming ul { display: grid; gap: .25rem; margin: .5rem 0 0; padding-inline-start: 1.25rem; }
.hy-event__place { display: grid; gap: .25rem; }
.hy-event__place p { display: flex; align-items: flex-start; gap: .45rem; margin: 0; }
.hy-event__address { padding-inline-start: 1.55rem; color: var(--text-secondary, var(--text-main)); }
.hy-event__map { overflow: hidden; border-radius: var(--radius-lg, 10px); }
.hy-event__label { display: flex; align-items: center; gap: .45rem; margin: 0 0 .35rem; font-weight: 700; }
.hy-event__speakers ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.hy-event__speakers li { padding: .2rem .7rem; border-radius: 999px; background: var(--color-primary-light, var(--bg-hover)); }
.hy-event__add { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.hy-event :lang(ur) { line-height: 2; }

/* ---- the ticket (2026-10-29): a maroon stub with the day in gold, a perforated edge, the facts as tiles on paper ------------- */
.hy-event--ticket { --hy-ev-maroon: color-mix(in srgb, var(--color-danger, #a8443c) 58%, #2a0a12); --hy-ev-gold: var(--color-accent, #a98b4f); gap: 1rem; padding: 0; border: 0; background: none; }
.hy-event__ticket { position: relative; display: grid; grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr); overflow: hidden; border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--hy-ev-gold) 28%, transparent); background: color-mix(in srgb, var(--bg-card) 88%, #e9d9b4); box-shadow: 0 24px 46px -34px rgb(0 0 0 / .32);
    animation: hy-ev-in .7s var(--hy-ease) both; }
@keyframes hy-ev-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hy-event--ticket .hy-event__when { position: relative; isolation: isolate; flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.5rem 1.6rem; color: rgb(255 255 255);
    background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--hy-ev-maroon) 70%, #8a3444), transparent 70%), linear-gradient(160deg, var(--hy-ev-maroon), color-mix(in srgb, var(--hy-ev-maroon) 70%, #000)); }
/* The perforation between stub and body: half-circles cut into both edges and a dashed line. */
.hy-event--ticket .hy-event__when::after { content: ""; position: absolute; inset-block: 14px; inset-inline-end: -1px; inline-size: 2px; background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--hy-ev-gold) 70%, transparent) 0 6px, transparent 6px 12px); }
.hy-event--ticket .hy-event__when::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .12;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cg fill='none' stroke='%23d9bf86' stroke-width='.7'%3E%3Cpath d='M18 2l16 16-16 16L2 18z'/%3E%3Ccircle cx='18' cy='18' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 36px 36px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); mask-image: linear-gradient(200deg, #000, transparent 70%); }
.hy-event__ticket::before, .hy-event__ticket::after { content: ""; position: absolute; z-index: 2; inset-inline-start: calc(min(19rem, 100%) - 13px); inline-size: 26px; block-size: 26px; border-radius: 50%; background: var(--bg-card); }
.hy-event__ticket::before { inset-block-start: -13px; } .hy-event__ticket::after { inset-block-end: -13px; }
.hy-event--ticket .hy-event__day { justify-self: start; display: grid; place-items: center; inline-size: 6.4rem; padding: .55rem 0 .7rem; border-radius: 18px; background: var(--hy-ev-gold);
    color: var(--hy-ev-maroon); box-shadow: 0 14px 26px -14px #000, inset 0 0 0 1px rgb(255 255 255 / .25); }
.hy-event--ticket .hy-event__month { order: -1; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hy-event--ticket .hy-event__num { font-size: 2.9rem; font-weight: 900; line-height: 1; }
.hy-event--ticket .hy-event__dates { gap: .45rem; }
.hy-event--ticket .hy-event__date { font-size: 1.12rem; color: rgb(255 255 255); }
.hy-event--ticket .hy-event__time, .hy-event--ticket .hy-event__rule { color: rgb(255 255 255 / .85); font-weight: 600; }
.hy-event--ticket .hy-event__time { justify-self: start; padding: .2rem .75rem .2rem .45rem; border-radius: 999px; background: rgb(255 255 255 / .1); }
.hy-event--ticket .hy-event__others { color: color-mix(in srgb, var(--hy-ev-gold) 75%, #fff); font-size: .84rem; }
.hy-event--ticket .hy-event__dates svg { color: var(--hy-ev-gold); }
/* The body: tiles with a coloured icon, then the calendar pills. */
.hy-event__body { display: grid; align-content: center; gap: .7rem; padding: 1.4rem 1.6rem; min-inline-size: 0; }
.hy-event__tile { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: .8rem; padding: .8rem .9rem; border-radius: 16px; background: var(--bg-card);
    border: 1px solid color-mix(in srgb, var(--hy-line) 70%, transparent); box-shadow: 0 1px 2px color-mix(in srgb, var(--hy-text) 6%, transparent); transition: transform .3s var(--hy-ease), box-shadow .3s var(--hy-ease); }
.hy-event__tile:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -20px rgb(0 0 0 / .32); }
.hy-event__tile-icon { display: grid; place-items: center; inline-size: 42px; block-size: 42px; border-radius: 13px; background: color-mix(in srgb, var(--hy-ev-maroon) 12%, transparent); color: var(--hy-ev-maroon); }
.hy-event__speakers .hy-event__tile-icon { background: color-mix(in srgb, var(--hy-ev-gold) 18%, transparent); color: color-mix(in srgb, var(--hy-ev-gold) 70%, #000); }
.hy-event--ticket .hy-event__place p { gap: .4rem; }
.hy-event--ticket .hy-event__venue { font-size: 1.05rem; }
.hy-event--ticket .hy-event__address { padding: 0; font-size: .9rem; }
.hy-event--ticket .hy-event__label { margin-block-end: .45rem; color: var(--text-muted); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.hy-event--ticket .hy-event__speakers li { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .75rem .2rem .2rem; background: var(--bg-sunken, var(--bg-app)); font-weight: 700; font-size: .88rem; }
[dir="rtl"] .hy-event--ticket .hy-event__speakers li { padding: .2rem .2rem .2rem .75rem; }
.hy-event__face { display: grid; place-items: center; inline-size: 26px; block-size: 26px; border-radius: 50%; background: var(--hy-ev-maroon); color: var(--hy-ev-gold); font-size: .75rem; font-weight: 800; }
.hy-event--ticket .hy-event__coming { padding: .7rem .9rem; border-radius: 16px; background: var(--bg-card); border: 1px dashed color-mix(in srgb, var(--hy-ev-gold) 40%, transparent); }
.hy-event--ticket .hy-event__coming ul { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; list-style: none; }
.hy-event--ticket .hy-event__coming li { padding: .15rem .65rem; border-radius: 999px; background: color-mix(in srgb, var(--hy-ev-gold) 14%, transparent); font-size: .84rem; }
.hy-event__pill { display: inline-flex; align-items: center; gap: .5rem; min-block-size: 42px; padding: 4px .95rem 4px 4px; border: 1px solid color-mix(in srgb, var(--hy-line) 80%, transparent); border-radius: 999px;
    background: var(--bg-card); color: var(--hy-text); font-size: .86rem; font-weight: 700; text-decoration: none; transition: transform .25s var(--hy-ease), border-color .25s var(--hy-ease), background-color .25s var(--hy-ease); }
[dir="rtl"] .hy-event__pill { padding: 4px 4px 4px .95rem; }
.hy-event__pill:hover { border-color: var(--hy-ev-gold); color: var(--hy-text); transform: translateY(-2px); }
.hy-event__pill-icon { display: grid; place-items: center; inline-size: 32px; block-size: 32px; border-radius: 50%; background: var(--bg-sunken, var(--bg-app)); color: var(--hy-ev-maroon); }
.hy-event__pill-icon .hy-icon { inline-size: 15px; block-size: 15px; }
.hy-event__pill--gold { border-color: transparent; background: var(--hy-ev-maroon); color: rgb(255 255 255); }
.hy-event__pill--gold .hy-event__pill-icon { background: var(--hy-ev-gold); color: var(--hy-ev-maroon); }
.hy-event__pill--gold:hover { color: rgb(255 255 255); }
.hy-event--ticket .hy-event__map { border-radius: 20px; border: 1px solid color-mix(in srgb, var(--hy-line) 70%, transparent); }
/* The map before it loads: a drawn street grid, a pulsing maroon pin, the place on a raised card. */
.hy-event--ticket .hy-event__map .hb-embed { margin: 0; }
.hy-event--ticket .hy-event__map .hb-embed__facade { position: relative; isolation: isolate; display: grid; place-content: center; justify-items: center; gap: .9rem; color: var(--hy-text); text-decoration: none;
    background: linear-gradient(90deg, color-mix(in srgb, var(--hy-ev-gold) 14%, transparent) 1px, transparent 1px) 0 0 / 46px 46px,
        linear-gradient(0deg, color-mix(in srgb, var(--hy-ev-gold) 14%, transparent) 1px, transparent 1px) 0 0 / 46px 46px,
        linear-gradient(35deg, transparent 47%, color-mix(in srgb, var(--color-primary) 18%, transparent) 47% 53%, transparent 53%) 0 0 / 260px 260px,
        radial-gradient(60% 80% at 50% 50%, color-mix(in srgb, var(--hy-ev-gold) 12%, transparent), transparent 70%), color-mix(in srgb, var(--bg-card) 90%, #e9d9b4); }
.hy-event--ticket .hy-event__map .hb-embed__play { order: -1; display: grid; place-items: center; inline-size: 56px; block-size: 56px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--hy-ev-maroon);
    color: var(--hy-ev-gold); box-shadow: 0 0 0 0 rgb(0 0 0 / .32); animation: hy-ev-pin 2.2s ease-out infinite; }
.hy-event--ticket .hy-event__map .hb-embed__play svg { inline-size: 24px; block-size: 24px; rotate: 45deg; }
@keyframes hy-ev-pin { 0% { box-shadow: 0 0 0 0 rgb(0 0 0 / .32); } 100% { box-shadow: 0 0 0 22px transparent; } }
.hy-event--ticket .hy-event__map .hb-embed__card { display: grid; justify-items: center; gap: .2rem; padding: .7rem 1.1rem; border-radius: 16px; background: var(--bg-card); border: 1px solid color-mix(in srgb, var(--hy-ev-gold) 35%, transparent); box-shadow: 0 14px 30px -20px #000; }
.hy-event--ticket .hy-event__map .hb-embed__facade:hover .hb-embed__card { border-color: var(--hy-ev-gold); }
@media (prefers-reduced-motion: reduce) { .hy-event--ticket .hy-event__map .hb-embed__play { animation: none; } }
/* Registration: a block of its own with a maroon tile and a gold send button. */
.hy-event-reg { border-radius: 22px; border-color: color-mix(in srgb, var(--color-accent, #a98b4f) 28%, transparent); background: radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--color-accent, #a98b4f) 12%, transparent), transparent 60%), var(--bg-card); }
.hy-event-reg .hy-section-title > svg { inline-size: 38px; block-size: 38px; padding: 9px; border-radius: 12px; background: color-mix(in srgb, var(--color-danger, #a8443c) 58%, #2a0a12); color: var(--color-accent, #a98b4f); }
.hy-event-reg .hy-btn--solid { min-block-size: 46px; border-radius: 14px; }
@media (max-width: 767.98px) {
    .hy-event__ticket { grid-template-columns: minmax(0, 1fr); }
    .hy-event__ticket::before, .hy-event__ticket::after { display: none; }
    .hy-event--ticket .hy-event__when { flex-direction: row; align-items: center; padding: 1.1rem; }
    .hy-event--ticket .hy-event__when::after { inset-block: auto -1px; inset-inline: 14px; inline-size: auto; block-size: 2px; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--hy-ev-gold) 70%, transparent) 0 6px, transparent 6px 12px); }
    .hy-event--ticket .hy-event__day { inline-size: 5.2rem; }
    .hy-event--ticket .hy-event__num { font-size: 2.3rem; }
    .hy-event__body { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .hy-event__ticket { animation: none; } }

/* ---- registration and what came after ---------------------------------------------------------------------------------------- */
.hy-event-reg { margin-block: 2rem 0; padding: 1.25rem; border-radius: var(--radius-card, 14px); background: var(--bg-card); border: 1px solid var(--border-light); scroll-margin-block-start: 5rem; }
.hy-event-reg .hy-section-title { display: flex; align-items: center; gap: .5rem; margin-block-start: 0; }
.hy-event-reg__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem 1rem; }
.hy-event-reg__grid .hy-field { display: grid; gap: .3rem; }
.hy-event-reg__grid .hy-field > span { font-weight: 600; font-size: .92rem; }
.hy-event-reg__grid small { color: var(--text-muted); font-weight: 400; }
.hy-event-reg__left { font-weight: 600; color: var(--color-primary); }
.hy-event-reg__left[data-state="waitlist"] { color: var(--color-warning, var(--text-main)); }
.hy-event-reg__note { margin: .9rem 0; color: var(--text-muted); font-size: .88rem; }
.hy-event-reg__status:empty { display: none; }
.hy-event-reg__status { margin: 0 0 .75rem; font-weight: 600; }
.hy-event-reg__status.is-ok { color: var(--color-success, var(--color-primary)); }
.hy-event-reg__status.is-error { color: var(--color-danger, #a8443c); }
.hy-event-reg__closed { margin: 0; color: var(--text-muted); }
.hy-event-media { display: flex; align-items: center; gap: .9rem; margin-block: 1.5rem 0; padding: 1rem 1.2rem; border-radius: var(--radius-card, 14px); background: var(--color-primary-light, var(--bg-hover)); color: inherit; text-decoration: none; }
.hy-event-media > svg { flex: none; inline-size: 2rem; block-size: 2rem; color: var(--color-primary); }
.hy-event-media > span { display: grid; gap: .1rem; }

/* ---- the list, a day, the block ------------------------------------------------------------------------------------------------ */
.hy-events .hy-list-head, .hy-cal .hy-list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.hy-events .hy-list-head__title { display: flex; align-items: center; gap: .5rem; }
.hy-list-head__links { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.hy-events__day { margin-block-end: 1.5rem; }
.hy-events__date { margin: 0 0 .6rem; padding-block-end: .35rem; border-block-end: 1px solid var(--border-light); font-size: 1.05rem; }
.hy-events__list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.hy-event-row { display: flex; gap: .9rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-card, 14px); background: var(--bg-card); border: 1px solid var(--border-light); }
.hy-event-row.is-cancelled .hy-event-row__title a { text-decoration: line-through; }
.hy-event-row__day { display: grid; place-items: center; flex: none; inline-size: 3.4rem; padding: .3rem 0; border-radius: var(--radius-lg, 10px); background: var(--color-primary-light, var(--bg-hover)); color: var(--color-primary); line-height: 1.1; }
.hy-event-row__day > span { font-size: 1.4rem; font-weight: 800; }
.hy-event-row__day small { font-size: .72rem; font-weight: 600; }
.hy-event-row__body { display: grid; gap: .3rem; min-inline-size: 0; }
.hy-event-row__title { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.hy-event-row__title a { color: inherit; text-decoration: none; }
.hy-event-row__title a:hover { color: var(--color-primary); }
.hy-event-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; margin: 0; color: var(--text-muted); font-size: .88rem; }
.hy-event-row__meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.hy-event-row__meta svg { inline-size: 1em; block-size: 1em; }
.hy-events .hy-empty, .hy-cal .hy-empty { display: grid; justify-items: center; gap: .5rem; padding: 2.5rem 1rem; color: var(--text-muted); text-align: center; }
.hy-events .hy-empty svg, .hy-cal .hy-empty svg { inline-size: 2.5rem; block-size: 2.5rem; opacity: .5; }

/* ---- the list as a timeline, or as a grid (2026-10-29) ----------------------------------------------------------------------
   Timeline: a gold rail at the start with a dot for each day, the day as a pill on the rail, its events as raised cards beside it.
   Grid (the list/grid switch, html[data-hy-view="grid"]): the days' events as cards in three columns, the date tile large. */
.hy-events { --hy-ev-maroon: color-mix(in srgb, var(--color-danger, #a8443c) 58%, #2a0a12); --hy-ev-gold: var(--color-accent, #a98b4f); }
.hy-events .hy-list-head--events .hy-list-head__mark { background: linear-gradient(145deg, var(--hy-ev-maroon), color-mix(in srgb, var(--hy-ev-maroon) 70%, #000)); }
.hy-events__tools { justify-content: flex-end; margin-block: 0 .5rem; }
.hy-events__timeline { position: relative; padding-inline-start: 2rem; }
.hy-events__timeline::before { content: ""; position: absolute; inset-block: .6rem 0; inset-inline-start: .55rem; inline-size: 2px; border-radius: 2px;
    background: linear-gradient(180deg, var(--hy-ev-gold), color-mix(in srgb, var(--hy-ev-gold) 15%, transparent)); }
.hy-events__day { position: relative; margin-block-end: 1.4rem; animation: hy-ev-in .5s var(--hy-ease) both; animation-delay: calc(min(var(--i, 0), 10) * 60ms); }
.hy-events__date { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .65rem; padding: .3rem .9rem; border: 0; border-radius: 999px; background: var(--bg-card);
    box-shadow: 0 1px 2px color-mix(in srgb, var(--hy-text) 8%, transparent); color: var(--hy-text); font-size: .9rem; font-weight: 800; }
.hy-events__dot { position: absolute; inset-inline-start: calc(-2rem + .55rem - 6px); inset-block-start: .65rem; inline-size: 14px; block-size: 14px; border-radius: 50%; background: var(--hy-ev-gold);
    box-shadow: 0 0 0 4px var(--bg-app), 0 0 0 6px color-mix(in srgb, var(--hy-ev-gold) 35%, transparent); }
.hy-events__list { gap: .55rem; }
.hy-events .hy-event-row { align-items: center; gap: 1rem; padding: .7rem; border-radius: 18px; border-color: color-mix(in srgb, var(--hy-line) 70%, transparent);
    transition: transform .3s var(--hy-ease), box-shadow .3s var(--hy-ease), border-color .3s var(--hy-ease); }
.hy-events .hy-event-row:hover { transform: translateX(calc(4px * var(--hy-flip))); border-color: color-mix(in srgb, var(--hy-ev-gold) 45%, transparent); box-shadow: 0 14px 28px -22px rgb(0 0 0 / .4); }
.hy-events .hy-event-row__day { inline-size: 3.8rem; padding: .4rem 0 .45rem; border-radius: 14px; background: var(--hy-ev-maroon); color: rgb(255 255 255); }
.hy-events .hy-event-row__day small { order: -1; color: var(--hy-ev-gold); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hy-events .hy-event-row__day { display: flex; flex-direction: column; align-items: center; }
.hy-events .hy-event-row__title { font-size: 1.02rem; font-weight: 800; }
.hy-events .hy-event-row__meta > span { padding: .1rem .55rem; border-radius: 999px; background: var(--bg-sunken, var(--bg-app)); font-size: .8rem; }
/* The grid. */
html[data-hy-view="grid"] .hy-events__timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; padding: 0; }
html[data-hy-view="grid"] .hy-events__timeline::before, html[data-hy-view="grid"] .hy-events__dot { display: none; }
html[data-hy-view="grid"] .hy-events__day { display: contents; }
html[data-hy-view="grid"] .hy-events__date { display: none; }
html[data-hy-view="grid"] .hy-events__list { display: contents; }
html[data-hy-view="grid"] .hy-events .hy-event-row { flex-direction: column; align-items: stretch; block-size: 100%; padding: 1rem; }
html[data-hy-view="grid"] .hy-events .hy-event-row__day { flex-direction: row; justify-content: flex-start; align-self: flex-start; gap: .5rem; inline-size: auto; padding: .35rem .9rem; }
html[data-hy-view="grid"] .hy-events .hy-event-row__day > span { font-size: 1.6rem; }
html[data-hy-view="grid"] .hy-events .hy-event-row:hover { transform: translateY(-3px); }
@media (max-width: 991.98px) { html[data-hy-view="grid"] .hy-events__timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) {
    html[data-hy-view="grid"] .hy-events__timeline { grid-template-columns: minmax(0, 1fr); }
    .hy-events__timeline { padding-inline-start: 1.4rem; }
    .hy-events__timeline::before { inset-inline-start: .3rem; }
    .hy-events__dot { inset-inline-start: calc(-1.4rem + .3rem - 6px); }
}

/* ---- the calendar ---------------------------------------------------------------------------------------------------------------- */
.hy-cal__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-block-end: .75rem; }
.hy-cal__title { flex: 1; min-inline-size: 0; text-align: center; }
.hy-cal__title h1 { margin: 0; font-size: clamp(1.4rem, 1rem + 2vw, 2rem); }
.hy-cal__others { margin: .25rem 0 0; color: var(--text-muted); font-size: .9rem; }
.hy-cal__nav { display: grid; place-items: center; flex: none; inline-size: 2.75rem; block-size: 2.75rem; border-radius: 50%; border: 1px solid var(--border-base); color: inherit; background: var(--bg-card); }
.hy-cal__nav:hover { background: var(--bg-hover); }
.hy-cal__views { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem; margin: 0 0 1rem; }
.hy-cal__count { color: var(--text-muted); font-size: .88rem; }

.hy-cal__grid { inline-size: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 4px; }
.hy-cal__grid th { padding: .35rem 0; color: var(--text-muted); font-size: .82rem; font-weight: 600; text-align: center; }
.hy-cal__cell { vertical-align: top; block-size: 7rem; padding: .35rem; border-radius: var(--radius-md, 8px); background: var(--bg-card); border: 1px solid var(--border-light); }
.hy-cal__cell.is-out { background: transparent; border-style: dashed; opacity: .55; }
.hy-cal__cell.is-today { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.hy-cal__num { display: inline-grid; place-items: center; min-inline-size: 1.8rem; block-size: 1.8rem; border-radius: 50%; color: inherit; font-weight: 700; text-decoration: none; }
.hy-cal__cell.is-today .hy-cal__num { background: var(--color-primary); color: var(--text-inverse, #fff); }
.hy-cal__events { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: .2rem 0 0; padding: 0; list-style: none; min-inline-size: 0; }
.hy-cal__event, .hy-cal__more { min-inline-size: 0; overflow: hidden; }
.hy-cal__cell { overflow: hidden; }
.hy-cal__event a { display: block; overflow: hidden; padding: .1rem .35rem; border-radius: var(--radius-sm, 6px); background: var(--color-primary-light, var(--bg-hover)); color: var(--color-primary-hover, var(--color-primary)); font-size: .78rem; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; text-decoration: none; }
.hy-cal__event a:hover { background: var(--color-primary); color: var(--text-inverse, #fff); }
.hy-cal__event.is-continued a { opacity: .75; }
.hy-cal__event.is-cancelled a { text-decoration: line-through; }
.hy-cal__time { font-weight: 700; }
.hy-cal__more a { font-size: .75rem; color: var(--text-muted); }
.hy-cal__agenda { display: none; }
.hy-cal__agenda-day h2 { margin: 1rem 0 .5rem; font-size: 1rem; }
.hy-cal__agenda-day h2 a { color: inherit; }

.hy-cal__months { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.hy-cal__mini { padding: .75rem; border-radius: var(--radius-card, 14px); background: var(--bg-card); border: 1px solid var(--border-light); }
.hy-cal__mini h2 { margin: 0 0 .4rem; font-size: 1rem; text-align: center; }
.hy-cal__mini h2 a { color: inherit; text-decoration: none; }
.hy-cal__mini table { inline-size: 100%; table-layout: fixed; border-collapse: collapse; text-align: center; font-size: .82rem; }
.hy-cal__mini th { color: var(--text-muted); font-weight: 600; padding-block-end: .2rem; }
.hy-cal__mini td { padding: .15rem 0; }
.hy-cal__mini td.is-busy a { display: inline-grid; place-items: center; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 50%; background: var(--color-primary); color: var(--text-inverse, #fff); font-weight: 700; text-decoration: none; }
.hy-cal__mini td.is-today { font-weight: 800; color: var(--color-primary); }

/* On a phone the weeks become the list of this month's busy days. */
@media (max-width: 767.98px) {
    .hy-event__day { inline-size: 4.5rem; }
    .hy-event__num { font-size: 1.8rem; }
    .hy-cal__cell { block-size: 3rem; padding: .15rem; text-align: center; }
    .hy-cal__grid { border-spacing: 2px; }
    .hy-cal__events, .hy-cal__more { display: none; }
    .hy-cal__cell.has-events .hy-cal__num { box-shadow: inset 0 -3px 0 var(--color-primary); border-radius: 6px; }
    .hy-cal__agenda { display: block; margin-block-start: 1rem; }
}
@media print {
    .hy-event__add, .hy-event-reg, .hy-cal__nav, .hy-cal__views { display: none; }
}

/* =====================================================================
   The month, round 9 (2026-10-29): a deep head band (badge, month large,
   the other calendars, navigation with "today", the view switch and the
   count), the grid as rounded day tiles beside a panel of the coming
   events; each event a pill in one of five palette tones that it keeps
   all month; today ringed in gold; weekends quieter.
   ===================================================================== */
.hy-cal--pro { --cal-gold: var(--color-accent, #a98b4f); --cal-maroon: color-mix(in srgb, var(--color-danger, #a8443c) 58%, #2a0a12); --cal-ground: color-mix(in srgb, var(--color-dark, #2b4732) 72%, #060a08);
    --cal-line: color-mix(in srgb, var(--hy-line) 60%, transparent); }
.hy-cal--pro .hy-cal__head { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "badge title bar" "views views views"; align-items: center;
    gap: .9rem 1.1rem; margin-block-end: 1.1rem; padding: clamp(1.1rem, 2.6vw, 1.7rem); border-radius: 24px; color: rgb(255 255 255); text-align: start;
    background: radial-gradient(45% 120% at 0% 100%, color-mix(in srgb, var(--cal-maroon) 75%, transparent), transparent 68%), radial-gradient(40% 100% at 100% 0%, color-mix(in srgb, var(--cal-gold) 28%, transparent), transparent 62%),
        linear-gradient(160deg, var(--cal-ground), color-mix(in srgb, var(--cal-ground) 68%, #000)); }
.hy-cal--pro .hy-cal__head::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .08; background-size: 38px 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23d9bf86' stroke-width='.7'%3E%3Cpath d='M20 2l18 18-18 18L2 20z'/%3E%3C/g%3E%3C/svg%3E"); }
.hy-cal__badge { grid-area: badge; display: grid; place-items: center; inline-size: 52px; block-size: 52px; border-radius: 16px; background: linear-gradient(145deg, var(--cal-gold), color-mix(in srgb, var(--cal-gold) 68%, #000)); color: var(--cal-ground); }
.hy-cal__badge .hy-icon { inline-size: 24px; block-size: 24px; }
.hy-cal--pro .hy-cal__title { grid-area: title; text-align: start; }
.hy-cal--pro .hy-cal__title h1 { margin: 0; color: rgb(255 255 255); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 800; line-height: 1.15; }
.hy-cal--pro .hy-cal__others { margin: .2rem 0 0; color: color-mix(in srgb, var(--cal-gold) 75%, #fff); font-size: .82rem; font-weight: 600; }
.hy-cal__bar { grid-area: bar; display: flex; align-items: center; gap: .4rem; }
.hy-cal--pro .hy-cal__nav { display: grid; place-items: center; inline-size: 40px; block-size: 40px; border: 1px solid rgb(255 255 255 / .2); border-radius: 50%; background: rgb(255 255 255 / .06); color: rgb(255 255 255); box-shadow: none; }
.hy-cal--pro .hy-cal__nav:hover { background: var(--cal-gold); color: var(--cal-ground); border-color: transparent; }
.hy-cal__pill { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem; border-radius: 999px; color: rgb(255 255 255 / .82); font-size: .8rem; font-weight: 700; text-decoration: none; background: none; }
.hy-cal__pill .hy-icon { inline-size: 15px; block-size: 15px; }
.hy-cal__pill--today { border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .06); color: rgb(255 255 255); }
.hy-cal__pill:hover { background: rgb(255 255 255 / .12); color: rgb(255 255 255); }
.hy-cal--pro .hy-cal__views { grid-area: views; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin: 0; }
.hy-cal__switch { display: inline-flex; gap: .2rem; padding: .25rem; border-radius: 999px; background: rgb(0 0 0 / .22); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.hy-cal__switch .is-on { background: var(--cal-gold); color: var(--cal-ground); }
.hy-cal--pro .hy-cal__count { display: inline-flex; align-items: center; gap: .35rem; color: rgb(255 255 255 / .8); font-size: .8rem; font-weight: 700; }
.hy-cal--pro .hy-cal__count .hy-icon { inline-size: 15px; block-size: 15px; color: var(--cal-gold); }
/* the grid and the panel */
.hy-cal__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem); gap: 1rem; align-items: start; }
.hy-cal__body:not(:has(.hy-cal__side)) { grid-template-columns: minmax(0, 1fr); }
.hy-cal--pro .hy-cal__grid { inline-size: 100%; padding: .7rem; border-spacing: 5px; border-radius: 22px; background: color-mix(in srgb, var(--bg-card) 60%, var(--bg-app)); border: 1px solid var(--cal-line); }
.hy-cal--pro .hy-cal__grid th { padding: .3rem 0 .5rem; color: var(--hy-muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hy-cal--pro .hy-cal__grid th:nth-child(n + 6) { color: color-mix(in srgb, var(--cal-maroon) 70%, var(--hy-muted)); }
.hy-cal--pro .hy-cal__cell { block-size: 7.2rem; padding: .45rem; border: 1px solid var(--cal-line); border-radius: 14px; background: var(--bg-raised, var(--bg-card)); vertical-align: top; transition: border-color .25s ease, box-shadow .25s ease; }
.hy-cal--pro .hy-cal__cell:hover { border-color: color-mix(in srgb, var(--cal-gold) 45%, transparent); box-shadow: 0 10px 22px -18px rgb(0 0 0 / .4); }
.hy-cal--pro tr > .hy-cal__cell:nth-child(n + 6) { background: color-mix(in srgb, var(--bg-raised, var(--bg-card)) 80%, var(--bg-app)); }
.hy-cal--pro .hy-cal__cell.is-out { opacity: .45; background: none; border-style: dashed; }
.hy-cal--pro .hy-cal__num { display: inline-grid; place-items: center; min-inline-size: 1.9rem; block-size: 1.9rem; padding-inline: .3rem; border-radius: 10px; color: var(--hy-text); font-size: .86rem; font-weight: 800; text-decoration: none; background: none; }
.hy-cal--pro .hy-cal__num:hover { background: color-mix(in srgb, var(--cal-gold) 14%, transparent); }
.hy-cal--pro .hy-cal__cell.is-today { border-color: var(--cal-gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cal-gold) 30%, transparent); }
.hy-cal--pro .hy-cal__cell.is-today .hy-cal__num { background: var(--cal-gold); color: var(--cal-ground); border-radius: 50%; inline-size: 1.9rem; }
.hy-cal--pro .hy-cal__events { display: grid; gap: .25rem; margin: .3rem 0 0; padding: 0; list-style: none; }
.hy-cal--pro .hy-cal__event a { display: flex; align-items: center; gap: .3rem; overflow: hidden; padding: .22rem .45rem; border-radius: 8px; border-inline-start: 3px solid var(--ev); background: color-mix(in srgb, var(--ev) 13%, transparent);
    color: var(--hy-text); font-size: .7rem; font-weight: 600; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.hy-cal--pro .hy-cal__event a:hover { background: color-mix(in srgb, var(--ev) 24%, transparent); }
.hy-cal--pro .hy-cal__time { flex: none; color: color-mix(in srgb, var(--ev) 80%, var(--hy-text)); font-weight: 800; }
.hy-cal--pro .hy-cal__name { overflow: hidden; text-overflow: ellipsis; }
.hy-cal--pro .hy-cal__event.is-continued a { border-radius: 0 8px 8px 0; opacity: .8; }
.hy-cal--pro .hy-cal__event.is-cancelled .hy-cal__name { text-decoration: line-through; opacity: .7; }
.hy-cal__event--t0, .hy-cal__next-item.hy-cal__event--t0 { --ev: var(--color-primary, #46704f); }
.hy-cal__event--t1, .hy-cal__next-item.hy-cal__event--t1 { --ev: color-mix(in srgb, var(--color-accent, #a98b4f) 92%, #000); }
.hy-cal__event--t2, .hy-cal__next-item.hy-cal__event--t2 { --ev: color-mix(in srgb, var(--color-danger, #a8443c) 75%, #2a0a12); }
.hy-cal__event--t3, .hy-cal__next-item.hy-cal__event--t3 { --ev: var(--color-info, #3b6ea5); }
.hy-cal__event--t4, .hy-cal__next-item.hy-cal__event--t4 { --ev: color-mix(in srgb, var(--color-dark, #2b4732) 80%, #000); }
.hy-cal--pro .hy-cal__more a { display: inline-block; padding: .1rem .45rem; border-radius: 999px; background: color-mix(in srgb, var(--hy-text) 8%, transparent); color: var(--hy-muted); font-size: .66rem; font-weight: 700; text-decoration: none; }
/* the panel of coming events */
.hy-cal__side { position: sticky; inset-block-start: calc(var(--hy-header-sticky, 0px) + 1rem); display: grid; gap: .7rem; padding: .9rem; border-radius: 22px; background: var(--bg-raised, var(--bg-card)); border: 1px solid var(--cal-line); }
.hy-cal__side-title { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: .98rem; font-weight: 800; }
.hy-cal__side-title .hy-icon { inline-size: 32px; block-size: 32px; padding: 7px; border-radius: 10px; background: color-mix(in srgb, var(--cal-gold) 14%, transparent); color: color-mix(in srgb, var(--cal-gold) 85%, #000); }
.hy-cal__next { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.hy-cal__next-item { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem; padding: .5rem; border-radius: 14px; background: color-mix(in srgb, var(--ev) 7%, transparent); }
.hy-cal__next-item:hover { background: color-mix(in srgb, var(--ev) 14%, transparent); }
.hy-cal__tile { display: grid; place-items: center; align-content: center; inline-size: 2.9rem; block-size: 2.9rem; border-radius: 12px; background: var(--ev); color: rgb(255 255 255); line-height: 1; }
.hy-cal__tile small { color: rgb(255 255 255 / .8); font-size: .56rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hy-cal__tile b { margin-block-start: .1rem; font-size: 1.15rem; font-weight: 800; }
.hy-cal__next-text { display: grid; gap: .15rem; min-inline-size: 0; }
.hy-cal__next-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; color: var(--hy-text); font-size: .84rem; font-weight: 800; line-height: 1.35; text-decoration: none; background: none; }
.hy-cal__next-title::after { content: ""; position: absolute; inset: 0; }
.hy-cal__next-item.is-cancelled .hy-cal__next-title { text-decoration: line-through; }
.hy-cal__next-meta { display: flex; flex-wrap: wrap; gap: .1rem .6rem; color: var(--hy-muted); font-size: .7rem; }
.hy-cal__next-meta span { display: inline-flex; align-items: center; gap: .2rem; }
.hy-cal__next-meta .hy-icon { inline-size: 12px; block-size: 12px; color: var(--ev); }
.hy-cal__side-all { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; padding: .5rem; border-radius: 12px; background: var(--cal-ground); color: rgb(255 255 255); font-size: .8rem; font-weight: 700; text-decoration: none; }
.hy-cal__side-all:hover { background: var(--cal-gold); color: var(--cal-ground); }
.hy-cal__side-all .hy-icon { inline-size: 15px; block-size: 15px; }
@media (max-width: 1199.98px) { .hy-cal__body { grid-template-columns: minmax(0, 1fr); } .hy-cal__side { position: static; } }
@media (max-width: 767.98px) {
    .hy-cal--pro .hy-cal__head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "badge title" "bar bar" "views views"; }
    .hy-cal__bar { justify-content: space-between; }
    .hy-cal--pro .hy-cal__grid { padding: .35rem; border-spacing: 3px; }
    .hy-cal--pro .hy-cal__cell { block-size: 2.9rem; padding: .15rem; border-radius: 10px; text-align: center; }
    .hy-cal--pro .hy-cal__cell.has-events .hy-cal__num { box-shadow: inset 0 -3px 0 var(--cal-gold); }
}
.hy-cal--pro .hy-cal__event a { display: grid; gap: 0; white-space: normal; }
.hy-cal--pro .hy-cal__time { font-size: .62rem; }
.hy-cal--pro .hy-cal__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; white-space: normal; }
