/*
 * docs-content.css — canonical stylesheet for documentation page bodies.
 *
 * Loaded by:
 *   - the published docs site (app/templates/docs.html)
 *   - the dashboard page editor (acceldocs-frontend/PageView.tsx)
 *
 * Both views inject a <style> tag setting the CSS variables below from
 * the organization's theme settings (primary_color, fonts, etc.). Anything
 * not overridden falls back to the defaults declared here.
 *
 * To restyle the docs body globally, edit this file.
 */

.docs-content {
  /* ── Theme variables (overridable via org settings) ──────────────── */
  --docs-fg: hsl(220 13% 18%);
  --docs-fg-muted: hsl(220 9% 46%);
  --docs-fg-subtle: hsl(220 9% 60%);
  --docs-bg: transparent;
  --docs-bg-muted: hsl(220 14% 96%);
  --docs-border: hsl(220 13% 91%);
  --docs-border-strong: hsl(220 13% 83%);
  --docs-primary: hsl(238 75% 65%);
  --docs-primary-fg: hsl(238 75% 55%);
  --docs-code-fg: hsl(220 13% 18%);
  --docs-code-bg: hsl(220 14% 96%);
  --docs-code-border: hsl(220 13% 91%);
  --docs-pre-fg: hsl(220 14% 88%);
  --docs-pre-bg: hsl(220 13% 12%);
  --docs-pre-border: hsl(220 13% 18%);
  --docs-link: var(--docs-primary-fg);

  --docs-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --docs-font-heading: var(--docs-font-body);
  --docs-font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', ui-monospace, monospace;

  /* ── Body ────────────────────────────────────────────────────────── */
  font-family: var(--docs-font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--docs-fg);
  font-feature-settings: "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}

.docs-content > *:first-child { margin-top: 0; }
.docs-content > *:last-child  { margin-bottom: 0; }

/* ── Headings ──────────────────────────────────────────────────────── */
.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4,
.docs-content h5,
.docs-content h6 {
  font-family: var(--docs-font-heading);
  color: var(--docs-fg);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  scroll-margin-top: 5rem; /* TOC anchors land below sticky header */
}

.docs-content h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  line-height: 1.15;
}

.docs-content h2 {
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--docs-border);
  letter-spacing: -0.015em;
}

.docs-content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.docs-content h4 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.docs-content h5,
.docs-content h6 {
  font-size: 0.875rem;
  margin: 1.25rem 0 0.4rem;
  color: var(--docs-fg-muted);
}

/* ── Paragraphs and inline text ────────────────────────────────────── */
.docs-content p {
  margin: 0 0 1rem;
}

.docs-content strong {
  color: var(--docs-fg);
  font-weight: 600;
}

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

.docs-content small {
  font-size: 0.875em;
  color: var(--docs-fg-muted);
}

/* ── Links ─────────────────────────────────────────────────────────── */
.docs-content a {
  color: var(--docs-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--docs-link) 35%, transparent);
  transition: text-decoration-color 100ms ease;
}

.docs-content a:hover {
  text-decoration-color: currentColor;
}

/* ── Lists ─────────────────────────────────────────────────────────── */
.docs-content ul,
.docs-content ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.docs-content ul { list-style: disc; }
.docs-content ol { list-style: decimal; }

.docs-content li {
  margin: 0.25rem 0;
  padding-left: 0.25rem;
}

.docs-content li::marker {
  color: var(--docs-fg-muted);
}

.docs-content li > ul,
.docs-content li > ol {
  margin: 0.4rem 0;
}

.docs-content li > p {
  margin: 0.25rem 0;
}

/* ── Code (inline) ─────────────────────────────────────────────────── */
.docs-content code {
  font-family: var(--docs-font-mono);
  font-size: 0.875em;
  background: var(--docs-code-bg);
  border: 1px solid var(--docs-code-border);
  border-radius: 0.375rem;
  padding: 0.1em 0.35em;
  color: var(--docs-code-fg);
  font-feature-settings: "liga" 0, "calt" 0;
}

