/* HealthWool Design 1.3.2 — warm cream / earth / terracotta */
body { background: #FDF8F1; overflow-x: clip; }
.entry-content h2, .entry-content h3 { color: #7C2D12; }
.entry-content a { color: #C05621; }
.entry-content a:hover { color: #9A3412; }

/* Header lockup: icon first, then name */
.site-branding-container { display: flex; align-items: center; gap: 14px; }
.site-header .site-logo img { width: 72px; height: 72px; object-fit: contain; }
.site-branding .main-title { margin: 0; line-height: 1.15; }
.site-branding .main-title a { color: #3B2314; }
.site-branding .site-description { color: #8A6B4D; margin: 2px 0 0; font-size: .9em; }

/* Desktop header: healthpies pattern — centered logo row, then a full-width
   centered nav bar below it (healthwool palette: cream bar, brown text). */
@media (min-width: 769px) {
    .site-header .inside-header { flex-direction: column; align-items: stretch; }
    .site-branding-container { justify-content: center; margin-bottom: 12px; }
    .site-branding { text-align: center; }
    #site-navigation { width: 100vw; margin-left: calc(50% - 50vw); background: #F5E9D8; border-top: 1px solid #EADBC8; border-bottom: 1px solid #EADBC8; }
    #site-navigation ul#primary-menu { display: flex; justify-content: center; flex-wrap: nowrap; }
    #site-navigation ul#primary-menu li { float: none; }
    #site-navigation .main-nav ul li a { color: #3B2314; padding: 12px 18px; }
    #site-navigation .main-nav ul li a:hover, #site-navigation .main-nav ul li.current-menu-item > a { color: #C05621; }
}

/* Article ToC + calculator CTA */
.hw-toc { background: #FFF7EC; border: 1px solid #F0DCC3; border-left: 4px solid #C05621; border-radius: 10px; padding: 16px 20px; margin: 0 0 24px; }
.hw-toc-title { font-weight: 700; color: #3B2314; margin: 0 0 8px; }
.hw-toc ul { margin: 0; padding-left: 18px; }
.hw-toc li { margin: 4px 0; }
.hw-calc-cta { background: #3B2314; border-radius: 12px; padding: 18px 22px; margin: 28px 0; }
.hw-calc-cta-title { color: #FDEBD7; font-weight: 700; margin: 0 0 6px; }
.hw-calc-cta p { color: #F5E6D3; margin: 0; }
.hw-calc-cta a { color: #FFC79A !important; font-weight: 600; }

/* Author box (sidebar) */
.hw-author-box { text-align: center; background: #fff; border: 1px solid #EADBC8; border-radius: 12px; padding: 20px 16px; margin-bottom: 20px; }
.hw-author-photo { width: 150px; height: 150px; object-fit: cover; border-radius: 16px; display: block; margin: 2px auto 12px; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.hw-author-name { font-size: 1.15em; font-weight: 700; margin: 0 0 8px; color: #3B2314; }
.hw-author-text { font-size: .92em; line-height: 1.55; color: #444; margin: 0 0 14px; }
.hw-author-btn { display: inline-block; background: #C05621; color: #fff !important; font-weight: 600; padding: 9px 22px; border-radius: 9px; text-decoration: none; }
.hw-author-btn:hover { background: #9A3412; color: #fff !important; }

/* Footer blocks + footer bar (strong selectors beat GeneratePress inline colors) */
.hw-foot-section { background: #F5E9D8; padding: 32px 0; }
.hw-foot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 700px) { .hw-foot-grid { grid-template-columns: 1fr; } }
.hw-foot-title { color: #3B2314; font-weight: 700; margin: 0 0 10px; }
.hw-foot-about { color: #5C4632; line-height: 1.6; margin: 0; }
.hw-foot-links { list-style: none; margin: 0; padding: 0; }
.hw-foot-links li { margin: 6px 0; }
.hw-foot-links a { color: #C05621; text-decoration: none; }
.hw-foot-links a:hover { color: #9A3412; }
footer.site-info { background: #3B2314 !important; color: #F5E6D3 !important; }
footer.site-info a { color: #FFC79A !important; }

/* Subscribe box (footer middle column, healthpies-style widget) */
.hw-sub-box { background: #FFF7EC; border: 1px solid #F0DCC3; border-radius: 12px; padding: 20px; }
.hw-sub-title { color: #3B2314; font-weight: 700; font-size: 1.1em; margin: 0 0 8px; }
.hw-sub-text { color: #5C4632; line-height: 1.6; margin: 0 0 12px; font-size: .95em; }
.hw-sub-box label { display: block; font-weight: 600; color: #3B2314; margin-bottom: 6px; font-size: .92em; }
.hw-sub-box input[type="email"] { width: 100%; padding: 10px 12px; border: 1px solid #EADBC8; border-radius: 8px; background: #fff; box-sizing: border-box; margin-bottom: 10px; }
.hw-sub-btn { width: 100%; background: #C05621; color: #fff !important; border: 0; padding: 11px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.hw-sub-btn:hover { background: #9A3412; }
.hw-sub-ok { color: #2F6B2F; font-weight: 600; line-height: 1.6; margin: 0; }

/* Popular posts grid (sidebar, below author box) */
.hw-pop-box { background: #fff; border: 1px solid #EADBC8; border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.hw-pop-title { font-weight: 700; color: #3B2314; margin: 0 0 12px; font-size: 1.05em; text-align: center; }
.hw-pop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hw-pop-card { display: block; text-decoration: none; }
.hw-pop-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; display: block; }
.hw-pop-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #3B2314; font-weight: 600; font-size: .88em; line-height: 1.35; margin-top: 6px; }
.hw-pop-card:hover .hw-pop-card-title { color: #C05621; }

/* Footer logo (above about text) */
.hw-foot-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; text-decoration: none; }
.hw-foot-logo img { width: 48px; height: 48px; object-fit: contain; display: block; }
.hw-foot-name { font-size: 1.4em; font-weight: 700; color: #3B2314; line-height: 1; }
.hw-foot-logo:hover .hw-foot-name { color: #C05621; }

/* Read More buttons (post archives) in site colors */
a.read-more.button, a.read-more { background-color: #C05621 !important; border-color: #C05621 !important; color: #fff !important; }
a.read-more.button:hover, a.read-more:hover { background-color: #9A3412 !important; border-color: #9A3412 !important; color: #fff !important; }

/* Sidebar order: stylised search box first (default plain search widget hidden) */
.widget-area .widget_search, .widget-area .wp-block-search { display: none; }
.hw-search-box { background: #fff; border: 1px solid #EADBC8; border-radius: 12px; padding: 16px; margin-bottom: 20px; }
.hw-search-title { font-weight: 700; color: #3B2314; margin: 0 0 12px; font-size: 1.05em; text-align: center; }
.hw-search-box form { display: flex; gap: 8px; }
.hw-search-box input[type="search"] { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #EADBC8; border-radius: 8px; background: #FDF8F1; }
.hw-search-box button { background: #C05621; color: #fff; border: 0; padding: 10px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.hw-search-box button:hover { background: #9A3412; }


/* Post listing area polish (archives): title hover + meta links in site colors,
   rounded featured images, breathing room */
.entry-header .entry-title { line-height: 1.25; margin-bottom: 6px; }
.entry-header .entry-title a { color: #3B2314; }
.entry-header .entry-title a:hover { color: #C05621 !important; }
.entry-meta { color: #8A6B4D; font-size: .9em; margin-bottom: 12px; }
.entry-meta a { color: #C05621 !important; }
.entry-meta a:hover { color: #9A3412 !important; }
.post-image img { border-radius: 12px; box-shadow: 0 2px 12px rgba(59,35,20,.10); }

/* Related posts block (single articles) */
.hw-related { margin-top: 28px; padding-top: 20px; border-top: 1px solid #EADBC8; }
.hw-related-title { font-weight: 700; color: #3B2314; font-size: 1.15em; margin: 0 0 14px; }
.hw-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hw-related-card { text-decoration: none; color: #3B2314; }
.hw-related-card img { width: 100%; height: auto; border-radius: 10px; display: block; margin-bottom: 8px; }
.hw-related-card span { font-weight: 600; font-size: .95em; line-height: 1.35; display: block; }
.hw-related-card:hover span { color: #C05621; }
@media (max-width: 600px) { .hw-related-grid { grid-template-columns: 1fr; } }
