/*
Theme Name:       European Express Lite
Theme URI:        https://www.european.express
Description:      Lightweight, builder-free news theme recreating the european.express layout: top bar, centered logo, bordered category menu, 3-column hero, Top 4, category blocks and 4-column footer. No jQuery, no page builder, ~40 KB of assets.
Version:          1.0.0
Author:           European Express
Author URI:       https://www.european.express/about-us/
License:          GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:      eel
Requires at least: 6.0
Tested up to:     6.7
*/

/* ============================================================
   0. Tokens & reset
   ============================================================ */
:root {
	--eel-ink: #111111;
	--eel-paper: #ffffff;
	--eel-mist: #f4f4f4;
	--eel-line: #dcdcdc;
	--eel-brand: #1a3d8f;      /* EU-flag blue */
	--eel-tag: #b22222;        /* category label red */
	--eel-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--eel-font-head: Georgia, "Times New Roman", "DejaVu Serif", serif;
	--eel-container: 1280px;
	--eel-gutter: 20px;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--eel-font-body);
	font-size: 15px;
	line-height: 1.6;
	color: var(--eel-ink);
	background: var(--eel-paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--eel-brand); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--eel-font-head);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 .5em;
}
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible {
	outline: 2px solid var(--eel-brand);
	outline-offset: 2px;
}
.screen-reader-text {
	position: absolute; width: 1px; height: 1px;
	clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ============================================================
   1. Layout primitives
   ============================================================ */
.eel-container {
	max-width: var(--eel-container);
	margin: 0 auto;
	padding: 0 var(--eel-gutter);
}
.eel-section { padding: 24px 0; border-bottom: 1px solid var(--eel-line); }
.eel-grid { display: grid; gap: var(--eel-gutter); }
.eel-grid-3 { grid-template-columns: repeat(3, 1fr); }
.eel-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
	.eel-grid-3, .eel-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
	.eel-grid-3, .eel-grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   2. Top bar & header
   ============================================================ */
.eel-topbar {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .08em;
	border-bottom: 1px solid var(--eel-line);
}
.eel-topbar .eel-container {
	display: flex; justify-content: space-between; align-items: center;
	min-height: 32px; gap: 16px;
}
.eel-topbar a { color: #555; }
.eel-topbar a:hover { color: var(--eel-ink); }
.eel-topbar ul { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

.eel-header { padding: 22px 0 0; }
.eel-header .eel-container {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.eel-newsletter-link {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
}
.eel-logo { justify-self: center; text-align: center; }
.eel-logo img { max-height: 90px; width: auto; margin: 0 auto; }
.eel-site-title {
	font-size: 42px; letter-spacing: .02em; text-transform: uppercase; margin: 0;
}
.eel-header-right { justify-self: end; }

/* Main menu — the bordered bar */
.eel-nav {
	margin-top: 22px;
	border-top: 1px solid var(--eel-ink);
	border-bottom: 4px solid var(--eel-ink);
}
.eel-nav .eel-container { display: flex; align-items: center; justify-content: space-between; }
.eel-menu {
	display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
	font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.eel-menu > li > a { display: block; padding: 13px 0; position: relative; }
.eel-menu > li > a:hover { color: var(--eel-brand); }
/* Dropdowns */
.eel-menu li { position: relative; }
.eel-menu ul {
	position: absolute; top: 100%; left: 0; z-index: 60;
	min-width: 200px; background: var(--eel-paper);
	border: 1px solid var(--eel-line);
	box-shadow: 0 8px 20px rgba(0,0,0,.08);
	list-style: none; margin: 0; padding: 6px 0;
	font-size: 12px; letter-spacing: .06em;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.eel-menu li:hover > ul,
.eel-menu li:focus-within > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.eel-menu ul a { display: block; padding: 8px 14px; }
.eel-menu ul li:hover { background: var(--eel-mist); }
.eel-menu .menu-item-has-children > a::after { content: " ▾"; font-size: 10px; }

/* Search toggle + overlay */
.eel-search-btn {
	background: none; border: 0; cursor: pointer; padding: 12px 4px 12px 16px;
	display: inline-flex; align-items: center;
}
.eel-search-btn svg { width: 17px; height: 17px; }
.eel-search-overlay {
	position: fixed; inset: 0; z-index: 100; display: none;
	background: rgba(255,255,255,.97);
	padding: 15vh var(--eel-gutter) 0;
}
.eel-search-overlay.is-open { display: block; }
.eel-search-overlay form { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; }
.eel-search-overlay input[type="search"] {
	flex: 1; font-size: 22px; padding: 14px 16px;
	border: 2px solid var(--eel-ink); background: #fff;
}
.eel-search-overlay .eel-btn { font-size: 14px; }
.eel-search-close {
	position: absolute; top: 24px; right: 28px; background: none; border: 0;
	font-size: 34px; line-height: 1; cursor: pointer;
}

/* Mobile nav toggle */
.eel-burger {
	display: none; background: none; border: 0; cursor: pointer; padding: 12px 0;
}
.eel-burger span { display: block; width: 22px; height: 2px; background: var(--eel-ink); margin: 5px 0; }
@media (max-width: 980px) {
	.eel-burger { display: block; }
	.eel-nav .eel-container { flex-wrap: wrap; }
	.eel-menu {
		display: none; flex-direction: column; gap: 0; width: 100%;
		border-top: 1px solid var(--eel-line); padding: 8px 0;
	}
	.eel-menu.is-open { display: flex; }
	.eel-menu > li > a { padding: 11px 0; }
	.eel-menu ul { position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; padding-left: 16px; display: block; }
	.eel-header .eel-container { grid-template-columns: auto 1fr; }
	.eel-logo { justify-self: start; }
	.eel-logo img { max-height: 56px; }
	.eel-header-right { display: none; }
}

/* ============================================================
   3. Cards, hero, lists
   ============================================================ */
.eel-card { background: var(--eel-paper); }
.eel-card .eel-thumb { overflow: hidden; background: var(--eel-mist); }
.eel-card .eel-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.eel-card:hover .eel-thumb img { transform: scale(1.03); }
.eel-card h3, .eel-card h2 { font-size: 21px; margin: 10px 0 6px; }
.eel-card .eel-excerpt { font-size: 13.5px; color: #444; }

.eel-tag { /* the red "| CATEGORY |" label */
	display: inline-block;
	font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	color: var(--eel-tag); margin: 6px 0 2px;
}
.eel-tag::before { content: "| "; color: var(--eel-tag); }
.eel-tag::after { content: " |"; color: var(--eel-tag); }
.eel-meta {
	font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #666;
	display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 6px;
}
.eel-meta a { color: #666; }
.eel-meta a:hover { color: var(--eel-brand); }

/* Numbered list (Top 4 / Most popular) */
.eel-rank-list { list-style: none; margin: 0; padding: 0; counter-reset: eelrank; }
.eel-rank-list li {
	counter-increment: eelrank; display: grid; grid-template-columns: 34px 1fr;
	gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--eel-line);
}
.eel-rank-list li:last-child { border-bottom: 0; }
.eel-rank-list li::before {
	content: counter(eelrank);
	font-family: var(--eel-font-head); font-size: 26px; font-weight: 700; color: #bbb;
	line-height: 1.1;
}
.eel-rank-list h3 { font-size: 17px; margin: 0 0 4px; }

/* Text rows (latest / society / politics lists) */
.eel-row-list { list-style: none; margin: 0; padding: 0; }
.eel-row-list li { padding: 10px 0; border-bottom: 1px solid var(--eel-line); }
.eel-row-list li:last-child { border-bottom: 0; }
.eel-row-list h3 { font-size: 17px; margin: 0 0 4px; }
.eel-row-list time { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .06em; }

/* Section headings */
.eel-section-title {
	font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
	margin: 0 0 14px; padding-bottom: 8px;
	border-bottom: 3px solid var(--eel-ink);
}
.eel-section-title a:hover { color: var(--eel-brand); }

/* Ad slot */
.eel-ad { text-align: center; padding: 18px 0; color: #999; font-size: 10px;
	letter-spacing: .2em; text-transform: uppercase; }
.eel-ad > * { margin: 0 auto; }

/* Pagination */
.eel-pagination { display: flex; gap: 8px; justify-content: center; margin: 28px 0; }
.eel-pagination .page-numbers {
	padding: 8px 14px; border: 1px solid var(--eel-line); font-size: 13px;
}
.eel-pagination .current { background: var(--eel-ink); color: #fff; border-color: var(--eel-ink); }

/* Buttons */
.eel-btn {
	display: inline-block; padding: 12px 26px; background: var(--eel-ink); color: #fff;
	font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	border: 0; cursor: pointer;
}
.eel-btn:hover { background: var(--eel-brand); color: #fff; }

/* ============================================================
   4. Homepage composition
   ============================================================ */
.eel-hero { padding-top: 26px; }
.eel-subscribe-strip {
	background: var(--eel-mist); border: 1px solid var(--eel-line);
	text-align: center; padding: 34px var(--eel-gutter); margin: 26px 0;
}
.eel-subscribe-strip h2 { font-size: 24px; letter-spacing: .1em; text-transform: uppercase; }
.eel-subscribe-strip p { max-width: 560px; margin: 0 auto 18px; color: #555; font-size: 14px; }
.eel-two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
@media (max-width: 980px) { .eel-two-col { grid-template-columns: 1fr; } }

/* ============================================================
   5. Single post / page
   ============================================================ */
.eel-single-head { text-align: center; max-width: 860px; margin: 26px auto 10px; }
.eel-single-head h1 { font-size: 34px; }
.eel-single-hero { max-width: 1060px; margin: 18px auto; }
.eel-single-body { max-width: 760px; margin: 0 auto; font-size: 16px; }
.eel-single-body img { margin: 1.2em auto; }
.eel-single-body blockquote {
	margin: 1.5em 0; padding: 6px 22px; border-left: 3px solid var(--eel-brand);
	font-family: var(--eel-font-head); font-size: 19px; font-style: italic;
}
.eel-crumbs {
	font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
	color: #888; margin: 14px 0;
}
.eel-crumbs a { color: #888; }
.eel-tags { margin: 22px 0; font-size: 12px; }
.eel-tags a { border: 1px solid var(--eel-line); padding: 4px 10px; margin: 0 6px 6px 0;
	display: inline-block; text-transform: uppercase; letter-spacing: .08em; }
.eel-post-nav { display: flex; justify-content: space-between; gap: 16px; margin: 30px 0;
	font-family: var(--eel-font-head); font-size: 15px; }
.eel-post-nav a { max-width: 48%; }
.eel-related { border-top: 1px solid var(--eel-line); padding-top: 22px; margin-top: 22px; }

/* Comments */
.eel-comments { max-width: 760px; margin: 30px auto; }
.eel-comments ol.comment-list { list-style: none; padding: 0; }
.eel-comments .comment { border: 1px solid var(--eel-line); padding: 14px; margin: 0 0 12px; }
.eel-comments .comment-form input[type="text"],
.eel-comments .comment-form input[type="email"],
.eel-comments .comment-form input[type="url"],
.eel-comments .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--eel-line); font: inherit;
}

/* ============================================================
   6. Footer
   ============================================================ */
.eel-footer {
	border-top: 1px solid var(--eel-ink); margin-top: 30px; background: #fafafa;
}
.eel-footer-menu {
	border-bottom: 1px solid var(--eel-line); padding: 14px 0;
}
.eel-footer-menu ul { display: flex; flex-wrap: wrap; gap: 26px; list-style: none; margin: 0; padding: 0;
	font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; justify-content: center; }
.eel-footer-grid {
	display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 36px; padding: 34px 0;
}
@media (max-width: 980px) { .eel-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .eel-footer-grid { grid-template-columns: 1fr; } }
.eel-footer h4 {
	font-family: var(--eel-font-body); font-size: 13px; font-weight: 700;
	letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px;
}
.eel-footer p { font-size: 13.5px; color: #555; }
.eel-social { display: flex; gap: 10px; margin-top: 14px; }
.eel-social a {
	width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--eel-tag); color: #fff; border-radius: 2px;
}
.eel-social a:hover { background: var(--eel-brand); color: #fff; }
.eel-social svg { width: 16px; height: 16px; fill: currentColor; }
.eel-footer-bottom {
	border-top: 1px solid var(--eel-line); text-align: center;
	font-size: 12px; color: #777; padding: 16px var(--eel-gutter);
}

/* ============================================================
   7. Archive / search / 404
   ============================================================ */
.eel-archive-head { text-align: center; padding: 30px 0 8px; }
.eel-archive-head h1 { font-size: 30px; text-transform: uppercase; letter-spacing: .06em; }
.eel-archive-head .eel-archive-desc { max-width: 640px; margin: 0 auto; color: #666; font-size: 14px; }
.eel-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .eel-archive-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .eel-archive-grid { grid-template-columns: 1fr; } }
.eel-404 { text-align: center; padding: 80px var(--eel-gutter); }
.eel-404 h1 { font-size: 90px; margin: 0; }

/* ============================================================
   8. Print & reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
	.eel-topbar, .eel-nav, .eel-search-btn, .eel-footer, .eel-ad,
	.eel-pagination, .eel-post-nav, .eel-comments { display: none !important; }
	body { font-size: 12pt; }
}
