/**
 * PropNow theme — mobile first.
 */

/* ---------------------------------------------------------------- tokens */
:root {
	/* PropNow brand: bright green on near-black. Overridden at runtime by the
	   palette derived from PropNow → Settings → General. */
	--pt-brand: #5ac66e;
	--pt-brand-dark: #4aa85c;
	--pt-brand-ink: #2f7a3f;
	--pt-brand-soft: #eef9f1;
	--pt-on-brand: #0c1b0f;
	--pt-accent: #f2a93b;
	--pt-on-accent: #241703;
	--pt-dark: #0b0f14;
	--pt-dark-2: #1d2228;
	--pt-ink: #0d1117;
	--pt-ink-2: #414a55;
	--pt-ink-3: #66707d;
	--pt-line: #dee3e9;
	--pt-bg: #ffffff;
	--pt-bg-2: #f5f7f9;
	--pt-radius: 12px;
	--pt-radius-sm: 8px;
	--pt-shadow: 0 1px 2px rgba(11,15,20,.06), 0 4px 16px rgba(11,15,20,.07);
	--pt-header-h: 64px;
	--pt-wrap: 1360px;
	/* Brand typeface: Arial Regular / Arial Bold. */
	--pt-font: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
}

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

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

body {
	margin: 0;
	font-family: var(--pt-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--pt-ink);
	background: var(--pt-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a { color: var(--pt-brand-ink); text-underline-offset: 2px; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp( 1.7rem, 4vw, 2.5rem ); }
h2 { font-size: clamp( 1.35rem, 3vw, 1.9rem ); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--pt-brand); outline-offset: 2px; border-radius: 3px; }

.screen-reader-text, .pt-sr {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.pt-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--pt-brand);
	color: var(--pt-on-brand);
	padding: 12px 18px;
	z-index: 10000;
	border-radius: 0 0 var(--pt-radius-sm) 0;
	font-weight: 600;
}

.pt-skip:focus { left: 0; }

/* ---------------------------------------------------------------- layout */
.pt-wrap { max-width: var(--pt-wrap); margin: 0 auto; padding: 24px 16px 48px; }
.pt-wrap--narrow { max-width: 780px; }
/* Sticky footer. Without this a short page — an empty search, a 404 — leaves a
   band of white below the footer on tall screens. */
html { min-height: 100%; }
body.pt {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}
body.pt > .pt-header { flex: 0 0 auto; }
body.pt > .pt-footer { flex: 0 0 auto; margin-top: auto; }
.pt-main { flex: 1 0 auto; min-height: 0; }

/* ---------------------------------------------------------------- header */
.pt-header {
	position: sticky;
	top: 0;
	z-index: 500;
	transition: box-shadow .2s ease, background-color .2s ease;
}

/* Light variant */
.pt-header--light {
	background: rgba(255,255,255,.96);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--pt-line);
}

.pt-header--light.is-scrolled { box-shadow: 0 2px 12px rgba(11,15,20,.08); }

/* Dark variant — the PropNow look: white logo on near-black */
.pt-header--dark {
	background: var(--pt-dark);
	border-bottom: 1px solid rgba(255,255,255,.08);
}

