/*
Theme Name: KendoKaizen
Theme URI: https://example.com/kendokaizen
Description: Kadence child theme for the KendoKaizen European kendo events agenda.
Author: KendoKaizen
Template: kadence
Version: 0.8.5
Text Domain: kendokaizen
*/

:root {
  --kk-paper: #f5f6f8;
  --kk-paper-deep: #e9edf1;
  --kk-ink: #171c21;
  --kk-muted: #66717a;
  --kk-line: rgba(28, 35, 41, 0.14);
  --kk-red: #ff935c;
  --kk-red-dark: #ffb27f;
  --kk-hover-orange: #ff7835;
  --kk-button: #ff935c;
  --kk-button-hover: #ffb27f;
  --kk-gold: #ca3c0c;
  --kk-white: #ffffff;
  --kk-on-accent: #ffffff;
  --kk-shell-top: #ffffff;
  --kk-shell-bottom: #f1f3f5;
  --kk-topbar-bg: rgba(255, 255, 255, .92);
  --kk-surface-glass: rgba(255, 255, 255, .94);
  --kk-outside: #f0f2f4;
  --kk-description: #47515a;
  --kk-overlay: rgba(17, 24, 30, .72);
  --kk-shadow: 0 18px 48px rgba(28, 35, 41, 0.10);
  --kk-radius: 16px;
  color-scheme: light;
}

html[data-kk-theme="dark"] {
  --kk-paper: #0d1115;
  --kk-paper-deep: #1d252b;
  --kk-ink: #f4f7f8;
  --kk-muted: #b5c0c8;
  --kk-line: rgba(181, 192, 200, .22);
  --kk-red: #ff935c;
  --kk-red-dark: #ffc5a7;
  --kk-hover-orange: #ffb27f;
  --kk-button: #ff935c;
  --kk-button-hover: #ffb27f;
  --kk-gold: #ff935c;
  --kk-white: #151b20;
  --kk-on-accent: #14181c;
  --kk-shell-top: #0d1115;
  --kk-shell-bottom: #10161b;
  --kk-topbar-bg: rgba(21, 27, 32, .93);
  --kk-surface-glass: rgba(21, 27, 32, .94);
  --kk-outside: #11171c;
  --kk-description: #c2cbd1;
  --kk-overlay: rgba(0, 0, 0, .78);
  --kk-shadow: 0 20px 55px rgba(0, 0, 0, .34);
  color-scheme: dark;
}

body.home {
  background: var(--kk-paper);
  color: var(--kk-ink);
}

body.home #masthead,
body.home #colophon {
  display: none;
}

.kk-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 2%, color-mix(in srgb, var(--kk-red) 8%, transparent), transparent 25rem),
    linear-gradient(180deg, var(--kk-shell-top) 0%, var(--kk-paper) 42%, var(--kk-shell-bottom) 100%);
}

.kk-topbar {
  border-bottom: 1px solid var(--kk-line);
  background: var(--kk-topbar-bg);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.kk-topbar-inner,
.kk-main,
.kk-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.kk-topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.kk-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--kk-ink);
  text-decoration: none;
}

.kk-brand-mark {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
}

.kk-brand-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kk-brand-image-dark {
  display: none;
}

html[data-kk-theme="dark"] .kk-brand-image-light {
  display: none;
}

html[data-kk-theme="dark"] .kk-brand-image-dark {
  display: block;
}

.kk-brand-name {
  font: 700 1.35rem/1 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}

.kk-topnote {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kk-muted);
}

.kk-topbar-actions {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 18px;
}

.kk-theme-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--kk-line);
  border-radius: 11px;
  background: var(--kk-paper-deep);
}

.kk-theme-button {
  min-width: 36px;
  height: 32px;
  padding: 0 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--kk-muted);
  cursor: pointer;
  font: inherit;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
}

.kk-theme-button[aria-pressed="true"] {
  background: var(--kk-ink);
  color: var(--kk-paper);
}

.kk-main {
  padding: 54px 0 74px;
}

.kk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 42px;
  margin-bottom: 34px;
}

.kk-eyebrow {
  margin: 0 0 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--kk-red);
}

body.home .kk-hero h1 {
  margin: 0;
  max-width: 760px;
  color: var(--kk-ink);
  font: 700 clamp(3rem, 7vw, 6.8rem)/.87 Georgia, "Times New Roman", serif;
  letter-spacing: -.065em;
}

body.home .kk-hero h1 em {
  display: block;
  font-weight: 400;
  color: var(--kk-red);
}

.kk-hero-copy {
  max-width: 310px;
  margin: 0 0 7px;
  color: var(--kk-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.kk-app {
  background: var(--kk-surface-glass);
  border: 1px solid var(--kk-line);
  border-radius: 20px;
  box-shadow: var(--kk-shadow);
  overflow: hidden;
}

.kk-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--kk-line);
  background: var(--kk-surface-glass);
}

.kk-view-switch {
  display: inline-flex;
  gap: 8px;
  padding: 0;
  background: transparent;
}

