.calendar-intro {
  padding: 56px 0 8px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, var(--lighter-background), var(--background) 70%);
}

.calendar-intro h1 {
  color: var(--foreground);
  font-size: 2rem;
}

.calendar-panel {
  padding: 40px 0 80px;
}

.calendar-layout {
  display: flex;
  justify-content: center;
}

.calendar-card {
  width: 100%;
  max-width: 480px;
  background: var(--lighter-background);
  border: 1px solid var(--muted);
  border-radius: 16px;
  padding: 20px;
}

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calendar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  text-align: center;
}

.calendar-nav {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--muted);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  flex: 0 0 auto;
}

.calendar-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.calendar-today-btn {
  display: block;
  margin: 10px auto 4px;
  background: transparent;
  color: var(--light-foreground);
  border: 1px solid var(--muted);
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.calendar-today-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 16px;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--light-foreground);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(44px, 1fr);
  gap: 4px;
  margin-top: 8px;
}

.calendar-day {
  position: relative;
  background: var(--background);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--foreground);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 6px;
}

.calendar-day.is-outside {
  color: var(--light-foreground);
  opacity: 0.35;
}

.calendar-day.is-today .calendar-day-number {
  background: var(--accent);
  color: var(--dark-background);
}

.calendar-day-number {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
}

.calendar-day.has-holiday {
  border-color: var(--teal);
}

.calendar-day-holiday-dot {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cyan);
}

.calendar-holidays {
  list-style: none;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calendar-holidays:empty {
  display: none;
}

.calendar-holiday-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.85rem;
}

.calendar-holiday-date {
  color: var(--cyan);
  font-weight: 600;
  flex: 0 0 auto;
  min-width: 34px;
}

.calendar-holiday-name {
  color: var(--light-foreground);
}

/* --- Time Conversion --- */

.timeconvert-section {
  padding: 0 0 80px;
}

.timeconvert-heading {
  text-align: center;
  color: var(--foreground);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.timeconvert-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--lighter-background);
  border: 1px solid var(--muted);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeconvert-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.timeconvert-zones {
  align-items: flex-end;
  justify-content: center;
}

.timeconvert-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--light-foreground);
  flex: 1;
  min-width: 160px;
}

.timeconvert-field input,
.timeconvert-field select {
  background: var(--background);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.9rem;
}

.timeconvert-field input:focus,
.timeconvert-field select:focus {
  outline: none;
  border-color: var(--accent);
}

.timeconvert-now {
  background: transparent;
  color: var(--light-foreground);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.timeconvert-now:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.timeconvert-swap {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--muted);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  flex: 0 0 auto;
  margin-bottom: 1px;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.timeconvert-swap:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(180deg);
}

.timeconvert-result {
  background: var(--background);
  border: 1px solid var(--muted);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.timeconvert-result .tc-result-time {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.timeconvert-result .tc-result-zone {
  color: var(--light-foreground);
  font-size: 0.85rem;
  margin-top: 4px;
}

.timeconvert-result .tc-result-offset {
  color: var(--light-foreground);
  font-size: 0.8rem;
  margin-top: 10px;
}

/* --- What Day Was It? --- */

.dayfinder-section {
  padding: 0 0 80px;
}

.dayfinder-heading {
  text-align: center;
  color: var(--foreground);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.dayfinder-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--lighter-background);
  border: 1px solid var(--muted);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dayfinder-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--light-foreground);
}

.dayfinder-field input {
  background: var(--background);
  border: 1px solid var(--muted);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.9rem;
}

.dayfinder-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.dayfinder-result {
  background: var(--background);
  border: 1px solid var(--muted);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.dayfinder-result .df-result-weekday {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.dayfinder-result .df-result-date {
  color: var(--light-foreground);
  font-size: 0.9rem;
  margin-top: 4px;
}

.dayfinder-result .df-result-relative {
  color: var(--cyan);
  font-size: 0.8rem;
  margin-top: 10px;
}

.dayfinder-events {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.dayfinder-events:empty {
  display: none;
}

.dayfinder-event {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.dayfinder-event-year {
  flex: 0 0 auto;
  min-width: 52px;
  color: var(--cyan);
  font-weight: 700;
}

.dayfinder-event-text {
  color: var(--light-foreground);
}

.dayfinder-event-text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--muted);
}

.dayfinder-event-text a:hover {
  color: var(--foreground);
}

.dayfinder-events-status {
  color: var(--light-foreground);
  font-size: 0.85rem;
  text-align: center;
}

.dayfinder-note {
  max-width: 500px;
  margin: 4px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
}

.dayfinder-note a {
  color: var(--muted);
}
