.guides-page {
  min-height: 100vh;
  background: var(--bg);
}

.guides-container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.guides-filters {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background: #111b2e;
}

.guides-search {
  max-width: 47rem;
}

.guides-search label,
.guides-filter-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text);
  font-weight: 700;
}

.guides-search input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  border: 1px solid #64748b;
  border-radius: 0.55rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

.guides-search input::placeholder {
  color: #94a3b8;
}

.guides-search input:focus-visible,
.guides-filter-buttons button:focus-visible,
.guides-results-summary button:focus-visible,
.guide-group__header button:focus-visible,
.guides-empty button:focus-visible,
.guide-card a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

.guides-search > p {
  margin: 0.55rem 0 0;
  color: #94a3b8;
  font-size: 0.88rem;
}

.guides-filter-controls {
  margin-top: 1.75rem;
}

.guides-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.guides-filter-buttons button,
.guides-results-summary button,
.guide-group__header button,
.guides-empty button {
  min-height: 44px;
  padding: 0.62rem 0.85rem;
  border: 1px solid #475569;
  border-radius: 0.5rem;
  background: var(--surface);
  color: #dbeafe;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}

.guides-filter-buttons button[aria-pressed='true'] {
  border-color: #93c5fd;
  background: #1d4ed8;
  color: #fff;
}

.guides-results-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.guides-results-summary p {
  margin: 0;
  color: #cbd5e1;
}

.guides-results-summary button,
.guide-group__header button {
  flex: 0 0 auto;
  background: transparent;
}

.guides-content {
  padding: 3rem 0 5rem;
}

.guide-group {
  margin-bottom: 3.5rem;
}

.guide-group__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.guide-group__header h2 {
  margin: 0 0 0.4rem;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.guide-group__header p {
  max-width: 66ch;
  margin: 0;
  color: #cbd5e1;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.guide-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid #334155;
  border-radius: 0.7rem;
  background: var(--surface);
}

.guide-card--featured {
  border-color: #475569;
}

.guide-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.guide-card__meta span {
  padding: 0.28rem 0.5rem;
  border: 1px solid #475569;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 650;
}

.guide-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.16rem;
  line-height: 1.35;
}

.guide-card h3 a {
  color: #eff6ff;
  text-decoration: none;
}

.guide-card h3 a:hover {
  color: #bfdbfe;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.guide-card > p {
  flex: 1;
  margin: 0 0 1.2rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.guide-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #334155;
}

.guide-card__footer > span {
  color: #94a3b8;
  font-size: 0.75rem;
}

.guide-card__footer a {
  flex: 0 0 auto;
  color: #93c5fd;
  font-weight: 700;
  text-decoration: none;
}

.guides-empty {
  max-width: 40rem;
  padding: 2rem;
  border: 1px solid #475569;
  border-radius: 0.75rem;
  background: var(--surface);
}

.guides-empty h2 {
  margin: 0 0 0.5rem;
}

.guides-empty p {
  margin: 0 0 1.25rem;
  color: #cbd5e1;
}

@media (max-width: 680px) {
  .guides-results-summary,
  .guide-group__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .guides-results-summary button,
  .guide-group__header button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guides-page *,
  .guides-page *::before,
  .guides-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Docs.css - Documentation page using existing theme variables and unified Card system */

.docs-page {
  min-height: 100vh;
  background: var(--bg-primary);
}

/* Hero Section */
.docs-hero {
  padding: 4rem 0 5rem;
  background: var(--bg-secondary);
  text-align: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.docs-hero h1 {
  color: var(--text-primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Search Section */
.docs-search {
  padding: 2rem 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
}

.search-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}

.search-icon svg {
  width: 1rem;
  height: 1rem;
}

/* Quick Start Section */
.quick-start-section {
  padding: 4rem 0 5rem;
  background: var(--bg-primary);
}

.quick-start-section h2 {
  color: var(--text-primary);
  font-size: 1.875rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 2rem;
}

/* Documentation Grid */
.docs-content {
  padding: 4rem 0 5rem;
  background: var(--bg-primary);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.no-results {
  text-align: center;
  padding: 3rem 0;
  color: var(--text-secondary);
}

.no-results p {
  font-size: 1.125rem;
  margin: 0;
}

/* Footer */
.docs-footer {
  padding: 2rem 0 3rem;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.last-updated {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

/* Responsive Design */
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .docs-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .docs-hero {
    padding: 3rem 0 4rem;
  }

  .docs-hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .quick-start-section,
  .docs-content {
    padding: 3rem 0 4rem;
  }

  .quick-start-section h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 360px) {
  .docs-hero {
    padding: 2.5rem 0 3rem;
  }

  .docs-hero h1 {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  .search-input {
    font-size: 0.875rem;
    padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  }

  .search-icon {
    right: 0.75rem;
  }

  .quick-start-section,
  .docs-content {
    padding: 2.5rem 0 3rem;
  }

  .docs-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