.kk-view-button,
.kk-month-button,
.kk-close,
.kk-event-button {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.kk-view-button {
  padding: 9px 15px;
  border: 1px solid var(--kk-line);
  border-radius: 10px;
  background: var(--kk-white);
  color: var(--kk-muted);
  font-size: .82rem;
  font-weight: 700;
}

.kk-view-button.is-active {
  color: var(--kk-white);
  background: var(--kk-ink);
}

body.home .kk-view-button:hover,
body.home .kk-view-button:focus {
  color: var(--kk-muted);
  background: var(--kk-white);
  border-color: var(--kk-line);
}

body.home .kk-view-button.is-active,
body.home .kk-view-button.is-active:hover,
body.home .kk-view-button.is-active:focus {
  color: var(--kk-white);
  background: var(--kk-ink);
  border-color: var(--kk-ink);
}

.kk-filters {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.kk-filters select {
  min-width: 145px;
  padding: 10px 36px 10px 13px;
  border: 1px solid var(--kk-line);
  border-radius: 10px;
  background-color: var(--kk-white);
  color: var(--kk-ink);
  font-size: .82rem;
}

.kk-result-count {
  font-size: .78rem;
  color: var(--kk-muted);
  white-space: nowrap;
}

.kk-panel {
  padding: 26px;
}

.kk-list {
  display: grid;
  gap: 16px;
}

.kk-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 13px;
  background: var(--kk-white);
  border: 1px solid var(--kk-line);
  border-radius: var(--kk-radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.kk-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--kk-red) 46%, transparent);
  box-shadow: 0 12px 32px rgba(28, 35, 41, .10);
}

.kk-poster {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: var(--kk-ink);
}

.kk-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kk-card-main {
  min-width: 0;
}

.kk-card-topline,
.kk-modal-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--kk-muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.kk-modal-kicker {
  font-size: .82rem;
  letter-spacing: .09em;
}

.kk-type {
  color: var(--kk-red);
}

body.home .kk-card h2 {
  margin: 0 0 8px;
  color: var(--kk-ink);
  font: 700 clamp(1.3rem, 2.5vw, 2rem)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

.kk-card-location,
.kk-card-summary {
  margin: 0;
  color: var(--kk-muted);
}

.kk-card-summary {
  margin-top: 10px;
  max-width: 650px;
  font-size: .9rem;
  line-height: 1.55;
}

.kk-card-side {
  min-width: 118px;
  padding: 8px 8px 8px 18px;
  border-left: 1px solid var(--kk-line);
  text-align: right;
}

.kk-price {
  display: block;
  margin-bottom: 14px;
  color: var(--kk-ink);
  font: 700 1rem/1.2 Georgia, "Times New Roman", serif;
}

.kk-event-button {
  padding: 10px 14px;
  border-radius: 10px;
  color: #14181c;
  background: var(--kk-button);
  font-size: .78rem;
  font-weight: 700;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.home .kk-event-button:hover,
body.home .kk-event-button:focus {
  background: var(--kk-button-hover);
  color: #14181c;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--kk-button-hover) 30%, transparent),
    0 10px 24px color-mix(in srgb, var(--kk-button) 28%, transparent);
  transform: translateY(-2px) scale(1.035);
}

.kk-calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

body.home .kk-calendar-head h2 {
  margin: 0;
  color: var(--kk-ink);
  font: 700 1.8rem/1 Georgia, "Times New Roman", serif;
}

.kk-month-nav {
  display: flex;
  gap: 8px;
}

.kk-month-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--kk-white);
  color: var(--kk-ink);
  border: 1px solid var(--kk-line);
  font-size: 1.1rem;
}

.kk-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--kk-line);
  border-left: 1px solid var(--kk-line);
}

.kk-weekday,
.kk-day {
  border-right: 1px solid var(--kk-line);
  border-bottom: 1px solid var(--kk-line);
}

.kk-weekday {
  padding: 10px 8px;
  background: var(--kk-ink);
  color: var(--kk-white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.kk-day {
  min-height: 125px;
  padding: 8px;
  background: var(--kk-white);
}

.kk-day.is-outside {
  background: var(--kk-outside);
}

.kk-day-number {
  display: block;
  margin-bottom: 8px;
  color: var(--kk-muted);
  font-size: .72rem;
  font-weight: 700;
}

.kk-calendar-week {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--kk-calendar-columns, 7), minmax(0, 1fr));
  position: relative;
  border: 0;
}

.kk-calendar-week .kk-day {
  grid-row: 1;
  min-height: max(125px, var(--kk-calendar-min-height, 104px));
}

.kk-calendar-span-event {
  grid-row: 1;
  align-self: start;
  z-index: 3;
  width: auto;
  min-width: 0;
  height: 36px;
  margin: 50px 6px 0;
  padding: 7px 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 9px;
}

