/*
 * yojanacheck.com: every page lies on a black granite counter (a photographed CC0 texture, assets/img/README.txt).
 * The tool is a counter machine that prints the family's slip (the plugin's yc-tool.css); everything else is printed
 * on a sheet of paper lying on the same counter. Text always sits on a plain panel: light words on the dark counter,
 * dark ink on the paper. The design the owner chose on 2 Nov 2026 ("Printed slip", design/parchi.html).
 * Fonts: assets/css/fonts.css, loaded first. A changed font file gets a new name (browsers keep it for a year).
 */
:root {
	--counter: #2b3037;
	--cream: #fbf7ee;
	--label: #d9dce1;
	--amber: #f2b552;
	--paper: #f7f5ef;
	--ink: #232221;
	--ink-soft: #57544d;
	--rule: rgba(30, 30, 30, .22);
	--link: #163a8f;
	--gutter: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--counter); }
body {
	margin: 0;
	min-height: 100vh;
	color: var(--cream);
	font: 500 18px/1.6 "Anek Devanagari", system-ui, -apple-system, "Segoe UI", "Noto Sans Devanagari", "Nirmala UI", "Mangal", Roboto, sans-serif;
	background:
		radial-gradient(900px 700px at 18% -8%, rgba(255, 236, 206, .20), transparent 62%),
		radial-gradient(1400px 900px at 50% 120%, rgba(0, 0, 0, .45), transparent 70%),
		linear-gradient(rgba(14, 17, 22, .30), rgba(14, 17, 22, .30)),
		url(../img/granite.webp?v=20261102) 0 0 / 900px auto repeat,
		var(--counter);
}
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 792px; }
.wrap--tool { max-width: 552px; }

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

/* The top: the name, and beside it the line that this is not a government website. */
.site-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 16px; padding-top: 18px; padding-bottom: 14px; }
.brand { font-family: "Anek Mark", "Anek Devanagari", sans-serif; font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.01em; color: var(--cream); text-decoration: none; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.brand b { color: var(--amber); font-weight: 800; }
.indep { margin: 0; font-size: 15px; color: var(--label); }
.site-head__row .indep { flex-basis: 100%; margin-top: -2px; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 17px; color: #dfe2e6; }
.site-nav [aria-current="page"] { color: var(--amber); }

/* A heading that stands on the counter (the homepage, a page that starts with the tool). */
.page-head--home, .page-head--tool { padding: 6px 0 18px; }
.page-head--home .page-head__title, .page-head--tool .page-head__title { font-size: 25px; line-height: 1.25; font-weight: 700; color: var(--cream); text-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.page-head--home .lede, .page-head--tool .lede { font-size: 16.5px; line-height: 1.5; color: var(--label); margin-top: 8px; }
.page-head--tool .crumbs { color: var(--label); }
.tool-band { padding-bottom: 48px; }

/* A sheet of paper on the counter: everything else is printed here. */
.sheet {
	position: relative;
	color: var(--ink);
	padding: 22px 18px 26px;
	margin: 0 0 40px;
	border-radius: 2px;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, 0) 8%, rgba(255, 255, 255, .30) 46%, rgba(0, 0, 0, 0) 86%, rgba(0, 0, 0, .06)),
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .33  0 0 0 0 .3  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
		var(--paper);
	box-shadow: 0 1px 1px rgba(0, 0, 0, .35), 0 16px 26px -8px rgba(0, 0, 0, .55), 0 34px 60px -30px rgba(0, 0, 0, .5);
}
.sheet a { color: var(--link); }
.sheet a:focus-visible { outline-color: var(--link); }
.sheet .page-head { padding: 0 0 6px; }
.page-head__title { font-size: 28px; line-height: 1.25; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.lede { font-size: 19px; line-height: 1.5; margin: 10px 0 0; color: var(--ink-soft); }
.kicker { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.crumbs ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 15px; }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.page-meta { font-size: 15px; color: var(--ink-soft); margin: 18px 0 0; }

.prose { overflow-wrap: anywhere; }
.prose h2 { font-size: 23px; line-height: 1.3; font-weight: 700; margin: 30px 0 8px; padding-top: 14px; border-top: 2px dashed var(--rule); }
.prose h3 { font-size: 20px; line-height: 1.35; font-weight: 700; margin: 22px 0 6px; }
.prose p, .prose li { color: rgba(28, 27, 26, .92); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 4px; }
.prose table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 16.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px dotted rgba(30, 30, 30, .45); }
.prose th { font-weight: 700; }
.prose .num, .prose td.num { font-family: "IBM Plex Mono", monospace; font-weight: 500; white-space: nowrap; }
.checked { white-space: nowrap; }

.yc-figure, .lead-image { margin: 16px 0 0; }
.yc-figure img, .lead-image img { display: block; width: 100%; height: auto; }
.yc-figure figcaption, .lead-image figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 6px; }

.section { padding: 0 0 8px; }
.section__title { font-size: 23px; line-height: 1.3; margin: 0 0 6px; }
.qa__q { font-size: 19px; margin: 20px 0 4px; }
.qa__a p { margin: 0 0 8px; }

.post-list { list-style: none; padding: 0; }
.post-list li { padding: 10px 0; border-bottom: 1px dotted rgba(30, 30, 30, .45); }
.post-list p { margin: 4px 0 0; font-size: 16.5px; color: var(--ink-soft); }

.ad { margin: 0 auto 32px; max-width: 792px; padding: 0 var(--gutter); }
.ad__label { display: block; font-size: 13px; color: var(--label); }

/* The bottom, on the counter. */
.site-foot { padding: 8px 0 40px; font-size: 16px; color: var(--label); }
.site-foot .brand--foot { margin: 0 0 8px; font-size: 24px; }
.site-foot p { margin: 0 0 8px; max-width: 70ch; }
.site-foot__small { font-size: 15px; }
.site-foot__nav ul { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: #eef0f2; }

@media (min-width: 720px) {
	.site-head__row .indep { flex-basis: auto; margin-top: 0; }
	.sheet { padding: 34px 40px 40px; }
	.page-head__title { font-size: 32px; }
	.page-head--home .page-head__title, .page-head--tool .page-head__title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}

.yc-noscript { margin: 0; padding: 16px 18px; background: var(--paper); color: var(--ink); border-radius: 2px; }

/* Pages drawn from the rules: a scheme, a state, the list. */
.status-line { padding: 10px 12px; border: 2px dashed rgba(180, 35, 26, .55); color: #5b1712; background: rgba(180, 35, 26, .05); }
.to-tool { padding: 12px 14px; background: rgba(242, 181, 82, .22); border-left: 4px solid var(--amber); }
.to-tool a { font-weight: 700; }
.prose .scheme-list { list-style: none; padding: 0; }
.scheme-list li { padding: 10px 0; border-bottom: 1px dotted rgba(30, 30, 30, .45); }
.scheme-list li + li { margin-top: 0; }
.scheme-list a { font-weight: 600; }
.list-meta, .src-meta { font-size: 15.5px; color: var(--ink-soft); }
.sources { padding-left: 22px; font-size: 16px; }
.sources li { overflow-wrap: anywhere; }
