#on-this-day + .otd-subpage-link,
.otd-subpage-link {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.otd-subpage-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(34, 139, 34, 0.22);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 245, 0.88));
  box-shadow: 0 7px 18px rgba(26, 86, 45, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  color: #1f7a2e;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.otd-subpage-link a:hover,
.otd-subpage-link a:focus {
  border-color: rgba(34, 139, 34, 0.36);
  box-shadow: 0 10px 24px rgba(26, 86, 45, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transform: translateY(-1px);
}

.otd-twitter-icon {
  width: 1.05rem;
  height: 1.05rem;
  fill: #1d9bf0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.14));
}

#on-this-day .otd-entry {
  border-bottom: 1px solid rgba(128,128,128,0.25);
  padding: 1rem 0 1.35rem;
  margin-bottom: 1.35rem;
}
#on-this-day .otd-date {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
#on-this-day .otd-title {
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
#on-this-day .otd-note-title {
  display: block;
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(36, 94, 62, 0.95);
}
#on-this-day .otd-untitled-title span[aria-hidden="true"] {
  color: #c7a300;
  font-weight: 800;
}
#on-this-day .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#on-this-day .otd-content img,
#on-this-day .otd-content video {
  max-width: 100%;
  height: auto;
}
#on-this-day .otd-content figure {
  margin: 1rem 0;
}