.kk-calendar-span-event.continues-before {
  margin-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.kk-calendar-span-event.continues-after {
  margin-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.kk-calendar-event {
  display: flex;
  align-items: center;
  gap: .48rem;
  width: 100%;
  margin: 0 0 5px;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: var(--kk-button);
  color: #14181c;
  cursor: pointer;
  font: inherit;
  font-size: clamp(.95rem, 1.05vw, 1.08rem);
  font-weight: 400;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.kk-calendar-event-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kk-calendar-event-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kk-calendar-event-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.home .kk-calendar-event:hover,
body.home .kk-calendar-event:focus,
body.home .kk-calendar-event:focus-visible {
  background: var(--kk-button-hover) !important;
  color: #14181c !important;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--kk-button-hover) 30%, transparent),
    0 10px 24px color-mix(in srgb, var(--kk-button) 28%, transparent);
  transform: translateY(-2px) scale(1.035);
  outline: 0;
}

.kk-empty {
  padding: 45px 20px;
  color: var(--kk-muted);
  text-align: center;
}

.kk-modal[hidden] {
  display: none;
}

.kk-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.kk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--kk-overlay);
  backdrop-filter: blur(5px);
}

.kk-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(780px, calc(100vh - 44px));
  overflow: auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  background: var(--kk-white);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.kk-modal-image {
  min-height: auto;
  background: #F5F2EC;
  padding: 18px 16px;
  overflow: hidden;
}

.kk-modal-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.kk-modal-side-brand {
  /* The modal sidebar always uses a warm light background, even in dark mode. */
  color: #34383d;
  font: 700 1.6rem/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.02em;
}

.kk-modal-poster-frame {
  border-radius: 20px;
  padding: 12px;
  background: #FFFFFF;
  border: 1px solid color-mix(in srgb, var(--kk-line) 88%, transparent);
  box-shadow: 0 12px 32px rgba(22, 28, 34, 0.08);
}

.kk-modal-poster {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  background: #FFFFFF;
}

.kk-modal-image.has-placeholder .kk-modal-poster-frame {
  background: transparent;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.kk-modal-placeholder {
  display: flex;
  width: 100%;
}

.kk-modal-placeholder-card {
  position: relative;
  width: 100%;
  min-height: 430px;
  padding: 18px 18px 20px;
  color: #fff9f5;
  background: linear-gradient(135deg, #17191F 0%, #2A3038 100%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.kk-modal-placeholder-stripe,
.kk-modal-placeholder-header,
.kk-modal-placeholder-brand,
.kk-modal-placeholder-logo,
.kk-modal-placeholder-divider {
  display: none;
}

.kk-modal-placeholder-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 84%;
  margin: 0 auto;
  padding-top: 6px;
}

.kk-modal-placeholder-title {
  color: #FFF9F5;
  font: 800 clamp(1.6rem, 1.8vw, 2rem)/.92 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.04em;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.kk-modal-placeholder-card.is-long-title .kk-modal-placeholder-title {
  font-size: clamp(1.34rem, 1.45vw, 1.7rem);
}

.kk-modal-placeholder-card.is-very-long-title .kk-modal-placeholder-title {
  font-size: clamp(1.12rem, 1.2vw, 1.42rem);
  line-height: .98;
}

.kk-modal-placeholder-type {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 16px;
  color: #D8DBDF;
  font: 700 .88rem/1.15 Arial, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.kk-modal-placeholder-type-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FF7A45;
  flex: 0 0 18px;
}

.kk-modal-placeholder-type-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kk-modal-placeholder-meta {
  width: 84%;
  margin: 0 auto;
}

.kk-modal-placeholder-date {
  color: #FF7A45;
  font: 800 1.05rem/1.12 Arial, sans-serif;
  margin-bottom: 6px;
}

.kk-modal-placeholder-location {
  color: #D8DBDF;
  font: 500 .88rem/1.15 Arial, sans-serif;
  text-transform: uppercase;
}

.kk-modal-placeholder-note {
  margin-top: 12px;
  color: rgba(216,219,223,.72);
  font: 500 .68rem/1.35 Arial, sans-serif;
  letter-spacing: .03em;
}

.kk-modal-map-card {
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--kk-line) 88%, transparent);
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(22, 28, 34, 0.06);
  padding: 10px;
}

.kk-modal-map-head {
  margin: 2px 4px 8px;
  color: var(--kk-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kk-modal-map-frame {
  display: block;
  width: 100%;
  height: 178px;
  border: 0;
  border-radius: 12px;
  background: #EEF2F5;
}

.kk-modal-map-large {
  display: inline-flex;
  margin: 9px 4px 2px;
  color: var(--kk-muted);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
}

.kk-modal-map-large:hover,
.kk-modal-map-large:focus-visible {
  color: var(--kk-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kk-modal-content {
  padding: 34px;
}

.kk-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 0;
  background: transparent;
  color: var(--kk-ink);
  font-size: 1.35rem;
}

body.home button.kk-close,
body.home button.kk-close:hover,
body.home button.kk-close:focus,
body.home button.kk-close:focus-visible {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--kk-ink);
  box-shadow: none;
  outline: 0;
}

body.home .kk-modal h2 {
  margin: 0 42px 16px 0;
  color: var(--kk-ink);
  font: 700 clamp(2rem, 5vw, 3.4rem)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
}

.kk-theme-button svg {
  display: block;
  width: 17px;
  height: 17px;
  margin: auto;
}

.kk-modal-location {
  margin: 0 0 22px;
  color: var(--kk-muted);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.45;
}

.kk-modal-map-link {
  display: inline-flex;
  align-items: flex-start;
  gap: .42rem;
  color: inherit;
  text-decoration: none;
}

.kk-modal-map-link:hover,
.kk-modal-map-link:focus-visible {
  color: var(--kk-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.kk-modal-description {
  color: var(--kk-description);
  line-height: 1.7;
}

.kk-modal-description > :first-child {
  margin-top: 0;
}

.kk-modal-description > :last-child {
  margin-bottom: 0;
}

.kk-modal-description p {
  margin: 0 0 1rem;
}

.kk-modal-description ul,
.kk-modal-description ol {
  margin: .55rem 0 1rem;
  padding-left: 1.4rem;
}

.kk-modal-description li + li {
  margin-top: .28rem;
}

.kk-modal-description strong,
.kk-modal-description b {
  color: var(--kk-ink);
  font-weight: 700;
}

.kk-modal-meta {
  display: block;
  margin: 26px 0 30px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--kk-line);
}

.kk-modal-info-group {
  min-width: 0;
}

.kk-modal-info-heading {
  margin: 0 0 8px;
  color: var(--kk-ink);
  font: 700 1.12rem/1.2 Georgia, "Times New Roman", serif;
}

.kk-modal-info-rows {
  border-top: 1px solid color-mix(in srgb, var(--kk-line) 82%, transparent);
}

.kk-modal-info-row {
  display: grid;
  grid-template-columns: minmax(94px, .72fr) minmax(0, 1.35fr);
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--kk-line) 78%, transparent);
}

.kk-modal-meta-label {
  color: var(--kk-muted);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.kk-modal-info-value {
  min-width: 0;
}

.kk-modal-meta-text {
  margin: 0;
  color: var(--kk-ink);
  font-size: .94rem;
  line-height: 1.42;
}

.kk-modal-meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--kk-ink);
  font-size: .94rem;
  line-height: 1.42;
}

.kk-modal-meta-list li {
  position: relative;
  padding-left: .9rem;
}

.kk-modal-meta-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--kk-red);
  font-weight: 800;
}

