/*
Theme Name: CouchHeroes Nerd
Theme URI: https://couchheroes.de
Author: Marcel
Description: Eigenstaendiges WordPress-Theme fuer CouchHeroes.de. Redaktionelles, dichtes Layout inspiriert von games.ch, kombiniert mit der CouchHeroes-Markenfarbe und einer Nerd/Terminal-Typografie. Kein Child-Theme, keine Fremdabhaengigkeiten.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: couchheroes-nerd
*/

/* ============================================
   Grundlagen & Variablen
   ============================================ */

:root {
  --ch-accent: #c85b1e;
  --ch-accent-dark: #a34917;
  --ch-accent-light: #fdeee5;
  --ch-ink: #1c1a19;
  --ch-text: #1c1a19;
  --ch-text-light: #6b6560;
  --ch-bg: #fbf9f6;
  --ch-card: #ffffff;
  --ch-border: #ece7e0;
  --ch-dark: #201b18;
  --ch-radius: 10px;
  --ch-container: 1160px;
  --ch-font-heading: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --ch-font-body: 'Inter', -apple-system, sans-serif;
  --ch-font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ch-font-body);
  background-color: var(--ch-bg);
  color: var(--ch-text);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ch-font-heading);
  margin: 0;
}

.ch-container {
  max-width: var(--ch-container);
  margin: 0 auto;
  padding: 0 24px;
}

.ch-narrow { max-width: 800px; }

/* ============================================
   Header
   ============================================ */

.ch-header {
  background: var(--ch-card);
  position: relative;
  overflow: hidden;
}

.ch-header::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(60deg, var(--ch-accent) 0, var(--ch-accent) 1px, transparent 1px, transparent 26px),
    repeating-linear-gradient(-60deg, var(--ch-accent) 0, var(--ch-accent) 1px, transparent 1px, transparent 26px);
  background-size: 26px 45px;
}

.ch-header-inner {
  padding: 26px 24px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.ch-logo { display: inline-flex; align-items: center; }
.ch-logo img { max-height: 130px; width: auto; }
.ch-logo-text {
  font-family: var(--ch-font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ch-accent);
  text-transform: uppercase;
}

/* ============================================
   Navigation
   ============================================ */

.ch-nav {
  background-color: var(--ch-ink);
}

.ch-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ch-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.ch-menu > li {
  position: relative;
}

.ch-menu > li > a {
  display: block;
  padding: 16px 16px;
  font-family: var(--ch-font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  color: #f2ede7;
}

.ch-menu > li:hover > a,
.ch-menu > li.current-menu-item > a,
.ch-menu > li.current_page_item > a {
  color: var(--ch-accent);
}

.ch-menu ul.sub-menu {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--ch-ink);
  border-top: 2px solid var(--ch-accent);
  display: none;
  z-index: 20;
}

.ch-menu li:hover > ul.sub-menu { display: block; }

.ch-menu ul.sub-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.85rem;
  color: #d8d2ca;
  font-weight: 500;
}

.ch-menu ul.sub-menu li a:hover { color: var(--ch-accent); }

/* Suche in der Nav */
.ch-search-form {
  display: flex;
  align-items: center;
  gap: 0;
}

.ch-search-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid #4a433d;
  color: #f2ede7;
  font-family: var(--ch-font-mono);
  font-size: 0.85rem;
  padding: 8px 4px;
  width: 140px;
}

