/* ══════════════════════════════════════════
   DOCS — extends landing/styles.css
   Scoped under .docs-page where needed to
   avoid conflicts with landing hero/section.
   Loaded after styles.css; uses the same tokens.
   ══════════════════════════════════════════ */

/* ── Landing style overrides for docs pages ── */
.docs-page section {
  padding: 0;
}

/* ── Skip link (a11y) ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
}

/* ── Screen-reader only ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Hidden utility ── */
.hidden { display: none !important; }

/* ══════════════════════════════════════════
   NAV (docs overrides — base nav from styles.css)
   ══════════════════════════════════════════ */
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w, 1100px);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

/* ══════════════════════════════════════════
   LAYOUT — Shell with sidebar
   ══════════════════════════════════════════ */
.docs-shell {
  display: flex;
  min-height: calc(100vh - 64px);
  padding-top: 64px; /* offset for fixed nav */
}

.docs-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.docs-page {
  padding: 0 2rem 4rem;
  flex: 1;
}

/* Content area with optional right-side ToC */
.docs-content-wrap {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 2.5rem;
  align-items: start;
  max-width: 1000px;
}

.docs-article-wrap {
  min-width: 0;
}

.docs-article {
  min-width: 0;
}

/* ══════════════════════════════════════════
   SIDEBAR NAVIGATION
   ══════════════════════════════════════════ */
