/* ─── Specifications page ──────────────────────────────────────────────── */
.specs-content {
  color: #44403c; /* stone-700 */
  line-height: 1.75;
  font-size: 0.9375rem;
}

.specs-content h1 {
  font-family: var(--font-marcellus);
  font-size: 1.875rem;
  color: #1c1917; /* stone-900 */
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.specs-content h2 {
  font-family: var(--font-marcellus);
  font-size: 1.375rem;
  color: #292524; /* stone-800 */
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e7e5e4; /* stone-200 */
}

.specs-content h3 {
  font-family: var(--font-marcellus);
  font-size: 1.125rem;
  color: #44403c; /* stone-700 */
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.specs-content h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #57534e; /* stone-600 */
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
}

.specs-content p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.specs-content a {
  color: #b45309; /* amber-700 */
  text-decoration: underline;
}
.specs-content a:hover {
  color: #92400e; /* amber-800 */
}

.specs-content strong {
  font-weight: 600;
  color: #1c1917; /* stone-900 */
}

.specs-content em {
  font-style: italic;
}

.specs-content hr {
  border: none;
  border-top: 1px solid #e7e5e4; /* stone-200 */
  margin: 2.5rem 0;
}

/* Lists */
.specs-content ul,
.specs-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  padding: 0;
}
.specs-content ul {
  list-style-type: disc;
}
.specs-content ol {
  list-style-type: decimal;
}
.specs-content li {
  margin-bottom: 0.25rem;
}
.specs-content li > ul,
.specs-content li > ol {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* Inline code */
.specs-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  background-color: #f5f5f4; /* stone-100 */
  color: #92400e; /* amber-800 */
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}

/* Code blocks */
.specs-content pre {
  background-color: #1c1917; /* stone-900 */
  color: #e7e5e4; /* stone-200 */
  border-radius: 0.5rem;
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.65;
}
.specs-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
}

/* Tables — scrollable wrapper + striped rows */
.specs-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.25rem 0;
}
.specs-content thead {
  background-color: #292524; /* stone-800 */
  color: #fafaf9; /* stone-50 */
}
.specs-content th {
  text-align: left;
  padding: 0.6rem 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.specs-content td {
  padding: 0.5rem 0.875rem;
  vertical-align: top;
  border-top: 1px solid #e7e5e4; /* stone-200 */
}
.specs-content tbody tr:nth-child(even) {
  background-color: #fafaf9; /* stone-50 */
}
.specs-content tbody tr:hover {
  background-color: #f5f5f4; /* stone-100 */
}

/* Blockquote */
.specs-content blockquote {
  border-left: 4px solid #d6d3d1; /* stone-300 */
  padding-left: 1rem;
  margin: 1rem 0;
  color: #78716c; /* stone-500 */
  font-style: italic;
}

/* ─── Admin guide (admin_guide/show) ──────────────────────────────────── */
/* Screenshots with numbered markers; the .guide-marker badges in the text
   match the amber markers drawn by test/screenshots/admin_guide_screenshots.rb. */
.guide {
  font-size: 1rem;
}

.guide .guide-lede {
  font-size: 1.0625rem;
  color: #57534e; /* stone-600 */
}

/* Numbered marker badge, matching the screenshots */
.guide .guide-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.3rem;
  border-radius: 9999px;
  background-color: #b45309; /* amber-700 */
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: 0.1em;
  font-style: normal;
}

/* Screenshots */
.guide .guide-figure {
  margin: 1.5rem 0;
}
.guide .guide-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 0 0 1px rgba(28, 25, 23, 0.08), 0 12px 32px -16px rgba(68, 64, 60, 0.35);
  background-color: #f5f5f4; /* stone-100, while loading */
}
.guide .guide-figure-medium img {
  max-width: 36rem;
}
.guide .guide-figure-small img {
  max-width: 26rem;
}
.guide .guide-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  color: #78716c; /* stone-500 */
}
.guide .guide-figure-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 16rem));
  gap: 1.5rem;
  align-items: start;
}
.guide .guide-figure-row .guide-figure {
  margin: 1rem 0;
}

/* Steps and keys */
.guide ol.guide-steps > li,
.guide ul.guide-key > li {
  margin-bottom: 0.6rem;
}
.guide ul.guide-key {
  list-style: none;
  margin-left: 0;
}

/* Tips read as a callout box, not grey italics */
.guide blockquote {
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid #d97706; /* amber-600 */
  border-radius: 0 0.75rem 0.75rem 0;
  background-color: #fffbeb; /* amber-50 */
  color: #44403c; /* stone-700 */
  font-style: normal;
}
.guide blockquote p:last-child {
  margin-bottom: 0;
}

.guide table td {
  white-space: normal;
}
