/* H2T Calendar front end. Scoped under .h2t-cal. Colours, fonts, spacing come from the health2tech_v2 theme tokens (--violet-*, --ink-*,
   --font-display/-body/-mono, --space-*, --radius-*), always with a literal fallback so the calendar survives another theme. */
.h2t-cal { position: relative; isolation: isolate; padding-top: 20px; padding-bottom: 40px; font-family: var(--font-body, inherit); color: var(--ink-900, #12102b); --h2t-accent: var(--violet-600, #5563e6); --h2t-radius: 24px; min-width: 0; box-sizing: border-box; } /* keep the theme's .container max-width 1230px + margin auto */
/* flex/grid children must be allowed to shrink below their content, or the page gets wider than a phone screen */
.h2t-filters, .h2t-select, .h2t-toolbar, .h2t-view, .h2t-card, .h2t-card__main { min-width: 0; }
.h2t-select select { min-width: 0; width: 100%; }
/* the v2 theme pads every <section> (30px, 15px on phones); our day groups are sections too */
.h2t-cal section { padding: 0; }
/* side gutters come from the theme's .container (48px, 16px on phones): only top/bottom padding is set above */
.h2t-cal a { color: inherit; }

/* Light page, no dark hero behind the header: the v2 theme gives its own light pages (events category, single) a solid
   white header with dark nav by body class; ours are not on its list, so the same look is repeated here for
   body.h2t-calendar-page. Cosmetic only: if the theme's header markup changes, these rules simply stop matching. */
body.h2t-calendar-page .header_wrap { background-color: var(--base-white, #fff); }
body.h2t-calendar-page .header .logo img { filter: none; }
body.h2t-calendar-page .header_nav .c-btn--text, body.h2t-calendar-page .header_nav .c-btn--text:visited { color: var(--ink-900, #12102b); }
body.h2t-calendar-page .header_nav .c-btn--text:hover:not(:disabled):not(.is-disabled) { color: var(--violet-600, #5563e6); opacity: 1; }
body.h2t-calendar-page .header_nav .c-btn--text[aria-current="page"] { color: var(--violet-700, #5620d6); font-weight: 600; opacity: 1; }
body.h2t-calendar-page .wrapper { height: auto; } /* lets the sticky header travel the whole page (same fix as the theme's light pages) */
@media (max-width: 992px) { body.h2t-calendar-page .header_burger { background: var(--gradient-brand, #5563e6); border-color: var(--overlay-on-inverse, rgba(255, 255, 255, .16)); color: var(--base-white, #fff); } }

/* hero (block 1): same metrics as the theme's events hero (t-display-lg / t-body-xl / t-label-upper), own classes */
.h2t-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-8, 32px); max-width: 902px; margin: 0 auto; padding: var(--space-12, 48px) 0 var(--space-8, 32px); text-align: center; }
/* the soft violet glow behind the heading (Figma: a large blurred circle, barely visible on the light page) */
.h2t-hero::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * var(--space-24, 96px)); left: 50%; width: min(1140px, 100vw); height: 620px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 30%, rgba(85, 99, 230, .14) 0%, rgba(85, 99, 230, 0) 100%); pointer-events: none; }
.h2t-hero__eyebrow { display: block; margin: 0; text-wrap: balance; font-family: var(--font-mono, monospace); font-weight: 700; font-size: 14px; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-600, #5563e6); }
.h2t-hero__dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 14px; margin-right: var(--space-2, 8px); vertical-align: -1px; } /* inline: a long eyebrow wraps with the dot on its first line */
.h2t-hero__dot::before { content: ""; width: 9px; height: 9px; border-radius: 4.5px; background: var(--cyan-600, #19d3c5); animation: h2t-pulse 2s ease-in-out infinite; }
@keyframes h2t-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--cyan-600, #19d3c5); } 50% { opacity: .7; box-shadow: 0 0 16px var(--cyan-600, #19d3c5); } }
@media (prefers-reduced-motion: reduce) { .h2t-hero__dot::before { animation: none; } }
.h2t-hero__title { display: flex; flex-direction: column; align-items: center; margin: calc(-1 * var(--space-2, 8px)) 0 0; font-family: var(--font-display, inherit); font-weight: 700; font-size: clamp(44px, 28px + 4.2vw, 82px); line-height: 1.1; letter-spacing: -.03em; color: var(--ink-900, #12102b); }
.h2t-hero__line { display: block; }
.h2t-hero__accent { font-weight: 800; background: var(--gradient-brand, linear-gradient(118deg, #4257e8 8.13%, #5563e6 43.3%, #7408f5 91.87%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.h2t-hero__text { max-width: 700px; margin: 0; font-size: 21px; line-height: 1.6; color: var(--ink-600, #4a4763); }
@media (max-width: 576px) {
  .h2t-hero { gap: 14px; padding: var(--space-8, 32px) 0 var(--space-6, 24px); }
  .h2t-hero__title { margin: 0; font-size: 40px; }
  .h2t-hero__accent { font-weight: 700; }
  .h2t-hero__text { align-self: stretch; font-size: 16px; line-height: 1.3; }
}
/* block 2: the centered Calendar | List toggle */
.h2t-toolbar { display: flex; justify-content: center; margin: 0 0 var(--space-6, 24px); }
/* own buttons and segmented control (no dependency on theme classes) */
.h2t-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2, 8px); padding: 10px 20px; border: 1px solid transparent; border-radius: var(--radius-full, 9999px); font: inherit; font-size: 14px; font-weight: 600; line-height: 20px; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, box-shadow .2s; }
.h2t-btn:focus-visible { outline: none; box-shadow: var(--shadow-focus, 0 0 0 3px rgba(106, 48, 240, .32)); }
.h2t-btn--primary { background: var(--gradient-brand, #5563e6); color: var(--base-white, #fff); }
.h2t-btn--primary:hover { box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(44, 16, 112, .2)); }
.h2t-btn--secondary { background: var(--base-white, #fff); border-color: var(--ink-200, #e9e7f2); color: var(--ink-900, #12102b); }
.h2t-btn--secondary:hover { border-color: var(--violet-600, #5563e6); color: var(--violet-600, #5563e6); }
.h2t-btn--text { background: transparent; color: var(--violet-600, #5563e6); padding-left: 8px; padding-right: 8px; }
/* the theme's a:visited would put violet on the violet gradient (Register in the modal); the modal sits outside .h2t-cal */
.h2t-cal a.h2t-btn--primary, .h2t-cal a.h2t-btn--primary:visited, .h2t-modal a.h2t-btn--primary, .h2t-modal a.h2t-btn--primary:visited { color: var(--base-white, #fff); }
.h2t-seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--base-white, #fff); border-radius: var(--radius-full, 9999px); box-shadow: var(--shadow-card, 0 2px 8px rgba(44, 16, 112, .1)); }
.h2t-seg__item { min-width: 100px; padding: 8px 24px; border-radius: var(--radius-full, 9999px); font-size: 14px; font-weight: 600; line-height: 20px; text-align: center; text-decoration: none; color: var(--ink-900, #12102b); transition: background .2s, color .2s; }
.h2t-seg__item:hover { color: var(--violet-600, #5563e6); }
.h2t-cal .h2t-seg__item.is-active { background: var(--gradient-brand, #5563e6); color: var(--base-white, #fff); }

/* block 3: the bar — month navigation + title on the left, filter pills on the right, one white card */
.h2t-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4, 16px) var(--space-6, 24px); padding: var(--space-4, 16px) var(--space-6, 24px); background: var(--base-white, #fff); border: 1px solid var(--ink-200, #e9e7f2); border-radius: var(--radius-lg, 24px); box-shadow: var(--shadow-card, 0 2px 8px rgba(44, 16, 112, .1)); }
.h2t-bar__nav { display: flex; align-items: center; gap: var(--space-4, 16px); min-width: 0; }
.h2t-bar__title { margin: 0; font-family: var(--font-display, inherit); font-weight: 700; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink-900, #12102b); white-space: nowrap; }
.h2t-bar__arrow { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--violet-600, #5563e6); color: var(--base-white, #fff); transition: background .2s, box-shadow .2s; }
.h2t-cal a.h2t-bar__arrow { color: var(--base-white, #fff); }
a.h2t-bar__arrow:hover { background: var(--violet-700, #5620d6); }
a.h2t-bar__arrow:focus-visible { outline: none; box-shadow: var(--shadow-focus, 0 0 0 3px rgba(106, 48, 240, .32)); }
.h2t-bar__arrow.is-disabled { background: var(--violet-200, #d8cdff); cursor: default; }

/* filter pills (City / Topics / Format): white, violet outline; the city one is cyan with a pin */
.h2t-filters { display: flex; flex-wrap: wrap; gap: var(--space-3, 12px); align-items: center; margin: 0; }
.h2t-select { position: relative; display: inline-flex; }
/* the pill: the native <select> before JS runs, the button afterwards */
.h2t-select select, .h2t-select__btn { appearance: none; -webkit-appearance: none; font: inherit; font-size: 14px; font-weight: 500; line-height: 20px; color: var(--ink-900, #12102b); padding: 8px 40px 8px 16px; border: 1px solid var(--violet-600, #5563e6); border-radius: var(--radius-full, 9999px); background: var(--base-white, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2312102b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center; cursor: pointer; max-width: 240px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: border-color .2s, box-shadow .2s; }
.h2t-select--city select, .h2t-select--city .h2t-select__btn { border-color: var(--cyan-600, #19d3c5); padding-left: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%2319d3c5' stroke-width='1.4'%3E%3Cpath d='M8 14.5s4.75-4.25 4.75-8a4.75 4.75 0 1 0-9.5 0c0 3.75 4.75 8 4.75 8Z'/%3E%3Ccircle cx='8' cy='6.5' r='1.75'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2312102b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat, no-repeat; background-position: left 16px center, right 14px center; }
.h2t-select select:hover, .h2t-select__btn:hover, .h2t-select.is-open .h2t-select__btn { box-shadow: var(--shadow-card, 0 2px 8px rgba(44, 16, 112, .1)); }
.h2t-select select:focus-visible, .h2t-select__btn:focus-visible { outline: none; box-shadow: var(--shadow-focus, 0 0 0 3px rgba(106, 48, 240, .32)); }
.h2t-select.is-active select, .h2t-select.is-active .h2t-select__btn { font-weight: 600; }
.h2t-select.is-enhanced select { display: none; }
.h2t-select__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 100%; width: max-content; max-width: min(320px, 90vw); max-height: 320px; overflow-y: auto; margin: 0; padding: 8px; list-style: none; background: var(--base-white, #fff); border-radius: var(--radius-md, 12px); box-shadow: var(--shadow-floating, 0 16px 40px rgba(44, 16, 112, .2)); }
.h2t-select__menu[hidden], .h2t-select__menu [hidden] { display: none; } /* also options and country headings hidden by the City search */
.h2t-select__list { margin: 0; padding: 0; list-style: none; }
.h2t-select__search { position: sticky; top: -8px; z-index: 1; margin: -8px -8px 4px; padding: 8px; background: var(--base-white, #fff); }
.h2t-select__search input { width: 100%; box-sizing: border-box; padding: 8px 12px; border: 1px solid var(--ink-200, #e9e7f2); border-radius: 8px; font: inherit; font-size: 14px; color: var(--ink-900, #12102b); background: var(--base-white, #fff); }
.h2t-select__search input:focus { outline: none; border-color: var(--violet-600, #5563e6); }
.h2t-select__menu [role="option"] { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--ink-900, #12102b); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h2t-select__menu [role="option"]:hover, .h2t-select__menu [role="option"]:focus { background: var(--violet-50, #f4f1ff); outline: none; }
.h2t-select__menu [aria-selected="true"] { color: var(--violet-600, #5563e6); font-weight: 600; }
.h2t-select__group { padding: 10px 12px 4px; font-family: var(--font-mono, monospace); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-400, #9a97ad); }
.h2t-filters__apply { padding: 8px 20px; }
.h2t-filters__apply { display: none; } /* filters submit on change; a <noscript> style shows it without JS */
.h2t-filters__reset { padding-top: 8px; padding-bottom: 8px; }

/* block 4: meta row */
.h2t-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2, 8px) var(--space-6, 24px); margin: var(--space-6, 24px) 0 var(--space-4, 16px); padding: 0 4px; font-size: 14px; line-height: 20px; }
.h2t-meta p { margin: 0; }
.h2t-meta__count { color: var(--ink-900, #12102b); font-weight: 500; }
.h2t-meta__legend { display: inline-flex; align-items: center; gap: var(--space-2, 8px); color: var(--ink-600, #4a4763); }
.h2t-meta__swatch { width: 10px; height: 10px; border-radius: 2.5px; background: var(--cyan-600, #19d3c5); }
.h2t-meta__tz { margin-left: auto !important; color: var(--ink-900, #12102b); }

@media (max-width: 576px) {
  .h2t-bar { padding: var(--space-4, 16px); }
  .h2t-bar__title { font-size: 24px; }
  .h2t-select select, .h2t-select__btn { width: 100%; max-width: none; }
  .h2t-select__menu { width: 100%; max-width: none; left: 0; right: auto; }
  .h2t-meta__tz { margin-left: 0 !important; }
}

/* list view of a month (the redesign's "List"): one white card, rows grouped by day */
.h2t-agenda { background: var(--base-white, #fff); border: 1px solid var(--ink-200, #e9e7f2); border-radius: var(--radius-lg, 24px); box-shadow: var(--shadow-card, 0 2px 8px rgba(44, 16, 112, .1)); overflow: hidden; }
.h2t-agenda__day { display: grid; grid-template-columns: 112px minmax(0, 1fr); scroll-margin-top: 96px; }
.h2t-agenda__day + .h2t-agenda__day { border-top: 1px solid var(--ink-200, #e9e7f2); }
.h2t-agenda__date { margin: 0; padding: 18px 16px 18px 20px; border-right: 1px solid var(--ink-200, #e9e7f2); }
.h2t-agenda__date time { display: flex; flex-direction: column; gap: 2px; }
.h2t-agenda__num { font-family: var(--font-display, inherit); font-size: 24px; font-weight: 700; line-height: 1.1; color: var(--ink-900, #12102b); }
.h2t-agenda__dow { font-family: var(--font-mono, monospace); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400, #9a97ad); }
.h2t-agenda__day.is-tbd .h2t-agenda__dow { line-height: 1.4; }
/* today, as in the grid: the day number in a cyan ring */
.h2t-agenda__day.is-today .h2t-agenda__num { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; min-width: 40px; height: 40px; margin: -6px 0 0 -8px; padding: 0 6px; border: 2px solid var(--cyan-600, #19d3c5); border-radius: 20px; box-sizing: border-box; }
.h2t-agenda__day.is-today .h2t-agenda__dow { color: var(--cyan-800, #19a99d); }
.h2t-agenda__rows { margin: 0; padding: 0; list-style: none; min-width: 0; }
.h2t-agenda__rows li + li { border-top: 1px solid var(--ink-200, #e9e7f2); }
.h2t-agenda__row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto 40px; align-items: center; gap: var(--space-4, 16px); padding: 16px 12px 16px 20px; text-decoration: none; color: var(--ink-900, #12102b); transition: background .2s; }
.h2t-agenda__row:hover { background: var(--violet-50, #f4f1ff); }
.h2t-agenda__row:focus-visible { outline: none; box-shadow: inset var(--shadow-focus, 0 0 0 3px rgba(106, 48, 240, .32)); }
.h2t-agenda__row.is-h2t { background: var(--cyan-100, rgba(25, 211, 197, .1)); }
.h2t-agenda__time { display: flex; flex-direction: column; gap: 4px; align-self: start; padding-top: 2px; }
.h2t-agenda__clock { font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-600, #5563e6); white-space: nowrap; }
.h2t-agenda__row.is-h2t .h2t-agenda__clock { color: var(--cyan-800, #19a99d); }
.h2t-agenda__gmt { font-size: 12px; color: var(--ink-400, #9a97ad); }
.h2t-agenda__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.h2t-agenda__title { font-family: var(--font-display, inherit); font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.h2t-agenda__meta { font-size: 13px; line-height: 1.4; color: var(--ink-400, #9a97ad); }
.h2t-agenda__city { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--ink-200, #e9e7f2); border-radius: var(--radius-full, 9999px); background: var(--base-white, #fff); font-size: 12px; font-weight: 600; line-height: 18px; white-space: nowrap; }
.h2t-agenda__city svg { color: var(--violet-600, #5563e6); }
.h2t-agenda__go { display: inline-flex; justify-content: center; color: var(--violet-600, #5563e6); transition: transform .2s; }
.h2t-agenda__row:hover .h2t-agenda__go { transform: translateX(3px); }
.h2t-agenda__day.is-past .h2t-agenda__date, .h2t-agenda__day.is-past .h2t-agenda__row { opacity: .55; }
@media (max-width: 767px) {
  .h2t-agenda__day { grid-template-columns: 64px minmax(0, 1fr); }
  .h2t-agenda__date { padding: 16px 8px 16px 14px; }
  .h2t-agenda__num { font-size: 20px; }
  .h2t-agenda__row { grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 10px; padding: 14px 10px 14px 14px; }
  .h2t-agenda__time { flex-direction: row; gap: 8px; padding: 0; grid-column: 1; }
  .h2t-agenda__main { grid-column: 1; }
  .h2t-agenda__city { grid-column: 1; justify-self: start; }
  .h2t-agenda__go { grid-column: 2; grid-row: 1 / span 3; }
}

/* list */
.h2t-day { margin: 0 0 28px; }
.h2t-day__title { font-family: var(--font-display, inherit); font-size: 22px; margin: 0 0 12px; padding: 0 0 8px; border-bottom: 1px solid var(--ink-200, #e9e7f2); }
.h2t-day--vague .h2t-day__title { color: var(--ink-400, #9a97ad); }
.h2t-day__events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 992px) { .h2t-day__events { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .h2t-day__events { grid-template-columns: minmax(0, 1fr); } }

/* card (spec 5.2: date + city as a coloured plate, title as the visual anchor, image optional) */
.h2t-card { display: flex; flex-direction: column; background: var(--base-white, #fff); border-radius: var(--h2t-radius); overflow: hidden; border: 1px solid var(--ink-200, #e9e7f2); transition: box-shadow .2s, transform .2s; }
.h2t-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.h2t-card.is-h2t { border-color: var(--violet-600, #5563e6); }
.h2t-card__plate { display: flex; justify-content: space-between; gap: 8px; padding: 10px 18px; background: var(--h2t-accent); color: #fff; font-size: 14px; font-family: var(--font-display, inherit); }
.h2t-card__city { opacity: .9; }
.h2t-card__body { display: flex; gap: 14px; padding: 16px 18px 18px; flex: 1; }
.h2t-card__img { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; flex: none; }
.h2t-card__main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.h2t-card__time { font-size: 13px; color: var(--ink-400, #9a97ad); }
.h2t-card__title { font-family: var(--font-display, inherit); font-size: 18px; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.h2t-card__title a { text-decoration: none; color: var(--ink-900, #12102b); }
.h2t-card__title a:hover { color: var(--violet-600, #5563e6); }
.h2t-card__meta { margin: 0; font-size: 14px; color: var(--ink-400, #9a97ad); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2t-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.h2t-badge { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 9px; border-radius: 10px; background: var(--base-page, #f9f9f9); color: var(--ink-900, #12102b); }
.h2t-badge.is-free { background: #e6f6ee; color: #0b6b3a; }
.h2t-badge.is-paid { background: #fff4e5; color: #8a4b00; }
.h2t-badge.is-access { background: #eef0ff; color: #3b46b8; }
.h2t-badge.is-warn { background: #fdecec; color: #a12727; }
.h2t-badge.is-h2t { background: var(--violet-600, #5563e6); color: #fff; }

.h2t-empty { text-align: center; color: var(--ink-400, #9a97ad); }
.h2t-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 8px 0 0; }
.h2t-pagination__info { color: var(--ink-400, #9a97ad); font-size: 14px; }

/* blocks 5–6: grid + "Selected day" panel side by side */
.h2t-month__body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-6, 24px); align-items: stretch; }
.h2t-grid__head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 0 0 var(--space-2, 8px); font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400, #9a97ad); }
.h2t-grid__head > div { padding: 0 10px; }
/* a week: 7 columns; rows = day number, 3 event lanes, "+N more", filler. Cells span every row, chips sit on top. */
.h2t-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 34px repeat(3, 22px) 18px minmax(6px, 1fr); row-gap: 3px; column-gap: 6px; min-height: 135px; margin: 0 0 6px; }
.h2t-cell { grid-row: 1 / -1; display: block; padding: 8px 10px; background: var(--base-white, #fff); border: 1px solid var(--ink-200, #e9e7f2); border-radius: 10px; text-decoration: none; color: var(--ink-900, #12102b); transition: border-color .2s, box-shadow .2s; }
.h2t-cell__num { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; margin: -2px 0 0 -4px; padding: 0 3px; border-radius: 11px; font-family: var(--font-display, inherit); font-size: 13px; font-weight: 700; line-height: 1; box-sizing: border-box; }
a.h2t-cell { cursor: pointer; }
a.h2t-cell:hover { border-color: var(--violet-200, #d8cdff); box-shadow: var(--shadow-card, 0 2px 8px rgba(44, 16, 112, .1)); }
a.h2t-cell:focus-visible { outline: none; box-shadow: var(--shadow-focus, 0 0 0 3px rgba(106, 48, 240, .32)); }
.h2t-cell.is-past .h2t-cell__num, .h2t-cell.is-other .h2t-cell__num { color: var(--ink-400, #9a97ad); }
.h2t-cell.is-other { background: transparent; border-color: var(--ink-200, #e9e7f2); opacity: .6; }
.h2t-cell.is-today .h2t-cell__num { border: 2px solid var(--cyan-600, #19d3c5); color: var(--ink-900, #12102b); }
.h2t-cell.is-selected { border: 2px solid var(--violet-600, #5563e6); padding: 7px 9px; }
.h2t-cell.is-selected .h2t-cell__num { background: var(--violet-600, #5563e6); border-color: var(--violet-600, #5563e6); color: var(--base-white, #fff); }
.h2t-chip { align-self: center; margin: 0 8px; padding: 2px 6px; border-radius: 4px; background: var(--violet-100, #eae4ff); color: var(--ink-900, #12102b); font-size: 12px; font-weight: 500; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.h2t-chip.is-h2t { background: var(--cyan-200, rgba(25, 211, 197, .2)); color: var(--cyan-800, #19a99d); }
.h2t-chip.is-past { opacity: .55; }
.h2t-cell__more { align-self: center; margin: 0 10px; font-size: 11px; font-weight: 600; line-height: 1; color: var(--violet-600, #5563e6); pointer-events: none; }
.h2t-cell__more.is-past { opacity: .55; }

/* block 6: the day panel — a white card as tall as the grid, its list scrolls */
.h2t-daypanel { position: relative; min-height: 420px; }
.h2t-daypanel[hidden] { display: none; }
.h2t-month__body:has(.h2t-daypanel[hidden]) { grid-template-columns: minmax(0, 1fr); }
.h2t-daypanel__inner { position: absolute; inset: 0; display: flex; flex-direction: column; padding: var(--space-6, 24px) var(--space-4, 16px) var(--space-4, 16px) var(--space-6, 24px); background: var(--base-white, #fff); border: 1px solid var(--ink-200, #e9e7f2); border-radius: var(--radius-lg, 24px); box-shadow: var(--shadow-card, 0 2px 8px rgba(44, 16, 112, .1)); }
.h2t-daypanel__eyebrow { margin: 0 0 6px; font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-600, #5563e6); }
.h2t-daypanel__day { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.h2t-daypanel__day[hidden] { display: none; }
.h2t-daypanel__title { margin: 0 var(--space-2, 8px) var(--space-3, 12px) 0; padding: 0 0 var(--space-3, 12px); border-bottom: 1px solid var(--ink-200, #e9e7f2); font-family: var(--font-display, inherit); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; color: var(--ink-900, #12102b); }
.h2t-daypanel__list { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-3, 12px); padding: 0 var(--space-2, 8px) var(--space-2, 8px) 0; }
.h2t-daypanel__empty { margin: var(--space-6, 24px) 0; text-align: center; color: var(--ink-400, #9a97ad); }
.h2t-dcard { padding: var(--space-4, 16px); border: 1px solid var(--ink-200, #e9e7f2); border-radius: var(--radius-md, 12px) var(--radius-md, 12px); background: var(--base-white, #fff); }
.h2t-dcard.is-h2t { background: var(--cyan-100, rgba(25, 211, 197, .1)); border-color: var(--cyan-200, rgba(25, 211, 197, .2)); }
.h2t-dcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.h2t-dcard__tags li { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--ink-200, #e9e7f2); border-radius: var(--radius-full, 9999px); background: var(--base-white, #fff); font-size: 12px; line-height: 18px; color: var(--ink-900, #12102b); }
.h2t-dcard__tags li.is-city { font-weight: 600; }
/* the format badge (Conference, Meetup…): violet tint, like the cyan "Health2Tech event" chip on the event page */
.h2t-dcard__tags li.is-format, .h2t-event__tags li.is-format { border-color: var(--violet-200, #d8cdff); background: var(--violet-100, #eae4ff); color: var(--violet-700, #5620d6); font-weight: 600; }
.h2t-dcard__tags svg { color: var(--violet-600, #5563e6); }
.h2t-dcard__title { margin: 0 0 10px; font-family: var(--font-display, inherit); font-size: 16px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--ink-900, #12102b); }
.h2t-dcard__row { display: flex; align-items: center; gap: var(--space-2, 8px); margin: 0 0 4px; font-size: 14px; line-height: 20px; color: var(--ink-900, #12102b); }
.h2t-dcard__row svg { flex: none; color: var(--ink-400, #9a97ad); }
.h2t-dcard__gmt { color: var(--ink-400, #9a97ad); }
.h2t-dcard__status { display: inline-block; margin: 0 0 8px; padding: 0 8px; border-radius: 4px; background: #fdecec; color: var(--feedback-error, #e5484d); font-size: 12px; font-weight: 600; line-height: 20px; }
.h2t-dcard__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3, 12px); margin-top: var(--space-3, 12px); padding-top: var(--space-3, 12px); border-top: 1px solid var(--ink-200, #e9e7f2); font-size: 14px; line-height: 20px; }
.h2t-dcard__by { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-400, #9a97ad); }
.h2t-dcard__by strong { color: var(--ink-900, #12102b); font-weight: 600; }
.h2t-cal a.h2t-dcard__more { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--violet-600, #5563e6); font-weight: 600; text-decoration: none; }
.h2t-cal a.h2t-dcard__more:hover { color: var(--violet-700, #5620d6); }

@media (max-width: 1180px) {
  .h2t-month__body { grid-template-columns: minmax(0, 1fr); }
  .h2t-daypanel { min-height: 0; }
  .h2t-daypanel__inner { position: static; max-height: 640px; }
}

/* weekday names: "Mon" on wide screens, "M" on phones */
.h2t-dow--short { display: none; }
.h2t-cell__dots { display: none; }

/* ---------- phones (block 11): compact grid with dots, day cards in the list ---------- */
.h2t-agenda-m { display: none; }
.h2t-agenda-m__head { display: flex; align-items: baseline; gap: var(--space-3, 12px); margin: var(--space-6, 24px) 0 var(--space-3, 12px); font-family: var(--font-display, inherit); font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--ink-900, #12102b); }
.h2t-agenda-m__today { align-self: center; padding: 3px 8px; border-radius: var(--radius-full, 9999px); background: rgba(25, 211, 197, .2); color: var(--cyan-800, #19a99d); font-family: var(--font-mono, monospace); font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.h2t-agenda-m__head span { font-family: var(--font-mono, monospace); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400, #9a97ad); }
.h2t-agenda-m__day { display: flex; flex-direction: column; gap: var(--space-3, 12px); }
.h2t-agenda-m__day.is-past { opacity: .6; }
.h2t-agenda-m__day:first-child .h2t-agenda-m__head { margin-top: 0; }

@media (max-width: 767px) {
  /* bar: ‹ month › on one row, City + Topics on the next (no Filters sheet since 2026-10-21) */
  .h2t-bar { flex-direction: column; align-items: stretch; gap: var(--space-3, 12px); padding: var(--space-4, 16px); }
  .h2t-bar__nav { justify-content: space-between; }
  .h2t-bar__title { font-size: 22px; }
  /* three pills since 0.4.0: City + Format on one row, Topics alone on the next (half-width pills would cut every label) */
  .h2t-filters { flex-wrap: wrap; width: auto; }
  .h2t-filters > .h2t-select { flex: 1 1 calc(50% - 6px); min-width: 0; width: auto; }
  /* half-width pills, wider lists: long topic names and the search placeholder are not cut at ~156px; Topics opens to the left */
  .h2t-filters .h2t-select__menu { width: min(320px, calc(100vw - 64px)); max-width: none; }
  .h2t-filters > .h2t-select--topic .h2t-select__menu { left: auto; right: 0; }
  .h2t-filters__reset { display: none; } /* no room on the row; topics are unticked in their own list */
  /* meta: "28 events" + timezone; the legend is hidden */
  .h2t-meta { margin: var(--space-4, 16px) 0 var(--space-3, 12px); font-size: 13px; }
  .h2t-meta__where, .h2t-meta__legend { display: none; }
  .h2t-meta__tz { margin-left: auto !important; color: var(--ink-600, #4a4763); }
  /* compact grid: square cells, the number and up to 3 dots; chips and bars hidden */
  .h2t-grid__head { gap: 4px; font-family: var(--font-body, inherit); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; text-align: center; }
  .h2t-grid__head > div { padding: 0; }
  .h2t-dow--long { display: none; }
  .h2t-dow--short { display: inline; }
  .h2t-week { grid-template-rows: auto; min-height: 0; column-gap: 4px; margin: 0 0 4px; }
  .h2t-chip, .h2t-cell__more { display: none; }
  .h2t-cell { grid-row: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; aspect-ratio: 1; padding: 6px 2px; border: 0; border-radius: 8px; background: transparent; }
  .h2t-cell.is-past, .h2t-cell.is-other { background: var(--ink-200, #e9e7f2); opacity: 1; }
  .h2t-cell.is-other .h2t-cell__num { color: var(--ink-400, #9a97ad); opacity: .6; }
  .h2t-cell.is-selected { border: 0; padding: 6px 2px; }
  a.h2t-cell:hover { box-shadow: none; }
  .h2t-cell__num { margin: 0; min-width: 26px; height: 26px; border-radius: 13px; font-size: 14px; }
  .h2t-cell__dots { display: flex; gap: 3px; }
  .h2t-cell__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--violet-600, #5563e6); }
  .h2t-cell__dots i.is-h2t { background: var(--cyan-600, #19d3c5); }
  .h2t-cell.is-selected .h2t-cell__dots i:not(.is-h2t) { background: var(--violet-600, #5563e6); }
  /* the day panel under the grid, full width, all cards (no inner scroll) */
  .h2t-month__body { gap: var(--space-4, 16px); }
  .h2t-daypanel__inner { max-height: none; padding: var(--space-6, 24px) var(--space-4, 16px) var(--space-4, 16px); }
  .h2t-daypanel__list { overflow: visible; padding-right: 0; }
  /* list: day cards instead of the desktop rows */
  .h2t-agenda { display: none; }
  .h2t-agenda-m { display: block; }
  .h2t-dcard__tags { margin-bottom: 8px; }
}

/* block 7: CTA under the calendar */
.h2t-cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6, 24px); margin: var(--space-12, 48px) 0 0; padding: var(--space-8, 32px); border-radius: var(--radius-lg, 24px); background: var(--gradient-brand, linear-gradient(118deg, #4257e8 8.13%, #5563e6 43.3%, #7408f5 91.87%)); box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(44, 16, 112, .2)); color: var(--base-white, #fff); }
.h2t-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 120% at 12% 100%, rgba(25, 211, 197, .28) 0%, transparent 70%), radial-gradient(35% 90% at 85% 0%, rgba(146, 93, 229, .35) 0%, transparent 70%); pointer-events: none; }
.h2t-cta > * { position: relative; }
.h2t-cta__eyebrow { margin: 0 0 6px; font-family: var(--font-mono, monospace); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--base-white, #fff); }
.h2t-cta__title { margin: 0 0 6px; font-family: var(--font-display, inherit); font-size: clamp(24px, 18px + 1.2vw, 34px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-transform: none; color: var(--base-white, #fff); }
.h2t-cta__lead { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.h2t-cta__btn { flex: none; background: var(--base-white, #fff); color: var(--ink-900, #12102b); padding: 12px 22px; }
.h2t-cta__btn:hover { box-shadow: 0 8px 24px rgba(20, 10, 50, .25); }

/* "Submit an event" dialog */
.h2t-submit { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg, 24px); background: var(--base-page, #f9f9f9); box-shadow: var(--shadow-floating, 0 16px 40px rgba(44, 16, 112, .2)); color: var(--ink-900, #12102b); font-family: var(--font-body, inherit); overflow: visible; }
.h2t-submit::backdrop { background: var(--overlay-scrim, rgba(20, 10, 50, .65)); }
.h2t-submit[open] { animation: h2t-modal-in .22s ease-out; }
.h2t-submit__box { position: relative; max-height: calc(100vh - 32px); overflow-y: auto; padding: var(--space-8, 32px) 40px 40px; box-sizing: border-box; }
.h2t-submit__close { position: absolute; top: 24px; right: 24px; width: 36px; height: 36px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ink-400, #9a97ad); cursor: pointer; }
.h2t-submit__close:hover { color: var(--ink-900, #12102b); }
.h2t-submit__box:focus { outline: none; }
.h2t-submit__close:focus-visible { outline: none; border-radius: 50%; box-shadow: var(--shadow-focus, 0 0 0 3px rgba(106, 48, 240, .32)); }
.h2t-submit__title { margin: 0 48px 10px 0; font-family: var(--font-display, inherit); font-size: clamp(28px, 22px + 1.4vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; text-transform: none; color: var(--ink-900, #12102b); }
.h2t-submit__lead { margin: 0 0 var(--space-6, 24px); font-size: 16px; line-height: 1.4; color: var(--ink-600, #4a4763); }
.h2t-submit__form { display: flex; flex-direction: column; gap: var(--space-4, 16px); }
.h2t-submit__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4, 16px); }
.h2t-submit__row[hidden], .h2t-field[hidden] { display: none; }
.h2t-field input, .h2t-field select, .h2t-field textarea { display: block; width: 100%; box-sizing: border-box; min-height: 50px; padding: 13px var(--space-4, 16px); border: 1px solid var(--violet-200, #d8cdff); border-radius: var(--radius-md, 12px); background: var(--base-white, #fff); font: inherit; font-size: 16px; line-height: 22px; color: var(--ink-900, #12102b); transition: border-color .2s, box-shadow .2s; }
.h2t-field textarea { resize: vertical; min-height: 50px; }
.h2t-field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background: var(--base-white, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%239a97ad' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center; cursor: pointer; }
.h2t-field select:invalid { color: var(--ink-400, #9a97ad); } /* the native select before JS enhances it: the placeholder option in grey */
.h2t-field ::placeholder { color: var(--ink-400, #9a97ad); opacity: 1; }
.h2t-field input:focus, .h2t-field select:focus, .h2t-field textarea:focus { outline: none; border-color: var(--violet-600, #5563e6); box-shadow: var(--shadow-focus, 0 0 0 3px rgba(106, 48, 240, .32)); }
.h2t-field.has-error input, .h2t-field.has-error select { border-color: var(--feedback-error, #e5484d); }
/* form selects: the calendar's own listbox, looking like an input */
.h2t-select--field { display: block; }
.h2t-select--field .h2t-select__btn, .h2t-select--field select { width: 100%; max-width: none; min-height: 50px; padding: 13px 44px 13px var(--space-4, 16px); border: 1px solid var(--violet-200, #d8cdff); border-radius: var(--radius-md, 12px); background: var(--base-white, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%239a97ad' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center; font-size: 16px; font-weight: 400; line-height: 22px; color: var(--ink-900, #12102b); box-shadow: none; }
.h2t-select--field.is-empty .h2t-select__btn { color: var(--ink-400, #9a97ad); }
.h2t-select--field .h2t-select__btn:hover { box-shadow: none; border-color: var(--violet-600, #5563e6); }
.h2t-select--field.is-open .h2t-select__btn, .h2t-select--field .h2t-select__btn:focus-visible { border-color: var(--violet-600, #5563e6); box-shadow: var(--shadow-focus, 0 0 0 3px rgba(106, 48, 240, .32)); }
.h2t-select--field .h2t-select__menu { left: 0; right: auto; width: 100%; max-width: none; max-height: 260px; z-index: 40; }
.h2t-field.has-error .h2t-select__btn { border-color: var(--feedback-error, #e5484d); }

/* form dates: read-only field + the calendar's own month picker */
.h2t-date { position: relative; }
.h2t-date__input { cursor: pointer; padding-right: 44px !important; background: var(--base-white, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%239a97ad' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M4.5 6.5a2 2 0 0 1 2-2h11a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2h-11a2 2 0 0 1-2-2v-11Z'/%3E%3Cpath d='M4.5 9.5h15M8.5 3v3M15.5 3v3'/%3E%3C/svg%3E") no-repeat right 16px center !important; }
.h2t-date__pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; width: 300px; max-width: calc(100vw - 48px); box-sizing: border-box; padding: var(--space-4, 16px); background: var(--base-white, #fff); border-radius: var(--radius-lg, 24px); box-shadow: var(--shadow-floating, 0 16px 40px rgba(44, 16, 112, .2)); }
.h2t-date__pop[hidden] { display: none; }
.h2t-date__head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--space-3, 12px); }
.h2t-date__title { font-family: var(--font-display, inherit); font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--ink-900, #12102b); }
.h2t-date__nav { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--violet-600, #5563e6); color: var(--base-white, #fff); font-size: 18px; line-height: 1; cursor: pointer; }
.h2t-date__nav:disabled { background: var(--violet-200, #d8cdff); cursor: default; }
.h2t-date__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.h2t-date__dow { padding: 4px 0 6px; font-size: 12px; font-weight: 500; color: var(--ink-400, #9a97ad); }
.h2t-date__day { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-900, #12102b); cursor: pointer; }
.h2t-date__day:hover:not(:disabled) { background: var(--violet-50, #f4f1ff); }
.h2t-date__day:focus-visible { outline: none; box-shadow: var(--shadow-focus, 0 0 0 3px rgba(106, 48, 240, .32)); }
.h2t-date__day.is-today { box-shadow: inset 0 0 0 2px var(--cyan-600, #19d3c5); }
.h2t-date__day.is-selected { background: var(--violet-600, #5563e6); color: var(--base-white, #fff); }
.h2t-date__day:disabled { color: var(--ink-200, #e9e7f2); cursor: default; }
.h2t-submit__row > .h2t-date:last-child .h2t-date__pop { left: auto; right: 0; } /* the end-date picker opens towards the dialog's centre */

.h2t-field__error { margin: 6px 4px 0; font-size: 13px; color: var(--feedback-error, #e5484d); }
.h2t-submit__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.h2t-submit__error { margin: 0; padding: 10px 14px; border-radius: var(--radius-md, 12px); background: #fdecec; color: var(--feedback-error, #e5484d); font-size: 14px; }
/* the buttons are the theme's .c-btn.c-btn--secondary (look, hover, focus ring and the disabled state); ours: placement and "sending" */
.h2t-submit__send, .h2t-submit__back { align-self: center; min-width: 160px; }
.h2t-submit__send.is-busy { opacity: .7; cursor: progress; }
.h2t-submit__done { display: flex; flex-direction: column; align-items: center; padding: var(--space-4, 16px) 0 var(--space-2, 8px); text-align: center; }
.h2t-submit__done[hidden] { display: none; }
.h2t-submit__done .h2t-submit__title { margin: var(--space-4, 16px) 0 10px; }
.h2t-submit__check { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: rgba(25, 211, 197, .2); color: var(--cyan-800, #19a99d); box-shadow: 0 0 0 10px rgba(25, 211, 197, .08), 0 0 0 20px rgba(25, 211, 197, .05); margin: 20px 0 8px; }
@media (max-width: 767px) {
  .h2t-cta { flex-direction: column; align-items: flex-start; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: var(--space-6, 24px); border-radius: 0; } /* full-bleed: edge to edge of the screen */
  .h2t-cta__btn { align-self: stretch; }
  .h2t-submit { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .h2t-submit__box { max-height: 100dvh; height: 100%; padding: var(--space-6, 24px) var(--space-4, 16px) var(--space-8, 32px); }
  .h2t-submit__close { top: 16px; right: 12px; }
  .h2t-submit__row { grid-template-columns: minmax(0, 1fr); }
}

/* event page and modal fragment: the v2 theme's event-page language (c-event-head / c-event-aside), own classes */
.h2t-event { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-8, 32px) var(--space-12, 48px); align-items: start; }
.h2t-event__main { display: flex; flex-direction: column; gap: var(--space-4, 16px); min-width: 0; }
.h2t-event__eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-family: var(--font-mono, monospace); font-size: 14px; font-weight: 700; line-height: 1.1; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-600, #5563e6); }
.h2t-event__dot { width: 10px; height: 10px; border-radius: 2.5px; background: var(--violet-600, #5563e6); flex: none; }
.h2t-event.is-h2t .h2t-event__dot { background: var(--cyan-600, #19d3c5); }
.h2t-event__title { margin: 0; font-family: var(--font-display, inherit); font-weight: 700; font-size: clamp(28px, 23px + 1.3vw, 40px); line-height: 1.1; letter-spacing: -.03em; color: var(--ink-900, #12102b); overflow-wrap: anywhere; }
.h2t-event__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.h2t-event__tags li { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid var(--ink-200, #e9e7f2); border-radius: var(--radius-full, 9999px); background: var(--base-white, #fff); font-size: 13px; line-height: 18px; color: var(--ink-900, #12102b); }
.h2t-event__tags li.is-city { font-weight: 600; }
.h2t-event__tags li.is-city svg { color: var(--violet-600, #5563e6); }
.h2t-event__tags li.is-h2t { border-color: var(--cyan-200, rgba(25, 211, 197, .2)); background: var(--cyan-100, rgba(25, 211, 197, .1)); color: var(--cyan-800, #19a99d); font-weight: 600; }
.h2t-banner { margin: 0; padding: 12px 16px; border-radius: var(--radius-md, 12px); background: #fdecec; color: var(--feedback-error, #e5484d); font-weight: 600; }
.h2t-banner.is-postponed { background: #fff4e5; color: #8a4b00; }
.h2t-event__img { width: 100%; border-radius: var(--radius-lg, 24px); }
.h2t-event__desc { font-size: 18px; line-height: 1.4; color: var(--ink-600, #4a4763); overflow-wrap: anywhere; }
.h2t-event__desc p { margin: 0 0 1em; font: inherit; }
.h2t-event__desc a { color: var(--violet-600, #5563e6); }
.h2t-event__side { display: flex; flex-direction: column; gap: var(--space-4, 16px); padding: var(--space-6, 24px) var(--space-4, 16px); background: var(--base-white, #fff); border-radius: var(--radius-lg, 24px); box-shadow: var(--shadow-card, 0 2px 8px rgba(44, 16, 112, .1)); }
.h2t-event__facts { display: flex; flex-direction: column; gap: var(--space-4, 16px); margin: 0; }
.h2t-event__fact { display: flex; align-items: center; gap: var(--space-3, 12px); }
.h2t-event__fact > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.h2t-event__icon { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 16px; background: var(--violet-50, #f4f1ff); color: var(--violet-600, #5563e6); }
.h2t-event__facts dt { font-size: 12px; line-height: 1.25; color: var(--ink-400, #9a97ad); }
.h2t-event__facts dd { margin: 0; font-family: var(--font-display, inherit); font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--ink-900, #12102b); overflow-wrap: anywhere; }
.h2t-event__gmt { font-family: var(--font-body, inherit); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--ink-400, #9a97ad); }
.h2t-event__warn { margin: 0; font-size: 14px; font-weight: 600; color: var(--feedback-error, #e5484d); }
.h2t-event__actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.h2t-btn--block { width: 100%; box-sizing: border-box; padding-top: var(--space-4, 16px); padding-bottom: var(--space-4, 16px); }
.h2t-event__note { margin: 0; font-size: 12px; text-align: center; color: var(--ink-400, #9a97ad); }
.h2t-related { grid-column: 1 / -1; padding-top: var(--space-6, 24px); border-top: 1px solid var(--ink-200, #e9e7f2); }
.h2t-related__title { text-transform: none; margin: 0 0 var(--space-3, 12px); font-family: var(--font-display, inherit); font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--ink-900, #12102b); }
.h2t-related__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3, 12px); margin: 0 0 var(--space-3, 12px); padding: 0; list-style: none; }
.h2t-related__list a { display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; padding: var(--space-4, 16px); border: 1px solid var(--ink-200, #e9e7f2); border-radius: var(--radius-md, 12px); background: var(--base-white, #fff); color: var(--ink-900, #12102b); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.h2t-related__list a:hover { border-color: var(--violet-200, #d8cdff); box-shadow: var(--shadow-card, 0 2px 8px rgba(44, 16, 112, .1)); }
.h2t-related__list svg { margin-top: auto; color: var(--violet-600, #5563e6); }
.h2t-related__date { font-family: var(--font-mono, monospace); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-600, #5563e6); }
.h2t-related__name { font-family: var(--font-display, inherit); font-size: 15px; font-weight: 700; line-height: 1.3; }
.h2t-cal a.h2t-related__all, .h2t-modal a.h2t-related__all { display: inline-flex; align-items: center; gap: 4px; color: var(--violet-600, #5563e6); font-weight: 600; text-decoration: none; }
.h2t-cal--single { padding-top: var(--space-12, 48px); padding-bottom: var(--space-24, 96px); }
@media (max-width: 767px) { .h2t-cal--single { padding-top: 0; padding-bottom: var(--space-12, 48px); } } /* the breadcrumb right under the header, as on the theme's event page */
@media (max-width: 960px) {
  /* one column: title and tags, then the facts card with the CTA, then image and description (as the theme's event page) */
  .h2t-event { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-4, 16px); }
  .h2t-event__main { display: contents; }
  .h2t-event__side { order: 1; margin: var(--space-2, 8px) 0; }
  .h2t-event__img, .h2t-event__desc { order: 2; }
  .h2t-event .h2t-related { order: 3; margin-top: var(--space-4, 16px); }
  .h2t-related__list { grid-template-columns: minmax(0, 1fr); }
}

/* modal (spec 5.6): opens at its final size with a skeleton, content fades in — no jump when the data arrives */
.h2t-modal { width: min(1100px, 94vw); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.h2t-modal::backdrop { background: var(--overlay-scrim, rgba(20, 10, 50, .65)); }
.h2t-modal[open] { animation: h2t-modal-in .22s ease-out; }
@keyframes h2t-modal-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.h2t-modal__box { position: relative; height: min(760px, 88vh); overflow-y: auto; overscroll-behavior: contain; background: var(--base-page, #f9f9f9); border-radius: var(--radius-xl, 32px); box-shadow: var(--shadow-floating, 0 16px 40px rgba(44, 16, 112, .2)); font-family: var(--font-body, inherit); color: var(--ink-900, #12102b); }
.h2t-modal__content { padding: var(--space-12, 48px); }
.h2t-modal__content.is-in { animation: h2t-fade .25s ease-out; }
@keyframes h2t-fade { from { opacity: 0; } to { opacity: 1; } }
.h2t-modal__close { position: sticky; top: var(--space-4, 16px); float: right; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: var(--space-4, 16px) var(--space-4, 16px) -56px 0; border: 0; border-radius: 50%; background: var(--base-white, #fff); color: var(--ink-900, #12102b); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-card, 0 2px 8px rgba(44, 16, 112, .1)); }
.h2t-modal__close:hover { color: var(--violet-600, #5563e6); }
.h2t-modal__close:focus-visible { outline: none; box-shadow: var(--shadow-focus, 0 0 0 3px rgba(106, 48, 240, .32)); }
body.h2t-modal-open { overflow: hidden; }
/* skeleton: the same two-column layout as the event, shimmering */
.h2t-skel { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-12, 48px); }
.h2t-skel__main, .h2t-skel__side { display: flex; flex-direction: column; gap: var(--space-4, 16px); }
.h2t-skel__side { padding: var(--space-6, 24px) var(--space-4, 16px); background: var(--base-white, #fff); border-radius: var(--radius-lg, 24px); box-shadow: var(--shadow-card, 0 2px 8px rgba(44, 16, 112, .1)); }
.h2t-skel i { display: block; height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--ink-200, #e9e7f2) 0%, var(--violet-50, #f4f1ff) 50%, var(--ink-200, #e9e7f2) 100%) 0 0 / 200% 100%; animation: h2t-shimmer 1.2s linear infinite; }
.h2t-skel i.is-eyebrow { width: 140px; height: 14px; }
.h2t-skel i.is-title { width: 85%; height: 40px; }
.h2t-skel i.is-title2 { width: 55%; height: 40px; }
.h2t-skel i.is-tags { width: 60%; height: 26px; border-radius: 13px; }
.h2t-skel i.is-short { width: 70%; }
.h2t-skel i.is-row { height: 40px; border-radius: 16px; }
.h2t-skel i.is-btn { height: 50px; border-radius: 25px; margin-top: var(--space-2, 8px); }
@keyframes h2t-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .h2t-skel i, .h2t-modal[open], .h2t-modal__content.is-in, .h2t-submit[open] { animation: none; } }
@media (max-width: 960px) {
  .h2t-modal__content { padding: var(--space-8, 32px) var(--space-6, 24px); }
  .h2t-skel { grid-template-columns: minmax(0, 1fr); }
}

/* private preview bar (event managers only, while the calendar is not public) */
.h2t-private-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; padding: 10px 16px; background: #1d2327; color: #f0f0f1; font-size: 14px; text-align: center; }
.h2t-private-bar a { color: #72aee6; margin-left: 6px; }

/* "Healthtech events by city": plain links to the city pages under the calendar (crawlable; the city select is not) */
.h2t-cities { margin: var(--space-12, 48px) 0 0; }
.h2t-cities__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4, 16px); padding-bottom: var(--space-4, 16px); border-bottom: 1px solid var(--ink-200, #e9e7f2); }
.h2t-cities__title { margin: 0; font-family: var(--font-mono, monospace); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400, #9a97ad); }
.h2t-cities__title span { color: var(--violet-600, #5563e6); }
.h2t-cities__total { margin: 0; font-size: 14px; color: var(--ink-400, #9a97ad); white-space: nowrap; }
.h2t-cities__list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--space-3, 12px) var(--space-6, 24px); margin: var(--space-5, 20px) 0 0; padding: 0; list-style: none; }
.h2t-cities__link { display: flex; align-items: baseline; gap: var(--space-2, 8px); max-width: 100%; font-size: 16px; color: var(--ink-900, #12102b); text-decoration: none; white-space: nowrap; }
.h2t-cities__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; } /* a long name gets "…", the count stays */
.h2t-cal a.h2t-cities__link { color: var(--ink-900, #12102b); text-decoration: none; }
.h2t-cal a.h2t-cities__link:hover { color: var(--violet-600, #5563e6); }
.h2t-cities__link.is-current { color: var(--violet-600, #5563e6); font-weight: 500; }
.h2t-cities__n { flex: none; font-size: 14px; color: var(--ink-400, #9a97ad); }
.h2t-cities__toggle { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: 16px; font-weight: 600; color: var(--violet-600, #5563e6); cursor: pointer; }
.h2t-cities__toggle[hidden] { display: none; } /* without JS nothing is clipped, so no button */
.h2t-cities__toggle::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.h2t-cities__toggle[aria-expanded="true"]::after { margin-top: 4px; transform: rotate(-135deg); }
/* clipped (set by calendar.js): the first 20 cities and the button in the 21st cell; fewer than 21 = no button on wide screens */
.h2t-cities.is-clipped .h2t-cities__list > li:nth-child(n+21):not(.h2t-cities__more) { display: none; }
.h2t-cities:not(.has-more) .h2t-cities__more { display: none; }
.h2t-cities + .h2t-cta { margin-top: var(--space-8, 32px); }
@media (max-width: 1023px) { .h2t-cities__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .h2t-cities { margin-top: var(--space-8, 32px); }
  .h2t-cities__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3, 12px) var(--space-4, 16px); }
  .h2t-cities.is-clipped .h2t-cities__list > li:nth-child(n+11):not(.h2t-cities__more) { display: none; } /* phones: 10 cities first */
  .h2t-cities:not(.has-more) .h2t-cities__more { display: list-item; }
}
/* multiple select (the form's categories): a check box in front of each option */
.h2t-select--multi .h2t-select__menu [role="option"] { display: flex; align-items: center; gap: 10px; }
.h2t-select--multi .h2t-select__menu [role="option"]::before { content: ""; flex: none; width: 16px; height: 16px; box-sizing: border-box; border: 1.5px solid var(--ink-400, #9a97ad); border-radius: 4px; }
.h2t-select--multi .h2t-select__menu [aria-selected="true"]::before { border-color: var(--violet-600, #5563e6); background: var(--violet-600, #5563e6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2 5 8.5l4.5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
