:root {
  --color-primary: #6d94c5;
  --color-primary-foreground: #ffffff;
  --color-background: #ffffff;
  --color-background-secondary: #f5f5f5;
  --color-background-tertiary: #e5e5e5;
  --color-foreground: #0a0a0a;
  --color-border: #e5e5e5;
  --color-border-hover: #d4d4d8;
  --color-muted: #737373;
  --color-muted-foreground: #525252;
  --color-inverted: #18181b;
  --color-disabled: #d4d4d8;
  --color-link: #2563eb;
  --color-focus: #f59e0b;
  --shadow-drawer: 0 8px 24px rgb(24 24 27 / 0.08);
  --container: 64rem;
  --radius: 0.5rem;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-background);
  color: var(--color-foreground);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
svg,
video {
  display: block;
}

img,
video {
  max-width: 100%;
}

.site-body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-main {
  width: 100%;
  max-width: var(--container);
  flex: 1;
  margin: 0 auto;
  padding: 2rem 0.75rem;
}

.is-hidden {
  display: none !important;
}

.is-invisible {
  visibility: hidden;
}

.icon-xs {
  width: 0.75rem;
  height: 0.75rem;
}

.icon-sm {
  width: 0.875rem;
  height: 0.875rem;
}

.icon-md {
  width: 1rem;
  height: 1rem;
}

.icon-lg {
  width: 1.25rem;
  height: 1.25rem;
}

.icon-xl {
  width: 1.5rem;
  height: 1.5rem;
}

.icon-shrink {
  flex-shrink: 0;
}

.icon-muted {
  color: var(--color-muted);
}

.icon-primary-muted {
  color: rgb(109 148 197 / 0.6);
}

.page-header-title {
  margin: 0;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.page-header-description {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
  letter-spacing: 0.025em;
  text-wrap: balance;
}

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

.text-link:hover {
  text-decoration: underline;
}

.empty-state {
  margin: 1.5rem 0 0;
  color: var(--color-muted);
}

.site-header {
  position: relative;
}

.top-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem;
}

.top-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-area {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-inverted);
  font-size: 1.125rem;
  font-weight: 700;
}

.brand-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.desktop-nav,
.desktop-actions {
  display: none;
}

.nav-link {
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
}

.nav-link:hover {
  color: var(--color-inverted);
}

.small-outline-link {
  display: inline-flex;
  height: 1.75rem;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.25rem 0.375rem;
  color: var(--color-muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  transition:
    color 150ms ease,
    border-color 150ms ease;
}

.small-outline-link:hover {
  color: var(--color-inverted);
  border-color: var(--color-border-hover);
}

.mobile-menu-button {
  border: 0;
  background: transparent;
  padding: 0.5rem;
  color: var(--color-muted-foreground);
}

.mobile-menu-button:hover {
  color: var(--color-inverted);
}

.mobile-drawer {
  display: grid;
  grid-template-rows: 0fr;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-drawer);
  transition: grid-template-rows 250ms ease-out;
}

.mobile-drawer[data-open="true"] {
  grid-template-rows: 1fr;
}

.mobile-drawer-inner {
  overflow: hidden;
}

.mobile-drawer-content {
  padding: 0.5rem 1rem 1rem;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--radius);
  padding: 0.625rem 0.75rem;
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 150ms ease;
}

.drawer-link + .drawer-link,
.drawer-link + .drawer-submit-link,
.drawer-submit-link + .drawer-link {
  margin-top: 0.25rem;
}

.drawer-link:hover {
  background: var(--color-background-tertiary);
}

.drawer-submit-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: var(--radius);
  padding: 0.625rem 0.75rem;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 150ms ease;
}

.drawer-submit-link:hover {
  background: rgb(109 148 197 / 0.1);
}

.drawer-submit-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4rem;
}

.home-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.home-hero-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  flex-shrink: 0;
}

.home-action-note {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: 0.75rem;
}

