/*
Theme Name: PIZ 2.0
Theme URI: https://www.pensioeninzicht.tips/
Author: Chris
Description: Een rustig, toegankelijk WordPress-thema voor Pensioen in Zicht. Ontworpen voor duidelijke onderwerpen, praktische tips en beheerde externe links.
Version: 2.1.3
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: piz-2-0
*/

:root {
	--piz-ink: #173139;
	--piz-ink-soft: #53686c;
	--piz-teal-900: #174f5e;
	--piz-teal-800: #1e6374;
	--piz-teal-700: #26788a;
	--piz-green: #83a92e;
	--piz-green-dark: #657f25;
	--piz-cream: #f6f3eb;
	--piz-paper: #fffdf8;
	--piz-white: #fff;
	--piz-line: #dbe3df;
	--piz-focus: #d17b2b;
	--piz-shadow: 0 16px 34px rgba(21, 63, 73, 0.11);
}

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

/* Keep JavaScript-filtered cards hidden, even though cards use flex layout. */
[hidden] {
	display: none !important;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 104px;
}

body {
	margin: 0;
	background: var(--piz-cream);
	color: var(--piz-ink);
	font-family: Inter, Aptos, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
	font-size: 17px;
	line-height: 1.68;
	text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
	top: 32px;
}

img {
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

a {
	color: var(--piz-teal-800);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

a:hover {
	color: var(--piz-teal-900);
}

button,
input,
textarea,
select {
	font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--piz-focus);
	outline-offset: 3px;
}

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

.screen-reader-text:focus {
	top: 10px;
	left: 10px;
	z-index: 99999;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: #fff;
	color: var(--piz-ink);
	font-weight: 700;
}

.page-width {
	width: min(1180px, calc(100% - 48px));
	margin-inline: auto;
}

.site-main {
	min-height: 55vh;
}

.piz-icon {
	display: inline-block;
	width: 1.2em;
	height: 1.2em;
	vertical-align: -0.16em;
}

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 253, 249, 0.95);
	border-bottom: 1px solid #cfdad5;
	backdrop-filter: blur(12px);
}

.header-inner {
	min-height: 84px;
	display: flex;
	align-items: center;
	gap: 28px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-width: max-content;
	color: inherit;
	text-decoration: none;
}

.brand--header {
	flex: 0 1 350px;
	min-width: 250px;
}

.brand-mark {
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 14px 14px 18px 8px;
	background: var(--piz-teal-800);
	box-shadow: inset 0 -6px 0 #133f4a;
	color: #fff;
	font-size: 16px;
	font-weight: 850;
	letter-spacing: -0.03em;
}

.custom-brand-logo,
.piz-default-logo {
	display: block;
	width: min(350px, 29vw);
	height: auto;
	max-height: 69px;
	object-fit: contain;
	object-position: left center;
}

.brand-copy {
	display: grid;
	line-height: 1.2;
}

.brand-copy strong {
	color: var(--piz-teal-900);
	font-size: 19px;
	letter-spacing: -0.02em;
}