.kk-modal-meta-list li + li {
  margin-top: 3px;
}

.kk-modal-info-row.is-fees .kk-modal-info-value {
  color: var(--kk-ink);
}

.kk-modal-link {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 11px;
  color: #14181c;
  background: var(--kk-button);
  font-weight: 700;
  text-decoration: none;
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.kk-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.kk-share {
  position: relative;
}

.kk-share-button {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid color-mix(in srgb, var(--kk-red) 70%, var(--kk-line));
  border-radius: 11px;
  background: transparent;
  color: var(--kk-ink);
  font-weight: 700;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

body.home .kk-share-button:hover,
body.home .kk-share-button:focus {
  border-color: var(--kk-hover-orange);
  background: color-mix(in srgb, var(--kk-hover-orange) 18%, transparent);
  color: var(--kk-ink);
  transform: translateY(-2px);
}

.kk-share-menu {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 4;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--kk-line);
  border-radius: 13px;
  background: var(--kk-white);
  box-shadow: var(--kk-shadow);
}

.kk-share-menu[hidden] {
  display: none;
}

.kk-share-menu a,
.kk-share-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--kk-ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.kk-share-menu a:hover,
.kk-share-menu a:focus,
.kk-share-menu button:hover,
.kk-share-menu button:focus {
  background: color-mix(in srgb, var(--kk-hover-orange) 20%, transparent);
  color: var(--kk-ink);
}

.kk-share-status {
  min-height: 1.2em;
  margin: 6px 10px 2px;
  color: var(--kk-muted);
  font-size: .74rem;
}

body.home .kk-modal-link:hover,
body.home .kk-modal-link:focus {
  background: var(--kk-button-hover);
  color: #14181c;
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--kk-button-hover) 30%, transparent),
    0 10px 24px color-mix(in srgb, var(--kk-button) 28%, transparent);
  transform: translateY(-2px) scale(1.025);
}

.kk-footer {
  padding: 30px 0;
  border-top: 1px solid var(--kk-line);
  color: var(--kk-muted);
  font-size: .78rem;
}

.kk-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

body.kk-modal-open {
  overflow: hidden;
}

.kk-theme-button:focus-visible,
.kk-view-button:focus-visible,
.kk-month-button:focus-visible,
.kk-event-button:focus-visible,
.kk-close:focus-visible,
.kk-modal-link:focus-visible,
.kk-share-button:focus-visible,
.kk-share-menu a:focus-visible,
.kk-share-menu button:focus-visible,
.kk-filters select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--kk-button-hover) 70%, white);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .kk-topnote { display: none; }
  .kk-hero { grid-template-columns: 1fr; gap: 18px; }
  .kk-hero-copy { max-width: 600px; }
  .kk-toolbar { grid-template-columns: 1fr; }
  .kk-filters { justify-content: flex-start; flex-wrap: wrap; }
  .kk-result-count { display: none; }
  .kk-card { grid-template-columns: 105px minmax(0, 1fr); }
  .kk-card-side { grid-column: 2; display: flex; align-items: center; justify-content: space-between; border: 0; padding: 0; text-align: left; }
  .kk-price { margin: 0; }
  .kk-day { min-height: 92px; }
  .kk-calendar-event {
    overflow: hidden;
    white-space: normal;
    text-overflow: clip;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.2;
  }
  .kk-calendar-span-event {
    display: block;
    height: 34px;
    white-space: nowrap;
    text-overflow: ellipsis;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    line-height: 1.2;
  }
  .kk-modal-dialog { grid-template-columns: 1fr; }
  .kk-modal-image { min-height: auto; max-height: none; padding: 14px; }
  .kk-modal-side { gap: 12px; }
  .kk-modal-poster { max-height: 60vh; }
  .kk-modal-map-frame { height: 160px; }
  .kk-modal-placeholder-card { min-height: 360px; padding: 16px 16px 18px; }
  .kk-modal-placeholder-body,
  .kk-modal-placeholder-meta { width: 88%; }
  .kk-modal-placeholder-title { font-size: clamp(1.35rem, 5vw, 1.78rem); }
  .kk-modal-placeholder-card.is-long-title .kk-modal-placeholder-title { font-size: clamp(1.18rem, 4.5vw, 1.48rem); }
  .kk-modal-placeholder-card.is-very-long-title .kk-modal-placeholder-title { font-size: clamp(1.02rem, 3.9vw, 1.28rem); }
  .kk-modal-placeholder-type { margin-top: 10px; font-size: .76rem; }
  .kk-modal-placeholder-type-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .kk-modal-placeholder-date { font-size: .98rem; }
  .kk-modal-placeholder-location { font-size: .82rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 560px) {
  .kk-topbar-inner, .kk-main, .kk-footer-inner { width: min(100% - 24px, 1180px); }
  .kk-main { padding-top: 34px; }
  .kk-hero h1 { font-size: clamp(2.75rem, 17vw, 4.6rem); }
  .kk-panel { padding: 12px; }
  .kk-card { grid-template-columns: 82px minmax(0, 1fr); gap: 13px; }
  .kk-card-summary { display: none; }
  .kk-card h2 { font-size: 1.15rem; }
  .kk-card-side { grid-column: 1 / -1; }
  .kk-calendar-grid { min-width: 690px; }
  .kk-calendar-scroll { overflow-x: auto; }
  .kk-calendar-event {
    font-size: .84rem;
    padding: 7px 6px;
  }
  .kk-modal-content { padding: 28px 22px; }
  .kk-modal-meta {
    margin-top: 22px;
    padding-top: 18px;
  }
  .kk-modal-info-row { grid-template-columns: minmax(92px, .72fr) minmax(0, 1.4fr); }

  .kk-footer-inner { flex-direction: column; }
}

