/*
Theme Name:   Wavy Child, WJonnyJames
Theme URI:    https://www.wjonnyjames.com
Author:       Jonny James
Description:  Child theme for wjonnyjames.com, based on Wavy (Classic layout). Brand: Pattaya 360 navy / gold / neon magenta.
Template:     wavy
Version:      1.0.4
*/

:root {
	--wjj-navy: #080D16;
	--wjj-navy-raised: #111A2A;
	--wjj-gold: #FFC400;
	--wjj-gold-dark: #D2A202;
	--wjj-magenta: #E0157A;
	--wjj-magenta-deep: #B0105F;
	--wjj-cyan: #2FD3F5;
}

/* ---------- Members-only badge (post lists + single) ---------- */

article.wjj-members-only .main-title a::before,
body.single article.wjj-members-only h1.main-title::before {
	content: "W PRO";
	display: inline-block;
	vertical-align: middle;
	margin-right: 10px;
	padding: 3px 9px 2px;
	border-radius: 999px;
	background: var(--wjj-navy);
	color: var(--wjj-gold);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.4;
	position: relative;
	top: -3px;
}

/* Simple Membership "members only" notices, restyled as a join prompt */
.swpm-more-tag-not-logged-in,
.swpm-post-not-logged-in-msg,
.swpm-restricted-content-msg {
	display: block;
	margin: 32px 0;
	padding: 28px 24px;
	border-radius: 18px;
	background: var(--wjj-navy);
	color: #fff;
	text-align: center;
	font-weight: 600;
}
.swpm-more-tag-not-logged-in a,
.swpm-post-not-logged-in-msg a,
.swpm-restricted-content-msg a {
	color: var(--wjj-gold);
	text-decoration: underline;
}

/* ---------- Link Hub homepage ---------- */

#wjj-link-hub {
	padding: 40px 16px 70px;
}
.wjj-hub-card {
	max-width: 560px;
	margin: 0 auto;
	padding: 40px 28px 32px;
	border-radius: 28px;
	background:
		radial-gradient(120% 60% at 50% 0%, rgba(224, 21, 122, .28), transparent 60%),
		radial-gradient(90% 50% at 100% 100%, rgba(47, 211, 245, .14), transparent 60%),
		var(--wjj-navy);
	color: #fff;
	box-shadow: 0 30px 60px -25px rgba(8, 13, 22, .6);
	text-align: center;
}
.wjj-hub-card h1,
.wjj-hub-card h2,
.wjj-hub-card h3,
.wjj-hub-card p {
	color: #fff;
}
.wjj-hub-card .wjj-avatar img {
	width: 132px;
	height: 132px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid var(--wjj-gold);
	box-shadow: 0 0 0 6px rgba(255, 196, 0, .15), 0 0 30px rgba(255, 196, 0, .35);
}
.wjj-hub-card .wjj-name {
	margin: 14px 0 2px;
	font-size: 30px;
	letter-spacing: -.01em;
}
.wjj-hub-card .wjj-name .w {
	color: var(--wjj-gold);
}
.wjj-hub-card .wjj-tagline {
	margin: 0 0 22px;
	font-size: 14px;
	letter-spacing: .14em;
	text-transform: uppercase;
	opacity: .8;
}
.wjj-hub-card .wp-block-buttons {
	flex-direction: column;
	gap: 12px;
	margin: 0 0 12px;
}
.wjj-hub-card .wp-block-button {
	width: 100%;
}
#wjj-link-hub .wjj-hub-card .wp-block-button__link {
	background-image: none;
	display: block;
	width: 100%;
	padding: 15px 20px;
	border-radius: 14px;
	background: var(--wjj-navy-raised);
	border: 1px solid rgba(255, 255, 255, .12);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	transition: transform .15s ease, border-color .15s ease;
}
#wjj-link-hub .wjj-hub-card .wp-block-button__link:hover,
#wjj-link-hub .wjj-hub-card .wp-block-button__link:focus-visible {
	transform: translateY(-2px);
	border-color: var(--wjj-gold);
	color: #fff;
}
#wjj-link-hub .wjj-hub-card .wjj-btn-primary .wp-block-button__link {
	background: linear-gradient(135deg, var(--wjj-gold), #FF9F1C);
	border: 0;
	color: var(--wjj-navy);
	font-size: 17px;
	box-shadow: 0 10px 30px -8px rgba(255, 196, 0, .55);
}
#wjj-link-hub .wjj-hub-card .wjj-btn-primary .wp-block-button__link:hover { color: var(--wjj-navy); }
#wjj-link-hub .wjj-hub-card .wjj-btn-secondary .wp-block-button__link {
	background: linear-gradient(135deg, var(--wjj-magenta), var(--wjj-magenta-deep));
	border: 0;
}
.wjj-hub-card .wjj-section-label {
	margin: 26px 0 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--wjj-gold);
}
.wjj-hub-card .wp-block-latest-posts {
	text-align: left;
	margin: 0;
	padding: 0;
}
.wjj-hub-card .wp-block-latest-posts li {
	margin: 0 0 10px;
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .05);
	list-style: none;
}
.wjj-hub-card .wp-block-latest-posts a {
	color: #fff;
	font-weight: 700;
}
.wjj-hub-card .wp-block-latest-posts__post-date {
	display: block;
	color: rgba(255, 255, 255, .6);
	font-size: 12px;
}
.wjj-hub-card .wjj-small {
	margin-top: 22px;
	font-size: 12px;
	opacity: .6;
}
@media (max-width: 480px) {
	.wjj-hub-card { padding: 32px 18px 26px; border-radius: 22px; }
	.wjj-hub-card .wjj-name { font-size: 26px; }
}

/* ---------- Join page tiers ---------- */

.wjj-tiers {
	gap: 18px;
}
.wjj-tier {
	padding: 26px 22px !important;
	border-radius: 20px;
	background: #fff;
	border: 1px solid #E6EDF6;
	box-shadow: 0 18px 40px -28px rgba(8, 13, 22, .45);
}
.wjj-tier.is-featured {
	background: var(--wjj-navy);
	border-color: var(--wjj-gold);
}
.wjj-tier.is-featured h3,
.wjj-tier.is-featured p,
.wjj-tier.is-featured li { color: #fff; }
.wjj-tier .wjj-price {
	font-size: 34px;
	font-weight: 800;
	margin: 4px 0 12px;
}
.wjj-tier .wjj-price small { font-size: 14px; font-weight: 600; opacity: .7; }
.wjj-tier ul { padding-left: 18px; }
.wjj-paypal-slot {
	margin-top: 16px;
	padding: 12px;
	border: 2px dashed var(--wjj-gold-dark);
	border-radius: 12px;
	font-size: 13px;
	text-align: center;
	opacity: .85;
}

/* Wavy paints buttons with a gradient ::before layer and a wave ::after on hover.
   Plain hub links drop the gradient; primary gets gold; secondary keeps the theme's magenta. */
#wjj-link-hub .wjj-hub-card .wp-block-button__link {
	overflow: hidden;
}
#wjj-link-hub .wjj-hub-card .wp-block-button:not(.wjj-btn-primary):not(.wjj-btn-secondary) .wp-block-button__link::before {
	display: none;
}
#wjj-link-hub .wjj-hub-card .wjj-btn-primary .wp-block-button__link::before {
	background: linear-gradient(135deg, var(--wjj-gold), #FF9F1C);
}

/* ---------- Post thumbnails: always show the full 16:9 graphic ---------- */
/* Wavy gives the image box a fixed height per breakpoint and crops with object-fit:cover.
   Matching the box to 16:9 means nothing gets cut off at any screen width. */