.brand-copy small {
	max-width: 240px;
	margin-top: 4px;
	color: var(--piz-green-dark);
	font-size: 11px;
	font-weight: 750;
	letter-spacing: 0.035em;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.primary-navigation {
	margin-left: auto;
}

.piz-menu,
.primary-navigation ul {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 3px;
	list-style: none;
}

.primary-navigation li {
	position: relative;
}

.primary-navigation a {
	padding: 10px 10px;
	display: block;
	border-radius: 9px;
	color: #38575d;
	font-size: 13px;
	font-weight: 750;
	text-decoration: none;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible {
	background: #eaf1ed;
	color: var(--piz-teal-900);
}

.primary-navigation .sub-menu {
	position: absolute;
	top: calc(100% + 7px);
	left: 0;
	min-width: 240px;
	padding: 9px;
	display: none;
	border: 1px solid var(--piz-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--piz-shadow);
}

.primary-navigation li:hover > .sub-menu,
.primary-navigation li:focus-within > .sub-menu {
	display: grid;
}

.contact-link,
.primary-button {
	min-height: 44px;
	padding: 9px 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	border-radius: 11px;
	background: var(--piz-teal-800);
	color: #fff;
	font-size: 14px;
	font-weight: 760;
	text-decoration: none;
}

.contact-link:hover,
.primary-button:hover {
	background: var(--piz-teal-900);
	color: #fff;
}

.menu-toggle {
	display: none;
	width: 46px;
	height: 46px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--piz-line);
	border-radius: 10px;
	background: #fff;
	color: var(--piz-teal-900);
}

.menu-toggle .piz-icon {
	width: 24px;
	height: 24px;
}

.menu-close-icon {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-open-icon {
	display: none;
}

.menu-toggle[aria-expanded="true"] .menu-close-icon {
	display: inline;
}

/* Homepage intro */
.intro-section {
	position: relative;
	overflow: hidden;
	background: var(--piz-paper);
	border-bottom: 1px solid var(--piz-line);
}

.intro-section::after {
	content: "";
	position: absolute;
	right: -80px;
	bottom: -145px;
	width: 360px;
	height: 360px;
	border: 60px solid #e9f0d4;
	border-radius: 50%;
	opacity: 0.72;
	pointer-events: none;
}

.intro-grid {
	position: relative;
	z-index: 1;
	padding-block: 58px 62px;
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
	align-items: center;
	gap: 64px;
}

.eyebrow,
.card-kicker {
	display: inline-block;
	margin-bottom: 11px;
	color: var(--piz-green-dark);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.095em;
	text-transform: uppercase;
}

.intro-copy h1,
.section-heading h2,
.news-intro h2,
.feature-copy h2,
.page-header h1,
.error-page h1 {
	margin: 0;
	color: var(--piz-teal-900);
	font-weight: 780;
	letter-spacing: -0.04em;
	line-height: 1.08;
}

.intro-copy h1 {
	max-width: 720px;
	font-size: clamp(38px, 4.3vw, 58px);
}

.intro-copy p {
	max-width: 690px;
	margin: 22px 0 0;
	color: var(--piz-ink-soft);
	font-size: 19px;
	line-height: 1.65;
}

.search-panel {
	position: relative;
	padding: 29px;
	border: 1px solid #ccdad4;
	border-radius: 22px 22px 38px 22px;
	background: #fff;
	box-shadow: 0 18px 45px rgba(23, 79, 94, 0.09);
}

.search-panel::before {
	content: "";
	position: absolute;
	top: 0;
	left: 28px;
	width: 62px;
	height: 5px;
	border-radius: 0 0 6px 6px;
	background: var(--piz-green);
}

.search-panel label {
	display: block;
	margin-bottom: 12px;
	color: var(--piz-teal-900);
	font-size: 18px;
	font-weight: 780;
}

.search-control,
.site-search-form {
	position: relative;
	display: flex;
	align-items: center;
}

.search-control > .piz-icon,
.site-search-form > .piz-icon {
	position: absolute;
	left: 17px;
	z-index: 2;
	width: 23px;
	height: 23px;
	color: var(--piz-teal-700);
	pointer-events: none;
}

.search-control input,
.site-search-form input {
	width: 100%;
	height: 58px;
	padding: 0 112px 0 52px;
	border: 2px solid #b9cbc4;
	border-radius: 13px;
	background: #fbfcfa;
	color: var(--piz-ink);
	font-size: 16px;
}

.search-control input::placeholder,
.site-search-form input::placeholder {
	color: #708285;
}

.search-control button,
.site-search-form button {
	position: absolute;
	right: 7px;
	height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 9px;
	background: var(--piz-teal-800);
	color: #fff;
	font-size: 14px;
	font-weight: 750;
	cursor: pointer;
}

.search-panel > p {
	margin: 10px 0 0;
	color: #6d7f81;
	font-size: 13px;
}

/* Homepage sections */
.section {
	padding-block: 76px;
}

.section-heading {
	margin-bottom: 30px;
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
}

.section-heading h2,
.news-intro h2,
.feature-copy h2 {
	font-size: clamp(30px, 3vw, 42px);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-bottom: 2px solid #9aba4e;
	color: var(--piz-teal-800);
	font-size: 14px;
	font-weight: 780;
	text-decoration: none;
}

.category-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.category-card {
	--card-accent: var(--piz-teal-700);
	min-height: 278px;
	padding: 24px;
	display: flex;
	flex-direction: column;
	border: 1px solid #d6e0dc;
	border-top: 5px solid var(--card-accent);
	border-radius: 8px 8px 19px 19px;
	background: #fff;
	box-shadow: 0 7px 20px rgba(21, 63, 73, 0.06);
	color: inherit;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-card:hover {
	transform: translateY(-4px);
	border-color: #aec3bc;
	box-shadow: 0 16px 30px rgba(21, 63, 73, 0.11);
	color: inherit;
}

.card-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.category-icon {
	width: 45px;
	height: 45px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: color-mix(in srgb, var(--card-accent) 12%, #fff);
	color: var(--card-accent);
}

.category-icon .piz-icon {
	width: 24px;
	height: 24px;
}

.card-number {
	color: #a8b6b2;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.09em;
}

.category-card h3 {
	margin: 20px 0 8px;
	color: var(--piz-teal-900);
	font-size: 20px;
	line-height: 1.25;
}

.category-card p {
	margin: 0;
	color: var(--piz-ink-soft);
	font-size: 14px;
	line-height: 1.6;
}

.card-action {
	margin-top: auto;
	padding-top: 18px;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: var(--piz-teal-800);
	font-size: 13px;
	font-weight: 800;
}

.card-action .piz-icon {
	width: 16px;
	transition: transform 160ms ease;
}

.category-card:hover .card-action .piz-icon {
	transform: translateX(4px);
}

.empty-state {
	min-height: 160px;
	padding: 28px;
	display: flex;
	align-items: center;
	gap: 20px;
	border: 1px dashed #a8bab4;
	border-radius: 18px;
	background: var(--piz-paper);
}

.empty-state > .piz-icon {
	width: 38px;
	height: 38px;
	color: var(--piz-teal-700);
}

.empty-state h2,
.empty-state h3,
.empty-state p {
	margin: 0;
}

.empty-state p {
	color: var(--piz-ink-soft);
}

.tips-section {
	padding-block: 68px 74px;
	background: #eaf0e5;
	border-block: 1px solid #d4dfd5;
}

.compact-heading {
	margin-bottom: 25px;
}

.tips-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.tip-card {
	min-height: 132px;
	padding: 22px 24px;
	display: grid;
	grid-template-columns: 45px 1fr 24px;
	align-items: start;
	gap: 17px;
	border: 1px solid #cad8cf;
	border-radius: 15px;
	background: var(--piz-paper);
	color: inherit;
	text-decoration: none;
	transition: border-color 160ms ease, background 160ms ease;
}

.tip-card:hover {
	border-color: #93ad9c;
	background: #fff;
	color: inherit;
}

.tip-card > .piz-icon:first-child {
	width: 45px;
	height: 45px;
	padding: 9px;
	border-radius: 11px;
	background: #e3edcb;
	color: var(--piz-green-dark);
}

.tip-card h3 {
	margin: 0 0 3px;
	color: var(--piz-teal-900);
	font-size: 17px;
}

.tip-card p {
	margin: 0;
	color: var(--piz-ink-soft);
	font-size: 14px;
	line-height: 1.55;
}

.tip-card > .piz-icon:last-child {
	width: 19px;
	color: #779184;
}

.feature-panel {
	position: relative;
	overflow: hidden;
	min-height: 320px;
	padding: 46px;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr) 290px;
	align-items: center;
	gap: 34px;
	border-radius: 26px 26px 50px 26px;
	background: var(--piz-teal-900);
	color: #fff;
	box-shadow: 0 20px 40px rgba(16, 61, 73, 0.14);
}

.feature-panel::after {
	content: "";
	position: absolute;
	right: -100px;
	bottom: -170px;
	width: 340px;
	height: 340px;
	border: 54px solid rgba(255, 255, 255, 0.05);
	border-radius: 50%;
}

.feature-icon {
	align-self: start;
	width: 68px;
	height: 68px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.17);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.08);
	color: #cfe885;
}

.feature-icon .piz-icon {
	width: 33px;
	height: 33px;
}

.eyebrow.light {
	color: #cfe885;
}

.feature-copy {
	position: relative;
	z-index: 1;
}

.feature-copy h2 {
	color: #fff;
}

.feature-copy p {
	max-width: 610px;
	margin: 17px 0 22px;
	color: #d5e3e3;
	font-size: 16px;
}

.feature-copy a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #d8ee9e;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.trusted-sources {
	position: relative;
	z-index: 1;
	padding: 23px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 17px;
	background: rgba(255, 255, 255, 0.06);
}

