/* News post page (single-post.php, inc/nieuws.php). In the style of the guest homepage (home-catalogus.css):
   warm paper, the gold icon pattern behind the title, Fraunces headings, gold labels, square buttons in
   capitals; a post without a featured image gets the olive panel with the gold logo of the homepage's
   news cards. Scoped to .iew-nw; tokens come from design-system.css. */

body.iew-nieuws-page { background-color: var(--iew-paper); }
body main.iew-nw.site-main { max-width: none; width: 100%; margin: 0; padding: 0; }
.iew-nw {
	--nw-gap: 24px;
	--nw-line: #E2DED3;
	--nw-head: var(--iew-font-heading);
	--nw-ui: var(--iew-font-sans);
	--nw-ease: cubic-bezier(.2, .7, .2, 1);
	color: var(--iew-ink-900);
	font-family: var(--nw-ui);
}
.iew-nw *, .iew-nw *::before, .iew-nw *::after { box-sizing: border-box; }
.iew-nw__page { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.iew-nw .iew-nw__lbl { display: block; margin: 0; font: 600 12px/1.3 var(--nw-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--iew-gold-600); }
.iew-nw .woocommerce-breadcrumb { margin: 0 0 28px; font-size: var(--iew-text-sm); color: var(--iew-ink-500); }
.iew-nw .woocommerce-breadcrumb a { color: var(--iew-ink-500); text-decoration: none; }
.iew-nw .woocommerce-breadcrumb a:hover { color: var(--iew-olive-900); }

/* ---------- buttons (as on the homepage) ---------- */
.iew-nw .iew-nw__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font: 700 12px/1 var(--nw-ui); letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
	padding: 15px 24px; border-radius: 2px; border: 1.5px solid transparent; cursor: pointer;
	transition: background .22s var(--nw-ease), color .22s;
}
.iew-nw .iew-nw__btn--primary { background: var(--iew-gold-500); color: var(--iew-olive-900); }
.iew-nw .iew-nw__btn--primary:hover { background: var(--iew-gold-400); color: var(--iew-olive-900); }
.iew-nw .iew-nw__btn--dark { background: var(--iew-olive-700); color: var(--iew-paper); }
.iew-nw .iew-nw__btn--dark:hover { background: var(--iew-olive-800); color: var(--iew-paper); }
.iew-nw .iew-nw__btn--link { padding: 4px 0; border: 0; border-bottom: 1.5px solid var(--iew-gold-500); border-radius: 0; color: var(--iew-olive-700); letter-spacing: .12em; }
.iew-nw .iew-nw__btn--link:hover { color: var(--iew-olive-900); }

/* ---------- title and image, with the gold icon pattern behind this section only ---------- */
.iew-nw__hero {
	position: relative; isolation: isolate;
	display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--nw-gap); align-items: center;
	padding: 32px 0 64px;
}
.iew-nw__hero::before {
	content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
	background: var(--iew-paper) url("../img/home-catalogus/patroon-licht.svg"); background-size: 320px;
}
.iew-nw__h { grid-column: 1 / 8; display: flex; flex-direction: column; }
.iew-nw__h .iew-nw__lbl { margin-bottom: 18px; }
.iew-nw .iew-nw__h h1 { margin: 0; font: 400 clamp(38px, 4.6vw, 64px)/1.04 var(--nw-head); letter-spacing: -.015em; color: var(--iew-olive-900); hyphens: manual; text-wrap: balance; }
.iew-nw .iew-nw__intro { margin: 24px 0 0; padding-right: 8%; font: 400 18px/1.65 var(--nw-ui); color: var(--iew-ink-700); }