/* Contact and community submissions */
html { scroll-behavior: smooth; }

.kk-site-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.kk-site-nav a {
  padding: 9px 12px;
  border-radius: 9px;
  color: var(--kk-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}

body.home .kk-site-nav a:hover,
body.home .kk-site-nav a:focus {
  background: var(--kk-paper-deep);
  color: var(--kk-ink);
}

#events,
#kirikaeshi,
#contact,
#submit-event {
  scroll-margin-top: 100px;
}

.kk-contact {
  margin-top: 74px;
  padding-top: 64px;
  border-top: 1px solid var(--kk-line);
}

.kk-contact-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

body.home .kk-contact-heading h2 {
  margin: 0 0 14px;
  color: var(--kk-ink);
  font: 700 clamp(2.2rem, 4vw, 3.5rem)/.95 Georgia, "Times New Roman", serif;
  letter-spacing: -.05em;
}

.kk-contact-heading > p:last-child {
  margin: 0;
  max-width: 620px;
  color: var(--kk-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.kk-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: start;
}

.kk-contact-card {
  padding: 28px;
  border: 1px solid var(--kk-line);
  border-radius: 20px;
  background: var(--kk-surface-glass);
  box-shadow: var(--kk-shadow);
}

.kk-contact-card-copy {
  margin-bottom: 24px;
}

.kk-card-kicker {
  margin: 0 0 9px;
  color: var(--kk-red);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.home .kk-contact-card h3 {
  margin: 0 0 10px;
  color: var(--kk-ink);
  font: 700 1.85rem/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.03em;
}

.kk-contact-card-copy > p:last-child {
  margin: 0;
  color: var(--kk-description);
  line-height: 1.65;
}

.kk-form {
  display: grid;
  gap: 15px;
}

.kk-event-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kk-form label {
  display: grid;
  gap: 7px;
  color: var(--kk-ink);
  font-size: .78rem;
  font-weight: 700;
}

.kk-form input,
.kk-form select,
.kk-form textarea {
  width: 100%;
  min-height: 45px;
  padding: 11px 12px;
  border: 1px solid var(--kk-line);
  border-radius: 10px;
  background: var(--kk-white);
  color: var(--kk-ink);
  font: inherit;
  font-weight: 400;
  box-sizing: border-box;
}

.kk-form textarea {
  min-height: 120px;
  resize: vertical;
}

.kk-form input[type="file"] {
  padding: 9px;
}

.kk-form small,
.kk-form-note {
  color: var(--kk-muted);
  font-size: .74rem;
  font-weight: 400;
  line-height: 1.5;
}

.kk-field-wide {
  grid-column: 1 / -1;
}

.kk-submit {
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 11px;
  background: var(--kk-button);
  color: #14181c;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.home .kk-submit:hover,
body.home .kk-submit:focus {
  background: var(--kk-button-hover);
  color: #14181c;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--kk-button) 24%, transparent);
  transform: translateY(-1px);
}

.kk-form input:focus-visible,
.kk-form select:focus-visible,
.kk-form textarea:focus-visible,
.kk-submit:focus-visible,
.kk-site-nav a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--kk-red) 70%, white);
  outline-offset: 3px;
}

.kk-form-notice {
  margin: 0 0 22px;
  padding: 13px 16px;
  border: 1px solid var(--kk-line);
  border-radius: 11px;
  font-size: .88rem;
  font-weight: 700;
}