.trusted-sources > span {
	color: #b8cdcf;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.trusted-sources ul {
	margin: 14px 0 0;
	padding: 0;
	display: grid;
	gap: 10px;
	list-style: none;
}

.trusted-sources li {
	display: flex;
	align-items: center;
	gap: 9px;
	color: #f3f7f6;
	font-size: 14px;
	font-weight: 650;
}

.trusted-sources .piz-icon {
	width: 17px;
	color: #cfe885;
}

.news-section {
	padding-block: 70px 82px;
	background: var(--piz-paper);
	border-top: 1px solid var(--piz-line);
}

.news-grid {
	display: grid;
	grid-template-columns: 0.7fr 1.3fr;
	gap: 80px;
}

.news-intro p {
	max-width: 420px;
	margin: 17px 0 20px;
	color: var(--piz-ink-soft);
	font-size: 15px;
}

.news-list {
	border-top: 1px solid #becdc7;
}

.news-item {
	min-height: 90px;
	padding: 17px 4px;
	display: grid;
	grid-template-columns: 122px 1fr 24px;
	align-items: center;
	gap: 20px;
	border-bottom: 1px solid #d6e0dc;
	color: inherit;
	text-decoration: none;
}

.news-item time {
	color: #78898a;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.news-item strong {
	color: var(--piz-teal-900);
	font-size: 16px;
	line-height: 1.4;
}

