/*
Theme Name: HVAC Optimizer Tech
Theme URI: https://hvacoptimizer.net
Description: Child theme for HVAC Optimizer remake. Cool blue/slate technical publication face. Parent is SmartMag.
Author: Steven
Template: smart-mag
Version: 0.3.6
License: GNU General Public License v2 or later
Text Domain: hvac-optimizer-tech
*/

/* -------------------------------------------------------------------------
   Design tokens — cool technical HVAC (NO beige / Tree Fluent paper)
   ------------------------------------------------------------------------- */
:root {
  --ho-bg: #f4f7fb;
  --ho-surface: #ffffff;
  --ho-ink: #0f172a;
  --ho-muted: #475569;
  --ho-line: #d7e0ea;
  --ho-slate: #1e293b;
  --ho-slate-deep: #0b1220;
  --ho-accent: #009dff;
  --ho-accent-dark: #0077c2;
  --ho-accent-soft: #e6f5ff;
  --ho-warn: #b45309;
  --ho-warn-bg: #fff7ed;
  --ho-ok: #0f766e;
  --ho-heading: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ho-body: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ho-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ho-radius: 14px;
  --ho-radius-sm: 10px;
  --ho-wrap: 1120px;
  --ho-measure: 68ch;
  --c-main: #009dff;
  --c-main-rgb: 0, 157, 255;
  --text-size: 18px;
}

html {
  background: var(--ho-bg);
  font-size: 18px;
}

body,
body.main,
.main-wrap,
.main-body,
#main-wrap,
.site-wrapper,
.main-wrap > .wrap,
.content-wrap,
.s-light,
.s-head-light {
  background: var(--ho-bg) !important;
  color: var(--ho-ink);
  font-family: var(--ho-body);
  font-size: 18px;
  line-height: 1.65;
}

body {
  min-width: 0;
}

h1, h2, h3, h4, h5, h6,
.heading,
.post-title,
.entry-title,
.main-heading,
.the-post-header .post-title,
.block-head,
.block-head-e .heading,
.block-head-b .heading {
  font-family: var(--ho-heading);
  color: var(--ho-ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-transform: none;
}

a {
  color: var(--ho-accent-dark);
}

a:hover {
  color: var(--ho-accent);
}

/* Header / chrome */
.smart-head,
.s-head,
.main-head,
.header-row,
.top-bar,
.off-canvas-head {
  background: var(--ho-slate-deep) !important;
  color: #e2e8f0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.smart-head a,
.s-head a,
.navigation a,
.menu > li > a,
.off-canvas-menu a {
  color: #e2e8f0 !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.navigation .menu > li > a:hover,
.menu > li:hover > a,
.navigation .menu > li.current-menu-item > a,
.navigation .menu > li.current_page_item > a {
  color: #ffffff !important;
}

.navigation .menu .sub-menu,
.navigation .menu .sub-menu a {
  background: var(--ho-slate) !important;
  color: #e2e8f0 !important;
}

.logo-image,
.logo-link img,
.ho-logo-img {
  max-height: 70px;
  width: auto;
}

.logo img,
.logo-image,
.logo-link img,
.ho-logo-img,
.main-logo img,
.ts-logo img {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none;
}


/* -------------------------------------------------------------------------
   Homepage
   ------------------------------------------------------------------------- */
.ho-home,
.ho-hub,
.ho-author,
.ho-page {
  max-width: var(--ho-wrap);
  margin: 0 auto;
  padding: 0 20px 64px;
}

.ho-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0 40px;
}

.ho-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ho-accent-dark);
  background: var(--ho-accent-soft);
  border: 1px solid #bfe6ff;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 14px;
}

.ho-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 14px;
  color: var(--ho-slate-deep);
}

.ho-lede {
  font-size: 1.125rem;
  color: var(--ho-muted);
  max-width: 42rem;
  margin: 0 0 22px;
}

.ho-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ho-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none !important;
  border: 1px solid transparent;
}

.ho-btn-primary {
  background: var(--ho-accent);
  color: #fff !important;
}

.ho-btn-primary:hover {
  background: var(--ho-accent-dark);
  color: #fff !important;
}

.ho-btn-ghost {
  background: var(--ho-surface);
  color: var(--ho-slate) !important;
  border-color: var(--ho-line);
}

