/* NDS 2026 — layout, typography (C1–C2), main-site public tokens (new_web_scss)
 * Cosmetic only. Results/Admin classes preserved for PHP output.
 */

:root {
	--nds-year: 2026;
	--nds-banner: url("/images/banner1.jpg");
	--nds-banner-sm: url("/images/banner1_small.jpg"), url("/images/banner1.jpg");

	--nds-header-height: clamp(120px, 22vw, 200px);
	--nds-header-height-sm: clamp(100px, 28vw, 150px);
	--nds-header-fallback: linear-gradient(135deg, #5d9c29 0%, #7cc145 55%, #323232 100%);

	--nds-font: "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
	--nds-font-results: Arial, Helvetica, sans-serif;

	/* Dogs NZ public site (site.scss + customise-bootstrap, CMS excluded) */
	--nds-green: #7cc145;
	--nds-green-dark: #5d9c29;
	--nds-charcoal: #323232;
	--nds-secondary: #767e75;
	--nds-secondary-dark: #636762;
	--nds-link: #5d9c29;
	--nds-link-hover: #7cc145;
	--nds-text: #323232;
	--nds-text-muted: #6b6b6b;
	--nds-bg: #ffffff;
	--nds-surface: #ffffff;
	--nds-surface-subtle: #f7f7f7;
	--nds-border: #e5e7eb;
	--nds-nav: #323232;
	--nds-nav-text: #ffffff;
	--nds-nav-active: #7cc145;
	--nds-footer: #323232;

	--nds-breed: #642a85;
	--nds-obedience: #009fe3;
	--nds-agility: #db191c;

	--nds-radius: 0.6rem;
	--nds-radius-card: 0.85rem;
	--nds-radius-xl: 0.75rem;
	--nds-radius-pill: 30px;
	--nds-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	--nds-shadow-nav: 0 -5px 5px -5px #ccc;
	--nds-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
	--nds-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--nds-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	--nds-line: 1.6;
	--nds-max-width: 1000px;

	/* Redesign neutrals (CR1) — distilled from Figma export, approximating Tailwind v4 oklch scale */
	--nds-gray-50: #f9fafb;
	--nds-gray-100: #f3f4f6;
	--nds-gray-200: #e5e7eb;
	--nds-gray-400: #9ca3af;
	--nds-gray-600: #4b5563;
	--nds-gray-900: #1f2937;

	/* Redesign section rhythm */
	--nds-section-py: clamp(2.5rem, 6vw, 4rem);
	--nds-container: 80rem;
	--nds-container-prose: 56rem;
}

/* ------------------------------------------------------------------ reset */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	font-family: var(--nds-font);
	font-size: 16px;
	line-height: var(--nds-line);
	color: var(--nds-text);
	background-color: var(--nds-bg);
}

div {
	vertical-align: top;
	text-align: left;
}

/* Content columns (not global — avoids fighting Results/Admin inner divs) */
.main > .header,
.main > .nav,
.left1,
.left2,
.left50,
.left70,
.right1,
.right2,
.right50,
.right30,
.content,
.hamburger-menu {
	background-color: var(--nds-surface);
}

a {
	text-decoration: none;
	color: var(--nds-link);
	transition: color 0.15s ease;
}

a:hover {
	text-decoration: underline;
	color: var(--nds-link-hover);
}

/* ---------------------------------------------------------------- typography */
h1,
h2,
h3,
h4 {
	margin: 0 0 0.5em;
	padding: 0;
	font-weight: 600;
	line-height: 1.25;
	color: var(--nds-green);
}

h1 {
	font-size: 1.75rem;
}

h2 {
	font-size: 1.35rem;
	color: var(--nds-green-dark);
}

h3 {
	font-size: 1.15rem;
}

h4 {
	font-size: 1rem;
}

.left2 p,
.right2 p,
.left1 p,
.right1 p,
.content p {
	margin: 0 0 1em;
}

.left2 ul,
.right2 ul,
.content ul {
	margin: 0 0 1em;
	padding-left: 1.25em;
}

.left2 li,
.right2 li,
.content li {
	margin-bottom: 0.35em;
}

.h_breed {
	color: var(--nds-breed);
}

.h_obedience {
	color: var(--nds-obedience);
}

.h_agility {
	color: var(--nds-agility);
}

hr {
	height: 3px;
	margin: 1.25em 0;
	border: 0;
	background-color: var(--nds-border);
	clear: both;
}

