/* ==========================================================================
   EC Kaunas Žinios
   Spalvos: ledo paviršius, čiuožyklos tamsiai mėlyna, Kauno raudona.
   ========================================================================== */

@font-face {
	font-family: "Bitter";
	src: url("../fonts/bitter-var.woff") format("woff");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/source-sans-3-var.woff") format("woff");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #f2f6f9;
	--surface: #ffffff;
	--ink: #0f2740;
	--text: #1d2a36;
	--muted: #586a7b;
	--line: #d6e0e9;
	--accent: #c8102e;
	--ice: #1f73c4;
	--ice-soft: #dcebf8;
	--rink: #0f2740;
	--rink-deep: #0a1c30;
	--on-rink: #e9f2fa;
	--on-rink-muted: #9fc3e4;

	--f-head: "Bitter", Georgia, "Times New Roman", serif;
	--f-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--r-s: 8px;
	--r-m: 12px;
	--r-l: 16px;
	--nav-h: 52px;
	--shadow: 0 10px 30px -12px rgba(15, 39, 64, .28);
	color-scheme: light;
}

[data-theme="dark"] {
	--bg: #0a1520;
	--surface: #0f1e2c;
	--ink: #eef4f9;
	--text: #d2dce6;
	--muted: #93a5b6;
	--line: #203447;
	--accent: #ff5468;
	--ice: #74b9ff;
	--ice-soft: #13283b;
	--rink: #08121c;
	--rink-deep: #060e16;
	--shadow: 0 12px 34px -12px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

/* --------------------------------------------------------------------------
   Pagrindai
   ----------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.55;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video,
iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }

h1, h2, h3, h4 {
	font-family: var(--f-head);
	color: var(--ink);
	line-height: 1.2;
	margin: 0;
	font-weight: 700;
	letter-spacing: -.01em;
	text-wrap: balance;
}

p { margin: 0; }

button { font: inherit; color: inherit; }

:focus-visible {
	outline: 3px solid var(--ice);
	outline-offset: 2px;
	border-radius: 4px;
}
.site-main:focus { outline: none; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px; top: -60px;
	z-index: 1000;
	background: var(--surface);
	color: var(--ink);
	padding: 10px 16px;
	border-radius: var(--r-s);
	font-weight: 700;
	box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	min-height: 46px;
	padding: .6em 1.5em;
	border-radius: 999px;
	background: var(--ink);
	color: var(--bg);
	font-weight: 700;
	text-decoration: none;
	border: 2px solid var(--ink);
	cursor: pointer;
	transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--ice); border-color: var(--ice); color: #fff; }
.btn--more { background: transparent; color: var(--ink); }
.btn--more.is-loading { opacity: .6; cursor: progress; }

/* --------------------------------------------------------------------------
   Viršutinė juosta ir antraštė (čiuožyklos juosta)
   ----------------------------------------------------------------------- */
.topbar {
	background: var(--rink-deep);
	color: var(--on-rink-muted);
	font-size: .875rem;
}
.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 38px;
	gap: 16px;
}
.topbar__tools { display: flex; align-items: center; gap: 6px; }
.topbar__social,
.mode {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	padding: 4px 10px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--on-rink);
	cursor: pointer;
	text-decoration: none;
}
.topbar__social:hover,
.mode:hover { background: rgba(255, 255, 255, .1); }
.mode .ico--sun { display: none; }
[data-theme="dark"] .mode .ico--sun { display: block; }
[data-theme="dark"] .mode .ico--moon { display: none; }
.ico { flex: none; }

.masthead {
	background-color: var(--rink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='150' viewBox='0 0 640 150'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M-20 118C80 60 170 40 270 72s190 66 390-8'/%3E%3Cpath d='M-20 140C120 100 210 124 320 100S520 14 660 46'/%3E%3Cpath d='M30 22c70 40 150 52 236 20s130-40 214 2 120 30 180 6'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-position: center;
	color: var(--on-rink);
}
.masthead__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: clamp(18px, 3vw, 30px);
}
.masthead__tag {
	font-family: var(--f-head);
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--on-rink-muted);
}