.ho-hero-panel {
  background: linear-gradient(160deg, #0b1220 0%, #1e293b 55%, #0b3a5c 100%);
  color: #e2e8f0;
  border-radius: 20px;
  padding: 28px;
  min-height: 240px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.ho-hero-panel h2 {
  color: #fff;
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.ho-hero-panel ul,
.ho-hero-aside ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: #e2e8f0;
  font-size: 16px;
}

.ho-hero-panel li,
.ho-hero-aside li {
  position: relative;
  padding-left: 1.25rem;
  color: #e2e8f0;
  list-style: none;
}

.ho-hero-panel li::before,
.ho-hero-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.ho-hero-panel li + li,
.ho-hero-aside li + li {
  margin-top: 8px;
}

.ho-section {
  padding: 36px 0 8px;
}

.ho-section-title {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.ho-section-lede {
  color: var(--ho-muted);
  margin: 0 0 22px;
  max-width: 46rem;
}

.ho-hub-grid,
.ho-pick-grid,
.ho-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ho-card {
  background: var(--ho-surface);
  border: 1px solid var(--ho-line);
  border-radius: var(--ho-radius);
  padding: 20px;
  text-decoration: none !important;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
}

.ho-card:hover {
  border-color: #9ed8ff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.ho-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ho-accent-soft);
  color: var(--ho-accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.ho-card-title {
  font-size: 1.1rem;
  margin: 0;
  color: var(--ho-slate-deep);
}

.ho-card-blurb {
  margin: 0;
  color: var(--ho-muted);
  font-size: 16px;
  line-height: 1.5;
}

.ho-pick-grid .ho-card {
  min-height: 120px;
}

.ho-tools {
  background: var(--ho-surface);
  border: 1px dashed #9ed8ff;
  border-radius: var(--ho-radius);
  padding: 24px;
}

.ho-tools h3 {
  margin: 0 0 8px;
}

.ho-placeholder {
  background: repeating-linear-gradient(
    -45deg,
    #f8fbff,
    #f8fbff 10px,
    #eef6ff 10px,
    #eef6ff 20px
  );
  border: 1px dashed #8ecfff;
  border-radius: var(--ho-radius-sm);
  padding: 18px;
  color: var(--ho-muted);
  font-size: 15px;
}

.ho-meet {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: center;
  background: var(--ho-surface);
  border: 1px solid var(--ho-line);
  border-radius: var(--ho-radius);
  padding: 24px;
}

.ho-meet img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #cfeeff;
}

.ho-meet h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.ho-meet p {
  margin: 0 0 12px;
  color: var(--ho-muted);
}

.ho-site-footer {
  margin-top: 48px;
  padding: 36px 20px 28px;
  background: var(--ho-slate-deep);
  color: #cbd5e1;
}

.ho-site-footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.ho-site-footer a:hover {
  color: #7dd3fc;
}

.ho-footer-inner {
  max-width: var(--ho-wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.ho-footer-inner h3 {
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.ho-footer-inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ho-footer-inner li + li {
  margin-top: 8px;
}

.ho-footer-brand p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #94a3b8;
}

.ho-footer-bottom {
  max-width: var(--ho-wrap);
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 14px;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
}

/* Hide default theme footer on our owned pages if both present; still style it */
.main-footer,
.footer-lower {
  background: var(--ho-slate-deep) !important;
  color: #cbd5e1 !important;
}

.main-footer a {
  color: #e2e8f0 !important;
}

/* -------------------------------------------------------------------------
   Hub
   ------------------------------------------------------------------------- */
.ho-hub-intro {
  padding: 36px 0 8px;
  max-width: 48rem;
}

.ho-hub-intro h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0 0 14px;
}

.ho-hub-intro p {
  color: var(--ho-muted);
  font-size: 1.05rem;
}

.ho-callout {
  background: var(--ho-warn-bg);
  border-left: 4px solid var(--ho-warn);
  border-radius: 0 var(--ho-radius-sm) var(--ho-radius-sm) 0;
  padding: 14px 16px;
  color: #7c2d12;
  margin: 18px 0;
  font-size: 16px;
}

.ho-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ho-note-card {
  background: var(--ho-surface);
  border: 1px solid var(--ho-line);
  border-radius: var(--ho-radius-sm);
  padding: 16px;
}

.ho-note-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.ho-note-card p {
  margin: 0;
  color: var(--ho-muted);
  font-size: 15px;
}

/* -------------------------------------------------------------------------
   Single article (glass-equivalent readability layer)
   ------------------------------------------------------------------------- */
body.single .the-post,
body.single .post-content,
body.single .entry-content,
body.single .post-content-wrap {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ho-ink);
}

body.single .the-post-header .post-title,
body.single .entry-title,
body.single h1.post-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  max-width: 20em;
}

body.single .post-meta,
body.single .meta-item,
body.single .post-meta a {
  font-size: 15px;
}

body.single .post-content p,
body.single .entry-content p {
  max-width: var(--ho-measure);
  margin-bottom: 1.05em;
}

body.single .post-content h2,
body.single .entry-content h2 {
  margin-top: 1.6em;
  font-size: 1.45rem;
}

.ho-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 18px;
  font-size: 15px;
  color: var(--ho-muted);
}

.ho-byline a {
  font-weight: 700;
  color: var(--ho-accent-dark);
  text-decoration: none;
}

.ho-byline img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* -------------------------------------------------------------------------
   Author
   ------------------------------------------------------------------------- */
.ho-author-hero {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: start;
  padding: 40px 0 20px;
}

.ho-author-hero img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #cfeeff;
}

.ho-author-hero h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
}