.ch-search-input::placeholder { color: #8a8177; }

.ch-search-submit {
  background: none;
  border: none;
  color: #d8d2ca;
  font-size: 1rem;
  cursor: pointer;
  padding: 8px 12px;
}

.ch-search-submit:hover { color: var(--ch-accent); }

/* Eigenstaendiges Suchformular (searchform.php) auf Seiten */
.ch-narrow .ch-search-form,
.ch-404 .ch-search-form {
  margin-top: 16px;
  background: var(--ch-card);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 4px;
}

.ch-narrow .ch-search-input,
.ch-404 .ch-search-input {
  color: var(--ch-text);
  border-bottom: none;
  width: 100%;
  padding: 10px 12px;
}

.ch-narrow .ch-search-submit,
.ch-404 .ch-search-submit {
  color: var(--ch-text-light);
}

/* ============================================
   Sektionstitel
   ============================================ */

.ch-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 44px 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ch-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ch-section-header .ch-section-title { margin: 44px 0 24px; flex: 1 1 auto; }

.ch-carousel-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ch-carousel-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--ch-border);
  background: var(--ch-card);
  color: var(--ch-text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ch-carousel-btn:hover:not(:disabled) {
  background: var(--ch-accent);
  border-color: var(--ch-accent);
  color: #fff;
}

.ch-carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.ch-carousel-wrap { position: relative; }

.ch-carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ch-carousel-track::-webkit-scrollbar { display: none; }

.ch-carousel-track .ch-tile {
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 2 * 22px) / 3);
}

@media (max-width: 900px) {
  .ch-carousel-track .ch-tile { flex-basis: calc((100% - 22px) / 2); }
}

@media (max-width: 600px) {
  .ch-carousel-track .ch-tile { flex-basis: 100%; }
  .ch-carousel-wrap::after { width: 30px; }
}

.ch-section-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ch-accent);
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ============================================
   Artikel-Kachel-Grid (Startseite, Archiv, Suche)
   ============================================ */

.ch-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 900px) {
  .ch-tile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .ch-tile-grid { grid-template-columns: 1fr; }
}

.ch-tile {
  background: var(--ch-card);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ch-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(28, 26, 25, 0.1);
  border-color: var(--ch-accent);
}

.ch-tile-thumb { display: block; overflow: hidden; aspect-ratio: 16 / 9; position: relative; }
.ch-tile-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ch-tile:hover .ch-tile-thumb img { transform: scale(1.05); }

.ch-tile-score {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--ch-ink);
  color: #fff;
  font-family: var(--ch-font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 5px 9px;
  border-radius: 6px;
  border: 2px solid var(--ch-accent);
  line-height: 1;
  z-index: 2;
}

.ch-tile-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ch-kicker { margin-bottom: 8px; }
.ch-kicker a {
  font-family: var(--ch-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ch-accent);
  margin-right: 8px;
}
.ch-kicker a:hover { color: var(--ch-accent-dark); }

.ch-tile-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.ch-tile-title a:hover { color: var(--ch-accent); }

.ch-tile-excerpt {
  color: var(--ch-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
  flex-grow: 1;
}

.ch-meta {
  font-family: var(--ch-font-mono);
  font-size: 0.72rem;
  color: var(--ch-text-light);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--ch-border);
  padding-top: 10px;
  margin-top: auto;
}

/* ============================================
   Pagination
   ============================================ */

.ch-pagination { margin: 40px 0; }

.ch-pagination .nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.ch-pagination a,
.ch-pagination span.page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--ch-border);
  border-radius: 6px;
  font-family: var(--ch-font-mono);
  font-size: 0.85rem;
  color: var(--ch-text);
  background: var(--ch-card);
}

.ch-pagination a:hover,
.ch-pagination span.page-numbers.current {
  background: var(--ch-accent);
  border-color: var(--ch-accent);
  color: #fff;
}

/* ============================================
   Einzelartikel + Sidebar-Layout
   ============================================ */

.ch-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  padding-top: 40px;
  padding-bottom: 60px;
}

@media (max-width: 900px) {
  .ch-with-sidebar { grid-template-columns: 1fr; }
}

.ch-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ch-title-row .ch-article-title { flex: 1 1 auto; }

.ch-score-badge {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  background: var(--ch-ink);
  border: 2px solid var(--ch-accent);
  border-radius: 8px;
  padding: 8px 14px;
  margin-top: 8px;
}

.ch-score-badge-label {
  font-family: var(--ch-font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #b5ada4;
}

.ch-score-badge-numbers {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.ch-score-badge-value {
  font-family: var(--ch-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ch-accent);
  line-height: 1;
}

.ch-score-badge-max {
  font-family: var(--ch-font-mono);
  font-size: 0.8rem;
  color: #ccc;
}

.ch-article-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 8px 0 12px;
}

.ch-article-thumb {
  margin: 20px 0;
  border-radius: var(--ch-radius);
  overflow: hidden;
}

.ch-article-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ch-text);
}