.hr_breed {
	background-color: var(--nds-breed);
	height: 2px;
}

.hr_obedience {
	background-color: var(--nds-obedience);
	height: 2px;
}

/* ------------------------------------------------------------------ shell */
.main {
	width: 100%;
	max-width: var(--nds-max-width);
	margin: 0 auto;
	box-shadow: var(--nds-shadow);
}

/* Redesign header (CR2): banner hero + white sticky bar, brand left, nav right */
header.header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--nds-surface);
	border-bottom: 1px solid var(--nds-gray-200);
}

.header__banner {
	display: block;
	width: 100%;
	line-height: 0;
	background-color: var(--nds-charcoal);
}

.header__banner img {
	display: block;
	width: 100%;
	height: auto;
}

.header__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	max-width: var(--nds-max-width);
	margin: 0 auto;
	padding: 1rem 1.5rem;
}

.header__brand {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--nds-green);
	letter-spacing: -0.01em;
	text-decoration: none;
}

.header__brand:hover,
.header__brand:focus-visible {
	color: var(--nds-green-dark);
	text-decoration: none;
}

/* ------------------------------------------------------------------ mobile menu */
.hamburger {
	position: fixed;
	right: 0;
	top: 0;
	z-index: 101;
	display: none;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0 0 0 var(--nds-radius);
	background-color: var(--nds-green);
	box-shadow: var(--nds-shadow);
	cursor: pointer;
	color: #fff;
	-webkit-tap-highlight-color: transparent;
}

.hamburger__icon {
	display: block;
	width: 26px;
	height: 26px;
}

.hamburger__bar {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	transition: transform 0.25s ease, opacity 0.2s ease;
	transform-origin: 12px 12px;
}

.hamburger.is-open .hamburger__bar--1 {
	transform: translateY(5px) rotate(45deg);
}

.hamburger.is-open .hamburger__bar--2 {
	opacity: 0;
}

.hamburger.is-open .hamburger__bar--3 {
	transform: translateY(-5px) rotate(-45deg);
}

.hamburger:hover,
.hamburger:focus-visible {
	background-color: var(--nds-green-dark);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.hamburger-modal {
	display: none;
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.55);
	z-index: 99;
}

.hamburger-menu {
	display: none;
	position: fixed;
	left: 5%;
	top: 5%;
	width: 90%;
	min-height: 300px;
	max-height: 90%;
	padding: 1rem;
	border: 1px solid var(--nds-border);
	border-radius: var(--nds-radius-card);
	box-shadow: var(--nds-shadow);
	z-index: 100;
	overflow: auto;
	font-size: 0.9rem;
	line-height: 1.75;
}

.hamburger-menu ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.hamburger-menu a {
	display: inline-block;
	padding: 0.5em 0.35em;
	color: var(--nds-text);
}

.hamburger-menu a:hover {
	color: var(--nds-green);
	text-decoration: none;
}

/* ------------------------------------------------------------------ desktop nav (CR2)
 * Inline nav inside the new white .header bar — uppercase links, dropdown for Results.
 * Class names (.nav, .nav-item, .nav-link, .sub_menu, .sub_menu-link) preserved
 * because /js/js.js attaches handlers to them; only styling changes. */
.nav {
	display: flex;
	align-items: center;
}

.nav ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.nav-item {
	position: relative;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	border-radius: 0;
	float: none;
}

.nav-link {
	display: inline-block;
	padding: 0.25rem 0;
	color: var(--nds-gray-600);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.15s ease;
	cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible {
	color: var(--nds-green);
	text-decoration: none;
}

.nav li {
	margin: 0;
	float: none;
}

#selected {
	color: var(--nds-green);
}

/* Breadcrumb bar: hidden on static HTML; shown via page-info--show (index2026.php) */
.page-info {
	display: none;
}

.page-info.page-info--show {
	display: block;
	padding: 0.65rem 1.5rem;
	font-size: 0.9rem;
	line-height: 1.4;
	color: #fff;
	background: var(--nds-green);
	border-bottom: 1px solid var(--nds-green-dark);
}

/* Dropdown panel (Results) */
.sub_menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 0.5rem;
	min-width: 200px;
	max-width: 280px;
	padding: 0.75rem 1rem;
	background-color: var(--nds-surface);
	color: var(--nds-gray-600);
	border: 1px solid var(--nds-gray-200);
	box-shadow: var(--nds-shadow-lg);
	border-radius: var(--nds-radius-xl);
	z-index: 60;
	line-height: 1.5;
	text-align: left;
}

