/* Basic page settings */
body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    margin: 20px;
    background-color: #f8f9fa;
    color: #222;
}

/* Headings */
h1 {
    text-align: center;
    color: #555;
}

h2 {
    margin-top: 30px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ccc;
    color: #333;
}

/* Expandable details sections */
details {
    margin-top: 20px;
    background: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 15px;
}

summary {
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    outline: none;
}

/* Lists */
ul {
    list-style-type: none; /* remove default bullets */
    padding-left: 0;
    margin: 0;
}

ul li {
    background: #fff;
    margin: 8px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

ul li:last-child {
    border-bottom: none;
}

/* Strong labels in list items */
li strong {
    color: #0056b3;
    display: inline-block;
    min-width: 150px; /* keeps labels aligned */
}

/* Links */
a {
    color: #0069d9;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Section spacing */
section {
    margin-bottom: 30px;
}

/* Make code-like inline text look distinct if any */
code {
    background-color: #eef;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: monospace;
}

/* Bar style */
.bar {
    fill: steelblue;
    transition: fill 0.2s;
}
.bar:hover {
    fill: darkorange;
}

/* Axis text */
.x.axis text, .y.axis text {
    fill: #333;
    font-family: Arial, sans-serif;
    font-size: 11px;
}

/* Axis lines */
.axis path,
.axis line {
    stroke: #888;
}

/* Axis labels */
.x-axis-label,
.y-axis-label {
    font-size: 14px;
    font-weight: bold;
    fill: #444;
}

/* Chart background */
svg {
    background-color: #fafafa;
    display: block;
}

.chart-wrap { overflow-x: auto; }

#chart {
  font: 12px/1.35 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  max-width: 960px;
}

.axis path,
.axis line {
  shape-rendering: crispEdges;
  stroke: #777;
  stroke-width: 1px;
}

.dot {
  fill-opacity: 0.9;
}

.tooltip {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 6px 8px;
  border-radius: 4px;
}

.control {
  margin: 6px 0 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.control label {
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  background: #eee;
  color: #333;
}