/* ── Code (block) ──────────────────────────────────────────────────── */
.docs-content pre {
  position: relative;
  background: var(--docs-pre-bg);
  border: 1px solid var(--docs-pre-border);
  border-radius: 0.625rem;
  margin: 1.5rem 0;
  padding: 1.125rem 1.25rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: hsl(220 13% 30%) transparent;
}

.docs-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--docs-pre-fg);
  font-size: inherit;
  border-radius: 0;
}

/* Optional language label rendered by syntax highlighters */
.docs-content pre[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 0.5rem;
  right: 0.875rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(220 13% 55%);
}

/* ── Blockquote ────────────────────────────────────────────────────── */
.docs-content blockquote {
  margin: 1.5rem 0;
  padding: 0.875rem 1.125rem;
  border-left: 3px solid var(--docs-primary);
  background: color-mix(in srgb, var(--docs-primary) 6%, transparent);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--docs-fg-muted);
  font-style: italic;
}

.docs-content blockquote > *:last-child { margin-bottom: 0; }

/* ── Horizontal rule ───────────────────────────────────────────────── */
.docs-content hr {
  border: 0;
  border-top: 1px solid var(--docs-border);
  margin: 2.5rem 0;
}

/* ── Tables ────────────────────────────────────────────────────────── */
.docs-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  border: 1px solid var(--docs-border);
  border-radius: 0.625rem;
  overflow: hidden;
}

.docs-content thead {
  background: var(--docs-bg-muted);
}

.docs-content th {
  text-align: left;
  padding: 0.625rem 0.875rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--docs-fg-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--docs-border);
}

.docs-content td {
  padding: 0.625rem 0.875rem;
  color: var(--docs-fg);
  border-bottom: 1px solid var(--docs-border);
  vertical-align: top;
}

.docs-content tbody tr:last-child td { border-bottom: 0; }

.docs-content tbody tr:hover {
  background: color-mix(in srgb, var(--docs-bg-muted) 50%, transparent);
}

.docs-content table code {
  font-size: 0.85em;
}

/* ── Images ────────────────────────────────────────────────────────── */
.docs-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--docs-border);
  border-radius: 0.5rem;
  margin: 1.25rem 0;
  background: var(--docs-bg-muted);
}

.docs-content figure {
  margin: 1.5rem 0;
}

.docs-content figure.video-embed {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}

.docs-content figure.video-embed iframe {
  display: block;
  width: 100%;
  min-height: 400px;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 8px;
}