.sub_menu br {
	display: none;
}

.sub_menu-link {
	display: block;
	padding: 0.4rem 0.5rem;
	color: var(--nds-gray-600);
	font-size: 0.875rem;
	border-radius: var(--nds-radius);
	text-decoration: none;
}

.sub_menu-link:hover,
.sub_menu-link:focus-visible {
	color: var(--nds-green);
	background: var(--nds-gray-50);
	text-decoration: none;
}

.sub_menu--wide {
	min-width: 240px;
	max-width: 320px;
}

/* Results: centered under the nav link */
.nav-item--dropdown > .sub_menu {
	left: 50%;
	right: auto;
	transform: translateX(-50%);
	margin-top: 0;
}

/* Bridge the gap so the pointer can reach the panel without leaving .nav-item */
.nav-item--dropdown > .sub_menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 0.5rem;
}

/* ----------------------------------------------------------- content layout */
.left50,
.right50,
.left70,
.right30,
.left1,
.left2,
.right1,
.right2,
.content {
	padding: 1.25rem 1.5rem;
	border-right: 1px solid var(--nds-border);
}

.left1,
.left50 {
	float: left;
	width: 50%;
}

.right1,
.right50 {
	float: right;
	width: 50%;
}

.left2,
.left70 {
	float: left;
	width: 70%;
}

.right2,
.right30 {
	float: right;
	width: 30%;
}

/* --------------------------------------------------------------- media blocks */
.img25 {
	float: left;
	margin: 0 10px 10px 0;
	border: 1px solid var(--nds-border);
	width: 25%;
	box-shadow: var(--nds-shadow);
	border-radius: var(--nds-radius);
}

.img35 {
	float: left;
	margin: 0 10px 10px 0;
	border: 1px solid var(--nds-border);
	width: 35%;
	box-shadow: var(--nds-shadow);
	border-radius: var(--nds-radius);
}

.rightjudge {
	float: right;
	margin: 0 10px 10px 10px;
	border: 1px solid var(--nds-border);
	width: 35%;
	box-shadow: var(--nds-shadow);
	border-radius: var(--nds-radius);
}

.img100 {
	width: 100%;
	margin-bottom: 10px;
	border: 1px solid var(--nds-border);
	box-shadow: var(--nds-shadow);
	border-radius: var(--nds-radius);
}

/* ----------------------------------------------------------- footer (CR2) */
.footer {
	background-color: var(--nds-green);
	color: #fff;
	text-align: center;
	padding: 2rem 1.5rem;
	font-size: 0.875rem;
	line-height: 1.6;
}

.footer a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	transition: opacity 0.15s ease;
}

.footer a:hover,
.footer a:focus-visible {
	color: #fff;
	opacity: 0.85;
	text-decoration: underline;
}

