/* ==========================================================================
   Signalas – naujienos, kurios ateina kaip pranešimai
   ========================================================================== */

/* ---------- Šriftai (talpinami savame serveryje, be išorinių užklausų) ---------- */
@font-face { font-family: "DM Sans"; src: url(../fonts/dm-sans.woff) format("woff"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(../fonts/dm-sans-italic.woff) format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Bitter"; src: url(../fonts/bitter.woff) format("woff"); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Black"; src: url(../fonts/archivo-black.woff) format("woff"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Spalvos ir dydžiai ---------- */
:root {
	--bg: #F3F1EC;
	--bg-2: #EAE6DD;
	--surface: #FFFFFF;
	--surface-2: #F8F6F2;
	--ink: #141414;
	--ink-2: #2A2926;
	--muted: #5E5B55;
	--line: #DFD9CE;
	--signal: #FF4A1C;
	--signal-ink: #C2320C;
	--signal-soft: #FFE6DD;
	--ok: #13915E;
	--chip-l: 93%;
	--chip-tl: 30%;
	--shadow-1: 0 1px 2px rgba(20, 20, 20, .05), 0 2px 8px rgba(20, 20, 20, .04);
	--shadow-2: 0 2px 6px rgba(20, 20, 20, .06), 0 18px 40px -14px rgba(20, 20, 20, .22);
	--r-sm: 12px;
	--r: 20px;
	--r-lg: 28px;
	--wrap: 1240px;
	--pad: clamp(16px, 4vw, 32px);
	--head-h: 68px;
	--f-ui: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-head: "Bitter", ui-serif, Georgia, "Times New Roman", serif;
	--f-display: "Archivo Black", "DM Sans", ui-sans-serif, system-ui, sans-serif;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--bg: #0E0F11;
	--bg-2: #15161A;
	--surface: #17181C;
	--surface-2: #1D1E23;
	--ink: #F2EFE8;
	--ink-2: #DCD8CF;
	--muted: #A39E95;
	--line: #2B2C31;
	--signal: #FF6A3D;
	--signal-ink: #FF8A63;
	--signal-soft: #3A1D14;
	--ok: #3FD192;
	--chip-l: 20%;
	--chip-tl: 82%;
	--shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
	--shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 40px -14px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0E0F11;
		--bg-2: #15161A;
		--surface: #17181C;
		--surface-2: #1D1E23;
		--ink: #F2EFE8;
		--ink-2: #DCD8CF;
		--muted: #A39E95;
		--line: #2B2C31;
		--signal: #FF6A3D;
		--signal-ink: #FF8A63;
		--signal-soft: #3A1D14;
		--ok: #3FD192;
		--chip-l: 20%;
		--chip-tl: 82%;
		--shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
		--shadow-2: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 40px -14px rgba(0, 0, 0, .7);
		color-scheme: dark;
	}
}

/* ---------- Bazė ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 24px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.6 var(--f-ui);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--signal-ink); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 750; line-height: 1.15; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--signal); color: #fff; }

.i { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.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 { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--bg); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.wrap--wide { max-width: calc(var(--wrap) + 2 * var(--pad)); }
.site-main { display: block; min-height: 60vh; outline: none; }

.eyebrow { display: inline-block; font: 700 12px/1.2 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Mygtukai ir žymos ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--ink);
	background: transparent; color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap;
	transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:active { transform: scale(.98); }
.btn .i { width: 18px; height: 18px; }
.btn--signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn--signal:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 6px 0; font-weight: 700; font-size: 14px; color: var(--ink); }
.link-btn:hover { color: var(--signal-ink); }
.link-btn .i { width: 17px; height: 17px; }
.icon-btn {
	position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
	border-radius: 50%; border: 0; background: transparent; color: var(--ink); transition: background .15s ease;
}
.icon-btn:hover { background: var(--bg-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	--h: 14;
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
	background: hsl(var(--h) 80% var(--chip-l)); color: hsl(var(--h) 70% var(--chip-tl));
	font: 700 12.5px/1.5 var(--f-ui); letter-spacing: .01em; white-space: nowrap;
}
.chip:hover { color: hsl(var(--h) 70% var(--chip-tl)); filter: saturate(1.4); }
.chip--ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink-2); }
.chip--ghost:hover { border-color: var(--signal); color: var(--signal-ink); filter: none; }

/* „Programėlės“ piktograma kategorijai */
.app {
	--h: 14;
	display: inline-grid; place-items: center; flex: none;
	width: 40px; height: 40px; border-radius: 28%;
	background: linear-gradient(140deg, hsl(var(--h) 78% 52%), hsl(calc(var(--h) + 28) 72% 38%));
	color: #fff; font: 400 15px/1 var(--f-display); letter-spacing: -.02em;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 10px -4px hsl(var(--h) 70% 30% / .6);
}
.app--xs { width: 22px; height: 22px; font-size: 9.5px; border-radius: 7px; box-shadow: none; }
.app--sm { width: 38px; height: 38px; font-size: 14px; }
.app--lg { width: 62px; height: 62px; font-size: 22px; }
.app--xl { width: 84px; height: 84px; font-size: 30px; }

.unread { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); flex: none; box-shadow: 0 0 0 3px var(--signal-soft); transition: transform .3s ease, opacity .3s ease; }
.is-read .unread { transform: scale(0); opacity: 0; }

.pulse { position: relative; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--signal); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* ---------- Būsenos juosta ir antraščių juosta ---------- */
.statusbar { background: #121316; color: #E9E5DC; font-size: 13px; }
.statusbar__in { display: flex; align-items: center; gap: 16px; height: 36px; }
.statusbar__live { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; color: #fff; flex: none; }
.statusbar__date { flex: none; color: #A9A49B; font-variant-numeric: tabular-nums; }
.ticker { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__track { display: flex; width: max-content; animation: 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 { white-space: nowrap; padding-right: 44px; position: relative; }
.ticker__list li::after { content: ""; position: absolute; right: 18px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--signal); }
.ticker a { color: #E9E5DC; }
.ticker a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Antraštė ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	-webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__in { display: flex; align-items: center; gap: 18px; height: var(--head-h); }
.site-title { margin: 0; font-size: inherit; line-height: 1; flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 40px; height: 40px; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 400 21px/1 var(--f-display); letter-spacing: -.02em; }
.brand__sub { font: 500 14.5px/1.15 var(--f-ui); color: var(--muted); letter-spacing: .005em; }
.custom-logo { max-height: 48px; width: auto; }

.primary-nav { flex: 1; min-width: 0; }
.primary-nav__head { display: none; }
.primary-nav .menu { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.primary-nav .menu::-webkit-scrollbar { display: none; }
.primary-nav .menu > li { position: relative; flex: none; }
.primary-nav .menu a { display: block; padding: 8px 13px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.primary-nav .menu a:hover { background: var(--bg-2); color: var(--ink); }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current-category-ancestor > a { background: var(--ink); color: var(--bg); }
.primary-nav .sub-menu { display: none; }

.header-tools { display: flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
.theme-toggle .i--sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i--moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .i--sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .i--moon { display: none; }
}
.menu-toggle { display: none; }

.bell__count {
	position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px;
	border-radius: 999px; background: var(--signal); color: #fff; border: 2px solid var(--bg);
	font: 800 10.5px/15px var(--f-ui); text-align: center; font-variant-numeric: tabular-nums;
}
.bell.is-ringing .i { animation: ring 1.2s ease .6s 2; transform-origin: 50% 10%; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }

/* Pranešimų centras */
.notif-panel {
	position: absolute; right: max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); top: calc(100% + 8px);
	width: min(420px, calc(100vw - 24px)); max-height: min(72vh, 640px); overflow: auto; overscroll-behavior: contain;
	background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-2);
	padding: 8px; animation: drop .22s cubic-bezier(.2, .9, .3, 1.2);
}
.notif-panel[hidden] { display: none; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.notif-panel__head { position: sticky; top: -8px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 12px 10px; background: var(--surface); }
.notif-panel__status { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.notif-panel .link-btn { font-size: 13px; color: var(--signal-ink); white-space: nowrap; flex: none; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; }
.notif a:hover { background: var(--surface-2); color: inherit; }
.notif__body { flex: 1; min-width: 0; }
.notif__meta { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.notif__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 15px; line-height: 1.35; }
.notif.is-read .notif__title { font-weight: 500; color: var(--muted); }

/* Paieškos langas */
.search-dialog {
	width: min(760px, calc(100vw - 24px)); margin: 10vh auto auto; padding: 18px;
	border: 1px solid var(--line); border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2);
}
.search-dialog::backdrop { background: rgba(14, 15, 17, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.search-dialog__in { display: flex; gap: 8px; align-items: center; }
.search-dialog__in .search-form { flex: 1; }
.search-dialog__suggest { padding: 18px 6px 4px; }
.search-dialog__suggest .eyebrow { margin-bottom: 10px; }
.search-form { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 5px 5px 5px 46px; }
.search-form:focus-within { border-color: var(--signal); }
.search-form__icon { position: absolute; left: 16px; color: var(--muted); }
.search-form__input { flex: 1; min-width: 0; height: 42px; border: 0; background: none; color: var(--ink); font: 500 17px var(--f-ui); outline: none; }
.search-form__input::placeholder { color: var(--muted); }
.search-form__btn { min-height: 42px; }

/* ---------- Užrakinto ekrano blokas (pagrindinis) ---------- */
.lock { padding: clamp(20px, 3.5vw, 40px) 0 10px; }
.lock__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: clamp(16px, 2.2vw, 28px); align-items: stretch; }
.lead { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.lead__media .thumb { aspect-ratio: 16 / 9; border-radius: 0; }
.lead__body { padding: clamp(18px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.lead__title { font-size: clamp(26px, 3.3vw, 42px); line-height: 1.1; letter-spacing: -.008em; word-spacing: .04em; }
.lead__title a:hover { color: inherit; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.lead__excerpt { color: var(--muted); font-size: 17.5px; margin: 0; max-width: 62ch; }
.lead .btn { align-self: flex-start; margin-top: auto; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--bg); font: 800 11px/1.5 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }

.lock__side {
	position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 2.4vw, 28px);
	border-radius: var(--r-lg); color: #F4F1EA; overflow: hidden; isolation: isolate;
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(255, 74, 28, .55), transparent 55%),
		radial-gradient(90% 70% at 0% 100%, rgba(45, 107, 255, .45), transparent 60%),
		linear-gradient(160deg, #1A1B20, #0D0E10);
	box-shadow: var(--shadow-2);
}
.lock__side::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; background-image: radial-gradient(rgba(255, 255, 255, .6) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
.clock { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 4px; }
.clock__time { font: 300 clamp(56px, 6.4vw, 92px)/1 var(--f-ui); font-weight: 300; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.clock__day { margin-top: 6px; font-weight: 600; font-size: 15px; opacity: .85; }
.nstack__head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 8px; }
.nstack__head .eyebrow { color: rgba(255, 255, 255, .7); }
.nstack__head .link-btn { color: #fff; font-size: 13px; }
.nstack__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ncard {
	position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
	transition: transform .2s ease, background .2s ease;
}
.ncard:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .16); }
.ncard__body { flex: 1; min-width: 0; }
.ncard__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.ncard__app { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ncard__title { font: 700 15px/1.3 var(--f-ui); letter-spacing: 0; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__title a { color: #fff; }
.ncard .thumb--sq { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.ncard .unread { position: absolute; top: 10px; right: 10px; box-shadow: 0 0 0 3px rgba(20, 20, 20, .6); }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* ---------- Temų „dokas“ ---------- */
.dock-wrap { padding: 18px 0 6px; }
.dock {
	display: flex; gap: 6px; margin: 0; padding: 14px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory;
	background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); scrollbar-width: thin;
}
.dock li { flex: 1 0 116px; scroll-snap-align: start; }
.dock__item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 18px; text-align: center; }
.dock__item:hover { background: var(--surface-2); color: inherit; }
.dock__item .app { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); margin-bottom: 4px; }
.dock__item:hover .app { transform: translateY(-4px) scale(1.06); }
.dock__name { font-weight: 700; font-size: 14px; line-height: 1.2; }
.dock__count { font-size: 12px; color: var(--muted); }

/* ---------- Sekcijos ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.section-head__title { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 2.4vw, 28px); }
.section-head__title .i { width: 24px; height: 24px; color: var(--signal); }
.section-head__hint { font-size: 14px; color: var(--muted); font-weight: 600; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(20px, 3vw, 40px); padding-top: clamp(28px, 4vw, 48px); padding-bottom: 20px; align-items: start; }
.layout--after { padding-top: 16px; }

/* Srauto eilutė */
.feed { display: grid; gap: 14px; }
.row-card {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) clamp(120px, 26%, 240px); gap: 20px; align-items: center;
	padding: 18px; background: var(--surface); border: 1px solid transparent; border-radius: var(--r); box-shadow: var(--shadow-1);
	transition: border-color .2s ease, transform .2s ease;
}
.row-card:hover { border-color: color-mix(in srgb, var(--signal) 45%, transparent); }
.row-card__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.row-card__cat { font-weight: 700; color: var(--ink-2); }
.row-card__meta .unread { margin-left: auto; }
.row-card__title { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.22; margin-bottom: 8px; }
.row-card__title a:hover { color: var(--signal-ink); }
.row-card__excerpt { color: var(--muted); font-size: 15.5px; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-card__media .thumb { aspect-ratio: 4 / 3; border-radius: 14px; }
.row-card.is-read .row-card__title a { color: var(--ink-2); }
.card__read { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.card__read .i { width: 15px; height: 15px; }

/* Kortelė */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
	position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); overflow: hidden;
	box-shadow: var(--shadow-1); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card__media .thumb { aspect-ratio: 16 / 9; border-radius: 0; }
.card__body { display: flex; flex-direction: column; gap: 9px; padding: 16px 18px 18px; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.card__meta .unread { margin-left: auto; }
.card__title { font-size: 19.5px; line-height: 1.24; }
.card__title a:hover { color: var(--signal-ink); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__meta a, .card .chip { position: relative; z-index: 2; }
.card__excerpt { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .card__read { margin-top: auto; }
.card.is-read .card__title { color: var(--ink-2); }

/* Paveikslėliai */
.thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); border-radius: var(--r-sm); }
.thumb > .thumb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.card:hover .thumb__img, .row-card:hover .thumb__img, .lead:hover .thumb__img, .next-up__card:hover .thumb__img { transform: scale(1.04); }
.thumb--sq { aspect-ratio: 1; }
.thumb--gen {
	--h: 14;
	display: grid; place-items: center;
	background:
		radial-gradient(60% 80% at 85% 10%, hsl(calc(var(--h) + 40) 85% 62% / .9), transparent 60%),
		radial-gradient(70% 90% at 0% 100%, hsl(calc(var(--h) - 30) 80% 38%), transparent 65%),
		linear-gradient(140deg, hsl(var(--h) 75% 52%), hsl(calc(var(--h) + 20) 70% 32%));
}
.thumb--gen::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: radial-gradient(rgba(255, 255, 255, .9) 1.2px, transparent 1.3px); background-size: 16px 16px; mask-image: linear-gradient(200deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); }
.thumb__mark { position: relative; font: 400 clamp(28px, 6vw, 64px)/1 var(--f-display); color: rgba(255, 255, 255, .9); letter-spacing: -.03em; text-shadow: 0 6px 24px rgba(0, 0, 0, .2); }
.thumb--sq .thumb__mark { font-size: 20px; }

/* Kategorijų blokai */
.rail { padding: clamp(28px, 4vw, 48px) 0 0; }
.rail__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-auto-rows: auto; gap: 14px; }
.rail__grid > .card { grid-row: span 3; }
.rail__grid .row-card { grid-template-columns: minmax(0, 1fr) 120px; padding: 14px; gap: 14px; }
.rail__grid .row-card__excerpt { display: none; }
.rail__grid .row-card__title { font-size: 17.5px; margin-bottom: 4px; }
.rail .section-head__title { gap: 12px; }
.rail .card__excerpt { -webkit-line-clamp: 4; }

.archive-pick { padding: clamp(36px, 5vw, 64px) 0 10px; }
.archive-pick .section-head__title .i { color: var(--muted); }

/* Šoninė juosta */
.sidebar { position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 18px; }
.admin-bar .sidebar { top: calc(var(--head-h) + 52px); }
.box { background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-1); }
.box__title { display: flex; align-items: center; gap: 8px; font-size: 19px; margin-bottom: 12px; }
.box__title .i { color: var(--signal); }
.mini-list { list-style: none; margin: 0; padding: 0; counter-reset: mini; }
.mini { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.mini:first-child { border-top: 0; padding-top: 2px; }
.mini__num { font: 400 30px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px var(--signal); min-width: 26px; }
.mini__body { flex: 1; min-width: 0; }
.mini__title { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.32; }
.mini__title::after { content: ""; position: absolute; inset: 0; }
.mini__meta { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.mini .unread { margin-top: 6px; }
.widget ul { margin: 0; padding-left: 1.1em; }
.widget li { margin: 4px 0; }

/* „Rodyti daugiau“ ir puslapiavimas */
.more { display: flex; justify-content: center; margin: 22px 0 6px; }
.btn--more { min-width: 260px; justify-content: center; }
.btn--more.is-loading { opacity: .6; pointer-events: none; }
.js .more + .pager { display: none; }
.pager { margin: 26px 0 10px; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 15px; box-shadow: var(--shadow-1); }
.pager .current { background: var(--ink); color: var(--bg); }
.pager .dots { background: none; box-shadow: none; }

/* ---------- Puslapio antraštė (archyvai, paieška) ---------- */
.page-head { padding: clamp(22px, 3.5vw, 40px) 0 clamp(20px, 3vw, 32px); }
.page-head--term { --h: 14; margin-bottom: 24px; background: linear-gradient(180deg, hsl(var(--h) 70% var(--chip-l) / .65), transparent); }
.page-head__row { display: flex; align-items: center; gap: 20px; }
.page-head__title { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.07; letter-spacing: -.012em; margin: 4px 0 6px; }
.page-head__count { margin: 0; color: var(--muted); font-weight: 600; }
.page-head__desc { max-width: 72ch; margin-top: 14px; color: var(--ink-2); font-size: 17.5px; }
.page-head__desc p:last-child { margin-bottom: 0; }
.page-head .chips { margin-top: 16px; }
.page-head__search { max-width: 640px; margin-top: 16px; }

/* Naršymo kelias */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 16px; padding: 0; list-style: none; font-size: 13.5px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin: 0 9px; opacity: .5; }
.crumbs a { font-weight: 600; color: var(--ink-2); }
.crumbs a:hover { color: var(--signal-ink); }
.crumbs [aria-current] { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38ch; }

/* ---------- Straipsnis ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 4px; pointer-events: none; }
.progress__bar { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--signal), #FFB020); }
.admin-bar .progress { top: 32px; }

.post-head { max-width: 920px; padding-top: clamp(22px, 3.5vw, 44px); padding-bottom: 22px; text-align: center; }
.post-head .crumbs ol { justify-content: center; }
.post-head__chips { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.post-head__chips .chip { padding: 4px 12px 4px 4px; font-size: 13px; }
.post-head__read { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.post-head__read .i { width: 16px; height: 16px; }
.post-head__title { font-size: clamp(32px, 5.2vw, 60px); line-height: 1.08; letter-spacing: -.012em; word-spacing: .04em; font-weight: 800; }
.post-head__dek { max-width: 46em; margin: 18px auto 0; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; color: var(--muted); }
.byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; text-align: left; }
.byline__avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 400 16px/1 var(--f-display); flex: none; }
.byline__name { display: block; font-weight: 700; }
.byline__dates { display: block; font-size: 14px; color: var(--muted); }

.post-figure { margin: 0 auto 8px; max-width: calc(1100px + 2 * var(--pad)); }
.thumb--hero { aspect-ratio: 16 / 9; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.post-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }

.post-layout { display: grid; grid-template-columns: 64px minmax(0, 720px); justify-content: center; gap: clamp(20px, 4vw, 56px); padding-top: clamp(24px, 4vw, 44px); padding-bottom: 20px; }
.post-layout.has-toc { grid-template-columns: 250px minmax(0, 720px); }
.post-layout--single { grid-template-columns: minmax(0, 760px); }
.post-aside { position: relative; }
.post-aside > * { position: sticky; top: calc(var(--head-h) + 24px); }
.post-aside .toc + .share { position: static; margin-top: 18px; }
.admin-bar .post-aside > * { top: calc(var(--head-h) + 56px); }

.toc { background: var(--surface); border-radius: var(--r); padding: 6px 6px 10px; box-shadow: var(--shadow-1); max-height: calc(100vh - var(--head-h) - 140px); overflow: auto; }
.toc__head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; font-weight: 800; font-size: 15px; cursor: pointer; list-style: none; }
.toc__head::-webkit-details-marker { display: none; }
.toc__head .i { color: var(--signal); }
.toc__count { margin-left: auto; min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--bg-2); font-size: 12px; text-align: center; color: var(--muted); }
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__item a { display: block; padding: 7px 12px 7px 14px; border-left: 2px solid var(--line); margin-left: 12px; font-size: 14px; line-height: 1.35; color: var(--muted); font-weight: 600; transition: color .15s, border-color .15s; }
.toc__item--3 a { padding-left: 26px; font-weight: 500; font-size: 13.5px; }
.toc__item a:hover { color: var(--ink); }
.toc__item a.is-active { color: var(--signal-ink); border-left-color: var(--signal); }

.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.share__btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); transition: all .15s ease; }
.share__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.share__btn .i { width: 18px; height: 18px; }
.share--aside { flex-direction: column; align-items: center; }
.share--aside .share__label { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 0 6px; }
.has-toc .share--aside { flex-direction: row; justify-content: flex-start; }
.has-toc .share--aside .share__label { writing-mode: horizontal-tb; transform: none; width: 100%; margin-bottom: 2px; }

/* Straipsnio tekstas */
.entry { min-width: 0; font-size: 19px; line-height: 1.75; color: var(--ink-2); }
.entry > * { margin-top: 0; margin-bottom: 1.15em; }
.entry > p:first-of-type::first-letter { float: left; font: 400 3.4em/.82 var(--f-display); margin: .08em .1em 0 0; color: var(--signal); }
.entry h2 { font-size: clamp(25px, 2.6vw, 31px); color: var(--ink); margin: 1.9em 0 .55em; scroll-margin-top: calc(var(--head-h) + 28px); }
.entry h3 { font-size: clamp(21px, 2vw, 24px); color: var(--ink); margin: 1.6em 0 .5em; scroll-margin-top: calc(var(--head-h) + 28px); }
.entry h4 { font-size: 19px; margin: 1.4em 0 .4em; color: var(--ink); }
.entry h2::before { content: ""; display: block; width: 38px; height: 4px; border-radius: 4px; background: var(--signal); margin-bottom: 14px; }
.entry a:not(.inline-rel__link):not(.wp-block-button__link) { color: var(--ink); text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry a:not(.inline-rel__link):not(.wp-block-button__link):hover { background: var(--signal-soft); }
.entry strong { color: var(--ink); }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin: .35em 0; }
.entry ul li::marker { color: var(--signal); }
.entry ol li::marker { color: var(--signal-ink); font-weight: 800; }
.entry img:not(.thumb__img) { border-radius: 16px; height: auto; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption, .entry .wp-element-caption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry blockquote, .entry .wp-block-quote {
	position: relative; margin: 1.6em 0; padding: 20px 24px 20px 28px; border-left: 4px solid var(--signal);
	background: var(--surface); border-radius: 0 var(--r) var(--r) 0; font-family: var(--f-head); font-size: 21px; line-height: 1.5; color: var(--ink);
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote cite { display: block; margin-top: 10px; font: 600 14px var(--f-ui); color: var(--muted); font-style: normal; }
.entry .wp-block-pullquote { border: 0; padding: 0; }
.entry hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; background: var(--surface); border-radius: var(--r-sm); overflow: hidden; }
.entry th, .entry td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry th { background: var(--surface-2); color: var(--ink); font-weight: 700; }
.entry .wp-block-table { overflow-x: auto; }
.entry code { font-size: .88em; padding: .15em .4em; border-radius: 6px; background: var(--bg-2); }
.entry pre { overflow-x: auto; padding: 18px; border-radius: var(--r-sm); background: #141414; color: #F2EFE8; font-size: 15px; }
.entry pre code { background: none; padding: 0; }
.entry iframe, .entry .wp-block-embed { border-radius: 16px; max-width: 100%; }
.entry .alignwide, .entry .alignfull { margin-left: 0; margin-right: 0; max-width: 100%; }
.entry .alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.entry .alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.entry .aligncenter { margin-left: auto; margin-right: auto; }
.entry .wp-block-button__link { background: var(--signal); color: #fff; border-radius: 999px; font-weight: 700; padding: 12px 22px; text-decoration: none; }
.entry .has-text-align-center { text-align: center; }
.entry::after { content: ""; display: table; clear: both; }

/* „Taip pat skaitykite“ intarpas */
.inline-rel { margin: 1.8em 0; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.inline-rel__label { display: flex; align-items: center; gap: 6px; font: 800 11.5px/1.3 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--signal-ink); margin: 0 0 10px 4px; }
.inline-rel__label .i { width: 16px; height: 16px; }
.inline-rel__link { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.inline-rel__link .thumb { width: 92px; height: 92px; flex: none; }
.inline-rel__title { font: 750 19px/1.3 var(--f-head); color: var(--ink); }
.inline-rel__link:hover .inline-rel__title { color: var(--signal-ink); }

.post-foot { margin-top: 36px; display: grid; gap: 22px; }
.read-done { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); font-size: 15.5px; line-height: 1.45; }
.read-done strong { display: block; font-size: 16.5px; }
.read-done__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.share--bar { padding-top: 20px; border-top: 1px solid var(--line); }
.page-links { display: flex; gap: 8px; align-items: center; font-weight: 700; }

/* Kitas straipsnis */
.next-up { padding-top: clamp(24px, 4vw, 40px); }
.next-up__card {
	display: grid; grid-template-columns: minmax(200px, 420px) 1fr; gap: clamp(18px, 3vw, 36px); align-items: center;
	padding: clamp(14px, 2vw, 20px); border-radius: var(--r-lg); background: #141414; color: #F2EFE8; overflow: hidden; position: relative;
}
.next-up__card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(var(--signal), transparent 70%); opacity: .45; pointer-events: none; }
.next-up__card:hover { color: #fff; }
.next-up__media .thumb { aspect-ratio: 16 / 9; border-radius: 18px; }
.next-up__body { display: flex; flex-direction: column; gap: 10px; padding-right: 12px; position: relative; z-index: 1; }
.next-up__body .eyebrow { color: #FF8A63; }
.next-up__title { font: 800 clamp(22px, 2.8vw, 34px)/1.14 var(--f-head); letter-spacing: -.008em; }
.next-up__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #FF8A63; }
.next-up__card:hover .next-up__go .i { transform: translateX(4px); }
.next-up__go .i { transition: transform .2s ease; }
.related { padding: clamp(30px, 4vw, 52px) 0 0; }

/* ---------- 404 ir tušti rezultatai ---------- */
.nf { padding: clamp(28px, 5vw, 64px) var(--pad); }
.nf__card { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(22px, 4vw, 48px); background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.nf__code { font: 400 clamp(90px, 15vw, 190px)/.85 var(--f-display); color: transparent; -webkit-text-stroke: 3px var(--signal); letter-spacing: -.04em; }
.nf .search-form { max-width: 560px; margin: 14px 0; }
.empty { text-align: center; padding: 48px 20px; }
.empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: var(--signal-soft); color: var(--signal-ink); margin-bottom: 12px; }
.empty__icon .i { width: 30px; height: 30px; }
.empty h2 { font-size: 26px; margin-bottom: 8px; }
.empty .chips { justify-content: center; margin-top: 16px; }

/* ---------- Poraštė ---------- */
.site-footer { margin-top: clamp(48px, 7vw, 90px); background: #121316; color: #CFCAC0; padding: clamp(32px, 5vw, 56px) 0 28px; font-size: 15px; }
.site-footer a { color: #F2EFE8; }
.site-footer a:hover { color: #FF8A63; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 26px; margin-bottom: 40px; border-radius: var(--r-lg); background: linear-gradient(120deg, #1E2025, #26211F); border: 1px solid #2B2C31; }
.footer-cta__text { margin: 0; font: 750 clamp(19px, 2.2vw, 24px)/1.3 var(--f-head); color: #fff; }
.footer-cta__text span { color: #FF8A63; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr 1fr; gap: 32px; }
.footer-brand .brand { color: #F2EFE8; margin-bottom: 16px; }
.footer-brand .brand__sub { color: #A9A49B; }
.footer-brand .brand__dot { fill: #F2EFE8; stroke: #121316; }
.footer-brand p { max-width: 40ch; line-height: 1.6; }
.footer-col__title { font: 800 12px/1.2 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: #8F8A81; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { display: inline-flex; align-items: center; gap: 8px; }
.footer-col .count { font-size: 12px; color: #8F8A81; }
.footer-col .i { width: 17px; height: 17px; color: #FF8A63; }
.footer-latest a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.social { display: flex; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #1F2025; }
.social a:hover { background: var(--signal); color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid #2B2C31; font-size: 13.5px; color: #8F8A81; }
.footer-bottom p { margin: 0; }

/* ---------- Į viršų ---------- */
.to-top {
	position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
	display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
	background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2);
	opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--bg); transform: translateY(-3px); }
.to-top .i { width: 22px; height: 22px; position: relative; }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.to-top__ring circle { fill: none; stroke: color-mix(in srgb, var(--bg) 18%, transparent); stroke-width: 3; }
.to-top__ring .to-top__bar { stroke: var(--signal); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14.5px; box-shadow: var(--shadow-2); animation: drop .2s ease; }

/* ---------- Prisitaikymas ---------- */
@media (max-width: 1100px) {
	.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.layout { grid-template-columns: minmax(0, 1fr) 300px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.post-layout.has-toc { grid-template-columns: 220px minmax(0, 1fr); }
}

@media (max-width: 960px) {
	:root { --head-h: 62px; }
	.lock__grid { grid-template-columns: 1fr; }
	.clock { flex-direction: row; justify-content: space-between; align-items: baseline; }
	.clock__time { font-size: 44px; }
	.layout { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rail__grid { grid-template-columns: 1fr; }
	.rail__grid > .card { grid-row: auto; }

	.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
	.nav-open .site-header { z-index: 80; }
	.menu-toggle { display: inline-grid; margin-left: -8px; }
	.primary-nav {
		position: fixed; inset: 0 auto 0 0; z-index: 70; width: min(86vw, 360px); padding: 16px;
		background: var(--surface); box-shadow: var(--shadow-2); overflow-y: auto;
		transform: translateX(-102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); visibility: hidden;
	}
	.nav-open .primary-nav { transform: none; visibility: visible; }
	.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 65; background: rgba(14, 15, 17, .5); }
	.primary-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding-left: 6px; }
	.primary-nav .menu { flex-direction: column; gap: 4px; overflow: visible; }
	.primary-nav .menu a { padding: 13px 16px; font-size: 17px; border-radius: 14px; }
	.primary-nav .sub-menu { display: block; list-style: none; margin: 0 0 6px 14px; padding: 0; }
	.primary-nav .sub-menu a { font-size: 15px; padding: 9px 14px; }

	.post-layout, .post-layout.has-toc { grid-template-columns: minmax(0, 1fr); }
	.post-aside > * { position: static; }
	.share--aside { display: none; }
	.toc { max-height: none; }
	.next-up__card { grid-template-columns: 1fr; }
	.next-up__body { padding: 0 6px 8px; }
}

@media (max-width: 640px) {
	body { font-size: 16.5px; }
	.statusbar__date { display: none; }
	.brand__name { font-size: 18px; }
	.brand__sub { font-size: 13px; }
	.brand__mark { width: 34px; height: 34px; }
	.header-tools .icon-btn { width: 40px; height: 40px; }
	.grid--3, .grid--4 { grid-template-columns: 1fr; }
	.row-card { grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding: 14px; align-items: start; }
	.row-card__media .thumb { aspect-ratio: 1; border-radius: 12px; }
	.row-card__excerpt { display: none; }
	.row-card__title { font-size: 18px; }
	.dock li { flex-basis: 92px; }
	.dock .app--lg { width: 54px; height: 54px; font-size: 19px; }
	.dock__count { display: none; }
	.entry { font-size: 18px; line-height: 1.7; }
	.entry .alignleft, .entry .alignright { float: none; max-width: 100%; margin: 0 0 1em; }
	.page-head__row { align-items: flex-start; }
	.page-head__row .app--xl { width: 58px; height: 58px; font-size: 21px; }
	.nf__card { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.search-dialog { margin-top: 12px; padding: 12px; }
	.search-form__btn { display: none; }
	.inline-rel__link .thumb { width: 72px; height: 72px; }
	.inline-rel__title { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.ticker { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
	.ticker__track { animation: none; }
	.ticker__list[aria-hidden] { display: none; }
}

@media print {
	.statusbar, .site-header, .site-footer, .post-aside, .share, .related, .next-up, .layout--after, .to-top, .progress, .inline-rel, .read-done { display: none !important; }
	body { background: #fff; color: #000; }
	.post-layout { display: block; }
}