.brand { margin: 0; font: inherit; }
.brand__link {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: inherit;
}
.brand__mark {
	width: clamp(46px, 6vw, 62px);
	height: auto;
	color: #7cc4ff;
	flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
	font-family: var(--f-head);
	font-weight: 800;
	font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
	letter-spacing: -.02em;
	color: #fff;
}
.brand__sub {
	margin-top: 6px;
	font-size: clamp(.875rem, .8rem + .3vw, 1rem);
	font-weight: 600;
	color: var(--on-rink-muted);
}
.brand--custom img { max-height: 72px; width: auto; }

/* Pagrindinis meniu – lipnus */
.mainnav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}
.admin-bar .mainnav { top: 32px; }
@media (max-width: 782px) { .admin-bar .mainnav { top: 0; } }

.mainnav__inner {
	display: flex;
	align-items: center;
	min-height: var(--nav-h);
}
.mainnav__home {
	display: flex;
	align-items: center;
	width: 0;
	overflow: hidden;
	color: var(--ice);
	transition: width .25s ease, margin .25s ease;
}
.mainnav__mark { width: 34px; height: 34px; flex: none; }
.mainnav.is-stuck .mainnav__home { width: 34px; margin-right: 14px; }

.mainnav__scroll {
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
	mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.mainnav__scroll::-webkit-scrollbar { display: none; }
.mainnav__list {
	display: flex;
	gap: 2px;
	margin: 0;
	padding: 0 24px 0 0;
	list-style: none;
	white-space: nowrap;
}
.mainnav__list a {
	position: relative;
	display: block;
	padding: 14px 12px;
	font-weight: 600;
	font-size: 1rem;
	color: var(--ink);
	text-decoration: none;
}
.mainnav__list a::after {
	content: "";
	position: absolute;
	left: 12px; right: 12px; bottom: 6px;
	height: 3px;
	border-radius: 3px;
	background: var(--accent);
	transform: scaleX(0);
	transition: transform .2s ease;
}
.mainnav__list a:hover::after,
.mainnav__list .current-menu-item > a::after,
.mainnav__list .is-parent-cat > a::after { transform: scaleX(1); }

/* Naujausių antraščių juosta */
.ticker {
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	font-size: .9375rem;
}
.ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 42px; }
.ticker__label {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--accent);
}
.ticker__label::before {
	content: "";
	width: 8px; height: 8px;
	border-radius: 50%;
	background: currentColor;
}
.ticker__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 94%, transparent);
}
.ticker__track {
	display: flex;
	width: max-content;
	animation: eck-ticker 70s linear infinite;
}
.ticker:hover .ticker__track,
.ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; margin: 0; padding: 0; list-style: none; }
.ticker__list li { padding-right: 40px; white-space: nowrap; }
.ticker__list li + li::before {
	content: "";
	display: inline-block;
	width: 5px; height: 5px;
	margin-right: 40px;
	border-radius: 50%;
	background: var(--line);
	vertical-align: middle;
}
.ticker__list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.ticker__list a:hover { text-decoration: underline; }
@keyframes eck-ticker { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Kortelės
   ----------------------------------------------------------------------- */
.card { position: relative; display: grid; align-content: start; gap: 12px; }
.card__media {
	position: relative;
	overflow: hidden;
	border-radius: var(--r-m);
	aspect-ratio: 16 / 9;
	background: var(--ice-soft);
}
.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card__body { display: grid; gap: 6px; align-content: start; min-width: 0; }
.card__cat {
	position: relative;
	z-index: 2;
	justify-self: start;
	font-size: .875rem;
	font-weight: 700;
	color: var(--accent);
	text-decoration: none;
}
.card__cat:hover { text-decoration: underline; }
.card__title { font-size: 1.25rem; line-height: 1.25; font-weight: 700; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card__title a { color: var(--ice); }
.card__title a:focus-visible { outline: none; }
.card:has(.card__title a:focus-visible) { outline: 3px solid var(--ice); outline-offset: 4px; border-radius: var(--r-m); }
.card__excerpt { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: .875rem;
	color: var(--muted);
}

/* Vietos rezervavimas, kai nėra paveikslėlio */
.ph {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--rink) 0%, #1f5a8f 100%);
	color: rgba(255, 255, 255, .55);
}
.ph__mark { width: 30%; max-width: 90px; }

/* Pagrindinė (lead) */
.card--lead { gap: 0; }
.card--lead .card__media { aspect-ratio: 16 / 9; border-radius: var(--r-l); }
.card--lead .card__body {
	position: relative;
	z-index: 1;
	margin: -72px 24px 0;
	padding: 22px 26px 24px;
	background: var(--surface);
	border-radius: var(--r-m);
	box-shadow: var(--shadow);
	gap: 10px;
}
.card--lead .card__title {
	font-size: clamp(1.55rem, 1.1rem + 1.5vw, 2.3rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.015em;
}
.card--lead .card__excerpt { font-size: 1.0625rem; color: var(--text); }

/* Šoninė (thumb kairėje) */
.card--side { grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: start; }
.card--side .card__media { aspect-ratio: 4 / 3; border-radius: var(--r-s); }
.card--side .card__title { font-size: 1.0625rem; line-height: 1.3; }

/* Sąrašas (be paveikslėlio) */
.card--list { gap: 4px; padding-block: 14px; border-top: 1px solid var(--line); }
.card--list .card__title { font-size: 1.0625rem; line-height: 1.3; }

/* Mini (taip pat skaitykite, skaitykite toliau) */
.card--mini { grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; }
.card--mini .card__media { aspect-ratio: 1; border-radius: var(--r-s); }
.card--mini .card__title { font-size: 1.0625rem; line-height: 1.3; }

/* Reitingas (populiariausi) – tai tikrai eilė, todėl numeruojame */
.card--rank { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; }
.card__rank {
	font-family: var(--f-head);
	font-weight: 800;
	font-size: 1.75rem;
	line-height: 1;
	color: var(--ice);
	font-variant-numeric: tabular-nums;
}
.card--rank .card__title { font-size: 1rem; line-height: 1.3; }
.card--rank .card__cat { display: none; }

/* --------------------------------------------------------------------------
   Sekcijos
   ----------------------------------------------------------------------- */
.block { margin-block: clamp(32px, 5vw, 56px); }
.block__more { margin-top: 24px; }

.shead {
	display: grid;
	grid-template-columns: auto minmax(40px, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
}
.shead__title { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); font-weight: 800; }
.shead__title a { text-decoration: none; }
.shead__title a:hover { color: var(--ice); }
.shead__trace { width: 100%; height: 12px; color: var(--ice); opacity: .55; }
.shead__all {
	font-weight: 700;
	font-size: .9375rem;
	color: var(--ice);
	text-decoration: none;
	padding: 6px 2px;
}
.shead__all:hover { text-decoration: underline; }

/* Pradžios viršus */
.front-top {
	display: grid;
	grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 40px);
	margin-top: clamp(20px, 3vw, 36px);
}
.front-top__side { display: grid; align-content: start; gap: 0; }
.front-top__side .card { padding-block: 16px; border-top: 1px solid var(--line); }
.front-top__side .card:first-child { padding-top: 0; border-top: 0; }

/* Turinys + šoninė juosta */
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}
.layout__main { min-width: 0; }

