/*
Theme Name: HappyMods
Theme URI: https://happymods.com.co/
Author: HappyMods
Description: A fast, clean block theme for the HappyMods APK guide. Built entirely with the block editor: every section on every page is an editable block.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: happymods
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h2, h3) { scroll-margin-top: 96px; }
::selection { background: #dff5cf; color: #142012; }
:where(.wp-site-blocks) a:focus-visible,
:where(.wp-site-blocks) button:focus-visible,
:where(.wp-site-blocks) summary:focus-visible { outline: 3px solid #5cc41c; outline-offset: 3px; border-radius: 6px; }
.wp-block-button__link { transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-image img { height: auto; }
p:empty { display: none; }

/* ---------- Header ---------- */
.hm-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid #e2e9dc; }
.admin-bar .hm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hm-header { top: 46px; } }
.hm-header .wp-block-site-logo img { width: 168px; height: auto; }
.hm-header .wp-block-navigation a { text-decoration: none; color: #142012; padding: .35rem 0; border-bottom: 2px solid transparent; }
.hm-header .wp-block-navigation a:hover,
.hm-header .wp-block-navigation .current-menu-item > a { color: #257a0d; border-bottom-color: #5cc41c; }
.hm-header .hm-header-cta .wp-block-button__link { padding: .65rem 1.15rem; font-size: .9rem; box-shadow: 0 6px 18px rgba(37,122,13,.25); }
.hm-header .hm-header-cta .wp-block-button__link::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: .45rem; vertical-align: -3px; background: currentColor; -webkit-mask: var(--hm-i-download) center/contain no-repeat; mask: var(--hm-i-download) center/contain no-repeat; }
@media (max-width: 600px) { .hm-header .hm-header-cta { display: none; } .hm-header .wp-block-site-logo img { width: 140px; } }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.15rem; }

