/* Kisan Kisht: the whole site's styles. Colours and fonts come from the tokens below. */

/*
 * Two fonts, served from public/assets/fonts (SIL Open Font License), from Google Fonts:
 * Kripa for Hindi (Devanagari only, one variable file for weights 100-900) and Inter for
 * English letters, digits and signs (one variable file per script, weights 400-700). The
 * font stack puts Inter first: its files cover only Latin characters, so every Hindi
 * character falls to Kripa. Both are variable, so 600 is a true semi-bold in both. The
 * browser loads a file only when a page uses its characters. ₹ (U+20B9) is left out of
 * Inter's ranges so it comes from Kripa, which a Hindi page loads anyway, not from
 * Inter's larger latin-ext file.
 */
@font-face {
	font-family: 'Kripa';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('/public/assets/fonts/kripa-devanagari.woff2') format('woff2');
	unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('/public/assets/fonts/inter-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20B8, U+20BA-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('/public/assets/fonts/inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	/* One accent, sky blue; everything else white and gray. */
	--kk-blue: #0669a5;
	--kk-blue-dark: #05568a;
	--kk-ink: #1d2226;
	--kk-ink-soft: #474f56;
	--kk-ink-muted: #6b737a;
	--kk-line: #d9dde1;
	--kk-line-strong: #b9c0c6;
	--kk-gray: #f4f5f6;
	--kk-alert: #b3402a;
	--kk-alert-soft: #fbeeea;
	/* Only for the installment box's badges: released (green) and still to come (amber). */
	--kk-done: #1d6b38;
	--kk-done-soft: #e6f2ea;
	--kk-wait: #835400;
	--kk-wait-soft: #fbf0d9;
	--kk-white: #fff;

	--kk-font: 'Inter', 'Kripa', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--kk-page: 1140px;
}

/* ------------------------------------------------------------------ *
 * Base
 * ------------------------------------------------------------------ */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

html[lang='hi'] body {
	line-height: 1.7;
}

body {
	margin: 0;
	background: var(--kk-white);
	color: var(--kk-ink);
	font-family: var(--kk-font);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
	/* The footer stays at the bottom of the screen on short pages. */
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	line-height: 1.25;
	text-wrap: pretty;
}

p,
ul,
ol {
	margin: 0;
}

a {
	color: var(--kk-blue);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--kk-blue);
	outline-offset: 2px;
}

svg {
	flex: none;
}

.wrap {
	width: 100%;
	max-width: calc(var(--kk-page) + 40px);
	margin: 0 auto;
	padding: 0 20px;
}

@media (max-width: 480px) {
	.wrap {
		padding: 0 16px;
	}
}

.skip {
	position: absolute;
	left: -9999px;
}

.skip:focus {
	left: 16px;
	top: 12px;
	z-index: 20;
	padding: 8px 14px;
	border: 1px solid var(--kk-line-strong);
	background: var(--kk-white);
}

/* ------------------------------------------------------------------ *
 * Header and menu: the logo and the menu on one row
 * ------------------------------------------------------------------ */

.header {
	border-top: 4px solid var(--kk-blue);
	border-bottom: 1px solid var(--kk-line);
	background: var(--kk-white);
}

.header-top {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 68px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--kk-ink);
	font-size: 21px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.brand img {
	width: 34px;
	height: 34px;
}

.brand b {
	color: var(--kk-blue);
}

/* The name over a one-line tagline. */
.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.brand-tag {
	margin-top: 2px;
	color: var(--kk-ink-muted);
	font-size: 12.5px;
	font-weight: 500;
}