.home-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  color: var(--color-muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
}

.home-action-link:hover {
  color: var(--color-inverted);
  border-color: var(--color-border-hover);
}

.section-title {
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-description {
  margin: 0.25rem 0 0;
  text-align: center;
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
}

.section-body {
  margin-top: 1rem;
}

.content-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.category-list-wrap {
  margin-top: 1.5rem;
}

.bot-list-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.search-form {
  width: 100%;
  flex: 1;
}

.search-shell,
.sort-shell {
  position: relative;
}

.search-icon {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 0.75rem;
  transform: translateY(-50%);
  color: var(--color-muted);
}

.search-input,
.sort-select {
  width: 100%;
  height: 2.5rem;
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius);
  background: var(--color-background);
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.search-input {
  padding: 0 1rem 0 2.5rem;
}

.search-input::placeholder {
  color: var(--color-muted);
}

.search-input:focus,
.sort-select:focus {
  border-color: var(--color-border);
  outline: 0;
  box-shadow: 0 0 0 1px var(--color-border);
}

.sort-form {
  position: relative;
  width: 100%;
}

.sort-select {
  appearance: none;
  padding: 0 2.5rem 0 0.75rem;
}

.select-icon {
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
}

.bot-grid,
.category-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.home-section,
.home-hero-row,
.home-actions,
.section-body,
.content-stack,
.category-list-wrap,
.bot-list-controls,
.search-form,
.sort-form,
.bot-grid,
.category-grid,
.card-wrapper,
.card-shell,
.bot-card-header {
  min-width: 0;
}

.bot-grid {
  margin-top: 1.5rem;
}

.card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.25rem;
}

.card-wrapper:hover {
  border-color: var(--color-border-hover);
}

.card-shell {
  height: 100%;
  border-radius: var(--radius);
  background: var(--color-background-secondary);
  padding: 0.75rem;
}

.bot-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar,
.avatar-fallback {
  flex-shrink: 0;
  border-radius: 999px;
}

.avatar {
  object-fit: cover;
}

.avatar-sm,
.avatar-fallback-sm {
  width: 2.25rem;
  height: 2.25rem;
}

.avatar-md,
.avatar-fallback-md {
  width: 2.5rem;
  height: 2.5rem;
}

.avatar-lg,
.avatar-fallback-lg {
  width: 3.5rem;
  height: 3.5rem;
}

.avatar-ring {
  box-shadow: 0 0 0 1px var(--color-border);
}

.avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background-tertiary);
  color: var(--color-muted-foreground);
  font-weight: 600;
}

.avatar-fallback-sm {
  font-size: 0.875rem;
}

.avatar-fallback-md {
  color: var(--color-muted);
  font-size: 1rem;
}

.avatar-fallback-lg {
  font-size: 1.25rem;
}

.bot-card-body,
.similar-bot-info,
.bot-title-block {
  min-width: 0;
}

.bot-card-body {
  display: flex;
  flex-direction: column;
}

.bot-card-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.bot-card-title .text-truncate {
  display: block;
  min-width: 0;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stretched-link {
  position: absolute;
  inset: 0;
}

.bot-card-meta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.bot-card-users {
  margin-left: 0.375rem;
  color: var(--color-muted);
}

.bot-card-description {
  display: -webkit-box;
  margin: 1rem 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  line-height: 1.625;
}

.category-card-title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.category-card-description {
  margin: 0.25rem 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
}

.category-card-count {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.view-all-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.view-all-link {
  color: var(--color-link);
  font-size: 0.875rem;
  font-weight: 500;
}

.view-all-link:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 2rem;
  font-size: 0.875rem;
}

.pagination-link,
.pagination-current,
.pagination-gap {
  display: flex;
  min-width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
}

.pagination-link {
  color: var(--color-muted-foreground);
  transition: background-color 150ms ease;
}

.pagination-link:hover {
  background: var(--color-background-tertiary);
}

.pagination-link--plain {
  color: var(--color-foreground);
}

.pagination-link--disabled {
  color: var(--color-disabled);
  cursor: not-allowed;
}

.pagination-current {
  background: var(--color-inverted);
  color: var(--color-background);
  font-weight: 600;
}

.pagination-gap {
  color: var(--color-muted);
}

.bot-detail-layout {
  display: grid;
  align-items: start;
  gap: 2rem;
}

.bot-detail-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 1.5rem;
}