/* ---------- Hero ---------- */
.hm-hero { position: relative; overflow: hidden; }
.hm-hero::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; bottom: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(92,196,28,.18), rgba(92,196,28,0) 70%); pointer-events: none; }
.hm-hero > * { position: relative; z-index: 1; }
.hm-hero h1 { margin-top: .5rem; }
.hm-hero h1 mark { background: none; color: #257a0d; }
.hm-hero .hm-hero-img img { filter: drop-shadow(0 30px 40px rgba(20,70,10,.18)); border-radius: 0; }
.hm-badge { display: inline-flex; align-items: center; gap: .5rem; width: fit-content; padding: .4rem .9rem; border-radius: 999px; background: #fff; border: 1px solid #cfe9bd; color: #257a0d; font: 700 .82rem/1.2 "Plus Jakarta Sans", sans-serif; letter-spacing: .02em; box-shadow: 0 2px 10px rgba(37,122,13,.08); }
.hm-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5cc41c; box-shadow: 0 0 0 4px rgba(92,196,28,.2); }
.hm-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .925rem; color: #3b4837; font-weight: 500; }
.hm-trust li { display: flex; align-items: center; gap: .4rem; }
.hm-trust li::before, .hm-check li::before { content: ""; flex: none; width: 18px; height: 18px; background: #5cc41c; -webkit-mask: var(--hm-i-check-circle) center/contain no-repeat; mask: var(--hm-i-check-circle) center/contain no-repeat; }
.is-style-outline > .wp-block-button__link, .wp-block-button__link.is-style-outline { border: 2px solid #257a0d; color: #257a0d; background: #fff; }
.is-style-outline > .wp-block-button__link:hover { background: #eef9e6; color: #14460a; border-color: #14460a; }

/* ---------- Stats / app info ---------- */
.hm-stats { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px !important; background: #e2e9dc; border: 1px solid #e2e9dc; border-radius: 20px; overflow: hidden; box-shadow: 0 1px 2px rgba(20,32,18,.06), 0 8px 24px rgba(20,32,18,.06); }
.hm-stats > .wp-block-group { background: #fff; padding: 1.15rem 1.25rem; margin: 0 !important; }
.hm-stats p { margin: 0; }
.hm-stats .hm-stat-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #66745f; font-weight: 600; }
.hm-stats .hm-stat-value { font: 800 1.2rem/1.3 "Plus Jakarta Sans", sans-serif; color: #142012; margin-top: .2rem; }
@media (max-width: 700px) { .hm-stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------- Cards & icons ---------- */
.hm-card { background: #fff; border: 1px solid #e2e9dc; border-radius: 20px; padding: 1.6rem; height: 100%; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hm-card:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(20,70,10,.12); border-color: #cfe9bd; }
.hm-card h3 { font-size: 1.15rem; margin: .9rem 0 .4rem; }
.hm-card p { margin: 0; font-size: .975rem; color: #4a5745; }
.hm-icon::before { content: ""; display: block; width: 52px; height: 52px; border-radius: 14px; background: #eef9e6 var(--hm-i) center/26px no-repeat; }
.hm-grid-3 { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem !important; }
.hm-grid-2 { display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.25rem !important; }
.hm-grid-3 > *, .hm-grid-2 > * { margin: 0 !important; }
@media (max-width: 900px) { .hm-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px) { .hm-grid-3, .hm-grid-2 { grid-template-columns: 1fr; } }

/* ---------- Section heading ---------- */
.hm-eyebrow { font: 700 .8rem/1.2 "Plus Jakarta Sans", sans-serif !important; text-transform: uppercase; letter-spacing: .14em; color: #257a0d; margin-bottom: .25rem !important; }
.hm-section-head { max-width: 700px; margin-left: auto !important; margin-right: auto !important; text-align: center; }
.hm-section-head h2 { margin-top: .4rem; }
.hm-lead { font-size: 1.15rem; color: #4a5745; }

/* ---------- Screenshots ---------- */
.hm-shots { display: flex !important; flex-wrap: nowrap !important; gap: 1.25rem !important; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .25rem 1.25rem; scrollbar-width: thin; }
.hm-shots > .wp-block-image { flex: 0 0 min(230px, 62vw) !important; width: auto !important; margin: 0 !important; scroll-snap-align: center; }
.hm-shots img { border-radius: 0 !important; filter: drop-shadow(0 16px 24px rgba(20,70,10,.16)); transition: transform .3s ease; }
.hm-shots img:hover { transform: translateY(-6px); }
.hm-shots figcaption { text-align: center; font-weight: 600; color: #3b4837; }

/* ---------- Steps ---------- */
.hm-steps { counter-reset: hmstep; }
.hm-step { counter-increment: hmstep; position: relative; padding-top: 4.1rem !important; }
.hm-step::before { content: counter(hmstep); position: absolute; top: 1.5rem; left: 1.6rem; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #257a0d; color: #fff; font: 800 1.05rem/1 "Plus Jakarta Sans", sans-serif; box-shadow: 0 8px 18px rgba(37,122,13,.28); }
.hm-step h3 { margin-top: 0; }

/* ---------- Lists ---------- */
.hm-check, .hm-cross { list-style: none; padding-left: 0; }
.hm-check li, .hm-cross li { display: flex; gap: .6rem; align-items: flex-start; margin: .55rem 0; }
.hm-check li::before { margin-top: .3rem; }
.hm-cross li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: .3rem; background: #c2410c; -webkit-mask: var(--hm-i-x-circle) center/contain no-repeat; mask: var(--hm-i-x-circle) center/contain no-repeat; }

/* ---------- Callouts ---------- */
.hm-note { border-radius: 16px; padding: 1.1rem 1.25rem 1.1rem 3.4rem !important; position: relative; background: #fff8eb; border: 1px solid #f5dfb5; color: #5b3d0c; }
.hm-note::before { content: ""; position: absolute; left: 1.15rem; top: 1.2rem; width: 22px; height: 22px; background: #b45309; -webkit-mask: var(--hm-i-alert) center/contain no-repeat; mask: var(--hm-i-alert) center/contain no-repeat; }
.hm-note.is-info { background: #eef9e6; border-color: #cfe9bd; color: #14460a; }
.hm-note.is-info::before { background: #257a0d; -webkit-mask-image: var(--hm-i-info); mask-image: var(--hm-i-info); }
.hm-note p { margin: 0; }

/* ---------- Table of contents ---------- */
.hm-toc { background: #f6f8f4; border: 1px solid #e2e9dc; border-radius: 18px; padding: 1.25rem 1.5rem !important; }
.hm-toc ol { margin: .5rem 0 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.hm-toc li { margin: .3rem 0; break-inside: avoid; }
.hm-toc a { text-decoration: none; color: #257a0d; font-weight: 500; }
.hm-toc a:hover { text-decoration: underline; }
@media (max-width: 620px) { .hm-toc ol { columns: 1; } }

/* ---------- Tables ---------- */
.wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid #e2e9dc; border-radius: 16px; overflow: hidden; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid #e2e9dc; padding: .8rem 1rem; text-align: left; }
.wp-block-table tr:last-child td { border-bottom: 0; }
.wp-block-table thead th { background: #eef9e6; color: #14460a; font-family: "Plus Jakarta Sans", sans-serif; }
.wp-block-table tbody tr:nth-child(even) td { background: #fafcf8; }
.hm-spec-table td:first-child { font-weight: 600; color: #142012; width: 42%; }

/* ---------- FAQ ---------- */
.wp-block-details { background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.wp-block-details + .wp-block-details { margin-top: .75rem; }
.wp-block-details[open] { border-color: #cfe9bd !important; box-shadow: 0 8px 24px rgba(20,70,10,.08); }
.wp-block-details summary { cursor: pointer; list-style: none; font: 700 1.05rem/1.45 "Plus Jakarta Sans", sans-serif; color: #142012; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #eef9e6 var(--hm-i-plus) center/14px no-repeat; transition: transform .25s ease; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { margin-top: .75rem; margin-bottom: 0; }

/* ---------- Download box ---------- */
.hm-download-box { border-radius: 24px; border: 1px solid #cfe9bd; background: linear-gradient(180deg, #f3fbec, #fff); box-shadow: 0 18px 48px rgba(20,70,10,.12); }
.hm-download-box .wp-block-site-logo img, .hm-app-icon img { border-radius: 22px !important; box-shadow: 0 10px 24px rgba(20,70,10,.2); }
.hm-download-box .wp-block-button__link { font-size: 1.1rem; padding: 1.05rem 2rem; box-shadow: 0 12px 28px rgba(37,122,13,.3); }
.hm-download-box .wp-block-button__link::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-right: .55rem; vertical-align: -4px; background: currentColor; -webkit-mask: var(--hm-i-download) center/contain no-repeat; mask: var(--hm-i-download) center/contain no-repeat; }
.hm-meta-row { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .9rem; color: #66745f; }

/* ---------- CTA band ---------- */
.hm-cta { position: relative; overflow: hidden; border-radius: 28px; }
.hm-cta::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -180px; border-radius: 50%; background: rgba(255,255,255,.09); }
.hm-cta::after { content: ""; position: absolute; width: 300px; height: 300px; left: -120px; bottom: -170px; border-radius: 50%; background: rgba(255,255,255,.06); }
.hm-cta > * { position: relative; z-index: 1; }
.hm-cta h2, .hm-cta p { color: #fff; }
.hm-cta .wp-block-button__link { background: #fff; color: #14460a; }
.hm-cta .wp-block-button__link:hover { background: #eef9e6; color: #14460a; }

/* ---------- Page hero (inner pages) ---------- */
.hm-page-hero { border-bottom: 1px solid #e2e9dc; }
.hm-page-hero .wp-block-post-title { margin: .25rem 0 0; }
.hm-breadcrumbs { font-size: .875rem; color: #66745f; }
.hm-breadcrumbs a { color: #66745f; text-decoration: none; }
.hm-breadcrumbs a:hover { color: #257a0d; }

/* ---------- Article content ---------- */
.hm-prose > h2 { margin-top: 2.6rem; }
.hm-prose > h3 { margin-top: 1.8rem; }
.hm-prose li { margin: .35rem 0; }
.hm-prose .wp-block-image { margin-top: 1.75rem; margin-bottom: 1.75rem; }

/* ---------- Post cards ---------- */
.hm-post-grid .wp-block-post { background: #fff; border: 1px solid #e2e9dc; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.hm-post-grid .wp-block-post:hover { transform: translateY(-4px); box-shadow: 0 18px 48px rgba(20,70,10,.12); }
.hm-post-grid .wp-block-post-featured-image { margin: 0; }
.hm-post-grid .wp-block-post-featured-image img { border-radius: 0 !important; aspect-ratio: 16/9; object-fit: cover; }
.hm-post-grid .hm-post-body { padding: 1.1rem 1.35rem 1.4rem; }
.hm-post-grid .wp-block-post-title { font-size: 1.2rem; line-height: 1.35; margin: .35rem 0 .5rem; }
.hm-post-grid .wp-block-post-title a { text-decoration: none; color: #142012; }
.hm-post-grid .wp-block-post-title a:hover { color: #257a0d; }
.hm-post-grid .wp-block-post-date { font-size: .82rem; color: #66745f; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hm-post-grid .wp-block-post-excerpt__excerpt { font-size: .95rem; color: #4a5745; margin: 0; }
.wp-block-query-pagination { margin-top: 2rem; gap: .5rem; }
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { padding: .45rem .85rem; border-radius: 10px; border: 1px solid #e2e9dc; text-decoration: none; }
.wp-block-query-pagination .current { background: #257a0d; color: #fff; border-color: #257a0d; }

/* ---------- Footer ---------- */
.hm-footer { color: #b9c6b3; }
.hm-footer h2, .hm-footer h3, .hm-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .02em; }
.hm-footer a { color: #d8e4d2; text-decoration: none; }
.hm-footer a:hover { color: #8be05a; }
.hm-footer .wp-block-navigation { --navigation-layout-direction: column; }
.hm-footer .wp-block-navigation .wp-block-navigation__container { flex-direction: column; align-items: flex-start; gap: .55rem; }
.hm-footer .wp-block-site-logo img { width: 170px; height: auto; }
.hm-footer .hm-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .875rem; color: #8d9a87; }
.hm-footer .hm-disclaimer { font-size: .85rem; color: #8d9a87; }

/* ---------- 404 ---------- */
.hm-404-code { font: 800 clamp(5rem, 18vw, 10rem)/1 "Plus Jakarta Sans", sans-serif !important; color: #dff5cf !important; -webkit-text-stroke: 2px #5cc41c; margin: 0 !important; }

/* ---------- Search ---------- */
.wp-block-search__input { border: 1px solid #cfd9c8; border-radius: 999px; padding: .75rem 1.15rem; }
.wp-block-search__button { border-radius: 999px; margin-left: .5rem; }

/* ---------- Icon set (stroke icons as SVG masks) ---------- */
:root {
	--hm-i-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
	--hm-i-check-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E");
	--hm-i-x-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6M9 9l6 6'/%3E%3C/svg%3E");
	--hm-i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
	--hm-i-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
	--hm-i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.hm-i-shield { --hm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.hm-i-bolt { --hm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8Z'/%3E%3C/svg%3E"); }
.hm-i-grid { --hm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.hm-i-users { --hm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.9M16 3.1a4 4 0 0 1 0 7.8'/%3E%3C/svg%3E"); }
.hm-i-refresh { --hm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.3L3 16'/%3E%3Cpath d='M3 12A9 9 0 0 1 18.5 5.7L21 8'/%3E%3Cpath d='M21 3v5h-5M3 21v-5h5'/%3E%3C/svg%3E"); }
.hm-i-globe { --hm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20'/%3E%3C/svg%3E"); }
.hm-i-download { --hm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E"); }
.hm-i-star { --hm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1L12 2Z'/%3E%3C/svg%3E"); }
.hm-i-lock { --hm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='2' stroke-linecap='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.hm-i-phone { --hm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='2' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.hm-i-monitor { --hm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='2' stroke-linecap='round'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E"); }
.hm-i-mail { --hm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.hm-i-gamepad { --hm-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23257a0d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h4M8 10v4M15 13h.01M18 11h.01'/%3E%3Crect x='2' y='6' width='20' height='12' rx='4'/%3E%3C/svg%3E"); }

/* ---------- Header: logo, nav, language switcher ---------- */
.hm-logo { display: inline-flex; line-height: 0; }
.hm-logo img { width: 168px; height: auto; }
.hm-header .wp-block-shortcode { margin: 0; }
.hm-nav { display: flex; align-items: center; }
.hm-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.hm-nav-list a { font: 600 .975rem/1.2 "Plus Jakarta Sans", sans-serif; color: #142012; text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease; }
.hm-nav-list a:hover, .hm-nav-list a.is-active { color: #257a0d; border-bottom-color: #5cc41c; }
.hm-nav-toggle { display: none; }
.hm-nav-toggle > summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px; border: 1px solid #e2e9dc; display: grid; place-items: center; background: #fff; }
.hm-nav-toggle > summary::-webkit-details-marker { display: none; }
.hm-nav-toggle > summary span, .hm-nav-toggle > summary span::before, .hm-nav-toggle > summary span::after { display: block; width: 18px; height: 2px; background: #142012; border-radius: 2px; position: relative; transition: transform .25s ease, background .2s ease; }
.hm-nav-toggle > summary span::before, .hm-nav-toggle > summary span::after { content: ""; position: absolute; left: 0; }
.hm-nav-toggle > summary span::before { top: -6px; }
.hm-nav-toggle > summary span::after { top: 6px; }
.hm-nav-toggle[open] > summary span { background: transparent; }
.hm-nav-toggle[open] > summary span::before { transform: translateY(6px) rotate(45deg); }
.hm-nav-toggle[open] > summary span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 960px) {
	.hm-nav-desktop { display: none; }
	.hm-nav-toggle { display: block; }
	.hm-nav-toggle .hm-nav-list { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid #e2e9dc; box-shadow: 0 24px 40px rgba(20,32,18,.12); padding: .5rem clamp(1rem, 4vw, 2rem) 1rem; }
	.hm-nav-toggle .hm-nav-list a { display: block; padding: .9rem 0; border-bottom: 1px solid #eef2eb; font-size: 1.05rem; }
}
.hm-lang { position: relative; }
.hm-lang > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .4rem; height: 44px; padding: 0 .8rem; border: 1px solid #e2e9dc; border-radius: 12px; font: 700 .85rem/1 "Plus Jakarta Sans", sans-serif; color: #142012; background: #fff; }
.hm-lang > summary::-webkit-details-marker { display: none; }
.hm-lang > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #66745f; border-bottom: 2px solid #66745f; transform: rotate(45deg) translateY(-2px); margin-left: .15rem; }
.hm-lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px; list-style: none; margin: 0; padding: .4rem; background: #fff; border: 1px solid #e2e9dc; border-radius: 14px; box-shadow: 0 18px 40px rgba(20,32,18,.14); z-index: 60; }
.hm-lang li a { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 10px; color: #142012; text-decoration: none; font-weight: 500; }
.hm-lang li a:hover { background: #f6f8f4; }
.hm-lang li a.is-current { background: #eef9e6; color: #14460a; font-weight: 700; }
.hm-flag { font-size: 1.15rem; line-height: 1; }

/* ---------- Footer links ---------- */
.hm-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.hm-footer .hm-logo img { width: 170px; }
.hm-footer .hm-lang ul { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.hm-footer .hm-lang > summary { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.hm-footer .hm-lang > summary::after { border-color: #b9c6b3; }

/* Devanagari: letter spacing splits conjuncts apart, and there is no uppercase. */
:lang(hi) .hm-eyebrow, :lang(hi) .hm-stats .hm-stat-label, :lang(hi) .hm-badge,
:lang(hi) .hm-post-grid .wp-block-post-date, :lang(hi) :where(h1, h2, h3, h4) { letter-spacing: 0 !important; text-transform: none; }
:lang(hi) body { line-height: 1.85; }

/* ---------- Blog post extras ---------- */
.hm-post-hero .wp-block-post-title { max-width: 900px; }
.hm-post-hero .hm-meta-row { margin-top: .5rem; }
.hm-meta-row > * { margin: 0 !important; }
.hm-meta-row > * + *::before { content: "·"; margin-right: 1rem; color: #b9c6b3; }
.hm-post-cover { margin-top: calc(-1 * var(--wp--preset--spacing--50)) !important; margin-bottom: var(--wp--preset--spacing--50) !important; }
.hm-post-cover img { box-shadow: 0 24px 60px rgba(20,70,10,.18); }
.hm-takeaways { background: #eef9e6; border: 1px solid #cfe9bd; border-left: 5px solid #5cc41c; border-radius: 18px; padding: 1.25rem 1.5rem !important; margin-top: 1.75rem !important; }
.hm-takeaways ul { margin: .4rem 0 0; }
.hm-takeaways-title, .hm-related-title { margin: 0 !important; font-family: "Plus Jakarta Sans", sans-serif; color: #14460a; }
.hm-related { border: 1px solid #e2e9dc; border-radius: 18px; padding: 1.25rem 1.5rem !important; margin-top: 2.5rem !important; }
.hm-related-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .4rem; }
.hm-related-list a { display: flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; }
.hm-related-list a::before { content: "→"; color: #5cc41c; }
.hm-related-list a:hover { text-decoration: underline; }
.hm-prose > .hm-cta { margin-top: 2.5rem !important; }
.hm-author { max-width: 780px; margin: var(--wp--preset--spacing--50) auto 0 !important; gap: 1.1rem !important; padding: 1.4rem 1.5rem; border-radius: 20px; background: #f6f8f4; border: 1px solid #e2e9dc; }
.hm-author p { margin: 0; font-size: .95rem; }
.hm-author .hm-author-name { font: 700 1.05rem/1.3 "Plus Jakarta Sans", sans-serif; color: #142012; margin-bottom: .3rem; }
.hm-author-icon { width: 56px; height: 56px; border-radius: 16px; flex: none; }
.hm-post-nav { max-width: 780px; margin: 1.5rem auto 0 !important; gap: 1rem !important; }
.hm-post-nav .post-navigation-link-previous, .hm-post-nav .post-navigation-link-next { flex: 1 1 0; }
.hm-post-nav a { display: block; padding: 1rem 1.2rem; border: 1px solid #e2e9dc; border-radius: 16px; text-decoration: none; color: #142012; font-weight: 600; transition: border-color .2s ease, background .2s ease; }
.hm-post-nav a:hover { border-color: #5cc41c; background: #f3fbec; }
.hm-post-nav .post-navigation-link-next { text-align: right; }

/* ---------- Blog index featured post ---------- */
.hm-featured .wp-block-columns { background: #fff; border: 1px solid #e2e9dc; border-radius: 24px; overflow: hidden; box-shadow: 0 18px 48px rgba(20,70,10,.1); margin: 0; }
.hm-featured .wp-block-post-featured-image { margin: 0; }
.hm-featured .wp-block-post-featured-image img { border-radius: 0 !important; display: block; }
.hm-featured-body { padding: 2rem 2.25rem; }
.hm-featured-body .wp-block-post-title { margin: .9rem 0 .6rem; line-height: 1.25; }
.hm-featured-body .wp-block-post-title a { color: #142012; text-decoration: none; }
.hm-featured-body .wp-block-post-title a:hover { color: #257a0d; }
.hm-featured-body .wp-block-post-excerpt__excerpt { color: #4a5745; margin: 0 0 .75rem; }
.hm-featured-body .wp-block-post-date { font-size: .85rem; color: #66745f; font-weight: 600; }
@media (max-width: 781px) { .hm-featured-body { padding: 1.4rem; } }
/* In article phone screenshots: keep them a readable size, centred. */
.hm-prose .wp-block-image { text-align: center; }
.hm-prose .wp-block-image img { max-height: 520px; width: auto; max-width: 100%; border-radius: 0; filter: drop-shadow(0 16px 24px rgba(20,70,10,.16)); }
.hm-prose .wp-block-image figcaption { text-align: center; }
.hm-post-nav [class*="__arrow"] { display: none; }
.hm-post-nav .post-navigation-link-previous a::before { content: "← "; color: #5cc41c; }
.hm-post-nav .post-navigation-link-next a::after { content: " →"; color: #5cc41c; }
