/* Nepali Tools Suite - shared styles */
.nts-tool {
	max-width: 640px;
	margin: 1.5em 0;
	padding: 24px;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	background: #fafafa;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}
.nts-tool * { box-sizing: border-box; }
.nts-tool h3 {
	margin-top: 0;
	font-size: 1.15em;
}
.nts-field {
	margin-bottom: 14px;
}
.nts-field label {
	display: block;
	font-size: 0.9em;
	font-weight: 600;
	margin-bottom: 4px;
	color: #333;
}
.nts-field input[type="text"],
.nts-field input[type="number"],
.nts-field select,
.nts-field textarea {
	width: 100%;
	padding: 9px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 0.95em;
}
.nts-field textarea { resize: vertical; }
.nts-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}
.nts-row .nts-field { flex: 1; min-width: 140px; }
.nts-btn {
	display: inline-block;
	padding: 10px 18px;
	background: #1a73e8;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.95em;
	font-weight: 600;
	cursor: pointer;
}
.nts-btn:hover { background: #1558b0; }
.nts-btn-secondary {
	background: #eee;
	color: #333;
}
.nts-btn-secondary:hover { background: #ddd; }
.nts-result {
	margin-top: 16px;
	padding: 14px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 0.95em;
}
.nts-result strong { color: #1a73e8; }
.nts-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
	font-size: 0.88em;
}
.nts-table th, .nts-table td {
	border: 1px solid #e2e2e2;
	padding: 6px 8px;
	text-align: right;
}
.nts-table th:first-child, .nts-table td:first-child { text-align: left; }
.nts-note {
	font-size: 0.8em;
	color: #777;
	margin-top: 10px;
}
.nts-output-box {
	white-space: pre-wrap;
	word-break: break-word;
	font-family: monospace;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 10px;
	min-height: 60px;
}
.nts-error { color: #c62828; font-size: 0.85em; margin-top: 6px; }

/* Nepali Calendar - Hamro Patro style */
.nts-patro-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
.nts-patro-title {
	font-size: 1.25em;
	font-weight: 700;
	text-align: center;
	color: #222;
}
.nts-patro-subtitle {
	font-size: 0.85em;
	text-align: center;
	color: #888;
}
.nts-patro-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-size: 0.85em;
	font-weight: 700;
	color: #555;
	margin-bottom: 4px;
}
.nts-patro-sun { color: #c62828; }
.nts-patro-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 3px;
}
.nts-patro-cell {
	min-height: 58px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #eee;
	padding: 4px 3px;
	text-align: center;
	position: relative;
}
.nts-patro-cell.nts-empty { background: transparent; border: none; }
.nts-patro-bs-day {
	font-size: 1.05em;
	font-weight: 700;
	color: #222;
}
.nts-patro-ad-day {
	font-size: 0.68em;
	color: #999;
}
.nts-patro-cell.nts-sunday .nts-patro-bs-day { color: #c62828; }
.nts-patro-cell.nts-holiday {
	background: #fdeaea;
	border-color: #f3c6c6;
}
.nts-patro-cell.nts-holiday .nts-patro-bs-day { color: #c62828; }
.nts-patro-cell.nts-today {
	background: #1a73e8;
	border-color: #1a73e8;
}
.nts-patro-cell.nts-today .nts-patro-bs-day,
.nts-patro-cell.nts-today .nts-patro-ad-day { color: #fff; }
.nts-patro-event {
	font-size: 0.6em;
	color: #c62828;
	line-height: 1.15;
	margin-top: 2px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.nts-patro-cell.nts-today .nts-patro-event { color: #ffe0e0; }
