/*
Theme Name: Photolife
Theme URI: https://photolife.mn
Author: Mind Agency
Description: photolife.mn
Version: 1.0.0
*/

:root {
	--ink: #141414;
	--paper: #ffffff;
	--muted: #5d5c57;
	--line: #e2e1dc;
	--soft: #f4f4f1;
	--accent: #ffcc00;
	--accent-ink: #7a5f00;
	--live: #d4161c;
	--band: #121212;
	--band-line: #2c2c2c;
	--band-muted: #a7a6a0;

	--font: "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	--font-head: "Roboto Condensed", "Arial Narrow", "Roboto", Arial, sans-serif;

	--fs-xs: .75rem;
	--fs-sm: .875rem;
	--fs-base: 1rem;
	--fs-md: 1.125rem;
	--fs-lg: 1.375rem;
	--fs-xl: 1.75rem;
	--fs-2xl: 2.375rem;

	--wrap: 1280px;
	--gutter: clamp(16px, 3vw, 32px);
	--gap: 24px;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover .pl-title, a.pl-title:hover, .pl-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: 1.2; font-family: var(--font-head); }
.pl-title, .pl-colhead, .pl-sechead h2, .pl-livebar .pl-livetext, .pl-postnav a, .pl-404 b { font-family: var(--font-head); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--accent); color: var(--ink); padding: 8px 14px; font-weight: 700; }

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

/* ---------- Logo ---------- */
.pl-logo svg { height: 100%; width: auto; max-width: 100%; display: block; }
.pl-logo .pl-ink { fill: var(--ink); }
.pl-logo .pl-sub { fill: var(--muted); }
.pl-logo .pl-cut { fill: var(--paper); }
.pl-logo .pl-cut-s { stroke: var(--paper); }
.pl-logo--invert .pl-ink { fill: #fff; }
.pl-logo--invert .pl-sub { fill: var(--band-muted); }
.pl-logo--invert .pl-cut { fill: var(--band); }
.pl-logo--invert .pl-cut-s { stroke: var(--band); }
.pl-logo img { height: 100%; width: auto; }

/* ---------- Header ---------- */
.pl-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.pl-masthead { display: flex; justify-content: center; align-items: center; padding-block: 18px; }
.pl-masthead .pl-logo { height: 48px; display: block; }
.pl-iconbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px; font-weight: 600; font-size: var(--fs-sm); border-radius: 2px; }
.pl-iconbtn:hover { background: var(--soft); }
.pl-iconbtn svg { width: 22px; height: 22px; flex: none; }