.bot-hero {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.bot-detail-main,
.bot-hero,
.bot-title,
.bot-users,
.bot-short-description,
.rich-text {
  min-width: 0;
}

.bot-title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.bot-username {
  color: var(--color-link);
  font-size: 0.875rem;
}

.bot-username:hover {
  text-decoration: underline;
}

.bot-users {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0.25rem 0 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.bot-short-description {
  margin: 0;
  color: var(--color-muted-foreground);
}

.primary-action {
  display: inline-flex;
  width: fit-content;
  align-self: start;
  align-items: center;
  justify-self: start;
  gap: 0.5rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  padding: 0.625rem 1.25rem;
  color: var(--color-primary-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background-color 150ms ease;
}

.primary-action:hover {
  background: #6285b1;
}

.added-note {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: 0.875rem;
  font-style: italic;
}

.detail-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 1.5rem;
}

.sidebar-card {
  display: grid;
  min-width: 0;
  gap: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
}

.sidebar-heading {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sidebar-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  color: var(--color-link);
  font-size: 0.875rem;
}

.sidebar-section-link:hover {
  text-decoration: underline;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pill {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  color: var(--color-muted-foreground);
  font-size: 0.6875rem;
  font-weight: 500;
  transition:
    color 150ms ease,
    border-color 150ms ease;
}

.pill-link:hover {
  color: var(--color-inverted);
  border-color: var(--color-border-hover);
}

.similar-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.similar-bot {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.75rem;
}

.similar-bot-name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
}

.similar-bot:hover .similar-bot-name {
  text-decoration: underline;
}

.similar-bot-description {
  overflow: hidden;
  margin: 0.125rem 0 0;
  color: var(--color-muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screenshot-strip {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.screenshot-thumb {
  position: relative;
  width: 7rem;
  height: 10rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: transparent;
  padding: 0;
}

.screenshot-thumb:focus {
  outline: 0;
  box-shadow: 0 0 0 2px var(--color-focus);
}

.screenshot-thumb-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 0.2);
  color: #ffffff;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 0.8);
}

.lightbox-button {
  position: absolute;
  z-index: 10;
  border: 0;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.4);
  padding: 0.5rem;
  color: #ffffff;
  transition: background-color 150ms ease;
}

.lightbox-button:hover {
  background: rgb(0 0 0 / 0.6);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgb(0 0 0 / 0.4);
  padding: 0.25rem 0.75rem;
  color: #ffffff;
  font-size: 0.875rem;
}

.lightbox-media {
  display: flex;
  max-width: 90vw;
  max-height: 90vh;
  align-items: center;
  justify-content: center;
}

.lightbox-media-item {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
}

.lightbox-media-item--image {
  object-fit: contain;
}

.blog-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.blog-card {
  display: block;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 150ms ease;
}

.blog-card:hover {
  border-color: var(--color-border-hover);
}

.eyebrow {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-card-title {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.blog-card:hover .blog-card-title {
  color: var(--color-primary);
}

.blog-card-description {
  margin: 0.5rem 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.875rem;
  line-height: 1.625;
}

.blog-card-meta {
  margin: 1rem 0 0;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.article {
  max-width: 48rem;
  margin: 0 auto;
}

.article-header {
  display: grid;
  gap: 1rem;
}

.article-category-link {
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
}

.article-category-link:hover {
  text-decoration: underline;
}

.article-title {
  margin: 0;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.article-description {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.article-body {
  margin-top: 2rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.rich-text .table-scroll .data-table {
  margin: 0;
}

.data-table thead {
  background: var(--color-background-secondary);
  border-bottom: 1px solid var(--color-border);
}

.data-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
}

.data-table td {
  padding: 0.75rem 1rem;
}

.data-table tbody tr + tr {
  border-top: 1px solid var(--color-border);
}

.data-table-muted-cell {
  color: var(--color-muted-foreground);
}

.data-table-subtle-cell {
  color: var(--color-muted);
  white-space: nowrap;
}

.data-table-strong-cell {
  font-weight: 500;
}

.scroll-anchor {
  scroll-margin-top: 6rem;
}

.rich-text {
  max-width: none;
  color: var(--color-foreground);
  line-height: 1.75;
}

.rich-text > *:first-child {
  margin-top: 0;
}

.rich-text > *:last-child {
  margin-bottom: 0;
}

.rich-text p,
.rich-text ul,
.rich-text ol,
.rich-text blockquote,
.rich-text table,
.rich-text .table-scroll {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
  margin: 2rem 0 1rem;
  color: var(--color-inverted);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.rich-text h2 {
  font-size: 1.5rem;
}

.rich-text h3 {
  font-size: 1.25rem;
}

.rich-text h4 {
  font-size: 1.125rem;
}

.rich-text a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.rich-text strong {
  color: var(--color-inverted);
  font-weight: 700;
}

.rich-text ul,
.rich-text ol {
  padding-left: 1.5rem;
}

.rich-text li + li {
  margin-top: 0.375rem;
}

.rich-text blockquote {
  border-left: 0.25rem solid var(--color-border);
  padding-left: 1rem;
  color: var(--color-muted-foreground);
  font-style: italic;
}

.rich-text code {
  border-radius: 0.25rem;
  background: var(--color-background-secondary);
  padding: 0.125rem 0.25rem;
  font-size: 0.875em;
}

.rich-text pre {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--color-inverted);
  padding: 1rem;
  color: var(--color-background);
}

.rich-text pre code {
  background: transparent;
  padding: 0;
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 0;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--color-disabled);
  font-size: 3.75rem;
  line-height: 1;
  font-weight: 700;
}

.error-message {
  margin: 1rem 0 0;
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
}

.error-home-link {
  margin-top: 1.5rem;
  color: var(--color-link);
  font-size: 0.875rem;
}

.error-home-link:hover {
  text-decoration: underline;
}

.site-footer {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
  padding: 0 0.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-inverted);
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-brand-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-description {
  margin: 0.5rem 0 0;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.footer-section-title {
  margin: 0;
  color: var(--color-inverted);
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-section-title-spaced {
  margin-top: 1.25rem;
}

.footer-links {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-link {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--color-muted-foreground);
}

.featured-strip {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.featured-heading-wrap {
  display: flex;
  justify-content: center;
  padding-bottom: 0.5rem;
}

.featured-heading {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: 0.75rem;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee-scroll 60s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.featured-badge {
  width: auto;
  max-width: none;
  height: 2.5rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0;
  gap: 1rem;
}

.footer-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.75rem;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 40rem) {
  .desktop-actions {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.375rem;
  }

  .mobile-menu-button,
  .mobile-drawer {
    display: none;
  }

  .bot-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pagination {
    gap: 0.375rem;
  }

  .pagination-link,
  .pagination-current,
  .pagination-gap {
    min-width: 2.25rem;
    height: 2.25rem;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .home-hero-row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .home-actions {
    width: 18rem;
  }

  .home-action-note {
    text-align: right;
  }

  .bot-list-controls {
    flex-direction: row;
  }

  .sort-form {
    max-width: 7.5rem;
  }
}

@media (min-width: 64rem) {
  .bot-grid,
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bot-detail-layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}

@media (min-width: 40rem) {
  .article-title {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .marquee-track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    animation: none;
  }
}
