
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont;
    background: #0d1117;
    color: #e6edf3;
    padding: 20px;
  }

  h1, h2 {
    margin: 0 0 10px;
  }

  button {
    background: #21262d;
    color: #e6edf3;
    border: 1px solid #30363d;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 10px;
  }

  button:hover {
    background: #30363d;
  }

  #utc {
    margin-bottom: 20px;
    color: #8b949e;
  }

  .session {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #161b22;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    transition: 0.2s;
  }

  .open {
    color: #3fb950;
    font-weight: bold;
  }

  .closed {
    color: #f85149;
    font-weight: bold;
  }

  .bar {
    background: #30363d;
    height: 6px;
    border-radius: 6px;
    margin-top: 6px;
    overflow: hidden;
  }

  .fill {
    height: 100%;
    background: var(--c, #3fb950);
  }

  .overlap {
    border: 1px solid #f0b90b;
    box-shadow: 0 0 12px rgba(240,185,11,0.25);
  }

  .overlap-label {
    color: #f0b90b;
    font-size: 12px;
    margin-left: 6px;
  }

  /* session colors */
  .sydney { --c: #8b5cf6; }
  .tokyo { --c: #06b6d4; }
  .london { --c:#22c55e; }
  .newyork { --c: #f97316; }

  /* timeline */
  #timeline {
    position: relative;
    background: #161b22;
    border-radius: 12px;
    padding: 12px;
    margin-top: 10px;
  }

  .time-row {
    position: relative;
    height: 18px;
    background: #30363d;
    border-radius: 6px;
    margin-bottom: 12px;
  }

  .time-fill {
    position: absolute;
    height: 100%;
    border-radius: 6px;
    background: var(--c);
position: relative;
  overflow: hidden;
  position: absolute;   /* 👈 critical */
  top: 0;
  height: 100%;

  }

  

  .hour {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #30363d;
  }

  .hour-label {
    position: absolute;
    top: -16px;
    font-size: 10px;
    color: #8b949e;
  }

  @media (max-width: 600px) {
    .session {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
    }
  }

footer {
  margin-top: 40px;
  padding: 15px;
  text-align: center;
  font-size: 14px;
}

/* ===== RED NOW LINE & LABEL ===== */
.now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #f85149; /* Babypips-style red */
  z-index: 10;
  cursor: ew-resize;
  transition: left 0.1s ease;
    width: 2px;
}

#now-label {
  position: absolute;
  top: -20px;
  color: #f85149;
  font-size: 12px;
  font-weight: bold;
  white-space: nowrap;
  transform: translateX(-50%);
  z-index: 15;
}


/* base */
.time-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 6px;
}

/* when split across midnight */
.time-fill.split-left {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.time-fill.split-right {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.now-line {
  touch-action: none;
  cursor: ew-resize;
}

#faq {
  margin-top: 30px;
}

.faq-item {
  margin-bottom: 10px;
  border-radius: 8px;
  background: #161b22;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: #21262d;
  border: none;
  color: #e6edf3;
  text-align: left;
  padding: 12px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #30363d;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #30363d;
}

.faq-answer {
  padding: 10px 12px;
  display: none;
  font-size: 13px;
  color: #8b949e;
}

.faq-answer {
  max-height: 0;         /* collapsed */
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 12px;       /* top/bottom padding will be added when expanded */
}

.faq-item.active .faq-answer {
  max-height: 500px;     /* large enough for content */
  padding: 10px 12px;    /* add vertical padding when open */
}

