/*
Theme Name: Nordic Walking Hub
Theme URI: https://nordicwalkinghub.com
Description: Child theme of Twenty Twenty-Five for Nordic Walking Hub – Guardians of Nordic Walking. Three brand colours, self-hosted fonts, large readable type.
Author: Tomorrow Systems® s.r.o.
Template: twentytwentyfive
Version: 0.3.0
Requires at least: 6.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nwh
*/

/* Fonts (Archivo Black, Barlow Condensed, Source Sans 3) are licensed under the SIL Open Font License 1.1 and served from this site, never from Google. */

/* ===== Page frame: one centered column on a grey wallpaper background ===== */
body {
	background: #E9EDEB;
}
.wp-site-blocks {
	max-width: 1960px;
	margin-inline: auto;
	padding: 0;
	background: #FFFFFF;
}
.wp-site-blocks > * {
	margin-block: 0;
}
.nwh-main {
	background: #F4F6F5;
	padding: 14px 16px 24px;
}

/* Visible keyboard focus everywhere – readers are often 55+ and some navigate by keyboard. */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 3px solid var(--wp--preset--color--accent-2);
	outline-offset: 2px;
}
.screen-reader-text {
	position: absolute;
	left: -9999px;
}

/* ===== Header ===== */
.nwh-hdr {
	background: #FFFFFF;
	padding: 10px 32px 0;
}
.nwh-hdr-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 728px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	min-height: 0;
}
.nwh-hdr-logo {
	display: flex;
	align-items: center;
	justify-self: start;
	text-decoration: none;
}
.nwh-hdr-logo img {
	height: 112px;
	width: auto;
	display: block;
}
.nwh-hdr-right {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	justify-self: start;
	min-width: 0;
	max-width: 100%;
}
.nwh-hdr-search {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 0 1 440px;
	min-width: 0;
}
.nwh-in {
	width: 100%;
	min-height: 42px;
	padding: 6px 14px;
	font-size: 16px;
	font-family: inherit;
	border: 2px solid var(--wp--preset--color--accent-1);
	border-radius: 8px;
	box-sizing: border-box;
	background: #FFFFFF;
}
.nwh-finder {
	display: flex;
	gap: 8px;
	align-items: center;
	background: #E6EEEC;
	border-radius: 8px;
	padding: 6px 8px;
	box-sizing: border-box;
	width: 100%;
}
.nwh-in-psc {
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	padding: 6px 12px;
}
.nwh-btn {
	background: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border: none;
	border-radius: 8px;
	padding: 0 16px;
	min-height: 42px;
	cursor: pointer;
	white-space: nowrap;
}
.nwh-btn:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Language switcher (Polylang): compact EN | DE | CS pill row. */
.nwh-lang ul {
	display: flex;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border: 2px solid var(--wp--preset--color--accent-1);
	border-radius: 8px;
	overflow: hidden;
	height: 42px;
}
.nwh-lang li {
	display: flex;
}
.nwh-lang li + li {
	border-left: 1px solid var(--wp--preset--color--accent-1);
}
.nwh-lang li a {
	display: flex;
	align-items: center;
	padding: 0 12px;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--accent-1);
}
.nwh-lang li.current-lang a {
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
}

/* Category bar: full column width, big readable links. */
.nwh-catnav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	background: var(--wp--preset--color--accent-1);
	margin: 10px -32px 0;
}
.nwh-catnav a {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration: none;
	color: #FFFFFF;
	white-space: nowrap;
	padding: 13px 22px;
}
.nwh-catnav a:hover {
	background: var(--wp--preset--color--contrast);
}

/* ===== Advertisement slots: always visibly labelled (constitution, art. 3) ===== */
.nwh-ad {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 728px;
	max-width: 100%;
	height: 90px;
	box-sizing: border-box;
	border: 2px dashed rgba(255, 90, 54, 0.55);
	background: #F4F6F5;
	text-align: center;
}
.nwh-ad-label {
	position: absolute;
	top: 6px;
	left: 12px;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #8A5A1E;
}
.nwh-ad-body a {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6B7B76;
	text-decoration: none;
}

/* ===== Front page body ===== */
.nwh-body {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 16px;
	align-items: start;
}
.nwh-body-side {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.nwh-card {
	background: #FFFFFF;
	border: 1px solid #D5DEDC;
	border-radius: 8px;
	padding: 14px 16px;
}
.nwh-eyebrow,
.is-style-nwh-eyebrow {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--wp--preset--color--accent-1);
	font-size: 15px;
}
.nwh-row {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 0;
	border-bottom: 1px solid #E3E9E7;
}
.nwh-row:last-child {
	border-bottom: none;
}
.nwh-row-meta {
	display: flex;
	gap: 8px;
	align-items: center;
}
.nwh-tag {
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--wp--preset--color--accent-1);
	background: #E1EAE8;
	border-radius: 5px;
	padding: 2px 8px;
}
.nwh-muted {
	font-size: 14px;
	color: #56655F;
}
.nwh-row-title {
	font-weight: 700;
	font-size: 20px;
	text-decoration: none;
}
.nwh-row-excerpt {
	margin: 0;
	font-size: 16px;
	color: #3A4A46;
}
.nwh-side-title {
	font-family: var(--wp--preset--font-family--archivo-black);
	font-weight: 400;
	font-size: 18px;
	margin: 8px 0 6px;
}
.nwh-placeholder {
	color: var(--wp--preset--color--contrast);
	opacity: 0.65;
	font-style: italic;
	margin: 10px 0 0;
}

/* Poll bubble (only rendered when a poll is configured) */
.nwh-poll {
	display: block;
	background: #FFF0EA;
	border: 2px solid var(--wp--preset--color--accent-2);
	border-radius: 10px;
	padding: 10px 12px;
	margin: 8px 0 6px;
	text-decoration: none;
}
.nwh-poll-eyebrow {
	display: flex;
	justify-content: space-between;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 15px;
	color: #C8391A;
	margin-bottom: 4px;
}
.nwh-poll-q {
	display: block;
	font-family: var(--wp--preset--font-family--archivo-black);
	font-size: 18px;
	line-height: 1.25;
	color: var(--wp--preset--color--contrast);
}

/* ===== Footer ===== */
.nwh-foot {
	background: var(--wp--preset--color--contrast);
	color: #FFFFFF;
	padding: 32px 32px 24px;
}
.nwh-foot a {
	color: #E6EEEC;
	text-decoration: none;
}
.nwh-foot a:hover {
	text-decoration: underline;
}
.nwh-foot-top {
	border-bottom: 1px solid #2A3A33;
	padding-bottom: 16px;
	margin-bottom: 24px;
}
.nwh-foot-claim {
	font-family: var(--wp--preset--font-family--archivo-black);
	font-size: 22px;
}
.nwh-foot-top p {
	margin: 6px 0 0;
	color: #C7D2CF;
	font-size: 16px;
}
.nwh-foot-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}
.nwh-foot-h {
	color: #8FD9BE;
	font-family: var(--wp--preset--font-family--barlow-condensed);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 16px;
	margin-bottom: 10px;
}
.nwh-foot-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-size: 16px;
}
.nwh-foot-bottom {
	border-top: 1px solid #2A3A33;
	margin-top: 24px;
	padding-top: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: space-between;
	font-size: 15px;
	color: #B9C7C2;
}
.nwh-foot-legal {
	display: flex;
	gap: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 1879px) {
	.nwh-hdr-row {
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas: "logo right" "banner banner";
		row-gap: 14px;
	}
	.nwh-hdr-logo {
		grid-area: logo;
	}
	.nwh-hdr-right {
		grid-area: right;
		justify-self: end;
	}
	.nwh-ad {
		grid-area: banner;
		justify-self: center;
	}
}
@media (max-width: 1299px) {
	.nwh-hdr-row {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "logo" "right" "banner";
	}
	.nwh-hdr-right {
		justify-self: stretch;
		flex-wrap: wrap;
	}
	.nwh-hdr-search {
		flex: 1 1 320px;
	}
	.nwh-body {
		grid-template-columns: 1fr;
	}
	.nwh-foot-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 700px) {
	.nwh-hdr {
		padding: 12px 14px 0;
	}
	.nwh-hdr-row {
		min-height: 0;
	}
	.nwh-hdr-logo img {
		height: 84px;
	}
	.nwh-hdr-search {
		flex: 1 1 100%;
	}
	.nwh-ad {
		height: 100px;
	}
	.nwh-catnav {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		margin: 12px -14px 0;
	}
	.nwh-main {
		padding: 12px 10px 20px;
	}
	.nwh-foot-grid {
		grid-template-columns: 1fr;
	}
}