.feed { display: grid; }
.feed .card--side {
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 20px;
	padding-block: 20px;
	border-top: 1px solid var(--line);
}
.feed .card--side:first-child { border-top: 0; padding-top: 0; }
.feed .card--side .card__title { font-size: 1.3125rem; }

.topic-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 clamp(24px, 3vw, 40px);
}
.topic { margin-block: clamp(24px, 4vw, 40px) 0; }
.topic .card--grid { margin-bottom: 6px; }
.topic__list .card--list:first-child { border-top: 0; }

.strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 28px);
}

.grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(28px, 3vw, 36px) clamp(20px, 2.5vw, 32px);
}
.grid > .card--lead { grid-column: 1 / -1; margin-bottom: 8px; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Šoninė juosta */
.sidebar { min-width: 0; }
.sidebar__inner > * { min-width: 0; }
.sidebar__inner {
	position: sticky;
	top: calc(var(--nav-h) + 20px);
	display: grid;
	gap: 24px;
}
.admin-bar .sidebar__inner { top: calc(var(--nav-h) + 52px); }
.box,
.sidebar .widget {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-m);
	padding: 20px 22px;
}
.box__title,
.widget__title {
	font-size: 1.25rem;
	font-weight: 800;
	margin-bottom: 14px;
}
.rank { margin: 0; padding: 0; list-style: none; display: grid; }
.rank li { padding-block: 12px; border-top: 1px solid var(--line); }
.rank li:first-child { border-top: 0; padding-top: 0; }
.rank li:last-child { padding-bottom: 0; }

