body.page-template-page_agenda {
  --hk-agenda-bg: #eff2f6;
  --hk-agenda-surface: rgba(255, 255, 255, 0.88);
  --hk-agenda-card: #ffffff;
  --hk-agenda-text: #0f172a;
  --hk-agenda-muted: #64748b;
  --hk-agenda-border: #d3dce8;
  --hk-agenda-accent: #00ccd9;
  --hk-agenda-accent-strong: #008ea3;
  --hk-agenda-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  background: radial-gradient(circle at 0% -10%, #f7fbff 0%, #eff2f6 52%, #e8edf5 100%);
}

body.page-template-page_agenda main.site-main.hk-agenda {
  padding-top: 60px;
}

body.page-template-page_agenda .hk-agenda__container {
  max-width: none;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-template-page_agenda .hk-agenda-hero {
  position: relative;
  display: flex;
  align-items: center;
  /* Force true full-bleed even inside WP constrained layouts. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(120px, 14vw, 172px);
  border-radius: 0;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.page-template-page_agenda .hk-agenda-hero .wp-block-cover__background {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  opacity: 1;
}

body.page-template-page_agenda .hk-agenda-hero .wp-block-cover__image-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

body.page-template-page_agenda .hk-agenda-hero .hk-agenda-hero__background {
  background: transparent !important;
  opacity: 1 !important;
}

body.page-template-page_agenda .hk-agenda-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: clamp(120px, 14vw, 172px);
  padding-bottom: 0;
}

body.page-template-page_agenda .hk-agenda-hero__title {
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
  font-size: clamp(2rem, 3.6vw, 3.35rem);
  letter-spacing: -0.02em;
}

body.page-template-page_agenda .hk-agenda-toolbar {
  max-width: 1220px;
  margin: -40px auto 22px;
  padding: 0 22px;
  position: relative;
  z-index: 5;
}

body.page-template-page_agenda .hk-agenda-toolbar__card {
  background: var(--hk-agenda-surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  box-shadow: var(--hk-agenda-shadow);
  backdrop-filter: blur(14px);
  padding: 14px;
}

body.page-template-page_agenda .hk-agenda-toolbar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.page-template-page_agenda .hk-agenda-toolbar__header,
body.page-template-page_agenda .hk-agenda-date-peek {
  min-width: 0;
}

body.page-template-page_agenda .hk-agenda-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 14px;
}

body.page-template-page_agenda .hk-agenda-view-switch__btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #334155;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

body.page-template-page_agenda .hk-agenda-view-switch__btn:hover {
  color: var(--hk-agenda-text);
}

body.page-template-page_agenda .hk-agenda-view-switch__btn.is-active {
  color: #ffffff;
  background: linear-gradient(140deg, #0f2f53, #0f4f77 58%, #106184);
  box-shadow: 0 8px 20px rgba(16, 79, 119, 0.35);
}

body.page-template-page_agenda .hk-agenda-clear-filters {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #ffb020, #ff6a00);
  box-shadow: 0 10px 24px rgba(255, 106, 0, 0.28);
  cursor: pointer;
  flex: 0 0 auto;
}

/* Ensure HTML [hidden] always wins over our display styles. */
body.page-template-page_agenda .hk-agenda-clear-filters[hidden] {
  display: none !important;
}

body.page-template-page_agenda .hk-agenda-clear-filters svg {
  width: 20px;
  height: 20px;
  display: block;
}

body.page-template-page_agenda .hk-agenda-date-peek {
  appearance: none;
  border: 1.5px solid rgba(15, 23, 42, 0.62);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  color: #0f172a;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  min-width: 0;
}

body.page-template-page_agenda .hk-agenda-date-peek__label {
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  flex: 0 0 auto;
  white-space: nowrap;
}

body.page-template-page_agenda .hk-agenda-date-peek__value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  color: rgba(15, 23, 42, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

body.page-template-page_agenda .hk-agenda-date-peek__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(15, 23, 42, 0.78);
  flex: 0 0 auto;
}

body.page-template-page_agenda .hk-agenda-date-peek__arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

body.page-template-page_agenda .hk-agenda-date-popover {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

body.page-template-page_agenda .hk-agenda-date-popover[hidden] {
  display: none !important;
}

body.page-template-page_agenda .hk-agenda-date-popover__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.38);
  backdrop-filter: blur(8px);
}

body.page-template-page_agenda .hk-agenda-date-popover__panel {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(141, 162, 186, 0.55);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
  padding: 14px 14px;
}

body.page-template-page_agenda .hk-agenda-date-popover__form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

body.page-template-page_agenda .hk-agenda-date-popover__grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

body.page-template-page_agenda .hk-agenda-date-popover__field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body.page-template-page_agenda .hk-agenda-date-popover__field-label {
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
}

body.page-template-page_agenda .hk-agenda-date-popover__field-hint {
  margin-top: -4px;
  font-weight: 700;
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.52);
}

body.page-template-page_agenda .hk-agenda-date-popover__input {
  position: relative;
  display: block;
}

body.page-template-page_agenda .hk-agenda-date-popover__placeholder {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--wp--preset--font-family--montserrat), sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(15, 23, 42, 0.32);
  pointer-events: none;
  z-index: 2;
}

