/*
Theme Name: DW4D-2026
Theme URI: https://disneyworldfordads.com
Author: Mark Plante
Description: Light, readable, WCAG 2.1 AA friendly theme for Disney World for Dads.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: dw4d-2026
*/

/* ==========================================================
   1. TOKENS
   Every text/background pairing below was chosen to meet
   WCAG 2.1 AA (4.5:1 for text, 3:1 for UI and large text).
========================================================== */
:root {
	--ink: #14263a;          /* headings, nav text      ~15:1 on white */
	--text: #26343f;         /* body text               ~12:1 on white */
	--muted: #55606b;        /* secondary text          ~6.4:1 on white */
	--brand: #0b5ca8;        /* links, primary buttons  ~6.9:1 on white */
	--brand-dark: #08457f;   /* hover                   ~9.5:1 on white */
	--brand-tint: #e6f0fa;   /* soft blue panels */
	--gold: #f4b400;         /* accent stripes, secondary buttons (navy text on it) */
	--gold-hover: #ffc933;
	--orange-text: #a84a00;  /* orange used as text     ~5.9:1 on white */
	--surface: #f4f8fc;      /* alternating section background */
	--surface-2: #eaf1f8;    /* footer */
	--line: #d3dde8;
	--control: #6b7785;      /* borders of form controls, 4.5:1 on white */
	--white: #ffffff;

	--font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(20, 38, 58, .06), 0 4px 14px rgba(20, 38, 58, .06);
	--shadow-lg: 0 8px 28px rgba(20, 38, 58, .16);

	--measure: 44rem;        /* comfortable reading width */
	--wide: 72rem;
}

/* ==========================================================
   2. BASE
========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 5rem; /* keeps anchor targets clear of the sticky menu */
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--font);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--white);
}

.site-main { flex: 1 0 auto; }
.site-main:focus { outline: none; }

img, svg, video { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	color: var(--ink);
	line-height: 1.2;
	font-weight: 700;
	text-wrap: balance;
}

h1 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.875rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }

p { margin: 0 0 1rem; }

a {
	color: var(--brand);
	text-decoration: underline;
	text-underline-offset: .15em;
}

a:hover { color: var(--brand-dark); text-decoration-thickness: 2px; }

:focus-visible {
	outline: 3px solid var(--ink);
	outline-offset: 3px;
	border-radius: 2px;
}

.container {
	width: min(100% - 2rem, var(--wide));
	margin-inline: auto;
}

.container--narrow { width: min(100% - 2rem, 48rem); }

/* Screen-reader-only text (WordPress convention) */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed !important;
	top: .75rem;
	left: .75rem;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: .85rem 1.25rem;
	clip: auto;
	clip-path: none;
	background: var(--ink);
	color: var(--white);
	font-weight: 700;
	border-radius: var(--radius-sm);
	text-decoration: none;
}

/* ==========================================================
   3. BUTTONS
========================================================== */
.button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: .6rem 1.25rem;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	color: var(--ink);
	background: var(--gold);
	border: 2px solid var(--gold);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.button:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--ink); }

.button--primary { background: var(--brand); border-color: var(--brand); color: var(--white); }
.button--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--white); }

.button--outline { background: var(--white); border-color: var(--brand); color: var(--brand-dark); }
.button--outline:hover { background: var(--brand-tint); border-color: var(--brand-dark); color: var(--brand-dark); }

.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }

/* ==========================================================
   4. HEADER + NAVIGATION
========================================================== */
.site-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(10rem, 24vw, 17rem);
	background-color: #cfe3f5;
	background-image: var(--banner-image);
	background-size: cover;
	background-position: left center;
	background-repeat: no-repeat;
}

/* Light veil only; keeps the logo readable without turning the banner dark */
.site-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 30, 50, .22);
}

.site-banner__inner {
	position: relative;
	padding-block: 1rem;
}

.site-logo { display: inline-block; line-height: 0; }

.site-logo img {
	height: clamp(7rem, 15vw, 10.5rem);
	width: auto;
	filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45));
}

