/*
Theme Name: Cyprus Times (Demo)
Description: News theme for the MC Media AI Newsroom demo: front page with lead story, live feed and section blocks; category lists; article pages with sources box.
Author: MC Media
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: ct-demo
*/

:root {
	--ct-red: #c8102e;
	--ct-red-dark: #9b0c23;
	--ct-ink: #111827;
	--ct-text: #1f2937;
	--ct-muted: #6b7280;
	--ct-line: #e5e7eb;
	--ct-soft: #f4f5f7;
	--ct-bg: #ffffff;
	--ct-radius: 6px;
	--ct-sans: "Noto Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--ct-serif: "Noto Serif", Georgia, serif;
	--ct-max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ct-bg);
	color: var(--ct-text);
	font: 16px/1.55 var(--ct-sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ct-red); }
h1, h2, h3 { color: var(--ct-ink); margin: 0; line-height: 1.22; }
.screen-reader-text, .ct-skip:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.ct-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

.ct-wrap { max-width: var(--ct-max); margin: 0 auto; padding: 0 16px; }
.ct-main { padding-bottom: 48px; }

/* ---------- top bar & header ---------- */
.ct-topbar { background: var(--ct-ink); color: #d1d5db; font-size: 12.5px; }
.ct-topbar__in { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; }
.ct-topbar__demo { color: #fca5a5; }

.ct-header { background: #fff; border-bottom: 1px solid var(--ct-line); position: sticky; top: 0; z-index: 20; }
.ct-header__in { display: flex; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.ct-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ct-ink); }
.ct-logo:hover { color: var(--ct-ink); }
.ct-logo__mark {
	display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px;
	background: var(--ct-red); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .5px;
}
.ct-logo__word { font-size: 26px; font-weight: 500; letter-spacing: -.5px; }
.ct-logo__word b { font-weight: 800; color: var(--ct-red); margin-left: 2px; }
.ct-logo__demo {
	font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--ct-muted);
	border: 1px solid var(--ct-line); border-radius: 4px; padding: 2px 6px;
}
.ct-search { margin-left: auto; display: flex; align-items: center; border: 1px solid var(--ct-line); border-radius: 999px; overflow: hidden; }
.ct-search input { border: 0; padding: 8px 14px; font: inherit; font-size: 14px; width: 220px; outline: none; background: transparent; }
.ct-search button { border: 0; background: transparent; padding: 8px 12px; color: var(--ct-muted); cursor: pointer; }
.ct-search:focus-within { border-color: var(--ct-red); }

.ct-burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.ct-burger span { display: block; height: 2px; background: var(--ct-ink); margin: 5px 0; border-radius: 2px; }

.ct-nav { border-top: 1px solid var(--ct-line); }
.ct-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.ct-nav ul::-webkit-scrollbar { display: none; }
.ct-nav a {
	display: block; padding: 11px 12px; font-weight: 700; font-size: 14.5px; white-space: nowrap;
	border-bottom: 3px solid transparent; color: var(--ct-ink);
}
.ct-nav a:hover { color: var(--ct-red); }
.ct-nav a[aria-current="page"] { border-bottom-color: var(--ct-red); color: var(--ct-red); }

/* ticker */
.ct-ticker { background: var(--ct-soft); border-bottom: 1px solid var(--ct-line); font-size: 14px; }
.ct-ticker__in { display: flex; align-items: center; gap: 12px; height: 40px; }
.ct-ticker__label {
	flex: none; background: var(--ct-red); color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase;
	letter-spacing: .8px; padding: 4px 10px; border-radius: 4px;
}
.ct-ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ct-ticker__items { display: inline-flex; gap: 36px; white-space: nowrap; animation: ct-tick 70s linear infinite; }
.ct-ticker__track:hover .ct-ticker__items { animation-play-state: paused; }
.ct-ticker__items a { font-weight: 500; }
.ct-ticker__items time { color: var(--ct-red); font-weight: 700; margin-right: 8px; }
@keyframes ct-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ct-ticker__items { animation: none; } }

