/* SANDHI public pages: self-report and public dashboard. Mobile-first, large text, high contrast. */
.snd-pub {
	--snd-bg: #ffffff;
	--snd-fg: #111418;
	--snd-muted: #44505c;
	--snd-line: #9aa5b1;
	--snd-accent: #0b5cad;
	--snd-accent-fg: #ffffff;
	--snd-ok: #0f6b3a;
	--snd-warn-bg: #fff4d6;
	--snd-warn-fg: #5a3e00;
	--snd-crit-bg: #fde7e7;
	--snd-crit-fg: #8a0000;
	--snd-crit-line: #c40000;
	--snd-card: #f4f6f8;
	box-sizing: border-box;
	max-width: 640px;
	margin: 0 auto;
	padding: 16px;
	background: var(--snd-bg);
	color: var(--snd-fg);
	font-family: "Noto Sans Malayalam", "Manjari", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 20px;
	line-height: 1.55;
}
@media (prefers-color-scheme: dark) {
	.snd-pub {
		--snd-bg: #111418;
		--snd-fg: #f3f5f7;
		--snd-muted: #c3ccd5;
		--snd-line: #5c6773;
		--snd-accent: #7cb8ff;
		--snd-accent-fg: #0b1420;
		--snd-ok: #6fd69c;
		--snd-warn-bg: #3a2e0a;
		--snd-warn-fg: #ffe39a;
		--snd-crit-bg: #3d0d0d;
		--snd-crit-fg: #ffd2d2;
		--snd-crit-line: #ff6b6b;
		--snd-card: #1c2127;
	}
}
.snd-pub *, .snd-pub *::before, .snd-pub *::after { box-sizing: inherit; }
.snd-pub h1 { font-size: 1.45em; line-height: 1.25; margin: 0 0 .4em; }
.snd-pub h2 { font-size: 1.25em; line-height: 1.3; margin: 0 0 .5em; }
.snd-pub h3 { font-size: 1.1em; margin: .6em 0 .3em; }
.snd-pub p { margin: 0 0 .8em; }
.snd-pub-muted { color: var(--snd-muted); font-size: .9em; }

.snd-pub-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.snd-pub-brand { font-weight: 700; font-size: .95em; }

.snd-pub-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; min-width: 52px; padding: 10px 18px;
	border: 2px solid var(--snd-accent); border-radius: 12px;
	background: var(--snd-bg); color: var(--snd-accent);
	font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
	touch-action: manipulation;
}
.snd-pub-btn.primary { background: var(--snd-accent); color: var(--snd-accent-fg); }
.snd-pub-btn.wide { width: 100%; }
.snd-pub-btn:disabled { opacity: .5; cursor: not-allowed; }
.snd-pub-btn:focus-visible, .snd-pub-opt:focus-within, .snd-pub input:focus-visible, .snd-pub textarea:focus-visible {
	outline: 4px solid #ffb000; outline-offset: 2px;
}
.snd-pub-btn svg, .snd-pub-ico { width: 26px; height: 26px; flex: none; }

.snd-pub-card { background: var(--snd-card); border-radius: 16px; padding: 18px; margin: 0 0 16px; }
.snd-pub-progress { height: 10px; background: var(--snd-line); border-radius: 6px; overflow: hidden; margin: 6px 0 14px; }
.snd-pub-progress > span { display: block; height: 100%; background: var(--snd-accent); }

.snd-pub-q { font-size: 1.15em; font-weight: 700; margin-bottom: .6em; }
.snd-pub-help { color: var(--snd-muted); font-size: .9em; margin-bottom: .6em; }

