/* -------------------------------------------------------
   SANDY HOOF — COMPONENT STYLES
   Uses primitives from foundation.css
   ------------------------------------------------------- */

/* -------------------------------------------------------
   CIRCLE IMAGES
   ------------------------------------------------------- */
.circle-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-driftwood);
  display: flex;
  flex-shrink: 0;
}
.circle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--color-driftwood);
}
.caption {
  margin: 0;
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--color-driftwood);
  text-align: center;
  font-family: var(--font-headline);
}

/* -------------------------------------------------------
   BUTTON SYSTEM
   ------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: var(--space-s) var(--space-l);
  border-radius: var(--radius-m);
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: var(--color-burnt-clay);
  color: var(--text-on-pop);
  margin-top: var(--space-s);
  margin-bottom: var(--space-s);
}
.btn-primary:hover {
  background: var(--color-driftwood);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-olive-moss);
  color: var(--text-on-pop);
  margin-top: var(--space-s);
  margin-bottom: var(--space-s);
}
.btn-secondary:hover {
  background: var(--color-driftwood);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-burnt-clay);
  box-shadow: none;
}
.btn-ghost:hover {
  opacity: 0.7;
}

.btn-danger {
  background: var(--color-burnt-clay);
  color: var(--text-on-pop);
}
.btn-danger:hover {
  background: var(--color-burnt-clay);
  transform: translateY(-1px);
}

.btn:disabled,
.btn.disabled {
  background: rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.4);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* -------------------------------------------------------
   FORM CONTAINER + SECTIONS
   ------------------------------------------------------- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  margin: var(--space-l) 0;
}

.form-section {
  padding: var(--space-m);
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-soft-light);
}

.form-section-title {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  margin-bottom: var(--space-s);
  color: var(--color-driftwood);
}

.form-section-subtitle {
  font-size: 0.95rem;
  color: rgba(0,0,0,0.6);
  margin-bottom: var(--space-m);
}

.form-divider {
  height: 1px;
  background: var(--color-soft-light);
  margin: var(--space-l) 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}
@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------------
   CARD VARIANTS
   ------------------------------------------------------- */
.card-hover:hover {
  background: var(--color-golden-dune);
  transform: translateY(-2px);
}

.card-elevated {
  background: var(--color-soft-light);
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card-title {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  margin-bottom: var(--space-s);
  color: var(--color-driftwood);
}

.card-subtitle {
  font-size: 0.95rem;
  color: rgba(0,0,0,0.6);
  margin-bottom: var(--space-s);
}

.card-content {
  margin-top: var(--space-s);
  font-size: 1rem;
  line-height: 1.5;
}

.card-actions {
  margin-top: var(--space-m);
  display: flex;
  gap: var(--space-s);
}

/* -------------------------------------------------------
   HEADER
   ------------------------------------------------------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-s) var(--space-l);
  background: #fff;
  border-bottom: 1px solid var(--color-soft-light);
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-container img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-m);
}

.hamburger {
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
  color: var(--color-driftwood);
}

.hamburger-menu a {
  color: var(--color-driftwood) !important;
  text-decoration: none;
}

/* Hide menu by default */
.hamburger-menu {
  display: none;
}

/*When toggled open*/
.hamburger-menu.open {
  display: block;
}

/* Remove bullets + reset spacing */
.hamburger-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;

  /* Menu panel styling */
  position: absolute;
  right: var(--space-m);
  margin-left: var(--space-m);
  top: 3.5rem;
  background: #fff;
  color: var(--color-driftwood) !important;
  font-weight: bold;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  padding: var(--space-m);
  z-index: 1000;
}

/* Individual menu items */
.hamburger-menu li {
  list-style: none;
  padding: var(--space-s) 0;
}

/* -------------------------------------------------------
   BOTTOM NAVIGATION
   ------------------------------------------------------- */
nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--color-soft-light);
  box-shadow: var(--shadow-soft);
  padding: var(--space-s) 0;
  z-index: 100;
}

nav ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
}

nav ul li {
  flex: 1;
  text-align: center;
}

nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.4rem;
  color: var(--color-driftwood);
  padding: var(--space-xs) 0;
  transition: color 0.2s ease, transform 0.1s ease;
}

nav ul li a.active {
  color: var(--color-burnt-clay);
  transform: translateY(-1px);
}

nav ul li a i {
  font-size: 1.6rem;
  margin-bottom: 0.1rem;
}

nav ul li a img.nav-icon {
  width: 22px;
  height: 22px;
  margin-bottom: 0.1rem;
  opacity: 0.9;
}

nav ul li a.active img.nav-icon {
  opacity: 1;
  filter: brightness(1.1);
}

/* -------------------------------------------------------
   FLASH MESSAGES
   ------------------------------------------------------- */
