.journal-edition .diwali-article h1 {
  margin-block: .26em;
  font-size: clamp(1.85rem, 4.4vw, 3.45rem);
  line-height: 1.11;
}

.diwali-article .editorial-title .editorial-deck {
  margin-block: .75rem;
}

.diwali-opening {
  margin-block: 1.2rem 1.45rem;
}

.diwali-photo > img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center 40%;
  background: #241a12;
}

.diwali-chart {
  scroll-margin-top: 5rem;
}

.diwali-chart-body {
  padding: clamp(.8rem, 3vw, 1.65rem);
  background: #fbf5e8;
}

.diwali-chart-body > h2 {
  margin: 0 0 .8rem;
  color: #172a40;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.diwali-phases {
  padding: .8rem clamp(.25rem, 2vw, 1rem);
  border-radius: 8px;
  background: #152b3c;
  color: #fff6e1;
  text-align: center;
}

.diwali-phases p {
  margin: 0 0 .8rem;
}

.diwali-phases p span {
  display: block;
  margin-top: .2rem;
  color: #f5d999;
  font: .85rem/1.4 system-ui, sans-serif;
}

.diwali-phases ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.diwali-phases li {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: .4rem;
  font: 600 clamp(.6875rem, 1.8vw, .875rem)/1.24 system-ui, sans-serif;
}

.diwali-moon {
  display: block;
  width: clamp(20px, 5vw, 40px);
  aspect-ratio: 1;
  border: 1px solid #e0bf7a;
  border-radius: 50%;
  background: #152b3c;
}

.diwali-moon-first {
  background: linear-gradient(90deg, #152b3c 50%, #fff1cb 50%);
}

.diwali-moon-full {
  background: #fff1cb;
}

.diwali-moon-last {
  background: linear-gradient(90deg, #fff1cb 50%, #152b3c 50%);
}

.diwali-lengths {
  margin-block: 1.15rem;
}

.diwali-length-row + .diwali-length-row {
  margin-top: .7rem;
}

.diwali-length-row p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .12rem .65rem;
  margin: 0 0 .2rem;
  color: #172a40;
  font: .86rem/1.4 system-ui, sans-serif;
}

.diwali-track {
  height: .45rem;
  border-radius: 6px;
  background: #eee2cb;
}

.diwali-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #9d702d;
}

.diwali-track .diwali-lunar-length {
  width: 97.02%;
  background: #17605c;
}

.diwali-chart-gap {
  margin: 0;
  padding: .65rem .8rem;
  border-left: 3px solid #17605c;
  background: #e5efea;
  color: #172a40;
  line-height: 1.55;
}

.diwali-dates {
  margin-block: 1rem;
  color: #172a40;
}

.diwali-dates table {
  min-width: 0;
  width: 100%;
  border: 1px solid #d9cdb7;
  border-collapse: collapse;
  background: #fffaf0;
  font: clamp(.78rem, 2.2vw, .94rem)/1.4 system-ui, sans-serif;
}

.diwali-dates caption {
  padding: 0 0 .45rem;
  text-align: left;
  font-weight: 700;
}

.diwali-dates th,
.diwali-dates td {
  padding: .55rem clamp(.3rem, 2vw, .8rem);
  border-bottom: 1px solid #d9cdb7;
  text-align: left;
}

.diwali-dates thead {
  background: #e5efea;
}

.diwali-article .diwali-cite {
  display: inline-block;
  min-width: 24px;
  min-height: 24px;
  padding-inline: .16rem;
  text-align: center;
  font: 700 .75rem/24px system-ui, sans-serif;
  vertical-align: baseline;
}

.diwali-sources li {
  margin-block: .36rem;
  scroll-margin-top: 5.5rem;
}

.diwali-article a:focus-visible,
.diwali-skip:focus-visible {
  outline: 2px solid #0b625a;
  outline-offset: 3px;
}

.diwali-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  transform: translateY(calc(-100% - 16px));
  padding: .6rem .85rem;
  background: #fffaf0;
  color: #172a40;
}

.diwali-skip:focus {
  transform: none;
}

@media (max-width: 480px) {
  .diwali-photo > img {
    aspect-ratio: 3 / 2;
  }
}