/* ---------- cards ---------- */
.ct-kicker {
	display: inline-block; color: var(--ct-red); font-weight: 800; font-size: 12px; text-transform: uppercase;
	letter-spacing: .7px; margin-bottom: 6px;
}
.ct-kicker:hover { color: var(--ct-red-dark); }
.ct-img { width: 100%; height: 100%; object-fit: cover; background: var(--ct-soft); }
.ct-img--empty {
	display: grid; place-items: center; aspect-ratio: 16 / 10;
	background: repeating-linear-gradient(135deg, #f3f4f6 0 12px, #eceef1 12px 24px);
}
.ct-img--empty span { font-weight: 800; color: #d1d5db; font-size: 28px; }
.ct-card { display: flex; gap: 12px; }
.ct-card__media { display: block; overflow: hidden; border-radius: var(--ct-radius); background: var(--ct-soft); }
.ct-card__media img { transition: transform .35s ease; }
.ct-card:hover .ct-card__media img { transform: scale(1.03); }
.ct-card__title { font-size: 18px; font-weight: 700; }
.ct-card__title a:hover { color: var(--ct-red); }
.ct-card__excerpt { margin: 8px 0 0; color: #4b5563; font-size: 15px; }
.ct-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--ct-muted); font-size: 12.5px; }
.ct-ai {
	display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .8px; color: var(--ct-red);
	border: 1px solid #fecaca; background: #fff1f2; border-radius: 4px; padding: 0 5px; line-height: 16px; vertical-align: middle;
}

.ct-card--card { flex-direction: column; }
.ct-card--card .ct-card__media { aspect-ratio: 16 / 10; }

.ct-card--lead { flex-direction: column; gap: 16px; }
.ct-card--lead .ct-card__media { aspect-ratio: 16 / 9; }
.ct-card--lead .ct-card__title { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; letter-spacing: -.4px; }
.ct-card--lead .ct-card__excerpt { font-size: 17px; }

.ct-card--row { align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--ct-line); }
.ct-card--row:first-child { padding-top: 0; }
.ct-card--row:last-child { border-bottom: 0; }
.ct-card--row .ct-card__media { flex: none; width: 120px; aspect-ratio: 3 / 2; }
.ct-card--row .ct-card__title { font-size: 15.5px; }
.ct-card--row .ct-kicker { margin-bottom: 3px; font-size: 11px; }
.ct-card--row .ct-card__meta { margin-top: 4px; }

.ct-card--mini { gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ct-line); }
.ct-card--mini:last-child { border-bottom: 0; }
.ct-card__time { flex: none; width: 42px; color: var(--ct-red); font-weight: 700; font-size: 13px; padding-top: 1px; }
.ct-card--mini .ct-card__title { font-size: 14.5px; font-weight: 600; }

/* ---------- layout blocks ---------- */
.ct-section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
	border-top: 3px solid var(--ct-ink); padding-top: 10px; margin-bottom: 16px;
}
.ct-section-head h2 { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.ct-section-head h2 a:hover { color: var(--ct-red); }
.ct-more { font-size: 13.5px; font-weight: 700; color: var(--ct-red); white-space: nowrap; }
.ct-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ct-red); box-shadow: 0 0 0 0 rgba(200, 16, 46, .5); animation: ct-pulse 2s infinite; }
@keyframes ct-pulse { 70% { box-shadow: 0 0 0 8px rgba(200, 16, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); } }

.ct-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; padding: 28px 0 36px; }
.ct-hero__side { padding-left: 8px; }

.ct-grid { display: grid; gap: 28px 24px; }
.ct-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ct-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; margin-bottom: 44px; }
.ct-live { background: var(--ct-soft); border-radius: var(--ct-radius); padding: 0 16px 6px; align-self: start; }
.ct-live .ct-section-head { border-top-color: var(--ct-red); }

.ct-block { margin-bottom: 44px; }
.ct-block__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }

