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

body {
  overflow: hidden;
  background: #111;
  font-family: 'Segoe UI', sans-serif;
  color: #fff;
}

.tile {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  position: relative;
}

.tile h2 {
  font-size: clamp(1rem, 2vw, 1.6rem);
  margin-bottom: 0.5rem;
  align-self: flex-start;
}

/* Logo */
.tile-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Clock */
.tile-clock          { text-align: center; }
.tile-clock .time    { font-size: clamp(2rem, 6vw, 5rem); font-weight: 700; }
.tile-clock .date    { font-size: clamp(0.9rem, 1.8vw, 1.4rem); }

/* Welcome */
.tile-welcome        { text-align: center; padding: 2rem; }
.tile-welcome h1     { font-size: clamp(1.4rem, 3vw, 2.8rem); margin-bottom: 1rem; }
.tile-welcome p      { font-size: clamp(0.9rem, 1.5vw, 1.2rem); margin-bottom: 0.75rem; }
.tile-welcome small  { font-size: clamp(0.75rem, 1.2vw, 1rem); opacity: 0.8; }

/* News */
.tile-news           { justify-content: flex-start; align-items: flex-start; }
.tile-news ul        { list-style: disc; padding-left: 1.5rem; font-size: clamp(0.85rem, 1.5vw, 1.1rem); line-height: 1.8; width: 100%; }

/* Calendar */
.tile-calendar       { justify-content: flex-start; align-items: flex-start; }
.tile-calendar table { width: 100%; font-size: clamp(0.85rem, 1.5vw, 1.1rem); border-collapse: collapse; }
.tile-calendar tr    { border-bottom: 1px solid rgba(255,255,255,0.1); }
.tile-calendar td    { padding: 0.3rem 0; }
.tile-calendar td:last-child { text-align: right; }

/* Sponsors */
.tile-sponsors         { justify-content: flex-start; overflow: hidden; padding: 0.5rem; }
#sponsor-list          { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; align-items: center; width: 100%; min-height: 0; }
.tile-sponsors img     { width: 90%; flex: 1; min-height: 0; max-height: 100%; object-fit: contain; }
.tile-sponsors span    { display: block; text-align: center; font-size: clamp(0.75rem, 1.2vw, 1rem); }

/* Slideshow & YouTube */
.tile-slideshow,
.tile-youtube        { padding: 0; }
.tile-youtube iframe { display: block; }

/* Weather */
.tile-weather        { flex-direction: column; padding: 0; }
.weather-current     {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0,0,0,0.4);
  width: 100%;
  flex-shrink: 0;
}
#weather-temp        { font-size: clamp(1.2rem, 2.5vw, 2rem); font-weight: 700; }
#weather-desc        { font-size: clamp(0.8rem, 1.4vw, 1.1rem); color: #cde; }
#weather-radar       { flex: 1; width: 100%; border: 0; pointer-events: none; }

/* Last-updated timestamp shown in news and calendar tiles */
.last-updated {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: 0.7rem;
  opacity: 0.6;
}
