/*
Theme Name: Home Office Grid
Author: Build Paid Income
Description: Polished, accessible editorial WordPress blog theme with responsive post cards, a right sidebar, featured images, search, related posts, and customizable design options.
Version: 2.9.28
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: home-office-grid
Tags: blog, two-columns, three-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments
*/

:root {
  --hog-accent: #1769c2;
  --hog-text: #243043;
  --hog-heading: #142236;
  --hog-muted: #667387;
  --hog-border: #e5eaf0;
  --hog-surface: #fff;
  --hog-bg: #f8fafc;
  --hog-container: 1256px;
  --hog-shadow: 0 5px 18px rgba(26, 44, 66, .045);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--hog-bg); color: var(--hog-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.68; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--hog-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--hog-accent); outline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 { color: var(--hog-heading); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; left: 18px; top: 14px; z-index: 100; width: auto; height: auto; padding: 10px 18px; clip: auto; background: #fff; border: 1px solid var(--hog-accent); }
.site-container { width: min(calc(100% - 64px), var(--hog-container)); margin-inline: auto; }

/* HEADER */
.site-header { background: #fff; position: relative; z-index: 30; border-bottom: 1px solid var(--hog-border); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 34px; }
.site-branding { display: flex; align-items: center; flex: 0 0 auto; max-width: 240px; min-width: 0; }
.site-branding .custom-logo-link { display: inline-flex; align-items: center; }
.site-branding .custom-logo { width: auto; max-width: 215px; max-height: 55px; object-fit: contain; }
.brand-text-link { display: flex; align-items: center; min-width: 0; gap: 9px; color: var(--hog-heading); font-weight: 800; font-size: 20px; letter-spacing: -.75px; line-height: 1.1; }
.brand-text-link:hover { text-decoration: none; color: var(--hog-heading); }
.brand-symbol { display: flex; flex: 0 0 auto; color: var(--hog-accent); }
.brand-name { min-width: 0; }
.primary-navigation { min-width: 0; flex: 1; }
.primary-navigation ul { display: flex; list-style: none; gap: clamp(13px, 1.7vw, 27px); align-items: center; justify-content: flex-end; padding: 0; margin: 0; }
.primary-navigation li { position: relative; margin: 0; }
.primary-navigation a { color: var(--hog-heading); font-size: 14px; font-weight: 650; white-space: nowrap; padding: 27px 0; display: inline-block; transition: color .15s ease; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a, .primary-navigation .current_page_item > a, .primary-navigation .current-menu-ancestor > a { color: var(--hog-accent); text-decoration: none; }
.primary-navigation .sub-menu { display: none; position: absolute; top: 100%; left: -15px; min-width: 220px; padding: 10px 15px; background: #fff; box-shadow: 0 16px 40px rgba(12, 28, 50, .14); border: 1px solid var(--hog-border); border-radius: 0 0 10px 10px; }
.primary-navigation .sub-menu li { display: block; }
.primary-navigation .sub-menu a { padding: 10px 5px; white-space: normal; width: 100%; }
.primary-navigation li:hover > .sub-menu, .primary-navigation li:focus-within > .sub-menu { display: block; }
.header-actions { margin-left: 2px; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-icon-button { width: 42px; height: 42px; border: 1px solid var(--hog-border); background: #fff; color: var(--hog-heading); border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; transition: background .15s ease, border-color .15s ease; }
.header-icon-button:hover, .header-icon-button[aria-expanded="true"] { background: #f1f6fd; border-color: #c4d7eb; }
.menu-toggle { display: none; }
.menu-toggle-bars { width: 20px; height: 17px; display: inline-flex; flex-direction: column; justify-content: space-between; }
.menu-toggle-bars span { width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:first-child { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:last-child { transform: translateY(-7.5px) rotate(-45deg); }
.header-search-panel { background: #fff; border-top: 1px solid var(--hog-border); box-shadow: 0 14px 20px rgba(15, 32, 49, .06); }
.header-search-panel[hidden] { display: none; }
.header-search-inner { display: flex; align-items: center; justify-content: center; gap: 28px; padding-block: 22px; }
.header-search-inner p { margin: 0; font-weight: 650; color: var(--hog-heading); }
.header-search-inner .search-form { width: min(100%, 510px); }

/* SHARED HEADINGS, INPUTS */
.eyebrow { margin: 0 0 8px; color: var(--hog-accent); font-size: 11px; font-weight: 800; letter-spacing: 1.7px; line-height: 1.4; }
.search-form { display: flex; align-items: stretch; width: 100%; gap: 7px; }
.search-form label { flex: 1; min-width: 0; }
.search-form .search-field { width: 100%; height: 45px; padding: 0 14px; color: var(--hog-heading); background: #fff; border: 1px solid #dce3ec; border-radius: 8px; font-size: 14px; }
.search-form .search-field::placeholder { color: #8491a2; }
.search-submit { background: var(--hog-accent); border: 1px solid var(--hog-accent); color: #fff; border-radius: 8px; padding: 0 16px; font-size: 13px; font-weight: 750; }
.search-submit:hover { filter: brightness(.92); }

/* HOMEPAGE & CATEGORY GRID */
.posts-area { padding-top: 53px; padding-bottom: 40px; }
.blog-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 29px; }
.blog-intro h1, .archive-heading h1 { font-size: clamp(30px, 3vw, 41px); line-height: 1.15; letter-spacing: -1.4px; margin: 0 0 11px; font-weight: 700; }
/* Category archives: compact H1, still directly below the Above Category banner. */
body.category .archive-heading h1 { font-size: 28px; font-weight: 600; }
/* No subtitle under the blog-index H1: avoid an extra empty 11px gap. */
.blog-intro h1 { margin-bottom: 0; }
.intro-description { color: var(--hog-muted); margin: 0; font-size: 16px; max-width: 620px; }
.intro-search { width: 335px; flex: 0 1 335px; padding-bottom: 2px; }
.category-shortcuts { display: flex; align-items: center; gap: 9px; overflow-x: auto; padding-bottom: 17px; margin-bottom: 15px; scrollbar-width: thin; }
.category-shortcuts a { flex: 0 0 auto; border: 1px solid var(--hog-border); background: #fff; border-radius: 100px; padding: 7px 14px; color: #536277; font-weight: 650; font-size: 12px; line-height: 1.5; }
.category-shortcuts a:hover { color: var(--hog-accent); border-color: #c7d8e8; text-decoration: none; }
.category-shortcuts a.shortcut-current { background: var(--hog-heading); color: #fff; border-color: var(--hog-heading); }
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
/* v2.9.20 — On the blog index, the existing Above Category widget is a
   full-width grid item after the first three posts. Do not add separate widget
   margins: the grid gap already creates consistent spacing above and below. */
.posts-grid > .hog-widget-slot--above-category {
  grid-column: 1 / -1;
  margin: 0;
}

/* v2.9.21 — Clearly labeled advertising CARD, visually compatible with the article grid.
 * Explicit advertising identification is intentional; never mimic article
 * categories, bylines, author/date metadata, or an editorial Read article link.
 * This card is one grid column; the older banner stays full-width. */
.hog-ad-card {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 290px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--hog-border);
  border-radius: 13px;
  box-shadow: var(--hog-shadow);
}
.hog-ad-card__label {
  display: block;
  margin: 0;
  color: var(--hog-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  line-height: 1.4;
  text-transform: uppercase;
}
.hog-ad-card__content { min-width: 0; width: 100%; flex: 1; }
.hog-ad-card .widget { min-width: 0; max-width: 100%; margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
.hog-ad-card .widget + .widget { margin-top: 12px; }
.hog-ad-card .widget-title { margin: 0 0 8px; font-size: 14px; }
.hog-ad-card :is(img, svg, iframe, video, ins.adsbygoogle) { max-width: 100%; }
.hog-ad-card :is(.textwidget, .wp-block-html) { min-width: 0; max-width: 100%; }
/* v2.9.26 — Center in-feed ad creatives within their existing grid cards.
 * This changes alignment only, not the ad card width, the creative dimensions,
 * or the separately styled content-width inline ad units. */
.posts-grid .hog-ad-card:not(.hog-ad-card--inline) .hog-ad-card__content {
  text-align: center;
}
.posts-grid .hog-ad-card:not(.hog-ad-card--inline) .hog-ad-card__content :is(img, svg, iframe, video, ins.adsbygoogle) {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
/* v2.9.25 — Content-width inline advertisements must not inherit the tall,
 * 400px-limited card frame used for In-feed grid advertisements. Preserve the
 * advertising label and the ad network's actual creative dimensions instead
 * of forcing an image or iframe to stretch or crop. */
.entry-content .hog-ad-card--inline {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 28px 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.entry-content .hog-ad-card--inline .hog-ad-card__label { margin-bottom: 9px; }
.entry-content .hog-ad-card--inline .hog-ad-card__content {
  width: 100%;
  min-height: 0;
  flex: none;
  text-align: center;
}
.entry-content .hog-ad-card--inline .widget { width: 100%; }
.entry-content .hog-ad-card--inline :is(img, iframe, video, ins.adsbygoogle) { max-width: 100%; }
@media (max-width: 680px) {
  .entry-content .hog-ad-card--inline { margin: 22px 0; padding: 0; }
}
@media (max-width: 680px) {
  .hog-ad-card { padding: 16px; min-height: 245px; border-radius: 11px; }
}

.post-card { min-width: 0; background: #fff; border: 1px solid var(--hog-border); border-radius: 13px; overflow: hidden; box-shadow: var(--hog-shadow); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(26, 44, 66, .09); }
.card-image-link { background: #eaf0f7; width: 100%; display: block; aspect-ratio: 1.6 / 1; overflow: hidden; }
.card-image-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card-image-link:hover img { transform: scale(1.04); }
.card-image-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: linear-gradient(125deg, #e9eff8, #f1f6fa); color: #7a8ca6; font-weight: 750; font-size: 15px; }
.placeholder-mark { font-size: 38px; color: var(--hog-accent); }
.card-body { padding: 22px 22px 23px; display: flex; align-items: flex-start; flex-direction: column; flex: 1; }
.card-categories { color: var(--hog-accent); font-size: 12px; font-weight: 700; letter-spacing: .15px; line-height: 1.5; }
.card-categories a { color: var(--hog-accent); }
.card-categories a:hover { text-decoration: underline; }
.card-title { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.35; font-weight: 750; letter-spacing: -.45px; margin: 11px 0 11px; }
.card-title a { color: var(--hog-heading); }
.card-title a:hover { color: var(--hog-accent); text-decoration: none; }
.card-meta, .entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--hog-muted); }
.card-meta { font-size: 12px; line-height: 1.5; }
.card-meta a, .entry-meta a { color: inherit; }
.meta-dot { color: #a3adba; }
.card-excerpt { color: #566276; margin: 15px 0 17px; line-height: 1.7; font-size: 14px; }
.read-more { display: inline-flex; align-items: center; gap: 8px; color: var(--hog-accent); margin-top: auto; font-size: 13px; font-weight: 800; }
.read-more span { transition: transform .15s ease; }
.read-more:hover { text-decoration: none; }
.read-more:hover span { transform: translateX(3px); }
.archive-heading { margin-bottom: 26px; max-width: 850px; }
.archive-heading .archive-description { color: var(--hog-muted); }
.archive-heading .archive-description p { margin: 0; }
/* After the Above Category ad, place the H1 immediately over the article grid without a redundant empty heading margin. */
.archive-heading h1:last-child { margin-bottom: 0; }
.pagination { margin: 46px 0 0; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; }
.pagination .page-numbers { color: var(--hog-heading); border: 1px solid var(--hog-border); background: #fff; border-radius: 8px; padding: 9px 13px; min-width: 39px; text-align: center; font-size: 14px; font-weight: 700; }
.pagination .page-numbers:hover { color: var(--hog-accent); text-decoration: none; border-color: #c1d6e9; }
.pagination .page-numbers.current { background: var(--hog-accent); color: white; border-color: var(--hog-accent); }
.empty-state { background: #fff; padding: 60px 30px; border: 1px solid var(--hog-border); border-radius: 14px; text-align: center; }
.empty-state h2 { margin: 0 0 10px; }
.empty-state p { color: var(--hog-muted); }

/* ARTICLE & SIDEBAR */
.singular-layout { display: grid; grid-template-columns: minmax(0, 810px) minmax(250px, 338px); gap: clamp(30px, 4vw, 62px); align-items: start; padding-top: 31px; padding-bottom: 85px; }
/* An empty Primary Widget Area should not reserve a sidebar column.
   Keep the wider article centered and readable on large displays. */
.single-post .singular-layout.no-article-sidebar {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1050px;
}
.article-column { min-width: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: 12px; color: #8290a1; margin-bottom: 28px; }
.breadcrumbs a { color: #63758a; }
.breadcrumbs-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(60%, 360px); }
.main-article { min-width: 0; }
.entry-header { margin-bottom: 27px; }
.entry-header .card-categories { font-size: 12px; letter-spacing: .65px; text-transform: uppercase; margin-bottom: 10px; }
.entry-title { margin: 0 0 15px; font-size: clamp(32px, 3.1vw, 44px); font-weight: 800; letter-spacing: -1.3px; line-height: 1.17; }
.entry-meta { font-size: 13px; }
.entry-featured-image { margin: 0 0 34px; }
.entry-featured-image img { width: 100%; max-height: 520px; aspect-ratio: 1.62 / 1; object-fit: cover; border-radius: 12px; }
.entry-featured-image figcaption { font-size: 13px; color: var(--hog-muted); text-align: center; padding-top: 9px; }
.entry-content { color: #27364b; font-size: 18px; line-height: 1.86; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p { margin: 0 0 1.35em; }
/* v2.9.28 — Compact, readable single-post body rhythm; do not alter nested content blocks. */
.single-post .main-article .entry-content { line-height: 1.70; }
.single-post .main-article .entry-content > p { margin: 0 0 1.05em; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-weight: 800; line-height: 1.35; letter-spacing: -.6px; margin: 1.7em 0 .64em; }
.entry-content h2 { font-size: clamp(25px, 2.2vw, 31px); }
.entry-content h3 { font-size: 23px; }
.entry-content h4 { font-size: 20px; }

/* v2.9.9 — Consolidated, approved single-post typography and header spacing.
   One set of scoped rules replaces duplicate Additional CSS heading blocks.
   The v2.9.8 mobile-specific header rules below remain intentionally more
   specific, so the approved compact mobile metadata layout is preserved. */
.single-post .singular-layout .breadcrumbs { margin-bottom: 16px; }
.single-post .main-article .entry-header { margin-bottom: 16px; }
.single-post .main-article .entry-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: #273b52;
  margin: 0 0 12px;
}
.single-post .main-article .entry-content > :is(h2, h3, h4, h5, h6) {
  color: #273b52;
  letter-spacing: -.01em;
}
.single-post .main-article .entry-content > h2 {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.3;
  margin: .90em 0 .40em;
}
.single-post .main-article .entry-content > h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  margin: .90em 0 .35em;
}
.single-post .main-article .entry-content > h4 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  margin: .85em 0 .35em;
}
.single-post .main-article .entry-content > h5 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  margin: 1.2em 0 .5em;
}
.single-post .main-article .entry-content > h6 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  margin: 1.2em 0 .5em;
}
/* v2.9.14: Restore intentional Bold formatting in article headings.
   Regular H2–H6 remain 600; selected <strong>/<b> text must appear bolder.
   Applies only to article headings, not shortcode cards or other components. */
.single-post .main-article .entry-content > :is(h2, h3, h4, h5, h6) :is(strong, b) {
  font-weight: 700;
}
@media (max-width: 1024px) {
  .single-post .main-article .entry-title { font-size: 32px; }
}
@media (max-width: 680px) {
  .single-post .main-article .entry-content > h2 {
    font-size: 24px;
    margin-top: .82em;
    margin-bottom: .38em;
  }
  .single-post .main-article .entry-content > h3 {
    font-size: 20px;
    margin-top: .80em;
    margin-bottom: .32em;
  }
  .single-post .main-article .entry-content > h4 {
    font-size: 18px;
    margin-top: .80em;
    margin-bottom: .32em;
  }
}
.entry-content ul, .entry-content ol { margin: 0 0 1.4em; padding-left: 1.45em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--hog-accent); }
.entry-content strong { color: var(--hog-heading); }
.entry-content img { max-width: 100%; height: auto; }
.entry-content figure { margin: 1.6em 0; max-width: 100%; }
.entry-content figcaption { font-size: 13px; line-height: 1.5; color: var(--hog-muted); text-align: center; margin-top: 8px; }
.entry-content blockquote { margin: 1.6em 0; background: #eff6fd; border-left: 4px solid var(--hog-accent); padding: 24px 26px; font-style: normal; border-radius: 0 9px 9px 0; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre { overflow: auto; padding: 19px; border-radius: 8px; background: #13253c; color: #fff; font-size: 14px; }
.entry-content code { overflow-wrap: anywhere; }
.entry-content iframe, .entry-content embed { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--hog-border); padding: 9px 12px; }
.entry-content th { background: #eef4fb; }
.entry-content .wp-block-button__link, .entry-content .wp-element-button { background: var(--hog-accent); color: #fff; border-radius: 8px; padding: 11px 23px; font-size: 16px; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: .35em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .35em 0 1em 1.4em; }
.entry-content::after { display: block; content: ''; clear: both; }
.page-links { font-size: 15px; margin: 20px 0; }
.article-footer { margin-top: 43px; }
.post-tags { margin-bottom: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.post-tags span { font-weight: 750; margin-right: 4px; }
.post-tags a { display: inline-block; border-radius: 5px; padding: 4px 9px; background: #edf2f8; font-weight: 650; }
.share-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 23px 0; border-top: 1px solid var(--hog-border); border-bottom: 1px solid var(--hog-border); }
.share-heading { color: var(--hog-heading); font-size: 14px; font-weight: 750; margin-right: auto; }
.share-link { border: 1px solid #dae3ed; background: #fff; border-radius: 7px; color: #42546b; font-size: 12px; font-weight: 700; padding: 8px 12px; line-height: 1.3; }
.share-link:hover { text-decoration: none; color: var(--hog-accent); border-color: #b5cde5; }
.copy-feedback { font-size: 12px; color: #367a44; }
.post-navigation { margin: 28px 0 49px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.post-navigation .nav-links > div { min-width: 0; }
.post-navigation a { display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--hog-border); border-radius: 10px; background: #fff; gap: 7px; height: 100%; }
.post-navigation a:hover { text-decoration: none; border-color: #c6d8e9; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.post-navigation .nav-label { font-size: 11px; font-weight: 800; color: var(--hog-accent); letter-spacing: .2px; }
.post-navigation .nav-title { font-size: 14px; color: var(--hog-heading); font-weight: 750; line-height: 1.4; }
.related-posts { margin-top: 15px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.7px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.related-card { background: #fff; border: 1px solid var(--hog-border); border-radius: 10px; overflow: hidden; min-width: 0; }
.related-image-link { display: block; aspect-ratio: 1.55/1; overflow: hidden; background: #edf2f7; }
.related-image-link img { width: 100%; height: 100%; object-fit: cover; }
.related-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--hog-accent); font-size: 30px; }
.related-body { padding: 14px; }
.related-body .card-categories { font-size: 12px; }
.related-body h3 { font-size: 14px; line-height: 1.42; margin: 7px 0 2px; letter-spacing: -.15px; }
.related-body h3 a { color: var(--hog-heading); }
.related-body h3 a:hover { color: var(--hog-accent); text-decoration: none; }

/* SIDEBAR WIDGETS */
.sidebar { min-width: 0; padding-top: 10px; }
.widget { background: #fff; border: 1px solid var(--hog-border); border-radius: 12px; padding: 24px; margin: 0 0 20px; box-shadow: var(--hog-shadow); }
.widget-title, .widget h2 { font-size: 18px; line-height: 1.28; color: var(--hog-heading); margin: 0 0 19px; font-weight: 800; letter-spacing: -.4px; }
.widget-title:after { display: block; content: ''; width: 32px; height: 3px; background: var(--hog-accent); margin-top: 11px; border-radius: 4px; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li { margin: 0; }
.widget_categories li { border-bottom: 1px solid var(--hog-border); padding: 11px 0; color: #8794a4; display: flex; justify-content: space-between; align-items: start; gap: 12px; font-size: 12px; }
.widget_categories li:first-child { padding-top: 1px; }
.widget_categories li:last-child { border: none; padding-bottom: 0; }
.widget_categories li a { color: #34445a; font-size: 14px; font-weight: 650; line-height: 1.5; }
.widget_categories li a:hover { color: var(--hog-accent); text-decoration: none; }
.widget_categories .children { padding-left: 11px; margin-top: 9px; }
.recent-articles-list li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hog-border); }
.recent-articles-list li:first-child { padding-top: 0; }
.recent-articles-list li:last-child { padding-bottom: 0; border: 0; }
.recent-thumb { width: 82px; height: 65px; border-radius: 7px; overflow: hidden; background: #edf2f8; flex-shrink: 0; }
.recent-thumb img { height: 100%; width: 100%; object-fit: cover; }
.recent-placeholder { display: grid; place-items: center; height: 100%; color: var(--hog-accent); }
.recent-copy { min-width: 0; }
.recent-copy a { color: var(--hog-heading); display: block; font-weight: 750; line-height: 1.38; font-size: 13px; }
.recent-copy a:hover { color: var(--hog-accent); text-decoration: none; }
.recent-copy time { display: block; font-size: 11px; color: var(--hog-muted); margin-top: 5px; }
.widget a { overflow-wrap: anywhere; }
.widget_recent_entries li, .widget_pages li, .widget_archive li, .widget_nav_menu li, .widget_meta li { padding: 8px 0; border-bottom: 1px solid var(--hog-border); font-size: 14px; }
.widget_recent_entries a, .widget_pages a, .widget_archive a, .widget_nav_menu a, .widget_meta a { color: var(--hog-heading); font-weight: 650; }
.widget .wp-block-latest-posts li { margin: 10px 0; }
.widget .wp-block-categories-list li { padding: 8px 0; border-bottom: 1px solid var(--hog-border); }
.widget .wp-block-categories-list a, .widget .wp-block-latest-posts a { color: var(--hog-heading); font-size: 14px; font-weight: 650; }
.widget .wp-block-search__label { font-size: 14px; }
.widget input[type="search"], .widget select { max-width: 100%; padding: 9px; border: 1px solid var(--hog-border); border-radius: 7px; }
.widget p { margin: 0 0 1em; }

/* CONTENT PAGES, 404, SEARCH, COMMENTS */
.page-layout { max-width: 1050px; padding-block: 57px 90px; }
.page-layout .entry-title { margin-bottom: 25px; }
.not-found { min-height: 40vh; padding-block: 65px; }
.not-found h1 { font-size: 37px; }
.comments-area { border-top: 1px solid var(--hog-border); margin-top: 45px; padding-top: 25px; font-size: 15px; }
.comments-area h2 { font-size: 25px; }
.comment-list { margin: 0; padding: 0; list-style: none; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--hog-border); }
.comment-list .children { list-style: none; padding-left: 25px; }
.comment-meta { color: var(--hog-muted); font-size: 13px; }
.comment-content p { margin: 12px 0; }
.comment-respond input:not([type="checkbox"]):not([type="submit"]), .comment-respond textarea { max-width: 100%; width: 100%; border: 1px solid #d5dce5; border-radius: 7px; padding: 11px; }
.comment-respond label { display: block; margin-bottom: 4px; font-weight: 650; }
.comment-respond .form-submit .submit { background: var(--hog-accent); color: #fff; border: none; border-radius: 7px; padding: 11px 18px; font-weight: 750; width: auto; }

/* FOOTER — curated navigation, separate legal links, compact at any niche size. */
.site-footer { background: #132338; color: #c4cfde; margin-top: 6px; }
.footer-top { padding-block: 28px 24px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(190px, 1fr); gap: clamp(30px, 7vw, 110px); }
.footer-about { max-width: 490px; min-width: 0; }
.footer-brand { display: inline-block; color: #fff; font-size: 20px; font-weight: 700; letter-spacing: -.4px; line-height: 1.3; }
.footer-brand:hover { color: #fff; }
.footer-about p { font-size: 14px; line-height: 1.55; margin: 8px 0 0; color: #c4cfde; }
.footer-navigation-wrapper { min-width: 0; }
.footer-navigation-wrapper h2 { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 10px; line-height: 1.35; }
.footer-menu, .footer-legal-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu { display: grid; justify-items: start; gap: 6px; }
.footer-menu li, .footer-legal-menu li { margin: 0; padding: 0; }
.footer-menu a { color: #d5dfec; font-size: 14px; line-height: 1.5; }
.footer-menu a:hover, .footer-legal-menu a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.14); padding-block: 12px 14px; }
.footer-legal-menu { display: flex; flex-wrap: wrap; gap: 9px 20px; }
.footer-legal-menu a { color: #d5dfec; font-size: 13px; line-height: 1.5; }
.footer-bottom { background: #0e1c2d; }
.footer-bottom-inner { padding-block: 12px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: #bfcddd; font-size: 12px; }
.footer-bottom a { color: #d5e2f0; }

/* RESPONSIVE */
@media (max-width: 1100px) {
  .header-inner { min-height: 75px; }
  .menu-toggle { display: inline-flex; }
  .primary-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 32px 22px; background: #fff; box-shadow: 0 18px 28px rgba(13, 31, 52, .12); max-height: min(70vh, 540px); overflow-y: auto; border-top: 1px solid var(--hog-border); }
  .site-header.is-menu-open .primary-navigation { display: block; }
  .primary-navigation ul { display: block; }
  .primary-navigation li { border-bottom: 1px solid var(--hog-border); }
  .primary-navigation li:last-child { border-bottom: 0; }
  .primary-navigation a { font-size: 15px; display: block; white-space: normal; padding: 12px 2px; }
  .primary-navigation .sub-menu { display: block; position: static; box-shadow: none; border: none; border-radius: 0; padding: 0 0 5px 16px; min-width: 0; }
  .primary-navigation .sub-menu li { border: 0; }
  .primary-navigation .sub-menu a { font-size: 14px; padding: 9px 2px; }
  .header-actions { margin-left: auto; }
  .singular-layout { gap: 26px; grid-template-columns: minmax(0, 1fr) 288px; }
  .widget { padding: 19px; }
}
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .singular-layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; gap: 42px; }
  .sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 0; }
  .sidebar > .widget { margin: 0; }
  .sidebar > .widget_search { grid-column: 1 / -1; }
  .entry-title { font-size: 39px; }
}
@media (max-width: 680px) {
  .site-container { width: min(calc(100% - 36px), var(--hog-container)); }
  .header-inner { min-height: 70px; gap: 12px; }
  .site-branding .custom-logo { max-height: 49px; max-width: 176px; }
  .brand-text-link { font-size: 18px; letter-spacing: -.5px; }
  .brand-symbol svg { width: 27px; height: 27px; }
  .header-actions { gap: 7px; }
  .header-icon-button { width: 39px; height: 39px; border-radius: 9px; }
  .primary-navigation { padding-inline: 18px; }
  .header-search-inner { display: block; padding: 15px 0 19px; }
  .header-search-inner p { margin-bottom: 10px; }
  .posts-area { padding-top: 32px; padding-bottom: 30px; }
  .blog-intro { display: block; margin-bottom: 20px; }
  .blog-intro h1, .archive-heading h1 { font-size: 33px; }
  body.category .archive-heading h1 { font-size: 24px; }
  .intro-search { width: 100%; margin-top: 22px; }
  .category-shortcuts { padding-bottom: 12px; margin-bottom: 12px; }
  .posts-grid { grid-template-columns: 1fr; gap: 19px; }
  .post-card { border-radius: 11px; }
  .card-body { padding: 20px; }
  .card-title { font-size: 20px; }
  .card-excerpt { font-size: 14px; }
  .singular-layout { padding-top: 21px; padding-bottom: 55px; }
  .breadcrumbs { margin-bottom: 22px; gap: 7px; }
  .entry-title { font-size: clamp(30px, 7.5vw, 39px); letter-spacing: -.8px; }
  .entry-content { font-size: 17px; line-height: 1.8; }
  .entry-content h2 { font-size: 25px; }
  .entry-content h3 { font-size: 21px; }
  .entry-featured-image { margin-bottom: 27px; }
  .related-grid { grid-template-columns: 1fr; gap: 13px; }
  .related-card { display: flex; min-height: 105px; }
  .related-image-link { width: 36%; flex: 0 0 36%; aspect-ratio: auto; }
  .related-body { display: flex; flex-direction: column; justify-content: center; }
  .sidebar { grid-template-columns: 1fr; gap: 17px; }
  .sidebar > .widget_search { grid-column: auto; }
  .share-heading { flex: 1 0 100%; margin-bottom: 1px; }
  .footer-top { grid-template-columns: 1fr; gap: 20px; padding-block: 24px 18px; }
  .footer-legal { padding-block: 12px; }
  .footer-legal-menu { gap: 9px 15px; }
  .footer-bottom-inner { display: block; }
  .footer-bottom-inner a { display: block; width: max-content; margin-top: 6px; }
}
@media (max-width: 420px) {
  .brand-text-link { font-size: 16px; }
  .brand-symbol svg { width: 25px; height: 25px; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .post-navigation .nav-next { grid-column: auto; }
  .breadcrumbs-current { max-width: 46%; }
  .entry-title { font-size: 30px; }
}
/* v2.9.9 — Keep the approved compact footer spacing on 681–768px
   tablets as well as phones; original Customizer rule applied through 768px. */
@media (min-width: 681px) and (max-width: 768px) {
  .posts-area { padding-bottom: 30px; }
  .footer-top { padding-top: 24px; padding-bottom: 18px; gap: 20px; }
  .footer-legal { padding-top: 12px; padding-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* WIDGET POSITIONS (v2.1) — ad/content slots from the reference blog.
   Existing typography, header, card styling, and sidebar layout remain unchanged. */
.hog-widget-slot { min-width: 0; width: 100%; }
/* Match the original site container width for wide ads, not the viewport. */
.site-container.hog-widget-slot { width: min(calc(100% - 64px), var(--hog-container)); }
.hog-widget-slot .widget { min-width: 0; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.hog-widget-slot .widget + .widget { margin-top: 18px; }
.hog-widget-slot .widget-title { font-size: 15px; line-height: 1.4; margin: 0 0 10px; }
.hog-widget-slot img, .hog-widget-slot svg, .hog-widget-slot video,
.hog-widget-slot iframe, .sidebar .widget img, .sidebar .widget iframe { max-width: 100%; }
.hog-widget-slot img, .sidebar .widget img { height: auto; }
.hog-widget-slot figure, .hog-widget-slot .wp-block-image { max-width: 100%; margin: 0; }
.hog-widget-slot :is(.wp-block-image img, .wp-block-image a, .widget_media_image a, .widget_media_image img) { display: block; max-width: 100%; }
.hog-widget-slot .wp-block-html, .hog-widget-slot .textwidget, .hog-widget-slot .wp-block-group { max-width: 100%; }
.hog-widget-slot p:last-child { margin-bottom: 0; }
.hog-widget-slot--header { margin-top: 22px; }
.hog-widget-slot--above-category { margin: 8px 0 26px; }
.hog-widget-slot--category-footer { margin-top: 36px; }
.hog-widget-slot--above-post { margin-bottom: 25px; }
.hog-widget-slot--below-post { margin: 28px 0 33px; }
.hog-widget-slot--post-footer { margin-top: 10px; margin-bottom: 42px; }
.hog-widget-slot--footer-note { border-top: 1px solid rgba(255,255,255,.14); padding-block: 23px 28px; color: #c4cfde; font-size: 12px; line-height: 1.8; text-align: center; }
.hog-widget-slot--footer-note .widget-title { color: #fff; }
.hog-widget-slot--footer-note a { color: #d9e7f8; text-decoration: underline; }
.hog-widget-slot--footer-note :where(p, .textwidget) { margin-block: 0; }
/* A responsive creative may shrink, but fixed-size third-party ad iframes are
   ultimately controlled by their provider. Use responsive ads for phones. */
@media (max-width: 680px) {
  .site-container.hog-widget-slot { width: min(calc(100% - 36px), var(--hog-container)); }
  .hog-widget-slot--header { margin-top: 14px; }
  .hog-widget-slot--above-category { margin: 7px 0 21px; }
  .hog-widget-slot--category-footer { margin-top: 26px; }
  .hog-widget-slot--above-post { margin-bottom: 19px; }
  .hog-widget-slot--below-post { margin-block: 22px 27px; }
  .hog-widget-slot--post-footer { margin-block: 0 28px; }
  .hog-widget-slot--footer-note { padding-block: 18px 23px; }
}


/* v2.5: Compact, reader-first table of contents.
 * Intentionally quieter than the prominent Next Step / Recommended Resource box.
 * Still uses native details/summary for accessible show/hide without scripts. */
.entry-content .hog-toc {
  margin: 24px 0 29px;
  padding: 0;
  background: #f9fbfd;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  box-shadow: none;
  overflow: hidden;
  color: var(--hog-text);
  font-size: 14px;
  line-height: 1.6;
}
.hog-toc__summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  color: var(--hog-heading);
  list-style: none;
}
.hog-toc__summary::-webkit-details-marker { display: none; }
.hog-toc__summary::marker { content: ''; }
.hog-toc__summary:hover { background: #f1f6fb; }
.hog-toc__summary:focus-visible { outline: 3px solid var(--hog-accent); outline-offset: -3px; }
.hog-toc__title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 750;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -.1px;
}
/* A small list marker distinguishes navigation from an editorial callout. */
.hog-toc__title::before {
  content: '';
  display: inline-block;
  width: 17px;
  height: 16px;
  flex: 0 0 17px;
  background: linear-gradient(currentColor, currentColor) 6px 3px / 11px 1.6px no-repeat,
              linear-gradient(currentColor, currentColor) 6px 8px / 11px 1.6px no-repeat,
              linear-gradient(currentColor, currentColor) 6px 13px / 11px 1.6px no-repeat,
              radial-gradient(circle, currentColor 1.1px, transparent 1.5px) 0 0 / 4px 5px repeat-y;
  opacity: .67;
}
.hog-toc__toggle {
  color: var(--hog-accent);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.hog-toc__when-open { display: none; }
.hog-toc__details[open] .hog-toc__when-open { display: inline; }
.hog-toc__details[open] .hog-toc__when-closed { display: none; }
.entry-content .hog-toc__list {
  margin: 0 18px 17px;
  padding: 13px 0 0 25px;
  list-style: decimal;
  border-top: 1px solid var(--hog-border);
}
.entry-content .hog-toc__item { margin: 0 0 8px; padding: 0; }
.entry-content .hog-toc__sublist {
  list-style-type: lower-alpha;
  padding-left: 21px;
  margin: 7px 0 0;
}
.entry-content .hog-toc__item--h3 { margin: 0 0 6px; }
.hog-toc__item a { color: var(--hog-accent); text-decoration: none; font-weight: 600; }
.hog-toc__item a:hover, .hog-toc__item a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: 24px; }
@media (max-width: 680px) {
  .hog-toc__summary { padding: 13px 15px; }
  .entry-content .hog-toc__list { margin: 0 15px 14px; padding-left: 22px; }
  .hog-toc__title { font-size: 15px; }
  .entry-content .hog-toc { margin: 21px 0 25px; }
}

/* Optional editor-note presentation (apply class hog-editor-note to a paragraph
 * in the WordPress editor). Existing articles are not reformatted silently. */
.entry-content .hog-editor-note {
  margin: 18px 0 20px;
  padding: 12px 15px;
  background: #f1f5f9;
  border-left: 2px solid #c2d1e1;
  border-radius: 0 7px 7px 0;
  color: #4f5d70;
  font-size: 14px;
  line-height: 1.65;
  font-style: normal;
}
.entry-content .hog-editor-note :is(em, i) { font-style: normal; }
.entry-content .hog-editor-note:last-child { margin-bottom: 0; }


/* v2.9 — Trustworthy, individually configurable article metadata.
   Inline SVGs require no icon fonts. Dates and categories wrap safely on phones. */
.entry-meta, .card-meta { column-gap: 15px; row-gap: 9px; align-items: center; }
.hog-meta-item { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; line-height: 1.5; }
.hog-meta-item a { overflow-wrap: anywhere; }
.hog-meta-icon { width: 15px; height: 15px; flex: 0 0 15px; display: inline-block; color: #748397; }
.card-meta .hog-meta-icon { width: 13px; height: 13px; flex-basis: 13px; }
.entry-meta .hog-meta-item { color: #627185; }
.entry-meta .hog-meta-item time { white-space: nowrap; }
.card-meta .hog-meta-item { gap: 3px; }
@media (max-width: 680px) {
  .entry-meta { column-gap: 12px; row-gap: 8px; font-size: 12px; }
  .entry-meta .hog-meta-item { white-space: normal; }
  .card-meta { column-gap: 10px; row-gap: 5px; }
}


.entry-meta .hog-meta-label--updated-short { display: none; }

/* v2.9.8 — Mobile article header, without changing desktop articles or post cards.
   Specificity is intentional: it also wins over earlier non-!important
   heading/paragraph tweaks in Appearance > Customize > Additional CSS. */
@media (max-width: 680px) {
  /* The article H1 remains a real H1; only its mobile appearance changes. */
  .single-post .singular-layout .main-article .entry-title {
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.015em;
    color: #273b52;
    margin: 0 0 12px;
  }
  .single-post .singular-layout .main-article .entry-header { margin-bottom: 20px; }
  .single-post .singular-layout .breadcrumbs {
    margin-bottom: 12px;
    gap: 7px;
    font-size: 12px;
    line-height: 1.5;
    flex-wrap: nowrap;
  }
  .single-post .breadcrumbs-current,
  .single-post .breadcrumbs-current-separator { display: none; }
  .single-post .breadcrumbs-category {
    min-width: 0;
    max-width: calc(100% - 55px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* Reduce byline wrapping, but keep author, publication and updates visible. */
  .single-post .main-article .entry-meta {
    gap: 6px 12px;
    font-size: 12px;
    line-height: 1.5;
  }
  .single-post .entry-meta .hog-meta--updated { flex-basis: 100%; }
  .single-post .entry-meta .hog-meta--category,
  .single-post .entry-meta .hog-meta--reading { display: none; }
  .single-post.hog-mobile-meta-category .entry-meta .hog-meta--category,
  .single-post.hog-mobile-meta-reading .entry-meta .hog-meta--reading { display: inline-flex; }
  .single-post .entry-meta .hog-meta-label--published,
  .single-post .entry-meta .hog-meta-label--updated-long { display: none; }
  .single-post .entry-meta .hog-meta-label--updated-short { display: inline; }
  .single-post .singular-layout .main-article .entry-content { font-size: 17px; line-height: 1.63; }
  .single-post .singular-layout .main-article .entry-content > p {
    margin-top: 0;
    margin-bottom: 1em;
    line-height: 1.63;
  }
}

/* v2.9.11 — Compact space above an active Post Footer Wide widget.
   Preserve normal page breathing room when the wide widget is empty.
   On particularly long sidebars, the sidebar itself still determines the
   two-column row's height: the ad never overlaps sidebar content. */
.single-post .singular-layout.has-post-footer-wide {
  padding-bottom: 24px;
}
.single-post .hog-widget-slot--post-footer {
  margin-top: 0;
}
@media (max-width: 680px) {
  .single-post .singular-layout.has-post-footer-wide {
    padding-bottom: 16px;
  }
}
