/*
 * Jurisdiction 2026 template (page-templates/jurisdiction-2026.php).
 * Loaded only on that template. Every selector is scoped to a j26- class so nothing here
 * reaches other templates or the existing blocks.
 */

.j26-hero,
.j26 {
	--j26-red: #dc3931;
	--j26-red-dark: #9b0d12;
	--j26-navy: #252b63;
	--j26-burgundy: #b6233d; /* theme "red" accent, same as border-red */
	--j26-green: #017e3e;
	--j26-grey: #f2f3f4;
	--j26-tile: #f0f0f0;
	--j26-line: #c9c9c9;
	--j26-text: #000;
	--j26-muted: #555;
	--j26-head: 'din-2014', sans-serif;
	--j26-body: 'Open Sans', sans-serif;
}

/* ---------- Layout ---------- */

/* Same box as the theme's .container, so new and old blocks line up */
.j26-wrap {
	width: 1190px;
	max-width: 85%;
	padding-left: 1em;
	padding-right: 1em;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 1023px) {
	.j26-wrap { max-width: 100%; box-sizing: border-box; }
}
.j26 .j26-sec {
	padding-top: 64px;
	padding-bottom: 64px; /* side padding stays from the theme .section (clears the left sidebar) */
	font-family: var(--j26-body);
	color: var(--j26-text);
}
.j26 .j26-sec.j26-pad-none { padding-top: 0; padding-bottom: 0; }
.j26 .j26-sec.j26-pad-top { padding-bottom: 0; }
.j26 .j26-sec.j26-pad-bottom { padding-top: 0; }
.j26 .j26-bg-grey { background: var(--j26-grey); }
.j26 .j26-bg-white { background: #fff; }
.j26 .j26-bg-dark { background: #000; --j26-text: #fff; --j26-muted: #ccc; --j26-tile: #1d1d1d; --j26-line: #444; }

/* Skip rendering of below-the-fold sections until they are near the viewport. */
.j26 .j26-defer {
	content-visibility: auto;
	contain-intrinsic-size: auto 700px;
}

/* ---------- Type ---------- */

.j26 .j26-title { margin-bottom: 32px; }
.j26 .j26-title h2 {
	font-family: var(--j26-head);
	font-weight: 700;
	font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem);
	line-height: 1.15;
	color: var(--j26-text);
	margin: 0;
}
/* Divider: size and colour come from the theme's hr.short + border-{accent}, as on the old blocks */
.j26 .j26-title hr.short { margin: 18px 0 0; }

.j26 .j26-rt {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--j26-text);
}
.j26 .j26-rt > :first-child { margin-top: 0; }
.j26 .j26-rt > :last-child { margin-bottom: 0; }
.j26 .j26-rt p { margin: 0 0 1em; }
.j26 .j26-rt ul,
.j26 .j26-rt ol { margin: 0 0 1em; padding-left: 1.25em; }
.j26 .j26-rt ul { list-style: disc; }
.j26 .j26-rt ol { list-style: decimal; }
.j26 .j26-rt li { margin-bottom: 0.4em; }
.j26 .j26-rt a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.j26 .j26-rt a:hover { color: var(--j26-red); }
.j26 .j26-rt h3,
.j26 .j26-rt h4 { font-family: var(--j26-head); font-weight: 700; margin: 1.2em 0 0.5em; }
.j26 .j26-small { font-size: 0.875rem; }

.j26 .j26-titleleft { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; }
@media (min-width: 1024px) {
	.j26 .j26-titleleft { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

/* Underlined text link with arrow: "Read more", block buttons */
.j26 .j26-more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding-bottom: 3px;
	font-size: 1rem;
	color: var(--j26-text);
	border-bottom: 1px solid currentColor;
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s;
}
.j26 .j26-more:hover { color: var(--j26-red); }

/* ---------- Hero ---------- */

.j26-hero {
	position: relative;
	overflow: hidden;
	background: #111;
	color: #fff;
	font-family: var(--j26-body);
}
.j26-hero-bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) brightness(0.55);
}
.j26-hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	padding-top: 112px; /* clears the fixed site header */
	padding-bottom: 40px;
}
@media (min-width: 1024px) {
	/* Full-width hero: clears the left sidebar, then a margin that grows with the screen */
	.j26-hero { padding: 0 0 0 64px; }
	/* No stats: same width and side padding as the body (theme .section + .container) */
	.j26-hero.j26-hero-single { padding: 0 1em 0 calc(64px + 1em); }
	.j26-hero:not(.j26-hero-single) .j26-hero-grid.j26-wrap {
		width: auto;
		max-width: none;
		padding-left: clamp(24px, 4vw, 80px);
		padding-right: clamp(24px, 4vw, 80px);
	}
	.j26-hero-grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		align-items: center;
		gap: 64px;
		min-height: 520px;
		padding-top: 132px;
		padding-bottom: 48px;
	}
}
.j26-hero h1 {
	font-family: var(--j26-head);
	font-weight: 700;
	font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.6rem);
	line-height: 1.15;
	color: #fff;
	margin: 0 0 16px;
}
.j26-hero-caption {
	font-size: 0.95rem;
	line-height: 1.55;
	margin: 0 0 32px;
	max-width: 560px;
}
.j26-hero-btns {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	max-width: 535px;
}
@media (min-width: 640px) {
	.j26-hero-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}
