/* =========================================================
   The Hemp Doctor — Blog Archive (THDRetail-Child)
   Loaded only on the blog posts page and category archives (see inc/hd-blog.php).

   Every selector is scoped to .hd-blog so it beats Kadence's
   element styles (h1, a, button, input…) without !important.
   Change fonts/colors in the variables below.
   ========================================================= */

/* Brand tokens — sampled from the approved mockup and identical to the
   --thd-* variables the other custom pages (contact, deals, about) use. */
.hd-blog {
  --hd-green-900: #113D3C;   /* deep: promo block, bottom CTA */
  --hd-green-700: #025960;   /* teal: headings, icons, links, active states */
  --hd-sage-200:  #BFD6D0;   /* mint: category tags, count badges */
  --hd-sage-100:  #F6F9EB;   /* cream: featured card background */
  --hd-gold:      #FC9E01;   /* orange: buttons, card top borders */
  --hd-sun:       #FEC55A;   /* "Featured" tag (sampled from the mockup) */
  --hd-gold-dark: #D98700;   /* hover orange (same as the site's link hover) */
  --hd-peach:     #FDF4E5;   /* newsletter box */
  --hd-ink:       #113D3C;
  --hd-text:      #5F7170;
  --hd-muted:     #708281;
  --hd-line:      #D4E0DE;
  --hd-line-soft: #F2E8D8;   /* faint warm divider between list rows */
  --hd-surface:   #FFFFFF;
  --hd-radius:    8px;
  --hd-max-width: 1200px;

  /* Same font stacks as the rest of the site. DM Serif Display only ships a
     regular weight, so headings use font-weight 400 on purpose. */
  --hd-font-display: "DM Serif Display", "Playfair Display", Georgia, "Times New Roman", serif;
  --hd-font-script:  "Corinthia", "Snell Roundhand", "Apple Chancery", cursive;
  --hd-font-body:    "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;

  font-family: var(--hd-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--hd-text);
  -webkit-font-smoothing: antialiased;
}
/* The :where() guards keep these resets out of the Klaviyo form without adding specificity. */
.hd-blog *:where(:not(.hd-kl, .hd-kl *)), .hd-blog *:where(:not(.hd-kl, .hd-kl *))::before, .hd-blog *:where(:not(.hd-kl, .hd-kl *))::after { box-sizing: border-box; }
.hd-blog .site-container { max-width: var(--hd-max-width); }
.hd-blog a:where(:not(.hd-kl *)) { color: inherit; text-decoration: none; transition: color .15s; }
.hd-blog a:where(:not(.hd-kl *)):hover, .hd-blog a:where(:not(.hd-kl *)):focus { color: inherit; text-decoration: none; }
.hd-blog a:focus-visible, .hd-blog button:focus-visible, .hd-blog input:focus-visible { outline: 2px solid var(--hd-gold); outline-offset: 2px; }
.hd-blog svg:where(:not(.hd-kl *)) { max-width: 100%; }
.hd-blog h1:where(:not(.hd-kl *)), .hd-blog h2:where(:not(.hd-kl *)), .hd-blog h3:where(:not(.hd-kl *)) { margin: 0; letter-spacing: normal; text-transform: none; }
.hd-blog p:where(:not(.hd-kl *)) { margin: 0; }
.hd-blog ul:where(:not(.hd-kl *)) { list-style: none; margin: 0; padding: 0; }

/* ---------- Title area ---------- */
.hd-blog .hd-hero { text-align: center; max-width: 720px; margin: 0 auto; }
.hd-blog .hd-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: var(--hd-sage-200); color: var(--hd-green-900); font-family: var(--hd-font-body); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; padding: 6px 12px; border-radius: 999px; }
.hd-blog .hd-eyebrow svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hd-blog .hd-script { font-family: var(--hd-font-script); font-weight: 700; font-size: 44px; line-height: 1.1; color: var(--hd-green-700); margin: 14px 0 0; }
.hd-blog .hd-script--gold { color: var(--hd-gold); }
.hd-blog .hd-title { font-family: var(--hd-font-display); font-weight: 400; font-size: 44px; line-height: 1.15; color: var(--hd-green-700); margin: 2px 0 18px; }
.hd-blog .hd-lede { font-size: 14.5px; line-height: 1.7; color: var(--hd-text); margin: 0 auto; max-width: 640px; }

