/* =========================================================
   AGENDA
   ========================================================= */

.agenda-layout {
  --agenda-sidebar-width: clamp(220px, 20vw, 310px);
  --agenda-gap: clamp(38px, 6vw, 110px);

  display: grid;
  grid-template-columns:
    var(--agenda-sidebar-width)
    minmax(0, 1fr);

  gap: var(--agenda-gap);

  padding:
    calc(var(--header-height) + 54px)
    var(--page-gutter)
    120px;
}


/* SIDEBAR */

.agenda-sidebar {
  min-width: 0;
}

.agenda-sidebar-inner {
  position: fixed;
  top: calc(var(--header-height) + 52px);
  left: var(--page-gutter);

  width: var(--agenda-sidebar-width);
}

.agenda-sidebar-section {
  margin-bottom: 42px;
}

.agenda-sidebar h1 {
  margin: 0 0 10px;

  font-size: clamp(26px, 2.8vw, 48px);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.agenda-sidebar h2 {
  margin: 0 0 14px;

  font-size: var(--font-meta);
  font-weight: 400;
}

.agenda-status {
  margin: 0;

  color: var(--accent);
  font-size: var(--font-meta);
}

.agenda-scope,
.agenda-filter {
  display: block;

  width: max-content;
  margin: 8px 0;
  padding: 0;

  border: 0;
  background: transparent;
  color: var(--black);

  font: inherit;
  font-size: var(--font-meta);
  text-align: left;

  cursor: pointer;
}

.agenda-scope:hover,
.agenda-scope:focus-visible,
.agenda-filter:hover,
.agenda-filter:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agenda-scope.is-active,
.agenda-filter.is-active {
  color: var(--accent);
}

.agenda-clear {
  color: var(--accent);
}


/* CONTENT HEADER */

.agenda-content {
  min-width: 0;
}

.agenda-content-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;

  margin-bottom: 70px;
}

.agenda-current-view,
.agenda-result-count {
  margin: 0;

  font-size: var(--font-meta);
}

.agenda-result-count {
  margin-top: 6px;
  color: var(--accent);
}

.agenda-search {
  width: min(100%, 310px);
}

.agenda-search input {
  width: 100%;

  border: 0;
  padding: 8px 0;

  background: transparent;
  color: var(--black);

  font-size: var(--font-meta);
  outline: none;
}

.agenda-search input:focus::placeholder {
  color: var(--accent);
}


/* MONTHS */

.agenda-month {
  margin-bottom: 90px;
}

.agenda-month[hidden] {
  display: none;
}

.agenda-month > h2 {
  margin: 0 0 24px;

  font-size: var(--font-meta);
  font-weight: 400;
  color: var(--accent);
}


/* EVENTS */

.agenda-event {
  display: grid;
  grid-template-columns:
    minmax(90px, 120px)
    minmax(260px, 1fr)
    minmax(150px, 230px);

  gap: clamp(24px, 4vw, 70px);

  padding: 24px 0 30px;
  border-top: 1px solid var(--black);
}

.agenda-event[hidden] {
  display: none;
}

.agenda-date {
  display: flex;
  flex-direction: column;
  gap: 4px;

  font-size: var(--font-meta);
}

.agenda-date span:first-child {
  color: var(--accent);
}

.agenda-event-main {
  min-width: 0;
}

.agenda-event-type {
  margin: 0 0 12px;

  font-size: 11px;
}

.agenda-event-main h3 {
  max-width: 720px;
  margin: 0 0 14px;

  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.agenda-event-main a {
  color: var(--accent);
  font-size: var(--font-meta);
}

.agenda-event-main > p:last-child {
  margin: 0;
  font-size: var(--font-meta);
}

.agenda-event-details {
  font-size: var(--font-meta);
}

.agenda-event-details p {
  margin: 0 0 14px;
}

.agenda-empty {
  margin: 80px 0;
  font-size: var(--font-meta);
}


/* RESPONSIVE */

@media (max-width: 1000px) {
  .agenda-layout {
    --agenda-sidebar-width: 200px;
    --agenda-gap: 30px;
  }

  .agenda-event {
    grid-template-columns:
      82px
      minmax(0, 1fr)
      150px;

    gap: 24px;
  }
}

@media (max-width: 700px) {
  .agenda-layout {
    display: block;

    padding-top:
      calc(var(--header-height) + 44px);
  }

  .agenda-sidebar-inner {
    position: static;
    width: 100%;
  }

  .agenda-sidebar-section {
    margin-bottom: 30px;
  }

  .agenda-content {
    margin-top: 70px;
  }

  .agenda-content-header {
    align-items: flex-start;
    flex-direction: column;

    margin-bottom: 54px;
  }

  .agenda-search {
    width: 100%;
  }

  .agenda-event {
    grid-template-columns: 1fr;
    gap: 18px;

    padding: 22px 0 32px;
  }

  .agenda-date {
    flex-direction: row;
    gap: 12px;
  }
}

.agenda-note {
  max-width: 240px;
  margin: 14px 0 0;

  font-size: 10px;
  line-height: 1.45;
}