.kk-form-notice.is-success {
  background: color-mix(in srgb, #4f8a61 14%, var(--kk-white));
}

.kk-form-notice.is-error {
  background: color-mix(in srgb, #b43d3d 13%, var(--kk-white));
}

.kk-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .kk-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .kk-site-nav { gap: 0; }
  .kk-site-nav a { padding-inline: 8px; font-size: .7rem; }
  .kk-theme-switch { display: none; }
  .kk-contact { margin-top: 54px; padding-top: 46px; }
  .kk-contact-card { padding: 20px; }
  .kk-event-form { grid-template-columns: 1fr; }
  .kk-field-wide { grid-column: auto; }
}

/* Community collaborator */
.kk-collaborator {
  margin: 68px 0 12px;
  padding-top: 12px;
}

.kk-collaborator-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.kk-collaborator-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

.kk-collaborator-card {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  min-height: 138px;
  padding: 26px 28px;
  border: 1px solid var(--kk-line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--kk-panel) 88%, transparent);
  color: var(--kk-ink);
  text-decoration: none;
  box-shadow: 0 18px 50px color-mix(in srgb, #000 8%, transparent);
}

body.home .kk-collaborator-card:hover,
body.home .kk-collaborator-card:focus {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--kk-red) 58%, var(--kk-line));
  box-shadow: 0 22px 56px color-mix(in srgb, #000 12%, transparent);
  color: var(--kk-ink);
}

.kk-collaborator-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 14px 20px;
  border-radius: 18px;
  background: var(--kk-ink);
  color: var(--kk-bg);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-style: italic;
  letter-spacing: -.04em;
}

.kk-collaborator-copy {
  display: grid;
  gap: 7px;
}

.kk-collaborator-copy strong {
  font-size: 1.05rem;
}

.kk-collaborator-copy span {
  max-width: 600px;
  color: var(--kk-muted);
  line-height: 1.55;
}

.kk-collaborator-link {
  white-space: nowrap;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.kk-collaborator-card:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--kk-red) 70%, white);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .kk-collaborator-card {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 22px;
  }

  .kk-collaborator-wordmark {
    justify-content: flex-start;
  }

  .kk-collaborator-link {
    justify-self: start;
  }
}


/* Kirikaeshi partner section */
.kk-partner {
  margin-top: 66px;
  padding-top: 56px;
  border-top: 1px solid var(--kk-line);
}

.kk-partner-intro {
  max-width: 900px;
  margin-bottom: 30px;
}

body.home .kk-partner-intro h2 {
  margin: 0 0 14px;
  color: var(--kk-ink);
  font: 700 clamp(2.2rem, 4vw, 3.5rem)/.95 Georgia, "Times New Roman", serif;
  letter-spacing: -.05em;
}

.kk-partner-card {
  padding: 26px 28px 24px;
  border: 1px solid var(--kk-line);
  border-radius: 26px;
  background: var(--kk-surface-glass);
  box-shadow: var(--kk-shadow);
}

.kk-partner-top {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.kk-partner-logo-box {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 22px 28px;
  border-radius: 24px;
  border: 1px solid var(--kk-line);
  background: #fff;
}

.kk-partner-logo-box img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
}

.kk-partner-copy p {
  margin: 0;
  max-width: 620px;
  color: var(--kk-description);
  font-size: 1.22rem;
  line-height: 1.58;
}

.kk-partner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--kk-line);
  border-radius: 14px;
  background: var(--kk-white);
  color: var(--kk-ink);
  font-size: .9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.home .kk-partner-cta:hover,
body.home .kk-partner-cta:focus {
  color: var(--kk-ink);
  border-color: color-mix(in srgb, var(--kk-red) 52%, var(--kk-line));
  background: color-mix(in srgb, var(--kk-red) 8%, var(--kk-white));
  transform: translateY(-1px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--kk-red) 10%, transparent);
}

.kk-partner-gallery {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--kk-line);
}

.kk-partner-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.kk-partner-gallery-label {
  margin: 0;
  color: var(--kk-muted);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.kk-carousel-controls {
  display: inline-flex;
  gap: 8px;
}

.kk-carousel-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--kk-line);
  border-radius: 50%;
  background: var(--kk-white);
  color: var(--kk-ink);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

body.home .kk-carousel-button:hover,
body.home .kk-carousel-button:focus {
  border-color: color-mix(in srgb, var(--kk-red) 52%, var(--kk-line));
  background: color-mix(in srgb, var(--kk-red) 8%, var(--kk-white));
  transform: translateY(-1px);
}

.kk-partner-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 24px) / 3);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.kk-partner-slide {
  display: grid;
  gap: 8px;
  color: var(--kk-ink);
  text-decoration: none;
  scroll-snap-align: start;
}

.kk-partner-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--kk-line);
  border-radius: 16px;
  background: var(--kk-white);
}

.kk-partner-slide span {
  color: var(--kk-muted);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.35;
}

.kk-partner-cta:focus-visible,
.kk-partner-slide:focus-visible,
.kk-carousel-button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--kk-red) 70%, white);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .kk-partner-top {
    grid-template-columns: 1fr;
  }

  .kk-partner-cta {
    justify-self: start;
  }

  .kk-partner-carousel {
    grid-auto-columns: calc((100% - 12px) / 2);
  }
}

@media (max-width: 620px) {
  .kk-partner {
    margin-top: 54px;
    padding-top: 44px;
  }

  .kk-partner-card {
    padding: 20px;
    border-radius: 22px;
  }

  .kk-partner-logo-box {
    min-height: 140px;
    padding: 18px 20px;
    border-radius: 18px;
  }

  .kk-partner-copy p {
    font-size: 1.05rem;
  }

  .kk-partner-carousel {
    grid-auto-columns: calc((100% - 12px) / 2);
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .kk-partner-carousel {
    grid-auto-columns: 100%;
    gap: 10px;
  }

  .kk-partner-slide span {
    font-size: .72rem;
    line-height: 1.3;
  }
}

/* Mobile navigation refinement */
.kk-mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--kk-line);
  border-radius: 12px;
  background: var(--kk-white);
  color: var(--kk-ink);
  cursor: pointer;
}

