/*
Theme Name: Meaning in Hindi
Theme URI: https://meaninginhindi.it.com/
Description: English words and phrases with their Hindi meanings: bilingual entry cards, a flip word card, spoken pronunciation, topic lists and an English to Hindi dictionary.
Version: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: meaninginhindi
*/

@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/crimson-pro-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/crimson-pro-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/crimson-pro-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Crimson Pro"; font-style: italic; font-weight: 500; font-display: swap; src: url(assets/fonts/crimson-pro-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Gothic A1"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/gothic-a1-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Gothic A1"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/gothic-a1-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Gothic A1"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/gothic-a1-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Rhodium Libre"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/rhodium-libre-devanagari-400-normal.woff2) format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

:root {
	--night: #16123f;
	--night2: #221c5c;
	--iris: #5b3df5;
	--iris-d: #4426d9;
	--iris-l: #ece8ff;
	--saff: #ff7a45;
	--saff-d: #e85d27;
	--saff-l: #fff0e8;
	--aqua: #11b8a0;
	--ink: #1c1a33;
	--ink2: #4a4766;
	--mute: #77748f;
	--line: #e4e1f0;
	--page: #f6f5fc;
	--card: #ffffff;
	--r: 22px;
	--r-s: 14px;
	--sh: 0 1px 2px rgba(22, 18, 63, .06), 0 10px 30px -12px rgba(22, 18, 63, .18);
	--sh-l: 0 2px 4px rgba(22, 18, 63, .06), 0 24px 60px -20px rgba(22, 18, 63, .35);
	--serif: "Crimson Pro", Georgia, "Times New Roman", serif;
	--sans: "Gothic A1", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--hindi: "Rhodium Libre", "Nirmala UI", "Mangal", "Noto Sans Devanagari", serif;
	--ac: var(--iris);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 17px/1.7 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--iris-d); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--saff-d); }
