/* CineD Links page
 * Mobile < 768px · Tablet 768–1023px · Desktop ≥ 1024px (content max 960px)
 */
:root {
	--cl-red: #e60000;
	--cl-black: #222021;
	--cl-bg: #f4f4f4;
	--cl-line: #c6c6c6;
	--cl-gap: 10px;
	--cl-pad: 12px;
	--cl-font: "Euclid", "Euclid Circular B", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body.cl-body {
	margin: 0;
	background: var(--cl-bg);
	color: var(--cl-black);
	font-family: var(--cl-font);
	font-size: 16px;
	line-height: 1.25;
	-webkit-font-smoothing: antialiased;
}
.cl-body *, .cl-body *::before, .cl-body *::after { box-sizing: border-box; }
.cl-body a { text-decoration: none; }
.cl-body img { max-width: 100%; }

.cl-page { max-width: 960px; margin: 0 auto; }

/* Header */
.cl-header {
	display: flex; align-items: center; justify-content: space-between;
	height: 84px; padding: 0 20px;
	border-bottom: 1px solid var(--cl-line);
}
.cl-brand { display: flex; align-items: center; gap: 12px; color: var(--cl-black); font-size: 13px; font-weight: 600; }
.cl-brand img { display: block; width: 54px; height: auto; }
.cl-visit {
	display: inline-flex; align-items: center; height: 28px; padding: 0 14px;
	border-radius: 14px; background: var(--cl-black); color: #fff !important;
	font-size: 13px; font-weight: 500;
}
.cl-visit:hover { background: var(--cl-red); }

/* Social */
.cl-social {
	display: flex; justify-content: center; align-items: center; gap: 24px;
	height: 50px; border-bottom: 1px solid var(--cl-line);
}
.cl-social a { display: flex; color: var(--cl-black); transition: color .15s; }
.cl-social a:hover { color: var(--cl-red); }
.cl-social svg { width: 22px; height: 22px; fill: currentColor; }

/* Banner */
.cl-banner, .cl-banner a, .cl-banner picture { display: block; }
.cl-banner img { display: block; width: 100%; height: auto; }

/* Buttons */
.cl-buttons {
	display: flex; flex-wrap: wrap; gap: 12px;
	padding: 18px var(--cl-pad);
	background: #fff;
}
.cl-btn {
	flex: 1 1 100%;
	display: flex; align-items: center; justify-content: center;
	min-height: 40px; padding: 8px 20px; border-radius: 20px;
	font-size: 13px; font-weight: 500; text-align: center; line-height: 1.2;
	transition: filter .15s, transform .15s;
}
.cl-btn:hover { filter: brightness(1.1); }
.cl-btn:active { transform: scale(.99); }

/* Articles */
.cl-articles { padding: 0 var(--cl-pad) 24px; }
.cl-articles__title { margin: 0; padding: 20px 6px 12px; font-size: 20px; font-weight: 600; line-height: 1.2; }
.cl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px var(--cl-gap); }

.cl-card { display: block; color: var(--cl-black); min-width: 0; }
.cl-card__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e2e2e2; border-radius: 2px; }
.cl-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.cl-card:hover .cl-card__img img { transform: scale(1.03); }
.cl-card:hover .cl-card__title { color: var(--cl-red); }
.cl-card__title {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; line-clamp: 1;
	overflow: hidden; margin-top: 6px;
	font-size: 13px; font-weight: 600; line-height: 1.2;
}

/* Ad */
.cl-ad {
	grid-column: 1 / -1;
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	margin: 14px 0;
}
.cl-ad__label { font-size: 13px; color: var(--cl-black); }
.cl-ad__slot { min-width: 320px; min-height: 50px; display: flex; justify-content: center; }
.cl-ad.is-empty { display: none; }

/* Load more */
.cl-more {
	display: block; width: 100%; max-width: 800px; height: 40px; margin: 28px auto 0;
	border: 0; border-radius: 20px; background: var(--cl-red); color: #fff;
	font: 500 13px/1 var(--cl-font); cursor: pointer; transition: background .15s;
}
.cl-more:hover { background: #c40000; }
.cl-more[disabled] { opacity: .6; cursor: progress; }

/* Footer */
.cl-footer { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 4px var(--cl-pad) 28px; font-size: 12px; text-align: center; color: #6b6b6b; }
.cl-footer a { color: rgb(250, 100, 100); }
.cl-footer a:hover { color: var(--cl-red); }

/* Theme dialogs printed via wp_footer() (e.g. the logged-in "Delete Account"
 * confirmation). The theme CSS that normally hides them is removed on this page. */
.cl-body .modal:not(.open),
.cl-body .modal-overlay { display: none !important; }
/* Push-notification prompt ("Stay informed about camera tech!") from the
 * abss-notifications plugin, appended to <body> for logged-in users. */
.cl-body .abss-notification-wrapper { display: none !important; }
/* Separate rule: browsers without :has() would otherwise drop the rule above too. */
body.cl-body > :not(.cl-page):has(#confirm-delete-account) { display: none !important; }

/* Tablet */
@media (min-width: 768px) {
	.cl-btn--half { flex: 1 1 calc(50% - 6px); }
	.cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px var(--cl-gap); }
	.cl-card__title { -webkit-line-clamp: 2; line-clamp: 2; }
	.cl-ad { flex-direction: row; justify-content: center; margin: 24px 0; }
	/* "Advertisement" becomes a small vertical "Ad" left of the leaderboard. */
	.cl-ad__label { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0; color: #6b6b6b; }
	.cl-ad__label::before { content: "Ad"; font-size: 12px; }
	.cl-ad__slot { min-width: 728px; min-height: 90px; }
	.cl-articles__title { padding-top: 22px; }
}

/* Desktop: full titles */
@media (min-width: 1024px) {
	.cl-card__title { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
}
