/* ==========================================================================
   Gaadi Motor — main stylesheet
   Mobile-first. Written for cheap Android screens in daylight.
   ========================================================================== */

:root {
	--ink: #14161a;
	--ink-soft: #2a2e35;
	--plate: #ffcc00;
	--plate-deep: #e0b000;
	--paper: #ffffff;
	--wash: #f2f3f5;
	--road: #5a6169;
	--rule: #dfe2e6;
	--signal: #c8102e;

	--wrap: 1140px;
	--gap: 16px;
	--radius: 10px;

	--font-body: "Noto Sans Devanagari", "Nirmala UI", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-display: "Roboto Condensed", "Archivo Narrow", "Noto Sans Devanagari", "Nirmala UI", -apple-system, sans-serif;
	--font-plate: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;

	--shadow: 0 1px 2px rgba(20, 22, 26, .06), 0 4px 14px rgba(20, 22, 26, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--wash);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.75;
	overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-color: var(--plate-deep); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 2px;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.25;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.gm-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gap);
}

.gm-skip {
	position: absolute;
	left: -9999px;
	background: var(--ink);
	color: var(--paper);
	padding: 12px 18px;
	z-index: 999;
}
.gm-skip:focus { left: 8px; top: 8px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Signature: the number plate
   -------------------------------------------------------------------------- */

.gm-plate {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	background: var(--paper);
	border: 2px solid var(--ink);
	border-radius: 4px;
	padding: 1px 7px;
	font-family: var(--font-plate);
	font-weight: 700;
	font-size: 13px;
	line-height: 1.5;
	letter-spacing: .02em;
	color: var(--ink);
	white-space: nowrap;
}
.gm-plate--yellow { background: var(--plate); }
.gm-plate span { font-weight: 400; font-size: 11px; color: var(--road); }
.gm-plate--yellow span { color: var(--ink-soft); }

/* Speedometer tick divider — used only on section headings */
.gm-sechead {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
}
.gm-sechead h2 {
	margin: 0;
	font-size: 20px;
	text-transform: none;
	white-space: nowrap;
}
.gm-sechead::before {
	content: "";
	width: 5px;
	align-self: stretch;
	min-height: 22px;
	background: var(--plate);
	border-radius: 2px;
}
.gm-sechead::after {
	content: "";
	flex: 1;
	height: 9px;
	background-image: repeating-linear-gradient(to right, var(--rule) 0 2px, transparent 2px 8px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.gm-header {
	background: var(--ink);
	color: var(--paper);
	position: sticky;
	top: 0;
	z-index: 50;
}
.gm-header a { color: var(--paper); text-decoration: none; }

.gm-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
}

.gm-brand {
	display: flex;
	align-items: center;
	gap: 9px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.01em;
}
.gm-brand img { max-height: 38px; width: auto; }
.gm-brand__mark {
	background: var(--plate);
	color: var(--ink);
	border-radius: 3px;
	padding: 0 6px;
}

.gm-burger {
	background: none;
	border: 1.5px solid rgba(255, 255, 255, .3);
	border-radius: 6px;
	color: var(--paper);
	padding: 7px 10px;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 7px;
}
.gm-burger__lines { display: block; width: 17px; height: 2px; background: var(--paper); position: relative; }
.gm-burger__lines::before, .gm-burger__lines::after {
	content: ""; position: absolute; left: 0; width: 17px; height: 2px; background: var(--paper);
}
.gm-burger__lines::before { top: -5px; }
.gm-burger__lines::after { top: 5px; }

.gm-nav { display: none; border-top: 1px solid rgba(255, 255, 255, .12); }
.gm-nav.is-open { display: block; }
.gm-nav ul { list-style: none; margin: 0; padding: 6px 0 12px; }
.gm-nav li a { display: block; padding: 11px 0; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }

@media (min-width: 900px) {
	.gm-burger { display: none; }
	.gm-nav { display: block !important; border-top: none; }
	.gm-header__bar { min-height: 62px; }
	.gm-nav ul { display: flex; gap: 22px; padding: 0; }
	.gm-nav li a { border-bottom: none; padding: 0; font-size: 15px; }
	.gm-nav li a:hover { color: var(--plate); }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.gm-hero {
	background: var(--ink);
	color: var(--paper);
	padding: 22px 0 26px;
	background-image: repeating-linear-gradient(115deg, rgba(255, 204, 0, .05) 0 2px, transparent 2px 22px);
}
.gm-hero h1 {
	font-size: clamp(25px, 6.2vw, 40px);
	margin: 0 0 8px;
	max-width: 20ch;
}
.gm-hero p {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, .78);
	font-size: 15px;
	max-width: 46ch;
	line-height: 1.6;
}

.gm-search { display: flex; max-width: 520px; }
.gm-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 2px solid var(--ink);
	border-right: none;
	border-radius: 8px 0 0 8px;
	padding: 12px 14px;
	font: inherit;
	font-size: 16px;
	background: var(--paper);
	color: var(--ink);
}
.gm-search button {
	border: 2px solid var(--plate);
	background: var(--plate);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 16px;
	padding: 0 20px;
	border-radius: 0 8px 8px 0;
	cursor: pointer;
}
.gm-search button:hover { background: var(--plate-deep); border-color: var(--plate-deep); }

.gm-chips {
	display: flex;
	gap: 8px;
	margin-top: 14px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: none;
}
.gm-chips::-webkit-scrollbar { display: none; }
.gm-chips a {
	flex: none;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 100px;
	padding: 6px 14px;
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
}
.gm-chips a:hover { background: var(--plate); color: var(--ink); border-color: var(--plate); }

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

.gm-main { padding: 20px 0 34px; }

.gm-layout { display: block; }

@media (min-width: 1000px) {
	.gm-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		gap: 32px;
		align-items: start;
	}
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.gm-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}
@media (min-width: 620px) { .gm-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .gm-grid--wide { grid-template-columns: repeat(2, 1fr); } }

