body {
  margin: 0;
  padding: 30px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

#page-content {
  max-width: 900px;
  margin: 50px auto 0;
}

/* Upper-right text-to-speech controls */
.speech-controls {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;

  display: flex;
  gap: 8px;

  padding: 8px;
  border: 2px solid #222;
  border-radius: 8px;

  background: white;
}

.speech-button {
  min-height: 44px;
  padding: 10px 14px;

  border: 2px solid #222;
  border-radius: 5px;

  background: white;
  color: #111;

  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.speech-button:hover {
  background: #eeeeee;
}

.speech-button:focus-visible {
  outline: 4px solid #1a73e8;
  outline-offset: 3px;
}

.speech-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.speech-stop {
  background: #222;
  color: white;
}

@media (max-width: 600px) {
  body {
    padding: 20px;
  }

  .speech-controls {
    top: 8px;
    right: 8px;
  }

  .speech-button {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  #page-content {
    margin-top: 70px;
  }
}

.software-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.software-section {
  margin-bottom: 2rem;
}

.camp-heading {
  color: darkred;
}

/* Markdown tables */
table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 12px;
  border: 1px solid #777777;
  text-align: left;
  vertical-align: top;
}

th {
  background-color: #f2f2f2;
  font-weight: 700;
}

tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.tutorial-image {
  width: 65vw;
  max-width: 85%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.tutorial-image-full {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.path-description {
  display: block;
  margin-top: 0.4rem;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 200;
  color: #555555;
}

details[open] .path-description {
  display: none;
}

/* Two-column step cards */
.step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.step-card {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 10px;
  padding: 1rem;
}

.step-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  margin-top: 0;
  color: #722F37;
}

.step-card p {
  line-height: 1.5;
}

/* Mobile: one column */
@media (max-width: 700px) {
  .step-grid {
    grid-template-columns: 1fr;
  }
}