@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

/* ---- palette ---- */
:root,
body {
  --bg:     #111111;
  --accent: #eb9914;
  --text:   #eaecef;
  --field:  #1f2630;
  --edge:   #3a3f44;
  --hover:  #2b3442;
  --active: #3a4557;

  color-scheme: dark;   /* dark native inputs and scrollbars */

  /* Dash 4 components read these. Set on body as well, because the
     dropdown menu is rendered outside the app and Dash defines defaults. */
  --Dash-Fill-Inverse-Strong:     var(--field);    /* dropdown + menu background */
  --Dash-Text-Primary:            var(--text);
  --Dash-Text-Strong:             #ffffff;
  --Dash-Text-Weak:               #9aa3ad;         /* placeholder, "No options found" */
  --Dash-Text-Disabled:           #5e5e5e;
  --Dash-Stroke-Strong:           var(--edge);     /* borders */
  --Dash-Stroke-Weak:             #2a2f35;
  --Dash-Fill-Interactive-Strong: var(--accent);   /* focus ring, selected marker */
  --Dash-Fill-Interactive-Weak:   rgba(235, 153, 20, 0.20);
  --Dash-Fill-Primary-Hover:      var(--hover);
  --Dash-Fill-Primary-Active:     var(--active);
  --Dash-Fill-Disabled:           #1a1d22;
  --Dash-Shading-Strong:          rgba(0, 0, 0, 0.6);
  --Dash-Shading-Weak:            rgba(0, 0, 0, 0.3);
}

/* ---- base ---- */
body {
  background-color: var(--bg);
  color: var(--accent);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  margin: 5%;
}

h1 {
  font-family: Roboto, system-ui, sans-serif;
  font-size: 28px;
}

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(0.4rem, 2.5vw, 1rem);
}

/* ---- year dropdown ---- */
.year-dd {
  width: clamp(5rem, 15vw, 8rem);
  color: var(--text);
}

/* fallbacks in case a part of the dropdown ignores the variables */
.dash-dropdown,
.dash-dropdown-content {
  background: var(--field);
  color: var(--text);
  border-color: var(--edge);
}
.dash-dropdown-content input {
  background: transparent;
  color: var(--text);
  font-family: inherit;
}

/* ---- mobile ---- */
@media (max-width: 640px) {
  body { margin: 3%; }
  h1   { font-size: 22px; }
  .year-dd { width: 6rem; }
}