.pl-info { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.pl-info + .pl-info { padding-left: 18px; border-left: 1px solid var(--line); }
.pl-info__icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--soft); color: var(--ink); }
.pl-info__icon svg { width: 22px; height: 22px; }
.pl-fx .pl-info__icon svg { width: 18px; height: 18px; }
.pl-info__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.pl-info__label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.pl-info__val { font-weight: 700; font-variant-numeric: tabular-nums; }
.pl-info__desc { font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
.pl-fx__track { position: relative; display: block; height: 1.3em; min-width: 9.5em; overflow: hidden; }
.pl-fx__item { position: absolute; left: 0; top: 0; display: flex; align-items: baseline; gap: 4px; opacity: 0; transform: translateY(100%); transition: transform .45s ease, opacity .45s ease; }
.pl-fx__item.is-active { opacity: 1; transform: none; }
.pl-fx__item.is-leaving { opacity: 0; transform: translateY(-100%); }
.pl-fx__item b { font-weight: 600; font-size: var(--fs-xs); color: var(--muted); }
.pl-fx__sym { display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: 10px; font-weight: 800; align-self: center; }

/* Primary nav */
.pl-nav { border-top: 1px solid var(--line); }
.pl-navbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.pl-navbar__tools { display: flex; align-items: center; gap: 10px; margin-left: -10px; }
.pl-navsearch { position: relative; display: flex; align-items: center; }
.pl-navsearch input { width: 132px; height: 32px; padding: 0 30px 0 12px; font: inherit; font-size: var(--fs-xs); color: var(--ink); background: var(--soft); border: 1px solid transparent; border-radius: 999px; transition: width .2s ease, border-color .15s, background .15s; -webkit-appearance: none; appearance: none; }
.pl-navsearch input::placeholder { color: var(--muted); }
.pl-navsearch input::-webkit-search-cancel-button { -webkit-appearance: none; }
.pl-navsearch input:hover { border-color: var(--line); }
.pl-navsearch input:focus { outline: none; width: 200px; background: var(--paper); border-color: var(--ink); }
.pl-navsearch button { position: absolute; right: 3px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.pl-navsearch button:hover { color: var(--ink); background: var(--accent); }
.pl-navsearch button svg { width: 14px; height: 14px; }
.pl-navbar__menu { min-width: 0; }
.pl-navbar__info { display: flex; justify-content: flex-end; align-items: center; gap: 16px; font-size: var(--fs-sm); min-width: 0; }
.pl-navbar .pl-info__icon { width: 30px; height: 30px; }
.pl-navbar .pl-info__icon svg { width: 19px; height: 19px; }
.pl-navbar .pl-fx .pl-info__icon svg { width: 16px; height: 16px; }
.pl-navbar .pl-info + .pl-info { padding-left: 16px; }
.pl-nav ul { list-style: none; margin: 0; padding: 0; }
.pl-nav .menu { display: flex; flex-wrap: wrap; justify-content: center; }
.pl-nav .menu > li { position: relative; }
.pl-nav .menu > li > a { display: flex; align-items: center; gap: 6px; height: 46px; padding: 0 18px; font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; border-bottom: 4px solid transparent; }
.pl-nav .menu > li > a:hover,
.pl-nav .menu > li.current-menu-item > a,
.pl-nav .menu > li.current-menu-ancestor > a,
.pl-nav .menu > li.current-menu-parent > a { border-bottom-color: var(--accent); }
.pl-nav .menu > li + li > a::before { content: ""; position: absolute; left: 0; top: 15px; height: 16px; width: 1px; background: var(--line); }
.pl-nav .menu-item-has-children > a::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 2px; }
.pl-nav .sub-menu {
	position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
	min-width: 520px; padding: 18px 22px; background: var(--paper);
	border: 1px solid var(--line); border-top: 4px solid var(--accent);
	box-shadow: 0 12px 28px rgba(0,0,0,.08);
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 20px;
	visibility: hidden; opacity: 0; transition: opacity .15s, visibility .15s;
}
.pl-nav .menu > li:hover > .sub-menu,
.pl-nav .menu > li:focus-within > .sub-menu { visibility: visible; opacity: 1; }
.pl-nav .sub-menu a { display: block; padding: 7px 0; font-size: var(--fs-sm); font-weight: 500; border-bottom: 1px solid var(--soft); }
.pl-nav .sub-menu a:hover { color: var(--accent-ink); }
.pl-nav .menu-live > a { color: var(--ink); }
.pl-nav .menu-live > a .pl-live-pill, .pl-nav .menu > li.menu-live > a { position: relative; }
.pl-nav .menu > li.menu-live > a { gap: 0; }
.pl-nav .menu > li.menu-live > a > span.pl-live-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: #fff; padding: 5px 12px 5px 10px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .02em; line-height: 1; }
.pl-nav .menu > li.menu-live > a:hover > span.pl-live-pill { background: #000; }
.pl-nav .menu > li.menu-live > a:hover { border-bottom-color: transparent; }
.pl-nav .menu-live > a::after { content: none; }
.pl-livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; box-shadow: 0 0 0 0 rgba(255,204,0,.7); animation: pl-pulse-y 1.8s infinite; }
@keyframes pl-pulse { 0% { box-shadow: 0 0 0 0 rgba(212,22,28,.5); } 70% { box-shadow: 0 0 0 8px rgba(212,22,28,0); } 100% { box-shadow: 0 0 0 0 rgba(212,22,28,0); } }

/* Sub-nav strip (category pages) */
.pl-subnav { border-top: 1px solid var(--line); background: var(--soft); }
.pl-subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pl-subnav ul::-webkit-scrollbar { display: none; }
.pl-subnav a { display: block; padding: 10px 12px; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; color: var(--muted); }
.pl-subnav a:hover, .pl-subnav .is-current a { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }

/* Search panel */
.pl-searchform { display: flex; width: 100%; max-width: 720px; margin-inline: auto; }
.pl-searchform input[type=search] { width: 100%; }
.pl-searchform { position: relative; align-items: center; }
.pl-searchform input { flex: 1; min-width: 0; height: 40px; padding: 0 44px 0 16px; font: inherit; font-size: var(--fs-sm); border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 999px; transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none; }
.pl-searchform input::placeholder { color: var(--muted); }
.pl-searchform input:focus { outline: none; border-color: var(--ink); background: var(--paper); }
.pl-searchform input::-webkit-search-cancel-button { -webkit-appearance: none; }
.pl-searchform button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.pl-searchform button:hover { background: var(--accent); }
.pl-searchform button svg { width: 17px; height: 17px; }

/* Drawer (hamburger menu) */
.pl-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.pl-drawer.is-open { visibility: visible; }
.pl-drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.pl-drawer.is-open .pl-drawer__scrim { opacity: 1; }
.pl-drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(380px, 88vw);
	background: var(--paper); overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease;
	padding: calc(16px + env(safe-area-inset-top, 0px)) 24px calc(24px + env(safe-area-inset-bottom, 0px));
	display: flex; flex-direction: column; gap: 20px;
}
.pl-drawer.is-open .pl-drawer__panel { transform: none; }
.pl-drawer__top { display: flex; justify-content: space-between; align-items: center; }
.pl-drawer__top .pl-logo { height: 30px; }
.pl-drawer ul { list-style: none; margin: 0; padding: 0; }
.pl-drawer .menu > li { border-bottom: 1px solid var(--line); }
.pl-drawer .menu > li > a { display: block; padding: 14px 0; font-size: var(--fs-md); font-weight: 700; }
.pl-drawer .sub-menu { padding: 0 0 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.pl-drawer .sub-menu a { display: block; padding: 6px 0; color: var(--muted); font-size: var(--fs-sm); }
.pl-drawer .sub-menu a:hover { color: var(--ink); }
.pl-drawer__info { display: grid; gap: 14px; padding: 14px; background: var(--soft); font-size: var(--fs-sm); }
.pl-drawer__info .pl-info + .pl-info { padding-left: 0; border-left: 0; }
.pl-drawer__info .pl-info { white-space: normal; flex-wrap: wrap; }
.pl-drawer .pl-searchform { margin: 0; max-width: none; }
body.pl-locked { overflow: hidden; }

/* ---------- Shared bits ---------- */
.pl-main { padding-block: 28px 56px; }
.pl-section { padding-block: 28px; }
.pl-section + .pl-section { border-top: 1px solid var(--line); }
.pl-sechead { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.pl-sechead h2 { font-size: var(--fs-lg); font-weight: 800; display: flex; align-items: center; gap: 10px; }
.pl-sechead h2::before { content: ""; width: 6px; height: 1.05em; background: var(--accent); }
.pl-sechead a.pl-more { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.pl-sechead a.pl-more::after { content: " →"; }
.pl-sechead a.pl-more:hover { text-decoration: underline; }

.pl-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pl-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); max-width: 100%; }
.pl-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
a.pl-media:hover img { transform: scale(1.03); }
.pl-media--empty { display: grid; place-items: center; }
.pl-media--empty svg { width: 22%; max-width: 64px; opacity: .35; }
.pl-title { font-weight: 700; font-size: var(--fs-md); line-height: 1.25; }
.pl-excerpt { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.pl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--fs-xs); color: var(--muted); }
.pl-meta .pl-cat { color: var(--ink); font-weight: 600; padding-left: 10px; border-left: 1px solid var(--line); }
.pl-meta .pl-cat:first-child { padding-left: 0; border-left: 0; }
.pl-meta .pl-cat:hover { text-decoration: underline; }
.pl-meta time { font-variant-numeric: tabular-nums; }