/* ---------- Category cards ---------- */
.hd-blog .hd-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.hd-blog .hd-cat { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; min-height: 120px; padding: 22px 16px; background: var(--hd-surface); border: 1px solid var(--hd-line); border-top: 2px solid var(--hd-gold); border-radius: 6px; transition: box-shadow .2s, transform .2s; }
.hd-blog .hd-cat:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(17, 61, 60, .10); }
.hd-blog .hd-cat.is-current { border-color: var(--hd-green-700); border-top-color: var(--hd-gold); background: var(--hd-sage-100); }
.hd-blog .hd-cat svg { width: 20px; height: 20px; stroke: var(--hd-green-700); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.hd-blog .hd-cat__name { font-family: var(--hd-font-display); font-weight: 400; font-size: 15px; line-height: 1.25; color: var(--hd-green-700); }
.hd-blog .hd-cat__count { font-size: 11.5px; line-height: 1.4; color: var(--hd-muted); }

/* ---------- Two-column layout ---------- */
.hd-blog .hd-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--hd-line); }
.hd-blog .hd-posts { min-width: 0; }
.hd-blog .hd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hd-blog .hd-h2 { font-family: var(--hd-font-display); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--hd-green-700); }
.hd-blog .hd-pagecount { font-size: 12px; color: var(--hd-muted); white-space: nowrap; }
.hd-blog .hd-empty { padding: 24px 0; }
.hd-blog .hd-empty a { color: var(--hd-gold); font-weight: 700; }

/* ---------- Large card (featured post / featured product) ---------- */
.hd-blog .hd-feature { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); background: var(--hd-sage-100); border-radius: var(--hd-radius); overflow: hidden; margin: 0 0 22px; }
.hd-blog .hd-feature--product { margin: 0; }
.hd-blog .hd-feature__media { min-height: 300px; }
.hd-blog .hd-feature__body { padding: 32px 32px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.hd-blog .hd-feature__title { font-family: var(--hd-font-display); font-weight: 400; font-size: 23px; line-height: 1.3; color: var(--hd-green-700); }
.hd-blog .hd-feature__title a, .hd-blog .hd-card__title a { color: inherit; }
.hd-blog .hd-feature__title a:hover, .hd-blog .hd-card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hd-blog .hd-feature__excerpt { font-size: 13.5px; line-height: 1.65; }
.hd-blog .hd-feature__price { font-family: var(--hd-font-display); font-size: 20px; line-height: 1.2; color: var(--hd-green-700); }
.hd-blog .hd-feature__price del { color: var(--hd-muted); font-size: 15px; margin-right: 6px; }
.hd-blog .hd-feature__price ins { text-decoration: none; }
.hd-blog .hd-readmore { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--hd-gold); }
.hd-blog .hd-readmore svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.hd-blog .hd-readmore:hover { color: var(--hd-gold-dark); text-decoration: underline; }

