.daily-intro {
  margin: 16px 0 48px;
  color: #626560;
}

.daily-feature {
  margin-bottom: 200px;
}

.daily-feature-label {
  max-width: 230mm;
  margin: 0 auto 16px;
  font-size: 14px;
  color: #626560;
}

.daily-preview {
  position: relative;
  max-width: 230mm;
  height: 960px;
  margin: 0 auto;
  /* Crop vertically while keeping the shared paper shadow visible at the edges. */
  clip-path: inset(-40px -40px 0);
}

.daily-preview-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.daily-preview-fade {
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
  background: linear-gradient(to bottom, rgb(255 255 255 / 0), white 75%);
}

@media (min-width: 801px) {
  .daily-preview-fade {
    height: 470px;
  }
}

.daily-preview .daily-read-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 4px;
  background: #0f0e0d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
}

.daily-preview .daily-read-link:hover {
  background: #333333;
}

.daily-read-link img {
  filter: brightness(0) invert(1);
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.calendar-toolbar h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
}

.calendar-controls {
  display: flex;
  gap: 8px;
}

.calendar-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 8px;
  border: 1px solid #dedfdd;
  border-radius: 4px;
  background: white;
  color: inherit;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.calendar-controls button:hover {
  background: #f5f6f4;
}

.previous-icon {
  transform: rotate(180deg);
}

.calendar-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.calendar-table th {
  padding: 0 12px 16px;
  text-align: left;
  color: #626560;
  font-size: 13px;
  font-weight: 400;
}

.calendar-table td {
  height: 120px;
  padding: 12px;
  border: 1px solid #e5e6e3;
  vertical-align: top;
  font-size: 13px;
}

.calendar-table time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.calendar-table time[aria-current="date"] {
  border-radius: 4px;
  background: var(--color-accent);
  color: white;
}

.calendar-article {
  display: block;
  margin-top: 12px;
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.calendar-article:hover {
  text-decoration: underline;
}

.calendar-controls button:focus-visible,
.calendar-article:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.daily-mobile-articles {
  display: none;
}

@media (max-width: 600px) {
  .daily-preview {
    height: 500px;
  }

  .calendar-table th {
    padding: 0 4px 12px;
    font-size: 12px;
  }

  .calendar-table td {
    height: 64px;
    padding: 6px 3px;
    text-align: center;
    position: relative;
  }

  .calendar-table th {
    text-align: center;
  }

  .calendar-article {
    position: absolute;
    inset: 0;
    margin: 0;
    font-size: 0;
  }

  .calendar-article::after {
    content: "";
    position: absolute;
    bottom: 10px;
    left: calc(50% - 2px);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
  }

  .daily-mobile-articles {
    display: block;
    margin-top: 24px;
  }

  .daily-mobile-articles .library-entry {
    padding: 0;
    border: 0;
  }

  .daily-mobile-articles h2 {
    margin-top: 8px;
    font-size: 20px;
  }

  .daily-mobile-articles p {
    margin: 0;
  }

  .calendar-toolbar h2 {
    font-size: 18px;
  }
}