/* Main-site buttons (use class on HTML CTAs) */
.nds-btn {
	display: inline-block;
	border-width: 1px;
	border-style: solid;
	border-radius: var(--nds-radius-pill);
	padding: 10px 30px;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nds-btn-primary {
	background-color: var(--nds-green);
	border-color: var(--nds-green);
	color: #fff;
}

.nds-btn-primary:hover {
	background-color: var(--nds-green-dark);
	border-color: var(--nds-green-dark);
	color: #fff;
	text-decoration: none;
}

.nds-btn-secondary {
	background-color: var(--nds-secondary);
	border-color: var(--nds-secondary);
	color: #fff;
}

.nds-btn-secondary:hover {
	background-color: var(--nds-secondary-dark);
	border-color: var(--nds-secondary-dark);
	color: #fff;
	text-decoration: none;
}

.nds-btn-outline {
	background-color: #fff;
	border-color: var(--nds-green);
	color: var(--nds-green);
}

.nds-btn-outline:hover {
	background-color: #fff;
	border-color: var(--nds-green-dark);
	color: var(--nds-green-dark);
	text-decoration: none;
}

/* Content panels + judge accordion (C9) */
.nds-panel {
	border: 1px solid var(--nds-border);
	border-radius: var(--nds-radius-card);
	background: var(--nds-surface);
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
}

.nds-panel-subtle {
	background: var(--nds-surface-subtle);
}

.nds-accordion {
	margin: 0 0 1rem;
	border: 1px solid var(--nds-border);
	border-radius: var(--nds-radius-card);
	background: var(--nds-surface);
	overflow: hidden;
}

.nds-accordion summary {
	padding: 0.75rem 1.25rem;
	font-weight: 600;
	color: var(--nds-charcoal);
	cursor: pointer;
	list-style: none;
}

.nds-accordion summary::-webkit-details-marker {
	display: none;
}

.nds-accordion summary::before {
	content: "+ ";
	color: var(--nds-green);
	font-weight: 700;
}

.nds-accordion[open] summary::before {
	content: "− ";
}

.nds-accordion summary:hover {
	color: var(--nds-green);
}

.nds-accordion .nds-accordion-body {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	padding: 0;
	border-top: 1px solid var(--nds-border);
}

.nds-judge-photo {
	flex: 0 0 20%;
	max-width: 20%;
	box-sizing: border-box;
	padding: 15px;
	width: 100%;
	height: auto;
	object-fit: contain;
	align-self: flex-start;
}

.nds-accordion-body__content {
	flex: 1 1 75%;
	min-width: 0;
	padding: 1rem 1.25rem 1rem 0;
}

.nds-accordion-body__content > :first-child {
	margin-top: 0;
}

.nds-accordion-body__content > :last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------- redesign vocabulary (CR1)
 * Hero, section, cards, CTAs. Pure additions — existing .nds-btn family preserved.
 * Consumed by Phase 3 content commits (C5–C10). */

.nds-hero {
	padding: var(--nds-section-py) 1.5rem;
	background: linear-gradient(135deg, var(--nds-gray-50) 0%, #fff 100%);
	text-align: center;
}

.nds-hero__inner {
	max-width: var(--nds-container-prose);
	margin: 0 auto;
}

.nds-hero__title {
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
	font-weight: 700;
	color: var(--nds-gray-900);
	margin: 0 0 1rem;
}

.nds-hero__lede {
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 600;
	color: var(--nds-green);
	margin: 0 0 1.5rem;
}

.nds-hero__intro {
	font-size: 1.125rem;
	color: var(--nds-gray-600);
	line-height: var(--nds-line);
	margin: 0 0 2rem;
}

.nds-section {
	padding: var(--nds-section-py) 1.5rem;
	background: var(--nds-surface);
}

.nds-section--subtle {
	background: var(--nds-gray-50);
}

.nds-section--dark {
	background: var(--nds-gray-900);
	color: #fff;
}

.nds-section--dark .nds-section__title,
.nds-section--dark .nds-section__intro {
	color: #fff;
}

.nds-section__inner {
	max-width: var(--nds-container);
	margin: 0 auto;
}

.nds-section__title {
	font-size: clamp(1.75rem, 3.5vw, 2.25rem);
	font-weight: 700;
	color: var(--nds-gray-900);
	text-align: center;
	margin: 0 0 0.75rem;
}

.nds-section__intro {
	font-size: 1.125rem;
	color: var(--nds-gray-600);
	line-height: var(--nds-line);
	text-align: center;
	max-width: 48rem;
	margin: 0 auto 3rem;
}

/* Responsive card grid — collapses to 1col below ~18rem track */
.nds-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: 2rem;
	margin-top: 3rem;
}

.nds-card {
	background: var(--nds-surface);
	border-radius: var(--nds-radius-xl);
	padding: 2rem;
	text-align: center;
	box-shadow: var(--nds-shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nds-card:hover,
.nds-card:focus-within {
	transform: translateY(-0.5rem);
	box-shadow: var(--nds-shadow-2xl);
}

.nds-card--subtle {
	background: var(--nds-gray-50);
	border: 1px solid var(--nds-gray-200);
	box-shadow: none;
	text-align: left;
}

.nds-card--subtle:hover,
.nds-card--subtle:focus-within {
	transform: none;
	box-shadow: var(--nds-shadow);
}

.nds-card__icon {
	display: flex;
	justify-content: center;
	margin-bottom: 1.5rem;
}

.nds-card__icon svg,
.nds-card__icon img {
	display: block;
	width: 80px;
	height: 80px;
	margin-left: auto;
	margin-right: auto;
}

.nds-card__title {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--nds-gray-900);
	margin: 0 0 0.75rem;
}

.nds-card__body {
	color: var(--nds-gray-600);
	line-height: var(--nds-line);
	margin: 0 0 1.5rem;
}

.nds-card__link {
	display: inline-block;
	font-weight: 600;
	color: var(--nds-green);
	transition: color 0.15s ease;
}

.nds-card__link:hover {
	color: var(--nds-green-dark);
	text-decoration: underline;
}

/* CTA pill family — hover lift + shadow (redesign signature interaction) */
.nds-cta {
	display: inline-block;
	padding: 0.875rem 2rem;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	border: 2px solid transparent;
	border-radius: 9999px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease,
		background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nds-cta--primary {
	background: var(--nds-green);
	border-color: var(--nds-green);
	color: #fff;
}

.nds-cta--primary:hover,
.nds-cta--primary:focus-visible {
	background: var(--nds-green-dark);
	border-color: var(--nds-green-dark);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--nds-shadow-lg);
	text-decoration: none;
}

.nds-cta--neutral {
	background: var(--nds-gray-600);
	border-color: var(--nds-gray-600);
	color: #fff;
}

.nds-cta--neutral:hover,
.nds-cta--neutral:focus-visible {
	background: var(--nds-gray-900);
	border-color: var(--nds-gray-900);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--nds-shadow-lg);
	text-decoration: none;
}

.nds-cta--outline {
	background: transparent;
	border-color: var(--nds-green);
	color: var(--nds-green);
}

.nds-cta--outline:hover,
.nds-cta--outline:focus-visible {
	background: var(--nds-green);
	border-color: var(--nds-green);
	color: #fff;
	text-decoration: none;
}

/* Two-column split (e.g. sponsor strip on Home, C10) */
.nds-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
	max-width: var(--nds-container);
	margin: 0 auto;
}