.iew-nw__im { grid-column: 8 / 13; position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: var(--iew-paper-2); }
.iew-nw .iew-nw__im img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.iew-nw__hero--plain .iew-nw__im { display: grid; place-items: center; background: var(--iew-olive-900) url("../img/home-catalogus/wijngaard-lijn-nacht.svg") 0 0 / 640px 640px; }
.iew-nw__hero--tall .iew-nw__im { background: var(--iew-olive-900) url("../img/home-catalogus/wijngaard-lijn-nacht.svg") 0 0 / 640px 640px; }
.iew-nw .iew-nw__hero--tall .iew-nw__im img { object-fit: contain; }
.iew-nw .iew-nw__im .iew-nw__mark { position: static; width: 30%; max-width: 150px; height: auto; object-fit: contain; }

/* ---------- the text on the light band, the newest other posts beside it ---------- */
.iew-nw__body {
	--nw-band: #FCFCFB; /* the Elementor kit body background, as the homepage's "Nieuw" band */
	position: relative; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--nw-gap); align-items: start;
	padding: 64px 0 80px; background: var(--nw-band); box-shadow: 0 0 0 100vmax var(--nw-band); clip-path: inset(0 -100vmax);
}
.iew-nw__text { grid-column: 1 / 8; max-width: 70ch; font: 400 17px/1.7 var(--nw-ui); color: var(--iew-ink-700); }
.iew-nw__text > :first-child { margin-top: 0; }
.iew-nw__text > :last-child { margin-bottom: 0; }
.iew-nw .iew-nw__text h2 { margin: 1.5em 0 .5em; font: 400 34px/1.1 var(--nw-head); color: var(--iew-olive-900); }
.iew-nw .iew-nw__text h3 { margin: 1.4em 0 .4em; font: 500 22px/1.2 var(--nw-head); color: var(--iew-olive-900); }
.iew-nw .iew-nw__text h4 { margin: 1.4em 0 .4em; font: 600 17px/1.4 var(--nw-ui); color: var(--iew-ink-900); }
.iew-nw__text p { margin: 0 0 1em; }
/* A paragraph that is only bold text reads as a subheading in the editor: give it the heading look. */
.iew-nw .iew-nw__text p:has(> strong:only-child) { margin: 1.6em 0 .4em; font: 500 22px/1.2 var(--nw-head); font-family: var(--nw-head) !important; /* style.css forces Inter on every p */ color: var(--iew-olive-900); }
.iew-nw .iew-nw__text p:has(> strong:only-child) strong { font: inherit; color: inherit; }
.iew-nw__text strong { color: var(--iew-ink-900); }
.iew-nw__text ul, .iew-nw__text ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.iew-nw__text li { position: relative; margin: 0; padding: 8px 0 8px 22px; border-bottom: 1px solid var(--nw-line); }
.iew-nw__text ul > li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; background: var(--iew-gold-500); }
.iew-nw__text ol { counter-reset: nw-ol; }
.iew-nw__text ol > li { padding-left: 30px; counter-increment: nw-ol; }
.iew-nw__text ol > li::before { content: counter(nw-ol) "."; position: absolute; left: 0; top: 8px; font-weight: 700; color: var(--iew-gold-600); }
.iew-nw .iew-nw__text a:not(.wp-block-button__link):not(.wp-block-file__button) { color: var(--iew-olive-700); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--iew-gold-500); overflow-wrap: anywhere; }
.iew-nw .iew-nw__text a:not(.wp-block-button__link):not(.wp-block-file__button):hover { color: var(--iew-olive-900); }
.iew-nw__text figure { margin: 1.6em 0; }
.iew-nw .iew-nw__text img { max-width: 100%; height: auto; border-radius: 2px; }
.iew-nw__text figcaption { margin-top: 8px; font: 400 13.5px/1.5 var(--nw-ui); color: var(--iew-ink-500); text-align: left; }
.iew-nw .iew-nw__text blockquote { margin: 1.6em 0; padding: 18px 20px; border: 0; background: var(--iew-paper-2); font: italic 400 19px/1.55 var(--nw-head); color: var(--iew-olive-900); }
.iew-nw__text blockquote p:last-child { margin-bottom: 0; }
.iew-nw__text cite { display: block; margin-top: 10px; font: 700 10px var(--nw-ui); font-style: normal; letter-spacing: .22em; text-transform: uppercase; color: var(--iew-gold-600); }
.iew-nw .iew-nw__text .wp-block-button__link, .iew-nw .iew-nw__text .wp-block-file .wp-block-file__button { font: 700 12px/1 var(--nw-ui); letter-spacing: .2em; text-transform: uppercase; padding: 15px 24px; border-radius: 2px; background: var(--iew-gold-500); color: var(--iew-olive-900); text-decoration: none; }
.iew-nw .iew-nw__text .wp-block-button__link:hover, .iew-nw .iew-nw__text .wp-block-file .wp-block-file__button:hover { background: var(--iew-gold-400); }
/* Posts built in Elementor (older ones): body text at the reading size instead of the kit's tight lines. */
.iew-nw .iew-nw__text .elementor-widget-text-editor { font: inherit; line-height: 1.7; color: inherit; }

