/* =====================================================================
   Good Governance in India — theme layer, loaded after Elementor and Hello.
   Layout classes (gg-*) are Elementor global classes; components (ggj-*)
   come from gg-journal.css. This file holds what Elementor classes cannot
   express: descendant rules, pseudo elements, the header's menu behaviour.
   ===================================================================== */

/* ---------- Brand colours and fonts for anything still on Elementor defaults ---------- */
body[class*="elementor-kit-"] {
	--e-global-color-primary: #C8102E;
	--e-global-color-secondary: #1B1B1B;
	--e-global-color-text: #3A3430;
	--e-global-color-accent: #9E0B22;
	--e-global-typography-primary-font-family: "Playfair Display";
	--e-global-typography-primary-font-weight: 700;
	--e-global-typography-secondary-font-family: "Poppins";
	--e-global-typography-secondary-font-weight: 600;
	--e-global-typography-text-font-family: "Noto Serif";
	--e-global-typography-text-font-weight: 400;
	--e-global-typography-accent-font-family: "Poppins";
	--e-global-typography-accent-font-weight: 500;
}

/* ---------- Base ---------- */
body { background: #FBF7EF; }
a { color: #C8102E; }
a:hover { color: #9E0B22; }
.site-main > .page-header .entry-title { display: none; }

/* ---------- Header ---------- */
.elementor-location-header { position: sticky; top: 0; z-index: 990; }

/* Top strip: date, live ticker, language */
.gg-topbar .ggj-ticker { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.gg-topbar .ggj-ticker__label { margin: 7px 0; padding: .32rem .75rem; border-radius: 4px; font-size: .66rem; }
.gg-topbar .ggj-ticker__viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 2%, #000 96%, transparent); }
.gg-topbar .ggj-ticker__track li { font-size: .8125rem; font-weight: 400; }
.gg-topbar .ggj-ticker__track li::before { color: #E8475F; }
.gg-topbar .ggj-ticker__track a { color: #E9E3D8 !important; }
.gg-topbar .ggj-ticker__track a:hover { color: #FFFFFF !important; text-decoration: underline; text-underline-offset: 3px; }
.gg-today { padding-right: 20px; border-right: 1px solid rgba(255, 255, 255, .14); }
.gg-topbar [data-ggj-slot="lang"] { flex: none; padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .14); }

/* Masthead: brand · main menu · actions on one row */
.gg-masthead { position: relative; transition: box-shadow .25s ease, background-color .25s ease; }
.gg-masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #C8102E 0%, #9E0B22 100%); }
.ggj-scrolled .gg-masthead { background-color: rgba(251, 247, 239, .97); box-shadow: 0 16px 30px -20px rgba(27, 27, 27, .5); }
.gg-masthead .gg-logo { display: block; }

.gg-masthead .elementor-widget-nav-menu { flex: 1 1 auto; min-width: 0; }
.gg-masthead .elementor-nav-menu--main .elementor-item { line-height: 1.2; white-space: nowrap; }
.gg-masthead .elementor-nav-menu--main .elementor-item.has-submenu { padding-inline-end: 22px !important; }
.gg-masthead .elementor-nav-menu--main .sub-arrow { color: #A2968A; }
.gg-masthead .elementor-nav-menu--main .elementor-item:hover .sub-arrow,
.gg-masthead .elementor-nav-menu--main .elementor-item.highlighted .sub-arrow { color: #C8102E; }
.gg-masthead .elementor-nav-menu--main .sub-menu { min-width: 250px; padding: 8px 0; border-top: 0; }
.gg-masthead .elementor-nav-menu--dropdown .sub-arrow { color: #C8102E; }
.gg-masthead .elementor-nav-menu--dropdown.elementor-nav-menu__container { margin-top: 12px; border-top: 3px solid #C8102E; }
.gg-masthead .elementor-menu-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; }

/* Laptops: the full menu needs ~1180px; below that use the menu button. */
@media (min-width: 1025px) and (max-width: 1199px) {
	.gg-masthead .elementor-nav-menu--dropdown-tablet .elementor-nav-menu--main { display: none; }
	.gg-masthead .elementor-nav-menu--dropdown-tablet .elementor-menu-toggle { display: flex; }
	.gg-masthead .elementor-nav-menu--dropdown-tablet .elementor-nav-menu--dropdown { display: block; }
}
@media (max-width: 1199px) {
	.gg-masthead .gg-brand { order: 1; }
	.gg-masthead .gg-actions { order: 2; margin-inline-start: auto; }
	.gg-masthead .elementor-widget-nav-menu { order: 3; flex: 0 0 auto; }
}

/* ---------- Article (single template) ---------- */
.gg-article-main > [data-ggj-slot]:empty { display: none; }
.gg-article-head [data-ggj-slot]:empty { display: none; }
body.ggj-reader .gg-sidebar, body.ggj-reader .gg-related-band, body.ggj-reader .gg-article-figure { display: none !important; }
body.ggj-reader .gg-article-layout { grid-template-columns: minmax(0, 1fr) !important; }
body.ggj-reader .gg-article-main { max-width: 760px !important; margin-inline: auto !important; }
body.ggj-reader .gg-article-head .gg-measure { max-width: 760px; margin-inline: auto; }

/* Hindi-heavy articles: a little more line height */
.elementor-widget-theme-post-content:lang(hi), .elementor-widget-theme-post-content :lang(hi) { line-height: 1.95; }

/* ---------- Pages ---------- */
.gg-kicker::before { content: ""; display: inline-block; width: 28px; height: 2px; margin-inline-end: 12px; background: currentColor; vertical-align: middle; }
.gg-kicker-light { color: #FFD9DF; }
.gg-text a, .gg-legal-p a, .gg-lede a, .gg-info-value a { color: #C8102E; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gg-text a:hover, .gg-legal-p a:hover { color: #9E0B22; }
.gg-text strong, .gg-legal-p strong { color: #1B1B1B; }
.gg-legal-h { scroll-margin-top: 150px; }
.gg-toc a { display: block; padding: 7px 0; color: #3A3430; font: 500 14px/1.4 Poppins, sans-serif; text-decoration: none; border-bottom: 1px dashed #E5DCCB; }
.gg-toc a:hover { color: #C8102E; }
.gg-cta-band .gg-btn-light, .gg-cta-band .gg-btn-ghost-light { white-space: nowrap; }
.gg-quote::before { content: "“"; display: block; height: .5em; margin-bottom: .1em; color: #C8102E; font: 700 3.2em/1 "Playfair Display", Georgia, serif; }

/* Contact form (Elementor e-form) */
.gg-form .e-form-success-message, .gg-form .e-form-error-message { margin-top: 12px; padding: 12px 16px; border-radius: 12px; font: 500 14px Poppins, sans-serif; }
.gg-form .e-form-success-message { background: #E3F4EA; color: #1E7B45; }
.gg-form .e-form-error-message { background: #FCEBEE; color: #9E0B22; }
.gg-form textarea { min-height: 160px; resize: vertical; }
.gg-form select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236B635A' stroke-width='1.8'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-inline-end: 40px !important; }

/* ---------- Sections (home) ---------- */
.gg-section-head { flex-wrap: wrap; }
.gg-pill-heading { box-shadow: 0 8px 18px -10px rgba(158, 11, 34, .7); }
.gg-more-link a { display: inline-flex; align-items: center; gap: 6px; }
.gg-more-link a:hover { text-decoration: underline; text-underline-offset: 4px; }
.gg-band .ggj-hero { gap: 1.75rem; }
.gg-band .ggj-hero__list { align-self: stretch; }

/* ---------- Footer ---------- */
.gg-footer a { color: #E9E3D8; text-decoration: none; transition: color .2s ease; }
.gg-footer a:hover { color: #FFFFFF; }
.gg-footer-text strong { display: block; margin-bottom: 6px; color: #FFFFFF; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.gg-footer-links ul, .gg-footer-text ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.gg-footer-links li a, .gg-footer-text li a { display: inline-flex; align-items: center; gap: 10px; }
.gg-footer-links li a::before, .gg-footer-text li a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #C8102E; transition: transform .2s ease; }
.gg-footer-links li a:hover::before, .gg-footer-text li a:hover::before { transform: scale(1.5); }
.gg-footer .ggj-popular__list { gap: 1.1rem; }
.gg-footer .ggj-popular__num { width: 34px; height: 34px; border: 1.5px solid #C8102E; background: transparent; color: #FFFFFF; font-size: .875rem; }
.gg-footer .ggj-popular--numbered .ggj-popular__item { grid-template-columns: 34px minmax(0, 1fr); }
.gg-footer .ggj-popular__link { color: #E9E3D8 !important; font-size: .875rem; font-weight: 500; }
.gg-footer .ggj-popular__link:hover { color: #FFFFFF !important; }
.gg-footer-bottom .elementor-nav-menu--main .elementor-item { padding-top: 4px; padding-bottom: 4px; }
.gg-motto { font-family: "Noto Serif Devanagari", serif !important; }

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
	.gg-topbar .ggj-ticker__label { margin-left: 0; }
	.gg-topbar [data-ggj-slot="lang"] { padding-left: 10px; }
	.gg-topbar .ggj-lang__current { display: none; }
	.gg-section-head { gap: 10px; }
	.gg-pill-heading { font-size: 12.5px; padding: 8px 16px; }
	.ggj-float { right: 14px; bottom: 14px; }
}

/* Header bell: no empty gap when the browser cannot show notifications */
.gg-actions [data-ggj-slot="notify"]:has(> .ggj-notify[hidden]) { display: none; }
.gg-actions [data-ggj-slot="notify"] { flex: none; }

/* Article without a featured image: no empty figure gap above the text / PDF */
.gg-article-figure:not(:has(img, video, iframe)) { display: none; }