body.page-template-page_agenda .hk-agenda-date-popover__input.has-value .hk-agenda-date-popover__placeholder {
  display: none;
}

body.page-template-page_agenda .hk-agenda-date-popover__field input[type="date"] {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1.5px solid var(--hk-agenda-border);
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 12px;
  font-family: var(--wp--preset--font-family--montserrat), sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--hk-agenda-text);
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 1;
}

body.page-template-page_agenda .hk-agenda-date-popover__field input[type="date"]:focus {
  outline: none;
  border-color: var(--hk-agenda-accent);
  box-shadow: 0 0 0 3px rgba(0, 204, 217, 0.18);
}

body.page-template-page_agenda .hk-agenda-date-popover__apply {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(140deg, #0f2f53, #0f4f77 58%, #106184);
  box-shadow: 0 12px 30px rgba(16, 79, 119, 0.38);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

body.page-template-page_agenda .hk-agenda-date-popover__apply svg {
  width: 24px;
  height: 24px;
  display: block;
}

body.hk-agenda-modal-open {
  overflow: hidden;
}

body.page-template-page_agenda .hk-agenda-quick-filters {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

body.page-template-page_agenda .hk-agenda-quick-filters__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.page-template-page_agenda .hk-agenda-quick-filters__row.has-selection .hk-agenda-quick-filter:not(.is-active) {
  opacity: 0.4;
  filter: grayscale(1);
}

body.page-template-page_agenda .hk-agenda-quick-filter {
  --hk-filter-color: var(--hk-agenda-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hk-filter-color) 35%, white);
  background: color-mix(in srgb, var(--hk-filter-color) 12%, white);
  color: #153a5d;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.15s ease, opacity 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

body.page-template-page_agenda .hk-agenda-quick-filter:hover {
  transform: translateY(-1px);
  opacity: 1;
  filter: none;
}

body.page-template-page_agenda .hk-agenda-quick-filter.is-active {
  background: color-mix(in srgb, var(--hk-filter-color) 26%, white);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

body.page-template-page_agenda .hk-agenda-quick-filter__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--hk-filter-color);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--hk-filter-color) 35%, transparent);
  flex: 0 0 auto;
}

body.page-template-page_agenda .hk-agenda-quick-filter__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

body.page-template-page_agenda .hk-agenda-quick-filter__icon svg {
  width: 18px;
  height: 18px;
}

body.page-template-page_agenda .hk-agenda-filters {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.page-template-page_agenda .hk-agenda-filter {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  border-radius: 14px;
  border: 1.5px solid var(--hk-agenda-border);
  background: #ffffff;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.88);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.page-template-page_agenda .hk-agenda-filter__floating-label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hk-agenda-muted);
  font-size: 0.93rem;
  line-height: 1;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1;
}

body.page-template-page_agenda .hk-agenda-filter.has-value .hk-agenda-filter__floating-label,
body.page-template-page_agenda .hk-agenda-filter.is-focused .hk-agenda-filter__floating-label {
  top: 11px;
  transform: none;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
}

body.page-template-page_agenda .hk-agenda-filter--select .hk-agenda-filter__floating-label,
body.page-template-page_agenda .hk-agenda-filter.is-select .hk-agenda-filter__floating-label {
  top: 11px;
  transform: none;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
}

body.page-template-page_agenda .hk-agenda-filter input[type="date"],
body.page-template-page_agenda .hk-agenda-filter select {
  width: 100%;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--hk-agenda-text) !important;
  -webkit-text-fill-color: var(--hk-agenda-text) !important;
  font-family: var(--wp--preset--font-family--montserrat), sans-serif;
  font-size: 0.98rem;
  line-height: 1.2;
  padding: 23px 38px 10px 14px;
  margin: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 14px;
  caret-color: var(--hk-agenda-text);
}

