/* ==========================================================================
   PM News – main stylesheet
   ========================================================================== */

@font-face {
	font-family: "Inter";
	src: url("../fonts/InterVariable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--pm-primary: #1a1fe0;
	--pm-button: #1f3a8a;
	--pm-text: #0a0a0a;
	--pm-body: #1f2937;
	--pm-muted: #6b7280;
	--pm-content: #6b7280;
	--pm-line: #e5e7eb;
	--pm-bg: #ffffff;
	--pm-radius: 12px;
	--pm-wide: 1248px;
	--pm-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--pm-bg);
	color: var(--pm-text);
	font-family: var(--pm-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--pm-primary); }
a:focus-visible,
button:focus-visible,
input:focus-visible { outline: 2px solid var(--pm-primary); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--pm-text); line-height: 1.25; }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.screen-reader-text:focus,
.skip-link:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: var(--pm-text);
	display: block;
	height: auto;
	left: 8px;
	padding: 12px 20px;
	top: 8px;
	width: auto;
	z-index: 100000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.pm-container {
	width: 100%;
	max-width: var(--pm-wide);
	margin: 0 auto;
	padding: 0 8px;
}

/* Header ----------------------------------------------------------------- */
.pm-header { background: #fff; position: relative; z-index: 50; }
.pm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 18px 26px 18px 13px;
	min-height: 72px;
}

.pm-logo {
	display: inline-flex;
	align-items: stretch;
	height: 34px;
	border: 2px solid #1c55e0;
	background: #1c55e0;
	color: #fff;
}
.pm-logo:hover { color: #fff; }
.pm-logo__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	background: #fff;
	color: #1c55e0;
}
.pm-logo__icon svg { width: 22px; height: 22px; }
.pm-logo__text {
	display: inline-flex;
	align-items: center;
	padding: 0 28px;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: -.01em;
}
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { max-height: 52px; width: auto; }

.pm-nav .pm-menu,
.pm-nav ul { list-style: none; margin: 0; padding: 0; }
.pm-nav .pm-menu { display: flex; align-items: center; gap: 28px; }
.pm-nav .pm-menu > li { position: relative; }
.pm-nav .pm-menu a {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: var(--pm-text);
	padding: 6px 0;
}
.pm-nav .pm-menu a:hover { color: var(--pm-primary); }

.pm-nav .sub-menu {
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--pm-line);
	border-radius: 8px;
	padding: 8px 0;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: .15s ease;
}
.pm-nav li:hover > .sub-menu,
.pm-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.pm-nav .sub-menu a { padding: 8px 16px; font-size: 15px; }

.pm-nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 10px;
}
.pm-nav-toggle__bar,
.pm-nav-toggle__bar::before,
.pm-nav-toggle__bar::after {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--pm-text);
	border-radius: 2px;
	position: relative;
	transition: .2s ease;
}
.pm-nav-toggle__bar::before,
.pm-nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.pm-nav-toggle__bar::before { top: -7px; }
.pm-nav-toggle__bar::after { top: 7px; }
.pm-nav-toggle[aria-expanded="true"] .pm-nav-toggle__bar { background: transparent; }
.pm-nav-toggle[aria-expanded="true"] .pm-nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.pm-nav-toggle[aria-expanded="true"] .pm-nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

/* Shared bits ------------------------------------------------------------ */
.pm-badge {
	display: inline-block;
	background: var(--pm-primary);
	color: #fff;
	font-size: 13px;
	line-height: 1;
	padding: 7px 5px;
	font-weight: 400;
}

.pm-cat {
	display: inline-block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
	color: var(--pm-text);
	margin-bottom: 8px;
}

.pm-date { display: block; color: var(--pm-muted); font-size: 14px; }

.pm-thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 180px;
	background: linear-gradient(135deg, #dfe4f3, #b9c3e6);
}

