/* Shared prayer calendar action for ICC's entrance, public and staff pages. */
.native-prayer-monthly-calendar-link {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  width: 100%;
  min-height: 37px;
  padding: 7px 12px;
  border-top: 1px solid #c6d3c8;
  border-bottom: 1px solid #c6d3c8;
  background: #eaf0e7;
  color: #174a36;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .012em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease,color .15s ease;
}
.native-prayer-monthly-calendar-link[hidden] { display: none !important; }
.native-prayer-monthly-calendar-link:hover {
  background: #d9e6dc;
  color: #123d2e;
  text-decoration: underline;
}
.native-prayer-monthly-calendar-link:focus-visible {
  outline: 3px solid #996e2c;
  outline-offset: -3px;
}
/* On the desktop homepage the link is a right-aligned header action, not a
   separate timetable row; the entire date stays readable underneath. */
@media (min-width:981px) {
  .home-hero-prayer-layout .native-prayer-monthly-calendar-link {
    position: static;
    z-index: auto;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d1e7d7;
    font-size: 12px;
    line-height: 1.25;
    letter-spacing: 0;
  }
  .home-hero-prayer-layout .native-monthly-link-prefix { display: none; }
  .home-hero-prayer-layout .native-prayer-monthly-calendar-link:hover {
    background: transparent;
    color: #fff;
  }
  .home-hero-prayer-layout .native-prayer-monthly-calendar-link:focus-visible {
    outline-offset: 2px;
  }
}
@media (max-width:900px) {
  body.mobile-split-50 .native-prayer-monthly-calendar-link {
    min-height: 30px;
    padding: 5px 10px;
    font-size: .76rem;
  }
}
@media (prefers-reduced-motion:reduce) {
  .native-prayer-monthly-calendar-link { transition: none; }
}

/* Header action stays inside its own row on stacked/mobile prayer cards. */
@media (max-width:980px) {
  .home-hero-prayer-layout .native-prayer-header {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 4px;
  }
  .home-hero-prayer-layout .native-prayer-monthly-calendar-link {
    position: static;
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    justify-self: stretch;
  }
}
