/* ==========================================================================
   HindiSpark – site-wide styles (header, footer, fonts, buttons)
   Loaded on every page, after Twenty Twenty-One's stylesheet.

   Twenty Twenty-One styles <button>, <a> and <input> with fairly strong
   selectors. Rules that must win over them are prefixed with
   :is(#hs-header, #hs-main, #hs-footer) so they only touch our own markup.
   ========================================================================== */

:root {
	--hs-blue: #1d4ed8;
	--hs-blue-dark: #1e3a8a;
	--hs-blue-soft: #eef2ff;
	--hs-saffron: #c2410c;
	--hs-saffron-dark: #9a3412;
	--hs-saffron-soft: #fff4e6;
	--hs-ink: #111827;
	--hs-body: #374151;
	--hs-muted: #4b5563;
	--hs-line: #e5e7eb;
	--hs-mist: #f5f7fb;
	--hs-green: #15803d;
	--hs-night: #0f172a;
	--hs-radius: 18px;
	--hs-shadow: 0 12px 28px rgba(17, 24, 39, .10);
	--hs-font-head: 'Poppins', 'Mukta', 'Mukta Mahee', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--hs-font-body: 'Mukta', 'Mukta Mahee', 'Noto Sans Devanagari', 'Noto Sans Gurmukhi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

	/* Twenty Twenty-One reads these: posts and pages use the same fonts as the homepage */
	--font-base: var(--hs-font-body);
	--font-headings: var(--hs-font-head);
}

/* --------------------------------------------------------------------------
   Base for our own markup
   ----------------------------------------------------------------------- */