/* ---------- archive ---------- */
.ct-archive-head { padding: 26px 0 22px; border-bottom: 1px solid var(--ct-line); margin-bottom: 28px; }
.ct-archive-head h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.5px; }
.ct-archive-head p { margin: 6px 0 0; color: var(--ct-muted); }
.ct-crumbs { font-size: 13px; color: var(--ct-muted); margin-bottom: 10px; }
.ct-crumbs span { margin: 0 4px; }
.ct-crumbs a:hover { color: var(--ct-red); }
.ct-chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chips a { display: block; padding: 5px 12px; border: 1px solid var(--ct-line); border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.ct-chips a[aria-current="page"] { background: var(--ct-ink); border-color: var(--ct-ink); color: #fff; }
.ct-archive-lead { margin-bottom: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--ct-line); }
.ct-archive-lead .ct-card--lead { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 28px; }
.ct-empty { color: var(--ct-muted); padding: 40px 0; }

.ct-pagination { margin: 40px 0 0; }
.ct-pagination ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ct-pagination a, .ct-pagination span {
	display: block; min-width: 40px; text-align: center; padding: 8px 12px; border: 1px solid var(--ct-line);
	border-radius: var(--ct-radius); font-weight: 600; font-size: 14px;
}
.ct-pagination .current { background: var(--ct-red); border-color: var(--ct-red); color: #fff; }

/* ---------- article ---------- */
.ct-article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 26px; }
.ct-article__head { margin-bottom: 22px; }
.ct-article__title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.5px; line-height: 1.16; }
.ct-article__standfirst { font-size: 19px; color: #374151; margin: 14px 0 0; line-height: 1.5; }
.ct-article__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 18px; padding: 12px 0;
	border-top: 1px solid var(--ct-line); border-bottom: 1px solid var(--ct-line); color: var(--ct-muted); font-size: 13.5px;
}
.ct-byline { color: var(--ct-ink); font-weight: 700; }
.ct-share { margin-left: auto; display: flex; gap: 6px; }
.ct-share a, .ct-share button {
	display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
	border: 1px solid var(--ct-line); background: #fff; color: var(--ct-ink); font-weight: 700; font-size: 13px; cursor: pointer;
}
.ct-share a:hover, .ct-share button:hover { border-color: var(--ct-red); color: var(--ct-red); }
.ct-article__figure { margin: 0 0 26px; }
.ct-article__figure .ct-img { border-radius: var(--ct-radius); aspect-ratio: 16 / 9; }
.ct-article__figure figcaption { font-size: 13px; color: var(--ct-muted); margin-top: 8px; }
.ct-article__body { font-family: var(--ct-serif); font-size: 19px; line-height: 1.72; color: #1f2937; max-width: 720px; }
.ct-article__body p { margin: 0 0 1.15em; }
.ct-article__body h2 { font-family: var(--ct-sans); font-size: 24px; font-weight: 800; margin: 1.6em 0 .6em; }
.ct-article__body h3 { font-family: var(--ct-sans); font-size: 20px; margin: 1.4em 0 .5em; }
.ct-article__body a { color: var(--ct-red); text-decoration: underline; text-underline-offset: 2px; }
.ct-article__body blockquote {
	margin: 1.4em 0; padding: 16px 20px; background: var(--ct-soft); border-radius: var(--ct-radius);
	font-family: var(--ct-sans); font-size: 18px; font-style: italic; color: #374151;
}
.ct-article__body blockquote.wv-ignore { font-style: normal; padding: 14px 18px; }
.ct-article__body ul, .ct-article__body ol { padding-left: 1.3em; margin: 0 0 1.15em; }
.ct-article__body img { border-radius: var(--ct-radius); }
.ct-article__body iframe { max-width: 100%; }
.ct-partner-note { font-family: var(--ct-sans); font-size: 15px; color: var(--ct-muted); }
.ct-article__body .ct-partner-link {
	display: inline-block; font-family: var(--ct-sans); font-size: 15px; font-weight: 700; text-decoration: none;
	background: var(--ct-red); color: #fff; padding: 10px 16px; border-radius: var(--ct-radius);
}
/* the plugin's sources box and AI disclosure, in the theme's look */
.ct-article__body .mcmedia-sources {
	font-family: var(--ct-sans); font-size: 15px; background: var(--ct-soft);
}
.ct-article__body .mcmedia-sources a { color: var(--ct-ink); text-decoration: none; font-weight: 600; }
.ct-article__body .mcmedia-sources a:hover { color: var(--ct-red); }
.ct-article__body .mcmedia-disclosure { font-family: var(--ct-sans); font-size: 14px; }
.ct-tags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ct-tags a { display: block; padding: 4px 12px; background: var(--ct-soft); border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.ct-sticky { position: sticky; top: 130px; }
.ct-related { margin-top: 48px; }

.ct-404, .ct-page { padding: 48px 16px; }
.ct-404 h1 { font-size: 34px; margin-bottom: 10px; }

/* ---------- footer ---------- */
.ct-footer { background: var(--ct-ink); color: #d1d5db; margin-top: 24px; }
.ct-footer__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 44px; padding-bottom: 36px; }
.ct-footer p { font-size: 14px; max-width: 460px; }
.ct-logo--light, .ct-logo--light:hover { color: #fff; }
.ct-logo--light .ct-logo__demo { border-color: #374151; color: #9ca3af; }
.ct-footer__h { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.ct-footer__list { list-style: none; padding: 0; margin: 0; font-size: 14.5px; }
.ct-footer__list li { padding: 4px 0; }
.ct-footer__list span { color: #6b7280; font-size: 12px; margin-left: 4px; }
.ct-footer__list a:hover { color: #fff; }
.ct-footer__base { border-top: 1px solid #1f2937; padding: 14px 0; font-size: 12.5px; color: #9ca3af; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.ct-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ct-split, .ct-article-wrap { grid-template-columns: minmax(0, 1fr); }
	.ct-article-side { display: none; }
}
@media (max-width: 860px) {
	.ct-hero { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.ct-hero__side { padding-left: 0; }
	.ct-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ct-block__grid, .ct-archive-lead .ct-card--lead { grid-template-columns: minmax(0, 1fr); }
	.ct-footer__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.ct-footer__brand { grid-column: 1 / -1; }
	.ct-search input { width: 150px; }
}
@media (max-width: 640px) {
	.ct-burger { display: block; }
	.ct-logo__word { font-size: 21px; }
	.ct-logo__mark { width: 34px; height: 34px; font-size: 15px; }
	.ct-search { display: none; }
	.ct-nav { display: none; }
	.ct-nav.is-open { display: block; }
	.ct-nav ul { flex-direction: column; gap: 0; }
	.ct-nav a { border-bottom: 1px solid var(--ct-line); }
	.ct-grid--3, .ct-grid--4 { grid-template-columns: minmax(0, 1fr); }
	.ct-topbar__demo { display: none; }
	.ct-share { margin-left: 0; }
	.ct-article__body { font-size: 18px; }
	.ct-card--row .ct-card__media { width: 96px; }
}
