/**
 * GistEdge AI Publisher — front-end styles.
 *
 * Loaded only on single posts that carry a story timeline. Scoped entirely under
 * .gaip-story so it cannot leak into the theme, and it leans on the theme's own colours
 * (currentColor, inherited link colour) rather than hard-coding a palette that would
 * clash. It adapts to a dark theme through currentColor without a media query.
 */

.gaip-story {
	margin: 2.5rem 0 1.5rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid rgba(128, 128, 128, 0.28);
	border-radius: 8px;
	background: rgba(128, 128, 128, 0.05);
}

.gaip-story__heading {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
	line-height: 1.3;
}

.gaip-story__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.gaip-story__item {
	margin: 0;
	padding: 0.4rem 0;
	border-top: 1px solid rgba(128, 128, 128, 0.18);
}

.gaip-story__item:first-child {
	border-top: 0;
}

.gaip-story__item a {
	font-weight: 600;
}

.gaip-story__date {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.85em;
	opacity: 0.7;
}

/* Confidence panel — "what the reporting shows". */
.gaip-confidence {
	margin: 2.5rem 0 1.5rem;
	padding: 1.25rem 1.5rem;
	border: 1px solid rgba(128, 128, 128, 0.28);
	border-radius: 8px;
	background: rgba(128, 128, 128, 0.05);
}

.gaip-confidence__heading {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	line-height: 1.3;
}

.gaip-confidence__group {
	margin: 0 0 1rem;
	padding-left: 0.85rem;
	border-left: 3px solid rgba(128, 128, 128, 0.35);
}

.gaip-confidence__group--agree { border-left-color: #2e7d46; }
.gaip-confidence__group--differ { border-left-color: #b8860b; }
.gaip-confidence__group--open { border-left-color: #9a6a9a; }

.gaip-confidence__title {
	margin: 0 0 0.35rem;
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.85;
}

.gaip-confidence__list {
	margin: 0;
	padding-left: 1.1rem;
}

.gaip-confidence__list li {
	margin: 0.2rem 0;
}

.gaip-confidence__note {
	margin: 0.5rem 0 0;
	font-size: 0.82em;
	opacity: 0.6;
	font-style: italic;
}

/* Newsletter subscribe form. */
.gaip-subscribe {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid rgba(128, 128, 128, 0.28);
	border-radius: 8px;
	background: rgba(128, 128, 128, 0.05);
}

.gaip-subscribe__title {
	display: block;
	margin-bottom: 0.6rem;
	font-size: 1.05rem;
	font-weight: 600;
}

.gaip-subscribe__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.gaip-subscribe__input {
	flex: 1 1 220px;
	min-width: 0;
	padding: 0.55rem 0.7rem;
	border: 1px solid rgba(128, 128, 128, 0.5);
	border-radius: 6px;
	font-size: 1rem;
}

.gaip-subscribe__btn {
	flex: 0 0 auto;
	padding: 0.55rem 1.1rem;
	border: 0;
	border-radius: 6px;
	background: #2271b1;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.gaip-subscribe__btn:hover { background: #135e96; }

.gaip-subscribe__fine {
	margin: 0.6rem 0 0;
	font-size: 0.8em;
	opacity: 0.65;
}

.gaip-subscribe__msg {
	margin: 0 0 0.6rem;
	padding: 0.5rem 0.7rem;
	border-radius: 6px;
	font-size: 0.9em;
}

.gaip-subscribe__msg--ok { background: rgba(46, 125, 70, 0.12); color: #2e7d46; }
.gaip-subscribe__msg--bad { background: rgba(179, 45, 46, 0.1); color: #b3302e; }

/* Honeypot: kept in the DOM for bots, invisible and unfocusable for people. */
.gaip-subscribe__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