.site-nav-bar {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--white);
	border-top: 3px solid var(--gold);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 2px 8px rgba(20, 38, 58, .06);
}

.site-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	min-height: 3.5rem;
}

.nav-menu,
.nav-menu ul { list-style: none; margin: 0; padding: 0; }

.nav-menu { display: flex; flex-wrap: wrap; gap: .15rem; }

.nav-menu li { position: relative; margin: 0; }
.nav-menu > li { display: flex; align-items: stretch; }

.nav-menu a {
	display: flex;
	align-items: center;
	min-height: 2.75rem;
	padding: .45rem .85rem;
	color: var(--ink);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--radius-sm);
}

.nav-menu a:hover { background: var(--brand-tint); color: var(--brand-dark); }

.nav-menu a[aria-current="page"],
.nav-menu .current-menu-ancestor > a {
	box-shadow: inset 0 -3px 0 var(--brand);
	border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	min-height: 2.75rem;
	padding: 0;
	margin-left: -.35rem;
	color: var(--ink);
	background: none;
	border: 0;
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.submenu-toggle:hover { background: var(--brand-tint); }

.submenu-toggle::before {
	content: "";
	width: .5rem;
	height: .5rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
}

.submenu-toggle[aria-expanded="true"]::before { transform: rotate(-135deg) translateY(-2px); }

.nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 15rem;
	padding: .35rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	box-shadow: var(--shadow-lg);
}

.nav-menu .sub-menu li { display: flex; flex-wrap: wrap; }
.nav-menu .sub-menu li > a { flex: 1; }
.nav-menu .sub-menu .sub-menu { top: 0; left: 100%; }

.nav-menu li.is-open > .sub-menu { display: block; }

@media (hover: hover) and (min-width: 56.01em) {
	.nav-menu li:hover > .sub-menu { display: block; }
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: .6rem;
	min-height: 2.75rem;
	padding: .4rem 1rem;
	margin-block: .35rem;
	font: inherit;
	font-weight: 700;
	color: var(--brand-dark);
	background: var(--white);
	border: 2px solid var(--brand);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
	display: block;
	width: 1.25rem;
	height: 2px;
	background: currentColor;
	content: "";
}

.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before { position: absolute; top: -6px; }
.nav-toggle__icon::after { position: absolute; top: 6px; }

@media (max-width: 56em) {
	.nav-toggle { display: inline-flex; }

	.js .nav-menu { display: none; }
	.js .nav-menu.is-open { display: block; }

	.nav-menu { flex: 0 0 100%; padding-bottom: .5rem; }
	.nav-menu > li { flex-wrap: wrap; }
	.nav-menu > li > a { flex: 1; }

	.nav-menu .sub-menu {
		position: static;
		flex: 0 0 100%;
		min-width: 0;
		padding: 0 0 0 1rem;
		border: 0;
		box-shadow: none;
	}
}

/* ==========================================================
   5. BREADCRUMBS
========================================================== */
.breadcrumbs { margin: 0 0 1rem; font-size: .875rem; color: var(--muted); }

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: .15rem .5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/" / ""; margin-right: .5rem; color: var(--muted); }

/* ==========================================================
   6. SECTIONS + GRIDS
========================================================== */
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--tint { background: var(--surface); }

.section__header { max-width: 46rem; margin-bottom: 1.75rem; }
.section__header h2 { margin-bottom: .4rem; }
.section__header p { margin: 0; color: var(--text); font-size: 1.0625rem; }

.card-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}

.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }

.more-link { display: inline-block; margin-top: 1.25rem; font-weight: 700; }

/* ==========================================================
   7. CARDS
========================================================== */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.card:hover { border-color: var(--brand); }

.card__media { aspect-ratio: 16 / 9; background: var(--brand-tint); }
.card__img { display: block; width: 100%; height: 100%; object-fit: cover; }

.card__body { display: flex; flex-direction: column; flex: 1; padding: 1rem 1.15rem 1.15rem; }