.pm-load-more-wrap { text-align: center; padding: 48px 0 60px; }
.pm-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 308px;
	min-height: 62px;
	padding: 12px 32px;
	background: var(--pm-button);
	color: #fff;
	font-size: 20px;
	font-weight: 500;
	border-radius: 6px;
	transition: filter .15s ease, transform .15s ease;
}
.pm-load-more:hover { color: #fff; filter: brightness(1.12); }
.pm-load-more.is-loading { opacity: .7; pointer-events: none; }

/* Home: hero grid -------------------------------------------------------- */
.pm-home { padding-top: 48px; }

.pm-hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 248px 248px;
	gap: 8px;
}
.pm-hero__item { position: relative; overflow: hidden; background: #111; }
.pm-hero__item--main { grid-row: 1 / span 2; }
.pm-hero__link { display: block; position: absolute; inset: 0; color: #fff; }
.pm-hero__link:hover { color: #fff; }
.pm-hero__img,
.pm-hero__item .pm-thumb-placeholder {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.pm-hero__link:hover .pm-hero__img { transform: scale(1.03); }
.pm-hero__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .55) 100%);
}
.pm-hero__item:not(.pm-hero__item--main) .pm-hero__shade { background: rgba(0, 0, 0, .35); }
.pm-hero__badge { position: absolute; top: 16px; left: 16px; z-index: 2; }
.pm-hero__body {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 30px;
	z-index: 2;
}
.pm-hero__title {
	color: #fff;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.3;
	text-shadow: 0 2px 4px rgba(0, 0, 0, .55);
	margin-bottom: 8px;
}
.pm-hero__item--main .pm-hero__title { font-size: 30px; line-height: 1.2; }
.pm-hero__excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .92);
	text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Home: list ------------------------------------------------------------- */
.pm-home__divider {
	border-top: 1px solid var(--pm-line);
	margin-top: 36px;
	padding-top: 0;
	min-height: 1px;
}

.pm-home__list { max-width: 1027px; }

.pm-row {
	display: grid;
	grid-template-columns: 342px minmax(0, 1fr);
	gap: 24px;
	padding: 44px 0 32px;
	border-bottom: 2px solid #f0f1f3;
}
.pm-list .pm-row:first-child { padding-top: 43px; }
.pm-row__media {
	display: block;
	aspect-ratio: 342 / 208;
	border-radius: var(--pm-radius);
	overflow: hidden;
	background: #f3f4f6;
}
.pm-row__media img,
.pm-row__media .pm-thumb-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.pm-row__media:hover img { transform: scale(1.04); }
.pm-row__body { padding-top: 2px; max-width: 640px; }
.pm-row__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: -.005em;
	margin: 0 0 4px;
}
.pm-row__title a:hover { color: var(--pm-primary); }
.pm-row__excerpt {
	margin: 10px 0 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--pm-body);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.pm-home .pm-load-more-wrap { max-width: 1027px; }

/* Archive / category grid ------------------------------------------------ */
.pm-archive { max-width: 1000px; padding-top: 18px; }
.pm-archive__header { text-align: center; margin-bottom: 60px; }
.pm-archive__title { font-size: 40px; font-weight: 500; letter-spacing: -.01em; }
.pm-archive__desc { color: var(--pm-muted); margin-top: 10px; }

.pm-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 16px;
	align-items: start;
}
.pm-grid__media {
	display: block;
	box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
	background: #f3f4f6;
	line-height: 0;
}
.pm-grid__media img { width: 100%; height: auto; display: block; }
.pm-grid__media .pm-thumb-placeholder { aspect-ratio: 3 / 2; min-height: 0; }
.pm-grid__title {
	font-size: 30px;
	font-weight: 400;
	line-height: 1.38;
	margin: 22px 0 18px;
	letter-spacing: -.005em;
}
.pm-grid__excerpt { font-size: 17px; line-height: 1.73; color: var(--pm-text); }
.pm-grid__excerpt p { margin: 0; }

.pm-archive .pm-load-more {
	background: var(--pm-primary);
	min-width: 148px;
	min-height: 66px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
}

.pm-none { text-align: center; padding: 40px 0 80px; }
.pm-none__title { font-size: 28px; margin-bottom: 12px; }