.iew-nw__more { grid-column: 9 / 13; padding-top: 4px; }
.iew-nw__more .iew-nw__lbl { margin-bottom: 8px; }
.iew-nw__more ul { margin: 0 0 22px; padding: 0; list-style: none; }
.iew-nw__more li { margin: 0; border-bottom: 1px solid var(--nw-line); }
.iew-nw .iew-nw__more li a { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; color: inherit; text-decoration: none; }
.iew-nw__more time { font: 700 10px/1.3 var(--nw-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--iew-gold-600); }
.iew-nw__more b { font: 400 19px/1.25 var(--nw-head); color: var(--iew-olive-900); transition: color .2s; }
.iew-nw__more li a:hover b { color: var(--iew-olive-700); }

/* ---------- two doors for guests: log in, or become a customer (as on the homepage) ---------- */
.iew-nw__doors { display: grid; grid-template-columns: 1fr 1fr; gap: var(--nw-gap); margin: 72px 0; }
.iew-nw__doors > div { padding: 38px 34px 42px; background: var(--iew-paper-2); }
.iew-nw__doors > div + div { background: var(--iew-gold-100); }
.iew-nw__doors .iew-nw__lbl { margin-bottom: 12px; }
.iew-nw .iew-nw__doors h2 { margin: 0 0 12px; font: 500 32px/1.15 var(--nw-head); color: var(--iew-olive-900); }
.iew-nw .iew-nw__doors p { margin: 0 0 24px; font: 400 16px/1.7 var(--nw-ui); color: var(--iew-ink-700); max-width: 500px; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1000px) {
	.iew-nw__page { padding: 0 18px; }
	.iew-nw__hero, .iew-nw__body { grid-template-columns: 1fr; column-gap: 0; }
	.iew-nw__hero { padding: 20px 0 40px; }
	.iew-nw__h, .iew-nw__im, .iew-nw__text, .iew-nw__more { grid-column: 1 / -1; }
	.iew-nw__im { margin-top: 32px; aspect-ratio: 16 / 9; }
	.iew-nw__hero--tall .iew-nw__im { aspect-ratio: 4 / 5; max-height: 70vh; }
	/* Without a photo the olive panel would only push the text down. */
	.iew-nw__hero--plain .iew-nw__im { display: none; }
	.iew-nw__body { padding: 44px 0 56px; }
	.iew-nw__more { margin-top: 48px; }
	.iew-nw__doors { grid-template-columns: 1fr; margin: 48px 0 56px; }
}
@media (max-width: 560px) {
	.iew-nw .iew-nw__h h1 { font-size: 34px; }
	.iew-nw .iew-nw__intro { padding-right: 0; font-size: 16.5px; }
	.iew-nw__text { font-size: 16px; }
	.iew-nw .iew-nw__text h2 { font-size: 28px; }
	.iew-nw .iew-nw__text h3, .iew-nw .iew-nw__text p:has(> strong:only-child) { font-size: 20px; }
	.iew-nw__doors > div { padding: 28px 22px 30px; }
	.iew-nw .iew-nw__doors h2 { font-size: 26px; }
}