.menu-button {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--kk-line-strong);
	background: var(--kk-white);
	color: var(--kk-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.menu-button[aria-expanded='true'] {
	border-color: var(--kk-blue);
	color: var(--kk-blue);
}

.nav {
	margin-left: auto;
}

.nav ul {
	display: flex;
	padding: 0;
	list-style: none;
}

.nav a {
	display: flex;
	align-items: center;
	min-height: 68px;
	padding: 0 12px;
	color: var(--kk-ink-soft);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.nav a:hover {
	color: var(--kk-blue);
}

/* The page you're on: in blue. */
.nav a[aria-current='page'] {
	color: var(--kk-blue);
}

/* The other language's twin of this page, beside the menu (and beside the Menu button on phones). */
.lang {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid var(--kk-line-strong);
	color: var(--kk-ink);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.lang:hover {
	border-color: var(--kk-blue);
	color: var(--kk-blue);
}

/* Below this width the menu folds into the Menu button, and opens under the logo row. */
@media (max-width: 880px) {
	.header-top {
		flex-wrap: wrap;
		gap: 0 8px;
	}

	/* The logo row keeps its own height when the open menu wraps under it. */
	.brand {
		min-height: 68px;
	}

	.menu-button {
		display: inline-flex;
	}

	.lang {
		min-height: 40px;
		margin-left: auto;
	}

	.nav {
		display: none;
		order: 3;
		flex-basis: calc(100% + 40px);
		margin: 0 -20px;
		border-top: 1px solid var(--kk-line);
	}

	.nav.is-open {
		display: block;
	}

	.nav ul {
		flex-direction: column;
	}

	.nav li + li {
		border-top: 1px solid var(--kk-line);
	}

	.nav a {
		min-height: 0;
		padding: 13px 20px;
	}

	.nav a[aria-current='page'] {
		background: var(--kk-gray);
	}
}

/* Small phones: the Menu button shows only its icon, so the logo, language and menu fit one row. */
@media (max-width: 400px) {
	.menu-button {
		padding: 0 10px;
	}

	.menu-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.lang {
		padding: 0 10px;
	}

	.lang svg,
	.brand-tag {
		display: none;
	}

	.brand {
		gap: 8px;
		font-size: 18px;
	}

	.brand img {
		width: 30px;
		height: 30px;
	}
}

@media (max-width: 480px) {
	.nav {
		flex-basis: calc(100% + 32px);
		margin: 0 -16px;
	}

	.nav a {
		padding-left: 16px;
		padding-right: 16px;
	}
}

/* ------------------------------------------------------------------ *
 * Homepage: the hero with the status form (white), then the links (gray)
 * ------------------------------------------------------------------ */

.hero {
	padding: clamp(36px, 5vw, 52px) 0;
	background: var(--kk-white);
	text-align: center;
}

.hero h1,
.article h1 {
	font-size: clamp(24px, 1rem + 1vw, 28px);
	font-weight: 700;
}

.lead {
	margin-top: 4px;
	color: var(--kk-ink-soft);
	font-size: 17px;
}

/* The form's box: the one framed thing on the page, so the eye lands on it. */
.check {
	max-width: 520px;
	margin: 28px auto 0;
	padding: 18px 20px;
	border: 1px solid var(--kk-line-strong);
	border-top: 3px solid var(--kk-blue);
	background: var(--kk-white);
	box-shadow: 0 12px 32px -20px rgb(29 34 38 / 35%);
	text-align: left;
}

@media (max-width: 480px) {
	.check {
		padding: 16px 14px;
	}
}

/*
 * The homepage's three tools in one box: radio options along the top (status, registration
 * number, beneficiary list), and under them only the chosen tool's form (site.js).
 */
.tool-box {
	max-width: 660px;
	margin: 28px auto 0;
	padding: 18px 20px 20px;
	border: 1px solid var(--kk-line-strong);
	border-top: 3px solid var(--kk-blue);
	background: var(--kk-white);
	box-shadow: 0 12px 32px -20px rgb(29 34 38 / 35%);
	text-align: left;
}

.switch {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 24px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

/* Each option: just the radio and its words; the chosen one in blue. */
.switch-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	color: var(--kk-ink-soft);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
	transition: color 0.15s ease;
}

.switch-option:hover,
.switch-option.is-on {
	color: var(--kk-blue);
}

/* The radio's circle, drawn to match: blue ring and dot when chosen. */
.switch-option input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 2px solid var(--kk-line-strong);
	border-radius: 50%;
	background: var(--kk-white);
	appearance: none;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.switch-option:hover input {
	border-color: var(--kk-blue);
}

.switch-option input:checked {
	border-color: var(--kk-blue);
	background: var(--kk-blue);
	box-shadow: inset 0 0 0 3px var(--kk-white);
}

.switch-option input:focus-visible {
	outline: 2px solid var(--kk-blue);
	outline-offset: 2px;
}

@media (max-width: 440px) {
	.tool-box {
		padding: 16px 14px;
	}

	.switch {
		gap: 0 18px;
	}

	.switch-option {
		font-size: 15px;
	}
}

/* A form inside the box: no frame of its own. */
.check.is-panel {
	max-width: none;
	margin: 16px 0 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.tool-box .check[hidden] {
	display: none;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.check-foot {
	margin-top: 8px;
	color: var(--kk-ink-muted);
	font-size: 14.5px;
	text-align: center;
}

.label {
	display: block;
	margin-bottom: 4px;
	font-size: 15.5px;
	font-weight: 600;
}

.input {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--kk-line-strong);
	border-radius: 0;
	background: var(--kk-white);
	color: var(--kk-ink);
	font: inherit;
	font-size: 17px;
}

/* Numbers people type in capitals (registration numbers). */
.input.is-upper {
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.input::placeholder {
	color: var(--kk-ink-muted);
	letter-spacing: 0;
	text-transform: none;
}

/* A dropdown in the same look, with a small arrow. */
.select {
	padding-right: 40px;
	background: var(--kk-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236b737a' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center;
	font-size: 17px;
	appearance: none;
	cursor: pointer;
}

.field + .field {
	margin-top: 10px;
}

.input:focus {
	border-color: var(--kk-blue);
	outline: 1px solid var(--kk-blue);
}

.input[aria-invalid='true'] {
	border-color: var(--kk-alert);
	outline-color: var(--kk-alert);
}

/* The form's message, at its top where the eye is: a gray box with a red line. */
.note {
	margin-bottom: 12px;
	padding: 8px 12px;
	border-left: 3px solid var(--kk-alert);
	background: var(--kk-gray);
	color: var(--kk-alert);
	font-size: 15.5px;
}

.button {
	display: block;
	width: 100%;
	min-height: 44px;
	margin-top: 12px;
	border: 0;
	border-radius: 0;
	background: var(--kk-blue);
	color: var(--kk-white);
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.button:hover {
	background: var(--kk-blue-dark);
}

/* A dropdown waiting for the one before it, and the button while a list opens. */
.select:disabled {
	background-color: var(--kk-gray);
	color: var(--kk-ink-muted);
	cursor: not-allowed;
}

.button:disabled {
	background: var(--kk-blue-dark);
	cursor: progress;
}

/*
 * Waiting on the engine (site.js): a dropdown being filled shows a turning ring where its
 * arrow was, and a button opening a list shows a white ring before its words.
 */
@keyframes kk-spin {
	to {
		transform: rotate(360deg);
	}
}

.field.is-loading {
	position: relative;
}

.field.is-loading .select {
	background-image: none;
}

.field.is-loading::after {
	content: '';
	position: absolute;
	right: 14px;
	bottom: 13px;
	width: 18px;
	height: 18px;
	box-sizing: border-box;
	border: 2px solid var(--kk-line-strong);
	border-top-color: var(--kk-blue);
	border-radius: 50%;
	animation: kk-spin 0.7s linear infinite;
	pointer-events: none;
}

.button.is-busy::before {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-right: 10px;
	box-sizing: border-box;
	border: 2px solid rgb(255 255 255 / 40%);
	border-top-color: var(--kk-white);
	border-radius: 50%;
	vertical-align: -2px;
	animation: kk-spin 0.7s linear infinite;
}

.wait {
	margin-top: 10px;
	color: var(--kk-ink-muted);
	font-size: 14.5px;
	text-align: center;
}

/* The official page's link after a message. */
.note a {
	margin-left: 2px;
	color: var(--kk-blue);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.note a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------ *
 * The beneficiary list's result: under the hero, white, parted by a line
 * ------------------------------------------------------------------ */

.result {
	padding: clamp(32px, 5vw, 52px) 0 clamp(40px, 5vw, 60px);
	border-top: 1px solid var(--kk-line);
	background: var(--kk-white);
}

.result .wrap {
	max-width: 880px;
}

.result h2 {
	font-size: clamp(21px, 1.05rem + 0.7vw, 25px);
	font-weight: 700;
	text-wrap: pretty;
}

.result h2:focus {
	outline: none;
}

.result-place {
	margin-top: 4px;
	color: var(--kk-ink-soft);
}

.result-place strong {
	color: var(--kk-ink);
}

.find {
	max-width: 360px;
	margin-top: 22px;
}

.result-none {
	margin-top: 10px;
	color: var(--kk-ink-soft);
}

.farmers {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.farmers th,
.farmers td {
	padding: 9px 12px;
	border-bottom: 1px solid var(--kk-line);
	text-align: left;
}

.farmers th {
	border-bottom: 2px solid var(--kk-line-strong);
	font-weight: 700;
}

.farmers td {
	color: var(--kk-ink-soft);
}

.farmers td:nth-child(2) {
	color: var(--kk-ink);
	font-weight: 600;
}

/* The serial number and gender: narrow columns. */
.farmers th:first-child,
.farmers td:first-child {
	width: 1%;
	color: var(--kk-ink-muted);
	white-space: nowrap;
}

.farmers th:last-child,
.farmers td:last-child {
	width: 1%;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.farmers th,
	.farmers td {
		padding: 8px 8px;
	}
}

/* The links: white squares on the gray band. */

/* The last section fills the rest of the screen, down to the footer. */
.main {
	display: flex;
	flex-direction: column;
}

.main > :last-child {
	flex: 1 0 auto;
}

.content {
	padding: clamp(36px, 5vw, 56px) 0;
	border-top: 1px solid var(--kk-line);
	border-bottom: 1px solid var(--kk-line);
	background: var(--kk-gray);
}

.content .wrap {
	max-width: 1040px;
}

/* The links band's heading: a real section title, with a short blue line under it. */
.content h2 {
	margin-bottom: 22px;
	color: var(--kk-ink);
	font-size: clamp(20px, 1.05rem + 0.6vw, 24px);
	font-weight: 700;
	text-align: center;
}

.content h2::after {
	content: '';
	display: block;
	width: 44px;
	height: 3px;
	margin: 10px auto 0;
	background: var(--kk-blue);
}

.links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.links {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 560px) {
	.links {
		grid-template-columns: 1fr;
	}
}

.links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding: 12px 16px;
	border: 1px solid var(--kk-line);
	background: var(--kk-white);
	color: var(--kk-ink);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.15s ease;
}

.links a::after {
	content: '→';
	color: var(--kk-blue);
}

.links a:hover {
	border-color: var(--kk-blue);
	color: var(--kk-blue);
}

/* Pages without a form (About, Privacy, Terms): a shorter title band. */
.hero.is-plain {
	padding: clamp(32px, 4vw, 48px) 0;
}

/*
 * Guide pages (no form) start with the article: the title, then this box with a short
 * title, the page's key points, and a text link with an arrow to the official page that
 * does the job (on Farmer ID, down to the states' websites). The links band comes after
 * the article.
 */
.summary {
	margin: 18px 0 40px;
	padding: 18px 22px 0;
	border: 1px solid var(--kk-line);
	border-top: 3px solid var(--kk-blue);
	background: var(--kk-gray);
	font-size: 17px;
}

.article .summary-title {
	margin: 0 0 10px;
	color: var(--kk-ink);
	font-size: 17px;
	font-weight: 700;
}

.article .summary-points {
	gap: 8px;
	padding: 0;
	list-style: none;
}

.article .summary-points li {
	position: relative;
	padding-left: 20px;
	color: var(--kk-ink);
}

/* A small blue square for each point, in line with the first line of text. */
.article .summary-points li::before {
	content: '';
	position: absolute;
	top: 0.62em;
	left: 2px;
	width: 7px;
	height: 7px;
	background: var(--kk-blue);
}

/* The link sits on its own line along the box's bottom, parted by a thin line. */
.summary-go {
	display: block;
	margin: 16px -22px 0;
	padding: 13px 22px;
	border-top: 1px solid var(--kk-line);
	font-weight: 600;
	text-decoration: none;
}

/* The arrow, joined to the last word by a no-break space so it never sits alone on a line. */
.summary-go::after {
	content: '\a0\2192';
}

.summary-go[href^='#']::after {
	content: '\a0\2193';
}

.summary-go:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 480px) {
	.summary {
		padding: 16px 16px 0;
	}

	.summary-go {
		margin: 14px -16px 0;
		padding: 13px 16px;
	}
}

/* The article: plain reading text on white. A line parts it from a white hero. */

.hero + .article {
	border-top: 1px solid var(--kk-line);
}

.article {
	padding: clamp(40px, 5vw, 64px) 0 clamp(48px, 6vw, 72px);
	background: var(--kk-white);
	font-size: 17px;
}

.article .wrap {
	max-width: 880px;
}

.article h2 {
	margin: 36px 0 10px;
	font-size: clamp(21px, 1.05rem + 0.7vw, 25px);
	font-weight: 700;
}

.article h2:first-child {
	margin-top: 0;
}

.article h3 {
	margin: 20px 0 4px;
	font-size: 18px;
	font-weight: 700;
}

.article p,
.article li {
	color: var(--kk-ink-soft);
}

.article p + p,
.article p + ul,
.article p + ol,
.article ul + p,
.article ol + p,
.article .table-wrap + p {
	margin-top: 10px;
}

.article ol,
.article ul {
	display: grid;
	gap: 6px;
	padding-left: 22px;
}

.article li::marker {
	color: var(--kk-blue);
	font-weight: 700;
}

/*
 * Numbered lists in articles are steps: a round blue number for each, joined to the next
 * by a thin line. A numbered list that isn't steps gets a class of its own (like .flow).
 */
.article ol:not([class]) {
	gap: 0;
	padding-left: 0;
	list-style: none;
	counter-reset: step;
}

.article ol:not([class]) > li {
	position: relative;
	padding: 0 0 14px 40px;
	counter-increment: step;
}

.article ol:not([class]) > li:last-child {
	padding-bottom: 0;
}

.article ol:not([class]) > li::before {
	content: counter(step);
	position: absolute;
	top: 1px;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--kk-blue);
	color: var(--kk-white);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

/* The line from one number down to the next. */
.article ol:not([class]) > li:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 31px;
	bottom: 3px;
	left: 12px;
	width: 2px;
	background: var(--kk-line-strong);
}

.article strong {
	color: var(--kk-ink);
}

/*
 * A screenshot in the article, with the "Sample Image" tag on its top-right corner
 * (where the official pages have only a Back button, so the tag hides nothing useful).
 */
.shot {
	position: relative;
	margin: 18px 0 22px;
}

.shot img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--kk-line);
}

/* A small screenshot (one card of a page) keeps its own size instead of stretching. */
.shot.is-narrow {
	max-width: 380px;
}

/* The last line of an article: where the facts come from and when they were last checked. */
.article .source {
	margin-top: 36px;
	padding-top: 14px;
	border-top: 1px solid var(--kk-line);
	color: var(--kk-ink-muted);
	font-size: 14.5px;
}

.article .source a {
	color: var(--kk-ink-soft);
}

/* "Last updated" line at the top of a page that changes with every kist. */
.article .updated {
	margin-bottom: 20px;
	color: var(--kk-ink-muted);
	font-size: 14.5px;
}

.shot-tag {
	position: absolute;
	top: 0;
	right: 0;
	padding: 3px 10px;
	background: var(--kk-ink);
	color: var(--kk-white);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.5;
	text-transform: uppercase;
}

@media (max-width: 480px) {
	.shot-tag {
		padding: 2px 7px;
		font-size: 10px;
	}
}

.shot figcaption {
	margin-top: 6px;
	color: var(--kk-ink-muted);
	font-size: 14.5px;
}

/* A plain two-column table (status messages and what they mean). */
.table-wrap {
	margin: 14px 0 6px;
	overflow-x: auto;
}

.article table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.article th,
.article td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--kk-line);
	color: var(--kk-ink-soft);
	text-align: left;
	vertical-align: top;
}

.article th {
	border-bottom: 2px solid var(--kk-line-strong);
	color: var(--kk-ink);
	font-weight: 700;
}

.article td:first-child {
	color: var(--kk-ink);
	font-weight: 600;
	white-space: nowrap;
}

@media (max-width: 480px) {
	.article td:first-child {
		white-space: normal;
	}
}

/* The installment box: the last and the next kist, side by side (stacked on phones). */
.kist {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 14px 0 16px;
}

@media (max-width: 480px) {
	.kist {
		grid-template-columns: 1fr;
	}
}

.kist > div {
	padding: 14px 16px;
	border: 1px solid var(--kk-line);
	border-top: 3px solid var(--kk-blue);
}

.article .kist-label {
	color: var(--kk-ink-muted);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.article .kist-value {
	margin-top: 2px;
	color: var(--kk-ink);
	font-size: 21px;
	font-weight: 700;
}

.article .kist-note {
	margin-top: 2px;
	font-size: 15.5px;
}

/*
 * Each card's state, under the installment's number: released (green, a tick) or still to
 * come (amber, a clock). The icon is drawn in the badge's own colour.
 */
.article .kist-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 6px 0 2px;
	padding: 3px 10px 3px 8px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.kist-badge::before {
	content: '';
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--icon) no-repeat center / contain;
	mask: var(--icon) no-repeat center / contain;
}

.article .kist-badge.is-done {
	background: var(--kk-done-soft);
	color: var(--kk-done);
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5 6.5 12.5 13.5 4' fill='none' stroke='black' stroke-width='2.4'/%3E%3C/svg%3E");
}

.article .kist-badge.is-wait {
	background: var(--kk-wait-soft);
	color: var(--kk-wait);
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.2' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M8 4.5V8l2.5 1.8' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E");
}

/* A short note in a gray box (a warning or a tip). */
.tip {
	margin: 16px 0;
	padding: 12px 16px;
	border-left: 3px solid var(--kk-blue);
	background: var(--kk-gray);
}

.article .tip p {
	color: var(--kk-ink);
}

/*
 * A fraud warning: red edge, a pale red ground and a warning sign, so it isn't read as an
 * ordinary tip. Its text starts with a red "सावधान:" / "Be careful:".
 */
.tip.is-warn {
	display: flex;
	gap: 10px;
	border-left-color: var(--kk-alert);
	background: var(--kk-alert-soft);
}

.tip.is-warn::before {
	content: '';
	flex: none;
	width: 20px;
	height: 20px;
	margin-top: 0.15em;
	background: var(--kk-alert);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 1.5 19 18H1zM9 7h2v5H9zm0 6.6h2v2H9z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 1.5 19 18H1zM9 7h2v5H9zm0 6.6h2v2H9z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
}

.article .tip.is-warn strong:first-child {
	color: var(--kk-alert);
}

/*
 * Common questions: one framed list, a line between questions. Each question opens and
 * closes its answer (details and summary, no script); a + turns into a − when it's open.
 */
.faq {
	margin-top: 14px;
	border: 1px solid var(--kk-line);
}

.faq details + details {
	border-top: 1px solid var(--kk-line);
}

.faq summary {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 52px;
	padding: 12px 18px;
	color: var(--kk-ink);
	font-weight: 600;
	line-height: 1.45;
	list-style: none;
	cursor: pointer;
	transition: color 0.15s ease;
}

.faq summary::-webkit-details-marker {
	display: none;
}

/* The + (a − when open), drawn as two bars in the site's blue. */
.faq summary::after {
	content: '';
	flex: none;
	width: 14px;
	height: 14px;
	margin-left: auto;
	background:
		linear-gradient(var(--kk-blue), var(--kk-blue)) center / 14px 2px no-repeat,
		linear-gradient(var(--kk-blue), var(--kk-blue)) center / 2px 14px no-repeat;
}

.faq details[open] summary::after {
	background-size: 14px 2px, 0 0;
}

.faq summary:hover,
.faq details[open] summary {
	color: var(--kk-blue);
}

.faq summary:focus-visible {
	outline: 2px solid var(--kk-blue);
	outline-offset: -2px;
}

.article .faq details > p {
	margin: 0;
	padding: 0 18px 16px;
}

@media (max-width: 480px) {
	.faq summary {
		padding: 12px 14px;
	}

	.article .faq details > p {
		padding: 0 14px 14px;
	}
}

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */

/* A blue band: the note that this isn't a government website, and the footer pages. */
.footer {
	padding: 22px 0;
	background: var(--kk-blue);
	color: #dceaf4;
	font-size: 14.5px;
}

.footer .wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
}

.footer p {
	margin: 0;
}

.footer strong {
	color: var(--kk-white);
	font-weight: 600;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links a {
	color: var(--kk-white);
	text-decoration: none;
}

.footer-links a:hover {
	text-decoration: underline;
}

/* Wide screens: the hero line a size up. */
@media (min-width: 900px) {
	.lead {
		font-size: 18px;
	}
}

/*
 * The beneficiary list page's form: the four dropdowns in two pairs when there's room,
 * so the form is half as tall. Its title, message, button and waiting line span both.
 */
@media (min-width: 600px) {
	.check.is-pairs {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 10px 12px;
	}

	.check.is-pairs > :not(.field) {
		grid-column: 1 / -1;
	}

	.check.is-pairs .field + .field,
	.check.is-pairs .button,
	.check.is-pairs .note {
		margin-top: 0;
		margin-bottom: 0;
	}

	.check.is-pairs .button {
		margin-top: 2px;
	}
}

/* ------------------------------------------------------------------ *
 * Graphics in the articles: plain HTML and CSS, in the site's blue and grays
 * ------------------------------------------------------------------ */

/* A step-by-step flow: boxes in a row with arrows, a column with down-arrows on phones. */
.flow {
	display: grid;
	grid-auto-columns: 1fr;
	grid-auto-flow: column;
	gap: 28px;
	margin: 18px 0 22px;
	padding: 0;
	list-style: none;
	counter-reset: flow;
}

.article .flow {
	gap: 28px;
	padding: 0;
}

.flow li {
	position: relative;
	padding: 12px 14px 14px;
	border: 1px solid var(--kk-line);
	border-top: 3px solid var(--kk-blue);
	background: var(--kk-white);
	counter-increment: flow;
	font-size: 15.5px;
	line-height: 1.5;
}

.flow li::marker {
	content: '';
}

.flow li::before {
	content: counter( flow );
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-bottom: 6px;
	background: var(--kk-blue);
	color: var(--kk-white);
	font-size: 13px;
	font-weight: 700;
}

.flow li + li::after {
	content: '→';
	position: absolute;
	top: 50%;
	left: -22px;
	color: var(--kk-blue);
	font-size: 18px;
	font-weight: 700;
	transform: translateY( -50% );
}

.flow strong {
	display: block;
	margin-bottom: 2px;
}

.flow .is-done {
	border-top-color: #2e7d4f;
}

.flow .is-done::before {
	background: #2e7d4f;
}

@media (max-width: 720px) {
	.flow {
		grid-auto-flow: row;
		gap: 26px;
	}

	.article .flow {
		gap: 26px;
	}

	.flow li + li::after {
		content: '↓';
		top: -23px;
		left: 50%;
		transform: translateX( -50% );
	}
}

/* One whole split into equal parts (₹6,000 = 3 × ₹2,000, a year in three periods). */
.split {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 2px;
	margin: 18px 0 8px;
}

.split > div {
	padding: 12px 10px;
	background: var(--kk-blue);
	color: var(--kk-white);
	text-align: center;
	line-height: 1.35;
}

.split b {
	display: block;
	font-size: 1.25em;
}

.split small {
	display: block;
	margin-top: 2px;
	font-size: 0.82em;
	opacity: 0.92;
}

.split .is-next {
	background: var(--kk-gray);
	color: var(--kk-ink);
	outline: 2px dashed var(--kk-blue);
	outline-offset: -2px;
}

.split-total {
	margin-top: 4px;
	color: var(--kk-ink-muted);
	font-size: 14.5px;
	text-align: center;
}

@media (max-width: 420px) {
	.split > div {
		padding: 10px 6px;
	}
}

/* Cards with an icon: the three things a kist needs, the three ways to do eKYC. */
.cards {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 12px;
	margin: 16px 0 20px;
}

@media (max-width: 720px) {
	.cards {
		grid-template-columns: 1fr;
	}
}

.card {
	padding: 14px 16px 16px;
	border: 1px solid var(--kk-line);
	background: var(--kk-white);
	line-height: 1.55;
}

.card svg {
	display: block;
	width: 34px;
	height: 34px;
	margin-bottom: 8px;
	color: var(--kk-blue);
}

.article .card h3 {
	margin: 0 0 4px;
}

.article .card p {
	font-size: 15.5px;
}

.article .card p + p {
	margin-top: 6px;
}

.card-meta {
	color: var(--kk-ink-muted);
}

/* A bar chart of one measure: a row per bar, value at the tip, details on hover or focus. */
.chart {
	margin: 18px 0 8px;
}

.chart-title {
	margin-bottom: 10px;
	color: var(--kk-ink);
	font-size: 15.5px;
	font-weight: 700;
}

.article .chart-rows {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.chart-row {
	position: relative;
	display: grid;
	grid-template-columns: 52px 1fr;
	align-items: center;
	gap: 10px;
	outline: none;
}

.article .chart-row::marker {
	content: '';
}

.chart-label {
	color: var(--kk-ink-soft);
	font-size: 15px;
	font-weight: 600;
}

.chart-track {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.chart-bar {
	flex: none;
	height: 22px;
	border-radius: 0 4px 4px 0;
	background: var(--kk-blue);
}

.chart-row.is-partial .chart-bar {
	background: repeating-linear-gradient( 135deg, var(--kk-blue) 0 6px, #4f97c4 6px 10px );
}

.chart-value {
	flex: none;
	color: var(--kk-ink);
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
}

.chart-tip {
	position: absolute;
	bottom: calc( 100% + 6px );
	left: 62px;
	z-index: 2;
	max-width: calc( 100% - 62px );
	padding: 6px 10px;
	background: var(--kk-ink);
	color: var(--kk-white);
	font-size: 13.5px;
	line-height: 1.4;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.12s ease;
}

.chart-row:hover .chart-tip,
.chart-row:focus .chart-tip {
	opacity: 1;
}

.chart-row:focus-visible .chart-bar {
	outline: 2px solid var(--kk-ink);
	outline-offset: 2px;
}

.chart-axis {
	display: flex;
	justify-content: space-between;
	margin: 6px 96px 0 62px;
	padding-top: 4px;
	border-top: 1px solid var(--kk-line);
	color: var(--kk-ink-muted);
	font-size: 13px;
}

.chart-note {
	margin-top: 6px;
	color: var(--kk-ink-muted);
	font-size: 14px;
}