.snd-pub-scale { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.snd-pub-scale button { min-height: 56px; font-size: 1.1em; }
.snd-pub-scale-ends { display: flex; justify-content: space-between; color: var(--snd-muted); font-size: .85em; margin-top: 6px; gap: 8px; }

.snd-pub-opts { display: flex; flex-direction: column; gap: 10px; }
.snd-pub-opt {
	display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 14px;
	border: 2px solid var(--snd-line); border-radius: 12px; background: var(--snd-bg); cursor: pointer;
}
.snd-pub-opt input { width: 28px; height: 28px; flex: none; accent-color: var(--snd-accent); }
.snd-pub-opt.on { border-color: var(--snd-accent); box-shadow: inset 0 0 0 2px var(--snd-accent); }
.snd-pub-opt.flag.on { border-color: var(--snd-crit-line); box-shadow: inset 0 0 0 2px var(--snd-crit-line); }
.snd-pub [aria-pressed="true"] { background: var(--snd-accent); color: var(--snd-accent-fg); }

.snd-pub input[type="number"], .snd-pub textarea {
	width: 100%; min-height: 56px; padding: 12px; font: inherit; color: var(--snd-fg);
	background: var(--snd-bg); border: 2px solid var(--snd-line); border-radius: 12px;
}
.snd-pub textarea { min-height: 130px; }

.snd-pub-nav { display: flex; gap: 12px; margin-top: 18px; }
.snd-pub-nav .snd-pub-btn { flex: 1; }

.snd-pub-alert { border-radius: 14px; padding: 16px 18px; margin: 0 0 14px; border-left: 8px solid; }
.snd-pub-alert.critical { background: var(--snd-crit-bg); color: var(--snd-crit-fg); border-color: var(--snd-crit-line); font-weight: 600; }
.snd-pub-alert.warn { background: var(--snd-warn-bg); color: var(--snd-warn-fg); border-color: #c78a00; }
.snd-pub-alert.info { background: var(--snd-card); color: var(--snd-fg); border-color: var(--snd-accent); }
.snd-pub-alert .snd-pub-ico { vertical-align: middle; margin-right: 6px; }
.snd-pub-call { display: block; margin-top: 10px; font-size: 1.05em; }

.snd-pub-ok { color: var(--snd-ok); font-weight: 700; display: flex; align-items: center; gap: 10px; }

.snd-pub-trend { width: 100%; height: auto; display: block; }
.snd-pub-trend text { fill: var(--snd-fg); font-size: 14px; font-family: inherit; }
.snd-pub-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85em; color: var(--snd-muted); }
.snd-pub-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }

.snd-pub-table { width: 100%; border-collapse: collapse; font-size: .9em; }
.snd-pub-table th, .snd-pub-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--snd-line); }
.snd-pub-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.snd-pub-notice { font-size: .85em; color: var(--snd-muted); border-top: 1px solid var(--snd-line); padding-top: 10px; margin-top: 20px; }
.snd-pub-res h4 { font-size: 1em; margin: .6em 0 .2em; }
.snd-pub-res ul { padding-left: 1.2em; }
.snd-pub details { margin: 0 0 10px; }
.snd-pub summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }

/* Dashboard */
.snd-pub-dash { max-width: 980px; }
.snd-pub-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.snd-pub-kpi { background: var(--snd-card); border-radius: 14px; padding: 14px; }
.snd-pub-kpi .v { font-size: 1.8em; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.snd-pub-kpi .l { color: var(--snd-muted); font-size: .85em; }
.snd-pub-bars { width: 100%; height: auto; }
.snd-pub-bars text { fill: var(--snd-fg); font-size: 15px; font-family: inherit; }
.snd-pub-bars .val { font-variant-numeric: tabular-nums; }
.snd-pub-bars rect.bar { fill: var(--snd-accent); }
.snd-pub-bars rect.supp { fill: none; stroke: var(--snd-line); stroke-dasharray: 4 3; }
.snd-pub-grid2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .snd-pub-grid2 { grid-template-columns: 1fr 1fr; } }
.snd-pub-off { text-align: center; padding: 40px 16px; }

@media print {
	.snd-pub-btn, .snd-pub-top button { display: none !important; }
	.snd-pub { font-size: 14pt; }
}
.snd-pub-table{display:block;overflow-x:auto;max-width:100%}