.flash {
  padding: var(--space-s) var(--space-m);
  margin: var(--space-s) var(--space-m);
  border-radius: var(--radius-m);
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease-out;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-body);
  line-height: 1.4;
}

.flash-success {
  background: rgba(152, 148, 111, 0.15);
  border-left: 4px solid var(--color-olive-moss);
  color: var(--color-olive-moss);
}

.flash-error {
  background: rgba(192, 130, 91, 0.15);
  border-left: 4px solid var(--color-burnt-clay);
  color: var(--color-burnt-clay);
}

.flash-info {
  background: rgba(215, 171, 111, 0.15);
  border-left: 4px solid var(--color-golden-dune);
  color: var(--color-golden-dune);
}

.flash p {
  margin: 0;
}

/* -------------------------------------------------------
   LISTS
   ------------------------------------------------------- */
.list {
  list-style: none;
  padding: 0;
  margin: var(--space-m) 0;
}

.list-item {
  padding: var(--space-s) var(--space-m);
  border-bottom: 1px solid var(--color-soft-light);
  font-family: var(--font-body);
  color: var(--color-driftwood);
}
.list-item:last-child {
  border-bottom: none;
}
.list-item:hover {
  background: var(--color-golden-dune);
  cursor: pointer;
}

/* -------------------------------------------------------
   MODALS
   ------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(109, 65, 34, 0.25);
  backdrop-filter: blur(2px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-m);
  z-index: 2000;
  animation: fadeIn 0.25s ease-out;
}

.modal {
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  width: 100%;
  max-width: 420px;
  padding: var(--space-l);
  animation: slideUp 0.25s ease-out;
  color: var(--color-driftwood);
  font-family: var(--font-body);
}

.modal-title {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  margin-bottom: var(--space-s);
}

.modal-body {
  margin-bottom: var(--space-m);
  font-size: 1rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-s);
}

/* -------------------------------------------------------
   PAGE HEADERS — Sandy Hoof
   ------------------------------------------------------- */

.page-header {
  margin: var(--space-l) 0 var(--space-m);
  text-align: left;
}

.page-title {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--color-driftwood);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1rem;
  color: rgba(0,0,0,0.6);
  margin-bottom: var(--space-m);
  font-family: var(--font-body);
}

.page-title-with-icon {
  display: flex;
  align-items: center;
  gap: var(--space-s);
}

.page-title-with-icon i {
  font-size: 1.8rem;
  color: var(--color-burnt-clay);
}

/* -------------------------------------------------------
   HORSE CARD
   ------------------------------------------------------- */

.horse-card {
  border: 1px solid var(--color-soft-light);
  padding: var(--space-m);
  margin-bottom: var(--space-m);
  border-radius: var(--radius-m);
  background-color: var(--color-soft-light);
  box-shadow: var(--shadow-soft);
  transition: all 0.2s ease-in-out;
}

.horse-card:hover {
  background-color: var(--color-golden-dune);
  transform: scale(1.01);
}

/* -------------------------------------------------------
   MAP BOX
   ------------------------------------------------------- */

.map-box {
  width: 100%;
  height: 300px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-l);
  margin-top: var(--space-m);
  overflow: hidden;
}

/* -------------------------------------------------------
   MAP SHIMMER LOADING STATE — Sandy Hoof
   ------------------------------------------------------- */

.map-wrapper {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: var(--radius-l);
  overflow: hidden;
}

.map-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--color-soft-light) 0%,
    var(--color-golden-dune) 50%,
    var(--color-soft-light) 100%
  );
  background-size: 200% 100%;
  animation: shimmerMove 1.5s infinite ease-in-out;
  z-index: 2;
}

.map-wrapper.loaded .map-shimmer {
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* -------------------------------------------------------
   MAP TRACK STYLING — Olive Moss
   ------------------------------------------------------- */

.track-line {
  stroke: var(--color-burnt-clay) !important;
  stroke-width: 4px !important;
  opacity: 0.9 !important;
}

.track-line:hover {
  filter: drop-shadow(0 0 4px rgba(152, 148, 111, 0.6));
}

.track-point {
  fill: var(--color-burnt-clay) !important;
  stroke: var(--color-burnt-clay) !important;
  opacity: 0.95 !important;
}

/* -------------------------------------------------------
   DATE SLIDER — PREMIUM SANDY HOOF VERSION
   ------------------------------------------------------- */

.date-slider-container {
  margin: var(--space-xl) 0 var(--space-xxl);
  text-align: center;
}

.date-slider-label {
  display: block;
  margin-bottom: var(--space-s);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-driftwood);
  font-family: var(--font-body);
}

.date-slider-wrapper {
  position: relative;
  width: 90%;
  margin: 0 auto;
}

