/* Clear Money — blog-specific layout on top of main.css */

.cm-home-head { padding-bottom: var(--gap-2); }
.cm-home-head h1 { max-width: 20ch; }

.cm-topicbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  padding: 0.9rem 0; margin-bottom: var(--gap-3);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.cm-topicbar a {
  font-size: 0.875rem; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface);
}
.cm-topicbar a:hover { color: var(--asset); border-color: var(--asset); }

.cm-layout-home { grid-template-columns: minmax(0, 1fr) var(--rail); padding-top: 0; }

.cm-post-row {
  display: block;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
}
.cm-post-row h2 { font-size: var(--step-2); margin: 0 0 0.4rem; line-height: 1.25; }
.cm-post-row h2 a { color: var(--ink); text-decoration: none; }
.cm-post-row h2 a:hover { text-decoration: underline; text-decoration-color: var(--rule-strong); }

.cm-post-row.is-featured { padding: 0 0 2rem; border-bottom: 2px solid var(--ink); margin-bottom: 0.5rem; }
.cm-post-row.is-featured h2 { font-size: var(--step-4); }
.cm-post-row.is-featured .cm-index-dek { font-size: var(--step-1); max-width: 64ch; }
.cm-post-thumb { display: block; margin-bottom: 1.2rem; }
.cm-post-thumb img { border-radius: var(--radius); border: 1px solid var(--rule); }

.cm-hero-image { margin: 0 0 var(--gap-3); max-width: var(--measure); }
.cm-hero-image img { border-radius: var(--radius); border: 1px solid var(--rule); }

.cm-tags { font-size: 0.875rem; margin-top: var(--gap-3); }
.cm-tags a { color: var(--ink-faint); text-decoration: none; margin-right: 0.5rem; }
.cm-tags a:hover { color: var(--asset); }

.cm-nav > ul li { list-style: none; }
.cm-nav > ul > li > a { display: inline-block; font-size: 0.9375rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; padding: 0.5rem 0.65rem; border-radius: var(--radius); }
.cm-nav > ul > li > a:hover, .cm-nav > ul > li.current-menu-item > a { color: var(--ink); background: var(--paper-sunk); }

.cm-footer-blog { grid-template-columns: 1.4fr 1fr 1fr; }

.cm-rail-list small { color: var(--ink-faint); }

@media (max-width: 900px) {
  .cm-layout-home { grid-template-columns: minmax(0, 1fr); }
  .cm-footer-blog { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1100px) {
  .cm-nav > ul > li > a { padding: 0.5rem 0.4rem; font-size: 0.875rem; }
}