.pm-search { display: flex; gap: 8px; max-width: 480px; margin: 16px auto; }
.pm-search__field {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font: inherit;
}
.pm-search__submit {
	padding: 12px 20px;
	border: 0;
	border-radius: 8px;
	background: var(--pm-primary);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.pm-404 { text-align: center; padding-bottom: 80px; }
.pm-404 .pm-load-more { background: var(--pm-primary); margin-top: 24px; }

/* Single post ------------------------------------------------------------ */
.pm-single { max-width: 928px; margin: 0 auto; padding: 36px 16px 0; }
.pm-single__header { text-align: center; margin-bottom: 36px; }
.pm-single__title {
	font-size: 40px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -.035em;
	text-transform: capitalize;
}
.pm-page .pm-single__title { text-transform: none; }

.pm-ad { text-align: center; margin: 0 auto 60px; }
.pm-ad__label {
	display: block;
	font-size: 10px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--pm-text);
	margin-bottom: 18px;
}
.pm-ad__slot { display: flex; justify-content: center; min-height: 90px; }
.pm-ad__slot .widget { max-width: 100%; }
.pm-ad--bottom { margin: 40px auto 0; }

.pm-single__content {
	color: var(--pm-content);
	font-size: 16px;
	line-height: 1.5;
	padding-top: 60px;
}
.pm-page .pm-single__content { padding-top: 0; }
.pm-single__content > * { margin-top: 0; margin-bottom: 16px; }
.pm-single__content h2,
.pm-single__content h3,
.pm-single__content h4 { color: var(--pm-text); margin: 32px 0 12px; line-height: 1.3; }
.pm-single__content h2 { font-size: 28px; }
.pm-single__content h3 { font-size: 22px; }
.pm-single__content a { color: var(--pm-primary); text-decoration: underline; text-underline-offset: 2px; }
.pm-single__content img { border-radius: var(--pm-radius); }
.pm-single__content ul,
.pm-single__content ol { padding-left: 1.4em; }
.pm-single__content blockquote {
	margin: 24px 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--pm-primary);
	color: var(--pm-body);
	font-style: italic;
}
.pm-single__content table { width: 100%; border-collapse: collapse; }
.pm-single__content th,
.pm-single__content td { border: 1px solid var(--pm-line); padding: 8px 12px; text-align: left; }
.pm-single__content pre {
	background: #f3f4f6;
	padding: 16px;
	border-radius: 8px;
	overflow-x: auto;
}
.pm-single__image { margin: 0 0 20px; }
.pm-single__image img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--pm-radius);
}
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.alignleft { float: left; margin: 0 20px 12px 0; }
.alignright { float: right; margin: 0 0 12px 20px; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.wp-caption-text,
figcaption { font-size: 14px; color: var(--pm-muted); text-align: center; margin-top: 6px; }

.pm-page-links { margin: 24px 0; font-weight: 600; }

.pm-single__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 16px;
	padding: 30px 0 100px;
	border-bottom: 1px solid var(--pm-line);
	font-size: 18px;
}
.pm-single__tags-label { font-weight: 700; color: var(--pm-text); }
.pm-single__tag-list { display: inline-flex; flex-wrap: wrap; gap: 8px 14px; }
.pm-single__tag-list a { color: var(--pm-text); }
.pm-single__tag-list a:hover { color: var(--pm-primary); }