.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.topics a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--ice-soft);
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
	font-size: .9375rem;
}
.topics a:hover { background: var(--ice); color: #fff; }
.topics__n { font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   Archyvai
   ----------------------------------------------------------------------- */
.archive-head { padding-block: clamp(20px, 3vw, 36px) clamp(18px, 3vw, 28px); }
.archive-head__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.archive-head__page { font-weight: 500; color: var(--muted); font-size: .55em; }
.archive-head__desc { max-width: 68ch; margin-top: 10px; color: var(--muted); font-size: 1.125rem; }
.archive-head__desc p + p { margin-top: .6em; }
.archive-head__count { margin-top: 8px; color: var(--muted); font-size: .9375rem; }

.pager { display: grid; justify-items: center; gap: 22px; margin-top: 40px; }
.pager__nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pager__nav .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0 12px;
	border-radius: var(--r-s);
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
}
.pager__nav .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager__nav a.page-numbers:hover { border-color: var(--ice); color: var(--ice); }
.pager__nav .dots { background: transparent; border: 0; }

.empty {
	padding: 28px;
	background: var(--surface);
	border: 1px dashed var(--line);
	border-radius: var(--r-m);
	color: var(--muted);
}

/* Naršymo kelias */
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.crumbs li + li::before { content: "/"; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--ink); }
.crumbs [aria-current] {
	display: inline-block;
	max-width: 42ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

/* --------------------------------------------------------------------------
   Straipsnis
   ----------------------------------------------------------------------- */
.readbar {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 120;
	height: 3px;
	pointer-events: none;
}
.admin-bar .readbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .readbar { top: 46px; } }
.readbar__fill {
	display: block;
	height: 100%;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

.article { padding-top: clamp(20px, 3vw, 36px); }
.article__head { max-width: 900px; }
.article__cats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.article__cats a { color: var(--accent); font-weight: 700; text-decoration: none; }
.article__cats a:hover { text-decoration: underline; }
.article__title {
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.02em;
}
.article__deck {
	margin-top: 16px;
	max-width: 62ch;
	font-size: clamp(1.125rem, 1rem + .4vw, 1.3125rem);
	line-height: 1.5;
	color: var(--muted);
}
.article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	margin-top: 18px;
	font-size: .9375rem;
	color: var(--muted);
}
.article__author { font-weight: 700; color: var(--ink); }
.article__author a { text-decoration: none; }

.article__figure { margin: clamp(20px, 3vw, 32px) 0 0; }
.article__figure img {
	width: 100%;
	max-height: min(70vh, 640px);
	object-fit: cover;
	border-radius: var(--r-l);
	background: var(--ice-soft);
}
.article__figure figcaption { margin-top: 8px; font-size: .875rem; color: var(--muted); }

.article__layout {
	display: grid;
	grid-template-columns: 52px minmax(0, 720px) 300px;
	justify-content: space-between;
	gap: clamp(24px, 3vw, 48px);
	margin-top: clamp(24px, 3vw, 40px);
	align-items: start;
}
.article__rail { position: sticky; top: calc(var(--nav-h) + 24px); }
.admin-bar .article__rail { top: calc(var(--nav-h) + 56px); }
.article__main { min-width: 0; }
.article--page .article__single-col { max-width: 760px; margin-top: 28px; }