.card__category { margin: 0 0 .35rem; font-size: .8125rem; font-weight: 700; color: var(--orange-text); }

.card__title { margin: 0 0 .5rem; font-size: 1.125rem; line-height: 1.3; }

.card__title a { color: var(--ink); text-decoration: none; }
.card:hover .card__title a { text-decoration: underline; }

/* The whole card is clickable through its title link */
.card__title a::after { content: ""; position: absolute; inset: 0; }

.card__excerpt { margin: 0; font-size: .9375rem; color: var(--text); }

.card__meta { margin: auto 0 0; padding-top: .75rem; font-size: .8125rem; color: var(--muted); }

.card--compact .card__title { font-size: 1rem; margin: 0; }
.card--compact .card__body { padding: .75rem .9rem .9rem; }

.card--tile .card__body { padding: 1.25rem; }
.card--tile .card__icon { margin: 0 0 .5rem; font-size: 2rem; line-height: 1; }
.card--tile .card__title { font-size: 1.25rem; }

.card--guide .card__label {
	align-self: flex-start;
	margin: 0 0 .6rem;
	padding: .15rem .65rem;
	font-size: .8125rem;
	font-weight: 700;
	color: var(--ink);
	background: var(--gold);
	border-radius: 999px;
}

.card--guide .card__title { font-size: 1.3rem; }

@supports selector(:has(*)) {
	.card a:focus-visible { outline: none; }
	.card:has(a:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
}

/* ==========================================================
   8. HOME PAGE
========================================================== */
.holiday-banner {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 22rem;
	padding: 1.5rem 0;
	background-color: var(--brand-tint);
	border-bottom: 4px solid var(--gold);
}

.holiday-banner__image { position: absolute; inset: 0; }
.holiday-banner__image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.holiday-banner__panel {
	position: relative;
	max-width: 36rem;
	margin-inline: auto;
	padding: 1.75rem;
	background: rgba(255, 255, 255, .95);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	text-align: center;
}

.holiday-banner__panel h2 { margin-bottom: .5rem; }

.home-hero {
	padding-block: clamp(2rem, 5vw, 3.5rem);
	background: var(--brand-tint);
	border-bottom: 1px solid var(--line);
}

.home-hero__inner {
	display: grid;
	gap: 2rem;
	align-items: center;
}

@media (min-width: 62em) {
	.home-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; }
}

.home-hero__kicker { margin: 0 0 .5rem; font-weight: 700; color: var(--brand-dark); }

.home-hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); margin-bottom: .75rem; }

.home-hero__lead { max-width: 38rem; margin: 0; font-size: 1.0625rem; }

.home-hero__posts {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 34em) {
	.home-hero__posts { grid-template-columns: 1fr; }
}

.prose-block { max-width: var(--measure); }
.prose-block p { font-size: 1.0625rem; }

.faq-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }

.faq-item {
	padding: 1.25rem 1.4rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-left: 4px solid var(--brand);
	border-radius: var(--radius-sm);
}

.faq-item h3 { margin-bottom: .5rem; font-size: 1.125rem; }
.faq-item p { margin: 0; }

/* ==========================================================
   9. SINGLE POST + PAGES
========================================================== */
.layout { display: grid; gap: 2.5rem; padding-block: 2rem 3rem; }

@media (min-width: 62em) {
	.layout--with-sidebar { grid-template-columns: minmax(0, 1fr) 19rem; }
}

.entry { min-width: 0; }

.layout:not(.layout--with-sidebar) .entry { width: 100%; max-width: 50rem; margin-inline: auto; }

.entry__title { margin-bottom: .6rem; }

.entry__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 0 0 1.25rem; font-size: .9375rem; color: var(--muted); }

.entry__figure { margin: 0 0 1.5rem; }
.entry__figure img { display: block; width: 100%; border-radius: var(--radius); }

.entry__content { max-width: var(--measure); font-size: 1.0625rem; line-height: 1.75; }

.entry__content > * + * { margin-top: 1.1em; margin-bottom: 0; }

