/*
Theme Name:   Mandir The Temple
Theme URI:    https://mandirthetemple.com/
Description:  Devotional child theme for GeneratePress — homepage with live search and daily Panchang, reader-friendly aarti/chalisa pages, favourites, mobile bottom bar. Pairs with the "Mandir The Temple — Tools" plugin.
Author:       Dollar.Design
Author URI:   https://dollar.design/
Template:     generatepress
Version:      1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License:      GNU General Public License v2 or later
Text Domain:  mandirthetemple-child
*/

/* ========== Tokens ========== */
:root {
	--mtt-saffron: #ff8d26;
	--mtt-saffron-d: #c2410c;
	--mtt-maroon: #7a1b14;
	--mtt-maroon-d: #5c1410;
	--mtt-deep: #3a0d09;
	--mtt-red: #b3261e;
	--mtt-ink: #2a1a12;
	--mtt-body: #3d2a1f;
	--mtt-muted: #6b5444;
	--mtt-cream: #fffaf2;
	--mtt-cream-2: #fff3e4;
	--mtt-cream-3: #fff1e3;
	--mtt-line: #f0d2b2;
	--mtt-line-2: #f3d9bd;
	--mtt-text-accent: #a84a00;
	--mtt-serif: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;
	--mtt-sans: 'Mukta', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--mtt-radius: 16px;
	--mtt-shadow: 0 10px 30px rgba(122, 27, 20, .08);
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.mtt-lock { overflow: hidden; }
body.mtt { margin: 0; background: var(--mtt-cream); color: var(--mtt-ink); font-family: var(--mtt-sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--mtt-maroon); text-decoration: none; }
a:hover { color: var(--mtt-text-accent); }
:focus-visible { outline: 3px solid var(--mtt-saffron); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--mtt-maroon-d); line-height: 1.3; margin: 0 0 .5em; font-weight: 600; }
button { font-family: inherit; }
[hidden] { display: none !important; }
.mtt-sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mtt-skip { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--mtt-maroon); color: #fff; padding: 10px 16px; border-radius: 8px; }
.mtt-skip:focus { top: 12px; color: #fff; }
.mtt-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.mtt-ic { flex: none; }

/* ========== Top bar ========== */
.mtt-topbar { background: var(--mtt-maroon); color: #ffe9d2; font-size: 14px; }
.mtt-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 8px 20px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.mtt-today-strip { font-weight: 600; }
.mtt-topbar__link { color: #ffb877; font-weight: 600; }
.mtt-topbar__link:hover { color: #fff; }

/* ========== Header ========== */
.mtt-header { background: #fff; border-bottom: 3px solid var(--mtt-saffron); position: sticky; top: 0; z-index: 50; }
.mtt-header__in { display: flex; align-items: center; gap: 12px 20px; padding-top: 8px; padding-bottom: 8px; }
.mtt-logo { display: flex; align-items: center; flex: none; }
.mtt-logo__img { height: 64px; width: auto; }
.mtt-logo__text { font-family: var(--mtt-serif); font-size: 26px; color: var(--mtt-maroon); }
.mtt-nav { flex: 1; min-width: 0; }
.mtt-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 2px; flex-wrap: wrap; }
.mtt-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 10px; min-width: 58px; border-radius: 10px; color: var(--mtt-maroon); font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2; }
.mtt-nav a .mtt-ic { color: var(--mtt-saffron-d); }
.mtt-nav a:hover { background: var(--mtt-cream-3); }
.mtt-header__act { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.mtt-iconbtn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 48px; min-height: 48px; padding: 4px 8px; border: 0; background: transparent; border-radius: 10px; color: var(--mtt-maroon); font-size: 13px; font-weight: 600; cursor: pointer; }
.mtt-iconbtn:hover { background: var(--mtt-cream-3); color: var(--mtt-maroon); }
.mtt-favlink .mtt-ic { color: var(--mtt-red); }
.mtt-fav-count { position: absolute; top: 2px; right: 4px; min-width: 19px; height: 19px; border-radius: 10px; background: var(--mtt-red); color: #fff; font-size: 11px; line-height: 19px; text-align: center; font-weight: 700; padding: 0 4px; }
.mtt-menu-open.mtt-iconbtn { display: none; }
.mtt-searchpanel { border-top: 1px solid var(--mtt-line-2); background: var(--mtt-cream-2); padding: 14px 0; }

/* ========== Drawer ========== */
.mtt-drawer { position: fixed; inset: 0; z-index: 100; display: flex; }
.mtt-drawer__scrim { flex: 1; border: 0; background: rgba(42, 26, 18, .45); cursor: pointer; order: 2; }
.mtt-drawer__panel { width: min(340px, 86vw); background: #fff; height: 100%; overflow-y: auto; padding: 14px 16px 30px; box-shadow: 10px 0 30px rgba(0, 0, 0, .15); order: 1; }
.mtt-drawer__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mtt-serif); font-size: 22px; color: var(--mtt-maroon); margin-bottom: 10px; }
.mtt-drawer__nav { list-style: none; margin: 14px 0 0; padding: 0; }
.mtt-drawer__nav a { display: flex; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px dashed var(--mtt-line); color: var(--mtt-ink); font-weight: 600; font-size: 17px; }
.mtt-drawer__nav .mtt-ic { color: var(--mtt-saffron-d); }

/* ========== Search ========== */
.mtt-search { position: relative; margin: 0; }
.mtt-search__box { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--mtt-saffron); border-radius: 14px; padding: 4px 4px 4px 14px; }
.mtt-search__ic { color: var(--mtt-text-accent); }
.mtt-search input[type="search"] { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 18px; padding: 9px 0; background: transparent; color: var(--mtt-ink); -webkit-appearance: none; }
.mtt-search input::placeholder { color: #8a7464; }
.mtt-search__btn { background: var(--mtt-maroon); color: #fff; border: 0; border-radius: 10px; padding: 0 20px; min-height: 46px; font-size: 17px; font-weight: 600; cursor: pointer; }
.mtt-search__btn:hover { background: var(--mtt-maroon-d); }
.mtt-search--big .mtt-search__box { border-radius: 16px; padding: 6px 6px 6px 18px; box-shadow: 0 6px 20px rgba(122, 27, 20, .08); }
.mtt-search--big input[type="search"] { font-size: 19px; }
.mtt-search--big .mtt-search__btn { min-height: 52px; padding: 0 26px; font-size: 18px; }
.mtt-search__results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; background: #fff; border: 1px solid var(--mtt-line); border-radius: 14px; box-shadow: 0 16px 40px rgba(60, 20, 10, .16); padding: 6px; max-height: 70vh; overflow-y: auto; }
.mtt-search__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--mtt-ink); font-weight: 500; }
.mtt-search__item:hover, .mtt-search__item:focus { background: var(--mtt-cream-2); color: var(--mtt-ink); }
.mtt-search__item small { font-size: 12px; font-weight: 600; color: var(--mtt-maroon); background: var(--mtt-cream-3); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.mtt-search__all { width: 100%; text-align: left; border: 0; background: transparent; color: var(--mtt-maroon); font-weight: 700; padding: 10px 12px; cursor: pointer; border-radius: 10px; font-size: 15px; }
.mtt-search__none { margin: 0; padding: 12px; color: var(--mtt-muted); }

/* ========== Hero ========== */
.mtt-hero { background: var(--mtt-cream-2); border-bottom: 1px solid var(--mtt-line-2); }
.mtt-hero__in { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 38px; padding-bottom: 42px; }
.mtt-hero__main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.mtt-hero__side { flex: 1 1 380px; min-width: 0; }
.mtt-hero__kicker { font-size: 15px; font-weight: 600; color: var(--mtt-text-accent); }
.mtt-hero__title { margin: -10px 0 0; font-family: var(--mtt-serif); font-weight: 400; font-size: clamp(30px, 4vw, 46px); line-height: 1.2; color: var(--mtt-maroon-d); }
.mtt-popular { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mtt-popular > span { font-size: 14px; color: var(--mtt-muted); font-weight: 600; }
.mtt-pill { display: inline-flex; align-items: center; min-height: 38px; background: #fff; border: 1px solid #efcfae; color: var(--mtt-maroon); border-radius: 999px; padding: 4px 14px; font-size: 15px; }
.mtt-pill:hover { border-color: var(--mtt-saffron); }
.mtt-quick { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 10px; }
.mtt-quick__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: #fff; border: 1px solid #efcfae; color: var(--mtt-maroon); font-weight: 600; font-size: 15px; text-align: center; line-height: 1.25; }
.mtt-quick__btn:hover { border-color: var(--mtt-saffron); color: var(--mtt-maroon); }
.mtt-quick__btn.is-primary { background: var(--mtt-maroon); border-color: var(--mtt-maroon); color: #fff; }

/* ========== Ticker ========== */
.mtt-ticker { background: var(--mtt-saffron); display: flex; align-items: stretch; overflow: hidden; }
.mtt-ticker__label { background: var(--mtt-red); color: #fff; font-weight: 700; font-size: 17px; padding: 10px 20px; white-space: nowrap; display: flex; align-items: center; position: relative; z-index: 1; }
.mtt-ticker__view { flex: 1; overflow: hidden; display: flex; align-items: center; }
.mtt-ticker__track { display: flex; white-space: nowrap; width: max-content; animation: mttTicker 45s linear infinite; }
.mtt-ticker__track:hover, .mtt-ticker__track:focus-within { animation-play-state: paused; }
.mtt-ticker__track > * { color: var(--mtt-ink); font-weight: 600; font-size: 16px; padding: 10px 22px; border-right: 1px solid rgba(42, 26, 18, .25); }
.mtt-ticker__track a:hover { color: var(--mtt-deep); text-decoration: underline; }
@keyframes mttTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========== Category circles ========== */
.mtt-cats { padding-top: 34px; padding-bottom: 6px; }
.mtt-cats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px 8px; }
.mtt-cats a { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--mtt-ink); font-weight: 600; font-size: 15px; text-align: center; line-height: 1.25; }
.mtt-cats__ring { width: 78px; height: 78px; border-radius: 50%; border: 2px dashed var(--mtt-saffron); padding: 5px; display: flex; transition: transform .2s; }
.mtt-cats__ring > span { flex: 1; border-radius: 50%; background: var(--mtt-cream-3); display: flex; align-items: center; justify-content: center; color: var(--mtt-maroon); }
.mtt-cats a:hover .mtt-cats__ring { transform: rotate(-8deg) scale(1.04); }

/* ========== Layout ========== */
.mtt-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 28px; padding-bottom: 16px; }
.mtt-layout__main, .mtt-article { flex: 999 1 600px; min-width: 0; }
.mtt-layout__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.mtt-sticky { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 22px; }
.mtt-sec { padding-top: 12px; padding-bottom: 28px; }
.mtt-layout + .mtt-sec { padding-top: 24px; }
.mtt-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--mtt-line-2); padding-bottom: 8px; margin-bottom: 16px; }
.mtt-sechead__t { margin: 0; font-family: var(--mtt-serif); font-weight: 400; font-size: 32px; color: var(--mtt-maroon-d); }
.mtt-sechead a { font-weight: 700; font-size: 16px; white-space: nowrap; }

/* Chips */
.mtt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mtt-chip { min-height: 40px; background: #fff; color: var(--mtt-maroon); border: 1px solid #efcfae; border-radius: 999px; padding: 6px 16px; font-size: 15px; font-weight: 600; cursor: pointer; }
.mtt-chip:hover { border-color: var(--mtt-saffron); }
.mtt-chip.is-on { background: var(--mtt-maroon); color: #fff; border-color: var(--mtt-maroon); }

/* Aarti rows */
.mtt-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mtt-row { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--mtt-line); border-radius: 14px; padding: 8px 6px 8px 14px; }
.mtt-row:hover { border-color: var(--mtt-saffron); }
.mtt-row__ic { color: var(--mtt-saffron-d); }
.mtt-row__t { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--mtt-ink); }
.mtt-row__t span { font-size: 17px; font-weight: 600; line-height: 1.35; }
.mtt-row__t small { font-size: 13px; color: var(--mtt-muted); }
.mtt-row__t:hover { color: var(--mtt-maroon); }

/* Favourite button */
.mtt-fav { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; border: 0; background: transparent; border-radius: 10px; color: #9c6b4e; cursor: pointer; padding: 0 8px; }
.mtt-fav:hover { background: var(--mtt-cream-3); }
.mtt-fav.is-on { color: var(--mtt-red); }
.mtt-fav.is-on .mtt-ic path { fill: currentColor; }

/* Chalisa tiles */
.mtt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.mtt-tile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--mtt-line); border-top: 4px solid var(--mtt-saffron); border-radius: 14px; padding: 16px; color: var(--mtt-ink); }
.mtt-tile:hover { border-color: var(--mtt-saffron); color: var(--mtt-ink); }
.mtt-tile__t { font-family: var(--mtt-serif); font-size: 20px; line-height: 1.35; color: var(--mtt-maroon-d); }
.mtt-tile__s { font-size: 14px; color: var(--mtt-muted); }

/* Lists */
.mtt-twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.mtt-twocol .mtt-sechead__t { font-size: 28px; }
.mtt-list { list-style: none; margin: 0; padding: 0; }
.mtt-list a { display: flex; gap: 10px; align-items: center; padding: 10px 4px; border-bottom: 1px dashed var(--mtt-line); color: var(--mtt-ink); font-size: 17px; }
.mtt-list .mtt-ic { color: var(--mtt-saffron-d); }
.mtt-om { font-family: var(--mtt-serif); color: var(--mtt-saffron-d); font-size: 20px; width: 20px; text-align: center; }

/* Cards */
.mtt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.mtt-grid--4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.mtt-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mtt-line); border-radius: 16px; overflow: hidden; }
.mtt-card:hover { border-color: var(--mtt-saffron); box-shadow: var(--mtt-shadow); }
.mtt-card__img { display: block; aspect-ratio: 16 / 10; background: #f6e6d4; overflow: hidden; }
.mtt-card__img img { width: 100%; height: 100%; object-fit: cover; }
.mtt-card__ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #c99a74; }
.mtt-card__body { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 4px; padding-right: 52px; }
.mtt-card__cat { display: inline-block; font-size: 13px; font-weight: 700; color: var(--mtt-text-accent); }
.mtt-card__title { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.mtt-card__title a { color: var(--mtt-ink); }
.mtt-card__title a:hover { color: var(--mtt-maroon); }
.mtt-card .mtt-fav { position: absolute; right: 6px; bottom: 8px; }

/* Side boxes */
.mtt-box { background: #fff; border: 1px solid var(--mtt-line); border-radius: 18px; overflow: hidden; }
.mtt-box--cream { background: var(--mtt-cream-2); padding: 16px; }
.mtt-box__h { margin: 0; padding: 14px 16px; font-size: 20px; color: var(--mtt-maroon-d); border-bottom: 1px solid var(--mtt-line-2); }
.mtt-box--cream .mtt-box__h { padding: 0 0 10px; border: 0; }
.mtt-box__h small { font-size: 14px; color: var(--mtt-muted); font-weight: 500; }
.mtt-box__more { display: block; padding: 10px 16px; text-align: right; font-weight: 700; font-size: 15px; }
.mtt-box .mtt-up__item { padding: 11px 16px; }
.mtt-vichar { background: var(--mtt-maroon); color: #fff; border-radius: 18px; padding: 20px; }
.mtt-vichar__k { font-size: 14px; color: #ffd9b3; font-weight: 600; }
.mtt-vichar__t { margin: 8px 0 6px; font-family: var(--mtt-serif); font-size: 23px; line-height: 1.5; }
.mtt-vichar__m { margin: 0 0 8px; color: #ffe9d2; }
.mtt-vichar__s { font-size: 14px; color: #ffd9b3; }
.mtt-rashis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mtt-rashis a { background: #fff; border: 1px solid var(--mtt-line); border-radius: 10px; padding: 8px 2px; text-align: center; font-size: 15px; font-weight: 600; }
.mtt-cta { display: flex; align-items: center; gap: 12px; background: var(--mtt-maroon-d); color: #fff; border-radius: 16px; padding: 16px; }
.mtt-cta .mtt-ic { color: var(--mtt-saffron); }
.mtt-cta b { display: block; }
.mtt-cta small { color: #ffd9b3; }
.mtt-cta:hover { color: #fff; background: var(--mtt-maroon); }

/* Tools band */
.mtt-toolsband { background: var(--mtt-maroon-d); margin-top: 12px; }
.mtt-toolsband .mtt-wrap { padding-top: 40px; padding-bottom: 40px; }
.mtt-toolsband__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.mtt-toolsband h2 { margin: 0; font-family: var(--mtt-serif); font-weight: 400; font-size: 34px; color: #fff; }
.mtt-toolsband__head span { color: #ffd9b3; }
.mtt-toolsband__head a { color: #ffb877; font-weight: 700; }
.mtt-toolsband .mtt-toolcard { background: #74201a; border-color: #8f3a2e; color: #fff; }
.mtt-toolsband .mtt-toolcard small { color: #ffd9b3; }
.mtt-toolsband a.mtt-toolcard:hover { border-color: var(--mtt-saffron); }
.mtt-toolsband .mtt-toolcard.is-soon { opacity: .75; }
.mtt-toolsband .mtt-toolcard.is-soon .mtt-toolcard__ic { background: #8f3a2e; color: #ffd9b3; }

/* ========== Page head / archive ========== */
.mtt-pagehead { background: var(--mtt-cream-2); border-bottom: 1px solid var(--mtt-line-2); padding: 26px 0 28px; }
.mtt-pagehead__t { font-family: var(--mtt-serif); font-weight: 400; font-size: clamp(30px, 4vw, 42px); margin: 6px 0 6px; }
.mtt-pagehead__d { color: var(--mtt-body); max-width: 760px; margin-bottom: 14px; }
.mtt-pagehead .mtt-search { max-width: 720px; }
.mtt-crumbs { font-size: 14px; color: var(--mtt-muted); }
.mtt-crumbs a { color: var(--mtt-maroon); }
.mtt-crumbs p { margin: 0; }
.mtt-crumbs .separator { margin: 0 6px; color: #b08a6e; }
.mtt-empty { background: #fff; border: 1px dashed var(--mtt-line); border-radius: 14px; padding: 24px; color: var(--mtt-muted); }
.mtt-pages { margin-top: 28px; }
.mtt-pages ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; justify-content: center; }
.mtt-pages a, .mtt-pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--mtt-line); background: #fff; font-weight: 600; }
.mtt-pages .current { background: var(--mtt-maroon); color: #fff; border-color: var(--mtt-maroon); }

/* ========== Single post ========== */
.mtt-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 120; pointer-events: none; }
.mtt-progress span { display: block; height: 100%; background: var(--mtt-saffron); transform: scaleX(0); transform-origin: 0 50%; }
.mtt-article__head { margin-bottom: 16px; }
.mtt-article__title { font-family: var(--mtt-serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.3; margin: 6px 0 10px; }
.mtt-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--mtt-muted); }
.mtt-article__img { margin: 0 0 16px; border-radius: 18px; overflow: hidden; background: #f6e6d4; }
.mtt-article__img img { width: 100%; }
.mtt-reader { position: sticky; top: 87px; z-index: 20; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; background: rgba(255, 250, 242, .96); backdrop-filter: blur(6px); border: 1px solid var(--mtt-line); border-radius: 14px; padding: 6px; margin-bottom: 18px; }
.mtt-reader__grp { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.mtt-rbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--mtt-line); background: #fff; border-radius: 10px; color: var(--mtt-maroon); font-size: 15px; font-weight: 700; cursor: pointer; }
.mtt-rbtn:hover { border-color: var(--mtt-saffron); color: var(--mtt-maroon); }
.mtt-rbtn.is-on { background: var(--mtt-maroon); border-color: var(--mtt-maroon); color: #fff; }
.mtt-rbtn.is-done { background: #2f6a31; border-color: #2f6a31; color: #fff; }
.mtt-rbtn--wa { color: #136c33; }
.mtt-reader .mtt-fav { border: 1px solid var(--mtt-line); background: #fff; font-weight: 700; font-size: 15px; }

.mtt-toc ol { margin: 0; padding: 10px 16px 14px 36px; }
.mtt-toc li { margin: 4px 0; font-size: 15px; }
.mtt-toc--inline { background: #fff; border: 1px solid var(--mtt-line); border-radius: 14px; margin-bottom: 18px; }
.mtt-toc--inline summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--mtt-maroon-d); }

/* Article content — tuned for lyrics (lines separated by <br>). */
.mtt-content { --mtt-fs: 19px; font-size: var(--mtt-fs); line-height: 1.85; color: var(--mtt-body); overflow-wrap: break-word; }
.mtt-content > * { margin-top: 0; margin-bottom: 1.1em; }
.mtt-content h2 { font-family: var(--mtt-serif); font-weight: 400; font-size: 1.45em; color: var(--mtt-maroon-d); margin-top: 1.6em; scroll-margin-top: 170px; }
.mtt-content h3 { font-size: 1.15em; margin-top: 1.4em; scroll-margin-top: 170px; }
.mtt-content h4 { font-size: 1.05em; }
.mtt-content strong { color: var(--mtt-ink); }
.mtt-content a { text-decoration: underline; text-decoration-color: rgba(122, 27, 20, .35); text-underline-offset: 3px; }
.mtt-content ul, .mtt-content ol { padding-left: 1.4em; }
.mtt-content li { margin: .3em 0; }
.mtt-content hr, .mtt-content .wp-block-separator { border: 0; height: 18px; margin: 1.6em 0; background: radial-gradient(circle, var(--mtt-saffron) 3px, transparent 4px) center / 22px 18px repeat-x; opacity: .7; }
.mtt-content blockquote { margin-left: 0; margin-right: 0; background: var(--mtt-cream-2); border-radius: 14px; padding: 16px 20px; font-family: var(--mtt-serif); color: var(--mtt-maroon-d); }
.mtt-content blockquote p:last-child { margin-bottom: 0; }
.mtt-content figure { margin-left: 0; margin-right: 0; }
.mtt-content figure img { border-radius: 14px; }
.mtt-content figcaption { font-size: 14px; color: var(--mtt-muted); text-align: center; margin-top: 6px; }
.mtt-content table { width: 100%; border-collapse: collapse; font-size: .9em; display: block; overflow-x: auto; }
.mtt-content th, .mtt-content td { border: 1px solid var(--mtt-line); padding: 8px 12px; text-align: left; }
.mtt-content th { background: var(--mtt-cream-2); }
.mtt-content .wp-block-embed__wrapper { position: relative; }
.mtt-content iframe { border-radius: 14px; }
.mtt-content .wp-block-embed-youtube .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.mtt-content .wp-block-embed-youtube iframe { width: 100%; height: 100%; }
.mtt-content .wp-block-rank-math-toc-block { background: #fff; border: 1px solid var(--mtt-line); border-radius: 14px; padding: 14px 18px; font-size: 15px; line-height: 1.6; }
.mtt-content .wp-block-rank-math-toc-block h2 { font-family: var(--mtt-sans); font-weight: 700; font-size: 18px; margin: 0 0 6px; }
.mtt-content .wp-block-rank-math-toc-block ul { margin: 0; }
.mtt-content .sharethis-inline-share-buttons { margin-bottom: 1em; }
.mtt-content .mtt-lyrics-hi, .mtt-content .mtt-lyrics-en { background: #fff; border: 1px solid var(--mtt-line); border-radius: 14px; padding: 16px 20px; }
.mtt-content .mtt-lyrics-hi { font-family: var(--mtt-serif); font-size: 1.08em; color: var(--mtt-maroon-d); }
.mtt-content .rank-math-faq-item, .mtt-content .wp-block-yoast-faq-block .schema-faq-section { background: #fff; border: 1px solid var(--mtt-line); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.mtt-content .rank-math-question { font-size: 1.05em; margin: 0 0 6px; }
.mtt-ad { margin: 1.4em 0; text-align: center; min-height: 90px; }

.mtt-article__foot { margin-top: 26px; display: flex; flex-direction: column; gap: 18px; }
.mtt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.mtt-tags a { background: #fff; border: 1px solid var(--mtt-line); border-radius: 999px; padding: 5px 12px; font-size: 14px; }
.mtt-sharebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--mtt-cream-2); border: 1px solid var(--mtt-line); border-radius: 14px; padding: 12px 14px; }
.mtt-sharebar > span { font-weight: 600; margin-right: 6px; }
.mtt-prevnext { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mtt-prevnext a { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mtt-line); border-radius: 14px; padding: 12px 16px; color: var(--mtt-ink); }
.mtt-prevnext a:hover { border-color: var(--mtt-saffron); }
.mtt-prevnext .is-next { text-align: right; grid-column: 2; }
.mtt-prevnext small { color: var(--mtt-text-accent); font-weight: 700; }
.mtt-related { margin-top: 18px; }
.mtt-comments { margin-top: 20px; background: #fff; border: 1px solid var(--mtt-line); border-radius: 16px; padding: 18px; }
.mtt-comments textarea, .mtt-comments input[type="text"], .mtt-comments input[type="email"], .mtt-comments input[type="url"] { width: 100%; border: 1px solid var(--mtt-line); border-radius: 10px; padding: 10px; font: inherit; }
.mtt-comments input[type="submit"] { background: var(--mtt-maroon); color: #fff; border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.mtt-page { padding-top: 24px; padding-bottom: 40px; }
.mtt-page .mtt-content { max-width: 920px; }

/* ========== Footer ========== */
.mtt-footer { background: var(--mtt-deep); color: #f5d9c0; margin-top: 30px; }
.mtt-footer__in { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 44px; padding-bottom: 28px; }
.mtt-footer__brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; }
.mtt-footer__brand p { margin: 0; font-size: 15px; max-width: 320px; }
.mtt-footer__logo { width: 96px; height: auto; }
.mtt-footer__name { font-family: var(--mtt-serif); font-size: 26px; color: #fff; }
.mtt-footer__social { display: flex; gap: 14px; flex-wrap: wrap; }
.mtt-footer a { color: #f5d9c0; }
.mtt-footer a:hover { color: #fff; }
.mtt-footer__social a { color: #ffb877; font-weight: 600; }
.mtt-footer__col { flex: 1 1 160px; }
.mtt-footer__col h2 { font-size: 17px; color: #fff; margin: 0 0 10px; }
.mtt-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.mtt-footer__bar { border-top: 1px solid #5c2a22; }
.mtt-footer__bar .mtt-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 14px; padding-bottom: 14px; font-size: 14px; color: #d9b89c; }
.mtt-footer__bar a { color: #ffb877; }

/* ========== Bottom nav (mobile) ========== */
.mtt-bottomnav { display: none; }

/* ========== Plugin parts inside the theme ========== */
.mtt-hero__side .mtt-pc { box-shadow: var(--mtt-shadow); }
.mtt-sticky .mtt-pc__h { font-size: 21px; }

/* ========== Responsive ========== */
@media (max-width: 1150px) {
	.mtt-nav { display: none; }
	.mtt-menu-open.mtt-iconbtn { display: inline-flex; }
	.mtt-header__in { justify-content: space-between; }
	.mtt-logo { margin: 0 auto 0 0; }
}
@media (max-width: 900px) {
	.mtt-layout { gap: 24px; }
	.mtt-layout--post .mtt-layout__side { display: none; }
	.mtt-sticky { position: static; }
	.mtt-reader { top: 76px; }
	.mtt-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mtt-bottomnav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--mtt-line); box-shadow: 0 -6px 18px rgba(60, 20, 10, .08); padding: 4px 4px calc(6px + env(safe-area-inset-bottom)); }
	.mtt-bottomnav a, .mtt-bottomnav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 0; min-height: 52px; font-size: 12px; font-weight: 600; color: var(--mtt-muted); background: transparent; border: 0; cursor: pointer; }
	.mtt-bottomnav [aria-current="page"] { color: var(--mtt-red); }
	.mtt-bottomnav .mtt-fav-count { top: 0; right: calc(50% - 22px); }
	body.mtt { padding-bottom: 70px; }
	.mtt-header__act { display: none; }
	.mtt-menu-open.mtt-iconbtn { order: 3; }
	.mtt-logo { margin: 0 auto; }
}
@media (max-width: 700px) {
	.mtt-wrap { padding: 0 14px; }
	body.mtt { font-size: 16px; }
	.mtt-topbar { font-size: 13px; }
	.mtt-topbar__link { display: none; }
	.mtt-logo__img { height: 52px; }
	.mtt-hero__in { padding-top: 20px; padding-bottom: 22px; gap: 20px; }
	.mtt-hero__title { font-size: 27px; margin-top: -6px; }
	.mtt-hero__side { flex-basis: 100%; }
	.mtt-search input[type="search"] { font-size: 17px; }
	.mtt-search--big .mtt-search__btn { padding: 0 14px; min-height: 46px; font-size: 16px; }
	.mtt-popular { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
	.mtt-popular > * { flex: none; }
	.mtt-quick { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 6px; }
	.mtt-quick__btn { font-size: 12px; padding: 10px 2px; gap: 4px; }
	.mtt-quick__btn .mtt-ic { width: 22px; height: 22px; }
	.mtt-ticker__label { font-size: 15px; padding: 8px 12px; }
	.mtt-ticker__track > * { font-size: 15px; padding: 8px 16px; }
	.mtt-cats { padding-top: 22px; }
	.mtt-cats ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 4px; }
	.mtt-cats a { font-size: 13px; }
	.mtt-cats__ring { width: 62px; height: 62px; padding: 4px; }
	.mtt-cats__ring .mtt-ic { width: 24px; height: 24px; }
	.mtt-sechead__t { font-size: 26px; }
	.mtt-rows { grid-template-columns: 1fr; }
	.mtt-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
	.mtt-chip { flex: none; }
	.mtt-twocol { grid-template-columns: 1fr; }
	.mtt-tiles { gap: 8px; }
	.mtt-tile { padding: 12px; }
	.mtt-tile__t { font-size: 18px; }
	.mtt-grid, .mtt-grid--4 { grid-template-columns: 1fr; gap: 12px; }
	.mtt-grid .mtt-card { flex-direction: row; align-items: center; }
	.mtt-grid .mtt-card__img { width: 112px; flex: none; aspect-ratio: 4 / 3; }
	.mtt-grid .mtt-card__body { padding: 10px 48px 10px 12px; }
	.mtt-grid .mtt-card__title { font-size: 16px; }
	.mtt-grid .mtt-card .mtt-fav { top: 50%; bottom: auto; transform: translateY(-50%); }
	.mtt-toolsband h2 { font-size: 28px; }
	.mtt-toolsband .mtt-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.mtt-toolsband .mtt-toolcard { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
	.mtt-toolsband .mtt-toolcard__ic { width: 40px; height: 40px; }
	.mtt-reader { top: 70px; }
	.mtt-reader__grp .mtt-rbtn span, .mtt-reader .mtt-fav__label { display: none; }
	.mtt-content { --mtt-fs: 18px; }
	.mtt-prevnext { grid-template-columns: 1fr; }
	.mtt-prevnext .is-next { grid-column: auto; }
	.mtt-footer__in { gap: 22px; }
	.mtt-footer__col { flex-basis: 40%; }
}
@media (prefers-reduced-motion: reduce) {
	.mtt-ticker__track { animation: none; }
	html { scroll-behavior: auto; }
}

/* ========== Print ========== */
@media print {
	.mtt-topbar, .mtt-header, .mtt-reader, .mtt-layout__side, .mtt-article__foot, .mtt-related, .mtt-comments, .mtt-footer, .mtt-bottomnav, .mtt-progress, .mtt-ad, .mtt-toc, .sharethis-inline-share-buttons { display: none !important; }
	body.mtt { background: #fff; padding: 0; }
	.mtt-content { font-size: 13pt; color: #000; }
}

/* Admin bar offsets (logged-in users) */
@media (min-width: 783px) { .admin-bar .mtt-header { top: 32px; } .admin-bar .mtt-reader { top: 119px; } .admin-bar .mtt-sticky { top: 136px; } }

/* 1.0.1 — ticker sits directly under the header */
.mtt-ticker { border-bottom: 1px solid rgba(42, 26, 18, .15); }

/* 1.0.2 — fixes from the live-site review */
/* Aaj ka Vichar fills the hero's left column */
.mtt-vichar--hero { display: flex; flex-direction: column; background: #fff; color: var(--mtt-ink); border: 1px solid var(--mtt-line); border-left: 0; position: relative; overflow: hidden; padding: 20px 22px 20px 26px; }
.mtt-vichar--hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--mtt-saffron); }
.mtt-vichar--hero .mtt-vichar__k { color: var(--mtt-text-accent); }
.mtt-vichar--hero .mtt-vichar__t { color: var(--mtt-maroon-d); font-size: 26px; }
.mtt-vichar--hero .mtt-vichar__m { color: var(--mtt-body); }
.mtt-vichar--hero .mtt-vichar__s { color: var(--mtt-muted); }
/* Panchang tool inside page content: keep its own colours and full-width tables */
.mtt-content .mtt-panchang__hero h2 { color: #fff; margin: 0 0 4px; font-size: 30px; }
.mtt-content .mtt-panchang__hero p { color: #ffe9d2; margin: 0; }
.mtt-content .mtt-table { display: table; font-size: 16px; line-height: 1.5; }
.mtt-content .mtt-tool h3 { font-family: var(--mtt-sans); font-weight: 700; font-size: 21px; }
.mtt-content .mtt-tool h4 { font-size: 18px; }
.mtt-content .mtt-tool ul { padding-left: 0; }
.mtt-content .mtt-tool li { margin: 0; }
.mtt-content .mtt-tool a { text-decoration: none; }
.mtt-content .mtt-tool { font-size: 16px; line-height: 1.5; }
/* The theme has its own share buttons — hide ShareThis inline buttons until the plugin is removed */
.sharethis-inline-share-buttons { display: none !important; }
/* Reader toolbar on phones: one compact row */
@media (max-width: 700px) {
	.mtt-reader { flex-wrap: nowrap; gap: 4px; padding: 4px; overflow-x: auto; }
	.mtt-reader__grp { flex-wrap: nowrap; gap: 3px; }
	.mtt-reader .mtt-rbtn, .mtt-reader .mtt-fav { min-width: 40px; min-height: 40px; padding: 0 8px; }
	.mtt-vichar--hero .mtt-vichar__t { font-size: 21px; }
}
