body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main {
  max-width: 800px;
  margin: auto;
  padding: 20px;
}

section {
  margin-bottom: 40px;
}

.example-prompt pre {
  background-color: #f0f0f0;
  padding: 15px;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
}

footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
}

.example-prompt p {
  background-color: #f0f0f0;
  padding: 15px;
  border-left: 3px solid #007bff;
  font-family: monospace;
  overflow: auto; /* Ensures long text can be scrolled horizontally */
  white-space: pre-wrap; /* Keeps the formatting of the prompt but wraps text */
}

.setup-instructions li {
  margin-bottom: 20px;
}

.setup-instructions img {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
}

/* Workshop layout: left-hand index + content. Selectors are scoped under
   .layout so they also win over the homepage's global nav styles when this
   page is loaded into data4news.com. */
.layout {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

main:has(> .layout) {
  max-width: 1000px;
}

.layout .sidebar {
  flex: 0 0 160px;
  padding: 15px 20px;
  background-color: #f5f5f5;
  border-radius: 5px;
}

.layout .sidebar ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
}

.layout .sidebar li {
  margin-bottom: 10px;
}

.layout .sidebar li:last-child {
  margin-bottom: 0;
}

.layout .sidebar a {
  color: #007bff;
  text-decoration: none;
}

.layout .sidebar a[aria-current="page"] {
  color: #000;
  font-weight: bold;
}

.layout .content {
  flex: 1;
  min-width: 0;
}

.layout .content ol {
  padding-left: 1.5em;
}

.note {
  background-color: #e7f3fe;
  border-left: 4px solid #007bff;
  border-radius: 4px;
  padding: 12px 20px;
  margin-bottom: 20px;
}

.content code {
  background-color: #f0f0f0;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.9em;
}

.code-block {
  position: relative;
  margin: 10px 0;
}

.code-block pre {
  background-color: #2d2d2d;
  color: #f0f0f0;
  padding: 15px;
  border-radius: 5px;
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.5;
}

.code-block pre code {
  background: none;
  padding: 0;
  font-size: 0.85em;
}

/* leave room for the Copy button so it doesn't cover the text */
.code-block:has(.copy-button) pre {
  padding-right: 80px;
}

.code-block .copy-button {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
  padding: 5px 12px;
  font-size: 14px;
}

.slides-embed {
  position: relative;
  padding-top: 59.27%; /* Google Slides 16:9 frame plus toolbar */
}

.slides-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 700px) {
  .layout {
    flex-direction: column;
    align-items: stretch;
  }

  .layout .sidebar {
    flex: none;
  }

  .layout .sidebar ul {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 0;
  }

  .layout .sidebar li {
    margin-bottom: 0;
  }
}

/* Dropdowns (choices.js): body[data-app] and body[data-os] hide the steps for the other choices */
body:not([data-os="mac"]) .os-mac,
body:not([data-os="windows"]) .os-windows,
body:not([data-os="linux"]) .os-linux,
body:not([data-app="deepseek"]) .app-deepseek,
body:not([data-app="chatgpt"]) .app-chatgpt,
body:not([data-app="claude"]) .app-claude,
body:not([data-app="deepseek"]):not([data-app="chatgpt"]) .app-agents {
  display: none !important;
}

.code-block pre code[class^="os-"] {
  display: block;
}

.choice-sentence {
  font-size: 1.15em;
  line-height: 2.2;
}

.choice-sentence select {
  font: inherit;
  font-size: 0.95em;
  padding: 4px 8px;
  margin: 0 4px;
  border: 1px solid #007bff;
  border-radius: 5px;
  background-color: #fff;
  color: #007bff;
}

.choose-prompt {
  color: #777;
  font-style: italic;
}

.download-link,
.button-link {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 6px 14px;
  border-radius: 5px;
  text-decoration: none;
}

/* Steps accordion: one <details> open at a time */
details.step {
  border: 1px solid #ddd;
  border-radius: 5px;
  margin: 15px 0;
  padding: 0 20px;
  scroll-margin-top: 110px; /* clear the fixed data4news.com top bar */
}

details.step[open] {
  padding-bottom: 15px;
}

details.step summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
}

details.step summary::-webkit-details-marker {
  display: none;
}

details.step summary::before {
  content: "▸";
  color: #007bff;
  transition: transform 0.2s ease;
}

details.step[open] summary::before {
  transform: rotate(90deg);
}

details.step summary h2 {
  margin: 0;
  font-size: 1.3em;
}

.next-step {
  margin: 10px 0 0;
}

.footnote {
  margin-top: 40px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
  font-size: 0.85em;
  color: #777;
}

.choose-setup form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.choose-setup .choice-sentence {
  margin: 0;
}

.choose-setup button {
  margin: 0;
}

[hidden] {
  display: none !important;
}
