/* Marathi Jaap Counter – scoped styles (.mjc-*) that sit inside any theme. */
.mjc-counter,
.mjc-directory,
.mjc-related,
.mjc-breadcrumb {
	--mjc-accent: #c2410c;
	--mjc-accent-dark: #9a3412;
	--mjc-soft: #fff7ed;
	--mjc-soft-2: #ffedd5;
	--mjc-ink: #1f2937;
	--mjc-muted: #6b7280;
	--mjc-line: #fed7aa;
	--mjc-card: #ffffff;
	--mjc-focus: #1d4ed8;
	box-sizing: border-box;
	color: var(--mjc-ink);
}
.mjc-counter *, .mjc-directory *, .mjc-related *, .mjc-breadcrumb * { box-sizing: border-box; }

/* ---------- breadcrumb ---------- */
.mjc-breadcrumb { margin: 0 0 1em; font-size: .9em; }
.mjc-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25em; }
.mjc-breadcrumb li { margin: 0; color: var(--mjc-muted); }
.mjc-breadcrumb li + li::before { content: "›"; margin-right: .35em; color: var(--mjc-muted); }
.mjc-breadcrumb a { color: var(--mjc-accent-dark); }

/* ---------- counter ---------- */
.mjc-counter {
	max-width: 640px;
	margin: 1.5em auto;
	background: var(--mjc-card);
	border: 1px solid var(--mjc-line);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 6px 24px rgba(194, 65, 12, .08);
}
.mjc-mantra {
	background: linear-gradient(180deg, var(--mjc-soft-2), var(--mjc-soft));
	text-align: center;
	padding: 22px 18px 20px;
	border-bottom: 1px solid var(--mjc-line);
}
.mjc-counter .mjc-mantra-label {
	margin: 0 0 6px;
	font-size: .8em;
	letter-spacing: .08em;
	color: var(--mjc-accent-dark);
	font-weight: 700;
}
.mjc-counter .mjc-mantra-text {
	margin: 0;
	font-size: clamp(1.35em, 4.6vw, 1.85em);
	line-height: 1.65;
	font-weight: 700;
	color: #7c2d12;
	word-break: keep-all;
}
.mjc-panel { padding: 18px 18px 16px; }
.mjc-panel[hidden] { display: none; }

.mjc-session { text-align: center; }
.mjc-session-label { display: block; font-size: .85em; color: var(--mjc-muted); }
.mjc-session-num {
	display: block;
	font-size: clamp(3em, 14vw, 4.2em);
	line-height: 1.1;
	font-weight: 800;
	color: var(--mjc-accent);
	font-variant-numeric: tabular-nums;
}

.mjc-progress-wrap { margin: 10px 0 4px; }
.mjc-progress-text { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: .9em; color: var(--mjc-muted); margin-bottom: 6px; }
.mjc-progress-text strong { color: var(--mjc-ink); }
.mjc-progress { height: 10px; border-radius: 99px; background: #f3f4f6; overflow: hidden; }
.mjc-progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, #f59e0b, var(--mjc-accent)); border-radius: 99px; transition: width .2s ease; }

.mjc-counter .mjc-mala-msg {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	font-weight: 600;
	text-align: center;
}
.mjc-counter .mjc-mala-msg[hidden] { display: none; }

.mjc-counter .mjc-count-btn {
	display: block;
	width: 100%;
	min-height: 84px;
	margin: 16px 0 12px;
	border: 0;
	border-radius: 16px;
	background: var(--mjc-accent);
	color: #fff;
	font: inherit;
	font-size: 1.45em;
	font-weight: 800;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
	box-shadow: 0 4px 0 var(--mjc-accent-dark);
	transition: transform .06s ease, box-shadow .06s ease, background .15s;
}
.mjc-counter .mjc-count-btn:hover { background: #b23b0a; }
.mjc-counter .mjc-count-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--mjc-accent-dark); }
.mjc-counter .mjc-count-btn.mjc-bump { animation: mjc-bump .18s ease; }
@keyframes mjc-bump { 50% { transform: scale(.98); } }