body.page-template-page_agenda .hk-agenda-filter:not(.has-value) input[type="date"] {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

body.page-template-page_agenda .hk-agenda-filter:not(.has-value) select {
  color: var(--hk-agenda-muted) !important;
  -webkit-text-fill-color: var(--hk-agenda-muted) !important;
}

body.page-template-page_agenda .hk-agenda-filter input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  color: var(--hk-agenda-text);
  -webkit-text-fill-color: var(--hk-agenda-text);
}

body.page-template-page_agenda .hk-agenda-filter input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.82;
}

body.page-template-page_agenda .hk-agenda-filter input[type="date"] {
  color-scheme: light;
}

body.page-template-page_agenda .hk-agenda-filter input[type="date"]:focus,
body.page-template-page_agenda .hk-agenda-filter input[type="date"]:active,
body.page-template-page_agenda .hk-agenda-filter select:focus,
body.page-template-page_agenda .hk-agenda-filter select:active {
  color: var(--hk-agenda-text) !important;
  -webkit-text-fill-color: var(--hk-agenda-text) !important;
}

body.page-template-page_agenda .hk-agenda-filter select {
  background-image: linear-gradient(45deg, transparent 50%, #1e293b 50%), linear-gradient(135deg, #1e293b 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

body.page-template-page_agenda .hk-agenda-filter select option {
  color: var(--hk-agenda-text);
}

body.page-template-page_agenda .hk-agenda-filter:focus-within {
  border-color: var(--hk-agenda-accent);
  box-shadow: 0 0 0 3px rgba(0, 204, 217, 0.18);
}

body.page-template-page_agenda .hk-agenda-filters__actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 2px;
}

body.page-template-page_agenda .hk-agenda-button {
  appearance: none;
  border-radius: 999px;
  border: 0;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 12px 20px;
  cursor: pointer;
}

body.page-template-page_agenda .hk-agenda-button--primary {
  color: #052b33;
  background: linear-gradient(125deg, #9ef4e0 0%, #63def4 48%, #45b9eb 100%);
}

body.page-template-page_agenda .hk-agenda-button--ghost {
  color: #24415f;
  background: rgba(21, 57, 87, 0.08);
}

body.page-template-page_agenda .hk-agenda-active-filters-row {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

body.page-template-page_agenda .hk-agenda-active-filters {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 420px;
}

body.page-template-page_agenda .hk-agenda-active-filters__clear {
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
  align-self: flex-start;
}

body.page-template-page_agenda .hk-agenda-chip {
  --hk-chip-color: var(--hk-agenda-accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--hk-chip-color) 35%, white);
  background: color-mix(in srgb, var(--hk-chip-color) 10%, white);
  padding: 6px 12px;
  font-size: 0.72rem;
  color: #153a5d;
}

body.page-template-page_agenda .hk-agenda-chip--date {
  --hk-chip-color: #93a8c4;
}

body.page-template-page_agenda .hk-agenda-chip__icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.page-template-page_agenda .hk-agenda-chip__icon,
body.page-template-page_agenda .hk-agenda-entry__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.13);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.page-template-page_agenda .hk-agenda-chip__icon svg,
body.page-template-page_agenda .hk-agenda-entry__icon svg {
  width: 16px;
  height: 16px;
}

body.page-template-page_agenda .hk-agenda-content {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto 36px;
}

body.page-template-page_agenda .hk-agenda-panel {
  display: grid;
  gap: 12px;
}

body.page-template-page_agenda .hk-agenda-panel[hidden] {
  display: none !important;
}

body.page-template-page_agenda .hk-agenda-empty {
  margin: 0;
  border-radius: 16px;
  border: 1px dashed #c9d6e5;
  background: rgba(255, 255, 255, 0.7);
  color: #42566f;
  padding: 18px;
}

body.page-template-page_agenda .hk-agenda-day {
  border-radius: 14px;
  border: 1px solid #dbe5f1;
  background: var(--hk-agenda-card);
  box-shadow: none;
  overflow: hidden;
}

body.page-template-page_agenda .hk-agenda-day__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e6edf6;
  background: #f5f8fc;
}

body.page-template-page_agenda .hk-agenda-day__header h2 {
  margin: 0;
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  text-transform: capitalize;
  letter-spacing: 0;
}

body.page-template-page_agenda .hk-agenda-day__count {
  font-size: 0.74rem;
  font-weight: 700;
  color: #36506c;
  background: rgba(54, 80, 108, 0.12);
  border-radius: 999px;
  padding: 5px 10px;
}