.news-item:hover strong {
	color: var(--piz-teal-700);
}

.news-item .piz-icon {
	width: 18px;
	color: #78918b;
}

.feed-unavailable {
	padding: 28px;
	border-bottom: 1px solid var(--piz-line);
	color: var(--piz-ink-soft);
}

/* Pages, posts, archives and link directories */
.content-area {
	padding-block: 70px 90px;
}

.narrow-content {
	max-width: 850px;
}

.page-header {
	margin-bottom: 36px;
}

.page-header h1,
.error-page h1 {
	font-size: clamp(36px, 4vw, 56px);
}

.page-header > p,
.archive-description {
	max-width: 760px;
	margin: 18px 0 0;
	color: var(--piz-ink-soft);
	font-size: 18px;
}

.topic-header {
	--topic-color: var(--piz-teal-700);
	padding: 30px;
	display: grid;
	grid-template-columns: 68px 1fr;
	gap: 24px;
	border-left: 6px solid var(--topic-color);
	border-radius: 8px 20px 20px 8px;
	background: var(--piz-paper);
}

.topic-header-icon {
	width: 60px;
	height: 60px;
	display: grid;
	place-items: center;
	border-radius: 16px;
	background: color-mix(in srgb, var(--topic-color) 13%, #fff);
	color: var(--topic-color);
}

.topic-header-icon .piz-icon {
	width: 30px;
	height: 30px;
}

.topic-pills {
	margin-bottom: 34px;
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.topic-pills a {
	padding: 8px 13px;
	border: 1px solid #cbd8d3;
	border-radius: 999px;
	background: #fff;
	color: var(--piz-teal-800);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.content-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.links-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card {
	min-width: 0;
	border: 1px solid #d3ded9;
	border-radius: 16px;
	background: var(--piz-paper);
	overflow: hidden;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.content-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--piz-shadow);
}

.content-card > a {
	height: 100%;
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
}

.content-card figure {
	aspect-ratio: 16 / 9;
	background: #e5ece8;
	overflow: hidden;
}

.content-card figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.content-card-body {
	min-height: 245px;
	padding: 24px;
	display: flex;
	flex-direction: column;
}

.card-kicker {
	margin-bottom: 7px;
	font-size: 11px;
}

.content-card h2 {
	margin: 0 0 10px;
	color: var(--piz-teal-900);
	font-size: 21px;
	line-height: 1.25;
}

.content-card p {
	margin: 0;
	color: var(--piz-ink-soft);
	font-size: 14px;
}

.single-content {
	padding: clamp(28px, 5vw, 58px);
	border: 1px solid var(--piz-line);
	border-radius: 22px;
	background: var(--piz-paper);
}

.entry-meta {
	color: #758789;
	font-size: 14px;
}

.featured-image {
	margin: 0 0 34px;
	border-radius: 16px;
	overflow: hidden;
}

.entry-content {
	color: #273c42;
}

.entry-content > * {
	max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--piz-teal-900);
	line-height: 1.25;
}

.entry-content h2 {
	margin-top: 1.8em;
	font-size: 32px;
}

.entry-content h3 {
	margin-top: 1.6em;
	font-size: 25px;
}

.entry-content a {
	font-weight: 650;
}

.entry-content blockquote {
	margin: 30px 0;
	padding: 18px 24px;
	border-left: 5px solid var(--piz-green);
	background: #f0f3e9;
	color: #425a5f;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.entry-content th,
.entry-content td {
	padding: 12px;
	border: 1px solid var(--piz-line);
	text-align: left;
}

.entry-content th {
	background: #e9f0ed;
}

.site-search-form {
	max-width: 650px;
	margin-top: 26px;
}

.navigation.pagination {
	margin-top: 38px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.page-numbers {
	min-width: 42px;
	height: 42px;
	padding: 8px 12px;
	display: grid;
	place-items: center;
	border: 1px solid var(--piz-line);
	border-radius: 9px;
	background: #fff;
	text-decoration: none;
}

.page-numbers.current {
	background: var(--piz-teal-800);
	color: #fff;
}

.error-page {
	padding-block: 100px 120px;
}

.error-page > p {
	color: var(--piz-ink-soft);
}

/* Footer and utilities */
.site-footer {
	padding-block: 42px;
	background: #123f4b;
	color: #dce8e6;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.6fr 1.3fr;
	align-items: center;
	gap: 34px;
}

.footer-brand .brand-mark {
	background: var(--piz-paper);
	box-shadow: inset 0 -6px 0 #dbe5df;
	color: var(--piz-teal-900);
}

.footer-brand .brand-copy strong {
	color: #fff;
}

.footer-brand .brand-copy small {
	color: #b9cf87;
}

.site-footer p {
	margin: 0;
	color: #c5d5d3;
	font-size: 12px;
}

.footer-disclaimer {
	text-align: right;
}

.back-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 90;
	width: 46px;
	height: 46px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: var(--piz-teal-800);
	box-shadow: var(--piz-shadow);
	color: #fff;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	cursor: pointer;
	transition: opacity 160ms ease, transform 160ms ease;
}

.back-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.back-to-top .piz-icon {
	width: 21px;
	height: 21px;
	transform: rotate(-90deg);
}

@media (max-width: 1060px) {
	.header-inner {
		gap: 18px;
	}

	.brand--header {
		flex-basis: 285px;
		min-width: 230px;
	}

	.custom-brand-logo,
	.piz-default-logo {
		width: 285px;
		max-height: 56px;
	}

	.primary-navigation a {
		padding-inline: 7px;
		font-size: 12px;
	}

	.intro-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.search-panel {
		max-width: 760px;
	}

	.category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.feature-panel {
		grid-template-columns: 60px 1fr;
	}

	.trusted-sources {
		grid-column: 2;
	}

	.news-grid {
		gap: 44px;
	}

	.content-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 860px) {
	body.admin-bar .site-header {
		top: 46px;
	}

	.header-inner {
		min-height: 74px;
		flex-wrap: wrap;
	}

	.brand-mark {
		width: 46px;
		height: 46px;
	}

	.menu-toggle {
		display: grid;
		place-items: center;
	}

	.contact-link {
		display: none;
	}

	.primary-navigation {
		width: 100%;
		margin: 0;
		display: none;
	}

	.primary-navigation.is-open {
		display: block;
		padding-bottom: 14px;
	}

	.primary-navigation ul,
	.piz-menu {
		align-items: stretch;
		flex-direction: column;
	}

	.primary-navigation a {
		padding: 11px 12px;
		font-size: 15px;
	}

	.primary-navigation .sub-menu {
		position: static;
		margin-left: 15px;
		display: grid;
		border: 0;
		box-shadow: none;
		background: transparent;
	}

	.intro-grid {
		padding-block: 44px 50px;
	}

	.tips-grid,
	.news-grid,
	.footer-grid {
		grid-template-columns: 1fr;
	}

	.feature-panel {
		padding: 34px;
	}

	.footer-disclaimer {
		text-align: left;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.page-width {
		width: min(100% - 28px, 1180px);
	}

	.brand--header {
		flex-basis: auto;
		min-width: 0;
	}

	.custom-brand-logo,
	.piz-default-logo {
		width: min(220px, calc(100vw - 100px));
		max-height: 44px;
	}

	.brand-copy strong {
		font-size: 17px;
	}

	.brand-copy small {
		max-width: 190px;
		font-size: 9px;
	}

	.intro-section::after {
		display: none;
	}

	.intro-copy h1 {
		font-size: 38px;
	}

	.intro-copy p {
		font-size: 17px;
	}

	.search-panel {
		padding: 24px 18px 20px;
		border-radius: 17px 17px 28px 17px;
	}

	.search-panel label {
		font-size: 16px;
	}

	.search-control input,
	.site-search-form input {
		height: 56px;
		padding-right: 52px;
		font-size: 15px;
	}

	.search-control button,
	.site-search-form button {
		width: 42px;
		padding: 0;
		font-size: 0;
	}

	.search-control button::after,
	.site-search-form button::after {
		content: "→";
		font-size: 20px;
	}

	.section,
	.tips-section,
	.news-section,
	.content-area {
		padding-block: 52px;
	}

	.section-heading {
		align-items: start;
		flex-direction: column;
	}

	.section-heading h2,
	.news-intro h2,
	.feature-copy h2 {
		font-size: 31px;
	}

	.page-header h1,
	.error-page h1 {
		font-size: 37px;
	}

	.category-grid,
	.tips-grid,
	.content-grid,
	.links-grid {
		grid-template-columns: 1fr;
	}

	.category-card {
		min-height: 244px;
	}

	.tip-card {
		grid-template-columns: 38px 1fr 20px;
		padding: 20px 17px;
		gap: 12px;
	}

	.tip-card > .piz-icon:first-child {
		width: 38px;
		height: 38px;
		padding: 7px;
	}

	.feature-panel {
		padding: 30px 23px;
		grid-template-columns: 1fr;
		gap: 22px;
		border-radius: 21px 21px 38px 21px;
	}

	.feature-icon {
		width: 56px;
		height: 56px;
	}

	.trusted-sources {
		grid-column: 1;
	}

	.news-item {
		grid-template-columns: 1fr 22px;
		gap: 5px 14px;
	}

	.news-item time {
		grid-column: 1 / -1;
	}

	.topic-header {
		grid-template-columns: 1fr;
	}

	.single-content {
		padding: 25px 19px;
	}

	.entry-content table,
	.entry-content tbody,
	.entry-content tr,
	.entry-content td,
	.entry-content th {
		display: block;
		width: 100%;
	}

	.entry-content td,
	.entry-content th {
		margin-bottom: -1px;
	}

	.empty-state {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