/* Featured Topics -------------------------------------------------------- */
.pm-featured { max-width: 904px; margin: 0 auto; padding: 136px 16px 120px; }
.pm-featured__title {
	font-size: 36px;
	font-weight: 700;
	letter-spacing: -.035em;
	margin: 0 0 30px;
}
.pm-featured__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 144px 16px;
}
.pm-card {
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
	border-bottom: 4px solid var(--pm-primary);
	display: flex;
	flex-direction: column;
}
.pm-card__media { display: block; aspect-ratio: 428 / 256; overflow: hidden; background: #f3f4f6; }
.pm-card__media img,
.pm-card__media .pm-thumb-placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-card__body { padding: 24px 24px 40px; }
.pm-card__title { font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 8px; }
.pm-card__excerpt {
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: var(--pm-body);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Comments --------------------------------------------------------------- */
.pm-comments { padding: 48px 0 0; }
.pm-comments__title { font-size: 24px; margin-bottom: 16px; }
.pm-comments__list { list-style: none; padding: 0; }
.pm-comments__list .children { list-style: none; padding-left: 24px; }
.pm-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--pm-line); }
.pm-comments .avatar { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }
.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 #d1d5db;
	border-radius: 8px;
	font: inherit;
}
.comment-form .submit {
	background: var(--pm-primary);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 12px 24px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* Footer ----------------------------------------------------------------- */
.pm-footer { border-top: 1px solid var(--pm-line); margin-top: 0; }
.pm-footer__notes { max-width: 1248px; margin: 0 auto; padding: 72px 20px 60px; }
.pm-note { margin-bottom: 40px; }
.pm-note__title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .01em;
	margin-bottom: 10px;
}
.pm-note__text { font-size: 12px; line-height: 1.35; color: var(--pm-text); }
.pm-note__text p { margin: 0 0 6px; }

.pm-footer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	max-width: 1248px;
	margin: 0 auto;
	padding: 60px 40px 100px 0;
}
.pm-footer__brand {
	font-size: 42px;
	font-weight: 700;
	letter-spacing: -.045em;
	line-height: 1;
	text-transform: lowercase;
}
.pm-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pm-footer-menu a { font-size: 17px; font-weight: 600; }

.pm-footer__bottom {
	max-width: 998px;
	margin: 0 auto;
	border-top: 1px solid var(--pm-line);
	padding: 64px 16px 40px;
	text-align: center;
	font-size: 12.5px;
	line-height: 1.3;
	color: #222;
}
.pm-footer__bottom p { margin: 0; }
.pm-footer__heart { color: var(--pm-muted); }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 900px) {
	.pm-hero { grid-template-columns: 1fr; grid-template-rows: 380px 240px 240px; }
	.pm-hero__item--main { grid-row: auto; }
	.pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pm-grid__title { font-size: 24px; }
	.pm-single__title { font-size: 34px; line-height: 1.15; }
}

@media (max-width: 782px) {
	.pm-header__inner { padding: 14px 16px; }
	.pm-nav-toggle { display: inline-block; }
	.pm-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		border-top: 1px solid var(--pm-line);
		box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
		display: none;
	}
	.pm-nav.is-open { display: block; }
	.pm-nav .pm-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
	.pm-nav .pm-menu a { padding: 12px 0; border-bottom: 1px solid var(--pm-line); }
	.pm-nav .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 16px;
	}
}

@media (max-width: 700px) {
	.pm-container { padding: 0 16px; }
	.pm-home { padding-top: 16px; }
	.pm-hero { grid-template-rows: 340px 220px 220px; }
	.pm-hero__title,
	.pm-hero__item--main .pm-hero__title { font-size: 21px; }
	.pm-hero__body { left: 16px; right: 16px; bottom: 18px; }
	.pm-row { grid-template-columns: 1fr; gap: 16px; padding: 28px 0 24px; }
	.pm-row__title { font-size: 18px; }
	.pm-grid { grid-template-columns: 1fr; }
	.pm-archive__header { margin-bottom: 32px; }
	.pm-archive__title { font-size: 32px; }
	.pm-load-more { min-width: 0; width: 100%; max-width: 308px; }
	.pm-single { padding-top: 20px; }
	.pm-single__title { font-size: 28px; }
	.pm-single__content { padding-top: 24px; }
	.pm-single__tags { padding-bottom: 48px; }
	.pm-featured { padding: 64px 16px 72px; }
	.pm-featured__title { font-size: 28px; }
	.pm-featured__grid { grid-template-columns: 1fr; gap: 32px; }
	.pm-footer__notes { padding: 48px 16px 24px; }
	.pm-footer__bar { flex-direction: column; align-items: flex-start; padding: 32px 16px 48px; }
	.pm-footer__brand { font-size: 34px; }
	.pm-footer__bottom { padding-top: 32px; }
	.alignleft,
	.alignright { float: none; margin: 0 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { transition: none !important; animation: none !important; }
}