.entry__content h2 { margin-top: 2em; }
.entry__content h3 { margin-top: 1.6em; }

.entry__content img { border-radius: var(--radius-sm); }
.entry__content figure { margin-inline: 0; }
.entry__content figcaption,
.wp-caption-text { margin-top: .4rem; font-size: .875rem; color: var(--muted); }

.entry__content ul,
.entry__content ol { padding-left: 1.4rem; }
.entry__content li + li { margin-top: .4rem; }

.entry__content table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.entry__content th,
.entry__content td { padding: .6rem .75rem; text-align: left; vertical-align: top; border: 1px solid var(--line); }
.entry__content th { background: var(--surface); color: var(--ink); }

.entry__content blockquote {
	margin-inline: 0;
	padding: .75rem 1.25rem;
	background: var(--surface);
	border-left: 4px solid var(--gold);
}

.entry__content iframe { max-width: 100%; }

.alignleft { float: left; margin: .25rem 1.25rem 1rem 0; }
.alignright { float: right; margin: .25rem 0 1rem 1.25rem; }
.aligncenter { display: block; margin-inline: auto; }

/* Table of contents: a card with a header bar and roomy, tappable link rows. */
.toc {
	max-width: var(--measure);
	margin: 0 0 2rem;
	padding: 0;
	overflow: hidden;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.toc__title {
	margin: 0;
	padding: .85rem 1.25rem;
	font-size: 1.125rem;
	background: var(--brand-tint);
	border-bottom: 3px solid var(--gold);
}

.toc ul {
	margin: 0;
	padding: .6rem .75rem .9rem;
	list-style: none;
	columns: 2 17rem;
	column-gap: 1rem;
}

.toc li { margin: 0; break-inside: avoid; }
.entry__content .toc li + li { margin-top: 0; }

.toc li a {
	display: flex;
	align-items: flex-start;
	gap: .65rem;
	padding: .55rem .65rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ink);
	text-decoration: none;
	border-radius: var(--radius-sm);
}

/* small chevron marker instead of a bullet */
.toc li a::before {
	content: "";
	flex: none;
	width: .45rem;
	height: .45rem;
	margin-top: .5em;
	border-top: 2px solid var(--brand);
	border-right: 2px solid var(--brand);
	transform: rotate(45deg);
}

.toc li a:hover {
	color: var(--brand-dark);
	background: var(--brand-tint);
	text-decoration: underline;
}

.pdf-download {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	background: var(--brand-tint);
	border: 1px solid var(--line);
	border-left: 5px solid var(--gold);
	border-radius: var(--radius-sm);
}

.pdf-download__icon {
	display: grid;
	place-items: center;
	flex: 0 0 3.25rem;
	height: 3.25rem;
	font-size: .875rem;
	font-weight: 800;
	color: var(--white);
	background: var(--brand);
	border-radius: var(--radius-sm);
}

.pdf-download__content { flex: 1; min-width: 12rem; font-weight: 700; color: var(--ink); }

.save-for-later { max-width: 38rem; margin: 2rem 0; }
.save-for-later img { border-radius: var(--radius-sm); box-shadow: var(--shadow); }

.author-box {
	display: flex;
	align-items: flex-start;
	gap: 1.25rem;
	max-width: var(--measure);
	margin-top: 2.5rem;
	padding: 1.25rem;
	background: var(--surface);
	border-left: 4px solid var(--gold);
	border-radius: var(--radius-sm);
}

.author-box img { flex: none; width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 50%; }
.author-box__name { margin: 0 0 .25rem; font-size: 1.125rem; }
.author-box__bio { margin: 0; }

.sidebar { display: grid; gap: 1.25rem; align-content: start; }

