/* Public TK Events directory — editorial index, aligned with the event portal palette. */
.tk-events-mobile-search{display:none}
@media(max-width:700px){
  .tk-events-mobile-search{display:flex;gap:8px;align-items:end;margin-bottom:14px}
  .tk-events-mobile-search .tk-events-field{flex:1;min-width:0}
  .tk-events-mobile-search input[type=search]{font-size:16px}
  .tk-events-mobile-search .tk-events-submit{min-height:46px;padding:10px}
}
body:has(.tk-events-directory) {
  background: #f3f1e8;
}

body:has(.tk-events-directory) > .wrap {
  width: 100%;
  max-width: none;
  padding: 0;
}

.tk-events-directory {
  --tk-ink: #203a32;
  --tk-muted: #66766b;
  --tk-paper: #f3f1e8;
  --tk-panel: #fbfaf5;
  --tk-line: #d9ddcf;
  --tk-rust: #a75f45;
  width: 100%;
  min-height: 80vh;
  overflow: hidden;
  color: var(--tk-ink);
  background: var(--tk-paper);
}

.tk-events-directory *,
.tk-events-directory *::before,
.tk-events-directory *::after {
  box-sizing: border-box;
}

.tk-events-directory :is(a, button, input, select, summary):focus-visible {
  outline: 3px solid #b97555;
  outline-offset: 4px;
}

.tk-events-masthead {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 350px;
  padding: 65px max(28px, calc((100% - 1120px) / 2));
  overflow: hidden;
  color: #f7f4e9;
  background: #203a32;
}

.tk-events-masthead::before {
  position: absolute;
  top: -160px;
  right: 8%;
  width: 490px;
  height: 490px;
  border: 1px solid #f2e9cd27;
  border-radius: 50%;
  content: "";
}

.tk-events-masthead::after {
  position: absolute;
  top: -95px;
  right: calc(8% + 65px);
  width: 360px;
  height: 360px;
  border: 1px solid #f2e9cd1e;
  border-radius: 50%;
  content: "";
}

.tk-events-masthead__inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
}

.tk-events-kicker,
.tk-events-overline,
.tk-events-index,
.tk-events-results-line,
.tk-event-dates__label,
.tk-events-footer > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
}

.tk-events-kicker {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #d8c991;
}

.tk-events-kicker > span {
  width: 24px;
  height: 1px;
  background: #d8c991;
}

.tk-events-masthead h1 {
  margin: 25px 0 15px;
  color: #f7f4e9;
  font-size: clamp(62px, 10vw, 112px);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.075em;
}

.tk-events-masthead h1 em {
  color: #e1c77a;
  font-weight: 400;
}

.tk-events-intro {
  max-width: 465px;
  margin: 0;
  color: #d5dfd5;
  font-size: 15px;
  line-height: 1.75;
}

.tk-events-masthead__rule {
  display: flex;
  gap: 5px;
  margin-top: 27px;
}

.tk-events-masthead__rule span {
  width: 28px;
  height: 3px;
  background: #e1c77a;
}

.tk-events-masthead__rule span:nth-child(2) {
  width: 12px;
  opacity: .58;
}

.tk-events-masthead__rule span:nth-child(3) {
  width: 6px;
  opacity: .3;
}

.tk-events-index {
  position: absolute;
  right: max(28px, calc((100% - 1120px) / 2));
  bottom: 45px;
  display: grid;
  justify-items: end;
  gap: 7px;
  color: #b7c7b8;
}

.tk-events-index strong {
  color: #e1c77a;
  font-size: 50px;
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.05em;
}

.tk-events-main {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
  padding: 49px 0 76px;
}

.tk-events-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 23px;
}

.tk-events-overline {
  margin: 0 0 9px;
  color: #9b624b;
}

.tk-events-section-heading h2,
.tk-events-empty h2 {
  margin: 0;
  color: var(--tk-ink);
  font-size: clamp(29px, 4vw, 39px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.tk-events-total {
  margin: 0 0 4px;
  color: var(--tk-muted);
  font-size: 13px;
}

.tk-events-total strong {
  color: var(--tk-ink);
  font-variant-numeric: tabular-nums;
}

.tk-events-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.55fr) repeat(3, minmax(130px, 1fr)) auto;
  align-items: end;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--tk-line);
  background: #e9e9dd;
}

.tk-events-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.tk-events-field > span {
  color: #53675a;
  font-size: 11px;
  font-weight: 650;
}

.tk-events-field :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid #d1d6c8;
  border-radius: 0;
  color: #263d33;
  background: var(--tk-panel);
  font: inherit;
  font-size: 13px;
}

.tk-events-field input::placeholder {
  color: #89958a;
}

.tk-events-filter-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
}

