/*
Theme Name:     Hawaiian Meditation Child
Theme URI:      https://hawaiian-meditation.it
Description:    Custom child theme for Hawaiian Meditation — meditation blog & WooCommerce ebook shop. Optimised for Core Web Vitals, GDPR, accessibility (WCAG 2.1 AA), and Hawaiian aesthetic.
Author:         W4Y / Gabriele
Author URI:     https://ilwebforyou.it
Template:       astra
Version:        1.0.18.1
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    hawaiian-meditation
Tags:           wellness, blog, ecommerce, meditation, accessibility-ready, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, woocommerce
*/

/* ════════════════════════════════════════════════════════════════
   DESIGN TOKENS
   ════════════════════════════════════════════════════════════════ */
:root {
  /* Palette */
  --hm-ocean:    #0d3d3a;
  --hm-teal:     #1a5c57;
  --hm-jade:     #2e8b7a;
  --hm-sand:     #d4a96a;
  --hm-coral:    #c96a45;
  --hm-cream:    #f4ede0;
  --hm-lava:     #1a1714;
  --hm-lava2:    #110f0d;
  --hm-gold:     #b8893a;
  --hm-white:    #fdfaf5;

  /* Semantic */
  --hm-bg:       var(--hm-lava);
  --hm-fg:       var(--hm-cream);
  --hm-dim:      rgba(244, 237, 224, 0.55);
  --hm-faint:    rgba(244, 237, 224, 0.32);
  --hm-border:   rgba(212, 169, 106, 0.14);
  --hm-borderh:  rgba(212, 169, 106, 0.38);

  /* Typography */
  --hm-font-display: 'Cormorant Garamond', Georgia, serif;
  --hm-font-body:    'Josefin Sans', system-ui, -apple-system, sans-serif;

  /* Spacing scale */
  --hm-r:    1.2rem;
  --hm-rs:   0.65rem;

  /* Header heights (for fixed positioning) */
  --hm-topbar-h:    36px;
  --hm-topbar-h-md: 34px;
  --hm-nav-h:       72px;
  --hm-nav-h-sm:    64px;
}

/* ════════════════════════════════════════════════════════════════
   BASE — minimal reset extending Astra
   ════════════════════════════════════════════════════════════════ */
body {
  font-family: var(--hm-font-body);
  background-color: var(--hm-bg);
  color: var(--hm-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Skip link visibility - accessibility */
.skip-link:focus {
  position: fixed !important;
  top: 16px;
  left: 16px;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--hm-sand);
  color: var(--hm-lava);
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  outline: 3px solid var(--hm-cream);
  outline-offset: 2px;
}

/* Focus styles - WCAG 2.4.7 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--hm-sand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduce motion - WCAG 2.3.3 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* High contrast support */
@media (prefers-contrast: more) {
  :root {
    --hm-dim:    rgba(244, 237, 224, 0.85);
    --hm-faint:  rgba(244, 237, 224, 0.65);
    --hm-border: rgba(212, 169, 106, 0.5);
  }
}

/* Selection color */
::selection {
  background: var(--hm-sand);
  color: var(--hm-lava);
}

/* ════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
  font-family: var(--hm-font-display);
  font-weight: 300;
  line-height: 1.15;
  color: var(--hm-white);
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

em.sand,
em.accent {
  color: var(--hm-sand);
  font-style: italic;
}

p {
  font-weight: 200;
  line-height: 1.85;
  color: var(--hm-dim);
}

a {
  color: var(--hm-sand);
  transition: color 0.25s ease;
}
a:hover {
  color: var(--hm-coral);
}

/* ════════════════════════════════════════════════════════════════
   ASTRA OVERRIDES
   ════════════════════════════════════════════════════════════════ */
.ast-container {
  max-width: 1220px;
}

/* Hide default Astra title where we use custom heroes */
.ast-page-builder-template .entry-header.ast-no-title-container {
  display: none;
}

/* ════════════════════════════════════════════════════════════════
   COMPONENT: Buttons
   ════════════════════════════════════════════════════════════════ */
.hm-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  border-radius: 3rem;
  font-family: var(--hm-font-body);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
  min-height: 44px; /* Touch target WCAG 2.5.5 */
}

.hm-btn--primary {
  background: var(--hm-coral);
  color: var(--hm-white);
  box-shadow: 0 6px 24px rgba(201, 106, 69, 0.28);
}
.hm-btn--primary:hover {
  background: var(--hm-sand);
  color: var(--hm-lava);
  transform: translateY(-2px);
}

.hm-btn--outline {
  background: transparent;
  border: 1px solid var(--hm-sand);
  color: var(--hm-sand);
}
.hm-btn--outline:hover {
  background: var(--hm-sand);
  color: var(--hm-lava);
}

.hm-btn--jade {
  background: var(--hm-jade);
  color: var(--hm-white);
}
.hm-btn--jade:hover {
  background: var(--hm-teal);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════════
   COMPONENT: Cards
   ════════════════════════════════════════════════════════════════ */
.hm-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-r);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s;
}
.hm-card:hover {
  border-color: var(--hm-borderh);
  transform: translateY(-3px);
}

/* ════════════════════════════════════════════════════════════════
   COMPONENT: Sections
   ════════════════════════════════════════════════════════════════ */
.hm-section {
  padding: 6rem 1.25rem;
}
@media (min-width: 768px) {
  .hm-section {
    padding: 6.5rem 4rem;
  }
}

.hm-section--lava   { background: var(--hm-lava); }
.hm-section--ocean  { background: var(--hm-ocean); }
.hm-section--teal   { background: var(--hm-teal); }

/* ════════════════════════════════════════════════════════════════
   ACCESSIBILITY UTILITIES
   ════════════════════════════════════════════════════════════════ */