/* Dalinimasis */
.share { display: flex; align-items: center; gap: 12px; }
.share ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.share__label { font-size: .875rem; font-weight: 700; color: var(--muted); }
.share__btn {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
.share__btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.share__btn.is-done { background: var(--ice); border-color: var(--ice); color: #fff; }
.share--rail { flex-direction: column; align-items: center; }
.share--rail ul { flex-direction: column; }
.share--rail .share__label { writing-mode: vertical-rl; transform: rotate(180deg); }

/* Straipsnio tekstas */
.entry-content {
	font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
	line-height: 1.72;
	color: var(--text);
	overflow-wrap: break-word;
}
.entry-content > * { margin-block: 0 1.15em; }
.entry-content h2 {
	font-size: clamp(1.45rem, 1.2rem + .9vw, 1.85rem);
	font-weight: 800;
	line-height: 1.22;
	margin-top: 1.9em;
	margin-bottom: .55em;
}
.entry-content h3 { font-size: 1.3rem; margin-top: 1.6em; margin-bottom: .5em; }
.entry-content h4 { font-size: 1.1rem; margin-top: 1.4em; margin-bottom: .4em; }
.entry-content a { color: var(--ice); text-decoration: underline; text-decoration-thickness: 1px; }
.entry-content a:hover { text-decoration-thickness: 2px; }
.entry-content strong { color: var(--ink); font-weight: 700; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .45em; }
.entry-content li::marker { color: var(--ice); font-weight: 700; }
.entry-content blockquote {
	margin-inline: 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--accent);
	font-family: var(--f-head);
	font-size: 1.25em;
	line-height: 1.5;
	color: var(--ink);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { border-radius: var(--r-m); }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption,
.entry-content .wp-caption-text { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin-block: 2em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.entry-content th,
.entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { color: var(--ink); background: var(--ice-soft); }
.table-scroll { overflow-x: auto; }
.entry-content iframe { width: 100%; border: 0; border-radius: var(--r-m); }
.entry-content h2,
.entry-content h3 { scroll-margin-top: calc(var(--nav-h) + 20px); }

.alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }

/* Turinio rodyklė */
.toc {
	padding: 18px 22px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-m);
	font-size: 1rem;
	line-height: 1.45;
}
.toc__title {
	font-family: var(--f-head);
	font-weight: 700;
	font-size: 1.125rem;
	color: var(--ink);
	cursor: pointer;
	list-style-position: outside;
}
.toc__title::marker { color: var(--ice); }
.toc__list { margin: 12px 0 0; padding-left: 1.4em; }
.toc__list ol { margin: 6px 0 0; padding-left: 1.1em; list-style: lower-alpha; font-size: .9375rem; }
.toc li { margin-bottom: 6px; }
.entry-content .toc a { color: var(--ink); text-decoration: none; }
.entry-content .toc a:hover { color: var(--ice); text-decoration: underline; }

/* Taip pat skaitykite */
.also {
	padding: 16px 18px;
	border-left: 4px solid var(--ice);
	background: var(--surface);
	border-radius: 0 var(--r-m) var(--r-m) 0;
	font-size: 1rem;
	line-height: 1.45;
}
.also__label { font-size: .875rem; font-weight: 700; color: var(--ice); margin-bottom: 10px; }
.entry-content .also a { color: var(--ink); text-decoration: none; }
.also .card--mini .card__media img { border-radius: var(--r-s); }

/* Straipsnio pabaiga */
.article__foot { display: grid; gap: 28px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags a {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--ink);
	font-size: .9375rem;
	text-decoration: none;
}
.tags a:hover { border-color: var(--ice); color: var(--ice); }

.postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.postnav__item {
	display: grid;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--r-m);
	background: var(--surface);
	text-decoration: none;
	transition: border-color .2s;
}
.postnav__item:hover { border-color: var(--ice); }
.postnav__item--prev { grid-column: 2; text-align: right; }
.postnav__item--next { grid-column: 1; }
.postnav__label { font-size: .875rem; color: var(--muted); font-weight: 600; }
.postnav__title { font-family: var(--f-head); font-weight: 700; color: var(--ink); line-height: 1.3; }

