/*
Theme Name: AutoNews
Theme URI: https://autonews.ge
Author: AutoNews
Description: სწრაფი, SEO-ზე ორიენტირებული საავტომობილო ნიუს თემა - ქართული და ინგლისური ენების მხარდაჭერით (Polylang).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: autonews
*/

@font-face{font-family:'Inter';font-style:normal;font-weight:400 800;font-display:swap;src:url(assets/fonts/inter-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 800;font-display:swap;src:url(assets/fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Noto Sans Georgian';font-style:normal;font-weight:400 900;font-display:swap;src:url(assets/fonts/noto-georgian.woff2) format('woff2');unicode-range:U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31}

/* ---------- Tokens ---------- */
:root {
	--bg: #f8fafc;
	--surface: #ffffff;
	--band: #f1f5f9;
	--ink: #0f172a;
	--ink-2: #1e293b;
	--text: #334155;
	--muted: #64748b;
	--muted-2: #94a3b8;
	--line: #e2e8f0;
	--line-2: #cbd5e1;
	--brand: #3b82f6;
	--brand-600: #2563eb;
	--brand-50: #eff6ff;
	--brand-100: #dbeafe;
	--radius: 12px;
	--radius-lg: 18px;
	--shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
	--shadow-lg: 0 10px 40px rgba(15, 23, 42, .14);
	--container: 1080px;
	--font: "Inter", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-display: "Noto Sans Georgian", "Inter", system-ui, Arial, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--font-display); line-height: 1.25; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--brand-100); color: var(--ink); }

.screen-reader-text, .sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 12px; left: 12px; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px;
}
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	height: 44px; padding: 0 22px; border-radius: 10px; border: 1px solid transparent;
	font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
	transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); box-shadow: 0 6px 20px rgba(15, 23, 42, .22); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-600); box-shadow: 0 6px 20px rgba(59, 130, 246, .35); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--line-2); background: var(--bg); }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.icon-btn {
	display: inline-grid; place-items: center; width: 38px; height: 38px;
	border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
	color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 17px; height: 17px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(248, 250, 252, .86);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; max-width: 1280px; }
.logo { display: inline-flex; align-items: baseline; font-family: "Inter", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.035em; color: var(--ink); flex-shrink: 0; line-height: 1; }
.logo span { color: var(--brand); }
.logo img { max-height: 34px; width: auto; }

.main-nav { flex: 1; min-width: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav a {
	display: block; padding: 8px 11px; border-radius: 8px; font-size: 13.5px; font-weight: 500;
	color: var(--muted); white-space: nowrap; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--ink); background: rgba(15, 23, 42, .04); }
.main-nav .current-menu-item > a, .main-nav .current-category-ancestor > a, .main-nav .current-post-ancestor > a { color: var(--ink); font-weight: 600; }
.main-nav .sub-menu { display: none; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
.menu-toggle { display: none; }

@media (max-width: 1180px) {
	.main-nav { display: none; }
	.menu-toggle { display: inline-grid; }
}

/* Ticker */
.ticker { background: var(--brand-50); border-bottom: 1px solid var(--brand-100); color: var(--brand-600); font-size: 13px; font-weight: 500; }
.ticker .container { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; text-align: center; }
.ticker__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; flex-shrink: 0; }
.ticker__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(59, 130, 246, .6); animation: pulse 2s infinite; }
.ticker a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker a:hover { text-decoration: underline; text-underline-offset: 3px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, .55); } 70% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); } }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); opacity: 0; transition: opacity .3s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--surface);
	padding: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .35s var(--ease);
	display: flex; flex-direction: column; gap: 20px;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav a { display: block; padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.drawer nav .sub-menu a { padding-left: 16px; font-weight: 500; color: var(--muted); }

/* Search dialog */
.search-dialog { width: min(640px, calc(100vw - 32px)); margin: 12vh auto auto; padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--surface); }
.search-dialog::backdrop { background: rgba(15, 23, 42, .5); backdrop-filter: blur(4px); }
.search-form { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; }
.search-form svg { width: 20px; height: 20px; color: var(--muted-2); flex-shrink: 0; }
.search-form input[type="search"] { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; font-size: 17px; background: transparent; color: var(--ink); }
.search-dialog__hint { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 28px; }
.hero__grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 36px; align-items: center; }
.hero__media { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--band); aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero__media:hover img { transform: scale(1.03); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero__title { font-size: clamp(26px, 2.8vw, 34px); font-weight: 800; line-height: 1.24; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero__title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .4s var(--ease); }
.hero__title a:hover { background-size: 100% 2px; }
.hero__excerpt { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Front page sections ---------- */
.home-section { padding-top: 36px; margin-top: 40px; border-top: 1px solid var(--line); }
.home-section:first-child { margin-top: 8px; }
.video-feed + .home-section { border-top: 0; margin-top: 24px; }
.section-head h2 a { transition: color .2s; }
.section-head h2 a:hover { color: var(--brand-600); }

/* ---------- Section head ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: 22px; font-weight: 800; }
.link-more { font-size: 13px; font-weight: 600; color: var(--brand-600); display: inline-flex; align-items: center; gap: 4px; }
.link-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cards ---------- */
.feed { display: flex; flex-direction: column; gap: 28px; }
.feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; }

.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 7px; }
.meta__cat { color: var(--brand); transition: color .2s; }
a.meta__cat:hover { color: var(--brand-600); }

