@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #f8f8f8;
  color: #414141;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #dbdbdb;
  padding: 24px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header .logo {
  height: 40px;
  width: auto;
}

.header-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #414141;
  line-height: 1.2;
}

.header-text p {
  font-size: 0.875rem;
  color: #727272;
}

/* Main content */
main {
  padding: 32px 0 64px;
}

section {
  margin-bottom: 40px;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #414141;
  margin-bottom: 16px;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #414141;
  margin-bottom: 8px;
}

p {
  margin-bottom: 12px;
}

/* Download cards */
.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.download-card {
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.16);
}

.download-card .platform-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.download-card h3 {
  margin-bottom: 4px;
}

.download-card .platform-detail {
  font-size: 0.75rem;
  color: #727272;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: #348803;
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: #348803;
  border: 1px solid #348803;
}

/* Details / accordion sections */
details {
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.16);
}

details[open] summary {
  border-bottom: 1px solid #dbdbdb;
}

summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

summary::before {
  content: '\25B6';
  font-size: 0.625rem;
  transition: transform 0.15s;
}

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

.details-content {
  padding: 20px;
}

.details-content h3 {
  margin-top: 16px;
}

.details-content h3:first-child {
  margin-top: 0;
}

.details-content p {
  font-size: 0.9375rem;
}

.details-content ol,
.details-content ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.details-content li {
  margin-bottom: 6px;
  font-size: 0.9375rem;
}

/* Featured download card */
.download-card.featured {
  border-left: 4px solid #348803;
  border-color: #348803;
  box-shadow: 0 0 0 1px #348803, 0 2px 8px rgba(52, 136, 3, 0.15);
}

/* Nested details (e.g. Mac inside a step) */
.details-content details {
  box-shadow: none;
  border-color: #e8e8e8;
  background: #fafafa;
}

.details-content details summary {
  font-size: 0.9375rem;
  padding: 12px 16px;
}

/* Code blocks */
code {
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  font-size: 0.8125rem;
  background: #f8f8f8;
  padding: 2px 6px;
  border-radius: 4px;
}

pre {
  background: #f8f8f8;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  padding: 12px 16px;
  overflow-x: auto;
  margin-bottom: 12px;
}

pre code {
  background: none;
  padding: 0;
}

/* Code block with copy button */
.code-block {
  position: relative;
  margin-bottom: 12px;
}

.code-block pre {
  margin-bottom: 0;
  padding-right: 70px;
}

.copy-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  color: #555;
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.copy-btn:hover {
  background: #348803;
  color: #fff;
  border-color: #348803;
}

.copy-btn.copied {
  background: #348803;
  color: #fff;
  border-color: #348803;
}

/* Note/callout boxes */
.note {
  background: #fffbe6;
  border: 1px solid #e6d96c;
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.note strong {
  color: #414141;
}

/* Version badge */
.version-badge {
  font-size: 0.75rem;
  color: #727272;
  text-align: center;
  margin-top: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid #dbdbdb;
  padding: 24px 0;
  text-align: center;
  font-size: 0.875rem;
  color: #727272;
}

.site-footer a {
  color: #204e86;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Entry point cards */
.entry-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.entry-card {
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.16);
}

.entry-card h3 {
  margin-bottom: 8px;
}

.entry-card p {
  font-size: 0.9375rem;
  color: #555;
  margin-bottom: 16px;
}

/* Back link */
.back-link {
  margin-bottom: 24px;
}

.back-link a {
  color: #204e86;
  text-decoration: none;
  font-size: 0.875rem;
}

.back-link a:hover {
  text-decoration: underline;
}

/* Next step callout */
.next-step {
  text-align: center;
  padding: 24px;
  background: #f0f7ec;
  border-radius: 8px;
}

.next-step p {
  margin-bottom: 0;
  font-size: 1rem;
}

.next-step a {
  color: #348803;
  font-weight: 600;
  text-decoration: none;
}

.next-step a:hover {
  text-decoration: underline;
}

/* Hero section */
.hero {
  margin-bottom: 32px;
}

.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.hero-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
}

/* Concept grid (How It Works) */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.concept-card {
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.16);
}

.concept-card h3 {
  color: #348803;
  margin-bottom: 8px;
}

.concept-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

/* Reference tables */
.ref-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  font-size: 0.9375rem;
}

.ref-table th,
.ref-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #ececec;
}

.ref-table thead th {
  background: #f2f2f2;
  font-weight: 600;
  color: #414141;
  border-bottom: 2px solid #dbdbdb;
}

.ref-table tbody tr:last-child td {
  border-bottom: none;
}

.ref-table tbody tr:hover {
  background: #fafafa;
}

/* Platform note */
.platform-note {
  font-size: 0.8125rem;
  color: #727272;
  font-style: italic;
  margin-bottom: 12px;
}

/* Output blocks (tool output vs user commands) */
pre.output {
  background: #1e1e1e;
  color: #d4d4d4;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 14px 16px;
  overflow-x: auto;
  margin-bottom: 12px;
}

pre.output code {
  background: none;
  color: inherit;
  padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .entry-cards {
    grid-template-columns: 1fr;
  }

  .download-cards {
    grid-template-columns: 1fr;
  }

  .concept-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    text-align: center;
  }

  .ref-table {
    font-size: 0.8125rem;
  }

  .ref-table th,
  .ref-table td {
    padding: 8px 10px;
  }
}