/* Skaitykite toliau (iššokanti kortelė) */
.nextup {
	position: fixed;
	right: 20px;
	bottom: 84px;
	z-index: 80;
	width: min(360px, calc(100vw - 40px));
	padding: 16px 44px 16px 16px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-l);
	box-shadow: var(--shadow);
	transform: translateY(16px);
	opacity: 0;
	transition: transform .3s ease, opacity .3s ease;
}
.nextup.is-in { transform: none; opacity: 1; }
.nextup__label { font-size: .875rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.nextup__close {
	position: absolute;
	top: 6px; right: 6px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	cursor: pointer;
}
.nextup__close:hover { background: var(--ice-soft); color: var(--ink); }

/* 404 */
.notfound { padding-block: clamp(40px, 7vw, 80px) 10px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.notfound__mark { width: 84px; color: var(--ice); }
.notfound__title { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 800; }
.notfound__text { max-width: 52ch; color: var(--muted); font-size: 1.125rem; }

/* --------------------------------------------------------------------------
   Poraštė
   ----------------------------------------------------------------------- */
.site-footer {
	margin-top: clamp(48px, 7vw, 88px);
	background: var(--rink);
	color: var(--on-rink-muted);
	font-size: .9375rem;
}
.site-footer a { color: var(--on-rink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
	gap: 36px;
	padding-block: clamp(36px, 5vw, 56px);
}
.site-footer .brand__mark { width: 46px; }
.site-footer .brand__name { font-size: 1.9rem; }
.site-footer__text { margin-top: 16px; max-width: 40ch; line-height: 1.55; }
.site-footer__title { font-size: 1.0625rem; color: #fff; margin-bottom: 14px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.site-footer .widget { margin-top: 18px; }
.site-footer .widget__title { color: #fff; font-size: 1.0625rem; }
.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding-block: 18px 22px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .875rem;
}

/* Mygtukas „į viršų“ su slinkimo progreso žiedu */
.totop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ink);
	color: var(--bg);
	cursor: pointer;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--ice); color: #fff; }
.totop__ring {
	position: absolute;
	inset: 2px;
	width: calc(100% - 4px);
	height: calc(100% - 4px);
	transform: rotate(-90deg);
	pointer-events: none;
}
.totop__ring circle {
	fill: none;
	stroke: var(--accent);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
}
.totop .ico { position: relative; width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Prisitaikymas
   ----------------------------------------------------------------------- */
@media (max-width: 1180px) {
	.article__layout { grid-template-columns: 52px minmax(0, 1fr); }
	.article__layout > .sidebar { grid-column: 1 / -1; }
	.article__layout > .sidebar .sidebar__inner { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (max-width: 1080px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar__inner { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
	.strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.front-top { grid-template-columns: minmax(0, 1fr); }
	.front-top__side .card:first-child { padding-top: 16px; border-top: 1px solid var(--line); }
	.masthead__tag { display: none; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article__layout { grid-template-columns: minmax(0, 1fr); }
	.article__rail { position: static; }
	.share--rail { flex-direction: row; }
	.share--rail ul { flex-direction: row; flex-wrap: wrap; }
	.share--rail .share__label { writing-mode: horizontal-tb; transform: none; }
	.article__rail { order: 0; }
}

@media (max-width: 680px) {
	body { font-size: 1rem; }
	.topbar__date { font-size: .8125rem; }
	.mode__label { display: none; }
	.card--lead .card__body { margin: -40px 10px 0; padding: 16px 18px 18px; }
	.feed .card--side { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding-block: 16px; }
	.feed .card--side .card__title { font-size: 1.0625rem; }
	.feed .card__excerpt { display: none; }
	.card--side { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
	.topic-grid { grid-template-columns: minmax(0, 1fr); }
	.grid,
	.grid--3 { grid-template-columns: minmax(0, 1fr); }
	.strip {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 78%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 8px;
	}
	.strip > * { scroll-snap-align: start; }
	.postnav { grid-template-columns: minmax(0, 1fr); }
	.postnav__item--prev,
	.postnav__item--next { grid-column: auto; text-align: left; }
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.crumbs [aria-current] { max-width: 22ch; }
	.nextup { left: 12px; right: 80px; bottom: 16px; width: auto; }
	.totop { right: 14px; bottom: 16px; }
	.shead { grid-template-columns: auto minmax(24px, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
	.ticker__track { animation: none; }
	.ticker__viewport { overflow-x: auto; }
	.ticker__list[aria-hidden="true"] { display: none; }
	html { scroll-behavior: auto; }
}

@media print {
	.topbar, .mainnav, .ticker, .sidebar, .article__rail, .article__foot .share, .related, .nextup, .totop, .readbar, .site-footer, .also { display: none !important; }
	body { background: #fff; color: #000; }
	.masthead { background: none; color: #000; }
	.brand__name { color: #000; }
}