.docs-sidebar {
  position: sticky;
  top: 64px;
  width: 260px;
  flex-shrink: 0;
  height: calc(100vh - 64px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  background: var(--bg-subtle);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.docs-sidebar::-webkit-scrollbar {
  width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.docs-sidebar nav {
  position: static;
  background: none;
  border: none;
  backdrop-filter: none;
}

.sidebar-link {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  border-left: 2px solid transparent;
}

.sidebar-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(234, 88, 12, 0.06);
}

.sidebar-section {
  margin-top: 0.25rem;
}

.sidebar-section summary {
  display: flex;
  align-items: center;
  padding: 0.45rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.sidebar-section summary::before {
  content: '\25B6';
  display: inline-block;
  font-size: 0.55rem;
  margin-right: 0.5rem;
  transition: transform 0.2s;
  color: var(--text-muted);
  flex-shrink: 0;
}

.sidebar-section[open] summary::before {
  transform: rotate(90deg);
}

.sidebar-server-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
  flex: 1;
}

.sidebar-server-link:hover {
  color: var(--text);
}

.sidebar-server-link.active {
  color: var(--accent);
}

.sidebar-tool-count {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.5;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.sidebar-tools {
  list-style: none;
  padding: 0;
  margin: 0.15rem 0 0.5rem;
}

.sidebar-tools li a {
  display: block;
  padding: 0.25rem 1.25rem 0.25rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-tools li a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.sidebar-tools li a.active {
  color: var(--accent);
  background: rgba(234, 88, 12, 0.06);
}

/* (Hero/search removed — index page now shows Getting Started content) */

/* (Getting Started banner removed — content is shown directly on index) */

/* ══════════════════════════════════════════
   SECTION DIVIDER
   ══════════════════════════════════════════ */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ══════════════════════════════════════════
   SERVER CARDS (index page)
   ══════════════════════════════════════════ */
.server-overview {
  margin-bottom: 2rem;
}

.server-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.server-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.server-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.server-card-name {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.server-card-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.server-card-count {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.server-card-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.server-card:hover .server-card-link {
  color: var(--accent);
}

/* ══════════════════════════════════════════
   TOOL CARDS GRID (index page)
   ══════════════════════════════════════════ */
.tool-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Tool card — used as <a> on index page and <div> on server page */
a.tool-card {
  display: block;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

a.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Tool card on server pages (div, not link) */
div.tool-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tool-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.tool-card-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cli-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* Server page tool card extras */
.tool-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

.tool-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.tool-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.tool-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.tool-link:hover {
  color: var(--accent-hover);
}

/* (Filter UI removed — navigation is now via sidebar) */

/* ══════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  border-radius: 100px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.badge-read-only {
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
}

.badge-destructive {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.badge-idempotent {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.badge-open-world {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
}

/* Platform badges */
.badge-platform {
  color: #fff;
}

.badge-platform-meta     { background: #1877F2; }
.badge-platform-google   { background: #4285F4; }
.badge-platform-linkedin { background: #0A66C2; }
.badge-platform-reddit   { background: #FF4500; }
.badge-platform-tiktok   { background: #010101; border: 1px solid var(--border); }

/* Annotation badges wrapper */
.annotation-badges {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════
   BREADCRUMBS
   ══════════════════════════════════════════ */
/* Override landing nav { position: fixed } that leaks into <nav class="breadcrumbs"> */
nav.breadcrumbs {
  position: static;
  background: none;
  border: none;
  backdrop-filter: none;
  z-index: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 1.5rem 0 0;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.breadcrumb-separator {
  color: var(--border);
  user-select: none;
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
}

/* ══════════════════════════════════════════
   PARAMETER TABLES
   ══════════════════════════════════════════ */
.param-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-subtle);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.88rem;
  margin: 1rem 0;
}

.param-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.25);
}

.param-table th {
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.param-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

.param-table td code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.param-table .required,
td.required {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.78rem;
}

.param-table .optional,
td.optional {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.param-constraints {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* Flag table (CLI flags on tool detail pages) */
.flag-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-subtle);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.88rem;
  margin: 1rem 0;
}

.flag-table thead {
  background: rgba(0, 0, 0, 0.25);
}

.flag-table th {
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.flag-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

.flag-table td code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Optional params collapsible */
.optional-params {
  margin: 1rem 0;
}

.optional-params summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s;
  list-style: none;
}

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

.optional-params summary::before {
  content: '\25B6';
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.65rem;
  transition: transform 0.2s;
}

.optional-params[open] summary::before {
  transform: rotate(90deg);
}

.optional-params summary:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.optional-params summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════
   USAGE TABS (tool detail pages)
   ══════════════════════════════════════════ */
.usage-tabs [role="tablist"] {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.usage-tabs [role="tab"] {
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.usage-tabs [role="tab"]:hover {
  color: var(--text);
}

.usage-tabs [role="tab"][aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.usage-tabs [role="tab"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.usage-tabs [role="tabpanel"] {
  padding: 1rem 0;
}

/* ══════════════════════════════════════════
   CODE BLOCKS
   ══════════════════════════════════════════ */
.docs-page pre {
  position: relative;
  margin: 1rem 0;
}

.docs-page pre code {
  display: block;
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  color: var(--text);
  -webkit-overflow-scrolling: touch;
}

.copy-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  padding: 0.3rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  z-index: 1;
}

.copy-btn:hover {
  color: var(--text);
  background: var(--bg-raised);
  border-color: var(--text-muted);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════
   INLINE CODE
   ══════════════════════════════════════════ */
.docs-page :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* ══════════════════════════════════════════
   DOCS HEADING SYSTEM
   Consistent spacing across all doc pages.
   h1: page title, h2: section, h3: subsection
   ══════════════════════════════════════════ */
.docs-page h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.docs-page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.docs-page h2:first-child {
  margin-top: 0;
}

.docs-page h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.5rem 0 0.5rem;
}

/* ── Tool detail header ── */
.tool-header {
  margin-bottom: 1.5rem;
}

.tool-header h1 code {
  font-family: var(--font-mono);
  font-weight: 600;
}

.tool-header .tool-title {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  margin-left: 0;
  display: block;
}

/* ══════════════════════════════════════════
   NATURAL LANGUAGE EXAMPLES
   ══════════════════════════════════════════ */
.nl-examples {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nl-examples li {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   EXAMPLES (tool detail pages)
   ══════════════════════════════════════════ */
.example {
  margin-bottom: 1.5rem;
}

.example h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.example-cli {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.example-cli code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* ══════════════════════════════════════════
   ENUM VALUES
   ══════════════════════════════════════════ */
.enum-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.enum-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   RELATED TOOLS
   ══════════════════════════════════════════ */
.related-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.related-tool-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}

.related-tool-card:hover {
  border-color: var(--accent);
}

.related-tool-card code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.related-tool-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   PREV / NEXT NAVIGATION
   ══════════════════════════════════════════ */
/* Override landing nav { position: fixed } that leaks into <nav class="prev-next"> */
nav.prev-next {
  position: static;
  background: none;
  border: none;
  backdrop-filter: none;
  z-index: auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.prev-next a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s;
  min-width: 0;
  max-width: 48%;
}

.prev-next a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.prev-next a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.prev-next .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}

.prev-next a code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prev-next .next {
  text-align: right;
  margin-left: auto;
}

/* ══════════════════════════════════════════
   SERVER PAGE HEADER
   ══════════════════════════════════════════ */
.server-header {
  margin-bottom: 1.5rem;
}

.server-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.server-tool-count {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

/* ══════════════════════════════════════════
   INSTALLATION SECTION (server page)
   ══════════════════════════════════════════ */
.installation {
  margin-bottom: 2rem;
}

.config-tabs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.config-tab {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.config-tab h3 {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

/* ══════════════════════════════════════════
   TOOL LISTING (server page)
   ══════════════════════════════════════════ */
.tools-listing {
  margin-bottom: 2rem;
}

.tool-category {
  margin-bottom: 2rem;
}

.tool-category h2 {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: capitalize;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════
   TABLE OF CONTENTS (right side)
   ══════════════════════════════════════════ */
.toc {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  font-size: 0.82rem;
  line-height: 1.5;
}

.toc nav {
  position: static;
  background: none;
  border: none;
  backdrop-filter: none;
}

.toc-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.3rem 0;
  margin: 0 0 0.25rem;
  border-bottom: none;
}

.toc ul {
  list-style: none;
  padding: 0;
}

.toc li {
  margin-bottom: 0.15rem;
}

.toc a {
  display: block;
  padding: 0.3rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  border-radius: 0;
}

.toc a:hover {
  color: var(--accent);
}

.toc a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.toc a.active {
  color: var(--accent);
  border-left-color: var(--accent);
}

/* ══════════════════════════════════════════
   RECIPES SECTION (server pages)
   ══════════════════════════════════════════ */
.recipes-content {
  margin-bottom: 2rem;
}

.recipes-content blockquote {
  background: var(--bg-raised);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1.25rem;
  margin: 0.75rem 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

.recipes-content blockquote p {
  margin: 0;
}

.recipes-content p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.recipes-content ul,
.recipes-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.recipes-content li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

.recipes-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(234, 88, 12, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.recipes-content a:hover {
  text-decoration-color: var(--accent);
}

.recipes-content strong {
  font-weight: 600;
  color: var(--text);
}

/* ══════════════════════════════════════════
   GETTING STARTED PAGE (markdown content)
   Inherits h1/h2/h3 from docs heading system.
   ══════════════════════════════════════════ */

.docs-article p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.docs-article ul,
.docs-article ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.docs-article li {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

.docs-article a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(234, 88, 12, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.docs-article a:hover {
  text-decoration-color: var(--accent);
}

.docs-article strong {
  font-weight: 600;
  color: var(--text);
}

.docs-article blockquote {
  background: var(--bg-raised);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1.25rem;
  margin: 0.75rem 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
}

.docs-article blockquote p {
  margin: 0;
}

/* Tables in markdown content */
.docs-article table,
.recipes-content table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-subtle);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.88rem;
  margin: 1rem 0;
}

.docs-article table th,
.recipes-content table th {
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.docs-article table td,
.recipes-content table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.docs-article table tbody tr:last-child td,
.recipes-content table tbody tr:last-child td {
  border-bottom: none;
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  padding: 2rem 2rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ══════════════════════════════════════════
   FOCUS STYLES (global a11y)
   ══════════════════════════════════════════ */
.docs-page a:focus-visible,
.docs-page button:focus-visible,
.docs-page [role="tab"]:focus-visible,
.docs-page [role="checkbox"]:focus-visible,
.docs-page summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet (hide sidebar)
   ══════════════════════════════════════════ */
@media (max-width: 1280px) {
  .docs-content-wrap {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }
}

@media (max-width: 1024px) {
  .docs-sidebar {
    display: none;
  }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .docs-page {
    padding: 0 1rem 3rem;
  }

  .breadcrumbs {
    padding: 1rem 1rem 0;
  }

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

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

  a.tool-card {
    padding: 1rem 1.25rem;
  }

  .prev-next {
    flex-direction: column;
  }

  .prev-next a {
    max-width: 100%;
  }

  .prev-next .next {
    text-align: left;
  }

  .param-table,
  .flag-table {
    font-size: 0.82rem;
  }

  .param-table th,
  .param-table td,
  .flag-table th,
  .flag-table td {
    padding: 0.5rem 0.65rem;
  }

  .docs-page pre code {
    font-size: 0.78rem;
    padding: 1rem;
  }

  .nav-content {
    padding: 0 1rem;
  }

  .related-tools {
    grid-template-columns: 1fr;
  }
}
