/**
 * HERMA — blog.css
 * Blog index, archives, single post, search, 404, comments.
 * Loaded only on those views (handle: hrm-blog).
 */
.hrm-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 20px; }
.hrm-post-card { display: flex; flex-direction: column; gap: 16px; }
.hrm-post-card__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--hrm-radius); }
.hrm-post-card__body { display: flex; flex-direction: column; gap: 8px; }
.hrm-post-card__date, .hrm-post__meta { font-size: .8125rem; color: var(--hrm-muted); }
.hrm-post-card__title { font-size: 1.2rem; line-height: 1.35; }
.hrm-post-card__title a { color: inherit; } .hrm-post-card__title a:hover { color: var(--hrm-primary-dark); }
.hrm-post-card__text { font-size: .9rem; }
.hrm-post__figure { margin: 0 0 1.4em; border-radius: var(--hrm-r-lg); overflow: hidden; }
.hrm-post__figure img { inline-size: 100%; }
.hrm-post-nav { max-inline-size: 760px; margin-block-start: 48px; padding-block-start: 24px; border-block-start: 1px solid var(--hrm-line); }
.hrm-post-nav .nav-links { display: flex; justify-content: space-between; gap: 24px; }
.hrm-post-nav a { display: flex; flex-direction: column; gap: 4px; color: var(--hrm-ink); font-weight: 600; }
.hrm-post-nav a span { font-size: .78rem; font-weight: 500; color: var(--hrm-muted); }
.hrm-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 48px; }
.hrm-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-inline-size: 44px; block-size: 44px; padding-inline: 12px; border-radius: 12px; border: 1px solid var(--hrm-line); color: var(--hrm-ink); font-weight: 600; }
.hrm-pagination .page-numbers.current, .hrm-pagination .page-numbers:hover { background: var(--hrm-dark); border-color: var(--hrm-dark); color: #fff; }
.hrm-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-inline-size: 640px; }
.hrm-empty__title { font-size: var(--hrm-h2); }
.hrm-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hrm-search { display: flex; inline-size: 100%; max-inline-size: 460px; border: 1px solid var(--hrm-line); border-radius: var(--hrm-r-sm); overflow: hidden; background: #fff; }
.hrm-search__input { flex: 1; min-inline-size: 0; block-size: 50px; padding-inline: 16px; border: 0; background: none; }
.hrm-search__input:focus { outline: none; }
.hrm-search__btn { inline-size: 50px; border: 0; background: var(--hrm-dark); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hrm-comments { max-inline-size: 760px; margin-block-start: 56px; }
.hrm-comments__list { padding-inline-start: 1.2em; }
.hrm-comments input[type="text"], .hrm-comments input[type="email"], .hrm-comments input[type="url"], .hrm-comments textarea { inline-size: 100%; padding: 12px 14px; border: 1px solid var(--hrm-line); border-radius: 12px; }
.hrm-comments .submit { block-size: 46px; padding-inline: 22px; border: 0; border-radius: var(--hrm-r-sm); background: var(--hrm-primary); color: #fff; font-weight: 600; cursor: pointer; }
