/* JFM-352: one responsive component layer; there are no dress-specific branches here. */
.kk-event-card {
  box-sizing: border-box;
  width: min(100%, var(--kk-layout-content-max));
  padding: var(--kk-space-gutter);
  color: var(--kk-color-text);
  background: var(--kk-color-surface);
  border: 1px solid var(--kk-color-border);
  border-radius: var(--kk-radius-card);
  font-family: var(--kk-font-body);
}

.kk-event-card__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--kk-color-text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.kk-event-card__heading {
  margin: 0;
  font-family: var(--kk-font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.1;
}

.kk-event-card__summary {
  max-width: 68ch;
  margin: 1rem 0;
  line-height: 1.55;
}

.kk-event-card__metadata {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.kk-event-card__datum {
  min-width: 0;
  padding: 0.75rem;
  background: var(--kk-color-surface-muted);
}

.kk-event-card__datum dt {
  color: var(--kk-color-text-muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.kk-event-card__datum dd {
  margin: 0.25rem 0 0;
}

.kk-event-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.kk-action {
  min-block-size: 2.75rem;
  padding: 0.75rem 1rem;
  color: var(--kk-color-text);
  border: 2px solid var(--kk-color-accent);
  border-radius: max(0.125rem, calc(var(--kk-radius-card) / 2));
  font-weight: 700;
  line-height: 1.25;
  text-underline-offset: 0.2em;
}

.kk-action--primary {
  color: var(--kk-color-on-accent);
  background: var(--kk-color-accent);
}

.kk-action:focus-visible,
[data-kk-theme-choice]:focus-visible {
  outline: 3px solid var(--kk-color-focus);
  outline-offset: 3px;
}

@media (min-width: 40rem) {
  .kk-event-card__metadata {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .kk-event-card *,
  [data-kk-theme-choice] {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }
}

@media (forced-colors: active) {
  .kk-event-card,
  .kk-action {
    border-color: CanvasText;
  }
}

/* Shared controls and content patterns used outside the homepage. */
.kk-button,
.kk-page button[type="submit"],
.kk-page button[type="button"] {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1rem;
  border: var(--kk-line-thin) solid var(--kk-color-border);
  border-radius: var(--kk-radius-control);
  background: var(--kk-color-surface);
  color: var(--kk-color-text);
  font: 900 0.92rem/1.2 var(--kk-font-body);
  text-decoration: none;
  cursor: pointer;
}

.kk-button--primary,
.kk-page button.kk-button--primary {
  border-color: var(--kk-color-accent);
  background: var(--kk-color-accent);
  color: var(--kk-color-on-accent);
}

.kk-button--highlight {
  background: var(--kk-color-highlight);
  color: var(--kk-color-on-highlight);
}

.kk-button--quiet {
  border-color: transparent;
  background: transparent;
}

.kk-page button.kk-button--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--kk-color-text);
}

.kk-button:hover,
.kk-page button:hover {
  transform: var(--kk-motion-lift);
}

.kk-button[aria-disabled="true"],
.kk-page button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.kk-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}

.kk-field,
.kk-page label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: var(--kk-color-text);
  font-size: 0.88rem;
  font-weight: 850;
}

.kk-page :where(input, select, textarea) {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.75rem;
  border: var(--kk-line-thin) solid var(--kk-color-border);
  border-radius: var(--kk-radius-control);
  background: var(--kk-color-surface);
  color: var(--kk-color-text);
  font: inherit;
}

.kk-page textarea {
  min-height: 7rem;
  resize: vertical;
}

.kk-page :where(input, select, textarea)::placeholder {
  color: var(--kk-color-text-muted);
  opacity: 0.8;
}

.kk-toolbar {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: var(--kk-line-thin) solid var(--kk-color-accent);
  border-radius: var(--kk-radius-card);
  background: var(--kk-color-surface-muted);
  box-shadow: var(--kk-shadow-card);
}

.kk-toolbar__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.kk-toolbar__heading h2,
.kk-toolbar__heading p {
  margin: 0;
}

.kk-toolbar__actions {
  display: flex;
  align-items: end;
}

.kk-result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block: clamp(2rem, 4vw, 3rem) 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: var(--kk-line-thin) solid var(--kk-color-accent);
}

.kk-result-summary p {
  margin: 0;
  color: var(--kk-color-text-muted);
  font-weight: 800;
}

.kk-card-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
}

.kk-listing-card {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  border: var(--kk-line-thin) solid var(--kk-color-accent);
  border-radius: var(--kk-radius-card);
  background: var(--kk-color-surface);
  box-shadow: var(--kk-shadow-card);
  grid-template-rows: 8.5rem 1fr;
}

.kk-listing-card--emphasized {
  border-color: var(--kk-color-secondary);
  outline: var(--kk-line-thin) solid var(--kk-color-secondary);
  outline-offset: 0.25rem;
}

.kk-listing-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  border-bottom: var(--kk-line-thin) solid var(--kk-color-accent);
  background: var(--kk-color-background);
}

.kk-listing-card__visual img {
  width: 7.25rem;
  height: 7.25rem;
  object-fit: contain;
}