.mjc-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mjc-counter .mjc-btn {
	min-height: 44px;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1.5px solid var(--mjc-line);
	background: #fff;
	color: var(--mjc-ink);
	font: inherit;
	font-size: .92em;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}
.mjc-counter .mjc-btn:hover:not(:disabled) { background: var(--mjc-soft); border-color: var(--mjc-accent); }
.mjc-counter .mjc-btn:disabled { opacity: .45; cursor: not-allowed; }

.mjc-counter .mjc-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
}
.mjc-stats > div { background: var(--mjc-soft); border-radius: 12px; padding: 10px 6px; text-align: center; }
.mjc-counter .mjc-stats dt { margin: 0; font-size: .78em; color: var(--mjc-muted); font-weight: 600; line-height: 1.3; }
.mjc-counter .mjc-stats dd { margin: 4px 0 0; font-size: 1.3em; font-weight: 800; color: var(--mjc-ink); font-variant-numeric: tabular-nums; }

.mjc-vibrate { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .9em; color: var(--mjc-muted); cursor: pointer; }
.mjc-vibrate[hidden] { display: none; }
.mjc-counter .mjc-storage-warn { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #991b1b; font-size: .9em; }
.mjc-counter .mjc-storage-warn[hidden] { display: none; }

.mjc-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--mjc-line); font-size: .9em; }
.mjc-footer a { color: var(--mjc-accent-dark); font-weight: 600; }
.mjc-counter .mjc-linkbtn { background: none; border: 0; padding: 4px 0; color: var(--mjc-muted); text-decoration: underline; font: inherit; font-size: .95em; cursor: pointer; text-transform: none; }
.mjc-counter .mjc-linkbtn:hover { color: #991b1b; }
.mjc-noscript, .mjc-editor-notice { padding: 10px 14px; background: #fef2f2; color: #991b1b; border-radius: 8px; }

/* ---------- directory ---------- */
.mjc-directory { margin: 1.5em 0; }
.mjc-search { margin: 0 0 16px; }
.mjc-search[hidden] { display: none; }
.mjc-search label { display: block; font-weight: 600; margin-bottom: 6px; }
.mjc-directory .mjc-search-input {
	width: 100%;
	max-width: 480px;
	min-height: 48px;
	padding: 10px 14px;
	border: 1.5px solid var(--mjc-line);
	border-radius: 12px;
	font: inherit;
	background: #fff;
	color: var(--mjc-ink);
}
.mjc-search-status { margin: 6px 0 0; min-height: 1.2em; font-size: .9em; color: var(--mjc-muted); }
.mjc-directory .mjc-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 14px;
}
.mjc-directory .mjc-card {
	margin: 0;
	display: flex;
	flex-direction: column;
	background: var(--mjc-card);
	border: 1px solid var(--mjc-line);
	border-radius: 16px;
	padding: 16px;
	transition: box-shadow .15s, transform .15s;
}
.mjc-directory .mjc-card[hidden] { display: none; }
/* Anything injected into the grid by a theme or ad script (empty <p>, <br>,
   ad placeholders) must not occupy a card slot and leave a blank box:
   empty elements are hidden, real ads get their own full-width row. */
.mjc-directory .mjc-grid > :not(.mjc-card) { grid-column: 1 / -1; margin: 0; }
.mjc-directory .mjc-grid > :not(.mjc-card):empty,
.mjc-directory .mjc-grid > br { display: none; }
.mjc-directory .mjc-card > p:empty:not([class]),
.mjc-directory .mjc-card > br { display: none; }

/* ---------- summary on the directory page ---------- */
.mjc-summary {
	margin: 0 0 22px;
	padding: 18px;
	border-radius: 16px;
	background: linear-gradient(180deg, var(--mjc-soft-2), var(--mjc-soft));
	border: 1px solid var(--mjc-line);
}
.mjc-summary[hidden] { display: none; }
.mjc-directory .mjc-summary-title { margin: 0 0 12px; font-size: 1.25em; }
.mjc-directory .mjc-summary-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; }
.mjc-summary-stats > div { background: #fff; border-radius: 12px; padding: 12px 8px; text-align: center; }
.mjc-directory .mjc-summary-stats dt { margin: 0; font-size: .8em; color: var(--mjc-muted); font-weight: 600; line-height: 1.3; }
.mjc-directory .mjc-summary-stats dd { margin: 4px 0 0; font-size: 1.5em; font-weight: 800; color: var(--mjc-accent); font-variant-numeric: tabular-nums; }
.mjc-directory .mjc-summary-top { margin: 12px 0 0; font-weight: 600; }
.mjc-directory .mjc-summary-top[hidden] { display: none; }
.mjc-directory .mjc-summary-note { margin: 10px 0 0; font-size: .85em; color: var(--mjc-muted); }
.mjc-directory .mjc-card-count {
	margin: -4px 0 12px;
	padding: 6px 10px;
	border-radius: 8px;
	background: #ecfdf5;
	color: #065f46;
	font-size: .88em;
	font-weight: 600;
}
.mjc-directory .mjc-card-count[hidden] { display: none; }
@media (max-width: 640px) {
	.mjc-directory .mjc-summary-stats { grid-template-columns: repeat(2, 1fr); }
}
.mjc-directory .mjc-card:hover { box-shadow: 0 6px 20px rgba(194, 65, 12, .12); transform: translateY(-2px); }
.mjc-directory .mjc-card-title { margin: 0 0 8px; font-size: 1.1em; line-height: 1.35; }
.mjc-directory .mjc-card-mantra { margin: 0 0 14px; flex: 1; color: #7c2d12; font-weight: 600; line-height: 1.6; font-size: .95em; }
.mjc-directory .mjc-card-btn {
	align-self: flex-start;
	display: inline-block;
	padding: 10px 16px;
	min-height: 44px;
	border-radius: 10px;
	background: var(--mjc-accent);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
}
.mjc-directory .mjc-card-btn:hover { background: var(--mjc-accent-dark); color: #fff; }
.mjc-card-soon { font-size: .9em; color: var(--mjc-muted); }
.mjc-directory .mjc-noresult { padding: 12px; background: var(--mjc-soft); border-radius: 10px; }
.mjc-directory .mjc-noresult[hidden] { display: none; }

/* ---------- related ---------- */
.mjc-related { margin: 2em 0 1em; padding: 18px; background: var(--mjc-soft); border-radius: 16px; }
.mjc-related .mjc-related-title { margin-top: 0; }
.mjc-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mjc-related li { margin: 0; background: #fff; border: 1px solid var(--mjc-line); border-radius: 12px; padding: 12px 14px; }
.mjc-related li a { font-weight: 700; color: var(--mjc-accent-dark); }
.mjc-related-mantra { display: block; margin-top: 2px; font-size: .9em; color: var(--mjc-muted); }
.mjc-related .mjc-related-all { margin: 14px 0 0; }
.mjc-related .mjc-related-all a { font-weight: 700; color: var(--mjc-accent-dark); }

/* ---------- focus & motion ---------- */
.mjc-counter button:focus-visible,
.mjc-directory a:focus-visible,
.mjc-directory input:focus-visible,
.mjc-related a:focus-visible,
.mjc-breadcrumb a:focus-visible,
.mjc-footer a:focus-visible {
	outline: 3px solid var(--mjc-focus);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	.mjc-counter *, .mjc-directory * { transition: none !important; animation: none !important; }
}
@media (max-width: 420px) {
	.mjc-panel { padding: 14px 12px; }
	.mjc-counter .mjc-stats dd { font-size: 1.1em; }
	.mjc-secondary { grid-template-columns: 1fr; }
}