[lang="hi"], .mh-hi { font-family: var(--hindi); }
:focus-visible { outline: 3px solid var(--saff); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.mh-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.mh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mh-skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.mh-skip:focus { left: 8px; }

/* ------------------------------------------------------------ top bar */
.mh-top { position: sticky; top: 0; z-index: 40; background: rgba(22, 18, 63, .96); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.mh-bar { display: flex; align-items: center; gap: 18px; height: 68px; }
.mh-logo { flex: none; display: block; }
.mh-logo img { height: 36px; width: auto; }
.mh-look { position: relative; flex: 1; max-width: 560px; margin: 0 auto; }
.mh-look input { width: 100%; height: 44px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .09); color: #fff; padding: 0 18px 0 44px; font: 500 15px var(--sans); transition: background .2s, border-color .2s; }
.mh-look input::placeholder { color: rgba(255, 255, 255, .6); }
.mh-look input:focus { outline: none; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.mh-look-i { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.mh-look-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border-radius: 18px; box-shadow: var(--sh-l); padding: 8px; max-height: 70vh; overflow: auto; }
.mh-look-pop a, .mh-look-pop p { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); margin: 0; }
.mh-look-pop a:hover, .mh-look-pop a.is-on { background: var(--iris-l); }
.mh-look-pop b { font: 600 19px/1.2 var(--serif); }
.mh-look-pop span { font-family: var(--hindi); color: var(--saff-d); font-size: 16px; text-align: right; }
.mh-look-pop small { grid-column: 1 / -1; color: var(--mute); font-size: 13px; line-height: 1.4; }
.mh-look-pop p span { font-family: var(--sans); color: var(--mute); font-size: 14px; text-align: left; grid-column: 1 / -1; }
.mh-topicbtn { flex: none; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 8px; border: 0; border-radius: 999px; background: var(--saff); color: #fff; font: 700 14px var(--sans); cursor: pointer; }
.mh-topicbtn:hover { background: var(--saff-d); }
.mh-topicbtn-i { display: inline-flex; align-items: center; justify-content: center; gap: 1px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--saff-d); font: 400 15px/1 var(--hindi); }
.mh-topicbtn-i b { font: 700 12px var(--serif); color: var(--night); }
.mh-topics { background: var(--night); border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0 26px; max-height: calc(100vh - 68px); overflow: auto; }
.mh-topics-foot { margin: 16px 0 0; text-align: center; }
.mh-topics-foot a { color: #fff; font-weight: 600; }

/* ------------------------------------------------------------ topic tiles */
.mh-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.mh-tiles a { position: relative; display: block; height: 100%; padding: 18px 18px 16px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.mh-tiles a::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--ac); }
.mh-tiles a:hover { transform: translateY(-3px); box-shadow: var(--sh-l); color: var(--ink); }
.mh-tiles i { display: inline-block; font: italic 500 22px/1.1 var(--serif); color: var(--ac); margin-bottom: 8px; }
.mh-tiles b { display: block; font-weight: 700; font-size: 15px; line-height: 1.35; }
.mh-tiles span { display: block; color: var(--mute); font-size: 13px; margin-top: 4px; }
.mh-tiles--menu a { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .1); }
.mh-tiles--menu a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.mh-tiles--menu span { color: rgba(255, 255, 255, .6); }
.mh-tiles--menu i { color: color-mix(in srgb, var(--ac) 55%, #fff); }
.mh-tiles--small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (min-width: 1021px) { .mh-tiles:not(.mh-tiles--small) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ home hero */
.mh-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, #4b2fd6 0%, rgba(75, 47, 214, 0) 60%), radial-gradient(900px 500px at -10% 110%, rgba(255, 122, 69, .45) 0%, rgba(255, 122, 69, 0) 55%), var(--night); padding: 64px 0 84px; }
.mh-hero-script { position: absolute; right: -2%; bottom: -12%; font: 400 min(34vw, 420px)/1 var(--hindi); color: rgba(255, 255, 255, .05); pointer-events: none; user-select: none; }
.mh-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.mh-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); font: 600 14px var(--sans); letter-spacing: .02em; }
.mh-kicker i { font-style: normal; color: var(--saff); }
.mh-hero h1 { margin: 0; font: 700 clamp(42px, 6vw, 74px)/1.02 var(--serif); letter-spacing: -.01em; }
.mh-hero-lede { margin: 18px 0 26px; max-width: 34em; color: rgba(255, 255, 255, .82); font-size: 18px; }
.mh-look--hero { max-width: 540px; margin: 0; }
.mh-look--hero input { height: 58px; font-size: 17px; background: #fff; color: var(--ink); border-color: transparent; padding-left: 52px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
.mh-look--hero input::placeholder { color: var(--mute); }
.mh-look--hero input:focus { background: #fff; border-color: var(--saff); }
.mh-look--hero .mh-look-i { left: 19px; width: 20px; height: 20px; margin-top: -10px; stroke: var(--iris); }
.mh-hero-count { margin: 18px 0 0; color: rgba(255, 255, 255, .72); font-size: 15px; }
.mh-hero-count b { color: #fff; font: 700 22px var(--serif); }

.mh-flash { perspective: 1400px; }
.mh-flash-card { position: relative; height: 320px; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .8, .2, 1); cursor: pointer; border-radius: 28px; }
.mh-flash-card.is-flipped { transform: rotateY(180deg); }
.mh-flash-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 28px; padding: 30px 32px; display: flex; flex-direction: column; justify-content: center; box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .65); }
.mh-flash-front { background: #fff; color: var(--ink); }
.mh-flash-front::after { content: ""; position: absolute; left: 32px; right: 32px; bottom: 28px; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.mh-flash-back { background: linear-gradient(150deg, var(--saff) 0%, #ff5a7a 100%); color: #fff; transform: rotateY(180deg); }
.mh-flash-tag { margin: 0 0 auto; font: 700 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.mh-flash-back .mh-flash-tag { color: rgba(255, 255, 255, .8); letter-spacing: 0; font: 400 16px var(--hindi); text-transform: none; }
.mh-flash-word { margin: 0; font: 700 clamp(44px, 5vw, 60px)/1.05 var(--serif); overflow-wrap: anywhere; }
.mh-flash-pos { margin: 6px 0 0; font: italic 500 20px var(--serif); color: var(--iris); }
.mh-flash-hint { margin: auto 0 0; padding-bottom: 6px; color: var(--mute); font-size: 14px; }
.mh-flash-hi { margin: 0; font: 400 clamp(32px, 4vw, 44px)/1.35 var(--hindi); }
.mh-flash-rom { margin: 6px 0 0; font: italic 500 20px var(--serif); opacity: .92; }
.mh-flash-ex { margin: auto 0 0; font-size: 15px; opacity: .95; }
.mh-flash-bar { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.mh-flash-bar button, .mh-flash-bar a { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font: 600 14px var(--sans); display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.mh-flash-bar button:hover, .mh-flash-bar a:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.mh-topicband { margin-top: -44px; position: relative; z-index: 2; }

/* ------------------------------------------------------------ page heads */
.mh-head { padding: 22px 0 8px; }
.mh-trail { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--mute); margin-bottom: 18px; }
.mh-trail a { color: var(--ink2); text-decoration: none; }
.mh-trail a:hover { color: var(--iris-d); text-decoration: underline; }
.mh-trail span[aria-current] { color: var(--ink); font-weight: 600; }

.mh-entry { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.mh-entry--solo { grid-template-columns: 1fr; }
.mh-entry-card { position: relative; background: var(--card); border-radius: 28px; box-shadow: var(--sh); padding: 28px 32px 30px; overflow: hidden; }
.mh-entry-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; background: linear-gradient(var(--ac), var(--saff)); }
.mh-entry-topic { margin: 0 0 14px; }
.mh-entry-topic a { display: inline-block; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--ac) 12%, #fff); color: var(--ac); font: 700 13px var(--sans); text-decoration: none; }
.mh-entry-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 6px 0 20px; border-bottom: 1px dashed var(--line); }
.mh-entry-word { margin: 0; font: 700 clamp(40px, 5.4vw, 64px)/1.02 var(--serif); color: var(--night); overflow-wrap: anywhere; }
.mh-entry-pron { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 0; color: var(--ink2); font: italic 500 20px var(--serif); }
.mh-entry-eq { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--iris-l); color: var(--iris); font: 700 30px/1 var(--serif); }
.mh-entry-side--hi { text-align: left; }
.mh-entry-hi { margin: 0; font: 400 clamp(26px, 3.4vw, 38px)/1.4 var(--hindi); color: var(--saff-d); }
.mh-entry-rom { margin: 2px 0 8px; font: italic 500 19px var(--serif); color: var(--ink2); }
.mh-entry-card h1 { margin: 20px 0 6px; font: 600 clamp(22px, 2.6vw, 28px)/1.25 var(--sans); letter-spacing: -.01em; }
.mh-entry-short { margin: 0; color: var(--ink2); font-size: 17px; }
.mh-pos { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; }
.mh-pos li { padding: 2px 10px; border-radius: 999px; background: var(--page); border: 1px solid var(--line); font: 600 12px var(--sans); color: var(--ink2); text-transform: lowercase; }
.mh-say { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px 0 10px; border-radius: 999px; border: 0; background: var(--iris); color: #fff; font: 700 13px var(--sans); cursor: pointer; font-style: normal; }
.mh-say:hover { background: var(--iris-d); }
.mh-say svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mh-say svg path:first-child { fill: currentColor; }
.mh-say--hi { background: var(--saff); }
.mh-say--hi:hover { background: var(--saff-d); }
.mh-say.is-on { box-shadow: 0 0 0 4px rgba(91, 61, 245, .2); }
.mh-entry-img, .mh-band-img { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--sh); background: var(--iris-l); }
.mh-entry-img img, .mh-band-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }

.mh-band { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; align-items: center; background: linear-gradient(120deg, var(--night) 0%, var(--night2) 100%); color: #fff; border-radius: 30px; padding: 34px 36px; box-shadow: var(--sh-l); position: relative; overflow: hidden; }
.mh-band::after { content: "अ"; position: absolute; right: 24px; bottom: -40px; font: 400 220px/1 var(--hindi); color: rgba(255, 255, 255, .05); pointer-events: none; }
.mh-band--solo { grid-template-columns: 1fr; }
.mh-band-kick { margin: 0 0 8px; display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font: 700 13px var(--sans); }
.mh-band h1 { margin: 0; font: 700 clamp(32px, 4.4vw, 52px)/1.08 var(--serif); }
.mh-band-short { margin: 12px 0 0; color: rgba(255, 255, 255, .8); font-size: 17px; max-width: 42em; }
.mh-band-img { position: relative; z-index: 1; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }

/* ------------------------------------------------------------ reading column */
.mh-read { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding-top: 26px; padding-bottom: 50px; align-items: start; }
.mh-read--narrow, .mh-read--home { grid-template-columns: minmax(0, 820px); justify-content: center; }
.mh-article { min-width: 0; }
.mh-article > *:first-child { margin-top: 0; }
.mh-article h2 { font: 700 clamp(26px, 3vw, 32px)/1.2 var(--serif); color: var(--night); margin: 0 0 14px; letter-spacing: -.005em; }
.mh-article h3 { font: 700 18px/1.35 var(--sans); margin: 22px 0 8px; }
.mh-article p, .mh-article li { color: var(--ink); }
.mh-article ul, .mh-article ol { padding-left: 22px; }
.mh-article li { margin: 4px 0; }
.mh-article li::marker { color: var(--ac); font-weight: 700; }
.mh-intro { font-size: 18.5px; }
.mh-intro p:first-child { font-size: 20px; line-height: 1.6; }
.mh-part, .mh-means, .mh-examples, .mh-faq, .mh-list { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 26px 28px; margin: 22px 0; }
.mh-part > *:last-child, .mh-faq > *:last-child { margin-bottom: 0; }

.mh-table { overflow-x: auto; margin: 14px 0; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; }
.mh-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.mh-table caption { text-align: left; padding: 10px 14px; font-weight: 700; color: var(--ink2); }
.mh-table th { background: #f4f2fc; color: var(--night); text-align: left; font: 700 13px var(--sans); letter-spacing: .03em; text-transform: uppercase; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.mh-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mh-table tr:last-child td { border-bottom: 0; }
.mh-table td [lang="hi"], .mh-table td.mh-hi { color: var(--saff-d); font-size: 17px; }

.mh-means h2::before, .mh-examples h2::before { content: attr(data-n); }
.mh-sense { list-style: none; padding: 0 !important; margin: 0; counter-reset: s; display: grid; gap: 12px; }
.mh-sense li { counter-increment: s; position: relative; margin: 0; padding: 16px 18px 16px 60px; border-radius: var(--r-s); background: var(--page); border: 1px solid var(--line); }
.mh-sense li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ac); color: #fff; font: 700 15px var(--serif); }
.mh-sense-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.mh-sense-hi { font: 400 22px/1.4 var(--hindi); color: var(--saff-d); }
.mh-sense-rom { font: italic 500 18px var(--serif); color: var(--ink2); }
.mh-sense-pos { margin-left: auto; padding: 1px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 12px var(--sans); color: var(--mute); }
.mh-sense-en { margin: 6px 0 0; }
.mh-sense-ex { margin: 8px 0 0; padding-left: 12px; border-left: 3px solid color-mix(in srgb, var(--ac) 40%, #fff); color: var(--ink2); font-size: 15.5px; }
.mh-sense-ex span[lang="hi"] { display: block; color: var(--saff-d); font-size: 16.5px; }

.mh-ex { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 10px; }
.mh-ex li { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 20px; padding: 14px 16px; border-radius: var(--r-s); background: var(--page); border: 1px solid var(--line); }
.mh-ex-en { font-weight: 500; }
.mh-ex-en b { color: var(--iris-d); }
.mh-ex-hi { color: var(--saff-d); font-size: 17px; }

.mh-key { list-style: none; margin: 22px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.mh-key li { flex: 1 1 170px; }
.mh-key li { margin: 0; background: var(--card); border-radius: var(--r-s); box-shadow: var(--sh); padding: 14px 16px; border-top: 3px solid var(--ac); }
.mh-key-n { display: block; font: 700 12px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.mh-key-v { display: block; margin-top: 3px; font-weight: 600; line-height: 1.45; }

.mh-toc { background: var(--night); color: #fff; border-radius: var(--r); padding: 18px 22px; margin: 22px 0; }
.mh-toc p { margin: 0 0 8px; font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.mh-toc ol { margin: 0; padding: 0 !important; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.mh-toc li { margin: 0; }
.mh-toc a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; font-size: 14px; line-height: 1.35; }
.mh-toc a:hover, .mh-toc a[aria-current] { background: var(--saff); color: #fff; }

.mh-article .example, .mh-article .note, .mh-article .answer { border-radius: var(--r-s); padding: 14px 18px; margin: 16px 0; }
.mh-article .example { background: var(--iris-l); border-left: 4px solid var(--iris); }
.mh-article .note { background: var(--saff-l); border-left: 4px solid var(--saff); }
.mh-article .answer { background: #e6f8f4; border-left: 4px solid var(--aqua); font-size: 18px; }
.mh-article .example > *:last-child, .mh-article .note > *:last-child, .mh-article .answer > *:last-child { margin-bottom: 0; }
.mh-article .example > *:first-child, .mh-article .note > *:first-child, .mh-article .answer > *:first-child { margin-top: 0; }

.mh-faq h2 { margin-bottom: 10px; }
.mh-faq details { border-top: 1px solid var(--line); }
.mh-faq details:first-of-type { border-top: 0; }
.mh-faq summary { list-style: none; cursor: pointer; padding: 14px 40px 14px 0; position: relative; font-weight: 700; line-height: 1.45; }
.mh-faq summary::-webkit-details-marker { display: none; }
.mh-faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--iris-l); color: var(--iris); font: 700 18px/1 var(--sans); transition: transform .2s; }
.mh-faq details[open] summary::after { transform: rotate(45deg); }
.mh-faq-a { padding: 0 0 12px; color: var(--ink2); }
.mh-faq-a p { margin: 0 0 8px; }

.mh-ad { margin: 22px 0; text-align: center; min-height: 0; }

/* related flip cards */
.mh-next { position: sticky; top: 92px; }
.mh-next h2 { font: 700 22px var(--serif); margin: 0 0 12px; color: var(--night); }
.mh-next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mh-next a { position: relative; display: block; height: 76px; perspective: 800px; text-decoration: none; }
.mh-next-f, .mh-next-b { position: absolute; inset: 0; border-radius: var(--r-s); display: flex; flex-direction: column; justify-content: center; padding: 10px 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.mh-next-f { background: #fff; box-shadow: var(--sh); border-left: 5px solid var(--ac); color: var(--ink); }
.mh-next-f b { font: 700 21px/1.15 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-next-f small { color: var(--mute); font-size: 12.5px; }
.mh-next-b { background: var(--ac); color: #fff; transform: rotateX(180deg); font-size: 19px; line-height: 1.35; overflow: hidden; }
.mh-next a:hover .mh-next-f, .mh-next a:focus-visible .mh-next-f { transform: rotateX(-180deg); }
.mh-next a:hover .mh-next-b, .mh-next a:focus-visible .mh-next-b { transform: rotateX(0); }

/* ------------------------------------------------------------ word lists */
.mh-words { background: var(--card); border-radius: 28px; box-shadow: var(--sh); padding: 28px 30px; margin: 10px 0 56px; }
.mh-words-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.mh-words-head h2 { margin: 0; font: 700 clamp(24px, 3vw, 30px)/1.2 var(--serif); color: var(--night); }
.mh-words-head small { font: 700 14px var(--sans); color: #fff; background: var(--iris); border-radius: 999px; padding: 2px 10px; vertical-align: middle; }
.mh-filter { display: flex; align-items: center; gap: 10px; flex: 1; max-width: 380px; }
.mh-filter span { font: 700 13px var(--sans); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; }
.mh-filter input { flex: 1; min-width: 0; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--page); font: 500 15px var(--sans); color: var(--ink); }
.mh-filter input:focus { outline: none; border-color: var(--iris); background: #fff; }
.mh-words-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 8px; }
.mh-words-jump a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--page); color: var(--night); font: 700 16px var(--serif); text-decoration: none; }
.mh-words-jump a:hover { background: var(--iris); color: #fff; }
.mh-words-group { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.mh-words-letter { margin: 0; font: 700 40px/1 var(--serif); color: var(--iris); }
.mh-words-group ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.mh-words-group a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 14px; border-radius: 12px; background: var(--page); text-decoration: none; color: var(--ink); border-left: 3px solid var(--ac); height: 100%; }
.mh-words-group a:hover { background: var(--iris-l); }
.mh-words-group b { font: 600 18px/1.25 var(--serif); }
.mh-words-group span { color: var(--saff-d); font-size: 15px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.mh-words-none, .mh-list-none { color: var(--mute); margin: 12px 0 0; }

/* hub list table: every word of a topic */
.mh-list h2 { margin-bottom: 6px; }
.mh-list .mh-filter { max-width: none; margin: 14px 0 4px; }
.mh-list tbody tr:target td { background: #fff7d6; }
.mh-list td:first-child { font: 600 18px/1.3 var(--serif); color: var(--night); white-space: nowrap; }
.mh-list td small { display: block; color: var(--mute); font-size: 13px; margin-top: 2px; }
.mh-list td:first-child a { color: var(--iris-d); }

/* ------------------------------------------------------------ dictionary tool */
.mh-tool { background: linear-gradient(140deg, var(--night) 0%, #2b2275 100%); color: #fff; border-radius: 28px; padding: 26px 28px 24px; margin: 0 0 26px; box-shadow: var(--sh-l); }
.mh-dict-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.mh-dict-form input { height: 56px; border-radius: 16px; border: 0; padding: 0 18px; font: 500 18px var(--sans); color: var(--ink); }
.mh-dict-form button { height: 56px; padding: 0 22px; border: 0; border-radius: 16px; background: var(--saff); color: #fff; font: 700 16px var(--sans); cursor: pointer; }
.mh-dict-form button:hover { background: var(--saff-d); }
.mh-dict-modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.mh-dict-modes button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: 600 13px var(--sans); cursor: pointer; }
.mh-dict-modes button[aria-pressed="true"] { background: #fff; color: var(--night); }
.mh-dict-out { margin-top: 18px; display: grid; gap: 10px; }
.mh-dict-hit { background: #fff; color: var(--ink); border-radius: 18px; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; }
.mh-dict-hit b { font: 700 24px/1.2 var(--serif); color: var(--night); }
.mh-dict-hit .mh-dict-hi { font: 400 21px/1.4 var(--hindi); color: var(--saff-d); grid-column: 1; }
.mh-dict-hit .mh-dict-rom { font: italic 500 17px var(--serif); color: var(--ink2); }
.mh-dict-hit p { margin: 4px 0 0; grid-column: 1 / -1; font-size: 15px; color: var(--ink2); }
.mh-dict-hit p [lang="hi"] { color: var(--saff-d); }
.mh-dict-hit .mh-dict-go { grid-column: 2; grid-row: 1; align-self: center; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--iris); color: #fff; font: 700 13px var(--sans); display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }
.mh-dict-hit .mh-dict-go:hover { background: var(--iris-d); color: #fff; }
.mh-dict-none { margin: 0; color: rgba(255, 255, 255, .85); }
.mh-dict-count { margin: 12px 0 0; font-size: 13px; color: rgba(255, 255, 255, .78); }

/* ------------------------------------------------------------ posts */
.mh-postlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mh-postlist a { display: block; background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 18px 22px; text-decoration: none; color: var(--ink); }
.mh-postlist b { display: block; font: 700 22px/1.25 var(--serif); color: var(--night); }
.mh-postlist span { display: block; color: var(--ink2); margin-top: 4px; }
.mh-postlist small { color: var(--mute); }
.mh-article--post { background: #fff; border-radius: 28px; box-shadow: var(--sh); padding: 30px 34px; }
.mh-post-img { border-radius: var(--r); margin-bottom: 20px; }
.mh-latest, .mh-post-topics { margin: 30px 0; }
.mh-latest h2, .mh-post-topics h2 { font: 700 26px var(--serif); color: var(--night); }
.mh-latest ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mh-latest a { display: block; background: #fff; border-radius: var(--r-s); box-shadow: var(--sh); padding: 14px 16px; text-decoration: none; color: var(--ink); height: 100%; }
.mh-latest small { display: block; color: var(--mute); }
.mh-pager .nav-links { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }
.mh-pager a, .mh-pager span { padding: 6px 12px; border-radius: 10px; background: #fff; box-shadow: var(--sh); text-decoration: none; }
.mh-kind-info .mh-article { background: #fff; border-radius: 28px; box-shadow: var(--sh); padding: 30px 34px; }

/* ------------------------------------------------------------ footer */
.mh-foot { background: linear-gradient(180deg, #ece9fb 0%, #e3defa 100%); color: var(--ink); margin-top: 20px; border-top-left-radius: 40px; border-top-right-radius: 40px; }
.mh-foot-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, .8fr); gap: 36px; padding-top: 46px; padding-bottom: 30px; }
.mh-foot-brand img { height: 36px; width: auto; }
.mh-foot-brand p { color: var(--ink2); max-width: 26em; margin: 14px 0 0; font-size: 15px; }
.mh-foot-h { margin: 0 0 12px; font: 700 13px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.mh-foot-topics ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mh-foot-topics a { display: inline-block; padding: 6px 13px; border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; border-bottom: 2px solid var(--ac); }
.mh-foot-topics a:hover { background: var(--night); color: #fff; }
.mh-foot-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mh-foot-info a { color: var(--ink); text-decoration: none; font-size: 15px; }
.mh-foot-info a:hover { color: var(--iris-d); text-decoration: underline; }
.mh-foot-base { border-top: 1px solid rgba(22, 18, 63, .1); padding-top: 16px; padding-bottom: 26px; }
.mh-foot-base p { margin: 0; font-size: 13.5px; color: var(--mute); }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1020px) {
	.mh-read { grid-template-columns: minmax(0, 1fr); }
	.mh-next { position: static; }
	.mh-next ul { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
	.mh-hero-grid { grid-template-columns: 1fr; gap: 36px; }
	.mh-flash { max-width: 460px; }
	.mh-entry { grid-template-columns: 1fr; }
	.mh-entry-img img { aspect-ratio: 16 / 9; }
	.mh-foot-grid { grid-template-columns: 1fr 1fr; }
	.mh-foot-topics { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 720px) {
	body { font-size: 16.5px; }
	.mh-wrap { padding: 0 16px; }
	.mh-bar { height: auto; flex-wrap: wrap; gap: 10px; padding: 10px 16px 12px; }
	.mh-logo img { height: 32px; }
	.mh-look { order: 3; flex-basis: 100%; max-width: none; }
	.mh-topicbtn { margin-left: auto; height: 40px; }
	.mh-hero { padding: 40px 0 72px; }
	.mh-hero-lede { font-size: 16.5px; }
	.mh-flash-card { height: 280px; }
	.mh-flash-face { padding: 24px; }
	.mh-entry-card { padding: 22px 20px 24px; border-radius: 24px; }
	.mh-entry-pair { grid-template-columns: 1fr; gap: 12px; }
	.mh-entry-eq { width: 40px; height: 40px; font-size: 22px; }
	.mh-band { grid-template-columns: 1fr; padding: 26px 22px; border-radius: 24px; }
	.mh-part, .mh-means, .mh-examples, .mh-faq, .mh-list, .mh-words { padding: 20px 18px; border-radius: 20px; }
	.mh-ex li { grid-template-columns: 1fr; }
	.mh-sense li { padding: 14px 14px 14px 52px; }
	.mh-sense li::before { left: 12px; }
	.mh-sense-pos { margin-left: 0; }
	.mh-words-group { grid-template-columns: 1fr; gap: 6px; }
	.mh-words-letter { font-size: 30px; }
	.mh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.mh-tiles a { padding: 14px 14px 12px; }
	.mh-tiles i { font-size: 19px; }
	.mh-dict-form { grid-template-columns: 1fr; }
	.mh-tool { padding: 20px 18px; border-radius: 22px; }
	.mh-dict-hit { grid-template-columns: 1fr; }
	.mh-dict-hit .mh-dict-go { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 6px; }
	.mh-foot-grid { grid-template-columns: 1fr; gap: 26px; }
	.mh-foot-topics { grid-row: auto; }
	.mh-article--post, .mh-kind-info .mh-article { padding: 22px 20px; }
	.mh-list td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
