/* THE SPINNER LOGIC */
.f1-spinner {
  border: 4px solid rgba(225, 6, 0, 0.1);
  border-left-color: #e10600; /* F1 Red */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin: 0 auto 20px;
  animation: f1-spin 1s linear infinite;
}

@keyframes f1-spin {
  100% { transform: rotate(360deg); }
}
.session-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9em;
  letter-spacing: 1px;
  border: 1px solid rgba(0,0,0,0.2);
  /* We will set the text color dynamically in the HTML tag */
}

#quarto-header, 
.navbar, 
.navbar-container,
#quarto-search-results,
header.quarto-header {
  display: none !important;
  height: 0 !important;
  visibility: hidden !important;
}

/* 2. Hides the automatic page title that Quarto inserts */
header#title-block-header {
  display: none !important;
}

/* 3. Pulls the main content to the very top of the screen */
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/* 2. The Container Fix */
#quarto-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 3. The Spacer Trick */
/* This pushes the footer to the bottom, but only if the content is short */
.main-content-area {
  flex: 1;
}

/* 1. THE TOGGLE LOOK */
.f1-toggle-container input[type="checkbox"] {
  appearance: none;
  background: #222;
  color: #e10600;
  border: 1px solid #111;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  min-width: 60px;
  display: flex;
  align-items: center;    /* Added to keep text centered */
  justify-content: center; /* Added to keep text centered */
  line-height: 1
}

.f1-toggle-container input[type="checkbox"]::before {
  content: "→ °F";
  font-size: 0.75em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.f1-toggle-container input[type="checkbox"]:checked::before {
  content: "→ °C";
}

/* Consolidated the Input/Form resets */
.f1-toggle-container :is(.observablehq--input, form) {
  width: auto !important;
  margin: 0 !important;
  display: inline-block !important;
}

/* 2. LAYOUT & MOBILE */
.cell, .cell-content {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .page-columns .content {
    grid-column: screen-start/screen-end !important;
  }
}

/* 3. ANIMATIONS */
@keyframes live-breathe {
  0% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.7); }
  50% { transform: scale(1); opacity: 1; box-shadow: 0 0 8px 2px rgba(225, 6, 0, 0.5); }
  100% { transform: scale(0.9); opacity: 0.7; box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.7); }
}

.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #e10600;
  border-radius: 50%;
  margin-right: 8px;
  animation: live-breathe 2s ease-in-out infinite;
}
/* Remove default Quarto/Observable underlines and borders on headers */
h1, h2, h3, .observablehq-view {
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Specifically target the big temperature display if it's an h2 */
h2 {
  margin: 0 !important;
  padding: 0 !important;
}

.signature {
  position: fixed;
  bottom: 10px;
  right: 15px;
  font-family: 'Titillium Web', sans-serif; /* Use your app font */
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6); /* Semi-transparent white */
  z-index: 9999;
  text-decoration: none;
}

.signature a {
  color: #e10600; /* F1 Red color */
  text-decoration: none;
  font-weight: bold;
}

.signature a:hover {
  text-decoration: underline;
}

.quarto-secondary-nav, 
.page-columns, 
.panel-input {
  width: 100%;
}

.quarto-container, 
#quarto-content, 
main.content,
.page-columns {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.rain-horizon {
  display: flex;
  overflow-x: auto;
  gap: 12px; /* More space between cards */
  padding: 15px 5px 20px 5px; /* Extra bottom padding for the scrollbar */
  margin: 5px 0;
  scrollbar-width: thin;
  scrollbar-color: #444 #1a1a1a;
}

.hour-card {
  flex: 0 0 65px; /* Increased from 55px - feels more like a real UI element */
  background: #1a1a1a;
  border-radius: 8px;
  padding: 4px 0; /* More vertical space inside the card */
  line-height: 1;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3); /* Adds depth */
}