.gm-card {
	background: var(--paper);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	transition: transform .18s ease, box-shadow .18s ease;
}
.gm-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20,22,26,.08), 0 10px 24px rgba(20,22,26,.1); }

.gm-card__media { position: relative; background: var(--wash); aspect-ratio: 16 / 9; }
.gm-card__media img { width: 100%; height: 100%; object-fit: cover; }
.gm-card__cat {
	position: absolute;
	left: 10px; top: 10px;
	background: var(--plate);
	color: var(--ink);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 12px;
	padding: 3px 9px;
	border-radius: 4px;
	text-decoration: none;
	letter-spacing: .01em;
}
.gm-card__spec { position: absolute; right: 10px; bottom: 10px; }

.gm-card__body { padding: 13px 14px 15px; display: flex; flex-direction: column; flex: 1; }
.gm-card__body h3 {
	font-size: 17px;
	line-height: 1.35;
	margin: 0 0 8px;
}
.gm-card__body h3 a { text-decoration: none; }
.gm-card__body h3 a:hover { text-decoration: underline; }
.gm-card__excerpt {
	margin: 0 0 11px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--ink-soft);
}
.gm-card__meta {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: var(--road);
	font-family: var(--font-display);
}
.gm-card__meta span + span::before { content: "·"; margin-right: 8px; }

/* Lead card — first post gets more room */
@media (min-width: 620px) {
	.gm-grid--lead > .gm-card:first-child { grid-column: 1 / -1; flex-direction: row; }
	.gm-grid--lead > .gm-card:first-child .gm-card__media { width: 46%; flex: none; aspect-ratio: auto; }
	.gm-grid--lead > .gm-card:first-child .gm-card__body { justify-content: center; padding: 18px 20px; }
	.gm-grid--lead > .gm-card:first-child h3 { font-size: 22px; }
}

/* --------------------------------------------------------------------------
   Ads
   -------------------------------------------------------------------------- */

.gm-ad {
	margin: 20px 0;
	text-align: center;
	min-height: 1px;
}
.gm-ad__label {
	display: block;
	font-family: var(--font-display);
	font-size: 11px;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--road);
	margin-bottom: 5px;
}
.gm-ad--infeed { grid-column: 1 / -1; }
.gm-ad--sticky-side { position: sticky; top: 78px; }

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */

.gm-sidebar { margin-top: 28px; }
@media (min-width: 1000px) { .gm-sidebar { margin-top: 0; position: sticky; top: 78px; } }

.widget {
	background: var(--paper);
	border-radius: var(--radius);
	padding: 16px;
	margin-bottom: 16px;
	box-shadow: var(--shadow);
}
.widget-title {
	font-size: 16px;
	margin: 0 0 12px;
	padding-bottom: 9px;
	border-bottom: 2px solid var(--plate);
	display: inline-block;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.widget li:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   Single post
   -------------------------------------------------------------------------- */

.gm-article {
	background: var(--paper);
	border-radius: var(--radius);
	padding: 18px 16px 26px;
	box-shadow: var(--shadow);
}
@media (min-width: 720px) { .gm-article { padding: 30px 34px 38px; } }

.gm-crumbs {
	font-size: 13px;
	color: var(--road);
	margin-bottom: 12px;
	font-family: var(--font-display);
}
.gm-crumbs a { color: var(--road); }
.gm-crumbs span { margin: 0 6px; }

.gm-article h1 {
	font-size: clamp(23px, 5.4vw, 34px);
	margin: 0 0 12px;
}

.gm-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	font-size: 13.5px;
	color: var(--road);
	font-family: var(--font-display);
	padding-bottom: 15px;
	border-bottom: 1px solid var(--rule);
	margin-bottom: 18px;
}

.gm-specstrip {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
}

