/* Extra styles for project content on top of the Moonwalk theme. */

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
.photos img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 640px) {
  .photos {
    grid-template-columns: 1fr;
  }
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92em;
}
th,
td {
  border-bottom: 1px solid var(--dashed, rgba(128, 128, 128, 0.4));
  padding: 0.5em 0.75em;
  text-align: left;
  vertical-align: top;
}
th {
  font-weight: 600;
}

.button {
  display: inline-block;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.4em 1em;
  margin: 0.25em 0.5em 0.25em 0;
  text-decoration: none;
}

.chart-box {
  position: relative;
  height: 320px;
  margin: 0.5rem 0 1.5rem 0;
}

.viewer-box {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 420px;
  background: #1e252d;
  border-radius: 6px;
  cursor: grab;
}

/* Contact form */
form .field {
  margin-bottom: 1rem;
}
form label {
  display: block;
  margin-bottom: 0.3rem;
}
form input,
form textarea {
  width: 100%;
  padding: 0.5em 0.6em;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  font: inherit;
}
form input[type="submit"] {
  width: auto;
  cursor: pointer;
  padding: 0.5em 1.2em;
  border-radius: 999px;
}

.actions {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.actions li {
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Collapsible code blocks */
details {
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 0.5em 0.75em;
  margin: 0.75rem 0;
}
details summary {
  cursor: pointer;
  font-weight: 600;
}
details pre {
  margin: 0.6rem 0 0.2rem 0;
  padding: 0.75em;
  overflow-x: auto;
  background: rgba(128, 128, 128, 0.08);
  border-radius: 4px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85em;
  line-height: 1.5;
}