.nds-split__text {
	text-align: center;
}

@media (min-width: 768px) {
	.nds-split {
		grid-template-columns: 1fr 1fr;
	}
	.nds-split__text {
		text-align: left;
	}
}

/* Fee / schedule tables (C6+) */
.nds-table-wrap {
	overflow-x: auto;
	margin: 0 0 1.5rem;
}

.nds-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1rem;
	line-height: 1.5;
}

.nds-table th,
.nds-table td {
	padding: 0.75rem 1rem;
	text-align: left;
	border-bottom: 1px solid var(--nds-gray-200);
	vertical-align: top;
}

.nds-table th {
	font-weight: 600;
	color: var(--nds-gray-900);
	background: var(--nds-gray-50);
}

.nds-table td:last-child,
.nds-table th:last-child {
	white-space: nowrap;
}

.nds-list {
	margin: 0 0 1rem;
	padding-left: 1.25rem;
	color: var(--nds-gray-600);
	line-height: var(--nds-line);
}

.nds-list li {
	margin-bottom: 0.5rem;
}

.nds-list li:last-child {
	margin-bottom: 0;
}

.nds-hero__note {
	margin-top: 1.5rem;
	margin-bottom: 0;
	font-size: 1rem;
}

.nds-section--cta .nds-section__inner {
	text-align: center;
}

.nds-section__links {
	margin-top: 1.5rem;
	color: var(--nds-gray-600);
}

.nds-section__intro--tight {
	margin-top: 1.5rem;
	margin-bottom: 0;
}

.nds-section__intro--flush {
	margin-bottom: 0;
}

.nds-section__title--left {
	text-align: inherit;
	margin-bottom: 1rem;
}

.nds-section__intro--left {
	text-align: inherit;
	margin-bottom: 1.5rem;
}

.nds-panel--spaced {
	margin-top: 2rem;
}

.nds-split__media {
	text-align: center;
}

.nds-sponsor-note {
	margin-top: 1rem;
	font-size: 0.875rem;
	color: var(--nds-gray-600);
}

/* Wide schedule grid — horizontal scroll on small screens */
.nds-table--schedule {
	font-size: 0.9375rem;
}

.nds-table--schedule th,
.nds-table--schedule td {
	white-space: normal;
	min-width: 7.5rem;
}

.nds-table--schedule td:first-child,
.nds-table--schedule th:first-child {
	min-width: 9rem;
}

.nds-table--schedule td:last-child,
.nds-table--schedule th:last-child {
	white-space: normal;
}

.nds-table__sub {
	display: block;
	font-weight: 400;
	font-size: 0.8125rem;
	color: var(--nds-gray-600);
}

.nds-figure {
	margin: 0 0 1.5rem;
	text-align: center;
}