.gm-content { font-size: 17.5px; line-height: 1.85; }
.gm-content > * + * { margin-top: 1.15em; }
.gm-content h2 { font-size: 23px; margin-top: 1.7em; }
.gm-content h3 { font-size: 19.5px; margin-top: 1.5em; }
.gm-content img, .gm-content figure { border-radius: 8px; }
.gm-content figure { margin-inline: 0; }
.gm-content ul, .gm-content ol { padding-left: 1.35em; }
.gm-content li + li { margin-top: .45em; }
.gm-content blockquote {
	border-left: 4px solid var(--plate);
	margin-inline: 0;
	padding: 4px 0 4px 16px;
	color: var(--ink-soft);
}
.gm-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; display: block; overflow-x: auto; }
.gm-content th, .gm-content td { border: 1px solid var(--rule); padding: 9px 11px; text-align: left; }
.gm-content th { background: var(--wash); font-family: var(--font-display); }
.gm-content a { text-decoration: underline; }

.gm-tags { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 7px; }
.gm-tags a {
	background: var(--wash);
	border-radius: 100px;
	padding: 5px 13px;
	font-size: 13.5px;
	text-decoration: none;
	color: var(--ink-soft);
}
.gm-tags a:hover { background: var(--plate); color: var(--ink); }

/* Next article — the pageview engine */
.gm-next {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--radius);
	padding: 14px;
	margin-top: 24px;
	text-decoration: none;
}
.gm-next img { width: 92px; height: 66px; object-fit: cover; border-radius: 6px; flex: none; }
.gm-next__label {
	display: block;
	font-family: var(--font-display);
	font-size: 11.5px;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--plate);
	margin-bottom: 3px;
}
.gm-next strong { font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.3; display: block; }
.gm-next:hover strong { text-decoration: underline; }

.gm-related { margin-top: 30px; }

/* --------------------------------------------------------------------------
   Sticky action bar (mobile)
   -------------------------------------------------------------------------- */

.gm-actionbar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 60;
	display: flex;
	gap: 8px;
	padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
	background: rgba(255, 255, 255, .97);
	border-top: 1px solid var(--rule);
	box-shadow: 0 -3px 14px rgba(20, 22, 26, .08);
}
.gm-actionbar a {
	flex: 1;
	text-align: center;
	padding: 11px 8px;
	border-radius: 8px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	background: var(--wash);
	color: var(--ink);
}
.gm-actionbar a.is-primary { background: var(--plate); }
.gm-actionbar a.is-wa { background: #0a7c4a; color: #fff; }
.gm-actionbar a.is-tg { background: #2481cc; color: #fff; }

body.has-actionbar { padding-bottom: 68px; }
@media (min-width: 900px) {
	.gm-actionbar { display: none; }
	body.has-actionbar { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   Pagination, footer, misc
   -------------------------------------------------------------------------- */

.gm-pagination { margin-top: 26px; display: flex; justify-content: center; }
.gm-pagination .page-numbers {
	display: inline-block;
	padding: 9px 14px;
	margin: 0 3px;
	background: var(--paper);
	border-radius: 7px;
	text-decoration: none;
	font-family: var(--font-display);
	box-shadow: var(--shadow);
}
.gm-pagination .current { background: var(--ink); color: var(--paper); }

.gm-footer {
	background: var(--ink);
	color: rgba(255, 255, 255, .78);
	padding: 30px 0 22px;
	font-size: 15px;
}
.gm-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.gm-footer a:hover { color: var(--plate); }
.gm-footer h4 {
	color: var(--paper);
	font-size: 15px;
	margin: 0 0 11px;
	padding-bottom: 7px;
	border-bottom: 2px solid var(--plate);
	display: inline-block;
}
.gm-footer__cols { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gm-footer__cols { grid-template-columns: repeat(3, 1fr); } }
.gm-footer .widget { background: none; box-shadow: none; padding: 0; margin: 0; }
.gm-footer .widget li { border-bottom-color: rgba(255, 255, 255, .1); }
.gm-footer__base {
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .14);
	font-size: 13.5px;
	text-align: center;
}

.gm-empty { background: var(--paper); border-radius: var(--radius); padding: 34px 20px; text-align: center; box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Multi-page post links */
.gm-pagelinks { margin-top: 22px; font-family: var(--font-display); }
.gm-pagelinks a, .gm-pagelinks > span {
	display: inline-block;
	padding: 6px 12px;
	margin-right: 5px;
	background: var(--wash);
	border-radius: 6px;
	text-decoration: none;
}

/* Comments */
.comment-list, .comment-list ol { list-style: none; padding-left: 0; }
.comment-body { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--rule);
	border-radius: 7px;
	font: inherit;
	font-size: 16px;
}
.comment-form .submit {
	background: var(--ink);
	color: var(--paper);
	border: none;
	border-radius: 7px;
	padding: 11px 22px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
}