.card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 42%; gap: 18px; align-items: start; }
.card__title { font-size: 15.5px; font-weight: 700; line-height: 1.42; margin-bottom: 7px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title { color: var(--brand-600); }
.card__excerpt { font-size: 13px; line-height: 1.6; color: var(--muted-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { position: relative; z-index: 2; }
.thumb { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: linear-gradient(135deg, var(--band), #e9eef5); aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .thumb img, .card-wide:hover .thumb img, .related-card:hover .thumb img { transform: scale(1.05); }

.card-wide { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; padding: 8px 0 18px; }
.card-wide .thumb { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.card-wide__title { font-size: clamp(20px, 2.2vw, 25px); font-weight: 800; line-height: 1.3; margin-bottom: 12px; transition: color .2s; }
.card-wide__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-wide:hover .card-wide__title { color: var(--brand-600); }
.card-wide .meta { position: relative; z-index: 2; }
.card-wide__excerpt { font-size: 14px; color: var(--muted-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

.feed-more { display: flex; justify-content: center; padding: 36px 0 8px; }
.feed-more .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.feed-more .btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Video feed ---------- */
.video-feed { margin: 48px 0 14px; padding: 30px; border-radius: 22px; background: radial-gradient(120% 140% at 0% 0%, #1b2742 0%, var(--ink) 55%); color: #fff; box-shadow: var(--shadow-lg); }
.video-feed__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.video-feed h2 { color: #fff; font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.video-feed__sub { margin: 0; font-size: 13px; color: #94a3b8; }
.video-feed__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.video { display: block; color: #fff; }
.video__thumb { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1e293b; margin-bottom: 10px; }
.video__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.video__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video__play span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(15, 23, 42, .55); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25); transition: transform .3s var(--ease), background .3s; }
.video__play svg { width: 16px; height: 16px; margin-left: 2px; }
.video:hover .video__thumb img { transform: scale(1.06); filter: brightness(.85); }
.video:hover .video__play span { transform: scale(1.1); background: var(--brand); }
.video__title { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-feed__yt { color: #cbd5e1; border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); height: 38px; font-size: 13px; }
.video-feed__yt:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.video-modal { width: min(1000px, calc(100vw - 24px)); padding: 0; border: 0; border-radius: 16px; background: #000; overflow: hidden; }
.video-modal::backdrop { background: rgba(2, 6, 23, .85); }
.video-modal__frame { aspect-ratio: 16 / 9; }
.video-modal__frame iframe { width: 100%; height: 100%; border: 0; }
.video-modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(15, 23, 42, .7); color: #fff; border-color: transparent; }

/* ---------- Lead form ---------- */
.lead { margin-top: 64px; background: var(--band); border-block: 1px solid var(--line); padding: 72px 0; }
.lead__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; max-width: 900px; margin-inline: auto; }
.lead h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; line-height: 1.1; margin-bottom: 14px; }
.lead__sub { color: var(--muted); font-size: 16px; line-height: 1.6; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .full { grid-column: 1 / -1; }
.field { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
textarea.field { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; }
.field::placeholder { color: var(--muted-2); }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { grid-column: 1 / -1; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; }
.notice--ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.notice--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- Footer ---------- */
.site-footer { padding: 64px 0 28px; border-top: 1px solid var(--line); }
.lead + .site-footer { border-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer-about { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin: 14px 0 22px; max-width: 320px; }
.footer-title { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { font-size: 13.5px; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--brand-600); }
.newsletter { display: flex; gap: 8px; max-width: 340px; }
.newsletter .field { height: 40px; }
.newsletter .btn { height: 40px; padding: 0 16px; font-size: 13px; }
.newsletter-msg { font-size: 12.5px; margin-top: 8px; color: #047857; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); transition: color .2s, border-color .2s; }
.socials a:hover { color: var(--brand-600); border-color: var(--brand-100); }
.socials svg { width: 15px; height: 15px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.footer-bottom ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- Archive header ---------- */
.page-head { padding: 40px 0 24px; }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; }
.page-head p { color: var(--muted); max-width: 640px; margin: 10px 0 0; }
.page-head .eyebrow { margin-bottom: 10px; }

/* ---------- Single article ---------- */
.article { max-width: 720px; margin-inline: auto; padding: 36px 0 0; }
.breadcrumbs { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 22px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--muted); }
.article__title { font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; line-height: 1.15; margin: 4px 0 16px; letter-spacing: -.01em; }
.article__lead { font-size: 18px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; }
.article__updated { font-size: 13px; color: var(--muted); margin: -12px 0 24px; }
.article__share { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.article__byline { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-block: 1px solid var(--line); margin-bottom: 28px; font-size: 13px; color: var(--muted); }
.article__byline strong { color: var(--ink); font-weight: 600; }
.share { display: flex; gap: 6px; }
.share .icon-btn { width: 34px; height: 34px; }
.share .icon-btn svg { width: 15px; height: 15px; }
.article__figure { margin: 0 0 32px; }
.article__figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); background: var(--band); } /* Whole photo, never cropped. */
.article__figure figcaption { font-size: 12.5px; color: var(--muted-2); margin-top: 10px; text-align: center; }

.entry { font-size: 17.5px; line-height: 1.8; color: var(--ink-2); overflow-wrap: break-word; }
.entry > * { margin: 0 0 1.3em; }
.entry h2 { font-size: 26px; font-weight: 800; margin: 1.8em 0 .6em; }
.entry h3 { font-size: 21px; font-weight: 800; margin: 1.6em 0 .5em; }
.entry a { color: var(--brand-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry a:hover { text-decoration-thickness: 2px; }
.entry img, .entry figure img { border-radius: var(--radius); }
.entry figure { margin-inline: 0; }
.entry figcaption, .entry .wp-element-caption { font-size: 13px; color: var(--muted-2); text-align: center; margin-top: 8px; }
.entry blockquote { margin-inline: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); font-size: 20px; font-weight: 600; color: var(--ink); font-family: var(--font-display); }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin-bottom: .4em; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry th, .entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius); border: 0; }
.entry .wp-block-embed__wrapper iframe { position: static; }
/* Article photos: full column width, one rhythm, never cropped (whole photo and any text on it stay visible).
   2 photos in a row (fcc-gallery): one column on phones, two from 600px.
   3+ photos (fcc-slider): one photo at a time, swipe / arrows / dots; main.js adds the controls. */
.entry .wp-block-image { margin: 1.75em 0; }
.entry .wp-block-image img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); background: var(--band); }
.entry .fcc-gallery { display: grid !important; grid-template-columns: 1fr; align-items: start; gap: 12px; margin: 1.75em 0; padding: 0; }
.entry .fcc-gallery > .wp-block-image { width: auto !important; margin: 0 !important; }
.entry .fcc-gallery > .wp-block-image img { height: auto !important; object-fit: contain; }
@media (min-width: 600px) {
	.entry .fcc-gallery { grid-template-columns: 1fr 1fr; }
}

.entry .slider { position: relative; margin: 1.75em 0; }
.entry .fcc-slider { display: flex !important; flex-wrap: nowrap !important; gap: 0 !important; margin: 0 !important; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: var(--radius-lg); background: var(--band); }
.entry > .fcc-slider { margin: 1.75em 0 !important; } /* Without JavaScript: still a swipeable strip. */
.entry .fcc-slider::-webkit-scrollbar { display: none; }
/* Slides share one frame; each photo is shown whole inside it (contain, not crop). */
.entry .fcc-slider > .wp-block-image { flex: 0 0 100% !important; width: 100% !important; margin: 0 !important; aspect-ratio: 3 / 2; display: flex !important; align-items: center; justify-content: center; scroll-snap-align: center; scroll-snap-stop: always; }
.entry .fcc-slider > .wp-block-image img { width: 100% !important; height: 100% !important; object-fit: contain !important; border-radius: 0; background: transparent; }
.slider__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 14px rgba(15, 23, 42, .18); cursor: pointer; transition: opacity .2s, transform .2s; }
.slider__btn:hover { transform: translateY(-50%) scale(1.06); }
.slider__btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.slider__btn[disabled] { opacity: 0; pointer-events: none; }
.slider__btn--prev { left: 12px; }
.slider__btn--next { right: 12px; }
.slider__btn svg { width: 20px; height: 20px; }
.slider__count { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 4px 10px; border-radius: 999px; background: rgba(15, 23, 42, .72); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.slider__dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: width .25s, background .25s; }
.slider__dot[aria-current="true"] { width: 22px; background: var(--brand); }
@media (max-width: 599px) {
	.slider__btn { width: 36px; height: 36px; }
	.slider__btn--prev { left: 8px; }
	.slider__btn--next { right: 8px; }
}
@media (hover: none) and (max-width: 599px) {
	.slider__btn { display: none; } /* Phones: swipe. */
}
.entry .wp-block-embed { margin: 1.75em 0; }
.entry .wp-block-embed iframe { border-radius: var(--radius-lg); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.tags a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.tags a:hover { color: var(--ink); border-color: var(--line-2); }

.related { max-width: 720px; margin: 48px auto 0; padding-top: 32px; border-top: 1px solid var(--line); }
.related h2 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { position: relative; }
.related-card .thumb { aspect-ratio: 4 / 3; margin-bottom: 12px; }
.related-card h3 { font-size: 14px; font-weight: 700; line-height: 1.45; transition: color .2s; }
.related-card h3 a::after { content: ""; position: absolute; inset: 0; }
.related-card:hover h3 { color: var(--brand-600); }
.back-home { display: inline-flex; align-items: center; gap: 6px; margin-top: 40px; font-size: 14px; font-weight: 600; color: var(--brand-600); }
.back-home:hover { gap: 10px; }
.back-home { transition: gap .2s var(--ease); }

/* ---------- Page / 404 / search ---------- */
.page-content { max-width: 760px; margin-inline: auto; padding: 40px 0 0; }
.page-content .article__title { margin-bottom: 24px; }
.empty { text-align: center; padding: 80px 0 40px; }
.empty__code { font-family: "Inter", sans-serif; font-size: clamp(80px, 14vw, 140px); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(135deg, var(--ink), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.empty h1 { font-size: 28px; margin: 12px 0 10px; }
.empty p { color: var(--muted); }
.empty .search-form { max-width: 520px; margin: 24px auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--muted); }
.pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* WP core alignment helpers */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.alignwide { margin-inline: -60px; max-width: calc(100% + 120px); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.hero__grid { grid-template-columns: 1fr; gap: 22px; }
	.feed-grid { grid-template-columns: 1fr; gap: 22px; }
	.card-wide { grid-template-columns: 1fr; gap: 16px; }
	.card-wide .thumb { order: -1; }
	.video-feed__grid { grid-template-columns: repeat(2, 1fr); }
	.lead__grid { grid-template-columns: 1fr; gap: 28px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
	.alignwide { margin-inline: 0; max-width: 100%; }
}
@media (max-width: 600px) {
	.container { padding-inline: 16px; }
	.header-inner { height: 60px; gap: 12px; }
	.hero { padding-top: 20px; }
	.card { grid-template-columns: minmax(0, 1fr) 118px; gap: 14px; }
	.card .thumb { aspect-ratio: 1; }
	.card__title { font-size: 14.5px; -webkit-line-clamp: 3; }
	.card__excerpt { display: none; }
	.video-feed { padding: 22px 16px; margin-inline: -4px; border-radius: 18px; }
	.video-feed__grid { gap: 18px 12px; }
	.video-feed__head .btn { display: none; }
	.lead { padding: 52px 0; }
	.form { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.related__grid { grid-template-columns: 1fr; }
	.related-card { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; }
	.related-card .thumb { margin: 0; }
	.entry { font-size: 17px; }
	.article__byline { flex-direction: column; align-items: flex-start; }
}

@media print {
	.site-header, .ticker, .site-footer, .lead, .share, .related, .video-feed { display: none !important; }
	body { background: #fff; }
}
.related-card h3 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
section[id], [id="newsletter"] { scroll-margin-top: 96px; }

/* ---------- Elementor pages ---------- */
.an-builder { min-height: 40vh; }
.an-builder .hero { padding-top: 36px; }
.an-builder .home-section:first-child { margin-top: 24px; }
.an-builder .hero + .home-section, .an-builder .elementor-widget-an-hero + .elementor-widget-an-posts .home-section { border-top: 0; }
.lead--inline { margin-top: 0; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 48px 32px; }
@media (max-width: 600px) { .lead--inline { padding: 32px 18px; } }

/* ---------- Article source ---------- */
.article__source { margin: 32px 0 0; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.article__source a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.article__source a:hover { color: var(--ink); }
.article__source + .tags { margin-top: 20px; }