.hs-header, .hs-footer, .hs-page {
	font-family: var(--hs-font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--hs-ink);
	-webkit-font-smoothing: antialiased;
}
.hs-header *, .hs-footer *, .hs-page * { box-sizing: border-box; }
.hs-header ul, .hs-footer ul { list-style: none; margin: 0; padding: 0; }
.hs-footer h2, .hs-footer p, .hs-page h1, .hs-page h2, .hs-page h3, .hs-page p { margin: 0; }
.hs-page img { max-width: 100%; height: auto; display: block; }
.hs-icon { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.hs-header [lang="hi"], .hs-footer [lang="hi"], .hs-page [lang="hi"] { line-height: 1.75; }

.hs-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Links: no underline, no TT1 focus background */
:is(#hs-header, #hs-main, #hs-footer) a { text-decoration: none; }
:is(#hs-header, #hs-main, #hs-footer) a:focus { background: transparent; text-decoration: none; outline: none; }
:is(#hs-header, #hs-main, #hs-footer) :is(a, button, input):focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }

/* Buttons: reset TT1 button styling inside our markup */
:is(#hs-header, #hs-main, #hs-footer) button {
	font-family: var(--hs-font-head);
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Buttons, links, small parts (used in header and homepage)
   ----------------------------------------------------------------------- */
:is(#hs-header, #hs-main, #hs-footer) .hs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; margin: 0; border-radius: 10px; border: 1px solid transparent;
	font-family: var(--hs-font-head); font-size: 14px; font-weight: 600; line-height: 1;
	white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s;
}
:is(#hs-header, #hs-main, #hs-footer) .hs-btn--lg { min-height: 50px; padding: 0 22px; border-radius: 12px; font-size: 15px; }
:is(#hs-header, #hs-main, #hs-footer) .hs-btn--primary { background-color: var(--hs-blue); border-color: var(--hs-blue); color: #fff; }
:is(#hs-header, #hs-main, #hs-footer) .hs-btn--primary:hover { background-color: var(--hs-blue-dark); border-color: var(--hs-blue-dark); color: #fff; }
:is(#hs-header, #hs-main, #hs-footer) .hs-btn--outline { background-color: #fff; color: var(--hs-ink); border: 1.5px solid var(--hs-ink); }
:is(#hs-header, #hs-main, #hs-footer) .hs-btn--outline:hover { background-color: var(--hs-ink); color: #fff; }
:is(#hs-header, #hs-main, #hs-footer) .hs-btn--ghost { background-color: #fff; color: var(--hs-ink); border-color: #d1d5db; }
:is(#hs-header, #hs-main, #hs-footer) .hs-btn--ghost:hover { background-color: #fff; color: var(--hs-ink); border-color: var(--hs-ink); }
:is(#hs-header, #hs-main, #hs-footer) .hs-btn--whatsapp { background-color: var(--hs-green); border-color: var(--hs-green); color: #fff; }
:is(#hs-header, #hs-main, #hs-footer) .hs-btn--whatsapp:hover { background-color: #166534; border-color: #166534; color: #fff; }

:is(#hs-header, #hs-main, #hs-footer) .hs-link {
	display: inline-flex; align-items: center; gap: 6px; padding: 10px 0;
	font-family: var(--hs-font-head); font-size: 15px; font-weight: 600; color: var(--hs-blue);
}
:is(#hs-header, #hs-main, #hs-footer) .hs-link:hover { color: var(--hs-blue-dark); }
:is(#hs-header, #hs-main, #hs-footer) .hs-link--saffron { color: var(--hs-saffron-dark); }

/* Search form */
.hs-search {
	display: flex; align-items: center; gap: 8px; padding: 6px; max-width: 580px; margin: 0;
	background: #fff; border: 1px solid #d1d5db; border-radius: 14px; box-shadow: 0 4px 14px rgba(17, 24, 39, .06);
}
.hs-search:focus-within { border-color: var(--hs-blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15); }
.hs-search__icon { display: flex; padding-left: 10px; color: #6b7280; }
:is(#hs-header, #hs-main, #hs-footer) .hs-search__input {
	flex: 1; min-width: 0; max-width: none; margin: 0; padding: 10px 4px;
	border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none;
	font-family: var(--hs-font-body); font-size: 17px; line-height: 1.4; color: var(--hs-ink);
}
:is(#hs-header, #hs-main, #hs-footer) .hs-search__input:focus { outline: none; }
:is(#hs-header, #hs-main, #hs-footer) .hs-search .hs-btn { min-height: 46px; padding: 0 22px; font-size: 15px; }

/* --------------------------------------------------------------------------
   Header
   ----------------------------------------------------------------------- */
.hs-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--hs-line); }
.admin-bar .hs-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hs-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hs-header { top: 0; } }

.hs-header__inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.hs-header__logo { margin-right: auto; display: flex; align-items: center; }
.hs-header .custom-logo-link { display: block; }
.hs-header .custom-logo { height: 36px; width: auto; max-width: 200px; display: block; }

.hs-logo-text { font-family: var(--hs-font-head); font-size: 24px; font-weight: 700; color: var(--hs-ink); letter-spacing: -.3px; }
:is(#hs-header, #hs-footer) .hs-logo-text { color: var(--hs-ink); }
.hs-logo-text span { color: var(--hs-blue); }
:is(#hs-header, #hs-footer) .hs-logo-text--light { color: #fff; }
.hs-logo-text--light span { color: #93c5fd; }

.hs-menu { display: flex; align-items: center; gap: 4px; }
.hs-menu > li { position: relative; }
#hs-header .hs-menu a {
	display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 8px;
	color: var(--hs-body); font-size: 16px; font-weight: 500;
}
#hs-header .hs-menu a:hover { color: var(--hs-blue); }
#hs-header .hs-menu :is(.current-menu-item, .current_page_item, .current-menu-ancestor) > a { color: var(--hs-blue); background: var(--hs-blue-soft); }
.hs-menu .menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin-left: 4px; border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg);
}
.hs-menu .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 10; min-width: 220px; margin: 0; padding: 8px; list-style: none;
	background: #fff; border: 1px solid var(--hs-line); border-radius: 12px; box-shadow: var(--hs-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.hs-menu li:hover > .sub-menu, .hs-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
#hs-header .hs-menu .sub-menu a { padding: 8px 12px; }

#hs-header :is(.hs-header__search-btn, .hs-header__toggle) {
	width: 44px; height: 44px; padding: 0; margin: 0; border-radius: 10px; border: 1px solid var(--hs-line);
	background-color: #fff; color: var(--hs-ink); display: inline-flex; align-items: center; justify-content: center;
}
#hs-header :is(.hs-header__search-btn, .hs-header__toggle):hover { border-color: var(--hs-ink); background-color: #fff; color: var(--hs-ink); }
#hs-header .hs-header__toggle { display: none; }
.hs-header__toggle-open, .hs-header__toggle-close { display: inline-flex; }
.hs-header__toggle-close { display: none; }
.hs-header__toggle[aria-expanded="true"] .hs-header__toggle-open { display: none; }
.hs-header__toggle[aria-expanded="true"] .hs-header__toggle-close { display: inline-flex; }

.hs-header__search { border-top: 1px solid var(--hs-line); padding: 14px 0; background: #fff; }
.hs-header__search[hidden] { display: none; }
.hs-header__search .hs-search { max-width: none; box-shadow: none; }

@media (max-width: 960px) {
	#hs-header .hs-header__toggle { display: inline-flex; order: 3; }
	#hs-header .hs-header__search-btn { order: 2; }
	.hs-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%; box-sizing: border-box;
		max-height: calc(100vh - 120px); overflow-y: auto;
		background: #fff; border-bottom: 1px solid var(--hs-line); box-shadow: var(--hs-shadow); padding: 8px 16px 16px;
	}
	.hs-nav.is-open { display: block; }
	.hs-menu { flex-direction: column; align-items: stretch; }
	.hs-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 16px; }
}

/* --------------------------------------------------------------------------
   Footer
   ----------------------------------------------------------------------- */
.hs-footer { background: var(--hs-night); color: #cbd5e1; margin-top: 0; }
.hs-footer__grid { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 64px; padding-bottom: 32px; }
.hs-footer__brand { flex: 2 1 300px; display: flex; flex-direction: column; gap: 14px; }
.hs-footer__brand p { font-size: 16px; max-width: 360px; color: #cbd5e1; }
.hs-footer .custom-logo-link { display: inline-block; }
.hs-footer .custom-logo { height: 34px; width: auto; max-width: 200px; filter: brightness(0) invert(1); }
.hs-footer__col { flex: 1 1 150px; }
.hs-footer .hs-footer__title { font-family: var(--hs-font-head); font-size: 16px; font-weight: 600; line-height: 1.4; color: #fff; margin: 0 0 14px; }
.hs-footer__list { display: flex; flex-direction: column; gap: 10px; }
#hs-footer .hs-footer__list a { color: #cbd5e1; font-size: 16px; }
#hs-footer .hs-footer__list a:hover { color: #fff; }
.hs-social { display: flex; gap: 10px; margin-top: 6px; }
#hs-footer .hs-social a {
	width: 44px; height: 44px; border-radius: 12px; background: #1e293b; color: #fff;
	display: inline-flex; align-items: center; justify-content: center; transition: background-color .15s;
}
#hs-footer .hs-social a:hover { background: var(--hs-blue); color: #fff; }
.hs-footer__bottom { border-top: 1px solid #1e293b; }
.hs-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 20px; font-size: 14px; color: #94a3b8; }


/* ==========================================================================
   Shared components (homepage, listings, articles, 404)
   ========================================================================== */
/* Small parts */
.hs-chip {
	padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--hs-line);
	color: var(--hs-body); font-size: 15px;
}
#hs-main .hs-chip { color: var(--hs-body); }
#hs-main .hs-chip:hover { border-color: var(--hs-blue); color: var(--hs-blue); }

.hs-pill {
	display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
	padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 600;
}
.hs-pill--saffron { background: var(--hs-saffron-soft); color: var(--hs-saffron-dark); }

.hs-tag {
	align-self: flex-start; display: inline-block; padding: 2px 10px; border-radius: 999px;
	background: var(--hs-blue-soft); color: var(--hs-blue-dark); font-size: 13px; font-weight: 600; line-height: 1.6;
}

.hs-icon-box {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 40px; height: 40px; border-radius: 12px;
}
.hs-icon-box--lg { width: 60px; height: 60px; border-radius: 16px; }
.hs-icon-box--blue { background: var(--hs-blue); color: #fff; }
.hs-icon-box--saffron { background: var(--hs-saffron); color: #fff; }
.hs-icon-box--saffron-soft { background: var(--hs-saffron-soft); color: var(--hs-saffron); }

.hs-text-blue { color: var(--hs-blue); }
.hs-text-saffron { color: var(--hs-saffron); }

.hs-lift { transition: transform .18s ease, box-shadow .18s ease; }
.hs-lift:hover { transform: translateY(-3px); box-shadow: var(--hs-shadow); }

/* --------------------------------------------------------------------------
   Sections
   ----------------------------------------------------------------------- */
.hs-section { padding: 64px 0; }
.hs-section--tight-bottom { padding-bottom: 0; }
.hs-section--mist { background: var(--hs-mist); padding: 64px 0 72px; }

.hs-section__head {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 12px; margin-bottom: 28px;
}
#hs-main .hs-section__title {
	font-family: var(--hs-font-head); font-size: clamp(26px, 3.2vw, 34px); font-weight: 700;
	letter-spacing: -.5px; line-height: 1.25; color: var(--hs-ink);
}
.hs-section__title-hi { font-size: .7em; font-weight: 600; color: var(--hs-saffron-dark); }
#hs-main .hs-section__sub { margin-top: 4px; font-size: 17px; color: var(--hs-muted); }

/* Post cards (latest biographies, listings, related posts) */
.hs-bios { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.hs-bio { position: relative; display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--hs-line); border-radius: var(--hs-radius); }
.hs-bio__media { display: block; aspect-ratio: 16 / 9; background: #e8edf5; overflow: hidden; }
.hs-bio__media img { width: 100%!important; height: 100%!important; object-fit: cover; transition: transform .3s; }
.hs-bio:hover .hs-bio__media img { transform: scale(1.03); }
.hs-bio__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #64748b; }
.hs-bio__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
#hs-main .hs-bio__title { font-family: var(--hs-font-head); font-size: 19px; font-weight: 600; line-height: 1.35; }
#hs-main .hs-bio__title a { color: var(--hs-ink); }
#hs-main .hs-bio__title a:hover { color: var(--hs-blue); }
.hs-bio__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.hs-bio__excerpt { font-size: 16px; color: var(--hs-muted); flex: 1; }
.hs-bio__meta {
	display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid #f1f5f9;
	font-size: 14px; color: var(--hs-muted);
}
.hs-bio__meta span { display: inline-flex; align-items: center; gap: 6px; }


/* Colour tones (category tiles, wish categories) */
.hs-tone--pink { background: #fce7f3; color: #9d174d; }
.hs-tone--rose { background: #ffe4e6; color: #9f1239; }
.hs-tone--red { background: #fee2e2; color: #991b1b; }
.hs-tone--orange { background: #ffedd5; color: #9a3412; }
.hs-tone--amber { background: #fef3c7; color: #92400e; }
.hs-tone--green { background: #dcfce7; color: #166534; }
.hs-tone--teal { background: #ccfbf1; color: #115e59; }
.hs-tone--blue { background: #dbeafe; color: #1e40af; }
.hs-tone--violet { background: #ede9fe; color: #5b21b6; }

/* Copy buttons (wishes, copy link) */
.hs-copy__idle, .hs-copy__done { display: inline-flex; align-items: center; gap: 8px; }
.hs-copy__done { display: none; color: var(--hs-green); }
.is-copied .hs-copy__idle { display: none; }
.is-copied .hs-copy__done { display: inline-flex; }

/* --------------------------------------------------------------------------
   Twenty Twenty-One adjustments
   ----------------------------------------------------------------------- */
/* Space between page content and our footer on normal pages */
body.hs-site:not(.hs-front):not(.hs-full) .site-main { padding-bottom: 64px; }

/* Homepage: full width, no TT1 padding around the sections */
body:is(.hs-front, .hs-full) .site-main { padding-top: 0; padding-bottom: 0; }
body:is(.hs-front, .hs-full) .site-main > .hs-page { margin: 0; max-width: none; }