.j26-hero .j26-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 16px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s;
}
.j26-hero .j26-btn-red { background: var(--j26-red-dark); }
.j26-hero .j26-btn-red:hover { background: var(--j26-red); }
.j26-hero .j26-btn-grey { background: #3a3a3a; }
.j26-hero .j26-btn-grey:hover { background: #555; }
.j26-hero-down {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	max-width: 535px;
	margin-top: 24px;
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	color: #fff;
	text-decoration: none;
}
.j26-hero-down svg {
	width: 18px;
	height: 9px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	transition: transform 0.2s;
}
.j26-hero-down:hover svg { transform: translateY(3px); }

/* No stats: one column, shorter, title can run wider */
.j26-hero-single .j26-hero-text { max-width: 900px; }
.j26-hero-single .j26-hero-caption { max-width: 720px; }
.j26-hero-single h1 + .j26-hero-actions { margin-top: 28px; }
@media (min-width: 1024px) {
	.j26-hero.j26-hero-single .j26-hero-grid {
		grid-template-columns: minmax(0, 1fr);
		min-height: 380px;
	}
}
/* One button only: Explore takes the second button slot, on the same row */
@media (min-width: 640px) {
	.j26-hero-actions-inline {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: 16px 32px;
	}
	.j26-hero-actions-inline .j26-hero-btns { grid-template-columns: minmax(0, 1fr); width: 255px; }
	.j26-hero-actions-inline .j26-hero-down {
		flex-direction: row;
		gap: 10px;
		margin-top: 0;
		white-space: nowrap;
	}
}
.j26-hero-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr; /* equal boxes, whether a label wraps to one line or two */
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.j26-hero-stats li {
	padding: 16px 16px 14px;
	background: rgba(0, 0, 0, 0.55);
}
.j26-hero-stats strong {
	display: block;
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid #fff;
	font-family: var(--j26-head);
	font-size: clamp(1.3rem, 1rem + 0.8vw, 1.65rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--j26-red);
}
.j26-hero-stats span {
	display: block;
	font-size: 0.75rem;
	line-height: 1.35;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}
@media (min-width: 1024px) {
	.j26-hero-stats li { padding: 20px 24px 18px; }
	.j26-hero-stats span { font-size: 0.875rem; }
}

/* ---------- Text beside image (key benefits, retirement planning) ---------- */

.j26 .j26-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	align-items: start;
}
@media (min-width: 1024px) {
	.j26 .j26-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14%; }
	.j26 .j26-split-left .j26-split-img { order: -1; }
	.j26 .j26-split-noimg { grid-template-columns: minmax(0, 1fr); }
}
.j26 .j26-split-img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}
/* A bullet list in the text becomes a ruled list */
.j26 .j26-ruled ul {
	list-style: none;
	padding: 0;
}
.j26 .j26-ruled ul li {
	margin: 0;
	padding: 8px 0;
	border-bottom: 1px solid var(--j26-line);
	line-height: 1.35;
}

/* ---------- Why choose: numbered highlights ---------- */

.j26 .j26-points {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
	gap: 32px 40px;
	margin: 48px 0 0;
	padding: 0;
	list-style: none;
}
.j26 .j26-points li {
	padding-top: 14px;
	border-top: 1px solid var(--j26-red);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.35;
}
.j26 .j26-points-n {
	display: block;
	margin-bottom: 10px;
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1;
	color: #bdbdbd;
}

/* ---------- Service directory (design option 4) ---------- */

.j26 .j26-accent-navy { --j26-accent: var(--j26-navy); }
.j26 .j26-accent-burgundy { --j26-accent: var(--j26-burgundy); }
.j26 .j26-accent-green { --j26-accent: var(--j26-green); }
.j26 .j26-tiles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.j26 .j26-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.j26 .j26-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.j26 .j26-tile {
	display: flex;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	min-height: 96px;
	padding: 12px 14px 14px;
	background: var(--j26-tile);
	color: var(--j26-text);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.25;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.j26 .j26-tile .j26-ico { color: var(--j26-accent); }
.j26 .j26-tile span { margin-top: auto; }
.j26 .j26-tile:hover,
.j26 .j26-tile:focus-visible {
	background: var(--j26-accent);
	color: #fff;
}
.j26 .j26-tile:hover .j26-ico,
.j26 .j26-tile:focus-visible .j26-ico { color: #fff; }
.j26 .j26-ico {
	width: 32px;
	height: 32px;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}
@media (min-width: 1024px) {
	.j26 .j26-tile { min-height: 106px; padding: 12px 14px 16px; font-size: 1.05rem; }
}

/* ---------- People ---------- */

/* One row that scrolls sideways (CSS scroll-snap): 2 per view on phones, 4 on desktop */
.j26 .j26-people {
	--j26-gap: 16px;
	--j26-per-view: 2;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--j26-per-view) - 1) * var(--j26-gap)) / var(--j26-per-view));
	gap: var(--j26-gap);
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.j26 .j26-people::-webkit-scrollbar { display: none; }
.j26 .j26-people > li { scroll-snap-align: start; }
.j26 .j26-people:focus-visible { outline: 2px solid var(--j26-red); outline-offset: 4px; }
@media (min-width: 1024px) {
	.j26 .j26-people { --j26-gap: 22px; --j26-per-view: 4; }
}