.kk-mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.kk-mobile-menu-button[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.kk-mobile-menu-button[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.kk-mobile-menu-button[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 720px) {
  .kk-topbar-inner {
    min-height: 70px;
    position: relative;
  }

  .kk-brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .kk-brand-name {
    font-size: 1.18rem;
  }

  .kk-mobile-menu-button {
    display: block;
  }

  .kk-site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    display: none;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--kk-line);
    border-radius: 14px;
    background: var(--kk-surface-glass);
    box-shadow: var(--kk-shadow);
    backdrop-filter: blur(12px);
  }

  .kk-site-nav.is-open {
    display: grid;
  }

  .kk-site-nav a {
    padding: 12px 14px;
    font-size: .78rem;
  }

  .kk-topbar-actions {
    gap: 8px;
  }

  .kk-theme-switch {
    display: inline-flex;
    order: -1;
    padding: 2px;
    border-radius: 10px;
  }

  .kk-theme-button {
    min-width: 30px;
    width: 30px;
    height: 30px;
    padding: 0;
  }

  .kk-theme-button svg {
    width: 15px;
    height: 15px;
  }

  body.home .kk-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.25rem);
    line-height: .92;
  }

  .kk-hero {
    margin-bottom: 28px;
  }

  .kk-hero-copy {
    font-size: .95rem;
    line-height: 1.55;
  }

  .kk-partner-intro h2,
  body.home .kk-contact-heading h2 {
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .kk-partner-card,
  .kk-contact-card {
    box-shadow: 0 12px 34px rgba(28, 35, 41, .08);
  }
}

@media (max-width: 420px) {
  .kk-topbar-inner,
  .kk-main,
  .kk-footer-inner {
    width: min(100% - 20px, 1180px);
  }

  .kk-brand-name {
    font-size: 1.08rem;
  }

  .kk-main {
    padding-top: 28px;
  }

  .kk-partner-card,
  .kk-contact-card {
    padding: 18px;
  }
}

/* Mobile calendar overflow list */
.kk-calendar-more {
  display: none;
}

.kk-day-modal[hidden] {
  display: none;
}

.kk-day-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: end center;
  padding: 18px;
}

.kk-day-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--kk-overlay);
  backdrop-filter: blur(5px);
}

.kk-day-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(72vh, 620px);
  overflow: auto;
  padding: 26px 22px 22px;
  border: 1px solid var(--kk-line);
  border-radius: 22px;
  background: var(--kk-white);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.kk-day-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: var(--kk-ink);
  cursor: pointer;
  font: 700 1.35rem/1 sans-serif;
}

.kk-day-modal-kicker {
  margin: 0 42px 7px 0;
  color: var(--kk-red);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.home .kk-day-modal-dialog h2 {
  margin: 0 42px 18px 0;
  color: var(--kk-ink);
  font: 700 1.7rem/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -.03em;
}

.kk-day-modal-list {
  display: grid;
  gap: 10px;
}

.kk-day-event-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--kk-line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--kk-red) 9%, var(--kk-white));
  color: var(--kk-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.kk-day-event-row strong {
  font-size: .96rem;
  line-height: 1.3;
}

.kk-day-event-row > span:last-child {
  color: var(--kk-muted);
  font-size: .76rem;
}

.kk-day-event-type {
  color: var(--kk-red);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.home .kk-day-event-row:hover,
body.home .kk-day-event-row:focus {
  border-color: color-mix(in srgb, var(--kk-red) 50%, var(--kk-line));
  background: color-mix(in srgb, var(--kk-red) 14%, var(--kk-white));
  color: var(--kk-ink);
}

@media (max-width: 560px) {
  .kk-day[data-has-events="true"] {
    cursor: pointer;
  }

  .kk-calendar-more {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 5px 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--kk-red-dark);
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: left;
  }

  body.home .kk-calendar-more:hover,
  body.home .kk-calendar-more:focus {
    background: color-mix(in srgb, var(--kk-red) 10%, transparent);
    color: var(--kk-ink);
  }

  .kk-day-modal {
    padding: 12px;
  }

  .kk-day-modal-dialog {
    max-height: 78vh;
    padding: 24px 18px 18px;
    border-radius: 20px;
  }
}

/* Mobile calendar display modes */
.kk-calendar-heading-group {
  display: grid;
  gap: 10px;
}

.kk-mobile-calendar-mode {
  display: none;
}

@media (max-width: 560px) {
  .kk-calendar-head {
    align-items: flex-start;
    gap: 14px;
  }

  .kk-mobile-calendar-mode {
    display: inline-flex;
    width: fit-content;
    padding: 3px;
    border: 1px solid var(--kk-line);
    border-radius: 11px;
    background: var(--kk-paper-deep);
  }

  .kk-calendar-mode-button {
    min-height: 34px;
    padding: 7px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--kk-muted);
    cursor: pointer;
    font: inherit;
    font-size: .74rem;
    font-weight: 800;
  }

  .kk-calendar-mode-button.is-active {
    background: var(--kk-ink);
    color: var(--kk-paper);
  }

  body.home .kk-calendar-mode-button:hover,
  body.home .kk-calendar-mode-button:focus {
    color: var(--kk-ink);
  }

  body.home .kk-calendar-mode-button.is-active:hover,
  body.home .kk-calendar-mode-button.is-active:focus {
    color: var(--kk-paper);
  }

  .kk-calendar-mode-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--kk-red) 70%, white);
    outline-offset: 3px;
  }

  .kk-calendar-grid.is-weekend-view {
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kk-calendar-grid.is-weekend-view .kk-calendar-week {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kk-calendar-grid.is-weekend-view .kk-day {
    min-height: max(150px, calc(54px + var(--kk-calendar-lanes, 1) * 42px));
  }

  .kk-calendar-grid.is-weekend-view .kk-calendar-event {
    font-size: .86rem;
  }
}

@media (max-width: 720px) {
  .kk-calendar-event { gap: .42rem; padding: 7px 8px; }
  .kk-calendar-event-icon { flex-basis: 16px; width: 16px; height: 16px; }
}


.kk-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.15rem;
  padding: 0 3rem 1rem;
}

