/* DigitalHal blog + single post: Tech News layout in the Light Workbench look. Rollback: update_option('dh_blog_off','1') or delete wp-content/novamira-sandbox/dh-blog.php */
.dhb{--b-line:var(--dh-line,#DCE5E0);--b-surface:var(--dh-surface,#F5F8F6);--b-ink:var(--dh-ink,#101815);--b-muted:var(--dh-muted,#55645C);--b-accent:var(--dh-accent,#3DDC97);--b-accent-text:var(--dh-accent-text,#0B7A4D);--b-accent-ink:var(--dh-accent-ink,#07130D);max-width:1200px;margin:0 auto;padding:32px 24px 72px;color:var(--b-ink);font-family:'Manrope',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;line-height:1.5}
.dhb,.dhb *{box-sizing:border-box}
.dhb a{color:inherit;text-decoration:none}
.dhb h1,.dhb h2,.dhb h3,.dhb h4,.dhb p{margin:0}
.dhb img{display:block;max-width:100%;height:auto}
.dhb a:focus-visible{outline:2px solid var(--b-accent-text);outline-offset:2px}

/* page head */
.dhb-top{padding:12px 0 8px}
.dhb .dhb-top h1{font:700 clamp(34px,5vw,52px)/1.08 'Space Grotesk',sans-serif;letter-spacing:-1px}
.dhb-sub{margin-top:12px;max-width:640px;color:var(--b-muted);font-size:18px;line-height:1.6}
.dhb-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.dhb-pills a{padding:8px 14px;border-radius:6px;background:var(--b-surface);border:1px solid var(--b-line);font-size:14px;font-weight:600}
.dhb-pills a small{margin-left:5px;font-size:12px;color:var(--b-muted);font-weight:600}
.dhb-pills a:hover{border-color:var(--b-accent-text)}
.dhb-pills a.on{background:var(--b-accent);border-color:var(--b-accent);color:var(--b-accent-ink)}
.dhb-pills a.on small{color:var(--b-accent-ink)}

/* shared bits */
.dhb-chip{display:inline-block;align-self:flex-start;padding:3px 9px;border-radius:6px;background:#fff;border:1px solid var(--b-line);font-size:12px;font-weight:700;color:var(--b-accent-text)}
.dhb-chip:hover{border-color:var(--b-accent-text)}
.dhb-m{color:var(--b-muted);font-size:13px;font-weight:600}
.dhb-noimg{display:block;width:100%;height:100%;background:var(--b-surface)}
.dhb-sh2{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:52px 0 18px;padding-bottom:12px;border-bottom:1px solid var(--b-line)}
.dhb .dhb-sh2 h2,.dhb .dhb-h{font:700 24px/1.1 'Space Grotesk',sans-serif;letter-spacing:-.4px}
.dhb-sh2 a{font-size:14px;font-weight:700;color:var(--b-accent-text)}
.dhb-sh2 a:hover{text-decoration:underline}

/* hero */
.dhb-hero{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:40px;margin-top:32px}
.dhb-feat{display:flex;flex-direction:column;gap:14px}
.dhb-fimg{display:block;aspect-ratio:16/10;overflow:hidden;border-radius:10px;background:var(--b-surface);border:1px solid var(--b-line)}
.dhb-fimg img,.dhb-thumb img,.dhb-lt img{width:100%;height:100%;object-fit:cover}
.dhb .dhb-feat h2{font:700 clamp(26px,3.2vw,38px)/1.12 'Space Grotesk',sans-serif;letter-spacing:-.6px}
.dhb-feat h2 a:hover,.dhb-card h3 a:hover{color:var(--b-accent-text)}
.dhb-ex{color:var(--b-muted);font-size:16px;line-height:1.65}
.dhb-side .dhb-h{padding-bottom:12px;border-bottom:1px solid var(--b-line)}
.dhb-li{display:flex;gap:14px;padding:16px 0;border-bottom:1px solid var(--b-line)}
.dhb-lt{flex:0 0 92px;width:92px;height:92px;border-radius:10px;overflow:hidden;background:var(--b-surface);border:1px solid var(--b-line)}
.dhb-lb{display:flex;flex-direction:column;gap:4px;min-width:0}
.dhb-lb em{font-style:normal;font-size:12px;font-weight:700;color:var(--b-accent-text)}
.dhb-lb b{font:700 16px/1.28 'Space Grotesk',sans-serif;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dhb-lb small{font-size:12px;font-weight:600;color:var(--b-muted)}
.dhb-li:hover b{color:var(--b-accent-text)}

/* cards */
.dhb-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.dhb-card{display:flex;flex-direction:column;background:var(--b-surface);border:1px solid var(--b-line);border-radius:10px;overflow:hidden;transition:border-color .15s,transform .15s}
.dhb-card:hover{border-color:var(--b-accent-text);transform:translateY(-2px)}
.dhb-thumb{display:block;aspect-ratio:4/3;overflow:hidden;background:#fff;border-bottom:1px solid var(--b-line)}
.dhb-cb{display:flex;flex-direction:column;gap:10px;padding:16px;flex:1}
.dhb .dhb-card h3{font:700 19px/1.25 'Space Grotesk',sans-serif;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dhb-cb .dhb-m{margin-top:auto}
.dhb-empty{margin-top:32px;color:var(--b-muted)}

/* tool rows and cards */
.dhb-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.dhb-tool{display:flex;align-items:center;gap:12px;padding:14px;background:var(--b-surface);border:1px solid var(--b-line);border-radius:10px;transition:border-color .15s}
.dhb-tool:hover{border-color:var(--b-accent-text)}
.dhb-ti{flex:0 0 40px;width:40px;height:40px;display:grid;place-items:center;border-radius:10px;background:var(--b-accent);color:var(--b-accent-ink);font:700 18px/1 'Space Grotesk',sans-serif}
.dhb-tt{display:flex;flex-direction:column;gap:2px;min-width:0}
.dhb-tt b{font:700 15px/1.25 'Space Grotesk',sans-serif}
.dhb-tt small{color:var(--b-muted);font-size:12.5px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dhb-go{flex:0 0 auto;margin-left:auto;font-style:normal}
.dhb-go::after{content:'\2197';color:var(--b-accent-text);font-size:16px}
.dhb-tool:hover .dhb-tt b{color:var(--b-accent-text)}

/* single post */
.dhb-crumbs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:20px;font-size:13px;font-weight:600;color:var(--b-muted)}
.dhb-crumbs a:hover{color:var(--b-accent-text)}
.dhb-himg{display:flex;justify-content:center;max-height:520px;overflow:hidden;border-radius:10px;background:var(--b-surface);border:1px solid var(--b-line)}
.dhb-himg img{width:auto;max-width:100%;max-height:520px;object-fit:contain}
.dhb-sh{display:flex;flex-direction:column;gap:14px;max-width:860px;margin:28px 0 0}
.dhb .dhb-sh h1{font:700 clamp(30px,4.4vw,46px)/1.1 'Space Grotesk',sans-serif;letter-spacing:-.9px}
.dhb-cols{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:48px;margin-top:28px;align-items:start}
.dhb-prose{min-width:0;font-size:17px;line-height:1.75;overflow-wrap:anywhere}
.dhb .dhb-prose a:not(.wp-block-button__link):not(.wp-element-button):not(.elementor-button):not(.button){color:var(--b-accent-text);text-decoration:underline}
.dhb-prose img{border-radius:10px}
.dhb-prose blockquote{margin:1.6em 0;padding:4px 0 4px 20px;border-left:3px solid var(--b-accent);color:var(--b-muted)}
.dhb-prose table{display:block;max-width:100%;overflow-x:auto}
.dhb-aside{position:sticky;top:24px;display:flex;flex-direction:column;gap:20px}
.dhb-box{padding:20px;border:1px solid var(--b-line);border-radius:10px;background:var(--b-surface)}
.dhb .dhb-box h2{font:700 19px/1.2 'Space Grotesk',sans-serif}
.dhb-bs{margin:4px 0 6px;color:var(--b-muted);font-size:13px}
.dhb-box .dhb-tool{margin-top:10px;background:#fff}
.dhb-box .dhb-li:first-of-type{padding-top:12px}
.dhb-box .dhb-li:last-child{border-bottom:0;padding-bottom:0}
.dhb-all{display:block;margin-top:14px;padding:10px 16px;border-radius:10px;background:var(--b-accent);color:var(--b-accent-ink)!important;font-weight:700;font-size:14px;text-align:center}
.dhb-all:hover{background:var(--b-accent-text);color:#fff!important}
.dhb-pn{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:48px;padding-top:28px;border-top:1px solid var(--b-line)}
.dhb-pn a{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid var(--b-line);border-radius:10px;background:var(--b-surface)}
.dhb-pn a:hover{border-color:var(--b-accent-text)}
.dhb-pn small{font-size:12px;font-weight:700;color:var(--b-accent-text)}
.dhb-pn b{font:700 16px/1.3 'Space Grotesk',sans-serif}
.dhb-pn .nx{text-align:right;grid-column:2}
.dhb-comments{max-width:860px;margin-top:48px}

/* pagination */
.dhb-pager{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:48px}
.dhb-pager .page-numbers{padding:8px 14px;border:1px solid var(--b-line);border-radius:6px;background:var(--b-surface);font-size:14px;font-weight:600}
.dhb-pager a.page-numbers:hover{border-color:var(--b-accent-text)}
.dhb-pager .current{background:var(--b-accent);border-color:var(--b-accent);color:var(--b-accent-ink)}

@media(max-width:960px){.dhb-hero{grid-template-columns:1fr;gap:28px}.dhb-cols{grid-template-columns:1fr;gap:32px}.dhb-aside{position:static}.dhb-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.dhb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.dhb{padding:20px 18px 56px}.dhb-grid,.dhb-tools{grid-template-columns:1fr}.dhb-pn{grid-template-columns:1fr}.dhb-pn .nx{grid-column:1;text-align:left}.dhb-prose{font-size:16px}.dhb-lt{flex-basis:78px;width:78px;height:78px}}
