/* Niebywałe Suwałki – Myśl dnia (Stoicy) – układ kompaktowy */
.ns-stoik {
	--ns-accent: #008078;
	--ns-deep: #062b29;
	--ns-cream: #f7f0e3;
	--ns-gold: #d8b66a;
	--ns-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 24px 0;
	padding: 26px 20px;
	color: var(--ns-cream);
	background: linear-gradient(110deg, #062b29 0%, #008078 100%); /* fallback */
	background:
		radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--ns-accent) 75%, transparent) 0%, transparent 60%),
		linear-gradient(110deg, var(--ns-deep) 0%, color-mix(in srgb, var(--ns-accent) 55%, var(--ns-deep)) 60%, var(--ns-accent) 100%);
	box-sizing: border-box;
}
.ns-stoik *,
.ns-stoik *::before,
.ns-stoik *::after { box-sizing: border-box; }

/* Pełna szerokość okna */
.ns-stoik--full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}
body:has(.ns-stoik--full) { overflow-x: clip; }

/* Cienka złota linia u góry */
.ns-stoik::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: linear-gradient(90deg, transparent, var(--ns-gold) 20%, var(--ns-gold) 80%, transparent);
	opacity: .7;
}

.ns-stoik__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.022) 0 2px, transparent 2px 9px);
}
.ns-stoik__watermark {
	position: absolute;
	right: 1vw;
	top: 50%;
	transform: translateY(-50%);
	font-family: var(--ns-serif);
	font-size: 150px;
	line-height: 1;
	letter-spacing: .04em;
	color: rgba(247, 240, 227, .04);
	user-select: none;
	white-space: nowrap;
}

.ns-stoik__inner {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 32px;
	max-width: 1068px; /* szerokość treści Newspapera */
	margin: 0 auto;
}

/* Lewa kolumna: etykieta */
.ns-stoik__head {
	padding-right: 28px;
	border-right: 1px solid rgba(216, 182, 106, .45);
	text-align: left;
	white-space: nowrap;
}
.ns-stoik__kicker {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--ns-gold);
}
.ns-stoik .ns-stoik__title {
	margin: 4px 0 2px;
	padding: 0;
	font-family: var(--ns-serif);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.15;
	color: var(--ns-cream);
	border: 0;
	text-transform: none;
}
.ns-stoik__date {
	display: block;
	font-size: 12px;
	color: rgba(247, 240, 227, .65);
}

/* Środek: cytat */
.ns-stoik__quote {
	margin: 0;
	padding: 0;
	text-align: left;
	transition: opacity .3s ease, filter .3s ease, transform .3s ease;
}
.ns-stoik__quote.is-out { opacity: 0; filter: blur(5px); transform: translateY(6px); }
.ns-stoik blockquote.ns-stoik__text {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	quotes: none;
	text-align: left;
	font-size: inherit;
}
.ns-stoik blockquote.ns-stoik__text::before,
.ns-stoik blockquote.ns-stoik__text::after { content: none; display: none; }
.ns-stoik .ns-stoik__text p {
	margin: 0;
	padding: 0;
	font-family: var(--ns-serif);
	font-style: italic;
	font-weight: 400;
	font-size: 22px;
	line-height: 1.38;
	color: var(--ns-cream);
	text-align: left;
	text-wrap: pretty;
	text-transform: none;
	letter-spacing: 0;
}
.ns-stoik .ns-stoik__text p::before { content: "„"; color: var(--ns-gold); }
.ns-stoik .ns-stoik__text p::after { content: "”"; color: var(--ns-gold); }
.ns-stoik__quote.is-long .ns-stoik__text p { font-size: 18px; line-height: 1.42; }

.ns-stoik__caption {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
	margin-top: 8px;
}
.ns-stoik__author {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ns-cream);
}
.ns-stoik__author::before { content: "— "; color: var(--ns-gold); }
.ns-stoik cite.ns-stoik__source {
	font-family: var(--ns-serif);
	font-size: 13px;
	font-style: italic;
	color: var(--ns-gold);
}
.ns-stoik__source:empty { display: none; }

/* Prawa kolumna: przyciski */
.ns-stoik__actions {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}
.ns-stoik .ns-stoik__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	margin: 0;
	padding: 8px 18px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	white-space: nowrap;
	color: var(--ns-deep);
	background: var(--ns-cream);
	border: 1px solid var(--ns-cream);
	border-radius: 999px;
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.ns-stoik .ns-stoik__btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.ns-stoik .ns-stoik__btn:hover { transform: translateY(-1px); background: #fff; }
.ns-stoik .ns-stoik__btn:focus-visible { outline: 3px solid var(--ns-gold); outline-offset: 2px; }
.ns-stoik .ns-stoik__btn--ghost {
	min-height: 34px;
	padding: 6px 14px;
	font-size: 13px;
	color: var(--ns-cream);
	background: transparent;
	border-color: rgba(247, 240, 227, .4);
}
.ns-stoik .ns-stoik__btn--ghost:hover { background: rgba(247, 240, 227, .1); border-color: var(--ns-cream); }
.ns-stoik .ns-stoik__btn[hidden] { display: none; }
.ns-stoik .ns-stoik__btn.is-rolling svg { animation: ns-stoik-roll .7s ease; }

.ns-stoik__toast {
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 6px;
	font-size: 12px;
	color: var(--ns-gold);
	opacity: 0;
	transition: opacity .25s ease;
	white-space: nowrap;
}
.ns-stoik__toast.is-on { opacity: 1; }

@keyframes ns-stoik-roll {
	0% { transform: rotate(0); }
	60% { transform: rotate(400deg) scale(1.15); }
	100% { transform: rotate(360deg); }
}

/* Tablet */
@media (max-width: 900px) {
	.ns-stoik__inner { grid-template-columns: 1fr auto; gap: 18px 24px; }
	.ns-stoik__head {
		grid-column: 1 / -1;
		display: flex;
		align-items: baseline;
		gap: 12px;
		padding: 0 0 10px;
		border-right: 0;
		border-bottom: 1px solid rgba(216, 182, 106, .35);
	}
	.ns-stoik .ns-stoik__title { margin: 0; font-size: 20px; }
	.ns-stoik__date { margin-left: auto; }
}

/* Telefon */
@media (max-width: 600px) {
	.ns-stoik { padding: 20px 16px 18px; }
	.ns-stoik__inner { grid-template-columns: 1fr; gap: 14px; }
	.ns-stoik__head { flex-wrap: wrap; row-gap: 2px; }
	.ns-stoik__kicker { width: 100%; }
	.ns-stoik .ns-stoik__text p { font-size: 19px; }
	.ns-stoik__quote.is-long .ns-stoik__text p { font-size: 17px; }
	.ns-stoik__actions { flex-direction: row; flex-wrap: wrap; }
	.ns-stoik .ns-stoik__btn--draw { flex: 1 1 100%; }
	.ns-stoik .ns-stoik__btn--ghost { flex: 1 1 0; }
	.ns-stoik__watermark { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ns-stoik__quote,
	.ns-stoik .ns-stoik__btn { transition: none; }
	.ns-stoik .ns-stoik__btn.is-rolling svg { animation: none; }
}