.screen-reader-text,
.sr-only {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus,
.sr-only:focus {
  background-color: var(--hm-sand);
  border-radius: 4px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.2);
  clip: auto !important;
  clip-path: none;
  color: var(--hm-lava);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ════════════════════════════════════════════════════════════════
   PRINT STYLES
   ════════════════════════════════════════════════════════════════ */
@media print {
  .topbar,
  .nav,
  .footer,
  .lei-fab,
  .lei-panel,
  .hm-no-print {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
    font-size: 12pt;
  }
  a {
    color: black !important;
    text-decoration: underline;
  }
}


/* Build 1.0.2 — internal link and CTA contrast fixes */
.nav-links .nav-cta > a,
.nav-links a.nav-cta,
.nav-links li.nav-cta a {
  background: var(--hm-sand) !important;
  color: var(--hm-lava) !important;
  padding: .72rem 1.55rem !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  letter-spacing: .12em !important;
  text-shadow: none !important;
  box-shadow: 0 14px 32px rgba(212,169,106,.22) !important;
}
.nav-links .nav-cta > a:hover,
.nav-links a.nav-cta:hover,
.nav-links li.nav-cta a:hover {
  background: var(--hm-coral) !important;
  color: var(--hm-white) !important;
}
.hm-legacy-link-fixed { outline: none; }


/* ════════════════════════════════════════════════════════════════
   WOOCOMMERCE EBOOK GRID FIXES
   ════════════════════════════════════════════════════════════════ */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
  margin: 0 !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--hm-border);
  border-radius: var(--hm-r);
  overflow: hidden;
  padding: 0 0 1.25rem !important;
  transition: border-color .25s, transform .25s;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--hm-borderh);
  transform: translateY(-3px);
}
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img.woocommerce-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  margin: 0 0 1.05rem !important;
  background: linear-gradient(135deg,#0d3d3a,#2e8b7a 55%,#1a1714);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--hm-font-display);
  color: var(--hm-white);
  font-size: 1.18rem;
  line-height: 1.25;
  padding: 0 1.2rem !important;
}
.woocommerce ul.products li.product .price {
  display: block;
  color: var(--hm-sand) !important;
  font-family: var(--hm-font-display);
  font-size: 1.25rem;
  margin: .45rem 1.2rem .9rem !important;
}
.woocommerce ul.products li.product .button {
  margin-left: 1.2rem !important;
  background: var(--hm-coral) !important;
  color: var(--hm-white) !important;
  border-radius: 999px !important;
  padding: .7rem 1.25rem !important;
  font-family: var(--hm-font-body);
  font-size: .65rem !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.woocommerce ul.products li.product .button:hover {
  background: var(--hm-sand) !important;
  color: var(--hm-lava) !important;
}
@media (max-width: 1024px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .woocommerce ul.products { grid-template-columns: 1fr; }
}


/* ════════════════════════════════════════════════════════════════
   BUILD 1.0.5 — GLOBAL LAYOUT / FOOTER / LEILANI / PRACTICES FIX
   ════════════════════════════════════════════════════════════════ */
html, body { overflow-x: hidden; }
body { background: var(--hm-lava) !important; color: var(--hm-cream); }
.container,
.hm-container {
  width: min(100% - 2.5rem, 1220px);
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .container,
  .hm-container { width: min(100% - 8rem, 1220px); }
}

/* Footer restored globally. Earlier mockup CSS had footer rules inside individual templates only. */
.footer {
  background: var(--hm-lava2) !important;
  color: var(--hm-cream) !important;
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(212,169,106,.08);
  clear: both;
}
.footer .container { width: min(100% - 2.5rem, 1220px); }
@media (min-width: 768px) { .footer .container { width: min(100% - 8rem, 1220px); } }
.footer-grid {
  display: grid !important;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}
.footer-tagline {
  font-size: .72rem;
  font-weight: 200;
  line-height: 1.9;
  color: var(--hm-faint);
  max-width: 260px;
  margin-top: .65rem;
}
.footer h4 {
  font-size: .58rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--hm-sand);
  margin: 0 0 1.2rem;
  font-family: var(--hm-font-body);
  font-weight: 400;
}
.footer ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.footer li { margin: 0 0 .55rem !important; padding: 0 !important; }
.footer li::marker { content: ''; }
.footer a { color: var(--hm-faint); text-decoration: none; transition: color .25s; }
.footer a:hover { color: var(--hm-sand); }
.footer li a {
  font-size: .72rem;
  font-weight: 200;
  line-height: 1.6;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}
