/* हिरनोदा — गाँव के काम के टूल। रंग थीम से (--hn-*); ऐप और ऑफलाइन पेज पर यही डिफ़ॉल्ट। */
.hgt { --n: var(--hn-neel, #1F3A68); --nd: var(--hn-neel-deep, #152A4D); --ns: var(--hn-neel-soft, #E7ECF5); --h: var(--hn-haldi, #E8A317); --hs: var(--hn-haldi-soft, #FDF3DC); --s: #C23B22; --g: #2F7A3A; --gs: #E6F3E6; --i: var(--hn-ink, #1B1B1F); --m: var(--hn-muted, #566074); --l: var(--hn-line, #D5DBE7); --w: var(--hn-wall, #F4F6FA); --p: var(--hn-paper, #fff); --t: var(--ns); --tc: var(--n); container-type: inline-size; font-variant-numeric: tabular-nums; color: var(--i); }
.entry-content > .hgt { max-width: var(--hn-wrap, 1180px) !important; }
.hgt *, .hgt *::before, .hgt *::after { box-sizing: border-box; }
.hgt h2::before, .hgt h2::after, .hgt h3::before, .hgt h3::after { content: none !important; display: none !important; }
.hgt button, .hgt input, .hgt select { font: inherit; color: inherit; }
.hgt :focus-visible { outline: 3px solid var(--h); outline-offset: 2px; }
.hgt p { margin: 0 0 12px; }
.hgt [hidden] { display: none !important; }

/* रंग: हर वर्ग का अपना हल्का रंग */
.hgt-c-k { --t: #E3F2E3; --tc: #27682F; }
.hgt-c-p { --t: #FDF0CF; --tc: #7A5200; }
.hgt-c-j { --t: #E4EAF6; --tc: #1F3A68; }

/* ---------- पहला पन्ना ---------- */
.hgt-find { margin-bottom: 12px; }
.hgt .hgt-find input { width: 100%; min-height: 48px; padding: 8px 14px; background: var(--p); border: 1.5px solid var(--l); border-radius: 10px; font-size: 1rem; font-weight: 400; }
.hgt .hgt-find input:focus { border-color: var(--n); outline: 0; }

.hgt-top { display: grid; gap: 8px; margin-bottom: 18px; }
@container (min-width: 620px) { .hgt-top { grid-template-columns: 1fr 1fr; } }
.hgt .hgt-wide { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 66px; padding: 10px 14px 10px 10px; border-radius: 10px; text-decoration: none !important; border: 1px solid var(--l); background: var(--p); color: var(--i) !important; }
.hgt-wide__ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 10px; font-size: 1.5rem; line-height: 1; background: var(--ns); }
.hgt-wide__tx { min-width: 0; }
.hgt-wide__tx b { display: block; font-size: 1.02rem; line-height: 1.3; }
.hgt-wide__tx small { display: block; font-size: .82rem; line-height: 1.35; color: var(--m); }
.hgt-wide i { font-style: normal; font-size: 1.5rem; line-height: 1; color: var(--m); }
.hgt .hgt-wide--sos { background: var(--s); border-color: var(--s); color: #fff !important; }
.hgt-wide--sos .hgt-wide__ic { background: rgba(255, 255, 255, .18); }
.hgt-wide--sos small, .hgt-wide--sos i { color: #fff; opacity: .9; }
.hgt .hgt-wide:active { transform: scale(.985); }

.hgt-sec { margin-bottom: 18px; }
.hgt .hgt-sec__h { margin: 0 0 8px !important; display: flex; align-items: center; gap: 10px; font: 800 .84rem/1.3 var(--hn-body, sans-serif) !important; color: var(--tc) !important; }
.hgt .hgt-sec__h::after { content: "" !important; display: block !important; position: static !important; flex: 1; width: auto !important; height: 1px !important; background: var(--l) !important; }
.hgt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 560px) { .hgt-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
@container (min-width: 900px) { .hgt-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.hgt .hgt-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; min-height: 106px; padding: 12px 6px 10px; text-align: center; background: var(--p); border: 1px solid var(--l); border-radius: 10px; text-decoration: none !important; color: var(--i) !important; transition: transform .08s ease; }
.hgt .hgt-tile:hover { border-color: var(--tc); }
.hgt .hgt-tile:active { transform: scale(.96); background: var(--t); }
.hgt-tile__ic { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; background: var(--t); border-radius: 12px; font-size: 1.55rem; line-height: 1; }
.hgt-tile__t { display: block; font-weight: 700; font-size: .86rem; line-height: 1.3; }
.hgt-tile__d { display: none; }
@container (min-width: 560px) { .hgt-tile__d { display: block; font-size: .76rem; color: var(--m); line-height: 1.3; } }
.hgt-none { padding: 14px; text-align: center; color: var(--m); border: 2px dashed var(--l); border-radius: 10px; }
.hgt-hint { margin: 10px 0 0 !important; font-size: .86rem; color: var(--m); }
.hgt-priv { margin-top: 4px !important; text-align: center; }
@media (prefers-reduced-motion: reduce) { .hgt .hgt-tile, .hgt .hgt-wide { transition: none; transform: none !important; } }

/* ---------- टूल का पन्ना ---------- */
.hgt-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.hgt-back { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 42px; padding: 0 12px 0 10px; background: var(--p); border: 1.5px solid var(--l); border-radius: 10px; color: var(--n) !important; font-weight: 700; cursor: pointer; }
.hgt .hgt-bar h2 { margin: 0 !important; min-width: 0; font: 400 1.3rem/1.25 var(--hn-display, 'Rozha One', serif) !important; color: var(--n) !important; }
@container (max-width: 420px) { .hgt-back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .hgt-back { font-size: 1.4rem; padding: 0 14px; } }
.hgt-tool { max-width: 760px; background: var(--p); border: 1px solid var(--l); border-top: 4px solid var(--tc); border-radius: 10px; padding: 16px 14px 18px; }
.hgt .hgt-tool h3 { margin: 0 0 10px !important; font: 400 1.2rem/1.25 var(--hn-display, 'Rozha One', serif) !important; color: var(--n) !important; }
.hgt-tool > p { color: var(--m); font-size: .95rem; }
.hgt-tool hr { border: 0; border-top: 1px solid var(--l); margin: 20px 0; }
.hgt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; margin-bottom: 12px; align-items: start; }
.hgt-row > div { min-width: 0; }
.hgt label { display: block; font-size: .86rem; font-weight: 700; color: var(--m); margin-bottom: 4px; }
.hgt input, .hgt select { width: 100%; min-height: 50px; padding: 8px 12px; background: var(--w); border: 1.5px solid var(--l); border-radius: 10px; font-size: 1.08rem; font-weight: 600; }
.hgt input:focus, .hgt select:focus { border-color: var(--n); background: var(--p); outline: 0; }
.hgt-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.hgt-chips button { min-width: 38px; min-height: 34px; padding: 2px 8px; border: 1.5px solid var(--l); border-radius: 999px; background: var(--p); font-size: .88rem; font-weight: 700; color: var(--n); cursor: pointer; }
.hgt-chips button:active { background: var(--ns); }

.hgt-out { margin-top: 14px; padding: 14px 16px; background: var(--nd); color: #fff; border-radius: 10px; }
.hgt-out__lbl { font-size: .85rem; color: #C3CEE4; }
.hgt-out__big { font: 400 2.1rem/1.15 var(--hn-display, 'Rozha One', serif); color: #fff; overflow-wrap: anywhere; }
.hgt-out dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; font-size: .97rem; }
.hgt-out dl:empty { display: none; }
.hgt-out__big + dl:not(:empty) { margin-top: 10px; border-top: 1px solid rgba(255, 255, 255, .16); }
.hgt-out dt, .hgt-out dd { padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hgt-out dt { color: #C3CEE4; padding-right: 14px; }
.hgt-out dd { margin: 0; font-weight: 700; text-align: right; color: #fff; }
.hgt-out dd small { font-weight: 400; color: #C3CEE4; }
.hgt .hgt-share { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 12px; padding: 6px 14px; border-radius: 10px; background: #1FA855; color: #fff !important; font-weight: 700; text-decoration: none !important; }
.hgt-btn { min-height: 50px; padding: 8px 18px; border-radius: 10px; border: 0; background: var(--n); color: #fff !important; font-weight: 700; cursor: pointer; }

.hgt ul.hgt-tel { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.hgt-tel li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; margin: 0 !important; border-bottom: 1px solid var(--l); }
.hgt-tel li::marker { content: ""; }
.hgt-tel li:last-child { border-bottom: 0; }
.hgt-tel b { display: block; }
.hgt-tel small { color: var(--m); }
.hgt .hgt-tel a, .hgt .hgt-sos a { display: inline-flex; align-items: center; justify-content: center; min-width: 100px; min-height: 46px; padding: 6px 12px; background: var(--gs); color: var(--g) !important; border: 1.5px solid var(--g); border-radius: 10px; font-weight: 800; text-decoration: none !important; }
.hgt-sos { display: flex; flex-wrap: wrap; gap: 10px; }
.hgt .hgt-sos a { background: var(--s); border-color: var(--s); color: #fff !important; flex: 1 1 150px; }
.hgt-warn { padding: 10px 14px; background: var(--hs); border-radius: 10px; color: #5A3E00 !important; }

.hgt-acc { border: 1px solid var(--l); border-radius: 10px; margin-bottom: 8px; background: var(--p); }
.hgt-acc summary { min-height: 50px; padding: 12px 14px; font-weight: 800; cursor: pointer; }
.hgt-acc[open] summary { border-bottom: 1px solid var(--l); color: var(--n); }
.hgt .hgt-acc ul, .hgt .hgt-acc ol { margin: 0 !important; padding: 12px 16px 12px 34px !important; }
.hgt .hgt-acc li { margin: 0 0 7px !important; }

.hgt-cal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.hgt-crop { border: 1px solid var(--l); border-radius: 10px; padding: 12px 14px; }
.hgt .hgt-crop h3 { margin-bottom: 6px !important; }
.hgt-crop h3 span { font: 700 .75rem/1 var(--hn-body, sans-serif); background: var(--hs); color: #6B4A00; padding: 3px 8px; border-radius: 999px; vertical-align: middle; }
.hgt-crop dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; font-size: .93rem; }
.hgt-crop dt { color: var(--m); font-weight: 700; }
.hgt-crop dd { margin: 0; }

.hgt-calc { max-width: 380px; margin: 0 auto; }
.hgt-calc output { display: block; text-align: right; overflow-wrap: anywhere; }
.hgt-calc__exp { min-height: 1.6em; color: var(--m); }
.hgt-calc__res { font: 400 2.3rem/1.2 var(--hn-display, 'Rozha One', serif); color: var(--n); margin-bottom: 10px; }
.hgt-calc__keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hgt-calc__keys button { min-height: 58px; border: 1.5px solid var(--l); border-radius: 12px; background: var(--w); font-size: 1.4rem; font-weight: 700; cursor: pointer; }
.hgt-calc__keys button:active { background: var(--ns); }
.hgt-calc__keys .op { background: var(--ns); color: var(--n); }
.hgt-calc__keys [data-k="="] { background: var(--h); border-color: var(--h); color: #1B1B1F; }
.hgt-calc__keys .wide { grid-column: span 2; font-size: 1rem; }
.hgt-calc__keys .clr { color: var(--s); }

.hgt-chat { display: grid; gap: 8px; margin-bottom: 12px; }
.hgt-msg { max-width: 88%; padding: 9px 13px; border-radius: 12px; white-space: pre-line; }
.hgt-msg--u { justify-self: end; background: var(--n); color: #fff; border-bottom-right-radius: 4px; }
.hgt-msg--b { justify-self: start; background: var(--ns); border-bottom-left-radius: 4px; }
.hgt-ask { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
