/* Myth cards. */
.myths-grid {
	margin-block: 1.5rem;
}

.myths-grid .wp-block-columns {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 1rem;
}

.myths-grid .wp-block-column {
	flex: 1 1 0;
	min-width: 0;
}

.myth-card {
	border: 1px solid #e6e6e9;
	border-radius: 12px;
	background: #fff;
	padding: 14px 16px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.myth-card + .myth-card {
	margin-top: 14px;
}

.myth-card h3 {
	margin: 0 0 6px;
	font-weight: 700;
	line-height: 1.25;
	font-size: 20px;
}

.myth-card p {
	margin: 6px 0;
	line-height: 1.55;
}

.myth-card .myth-src {
	margin-top: 6px;
	font-size: 0.92rem;
	opacity: 0.9;
}

.myth-card .myth-src a[href^="http"]:not([href*="spectresetcycles.fr"])::after {
	content: " ↗";
	font-size: 0.9em;
}

.myth-card a:focus {
	outline: 2px solid #4c7bd9;
	outline-offset: 2px;
	border-radius: 4px;
}

@media (max-width: 800px) {
	.myths-grid .wp-block-columns {
		display: block;
	}

	.myths-grid .wp-block-column {
		width: 100%;
	}

	.myths-grid .wp-block-column + .wp-block-column {
		margin-top: 14px;
	}
}

/* Content warnings. */
.content-warning {
	--bg: rgba(0, 0, 0, 0.04);
	--border: rgba(0, 0, 0, 0.12);
	--accent: #64748b;
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 1rem 1.125rem;
	border: 1px solid var(--border);
	border-left: 6px solid var(--accent);
	border-radius: 0.5rem;
	background: var(--bg);
	font-size: clamp(0.95rem, 1vw + 0.8rem, 1.05rem);
	line-height: 1.5;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	margin-bottom: 20px;
}

.content-warning p,
.content-warning a,
.content-warning strong,
.content-warning em,
.content-warning .cw-text {
	font-family: inherit;
}

.content-warning .cw-icon svg { fill: var(--accent); }
.content-warning .cw-text strong:first-child { margin-right: 0.25rem; }
.content-warning a { text-decoration: underline; }
.content-warning p { margin-bottom: 0; }
.content-warning--danger { --accent: #dc2626; --bg: rgba(220, 38, 38, 0.08); }
.content-warning--warn { --accent: #d97706; --bg: rgba(217, 119, 6, 0.08); }
.content-warning--caution { --accent: #ca8a04; --bg: rgba(202, 138, 4, 0.08); }
.content-warning--info { --accent: #2563eb; --bg: rgba(37, 99, 235, 0.08); }

@media (prefers-color-scheme: dark) {
	.content-warning { --border: rgba(255, 255, 255, 0.12); }
	.content-warning--danger { --bg: rgba(220, 38, 38, 0.18); }
	.content-warning--warn { --bg: rgba(217, 119, 6, 0.18); }
	.content-warning--caution { --bg: rgba(202, 138, 4, 0.18); }
	.content-warning--info { --bg: rgba(37, 99, 235, 0.18); }
}

/* Fun facts. */
.fun-fact {
	background: #e0f2fe;
	border-left: 4px solid #38bdf8;
	padding: 12px 16px;
	margin: 1.5em 0;
	border-radius: 6px;
	font-size: 1rem;
	line-height: 1.5;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	color: #374151;
}

.fun-fact p,
.fun-fact a,
.fun-fact strong,
.fun-fact em,
.fun-fact .ff-title {
	font-family: inherit;
}

.fun-fact .ff-title {
	font-weight: 600;
	color: #0981b6;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Reproach cards. */
.reproche-card {
	border-radius: 12px;
	padding: 1.5em;
	margin: 2em 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	background: #fff;
	border-left: 6px solid #e63946;
}

.reproche-card h2 {
	font-size: 1.2em;
	font-weight: bold;
	color: #e63946;
	margin-bottom: 0.5em;
	quotes: "«" "»";
}

.reproche-card h2::before { content: "«"; margin-right: 0.2em; }
.reproche-card h2::after { content: "»"; margin-left: 0.2em; }
.reproche-card p { margin: 0 0 10px; line-height: 1.6; }
.reproche-card p:last-child { margin: 0; }

/* Related content cards. */
.related-cards-grid .related-card { margin: 0.5rem 0; }
.related-cards-grid { margin-bottom: 30px; }
.related-cards-grid .related-cards-grid--header { margin: 2rem 0 1rem; }

.related-card {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 2rem 0;
	padding: 1rem 1.25rem;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: #0b1220;
	color: #0f172a;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.related-card a { color: #f8fafc; text-decoration: none; font-weight: 700; }
.related-card a:hover, .related-card a:focus { text-decoration: underline; }
.related-card-icon { font-size: 1.1rem; flex: 0 0 auto; }
.related-card .related-card-text { flex: 1; color: #cbd5e1; }
.related-card strong { color: #f8fafc; }
.related-card:hover { background: #111827; box-shadow: 0 4px 16px rgba(2, 6, 23, 0.18); }
.related-card a:focus-visible, .related-card .btn:focus-visible { outline: 2px solid #60a5fa; outline-offset: 2px; }

.related-card .btn {
	margin-left: auto;
	padding: 0.5rem 0.75rem;
	border: 1px solid #2563eb;
	border-radius: 8px;
	background: transparent;
	color: #2563eb;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}

.related-card .btn:hover, .related-card .btn:focus { background: #2563eb; color: #fff; }
.related-inline { margin: 1.25rem 0; padding: 0.75rem 1rem; border-left: 4px solid #2563eb; background: #f8fafc; border-radius: 8px; color: #0f172a; }
.related-inline a { color: inherit; font-weight: 700; text-decoration: none; }
.related-inline a:hover { text-decoration: underline; }

@media (max-width: 640px) {
	.related-card { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
	.related-card .btn { margin-left: 0; width: 100%; text-align: center; }
}

/* Informational and hub boxes. */
.info-block { background: #f0f7ff; border-left: 4px solid #2b6cb0; padding: 1em 1.2em; margin: 1.5em 0; border-radius: 6px; font-size: 0.95em; color: #1a202c; }
.info-block p:first-child { margin-top: 0; }
.info-block p:last-child { margin-bottom: 0; }
.translation-date { color: #777; font-style: italic; font-size: 14px; }
.link-hub-box { background: #f8f8f8; border: 1px solid #e3e3e3; padding: 18px 22px; border-radius: 8px; margin: 32px 0 20px; }
.link-hub-box .hub-button { display: inline-block; margin-top: 8px; padding: 6px 12px; border: 1px solid #333; border-radius: 6px; text-decoration: none; }
.bs-blog-post.single .small .link-hub-box p { margin-bottom: 10px; }

/* Linked article cards. */
.post-card { position: relative; display: block; overflow: hidden; min-height: clamp(220px, 35vw, 420px); border-radius: 8px; background-size: cover; background-position: center; color: inherit; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }
.post-card-space { margin-bottom: 20px; }
.post-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55)); }
.post-card .content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 20px 22px 22px; }
.post-card h3 { margin: 0; color: #fff; font-size: clamp(20px, 2.4vw, 34px); line-height: 1.1; }
.post-card p { margin: 0; max-width: 68ch; color: rgba(255, 255, 255, 0.92); }
.post-card:hover h3 { color: #cacaca; }
.post-card .cta { align-self: flex-start; margin-top: 6px; padding: 10px 16px; border-radius: 999px; background: #fff; color: #111; font-weight: 600; text-decoration: none; transition: all 0.2s ease; }
.post-card:hover .cta { background: #0025ff; color: #fff; }
.post-card:focus-visible, .post-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18); }
.post-card-container { --gap: clamp(12px, 2vw, 24px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; margin-bottom: 20px; }
.post-card-container > * { min-width: 0; overflow-wrap: anywhere; }
.post-card-label { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 4px 10px; border: 1px solid rgba(0, 0, 0, 0.05); border-radius: 999px; background: linear-gradient(135deg, #fdf2f8, #e0f2fe); color: #222; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); backdrop-filter: blur(4px); transition: background 0.2s ease, transform 0.2s ease; }
.post-card-label:hover { background: rgba(255, 255, 255, 0.95); transform: scale(1.05); }
.post-card:hover .post-card-label { background: rgba(255, 255, 255, 0.92); }

@media (max-width: 767.98px) {
	.post-card-container { grid-template-columns: 1fr; margin-bottom: 0; }
	.post-card-container .post-card { margin-bottom: 20px; }
}

@media (max-width: 600px) {
	.post-card .cta { display: none; }
}

/* Previous/next links inside a series. */
.series-article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; align-items: stretch; justify-content: space-between; margin: 2rem 0; padding: 1.1rem; border-radius: 8px; background: #0d1020; color: #e9eefc; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.series-article-nav:has(.prev):not(:has(.next)) { justify-content: flex-start; }
.series-article-nav:has(.next):not(:has(.prev)) { justify-content: flex-end; }
.series-article-nav a { justify-content: center; color: #e9eefc; text-decoration: none; white-space: normal; transition: color 0.2s, transform 0.2s; }
.series-article-nav a:hover { color: #3b6cff; transform: translateY(-1px); }
.series-article-nav .arrow { opacity: 0.85; }
.series-article-nav .prev { align-self: flex-start; text-align: left; }
.series-article-nav .next { align-self: flex-end; text-align: right; }

@media (max-width: 767px) {
	.series-article-nav a { display: flex; gap: 0.5rem; align-items: flex-start; }
}