.pt-header--dark.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.45); }
.pt-header--dark .pt-brand__name { color: #fff; }
.pt-header--dark .pt-brand__tag { color: var(--pt-brand); }
.pt-header--dark .pt-menu a { color: rgba(255,255,255,.86); }
.pt-header--dark .pt-menu a:hover,
.pt-header--dark .pt-menu .current-menu-item > a {
	color: var(--pt-brand);
	background: rgba(255,255,255,.07);
}
.pt-header--dark .pt-menu { border-top-color: rgba(255,255,255,.12); }
.pt-header--dark .pt-menu .sub-menu {
	background: var(--pt-dark-2);
	border-color: rgba(255,255,255,.12);
}
.pt-header--dark .pt-saved { color: rgba(255,255,255,.82); }
.pt-header--dark .pt-saved:hover { color: var(--pt-accent); background: rgba(255,255,255,.08); }
.pt-header--dark .pt-btn--outline {
	background: transparent;
	color: #fff;
	border-color: rgba(255,255,255,.32);
}
.pt-header--dark .pt-btn--outline:hover {
	background: var(--pt-brand);
	border-color: var(--pt-brand);
	color: var(--pt-on-brand);
}
.pt-header--dark .pt-burger { border-color: rgba(255,255,255,.28); }
.pt-header--dark .pt-burger span { background: #fff; }

.pt-header__inner {
	max-width: var(--pt-wrap);
	margin: 0 auto;
	padding: 10px 16px;
	display: flex;
	flex-wrap: wrap;      /* the mobile nav drops onto its own line */
	align-items: center;
	gap: 12px;
	min-height: var(--pt-header-h);
}

.pt-brand { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.pt-brand__logo { display: block; line-height: 0; }
.pt-brand__img,
.pt-brand img,
.pt-brand .custom-logo { max-height: 46px; width: auto; }

@media (min-width: 900px) {
	.pt-brand__img, .pt-brand img, .pt-brand .custom-logo { max-height: 54px; }
}
.pt-brand__text { text-decoration: none; color: var(--pt-ink); display: block; }
.pt-brand__name { display: block; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; }
.pt-brand__tag { display: block; font-size: .72rem; color: var(--pt-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 400px) { .pt-brand__tag { display: none; } }

.pt-nav { order: 4; flex: 1 0 100%; }
.pt-brand { order: 1; }

/* Closed on mobile it must take no space at all, otherwise its 100% basis
   squeezes the logo and the header actions on top of each other. */
@media (max-width: 899px) {
	.pt-nav:not(.is-open) { display: none; }
}

.pt-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
	flex-direction: column;
	gap: 2px;
	border-top: 1px solid var(--pt-line);
	padding-top: 8px;
	margin-top: 8px;
}

.pt-nav.is-open .pt-menu { display: flex; }

.pt-menu li { position: relative; }

.pt-menu a {
	display: block;
	padding: 12px 8px;
	text-decoration: none;
	color: var(--pt-ink);
	font-weight: 600;
	font-size: .95rem;
	border-radius: var(--pt-radius-sm);
	min-height: 44px;
}

.pt-menu a:hover, .pt-menu .current-menu-item > a { color: var(--pt-brand-ink); background: var(--pt-bg-2); }
.pt-menu .sub-menu { list-style: none; padding: 0 0 0 14px; margin: 0; }

.pt-header__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; order: 3; }

.pt-saved {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--pt-ink-2);
	text-decoration: none;
	border-radius: 50%;
}

.pt-saved:hover { color: var(--pt-accent); background: var(--pt-bg-2); }
.pt-saved__icon { display: flex; }
.pt-saved svg { width: 21px; height: 21px; }

.pt-saved__count {
	position: absolute;
	top: 2px;
	right: 0;
	background: var(--pt-accent);
	color: #fff;
	font-size: .65rem;
	font-weight: 700;
	min-width: 17px;
	height: 17px;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	line-height: 1;
}

.pt-burger {
	width: 44px;
	height: 44px;
	background: none;
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius-sm);
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	cursor: pointer;
	padding: 0;
}

.pt-burger span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--pt-ink);
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}

.pt-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.pt-burger.is-open span:nth-child(2) { opacity: 0; }
.pt-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

body.pt-nav-open { overflow: hidden; }

/* ---------------------------------------------------------------- buttons */
.pt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: var(--pt-radius-sm);
	border: 1px solid transparent;
	font: inherit;
	font-weight: 600;
	font-size: .92rem;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.pt-btn--primary { background: var(--pt-brand); color: var(--pt-on-brand); }