.kk-listing-card__badge {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.35rem 0.55rem;
  border-right: var(--kk-line-thin) solid var(--kk-color-border);
  border-bottom: var(--kk-line-thin) solid var(--kk-color-border);
  background: var(--kk-color-highlight);
  color: var(--kk-color-on-highlight);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kk-listing-card__body {
  display: grid;
  align-content: start;
  padding: 1.15rem;
}

.kk-listing-card__body h2,
.kk-listing-card__body h3 {
  margin-bottom: 0.8rem;
}

.kk-listing-card__body h2 a,
.kk-listing-card__body h3 a {
  text-decoration: none;
}

.kk-listing-card__body h2 a:hover,
.kk-listing-card__body h3 a:hover {
  text-decoration: underline;
}

.kk-category-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  color: var(--kk-color-accent);
  font-family: var(--kk-font-label);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kk-category-label__art {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
}

.kk-category-label__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kk-listing-card__time,
.kk-listing-card__place {
  margin: 0.2rem 0;
}

.kk-listing-card__time {
  font-weight: 900;
}

.kk-listing-card__place {
  color: var(--kk-color-text-muted);
}

.kk-panel,
.kk-empty,
.kk-status {
  padding: clamp(1.15rem, 3vw, 2rem);
  border: var(--kk-line-thin) solid var(--kk-color-border);
  border-radius: var(--kk-radius-card);
  background: var(--kk-color-surface);
  box-shadow: var(--kk-shadow-card);
}

.kk-empty {
  grid-column: 1 / -1;
  text-align: center;
}

.kk-empty__art {
  width: min(11rem, 55vw);
  margin: 0 auto 1rem;
}

.kk-empty h2,
.kk-status h1,
.kk-status h2 {
  margin-bottom: 0.8rem;
}

.kk-detail-hero {
  display: grid;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  grid-template-columns: minmax(15rem, 0.72fr) minmax(0, 1.28fr);
  margin-bottom: clamp(2rem, 6vw, 5rem);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
  border-bottom: var(--kk-line-thin) solid var(--kk-color-accent);
}

.kk-detail-hero__art {
  display: grid;
  min-height: 20rem;
  place-items: center;
  padding: 1rem;
  border: var(--kk-line-thin) solid var(--kk-color-accent);
  background: var(--kk-color-surface);
}

.kk-detail-hero__art img {
  width: min(100%, 25rem);
  max-height: 24rem;
  object-fit: contain;
}

.kk-detail-layout {
  display: grid;
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.55fr);
}

.kk-detail-content > section + section {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding-top: 1.5rem;
  border-top: var(--kk-line-thin) solid var(--kk-color-accent);
}

.kk-facts {
  display: grid;
  gap: 0;
  margin: 0;
  border: var(--kk-line-thin) solid var(--kk-color-border);
  background: var(--kk-color-surface);
  box-shadow: var(--kk-shadow-card);
}

.kk-facts__item {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  padding: 0.85rem;
  border-bottom: var(--kk-line-thin) solid var(--kk-color-border);
}

.kk-facts__item:last-child {
  border-bottom: 0;
}

.kk-facts__icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  grid-row: 1 / span 2;
  place-items: center;
}

.kk-facts__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kk-facts dt {
  color: var(--kk-color-text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.kk-facts dd {
  margin: 0;
  font-weight: 750;
}

.kk-link-list,
.kk-coverage-list,
.kk-occurrence-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kk-link-list li,
.kk-occurrence-list li {
  padding-block: 0.75rem;
  border-top: var(--kk-line-thin) solid var(--kk-color-border);
}

.kk-coverage-list {
  display: grid;
  gap: 1rem;
}

.kk-coverage-card {
  display: grid;
  align-items: center;
  gap: 0.6rem 1rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1rem 1.1rem;
  border: var(--kk-line-thin) solid var(--kk-color-border);
  background: var(--kk-color-surface);
}

.kk-coverage-card strong {
  font-size: 1.05rem;
}

.kk-coverage-card span {
  padding: 0.35rem 0.55rem;
  border: var(--kk-line-thin) solid var(--kk-color-border);
  background: var(--kk-color-highlight);
  color: var(--kk-color-on-highlight);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kk-coverage-card small {
  grid-column: 1 / -1;
  color: var(--kk-color-text-muted);
}

.kk-pagination {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 50rem) {
  .kk-detail-hero,
  .kk-detail-layout {
    grid-template-columns: 1fr;
  }

  .kk-detail-hero__art {
    min-height: 15rem;
  }
}

@media (max-width: 40rem) {
  .kk-toolbar__heading,
  .kk-result-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .kk-card-grid {
    grid-template-columns: 1fr;
  }

  .kk-listing-card {
    grid-template-columns: 7.25rem minmax(0, 1fr);
    grid-template-rows: 1fr;
  }

  .kk-listing-card__visual {
    border-right: var(--kk-line-thin) solid var(--kk-color-accent);
    border-bottom: 0;
  }

  .kk-listing-card__visual img {
    width: 6rem;
    height: 6rem;
  }
}