.pl-badge { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; font-size: var(--fs-xs); font-weight: 700; padding: 5px 9px; font-variant-numeric: tabular-nums; }
.pl-badge svg { width: 14px; height: 14px; fill: var(--accent); }
.pl-badge--live { background: var(--ink); color: #fff; }
.pl-badge--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pl-play { position: absolute; left: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(17,17,17,.62); border: 1.5px solid rgba(255,255,255,.9); display: grid; place-items: center; backdrop-filter: blur(2px); transition: background .15s, border-color .15s; }
.pl-play svg { width: 11px; height: 11px; fill: #fff; margin-left: 2px; }
a.pl-media:hover .pl-play { background: var(--accent); border-color: var(--accent); }
a.pl-media:hover .pl-play svg { fill: var(--ink); }

/* ---------- Live banner ---------- */
.pl-livebar { background: var(--accent); color: var(--ink); }
.pl-livebar a { display: flex; align-items: center; gap: 12px; padding-block: 10px; font-weight: 700; }
.pl-livebar a:hover .pl-livetext { text-decoration: underline; text-underline-offset: 3px; }
.pl-livebar .pl-livetag { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--ink); color: var(--accent); padding: 4px 9px; display: inline-flex; align-items: center; gap: 7px; flex: none; }
.pl-livebar .pl-livetag .pl-livedot { width: 7px; height: 7px; background: var(--accent); animation-name: pl-pulse-y; }
@keyframes pl-pulse-y { 0% { box-shadow: 0 0 0 0 rgba(255,204,0,.7); } 70% { box-shadow: 0 0 0 7px rgba(255,204,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,204,0,0); } }
.pl-livebar span.pl-livetext { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Home: top 3 columns ---------- */
.pl-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 0; }
.pl-top > * { min-width: 0; padding-inline: var(--gap); }
.pl-top > * + * { border-left: 1px solid var(--line); }
.pl-top > :first-child { padding-left: 0; }
.pl-top > :last-child { padding-right: 0; }
.pl-colhead { font-size: var(--fs-sm); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding-bottom: 10px; margin-bottom: 16px; border-bottom: 2px solid var(--ink); display: flex; justify-content: space-between; align-items: baseline; }
.pl-colhead a { font-size: var(--fs-xs); letter-spacing: .04em; color: var(--muted); }
.pl-colhead a:hover { color: var(--ink); }

.pl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pl-list > li { padding-block: 14px; border-bottom: 1px solid var(--line); }
.pl-list > li:first-child { padding-top: 0; }
.pl-list > li:last-child { border-bottom: 0; }
.pl-list .pl-title { font-size: var(--fs-base); }
.pl-list .pl-card { gap: 6px; }

.pl-feature .pl-title { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.01em; }
.pl-feature .pl-excerpt { font-size: var(--fs-base); }
.pl-feature__subs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.pl-feature__subs .pl-title { font-size: var(--fs-base); }

.pl-vlist { display: flex; flex-direction: column; gap: 18px; }
.pl-vlist .pl-title { font-size: var(--fs-base); }

/* ---------- Ad slot ---------- */
.pl-ad { padding-block: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.pl-ad--home { margin-top: 32px; }
.pl-section--cats { padding-top: 40px; }
.pl-videoband + .pl-wrap .pl-section { border-top: 0; }
.pl-ad__label { display: block; text-align: center; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pl-ad__slot { display: grid; place-items: center; min-height: 90px; }
.pl-ad__slot img { margin-inline: auto; max-height: 250px; width: auto; }
.pl-ad__placeholder { width: 100%; max-width: 970px; min-height: 120px; border: 1px dashed #c9c7bf; display: grid; place-items: center; color: var(--muted); font-size: var(--fs-sm); text-align: center; padding: 16px; }

/* ---------- Photo news ---------- */
.pl-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.pl-photos > .pl-card:first-child { grid-column: span 2; grid-row: span 2; }
.pl-photos > .pl-card:first-child .pl-media { aspect-ratio: 4 / 3; }
.pl-photos > .pl-card:first-child .pl-title { font-size: var(--fs-xl); }
.pl-photos .pl-media { aspect-ratio: 4 / 3; }

/* ---------- Video band ---------- */
.pl-videoband { background: var(--band); color: #fff; padding-block: 36px; }
.pl-videoband .pl-sechead h2 { color: #fff; }
.pl-videoband .pl-meta { color: var(--band-muted); }
.pl-videoband .pl-meta .pl-cat { color: #fff; border-color: var(--band-line); }
.pl-videoband .pl-excerpt { color: var(--band-muted); }
.pl-videoband .pl-media { background: #1f1f1f; }
.pl-videoband .pl-media--empty svg { opacity: .5; }
.pl-videoband__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0; }
.pl-videoband__grid > * { min-width: 0; }
.pl-videoband__main { padding-right: var(--gap); border-right: 1px solid var(--band-line); display: flex; flex-direction: column; gap: 14px; }
.pl-videoband__main .pl-title { font-size: var(--fs-xl); font-weight: 800; }
.pl-embed { position: relative; aspect-ratio: 16 / 9; background: #000; max-width: 100%; }
.pl-embed iframe, .pl-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pl-videoband__thumbs { padding-left: var(--gap); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px var(--gap); align-content: start; }
.pl-videoband__thumbs .pl-title { font-size: var(--fs-sm); }
.pl-videoband__thumbs .pl-play { width: 26px; height: 26px; left: 7px; bottom: 7px; border-width: 1px; }
.pl-videoband__thumbs .pl-play svg { width: 9px; height: 9px; }

/* ---------- Category blocks ---------- */
.pl-catblocks { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; }
.pl-catblocks > * { min-width: 0; padding-inline: var(--gap); }
.pl-catblocks > * + * { border-left: 1px solid var(--line); }
.pl-catblocks > :first-child { padding-left: 0; }
.pl-catblocks > :last-child { padding-right: 0; }

/* ---------- Archive ---------- */
.pl-archhead { padding-block: 28px 20px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.pl-archhead h1 { font-size: var(--fs-2xl); font-weight: 800; display: flex; align-items: center; gap: 12px; }
.pl-archhead h1::before { content: ""; width: 8px; height: 1em; background: var(--accent); }
.pl-archhead p { color: var(--muted); margin: 8px 0 0; max-width: 65ch; }
.pl-archlead { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--gap); padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); align-items: center; }
.pl-archlead .pl-title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.125rem); font-weight: 800; }
.pl-archlead .pl-card { gap: 12px; }
.pl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px var(--gap); }
.pl-empty { padding: 48px 0; color: var(--muted); }

.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 40px; }
.page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); font-weight: 600; font-variant-numeric: tabular-nums; }
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
a.page-numbers:hover { border-color: var(--ink); }

/* ---------- Single ---------- */
.pl-single { padding-top: 36px; }
.pl-single > article { max-width: 976px; margin-inline: auto; }
.pl-article__head { max-width: 720px; margin: 0 auto 26px; display: flex; flex-direction: column; gap: 14px; }
.pl-single .pl-figure { max-width: 976px; margin: 0 auto 30px; }
.pl-single .pl-content, .pl-single .pl-tags, .pl-single .pl-postnav, .pl-single .comments-area { max-width: 720px; margin-inline: auto; }
.pl-article__cat { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-ink); }
.pl-article__cat a:hover { text-decoration: underline; }
.pl-single h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.pl-article__byline { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--muted); font-size: var(--fs-sm); padding-block: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pl-article__byline strong { color: var(--ink); }
.pl-share { display: flex; gap: 6px; margin-left: auto; }
.pl-share a, .pl-share button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.pl-share a:hover, .pl-share button:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pl-share svg { width: 15px; height: 15px; fill: currentColor; }
.pl-figure { margin: 0 0 26px; }
.pl-figure figcaption { font-size: var(--fs-xs); color: var(--muted); padding-top: 8px; }
.pl-content { max-width: 680px; font-size: var(--fs-md); line-height: 1.7; }
.pl-content > * { margin-block: 0 1.2em; }
.pl-content h2 { font-size: var(--fs-xl); font-weight: 800; margin-top: 1.6em; }
.pl-content h3 { font-size: var(--fs-lg); font-weight: 700; margin-top: 1.4em; }
.pl-content a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pl-content blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-size: var(--fs-lg); font-weight: 600; line-height: 1.45; }
.pl-content figure { margin-inline: 0; }
.pl-content figcaption { font-size: var(--fs-xs); color: var(--muted); }
.pl-content img { height: auto; }
.pl-content .wp-block-embed__wrapper { position: relative; }
.pl-content .alignwide, .pl-content .alignfull { max-width: none; }
.pl-content .wp-block-gallery { gap: 8px; }
.pl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; max-width: 680px; }
.pl-tags a { font-size: var(--fs-sm); padding: 6px 12px; background: var(--soft); font-weight: 500; }
.pl-tags a:hover { background: var(--accent); }
.pl-mostread-band { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--ink); }
.pl-mostread { list-style: none; margin: 0; padding: 0; counter-reset: mr; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.pl-mostread li { counter-increment: mr; display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; }
.pl-mostread li::before { content: counter(mr); position: absolute; z-index: 1; top: 0; left: 0; width: 34px; height: 34px; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-weight: 800; font-size: var(--fs-md); font-variant-numeric: tabular-nums; }
.pl-mostread .pl-title { font-size: var(--fs-sm); }
.pl-below-widgets { margin-top: 40px; }
.pl-related { margin-top: 56px; padding-top: 24px; border-top: 2px solid var(--ink); }
.pl-related .pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 36px; max-width: 680px; font-size: var(--fs-sm); }
.pl-postnav a { display: block; padding: 14px; border: 1px solid var(--line); font-weight: 600; }
.pl-postnav a:hover { border-color: var(--ink); }
.pl-postnav span { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.pl-postnav .next { text-align: right; }

.pl-page { max-width: 760px; margin-inline: auto; padding-top: 32px; }
.pl-page h1 { font-size: var(--fs-2xl); font-weight: 800; margin-bottom: 24px; }

/* Comments */
.comments-area { max-width: 680px; margin-top: 48px; }
.comments-area h2 { font-size: var(--fs-lg); margin-bottom: 16px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--line); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); font: inherit; }
.comment-form .submit { background: var(--ink); color: var(--paper); border: 0; padding: 12px 22px; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Image slider (articles with several photos) ---------- */
.pl-slider { margin-block: 8px 30px; background: var(--band); color: #fff; outline: none; }
.pl-slider:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pl-content .pl-slider { margin-block: 1.6em; }
.pl-single .pl-slider--hero { max-width: 976px; margin: 0 auto 30px; }
.pl-slider__stage { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; touch-action: pan-y; user-select: none; cursor: grab; }
.pl-slider__stage:active { cursor: grabbing; }
.pl-slider__track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.pl-slide { flex: 0 0 100%; height: 100%; margin: 0; display: grid; place-items: center; background: #0b0b0b; }
.pl-slide img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.pl-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: background .15s, transform .15s; }
.pl-slider__nav:hover { background: var(--accent); }
.pl-slider__nav svg { width: 20px; height: 20px; }
.pl-slider__nav--prev { left: 14px; }
.pl-slider__nav--next { right: 14px; }
.pl-slider__count { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,.65); padding: 4px 10px; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.pl-slider__count b { color: var(--accent); }
.pl-slider__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.pl-slider__progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.pl-slider.is-paused .pl-slider__progress span { width: 0 !important; }
.pl-slider__bar { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px 4px; min-height: 44px; }
.pl-slider__play { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--band-line); display: grid; place-items: center; color: #fff; }
.pl-slider__play:hover { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.pl-slider__play svg { width: 14px; height: 14px; }
.pl-slider__caption { margin: 0; font-size: var(--fs-sm); line-height: 1.45; color: #e9e8e3; padding-top: 5px; min-width: 0; }
.pl-slider__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 14px; scrollbar-width: thin; scrollbar-color: var(--band-line) transparent; }
.pl-slider__thumb { flex: 0 0 auto; width: 92px; aspect-ratio: 3 / 2; opacity: .5; outline-offset: -2px; transition: opacity .15s; }
.pl-slider__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-slider__thumb:hover { opacity: .85; }
.pl-slider__thumb.is-active { opacity: 1; outline: 3px solid var(--accent); }
@media (max-width: 520px) {
	.pl-single .pl-slider--hero { margin-inline: calc(-1 * var(--gutter)); }
	.pl-slider__nav { width: 38px; height: 38px; }
	.pl-slider__nav--prev { left: 8px; }
	.pl-slider__nav--next { right: 8px; }
	.pl-slider__thumb { width: 70px; }
}

/* ---------- 404 ---------- */
.pl-404 { text-align: center; padding-block: 80px; max-width: 560px; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.pl-404 b { font-size: 6rem; font-weight: 800; line-height: 1; }
.pl-404 b span { color: var(--accent); }

/* ---------- Footer ---------- */
.pl-footer { background: var(--band); color: #fff; padding-block: 44px 28px; }
.pl-footer .pl-logo { height: 84px; display: inline-block; max-width: 100%; }
.pl-footer__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--band-line); }
.pl-footer__cats ul { list-style: none; margin: 0; padding: 0; columns: 3; column-gap: 24px; }
.pl-footer__cats a { display: inline-block; padding: 5px 0; color: var(--band-muted); font-size: var(--fs-sm); }
.pl-footer__cats a:hover { color: #fff; text-decoration: underline; }
.pl-footer__contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--band-line); }
.pl-footer__contact dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; margin-bottom: 6px; }
.pl-footer__contact dd { margin: 0; font-size: var(--fs-sm); color: #e9e8e3; overflow-wrap: anywhere; }
.pl-footer__contact dd a:hover { text-decoration: underline; }
.pl-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 22px; font-size: var(--fs-xs); color: var(--band-muted); }
.pl-social { display: flex; gap: 8px; }
.pl-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--band-line); display: grid; place-items: center; }
.pl-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.pl-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: var(--fs-xs); color: var(--muted); }
.sticky, .bypostauthor {}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.pl-navbar__info .pl-info__desc, .pl-navbar__info .pl-info__label { display: none; }
	.pl-navbar__tools .pl-iconbtn span { display: none; }
	.pl-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
	.pl-top > .pl-top__video { grid-column: 1 / -1; border-left: 0; padding: 24px 0 0; margin-top: 24px; border-top: 1px solid var(--line); }
	.pl-top__video .pl-vlist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
	.pl-catblocks { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
	.pl-catblocks > :nth-child(3) { border-left: 0; padding-left: 0; }
	.pl-catblocks > :nth-child(2) { padding-right: 0; }
	.pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pl-mostread { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 860px) {
	.pl-masthead { padding-block: 14px; }
	.pl-masthead .pl-logo { height: 34px; }
	.pl-navbar { grid-template-columns: auto minmax(0, 1fr); gap: 4px; }
	.pl-navbar__info { display: none; }
	.pl-navsearch { display: none; }
	.pl-navbar__menu { overflow-x: auto; scrollbar-width: none; }
	.pl-navbar__menu::-webkit-scrollbar { display: none; }
	.pl-navbar__menu .menu { flex-wrap: nowrap; width: max-content; margin-inline: auto; }
	.pl-iconbtn { padding: 0 8px; }
	.pl-nav .menu > li > a { padding: 0 12px; height: 42px; font-size: var(--fs-sm); }
	.pl-nav .sub-menu { display: none; }
	.pl-nav .menu-item-has-children > a::after { content: none; }
	.pl-top { grid-template-columns: 1fr; }
	.pl-top > * { padding-inline: 0 !important; border-left: 0 !important; }
	.pl-top > .pl-top__feature { order: -1; padding-bottom: 24px !important; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
	.pl-top > .pl-top__video { margin-top: 24px; }
	.pl-feature .pl-title { font-size: var(--fs-xl); }
	.pl-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pl-videoband__grid { grid-template-columns: 1fr; }
	.pl-videoband__main { padding-right: 0; border-right: 0; padding-bottom: 24px; border-bottom: 1px solid var(--band-line); }
	.pl-videoband__thumbs { padding-left: 0; padding-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pl-archlead { grid-template-columns: 1fr; }
	.pl-grid, .pl-related .pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pl-footer__top { grid-template-columns: 1fr; gap: 28px; }
	.pl-footer__cats ul { columns: 2; }
	.pl-footer__contact { grid-template-columns: 1fr; gap: 18px; }
	.pl-share { margin-left: 0; }
}
@media (max-width: 520px) {
	.pl-top__video .pl-vlist { grid-template-columns: 1fr; gap: 14px; }
	.pl-top__video .pl-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 12px; align-items: start; }
	.pl-top__video .pl-media { grid-row: span 2; }
	.pl-top__video .pl-play { width: 24px; height: 24px; left: 6px; bottom: 6px; border-width: 1px; }
	.pl-top__video .pl-play svg { width: 8px; height: 8px; }
	.pl-footer .pl-logo { height: 72px; }
	.pl-feature__subs { grid-template-columns: 1fr; }
	.pl-photos { grid-template-columns: 1fr 1fr; gap: 16px; }
	.pl-photos > .pl-card:first-child { grid-column: 1 / -1; grid-row: auto; }
	.pl-photos > .pl-card:first-child .pl-title { font-size: var(--fs-lg); }
	.pl-catblocks { grid-template-columns: 1fr; }
	.pl-catblocks > * { padding-inline: 0 !important; border-left: 0 !important; }
	.pl-grid, .pl-related .pl-grid { grid-template-columns: 1fr; }
	.pl-mostread { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
	.pl-postnav { grid-template-columns: 1fr; }
	.pl-nav .menu > li + li > a::before { content: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}
