/* Guides — list + detail.
 * Sits on top of styles.css; nav + footer use the marketing chrome.
 * Layout: one column, one guide per row, with tag badges.
 */

.guides-body { background: #faf9f5; color: #222; }

.guides-page {
  padding-top: 96px;
  padding-bottom: 80px;
  min-height: 60vh;
}

.guides-page .container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.guides-header { margin-bottom: 2rem; }
.guides-header h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin: 0 0 .5rem;
  color: #111;
}
.guides-header p { font-size: 1rem; color: #555; margin: 0 0 1.25rem; }

/* Search */
.guides-search {
  display: flex;
  gap: .5rem;
  max-width: 480px;
}
.guides-search input[type="search"] {
  flex: 1;
  font-family: inherit;
  font-size: .95rem;
  padding: .65rem .85rem;
  border: 2px solid #000;
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
}
.guides-search input[type="search"]:focus { outline: none; box-shadow: 2px 2px 0 #000; transform: translate(2px, 2px); }
.guides-search button {
  font-family: inherit;
  font-weight: 700;
  padding: .65rem 1.25rem;
  background: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 4px 4px 0 #000;
}
.guides-search button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }

/* Filter pills */
.guides-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1.5rem 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #000;
}
.guides-filter-pill {
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border: 2px solid #000;
  border-radius: 100px;
  background: #fff;
  color: #000;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.guides-filter-pill:hover { background: #f0eadf; }
.guides-filter-pill.active { background: #000; color: #fff; }

/* List */
.guides-list { display: flex; flex-direction: column; gap: 0; }
.guide-row {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0,0,0,.12);
}
.guide-row:first-child { padding-top: .5rem; }
.guide-row:last-child { border-bottom: none; }
.guide-row-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  display: block;
  margin-bottom: .35rem;
}
.guide-row-title:hover { text-decoration: underline; }
.guide-row-excerpt {
  color: #555;
  font-size: .95rem;
  line-height: 1.55;
  margin: 0 0 .55rem;
}
.guide-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  font-size: .8rem;
  color: #666;
}
.guide-row-category {
  font-weight: 600;
  color: #111;
  background: #f0eadf;
  padding: 1px 8px;
  border-radius: 100px;
}
.guide-row-date::before { content: '·'; margin-right: .65rem; color: #aaa; }

/* Tags */
.guide-tags { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.guide-tag {
  font-size: .72rem;
  font-weight: 600;
  padding: 1px 8px;
  border: 1px solid rgba(0,0,0,.25);
  border-radius: 100px;
  color: #333;
  text-decoration: none;
  background: #fff;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.guide-tag:hover { background: #000; color: #fff; border-color: #000; }

.guides-empty {
  padding: 3rem 0;
  text-align: center;
  color: #888;
  font-style: italic;
}

/* Detail page */
.guide-detail { max-width: 720px; }
.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: #666;
  margin-bottom: 1.25rem;
}
.guide-breadcrumb a { color: #111; text-decoration: none; font-weight: 600; }
.guide-breadcrumb a:hover { text-decoration: underline; }
.guide-article-header { margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 2px solid #000; }
.guide-article-header h1 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 .65rem;
  color: #111;
  line-height: 1.2;
}
.guide-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
  font-size: .85rem;
  color: #666;
}

/* Article body — markdown-rendered */
.guide-article-body { font-size: 1rem; line-height: 1.7; color: #222; }
.guide-article-body h1 { font-size: 1.75rem; margin: 2rem 0 1rem; font-weight: 700; color: #111; }
.guide-article-body h2 { font-size: 1.4rem; margin: 1.75rem 0 .85rem; font-weight: 700; color: #111; }
.guide-article-body h3 { font-size: 1.15rem; margin: 1.5rem 0 .75rem; font-weight: 700; color: #111; }
.guide-article-body h4, .guide-article-body h5, .guide-article-body h6 { font-size: 1rem; margin: 1.25rem 0 .65rem; font-weight: 700; color: #111; }
.guide-article-body p { margin: 0 0 1rem; }
.guide-article-body ul, .guide-article-body ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.guide-article-body li { margin-bottom: .35rem; }
.guide-article-body a { color: #111; text-decoration: underline; }
.guide-article-body strong { color: #111; }
.guide-article-body blockquote {
  margin: 1rem 0;
  padding: .5rem 1rem;
  border-left: 4px solid #000;
  background: #f0eadf;
  font-style: italic;
}
.guide-article-body code {
  background: rgba(0,0,0,.06);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .9em;
  padding: 1px 6px;
  border-radius: 4px;
}
.guide-article-body pre {
  background: #1a1a1a;
  color: #f5f5f0;
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
}
.guide-article-body pre code { background: transparent; color: inherit; padding: 0; }
.guide-article-body hr { border: none; border-top: 2px solid #000; margin: 2rem 0; }
.guide-article-body img.markdown-image {
  max-width: 100%;
  height: auto;
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #000;
  margin: 1rem 0;
}
.guide-article-body table.markdown-table {
  border-collapse: collapse;
  margin: 1rem 0;
  width: 100%;
  border: 2px solid #000;
}
.guide-article-body table.markdown-table th,
.guide-article-body table.markdown-table td {
  padding: .5rem .85rem;
  border: 1px solid rgba(0,0,0,.25);
  text-align: left;
}
.guide-article-body table.markdown-table th { background: #f0eadf; font-weight: 700; }

.guide-article-footer { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,.15); }
.guide-back {
  display: inline-block;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  font-size: .9rem;
}
.guide-back:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .guides-page { padding-top: 80px; padding-bottom: 60px; }
  .guides-header h1 { font-size: 2rem; }
  .guide-article-header h1 { font-size: 1.6rem; }
  .guides-search { flex-direction: column; max-width: none; }
}