.ch-article-content p { margin: 0 0 1.2em; }

.ch-article-content h2,
.ch-article-content h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
}

.ch-article-content a {
  color: var(--ch-accent);
  text-decoration: underline;
}

.ch-article-content img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 1.6em auto;
  border-radius: var(--ch-radius);
}

.ch-article-content .ch-zoomable,
.ch-article-content a.ch-zoomable {
  display: block;
  cursor: zoom-in;
}

.ch-article-content figure {
  max-width: 100%;
  margin: 1.6em 0;
}

.ch-article-content figure img { margin: 0 auto; }

.ch-article-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ch-text-light);
  margin-top: 8px;
}

.ch-article-content blockquote {
  border-left: 3px solid var(--ch-accent);
  margin: 1.5em 0;
  padding: 0.5em 0 0.5em 1.2em;
  color: var(--ch-text-light);
  font-style: italic;
}

.ch-tags { margin-top: 30px; }
.ch-tags a {
  display: inline-block;
  font-family: var(--ch-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ch-accent);
  border: 1px solid var(--ch-border);
  border-radius: 20px;
  padding: 4px 12px;
  margin: 0 6px 6px 0;
}
.ch-tags a:hover { border-color: var(--ch-accent); background: var(--ch-accent-light); }

/* ============================================
   Sidebar
   ============================================ */

.ch-widget {
  background: var(--ch-card);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 20px;
  margin-bottom: 24px;
}

.ch-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ch-widget-title::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ch-accent);
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.ch-sidebar-list { list-style: none; margin: 0; padding: 0; }

.ch-sidebar-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ch-border);
}

.ch-sidebar-item:last-child { border-bottom: none; padding-bottom: 0; }

.ch-sidebar-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ch-bg);
}

.ch-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ch-sidebar-thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--ch-accent-light), var(--ch-border));
}

.ch-sidebar-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  color: var(--ch-text);
}

.ch-sidebar-title:hover { color: var(--ch-accent); }

.ch-sidebar-meta {
  font-family: var(--ch-font-mono);
  font-size: 0.68rem;
  color: var(--ch-text-light);
  text-transform: uppercase;
}

/* Standard-Widgets (Kategorien, Suche, Textwidget etc.) */
.ch-widget ul { list-style: none; margin: 0; padding: 0; }
.ch-widget ul li { padding: 6px 0; border-bottom: 1px solid var(--ch-border); font-size: 0.9rem; }
.ch-widget ul li:last-child { border-bottom: none; }
.ch-widget ul li a:hover { color: var(--ch-accent); }

/* ============================================
   Kommentare
   ============================================ */

.ch-comments { margin-top: 50px; }

.ch-comments-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.ch-comment-list { list-style: none; margin: 0; padding: 0; }

.ch-comment-list .comment {
  background: var(--ch-card);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}

.ch-comment-list .comment-metadata,
.ch-comment-list .comment-author {
  font-family: var(--ch-font-mono);
  font-size: 0.75rem;
  color: var(--ch-text-light);
}

.ch-comment-list .comment-content p { margin: 8px 0 0; }

.ch-comment-list .children { list-style: none; margin: 0 0 0 24px; padding: 0; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--ch-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--ch-font-body);
  margin-bottom: 12px;
}

.comment-form textarea { min-height: 120px; }

.comment-form input[type="submit"] {
  background: var(--ch-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-family: var(--ch-font-heading);
  font-weight: 600;
  cursor: pointer;
}

.comment-form input[type="submit"]:hover { background: var(--ch-accent-dark); }

/* ============================================
   Footer
   ============================================ */

.ch-footer { background-color: var(--ch-dark); margin-top: 60px; }

.ch-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 50px 24px;
}

@media (max-width: 700px) {
  .ch-footer-grid { grid-template-columns: 1fr; }
}

