/**
 * Srisailam Darshan Status — front-end styles.
 *
 * Kept intentionally plain and theme-friendly: neutral spacing and a single
 * accent, so it reads cleanly inside whatever theme wraps it. Shared by the
 * single dated entry page and the shortcode (Task 5).
 */

.sds-single {
	max-width: 44rem;
	margin: 0 auto;
	padding: 1.5rem 1rem 3rem;
}

.sds-entry__eyebrow {
	margin: 0 0 0.25rem;
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.7;
}

.sds-entry__title {
	margin: 0 0 0.5rem;
	line-height: 1.2;
}

.sds-entry__updated {
	margin: 0 0 1.5rem;
	font-size: 1.05rem;
}

.sds-entry__log-title {
	margin: 1.5rem 0 0.75rem;
	font-size: 1.15rem;
}

/* Update log — shared list of rows. */
.sds-log {
	list-style: none;
	margin: 0;
	padding: 0;
}

.sds-log__item {
	position: relative;
	margin: 0 0 0.75rem;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-left: 4px solid rgba(0, 0, 0, 0.18);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.015);
}

.sds-log__item--latest {
	border-left-color: #b8860b; /* dark goldenrod — a temple-ish accent */
	background: rgba(184, 134, 11, 0.06);
}

.sds-log__time {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	opacity: 0.85;
}

.sds-log__badge {
	display: inline-block;
	padding: 0.05rem 0.5rem;
	border-radius: 999px;
	background: #b8860b;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sds-log__summary {
	line-height: 1.55;
}

.sds-log__summary p:last-child {
	margin-bottom: 0;
}

.sds-entry__none {
	opacity: 0.75;
	font-style: italic;
}

/* ---------------------------------------------------------------------------
 * Shortcode display states (normal / empty / stale) on /darshan-status/.
 * Styles are scoped under .sds-status and use their own type/color tokens so
 * the card looks intentional regardless of the surrounding theme.
 * ------------------------------------------------------------------------ */

.sds-status {
	max-width: 40rem;
	margin: 1.5rem auto;
	padding: 1.4rem 1.5rem;
	border: 1px solid #e6e6ea;
	border-top: 4px solid #9aa0a6;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 18px rgba(16, 24, 40, 0.06);
	color: #1f2328;
	line-height: 1.6;
	font-size: 1.05rem;
	-webkit-font-smoothing: antialiased;
}

.sds-status--fresh {
	border-top-color: #1a7f37; /* green — trustworthy, current */
}

.sds-status--stale {
	border-top-color: #c77700; /* amber — caution */
}

.sds-status--empty {
	border-top-color: #9aa0a6; /* neutral */
}

/* Header: status pill + updated stamp. */
.sds-status__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.85rem;
	margin-bottom: 1rem;
}

.sds-status__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	white-space: nowrap;
}

.sds-status__dot {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background: currentColor;
	flex: none;
}

.sds-status__pill--fresh {
	color: #12692d;
	background: rgba(26, 127, 55, 0.12);
}

/* Gentle pulse so the live state reads as current, not static. */
.sds-status__pill--fresh .sds-status__dot {
	box-shadow: 0 0 0 0 rgba(26, 127, 55, 0.5);
	animation: sds-pulse 2.2s ease-out infinite;
}

@keyframes sds-pulse {
	70% { box-shadow: 0 0 0 0.5rem rgba(26, 127, 55, 0); }
	100% { box-shadow: 0 0 0 0 rgba(26, 127, 55, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.sds-status__pill--fresh .sds-status__dot { animation: none; }
}

.sds-status__pill--stale {
	color: #9a5b00;
	background: rgba(199, 119, 0, 0.14);
}

.sds-status__pill--empty {
	color: #4a4f55;
	background: rgba(0, 0, 0, 0.06);
}

/* The last-updated stamp is required and must read as bold and prominent. */
.sds-status__updated {
	font-size: 0.98rem;
	color: #3a3f45;
}

.sds-status__updated strong {
	font-weight: 700;
}

.sds-status__heading {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
	font-weight: 700;
}

/* The summary is the message — give it room and weight. */
.sds-status__summary {
	font-size: 1.15rem;
	line-height: 1.65;
}

.sds-status__summary p {
	margin: 0 0 0.6rem;
}

.sds-status__summary p:last-child {
	margin-bottom: 0;
}

/* Stale state: the old summary must not look as authoritative as a fresh one. */
.sds-status__stale-note {
	margin: 0 0 1rem;
	font-weight: 600;
	color: #9a5b00;
}

.sds-status__last-known {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border-radius: 10px;
	background: #f6f7f9;
}

.sds-status__last-known .sds-status__summary {
	font-size: 1.02rem;
	color: #3a3f45;
}

.sds-status__last-known-label,
.sds-status__past-label {
	margin: 0 0 0.4rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
}

.sds-status__guidance {
	margin-top: 1.1rem;
	padding-top: 0.9rem;
	border-top: 1px solid #ececf0;
	color: #3a3f45;
}

.sds-status__guidance p:last-child {
	margin-bottom: 0;
}

.sds-status__past {
	margin-top: 1.35rem;
	padding-top: 0.9rem;
	border-top: 1px solid #ececf0;
}
