*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #ffffff;
  color: #111111;
  font-size: 16px;
  line-height: 1.5;
}

/* ── Header ──────────────────────────────────────────────────── */

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 2rem;
  gap: 1rem;
}

.date-label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #444;
  padding-top: 0.35rem; /* optical alignment with widget */
}

/* ── Day widget ──────────────────────────────────────────────── */

.widget {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
}

.widget-heading {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: #555;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.widget-heading:hover {
  color: #111;
}

.day-row {
  display: flex;
  gap: 0.35rem;
}

.day-btn {
  background: none;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  width: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  color: #333;
  transition: background 0.1s, border-color 0.1s;
}

.day-btn:hover:not(:disabled):not(.active) {
  background: #f4f4f4;
  border-color: #bbb;
}

.day-btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.day-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.day-name {
  font-size: 0.8rem;
  font-weight: 600;
}

.day-num {
  font-size: 0.75rem;
  opacity: 0.8;
}

.day-btn.active .day-num {
  opacity: 0.7;
}

/* Invisible trigger for the native date picker.
   Must NOT have pointer-events:none — the browser needs it focusable so the
   picker popup can receive events and be dismissed normally.
   Positioned at bottom of widget so the popup opens downward into the page. */
.date-picker {
  position: absolute;
  opacity: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
}

/* ── Main ────────────────────────────────────────────────────── */

.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.location {
  font-size: clamp(1.6rem, 4.5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: #111;
}

.note {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: #666;
  max-width: 44ch;
}