/* Tags */
.hd-blog .hd-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hd-blog .hd-tag { display: inline-block; background: var(--hd-sage-200); color: var(--hd-green-900); font-family: var(--hd-font-body); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; padding: 4px 10px; border-radius: 4px; }
.hd-blog .hd-tag--gold { background: var(--hd-sun); color: var(--hd-green-900); }
.hd-blog a.hd-tag:hover { background: var(--hd-green-700); color: #fff; }

/* Byline */
.hd-blog .hd-byline { display: flex; align-items: center; gap: 8px; font-size: 11.5px; line-height: 1.3; }
.hd-blog .hd-avatar { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--hd-green-900); color: #fff; font-family: var(--hd-font-body); font-size: 9px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.hd-blog .hd-byline__name { display: block; font-weight: 600; color: var(--hd-ink); }
.hd-blog .hd-byline__meta { display: block; font-size: 11px; color: var(--hd-muted); }
.hd-blog .hd-byline--inline { font-size: 11px; color: var(--hd-muted); }
.hd-blog .hd-byline--inline .hd-avatar { width: 22px; height: 22px; font-size: 8px; }

/* ---------- Post grid ---------- */
.hd-blog .hd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.hd-blog .hd-card { background: var(--hd-surface); border: 1px solid var(--hd-line); border-radius: var(--hd-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.hd-blog .hd-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(17, 61, 60, .10); }
.hd-blog .hd-card__media { aspect-ratio: 16 / 10; }
.hd-blog .hd-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 0; }
.hd-blog .hd-card__title { font-family: var(--hd-font-display); font-weight: 400; font-size: 16.5px; line-height: 1.35; color: var(--hd-green-700); }
.hd-blog .hd-card__excerpt { font-size: 12.5px; line-height: 1.6; }
.hd-blog .hd-card .hd-byline { margin-top: auto; padding-top: 6px; }

/* ---------- Images and placeholders ---------- */
.hd-blog .hd-media { position: relative; display: block; overflow: hidden; background: linear-gradient(135deg, #D5E4E0 0%, #F6F9EB 55%, #FDF0DA 100%); }
.hd-blog .hd-media[data-tone="2"] { background: linear-gradient(160deg, #FDF0DA 0%, #F6F9EB 50%, #BFD6D0 100%); }
.hd-blog .hd-media[data-tone="3"] { background: linear-gradient(135deg, #BFD6D0 0%, #E6F0EC 50%, #FDF0DA 100%); }
.hd-blog .hd-media[data-tone="4"] { background: linear-gradient(150deg, #FDF0DA 0%, #F6F9EB 45%, #D5E4E0 100%); }
.hd-blog .hd-media[data-tone="5"] { background: linear-gradient(120deg, #E6F0EC 0%, #BFD6D0 50%, #FDF0DA 100%); }
.hd-blog .hd-media[data-tone="6"] { background: linear-gradient(135deg, #1E5250 0%, #113D3C 100%); }
.hd-blog .hd-media:not(.hd-media--has-img)::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 22% 28%, rgba(255, 255, 255, .55), transparent 42%), radial-gradient(circle at 80% 78%, rgba(252, 158, 1, .16), transparent 40%); }
.hd-blog .hd-media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; margin: 0; border-radius: 0; }
/* Product shots: shown whole on the light teal tint. Multiply blending makes a
   white photo background disappear into the tint, so cut-outs and white-background
   product photos both read as the product sitting on the panel. */
.hd-blog .hd-media--contain { background: #02596030; }
.hd-blog .hd-media--contain img { object-fit: contain; padding: 22px; mix-blend-mode: multiply; }
.hd-blog .hd-media__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--hd-green-700); opacity: .55; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hd-blog .hd-media[data-tone="6"] .hd-media__ph { color: #fff; opacity: .7; }
.hd-blog .hd-media__ph svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pagination (WordPress paginate_links markup) ---------- */
.hd-blog .hd-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 32px 0; }
.hd-blog .hd-pagination .page-numbers { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--hd-line); background: var(--hd-surface); display: inline-flex; align-items: center; justify-content: center; font-family: var(--hd-font-body); font-size: 12px; font-weight: 600; line-height: 1; color: var(--hd-green-700); padding: 0; }
.hd-blog .hd-pagination a.page-numbers:hover { border-color: var(--hd-green-700); color: var(--hd-green-700); }
.hd-blog .hd-pagination .page-numbers.current { background: var(--hd-green-900); border-color: var(--hd-green-900); color: #fff; }
.hd-blog .hd-pagination .page-numbers.dots { border: 0; width: auto; padding: 0 2px; color: var(--hd-muted); background: transparent; }
.hd-blog .hd-pagination .page-numbers.next, .hd-blog .hd-pagination .page-numbers.prev { width: auto; padding: 0 14px; border-radius: 999px; border-color: var(--hd-green-700); gap: 6px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.hd-blog .hd-pagination .page-numbers svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Sidebar ---------- */
.hd-blog .hd-sidebar { display: flex; flex-direction: column; gap: 36px; min-width: 0; }
.hd-blog .hd-widget__title { position: relative; font-family: var(--hd-font-display); font-weight: 400; font-size: 18px; line-height: 1.3; color: var(--hd-green-700); margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--hd-line); }
.hd-blog .hd-widget__title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--hd-gold); }

.hd-blog .hd-search { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--hd-line); border-radius: 999px; padding: 0; background: var(--hd-surface); margin: 0; overflow: hidden; }
.hd-blog .hd-search input[type="search"] { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0 18px; margin: 0; font: inherit; font-size: 13px; color: var(--hd-ink); outline: none; -webkit-appearance: none; appearance: none; }
.hd-blog .hd-search input::placeholder { color: #9CA3AF; }
.hd-blog .hd-search input::-webkit-search-decoration, .hd-blog .hd-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hd-blog .hd-search button { flex: none; width: 46px; height: 44px; min-height: 0; padding: 0; margin: 0; border-radius: 0 999px 999px 0; border: 0; box-shadow: none; background: var(--hd-green-700); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hd-blog .hd-search button:hover { background: var(--hd-green-900); color: #fff; }
.hd-blog .hd-search button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.25; stroke-linecap: round; }

.hd-blog .hd-catlist li { margin: 0; padding: 0; border-bottom: 1px solid var(--hd-line-soft); }
.hd-blog .hd-catlist li:last-child { border-bottom: 0; }
.hd-blog .hd-catlist a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; font-size: 13px; font-weight: 500; color: #3E4E4E; }
.hd-blog .hd-catlist a:hover { color: var(--hd-green-700); }
.hd-blog .hd-count { flex: none; min-width: 34px; height: 20px; padding: 0 9px; border-radius: 999px; background: var(--hd-sage-100); color: var(--hd-green-700); font-size: 11px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }

.hd-blog .hd-promo { background: var(--hd-green-900); border-radius: var(--hd-radius); padding: 16px; color: #fff; }
.hd-blog .hd-promo__media { height: 132px; border-radius: 6px; }
.hd-blog .hd-promo__stars { color: var(--hd-gold); font-size: 12px; letter-spacing: 2px; margin: 14px 0 6px; }
.hd-blog .hd-promo__quote { font-family: var(--hd-font-display); font-weight: 400; font-size: 14.5px; line-height: 1.45; margin: 0 0 14px; color: #fff; }
.hd-blog .hd-promo .hd-btn { display: flex; width: fit-content; margin: 0 auto; }

.hd-blog .hd-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--hd-gold); color: #ffffff; font-family: var(--hd-font-display); font-size: 15px; font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none; padding: 12px 26px; min-height: 0; border-radius: 25px; border: 0; box-shadow: none; cursor: pointer; white-space: nowrap; transition: none; }
.hd-blog .hd-btn:hover, .hd-blog .hd-btn:focus, .hd-blog .hd-btn:active { background: var(--hd-gold); color: #ffffff; text-decoration: none; }
.hd-blog .hd-btn--block { display: flex; width: 100%; }

.hd-blog .hd-newest { display: flex; flex-direction: column; gap: 10px; }
.hd-blog .hd-newest li { margin: 0; padding: 0; }
.hd-blog .hd-newest a { display: flex; gap: 12px; align-items: center; }
.hd-blog .hd-newest a:hover .hd-newest__title { color: var(--hd-green-700); }
.hd-blog .hd-newest__thumb { flex: none; width: 46px; height: 46px; border-radius: 6px; overflow: hidden; background: var(--hd-sage-200); display: flex; align-items: center; justify-content: center; color: var(--hd-green-700); }
.hd-blog .hd-newest__thumb svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.hd-blog .hd-newest__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.hd-blog .hd-newest__title { font-size: 12px; font-weight: 600; line-height: 1.4; color: var(--hd-ink); transition: color .15s; }

.hd-blog .hd-newsletter { background: var(--hd-peach); border-radius: var(--hd-radius); padding: 22px 20px; }
.hd-blog .hd-newsletter > .hd-script { font-size: 36px; margin: 0; }
.hd-blog .hd-newsletter__title { font-family: var(--hd-font-display); font-weight: 400; font-size: 16px; line-height: 1.3; color: var(--hd-green-700); margin: 2px 0 6px; }
.hd-blog .hd-newsletter > p { font-size: 12px; line-height: 1.6; margin: 0 0 14px; }
.hd-blog .hd-newsletter__form { margin: 0; }
.hd-blog .hd-input { display: block; width: 100%; height: 40px; border: 1px solid var(--hd-line); border-radius: 6px; box-shadow: none; padding: 0 12px; margin: 0 0 8px; font: inherit; font-size: 12.5px; line-height: 38px; color: var(--hd-ink); background: var(--hd-surface); }
.hd-blog .hd-input::placeholder { color: #9CA3AF; }
.hd-blog .hd-input:focus { border-color: var(--hd-green-700); outline: none; box-shadow: none; }

.hd-blog .hd-social { display: flex; gap: 10px; }
.hd-blog .hd-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hd-line); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--hd-green-700); }
.hd-blog .hd-social a:hover { background: var(--hd-sage-100); border-color: var(--hd-green-700); color: var(--hd-green-700); }

/* ---------- Klaviyo form inside the newsletter box ----------
   The form is shown exactly as designed in Klaviyo: none of the theme's
   generic rules reach inside .hd-kl (see the :not(.hd-kl *) guards above),
   and when the Klaviyo form carries its own text/background the peach box
   steps aside so the form is the whole block. */
.hd-blog .hd-kl { margin: 0; }
.hd-blog .hd-newsletter--kl-text { background: transparent; padding: 0; border-radius: 0; }

/* ---------- Guard against sideways scroll ----------
   Nothing on these templates should be able to widen the page. */
.hd-blog-archive .wp-site-blocks, .hd-blog-single .wp-site-blocks, .hd-blog-archive #wrapper, .hd-blog-single #wrapper { overflow-x: clip; }
.hd-blog, .hd-blog .hd-main, .hd-blog .hd-posts, .hd-blog .hd-sidebar { max-width: 100%; min-width: 0; }

/* ---------- Sidebar on single posts (sidebar.php) ----------
   Kadence's Customizer sidebar box (white background, 40px 20px 60px padding)
   is switched off here so the sidebar sits flush, like on the archive pages. */
.hd-blog--single { font-size: 15px; }
.hd-blog--single.primary-sidebar.widget-area, .hd-blog--single.primary-sidebar.widget-area .sidebar-inner-wrap { background: transparent; padding: 0; border: 0; box-shadow: none; border-radius: 0; }
.hd-blog--single .sidebar-inner-wrap { position: sticky; top: 24px; }
.hd-blog--single .hd-sidebar { gap: 28px; }

/* ---------- Bottom CTA ---------- */
.hd-blog .hd-cta { margin-top: 48px; background: var(--hd-green-900); border-radius: var(--hd-radius); padding: 40px 44px; display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #fff; }
.hd-blog .hd-cta .hd-script { margin: 0; font-size: 40px; }
.hd-blog .hd-cta__title { font-family: var(--hd-font-display); font-weight: 400; font-size: 26px; line-height: 1.25; margin: 2px 0 10px; color: #fff; }
.hd-blog .hd-cta__lede { font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, .78); max-width: 480px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hd-blog .hd-main { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
  .hd-blog .hd-cats { gap: 14px; }
}
@media (max-width: 900px) {
  .hd-blog .hd-main { grid-template-columns: minmax(0, 1fr); }
  .hd-blog .hd-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hd-blog .hd-title { font-size: 38px; }
}
@media (max-width: 640px) {
  .hd-blog .hd-title { font-size: 32px; }
  .hd-blog .hd-script { font-size: 38px; }
  .hd-blog .hd-cat { min-height: 104px; padding: 18px 12px; }
  .hd-blog .hd-cat__name { font-size: 14px; }
  .hd-blog .hd-main { margin-top: 36px; padding-top: 32px; }
  .hd-blog .hd-feature { grid-template-columns: minmax(0, 1fr); }
  .hd-blog .hd-feature__media { min-height: 0; aspect-ratio: 16 / 10; }
  .hd-blog .hd-feature__body { padding: 22px 20px 24px; }
  .hd-blog .hd-feature__title { font-size: 20px; }
  .hd-blog .hd-grid { grid-template-columns: minmax(0, 1fr); }
  .hd-blog .hd-cta { flex-direction: column; align-items: center; text-align: center; padding: 36px 22px; }
  .hd-blog .hd-cta__lede { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hd-blog .hd-cat, .hd-blog .hd-card, .hd-blog a { transition: none; }
  .hd-blog .hd-cat:hover, .hd-blog .hd-card:hover { transform: none; }
}

/* ---------- Single posts: table of contents ----------
   Inserted before the first heading by inc/hd-blog.php. Lives inside the
   post content, so these rules stand on their own (not under .hd-blog). */
.hd-toc { box-sizing: border-box; background: #F6F9EB; border: 1px solid #D4E0DE; border-top: 3px solid #FC9E01; border-radius: 8px; padding: 18px 22px 20px; margin: 36px 0 32px; font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif; }
.hd-toc *, .hd-toc *::before, .hd-toc *::after { box-sizing: border-box; }
.hd-toc .hd-toc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hd-toc .hd-toc__title { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-family: "DM Serif Display", "Playfair Display", Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 400; line-height: 1.2; letter-spacing: 0; text-transform: none; color: #025960; }
.hd-toc .hd-toc__title svg { width: 18px; height: 18px; flex: none; stroke: #FC9E01; fill: none; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.hd-toc .hd-toc__toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; min-height: 0; background: #FFFFFF; border: 1px solid #D4E0DE; border-radius: 999px; box-shadow: none; font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0; text-transform: none; color: #025960; cursor: pointer; transition: border-color .15s; }
.hd-toc .hd-toc__toggle:hover, .hd-toc .hd-toc__toggle:focus { background: #FFFFFF; color: #025960; border-color: #025960; }
.hd-toc .hd-toc__toggle:focus-visible { outline: 2px solid #FC9E01; outline-offset: 2px; }
.hd-toc .hd-toc__toggle svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.hd-toc.hd-toc--closed .hd-toc__toggle svg { transform: rotate(-90deg); }
.hd-toc ol.hd-toc__list { list-style: none; margin: 14px 0 0; padding: 0; counter-reset: hd-toc; }
.hd-toc.hd-toc--closed ol.hd-toc__list { display: none; }
.hd-toc li.hd-toc__item, .hd-toc li.hd-toc__subitem { list-style: none; margin: 0; padding: 0; }
.hd-toc li.hd-toc__item { counter-increment: hd-toc; }
.hd-toc .hd-toc__link { display: flex; align-items: flex-start; gap: 10px; padding: 7px 10px; margin: 0 -10px; border-radius: 6px; font-size: 14px; font-weight: 500; line-height: 1.45; color: #3B4F4E; text-decoration: none; box-shadow: none; transition: background .15s, color .15s; }
.hd-toc li.hd-toc__item > .hd-toc__link::before { content: counter(hd-toc) "."; flex: none; min-width: 22px; font-weight: 700; color: #025960; }
.hd-toc .hd-toc__link:hover, .hd-toc .hd-toc__link:focus { color: #025960; background: rgba(2, 89, 96, .06); text-decoration: none; }
.hd-toc .hd-toc__link.is-active { color: #025960; font-weight: 600; background: rgba(2, 89, 96, .08); box-shadow: inset 3px 0 0 #FC9E01; }
.hd-toc ol.hd-toc__sub { list-style: none; margin: 2px 0 6px 32px; padding: 0; border-left: 1px solid #D4E0DE; }
.hd-toc ol.hd-toc__sub .hd-toc__link { margin: 0; padding: 5px 10px 5px 14px; font-size: 13px; font-weight: 400; }
.hd-toc ol.hd-toc__sub .hd-toc__link.is-active { font-weight: 600; box-shadow: inset 2px 0 0 #FC9E01; }
.hd-blog-single .entry-content h2[id], .hd-blog-single .entry-content h3[id], .hd-blog-single .entry-content h4[id] { scroll-margin-top: 32px; }
@media (max-width: 640px) {
  .hd-toc { padding: 16px 16px 18px; }
  .hd-toc .hd-toc__title { font-size: 18px; }
  .hd-toc ol.hd-toc__sub { margin-left: 22px; }
}

/* ---------- Single posts: reading progress bar ----------
   Printed by inc/hd-blog.php in the footer. The custom properties are set
   inline from the 'progress' settings and can be overridden in CSS. */
.hd-progress { position: fixed; top: 0; left: 0; right: 0; height: var(--progress-bar-height, 4px); background-color: var(--progress-bar-background-color, transparent); z-index: var(--progress-bar-background-z-index, 1500); pointer-events: none; }
.hd-progress .hd-progress__bar { width: 100%; height: 100%; background: var(--progress-bar-color, #025960); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }
.admin-bar .hd-progress { top: 32px; }
@media (max-width: 782px) { .admin-bar .hd-progress { top: 46px; } }
@media (prefers-reduced-motion: reduce) { .hd-toc .hd-toc__toggle svg, .hd-toc .hd-toc__link, .hd-toc .hd-toc__toggle { transition: none; } }