.nds-figure img {
	max-width: 100%;
	height: auto;
	border: 1px solid var(--nds-gray-200);
	border-radius: var(--nds-radius-xl);
	box-shadow: var(--nds-shadow-sm);
}

.nds-figure figcaption {
	margin-top: 0.75rem;
	font-size: 0.875rem;
	color: var(--nds-gray-600);
}

/* Honour reduced-motion preference for hover lift */
@media (prefers-reduced-motion: reduce) {
	.nds-card,
	.nds-card:hover,
	.nds-card:focus-within,
	.nds-cta,
	.nds-cta:hover,
	.nds-cta:focus-visible {
		transform: none;
		transition: none;
	}
}

/* Shell helpers (index2026.php) */
.nds-clear {
	clear: both;
}

.nds-php-content {
	padding: 1.25rem 1.5rem 1.5rem;
}

.nds-php-content--results {
	padding-top: 1rem;
}

.nds-more-trigger {
	font-weight: bold;
	cursor: pointer;
}

.nds-more-body {
	display: none;
}

.mobile-submenu {
	display: none;
}

/* ---------------------------------------------------------- results (read-only styling) */
.image_resize {
	height: 95%;
	width: 95%;
}

.image_resize:hover {
	width: 75%;
	height: 75%;
	z-index: 100;
	position: fixed;
	top: 12%;
	left: 12%;
	border: 1px solid var(--nds-border);
}

.results {
	padding: 1rem 1.15rem;
	line-height: 1.45;
	border: 1px solid var(--nds-border);
	border-radius: var(--nds-radius);
	font-size: 0.8125rem;
	font-family: var(--nds-font-results);
	color: var(--nds-text);
	background: var(--nds-surface);
}

.results div {
	background: var(--nds-gray-100);
	border-radius: 0.25rem;
	margin-bottom: 0.35rem;
	padding: 0.35rem 0.5rem;
}

.results div:last-child {
	margin-bottom: 0;
}

.results h2,
.results h3 {
	color: var(--nds-charcoal);
	margin: 0.75rem 0 0.35rem;
}

.results h2:first-child,
.results h3:first-child {
	margin-top: 0;
}

.results .img {
	padding-top: 10px;
}

.results img {
	border: 1px solid var(--nds-border);
	box-shadow: var(--nds-shadow);
}

.results span,
.c4 {
	font-size: 11px;
	font-style: italic;
}

.box {
	padding: 0;
	margin: 0;
	line-height: 1.45;
	border: 1px solid var(--nds-border);
	border-radius: var(--nds-radius);
	background: var(--nds-gray-100);
	font-size: 0.8125rem;
	font-family: var(--nds-font-results);
}

.box_header {
	background: var(--nds-gray-200);
	font-family: var(--nds-font-results);
	font-size: 0.875rem;
	color: var(--nds-charcoal);
	font-weight: bold;
	line-height: 1.6;
	padding: 0.25rem 0.5rem;
}

.box a:hover {
	background-color: #fe1b14;
	color: #fff;
}

.box strong {
	color: #000033;
	font-size: 13px;
}

.box td {
	padding-left: 5px;
	padding-right: 5px;
	white-space: nowrap;
}

/* ------------------------------------------------------------- responsive */
/* Tablet: full-width shell, sub_menu fits viewport */
@media screen and (max-width: 960px) {
	.main {
		max-width: 100%;
		box-shadow: none;
	}

	.sub_menu {
		max-width: min(280px, 90vw);
	}
}

/* Small tablet: stack columns earlier for info pages */
@media screen and (max-width: 768px) {
	.nds-judge-photo {
		flex: 0 0 100%;
		max-width: 100%;
	}

	.nds-accordion-body__content {
		flex: 1 1 100%;
		padding: 0 1.25rem 1rem;
	}

	.left2,
	.left70 {
		width: 100%;
		float: none;
	}

	.right2,
	.right30 {
		width: 100%;
		float: none;
		border-top: 1px solid var(--nds-border);
	}

	.left50,
	.right50 {
		width: 100%;
		float: none;
	}
}