.ch-footer .ch-widget {
  background: transparent;
  border: none;
  padding: 0;
  color: #ded8d0;
}

.ch-footer .ch-widget-title { color: #f2ede7; }
.ch-footer .ch-sidebar-item { border-bottom-color: #3a332e; }
.ch-footer .ch-sidebar-title { color: #ded8d0; }
.ch-footer .ch-sidebar-title:hover { color: var(--ch-accent); }
.ch-footer .ch-widget ul li { border-bottom-color: #3a332e; }
.ch-footer a:hover { color: var(--ch-accent); }

.ch-footer-bottom {
  background-color: #17130f;
  padding: 18px 24px;
}

.ch-footer-bottom .ch-container {
  font-family: var(--ch-font-mono);
  font-size: 0.8rem;
  color: #8a8177;
}

/* ============================================
   Review-Box (Wertung im Artikel)
   ============================================ */

.ch-review-box {
  background: var(--ch-ink);
  border-radius: var(--ch-radius);
  padding: 24px 26px;
  margin: 36px 0;
  color: #f2ede7;
}

.ch-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #3a332e;
}

.ch-review-heading {
  font-family: var(--ch-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 1rem;
}

.ch-review-score {
  font-family: var(--ch-font-heading);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--ch-accent);
  line-height: 1;
}

.ch-review-score-max {
  font-size: 1.1rem;
  color: #8a8177;
  font-weight: 500;
}

.ch-review-criteria { list-style: none; margin: 0; padding: 0; }

.ch-review-criterion {
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.ch-review-criterion-label {
  font-size: 0.9rem;
  color: #ded8d0;
}

.ch-review-bar {
  display: block;
  height: 6px;
  background: #3a332e;
  border-radius: 4px;
  overflow: hidden;
}

.ch-review-bar-fill {
  display: block;
  height: 100%;
  background: var(--ch-accent);
  border-radius: 4px;
}

.ch-review-criterion-score {
  font-family: var(--ch-font-mono);
  font-size: 0.8rem;
  color: #ded8d0;
  text-align: right;
}

.ch-review-fazit {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #3a332e;
}

.ch-review-fazit-label {
  display: inline-block;
  font-family: var(--ch-font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.85rem;
  color: var(--ch-accent);
  margin-bottom: 8px;
}

.ch-review-fazit p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #ded8d0;
}

@media (max-width: 480px) {
  .ch-review-criterion {
    grid-template-columns: 100px 1fr 40px;
    gap: 8px;
  }
}

/* ============================================
   Lightbox (Artikelbilder vergroessert anzeigen)
   ============================================ */

.ch-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 25, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 40px;
  cursor: zoom-out;
}

.ch-lightbox.is-active { display: flex; }

.ch-lightbox-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.ch-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f2ede7;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

body.ch-lightbox-open { overflow: hidden; }

/* ============================================
   Kategorie-Spalten (Startseite)
   ============================================ */

.ch-category-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-bottom: 20px;
}

.ch-category-col {
  background: var(--ch-card);
  border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius);
  padding: 18px 18px 6px;
}

.ch-category-col-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ch-accent);
}

.ch-category-col-title a:hover { color: var(--ch-accent); }

.ch-cat-list { list-style: none; margin: 0; padding: 0; }

.ch-cat-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ch-border);
}

.ch-cat-item:last-child { border-bottom: none; }

.ch-cat-item-thumb {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ch-bg);
  display: block;
}

.ch-cat-item-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ch-cat-item-score {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: var(--ch-ink);
  color: #fff;
  font-family: var(--ch-font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid var(--ch-accent);
  line-height: 1.3;
}

.ch-cat-item-body { min-width: 0; }

.ch-cat-item-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
  color: var(--ch-text);
}

.ch-cat-item-title:hover { color: var(--ch-accent); }

.ch-cat-item-meta {
  font-family: var(--ch-font-mono);
  font-size: 0.68rem;
  color: var(--ch-text-light);
  text-transform: uppercase;
}

/* ============================================
   404
   ============================================ */

.ch-404 { text-align: center; padding: 60px 24px; }
