:root {
  --ink: #071d2b;
  --ink-soft: #123344;
  --lime: #cbf36a;
  --lime-deep: #9ecb38;
  --paper: #f7f5ee;
  --card: #fffefa;
  --muted: #77838a;
  --line: #dde2df;
  --white: #ffffff;
  --dark-surface: #071d2b;
  --on-lime: #071d2b;
  --shadow: 0 24px 70px rgba(8, 30, 42, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Tahoma, Arial, sans-serif;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: min(1180px, calc(100% - 48px));
  height: 96px;
  padding: 0 12px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(7, 29, 43, 0.12);
  border-radius: 0 0 18px 18px;
  background: rgba(247, 245, 238, 0.92);
  box-shadow: 0 0 0 rgba(7, 29, 43, 0);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 35px rgba(7, 29, 43, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border: 1px solid rgba(203, 243, 106, 0.5);
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: linear-gradient(145deg, #ddff87 0%, var(--lime) 48%, #9fce38 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 9px 24px rgba(158, 203, 56, 0.22);
  transform: rotate(-4deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand:hover .brand-mark {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 12px 30px rgba(158, 203, 56, 0.3);
  transform: rotate(0) scale(1.05);
}

.brand-mark img {
  width: 36px;
  height: 36px;
  display: block;
}

body.dark-mode .brand-mark {
  border-color: rgba(221, 255, 135, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 1px rgba(203, 243, 106, 0.12),
    0 10px 28px rgba(203, 243, 106, 0.3);
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13px;
  font-weight: 600;
}

.main-nav a {
  position: relative;
  padding: 36px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 23px;
  width: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--lime-deep);
  transition: 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 22px;
  right: calc(50% - 11px);
}

.header-actions,
.calendar-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}

.location-button,
.icon-button,
.round-button,
.today-button,
.share-button {
  border: 0;
  cursor: pointer;
}

.location-button {
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
}

.location-button svg,
.icon-button svg,
.share-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.icon-button,
.round-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
}

main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  min-height: 500px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 70px;
  padding: 64px 0 56px;
}

.eyebrow,
.section-kicker {
  color: #577079;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--lime-deep);
}

.hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.hero h1 em {
  position: relative;
  color: var(--lime-deep);
  font-family: Tahoma, Arial, sans-serif;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.02em;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 75%;
  height: 8px;
  border-radius: 50%;
  border-top: 2px solid var(--lime-deep);
  transform: rotate(-2deg);
}

.hero-copy > p {
  max-width: 570px;
  margin: 0;
  color: #5c6e76;
  font-size: 15px;
  line-height: 2;
}

.today-strip {
  width: fit-content;
  margin-top: 28px;
  padding: 12px 15px 12px 21px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.today-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 6px rgba(158, 203, 56, 0.16);
}

.today-strip small,
.today-strip strong {
  display: block;
}

.today-strip small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
}

.today-strip strong {
  font-size: 12px;
}

.orbit-art {
  position: relative;
  width: 390px;
  height: 390px;
  justify-self: center;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(7, 29, 43, 0.13);
}

.orbit-outer {
  inset: 0;
  animation: spin 30s linear infinite;
}

.orbit-inner {
  inset: 47px;
  border-style: dashed;
  animation: spin 22s linear infinite reverse;
}

.moon {
  position: absolute;
  inset: 82px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 30px 80px rgba(158, 203, 56, 0.32);
}

.moon::before,
.moon::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(7, 29, 43, 0.055);
}

.moon::before {
  width: 50px;
  height: 50px;
  right: 38px;
  top: 44px;
}

.moon::after {
  width: 26px;
  height: 26px;
  left: 42px;
  bottom: 52px;
}

.moon-shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: -22px;
  right: -55px;
  border-radius: 50%;
  background: var(--paper);
}

.arabic-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: 26px;
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 62px;
  font-weight: 700;
}

.star {
  position: absolute;
  color: var(--lime-deep);
  background: var(--paper);
  font-size: 26px;
}

.star-one {
  top: 31px;
  right: 44px;
}

.star-two {
  bottom: 48px;
  left: 27px;
  font-size: 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.calendar-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.calendar-shell::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 100%;
  background: var(--lime);
}

.calendar-head {
  padding: 32px 38px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.calendar-head h2,
.section-heading h2 {
  margin: 7px 0 4px;
  font-size: 27px;
  letter-spacing: -0.035em;
}

.calendar-head p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.today-button {
  height: 44px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--lime);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.round-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.round-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.round-button {
  flex: 0 0 44px;
}

.calendar-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
}

.calendar-main {
  min-width: 0;
  padding: 23px 32px 34px;
}

.weekdays,
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.weekdays {
  padding-bottom: 12px;
  color: #92a0a4;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}

.days-grid {
  gap: 6px;
}

.day {
  position: relative;
  min-height: 66px;
  padding: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.day:hover {
  background: #f1f4ed;
}

.day .hijri-number {
  font-size: 17px;
  font-weight: 700;
}

.day .gregorian-number {
  margin-top: 4px;
  color: #9ca7ab;
  font-size: 9px;
}

.day.outside {
  opacity: 0.28;
}

.day.friday .hijri-number {
  color: #7ca921;
}

.day.selected {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(7, 29, 43, 0.2);
}

.day.selected .gregorian-number,
.day.selected.friday .hijri-number {
  color: var(--lime);
}

.day.is-today::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--lime-deep);
}

.day-panel {
  padding: 30px 27px;
  color: var(--white);
  background: var(--ink);
}

.panel-label {
  color: #9babb3;
  font-size: 10px;
}

