/* Worksheets */
.agenda-worksheet-link {
  display: inline-block;
  margin-top: 7px;
  color: #ddc28b;
  font-size: .9rem;
  font-weight: 700;
  text-underline-offset: .2em;
}

.worksheets-section {
  background: #f1f2eb;
}

.worksheets-intro {
  margin-bottom: 42px;
}

.worksheet-list {
  display: grid;
  gap: 18px;
}

.worksheet-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "main qr" "actions qr";
  gap: 21px 32px;
  align-items: center;
  padding: clamp(22px, 3.2vw, 36px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.worksheet-card--featured {
  border-color: #bd995e;
  background: #fffcf4;
  scroll-margin-top: 20px;
}

.worksheet-session-note {
  margin: 0 0 18px;
  color: #445651;
  font-size: .94rem;
  line-height: 1.65;
}

.worksheet-content {
  grid-area: main;
}

.worksheet-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  margin: 0 0 8px;
  color: #566862;
  font-size: .82rem;
}

.worksheet-meta .eyebrow,
.worksheets-intro .eyebrow {
  color: #765929;
}

.worksheet-card h3 {
  margin: 0 0 17px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.worksheet-details {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 18px;
  margin: 0;
}

.worksheet-details dt {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 700;
}

.worksheet-details dd {
  margin: 0;
  color: #445651;
  font-size: .91rem;
  line-height: 1.65;
}

.worksheet-actions {
  display: flex;
  grid-area: actions;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 16px;
}

.worksheet-actions .btn {
  padding: 10px 18px;
}

.worksheet-preview {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--green2);
  font-size: .88rem;
  font-weight: 600;
  text-underline-offset: .22em;
}

.worksheet-qr {
  display: grid;
  grid-area: qr;
  justify-items: center;
  gap: 7px;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f1f2eb;
  text-align: center;
}

.worksheet-qr img {
  display: block;
  width: 144px;
  height: auto;
  border-radius: 5px;
}

.worksheet-qr figcaption {
  color: #445651;
  font-size: .79rem;
  font-weight: 700;
}

/* Host and photo gallery */
.host-section {
  padding-top: 0;
}

.host-intro {
  padding: clamp(27px, 4.5vw, 54px);
  border-radius: 18px;
  color: white;
  background: linear-gradient(105deg, #102b28 9%, #102b28ed 48%, #102b2870 100%),
    #102b28 url("host/gallery-backdrop.webp") center 44% / cover no-repeat;
}

.host-intro .eyebrow {
  margin: 0;
  color: #e4c78e;
}

.host-intro h2 {
  margin: 8px 0 12px;
}

.host-intro .lead {
  max-width: 42rem;
  margin: 0;
  color: #eef3ee;
  font-size: 1rem;
  line-height: 1.7;
}

.host-intro .lead + .lead {
  margin-top: .9rem;
}

.host-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.host-gallery--roundtable {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.host-philanthropy {
  margin-top: 30px;
}

.host-philanthropy h3 {
  margin: 0;
}

.host-gallery--philanthropy {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.host-photo {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.host-photo a {
  position: relative;
  display: block;
  border-radius: 13px 13px 0 0;
  overflow: hidden;
  background: #e9e9dd;
}

.host-photo a::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #102b28e6 url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cpath d="M5 11l6-6M5 5h6v6" fill="none" stroke="%23fff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') center / 16px no-repeat;
}

.host-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--photo-focus, center);
}

.host-gallery--roundtable .host-photo img {
  aspect-ratio: 4 / 3;
}

.host-gallery--philanthropy .host-photo a {
  border-radius: 13px;
}

.host-gallery--philanthropy .host-photo img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.host-photo figcaption {
  padding: 13px 14px 15px;
  font-size: .86rem;
  line-height: 1.45;
}

.host-photo strong,
.host-photo figcaption span {
  display: block;
}

.host-photo figcaption span {
  margin-top: 4px;
  color: #566862;
}

.worksheet-card a:focus-visible,
.host-photo a:focus-visible {
  outline: 3px solid #906727;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .worksheet-details {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .host-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .host-gallery--roundtable {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .worksheet-card {
    grid-template-areas: "main main" "actions qr";
    gap: 16px 10px;
    padding: 18px;
  }

  .worksheet-qr {
    padding: 7px;
  }

  .worksheet-qr img {
    width: clamp(108px, 30vw, 144px);
  }

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

  .host-gallery--philanthropy {
    grid-template-columns: 1fr;
  }

  .host-gallery--philanthropy .host-photo img {
    aspect-ratio: auto;
  }
}

@media (max-width: 360px) {
  .worksheet-card {
    gap: 16px 8px;
    padding: 16px;
  }

  .worksheet-actions .btn {
    max-width: 100%;
    min-height: 44px;
    padding: 8px 7px;
    font-size: .82rem;
    line-height: 1.25;
    text-align: center;
  }

  .worksheet-actions .btn span {
    display: none;
  }
}