.date-slider {
  width: 100%;
  appearance: none;
  height: 8px;
  background: var(--color-golden-dune);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.date-slider:hover {
  background: var(--color-driftwood);
}

.date-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--color-driftwood);
  border-radius: 50%;
  border: 3px solid var(--color-soft-light);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease;
}

.date-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.date-slider::-webkit-slider-thumb:active {
  transform: scale(1.25);
  background: var(--color-burnt-clay);
}

#dateTooltip {
  position: absolute;
  top: -40px;
  transform: translateX(-50%);
  background: var(--color-driftwood);
  color: var(--color-soft-light);
  padding: 6px 12px;
  border-radius: var(--radius-s);
  font-size: 0.9rem;
  font-family: var(--font-body);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.25s ease, left 0.15s ease;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* -------------------------------------------------------
   DASHBOARD GRID
   ------------------------------------------------------- */

#dashboard-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-l);
  margin-top: var(--space-xl);
}

/* -------------------------------------------------------
   HORSE IDENTITY CARD
   ------------------------------------------------------- */

.horse-identity-card {
  display: flex;
  justify-content: flex-start;     /* left column + right column */
  align-items: flex-start;         /* align tops */
  gap: var(--space-s);
  padding: var(--space-m);
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-soft-light);
  margin-bottom: var(--space-l);
}

/* Variant: stacked layout */
.horse-identity-card--stacked {
  flex-wrap: wrap;              /* allow items to break to next line */
}

/* Make the bottom section span full width */
.horse-identity-card--stacked .horse-identity-bottom {
  width: 100%;
  margin-top: var(--space-s);
}

/* LEFT COLUMN: Name → Photo → Location */
.horse-identity-left {
  display: flex;
  flex-direction: column;          /* stack vertically */
  align-items: flex-start;         /* left aligned */
  gap: var(--space-s);
  flex-shrink: 0;                  /* don’t let it collapse */
}

.horse-name {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  color: var(--color-driftwood);
}

.horse-detail {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  color: var(--color-driftwood);
}

.horse-identity-photo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-m);
  object-fit: cover;
  border: 3px solid var(--color-driftwood);
}

.horse-identity-bottom {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.horse-location {
  font-size: 1rem;
  color: rgba(0,0,0,0.6);
}

/* -------------------------------------------------------
   EXTERNAL STATUS CARD
   ------------------------------------------------------- */

.external-status-card {
  display: flex;
  justify-content: flex-start;     /* left column + right column */
  align-items: flex-start;         /* align tops */
  gap: var(--space-s);
  padding: var(--space-m);
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-soft-light);
  margin-bottom: var(--space-l);
}

/* LEFT COLUMN: Battery */
.external-status-left {
  display: flex;
  flex-direction: column;          /* stack vertically */
  align-items: flex-start;         /* left aligned */
  gap: var(--space-s);
  flex-shrink: 0;                  /* don’t let it collapse */
}


/* -------------------------------------------------------
   WEATHER ROW
   ------------------------------------------------------- */

.weather-row {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-top: var(--space-xs);
}

.weather-icon {
  width: 48px;
  height: 48px;
}

.weather-info {
  display: flex;
  flex-direction: column;
}

.weather-temp {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-driftwood);
}

.weather-desc {
  font-size: 0.9rem;
  color: rgba(0,0,0,0.6);
}

/* -------------------------------------------------------
   LARGE WEATHER BLOCK (identity card)
   ------------------------------------------------------- */

.weather-large {
  display: flex;
  align-items: center;
  gap: var(--space-l);
}

.weather-icon-large {
  width: 120px;   /* same as horse photo */
  height: 120px;  /* same as horse photo */
}

.weather-info-large {
  display: flex;
  flex-direction: column;
  text-align: right;
  line-height: 1.1;
}

.weather-temp-large {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-driftwood);
}

.weather-desc-large {
  font-size: 1.1rem;
  opacity: 0.7;
}

/* -------------------------------------------------------
   DAILY STATS GRID
   ------------------------------------------------------- */
  .stat-group {
  background: #fff;
  border-radius: var(--radius-m);
  padding: var(--space-m);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-soft-light);
  margin-top: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}


   .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-m);
  margin-top: var(--space-m);
}

.stat-card {
  background: var(--color-soft-light);
  border-radius: var(--radius-m);
  padding: var(--space-m);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-soft-light);
  text-align: center;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-on-pop);
  margin-bottom: var(--space-xs);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-on-pop);
}


/* -------------------------------------------------------
   DAILY STATS — BRAND COLOUR VARIANTS
   ------------------------------------------------------- */

/* Primary headline stats (Movement Time, Rest Time) */
.stat-golden {
  background: var(--color-golden-dune) !important;
  color: var(--text-on-pop);
  border: none;
}

.stat-light {
  background: var(--color-soft-light) !important;
  color: var(--color-driftwood);
  border: none;
}