.j26 .j26-slider-nav {
	display: none;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 24px;
}
.j26 .j26-slider-on .j26-slider-nav { display: flex; }
.j26 .j26-slider-nav button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #000;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
}
.j26 .j26-slider-nav button:hover:not(:disabled) { background: var(--j26-red); }
.j26 .j26-slider-nav button:disabled { opacity: 0.3; cursor: default; }
.j26 .j26-slider-nav svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.j26 .j26-people-img {
	display: block;
	aspect-ratio: 281 / 338;
	margin-bottom: 20px;
	background: #ddd;
	overflow: hidden;
}
.j26 .j26-people-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1);
	transition: transform 0.4s;
}
.j26 .j26-people li:hover .j26-people-img img { transform: scale(1.03); }
.j26 .j26-people-name {
	display: block;
	font-size: clamp(1.15rem, 1rem + 0.5vw, 1.6rem);
	font-weight: 600;
	line-height: 1.2;
	color: var(--j26-text);
	text-decoration: none;
}
.j26 .j26-people-name::after {
	content: '';
	display: block;
	width: 42px;
	height: 5px;
	margin: 12px 0 14px;
	background: var(--j26-red);
}
.j26 .j26-people-role {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--j26-text);
}

/* ---------- Insights: topic links ---------- */

.j26 .j26-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}
.j26 .j26-tags a {
	display: block;
	padding: 8px 16px;
	border: 1px solid var(--j26-text);
	font-weight: 600;
	color: var(--j26-text);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}
.j26 .j26-tags a:hover,
.j26 .j26-tags a:focus-visible {
	background: #5a5a5a;
	border-color: #5a5a5a;
	color: #fff;
}

/* ---------- Knowledge Hub tabs ---------- */

.j26 .j26-tablist {
	display: flex;
	justify-content: center;
	gap: 22px;
	margin: 36px 0 0;
}
.j26 .j26-tablist button {
	min-width: 158px;
	padding: 9px 20px;
	border: 0;
	border-bottom: 2px solid var(--j26-text);
	background: transparent;
	font: 600 1.05rem/1.3 var(--j26-body);
	color: var(--j26-text);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.j26 .j26-tablist button[aria-selected="true"],
.j26 .j26-tablist button:hover {
	background: #5f5f5f;
	border-color: #5f5f5f;
	color: #fff;
}
.j26 .j26-tabpanel-title {
	margin: 40px 0 24px;
	font-family: var(--j26-head);
	font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem);
	font-weight: 700;
	color: var(--j26-text);
}
.j26 .j26-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
@media (min-width: 768px) {
	.j26 .j26-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.j26 .j26-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.j26 .j26-card-img {
	display: block;
	aspect-ratio: 268 / 188;
	margin-bottom: 14px;
	background: #ddd;
	overflow: hidden;
}
.j26 .j26-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}
.j26 .j26-cards li:hover .j26-card-img img { transform: scale(1.03); }
.j26 .j26-card-meta {
	margin: 0 0 8px;
	font-size: 0.8rem;
	color: var(--j26-muted);
}
.j26 .j26-card-title {
	display: block;
	font-size: 1.1rem;
	line-height: 1.3;
	color: var(--j26-text);
	text-decoration: none;
}
.j26 .j26-card-title:hover { color: var(--j26-red); }
.j26 .j26-cards .j26-more { font-size: 0.875rem; margin-top: 12px; }

/* ---------- Licences ---------- */

.j26 .j26-logos {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 16px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}
.j26 .j26-logos li {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: #fff;
}
.j26 .j26-logos img { max-width: 100%; height: auto; }

/* ---------- Small screens ---------- */

@media (max-width: 767px) {
	.j26 .j26-sec { padding-top: 44px; padding-bottom: 44px; }
	.j26 .j26-title { margin-bottom: 24px; }
	.j26 .j26-tablist { gap: 12px; }
	.j26 .j26-tablist button { min-width: 0; flex: 1; }
	.j26 .j26-points { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
	.j26 *, .j26-hero * { transition: none !important; }
}

/* ---------- Lists in old-design blocks on this template ---------- */

/* No left padding: bullets line up with the heading; wrapped lines align with the text */
.j26 .richtext ul,
.j26 .richtext ol {
	padding-left: 0;
}
.j26 .richtext ul {
	list-style: none;
}
.j26 .richtext ul > li {
	position: relative;
	padding-left: 1.1em;
}
.j26 .richtext ul > li::before {
	content: '\2022';
	position: absolute;
	left: 0;
}
.j26 .richtext ol {
	list-style-position: inside;
}
/* The old row callout centres its 490px text column; align it with the heading instead */
.j26 .callout-wrapper .text-wrapper {
	margin-left: 0;
}