.tk-events-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid var(--tk-ink);
  border-radius: 0;
  color: #faf8ed;
  background: var(--tk-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.tk-events-submit:hover {
  background: #315145;
}

.tk-events-clear {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #56695c;
  font-size: 11px;
  white-space: nowrap;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tk-events-filter-disclosure {
  display: none;
}

.tk-events-results-line {
  display: flex;
  justify-content: space-between;
  margin: 36px 0 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--tk-line);
  color: #68796d;
}

.tk-events-results-line span:last-child {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
}

.tk-events-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tk-event-card {
  min-width: 0;
  border: 1px solid var(--tk-line);
  background: var(--tk-panel);
}

.tk-event-card__link {
  display: flex;
  height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.tk-event-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 188px;
  overflow: hidden;
  background: color-mix(in srgb, var(--event-accent) 28%, #e5e6d9);
}

.tk-event-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--event-accent) 67%, #152e28), color-mix(in srgb, var(--event-accent) 24%, #e1d8b8));
  content: "";
}

.tk-event-art.has-banner::after {
  background: linear-gradient(90deg, #142c27a8, #142c2720 72%);
}

.tk-event-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tk-event-art__index {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 16px;
  color: #fff9e9c9;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .08em;
}

.tk-event-logo-frame,
.tk-event-monogram {
  position: relative;
  z-index: 1;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid #fff9e98a;
  color: #fff9e9;
  background: #18372c40;
}

.tk-event-logo-frame {
  padding: 10px;
  background: #f9f7ebed;
}

.tk-event-logo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tk-event-monogram {
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.tk-event-period {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 13px;
  padding: 7px 9px;
  border: 1px solid #f7f4e9a1;
  color: #f8f5e9;
  background: #1d3b32c9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tk-event-period--upcoming {
  color: #273c30;
  background: #e3cc83;
}

.tk-event-period--past {
  color: #e8e7dc;
  background: #59675d;
}

.tk-event-period--undated {
  color: #203a32;
  background: #f1eee1;
}

.tk-event-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 19px 17px;
}

.tk-event-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 15px;
}

.tk-event-location {
  overflow: hidden;
  color: #67796b;
  font-size: 10px;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-event-featured {
  flex: none;
  color: #a75f45;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
}

.tk-event-card h2 {
  margin: 12px 0 0;
  color: var(--tk-ink);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.tk-event-description {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: #65756a;
  font-size: 12px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tk-event-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 15px 0 0;
  color: #364d40;
  font-size: 11px;
  line-height: 1.5;
}

.tk-event-dates__label {
  color: #9b624b;
  font-size: 9px;
}

.tk-event-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.tk-event-themes li {
  padding: 5px 8px;
  border: 1px solid #dce0d3;
  color: #566b5c;
  font-size: 10px;
  line-height: 1.25;
}

.tk-event-card__action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: 43px;
  margin-top: auto;
  padding-top: 14px;
  color: #294538;
  font-size: 11px;
  font-weight: 700;
}

.tk-event-card__action > span {
  color: #a75f45;
  font-size: 17px;
}

.tk-events-empty {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 39px;
  border: 1px solid var(--tk-line);
  background: var(--tk-panel);
}

.tk-events-empty__mark {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid #d6dacb;
  color: #9b624b;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.tk-events-empty h2 {
  font-size: 30px;
}

.tk-events-empty p:not(.tk-events-overline) {
  max-width: 560px;
  margin: 10px 0 15px;
  color: #64756a;
  font-size: 13px;
  line-height: 1.65;
}

.tk-events-empty a {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  min-height: 42px;
  color: #294538;
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 4px;
}

.tk-events-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 31px;
  padding-top: 18px;
  border-top: 1px solid var(--tk-line);
}

.tk-events-page-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #294538;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.tk-events-page-link--next {
  justify-self: end;
}

.tk-events-page-link--disabled {
  color: #9aa399;
}

.tk-events-page-count {
  color: #718074;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}

.tk-events-page-count strong {
  color: var(--tk-ink);
  font-variant-numeric: tabular-nums;
}

.tk-events-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 20px max(28px, calc((100% - 1120px) / 2));
  color: #e9e9dc;
  background: #203a32;
}

.tk-events-footer > span:first-child {
  color: #dfc982;
}

.tk-events-footer p {
  margin: 0;
  color: #c3d0c3;
  font-size: 11px;
}

.tk-events-footer__brand {
  color: #f7f4e9;
  font-size: 11px;
  letter-spacing: .12em;
}

