/**
 * @file
 * Homepage "Camp Weeks" / "Work Days" tables (the events view's block_2 /
 * block_3 displays, embedded via a view_embed paragraph). The default
 * Views table markup (theme.css) is fairly bare -- this adds a card
 * treatment, a proper heading, zebra striping and hover state so the two
 * tables read clearly as distinct, and give the schedule at a glance.
 */

/* Scoped with :has(.view-events) -- .paragraph--type--view-embed alone
 * matches EVERY view_embed paragraph sitewide, including the landing
 * pages' unrelated card-style view embeds (landing_pages view), which this
 * grid/heading treatment previously squeezed into a bogus 2-column layout. */

/* The paragraph's only direct child is the field wrapper -- .field__item
 * (one per embedded view) is the actual thing to lay out side by side. */
.paragraph--type--view-embed:has(.view-events) .field--name-field-view-reference {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp3);
  margin-block: var(--sp3);
}

.paragraph--type--view-embed:has(.view-events) .field__item {
  min-width: 0;
}

/* Stack on narrow screens rather than squeezing two tables side by side. */
@media (max-width: 40rem) {
  .paragraph--type--view-embed:has(.view-events) .field--name-field-view-reference {
    grid-template-columns: 1fr;
  }
}

.paragraph--type--view-embed:has(.view-events) .viewsreference--view-title {
  margin-block-end: var(--sp1);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-neutral-loud);
}

.paragraph--type--view-embed .view-events .views-table {
  width: 100%;
  margin-block: 0;
  border: 1px solid var(--color--gray-90);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.paragraph--type--view-embed .view-events .views-table th {
  padding-inline-start: var(--sp1-5);
  background-color: var(--color--gray-95);
  border-block-end: 2px solid var(--color--primary-50);
}

.paragraph--type--view-embed .view-events .views-table td {
  padding-inline-start: var(--sp1-5);
}

.paragraph--type--view-embed .view-events .views-table tbody tr:nth-child(even) {
  background-color: var(--color--gray-97, var(--color--gray-95));
}

.paragraph--type--view-embed .view-events .views-table tbody tr:hover {
  background-color: var(--color--primary-95, var(--color--gray-90));
}