.pt-btn--primary:hover { background: var(--pt-brand-dark); color: var(--pt-on-brand); }
.pt-btn--outline { background: #fff; color: var(--pt-ink); border-color: var(--pt-line); }
.pt-btn--outline:hover { border-color: var(--pt-brand); color: var(--pt-brand-ink); }

/* ---------------------------------------------------------------- content */
.pt-pagehead { margin-bottom: 24px; }
.pt-pagehead h1 { margin-bottom: .25em; }
.pt-pagehead__desc, .pt-meta { color: var(--pt-ink-3); font-size: .9rem; margin: 0; }

.pt-prose { line-height: 1.75; color: var(--pt-ink-2); font-size: 1.02rem; }
.pt-prose h2, .pt-prose h3, .pt-prose h4 { color: var(--pt-ink); margin-top: 1.6em; }
.pt-prose img { border-radius: var(--pt-radius); }
.pt-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--pt-brand); color: var(--pt-ink); font-style: italic; }
.pt-prose ul, .pt-prose ol { padding-left: 1.3em; }
.pt-prose li { margin-bottom: .4em; }
.pt-prose code { background: var(--pt-bg-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.pt-prose pre { background: var(--pt-bg-2); padding: 16px; border-radius: var(--pt-radius-sm); overflow-x: auto; }
.pt-prose table { width: 100%; border-collapse: collapse; }
.pt-prose th, .pt-prose td { border: 1px solid var(--pt-line); padding: 8px 10px; text-align: left; }

.pt-single__image { margin: 0 0 24px; }
.pt-single__image img { border-radius: var(--pt-radius); width: 100%; }

.pt-postgrid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.pt-postcard {
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow .18s ease;
}

.pt-postcard:hover { box-shadow: var(--pt-shadow); }
.pt-postcard__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pt-postcard__body { padding: 16px; }
.pt-postcard__title { font-size: 1.1rem; margin: 0 0 6px; }
.pt-postcard__title a { color: var(--pt-ink); text-decoration: none; }
.pt-postcard__title a:hover { color: var(--pt-brand-ink); }
.pt-postcard__excerpt { color: var(--pt-ink-3); font-size: .92rem; margin: 8px 0 0; }

.pt-empty { text-align: center; padding: 48px 16px; }
.pt-empty h1, .pt-empty h2 { margin-bottom: .4em; }
.pt-empty p { color: var(--pt-ink-3); }

.pt-searchform { display: flex; gap: 8px; max-width: 460px; margin: 20px auto 0; }

.pt-searchform input[type="search"] {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius-sm);
	font: inherit;
	font-size: 1rem;
}

.pt-searchform input:focus { outline: 0; border-color: var(--pt-brand); box-shadow: 0 0 0 3px var(--pt-brand-soft); }

/* pagination */
.navigation.pagination { margin: 32px 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

.page-numbers {
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--pt-line);
	border-radius: var(--pt-radius-sm);
	text-decoration: none;
	color: var(--pt-ink);
	font-weight: 600;
}

.page-numbers.current { background: var(--pt-brand); border-color: var(--pt-brand); color: var(--pt-on-brand); }
.page-numbers:hover { border-color: var(--pt-brand); }

/* ---------------------------------------------------------------- footer */
.pt-footer { margin-top: 48px; }
.pt-footer--light { background: var(--pt-bg-2); border-top: 1px solid var(--pt-line); }
.pt-footer--dark { background: var(--pt-dark); color: rgba(255,255,255,.72); }
.pt-footer--dark .pt-widget__title { color: #fff; }
.pt-footer--dark .pt-widget a { color: rgba(255,255,255,.72); }
.pt-footer--dark .pt-widget a:hover { color: var(--pt-brand); }
.pt-footer--dark .pt-footer__bar { border-top-color: rgba(255,255,255,.12); color: rgba(255,255,255,.55); }
.pt-footer--dark .pt-footer__menu a { color: rgba(255,255,255,.6); }
.pt-footer--dark .pt-footer__menu a:hover { color: var(--pt-brand); }
.pt-footer--dark .pt-brand__name { color: #fff; }
.pt-footer--dark .pt-footer__tag { color: var(--pt-brand); }

.pt-footer__inner { max-width: var(--pt-wrap); margin: 0 auto; padding: 40px 16px 28px; }
.pt-footer__top { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
.pt-footer__brand .pt-brand__img { max-height: 52px; width: auto; }
.pt-footer__tag { margin: 12px 0 0; font-size: .85rem; font-weight: 600; letter-spacing: .01em; }
.pt-footer__widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pt-widget__title { font-size: 1rem; margin-bottom: .6em; }
.pt-widget ul { list-style: none; padding: 0; margin: 0; }
.pt-widget li { margin-bottom: 6px; }
.pt-widget a { color: var(--pt-ink-2); text-decoration: none; }
.pt-widget a:hover { color: var(--pt-brand-ink); }

.pt-footer__bar {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 20px;
	border-top: 1px solid var(--pt-line);
	font-size: .85rem;
	color: var(--pt-ink-3);
}

.pt-footer__copy { margin: 0; }
.pt-footer__menu { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; padding: 0; margin: 0; }
.pt-footer__menu a { color: var(--pt-ink-3); text-decoration: none; }
.pt-footer__menu a:hover { color: var(--pt-brand-ink); }

/* comments */
.comment-list { list-style: none; padding: 0; }
.comment-body { border: 1px solid var(--pt-line); border-radius: var(--pt-radius-sm); padding: 14px; margin-bottom: 14px; }
.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(--pt-line); border-radius: var(--pt-radius-sm); font: inherit; min-height: 44px;
}

/* ---------------------------------------------------------------- tablet+ */
@media (min-width: 640px) {
	.pt-wrap { padding: 32px 24px 56px; }
	.pt-header__inner { padding: 10px 24px; }
	.pt-footer__inner { padding: 40px 24px; }
	.pt-postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pt-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; }
	.pt-footer__bar { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (min-width: 900px) {
	:root { --pt-header-h: 72px; }
	.pt-burger { display: none; }
	.pt-nav { display: block; order: 2; flex: 1 1 auto; }
	.pt-brand { flex: 0 0 auto; }

	.pt-menu {
		display: flex;
		flex-direction: row;
		gap: 4px;
		border-top: 0;
		padding-top: 0;
		margin-top: 0;
		justify-content: center;
	}

	.pt-menu a { padding: 10px 14px; }

	.pt-menu .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		min-width: 200px;
		background: #fff;
		border: 1px solid var(--pt-line);
		border-radius: var(--pt-radius-sm);
		box-shadow: var(--pt-shadow);
		padding: 6px;
		display: none;
		z-index: 10;
	}

	.pt-menu li:hover > .sub-menu,
	.pt-menu li:focus-within > .sub-menu { display: block; }

	.pt-postgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pt-footer__widgets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pt-footer__top { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 48px; }
}

/* The plugin's sticky sidebar needs to clear this header. */
@media (min-width: 900px) {
	:root { --pn-header-h: 72px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.pt-footer__compliance { margin: 0 0 16px; padding-bottom: 16px; border-bottom: 1px solid var(--pt-line); }
.pt-footer--dark .pt-footer__compliance { color: rgba(255,255,255,.5); border-bottom-color: rgba(255,255,255,.12); }
.pt-footer--dark .pt-footer__compliance strong { color: rgba(255,255,255,.8); }