article .post-format-image .featured-image .thumb,
body.single .post-format-image .featured-image .thumb {
	height: auto !important;
	aspect-ratio: 16 / 9;
}
article .post-format-image .featured-image .thumb img,
body.single .post-format-image .featured-image .thumb img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}
/* Single post header image uses its own wrapper (.epcl-loader) with a fixed 500px height. */
body.single .post-format-image .featured-image,
body.single .post-format-image .featured-image .epcl-loader {
	height: auto !important;
	aspect-ratio: 16 / 9;
}
body.single .post-format-image .featured-image img.wp-post-image {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

/* ---------- Dark mode (site-wide; palette swapped in functions.php) ---------- */
:root {
	--epcl-background-color: #080D16;
	--epcl-sections-color: #0D1422;
	--epcl-content-background-color: #111A2A;
	--epcl-boxes-background-color: #111A2A;
	--epcl-boxes-border-color: #1E2A3E;
	--epcl-border-color: #1E2A3E;
	--epcl-decoration-color: #1A2742;
	--epcl-code-color: #0D1422;
	--epcl-titles-color: #FFFFFF;
	--epcl-text-color: #C9D1DE;
	--epcl-black: #C9D1DE;
	--epcl-boxes-shadow: none;
	color-scheme: dark;
}
html, body { background-color: #080D16; color: #C9D1DE; }
/* Join page tiers */
.wjj-tier {
	background: #111A2A;
	border-color: #1E2A3E;
	box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .8);
}
.wjj-tier h3, .wjj-tier p, .wjj-tier li { color: #E6EAF2; }
.wjj-tier.is-featured {
	background: linear-gradient(180deg, #1A1230, #111A2A);
	border: 2px solid var(--wjj-gold);
}
.wjj-tier .wjj-price { color: #FFFFFF; }
/* Homepage link card: lift it off the dark page */
.wjj-hub-card {
	border: 1px solid #1E2A3E;
	box-shadow: 0 30px 80px -30px rgba(224, 21, 122, .35);
}
/* Tables in posts */
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background-color: #111A2A; }
.wp-block-table td, .wp-block-table th { border-color: #1E2A3E; color: #E6EAF2; }
/* Members-only notice and badge stay readable on dark */
.swpm-more-tag-not-logged-in,
.swpm-post-not-logged-in-msg,
.swpm-restricted-content-msg {
	background: #111A2A;
	border: 1px solid var(--wjj-gold);
}
article.wjj-members-only .main-title a::before,
body.single article.wjj-members-only h1.main-title::before {
	background: var(--wjj-gold);
	color: var(--wjj-navy);
}
/* Wavy paints table cells white; keep them dark with readable stripes */
.wp-block-table table,
.wp-block-table th,
.wp-block-table td,
div.text table th,
div.text table td { background: transparent !important; color: #E6EAF2 !important; border-color: #1E2A3E !important; }
.wp-block-table thead th,
div.text table thead th { background: #1A2742 !important; color: var(--wjj-gold) !important; }
.wp-block-table tbody tr:nth-child(odd) { background: #111A2A !important; }
.wp-block-table tbody tr:nth-child(even) { background: #0D1422 !important; }

/* Join page: line PayPal buttons up along the bottom of each tier card.
   PayPal renders its buttons in a white iframe, so frame it as a tidy white panel. */
.wjj-tiers .wjj-tier {
	display: flex !important;
	flex-direction: column;
}
.wjj-tier .swpm-payment-button {
	margin-top: auto;
	width: 100%;
}
.wjj-tier .swpm-button-wrapper {
	padding: 10px 8px 2px;
	border-radius: 16px;
	background: #FFFFFF;
}
.wjj-tier [id^="swpm_paypal_button_"] {
	width: 100% !important;
	max-width: 100% !important;
}
.wjj-tier .swpm-button-wrapper iframe { width: 100% !important; max-width: 100%; }

/* ================= Visual refresh (2026-10-04) ================= */

/* Header wordmark */
#header .logo img { max-width: 300px; height: auto; }
@media (max-width: 767px) { #header .logo img { max-width: 168px; } }
@media (max-width: 380px) { #header .logo img { max-width: 150px; } }

/* Homepage banner + card that overlaps it like a profile header */
#wjj-link-hub { padding-top: 10px; }
.wjj-hub-banner {
	max-width: 1180px;
	margin: 0 auto;
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 30px 70px -35px rgba(224, 21, 122, .55);
	border: 1px solid #1E2A3E;
}
.wjj-hub-banner img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; }
.wjj-hub-banner + .wjj-hub-card { margin-top: -90px; position: relative; z-index: 2; }
@media (max-width: 600px) {
	.wjj-hub-banner { border-radius: 18px; }
	.wjj-hub-banner + .wjj-hub-card { margin-top: -40px; }
}

/* Social icon row (core Social Icons block) */
.wjj-hub-card .wp-block-social-links {
	justify-content: center;
	gap: 6px 10px;
	margin: 6px 0 22px;
}
.wjj-hub-card .wp-block-social-links .wp-social-link {
	background: transparent !important;
	color: #FFFFFF !important;
	transition: transform .15s ease, color .15s ease;
}
.wjj-hub-card .wp-block-social-links .wp-social-link:hover { color: var(--wjj-gold) !important; transform: translateY(-2px); }
.wjj-hub-card .wp-block-social-links .wp-social-link svg { width: 26px; height: 26px; }

/* Linktree-style main links */
.wjj-links { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; text-align: left; }
.wjj-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 8px 14px 8px 8px;
	min-height: 64px;
	border-radius: 16px;
	background: #111A2A;
	border: 1px solid rgba(255, 255, 255, .10);
	color: #FFFFFF !important;
	text-decoration: none !important;
	transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.wjj-link:hover, .wjj-link:focus-visible { transform: translateY(-2px); border-color: var(--wjj-gold); background: #15213A; }
.wjj-link img { width: 48px; height: 48px; border-radius: 10px; flex: 0 0 48px; object-fit: cover; }
.wjj-link-text { flex: 1; text-align: center; padding-right: 48px; line-height: 1.25; }
.wjj-link-title { display: block; font-weight: 800; font-size: 16px; }
.wjj-link-sub { display: block; margin-top: 3px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .62); }
@media (max-width: 420px) { .wjj-link-text { padding-right: 10px; } }

/* Bottom call-to-action area on the homepage */
.wjj-hub-card .wjj-cta-label { margin-top: 30px; }
.wjj-hub-card .wjj-tip-link { margin-top: 14px; font-size: 13px; opacity: .7; }
.wjj-hub-card .wjj-tip-link a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.wjj-hub-card .wjj-tip-link a:hover { color: var(--wjj-gold); }

/* ---------- Join page tiers ---------- */
.wjj-tier-badge {
	align-self: flex-start;
	display: inline-block;
	margin: 0 0 10px !important;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--wjj-gold);
	color: var(--wjj-navy) !important;
	font-size: 12px !important;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.wjj-tier-badge.is-pink { background: linear-gradient(135deg, var(--wjj-magenta), var(--wjj-magenta-deep)); color: #fff !important; }
.wjj-tier-tagline { margin: -4px 0 6px !important; font-size: 15px; font-weight: 600; color: var(--wjj-gold) !important; }
.wjj-tier h3 { margin-bottom: 6px; }

/* Site-styled Join button; PayPal/card buttons slide open underneath */
.wjj-join-btn {
	margin-top: auto;
	width: 100%;
	padding: 15px 18px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--wjj-gold), #FF9F1C);
	color: var(--wjj-navy);
	font: inherit;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 28px -10px rgba(255, 196, 0, .6);
	transition: transform .15s ease, box-shadow .15s ease;
}
.wjj-join-btn small { font-size: 13px; font-weight: 700; opacity: .75; }
.wjj-join-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(255, 196, 0, .75); }
.wjj-tier.is-featured .wjj-join-btn { background: linear-gradient(135deg, #FF2E93, var(--wjj-magenta-deep)); color: #fff; box-shadow: 0 10px 28px -10px rgba(224, 21, 122, .7); }
.wjj-tier.wjj-has-join .swpm-payment-button {
	margin-top: 0 !important;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height .35s ease, opacity .25s ease, margin .35s ease;
}
.wjj-tier.wjj-has-join.wjj-open .swpm-payment-button { max-height: 260px; opacity: 1; margin-top: 12px !important; }
.wjj-tier.wjj-open .wjj-join-btn { box-shadow: none; opacity: .9; }

/* Donate page tip button (links to PayPal's hosted donation page) */
.wjj-tip-btn .wp-block-button__link {
	background: #111A2A !important;
	border: 1px solid var(--wjj-gold) !important;
	color: #FFFFFF !important;
	border-radius: 14px !important;
	padding: 14px 26px !important;
	font-weight: 800;
}
.wjj-tip-btn .wp-block-button__link::before { display: none !important; }
.wjj-tip-btn .wp-block-button__link:hover { background: #15213A !important; color: var(--wjj-gold) !important; }

/* Sidebar "Take the W" box */
#sidebar .widget:has(.wjj-sidebar-join) { padding: 0 !important; background: transparent !important; border: 0 !important; }
.wjj-sidebar-join {
	padding: 26px 22px 24px;
	border-radius: 18px;
	background: linear-gradient(160deg, #1A1230, #111A2A);
	border: 1px solid rgba(255, 196, 0, .35);
	text-align: center;
}
.wjj-sidebar-join h3 { margin: 0 0 10px !important; color: var(--wjj-gold) !important; }
.wjj-sidebar-join p { margin: 0 0 18px !important; line-height: 1.5; color: #FFFFFF !important; }
.wjj-sidebar-join .wp-block-buttons { justify-content: center; margin: 0; }
.wjj-sidebar-join .wp-block-button { width: 100%; }
.wjj-sidebar-join .wp-block-button__link {
	display: block;
	width: 100%;
	padding: 13px 18px !important;
	border-radius: 12px !important;
	background: linear-gradient(135deg, var(--wjj-gold), #FF9F1C) !important;
	color: var(--wjj-navy) !important;
	font-weight: 800;
}
.wjj-sidebar-join .wp-block-button__link::before,
.wjj-sidebar-join .wp-block-button__link::after { display: none !important; }
.wjj-sidebar-join .wp-block-button__link:hover { filter: brightness(1.05); }

/* Homepage hero: full-bleed (edge to edge) image fading into the dark page */
body { overflow-x: clip; }
.wjj-hub-banner {
	position: relative;
	width: 100vw;
	max-width: none;
	margin: -10px 0 0 calc(50% - 50vw);
	height: clamp(420px, 46vw, 680px);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
}
.wjj-hub-banner img {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
	object-position: 50% 4%;
}
.wjj-hub-banner::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(8, 13, 22, 0) 38%, rgba(8, 13, 22, .75) 72%, #080D16 94%);
	pointer-events: none;
}
.wjj-hub-banner + .wjj-hub-card { margin-top: -230px; }
@media (max-width: 600px) {
	.wjj-hub-banner { height: 440px; border-radius: 0; }
	.wjj-hub-banner img { object-position: 50% 10%; }
	.wjj-hub-banner + .wjj-hub-card { margin-top: -150px; }
}

/* ================= Homepage hero v2: banner as header, avatar + name over it ================= */

/* Header floats over the hero on the homepage; gets its normal bar back once it sticks on scroll */
body.page-template-link-hub #header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 30;
	height: auto !important;
	background: transparent !important;
}
body.admin-bar.page-template-link-hub #header { top: 32px; }
@media (max-width: 782px) { body.admin-bar.page-template-link-hub #header { top: 46px; } }
body.page-template-link-hub:not(.wjj-scrolled) #header .menu-wrapper { background: transparent !important; box-shadow: none !important; }
body.page-template-link-hub:not(.wjj-scrolled) #header .menu-wrapper .logo { visibility: hidden; }
body.page-template-link-hub:not(.wjj-scrolled) #header .menu-wrapper nav.main-nav ul.menu > li > a { color: #FFFFFF !important; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
body.page-template-link-hub #header .menu-mobile {
	background: rgba(8, 13, 22, .55);
	border-radius: 12px;
	padding: 6px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}
body.page-template-link-hub #header .menu-mobile svg { color: #FFFFFF !important; }

/* The old banner block is replaced by the hero */
.wjj-hub-banner { display: none !important; }

#wjj-link-hub { padding-top: 0 !important; }
.wjj-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	height: clamp(330px, 34vw, 480px);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.wjj-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}
.wjj-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 55% at 50% 52%, rgba(8, 13, 22, .45), transparent 70%),
		linear-gradient(to bottom, rgba(8, 13, 22, .35) 0%, rgba(8, 13, 22, 0) 25%, rgba(8, 13, 22, 0) 60%, #080D16 100%);
	pointer-events: none;
}
.wjj-hero-inner {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 56px 16px 18px;
}
.wjj-hero-avatar {
	display: block;
	width: 150px;
	height: 150px;
	margin: 0 auto 10px;
	border-radius: 50%;
	object-fit: cover;
	border: 4px solid var(--wjj-gold);
	box-shadow: 0 0 0 6px rgba(255, 196, 0, .18), 0 12px 40px rgba(0, 0, 0, .6);
}
.wjj-hero-name {
	margin: 0;
	color: #FFFFFF !important;
	font-size: 34px;
	line-height: 1.1;
	letter-spacing: -.01em;
	text-shadow: 0 3px 16px rgba(0, 0, 0, .85);
}
.wjj-hero-name .w { color: var(--wjj-gold); }
.wjj-hero-tag {
	margin: 6px 0 0;
	color: #FFFFFF !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	text-shadow: 0 2px 10px rgba(0, 0, 0, .9);
}

/* Card now starts right under the hero */
.wjj-hero + .wjj-hub-card {
	margin-top: -18px;
	position: relative;
	z-index: 3;
	padding-top: 18px;
	background: transparent;
	border: 0;
	box-shadow: none;
}
.wjj-hero + .wjj-hub-card .wp-block-social-links { margin-top: 0; }

@media (max-width: 600px) {
	.wjj-hero { height: 300px; }
	.wjj-hero-inner { padding-top: 52px; }
	.wjj-hero-avatar { width: 112px; height: 112px; border-width: 3px; }
	.wjj-hero-name { font-size: 28px; }
	.wjj-hero-tag { font-size: 11px; letter-spacing: .12em; }
	#wjj-link-hub { padding-left: 12px; padding-right: 12px; }
	.wjj-hero + .wjj-hub-card { padding-left: 4px; padding-right: 4px; }
}
@media (min-width: 981px) {
	body.page-template-link-hub:not(.wjj-scrolled) #header .menu-wrapper .logo { display: none; }
	.wjj-hero { height: clamp(460px, 36vw, 560px); }
	.wjj-hero-inner { padding-top: 150px; }
}

/* Homepage header once scrolled: solid bar with the logo back */
body.page-template-link-hub.wjj-scrolled #header .menu-wrapper {
	background: rgba(11, 18, 32, .96) !important;
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition: background .2s ease;
}

/* Homepage desktop menu: frosted dark pill so white links stay readable on bright parts of the banner */
@media (min-width: 981px) {
	body.page-template-link-hub:not(.wjj-scrolled) #header nav.main-nav ul.menu {
		display: inline-flex;
		padding: 4px 18px;
		border-radius: 999px;
		background: rgba(8, 13, 22, .58);
		border: 1px solid rgba(255, 255, 255, .10);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
	}
	/* Other pages: the theme sizes the header in pixels on load; never let it come out short */
	body:not(.page-template-link-hub) #header { min-height: 206px; }
}

/* Donate page */
.wjj-tip-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 8px; }
.wjj-tip-option {
	display: block;
	padding: 18px 20px;
	border-radius: 16px;
	background: #111A2A;
	border: 1px solid rgba(255, 196, 0, .45);
	color: #FFFFFF !important;
	text-decoration: none !important;
	transition: transform .15s ease, border-color .15s ease;
}
.wjj-tip-option:hover { transform: translateY(-2px); border-color: var(--wjj-gold); }
.wjj-tip-name { display: block; font-weight: 800; font-size: 18px; }
.wjj-tip-sub { display: block; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.wjj-crypto-title { margin: 34px 0 12px !important; }
.wjj-crypto { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wjj-crypto-card { padding: 18px; border-radius: 16px; background: #111A2A; border: 1px solid #1E2A3E; text-align: center; }
.wjj-crypto-card img { display: block; width: 100%; max-width: 220px; height: auto; margin: 0 auto 12px; border-radius: 14px; background: #fff; }
.wjj-crypto-name { font-weight: 800; color: #FFFFFF; margin-bottom: 8px; }
.wjj-crypto-addr { display: block; padding: 8px 10px; border-radius: 10px; background: #0B1220; color: var(--wjj-gold); font-size: 12px; word-break: break-all; }
.wjj-copy {
	margin-top: 10px;
	padding: 9px 16px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, var(--wjj-gold), #FF9F1C);
	color: var(--wjj-navy);
	font: inherit;
	font-weight: 800;
	font-size: 14px;
	cursor: pointer;
}
.wjj-crypto-note { margin-top: 14px; font-size: 12px; opacity: .65; }
@media (max-width: 600px) { .wjj-tip-options, .wjj-crypto { grid-template-columns: 1fr; } }

/* Mobile: avatar higher, social icons sit on the bottom of the banner */
@media (max-width: 600px) {
	.wjj-hero { height: 328px; align-items: flex-start; }
	.wjj-hero-inner { padding-top: 22px; }
	.wjj-hero + .wjj-hub-card { margin-top: -66px; padding-top: 0; }
	.wjj-hero + .wjj-hub-card .wp-block-social-links { margin: 0 0 18px; }
	.wjj-hero + .wjj-hub-card .wp-block-social-links .wp-social-link svg { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8)); }
}

/* Desktop: menu near the top, avatar higher, social icons sit on the bottom of the banner */
@media (min-width: 981px) {
	body.page-template-link-hub:not(.wjj-scrolled) #header .grid-container { padding-top: 16px !important; }
	body.page-template-link-hub:not(.wjj-scrolled) #header nav.main-nav { margin-top: 0 !important; }
	.wjj-hero { height: 486px; align-items: flex-start; }
	.wjj-hero-inner { padding-top: 124px; }
	.wjj-hero + .wjj-hub-card { margin-top: -80px; padding-top: 0; }
	.wjj-hero + .wjj-hub-card .wp-block-social-links { margin: 0 0 22px; }
	.wjj-hero + .wjj-hub-card .wp-block-social-links .wp-social-link svg { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .8)); }
}

/* Centre avatar + name exactly between the top of the image (or the menu, on desktop)
   and the top of the social icon row that overlaps the bottom of the image. */
.wjj-hero-inner {
	position: absolute;
	left: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 16px !important;
}
.wjj-hero-avatar { margin-bottom: 10px; }
@media (max-width: 600px) {
	/* icon row starts 66px above the image bottom (see .wjj-hub-card margin-top) */
	.wjj-hero-inner { top: 0; bottom: 66px; }
}
@media (min-width: 601px) and (max-width: 980px) {
	.wjj-hero-inner { top: 0; bottom: 0; }
}
@media (min-width: 981px) {
	/* menu pill ends ~110px down; icon row starts 80px above the image bottom */
	.wjj-hero-inner { top: 110px; bottom: 80px; }
}
/* 981–1200px: theme shows the hamburger, not the menu bar, so centre from the image top */
@media (min-width: 981px) and (max-width: 1200px) {
	.wjj-hero-inner { top: 0; }
}
/* Optical adjustment: sit the avatar + name ~12px lower than the mathematical centre */
.wjj-hero-inner { transform: translateY(12px); }

/* Join page: per-tier custom button label (read by the Join button script) and "Also receive:" line */
.wjj-tier .wjj-join-label { display: none !important; }
.wjj-tier .wjj-also { margin: 2px 0 6px !important; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6) !important; }

/* Join page tier grid: 4 per row on desktop (5th card centred on a second row), 2 per row on tablets */
@media (min-width: 782px) {
	.wp-block-columns.wjj-tiers { flex-wrap: wrap !important; justify-content: center; gap: 18px; }
	.wp-block-columns.wjj-tiers > .wjj-tier { flex: 0 0 calc(50% - 9px) !important; max-width: calc(50% - 9px); }
}
@media (min-width: 1101px) {
	.wp-block-columns.wjj-tiers > .wjj-tier { flex: 0 0 calc(25% - 13.5px) !important; max-width: calc(25% - 13.5px); }
}

/* Join page: hide the page title ("Become a W Member"); the "Support the channel" heading leads instead */
body.page-id-4 h1.title { display: none !important; }
/* Let tier cards shrink below the PayPal iframe's 300px so 4 fit per row on desktop */
.wp-block-columns.wjj-tiers > .wjj-tier,
.wjj-tier .swpm-payment-button,
.wjj-tier .swpm-button-wrapper,
.wjj-tier [id^="swpm_paypal_button_"] { min-width: 0 !important; }
.wjj-tier .swpm-button-wrapper iframe,
.wjj-tier [id^="swpm_paypal_button_"] > div { min-width: 0 !important; max-width: 100% !important; }
.wp-block-columns.wjj-tiers > .wjj-tier { box-sizing: border-box !important; }

/* Donate page: three tip buttons (PayPal, Venmo, Cash App) */
.wjj-tip-options { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .wjj-tip-options { grid-template-columns: 1fr; } }

/* Dropdowns (Country on the member profile, etc.): match the dark text inputs.
   The parent theme sets white text but leaves the browser's white background. */
form select {
	-webkit-appearance: none;
	appearance: none;
	background-color: #0B1220 !important;
	color: #FFFFFF !important;
	border: 1px solid #1E2A3E;
	border-radius: 8px;
	padding: 0 44px 0 25px;
	height: 45px;
	font-size: 14px;
	line-height: 43px;
	max-width: 100%;
	color-scheme: dark;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23FFC400' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 18px center !important;
}
form select:focus { outline: none; border-color: var(--wjj-gold); }
form select option { background: #0B1220; color: #FFFFFF; }

/* Blog: "Members Only" replaces Read More on locked posts for logged-out visitors. */
.continue-reading.wjj-members-only-btn {
	background: linear-gradient(135deg, var(--wjj-gold), #FF9F1C) !important;
	color: var(--wjj-navy) !important;
	font-weight: 800;
}
.continue-reading.wjj-members-only-btn:hover { filter: brightness(1.06); }

/* Sign-in page: "Not a member yet?" button under the form; SWPM's own small Join Us link is hidden. */
.swpm-login-widget-form .swpm-join-us-link { display: none; }
.wjj-join-prompt {
	margin: 28px auto 0;
	padding-top: 22px;
	border-top: 1px solid #1E2A3E;
	text-align: center;
	max-width: 420px;
}
.wjj-join-prompt p { margin: 0 0 12px; color: #C9D1E0; font-weight: 600; }
.wjj-join-prompt-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--wjj-gold), #FF9F1C);
	color: var(--wjj-navy) !important;
	font-weight: 800;
	font-size: 17px;
	text-decoration: none !important;
	box-shadow: 0 10px 28px -10px rgba(255, 196, 0, .6);
}
.wjj-join-prompt-btn:hover { filter: brightness(1.06); }

/* Search (and image) popup: dark backdrop instead of the theme's white one. */
.mfp-bg { background: #060A13 !important; opacity: .96 !important; }
.mfp-wrap .mfp-close, .mfp-close-btn-in .mfp-close { color: #FFFFFF !important; opacity: .8; }
.mfp-wrap .mfp-close:hover { color: var(--wjj-gold) !important; opacity: 1; }
#search-lightbox, #search-lightbox h1, #search-lightbox h2, #search-lightbox h3, #search-lightbox h4, #search-lightbox .title { color: #FFFFFF; }
#search-lightbox input[type="search"], #search-lightbox input[type="text"] { border: 1px solid #2A3A55 !important; }
#search-lightbox input[type="search"]:focus, #search-lightbox input[type="text"]:focus { border-color: var(--wjj-gold) !important; outline: none; }

/* =====================================================================
   The W Guide to Pattaya (post type "guide", wjj-guide plugin)
   ===================================================================== */
.wjj-guide { padding-top: 30px; padding-bottom: 60px; color: #DCE3EE; }
.wjj-guide a { color: var(--wjj-gold); }
.wjj-guide-head, .wjj-guide-home-head { max-width: 820px; }
.wjj-crumbs ol { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 13px; color: #8E9BB3; }
.wjj-crumbs li + li::before { content: "›"; margin: 0 8px; color: #55627A; }
.wjj-crumbs a { color: #AFC0DA !important; text-decoration: none; }
.wjj-crumbs a:hover { color: var(--wjj-gold) !important; }
.wjj-guide-title { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.08; margin: 0 0 12px; color: #fff; text-wrap: balance; }
.wjj-guide-title .w { color: var(--wjj-gold); }
.wjj-guide-icon { margin-right: 12px; }
.wjj-guide-lede { font-size: 18px; line-height: 1.6; color: #B6C2D6; margin: 0 0 14px; max-width: 64ch; }
.wjj-guide-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: #8E9BB3; margin: 0; }
.wjj-verified { color: #3DD68C; font-weight: 600; }
.wjj-kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--wjj-gold); margin: 0 0 10px; font-weight: 700; }

.wjj-guide-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 34px; align-items: start; }
@media (max-width: 980px) { .wjj-guide-body { grid-template-columns: minmax(0, 1fr); gap: 0; } .wjj-guide-side { display: none; } }
@media (min-width: 981px) { .wjj-guide-side-mobile { display: none; } }
.wjj-guide-side-inner { position: sticky; top: 110px; display: grid; gap: 18px; }
.wjj-guide-text { font-size: 17px; line-height: 1.75; }
.wjj-guide-text h2 { margin-top: 1.8em; scroll-margin-top: 110px; }
.wjj-guide-text h3 { scroll-margin-top: 110px; }
.wjj-guide-text table { width: 100%; }

.wjj-facts { background: var(--wjj-navy-raised); border: 1px solid #22304A; border-radius: 16px; padding: 16px 18px; margin: 0 0 24px; }
.wjj-facts-title, .wjj-toc-title { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--wjj-gold); font-weight: 800; margin: 0 0 10px; }
.wjj-facts dl { margin: 0; display: grid; gap: 8px; }
.wjj-facts dl > div { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 10px; padding-bottom: 8px; border-bottom: 1px solid #1C2840; font-size: 14.5px; }
.wjj-facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.wjj-facts dt { color: #8E9BB3; }
.wjj-facts dd { margin: 0; color: #fff; font-weight: 600; }
.wjj-toc { background: transparent; border-left: 2px solid #22304A; padding: 2px 0 2px 16px; }
.wjj-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.wjj-toc .lvl-3 { padding-left: 14px; font-size: 13px; }
.wjj-toc a { color: #AFC0DA !important; text-decoration: none; }
.wjj-toc a:hover { color: var(--wjj-gold) !important; }
.wjj-side-map { display: block; text-align: center; padding: 12px; border-radius: 12px; border: 1px dashed #33476B; text-decoration: none; font-weight: 700; }

.wjj-autolink { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }

.wjj-section-h { font-size: 22px; margin: 44px 0 16px; color: #fff; }
.wjj-topic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.wjj-topic-grid.is-compact { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.wjj-topic { display: grid; gap: 6px; height: 100%; padding: 16px 18px; border-radius: 14px; background: var(--wjj-navy-raised); border: 1px solid #22304A; text-decoration: none; transition: border-color .15s, transform .15s; }
.wjj-topic:hover { border-color: var(--wjj-gold); transform: translateY(-2px); }
.wjj-topic-title { color: #fff; font-weight: 700; font-size: 16px; }
.wjj-topic-desc { color: #9AA8BF; font-size: 14px; line-height: 1.5; }
.wjj-topic-meta { color: #3DD68C; font-size: 12px; }
.wjj-empty { border: 1px dashed #33476B; border-radius: 14px; padding: 22px; color: #9AA8BF; }
.wjj-empty-title { color: #fff; font-weight: 700; margin: 0 0 6px; }

.wjj-ridealong { margin-top: 48px; padding: 22px 24px; border-radius: 18px; background: linear-gradient(135deg, #131D31, #0E1626); border: 1px solid #22304A; }
.wjj-ridealong-title { font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.wjj-ridealong p { margin: 0 0 14px; color: #AFC0DA; }
.wjj-ridealong-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 !important; }
.wjj-btn { display: inline-block; padding: 11px 18px; border-radius: 12px; border: 1px solid #33476B; color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 15px; }
.wjj-btn:hover { border-color: var(--wjj-gold); }
.wjj-btn.is-gold { background: linear-gradient(135deg, var(--wjj-gold), #FF9F1C); color: var(--wjj-navy) !important; border: 0; }
.wjj-btn.is-pink { background: linear-gradient(135deg, #FF2E93, var(--wjj-magenta-deep)); border: 0; }

.wjj-ride-video { margin: 32px 0 0; }
.wjj-ride-video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 14px; overflow: hidden; background: #000; }
.wjj-ride-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wjj-ride-video figcaption { font-size: 13px; color: #8E9BB3; margin-top: 8px; }

/* Guide home */
.wjj-guide-search { display: flex; gap: 8px; margin: 22px 0 0; max-width: 620px; }
.wjj-guide-search input[type="search"] { flex: 1; min-width: 0; background: #0B1220 !important; color: #fff !important; border: 1px solid #2A3A55 !important; border-radius: 12px; padding: 14px 16px; height: auto; }
.wjj-guide-search button { border: 0; border-radius: 12px; padding: 0 20px; font-weight: 800; background: linear-gradient(135deg, var(--wjj-gold), #FF9F1C); color: var(--wjj-navy); cursor: pointer; }
.wjj-map-teaser { display: grid; gap: 6px; margin: 34px 0 10px; padding: 22px 24px; border-radius: 18px; text-decoration: none !important; border: 1px solid #33476B; background: radial-gradient(circle at 90% 20%, rgba(255,196,0,.18), transparent 45%), var(--wjj-navy-raised); }
.wjj-map-teaser:hover { border-color: var(--wjj-gold); }
.wjj-map-teaser-kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--wjj-gold); font-weight: 800; }
.wjj-map-teaser-title { font-size: 24px; font-weight: 800; color: #fff; }
.wjj-map-teaser-desc { color: #AFC0DA; max-width: 60ch; }
.wjj-map-teaser .wjj-btn { justify-self: start; margin-top: 8px; }
.wjj-hub-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.wjj-hub { display: grid; gap: 6px; height: 100%; box-sizing: border-box; padding: 20px; border-radius: 16px; background: var(--wjj-navy-raised); border: 1px solid #22304A; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.wjj-hub:hover { border-color: var(--wjj-gold); transform: translateY(-2px); }
.wjj-hub-icon { font-size: 28px; }
.wjj-hub-title { color: #fff; font-weight: 800; font-size: 18px; }
.wjj-hub-desc { color: #9AA8BF; font-size: 14px; line-height: 1.5; }
.wjj-hub-count { color: var(--wjj-gold); font-size: 12.5px; font-weight: 700; margin-top: 4px; }

/* W Member Pro box */
.wjj-pro-box { margin: 26px 0; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255,196,0,.55); background: linear-gradient(135deg, rgba(255,196,0,.10), rgba(255,196,0,.02)); }
.wjj-pro-label { margin: 0 0 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--wjj-gold); font-weight: 800; }
.wjj-pro-title { margin: 0 0 8px; font-size: 19px; color: #fff; }
.wjj-pro-box p { margin: 0 0 10px; }
.wjj-pro-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 6px 0 0 !important; }
.wjj-pro-btn { display: inline-block; padding: 10px 16px; border-radius: 12px; background: linear-gradient(135deg, var(--wjj-gold), #FF9F1C); color: var(--wjj-navy) !important; text-decoration: none !important; font-weight: 800; }
.wjj-pro-login { font-weight: 700; }

/* Interactive map */
.wjj-map-wrap { margin: 26px 0; }
.wjj-map { width: 100%; border-radius: 16px; overflow: hidden; border: 1px solid #22304A; background: #E9E6E1; }
.wjj-map .leaflet-tile-pane { filter: grayscale(.35) brightness(1.02); } /* light street map, softened colours (Jonny 2026-11-08: easy to read beats matching the dark site) */
.wjj-map.leaflet-container { background: #E9E6E1; }
.wjj-map img { border-radius: 0 !important; box-shadow: none !important; } /* the theme rounds and shadows every content image: on map tiles that drew lines and "stars" at every tile corner */
.wjj-map .leaflet-control-attribution { background: rgba(8,13,22,.8); color: #8E9BB3; font-size: 11px; }
.wjj-map .leaflet-control-attribution a { color: #AFC0DA; }
.wjj-map .leaflet-control-layers { background: rgba(11,18,32,.94); color: #DCE3EE; border: 1px solid #22304A !important; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.wjj-map .leaflet-control-layers-expanded { padding: 10px 14px 10px 10px; font-size: 13.5px; }
.wjj-map .leaflet-control-layers label { margin: 3px 0; }
.wjj-map .leaflet-control-layers small { color: #8E9BB3; }
.wjj-map .leaflet-bar a { background: #111A2A; color: #fff; border-color: #22304A; }
.wjj-lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin: 0 6px 0 4px; vertical-align: -1px; }
.wjj-lg-route { width: 18px; height: 4px; border-radius: 2px; background: #FFC400; vertical-align: 3px; }
.wjj-lg-feat { width: auto; height: auto; background: none; color: #FFC400; font-size: 13px; }
.wjj-pin { display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFE37A, #FFC400 55%, #D2A202); border: 2px solid #0B1220; box-shadow: 0 0 0 3px rgba(255,196,0,.35), 0 4px 10px rgba(0,0,0,.5); color: #0B1220; font-size: 14px; font-weight: 900; }
.wjj-locate { background: #111A2A; color: #fff; border: 1px solid #22304A; border-radius: 10px; padding: 7px 11px; font-weight: 700; font-size: 13px; cursor: pointer; }
.wjj-locate:hover { border-color: var(--wjj-gold); }
.wjj-map-error { position: absolute; z-index: 999; top: 12px; left: 50%; transform: translateX(-50%); background: #111A2A; color: #fff; padding: 8px 12px; border-radius: 10px; }
.wjj-popup .leaflet-popup-content-wrapper { background: #0F1828; color: #DCE3EE; border: 1px solid #2A3A55; border-radius: 14px; padding: 0; overflow: hidden; }
.wjj-popup .leaflet-popup-content { margin: 0; width: auto !important; min-width: 210px; }
.wjj-popup .leaflet-popup-tip { background: #0F1828; }
.wjj-popup a.leaflet-popup-close-button { color: #fff; }
.wjj-card img { display: block; width: 100%; height: auto; aspect-ratio: 322 / 182; object-fit: cover; }
.wjj-card-body { padding: 12px 14px; }
.wjj-card-body h4 { margin: 0 0 4px; color: #fff; font-size: 16px; line-height: 1.25; }
.wjj-card-kicker { margin: 0 0 4px !important; color: var(--wjj-gold); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; }
.wjj-card-tag { margin: 0 0 8px !important; color: #9AA8BF; font-size: 13px; }
.wjj-stars { color: var(--wjj-gold); letter-spacing: 1px; margin-left: 4px; }
.wjj-stars span { color: #33476B; }
.wjj-card-prices { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.wjj-card-prices li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #1C2840; padding-bottom: 4px; }
.wjj-card-prices b { color: #fff; font-variant-numeric: tabular-nums; }
.wjj-card-links { display: flex; gap: 14px; margin: 0 !important; font-size: 13px; font-weight: 700; }
.wjj-card-links a { color: var(--wjj-gold) !important; }

.wjj-guide.is-wide .wjj-guide-body { grid-template-columns: minmax(0, 1fr); }
.wjj-guide.is-wide .wjj-map { height: min(78vh, 760px) !important; }
@media (max-width: 640px) { .wjj-guide.is-wide .wjj-map { height: 72vh !important; } .wjj-map { border-radius: 12px; } }
.wjj-popup .leaflet-popup-content { min-width: 220px; }
.wjj-card-links { flex-wrap: wrap; }


/* Guide pages: back link and comments. */
.wjj-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid #2A3A55; font-size: 14px; font-weight: 700; text-decoration: none !important; color: #DCE3EE !important; }
.wjj-back:hover { border-color: var(--wjj-gold); color: var(--wjj-gold) !important; }
.wjj-guide-comments { margin-top: 40px; }

/* Guide price tables (What Things Cost) */
.wjj-guide-text .wp-block-table { margin: 14px 0 26px; overflow-x: auto; border: 1px solid #22304A; border-radius: 14px; }
.wjj-guide-text .wp-block-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.wjj-guide-text .wp-block-table th { background: var(--wjj-navy-raised); color: var(--wjj-gold); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 10px 14px; border: 0; border-bottom: 1px solid #22304A; }
.wjj-guide-text .wp-block-table td { padding: 11px 14px; border: 0; border-bottom: 1px solid #1C2840; color: #DCE3EE; vertical-align: top; }
.wjj-guide-text .wp-block-table tr:last-child td { border-bottom: 0; }
.wjj-guide-text .wp-block-table td:nth-child(2) { color: #fff; font-weight: 700; white-space: normal; font-variant-numeric: tabular-nums; } /* was nowrap (for prices); long text cells pushed tables off the page in Safari. min-width 7em keeps prices tidy */

/* =====================================================================
   Forum (bbPress) in the site's dark style
   ===================================================================== */
#bbpress-forums { font-size: 15px; color: #DCE3EE; }
#bbpress-forums a { color: var(--wjj-gold); }
#bbpress-forums ul.bbp-forums, #bbpress-forums ul.bbp-topics, #bbpress-forums ul.bbp-replies, #bbpress-forums ul.bbp-search-results, #bbpress-forums ul.bbp-lead-topic {
	border: 1px solid #22304A; border-radius: 14px; overflow: hidden; background: transparent;
}
#bbpress-forums li.bbp-header, #bbpress-forums li.bbp-footer { background: var(--wjj-navy-raised); border-color: #22304A; color: #8E9BB3; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
#bbpress-forums li.bbp-body ul.forum, #bbpress-forums li.bbp-body ul.topic,
#bbpress-forums div.odd, #bbpress-forums ul.odd, #bbpress-forums div.even, #bbpress-forums ul.even { background: #0B1220; border-top: 1px solid #1C2840; }
#bbpress-forums div.bbp-reply-header, #bbpress-forums div.bbp-topic-header { background: var(--wjj-navy-raised); border-color: #22304A; color: #8E9BB3; }
#bbpress-forums div.bbp-forum-header, #bbpress-forums li.bbp-body ul.forum:hover, #bbpress-forums li.bbp-body ul.topic:hover { background: #101A2C; }
#bbpress-forums .bbp-forum-title, #bbpress-forums .bbp-topic-permalink { font-weight: 700; font-size: 16px; color: #fff !important; }
#bbpress-forums .bbp-forum-content, #bbpress-forums .bbp-forum-info .bbp-forum-content { color: #9AA8BF; }
#bbpress-forums .bbp-topic-meta, #bbpress-forums .bbp-forum-freshness, #bbpress-forums .bbp-topic-freshness, #bbpress-forums p.bbp-topic-meta span { color: #8E9BB3; }
#bbpress-forums .bbp-reply-content, #bbpress-forums .bbp-topic-content { color: #DCE3EE; font-size: 16px; line-height: 1.7; }
#bbpress-forums div.bbp-reply-author .bbp-author-name, #bbpress-forums div.bbp-topic-author .bbp-author-name { color: #fff !important; font-weight: 700; }
#bbpress-forums .bbp-author-role { color: var(--wjj-gold); font-size: 12px; }
#bbpress-forums fieldset.bbp-form { border: 1px solid #22304A; border-radius: 14px; background: var(--wjj-navy-raised); padding: 16px 18px; }
#bbpress-forums fieldset.bbp-form legend { color: #fff; font-weight: 800; padding: 0 6px; }
#bbpress-forums input[type="text"], #bbpress-forums textarea, #bbpress-forums select { background: #0B1220 !important; color: #fff !important; border: 1px solid #2A3A55 !important; border-radius: 10px; }
#bbpress-forums button.button, #bbpress-forums .button.submit { background: linear-gradient(135deg, var(--wjj-gold), #FF9F1C) !important; color: var(--wjj-navy) !important; border: 0 !important; border-radius: 12px; padding: 10px 18px; font-weight: 800; }
#bbpress-forums .bbp-breadcrumb { color: #8E9BB3; font-size: 13px; }
#bbpress-forums .bbp-template-notice { background: #131D31; border: 1px solid #33476B; border-radius: 12px; color: #DCE3EE; }
#bbpress-forums .bbp-template-notice li { color: #DCE3EE; }
#bbpress-forums .bbp-pagination { color: #8E9BB3; }
#bbpress-forums .bbp-topic-tags, #bbpress-forums .subscription-toggle { color: #8E9BB3; }
#bbpress-forums li.bbp-body ul.topic.sticky, #bbpress-forums li.bbp-body ul.topic.super-sticky { background: rgba(255,196,0,.06) !important; }
.bbp-search-form input[type="text"] { background: #0B1220 !important; color: #fff !important; border: 1px solid #2A3A55 !important; border-radius: 10px; }

#bbpress-forums .bbp-reply-content ul, #bbpress-forums .bbp-topic-content ul { list-style: none; padding-left: 0; }
#bbpress-forums .bbp-reply-content ol, #bbpress-forums .bbp-topic-content ol { padding-left: 1.3em; }
#bbpress-forums .bbp-reply-content ol li::before, #bbpress-forums .bbp-topic-content ol li::before { content: none; }

/* Forum: Pro badge and gold names; sign-up box */
#bbpress-forums .wjj-pro-role { color: var(--wjj-gold) !important; font-weight: 800; font-size: 12px; }
#bbpress-forums .wjj-pro-name a, #bbpress-forums .wjj-pro-name .bbp-author-name { color: var(--wjj-gold) !important; }
.wjj-forum-cta { margin: 24px 0; padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255,196,0,.5); background: linear-gradient(135deg, rgba(255,196,0,.10), rgba(255,196,0,.02)); color: #DCE3EE; }
.wjj-forum-cta-title { margin: 0 0 4px; font-weight: 800; font-size: 18px; color: #fff; }
.wjj-forum-cta p { margin: 0 0 10px; }

/* Messages with Jonny */
.wjj-msg-thread { display: grid; gap: 12px; margin: 10px 0 18px; }
.wjj-msg { max-width: 82%; padding: 12px 14px; border-radius: 14px; background: var(--wjj-navy-raised); border: 1px solid #22304A; }
.wjj-msg.is-mine { justify-self: end; background: rgba(255,196,0,.08); border-color: rgba(255,196,0,.4); }
.wjj-msg-meta { margin: 0 0 4px !important; font-size: 12px; color: #8E9BB3; }
.wjj-msg-body p { margin: 0 0 6px; color: #E8ECF4; }
.wjj-msg-form { display: grid; gap: 10px; }
.wjj-msg-form textarea { width: 100%; background: #0B1220 !important; color: #fff !important; border: 1px solid #2A3A55 !important; border-radius: 12px; padding: 12px 14px; font: inherit; }
.wjj-msg-form button { justify-self: start; border: 0; cursor: pointer; }
.wjj-msg-notice { padding: 10px 14px; border-radius: 12px; background: #131D31; border: 1px solid #33476B; }
.wjj-msg-box { padding: 18px 20px; border-radius: 16px; border: 1px solid #22304A; background: var(--wjj-navy-raised); }
.wjj-msg-empty { color: #9AA8BF; }
.wjj-msg-inbox { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wjj-msg-inbox a { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--wjj-navy-raised); border: 1px solid #22304A; text-decoration: none !important; color: #fff !important; }
.wjj-msg-new { background: var(--wjj-gold); color: var(--wjj-navy); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 800; }
.wjj-msg-when { margin-left: auto; color: #8E9BB3; font-size: 13px; }

/* Member panel on Member Profile */
.wjj-member-hub { margin: 0 0 26px; padding: 18px 20px; border-radius: 16px; border: 1px solid #22304A; background: var(--wjj-navy-raised); }
.wjj-member-tier { margin: 0 0 10px; font-weight: 800; color: var(--wjj-gold); letter-spacing: .04em; }
.wjj-member-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wjj-member-links a { display: inline-block; padding: 9px 14px; border-radius: 12px; border: 1px solid #33476B; color: #fff !important; text-decoration: none !important; font-weight: 700; font-size: 14px; }
.wjj-member-links a:hover { border-color: var(--wjj-gold); }
.wjj-member-upgrade { margin: 14px 0 0; color: #AFC0DA; font-size: 14.5px; }

/* Downloads */
.wjj-downloads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.wjj-download { padding: 18px 20px; border-radius: 16px; border: 1px solid #22304A; background: var(--wjj-navy-raised); }
.wjj-download h3 { margin: 0 0 6px; color: #fff; font-size: 19px; }
.wjj-download p { color: #AFC0DA; margin: 0 0 10px; }
.wjj-download-meta { font-size: 13px; color: #8E9BB3 !important; }
.wjj-join-prompt-free { margin: 12px 0 0 !important; font-size: 14px; color: #AFC0DA; }

/* Language switcher: flags in the desktop menu, and a compact flag dropdown beside the search button on mobile */
.wjj-flag { display: inline-block; width: 16px; height: 11px; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.wjj-lang-mobile { display: none; position: absolute; right: 66px; top: 50%; transform: translateY(-50%); z-index: 50; }
.wjj-lang-mobile summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); }
.wjj-lang-mobile summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wjj-lang-mobile summary::-webkit-details-marker { display: none; }
.wjj-lang-mobile summary .wjj-flag { width: 22px; height: 15px; }
.wjj-lang-mobile[open] summary { background: rgba(255,196,0,.2); }
.wjj-lang-mobile ul { position: absolute; right: -50px; top: 48px; min-width: 160px; margin: 0; padding: 6px; list-style: none; background: #121A2B; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.wjj-lang-mobile li a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; color: #E6EAF2; font-size: 15px; text-decoration: none; }
.wjj-lang-mobile li a:hover, .wjj-lang-mobile li.is-current a { background: rgba(255,196,0,.12); color: #FFC400; }
@media screen and (max-width: 1024px) {
	.wjj-lang-mobile:not([hidden]) { display: block; }
}
@media screen and (max-width: 420px) {
	#header .logo img.hide-on-desktop { max-width: 150px; height: auto; }
}


/* Like / dislike */
.wjj-votes-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 8px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.wjj-votes-q { color: #AFC0DA; font-size: 15px; }
.wjj-votes { display: inline-flex; gap: 8px; margin: 10px 0 0; }
.wjj-votes-wrap .wjj-votes { margin: 0; }
.wjj-vote { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(255,255,255,.04); color: #E6EAF2; font-size: 15px; line-height: 1; cursor: pointer; transition: background .15s, border-color .15s; }
.wjj-vote:hover { border-color: rgba(255,196,0,.5); }
.wjj-vote.is-on { background: rgba(255,196,0,.16); border-color: #FFC400; color: #FFC400; }
.wjj-vote .n:empty { display: none; }
.wjj-route-map img { border-radius: 12px; }

/* "Not translated yet" note from lang.js */
.wjj-lang-note { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 9999; max-width: min(92vw, 520px); padding: 12px 16px; border-radius: 12px; background: #121A2B; border: 1px solid rgba(255,196,0,.4); color: #E6EAF2; font-size: 14px; line-height: 1.45; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: opacity .6s; }
.wjj-lang-note.is-gone { opacity: 0; }

/* Guide photos (Wikimedia Commons, credited) */
.wjj-guide-photo { margin: 24px 0; }
.wjj-guide-photo img { width: 100%; height: auto; border-radius: 12px; }
.wjj-guide-photo figcaption { margin-top: 6px; font-size: 12px; color: #8E9BB3; text-align: left; }
.wjj-guide-photo figcaption a { color: #8E9BB3; text-decoration: underline; }

/* ===== October 2026 round ===== */

/* Homepage: "Sponsor a ride" under the lady drink button, and the trip-planning card above YouTube */
.wjj-top-cta { flex-direction: column; align-items: stretch; gap: 10px !important; }
#wjj-link-hub .wjj-hub-card .wjj-btn-sponsor .wp-block-button__link { background: linear-gradient(135deg, #FF2E93, var(--wjj-magenta-deep, #B0105F)) !important; color: #fff !important; border: 0 !important; }
.wjj-link.wjj-link-plan { border: 1px solid var(--wjj-gold); background: radial-gradient(circle at 90% 10%, rgba(255, 196, 0, .16), transparent 55%), #111A2A; }
.wjj-link-emoji { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; font-size: 28px; border-radius: 10px; background: rgba(255, 196, 0, .12); }
.wjj-link-plan .wjj-link-sub { color: rgba(255, 255, 255, .78); }

/* Join page: the PayPal card button sits under its label (no slide-open step) */
.wjj-tier .wjj-join-label { display: block !important; margin: 14px 0 8px !important; font-weight: 800; font-size: 15px; color: #fff; text-align: center; }
.wjj-tier .swpm-payment-button { max-height: none !important; opacity: 1 !important; overflow: visible !important; }
.wjj-join-note { text-align: center; }

/* One-page Support / Guide / Forum */
.wjj-onepage { margin: 56px 0 0; padding: 34px 0 0; border-top: 1px solid #22304A; scroll-margin-top: 90px; }
#support, #supporters { scroll-margin-top: 90px; }
.wjj-onepage .wjj-guide-title { font-size: clamp(28px, 4vw, 40px); }
.wjj-onepage-more { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wjj-guide.wjj-onepage { padding-bottom: 0; }
.wjj-forum-section { color: #DCE3EE; }
.wjj-forum-section .wjj-section-h { margin: 30px 0 12px; color: #fff; font-size: 20px; }
.wjj-two-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 14px 0 22px; }
.wjj-way { padding: 16px 18px; border-radius: 14px; background: #111A2A; border: 1px solid #22304A; color: #AFC0DA; }
.wjj-way p { margin: 0; }
.wjj-way-title { font-weight: 800; color: #fff !important; margin: 0 0 6px !important; }
.wjj-way a { color: var(--wjj-gold); }

/* W Member Supporters card */
.wjj-supporters { margin: 48px auto 0; max-width: 760px; text-align: center; scroll-margin-top: 90px; }
.wjj-supp-card { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid #33476B; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8); }
.wjj-supp-card img { display: block; width: 100%; height: auto; }
.wjj-supp-overlay { position: absolute; inset: 0 0 auto 0; padding: 14px 18px 40px; background: linear-gradient(rgba(8, 13, 22, .85), transparent); }
.wjj-supp-title { margin: 0 !important; color: #fff !important; font-size: clamp(20px, 3.4vw, 30px); font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.wjj-supp-newest { margin: 18px 0 0; color: #fff; font-weight: 800; }
.wjj-supp-newest span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--wjj-gold); }
.wjj-supp-thanks { margin: 16px 0 10px; color: #AFC0DA; }
.wjj-supp-names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wjj-supp-names li { margin: 0; padding: 7px 14px; border-radius: 999px; background: #111A2A; border: 1px solid rgba(255, 196, 0, .45); color: #fff; font-weight: 700; font-size: 14px; }
.wjj-supp-join { margin: 14px 0 0; font-size: 14px; color: #8E9BB3; }

/* Guide pages: forum thread link and official sources */
.wjj-discuss { margin-top: 28px; padding: 20px 22px; border-radius: 16px; background: #111A2A; border: 1px solid #22304A; }
.wjj-discuss p { margin: 0; }
.wjj-discuss-title { font-size: 18px; font-weight: 800; color: #fff; margin: 0 0 12px !important; }
.wjj-discuss-count { margin-left: 10px; color: #8E9BB3; font-size: 14px; }
.wjj-sources { margin: 34px 0 0; padding: 18px 22px; border-radius: 14px; border: 1px solid #2A3A55; background: #0E1626; }
.wjj-sources-title { font-size: 16px !important; margin: 0 0 8px !important; color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.wjj-sources ul { margin: 0 0 10px; padding-left: 20px; }
.wjj-sources li { margin: 4px 0; font-size: 15px; }
.wjj-sources-note { margin: 0; font-size: 13.5px; color: #8E9BB3; }

/* Blog: intro and category links */
.wjj-blog-intro { padding-top: 34px; padding-bottom: 8px; }
.wjj-blog-intro h1 { margin: 0 0 8px; font-size: clamp(30px, 4.6vw, 44px); }
.wjj-blog-lede { margin: 0 0 18px; font-size: 18px; max-width: 64ch; opacity: .85; }
.wjj-cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.wjj-cat-nav a { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(127, 127, 127, .35); text-decoration: none !important; font-weight: 700; font-size: 14px; }
.wjj-cat-nav a span { opacity: .6; font-weight: 600; margin-left: 2px; }
.wjj-cat-nav a.is-current, .wjj-cat-nav a:hover { border-color: var(--wjj-gold); }

/* Translated pages: English-only things say so */
.wjj-en-badge { display: inline-block; margin-left: 4px; padding: 0 5px; border-radius: 4px; font-size: 10px; font-weight: 800; line-height: 16px; vertical-align: middle; border: 1px solid currentColor; opacity: .7; }
.wjj-en-note { margin: 6px 0 0; font-size: 12.5px; opacity: .65; text-align: center; }

/* Grids and pills inside page text: no bullets or list indents from the theme's .text ul styles */
.text .wjj-hub-grid, .text .wjj-topic-grid, .text .wjj-supp-names { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
.text .wjj-hub-grid > li, .text .wjj-topic-grid > li, .text .wjj-supp-names > li { display: block; list-style: none !important; margin-top: 0; margin-bottom: 0; }
.text .wjj-hub-grid > li::marker, .text .wjj-topic-grid > li::marker, .text .wjj-supp-names > li::marker { content: none; }
.text .wjj-supp-names > li { display: inline-block; }
.text .wjj-onepage-more { clear: both; position: relative; z-index: 1; }
/* Footer: Member Login stands out in the Links list */
#footer .menu-item a[href*="membership-login"] { color: var(--wjj-gold) !important; font-weight: 800; }

/* Join page: site-styled button over PayPal's card button (clicks pass through to PayPal) */
.wjj-tier.wjj-has-overlay .wjj-join-label { display: none !important; }
.wjj-tier.wjj-has-overlay .swpm-payment-button { position: relative; height: 46px; overflow: hidden !important; border-radius: 14px; margin-top: 16px !important; }
.wjj-tier.wjj-has-overlay .swpm-button-wrapper { margin-top: -17px !important; } /* PayPal's frame starts ~17px above its button */
.wjj-tier.wjj-has-overlay .swpm-button-wrapper, .wjj-tier.wjj-has-overlay [id^="swpm_paypal_button_"] { width: 100% !important; }
.wjj-join-overlay { position: absolute; inset: 0; z-index: 200; box-sizing: border-box; width: auto !important; display: flex !important; align-items: center; justify-content: center; margin: 0 !important; padding: 0 12px; text-align: center; line-height: 1.15; pointer-events: none; }
.wjj-tier.wjj-has-overlay .swpm-payment-button:hover .wjj-join-overlay { filter: brightness(1.08); box-shadow: 0 14px 34px -10px rgba(255, 196, 0, .75); }
.wjj-tier.is-featured.wjj-has-overlay .swpm-payment-button:hover .wjj-join-overlay { box-shadow: 0 14px 34px -10px rgba(224, 21, 122, .8); }

/* Join page: the 5th tier (Special Sponsor) spans the full row on tablet and desktop instead of sitting alone */
@media (min-width: 782px) {
	.wp-block-columns.wjj-tiers > .wjj-tier:last-child { flex: 0 0 100% !important; max-width: 100% !important; }
	.wjj-tiers > .wjj-tier:last-child ul { columns: 2; column-gap: 40px; }
	.wjj-tiers > .wjj-tier:last-child ul li { break-inside: avoid; }
	.wjj-tiers > .wjj-tier:last-child .swpm-payment-button { width: 100%; max-width: 380px; margin-left: auto !important; margin-right: auto !important; }
}

/* ---------- Homepage: desktop layout (phones/tablets keep the stacked link-hub) ---------- */
.wjj-hub-card .wp-block-latest-posts__featured-image { display: none; }
@media (min-width: 1024px) {
	#wjj-link-hub .wjj-hub-card { max-width: 1180px; padding: 44px 40px 40px; }
	/* support buttons side by side */
	#wjj-link-hub .wjj-hub-card .wp-block-buttons { flex-direction: row; gap: 18px; }
	#wjj-link-hub .wjj-hub-card .wp-block-buttons > .wp-block-button { flex: 1 1 0; width: auto; }
	/* links: blog + guide as two feature cards, socials as a 4-across tile grid */
	#wjj-link-hub .wjj-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
	#wjj-link-hub .wjj-link.wjj-link-plan { grid-column: span 2; min-height: 110px; padding: 18px 22px; gap: 18px; }
	#wjj-link-hub .wjj-link-plan .wjj-link-emoji { width: 60px; height: 60px; flex-basis: 60px; font-size: 32px; }
	#wjj-link-hub .wjj-link-plan .wjj-link-text { text-align: left; padding-right: 0; }
	#wjj-link-hub .wjj-link-plan .wjj-link-title { font-size: 20px; }
	#wjj-link-hub .wjj-link-plan .wjj-link-sub { font-size: 14px; }
	#wjj-link-hub .wjj-link:not(.wjj-link-plan) { flex-direction: column; justify-content: flex-start; text-align: center; gap: 10px; padding: 20px 14px 18px; }
	#wjj-link-hub .wjj-link:not(.wjj-link-plan) img { width: 64px; height: 64px; flex-basis: auto; border-radius: 14px; }
	#wjj-link-hub .wjj-link:not(.wjj-link-plan) .wjj-link-text { padding-right: 0; }
	#wjj-link-hub .wjj-link:not(.wjj-link-plan) .wjj-link-title { font-size: 15px; }
	/* latest posts as a 3-across card row with thumbnails */
	#wjj-link-hub .wjj-hub-card .wp-block-latest-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
	#wjj-link-hub .wjj-hub-card .wp-block-latest-posts li { margin: 0; padding: 0 0 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .10); border-radius: 14px; }
	#wjj-link-hub .wjj-hub-card .wp-block-latest-posts li > *:not(.wp-block-latest-posts__featured-image) { margin-left: 14px; margin-right: 14px; }
	#wjj-link-hub .wjj-hub-card .wp-block-latest-posts__featured-image { display: block; margin: 0 0 12px; }
	#wjj-link-hub .wjj-hub-card .wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; }
	#wjj-link-hub .wjj-hub-card .wp-block-latest-posts li > a { display: block; line-height: 1.35; }
	#wjj-link-hub .wjj-hub-card .wjj-section-label { margin-top: 36px; }
}

/* Homepage: newest supporter box */
.wjj-newest-box { margin: 26px auto 0; max-width: 520px; padding: 18px 20px; border-radius: 16px; background: #111A2A; border: 1px solid var(--wjj-gold); text-align: center; }
.wjj-hub-card .wjj-newest-box .wjj-section-label { margin: 0 0 6px; }
.wjj-hub-card .wjj-newest-name { margin: 0; font-size: 22px; font-weight: 800; color: #fff; }
.wjj-hub-card .wjj-newest-link { margin: 6px 0 0; font-size: 13px; }
.wjj-hub-card .wjj-newest-link a { color: var(--wjj-gold); font-weight: 700; text-decoration: none; }
a.wjj-supp-card { display: block; text-decoration: none !important; transition: transform .15s ease, border-color .15s ease; }
a.wjj-supp-card:hover, a.wjj-supp-card:focus-visible { transform: translateY(-2px); border-color: var(--wjj-gold); }
.wjj-supp-title { display: block; }
.wjj-hub-card .wp-block-latest-posts__featured-image a { display: block; }
.wjj-hub-card .wp-block-latest-posts__featured-image img { transition: transform .25s ease; }
.wjj-hub-card .wp-block-latest-posts li:hover .wp-block-latest-posts__featured-image img { transform: scale(1.03); }

/* ---------- Footer: breathing room + 4 even columns on desktop ---------- */
#footer .widget .wp-block-social-links { margin-top: 22px !important; gap: 14px; }
#footer .widget .wjj-foot-community a { display: inline; }
#footer .widget .menu img { vertical-align: middle; margin-right: 6px; border-radius: 2px; }
@media (min-width: 1024px) {
	#footer .widgets .epcl-row.default-sidebar { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; }
	#footer .widgets .epcl-row.default-sidebar > .clear { display: none; }
	#footer .widgets .epcl-row.default-sidebar > .widget { width: auto !important; float: none !important; padding-left: 0; padding-right: 0; }
	#footer .widget_nav_menu ul.menu, #footer .widget .menu-footer-container ul.menu { padding-left: 0; }
}
#footer .widget_block .menu-footer-container ul.menu { list-style: none; margin: 0; padding: 0; }
#footer .widget_block .menu-footer-container li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .10); font-size: 15px; }
#footer .widget_block .menu-footer-container li:last-child { border-bottom: 0; }
#footer .widget_block .menu-footer-container a { color: #fff; text-decoration: none; }
#footer .widget_block .menu-footer-container a:hover, #footer .widget_block .menu-footer-container .current-menu-item a { color: var(--wjj-gold); }
@media (min-width: 1024px) {
	#footer .widgets .epcl-row.default-sidebar { padding: 0 40px; }
}
@media (min-width: 1024px) {
	/* footer columns: even dividers with room for the wave icon and text */
	#footer .widgets .epcl-row.default-sidebar { gap: 0; }
	#footer .widgets .epcl-row.default-sidebar > .widget { padding: 0 32px 0 64px !important; border-left: 1px solid rgba(255, 255, 255, .10) !important; }
	#footer .widgets .epcl-row.default-sidebar > .widget:first-child { padding-left: 0 !important; border-left: 0 !important; }
	#footer .widgets .epcl-row.default-sidebar > .widget .widget-title { margin-bottom: 22px !important; }
	#footer .widgets .epcl-row.default-sidebar > .widget .widget-title .decoration { left: -44px; }
	#footer .widget_block .menu-footer-container li:first-child, #footer .widget_nav_menu li:first-child { padding-top: 0; }
	#footer .widget_block > *:first-child { margin-top: 0; }
}
#footer .widget_block .menu-footer-container li:not(.current-menu-item) a { color: #fff !important; }
#footer .widget_block .menu-footer-container li a:hover, #footer .widget_block .menu-footer-container li.current-menu-item a { color: var(--wjj-gold) !important; }

/* Tables on phones: each row becomes a card (labels come from the header via functions.php). */
@media (max-width: 700px) {
  .wp-block-table { overflow: visible !important; border: 0 !important; }
  .wp-block-table table { min-width: 0 !important; width: 100% !important; border: 0 !important; }
  .wp-block-table thead { display: none; }
  .wp-block-table table, .wp-block-table tbody, .wp-block-table tr, .wp-block-table td { display: block; width: 100% !important; box-sizing: border-box; }
  .wp-block-table tr { margin: 0 0 12px; padding: 12px 14px; border: 1px solid #22304A !important; border-radius: 14px; }
  .wp-block-table td { padding: 3px 0 !important; border: 0 !important; white-space: normal !important; word-break: normal; overflow-wrap: anywhere; font-size: 15px; }
  .wp-block-table td:first-child { color: var(--wjj-gold) !important; font-weight: 800; font-size: 16px; padding-bottom: 6px !important; }
  .wp-block-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8A97AD; font-weight: 700; }
  .wp-block-table td:empty { display: none; }
}

/* Photo cards: guide hubs (/guide/) and "In this section" topics (2026-10-28) */
.wjj-hub-grid > li, .wjj-topic-grid > li { margin: 0 !important; padding: 0 !important; }
.wjj-hub-grid > li::before, .wjj-topic-grid > li::before { display: none !important; content: none !important; }
.wjj-hub, .wjj-topic.has-img { overflow: hidden; align-content: start; }
.wjj-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #1c2b4a, #0b1220); }
.wjj-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0 !important; border-radius: 0 !important; transition: transform .3s; }
.wjj-hub:hover .wjj-card-img img, .wjj-topic:hover .wjj-card-img img { transform: scale(1.04); }
.wjj-hub .wjj-card-img { margin: -20px -20px 0; }
.wjj-topic.has-img .wjj-card-img { margin: -16px -18px 4px; }
.wjj-hub .wjj-hub-icon { width: 48px; height: 48px; margin-top: -26px; position: relative; display: flex; align-items: center; justify-content: center; font-size: 26px; background: var(--wjj-navy-raised); border: 1px solid #22304A; border-radius: 12px; }
.wjj-hub .wjj-card-img.is-empty { aspect-ratio: 16 / 5; }
.wjj-topic .wjj-card-img.is-empty { aspect-ratio: 16 / 4; }
@media (max-width: 600px) {
	.wjj-hub-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
	.wjj-hub { padding: 14px; }
	.wjj-hub .wjj-card-img { margin: -14px -14px 0; }
	.wjj-hub .wjj-hub-icon { width: 38px; height: 38px; font-size: 20px; margin-top: -21px; border-radius: 10px; }
	.wjj-hub-title { font-size: 15px; line-height: 1.25; }
	.wjj-hub-desc { display: none; }
	.wjj-topic-grid { grid-template-columns: 1fr; gap: 10px; }
	.wjj-topic.has-img { grid-template-columns: 104px 1fr; column-gap: 12px; padding: 0 12px 0 0; }
	.wjj-topic.has-img .wjj-card-img { grid-row: 1 / span 3; margin: 0; aspect-ratio: auto; height: 100%; min-height: 84px; }
	.wjj-topic.has-img .wjj-topic-title { padding-top: 12px; font-size: 15px; }
	.wjj-topic.has-img .wjj-topic-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
	.wjj-topic.has-img .wjj-topic-meta { padding-bottom: 12px; }
}

/* ===== Homepage hero: speech bubble from the avatar + tagline as wide as the name (2026-11-08) =====
   The bubble is a 420x290 SVG (oval + tail, gold "pop" offset, halftone dots, black outline) with the text
   laid over it. Its size is set by --bw on .wjj-hero; text sizes are in cqw so the bubble scales like an image.
   The tail tip sits at 62% of the bubble's height (0.62 x 290/420 = .4281 x width).
   --bw/--av live on .wjj-hero so the phone hero can size itself from the bubble. */
.wjj-hero { --bw: 350px; }
.wjj-hero-top { position: relative; }
.wjj-bubble {
	position: absolute;
	left: calc(100% + 6px);
	top: calc(70% - var(--bw) * .4281);
	width: var(--bw);
	aspect-ratio: 420 / 290;
	container-type: inline-size;
	z-index: 4;
	transform: rotate(-1.5deg);
	transform-origin: 0% 62%;
	animation: wjj-bubble-pop .6s cubic-bezier(.2, 1.5, .4, 1) .2s both;
}
.wjj-bubble-shape {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
	filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .5));
}
.wjj-bubble-pop { fill: var(--wjj-gold, #FFC400); }
.wjj-bubble-body {
	position: absolute;
	left: 19%;
	right: 11%;
	top: 16.5%;
	bottom: 19%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2.6cqw;
	text-align: center;
}
.wjj-bubble-text {
	margin: 0 !important;
	font-family: 'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', casual, sans-serif;
	font-weight: 700;
	font-size: 6.4cqw;
	line-height: 1.16;
	color: #111111 !important;
	text-shadow: none !important;
}
.wjj-bubble-btn {
	display: inline-block;
	font-family: Bangers, 'Comic Neue', 'Comic Sans MS', 'Chalkboard SE', casual, sans-serif;
	font-size: 4.9cqw;
	font-weight: 400;
	letter-spacing: .06em;
	line-height: 1;
	color: #FFFFFF !important;
	text-decoration: none !important;
	background: #FF2D95;
	border: 2.5px solid #111111;
	border-radius: 10px;
	padding: 1.6cqw 3.6cqw 1.2cqw;
	box-shadow: 3px 3px 0 #111111;
	transform: rotate(-2deg);
	transition: transform .15s ease, box-shadow .15s ease;
}
.wjj-bubble-btn:hover,
.wjj-bubble-btn:focus-visible { color: #FFFFFF !important; transform: rotate(-2deg) translate(-1px, -2px); box-shadow: 4px 5px 0 #111111; }
/* Other scripts run longer or taller than English */
:lang(th) .wjj-bubble-text { font-size: 5.8cqw; line-height: 1.32; }
:lang(ru) .wjj-bubble-text { font-size: 5.6cqw; }
:lang(zh) .wjj-bubble-text { font-size: 6.4cqw; line-height: 1.3; }
:lang(ko) .wjj-bubble-text { font-size: 5.8cqw; line-height: 1.3; word-break: keep-all; } /* Korean: break between words only */
:lang(th) .wjj-bubble-btn, :lang(zh) .wjj-bubble-btn, :lang(ru) .wjj-bubble-btn, :lang(ko) .wjj-bubble-btn { font-family: inherit; font-weight: 800; letter-spacing: 0; font-size: 4.2cqw; }
@keyframes wjj-bubble-pop {
	0% { opacity: 0; transform: scale(.4) rotate(-8deg); }
	65% { opacity: 1; transform: scale(1.05) rotate(-.5deg); }
	100% { opacity: 1; transform: scale(1) rotate(-1.5deg); }
}
@media (prefers-reduced-motion: reduce) { .wjj-bubble { animation: none; } }

/* Name bigger; the tagline under it is sized to the same width by a script in functions.php */
.wjj-hero-name { font-size: 44px; }
.wjj-hero-tag { font-size: 15px; letter-spacing: .04em; margin-right: -.04em; }

/* Tablet and phone: avatar and bubble side by side, name and tagline under them */
@media (max-width: 980px) {
	.wjj-hero { height: 430px; --av: 120px; --bw: min(380px, calc(100vw - 40px - var(--av))); }
	.wjj-hero-top {
		display: flex;
		align-items: flex-start;
		justify-content: center;
		margin-bottom: 12px;
	}
	.wjj-hero-top .wjj-hero-avatar {
		flex: 0 0 auto;
		width: var(--av);
		height: var(--av);
		margin: max(0px, calc(var(--bw) * .4281 - var(--av) / 2)) 0 0 !important;
	}
	.wjj-bubble { position: relative; left: auto; top: auto; flex: 0 0 auto; margin-left: 4px; }
	.wjj-hero-name { font-size: 40px; }
	.wjj-hero-tag { font-size: 13.5px; }
}
@media (max-width: 600px) {
	/* Start below the phone header's menu, flag and search buttons, and grow with the bubble
	   (wider phones get a bigger bubble) so the name and tagline never reach the icon row:
	   bubble height (.6905 x width) + 256px for header offset, name, tagline, gaps and the icon overlap. */
	.wjj-hero { --av: 84px; --bw: min(320px, calc(100vw - 34px - var(--av))); height: calc(var(--bw) * .6905 + 256px); }
	.wjj-hero-inner { top: 56px; }
	.wjj-hero-top { margin-bottom: 8px; }
	/* all 11 social icons (26px each) on one row: shrink the gap to whatever is left */
	.wjj-hero + .wjj-hub-card .wp-block-social-links { column-gap: clamp(2px, calc((100vw - 32px - 286px) / 10), 10px) !important; }
	.wjj-hero-name { font-size: 36px; }
	.wjj-hero-tag { font-size: 12px; }
}

/* About page, end of "Why I do this": three next-step buttons (blog, guide, support) */
.wjj-why-cta { display: flex; flex-wrap: wrap; gap: 12px !important; justify-content: center; margin: 22px 0 10px !important; }
.wjj-why-cta .wp-block-button { flex: 1 1 200px; margin: 0 !important; }
.wjj-why-cta .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: center;
	padding: 14px 18px !important;
	border-radius: 14px !important;
	font-weight: 800 !important;
	font-size: 16px !important;
	line-height: 1.25 !important;
	text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease;
}
.wjj-why-cta .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8); }
.wjj-cta-blog .wp-block-button__link { background: #111A2A !important; color: #FFFFFF !important; border: 1px solid rgba(255, 196, 0, .55) !important; }
.wjj-cta-guide .wp-block-button__link { background: linear-gradient(135deg, var(--wjj-gold, #FFC400), #FF9F1C) !important; color: var(--wjj-navy, #080D16) !important; border: 0 !important; }
.wjj-cta-support .wp-block-button__link { background: linear-gradient(135deg, #FF2E93, var(--wjj-magenta-deep, #B0105F)) !important; color: #FFFFFF !important; border: 0 !important; }
@media (max-width: 600px) { .wjj-why-cta .wp-block-button { flex-basis: 100%; } }
/* the parent theme paints a pink gradient + wave over every button with ::before/::after: off for these */
.wjj-why-cta .wp-block-button__link::before,
.wjj-why-cta .wp-block-button__link::after { display: none !important; }

/* Blog index: "Looking for something specific? Search the Guide here" link under the intro */
.wjj-blog-guide-link { margin-top: 6px !important; }
.wjj-blog-guide-link a { color: var(--wjj-gold, #FFC400) !important; font-weight: 700; text-decoration: none !important; }
.wjj-blog-guide-link a:hover { text-decoration: underline !important; }

/* Tables: the theme's inherited word-break:break-word lets Safari squeeze a column to one letter
   (it counts every letter as a break point when sizing columns). Break between words only, and give columns a floor. */
.text table th,
.text table td,
.wp-block-table th,
.wp-block-table td { word-break: normal; overflow-wrap: break-word; hyphens: manual; }
.text table th,
.text table td,
.wp-block-table th,
.wp-block-table td { min-width: 7em; }

/* Search results: compact rows (thumbnail, section label, title, short excerpt). Markup: partials/loops/search-row.php */
.search .articles article.wjj-sr { display: block; margin: 0 0 12px; padding: 0; background: none; border: 0; box-shadow: none; min-height: 0; text-align: left; }
.search .articles article.wjj-sr:before, .search .articles article.wjj-sr:after { display: none; }
.wjj-sr-link { display: flex; align-items: center; gap: 14px; padding: 10px; background: #111A2A; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; color: #fff; text-decoration: none; transition: border-color .15s; }
.wjj-sr-link:hover, .wjj-sr-link:focus-visible { border-color: #FFC400; }
.wjj-sr-img { flex: 0 0 120px; width: 120px; height: 90px; border-radius: 8px; overflow: hidden; background: #15213A; position: relative; }
.wjj-sr-img img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; box-shadow: none; display: block; }
.wjj-sr-img.is-empty:after { content: "W"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #FFC400; font-weight: 800; font-size: 28px; opacity: .6; }
.wjj-sr-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.wjj-sr-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #FFC400; }
.wjj-sr-title { font-size: 17px; font-weight: 700; line-height: 1.3; color: #fff; }
.wjj-sr-excerpt { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.75); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 600px) {
	.wjj-sr-link { gap: 10px; padding: 8px; }
	.wjj-sr-img { flex-basis: 76px; width: 76px; height: 76px; }
	.wjj-sr-title { font-size: 15px; }
	.wjj-sr-excerpt { font-size: 13px; }
}

.wjj-sr mark.wjj-hl { background: rgba(255,196,0,.35); color: inherit; padding: 0 2px; border-radius: 3px; }