.footer-copy {
  font-size: .6rem;
  color: rgba(244,237,224,.24);
  letter-spacing: .04em;
  margin: 0;
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { font-size: .6rem; color: rgba(244,237,224,.28); }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 768px) {
  .footer { padding: 3.5rem 0 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Leilani restored globally. */
.lei-fab{
  position:fixed;bottom:1.8rem;right:1.8rem;z-index:900;width:58px;height:58px;border-radius:50%;
  background:linear-gradient(135deg,var(--hm-teal),var(--hm-jade));border:2px solid rgba(212,169,106,.5);
  box-shadow:0 8px 32px rgba(0,0,0,.4);cursor:pointer;display:flex;align-items:center;justify-content:center;
  font-size:1.5rem;transition:transform .3s,box-shadow .3s;animation:leiPulse 3s infinite;color:#fff;padding:0;
}
.lei-fab:hover{transform:scale(1.1);box-shadow:0 12px 40px rgba(0,0,0,.5)}
@keyframes leiPulse{0%,100%{box-shadow:0 8px 32px rgba(0,0,0,.4),0 0 0 0 rgba(212,169,106,.4)}50%{box-shadow:0 8px 32px rgba(0,0,0,.4),0 0 0 10px rgba(212,169,106,.07)}}
.lei-badge{position:absolute;top:-4px;right:-4px;width:18px;height:18px;border-radius:50%;background:var(--hm-coral);font-size:.6rem;display:flex;align-items:center;justify-content:center;color:var(--hm-white);font-weight:600}
.lei-panel{position:fixed;bottom:5.3rem;right:1.8rem;z-index:900;width:min(390px,calc(100vw - 2rem));background:#111d1c;border:1px solid rgba(212,169,106,.2);border-radius:1.4rem;box-shadow:0 24px 80px rgba(0,0,0,.6);display:flex;flex-direction:column;overflow:hidden;transform:translateY(16px) scale(.97);opacity:0;pointer-events:none;transition:transform .3s cubic-bezier(.34,1.56,.64,1),opacity .25s;max-height:calc(100vh - 7rem)}
.lei-panel.open{transform:none;opacity:1;pointer-events:all}
.lei-head{padding:1rem 1.3rem;background:linear-gradient(135deg,var(--hm-ocean),var(--hm-teal));display:flex;align-items:center;gap:.85rem;border-bottom:1px solid rgba(212,169,106,.15);flex-shrink:0}
.lei-av{width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--hm-jade),var(--hm-sand));display:flex;align-items:center;justify-content:center;font-size:1.3rem;flex-shrink:0;border:2px solid rgba(212,169,106,.4)}
.lei-av-pulse{width:8px;height:8px;border-radius:50%;background:#4ade80;margin-left:auto;flex-shrink:0;box-shadow:0 0 0 3px rgba(74,222,128,.18)}
.lei-name{font-family:var(--hm-font-display);font-size:1.05rem;color:var(--hm-white);line-height:1.1}
.lei-status{font-size:.58rem;color:rgba(244,237,224,.42);letter-spacing:.08em;margin-top:.1rem}
.lei-close{background:none;border:none;color:rgba(244,237,224,.38);font-size:1.2rem;cursor:pointer;margin-left:auto;padding:.2rem;flex-shrink:0;transition:color .25s}
.lei-close:hover{color:var(--hm-cream)}
.lei-msgs{flex:1;overflow-y:auto;padding:1.1rem;display:flex;flex-direction:column;gap:.8rem;scroll-behavior:smooth;min-height:200px;background:#111d1c}
.msg{max-width:88%;animation:msgIn .3s ease}.msg-lei{align-self:flex-start}.msg-user{align-self:flex-end}
@keyframes msgIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.msg-bubble{padding:.72rem 1rem;border-radius:1rem;font-size:.78rem;font-weight:200;line-height:1.7;word-wrap:break-word}
.msg-lei .msg-bubble{background:rgba(46,139,122,.18);border:1px solid rgba(46,139,122,.25);color:var(--hm-cream);border-bottom-left-radius:.2rem}
.msg-user .msg-bubble{background:rgba(212,169,106,.18);border:1px solid rgba(212,169,106,.25);color:var(--hm-cream);border-bottom-right-radius:.2rem}
.msg-time{font-size:.54rem;color:var(--hm-faint);margin-top:.22rem;padding:0 .2rem}.msg-user .msg-time{text-align:right}
.typing-bubble{display:inline-flex;align-items:center;gap:.35rem;padding:.72rem 1rem;background:rgba(46,139,122,.18);border:1px solid rgba(46,139,122,.25);border-radius:1rem;border-bottom-left-radius:.2rem}
.typing-dot{width:6px;height:6px;border-radius:50%;background:var(--hm-jade);animation:tdot 1.2s infinite}.typing-dot:nth-child(2){animation-delay:.2s}.typing-dot:nth-child(3){animation-delay:.4s}@keyframes tdot{0%,80%,100%{transform:scale(.8);opacity:.4}40%{transform:scale(1.1);opacity:1}}
.lei-qr{display:flex;flex-wrap:wrap;gap:.45rem;padding:.8rem 1.1rem;border-top:1px solid rgba(255,255,255,.06);background:#111d1c;flex-shrink:0}
.qr-btn{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:rgba(244,237,224,.6);padding:.35rem .75rem;border-radius:2rem;font-size:.62rem;cursor:pointer;transition:all .25s;font-family:inherit;white-space:nowrap}
.qr-btn:hover{background:rgba(212,169,106,.14);border-color:rgba(212,169,106,.32);color:var(--hm-sand)}
.lei-input-row{display:flex;gap:.6rem;padding:.85rem 1rem;border-top:1px solid rgba(255,255,255,.06);background:#0d1f1e;flex-shrink:0}
.lei-input{flex:1;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:2rem;padding:.6rem 1rem;font-size:.78rem;color:var(--hm-white);outline:none;transition:border-color .25s;font-family:inherit;min-width:0}
.lei-input:focus{border-color:rgba(212,169,106,.4)}.lei-input::placeholder{color:rgba(244,237,224,.28)}
.lei-send{width:36px;height:36px;border-radius:50%;background:var(--hm-jade);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:.85rem;flex-shrink:0;transition:background .25s,transform .2s;color:#fff;padding:0}.lei-send:hover{background:var(--hm-teal);transform:scale(1.06)}.lei-send:disabled{background:rgba(255,255,255,.1);cursor:not-allowed;transform:none}
@media(max-width:768px){.lei-fab{bottom:1.3rem;right:1.3rem;width:54px;height:54px}.lei-panel{bottom:4.8rem;right:1rem;left:1rem;width:auto}}
@media(max-width:480px){.lei-fab{bottom:1rem;right:1rem;width:50px;height:50px;font-size:1.3rem}.lei-panel{bottom:4.3rem;right:.7rem;left:.7rem;max-height:calc(100vh - 6rem)}.lei-input{font-size:.74rem}.qr-btn{font-size:.58rem}}

/* Practices overview: force a clean responsive card grid and avoid inherited Astra widths/margins. */
.hm-practices-overview .container { width: min(100% - 2.5rem, 1220px); max-width: 1220px; margin: 0 auto; }
@media (min-width: 768px) { .hm-practices-overview .container { width: min(100% - 8rem, 1220px); } }
.hm-practice-card-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.8rem !important;
  align-items: stretch;
  margin: 0;
  padding: 0;
}
.hm-practice-overview-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.hm-practice-overview-card__image,
.hm-prac-fallback { min-height: 0 !important; }
.hm-prac-fallback { aspect-ratio: 4 / 3; }
.hm-practice-overview-card__body { flex: 1; display: flex; flex-direction: column; }
.hm-practice-overview-card__body .hm-btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1024px) { .hm-practice-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .hm-practice-card-grid { grid-template-columns: 1fr !important; } }


/* ════════════════════════════════════════════════════════════════
   BUILD 1.0.6 — BOXED HEADER, READABILITY, LEILANI CLEANUP
   ════════════════════════════════════════════════════════════════ */
:root {
  --hm-boxed-header-width: 1460px;
}

html { font-size: 17px; }
body {
  font-size: 1rem;
  line-height: 1.75;
}

p,
.lead,
.sub,
.entry-content,
.hm-practice-overview-card__body p,
.card-excerpt,
.footer-tagline {
  font-size: 1rem;
  line-height: 1.85;
}
.lead { font-size: 1.05rem !important; }
.label,
.cat-tag,
.hm-prac-label { font-size: .72rem !important; }
.hm-btn,
.btn,
.btn-buy,
.woocommerce ul.products li.product .button {
  font-size: .78rem !important;
}

/* Boxed topbar + nav: the bands no longer span the full viewport visually. */
.topbar,
.nav {
  left: 50% !important;
  right: auto !important;
  width: min(calc(100% - 2rem), var(--hm-boxed-header-width)) !important;
  transform: translateX(-50%) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
}
.topbar {
  border-radius: 0 0 14px 14px;
  padding: .58rem 2rem !important;
}
.topbar-left,
.topbar-right a {
  font-size: .74rem !important;
  color: rgba(244,237,224,.68) !important;
}
.nav,
.nav.scrolled {
  padding: 1.05rem 2rem !important;
  border-radius: 0 0 20px 20px;
}
.nav-brand-text { font-size: 1.22rem !important; }
.nav-links { gap: 2.1rem !important; }
.nav-links a {
  font-size: .78rem !important;
  color: rgba(244,237,224,.72) !important;
}
.nav-links a:hover,
.nav-links a.active { color: var(--hm-sand) !important; }
.nav-links .nav-cta > a,
.nav-links a.nav-cta,
.nav-links li.nav-cta a {
  font-size: .78rem !important;
  color: var(--hm-lava) !important;
}

/* Remove legacy/static Leilani fragments that Claude injected at the bottom of templates. */
.hm-leilani-disabled .lei-fab,
.hm-leilani-disabled .lei-panel,
.hm-leilani-disabled .lei-qr,
.hm-leilani-disabled .lei-input-row,
.hm-leilani-disabled #lei-fab,
.hm-leilani-disabled #lei-panel,
body:not(.page-template-page-templatespage-assistente-php) > .lei-fab,
body:not(.page-template-page-templatespage-assistente-php) > .lei-panel,
body:not(.page-template-page-templatespage-assistente-php) > .lei-qr,
body:not(.page-template-page-templatespage-assistente-php) > .lei-input-row {
  display: none !important;
}

/* Stronger practices grid: avoids old one-column mockup inheritance. */
.hm-practices-overview .container {
  width: min(calc(100% - 4rem), 1220px) !important;
  max-width: 1220px !important;
}
.hm-practices-overview .hm-practice-card-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 2rem !important;
  width: 100% !important;
}
.hm-practice-overview-card__body {
  padding: 1.6rem !important;
}
.hm-prac-title,
.hm-practice-overview-card .hm-prac-title,
.hm-practice-overview-card .hm-prac-title a {
  font-size: clamp(1.8rem, 2.7vw, 2.35rem) !important;
}
.hm-badge {
  font-size: .7rem !important;
}

.footer li a,
.footer-copy,
.footer-legal a {
  font-size: .82rem !important;
}
.footer h4 { font-size: .72rem !important; }

@media (max-width: 1024px) {
  html { font-size: 16.5px; }
  .topbar,
  .nav {
    width: min(calc(100% - 1rem), var(--hm-boxed-header-width)) !important;
  }
  .nav,
  .nav.scrolled { padding: .95rem 1.4rem !important; }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  .topbar { display: none !important; }
  .nav,
  .nav.scrolled {
    top: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    padding: .9rem 1.2rem !important;
  }
  .nav-links a { font-size: .92rem !important; }
  .hm-practices-overview .container { width: min(calc(100% - 2rem), 1220px) !important; }
}
/* END BUILD 1.0.6 */


/* v1.0.8 — wide header background + boxed internal content + controlled readable typography */
:root{--hm-readable-size:.99rem;--hm-container-wide:1280px;}
html{font-size:16px!important;-webkit-text-size-adjust:100%;}
body{font-size:var(--hm-readable-size)!important;line-height:1.78!important;padding-top:104px!important;}
p,li,blockquote,label,input,textarea,select,table,.lead,.sub,.entry-content,.entry-content p{font-size:var(--hm-readable-size)!important;line-height:1.85!important;}
small,.small,.meta,.post-meta-row,.footer-copy,.footer-legal a{font-size:.86rem!important;line-height:1.65!important;}
h1{font-size:clamp(2.35rem,4.6vw,4.25rem)!important;}
h2{font-size:clamp(1.85rem,3.2vw,2.85rem)!important;}
h3{font-size:clamp(1.38rem,2.2vw,1.9rem)!important;}
.label,.cat-tag{font-size:.72rem!important;letter-spacing:.2em!important;}
.hm-btn,.btn,button,.nav-cta{font-size:.82rem!important;line-height:1.2!important;}
.container,.ast-container{max-width:var(--hm-container-wide)!important;}
.topbar,.nav{left:0!important;right:0!important;width:100%!important;max-width:none!important;transform:none!important;border-radius:0!important;box-shadow:0 12px 30px rgba(0,0,0,.12)!important;}
.topbar{top:0!important;padding:.52rem max(1.4rem,calc((100vw - var(--hm-container-wide))/2 + 1.4rem))!important;background:#0a1a18!important;}
.topbar-inner{max-width:var(--hm-container-wide)!important;margin:0 auto!important;}
.nav{top:36px!important;padding:1rem max(1.4rem,calc((100vw - var(--hm-container-wide))/2 + 1.4rem))!important;background:rgba(13,61,58,.94)!important;border-bottom:1px solid rgba(212,169,106,.14)!important;}
.nav.scrolled{padding:.82rem max(1.4rem,calc((100vw - var(--hm-container-wide))/2 + 1.4rem))!important;background:rgba(13,61,58,.98)!important;}
.topbar-left,.topbar-right a{font-size:.74rem!important;color:rgba(244,237,224,.7)!important;}
.nav-brand-text{font-size:1.16rem!important;}
.nav-links{gap:2rem!important;}
.nav-links a{font-size:.78rem!important;color:rgba(244,237,224,.78)!important;letter-spacing:.16em!important;}
.nav-cta,.nav-links .nav-cta > a,.nav-links li.nav-cta a,.nav-links a.nav-cta{padding:.72rem 1.45rem!important;background:var(--hm-sand)!important;color:var(--hm-lava)!important;border-radius:999px!important;font-weight:700!important;text-shadow:none!important;}
.footer-tagline,.footer li a{font-size:.94rem!important;line-height:1.8!important;}
.footer h4{font-size:.76rem!important;}
/* Blog readability reset: moderate titles, readable but not oversized body */
.blog-layout,.hm-blog-layout{gap:2.4rem!important;}
.card-excerpt,.pillar-desc,.hm-card p,.blog-home p,.post-grid p{font-size:.99rem!important;line-height:1.85!important;}
.card-title{font-size:1.28rem!important;line-height:1.32!important;}
.post-title{font-size:clamp(2.05rem,3.5vw,3.05rem)!important;line-height:1.08!important;}
.prose,.prose p,.entry-content p{font-size:.99rem!important;line-height:1.9!important;}
.prose h2{font-size:clamp(1.55rem,2.5vw,2.1rem)!important;}
.prose h3{font-size:clamp(1.24rem,2vw,1.55rem)!important;}
.post-hero-img{aspect-ratio:16/7!important;}
.page-hero{padding:4.4rem max(1.4rem,calc((100vw - var(--hm-container-wide))/2 + 1.4rem)) 4.3rem!important;}
.page-hero h1{font-size:clamp(2.25rem,4.2vw,3.55rem)!important;}
.page-hero .lead{font-size:1rem!important;line-height:1.85!important;color:rgba(244,237,224,.72)!important;}
@media(max-width:1024px){body{padding-top:100px!important}.nav{top:34px!important}.topbar{padding-inline:1.4rem!important}.nav,.nav.scrolled{padding-inline:1.4rem!important}.nav-links{gap:1.35rem!important}.nav-links a{font-size:.74rem!important}}
@media(max-width:768px){body{padding-top:72px!important}.topbar{display:none!important}.nav,.nav.scrolled{top:0!important;padding:1rem 1.2rem!important}.nav-links a{font-size:1rem!important}.page-hero{padding:3rem 1.25rem 3.2rem!important}.footer-tagline,.footer li a{font-size:.96rem!important}}
/* END v1.0.8 */


/* v1.0.11 — footer alignment + hero title fix */
.footer .container,
.footer-grid{
  max-width:1280px;
  margin-left:auto;
  margin-right:auto;
}
.footer nav ul,
.footer nav .menu,
.footer ul,
.footer .menu{
  list-style:none!important;
  margin:0!important;
  padding:0!important;
  padding-left:0!important;
  margin-left:0!important;
}
.footer nav li,
.footer .menu li,
.footer li{
  list-style:none!important;
  margin:0 0 .75rem 0!important;
  padding:0!important;
  text-indent:0!important;
}
.footer nav li::marker,
.footer .menu li::marker,
.footer li::marker{content:""!important;font-size:0!important;}
.footer nav a,
.footer li a{display:inline-flex!important;align-items:center!important;line-height:1.55!important;}
.hero-content{
  width:min(680px,calc(100% - 2.8rem))!important;
  max-width:680px!important;
  min-width:0!important;
}
.hero h1,
.hero .h1{
  display:block!important;
  width:100%!important;
  max-width:680px!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  text-wrap:balance;
  font-size:clamp(2.85rem,5vw,5.05rem)!important;
  line-height:1.05!important;
}
.hero h1 em{display:block!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;}
.hero-lead{max-width:570px!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;}
@media(max-width:768px){.hero-content{width:calc(100% - 2.4rem)!important;max-width:none!important}.hero h1{font-size:clamp(2.2rem,9vw,3.25rem)!important;}.footer nav ul,.footer ul{padding-left:0!important;margin-left:0!important}}
/* END v1.0.11 */


/* v1.0.11 — definitive home hero width fix */
.hero{
  overflow:hidden!important;
}
.hero-content{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:1280px!important;
  min-width:0!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding:5.7rem 1.4rem 2rem!important;
}
.hero h1,
.hero .h1{
  box-sizing:border-box!important;
  display:block!important;
  width:100%!important;
  max-width:720px!important;
  min-width:0!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
  text-wrap:normal!important;
  letter-spacing:normal!important;
}
.hero h1 em{
  display:block!important;
  width:auto!important;
  max-width:720px!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}
.hero-lead{
  display:block!important;
  width:100%!important;
  max-width:600px!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  hyphens:none!important;
}
.hero-acts{
  width:100%!important;
  max-width:720px!important;
}
@media(max-width:768px){
  .hero-content{max-width:none!important;padding:4.2rem 1.2rem 2rem!important;}
  .hero h1,.hero h1 em,.hero-lead,.hero-acts{max-width:100%!important;}
}
/* END v1.0.11 */


/* v1.0.12 — nav stability, menu alignment, pillar UX, ebook CTA repair */
:root{--hm-header-inner:1280px;--hm-topbar-height:36px;--hm-nav-height:74px;}
body{padding-top:calc(var(--hm-topbar-height) + var(--hm-nav-height))!important;}
body.admin-bar{padding-top:calc(var(--hm-topbar-height) + var(--hm-nav-height) + 32px)!important;}
.topbar{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;height:var(--hm-topbar-height)!important;display:flex!important;align-items:center!important;padding:0 max(1.4rem,calc((100vw - var(--hm-header-inner))/2 + 1.4rem))!important;background:#0a1a18!important;z-index:10010!important;transform:none!important;border-radius:0!important;}
body.admin-bar .topbar{top:32px!important;}
.topbar-inner{width:100%!important;max-width:var(--hm-header-inner)!important;margin:0 auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:var(--hm-topbar-height)!important;}
.nav{position:fixed!important;top:var(--hm-topbar-height)!important;left:0!important;right:0!important;width:100%!important;min-height:var(--hm-nav-height)!important;height:var(--hm-nav-height)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:2rem!important;padding:0 max(1.4rem,calc((100vw - var(--hm-header-inner))/2 + 1.4rem))!important;background:rgba(13,61,58,.97)!important;border-bottom:1px solid rgba(212,169,106,.16)!important;box-shadow:0 12px 30px rgba(0,0,0,.12)!important;z-index:10000!important;transform:none!important;opacity:1!important;visibility:visible!important;border-radius:0!important;}
body.admin-bar .nav{top:calc(32px + var(--hm-topbar-height))!important;}
.nav.scrolled{top:var(--hm-topbar-height)!important;min-height:var(--hm-nav-height)!important;height:var(--hm-nav-height)!important;padding-top:0!important;padding-bottom:0!important;background:rgba(13,61,58,.985)!important;transform:none!important;opacity:1!important;visibility:visible!important;}
body.admin-bar .nav.scrolled{top:calc(32px + var(--hm-topbar-height))!important;}
.nav-brand{display:flex!important;align-items:center!important;gap:.75rem!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;flex:0 0 auto!important;}
.nav-brand svg,.custom-logo-link img{width:38px!important;height:38px!important;display:block!important;}
.nav-brand-text{display:block!important;line-height:1.05!important;margin:0!important;padding:0!important;}
.nav-links{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:2rem!important;margin:0!important;padding:0!important;list-style:none!important;height:auto!important;min-height:0!important;flex-wrap:nowrap!important;}
.nav-links>li{display:flex!important;align-items:center!important;margin:0!important;padding:0!important;list-style:none!important;line-height:1!important;}
.nav-links a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:42px!important;line-height:1!important;margin:0!important;padding:0!important;white-space:nowrap!important;}
.nav-links .nav-cta>a,.nav-links li.nav-cta a,.nav-links a.nav-cta{min-height:46px!important;padding:.78rem 1.65rem!important;}
/* Pillar pages: avoid full-width text walls */
body[class*="page-pillar"] .section,
body[class*="page-pillar"] main section{padding:4.5rem max(1.25rem,calc((100vw - 1180px)/2 + 1.25rem))!important;}
body[class*="page-pillar"] .container{max-width:1180px!important;margin-inline:auto!important;padding-inline:0!important;}
body[class*="page-pillar"] .pil-intro{display:grid!important;grid-template-columns:minmax(0,760px) minmax(260px,360px)!important;gap:3rem!important;align-items:start!important;max-width:1180px!important;margin:0 auto!important;}
body[class*="page-pillar"] .pil-intro>div:first-child{max-width:760px!important;}
body[class*="page-pillar"] .pil-intro p{max-width:760px!important;}
body[class*="page-pillar"] .kc{max-width:760px!important;padding:1.25rem 1.35rem!important;margin-bottom:1rem!important;}
body[class*="page-pillar"] .pil-vis{max-width:360px!important;min-height:320px!important;aspect-ratio:4/5!important;margin-left:auto!important;border-radius:1.2rem!important;}
body[class*="page-pillar"] .tech-card,
body[class*="page-pillar"] .tl,
body[class*="page-pillar"] .poem-block{max-width:900px!important;}
body[class*="page-pillar"] .grid-2{grid-template-columns:minmax(0,1fr) minmax(260px,380px)!important;max-width:1180px!important;}
/* Ebooks page visual consistency */
.page-template-page-shop .page-hero,.woocommerce-shop .page-hero{padding-top:4.6rem!important;padding-bottom:4.8rem!important;}
.page-template-page-shop .shop-layout{max-width:1180px!important;margin-inline:auto!important;}
@media(max-width:1024px){:root{--hm-nav-height:72px}.nav-links{gap:1.25rem!important}.nav-links a{font-size:.74rem!important}body[class*="page-pillar"] .pil-intro{grid-template-columns:1fr!important}body[class*="page-pillar"] .pil-vis{max-width:420px!important;margin:1rem 0 0!important;aspect-ratio:16/10!important}}
@media(max-width:782px){body.admin-bar{padding-top:calc(var(--hm-nav-height) + 46px)!important}body.admin-bar .nav{top:46px!important}body.admin-bar .nav.scrolled{top:46px!important}}
@media(max-width:768px){body,body.admin-bar{padding-top:var(--hm-nav-height)!important}.topbar{display:none!important}.nav,.nav.scrolled,body.admin-bar .nav,body.admin-bar .nav.scrolled{top:0!important;height:var(--hm-nav-height)!important;min-height:var(--hm-nav-height)!important;padding:0 1.2rem!important}.nav-links{position:fixed!important;top:var(--hm-nav-height)!important;left:0!important;right:0!important;bottom:0!important;height:auto!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:1.25rem!important;background:rgba(9,31,29,.98)!important}.nav-links:not(.open){transform:translateX(100%)!important}.nav-links.open{transform:translateX(0)!important}body[class*="page-pillar"] .section,body[class*="page-pillar"] main section{padding:3rem 1.25rem!important}body[class*="page-pillar"] .grid-2{grid-template-columns:1fr!important}}
/* END v1.0.12 */


/* v1.0.13 — home/header spacing + separate Ebooks/Shop templates */
body.home{padding-top:0!important;}
body.home.admin-bar{padding-top:32px!important;}
body.home .hero{margin-top:0!important;padding-top:0!important;min-height:calc(100vh - 32px)!important;}
body.home:not(.admin-bar) .hero{min-height:100vh!important;}
body.home .hero-content{padding-top:calc(var(--hm-topbar-height,36px) + var(--hm-nav-height,74px) + 4rem)!important;}
body.home.admin-bar .hero-content{padding-top:calc(var(--hm-topbar-height,36px) + var(--hm-nav-height,74px) + 4rem)!important;}
.topbar,.nav{margin-bottom:0!important;}
.nav{align-items:center!important;}
.nav-brand,.nav-links,.nav-links>li,.nav-links a{align-items:center!important;}
.nav-links{margin:0!important;padding:0!important;}
.nav-links>li{display:flex!important;margin:0!important;padding:0!important;}
/* Dedicated catalog shop */
.hm-shop-catalog-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:3rem;align-items:start;}
.hm-shop-sidebar{position:sticky;top:calc(var(--hm-topbar-height,36px) + var(--hm-nav-height,74px) + 2rem);}
body.admin-bar .hm-shop-sidebar{top:calc(32px + var(--hm-topbar-height,36px) + var(--hm-nav-height,74px) + 2rem);}
.hm-shop-widget{background:rgba(255,255,255,.04);border:1px solid var(--hm-border);border-radius:var(--hm-r);padding:1.45rem;margin-bottom:1.25rem;}
.hm-shop-widget h3{font-size:1.25rem!important;color:var(--hm-sand);margin:0 0 1rem!important;}
.hm-shop-widget ul{list-style:none!important;margin:0!important;padding:0!important;}
.hm-shop-widget li{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid rgba(255,255,255,.06);padding:.55rem 0;margin:0!important;}
.hm-shop-widget li:last-child{border-bottom:0;}
.hm-shop-widget a{color:rgba(244,237,224,.72);text-decoration:none;}
.hm-shop-widget a:hover{color:var(--hm-sand);}
.hm-shop-products-head{margin-bottom:1.4rem;}
.hm-shop-products-head h2{font-size:clamp(1.9rem,3vw,2.65rem)!important;margin:0!important;}
.hm-shop-products .woocommerce ul.products{margin-top:1rem!important;}
.page-template-page-ebooks .page-hero,.page-template-page-shop .page-hero{margin-top:0!important;}
@media(max-width:900px){.hm-shop-catalog-layout{grid-template-columns:1fr}.hm-shop-sidebar{position:static}.body.home .hero-content,body.home .hero-content{padding-top:calc(var(--hm-nav-height,74px) + 3rem)!important;}}
/* END v1.0.13 */


/* v1.0.18 — Shop archive with hero, sidebar and product grid */
.hm-shop-archive-hero{padding-top:4.8rem!important;padding-bottom:4.8rem!important;background:linear-gradient(155deg,#091f1d 0%,#0d3d3a 55%,#152e2b 100%)!important;}
.hm-shop-archive-main .section{padding-top:5rem!important;}
.hm-shop-catalog-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:3rem;align-items:start;}
.hm-shop-sidebar{position:sticky;top:calc(var(--hm-topbar-height,36px) + var(--hm-nav-height,74px) + 2rem);}
body.admin-bar .hm-shop-sidebar{top:calc(32px + var(--hm-topbar-height,36px) + var(--hm-nav-height,74px) + 2rem);}
.hm-shop-widget{background:rgba(255,255,255,.04);border:1px solid var(--hm-border);border-radius:var(--hm-r);padding:1.45rem;margin-bottom:1.25rem;}
.hm-shop-widget h3{font-size:1.2rem!important;color:var(--hm-sand);margin:0 0 1rem!important;}
.hm-shop-widget ul{list-style:none!important;margin:0!important;padding:0!important;}
.hm-shop-widget li{display:flex;justify-content:space-between;gap:1rem;border-bottom:1px solid rgba(255,255,255,.06);padding:.58rem 0;margin:0!important;color:rgba(244,237,224,.65);}
.hm-shop-widget li:last-child{border-bottom:0;}
.hm-shop-widget a{color:rgba(244,237,224,.76);text-decoration:none;}
.hm-shop-widget a:hover{color:var(--hm-sand);}
.hm-shop-products-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:1.4rem;flex-wrap:wrap;}
.hm-shop-products-head h2{font-size:clamp(1.8rem,3vw,2.5rem)!important;margin:0!important;}
.hm-shop-products .woocommerce-result-count{color:rgba(244,237,224,.55);font-size:.9rem;}
.hm-shop-products .woocommerce-ordering select{background:rgba(255,255,255,.07);border:1px solid var(--hm-border);color:var(--hm-cream);border-radius:.7rem;padding:.65rem .9rem;}
.hm-shop-products .woocommerce ul.products,.woocommerce-page .hm-shop-products ul.products{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:1.6rem!important;margin:1rem 0 0!important;}
.hm-shop-products .woocommerce ul.products li.product,.woocommerce-page .hm-shop-products ul.products li.product{width:auto!important;margin:0!important;background:rgba(255,255,255,.04);border:1px solid var(--hm-border);border-radius:1.15rem;overflow:hidden;padding:0 0 1.25rem!important;}
.hm-shop-products ul.products li.product img{aspect-ratio:3/4;object-fit:cover;margin:0 0 1rem!important;width:100%;}
.hm-shop-products ul.products li.product .woocommerce-loop-product__title{font-size:1.35rem!important;line-height:1.18!important;padding:0 1.15rem!important;margin:.35rem 0 .55rem!important;}
.hm-shop-products ul.products li.product .price{font-size:1.05rem!important;padding:0 1.15rem!important;color:var(--hm-sand)!important;}
.hm-shop-products ul.products li.product .button{margin:.75rem 1.15rem 0!important;background:var(--hm-coral)!important;color:var(--hm-white)!important;border-radius:999px!important;padding:.72rem 1rem!important;font-size:.78rem!important;letter-spacing:.1em;text-transform:uppercase;}
.hm-shop-products .woocommerce-pagination{margin-top:2.5rem;}
.hm-shop-products .woocommerce-pagination ul{border:0!important;display:flex;gap:.45rem;justify-content:center;}
.hm-shop-products .woocommerce-pagination li{border:0!important;}
.hm-shop-products .woocommerce-pagination a,.hm-shop-products .woocommerce-pagination span{background:rgba(255,255,255,.05)!important;border:1px solid var(--hm-border)!important;color:var(--hm-cream)!important;border-radius:.6rem!important;min-width:42px;padding:.65rem .8rem!important;}
.hm-shop-products .woocommerce-pagination .current{background:var(--hm-sand)!important;color:var(--hm-lava)!important;}
@media(max-width:1100px){.hm-shop-products .woocommerce ul.products,.woocommerce-page .hm-shop-products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:900px){.hm-shop-catalog-layout{grid-template-columns:1fr}.hm-shop-sidebar{position:static}.hm-shop-products-head{align-items:flex-start}.hm-shop-products .woocommerce ul.products,.woocommerce-page .hm-shop-products ul.products{grid-template-columns:1fr!important;}}
/* END v1.0.18 */


/* v1.0.18 — Blog titles + boxed content UX */
:root{
  --hm-content-box: 1180px;
  --hm-reading-box: 920px;
  --hm-card-title-size: 1.12rem;
  --hm-blog-title-size: clamp(1.18rem, 1.7vw, 1.55rem);
}

/* Blog listing: reduce oversized card titles and improve scanability */
body.blog .card-title,
body.page-template-page-blog .card-title,
body.archive .card-title,
body.blog .hm-post-card__title,
body.page-template-page-blog .hm-post-card__title,
body.blog article h2,
body.page-template-page-blog article h2,
body.blog article h3,
body.page-template-page-blog article h3,
.blog-home .card-title,
.post-grid .card-title{
  font-size: var(--hm-blog-title-size) !important;
  line-height: 1.28 !important;
  letter-spacing: 0 !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}
body.blog .post-title,
body.page-template-page-blog .post-title,
body.single-post .post-title,
.single-post .post-title,
.hm-post-title{
  font-size: clamp(1.9rem, 3vw, 2.65rem) !important;
  line-height: 1.12 !important;
  max-width: 980px !important;
}
body.blog .card-excerpt,
body.page-template-page-blog .card-excerpt,
body.blog .hm-post-card__excerpt,
body.page-template-page-blog .hm-post-card__excerpt{
  font-size: .95rem !important;
  line-height: 1.75 !important;
}
body.blog .post-grid,
body.page-template-page-blog .post-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 1.4rem !important;
}
body.blog .card-body,
body.page-template-page-blog .card-body{
  padding: 1.25rem !important;
}

/* Boxed readable layout for pillar/long pages */
body.page-template-page-pillar-meditation-php main,
body.page-template-page-pillar-hooponopono-php main,
body.page-template-page-pillar-hana-php main,
body.page-template-page-pillar-meditation-php .section,
body.page-template-page-pillar-hooponopono-php .section,
body.page-template-page-pillar-hana-php .section,
body.page-template-page-pillar-meditation-php section,
body.page-template-page-pillar-hooponopono-php section,
body.page-template-page-pillar-hana-php section,
body[class*="page-pillar"] main,
body[class*="page-pillar"] section{
  max-width: none !important;
}
body.page-template-page-pillar-meditation-php .container,
body.page-template-page-pillar-hooponopono-php .container,
body.page-template-page-pillar-hana-php .container,
body[class*="page-pillar"] .container,
body.page-template-page-pillar-meditation-php .grid-2,
body.page-template-page-pillar-hooponopono-php .grid-2,
body.page-template-page-pillar-hana-php .grid-2{
  max-width: var(--hm-content-box) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: max(1.25rem, calc((100vw - var(--hm-content-box))/2 + 1.25rem)) !important;
  padding-right: max(1.25rem, calc((100vw - var(--hm-content-box))/2 + 1.25rem)) !important;
}
body[class*="page-pillar"] .pil-intro,
body.page-template-page-pillar-meditation-php .pil-intro,
body.page-template-page-pillar-hooponopono-php .pil-intro,
body.page-template-page-pillar-hana-php .pil-intro{
  display: grid !important;
  grid-template-columns: minmax(0, 760px) minmax(280px, 360px) !important;
  gap: 3rem !important;
  max-width: var(--hm-content-box) !important;
  margin: 0 auto !important;
  align-items: start !important;
}
body[class*="page-pillar"] .pil-intro > div:first-child,
body[class*="page-pillar"] .prose,
body[class*="page-pillar"] .entry-content,
body[class*="page-pillar"] .kc,
body[class*="page-pillar"] p{
  max-width: var(--hm-reading-box) !important;
}
body[class*="page-pillar"] .kc{
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 1.15rem 1.3rem !important;
}
body[class*="page-pillar"] .app-card,
body[class*="page-pillar"] .tech-card,
body[class*="page-pillar"] .tl,
body[class*="page-pillar"] .poem-block{
  max-width: var(--hm-content-box) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body[class*="page-pillar"] h1,
body[class*="page-pillar"] h2{
  max-width: 860px !important;
}
body[class*="page-pillar"] h2{
  font-size: clamp(1.75rem, 2.8vw, 2.45rem) !important;
}
body[class*="page-pillar"] h3{
  font-size: clamp(1.25rem, 2vw, 1.65rem) !important;
}
body[class*="page-pillar"] p,
body[class*="page-pillar"] li{
  font-size: .99rem !important;
  line-height: 1.85 !important;
}

/* Generic content pages: keep text from becoming ultra-wide */
body.page:not(.home) .entry-content > *,
body.page:not(.home) main .prose,
body.single-post .prose,
body.single-post .entry-content{
  max-width: var(--hm-reading-box);
}
body.page:not(.home) main .container,
body.single-post main .container,
body.blog main .container{
  max-width: var(--hm-content-box) !important;
}

@media (max-width: 1100px){
  body.blog .post-grid,
  body.page-template-page-blog .post-grid{grid-template-columns: repeat(2, minmax(0, 1fr)) !important;}
  body[class*="page-pillar"] .pil-intro{grid-template-columns: 1fr !important;}
}
@media (max-width: 768px){
  body.blog .post-grid,
  body.page-template-page-blog .post-grid{grid-template-columns: 1fr !important;}
  body.blog .card-title,
  body.page-template-page-blog .card-title,
  body.blog .hm-post-card__title,
  body.page-template-page-blog .hm-post-card__title{font-size:1.22rem!important;}
  body.single-post .post-title,.hm-post-title{font-size:clamp(1.75rem, 8vw, 2.35rem)!important;}
}
/* END v1.0.18 */


/* v1.0.18 download-fix UX overrides */
.hm-blog-featured .card-title,
.hm-blog-card .card-title,
.blog .card-title,
.archive .card-title {font-size: clamp(1.22rem, 1.9vw, 1.62rem) !important; line-height: 1.22 !important; overflow-wrap: normal !important; word-break: normal !important;}
.hm-blog-featured, .blog-featured {overflow: hidden !important;}
.hm-blog-featured .card-excerpt, .blog-featured .card-excerpt {display:block!important; overflow:visible!important; -webkit-line-clamp:unset!important; max-height:none!important;}
.hm-blog-grid, .post-grid {align-items: stretch !important;}
.hm-blog-grid .card, .post-grid .card {height:auto!important; min-height:0!important;}
.woocommerce-ordering select.orderby, select.orderby {width:100%!important; min-width:240px!important; max-width:100%!important; height:46px!important; line-height:1.2!important; padding:.65rem 2.4rem .65rem .9rem!important; background-color:rgba(255,255,255,.08)!important; color:var(--hm-cream,#f4ede0)!important; border:1px solid rgba(212,169,106,.25)!important; border-radius:.6rem!important; overflow:visible!important;}
.hm-shop-products-head, .woocommerce .hm-shop-products-head {display:flex!important; justify-content:space-between!important; align-items:center!important; gap:1rem!important; flex-wrap:wrap!important; margin-bottom:1.6rem!important;}
.hm-shop-products .products, .woocommerce ul.products {display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:1.4rem!important;}
.woocommerce ul.products li.product, .hm-shop-products li.product {width:auto!important; margin:0!important; float:none!important;}
.woocommerce ul.products li.product .woocommerce-loop-product__title {font-size:clamp(1.05rem,1.7vw,1.45rem)!important; line-height:1.22!important; word-break:normal!important; overflow-wrap:normal!important;}
body[class*="page-pillar"] .container, body[class*="page-pillar"] .section > .container, .hm-pillar-container {max-width:1180px!important; margin-left:auto!important; margin-right:auto!important; padding-left:1.5rem!important; padding-right:1.5rem!important;}
body[class*="page-pillar"] h1, body[class*="page-pillar"] h2 {max-width:860px!important; word-break:normal!important; overflow-wrap:normal!important;}
body[class*="page-pillar"] .grid-3, body[class*="page-pillar"] .grid-2 {max-width:1180px!important; margin-left:auto!important; margin-right:auto!important;}
body[class*="page-pillar"] .practice-card, body[class*="page-pillar"] .application-card, body[class*="page-pillar"] .card {overflow:visible!important;}
body[class*="page-pillar"] [style*="margin-top:4rem"], body[class*="page-pillar"] [style*="margin-top:5rem"] {max-width:1180px!important; margin-left:auto!important; margin-right:auto!important;}
@media(max-width:1024px){.hm-shop-products .products,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(max-width:680px){.hm-shop-products .products,.woocommerce ul.products{grid-template-columns:1fr!important;} .woocommerce-ordering select.orderby, select.orderby{min-width:0!important;}}
/* END v1.0.18 download-fix UX overrides */


/* v1.0.18.1 — Pillar pages boxed section headings fix */
body[class*="page-pillar"] .hm-pillar-section-head,
body[class*="page-pillar"] main .reveal.hm-pillar-section-head,
body[class*="page-pillar"] main .pillar-section-head{
  width: min(100% - 2.5rem, 1180px) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
body[class*="page-pillar"] .hm-pillar-section-head .label,
body[class*="page-pillar"] .pillar-section-head .label{
  display:block !important;
  width:auto !important;
}
body[class*="page-pillar"] .hm-pillar-section-head .h2,
body[class*="page-pillar"] .pillar-section-head .h2{
  width:100% !important;
  max-width: 860px !important;
  margin-left:0 !important;
  margin-right:0 !important;
  display:block !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
}
body[class*="page-pillar"] .hm-pillar-section-wrap{
  width:min(100% - 2.5rem,1180px) !important;
  max-width:1180px !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
@media(max-width:768px){
  body[class*="page-pillar"] .hm-pillar-section-head,
  body[class*="page-pillar"] main .reveal.hm-pillar-section-head,
  body[class*="page-pillar"] main .pillar-section-head,
  body[class*="page-pillar"] .hm-pillar-section-wrap{
    width:min(100% - 1.5rem, 100%) !important;
  }
}
/* END v1.0.18.1 */