@media (max-width: 1050px) {
  .tk-events-filters--desktop {
    grid-template-columns: minmax(160px, 1.4fr) repeat(3, minmax(110px, 1fr));
  }

  .tk-events-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .tk-events-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .tk-events-masthead {
    min-height: 320px;
    padding: 52px 23px 42px;
  }

  .tk-events-masthead::before {
    top: -150px;
    right: -260px;
  }

  .tk-events-masthead::after {
    right: -185px;
  }

  .tk-events-masthead h1 {
    margin-top: 23px;
    font-size: clamp(60px, 15vw, 86px);
  }

  .tk-events-intro {
    max-width: 390px;
    font-size: 14px;
  }

  .tk-events-index {
    display: none;
  }

  .tk-events-main {
    width: calc(100% - 36px);
    padding: 34px 0 50px;
  }

  .tk-events-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 17px;
  }

  .tk-events-total {
    font-size: 12px;
  }

  .tk-events-filters--desktop {
    display: none;
  }

  .tk-events-filter-disclosure {
    display: block;
    border: 1px solid var(--tk-line);
    background: #e9e9dd;
  }

  .tk-events-filter-disclosure summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 0 15px;
    color: #294538;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .tk-events-filter-disclosure summary::-webkit-details-marker {
    display: none;
  }

  .tk-events-disclosure-mark {
    color: #9b624b;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: transform .18s ease;
  }

  .tk-events-filter-disclosure[open] .tk-events-disclosure-mark {
    transform: rotate(45deg);
  }

  .tk-events-filter-disclosure .tk-events-filters {
    grid-template-columns: 1fr 1fr;
    padding: 0 13px 14px;
    border: 0;
    background: transparent;
  }

  .tk-events-field--search {
    grid-column: 1 / -1;
  }

  .tk-events-filter-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 3px;
  }

  .tk-events-submit {
    flex: 1;
  }

  .tk-events-results-line {
    margin-top: 27px;
  }

  .tk-events-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }

  .tk-event-art {
    height: 172px;
  }

  .tk-event-card__body {
    padding: 16px;
  }

  .tk-event-card h2 {
    font-size: 23px;
  }

  .tk-events-empty {
    grid-template-columns: 1fr;
    gap: 19px;
    padding: 24px 19px;
  }

  .tk-events-empty__mark {
    width: 65px;
    height: 65px;
    font-size: 22px;
  }

  .tk-events-empty h2 {
    font-size: 26px;
  }

  .tk-events-pagination {
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
  }

  .tk-events-page-count {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
  }

  .tk-events-page-link--next {
    grid-column: 2;
    grid-row: 2;
  }

  .tk-events-footer {
    min-height: 84px;
    flex-wrap: wrap;
    padding: 19px;
  }

  .tk-events-footer p {
    order: 3;
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tk-event-card {
    transition: transform .18s ease, border-color .18s ease;
  }

  .tk-event-card:hover {
    transform: translateY(-3px);
    border-color: #abb9a7;
  }

  .tk-events-submit,
  .tk-events-page-link,
  .tk-event-card__action {
    transition: color .18s ease, background-color .18s ease;
  }
}

html[data-theme="dark"] body:has(.tk-events-directory) {
  background: #14251f;
}

html[data-theme="dark"] .tk-events-directory {
  --tk-ink: #edf0e5;
  --tk-muted: #bdcbbd;
  --tk-paper: #14251f;
  --tk-panel: #1d332a;
  --tk-line: #3d5144;
  color: #edf0e5;
}

html[data-theme="dark"] .tk-events-main {
  color: #edf0e5;
}

html[data-theme="dark"] .tk-events-section-heading h2,
html[data-theme="dark"] .tk-events-empty h2,
html[data-theme="dark"] .tk-event-card h2,
html[data-theme="dark"] .tk-event-dates,
html[data-theme="dark"] .tk-events-total strong,
html[data-theme="dark"] .tk-events-page-count strong {
  color: #edf0e5;
}

html[data-theme="dark"] .tk-events-filters,
html[data-theme="dark"] .tk-events-filter-disclosure {
  border-color: #3d5144;
  background: #253c30;
}

html[data-theme="dark"] .tk-events-field > span,
html[data-theme="dark"] .tk-events-field :is(input, select),
html[data-theme="dark"] .tk-events-filter-disclosure summary {
  color: #edf0e5;
}

html[data-theme="dark"] .tk-events-field :is(input, select) {
  border-color: #4f6655;
  background: #14251f;
}

html[data-theme="dark"] .tk-events-clear,
html[data-theme="dark"] .tk-event-location,
html[data-theme="dark"] .tk-event-description,
html[data-theme="dark"] .tk-events-empty p:not(.tk-events-overline),
html[data-theme="dark"] .tk-events-total,
html[data-theme="dark"] .tk-events-page-count {
  color: #bfcebf;
}

html[data-theme="dark"] .tk-event-themes li {
  border-color: #4a5e4e;
  color: #c6d2c2;
}

html[data-theme="dark"] .tk-events-empty {
  border-color: #3d5144;
  background: #1d332a;
}

html[data-theme="dark"] .tk-events-empty__mark {
  border-color: #4a5e4e;
}

html[data-theme="dark"] .tk-events-page-link,
html[data-theme="dark"] .tk-event-card__action,
html[data-theme="dark"] .tk-events-empty a {
  color: #e3d08b;
}

@media (max-width: 700px) {
  html[data-theme="dark"] .tk-events-filter-disclosure .tk-events-filters {
    background: transparent;
  }
}