.docs-content figcaption {
  font-size: 0.8125rem;
  color: var(--docs-fg-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ── Keyboard shortcut ─────────────────────────────────────────────── */
.docs-content kbd {
  font-family: var(--docs-font-mono);
  font-size: 0.8em;
  padding: 0.1em 0.4em;
  background: var(--docs-code-bg);
  border: 1px solid var(--docs-code-border);
  border-bottom-width: 2px;
  border-radius: 0.25rem;
  color: var(--docs-fg);
  white-space: nowrap;
}

/* ── Admonitions / callouts ────────────────────────────────────────── */
.docs-content .admonition {
  margin: 1.5rem 0;
  padding: 0.875rem 1.125rem;
  border-radius: 0.625rem;
  border: 1px solid var(--docs-border);
  background: var(--docs-bg-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.docs-content .admonition > .admonition-title {
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.docs-content .admonition > .admonition-title::before {
  content: "";
  display: inline-block;
  width: 1rem; height: 1rem;
  background: currentColor;
  mask: var(--admonition-icon, none) center/contain no-repeat;
  -webkit-mask: var(--admonition-icon, none) center/contain no-repeat;
}

.docs-content .admonition > p:last-child { margin-bottom: 0; }

/* Variants — color the left edge + tint the bg + tint the title + icon */

/* Info circle icon (note/info) */
.docs-content .admonition.note,
.docs-content .admonition.info {
  border-color: hsl(212 100% 87%);
  background: hsl(212 100% 97%);
  --admonition-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E");
}
.docs-content .admonition.note   .admonition-title,
.docs-content .admonition.info   .admonition-title { color: hsl(212 90% 45%); }

/* Lightbulb icon (tip) */
.docs-content .admonition.tip {
  border-color: hsl(150 60% 80%);
  background: hsl(150 60% 96%);
  --admonition-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3Cpath d='M12 2a7 7 0 0 0-4 12.7V17h8v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
}
.docs-content .admonition.tip .admonition-title { color: hsl(150 70% 30%); }

/* Triangle alert icon (warning) */
.docs-content .admonition.warning {
  border-color: hsl(40 90% 75%);
  background: hsl(40 90% 96%);
  --admonition-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}
.docs-content .admonition.warning .admonition-title { color: hsl(30 90% 40%); }

/* Octagon alert icon (danger/error) */
.docs-content .admonition.danger,
.docs-content .admonition.error {
  border-color: hsl(0 75% 85%);
  background: hsl(0 75% 97%);
  --admonition-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}
.docs-content .admonition.danger  .admonition-title,
.docs-content .admonition.error   .admonition-title { color: hsl(0 75% 50%); }

/* ── Dark mode ──────────────────────────────────────────────────────
 * Both views toggle .dark on a parent (dashboard: <html class="dark">,
 * published: <html class="dark"> via the theme toggle). Variables flip
 * but structure stays identical.
 */
.dark .docs-content,
[data-theme="dark"] .docs-content {
  --docs-fg:           hsl(220 14% 92%);
  --docs-fg-muted:     hsl(220 10% 65%);
  --docs-fg-subtle:    hsl(220 10% 50%);
  --docs-bg-muted:     hsl(220 13% 16%);
  --docs-border:       hsl(220 13% 22%);
  --docs-border-strong:hsl(220 13% 30%);
  --docs-code-fg:      hsl(220 14% 92%);
  --docs-code-bg:      hsl(220 13% 18%);
  --docs-code-border:  hsl(220 13% 26%);
  --docs-pre-bg:       hsl(220 14% 9%);
  --docs-pre-border:   hsl(220 13% 18%);
}

.dark .docs-content .admonition.note,
.dark .docs-content .admonition.info {
  border-color: hsl(212 50% 30%);
  background: hsl(212 50% 12%);
}
.dark .docs-content .admonition.note  .admonition-title,
.dark .docs-content .admonition.info  .admonition-title { color: hsl(212 90% 70%); }

.dark .docs-content .admonition.tip {
  border-color: hsl(150 30% 28%);
  background: hsl(150 30% 10%);
}
.dark .docs-content .admonition.tip .admonition-title { color: hsl(150 60% 65%); }

.dark .docs-content .admonition.warning {
  border-color: hsl(40 50% 28%);
  background: hsl(40 40% 10%);
}
.dark .docs-content .admonition.warning .admonition-title { color: hsl(40 90% 65%); }

.dark .docs-content .admonition.danger,
.dark .docs-content .admonition.error {
  border-color: hsl(0 50% 30%);
  background: hsl(0 50% 12%);
}
.dark .docs-content .admonition.danger  .admonition-title,
.dark .docs-content .admonition.error   .admonition-title { color: hsl(0 75% 70%); }

/* ── Syntax highlighting (Pygments) ────────────────────────────────
 * Applied at sync time by app/lib/legacy_html.py:_highlight_code_blocks.
 * Token classes follow Pygments' short names (k=keyword, n=name, s=string).
 * Tuned to read well against the dark code-block background.
 */
.docs-content pre .k,  .docs-content pre .kd, .docs-content pre .kn,
.docs-content pre .kp, .docs-content pre .kr, .docs-content pre .kt { color: hsl(312 65% 75%); }   /* keyword */
.docs-content pre .nb { color: hsl(199 75% 70%); }                                                  /* builtin */
.docs-content pre .nc, .docs-content pre .nn,
.docs-content pre .nf, .docs-content pre .nd { color: hsl(48 95% 70%); }                            /* class/func/decorator name */
.docs-content pre .s,  .docs-content pre .s1, .docs-content pre .s2,
.docs-content pre .sb, .docs-content pre .sd, .docs-content pre .se,
.docs-content pre .sh, .docs-content pre .si, .docs-content pre .sx,
.docs-content pre .sr, .docs-content pre .ss { color: hsl(95 55% 70%); }                            /* string */
.docs-content pre .m,  .docs-content pre .mi, .docs-content pre .mf,
.docs-content pre .mo, .docs-content pre .mh, .docs-content pre .il { color: hsl(28 80% 70%); }     /* numbers */
.docs-content pre .c,  .docs-content pre .c1, .docs-content pre .cm,
.docs-content pre .cp, .docs-content pre .cpf, .docs-content pre .cs { color: hsl(220 14% 55%); font-style: italic; } /* comment */
.docs-content pre .o,  .docs-content pre .ow { color: hsl(0 0% 80%); }                              /* operator */
.docs-content pre .p { color: hsl(220 14% 75%); }                                                   /* punctuation */
.docs-content pre .bp { color: hsl(199 75% 70%); }                                                  /* self / builtin pseudo */
.docs-content pre .err { color: hsl(0 75% 70%); }                                                   /* lex error */

/* ── Legacy DeveloperHub fallbacks ──────────────────────────────────
 * Pages migrated from the old Angular-based CMS still carry .callout /
 * .dh-table / .code-blocks / .cbadge class names. Until they're re-synced
 * through the cleanup pass (app/lib/legacy_html.py), these rules give them
 * a passable appearance using the same visual language as the canonical
 * .admonition / table / code styles above.
 */
.docs-content .callout {
  margin: 1.5rem 0;
  padding: 0.875rem 1.125rem;
  border-radius: 0.625rem;
  border: 1px solid var(--docs-border);
  background: var(--docs-bg-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.docs-content .callout.info,
.docs-content .callout.note {
  border-color: hsl(212 100% 87%);
  background: hsl(212 100% 97%);
}
.docs-content .callout.tip,
.docs-content .callout.success {
  border-color: hsl(150 60% 80%);
  background: hsl(150 60% 96%);
}
.docs-content .callout.warning,
.docs-content .callout.caution {
  border-color: hsl(40 90% 75%);
  background: hsl(40 90% 96%);
}
.docs-content .callout.danger,
.docs-content .callout.error {
  border-color: hsl(0 75% 85%);
  background: hsl(0 75% 97%);
}

.docs-content .callout-text > p:last-child { margin-bottom: 0; }
.docs-content .callout-text .callout-text { margin: 0; }

/* Hide leftover editor input UIs from the old CMS */
.docs-content .callout textarea,
.docs-content textarea[disabled] {
  display: none;
}

/* Hide empty FontAwesome icon placeholders (FA stylesheet is not loaded) */
.docs-content .callout .callout-icon,
.docs-content i.fas,
.docs-content i.far,
.docs-content i.fab {
  display: none;
}

/* Legacy table wrappers — Bootstrap class soup that has no CSS loaded */
.docs-content .dh-table,
.docs-content .table-responsive,
.docs-content .doc-table {
  margin: 1.5rem 0;
  overflow-x: auto;
}

.docs-content .dh-table > table,
.docs-content .table-responsive > table,
.docs-content .doc-table > table,
.docs-content table.table {
  margin: 0;
}

.docs-content .code-blocks {
  margin: 1.5rem 0;
}
.docs-content .code-blocks > pre {
  margin: 0;
}

/* Old inline badge */
.docs-content .cbadge {
  display: inline-block;
  padding: 0.1em 0.55em;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--docs-bg-muted);
  color: var(--docs-fg-muted);
  vertical-align: middle;
}
.docs-content .cbadge.info,
.docs-content .docs-badge.note { background: hsl(212 100% 92%); color: hsl(212 90% 35%); }
.docs-content .cbadge.tip,
.docs-content .docs-badge.tip  { background: hsl(150 60% 90%); color: hsl(150 70% 25%); }
.docs-content .cbadge.warning,
.docs-content .docs-badge.warning { background: hsl(40 90% 90%); color: hsl(30 90% 30%); }
.docs-content .cbadge.danger,
.docs-content .cbadge.error,
.docs-content .docs-badge.danger { background: hsl(0 75% 92%); color: hsl(0 75% 40%); }

/* Dark-mode legacy callout variants */
.dark .docs-content .callout.info,
.dark .docs-content .callout.note {
  border-color: hsl(212 50% 30%); background: hsl(212 50% 12%);
}
.dark .docs-content .callout.tip,
.dark .docs-content .callout.success {
  border-color: hsl(150 30% 28%); background: hsl(150 30% 10%);
}
.dark .docs-content .callout.warning,
.dark .docs-content .callout.caution {
  border-color: hsl(40 50% 28%); background: hsl(40 40% 10%);
}
.dark .docs-content .callout.danger,
.dark .docs-content .callout.error {
  border-color: hsl(0 50% 30%); background: hsl(0 50% 12%);
}

/* ── FAQ Accordion ────────────────────────────────────────────────── */
.docs-content .faq-container {
  max-width: 800px;
  margin: 1.5rem 0;
}
.docs-content .faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.docs-content .faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.docs-content .faq-item[open] {
  border-color: #60a5fa;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}
.docs-content .faq-question {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  color: #111827;
  background: #f9fafb;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.docs-content .faq-question::-webkit-details-marker { display: none; }
.docs-content .faq-question::before {
  content: "+";
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #4b5563;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s;
}
.docs-content .faq-item[open] .faq-question::before {
  content: "\2212";
  background: #3b82f6;
  color: #fff;
}
.docs-content .faq-item[open] .faq-question {
  border-bottom: 1px solid #e5e7eb;
  color: #2563eb;
}
.docs-content .faq-answer {
  padding: 0.75rem 1rem 0.75rem 3.25rem;
  color: #4b5563;
  line-height: 1.65;
  font-size: 0.95rem;
}
.docs-content .faq-answer p { margin: 0; }

.dark .docs-content .faq-item { border-color: #374151; }
.dark .docs-content .faq-item[open] { border-color: #3b82f6; }
.dark .docs-content .faq-question { color: #f3f4f6; background: rgba(31, 41, 55, 0.5); }
.dark .docs-content .faq-question::before { background: #374151; color: #d1d5db; }
.dark .docs-content .faq-item[open] .faq-question { border-bottom-color: #374151; color: #60a5fa; }
.dark .docs-content .faq-answer { color: #d1d5db; }

/* ── Card Grid ────────────────────────────────────────────────────── */
.docs-content .card-grid-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
}
.docs-content .card-grid-filter-btn {
  padding: 0.375rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  background: #fff;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.docs-content .card-grid-filter-btn:hover {
  border-color: #60a5fa;
  color: #2563eb;
}
.docs-content .card-grid-filter-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.docs-content .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.docs-content .card-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  text-decoration: none;
  color: #111827;
  text-align: center;
  transition: all 0.2s;
}
.docs-content .card-grid-item:hover {
  border-color: #60a5fa;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.10);
  transform: translateY(-2px);
}
.docs-content .card-grid-item-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.docs-content .card-grid-item-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.dark .docs-content .card-grid-filter-btn { border-color: #374151; background: #1f2937; color: #d1d5db; }
.dark .docs-content .card-grid-filter-btn:hover { border-color: #3b82f6; color: #60a5fa; }
.dark .docs-content .card-grid-item { background: #1f2937; border-color: #374151; color: #f3f4f6; }
.dark .docs-content .card-grid-item:hover { border-color: #3b82f6; }

/* ── Print ─────────────────────────────────────────────────────────── */
@media print {
  .docs-content pre { white-space: pre-wrap; word-break: break-word; }
  .docs-content a { color: inherit; text-decoration: none; }
  .docs-content a::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
}