.stat-lighter {
  background: var(--color-very-light) !important;
  color: var(--color-driftwood);
  border: none;
}

.stat-burnt {
  background: var(--color-burnt-clay) !important;
  color: var(--text-on-pop);
  border: none;
}

.stat-olive {
  background: var(--color-olive-moss) !important;
  color: var(--text-on-pop);
  border: none;
}

/* -------------------------------------------------------
   RESPONSIVE TWEAKS
   ------------------------------------------------------- */
@media (min-width: 600px) {
  #dashboard-content {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 600px) {
  .auth-message {
    gap: var(--space-xs);
    margin-bottom: var(--space-s);
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }
}

@media (max-width: 600px) {
  .page-content {
    padding: 0 var(--space-xs);
  }
}

@media (max-width: 450px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  }
}

@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}


/* -------------------------------------------------------
   HORSE SELECTOR
   ------------------------------------------------------- */

.selector-label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-driftwood);
  margin-bottom: var(--space-xs);
  display: block;
}

.selector-input {
  width: 100%;
  padding: var(--space-m);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background: var(--color-very-light);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.selector-input:focus {
  border-color: var(--color-golden-dune);
  box-shadow: 0 0 0 3px rgba(215, 171, 111, 0.25);
  outline: none;
}

/* -------------------------------------------------------
   EMPTY STATE CARD
   ------------------------------------------------------- */

.empty-state-card {
  background: #fff;
  border-radius: var(--radius-m);
  padding: var(--space-l);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-soft-light);
  text-align: center;
  margin-top: var(--space-l);
}

.empty-state-title {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  color: var(--color-driftwood);
  margin-bottom: var(--space-s);
}

.empty-state-text {
  font-size: 1rem;
  color: rgba(0,0,0,0.6);
  margin-bottom: var(--space-m);
}

/* -------------------------------------------------------
   BRAND LOGO — Sandy Hoof
   ------------------------------------------------------- */
.brand-logo {
  max-height: 110px;   /* adjust to taste */
  width: auto;
  display: block;
  margin: 0 auto var(--space-m);
}

.branding-hero img {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  margin-bottom: var(--space-m);
}

.branding-banner img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: var(--radius-m);
  opacity: 0.85;
  margin-bottom: var(--space-l);
}

.dashboard-banner img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-m);
  opacity: 0.85;
  margin-bottom: var(--space-l);
  box-shadow: var(--shadow-soft);
}

.branding-tagline {
  text-align: center;
  font-family: var(--font-headline);
  color: var(--color-driftwood);
  margin-bottom: var(--space-l);
}

.branding-footer img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  margin-top: var(--space-xl);
}


.battery-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;       /* centres label + value */
  text-align: center;
}

.battery-label {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--stat-dark);
  opacity: 0.8;
}

.min-battery {
  font-size: 2rem;
  font-weight: 700;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  background: var(--color-very-light) !important;
  box-shadow: 0 0 0 1000px var(--color-very-light) inset !important;
  -webkit-text-fill-color: var(--color-text) !important;
  transition: background-color 0s ease-in-out 0s;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-collapse: collapse;
  width: 100%;
  margin-top: var(--space-l);
}

/* Base cell styling */
.metrics-grid div {
  padding: var(--space-s);
  border: 1px solid var(--color-driftwood);
  text-align: center;
  font-weight: bold;
}

/* Header row (top row) */
.metrics-grid .header {
  background: var(--color-burnt-clay);
  color: var(--text-on-pop);
}

/* First column (row labels) */
.metrics-grid .row-label {
  background: var(--color-burnt-clay);
  color: var(--text-on-pop);
}

/* All other cells */
.metrics-grid .cell {
  background: var(--color-golden);
  color: var(--color-driftwood);
}

/* -------------------------------------------------------
   Daily Insights
   ------------------------------------------------------- */
.insights-section {
  display: flex;
  flex-direction: column;        /* stack content vertically */
  justify-content: center;       /* centre vertically if it grows */
  align-items: center;           /* centre horizontally */
  text-align: center;            /* centre text */
  
  gap: var(--space-s);
  padding: var(--space-s);                 /* slightly larger padding for presence */
  margin: var(--space-s) 0; 
  background: var(--color-soft-light);
  border-radius: var(--radius-m);
  border: 1px solid var(--color-soft-light);
  margin-bottom: var(--space-m);
  color: var(--color-driftwood);
}

.insight-title {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  color: var(--color-driftwood);
}

.insight-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-driftwood);
}

/* -------------------------------------------------------
   Timeline chart container
   ------------------------------------------------------- */

.timeline-chart-container {
  width: 100%;
  max-width: 100%;
  height: 320px; /* stable height */
  padding: var(--space-m);
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.timeline-chart {
  width: 100%;
  height: 100%;
}