:root {
  --lh-bg: #0D0D0F;
  --lh-surface: #1A1A1E;
  --lh-surface-2: #202026;
  --lh-border: #2B2B30;
  --lh-border-hover: #FF7A18;
  --lh-accent: #FF7A18;
  --lh-accent-hover: #E66A0C;
  --lh-accent-soft: #FFB066;
  --lh-text: #F0F0F2;
  --lh-text-muted: #9A9AA2;
  --lh-text-dim: #6B6B73;
  --lh-radius: 14px;
  --lh-radius-sm: 10px;
}

.lh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.lh-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--lh-surface);
  border: 1px solid var(--lh-border);
  border-radius: var(--lh-radius);
  padding: 20px;
  text-decoration: none;
  color: var(--lh-text);
  transition: all 200ms ease;
  min-height: 180px;
  box-sizing: border-box;
}

.lh-card:hover,
.lh-card:focus-visible {
  background: var(--lh-surface-2);
  border-color: var(--lh-border-hover);
  transform: translateY(-4px);
  outline: none;
}

.lh-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lh-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--lh-radius-sm);
  background: var(--lh-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  color: #1A0E03;
  font-size: 20px;
  flex-shrink: 0;
}

.lh-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lh-card-cat {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lh-accent-soft);
  font-family: "Inter", sans-serif;
}

.lh-card-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--lh-text);
  margin: 4px 0 0;
}

.lh-card-desc {
  font-size: 14px;
  color: var(--lh-text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  font-family: "Inter", sans-serif;
}

.lh-card-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--lh-accent);
  margin-top: 6px;
  font-family: "Inter", sans-serif;
}

.lh-card:hover .lh-arrow,
.lh-card:focus-visible .lh-arrow {
  margin-left: 4px;
}

.lh-arrow {
  transition: margin-left 200ms ease;
  font-style: normal;
}

.lh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  max-width: 1200px;
}

.lh-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--lh-surface);
  border: 1px solid var(--lh-border);
  color: var(--lh-text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease;
  font-family: "Inter", sans-serif;
}

.lh-pill:hover,
.lh-pill:focus-visible {
  color: var(--lh-text);
  border-color: var(--lh-text-dim);
  outline: none;
}

.lh-pill.is-active {
  background: var(--lh-accent);
  border-color: var(--lh-accent);
  color: #1A0E03;
}

.lh-tools-browser,
.lh-category-grid,
.lh-empty {
  max-width: 1200px;
  margin: 0 auto;
}

.lh-empty {
  padding: 24px;
  border: 1px dashed var(--lh-border);
  border-radius: var(--lh-radius);
  background: var(--lh-surface);
  color: var(--lh-text-muted);
  font-family: "Inter", sans-serif;
  grid-column: 1 / -1;
}

.lh-card[hidden] {
  display: none !important;
}

.lh-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.lh-category-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--lh-radius);
  border: 1px solid var(--lh-border);
  background: var(--lh-surface);
  text-decoration: none;
  transition: all 200ms ease;
  min-height: 120px;
  box-sizing: border-box;
}

.lh-category-card:hover,
.lh-category-card:focus-visible {
  background: var(--lh-surface-2);
  border-color: var(--lh-border-hover);
  transform: translateY(-4px);
  outline: none;
}

.lh-category-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--lh-text);
}

.lh-category-count {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: var(--lh-text-muted);
  line-height: 1.6;
}

body.single-tool,
body.post-type-archive-tool,
body.tax-tool_category {
  background: var(--lh-bg);
  color: var(--lh-text);
}

body.single-tool .site,
body.post-type-archive-tool .site,
body.tax-tool_category .site,
body.single-tool .site-main,
body.post-type-archive-tool .site-main,
body.tax-tool_category .site-main {
  background: var(--lh-bg);
  color: var(--lh-text);
}

body.single-tool .site-main,
body.post-type-archive-tool .site-main,
body.tax-tool_category .site-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 20px;
  box-sizing: border-box;
}

body.single-tool h1,
body.single-tool h2,
body.single-tool h3,
body.post-type-archive-tool h1,
body.post-type-archive-tool h2,
body.post-type-archive-tool h3,
body.tax-tool_category h1,
body.tax-tool_category h2,
body.tax-tool_category h3 {
  color: var(--lh-text);
  font-family: "Space Grotesk", sans-serif;
}

body.single-tool p,
body.single-tool li,
body.post-type-archive-tool p,
body.post-type-archive-tool li,
body.tax-tool_category p,
body.tax-tool_category li {
  color: var(--lh-text-muted);
  font-family: "Inter", sans-serif;
  line-height: 1.7;
}

body.single-tool a,
body.post-type-archive-tool a,
body.tax-tool_category a {
  color: var(--lh-accent);
}

body.single-tool .entry-title,
body.post-type-archive-tool .page-title,
body.tax-tool_category .page-title {
  color: var(--lh-text);
}

body.single-tool .post-thumbnail img,
body.post-type-archive-tool article img,
body.tax-tool_category article img {
  border-radius: var(--lh-radius);
}

@media (max-width: 767px) {
  body.single-tool .site-main,
  body.post-type-archive-tool .site-main,
  body.tax-tool_category .site-main {
    padding: 40px 16px;
  }
}