.kk-calendar-legend-label {
  color: var(--kk-muted);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.kk-calendar-legend-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem 1rem;
}

.kk-calendar-legend-item {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  color: var(--kk-ink);
  font-size: .95rem;
  line-height: 1.2;
}

.kk-calendar-legend-item .kk-calendar-event-icon {
  flex-basis: 16px;
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .kk-calendar-legend {
    padding: 0 1.4rem .9rem;
  }
}

@media (max-width: 560px) {
  .kk-calendar-legend {
    padding: .15rem 0 .8rem;
    gap: .55rem .8rem;
  }

  .kk-calendar-legend-label {
    width: 100%;
    font-size: .84rem;
  }

  .kk-calendar-legend-items {
    gap: .5rem .8rem;
  }

  .kk-calendar-legend-item {
    font-size: .84rem;
  }
}


/* Past events */
.kk-calendar-event.is-past {
  background: color-mix(in srgb, var(--kk-muted) 16%, var(--kk-white));
  color: color-mix(in srgb, var(--kk-ink) 72%, var(--kk-muted));
}

body.home .kk-calendar-event.is-past:hover,
body.home .kk-calendar-event.is-past:focus,
body.home .kk-calendar-event.is-past:focus-visible {
  background: color-mix(in srgb, var(--kk-muted) 25%, var(--kk-white)) !important;
  color: var(--kk-ink) !important;
}

.kk-previous-events {
  margin-top: 24px;
  border-top: 1px solid var(--kk-line);
}

.kk-previous-events[hidden] {
  display: none;
}

.kk-previous-events summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  color: var(--kk-muted);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.kk-previous-events summary::-webkit-details-marker {
  display: none;
}

.kk-previous-events summary::after {
  content: '+';
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kk-line);
  border-radius: 50%;
  color: var(--kk-ink);
  font-size: 1.25rem;
  font-weight: 400;
}

.kk-previous-events[open] summary::after {
  content: '−';
}

.kk-previous-count {
  margin-left: auto;
  color: var(--kk-muted);
  font-weight: 500;
}

.kk-previous-list {
  display: grid;
  gap: 14px;
  padding: 2px 0 10px;
}

.kk-previous-list .kk-card {
  opacity: .78;
}

.kk-list.is-empty {
  min-height: 0;
}

@media (max-width: 560px) {
  .kk-previous-events {
    margin-top: 18px;
  }

  .kk-previous-events summary {
    padding-inline: 2px;
  }
}


/* v0.8.3 — production fixes: form contrast + privacy links */
.kk-privacy-note {
  margin: 0;
  color: var(--kk-muted);
  font-size: .74rem;
  font-weight: 400;
  line-height: 1.55;
}

.kk-privacy-note a,
.kk-footer-link {
  color: var(--kk-ink);
  text-underline-offset: 3px;
}

body.home .kk-privacy-note a:hover,
body.home .kk-privacy-note a:focus,
body.home .kk-footer-link:hover,
body.home .kk-footer-link:focus {
  color: var(--kk-red);
}

/* Explicit dark-mode form contrast. The !important declarations prevent
   parent-theme/browser form styles from forcing black text. */
html[data-kk-theme="dark"] .kk-form input:not([type="file"]),
html[data-kk-theme="dark"] .kk-form textarea,
html[data-kk-theme="dark"] .kk-form select {
  background-color: #151b20 !important;
  color: #f4f7f8 !important;
  -webkit-text-fill-color: #f4f7f8 !important;
  caret-color: #f4f7f8;
}

html[data-kk-theme="dark"] .kk-form input::placeholder,
html[data-kk-theme="dark"] .kk-form textarea::placeholder {
  color: #b5c0c8 !important;
  opacity: .78;
  -webkit-text-fill-color: #b5c0c8 !important;
}

html[data-kk-theme="dark"] .kk-form select option {
  background: #151b20;
  color: #f4f7f8;
}

html[data-kk-theme="dark"] .kk-form input[type="date"] {
  color-scheme: dark;
}

html[data-kk-theme="dark"] .kk-form input:-webkit-autofill,
html[data-kk-theme="dark"] .kk-form input:-webkit-autofill:hover,
html[data-kk-theme="dark"] .kk-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f4f7f8 !important;
  box-shadow: 0 0 0 1000px #151b20 inset !important;
  caret-color: #f4f7f8;
}
