/* Expander Nets Styles */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

.page-title {
  margin-top: 2em;
  margin-bottom: 0;
}

.reset-button {
  padding: 8px 16px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.reset-button:hover {
  background-color: #e0e0e0;
}

.page-description {
  font-size: 16px;
  margin-bottom: 1em;
  color: #555;
}

.description-separator {
  border: none;
  border-top: 2px solid #ddd;
  margin: 1.5em 0;
}

.section-label {
  font-size: 14px;
  color: #888;
  letter-spacing: 1px;
  margin-bottom: 1em;
}

.main-content {
  min-height: 400px;
  padding: 20px;
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Range slider styling - use accent-color for simple color change */
input[type="range"] {
  accent-color: #555;
  cursor: pointer;
}

.section-label {
  font-size: 12px;
  color: #888;
  margin-top: 0;
  margin-bottom: 1em;
}

.sim-button {
  padding: 8px 20px;
  font-size: 14px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.sim-button:hover {
  background-color: #e0e0e0;
}

.sim-button:active {
  background-color: #d0d0d0;
}

/* Plots */
.plots-container {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.plot-wrapper {
  flex: 0 0 500px;
}

.plot-box {
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
  padding: 20px;
  padding-left: 40px;
  padding-bottom: 40px;
  height: 335px;
}

.plot-content {
  height: 100%;
  position: relative;
}

.plot-canvas {
  width: 100%;
  height: 100%;
}

/* Axis labels */
.y-axis-label {
  position: absolute;
  top: 50%;
  transform: rotate(-90deg) translateY(-50%);
  transform-origin: center center;
  font-size: 17px;
  color: #666;
  word-spacing: 0.3em;
}

/* Y-axis label positions (empirically determined) */
.y-axis-label-loss {
  left: -32px;
}

.y-axis-label-norms {
  left: -65px;
}

.x-axis-label {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 17px;
  color: #666;
}

/* Logscale control */
.logscale-control {
  margin-top: 20px;
  text-align: center;
}

.logscale-control label {
  margin-right: 30px;
}

/* Plot x-axis toggle (matching blog sort controls) */
.plot-xaxis-toggle {
  font-size: 0.9em;
}

.plot-xaxis-toggle a {
  color: #666;
  text-decoration: none;
  padding: 0.4em 0.8em;
  display: inline-block;
  border: 1px solid #ccc;
  background: white;
  transition: all 0.2s;
}

.plot-xaxis-toggle a:first-of-type {
  border-radius: 4px 0 0 4px;
  border-right: none;
}

.plot-xaxis-toggle a:last-of-type {
  border-radius: 0 4px 4px 0;
}

.plot-xaxis-toggle a:hover {
  background: #eee;
}

.plot-xaxis-toggle a.active {
  background: #333;
  color: white;
  border-color: #333;
}

/* Theory section */
.theory-separator {
  margin-top: 40px;
  margin-bottom: 5px;
  border: none;
  border-top: 2px solid #ccc;
}

.theory-row-separator {
  margin-top: 20px;
  margin-bottom: 20px;
  border: none;
  border-top: 1px solid #e0e0e0;
}

.theory-section-label {
  font-size: 14px;
  color: #888;
  letter-spacing: 1px;
  margin-top: 0;
  margin-bottom: 20px;
}

.theory-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 40px;
}

.theory-modeling-ode {
  text-align: center;
}

.theory-modeling-ode-label {
  font-size: 16px;
  margin-bottom: 8px;
  color: #666;
}

.theory-modeling-ode-formula {
  font-size: 20px;
  margin-bottom: 8px;
}

.theory-metrics {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
}

.theory-metrics {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 40px;
}

.theory-metric {
  text-align: center;
}

.theory-metric-label {
  font-size: 16px;
  margin-bottom: 4px;
  color: #666;
}

.theory-metric-formula {
  font-size: 18px;
  margin-bottom: 8px;
}

.theory-metric-value {
  font-size: 20px;
  font-weight: bold;
  font-family: 'Georgia', serif;
}

.theory-rise-time {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.theory-rise-time-label {
  font-size: 16px;
  margin-bottom: 8px;
  color: #666;
}

.theory-rise-time-formula {
  font-size: 18px;
  margin-bottom: 12px;
}

.theory-rise-time-value {
  font-size: 20px;
  font-weight: bold;
  font-family: 'Georgia', serif;
}