body.page-template-page_agenda .hk-agenda-day__list {
  margin: 0;
  padding: 8px 12px;
  list-style: none;
  display: grid;
  gap: 0;
}

body.page-template-page_agenda .hk-agenda-entry {
  border: 0;
  border-bottom: 1px solid #e9eff7;
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
}

body.page-template-page_agenda .hk-agenda-entry:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

body.page-template-page_agenda .hk-agenda-entry__title {
  --hk-activity-color: #00ccd9;
  background: var(--hk-activity-color);
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  line-height: 1.25;
  padding: 5px 10px;
  margin-bottom: 6px;
}

body.page-template-page_agenda .hk-agenda-entry__title:hover {
  color: #000000;
  opacity: 0.9;
}

body.page-template-page_agenda .hk-agenda-entry__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

body.page-template-page_agenda .hk-agenda-entry__meta:empty {
  display: none;
}

body.page-template-page_agenda .hk-agenda-entry__type {
  --hk-type-color: #00ccd9;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hk-type-color) 15%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--hk-type-color) 42%, #ffffff);
  color: #09384f;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 5px 9px;
}

body.page-template-page_agenda .hk-agenda-entry__time {
  font-size: 0.7rem;
  color: #5a6d83;
  font-weight: 600;
}

body.page-template-page_agenda .hk-agenda-entry__icons {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

body.page-template-page_agenda .hk-agenda-entry__icon {
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: transparent;
}

body.page-template-page_agenda .hk-agenda-entry__icon svg {
  width: 20px;
  height: 20px;
}

body.page-template-page_agenda .hk-agenda-calendar__months {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.page-template-page_agenda .hk-agenda-calendar__month-link {
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 700;
  border: 1px solid #cbd6e2;
  border-radius: 999px;
  padding: 6px 11px;
  background: #ffffff;
  color: #1f3957;
}

body.page-template-page_agenda .hk-agenda-calendar {
  border-radius: 18px;
  border: 1px solid rgba(141, 162, 186, 0.42);
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.09);
  overflow: hidden;
}

body.page-template-page_agenda .hk-agenda-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #dfe7f2;
  background: linear-gradient(150deg, #f6f9ff, #ebf2fb);
}

body.page-template-page_agenda .hk-agenda-calendar__header h3 {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
}

body.page-template-page_agenda .hk-agenda-calendar__long-events {
  padding: 12px 16px 10px;
  display: grid;
  gap: 6px;
  border-bottom: 1px solid #dfe7f2;
  background: #f7faff;
}

body.page-template-page_agenda .hk-agenda-calendar-long-event {
  --hk-activity-color: #00ccd9;
  display: block;
  width: 100%;
  text-decoration: none;
  color: #000000;
  background: var(--hk-activity-color);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.page-template-page_agenda .hk-agenda-calendar-long-event:hover {
  color: #000000;
  opacity: 0.92;
}

body.page-template-page_agenda .hk-agenda-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

body.page-template-page_agenda .hk-agenda-calendar__weekdays {
  border-bottom: 1px solid #dfe7f2;
  background: #f7faff;
}

body.page-template-page_agenda .hk-agenda-calendar__weekdays span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5b728d;
  font-weight: 700;
}

body.page-template-page_agenda .hk-agenda-calendar__weeks {
  display: block;
}

body.page-template-page_agenda .hk-agenda-calendar-week {
  --hk-week-lanes: 1;
  --hk-calendar-week-base: 92px;
  --hk-calendar-event-height: 20px;
  --hk-calendar-event-gap: 4px;
  position: relative;
  min-height: calc(
    var(--hk-calendar-week-base) + (var(--hk-week-lanes) - 1) * (var(--hk-calendar-event-height) + var(--hk-calendar-event-gap))
  );
  border-bottom: 1px solid #e3eaf3;
}

body.page-template-page_agenda .hk-agenda-calendar-week:last-child {
  border-bottom: 0;
}

body.page-template-page_agenda .hk-agenda-calendar-week__days {
  min-height: inherit;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

body.page-template-page_agenda .hk-agenda-calendar-day {
  min-height: inherit;
  border-right: 1px solid #e3eaf3;
  padding: 6px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

body.page-template-page_agenda .hk-agenda-calendar-day:last-child {
  border-right: 0;
}

body.page-template-page_agenda .hk-agenda-calendar-day--outside {
  background: #f8fbff;
}

body.page-template-page_agenda .hk-agenda-calendar-day.is-today {
  background: linear-gradient(180deg, rgba(0, 204, 217, 0.14), rgba(255, 255, 255, 1) 44%);
  box-shadow: inset 0 0 0 2px rgba(0, 142, 163, 0.65);
  position: relative;
  border-color: rgba(0, 142, 163, 0.42);
}

body.page-template-page_agenda .hk-agenda-calendar-day.is-today::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1.5px dashed rgba(0, 96, 112, 0.22);
  border-radius: 10px;
  pointer-events: none;
}

/* If list view marks "today" at the day container level, highlight it too. */
body.page-template-page_agenda .hk-agenda-day.is-today {
  border-color: rgba(0, 142, 163, 0.70);
  box-shadow: 0 0 0 2px rgba(0, 142, 163, 0.35);
  background: linear-gradient(180deg, rgba(0, 204, 217, 0.12), rgba(255, 255, 255, 1) 58%);
}

body.page-template-page_agenda .hk-agenda-day.is-today .hk-agenda-day__header {
  background: linear-gradient(180deg, rgba(0, 204, 217, 0.26), rgba(245, 248, 252, 1) 78%);
}

body.page-template-page_agenda .hk-agenda-day.is-today .hk-agenda-day__header h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

body.page-template-page_agenda .hk-agenda-day.is-today .hk-agenda-day__header h2::after {
  content: "HOY";
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 96, 112, 0.98);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
  text-transform: uppercase;
}

body.page-template-page_agenda .hk-agenda-day.is-today .hk-agenda-day__count {
  background: rgba(0, 96, 112, 0.18);
  color: rgba(0, 68, 84, 0.95);
}

body.page-template-page_agenda .hk-agenda-day.is-today .hk-agenda-entry {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  margin: 2px 3px 5px;
  padding: 10px 8px;
  border: 1px solid rgba(0, 142, 163, 0.16);
}

body.page-template-page_agenda .hk-agenda-calendar-day.is-today .hk-agenda-calendar-day__number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(0, 142, 163, 0.95);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

body.page-template-page_agenda .hk-agenda-calendar-day.is-today .hk-agenda-calendar-day__number::after {
  content: "HOY";
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  opacity: 0.95;
}

body.page-template-page_agenda .hk-agenda-calendar-day__header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

body.page-template-page_agenda .hk-agenda-calendar-day__number {
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
}

body.page-template-page_agenda .hk-agenda-calendar-event {
  --hk-activity-color: #00ccd9;
  position: absolute;
  z-index: 2;
  left: calc((100% / 7) * var(--hk-col-start) + 4px);
  width: calc((100% / 7) * var(--hk-col-span) - 8px);
  top: calc(24px + (var(--hk-event-lane) * (var(--hk-calendar-event-height) + var(--hk-calendar-event-gap))));
  height: var(--hk-calendar-event-height);
  display: block;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: var(--hk-calendar-event-height);
  color: #000000;
  background: var(--hk-activity-color);
  border-radius: 6px;
  padding: 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-template-page_agenda .hk-agenda-calendar-event:hover {
  color: #000000;
  opacity: 0.92;
}

@media (max-width: 1023px) {
  body.page-template-page_agenda .hk-agenda-toolbar {
    margin-top: -30px;
    padding: 0 16px;
  }

  body.page-template-page_agenda .hk-agenda-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-template-page_agenda .hk-agenda-calendar-week {
    --hk-calendar-week-base: 86px;
  }
}

@media (max-width: 767px) {
body.page-template-page_agenda .hk-agenda-hero {
  min-height: 110px;
  border-radius: 0;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

body.page-template-page_agenda .hk-agenda-hero__inner {
  min-height: 110px;
  padding-bottom: 0;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

  body.page-template-page_agenda .hk-agenda-toolbar {
    margin-top: -18px;
    margin-bottom: 16px;
    padding: 0 10px;
  }

body.page-template-page_agenda .hk-agenda-toolbar__card {
    padding: 10px 0;
    border-radius: 18px;
  }

  body.page-template-page_agenda .hk-agenda-toolbar__header,
  body.page-template-page_agenda .hk-agenda-date-peek {
    margin-left: 10px !important;
    margin-right: 10px !important;
    width: calc(100% - 20px);
  }

  body.page-template-page_agenda .hk-agenda-quick-filters {
    margin-left: 8px !important;
    margin-right: 8px !important;
  }

  body.page-template-page_agenda .hk-agenda-quick-filters__row {
    overflow-x: auto;
    flex-wrap: nowrap;
    margin-left: 2px;
    margin-right: 2px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  body.page-template-page_agenda .hk-agenda-quick-filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  body.page-template-page_agenda .hk-agenda-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.page-template-page_agenda .hk-agenda-filter {
    min-height: 54px;
  }

  body.page-template-page_agenda .hk-agenda-filter__floating-label {
    left: 12px;
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 44px);
  }

  body.page-template-page_agenda .hk-agenda-filter.has-value .hk-agenda-filter__floating-label,
  body.page-template-page_agenda .hk-agenda-filter.is-focused .hk-agenda-filter__floating-label {
    top: 10px;
    font-size: 0.64rem;
  }

  body.page-template-page_agenda .hk-agenda-filter input[type="date"] {
    min-height: 54px;
    font-size: 0.92rem;
    padding: 22px 34px 9px 12px;
  }

  body.page-template-page_agenda .hk-agenda-filters__actions {
    justify-content: stretch;
    flex-direction: column;
  }

  body.page-template-page_agenda .hk-agenda-active-filters-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  body.page-template-page_agenda .hk-agenda-active-filters__clear {
    margin-left: 0;
    align-self: flex-end;
  }

  body.page-template-page_agenda .hk-agenda-button {
    text-align: center;
  }

	body.page-template-page_agenda .hk-agenda-content {
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box !important;
	}

  /* Give the calendar a tiny breathing room from the viewport edges. */
  body.page-template-page_agenda .hk-agenda-panel--calendar {
    width: calc(100% - 12px);
    margin-left: auto;
    margin-right: auto;
    padding-left: calc(8px + env(safe-area-inset-left));
    padding-right: calc(8px + env(safe-area-inset-right));
    box-sizing: border-box;
  }

  body.page-template-page_agenda .hk-agenda-calendar,
  body.page-template-page_agenda .hk-agenda-calendar-week,
  body.page-template-page_agenda .hk-agenda-calendar-week__days,
  body.page-template-page_agenda .hk-agenda-calendar__weekdays {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  body.page-template-page_agenda .hk-agenda-day__header,
  body.page-template-page_agenda .hk-agenda-day__list {
    padding-left: 12px;
    padding-right: 12px;
  }

  body.page-template-page_agenda .hk-agenda-calendar__months {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  body.page-template-page_agenda .hk-agenda-calendar__month-link {
    white-space: nowrap;
  }

  body.page-template-page_agenda .hk-agenda-calendar {
    overflow: hidden;
  }

  body.page-template-page_agenda .hk-agenda-calendar__weekdays,
  body.page-template-page_agenda .hk-agenda-calendar-week {
    min-width: 0;
  }

  body.page-template-page_agenda .hk-agenda-calendar__header {
    padding: 12px 12px;
  }

  body.page-template-page_agenda .hk-agenda-calendar__weekdays span {
    min-height: 28px;
    font-size: 0.62rem;
  }

  body.page-template-page_agenda .hk-agenda-calendar-week {
    --hk-calendar-week-base: 66px;
    --hk-calendar-event-height: 16px;
    --hk-calendar-event-gap: 3px;
  }

  body.page-template-page_agenda .hk-agenda-calendar-day {
    padding: 4px 3px;
  }

  body.page-template-page_agenda .hk-agenda-calendar-day__number {
    font-size: 0.72rem;
  }

  body.page-template-page_agenda .hk-agenda-calendar-event {
    font-size: 0.58rem;
    border-radius: 6px;
    padding: 0 4px;
    left: calc((100% / 7) * var(--hk-col-start) + 2px);
    width: calc((100% / 7) * var(--hk-col-span) - 4px);
    top: calc(20px + (var(--hk-event-lane) * (var(--hk-calendar-event-height) + var(--hk-calendar-event-gap))));
  }

  /* Date popover: stack fields and keep the OK button accessible on mobile. */
  body.page-template-page_agenda .hk-agenda-date-popover {
    padding: 14px;
    align-items: flex-end;
  }

  body.page-template-page_agenda .hk-agenda-date-popover__panel {
    width: 100%;
  }

  body.page-template-page_agenda .hk-agenda-date-popover__form {
    flex-direction: column;
    align-items: stretch;
  }

  body.page-template-page_agenda .hk-agenda-date-popover__grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  body.page-template-page_agenda .hk-agenda-date-popover__apply {
    align-self: flex-end;
    margin-top: 8px;
  }
}
