:root {
  color-scheme: light;
  --brand: #16a34a;
  --brand-dark: #15803d;
  --text: #252525;
  --muted: #666;
  --border: #d6d6d6;
  --surface: #f3f4f6;
}

* {
  box-sizing: border-box;
}

body {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

.header {
  margin: -40px -40px 32px;
  padding: 24px;
  color: white;
  background: var(--brand);
}

.header h1 {
  margin: 0 0 6px;
  font-size: 26px;
}

.header p {
  margin: 0;
  opacity: .92;
}

.product-image {
  margin: 24px 0 30px;
  text-align: center;
}

.product-image img {
  display: block;
  max-width: 100%;
  max-height: 300px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.product-image small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
}

.product-image-placeholder {
  max-width: 620px;
  margin: 0 auto;
  padding: 24px;
  color: #4b5563;
  background: var(--surface);
  border: 1px dashed #9ca3af;
  border-radius: 8px;
}

h2 {
  margin-top: 30px;
  padding-bottom: 6px;
  color: var(--brand-dark);
  border-bottom: 2px solid var(--brand);
}

h3 {
  margin: 22px 0 8px;
  color: #166534;
}

table {
  width: 100%;
  margin: 16px 0 24px;
  border-collapse: collapse;
}

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

th {
  background: var(--surface);
}

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

.highlight,
.note,
.warning {
  margin: 22px 0;
  padding: 14px 16px;
  border-left: 4px solid;
}

.highlight {
  background: #dcfce7;
  border-color: var(--brand);
}

.note {
  background: #fef3c7;
  border-color: #f59e0b;
}

.warning {
  background: #fee2e2;
  border-color: #ef4444;
}

.color-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 3px;
}

pre {
  max-width: 100%;
  padding: 15px;
  overflow-x: auto;
  font-family: monospace;
  white-space: pre;
  background: var(--surface);
}

.footer {
  margin-top: 40px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}

.footer p {
  margin: 4px 0;
}

@media (max-width: 640px) {
  body {
    padding: 24px 18px;
    font-size: 15px;
  }

  .header {
    margin: -24px -18px 24px;
    padding: 20px;
  }

  .header h1 {
    font-size: 22px;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  th,
  td {
    padding: 8px;
  }
}

@media print {
  body {
    max-width: 100%;
    padding: 20px;
  }

  .header {
    margin: -20px -20px 24px;
  }

  .product-image img {
    max-height: 210px;
  }

  .header,
  th,
  .highlight,
  .note,
  .warning,
  .color-box {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  tr,
  .product-image,
  .highlight,
  .note,
  .warning {
    break-inside: avoid;
  }
}