/* Phone: hide inline nav, show hamburger */
@media screen and (max-width: 600px) {
	.header__inner {
		padding: 0.75rem 1rem;
		justify-content: flex-start;
	}

	.header__brand {
		font-size: 1.25rem;
	}

	.nav {
		display: none;
	}

	.hamburger {
		display: flex;
	}

	.hamburger-menu {
		left: 4%;
		top: max(4%, env(safe-area-inset-top, 0px));
		width: 92%;
		max-height: min(90%, calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
		padding: 1rem 1.25rem;
		font-size: smaller;
	}

	.hamburger-menu a {
		padding: 10px 5px;
	}

	.left1,
	.left2,
	.left50,
	.left70 {
		width: 100%;
		float: none;
		padding: 1rem 1.15rem;
	}

	.right1,
	.right2,
	.right50,
	.right30 {
		float: none;
		width: 100%;
		padding: 1rem 1.15rem;
	}

	.page-info.page-info--show {
		font-size: 0.85rem;
		padding: 0.5rem 1rem;
		color: #fff;
		background: var(--nds-green);
	}

	.nds-card__icon {
		justify-content: center;
		width: 100%;
	}

	.nds-card--subtle .nds-card__icon {
		justify-content: center;
	}

	.nds-php-content,
	.nds-php-content--results {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	img {
		max-width: 100%;
		height: auto;
	}

	h1 {
		font-size: 1.45rem;
	}

	h2 {
		font-size: 1.2rem;
	}

	/* CR1: tighten redesign padding on small screens */
	.nds-hero,
	.nds-section {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.nds-card {
		padding: 1.5rem;
	}

	.nds-cards {
		gap: 1.25rem;
		margin-top: 2rem;
	}

	.nds-section__intro {
		margin-bottom: 2rem;
	}
}

/* ------------------------------------------------------------------ legacy shell (staging nds2026)
 * Pre-CR2 index2026.php: empty div.header + sibling div.nav (not header.header).
 * Remove this block when live site uses the new index2026.php chrome. */

.main > div.header {
	display: none;
}

.main > div.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--nds-green);
	border-bottom: 1px solid var(--nds-green-dark);
}

.main > div.nav::before {
	content: "";
	display: block;
	width: 100%;
	background: var(--nds-charcoal) url("/images/banner1.jpg") center center / cover no-repeat;
	aspect-ratio: 5 / 1;
	max-height: clamp(120px, 22vw, 200px);
}

.main > div.nav > ul {
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.35rem 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0.75rem 1rem;
}

.main > div.nav > ul > li {
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	background-image: none !important;
	position: relative;
}

.main > div.nav > ul > li > a {
	color: #fff !important;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.35rem 0;
}

.main > div.nav > ul > li > a:hover,
.main > div.nav > ul > li > a:focus-visible {
	color: #fff !important;
	opacity: 0.9;
}

.main > div.nav .sub_menu {
	left: 50%;
	right: auto;
	max-width: 320px !important;
	transform: translateX(-50%);
	margin-top: 0.25rem;
}

.main > div.nav .sub_menu a {
	color: var(--nds-gray-600) !important;
}

/* Legacy hamburger (div + "Menu" text) — hide label, draw bars */
div.hamburger {
	font-size: 0;
	line-height: 0;
	color: transparent;
}

div.hamburger::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 2px;
	margin: -1px 0 0 -11px;
	background: #fff;
	border-radius: 1px;
	box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
}

@media screen and (max-width: 600px) {
	.main > div.nav {
		display: none !important;
	}

	.hamburger-menu #mmresults {
		display: none;
		padding: 0.25rem 0 0.5rem 1rem;
	}

	.hamburger-menu #mmresults a {
		display: block;
		padding: 0.35rem 0;
	}
}

/* Very narrow: shrink hamburger touch target */
@media screen and (max-width: 400px) {
	.hamburger {
		width: 48px;
		height: 48px;
	}
}

/* Print: hide chrome, show content */
@media print {
	.hamburger,
	.hamburger-modal,
	.hamburger-menu,
	.nav,
	.page-info {
		display: none !important;
	}

	.main {
		max-width: none;
		box-shadow: none;
	}

	header.header {
		position: static;
		background: transparent;
		border-bottom: 1px solid var(--nds-border);
	}

	.header__inner {
		padding: 0.5rem 0;
	}

	.header__brand {
		color: var(--nds-text);
	}

	.left2,
	.right2,
	.left1,
	.right1,
	.content {
		width: 100% !important;
		float: none !important;
		border: none;
		padding: 0;
	}

	a[href]::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		color: var(--nds-text-muted);
	}

	.footer {
		background: transparent;
		color: var(--nds-text);
		border-top: 1px solid var(--nds-border);
		padding: 1rem 0;
	}

	.footer a {
		color: var(--nds-link);
	}
}