.selected-day {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.selected-day > strong {
  color: var(--lime);
  font-size: 54px;
  line-height: 1;
}

.selected-day h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.selected-day p {
  margin: 0;
  color: #aab7bd;
  font-size: 11px;
}

.separator {
  height: 1px;
  margin: 28px 0 22px;
  background: rgba(255, 255, 255, 0.13);
}

.date-facts {
  margin: 0;
}

.date-facts div {
  margin-bottom: 18px;
}

.date-facts dt {
  margin-bottom: 6px;
  color: #8fa1aa;
  font-size: 9px;
}

.date-facts dd {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.share-button {
  width: 100%;
  height: 46px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 13px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.share-button:hover {
  background: #ddff87;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(158, 203, 56, 0.2);
}

.events-section {
  padding: 92px 0 84px;
}

.section-heading {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.section-heading p {
  max-width: 330px;
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.event-card {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
  border-color: var(--lime-deep);
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(7, 29, 43, 0.12);
}

.event-card:first-child {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.event-card::after {
  content: "✦";
  position: absolute;
  left: -5px;
  bottom: -35px;
  color: rgba(158, 203, 56, 0.13);
  font-size: 110px;
}

.event-card .event-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.event-card .event-count {
  color: var(--lime-deep);
  font-size: 10px;
  font-weight: 700;
}

.event-card:first-child .event-count {
  color: var(--lime);
}

.event-card .event-date {
  color: #50636b;
  font-size: 10px;
}

.event-card:first-child .event-date {
  color: #92a4ad;
}

.event-card h3 {
  margin: 29px 0 7px;
  font-size: 18px;
}

.event-card p {
  margin: 0;
  color: #50636b;
  font-size: 10px;
}

.event-card:first-child p {
  color: #a7b5bc;
}

.insight {
  margin-bottom: 88px;
  padding: 42px 70px;
  display: flex;
  align-items: center;
  gap: 35px;
  border-radius: 28px;
  background: var(--lime);
}

.insight-icon {
  font-size: 44px;
}

.insight .section-kicker {
  color: #64821d;
}

.insight blockquote {
  margin: 7px 0;
  font-family: Tahoma, Arial, sans-serif;
  font-size: clamp(21px, 3vw, 31px);
  font-weight: 700;
}

.insight p {
  margin: 0;
  color: #4f6818;
  font-size: 11px;
}

footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  border-top: 1px solid var(--line);
  color: #4f626a;
  font-size: 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  transition: 0.18s ease;
}

.footer-links a:hover {
  border-color: var(--lime-deep);
  color: var(--ink);
  background: rgba(203, 243, 106, 0.16);
}

body.dark-mode footer {
  color: #a9b8bd;
}

body.dark-mode .footer-links a {
  border-color: #29414b;
  color: #c3d0d4;
  background: #0b222c;
}

body.dark-mode .footer-links a:hover {
  border-color: var(--lime);
  color: var(--on-lime);
  background: var(--lime);
}

.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 10px;
}

.footer-brand .brand-mark img {
  width: 25px;
  height: 25px;
}

.footer-brand strong {
  color: var(--ink);
  font-size: 15px;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 50%;
  bottom: 26px;
  padding: 12px 20px;
  border-radius: 13px;
  color: var(--white);
  background: var(--ink);
  font-size: 11px;
  transform: translate(50%, 90px);
  opacity: 0;
  transition: 0.3s ease;
}

.toast.show {
  transform: translate(50%, 0);
  opacity: 1;
}

/* Month archive page */
.breadcrumbs {
  padding: 26px 2px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
}

.breadcrumbs a:hover {
  color: var(--lime-deep);
}

.breadcrumbs strong {
  color: var(--ink);
}

.today-page .breadcrumbs {
  margin-bottom: 18px;
}

.month-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 42px 68px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 14% 18%, rgba(203, 243, 106, 0.16), transparent 25%),
    var(--ink);
}

.month-hero > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.month-hero h1 {
  min-height: 2.4em;
  display: flex;
  align-items: center;
  margin: 10px 0 12px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.month-hero p {
  margin: 0;
  color: #aab8be;
  font-size: 13px;
}

.month-hero .section-kicker {
  color: var(--lime);
}

.month-symbol {
  position: relative;
  width: 175px;
  height: 175px;
  flex: 0 0 175px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(203, 243, 106, 0.35);
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 0 0 22px rgba(203, 243, 106, 0.06);
}

.month-symbol::after {
  content: "";
  position: absolute;
  inset: -45px;
  border: 1px dashed rgba(203, 243, 106, 0.2);
  border-radius: 50%;
}

.month-symbol span {
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
}

.month-symbol small {
  margin-top: 9px;
  font-size: 10px;
  font-weight: 700;
}

.month-switcher {
  margin: 18px 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.month-switcher.is-current-month {
  grid-template-columns: 1fr 1fr;
}

.month-nav-link {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 13px;
  transition: background 0.2s ease;
}

.month-nav-link:hover {
  background: var(--white);
}

.month-nav-link svg {
  width: 20px;
  fill: none;
  stroke: var(--lime-deep);
  stroke-width: 2;
}

.month-nav-link span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.month-nav-link small {
  color: var(--muted);
  font-size: 8px;
}

.month-nav-link strong {
  font-size: 12px;
}

.next-link {
  justify-content: flex-end;
  text-align: left;
}

.back-today {
  padding: 11px 18px;
  border-radius: 12px;
  background: var(--lime);
  font-size: 10px;
  font-weight: 700;
}

.month-table-card {
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.table-heading {
  padding: 28px 34px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.table-heading h2 {
  margin: 7px 0 0;
  font-size: 25px;
}

.days-badge {
  padding: 9px 13px;
  border-radius: 10px;
  color: #607b18;
  background: rgba(203, 243, 106, 0.42);
  font-size: 9px;
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

.month-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.month-table th,
.month-table td {
  padding: 17px 30px;
  border-bottom: 1px solid #e8ece9;
}

.month-table th {
  color: #809096;
  background: #f3f5f0;
  font-size: 9px;
  font-weight: 700;
}

.month-table td {
  color: #5d7078;
  font-size: 11px;
}

.month-table td strong {
  color: var(--ink);
  font-size: 12px;
}

.table-date-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.table-date-cell strong {
  color: var(--ink);
  font-size: 13px !important;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

.table-date-cell small {
  color: var(--muted);
  font-size: 8px;
}

.month-table tbody tr {
  transition: background 0.18s ease;
}

.month-table tbody tr:hover {
  background: #f7f9f3;
}

.month-table .friday-row td:first-child,
.month-table .friday-row td strong {
  color: #769d20;
}

.month-table .today-row {
  background: rgba(203, 243, 106, 0.22);
}

.month-table .today-row td {
  border-color: rgba(158, 203, 56, 0.25);
}

.weekday-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.weekday-cell i {
  padding: 5px 7px;
  border-radius: 7px;
  color: var(--ink);
  background: var(--lime);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.row-number {
  width: 70px;
  color: #a5afb2 !important;
  text-align: center;
}

.all-months {
  padding: 84px 0;
}

.months-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.months-grid a {
  min-height: 120px;
  padding: 21px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  transition: 0.2s ease;
}

.months-grid a:hover,
.months-grid a.current {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
  transform: translateY(-2px);
}

.months-grid a > span {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: var(--lime);
  font-size: 14px;
  font-weight: 800;
}

.months-grid strong {
  font-size: 13px;
}

.months-grid small {
  color: var(--muted);
  font-size: 8px;
}

.months-grid a:hover small,
.months-grid a.current small {
  color: #9fafb6;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 0.7fr;
    gap: 20px;
  }

  .orbit-art {
    width: 300px;
    height: 300px;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .day-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 30px;
  }

  .day-panel .separator {
    display: none;
  }

  .months-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    height: 76px;
  }

  .location-button {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .location-button span {
    display: none;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    display: block;
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 9px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 48px 0;
  }

  .hero h1 {
    font-size: 52px;
  }

  .orbit-art {
    display: none;
  }

  .calendar-head {
    padding: 24px 20px;
    align-items: flex-end;
  }

  .calendar-head h2 {
    font-size: 22px;
  }

  .calendar-main {
    padding: 19px 9px 24px;
  }

  .weekdays {
    font-size: 8px;
  }

  .day {
    min-height: 55px;
    padding: 6px 2px;
  }

  .day .hijri-number {
    font-size: 14px;
  }

  .today-button {
    padding: 0 12px;
    font-size: 9px;
  }

  .day-panel {
    display: block;
  }

  .day-panel .separator {
    display: block;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .event-cards {
    grid-template-columns: 1fr;
  }

  .insight {
    padding: 32px 25px;
    gap: 18px;
  }

  .insight-icon {
    font-size: 26px;
  }

  footer p {
    display: none;
  }

  .footer-links {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .breadcrumbs {
    white-space: nowrap;
    overflow: hidden;
  }

  .month-hero {
    min-height: 245px;
    gap: 20px;
    padding: 32px 24px;
  }

  .month-hero h1 {
    min-height: 3.6em;
    font-size: 30px;
    line-height: 1.2;
  }

  .month-symbol {
    width: 90px;
    height: 90px;
    flex-basis: 90px;
  }

  .month-symbol span {
    font-size: 34px;
  }

  .month-symbol::after {
    inset: -20px;
  }

  .month-switcher {
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }

  .back-today {
    grid-column: 1 / -1;
    grid-row: 2;
    text-align: center;
  }

  .table-heading {
    padding: 24px 19px;
  }

  .month-table {
    min-width: 0;
  }

  .month-table thead {
    display: none;
  }

  .month-table tbody {
    padding: 8px;
    display: grid;
    gap: 7px;
  }

  .month-table tbody tr {
    padding: 4px;
    display: grid;
    grid-template-columns: 0.7fr 1fr 1fr;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 13px;
  }

  .month-table td {
    min-width: 0;
    padding: 10px 8px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    border: 0;
  }

  .month-table td::before,
  .countries-table td::before {
    content: attr(data-label);
    margin-bottom: 6px;
    color: #8b999e;
    font-size: 7px;
    font-weight: 700;
  }

  .month-table .weekday-cell {
    align-items: flex-start;
    flex-direction: column;
  }

  .month-table .table-date-cell strong {
    font-size: 11px !important;
  }

  .month-table .table-date-cell small {
    display: none;
  }

  .months-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Persistent dark mode */
body.dark-mode {
  --ink: #edf4f6;
  --ink-soft: #c6d3d7;
  --paper: #06161e;
  --card: #0b222c;
  --muted: #9aabb2;
  --line: #29414b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

body.dark-mode .site-header,
body.dark-mode footer {
  border-color: var(--line);
}

body.dark-mode .site-header {
  background: rgba(6, 22, 30, 0.92);
}

body.dark-mode .site-header.is-scrolled {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.36);
}

body.dark-mode :where(.home-hero, .today-hero, .month-hero, .year-hero, .gregorian-hero) {
  background-color: var(--dark-surface);
}

body.dark-mode :where(
  .icon-button,
  .day.selected,
  .day-panel,
  .event-card:first-child,
  .toast,
  .months-grid a.current,
  .gregorian-share-bar,
  .home-quick-links a:hover,
  .date-timeline article.current,
  .today-guide,
  .today-faq button,
  .result-card.featured
) {
  background: var(--dark-surface);
}

body.dark-mode :where(.home-hero .moon-phase-shadow, .today-hero .moon-phase-shadow) {
  background: var(--dark-surface);
}

body.dark-mode :where(
  .location-button,
  .today-strip,
  .event-card,
  .month-switcher,
  .months-grid a,
  .home-quick-links a,
  .today-facts article,
  .faq-list details,
  .result-card,
  .year-switcher,
  .round-button,
  .header-search
) {
  background: rgba(11, 34, 44, 0.92);
}

body.dark-mode :where(
  .month-table th,
  .year-table th,
  .countries-table th,
  .gregorian-weekdays
) {
  background: #102a35;
}

body.dark-mode :where(
  .day:hover,
  .month-table tbody tr:hover,
  .countries-table tbody tr:hover,
  .gregorian-day
) {
  background: #102a35;
}

body.dark-mode .gregorian-day.is-empty {
  background: transparent;
}

body.dark-mode :where(
  .month-table td,
  .year-table td,
  .countries-table td,
  .calendar-weekdays,
  .calendar-days,
  .date-timeline article,
  .week-grid article
) {
  border-color: var(--line);
}

body.dark-mode :where(
  .brand-mark,
  .today-button,
  .back-today,
  .weekday-cell i,
  .months-grid a > span,
  .gregorian-hero > div:first-child > a,
  .gregorian-today-weekday,
  .gregorian-day.is-today,
  .home-hero-actions a.primary,
  .home-quick-links a > span,
  .section-link,
  .primary-link,
  .insight,
  .today-guide aside,
  .faq-list summary::after,
  .large-search button,
  .year-hero > strong,
  .year-switcher a.current,
  .table-link,
  .header-search button,
  .moon-share-icons a:hover,
  .moon-share-icons button:hover
) {
  color: var(--on-lime);
}

body.dark-mode :where(
  .gregorian-day.is-today strong,
  .gregorian-day.is-today small,
  .today-guide aside strong,
  .today-guide aside dd,
  .year-hero > strong small,
  .insight strong
) {
  color: var(--on-lime);
}

body.dark-mode :where(
  .hero-copy > p,
  .home-quick-links small,
  .event-card p,
  .month-hero p,
  .today-copy p,
  .today-guide p,
  .faq-list p,
  .gregorian-hero p
) {
  color: #a9b8bd;
}

body.dark-mode .theme-toggle,
body.dark-mode #themeToggle {
  border: 1px solid rgba(203, 243, 106, 0.35);
  color: var(--on-lime);
  background: var(--lime);
}

body.dark-mode .ad-space {
  border: 0;
  color: #b8c6ca;
}

body.dark-mode .moon-phase-shadow {
  background: var(--paper);
}

/* Gregorian calendar */
.gregorian-hero {
  min-height: 320px;
  margin-top: 24px;
  padding: 48px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--white);
  background:
    linear-gradient(110deg, transparent 48%, rgba(203, 243, 106, 0.08)),
    radial-gradient(circle at 12% 18%, rgba(203, 243, 106, 0.15), transparent 30%),
    var(--ink);
}

.gregorian-hero .section-kicker {
  color: var(--lime);
}

.gregorian-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(37px, 5vw, 64px);
  line-height: 1.2;
}

.gregorian-hero p {
  max-width: 590px;
  margin: 0;
  color: #b2c0c5;
  font-size: 12px;
  line-height: 2;
}

.gregorian-hero > div:first-child > a {
  min-height: 42px;
  margin-top: 22px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  border-radius: 11px;
  color: var(--ink);
  background: var(--lime);
  font-size: 10px;
  font-weight: 800;
}

.gregorian-today-card {
  width: 190px;
  min-height: 205px;
  padding: 25px;
  flex: 0 0 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px solid rgba(203, 243, 106, 0.27);
  border-radius: 25px;
  text-align: center;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.gregorian-today-card small {
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
}

.gregorian-today-card strong {
  margin: 7px 0;
  color: var(--white);
  font-size: 60px;
  line-height: 1;
}

.gregorian-today-card b {
  font-size: 14px;
}

.gregorian-today-card span {
  margin-top: 9px;
  color: #aebdc2;
  font-size: 9px;
}

.gregorian-today-card .gregorian-today-weekday {
  margin-top: 9px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--lime);
  font-size: 9px;
  font-weight: 800;
}

.gregorian-today-card .gregorian-today-hijri {
  margin-top: 9px;
}

.gregorian-today-card .gregorian-today-iso {
  margin-top: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 7px;
  color: #d5dfe2;
  background: rgba(255, 255, 255, 0.05);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.03em;
}

.gregorian-calendar-grid {
  margin: 20px 0 80px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gregorian-share-bar {
  min-height: 82px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--ink);
}

.gregorian-share-bar small,
.gregorian-share-bar strong {
  display: block;
}

.gregorian-share-bar small {
  margin-bottom: 5px;
  color: #9eb0b7;
  font-size: 8px;
}

.gregorian-share-bar strong {
  color: var(--white);
  font-size: 12px;
}

.gregorian-share-bar .moon-share-icons {
  flex: 0 0 auto;
}

.gregorian-month-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 14px 40px rgba(8, 30, 42, 0.07);
}

.gregorian-month-card.is-current {
  border-color: var(--lime-deep);
  box-shadow: 0 0 0 3px rgba(158, 203, 56, 0.13), var(--shadow);
  scroll-margin-top: 20px;
}

.gregorian-month-card > header {
  min-height: 93px;
  padding: 20px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}

.gregorian-month-card > header span {
  color: var(--lime-deep);
  font-size: 8px;
  font-weight: 800;
}

.gregorian-month-card > header h2 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 21px;
}

.gregorian-month-card > header > small {
  max-width: 145px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.7;
  text-align: left;
}

.gregorian-weekdays,
.gregorian-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.gregorian-weekdays {
  padding: 10px 9px 7px;
  color: #849198;
  background: #f4f5f1;
}

.gregorian-weekdays span {
  text-align: center;
  font-size: 8px;
  font-weight: 800;
}

.gregorian-days {
  padding: 8px;
  gap: 4px;
}

.gregorian-day {
  min-width: 0;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 9px;
  background: #f6f7f3;
}

.gregorian-day strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1;
}

.gregorian-day small {
  margin-top: 5px;
  color: #8c989d;
  font-size: 6px;
}

.gregorian-day.is-friday strong {
  color: #a33f3f;
}

.gregorian-day.is-today {
  background: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(7, 29, 43, 0.12);
}

.gregorian-day.is-today strong,
.gregorian-day.is-today small {
  color: var(--ink);
  font-weight: 800;
}

.gregorian-day.is-empty {
  background: transparent;
}

@media (max-width: 1000px) {
  .gregorian-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .gregorian-hero {
    min-height: auto;
    padding: 36px 24px;
    flex-direction: column;
    text-align: center;
  }

  .gregorian-hero h1 {
    font-size: 37px;
  }

  .gregorian-hero > div:first-child > a {
    justify-content: center;
  }

  .gregorian-today-card {
    width: min(100%, 280px);
    min-height: 165px;
    flex-basis: auto;
  }

  .gregorian-calendar-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gregorian-share-bar {
    padding: 18px;
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .gregorian-month-card > header {
    min-height: 86px;
  }

  .gregorian-day strong {
    font-size: 13px;
  }

  .gregorian-day small {
    font-size: 7px;
  }
}

/* Refined homepage */
.home-hero {
  min-height: 470px;
  margin: 28px 0 18px;
  padding: 45px 64px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 14% 18%, rgba(203, 243, 106, 0.14), transparent 27%),
    radial-gradient(circle at 85% 80%, rgba(203, 243, 106, 0.08), transparent 28%),
    var(--ink);
}

.home-hero .eyebrow {
  color: #b3c0c5;
}

.home-hero .eyebrow span {
  background: var(--lime);
}

.home-hero h1 {
  margin-top: 15px;
  color: var(--white);
  font-size: clamp(43px, 5vw, 70px);
}

.home-hero h1 em {
  color: var(--lime);
}

.home-hero h1 em::after {
  border-color: var(--lime);
}

.home-hero .hero-copy > p {
  max-width: 530px;
  color: #b1bec3;
}

.home-hero .moon-orbit {
  border-color: rgba(203, 243, 106, 0.2);
}

.home-hero .moon-phase-shadow {
  background: var(--ink);
}

.home-hero .moon-star {
  color: var(--lime);
}

.home-hero-dates {
  margin-top: 23px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-hero-date {
  min-width: 225px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(203, 243, 106, 0.22);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
}

.home-hero-date > strong {
  color: var(--lime);
  font-size: 48px;
  line-height: 1;
}

.home-hero-date div {
  min-width: 135px;
}

.home-hero-date small,
.home-hero-date b,
.home-hero-date span {
  display: block;
}

.home-hero-date small {
  margin-bottom: 6px;
  color: #c1cdd1;
  font-size: 10px;
  font-weight: 700;
}

.home-hero-date b {
  color: var(--white);
  font-size: 15px;
}

.home-hero-date span {
  margin-top: 6px;
  color: #a9b6bc;
  font-size: 10px;
}

.home-hero-date-gregorian {
  border-color: rgba(255, 255, 255, 0.18);
}

.home-hero-date-gregorian > strong {
  color: var(--white);
}

.home-hero-actions {
  margin-top: 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-hero-actions a {
  min-height: 43px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 11px;
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
}

.home-hero-actions a.primary {
  border-color: var(--lime);
  color: var(--ink);
  background: var(--lime);
}

.home-quick-links {
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.home-quick-links a {
  min-height: 92px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.62);
  transition: 0.2s ease;
}

.home-quick-links a:hover {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
  transform: translateY(-2px);
}

.home-quick-links a > span {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--ink);
  background: var(--lime);
  font-size: 13px;
  font-weight: 800;
}

.home-quick-links strong,
.home-quick-links small {
  display: block;
}

.home-quick-links strong {
  font-size: 11px;
}

.home-quick-links small {
  margin-top: 5px;
  color: #596c74;
  font-size: 8px;
}

.home-quick-links a:hover small {
  color: #b0bdc2;
}

.home-month-table {
  padding: 78px 0 15px;
}

.home-month-table .month-table-card {
  border-radius: 24px;
}

.home-month-table .month-table tr:last-child td {
  border-bottom: 0;
}

.section-link {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--lime);
  font-size: 8px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .home-hero {
    padding: 42px;
  }

  .home-quick-links {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 680px) {
  .home-hero {
    margin-top: 16px;
    padding: 38px 23px 22px;
    text-align: center;
  }

  .home-hero .eyebrow,
  .home-hero-actions {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }

  .home-hero-dates {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-hero-date {
    width: 100%;
    justify-content: center;
  }

  .home-hero h1 {
    font-size: 43px;
  }

  .home-hero .dynamic-moon {
    margin-top: -4px;
  }

  .home-quick-links {
    grid-template-columns: 1fr;
  }

  .home-month-table {
    padding-top: 55px;
  }

  .home-month-table .section-heading {
    align-items: stretch;
  }

  .section-link {
    text-align: center;
  }
}

/* Today and search pages */
.today-hero {
  min-height: 460px;
  padding: 38px 70px;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 60px;
  overflow: hidden;
  border-radius: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 16%, rgba(203, 243, 106, 0.13), transparent 25%),
    var(--ink);
}

.today-hero .dynamic-moon {
  width: 340px;
  height: 340px;
}

.today-hero .moon-orbit-one,
.today-hero .moon-orbit-two {
  border-color: rgba(203, 243, 106, 0.22);
}

.today-hero .moon-phase-shadow {
  background: var(--ink);
}

.today-primary .eyebrow {
  color: #9badb5;
}

.today-primary .eyebrow i {
  width: 28px;
  height: 2px;
  display: inline-block;
  background: var(--lime);
}

.today-primary h1 {
  margin: 12px 0 18px;
  max-width: 560px;
  font-size: clamp(25px, 3.3vw, 42px);
  line-height: 1.45;
  letter-spacing: -0.035em;
}

.visitor-country {
  width: fit-content;
  margin: -6px 0 17px;
  padding: 8px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(203, 243, 106, 0.24);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
}

.visitor-country > span {
  font-size: 22px;
}

.visitor-country small,
.visitor-country strong {
  display: block;
}

.visitor-country small {
  margin-bottom: 3px;
  color: #8fa1a9;
  font-size: 7px;
}

.visitor-country strong {
  color: var(--lime);
  font-size: 10px;
}

.today-weekday {
  width: fit-content;
  margin: -9px 0 20px !important;
  padding: 6px 10px;
  border: 1px solid rgba(203, 243, 106, 0.25);
  border-radius: 9px;
  color: var(--lime) !important;
  font-size: 9px !important;
  font-weight: 700;
}

.freshness {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #91a2aa;
  font-size: 8px;
}

.freshness > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(203, 243, 106, 0.09);
}

.freshness time {
  color: #c0cbd0;
  direction: ltr;
  unicode-bidi: isolate;
}

.date-timeline {
  position: relative;
  z-index: 3;
  width: calc(100% - 90px);
  margin: -33px auto 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--card);
  box-shadow: 0 16px 45px rgba(7, 29, 43, 0.12);
}

.date-timeline article {
  min-height: 105px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-left: 1px solid var(--line);
}

.date-timeline article:last-child {
  border-left: 0;
}

.date-timeline article.current {
  color: var(--white);
  background: var(--ink);
}

.date-timeline span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.date-timeline .current span {
  color: var(--lime);
}

.date-timeline strong {
  margin: 9px 0 5px;
  font-size: 15px;
  direction: ltr;
  unicode-bidi: isolate;
}

.date-timeline small {
  color: #93a0a5;
  font-size: 8px;
  direction: ltr;
  unicode-bidi: isolate;
}

body.dark-mode .date-timeline {
  border-color: #29414b;
  background: #0b222c;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
}

body.dark-mode .date-timeline article {
  border-color: #29414b;
  color: #d8e3e6;
  background: #0b222c;
}

body.dark-mode .date-timeline article.current {
  color: #edf4f6;
  background: #102f3b;
  box-shadow: inset 0 3px 0 var(--lime);
}

body.dark-mode .date-timeline .current span {
  color: var(--lime);
}

body.dark-mode .date-timeline .current strong {
  color: #f1f7f8;
}

body.dark-mode .date-timeline .current small {
  color: #c3d0d4;
}

.today-hijri-date {
  display: flex;
  align-items: center;
  gap: 20px;
}

.today-hijri-date > strong {
  color: var(--lime);
  font-size: 92px;
  line-height: 1;
}

.today-hijri-date > span {
  font-family: Tahoma, Arial, sans-serif;
  font-size: 38px;
  font-weight: 700;
}

.today-hijri-date small {
  margin-top: 3px;
  display: block;
  color: #9babb2;
  font-family: Tahoma, Arial, sans-serif;
  font-size: 12px;
}

.today-primary > p {
  margin: 20px 0 25px;
  color: #a8b6bc;
  font-size: 13px;
}

.primary-link {
  min-height: 46px;
  width: fit-content;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  border-radius: 13px;
  color: var(--ink);
  background: var(--lime);
  font-size: 10px;
  font-weight: 700;
}

.today-facts {
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.today-facts article {
  min-height: 155px;
  padding: 23px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.today-facts span {
  color: var(--lime-deep);
  font-size: 9px;
  font-weight: 700;
}

.today-facts strong {
  margin: 13px 0 7px;
  font-size: 15px;
}

.today-facts small {
  color: var(--muted);
  font-size: 8px;
}

.today-facts .iso-fact strong {
  font-family: Consolas, "Courier New", monospace;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.today-facts .iso-fact > span {
  font-size: 10px;
}

.today-facts .iso-fact small {
  font-size: 9px;
}

body.dark-mode .today-facts article {
  border-color: #29414b;
  color: #edf4f6;
  background: linear-gradient(145deg, #0d2833, #0a2029);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.dark-mode .today-facts article:hover {
  border-color: var(--lime);
  background: #102f3b;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  transform: translateY(-3px);
}

body.dark-mode .today-facts span {
  color: var(--lime);
}

body.dark-mode .today-facts strong {
  color: #f1f7f8;
}

body.dark-mode .today-facts small {
  color: #b5c4c9;
}

body.dark-mode .today-facts .iso-fact {
  border-color: rgba(111, 165, 189, 0.58);
  background: linear-gradient(145deg, #123342, #0a222d);
}

body.dark-mode .today-facts .iso-fact:hover {
  border-color: #6fa5bd;
  background: #153b4a;
}

body.dark-mode .today-facts .iso-fact > span,
body.dark-mode .today-facts .iso-fact strong {
  color: #8fc3d9;
}

body.dark-mode .today-facts .iso-fact small {
  color: #c1d2d8;
}

.today-copy {
  margin: 60px 0 20px;
  padding: 45px 52px;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.today-copy h2 {
  margin: 8px 0 14px;
  font-size: 28px;
}

.today-copy p {
  max-width: 850px;
  margin: 0;
  color: #61747c;
  font-size: 12px;
  line-height: 2.1;
}

.week-ahead {
  padding: 65px 0 10px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 15px 45px rgba(7, 29, 43, 0.07);
}

.week-grid article {
  min-width: 0;
  padding: 22px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-left: 1px solid var(--line);
  text-align: center;
}

.week-grid article:last-child {
  border-left: 0;
}

.week-grid span {
  color: var(--lime-deep);
  font-size: 8px;
  font-weight: 700;
}

.week-grid strong {
  margin: 11px 0 6px;
  font-size: 11px;
  direction: ltr;
  unicode-bidi: isolate;
}

.week-grid small {
  color: var(--muted);
  font-size: 7px;
  direction: ltr;
  unicode-bidi: isolate;
}

.today-guide {
  margin: 18px 0 60px;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  overflow: hidden;
  border-radius: 26px;
  background: var(--ink);
  box-shadow: var(--shadow);
}

.today-guide > article {
  padding: 48px 52px;
  color: var(--white);
}

.today-guide > article .section-kicker {
  color: var(--lime);
}

.today-guide h2 {
  margin: 9px 0 16px;
  font-size: 27px;
  line-height: 1.5;
}

.today-guide p {
  margin: 0;
  color: #a8b6bc;
  font-size: 11px;
  line-height: 2.1;
}

.today-guide aside {
  padding: 35px;
  background: var(--lime);
}

.today-guide aside > span {
  color: #587118;
  font-size: 9px;
  font-weight: 700;
}

.today-guide dl {
  margin: 18px 0;
}

.today-guide dl div {
  padding: 11px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(7, 29, 43, 0.13);
}

.today-guide dt {
  color: #60771f;
  font-size: 8px;
}

.today-guide dd {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
}

.today-guide aside a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: var(--white);
  background: var(--ink);
  font-size: 9px;
  font-weight: 700;
}

.today-faq {
  margin: 0 0 70px;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.faq-list details {
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.faq-list summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
  font-size: 15px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: -2px 0 20px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.9;
}

.countries-calendar {
  margin: 65px 0 20px;
}

.countries-table-scroll {
  overflow-x: auto;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.countries-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.countries-table th,
.countries-table td {
  padding: 17px 24px;
  border-bottom: 1px solid #e8ece9;
  white-space: nowrap;
}

.countries-table th {
  color: #839197;
  background: #f2f5ef;
  font-size: 9px;
}

.countries-table td {
  color: #62747b;
  font-size: 10px;
}

.countries-table td > strong {
  color: var(--ink);
  font-size: 11px;
}

.countries-table tbody tr {
  transition: background 0.18s ease;
}

.countries-table tbody tr:hover {
  background: #f7f9f3;
}

.countries-table .selected-country {
  background: rgba(203, 243, 106, 0.2);
}

.country-link {
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.country-link > span {
  font-size: 20px;
}

.country-link strong {
  color: var(--ink);
  font-size: 11px;
}

.country-link i {
  padding: 5px 7px;
  border-radius: 7px;
  color: #55720f;
  background: var(--lime);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
}

.timezone-note {
  margin: 13px 5px 0;
  color: var(--muted);
  font-size: 8px;
}

.search-hero {
  padding: 80px 0 50px;
  text-align: center;
}

.search-hero h1 {
  margin: 10px 0 28px;
  font-size: clamp(32px, 5vw, 55px);
  letter-spacing: -0.04em;
}

.large-search {
  width: min(720px, 100%);
  min-height: 62px;
  margin: 0 auto;
  padding: 7px;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(7, 29, 43, 0.08);
}

.large-search input {
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 12px;
}

.large-search button {
  min-width: 90px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: var(--lime);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.search-hero p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.search-examples {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.search-examples a {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--card);
  font-size: 9px;
  font-weight: 700;
  transition: 0.18s ease;
}

.search-examples a:hover {
  border-color: var(--lime);
  color: var(--ink);
  background: rgba(203, 243, 106, 0.18);
}

.search-results {
  min-height: 280px;
  padding-bottom: 40px;
}

.search-results-heading {
  margin-bottom: 16px;
  padding: 0 4px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.search-results-heading div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-results-heading span {
  color: var(--lime-deep);
  font-size: 9px;
  font-weight: 800;
}

.search-results-heading strong {
  font-size: 18px;
}

.search-results-heading small {
  color: var(--muted);
  font-size: 9px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.result-card {
  position: relative;
  min-height: 165px;
  padding: 24px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.62);
  transition: 0.2s ease;
}

.result-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--lime);
  opacity: 0;
  transform: scaleX(0.35);
  transition: 0.2s ease;
}

.result-card:hover,
.result-card.featured {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
  transform: translateY(-3px);
}

.result-card:hover::before,
.result-card.featured::before {
  opacity: 1;
  transform: scaleX(1);
}

.result-card > span {
  color: var(--lime-deep);
  font-size: 9px;
  font-weight: 800;
}

.result-card strong {
  margin: 12px 0 7px;
  font-size: 16px;
  line-height: 1.55;
}

.result-card small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.result-card:hover small,
.result-card.featured small {
  color: #9cacb3;
}

.result-card > i {
  position: absolute;
  left: 20px;
  bottom: 17px;
  color: var(--lime);
  font-size: 18px;
  font-style: normal;
  transition: transform 0.18s ease;
}

.result-card:hover > i {
  transform: translateX(-4px);
}

body.dark-mode .large-search {
  border-color: #36515c;
  background: #0b222c;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

body.dark-mode .large-search input {
  color: #edf4f6;
}

body.dark-mode .large-search input::placeholder {
  color: #879ba3;
}

body.dark-mode .large-search button {
  border: 1px solid var(--lime);
  color: var(--on-lime);
  background: var(--lime);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.dark-mode .large-search button:hover {
  border-color: #ddff87;
  background: #ddff87;
  box-shadow: 0 10px 24px rgba(203, 243, 106, 0.2);
  transform: translateY(-1px);
}

body.dark-mode .search-examples a {
  border-color: #29414b;
  color: #b8c7cc;
  background: #0b222c;
}

body.dark-mode .search-examples a:hover {
  border-color: var(--lime);
  color: var(--on-lime);
  background: var(--lime);
}

body.dark-mode .result-card,
body.dark-mode .result-card.featured {
  border-color: #29414b;
  color: #edf4f6;
  background: #0b222c;
}

body.dark-mode .result-card.featured {
  border-color: var(--lime);
  background: #102a35;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

body.dark-mode .result-card:hover,
body.dark-mode .result-card.featured:hover {
  border-color: var(--lime);
  color: #edf4f6;
  background: #173643;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

body.dark-mode .result-card > span {
  color: var(--lime);
}

body.dark-mode .result-card small,
body.dark-mode .result-card.featured small {
  color: #a9b8bd;
}

body.dark-mode .result-card:hover small {
  color: #d0dade;
}

.empty-state {
  padding: 65px 20px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  text-align: center;
}

.empty-state > span {
  color: var(--lime-deep);
  font-size: 44px;
}

.empty-state h2 {
  margin: 8px 0;
  font-size: 20px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

/* Hijri year table */
.year-hero {
  min-height: 275px;
  margin-top: 24px;
  padding: 42px 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  overflow: hidden;
  border-radius: 28px;
  color: var(--white);
  background:
    radial-gradient(circle at 15% 20%, rgba(203, 243, 106, 0.14), transparent 28%),
    var(--ink);
}

.year-hero .section-kicker {
  color: var(--lime);
}

.year-hero h1 {
  margin: 9px 0 11px;
  font-size: clamp(36px, 5vw, 62px);
}

.year-hero p {
  margin: 0;
  color: #a7b5bb;
  font-size: 11px;
}

.year-hero > strong {
  width: 145px;
  height: 145px;
  flex: 0 0 145px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 50%;
  color: var(--ink);
  background: var(--lime);
  font-size: 34px;
  box-shadow: 0 0 0 20px rgba(203, 243, 106, 0.06);
}

.year-hero > strong small {
  margin-top: 5px;
  font-size: 9px;
}

.year-switcher {
  margin: 16px 0;
  padding: 9px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.55);
}

.year-switcher a {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
}

.year-switcher a:hover,
.year-switcher a.current {
  background: var(--lime);
}

.year-table-card {
  margin-bottom: 75px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.year-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
}

.year-table th,
.year-table td {
  padding: 17px 24px;
  border-bottom: 1px solid #e8ece9;
}

.year-table th {
  color: #829096;
  background: #f3f5f0;
  font-size: 8px;
}

.year-table td {
  color: #607279;
  font-size: 10px;
}

.year-table td:first-child strong,
.year-table td:first-child small {
  display: block;
}

.year-table td:first-child strong {
  color: var(--ink);
  font-size: 12px;
}

.year-table td:first-child small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 7px;
}

.table-link {
  padding: 8px 10px;
  display: inline-flex;
  border-radius: 9px;
  color: var(--ink);
  background: var(--lime);
  font-size: 8px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .today-hero {
    padding: 35px;
    grid-template-columns: 1fr 0.7fr;
    gap: 20px;
  }

  .today-hero .dynamic-moon {
    width: 270px;
    height: 270px;
  }

  .today-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .today-facts .iso-fact {
    grid-column: 1 / -1;
  }

  .week-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .week-grid article:nth-child(4) {
    border-left: 0;
  }

  .week-grid article:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .today-hero {
    min-height: auto;
    padding: 34px 24px 20px;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .freshness {
    justify-content: center;
  }

  .date-timeline {
    width: calc(100% - 18px);
    margin-top: -18px;
  }

  .date-timeline article {
    min-height: 91px;
    padding: 14px 6px;
  }

  .date-timeline strong {
    font-size: 11px;
  }

  .today-primary .eyebrow,
  .today-hijri-date {
    justify-content: center;
  }

  .today-primary h1 {
    margin-right: auto;
    margin-left: auto;
    font-size: 27px;
  }

  .visitor-country {
    margin-right: auto;
    margin-left: auto;
  }

  .today-weekday {
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .today-hijri-date > strong {
    font-size: 72px;
  }

  .today-hijri-date > span {
    font-size: 32px;
  }

  .primary-link {
    margin: 0 auto;
  }

  .today-hero .dynamic-moon {
    width: 220px;
    height: 220px;
  }

  .today-facts {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .today-facts article {
    min-height: 130px;
    padding: 17px;
  }

  .today-facts strong {
    font-size: 12px;
  }

  .today-copy {
    margin-top: 40px;
    padding: 30px 23px;
  }

  .week-ahead {
    padding-top: 45px;
  }

  .week-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .week-grid article,
  .week-grid article:nth-child(4) {
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .week-grid article:nth-child(even),
  .week-grid article:last-child {
    border-left: 0;
  }

  .week-grid article:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .today-guide {
    grid-template-columns: 1fr;
  }

  .today-guide > article {
    padding: 34px 24px;
  }

  .today-guide h2 {
    font-size: 23px;
  }

  .today-guide aside {
    padding: 27px 24px;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .countries-calendar {
    margin-top: 45px;
  }

  .countries-table {
    min-width: 0;
  }

  .countries-table thead {
    display: none;
  }

  .countries-table tbody {
    padding: 9px;
    display: grid;
    gap: 9px;
  }

  .countries-table tbody tr {
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .countries-table td {
    min-width: 0;
    padding: 10px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    border: 0;
    white-space: normal;
  }

  .countries-table td:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
  }

  .countries-table td:nth-child(2) {
    grid-column: 1 / -1;
    padding-top: 8px;
    padding-bottom: 5px;
  }

  .countries-table .table-date-cell strong {
    font-size: 11px !important;
  }

  .countries-table .table-date-cell small {
    font-size: 7px;
  }

  .today-copy h2 {
    font-size: 23px;
  }

  .search-hero {
    padding: 55px 0 35px;
  }

  .large-search {
    min-height: 56px;
  }

  .large-search input {
    padding: 0 10px;
    font-size: 10px;
  }

  .large-search button {
    min-width: 70px;
  }

  .search-examples {
    gap: 6px;
  }

  .search-examples a {
    padding: 7px 9px;
    font-size: 8px;
  }

  .search-results-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .year-hero {
    min-height: 225px;
    padding: 30px 23px;
  }

  .year-hero h1 {
    font-size: 34px;
  }

  .year-hero > strong {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
    font-size: 24px;
  }

  .year-table {
    min-width: 0;
  }

  .year-table thead {
    display: none;
  }

  .year-table tbody {
    padding: 9px;
    display: grid;
    gap: 9px;
  }

  .year-table tr {
    padding: 7px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .year-table td {
    padding: 10px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    border: 0;
  }

  .year-table td::before {
    content: attr(data-label);
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
  }

  .year-table td:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
  }

  .year-table td:last-child {
    grid-column: 1 / -1;
  }

  .table-link {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
  }
}

/* Navigation, search, live moon and monetization */
.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-search {
  width: 235px;
  height: 42px;
  padding: 0 7px 0 4px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.64);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--lime-deep);
  box-shadow: 0 0 0 4px rgba(158, 203, 56, 0.1);
}

.header-search input {
  width: 100%;
  min-width: 0;
  padding: 0 7px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 10px;
}

.header-search input::placeholder {
  color: #96a2a6;
}

.header-search button {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  background: var(--lime);
  cursor: pointer;
}

.header-search svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 9px;
  background: var(--ink);
  transition: 0.2s ease;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.dynamic-moon {
  position: relative;
  width: 390px;
  height: 390px;
  margin: 0 0 172px;
  display: grid;
  place-items: center;
  justify-self: center;
}

.moon-orbit {
  position: absolute;
  border: 1px solid rgba(7, 29, 43, 0.13);
  border-radius: 50%;
  pointer-events: none;
}

.moon-orbit-one {
  inset: 0;
  animation: spin 30s linear infinite;
}

.moon-orbit-two {
  inset: 46px;
  border-style: dashed;
  animation: spin 22s linear infinite reverse;
}

.moon-disc {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  overflow: hidden;
  display: block;
  border-radius: 50%;
  background: #d8d8d4 url("assets/images/moon-realistic.webp") center / cover no-repeat;
  box-shadow:
    inset -15px -18px 32px rgba(7, 29, 43, 0.18),
    0 30px 80px rgba(7, 29, 43, 0.24);
}

.moon-phase-shadow {
  position: absolute;
  z-index: 3;
  inset: -1px;
  display: block;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 12px 0 28px rgba(7, 29, 43, 0.06);
  transform: translateX(var(--moon-shadow-x));
  transition: transform 0.8s ease;
}

.moon-crater {
  display: none;
}

.crater-one {
  width: 48px;
  height: 48px;
  right: 39px;
  top: 42px;
}

.crater-two {
  width: 25px;
  height: 25px;
  left: 42px;
  bottom: 48px;
}

.moon-star {
  position: absolute;
  top: 38px;
  right: 42px;
  z-index: 4;
  color: var(--lime-deep);
  font-size: 27px;
  font-style: normal;
}

.dynamic-moon figcaption {
  position: absolute;
  z-index: 5;
  right: 50%;
  bottom: -58px;
  min-width: 155px;
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  backdrop-filter: blur(8px);
  transform: translateX(50%);
}

.dynamic-moon figcaption strong {
  color: var(--ink);
  font-size: 13px;
}

.dynamic-moon figcaption small {
  color: #40545d;
  font-size: 10px;
  font-weight: 700;
}

.moon-share-panel {
  position: absolute;
  z-index: 6;
  top: calc(100% + 72px);
  right: 50%;
  width: 210px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(203, 243, 106, 0.3);
  border-radius: 17px;
  background: rgba(7, 29, 43, 0.96);
  box-shadow: 0 18px 45px rgba(7, 29, 43, 0.24);
  transform: translateX(50%);
}

.moon-share-content {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.moon-share-content > strong {
  display: block;
  margin-bottom: 7px;
  color: var(--white);
  font-size: 11px;
}

.moon-share-icons {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.moon-share-icons a,
.moon-share-icons button {
  width: 29px;
  height: 29px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: 0.2s ease;
}

.moon-share-icons a:hover,
.moon-share-icons button:hover {
  border-color: var(--lime);
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-2px);
}

.moon-share-icons svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.moon-share-icons [data-share-platform="facebook"] svg {
  fill: currentColor;
  stroke: none;
}

.ad-space {
  width: 100%;
  max-width: 100%;
  height: 250px;
  min-height: 250px;
  max-height: 250px;
  margin: 20px 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: #40545d;
  background: transparent;
  text-align: center;
  contain: layout paint;
  isolation: isolate;
}

.ad-space span {
  padding: 5px 8px;
  border-radius: 6px;
  color: #263d47;
  background: #e0e5df;
  font-size: 8px;
  font-weight: 700;
}

.ad-space small {
  font-size: 8px;
}

.ad-space .adsbygoogle {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  overflow: hidden !important;
}

.ad-space .adsbygoogle iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.ad-space-in_content {
  min-height: 250px;
}

.ad-space-placeholder {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  justify-content: center;
  border-radius: 18px;
  background: var(--card);
}

@media (max-width: 1080px) {
  .nav-shell {
    gap: 14px;
  }

  .main-nav {
    gap: 20px;
  }

  .header-search {
    width: 180px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: flex;
  }

  .nav-shell {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    padding: 16px;
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: 0.2s ease;
  }

  .nav-shell.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
  }

  .main-nav a {
    padding: 12px;
    border-radius: 10px;
    background: #f3f5f0;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a.active {
    color: var(--ink);
    background: var(--lime);
  }

  .header-search {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 24px);
  }

  .icon-button,
  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  .dynamic-moon {
    width: 230px;
    height: 230px;
    margin: 4px auto 172px;
  }

  .moon-orbit-two {
    inset: 27px;
  }

  .moon-disc {
    width: 132px;
    height: 132px;
  }

  .crater-one {
    width: 28px;
    height: 28px;
    right: 23px;
    top: 25px;
  }

  .crater-two {
    width: 15px;
    height: 15px;
    left: 25px;
    bottom: 29px;
  }

  .moon-star {
    top: 22px;
    right: 24px;
    font-size: 19px;
  }

  .dynamic-moon figcaption {
    bottom: -58px;
  }

  .moon-share-panel {
    width: min(235px, calc(100vw - 42px));
  }

  .hero {
    gap: 8px;
  }

  .ad-space {
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    margin: 14px 0;
    padding: 0;
  }

  .ad-space-placeholder {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
  }
}

@media (max-width: 900px) {
  body.dark-mode .main-nav a {
    color: var(--ink);
    background: #102a35;
  }

  body.dark-mode .main-nav a.active {
    color: var(--on-lime);
    background: var(--lime);
  }
}

body.dark-mode .menu-toggle {
  border-color: #36515c;
  background: #102a35;
}

body.dark-mode .menu-toggle span {
  background: var(--lime);
}

body.dark-mode .menu-toggle.is-open {
  border-color: var(--lime);
  background: var(--lime);
}

body.dark-mode .menu-toggle.is-open span {
  background: var(--on-lime);
}

body.dark-mode .month-nav-link:hover {
  background: #102a35;
}

body.dark-mode .months-grid a.current {
  border-color: var(--lime);
  color: var(--on-lime);
  background: var(--lime);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);
}

body.dark-mode .months-grid a > span {
  color: var(--on-lime);
  background: var(--lime);
}

body.dark-mode .months-grid a.current > span {
  color: var(--lime);
  background: var(--dark-surface);
}

body.dark-mode .months-grid a.current strong,
body.dark-mode .months-grid a.current small {
  color: var(--on-lime);
}

body.dark-mode .months-grid a:not(.current):hover {
  border-color: var(--lime);
  color: #edf4f6;
  background: #102a35;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.26);
  transform: translateY(-3px);
}

body.dark-mode .months-grid a:not(.current):hover strong {
  color: #edf4f6;
}

body.dark-mode .months-grid a:not(.current):hover small {
  color: #c7d3d7;
}

body.dark-mode .months-grid a:not(.current):hover > span {
  color: var(--on-lime);
  background: var(--lime);
}

body.dark-mode .months-grid a.current:hover {
  border-color: #ddff87;
  background: #ddff87;
  transform: translateY(-3px);
}

body.dark-mode .months-grid a.current:hover strong,
body.dark-mode .months-grid a.current:hover small {
  color: var(--on-lime);
}

body.dark-mode .months-grid a.current:hover > span {
  color: #ddff87;
  background: var(--dark-surface);
}

body.dark-mode .header-search button {
  border: 1px solid var(--lime);
  color: var(--on-lime);
  background: var(--lime);
}

body.dark-mode .header-search button svg {
  stroke: var(--on-lime);
}

body.dark-mode .header-search button:hover {
  border-color: #ddff87;
  background: #ddff87;
}

body.dark-mode .home-quick-links a {
  border-color: #29414b;
  color: var(--ink);
  background: #0b222c;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

body.dark-mode .home-quick-links a > span {
  color: var(--on-lime);
  background: var(--lime);
}

body.dark-mode .home-quick-links a strong {
  color: #edf4f6;
}

body.dark-mode .home-quick-links a small {
  color: #a9b8bd;
}

body.dark-mode .home-quick-links a:hover {
  border-color: var(--lime);
  color: #edf4f6;
  background: #102a35;
}

body.dark-mode .home-quick-links a:hover small {
  color: #c7d3d7;
}

body.dark-mode .event-card,
body.dark-mode .event-card:first-child {
  border-color: #29414b;
  color: #edf4f6;
  background: #0b222c;
}

body.dark-mode .event-card h3 {
  color: #edf4f6;
}

body.dark-mode .event-card .event-count {
  color: var(--lime);
}

body.dark-mode .event-card .event-date,
body.dark-mode .event-card p,
body.dark-mode .event-card:first-child .event-date,
body.dark-mode .event-card:first-child p {
  color: #a9b8bd;
}

body.dark-mode .event-card:first-child {
  border-color: var(--lime);
  color: #edf4f6;
  background: #102a35;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

body.dark-mode .event-card:first-child .event-date,
body.dark-mode .event-card:first-child p {
  color: #c7d3d7;
}

body.dark-mode .event-card:hover,
body.dark-mode .event-card:first-child:hover {
  border-color: var(--lime);
  color: #edf4f6;
  background: #102a35;
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

body.dark-mode .event-card:hover .event-date,
body.dark-mode .event-card:hover p {
  color: #c7d3d7;
}

body.dark-mode .share-button {
  border: 1px solid var(--lime);
  color: var(--on-lime);
  background: var(--lime);
}

body.dark-mode .share-button svg {
  stroke: var(--on-lime);
}

body.dark-mode .share-button:hover {
  border-color: #ddff87;
  color: var(--on-lime);
  background: #ddff87;
  box-shadow: 0 12px 28px rgba(203, 243, 106, 0.17);
}

.year-table tbody tr,
.countries-table tbody tr,
.gregorian-day {
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body.dark-mode .day.selected {
  color: #edf4f6;
  background: var(--dark-surface);
  box-shadow: inset 0 0 0 1px var(--lime), 0 9px 22px rgba(0, 0, 0, 0.24);
}

body.dark-mode .day:not(.outside):hover {
  color: #edf4f6;
  background: #173643;
  box-shadow: inset 0 0 0 1px var(--lime);
  transform: translateY(-2px);
}

body.dark-mode .day:not(.outside):hover .gregorian-number {
  color: #c7d3d7;
}

body.dark-mode .day.selected .gregorian-number,
body.dark-mode .day.selected.friday .hijri-number {
  color: var(--lime);
}

body.dark-mode .month-table tbody tr:hover,
body.dark-mode .year-table tbody tr:hover,
body.dark-mode .countries-table tbody tr:hover {
  background: #102a35;
  box-shadow: inset -3px 0 0 var(--lime);
}

body.dark-mode .month-table tbody tr:hover td,
body.dark-mode .year-table tbody tr:hover td,
body.dark-mode .countries-table tbody tr:hover td {
  color: #dce6e9;
  border-color: #36515c;
}

body.dark-mode .month-table tbody tr:hover strong,
body.dark-mode .year-table tbody tr:hover strong,
body.dark-mode .countries-table tbody tr:hover strong {
  color: #edf4f6;
}

body.dark-mode .month-table tbody tr:hover small,
body.dark-mode .year-table tbody tr:hover small,
body.dark-mode .countries-table tbody tr:hover small {
  color: #a9b8bd;
}

body.dark-mode .month-table .today-row,
body.dark-mode .countries-table .selected-country {
  background: rgba(203, 243, 106, 0.12);
  box-shadow: inset -3px 0 0 var(--lime);
}

body.dark-mode .month-table .today-row:hover,
body.dark-mode .countries-table .selected-country:hover {
  background: rgba(203, 243, 106, 0.18);
}

body.dark-mode .gregorian-day:not(.is-empty):hover {
  background: #173643;
  box-shadow: inset 0 0 0 1px var(--lime);
  transform: translateY(-2px);
}

body.dark-mode .gregorian-day:not(.is-empty):hover strong {
  color: #edf4f6;
}

body.dark-mode .gregorian-day:not(.is-empty):hover small {
  color: #c7d3d7;
}

body.dark-mode .gregorian-day.is-today,
body.dark-mode .gregorian-day.is-today:hover {
  color: var(--on-lime);
  background: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(7, 29, 43, 0.2);
}

body.dark-mode .gregorian-day.is-today strong,
body.dark-mode .gregorian-day.is-today small {
  color: var(--on-lime);
}

body.dark-mode .home-hero-actions a.primary,
body.dark-mode .home-hero-actions a.primary:hover {
  border-color: var(--lime);
  color: var(--on-lime);
  background: var(--lime);
}

body.dark-mode .month-symbol,
body.dark-mode .month-symbol span,
body.dark-mode .month-symbol small {
  color: var(--on-lime);
}

body.dark-mode .gregorian-hero > div:first-child > a,
body.dark-mode .gregorian-hero > div:first-child > a:hover {
  color: var(--on-lime);
  background: var(--lime);
}

body.dark-mode .days-badge {
  color: var(--on-lime);
  background: var(--lime);
}

body.dark-mode .dynamic-moon figcaption {
  border-color: #36515c;
  color: #edf4f6;
  background: #102a35;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

body.dark-mode .dynamic-moon figcaption strong {
  color: #edf4f6;
}

body.dark-mode .dynamic-moon figcaption small {
  color: #c7d3d7;
}

body.dark-mode .today-guide aside a {
  border: 1px solid #45616d;
  color: #e4edef;
  background: #173643;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

body.dark-mode .today-guide aside a:hover {
  border-color: #78984a;
  color: #d9edaa;
  background: #102a35;
}

body.dark-mode .today-faq .section-kicker {
  color: #a9b8bd;
}

body.dark-mode .faq-list details {
  border-color: #29414b;
  background: #0b222c;
}

body.dark-mode .faq-list details[open] {
  border-color: #45616d;
  background: #102a35;
}

body.dark-mode .faq-list summary {
  color: #dce6e9;
}

body.dark-mode .faq-list summary::after {
  border: 1px solid #45616d;
  color: #d9edaa;
  background: #173643;
}

body.dark-mode .faq-list p {
  color: #b8c6ca;
}

/* Accessible table contrast in dark mode */
body.dark-mode .month-table .weekday-cell {
  color: #c7d3d7;
}

body.dark-mode .month-table .friday-row .weekday-cell {
  color: var(--lime);
}

body.dark-mode .month-table .today-row .weekday-cell {
  color: #edf4f6;
}

/* Contact page */
.contact-page main {
  min-height: calc(100vh - 220px);
}

.contact-hero {
  margin: 18px 0 26px;
  padding: clamp(34px, 6vw, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 10%, rgba(203, 243, 106, 0.16), transparent 31%),
    var(--card);
  box-shadow: var(--shadow);
}

.contact-copy h1 {
  margin: 10px 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.contact-copy > p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 2;
}

.contact-topics {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.contact-topics span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  font-weight: 700;
}

.contact-card {
  padding: 30px;
  border: 1px solid rgba(203, 243, 106, 0.45);
  border-radius: 24px;
  color: #edf4f6;
  background: #071d2b;
  box-shadow: 0 25px 60px rgba(7, 29, 43, 0.25);
}

.contact-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 28px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: var(--on-lime);
  background: var(--lime);
}

.contact-icon svg {
  width: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card > small {
  display: block;
  color: #a9b8bd;
  font-size: 11px;
}

.contact-email {
  margin-top: 8px;
  display: inline-block;
  color: var(--lime);
  font-size: clamp(20px, 2.6vw, 29px);
  font-weight: 800;
}

.contact-card p {
  margin: 16px 0 24px;
  color: #b9c6ca;
  font-size: 11px;
  line-height: 1.9;
}

.contact-button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 13px;
  color: var(--on-lime);
  background: var(--lime);
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(203, 243, 106, 0.22);
}

.contact-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-note {
  margin-bottom: 70px;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.contact-note strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 13px;
}

.contact-note p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

body.dark-mode .contact-hero {
  background:
    radial-gradient(circle at 12% 10%, rgba(203, 243, 106, 0.1), transparent 31%),
    #0b222c;
}

body.dark-mode .contact-topics span {
  border-color: #36515c;
  color: #d5e0e3;
  background: #102a35;
}

body.dark-mode .contact-card {
  border-color: rgba(203, 243, 106, 0.42);
  background: #06161e;
}

body.dark-mode .footer-links a.active {
  border-color: var(--lime);
  color: var(--on-lime);
  background: var(--lime);
}

@media (max-width: 820px) {
  .contact-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-hero {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .contact-card {
    padding: 24px 20px;
  }

  .contact-email {
    font-size: 19px;
  }

  .contact-note {
    margin-bottom: 42px;
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

/* Larger, more readable table typography */
.month-table th,
.year-table th,
.countries-table th {
  font-size: 11px;
}

.month-table td,
.year-table td,
.countries-table td {
  font-size: 13px;
  line-height: 1.7;
}

.month-table td strong,
.year-table td:first-child strong,
.countries-table td > strong {
  font-size: 14px;
}

.table-date-cell strong {
  font-size: 15px !important;
}

.table-date-cell small,
.year-table td:first-child small {
  font-size: 10px;
  line-height: 1.6;
}

.weekday-cell {
  font-size: 13px;
}

.weekday-cell i,
.table-link {
  font-size: 10px;
}

.weekdays {
  font-size: 10px;
}

.day .gregorian-number {
  font-size: 11px;
}

.gregorian-weekdays span {
  font-size: 10px;
}

.gregorian-day strong {
  font-size: 13px;
}

.gregorian-day small {
  font-size: 8px;
}

@media (max-width: 680px) {
  .month-table td,
  .year-table td,
  .countries-table td {
    font-size: 12px;
    line-height: 1.6;
  }

  .month-table td::before,
  .year-table td::before,
  .countries-table td::before {
    font-size: 9px;
  }

  .month-table td strong,
  .year-table td:first-child strong,
  .countries-table td > strong {
    font-size: 13px;
  }

  .month-table .table-date-cell strong,
  .year-table .table-date-cell strong,
  .countries-table .table-date-cell strong {
    font-size: 14px !important;
  }

  .countries-table .table-date-cell small,
  .year-table td:first-child small {
    font-size: 9px;
  }

  .weekday-cell {
    font-size: 12px;
  }

  .table-link {
    min-height: 36px;
    align-items: center;
    justify-content: center;
    font-size: 11px;
  }

  .weekdays {
    font-size: 9px;
  }

  .day .hijri-number {
    font-size: 16px;
  }

  .day .gregorian-number {
    font-size: 10px;
  }

  .gregorian-weekdays span {
    font-size: 9px;
  }

  .gregorian-day strong {
    font-size: 14px;
  }

  .gregorian-day small {
    font-size: 9px;
  }
}
