:root{
  /* Warm wellness palette */
  --bg0: #fbf7f1;      /* warm ivory */
  --bg1: #f6efe6;      /* soft sand */
  --ink: #1f2933;      /* deep slate */
  --muted: rgba(31,41,51,0.68);

  --card: rgba(255,255,255,0.70);
  --card2: rgba(255,255,255,0.82);
  --hair: rgba(31,41,51,0.10);

  --shadow: 0 18px 50px rgba(16, 24, 40, 0.12);
}

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--ink);
  background:
    radial-gradient(900px 600px at 20% 10%, rgba(255, 196, 160, 0.35), transparent 55%),
    radial-gradient(900px 600px at 80% 25%, rgba(255, 220, 180, 0.28), transparent 60%),
    radial-gradient(900px 600px at 55% 95%, rgba(180, 220, 210, 0.22), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}


.bg-glow{
  position: fixed;
  inset: -40vh -40vw;
  filter: blur(80px);
  opacity: 0.55;
  pointer-events:none;
}

.wrap{
  width:min(1100px, 92vw);
  margin: 56px auto 72px;
}

.top{
  display:flex;
  gap: 18px;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
  margin-bottom: 18px;
}

h1{
  margin:0;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing:-0.03em;
  font-weight: 650;
}
.sub{ margin:8px 0 0; color: var(--muted); }


.controls{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
}

.btn{
  border: 1px solid rgba(31,41,51,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.70));
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 16px;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(16,24,40,0.10);
  backdrop-filter: blur(8px);
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0px); }

.btn-ghost{
  background: transparent;
  box-shadow:none;
}


.toggle{
  display:flex;
  gap: 8px;
  align-items:center;
  color: var(--muted);
  border: 1px solid var(--hair);
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.coords{
  display:flex;
  gap:8px;
  align-items:center;
  border: 1px solid var(--hair);
  padding: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}

.coords input{
  width: 120px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  outline:none;
}
.coords input::placeholder{ color: rgba(255,255,255,0.35); }

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card{
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, var(--card2), var(--card));
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  padding: 20px;
}

.hero{
  padding: 26px 24px 24px;
}


.kicker{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
}

.big{
  margin-top: 10px;
  margin-bottom: 6px;
}

.meta{
  margin-top: 8px;
  max-width: 42ch; /* prevents long lines feeling cramped */
}


.mini{
  margin-top: 18px;
  display:grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}


.label{ font-size: 12px; color: rgba(255,255,255,0.55); }
.value{ margin-top: 4px; font-size: 16px; }

.chartCard{
  padding: 22px 22px 18px;
}

.cardTop{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}

h2{
  margin:0;
  font-size: 16px;
  color: rgba(255,255,255,0.90);
  font-weight: 650;
}

.small{ margin:0; color: var(--muted); font-size: 13px; }

.chartWrap{
  border-radius: 18px;
  border: 1px solid rgba(31,41,51,0.10);
  background: rgba(255,255,255,0.55);
  padding: 10px;
}


.footnote{
  padding: 14px 16px;
}

@media (max-width: 820px){
  .mini{ grid-template-columns: 1fr; }
  .coords input{ width: 110px; }
}
/* Daily change highlight */
#dailyLine {
  margin-top: 6px;
  color: rgba(145, 90, 55, 0.92); /* warm cocoa */
  font-weight: 650;
}
/* --- Light theme text contrast fixes --- */
.kicker{
  color: rgba(31,41,51,0.55);
}

.label,
.small,
.sub,
.meta{
  color: rgba(31,41,51,0.68);
}

.value{
  color: rgba(31,41,51,0.95);
}
/* Headline highlight */
.highlight{
  color: #9a5a32; /* warm amber */
  font-weight: 650;
  background:
    linear-gradient(
      180deg,
      rgba(255, 215, 180, 0.55),
      rgba(255, 215, 180, 0.25)
    );
  padding: 0.08em 0.35em;
  border-radius: 0.45em;
  white-space: nowrap;
}