.sidebar-box {
	padding: 1.15rem 1.25rem;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.sidebar-box h2 { margin-bottom: .75rem; font-size: 1.125rem; }
.sidebar-box ul { margin: 0; padding: 0; list-style: none; }
.sidebar-box li { margin: 0 0 .75rem; }
.sidebar-box li:last-child { margin-bottom: 0; }
.sidebar-box p:last-child { margin-bottom: 0; }

.popular-item a { display: flex; align-items: center; gap: .75rem; font-weight: 600; }
.popular-thumb { flex: none; width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: var(--radius-sm); }

.related-posts { padding-block: clamp(2rem, 5vw, 3rem); background: var(--surface); border-top: 1px solid var(--line); }

/* ==========================================================
   10. DAD COMPONENTS (callouts, quick reference, tables)
========================================================== */
.dwd-callout {
	display: flex;
	gap: 1rem;
	margin: 0 0 1.5rem;
	padding: 1.1rem 1.3rem;
	color: var(--ink);
	background: var(--brand-tint);
	border-left: 6px solid var(--brand);
	border-radius: var(--radius-sm);
}

.dwd-callout p { margin: 0; }
.dwd-callout-icon { flex: none; font-size: 1.4rem; line-height: 1.4; color: var(--brand-dark); }
.dwd-callout-content { flex: 1; min-width: 0; }
.dwd-callout-title { margin: 0 0 .35rem; font-weight: 800; }

.dwd-callout-strategy { background: #e8f5ea; border-left-color: #2e7d32; }
.dwd-callout-strategy .dwd-callout-icon { color: #1b5e20; }

.dwd-callout-mistake { background: #fdecea; border-left-color: #b3261e; }
.dwd-callout-mistake .dwd-callout-icon { color: #8c1d18; }

.dwd-callout-warning { background: #fff3d1; border-left-color: #b26a00; }
.dwd-callout-warning .dwd-callout-icon { color: #7a4900; }

.callout { margin: 0 0 1.5rem; padding: 1rem 1.25rem; background: var(--brand-tint); border-left: 6px solid var(--brand); border-radius: var(--radius-sm); color: var(--ink); }

.dwd-mistake-list { margin: 0; padding-left: 1.2rem; }

.dwd-card {
	margin: 0 0 1.5rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.dwd-card-header { padding: .85rem 1.25rem; background: var(--brand-tint); border-bottom: 1px solid var(--line); }
.dwd-card-header h2 { margin: 0; font-size: 1.2rem; }
.dwd-card-header i { margin-right: .4rem; color: var(--brand-dark); }
.dwd-card-body { padding: 1.1rem 1.25rem; }

.dad-quick-reference__content { display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

.dad-row { display: flex; align-items: flex-start; gap: .85rem; }

.dad-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 2.5rem;
	height: 2.5rem;
	color: var(--brand-dark);
	background: var(--brand-tint);
	border-radius: 50%;
}

.dad-label { font-size: .875rem; color: var(--muted); }
.dad-value { font-weight: 700; color: var(--ink); }

.dwd-table-wrapper { overflow-x: auto; }
.dwd-table-wrapper:focus-visible { outline-offset: -3px; }

.dwd-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.dwd-table th,
.dwd-table td { padding: .65rem .8rem; text-align: left; border: 1px solid var(--line); }
.dwd-table th { background: var(--surface); color: var(--ink); }
.dwd-table .text-success { color: #1b5e20; }
.dwd-table .text-danger { color: #8c1d18; }

.dwd-badge { display: inline-block; padding: .1rem .6rem; font-size: .8125rem; font-weight: 700; border-radius: 999px; }
.dwd-badge.success { color: #1b5e20; background: #e8f5ea; }

.related-guide .dwd-grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }

/* ==========================================================
   11. ARCHIVES, SEARCH, 404, PAGINATION
========================================================== */
.archive-header { padding-block: 2rem 1.25rem; }
.archive-header .container > *:last-child { margin-bottom: 0; }
.archive-title { margin-bottom: .75rem; }

.archive-description {
	max-width: 50rem;
	padding: 1.1rem 1.4rem;
	background: var(--brand-tint);
	border-left: 5px solid var(--gold);
	border-radius: var(--radius-sm);
}

.archive-description > *:last-child { margin-bottom: 0; }

.archive-content { padding-block: 1rem 3rem; }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: .4rem .9rem;
	font-weight: 700;
	color: var(--brand-dark);
	text-decoration: none;
	background: var(--white);
	border: 2px solid var(--line);
	border-radius: var(--radius-sm);
}

.pagination a.page-numbers:hover { border-color: var(--brand); background: var(--brand-tint); }
.pagination .page-numbers.current { color: var(--white); background: var(--brand); border-color: var(--brand); }
.pagination .page-numbers.dots { border-color: transparent; }

.search-form { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 32rem; }

.search-field {
	flex: 1 1 14rem;
	min-height: 2.75rem;
	padding: .5rem .85rem;
	font: inherit;
	color: var(--ink);
	background: var(--white);
	border: 2px solid var(--control);
	border-radius: var(--radius-sm);
}

.search-field:focus-visible { border-color: var(--ink); }

.error-page { padding-block: clamp(2.5rem, 8vw, 5rem); max-width: 40rem; }
.error-page .search-form { margin: 1.5rem 0; }

/* ==========================================================
   12. FOOTER
========================================================== */
.site-footer {
	margin-top: 3rem;
	padding-block: 2.5rem 1.5rem;
	color: var(--text);
	background: var(--surface-2);
	border-top: 4px solid var(--gold);
}

.footer-grid { display: grid; gap: 2rem; }

@media (min-width: 48em) {
	.footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand img { height: 7.5rem; width: auto; margin-bottom: .75rem; }
.footer-brand p { margin: 0; max-width: 22rem; font-weight: 600; color: var(--ink); }

.site-footer h2 { margin-bottom: .75rem; font-size: 1.125rem; }

.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0 0 .35rem; }
.site-footer li ul { display: none; }

.site-footer a { display: inline-block; padding-block: .2rem; }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1.5rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
	font-size: .9375rem;
	border-top: 1px solid var(--line);
}

.footer-bottom p { margin: 0; }

/* ==========================================================
   13. TRIP COST CALCULATOR (sidebar widget on the home page)
========================================================== */
.trip-calc .trip-calc__inner { padding: clamp(1.25rem, 3vw, 2rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.trip-calc .eyebrow { margin: 0; font-size: .9375rem; font-weight: 700; color: var(--orange-text); }
.trip-calc h2 { margin: .15rem 0 .5rem; }
.trip-calc .sub { max-width: 60ch; margin: 0 0 1.5rem; }

.trip-calc .calc-grid { display: grid; gap: 1.5rem; align-items: start; grid-template-columns: 1fr 1fr; }

@media (max-width: 48em) {
	.trip-calc .calc-grid { grid-template-columns: 1fr; }
}

.trip-calc .panel { padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trip-calc .panel h3 { margin-bottom: 1rem; font-size: 1.125rem; }

.trip-calc .field { margin-bottom: 1.1rem; }

.trip-calc label { display: flex; justify-content: space-between; gap: .75rem; margin-bottom: .4rem; font-weight: 600; color: var(--ink); }
.trip-calc .val { font-weight: 700; color: var(--brand-dark); }

.trip-calc input[type="range"] { width: 100%; min-height: 2rem; accent-color: var(--brand); }

.trip-calc select {
	width: 100%;
	min-height: 2.75rem;
	padding: .5rem .75rem;
	font: inherit;
	color: var(--ink);
	background: var(--white);
	border: 2px solid var(--control);
	border-radius: var(--radius-sm);
}

.trip-calc .toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: .7rem 0;
	border-bottom: 1px dashed var(--control);
}

.trip-calc .toggle-row:last-child { border-bottom: 0; }

.trip-calc .switch {
	position: relative;
	flex: none;
	width: 3.25rem;
	height: 1.9rem;
	padding: 0;
	background: var(--white);
	border: 2px solid var(--control);
	border-radius: 999px;
	cursor: pointer;
}

.trip-calc .switch::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 1.25rem;
	height: 1.25rem;
	background: var(--control);
	border-radius: 50%;
	transition: transform .15s ease;
}

.trip-calc .switch[aria-checked="true"] { background: var(--brand); border-color: var(--brand); }
.trip-calc .switch[aria-checked="true"]::after { background: var(--white); transform: translateX(1.3rem); }

.trip-calc .ticket { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.trip-calc .ticket-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1.25rem; color: var(--white); background: var(--brand); font-weight: 700; }
.trip-calc .ticket-top h3 { margin: 0; font-size: 1rem; color: inherit; }
.trip-calc .ticket-body { padding: 1.25rem; }

.trip-calc .line-item { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.trip-calc .li-note { display: block; font-size: .875rem; color: var(--muted); }
.trip-calc .li-amt { font-weight: 700; white-space: nowrap; color: var(--ink); }

.trip-calc .total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.trip-calc .tl-label { font-weight: 800; color: var(--ink); }
.trip-calc .tl-amt { font-size: 1.75rem; font-weight: 800; color: var(--brand-dark); }
.trip-calc .per-day { margin: .25rem 0 0; text-align: right; color: var(--muted); }
.trip-calc .fine { margin: 1.25rem 0 0; padding-top: .9rem; font-size: .875rem; color: var(--muted); border-top: 1px dashed var(--control); }
.trip-calc .footer-note { margin: 1.5rem 0 0; text-align: center; }

/* ==========================================================
   14. USER PREFERENCES
========================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ==========================================================
   15. LEGACY CONTENT SUPPORT
   Older posts and two interactive pages (Park Day Quiz, Height
   Requirements) were written for the previous theme. These keep
   them readable: the old color variables they reference, and the
   callout classes used inside post content (light backgrounds).
========================================================== */
:root {
	--bg-dark: #0b1d2a;
	--primary: #0f2f44;
	--accent: #f4b400;
	--accent-orange: #ff7a00;
	--text-light: #ffffff;
	--canvas: #e4dec8;
	--canvas-deep: #d9d1b4;
	--ink-soft: #52573f;
	--forest: #3b5943;
	--forest-deep: #2a4232;
	--brass: #a9762c;
	--brass-light: #c99a4a;
	--paper: #f7f4e9;
	--alert: #9c4a2e;
}

.callout strong { display: block; margin-bottom: .35rem; }
.callout.tip { background: #e8f5ea; border-left-color: #2e7d32; }
.callout.warning { background: #fdecea; border-left-color: #b3261e; }
.callout.info { background: var(--brand-tint); border-left-color: var(--brand); }
.callout.fun { background: #fff3d1; border-left-color: #b26a00; }

.dad-tip,
.dad-warning,
.pro-tip,
.quick-note,
.dad-reality {
	margin: 0 0 1.5rem;
	padding: 1.1rem 1.3rem;
	color: var(--ink);
	background: var(--brand-tint);
	border-left: 6px solid var(--brand);
	border-radius: var(--radius-sm);
}

.dad-tip strong,
.dad-warning strong,
.pro-tip strong,
.quick-note strong,
.dad-reality strong { display: block; margin-bottom: .35rem; color: var(--ink); }

.dad-tip > :last-child,
.dad-warning > :last-child,
.pro-tip > :last-child,
.quick-note > :last-child,
.dad-reality > :last-child { margin-bottom: 0; }

.dad-warning { background: #fff3d1; border-left-color: #b26a00; }
.pro-tip { background: #e8f5ea; border-left-color: #2e7d32; }
.quick-note { background: var(--surface); border-left-color: var(--control); }
.dad-reality { background: #fff1e0; border-left-color: var(--orange-text); }

/* Tables whose header row carries its own dark background (inline): let the row's
   colors show instead of painting the theme's light header color over them. */
.entry__content tr[style*="background"] > th,
.entry__content tr[style*="background"] > td {
	background: transparent;
	color: inherit;
}

@media (forced-colors: active) {
	.card, .dwd-card, .sidebar-box, .faq-item { border: 1px solid CanvasText; }
	.trip-calc .switch[aria-checked="true"]::after { background: Highlight; }
}