.nwh-forum-list{list-style:none;margin:0;padding:0}
.nwh-forum-list li{padding:8px 0;border-top:1px solid #E1EAE8;font-size:18px;line-height:1.35}
.nwh-forum-list li:first-child{border-top:0}
.nwh-forum-list a{color:#0B4F6C;font-weight:600}

/* bbPress category notice ("forum is empty") is misleading on our forum index pages */
.page .bbp-forum-content ~ .bbp-template-notice, .page #bbpress-forums > .bbp-template-notice{display:none}

/* Warmer article titles: orange with enough contrast for small text (5.0:1 on white) */
:root{--nwh-orange-text:#CC3A16}
.nwh-row-title,.wp-block-post-title,.wp-block-post-title a,.entry-title{color:var(--nwh-orange-text)}
.nwh-row-title:hover,.wp-block-post-title a:hover{text-decoration:underline;text-underline-offset:3px}

/* Article rows with an illustration tile on the left */
.nwh-row{flex-direction:row;gap:16px;align-items:flex-start}
.nwh-row-thumb{flex:0 0 132px;display:block;line-height:0}
.nwh-row-thumb img{width:132px;height:99px;object-fit:cover;border-radius:10px;display:block}
.nwh-row-text{display:flex;flex-direction:column;gap:2px;min-width:0}
.nwh-tile{width:100%;height:auto;border-radius:12px;display:block}
@media (max-width:700px){.nwh-row-thumb{flex-basis:96px}.nwh-row-thumb img{width:96px;height:72px}}

/* Account links next to the language switcher */
.nwh-hdr-lang{display:flex;align-items:center;justify-content:flex-end;gap:14px;flex-wrap:wrap}
.nwh-account{display:flex;gap:10px;align-items:center;font-weight:700;font-size:16px}
.nwh-account a{color:var(--wp--preset--color--accent-1);text-decoration:none;padding:6px 10px;border-radius:8px}
.nwh-account a:hover{text-decoration:underline}
.nwh-account-join{background:var(--wp--preset--color--accent-2);color:#0D1B24!important}

/* Embedded videos fill the column and keep their proportions */
.entry-content iframe[src*="youtube"],.wp-block-embed iframe,#bbpress-forums iframe[src*="youtube"],#bbpress-forums iframe[src*="vimeo"]{max-width:100%;width:100%;height:auto;aspect-ratio:16/9;border:0;border-radius:12px}
#bbpress-forums blockquote.tiktok-embed{max-width:605px;margin:12px 0}

/* ------------------------------------------------------------------
   Member area (BuddyPress): profiles, member directory, activity.
   Goal: a place where people feel at home, not a grey admin screen.
   ------------------------------------------------------------------ */
body.buddypress .wp-block-post-title{font-family:var(--wp--preset--font-family--archivo-black);font-weight:400;font-size:34px;line-height:1.15;margin:8px 0 14px;color:var(--nwh-orange-text)}
body.buddypress main,body.buddypress main .entry-content,body.buddypress main .wp-block-group{max-width:1100px!important;margin-left:auto;margin-right:auto}
body.buddypress .entry-content{padding-top:24px;padding-bottom:40px}
#buddypress{font-size:18px;color:var(--wp--preset--color--contrast)}
#buddypress a{color:var(--wp--preset--color--accent-1)}

/* profile header: cover, round photo, name */
#buddypress #item-header{background:#fff;border:1px solid #E3E9E7;border-radius:16px;overflow:hidden;margin-bottom:20px}
#buddypress #header-cover-image{background-color:#0B4F6C!important;background-size:cover;height:220px!important;border-radius:0}
#buddypress #item-header-cover-image{padding:0 24px 20px}
#buddypress #item-header-avatar{float:none;margin-top:-70px;position:relative;z-index:2}
#buddypress #item-header-avatar img.avatar{width:150px!important;height:150px!important;border-radius:50%;border:5px solid #fff;background:#E1EAE8;object-fit:cover}
#buddypress #item-header-content{margin-top:10px;width:100%}
#buddypress .user-nicename,#buddypress #item-header-content h2{font-family:var(--wp--preset--font-family--archivo-black);font-weight:400;font-size:30px;color:var(--nwh-orange-text);margin:0 0 4px}
#buddypress .item-meta,#buddypress .activity{color:#3A4A46;font-size:16px}

/* tabs as friendly buttons */
#buddypress #object-nav ul,#buddypress #subnav ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0 0 14px;padding:0}
#buddypress #object-nav li a,#buddypress #subnav li a{display:inline-block;padding:9px 16px;border-radius:999px;background:#E1EAE8;color:#0B4F6C;font-weight:700;text-decoration:none;font-size:17px}
#buddypress #object-nav li.selected a,#buddypress #object-nav li.current a,#buddypress #subnav li.current a{background:var(--wp--preset--color--accent-1);color:#fff}
#buddypress #object-nav li a:hover,#buddypress #subnav li a:hover{background:#cfe0dd}
#buddypress .bp-wrap,#buddypress #item-body{background:#fff;border:1px solid #E3E9E7;border-radius:16px;padding:18px 22px}
#buddypress #item-body .bp-screen-title,#buddypress .activity-header{font-family:var(--wp--preset--font-family--source-sans-3)}
#buddypress .profile-fields td.label{font-weight:700;color:#3A4A46;width:32%}
#buddypress .profile-fields td.data{color:var(--wp--preset--color--contrast)}
#buddypress button,#buddypress input[type=submit],#buddypress .button{background:var(--wp--preset--color--accent-2);color:#0D1B24;border:0;border-radius:10px;padding:11px 20px;font-weight:700;font-size:17px;cursor:pointer}

/* member directory cards */
#buddypress ul.item-list:not(.groups-list){list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
#buddypress ul.item-list:not(.groups-list)>li{background:#fff;border:1px solid #E3E9E7;border-radius:14px;padding:16px;text-align:center}
#buddypress ul.item-list:not(.groups-list) .item-avatar img.avatar{width:96px;height:96px;border-radius:50%;object-fit:cover}
#buddypress ul.item-list:not(.groups-list) .member-name a{color:var(--nwh-orange-text);font-weight:700}

/* Member header: real name is the page heading, the @handle is small */
body.buddypress main{padding-top:0!important}
body.buddypress main>.wp-block-group:first-child{padding-top:12px!important}
#buddypress .user-nicename{font-family:var(--wp--preset--font-family--source-sans-3);font-size:17px!important;color:#3A4A46!important;font-weight:600;margin:0 0 2px}
#buddypress #header-cover-image{height:170px!important}
#buddypress #item-header-avatar img.avatar{width:130px!important;height:130px!important}

/* ---- Member profile, second pass: readable, all tabs visible, one card ---- */
#buddypress .user-nicename{display:none!important}
#buddypress .bp-priority-nav-more-toggle,#buddypress .primary-nav-more,#buddypress .secondary-nav-more{display:none!important}
#buddypress #object-nav ul,#buddypress #subnav ul,#buddypress .bp-priority-object-nav-nav-items,#buddypress .bp-priority-subnav-nav-items{display:flex!important;flex-wrap:wrap;gap:8px;overflow:visible!important;height:auto!important}
#buddypress #object-nav li,#buddypress #subnav li{display:list-item!important;visibility:visible!important;width:auto!important;position:static!important;opacity:1!important}
#buddypress .bp-wrap{border:0!important;padding:0!important;background:transparent!important}
#buddypress #item-body{border:1px solid #E3E9E7;border-radius:16px;background:#fff;padding:22px 24px!important}
#buddypress #item-header{margin-bottom:16px}
#buddypress #item-header-content{padding:6px 0 0}
#buddypress .item-meta,#buddypress .activity{font-size:17px;color:#3A4A46}
#buddypress #header-cover-image{background:linear-gradient(135deg,#0B4F6C 0%,#2F7A8F 60%,#FF5A36 140%)!important}
/* "What's new" box: small round photo instead of a huge square */
#buddypress #whats-new-avatar,#buddypress #whats-new-avatar a{float:none;display:block;width:52px}
#buddypress #whats-new-avatar img,#buddypress #whats-new-form img.avatar{width:52px!important;height:52px!important;border-radius:50%;object-fit:cover}
#buddypress #whats-new-form{border:1px solid #E3E9E7;border-radius:12px;padding:14px;background:#F4F6F5}
#buddypress #whats-new-form textarea{width:100%;border:1px solid #9BB0AA;border-radius:10px;padding:10px;font-size:18px;min-height:90px}
#buddypress h2.bp-screen-title,#buddypress .bp-screen-title{font-family:var(--wp--preset--font-family--archivo-black);font-weight:400;font-size:24px;color:var(--wp--preset--color--accent-1);margin:0 0 14px}
/* Profile data as a clean list */
#buddypress table.profile-fields{width:100%;border-collapse:collapse;margin:0 0 16px}
#buddypress table.profile-fields td{padding:12px 10px;border-bottom:1px solid #E3E9E7;font-size:18px;vertical-align:top}
#buddypress table.profile-fields td.label{width:34%;font-weight:700;color:#3A4A46}
#buddypress table.profile-fields tr:last-child td{border-bottom:0}
#buddypress .bp-feedback{border-radius:10px;font-size:17px}

.nwh-profile-actions{display:flex;flex-wrap:wrap;gap:10px;margin:10px 0 4px}
.nwh-profile-actions .nwh-btn{display:inline-block;padding:11px 18px;border-radius:10px;background:#E1EAE8;color:#0B4F6C;font-weight:700;font-size:17px;text-decoration:none}
.nwh-profile-actions .nwh-btn-primary{background:var(--wp--preset--color--accent-2);color:#0D1B24}
.nwh-profile-actions .nwh-btn:hover{text-decoration:underline}
.nwh-upload-note{font-size:18px;background:#E1EAE8;border-radius:10px;padding:12px 16px;margin:0 0 16px}

/* ---- Edit profile: compact two-column form, small "who sees this" links ---- */
#buddypress #profile-edit-form,#buddypress form.standard-form.base{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 30px;align-items:start}
#buddypress #profile-edit-form>h2,#buddypress #profile-edit-form>.clear,#buddypress #profile-edit-form>.submit,#buddypress #profile-edit-form>.description,#buddypress #profile-edit-form>p,#buddypress #profile-edit-form>input[type=hidden]{grid-column:1/-1}
#buddypress #profile-edit-form .editfield{margin:0;padding:0;border:0}
#buddypress #profile-edit-form .editfield.field_type_textarea,#buddypress #profile-edit-form .editfield.field_type_wp-textarea{grid-column:1/-1}
#buddypress #profile-edit-form label,#buddypress #profile-edit-form legend{display:block;font-weight:700;font-size:18px;margin:0 0 6px;color:#0D1B24}
#buddypress #profile-edit-form input[type=text],#buddypress #profile-edit-form input[type=url],#buddypress #profile-edit-form input[type=email],#buddypress #profile-edit-form textarea,#buddypress #profile-edit-form select{width:100%;box-sizing:border-box;font-size:18px;padding:10px 12px;border:1px solid #9BB0AA;border-radius:10px;background:#fff}
#buddypress #profile-edit-form textarea{min-height:130px}
#buddypress .description{font-size:16px;color:#56655F;margin:4px 0 0}
/* the "Shown to: ... Change" line, tiny and calm instead of a big orange button */
#buddypress .field-visibility-settings-toggle,#buddypress .field-visibility-settings-notoggle{font-size:15px;color:#56655F;margin:6px 0 0;display:block}
#buddypress .field-visibility-settings-toggle .current-visibility-level{font-weight:600;color:#3A4A46}
#buddypress .visibility-toggle-link,#buddypress button.visibility-toggle-link,#buddypress .field-visibility-settings-toggle button{all:unset;cursor:pointer;color:#0B4F6C;font-size:15px;font-weight:700;text-decoration:underline;padding:0 0 0 6px}
#buddypress .field-visibility-settings{font-size:16px;background:#F4F6F5;border-radius:10px;padding:10px 14px;margin:6px 0 0}
#buddypress .field-visibility-settings label{font-weight:400;font-size:16px;display:block;margin:2px 0}
#buddypress .field-visibility-settings .field-visibility-settings-close{all:unset;cursor:pointer;color:#0B4F6C;font-weight:700;text-decoration:underline;font-size:15px}
@media (max-width:760px){#buddypress #profile-edit-form{grid-template-columns:1fr}}
/* big orange buttons only for real submit actions */
#buddypress button:not(.visibility-toggle-link):not(.field-visibility-settings-close),#buddypress input[type=submit],#buddypress .button{background:var(--wp--preset--color--accent-2);color:#0D1B24}

/* Member area: no orange buttons. Main action = deep blue, the rest = soft blue-grey. */
#buddypress button:not(.visibility-toggle-link):not(.field-visibility-settings-close),
#buddypress input[type=submit],
#buddypress input[type=button],
#buddypress .button,
#buddypress a.button{background:#0B4F6C!important;color:#fff!important;border:0;border-radius:10px;padding:12px 22px;font-weight:700;font-size:18px;cursor:pointer;text-decoration:none}
#buddypress button:not(.visibility-toggle-link):not(.field-visibility-settings-close):hover,
#buddypress input[type=submit]:hover,#buddypress .button:hover{background:#083a50!important}
.nwh-profile-actions .nwh-btn-primary{background:#0B4F6C!important;color:#fff!important}
.nwh-profile-actions .nwh-btn{background:#E1EAE8;color:#0B4F6C}

/* Member area: buttons without colour fill. Bold dark text, thin outline only. */
#buddypress button:not(.visibility-toggle-link):not(.field-visibility-settings-close),
#buddypress input[type=submit],#buddypress input[type=button],#buddypress .button,#buddypress a.button,
.nwh-profile-actions .nwh-btn,.nwh-profile-actions .nwh-btn-primary{background:transparent!important;color:#0D1B24!important;border:2px solid #0D1B24!important;border-radius:10px;font-weight:800;box-shadow:none}
#buddypress button:not(.visibility-toggle-link):not(.field-visibility-settings-close):hover,
#buddypress input[type=submit]:hover,#buddypress .button:hover,.nwh-profile-actions .nwh-btn:hover{background:#F4F6F5!important;text-decoration:underline}

/* "Where to find me": big link buttons */
.nwh-linkbtns-h{font-family:var(--wp--preset--font-family--archivo-black);font-weight:400;font-size:22px;color:var(--wp--preset--color--accent-1);margin:24px 0 12px}
.nwh-linkbtns{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.nwh-linkbtn{display:flex;align-items:center;gap:12px;text-align:left;padding:14px 16px;border:2px solid #0D1B24;border-radius:12px;color:#0D1B24!important;font-weight:800;font-size:19px;text-decoration:none!important;background:#fff}
.nwh-linkbtn:hover{background:#F4F6F5;text-decoration:underline!important}

/* ===== Member page, from the approved design ===== */
.nwhp{max-width:1100px;margin:0 auto;font-size:18px;color:#0D1B24}
.nwhp a{color:#0B4F6C}
.nwhp-card{background:#fff;border:1px solid #E3E9E7;border-radius:18px}
.nwhp-head{overflow:hidden;margin-bottom:22px}
.nwhp-cover{height:210px;background:linear-gradient(120deg,#0B4F6C 0%,#2F7A8F 55%,#FF8A6B 130%) center/cover no-repeat}
.nwhp-head-row{display:flex;gap:26px;flex-wrap:wrap;align-items:flex-end;padding:0 32px 22px}
.nwhp-avatar{width:150px;height:150px;border-radius:50%;border:6px solid #fff;background:#FFE3D0;margin-top:-75px;overflow:hidden;flex-shrink:0;box-sizing:border-box}
.nwhp-avatar img{width:100%!important;height:100%!important;object-fit:cover;display:block}
.nwhp-who{flex:1 1 260px;min-width:240px;padding-top:14px}
.nwhp-name{margin:0;font-family:var(--wp--preset--font-family--archivo-black);font-weight:400;font-size:38px;line-height:1.1;color:#CC3A16}
.nwhp-meta{margin-top:8px;font-size:19px;color:#3A4A46}
.nwhp-actions{display:flex;gap:10px;flex-wrap:wrap}
.nwhp .nwhp-btn{display:inline-block;padding:12px 20px;border:2px solid #0D1B24;border-radius:10px;color:#0D1B24;font-weight:800;font-size:17px;text-decoration:none;background:#fff}
.nwhp .nwhp-btn:hover{background:#F4F6F5;text-decoration:underline}
.nwhp-tabs{display:flex;gap:6px;flex-wrap:wrap;border-top:1px solid #E3E9E7;padding:0 26px}
.nwhp .nwhp-tab{display:inline-block;padding:16px 16px 13px;color:#3A4A46;font-weight:700;font-size:18px;text-decoration:none;border-bottom:4px solid transparent}
.nwhp .nwhp-tab.is-on{color:#0D1B24;border-bottom-color:#0D1B24}
.nwhp .nwhp-tab:hover{color:#0D1B24}
.nwhp-grid{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}
.nwhp-col{display:flex;flex-direction:column;gap:22px;min-width:0}
.nwhp-sec{padding:26px 28px}
.nwhp-side{padding:22px 24px}
.nwhp-sec h2{margin:0 0 12px;font-family:var(--wp--preset--font-family--archivo-black);font-weight:400;font-size:24px;color:#0B4F6C}
.nwhp-side h2{font-size:20px}
.nwhp-text{margin:0;font-size:19px;line-height:1.6}
.nwhp-hint{margin:0;font-size:17px;color:#3A4A46;line-height:1.5}
.nwhp-facts{margin:0;display:flex;flex-direction:column;gap:2px}
.nwhp-facts dt{font-size:15px;font-weight:600;color:#56655F;margin-top:10px}
.nwhp-facts dt:first-child{margin-top:0}
.nwhp-facts dd{margin:0;font-size:18px}
.nwhp-list{margin:0;padding-left:20px;font-size:17px;line-height:1.5}
.nwhp-body{padding:22px 24px}
@media (max-width:860px){.nwhp-grid{grid-template-columns:1fr}.nwhp-head-row{padding:0 18px 18px}.nwhp-tabs{padding:0 10px}}

/* Member pages: use the full 1100px like the design (no 720px BuddyPress wrapper, no stacked 50px paddings) */
body.buddypress .buddypress-wrap,#buddypress.buddypress-wrap{max-width:none!important;width:100%}
body.buddypress main{padding-left:24px!important;padding-right:24px!important}
body.buddypress main .wp-block-group,body.buddypress main .entry-content{padding-left:0!important;padding-right:0!important;max-width:1100px!important}
body.buddypress{background:#F4F6F5}

/* ===== Side advertising: only when each side has at least 300px (window wider than 1960px column + 2x300px) ===== */
.nwh-wall,.nwh-wall-skin{display:none}
@media (min-width:2560px){
	.wp-site-blocks{position:relative;z-index:1}
	.nwh-wall{display:flex;flex-direction:column;align-items:center;position:fixed;top:0;bottom:0;width:calc((100vw - 1960px) / 2);z-index:0;box-sizing:border-box;padding:16px 12px;overflow:hidden}
	.nwh-wall-l{left:0}.nwh-wall-r{right:0}
	.nwh-wall .nwh-ad-label{align-self:flex-start;margin-bottom:10px}
	.nwh-wall-ad{width:100%;text-align:center}.nwh-wall-ad img{max-width:100%;width:auto;height:auto;max-height:calc(100vh - 70px);object-fit:contain}
	.nwh-wall-house{margin-top:30vh;max-width:320px;text-align:center;color:#3A4A46;font-size:19px;line-height:1.5}
	.nwh-wall-house strong{display:block;font-family:var(--wp--preset--font-family--archivo-black);font-weight:400;font-size:24px;color:#0B4F6C;margin-bottom:8px}
	.nwh-wall-house p{margin:0 0 12px}
	.nwh-wall-house a{font-weight:700;color:#0B4F6C}
	.nwh-wall-skin{display:block;position:fixed;inset:0;z-index:0;background-position:center top;background-size:cover;background-repeat:no-repeat}
	.nwh-wall-link{z-index:2;cursor:pointer}
}
/* A separate side ad keeps its own size and only shrinks if the side is narrower than the image */
.nwh-wall-ad img{max-width:100%;height:auto;display:inline-block}

/* A real (booked) ad: no dashed house frame behind it; the "Advertisement" label sits as a small chip on the image */
.nwh-ad-live{border:0!important;background:transparent!important;height:auto;overflow:visible}
.nwh-ad-live .nwh-ad-body{line-height:0}
.nwh-ad-live .nwh-ad-body img{display:block;width:100%;height:auto}
.nwh-ad-live .nwh-ad-label{top:0;left:0;z-index:2;background:rgba(255,255,255,.88);padding:2px 8px;border-radius:0 0 8px 0;color:#0D1B24}

/* The "Advertisement" mark of a real ad: a small grey line ABOVE the picture, never on it */
.nwh-ad-live{flex-direction:column;align-items:stretch;justify-content:flex-start}
.nwh-ad-live .nwh-ad-label{position:static;align-self:flex-end;background:none;padding:0 2px 3px;border-radius:0;font-size:11px;letter-spacing:.14em;color:#6B7B76;line-height:1}
.nwh-linkbtn-i{width:38px;height:38px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center;font-family:var(--wp--preset--font-family--archivo-black);font-size:19px;flex-shrink:0}
.nwh-linkbtn-t{flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ===== Forum: wide like the member pages, bigger text for easy reading ===== */
body.bbpress main{padding-left:24px!important;padding-right:24px!important}
body.bbpress main .wp-block-group,body.bbpress main .entry-content,body.bbpress main .wp-block-post-content{max-width:1100px!important;margin-left:auto!important;margin-right:auto!important}
body.bbpress #bbpress-forums{font-size:19px;line-height:1.6;color:#0D1B24}
body.bbpress #bbpress-forums ul.bbp-forums,body.bbpress #bbpress-forums ul.bbp-topics,body.bbpress #bbpress-forums ul.bbp-replies{font-size:19px;border:1px solid #E3E9E7;border-radius:14px;overflow:hidden;background:#fff}
body.bbpress #bbpress-forums li.bbp-header{background:#0B4F6C;color:#fff;font-size:17px;padding:12px 16px}
body.bbpress #bbpress-forums li.bbp-header a,body.bbpress #bbpress-forums li.bbp-header div{color:#fff}
body.bbpress #bbpress-forums li.bbp-body ul.forum,body.bbpress #bbpress-forums li.bbp-body ul.topic{padding:16px;border-top:1px solid #E3E9E7}
body.bbpress #bbpress-forums a.bbp-forum-title,body.bbpress #bbpress-forums a.bbp-topic-permalink{font-size:22px;font-weight:700}
body.bbpress #bbpress-forums .bbp-forum-content,body.bbpress #bbpress-forums .bbp-topic-meta,body.bbpress #bbpress-forums .bbp-reply-content{font-size:19px}
body.bbpress #bbpress-forums div.bbp-forum-header,body.bbpress #bbpress-forums div.bbp-topic-header,body.bbpress #bbpress-forums div.bbp-reply-header{font-size:17px}
body.bbpress #bbpress-forums .bbp-breadcrumb{font-size:17px;margin-bottom:14px}
body.bbpress #bbpress-forums textarea,body.bbpress #bbpress-forums input[type=text]{font-size:19px;padding:10px 12px;border:2px solid #0D1B24;border-radius:10px;width:100%;box-sizing:border-box}
body.bbpress #bbpress-forums .bbp-submit-wrapper button{font-size:20px;padding:12px 26px}
body.bbpress .bbpress-wrapper,body.bbpress #bbpress-forums{max-width:none!important;width:100%;margin-left:0!important;margin-right:0!important}
body.bbpress .entry-content>*,body.bbpress .wp-block-post-content>*{max-width:1052px!important}
body.bbpress main .entry-content,body.bbpress main .wp-block-post-content{padding-left:0!important;padding-right:0!important}
body.bbpress main .wp-block-post-title,body.bbpress main h1{max-width:1052px!important;margin-left:auto!important;margin-right:auto!important}
.nwh-title-switch{margin:18px 0;padding:14px 16px;border:2px solid #0D1B24;border-radius:12px;font-size:19px;background:#fff}.nwh-title-switch input{width:22px;height:22px;vertical-align:middle;margin-right:8px}

/* ===== Data tables ===== */
.nwh-table-wrap{overflow-x:auto;margin:14px 0}
.nwh-table{width:100%;border-collapse:collapse;font-size:19px;background:#fff;border:1px solid #E3E9E7}
.nwh-table th{background:#0B4F6C;color:#fff;text-align:left;padding:12px 14px;font-size:17px}
.nwh-table td{padding:12px 14px;border-top:1px solid #E3E9E7;vertical-align:top}
.nwh-table td:last-child{width:60px;text-align:center;font-size:24px}
.nwh-table a{font-weight:700}

/* ===== Archive ===== */
.nwh-archive-search{display:flex;gap:10px;margin:0 0 18px;max-width:640px}
.nwh-archive-search .nwh-in{flex:1;font-size:19px;padding:12px 14px;border:2px solid #0D1B24;border-radius:10px}
.nwh-archive-link{margin:18px 0 4px;font-size:20px;font-weight:700}
.nwh-pager{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0;font-size:19px}
.nwh-pager .page-numbers{padding:10px 16px;border:2px solid #0D1B24;border-radius:10px;text-decoration:none;color:#0D1B24;background:#fff;font-weight:700}
.nwh-pager .page-numbers.current{background:#0B4F6C;border-color:#0B4F6C;color:#fff}


/* ===== Menu: six main links and a "More" dropdown ===== */
.nwh-catnav{position:relative}
.nwh-more{position:relative}
.nwh-more summary{list-style:none;cursor:pointer;font-family:var(--wp--preset--font-family--barlow-condensed);font-weight:700;font-size:18px;text-transform:uppercase;letter-spacing:.03em;color:#fff;padding:13px 22px;white-space:nowrap}
.nwh-more summary::-webkit-details-marker{display:none}
.nwh-more summary::after{content:" ▾"}
.nwh-more[open] summary,.nwh-more summary:hover{background:var(--wp--preset--color--contrast)}
.nwh-more-list{position:absolute;right:0;top:100%;z-index:30;min-width:260px;background:#fff;border:2px solid var(--wp--preset--color--accent-1);border-radius:0 0 12px 12px;box-shadow:0 10px 24px rgba(13,27,36,.18);display:flex;flex-direction:column}
.nwh-more-list a{font-family:var(--wp--preset--font-family--source-sans-3);text-transform:none;letter-spacing:0;font-size:20px;font-weight:600;color:#0D1B24!important;padding:13px 20px;border-top:1px solid #E3E9E7;white-space:nowrap}
.nwh-more-list a:first-child{border-top:0}
.nwh-more-list a:hover{background:#EAF1F5}
@media (max-width:700px){
	.nwh-catnav{flex-wrap:wrap!important;overflow:visible!important}
	.nwh-more{flex:1 0 100%}
	.nwh-more-list{position:static;border-radius:0;box-shadow:none}
}

/* =====================================================================================================
 * Header, three designs (overrides of the older rules above)
 *  - laptop/desktop (>= 1200px): slim row, search lives in the blue bar
 *  - tablet (701-1199px): logo and account on one line, banner below, search full width
 *  - phone (<= 700px): small logo, search, one collapsed "Menu", banner last
 * ===================================================================================================== */
.nwh-hdr{padding:8px 32px 0}
.nwh-hdr-row{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;grid-template-areas:none!important;align-items:center;gap:20px;min-height:0!important}
.nwh-hdr-logo{grid-area:auto!important}
.nwh-hdr-logo img{height:96px!important;width:auto}
.nwh-hdr .nwh-ad{grid-area:auto!important;justify-self:center;max-width:100%}
.nwh-hdr-lang{flex-direction:column;align-items:flex-end;gap:8px}
.nwh-search-m,.nwh-menu-m{display:none}
.nwh-catnav{display:flex!important;align-items:center;justify-content:center;flex-wrap:wrap;margin:8px -32px 0!important;padding:0 32px;position:relative}
.nwh-catnav .nwh-catnav-main{padding:12px 20px}
.nwh-search-bar{margin:0 0 0 auto;flex:0 1 260px}
.nwh-search-bar .nwh-in{min-height:38px;padding:4px 12px;border:2px solid #fff;border-radius:8px}
@media (max-width:1399px){
	.nwh-hdr-row{grid-template-columns:auto minmax(0,1fr)!important;grid-template-areas:"logo right" "banner banner"!important;row-gap:8px}
	.nwh-hdr-logo{grid-area:logo!important}
	.nwh-hdr-lang{grid-area:right;justify-self:end}
	.nwh-hdr .nwh-ad{grid-area:banner!important;justify-self:center}
	.nwh-catnav .nwh-catnav-main{padding:12px 14px}
	.nwh-search-bar{flex:0 1 200px}
}
@media (max-width:1199px){
	.nwh-hdr{padding:8px 20px 0}
	.nwh-hdr-logo img{height:76px!important}
	.nwh-catnav{margin:8px -20px 0!important;padding:0 20px}
	.nwh-search-bar{display:none}
	.nwh-search-m{display:block;margin:8px 0 0}
	.nwh-search-m .nwh-in{min-height:44px;font-size:18px}
}
@media (max-width:700px){
	.nwh-hdr{padding:8px 14px 0}
	.nwh-hdr-row{grid-template-columns:auto minmax(0,1fr)!important;grid-template-areas:"logo right" "banner banner"!important}
	.nwh-hdr-logo img{height:58px!important}
	.nwh-hdr-lang{flex-direction:row;flex-wrap:wrap;justify-content:flex-end;gap:6px}
	.nwh-hdr .nwh-ad{order:3}
	.nwh-catnav{display:none!important}
	.nwh-menu-m{display:block;margin:8px -14px 0;background:var(--wp--preset--color--accent-1)}
	.nwh-menu-m summary{list-style:none;cursor:pointer;color:#fff;font-family:var(--wp--preset--font-family--barlow-condensed);font-weight:700;font-size:22px;text-transform:uppercase;padding:14px 18px}
	.nwh-menu-m summary::-webkit-details-marker{display:none}
	.nwh-menu-m summary::before{content:"☰  "}
	.nwh-menu-m-list{display:flex;flex-direction:column;background:#fff;border-bottom:2px solid var(--wp--preset--color--accent-1)}
	.nwh-menu-m-list a{font-size:21px;font-weight:600;color:#0D1B24;text-decoration:none;padding:14px 18px;border-top:1px solid #E3E9E7}
}
.nwh-hdr{max-width:100%;overflow-x:clip}
.nwh-hdr .nwh-ad{width:100%;max-width:728px;min-width:0;height:auto;min-height:90px}
.nwh-hdr .nwh-ad img{max-width:100%;height:auto}
@media (max-width:700px){.nwh-hdr .nwh-ad{min-height:0}}

/* Group finder next to the search: in the blue bar on laptop, under the search on tablet and phone */
.nwh-finder-m{display:none}
.nwh-finder-bar{flex:0 1 330px}
.nwh-finder-bar .nwh-finder{background:transparent;padding:0;gap:6px;width:100%}
.nwh-finder-bar .nwh-in-psc{min-height:38px;padding:4px 12px;border:2px solid #fff;border-radius:8px;font-size:16px}
.nwh-finder-bar .nwh-btn{background:var(--wp--preset--color--accent-2);color:#0D1B24;min-height:38px;padding:4px 14px;font-size:16px;white-space:nowrap;border-radius:8px}
.nwh-search-bar{flex:0 1 210px}
@media (max-width:1399px){.nwh-finder-bar{flex:0 1 300px}.nwh-search-bar{flex:0 1 170px}}
@media (max-width:1199px){
	.nwh-finder-bar{display:none}
	.nwh-finder-m{display:block;margin:8px 0 0}
	.nwh-finder-m .nwh-finder{width:100%}
	.nwh-finder-m .nwh-in-psc{min-height:44px;font-size:18px}
	.nwh-finder-m .nwh-btn{min-height:44px;font-size:17px;white-space:nowrap}
}
.nwh-groups-invite{padding:22px 26px;margin:18px 0}
.nwh-groups-invite h2{margin:0 0 8px;font-size:26px}
.nwh-groups-invite p{font-size:19px;margin:8px 0}
.nwh-btn-line{background:#fff!important;color:#0B4F6C!important;border:2px solid #0B4F6C;text-decoration:none;display:inline-block;padding:10px 18px;border-radius:10px;font-weight:700}
.nwh-groups-invite .nwh-btn{display:inline-block;text-decoration:none;padding:10px 18px;border-radius:10px;font-weight:700}

/* ===== Laptop/PC header, round two: bigger logo, search and group finder clearly two separate things ===== */
@media (min-width:1400px){
	.nwh-hdr-logo img{height:128px!important}
}
.nwh-catnav .nwh-search-bar{flex:0 1 240px;margin:0 0 0 auto;background:#fff;border-radius:999px;display:flex;align-items:center;padding-left:14px;border:2px solid #fff}
.nwh-catnav .nwh-search-bar::before{content:"";flex:0 0 18px;height:18px;margin-right:6px;background:no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B4F6C' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cline x1='15' y1='15' x2='22' y2='22'/%3E%3C/svg%3E")}
.nwh-catnav .nwh-search-bar .nwh-in{border:0!important;border-radius:999px;background:transparent;min-height:36px;padding:2px 10px 2px 0;font-size:16px}
.nwh-catnav .nwh-finder-bar{flex:0 1 360px;margin-left:22px;padding-left:22px;border-left:2px solid rgba(255,255,255,.4)}
.nwh-catnav .nwh-finder-bar .nwh-finder{display:flex;align-items:center;gap:0;background:#fff;border-radius:999px;padding:0;border:2px solid #fff;overflow:hidden;width:100%}
.nwh-catnav .nwh-finder-bar .nwh-in-psc{border:0!important;border-radius:0;background:transparent;min-height:36px;padding:2px 10px 2px 38px;flex:1 1 0;font-size:16px;background:no-repeat 12px center/18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF5A36'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.500a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E")}
.nwh-catnav .nwh-finder-bar .nwh-btn{border-radius:0;min-height:36px;padding:2px 16px;background:var(--wp--preset--color--accent-2);color:#0D1B24;font-size:15px}
@media (max-width:1399px){
	.nwh-catnav .nwh-search-bar{flex:0 1 190px}
	.nwh-catnav .nwh-finder-bar{flex:0 1 330px;margin-left:14px;padding-left:14px}
}

/* ===== Front page, first screen ===== */
.nwh-first{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin:0 0 16px;align-items:stretch}
.nwh-first .nwh-card{padding:22px 24px}
.nwh-first-h{margin:0 0 4px;font-size:30px;line-height:1.15}
.nwh-first-sub{margin:0 0 16px;font-size:19px;color:#3A4A46}
.nwh-start-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.nwh-start-btn{display:flex;flex-direction:column;gap:2px;justify-content:center;min-height:84px;padding:14px 18px;border:2px solid #0B4F6C;border-radius:14px;background:#fff;text-decoration:none!important;color:#0D1B24!important}
.nwh-start-btn:first-child{background:#0B4F6C;color:#fff!important}
.nwh-start-btn:first-child .nwh-start-d{color:#DCE9EF}
.nwh-start-btn:hover{box-shadow:0 4px 14px rgba(11,79,108,.25)}
.nwh-start-t{font-family:var(--wp--preset--font-family--archivo-black);font-size:22px;line-height:1.2}
.nwh-start-d{font-size:17px;color:#3A4A46;line-height:1.35}
.nwh-q-title{margin:6px 0 6px;font-size:23px;line-height:1.25;font-family:var(--wp--preset--font-family--source-sans-3);font-weight:800}
.nwh-q-text{margin:0 0 10px;font-size:18px;line-height:1.45}
.nwh-q-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 16px}
.nwh-q-btn{display:inline-block;padding:12px 24px;border-radius:12px;background:#FF5A36;color:#0D1B24!important;font-weight:800;font-size:19px;text-decoration:none!important}
.nwh-q-count{font-size:16px;color:#56655F}
.nwh-first-events{border-top:1px solid #E3E9E7;padding-top:10px}
@media (max-width:1299px){
	.nwh-first{grid-template-columns:1fr}
}
@media (max-width:700px){
	.nwh-start-grid{grid-template-columns:1fr}
	.nwh-first-h{font-size:25px}
	/* On a phone only the six newest articles; the rest is one tap away in the archive. */
	.nwh-body-main .nwh-row:nth-of-type(n+7){display:none}
}
.nwh-first-start{display:flex;flex-direction:column;justify-content:center}
.nwh-start-btn{min-height:104px}
.nwh-start-t{font-size:24px}
@media (max-width:700px){.nwh-start-btn{min-height:84px}}

/* ===== Comments ===== */
.wp-block-comments{max-width:var(--wp--style--global--content-size,720px);margin:40px auto 0;font-size:19px;line-height:1.6}
.wp-block-comments .wp-block-comments-title,.wp-block-comments #reply-title{font-family:var(--wp--preset--font-family--archivo-black);font-size:26px;margin:0 0 12px}
.wp-block-comment-template{list-style:none;padding:0;margin:0 0 24px}
.wp-block-comment-template li{margin:0 0 16px;padding:16px 18px;background:#fff;border:1px solid #E3E9E7;border-radius:14px}
.wp-block-comment-template .wp-block-comment-author-name{font-weight:800;font-size:19px}
.wp-block-comment-template .wp-block-comment-date,.wp-block-comment-template .wp-block-comment-date a{font-size:15px;color:#56655F;text-decoration:none}
.wp-block-comment-template .wp-block-comment-reply-link a,.wp-block-comment-template .wp-block-comment-edit-link a{font-size:17px;font-weight:700}
.comment-form textarea{width:100%;min-height:150px;font-size:19px;padding:12px 14px;border:2px solid #0D1B24;border-radius:12px;box-sizing:border-box;font-family:inherit}
.comment-form label{display:block;font-weight:700;margin-bottom:6px}
.comment-form .form-submit .submit,.comment-form input[type=submit]{min-height:48px;padding:10px 28px;font-size:19px;font-weight:800;border:0;border-radius:12px;background:#FF5A36;color:#0D1B24;cursor:pointer}
.must-log-in{font-size:19px;padding:16px 18px;background:#EAF1F5;border-radius:12px}
.nwh-comment-note{font-size:16px;color:#56655F}

/* ===== "Start here" as a slim strip: four bubbles in a row, traffic-light colours ===== */
.nwh-first{display:block!important;margin:0 0 14px}
.nwh-first-start.nwh-card{padding:12px 16px;margin:0 0 12px;display:block}
.nwh-start-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.nwh-first-h{margin:0;font-size:22px;line-height:1.2;white-space:nowrap}
.nwh-start-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;flex:1 1 520px}
.nwh-start-btn{display:flex;align-items:center;justify-content:center;min-height:50px!important;padding:6px 14px!important;border:0!important;border-radius:999px!important;text-align:center;box-shadow:none}
.nwh-start-btn .nwh-start-t{font-family:var(--wp--preset--font-family--source-sans-3);font-weight:800;font-size:19px;line-height:1.15}
.nwh-start-btn:hover{filter:brightness(1.08);box-shadow:0 3px 10px rgba(13,27,36,.28)}
.nwh-first-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.nwh-first-two .nwh-card{padding:14px 18px}
.nwh-first-q .nwh-q-title{font-size:21px;margin:4px 0}
.nwh-first-q .nwh-q-text{font-size:17px;margin:0 0 8px}
.nwh-first-q .nwh-q-actions{margin:0}
.nwh-first-events .nwh-evl{padding:6px 0}
.nwh-first-events .nwh-evl-title{font-size:17px}
@media (max-width:1199px){.nwh-first-h{white-space:normal;flex:1 1 100%}.nwh-first-two{grid-template-columns:1fr}}
@media (max-width:700px){.nwh-start-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nwh-start-btn .nwh-start-t{font-size:18px}}

/* PayPal hint in the house ad slots: text only, not clickable, not in the page text */
.nwh-pp::after{content:attr(data-u) "\0040" attr(data-d);font-weight:700;user-select:none;-webkit-user-select:none;pointer-events:none}
.nwh-pp-line{display:block;font-size:14px;color:#56655F;margin-top:2px;font-family:var(--wp--preset--font-family--source-sans-3);text-transform:none;letter-spacing:0;font-weight:600}
.nwh-ad-body{display:flex;flex-direction:column;align-items:center;justify-content:center}
.nwh-wall-house .nwh-pp-line{font-size:16px;margin-top:14px;color:#3A4A46}

/* "Start here" bubbles: only the portal's own colours, blue and orange alternating */
.nwh-sb-1,.nwh-sb-3{background:#0B4F6C!important;color:#fff!important}
.nwh-sb-2,.nwh-sb-4{background:#FF5A36!important;color:#0D1B24!important}

/* ===== Compact article list: two columns of small tiles (front page and archive) ===== */
.nwh-body-main>.nwh-card,.nwh-archive.nwh-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:22px;align-items:start}
.nwh-body-main>.nwh-card>.nwh-card-head,.nwh-body-main>.nwh-card>.nwh-archive-link,.nwh-body-main>.nwh-card>.nwh-placeholder{grid-column:1 / -1}
.nwh-body-main .nwh-row,.nwh-archive .nwh-row{padding:9px 0;gap:12px;border-bottom:1px solid #E3E9E7}
.nwh-body-main .nwh-row:nth-last-of-type(-n+2){border-bottom:0}
.nwh-body-main .nwh-row-thumb,.nwh-archive .nwh-row-thumb{flex:0 0 104px}
.nwh-body-main .nwh-row-thumb img,.nwh-archive .nwh-row-thumb img{width:104px;height:78px;border-radius:8px}
.nwh-body-main .nwh-row-meta,.nwh-archive .nwh-row-meta{font-size:14px;gap:8px}
.nwh-body-main .nwh-row-title,.nwh-archive .nwh-row-title{font-size:19px;line-height:1.22}
.nwh-body-main .nwh-row-excerpt,.nwh-archive .nwh-row-excerpt{font-size:15px;line-height:1.4;margin:3px 0 0;color:#3A4A46;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
@media (max-width:899px){
	.nwh-body-main>.nwh-card,.nwh-archive.nwh-card{grid-template-columns:1fr}
	.nwh-body-main .nwh-row:nth-last-of-type(-n+2){border-bottom:1px solid #E3E9E7}
}
@media (max-width:700px){
	.nwh-body-main .nwh-row-thumb,.nwh-archive .nwh-row-thumb{flex-basis:84px}
	.nwh-body-main .nwh-row-thumb img,.nwh-archive .nwh-row-thumb img{width:84px;height:63px}
	.nwh-body-main .nwh-row-excerpt,.nwh-archive .nwh-row-excerpt{display:none}
}

/* ===== Fluid width of articles and pages: grows with the screen, reading width kept sensible ===== */
body.single-post,body.page:not(.buddypress):not(.bbpress){--wp--style--global--content-size:clamp(720px,64vw,1120px)}
.wp-block-comments{max-width:var(--wp--style--global--content-size,720px)}
body.single-post .wp-block-post-content p,body.single-post .wp-block-post-content li{line-height:1.65}
/* A wider article must not push its content down: the top image keeps a slim, fixed height. */
body.single-post .wp-block-post-featured-image{margin-bottom:12px}
body.single-post .wp-block-post-featured-image img{width:100%;height:240px!important;max-height:240px;object-fit:cover;border-radius:14px}
/* Pictures inside articles: a wide strip across both columns; sources folded away (Karel 2026-10-03: nobody reads them). */
.nwh-fig{margin:18px 0!important;max-width:none!important;break-inside:avoid}
.nwh-fig img{display:block;width:100%;height:clamp(200px,22vw,270px);object-fit:cover;object-position:center 40%;border-radius:14px}
.nwh-chart{column-span:all;margin:26px 0!important}
.nwh-chart img{height:auto!important;object-fit:contain!important;background:#fff;border:1px solid #D5DEDA;border-radius:14px}
.nwh-doc img{height:auto;max-height:430px;object-fit:contain;background:#fff;border:1px solid #D5DEDA}
.nwh-fig figcaption{margin-top:6px;font-size:15px;color:#56655F}
.nwh-src{break-inside:avoid;margin:22px 0 0;font-size:15px;color:#56655F}
.nwh-src summary{cursor:pointer;font-weight:700;color:#56655F}
.nwh-src ul{margin:8px 0 0 18px}
/* Signature under the articles: the team's shield and name (Karel 2026-10-03: always "Nordic Walking Hub Team"). */
.nwh-sign{display:flex;align-items:center;gap:16px;margin:34px 0 8px!important;padding:18px 0 0;border-top:2px solid #D5DEDA;column-span:all;font-style:normal!important;font-weight:800;font-size:20px;line-height:1.2;color:#0B4F6C}
.nwh-sign::before{content:"";flex:none;width:64px;height:64px;background:url(assets/brand/nwh-favicon.png) center/contain no-repeat}
.nwh-sign em{font-style:normal}
/* Article title: modest, not huge (Karel 2026-10-03). */
body.single-post h1.wp-block-post-title{font-size:clamp(26px,2.4vw,34px)!important;line-height:1.15!important}
/* Articles on a wide screen: text in two columns, smaller title, slim top: the page is wider and much shorter (Karel 2026-10-03). Phones keep one column. */
@media(min-width:1100px){
body.single-post main>.wp-block-group:first-child{padding-top:34px!important}
body.single-post .wp-block-post-featured-image img{height:200px!important;max-height:200px!important}
body.single-post .wp-block-post-content{column-count:2;column-gap:56px}
body.single-post .wp-block-post-content p{orphans:2;widows:2}
body.single-post .wp-block-post-content h2{break-after:avoid;margin-top:26px}
body.single-post .wp-block-post-content h2:first-child{margin-top:0}
body.single-post .wp-block-post-content ul,body.single-post .wp-block-post-content ol{break-inside:avoid}
}
.nwh-foot-help{font-size:16px;opacity:.9}
.nwh-foot-help .nwh-pp::after{font-weight:700}

/* Cookie bar (FAZ Cookie Manager): large readable text and buttons, accept and decline equally prominent. */
#faz-consent .faz-notice-des, #faz-consent .faz-notice-des p, #faz-consent .faz-title { font-size: 18px; line-height: 1.45; }
#faz-consent .faz-btn, .faz-modal .faz-btn { font-size: 18px; line-height: 1.3; min-height: 48px; padding: 8px 22px; font-weight: 700; }
#faz-consent .faz-policy, #faz-consent .faz-btn-readmore { font-size: 18px; }
.faz-modal, .faz-modal p, .faz-modal .faz-btn { font-size: 17px; }
@media (max-width: 600px) {
	#faz-consent .faz-notice-des, #faz-consent .faz-notice-des p, #faz-consent .faz-title, #faz-consent .faz-policy { font-size: 16px; line-height: 1.35; }
	#faz-consent .faz-btn { font-size: 17px; min-height: 44px; padding: 6px 14px; }
}
/* Footer newsletter signup (Fluent Forms + FluentCRM) */
.nwh-foot-news { border-bottom: 1px solid #2A3A33; padding-bottom: 20px; margin-bottom: 24px; max-width: 640px; }
.nwh-foot-news p { margin: 0 0 10px; color: #C7D2CF; font-size: 16px; }
.nwh-foot-news .fluent_form_wrapper form, .nwh-foot-news form.frm-fluent-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.nwh-foot-news .ff-el-group { margin: 0; flex: 1 1 260px; }
.nwh-foot-news input[type="email"] { font-size: 18px; min-height: 48px; padding: 8px 14px; width: 100%; border: 2px solid #fff; border-radius: 6px; color: #0D1B24; background: #fff; }
.nwh-foot-news .ff_submit_btn_wrapper { margin: 0; }
.nwh-foot-news .ff-btn-submit { font-size: 18px; font-weight: 700; min-height: 48px; padding: 8px 22px; background: #FF5A36 !important; border: 2px solid #FF5A36 !important; color: #0D1B24 !important; border-radius: 6px; }
.nwh-foot-news .ff-btn-submit:hover { background: #fff !important; border-color: #fff !important; }
.nwh-foot-news .ff-message-success { color: #fff; font-size: 17px; border: 2px solid #fff; padding: 10px 14px; border-radius: 6px; }
.nwh-foot-news .error.text-danger { color: #FFB4A3; font-size: 16px; }

/* ===== Footer, expanded (v0.2.53) ===== */
.nwh-foot { padding: 48px 40px 28px; font-size: 18px; line-height: 1.5; }
.nwh-foot-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; border-bottom: 1px solid rgba(255,255,255,.2); padding-bottom: 32px; margin-bottom: 32px; }
.nwh-foot-claim { font-size: 30px; line-height: 1.15; }
.nwh-foot-top p { font-size: 18px; margin: 12px 0 0; color: #DCE6EC; }
.nwh-foot .nwh-foot-news { border: 0; padding: 0; margin: 0; max-width: none; }
.nwh-foot-h { color: #FF5A36; font-size: 18px; margin-bottom: 14px; }
.nwh-foot-about { margin-bottom: 36px; }
.nwh-foot-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.nwh-foot a.nwh-foot-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-left: 5px solid #FF5A36; border-radius: 8px; text-decoration: none; color: #fff; }
.nwh-foot a.nwh-foot-card:hover { background: rgba(255,255,255,.13); text-decoration: none; }
.nwh-foot-card-t { font-family: var(--wp--preset--font-family--archivo-black); font-size: 22px; line-height: 1.2; }
.nwh-foot-card-d { font-size: 17px; line-height: 1.5; color: #DCE6EC; }
.nwh-foot-card-m { margin-top: auto; font-weight: 700; color: #FF5A36; font-size: 17px; }
.nwh-foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.nwh-foot-list { font-size: 18px; gap: 12px; }
.nwh-foot-legal-list a small { display: block; font-size: 15px; line-height: 1.4; color: #B9C7D0; margin-top: 2px; }
.nwh-foot-bottom { border-top: 1px solid rgba(255,255,255,.2); margin-top: 36px; padding-top: 20px; font-size: 16px; color: #DCE6EC; }
.nwh-foot-help { font-size: 16px; }
@media (max-width: 1000px) {
	.nwh-foot { padding: 32px 20px 24px; }
	.nwh-foot-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.nwh-foot-cards { grid-template-columns: minmax(0, 1fr); }
	.nwh-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nwh-foot-claim { font-size: 25px; }
}
@media (max-width: 560px) { .nwh-foot-grid { grid-template-columns: minmax(0, 1fr); } }
/* Member level (Wanderer, Companion, Guide) next to the name */
.nwhp-level { display: inline-block; margin: 4px 0 2px; padding: 3px 12px; border: 2px solid #0B4F6C; border-radius: 999px; color: #0B4F6C; font-weight: 700; font-size: 16px; text-decoration: none; }
.nwhp-level:hover { background: #0B4F6C; color: #fff; }

/* Photos from the trail (front page, below the articles) */
.nwh-trail-lead { margin: 0 0 14px; font-size: 18px; }
.nwh-trail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.nwh-trail-grid figure { margin: 0; }
.nwh-trail-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.nwh-trail-grid figcaption { font-size: 15px; color: #4A5A66; margin-top: 4px; }
.nwh-trail-cta { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 18px; }
@media (max-width: 760px) { .nwh-trail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Mobile order (agreed plan): Start here, Question of the week, articles, then events. The events card of the first screen
   would come before the articles and repeat the events card further down, so on phones only the lower one is shown. */
@media (max-width: 760px) { .nwh-first-events { display: none; } }
.nwhp-level-note { font-size: 15px; color: #4A5A66; margin-left: 6px; }
.nwhp-level-note a { color: #0B4F6C; font-weight: 700; }

/* ===== Compact footer (2026-10-03): about a third of the former height ===== */
.nwh-foot.nwh-foot-compact { padding: 24px 32px 14px; font-size: 16px; }
.nwh-foot-compact .nwh-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 24px; }
.nwh-foot-compact .nwh-foot-h { font-size: 15px; margin-bottom: 8px; }
.nwh-foot-compact .nwh-foot-list { font-size: 16px; gap: 4px; }
.nwh-foot-compact .nwh-foot-news input[type="email"], .nwh-foot-compact .nwh-foot-news .ff-btn-submit { font-size: 16px; min-height: 42px; }
.nwh-foot-compact .nwh-foot-bottom { margin-top: 18px; padding-top: 12px; gap: 8px 20px; font-size: 15px; align-items: center; }
.nwh-foot-compact .nwh-foot-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
@media (max-width: 760px) {
	.nwh-foot.nwh-foot-compact { padding: 20px 16px 12px; }
	.nwh-foot-compact .nwh-foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nwh-foot-compact .nwh-foot-news { grid-column: 1 / -1; }
}
/* Photos from the trail in the right column (2026-10-03) */
.nwh-trail-side .nwh-trail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.nwh-trail-side .nwh-trail-grid img { border-radius: 6px; }
.nwh-trail-side .nwh-trail-cta { margin: 12px 0 0; font-size: 16px; flex-direction: column; align-items: flex-start; gap: 8px; }

/* Full-width, lower homepage guide strip (owner clarification, 2026-10-04). */
.nwh-first-start.nwh-card{max-width:none;width:100%;box-sizing:border-box;margin:0 0 12px;padding:6px 12px}
.nwh-first-start .nwh-start-row{gap:10px}
.nwh-first-start .nwh-first-h{font-size:18px;flex:0 0 auto;white-space:nowrap}
.nwh-first-start .nwh-start-grid{flex:1 1 420px;gap:6px}
.nwh-first-start .nwh-start-btn{min-height:40px!important;padding:6px 8px!important}
.nwh-first-start .nwh-start-btn .nwh-start-t{font-size:16px}
@media(max-width:700px){
 .nwh-first-start .nwh-first-h{flex:1 1 100%;white-space:normal;text-align:center}
 .nwh-first-start .nwh-start-grid{flex:1 1 100%}
 .nwh-first-start .nwh-start-btn{min-height:44px!important}
}

/* Pole-length guide: continuous reading, original study copy preserved. */
body:is(.postid-37,.postid-38,.postid-97) .wp-block-post-content{column-count:1!important;max-width:1040px!important;margin-inline:auto!important;padding-inline:0!important}
.nwh-pole-guide{max-width:860px!important;margin-inline:auto!important;padding:0 20px 28px;box-sizing:border-box}
.nwh-pole-guide .nwh-pole-intro{font-size:21px;line-height:1.65;margin:0 0 24px}
.nwh-pole-guide .nwh-pole-section{padding:24px 28px;margin:0 0 24px;border:1px solid #D5DEDA;border-radius:14px;background:#fff;box-sizing:border-box}
.nwh-pole-guide .nwh-pole-section h2{font-size:clamp(23px,2.3vw,30px);line-height:1.25;margin:0 0 18px!important}
.nwh-pole-guide p,.nwh-pole-guide li{font-size:19px;line-height:1.7}
.nwh-pole-guide li+li{margin-top:12px}
.nwh-pole-guide .nwh-pole-section-4{border-top:4px solid #FF5A36}
.nwh-pole-guide .nwh-pole-section-5 li{padding:14px 16px;background:#F4F6F5;border-radius:8px}
.nwh-pole-guide .nwh-pole-section-7{font-size:16px;background:#F4F6F5}
.nwh-pole-guide .nwh-pole-section-7 li,.nwh-pole-guide .nwh-pole-section-7 p{font-size:16px;overflow-wrap:anywhere}
.nwh-pole-guide .nwh-chart{margin:22px 0 0!important}
@media(max-width:700px){.nwh-pole-guide{padding:0 12px 20px}.nwh-pole-guide .nwh-pole-section{padding:18px 16px;margin-bottom:18px}.nwh-pole-guide p,.nwh-pole-guide li{font-size:18px}.nwh-pole-guide .nwh-pole-intro{font-size:19px}}
.nwh-pole-guide .nwh-pc-form p{min-width:0;max-width:100%}
.nwh-pole-guide .nwh-pc-form select{width:100%;max-width:100%;box-sizing:border-box}
@media(max-width:700px){.nwh-pole-guide .nwh-pc-form{display:grid;grid-template-columns:minmax(0,1fr)}.nwh-pole-guide .nwh-pc-form input{width:100%;max-width:100%;box-sizing:border-box}}
/* Explicit article columns: reading left, calculator at the top right. */
body:is(.postid-37,.postid-38,.postid-97) .wp-block-post-content{max-width:1240px!important}
.nwh-pole-guide.nwh-pole-guide-columns{max-width:1240px!important;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:28px;align-items:start}
.nwh-pole-reading,.nwh-pole-calculator-column{min-width:0;margin:0!important}
.nwh-pole-calculator-column{padding:24px;border:1px solid #D5DEDA;border-top:4px solid #FF5A36;border-radius:14px;background:#fff}
.nwh-pole-calculator-column .nwh-pc-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.nwh-pole-calculator-column .nwh-pc-wide,.nwh-pole-calculator-column .nwh-pc-opt{grid-column:1/-1}
.nwh-pole-calculator-column .nwh-pc-form input{width:100%;max-width:100%;box-sizing:border-box}
@media(max-width:800px){.nwh-pole-guide.nwh-pole-guide-columns{grid-template-columns:minmax(0,1fr);gap:20px}.nwh-pole-calculator-column{grid-row:1;padding:18px 16px}.nwh-pole-calculator-column .nwh-pc-form{grid-template-columns:minmax(0,1fr)}}
/* Two equal article columns; right continues with text below the calculator. */
.nwh-pole-guide.nwh-pole-guide-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
.nwh-pole-right-reading{min-width:0;margin:0!important}
.nwh-pole-right-reading .nwh-pole-calculator-column{margin-bottom:24px!important}
@media(max-width:1024px){.nwh-pole-guide.nwh-pole-guide-columns{display:flex;flex-direction:column}.nwh-pole-reading,.nwh-pole-right-reading{width:100%}}
/* One shared article panel, with two reading columns inside. */
.nwh-pole-guide.nwh-pole-guide-columns{padding:26px 28px;background:#fff;border:1px solid #D5DEDA;border-radius:14px;box-sizing:border-box}
.nwh-pole-guide .nwh-pole-section{padding:0;border:0;border-radius:0;background:transparent;margin:0 0 30px}
.nwh-pole-guide .nwh-pole-calculator-column{padding:0;border:0;border-radius:0;background:transparent}
.nwh-pole-guide .nwh-pole-section-4{border-top:0}
.nwh-pole-guide .nwh-pole-section-7{background:transparent}
@media(max-width:700px){.nwh-pole-guide.nwh-pole-guide-columns{padding:20px 16px}.nwh-pole-guide .nwh-pole-section{padding:0;margin-bottom:24px}}