.ho-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.ho-topic {
  background: var(--ho-accent-soft);
  color: var(--ho-accent-dark);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

/* -------------------------------------------------------------------------
   Trust pages
   ------------------------------------------------------------------------- */
.ho-page-prose {
  max-width: 46rem;
  padding: 36px 0;
}

.ho-page-prose h1 {
  font-size: 2.2rem;
  margin: 0 0 16px;
}

.ho-page-prose p,
.ho-page-prose li {
  font-size: 18px;
  color: var(--ho-ink);
}

.ho-email {
  font-weight: 700;
  color: var(--ho-accent-dark);
}

/* WPForms polish */
.wpforms-container input,
.wpforms-container textarea {
  font-size: 16px !important;
  border-radius: 10px !important;
}

.wpforms-submit {
  background: var(--ho-accent) !important;
  border-color: var(--ho-accent) !important;
  font-weight: 700 !important;
}

/* Sidebar / widgets: cooler cards */
.sidebar .widget,
.main-sidebar .widget {
  background: var(--ho-surface);
  border: 1px solid var(--ho-line);
  border-radius: var(--ho-radius-sm);
  padding: 16px;
}

/* Hide Pinterest pin chrome if it injects awkward UI on prototype pages */
.ho-home .PinterestButton,
.ho-hub .PinterestButton {
  display: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .ho-hero,
  .ho-meet,
  .ho-author-hero,
  .ho-footer-inner {
    grid-template-columns: 1fr;
  }
  .ho-hub-grid,
  .ho-pick-grid,
  .ho-card-grid,
  .ho-notes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  html, body {
    font-size: 17px;
  }
  .ho-hub-grid,
  .ho-pick-grid,
  .ho-card-grid,
  .ho-notes {
    grid-template-columns: 1fr;
  }
  .ho-hero {
    padding-top: 28px;
  }
}


/* CP2 polish */
body.ho-front .main-footer,
body.ho-hub-page .main-footer,
body.ho-author-page .main-footer { display: none !important; }
.cf.service.s-pinterest,
a[title*="Pinterest" i],
.PinterestButton,
.avpb-pin-button,
.s-pinterest { display: none !important; }


/* ===== Rollout 0.3.0 — media cards, tools, quieter singles ===== */
.ho-card-has-media { padding: 0; overflow: hidden; }
.ho-card-media { display:block; aspect-ratio: 16/10; overflow:hidden; background:#0b1220; }
.ho-card-media img { width:100%; height:100%; object-fit:cover; display:block; }
.ho-card-has-media .ho-card-title,
.ho-card-has-media .ho-card-blurb { padding-left: 1.1rem; padding-right: 1.1rem; }
.ho-card-has-media .ho-card-title { margin-top: 0.85rem; }
.ho-card-has-media .ho-card-blurb { padding-bottom: 1.1rem; }

.ho-hero-panel { display:flex; flex-direction:column; gap:1rem; }
.ho-hero-img { width:100%; border-radius: 12px; object-fit:cover; max-height: 220px; }

.ho-hub-hero-fig { margin: 1rem 0 1.25rem; border-radius: 14px; overflow:hidden; }
.ho-hub-hero-fig img { width:100%; max-height: 320px; object-fit:cover; display:block; }

.ho-tools-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
@media (max-width: 800px) { .ho-tools-grid { grid-template-columns: 1fr; } }

.ho-news-band {
  display:grid; grid-template-columns: 1.2fr 1fr; gap: 1.25rem; align-items:center;
  background: var(--ho-surface); border:1px solid var(--ho-line); border-radius: var(--ho-radius); padding: 1.25rem 1.4rem;
}
@media (max-width: 800px) { .ho-news-band { grid-template-columns: 1fr; } }
.ho-grow-slot { margin:0; }

.ho-tool-page .ho-tool-wrap { max-width: 820px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.ho-tool-card {
  background: var(--ho-surface); border:1px solid var(--ho-line); border-radius: var(--ho-radius);
  padding: 1.25rem 1.35rem; margin: 1rem 0 1.5rem;
}
.ho-tool-grid { display:grid; gap: 0.85rem; margin: 1rem 0; }
.ho-tool-grid label { display:flex; flex-direction:column; gap:0.35rem; font-weight:600; color:var(--ho-ink); font-size:0.95rem; }
.ho-tool-grid select, .ho-tool-grid input[type="number"] {
  font: inherit; padding: 0.55rem 0.7rem; border-radius: 10px; border:1px solid var(--ho-line); background:#fff;
}
.ho-check { flex-direction: row !important; align-items: flex-start; gap: 0.55rem !important; font-weight:500 !important; }
.ho-tool-result { background: var(--ho-accent-soft); border-radius: 12px; padding: 0.9rem 1rem; margin-top: 0.75rem; }
.ho-tool-list { margin:0; padding-left: 1.1rem; }
.ho-tool-list li { margin: 0.4rem 0; }
.ho-tool-note { color: var(--ho-muted); font-size: 0.95rem; }
.ho-checklist { list-style:none; padding:0; margin: 1rem 0; }
.ho-checklist li { padding: 0.55rem 0; border-bottom: 1px solid var(--ho-line); }
.ho-checklist label { display:flex; gap:0.6rem; align-items:flex-start; cursor:pointer; }
.ho-tool-progress { font-weight:600; color: var(--ho-accent-dark); margin:0; }

/* Singles: readable prose, quieter chrome */
body.ho-single-post .ho-prose,
.ho-single-article .ho-prose,
.ho-article .post-content {
  font-size: 18px !important;
  line-height: 1.7;
  max-width: var(--ho-measure);
}
@media (max-width: 600px) {
  body.ho-single-post .ho-prose,
  .ho-article .post-content { font-size: 17px !important; }
}
.ho-single-header { margin-bottom: 1.25rem; }
.ho-featured { margin: 1rem 0 1.25rem; border-radius: 14px; overflow:hidden; }
.ho-featured-img { width:100%; height:auto; display:block; }
.ho-single-footer { margin-top: 2rem; padding-top: 1rem; border-top:1px solid var(--ho-line); color:var(--ho-muted); }
.ho-meta-sep { opacity:0.5; padding: 0 0.25rem; }
.ho-side-card {
  background: var(--ho-surface); border:1px solid var(--ho-line); border-radius: 12px;
  padding: 1rem 1.1rem; margin-bottom: 1rem;
}
.ho-side-card h3 { margin:0 0 0.5rem; font-size:1rem; }
.ho-side-card ul { margin:0; padding-left: 1.1rem; }
.ho-side-card li { margin: 0.35rem 0; }

/* Hide magazine junk / pin / follow placeholders on HVAC singles */
body.ho-single-post .post-share-follow,
body.ho-single-post .follow-buttons,
body.ho-single-post .google-news,
body.ho-single-post .flipboard,
.always-visible-pin-button,
.avpb-button,
a[href*="pinterest.com/"],
.s-post-share .pinterest { display:none !important; }

/* Reduce clutter widgets that look like publisher chrome */
body.ho-single-post .sidebar .widget_block,
body.ho-single-post .sidebar .widget_media_image { max-width: 100%; }

/* ===== 0.3.3 — sticky header contrast (navy bar, readable nav) ===== */
.smart-head.smart-head-sticky,
.smart-head.is-stuck,
.smart-head.nav-sticky,
.smart-head.sticky,
.smart-head.fixed,
.s-head.smart-head-sticky,
.s-head.is-stuck,
.s-head.nav-sticky,
.s-head.sticky,
.main-head.smart-head-sticky,
.main-head.is-stuck,
.main-head.nav-sticky,
.main-head.sticky,
.smart-head-sticky,
.is-stuck.smart-head,
.is-stuck.s-head,
.is-stuck.main-head,
.nav-sticky,
.header-row.smart-head-sticky,
.header-row.is-stuck,
body .smart-head.smart-head-sticky,
body .s-head.smart-head-sticky,
.smart-head[class*="sticky"],
.s-head[class*="sticky"] {
  background: var(--ho-slate-deep) !important;
  background-color: var(--ho-slate-deep) !important;
  color: #e2e8f0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}

.smart-head.smart-head-sticky a,
.smart-head.is-stuck a,
.smart-head.nav-sticky a,
.s-head.smart-head-sticky a,
.s-head.is-stuck a,
.main-head.smart-head-sticky a,
.main-head.is-stuck a,
.smart-head-sticky .navigation a,
.smart-head-sticky .menu > li > a,
.is-stuck .navigation a,
.is-stuck .menu > li > a,
.nav-sticky .navigation a,
.nav-sticky .menu > li > a,
.smart-head[class*="sticky"] a,
.s-head[class*="sticky"] a {
  color: #e2e8f0 !important;
}

.smart-head.smart-head-sticky .navigation .menu > li > a:hover,
.smart-head.is-stuck .navigation .menu > li > a:hover,
.smart-head-sticky .menu > li:hover > a,
.is-stuck .menu > li:hover > a,
.smart-head.smart-head-sticky .navigation .menu > li.current-menu-item > a,
.smart-head.is-stuck .navigation .menu > li.current-menu-item > a {
  color: #ffffff !important;
}

/* Search / icons stay light on navy sticky */
.smart-head.smart-head-sticky .search-icon,
.smart-head.is-stuck .search-icon,
.smart-head-sticky .search-overlay .tsi,
.smart-head-sticky .actions a,
.smart-head-sticky .search-action,
.is-stuck .search-icon,
.is-stuck .search-action,
.is-stuck .actions a,
.smart-head[class*="sticky"] .tsi,
.s-head[class*="sticky"] .tsi {
  color: #e2e8f0 !important;
  fill: #e2e8f0 !important;
}

/* Grow embed slot — no dashed placeholder when live */
.ho-grow-slot:not(.ho-placeholder) {
  background: transparent;
  border: none;
  padding: 0;
  min-height: 48px;
}

.ho-tool-before, .ho-tool-after { margin: 0.75rem 0 1rem; color: var(--ho-muted); font-size: 0.98rem; }
.ho-tool-before p, .ho-tool-after p { margin: 0 0 0.55rem; max-width: 48rem; }
.ho-tool-before .ho-tool-list { margin: 0.35rem 0 0.75rem; }
.ho-tool-after .ho-callout { margin-top: 0.75rem; }

/* ===== 0.3.3 — bigger logo (beat SmartMag --head-h calc) ===== */
.smart-head,
.s-head,
.main-head {
  --head-h: 88px;
}
.smart-head .logo-image,
.smart-head .logo-link img,
.smart-head .ho-logo-img,
.smart-head .logo img,
.smart-head .main-logo img,
.s-head .logo-image,
.s-head .ho-logo-img,
.main-head .logo-image,
.main-head .ho-logo-img,
.logo-image,
.logo-link img,
.ho-logo-img {
  max-height: 70px !important;
  height: auto !important;
  width: auto !important;
}

/* Sticky / fixed / stuck — force navy even if parent flips to light scheme */
.smart-head.s-head-sticky,
.smart-head.has-sticky,
.smart-head.is-sticky,
body.admin-bar .smart-head.smart-head-sticky,
.smart-head-sticky.s-head-light,
.smart-head-sticky.s-light,
.is-stuck.s-head-light,
.smart-head.smart-head-sticky.s-head-light,
.s-head.s-head-sticky,
.main-head.s-head-sticky,
.site-header.is-sticky,
.navigation-sticky,
.sticky-nav,
.sticky-header,
.fixed-header,
.head-sticky,
.smart-head[style*="position: fixed"],
.smart-head[style*="position:fixed"],
.s-head[style*="position: fixed"] {
  background: var(--ho-slate-deep) !important;
  background-color: var(--ho-slate-deep) !important;
  color: #e2e8f0 !important;
}
.smart-head.s-head-sticky a,
.smart-head.has-sticky a,
.smart-head.is-sticky a,
.s-head.s-head-sticky a,
.sticky-header a,
.fixed-header a,
.head-sticky a {
  color: #e2e8f0 !important;
}
/* If sticky uses white bg anyway, force dark text as fallback */
.smart-head.smart-head-sticky.ho-force-light-sticky,
.ho-white-sticky {
  background: #ffffff !important;
  color: #0f172a !important;
}

/* Beat SmartMag .s-light .smart-head-sticky white bar */
.s-light .smart-head-sticky:not(.s-dark),
html.s-light .smart-head-sticky,
html.site-s-light .smart-head-sticky,
.smart-head-sticky {
  background: var(--ho-slate-deep) !important;
  background-color: var(--ho-slate-deep) !important;
  color: #e2e8f0 !important;
}
.s-light .smart-head-sticky:not(.s-dark) a,
.smart-head-sticky a {
  color: #e2e8f0 !important;
}



/* ===== 0.3.5 — affiliate + tool redesign ===== */
.ho-affiliate-note {
  margin: 0.35rem 0 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ho-muted);
  max-width: 65ch;
}
.ho-affiliate-box {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.05rem;
  background: var(--ho-accent-soft);
  border: 1px solid var(--ho-line);
  border-radius: var(--ho-radius-sm);
}
.ho-affiliate-note--box { margin: 0; color: var(--ho-ink); }
.ho-footer-affiliate {
  max-width: var(--ho-wrap);
  margin: 0 auto;
  padding: 0 1.25rem 1.1rem;
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.5;
}
.ho-footer-affiliate strong { display:block; color:#f8fafc; margin-bottom:0.25rem; font-size:0.85rem; letter-spacing:0.02em; text-transform:uppercase; }
.ho-footer-affiliate p { margin:0; max-width: 70ch; color:#cbd5e1; }

.ho-tool-page .ho-tool-wrap { max-width: 920px; }
.ho-tool-hero-fig { margin: 1rem 0 1.15rem; border-radius: 14px; overflow:hidden; border:1px solid var(--ho-line); }
.ho-tool-hero-img { display:block; width:100%; height:auto; aspect-ratio: 21 / 9; object-fit: cover; background: var(--ho-slate); }
.ho-how-row {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0.9rem;
  margin: 0 0 1.35rem;
}
@media (max-width: 800px) { .ho-how-row { grid-template-columns: 1fr; } }
.ho-how-card {
  background: var(--ho-surface);
  border: 1px solid var(--ho-line);
  border-radius: var(--ho-radius-sm);
  padding: 1rem 1.05rem;
}
.ho-how-card h2 { margin: 0.35rem 0 0.4rem; font-size: 1.05rem; }
.ho-how-card p { margin:0; color: var(--ho-muted); font-size: 0.95rem; }
.ho-how-icon {
  display:inline-flex; align-items:center; justify-content:center;
  width:2rem; height:2rem; border-radius:999px;
  background: var(--ho-accent); color:#fff; font-weight:700; font-size:0.95rem;
}
.ho-step-cards {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0.75rem;
  margin: 1rem 0 1.15rem;
}
@media (max-width: 800px) { .ho-step-cards { grid-template-columns: 1fr; } }
.ho-step-card {
  display:flex; gap:0.65rem; align-items:flex-start;
  background: #f8fbff;
  border: 1px solid var(--ho-line);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}
.ho-step-card p { margin:0; color: var(--ho-ink); font-size: 0.95rem; }
.ho-step-num {
  flex:0 0 auto;
  display:inline-flex; align-items:center; justify-content:center;
  width:1.7rem; height:1.7rem; border-radius:8px;
  background: var(--ho-slate); color:#fff; font-weight:700; font-size:0.85rem;
}
.ho-tool-before, .ho-tool-after { color: var(--ho-ink); font-size: 1.02rem; }
.ho-tool-before p, .ho-tool-after p { max-width: 52rem; }

/* Tools index */
.ho-tools-index { max-width: var(--ho-wrap); margin: 0 auto; padding: 0 20px 64px; }
.ho-tools-intro p, .ho-tools-outro p { max-width: 42rem; font-size: 1.05rem; line-height: 1.65; color: var(--ho-ink, #0f172a); }
.ho-tools-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1rem; }
@media (max-width: 900px) { .ho-tools-index-grid { grid-template-columns: 1fr; } }
.ho-tool-index-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--ho-line, #e2e8f0); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.ho-tool-index-card .ho-card-img { width: 100%; height: 160px; object-fit: cover; display: block; }
.ho-tool-index-card .ho-card-title { margin: .9rem 1rem .35rem; font-size: 1.15rem; }
.ho-tool-index-card .ho-card-blurb { margin: 0 1rem 1rem; color: var(--ho-muted, #64748b); flex: 1; }
.ho-tool-index-card .ho-card-cta { margin: 0 1rem 1.1rem; color: var(--ho-accent, #009dff); font-weight: 600; }

