/* Editorial pages: written content, legal pages and guides with a table of contents, blog articles. */

.hm-prose { font-size: 1.04rem; line-height: 1.75; color: var(--hm-text); }
.hm-prose > * + * { margin-top: 0; }
.hm-prose h2 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.8rem); margin: 2.4rem 0 .9rem; scroll-margin-top: 140px; }
.hm-prose h3 { font-size: 1.22rem; margin: 1.8rem 0 .7rem; }
.hm-prose h4 { margin: 1.4rem 0 .6rem; }
.hm-prose > h2:first-child, .hm-prose > h3:first-child { margin-top: 0; }
.hm-prose p { margin: 0 0 1.1em; }
.hm-prose ul, .hm-prose ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.hm-prose li { margin-bottom: .45em; }
.hm-prose li::marker { color: var(--hm-green); font-weight: 700; }
.hm-prose a { font-weight: 600; }
.hm-prose strong { color: var(--hm-ink); }
.hm-prose blockquote, .hm-prose .hm-tip { margin: 1.8rem 0; padding: 20px 24px; border-radius: var(--hm-radius); background: var(--hm-green-50); border-left: 4px solid var(--hm-green); color: var(--hm-ink); font-size: 1rem; }
.hm-prose blockquote p:last-child { margin-bottom: 0; }
.hm-prose img { border-radius: var(--hm-radius); }
.hm-prose hr { margin: 2.5rem 0; }
.hm-prose--seo { font-size: .98rem; color: var(--hm-muted); columns: 1; }
.hm-prose--seo h2 { font-size: 1.4rem; }
.hm-section--page { padding-top: clamp(32px, 4vw, 56px); }

/* Legal pages and guides: sticky table of contents. */
.hm-layout-toc { display: grid; grid-template-columns: 260px minmax(0, 820px); gap: clamp(32px, 4vw, 64px); justify-content: center; }
.hm-toc { position: sticky; top: 150px; align-self: start; max-height: calc(100vh - 170px); overflow: auto; padding: 20px; border-radius: var(--hm-radius); background: var(--hm-beige-light); border: 1px solid var(--hm-line-2); font-size: .88rem; }
.hm-toc strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hm-muted); margin-bottom: 10px; }
.hm-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 7px; }
.hm-toc a { color: var(--hm-text); text-decoration: none; line-height: 1.35; display: inline-block; }
.hm-toc a:hover { color: var(--hm-green); text-decoration: underline; }
.hm-updated { margin-top: 3rem; font-size: .85rem; color: var(--hm-muted); }
.hm-kind-legal .hm-prose { font-size: .98rem; }

/* Blog article */
.hm-article-head { padding-top: clamp(28px, 4vw, 48px); background: linear-gradient(180deg, var(--hm-beige-light) 0, var(--hm-beige-light) 70%, #fff 70%); }
.hm-article-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 16px; font-size: .88rem; color: var(--hm-muted); }
.hm-article-head__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hm-article-head__meta svg { width: 16px; height: 16px; }
.hm-article-head__meta .hm-badge { text-decoration: none; }
.hm-article-head__title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); max-width: 26ch; }
.hm-article-head__lead { font-size: 1.15rem; color: var(--hm-muted); max-width: 64ch; }
.hm-article-head__media { margin-top: 28px; }
.hm-article-head__media img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--hm-radius-lg); box-shadow: var(--hm-shadow); }
.hm-section--article { padding-top: 40px; }
.hm-article-foot { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--hm-line); display: grid; gap: 20px; }
.hm-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; }
.hm-tags span { color: var(--hm-muted); margin-right: 4px; }
.hm-tags a { padding: 4px 12px; border-radius: 999px; background: var(--hm-beige-light); color: var(--hm-text); text-decoration: none; }
.hm-author-box { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: var(--hm-radius-lg); background: var(--hm-beige-light); }
.hm-author-box .hm-logo__tag { display: none; }
.hm-author-box p { margin: 0; font-size: .94rem; color: var(--hm-muted); }

/* Pagination */
.hm-pagination { margin-top: 40px; display: flex; justify-content: center; }
.hm-pagination .nav-links, .woocommerce-pagination ul { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; border: 0 !important; }
.hm-pagination .page-numbers, .woocommerce-pagination .page-numbers li a, .woocommerce-pagination .page-numbers li span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--hm-radius-sm); border: 1px solid var(--hm-line) !important; background: #fff; color: var(--hm-ink); text-decoration: none; font-weight: 700; }
.hm-pagination .page-numbers.current, .woocommerce-pagination .page-numbers li span.current { background: var(--hm-green); border-color: var(--hm-green) !important; color: #fff; }
.woocommerce-pagination .page-numbers li { border: 0 !important; }

@media (max-width: 1000px) {
  .hm-layout-toc { grid-template-columns: 1fr; }
  .hm-toc { position: static; max-height: none; }
}
