/*
 * Capitol base styles.
 *
 * Tokens come from the live site's computed styles (Futura via Typekit, body
 * #F1F1F2 on a white card, blue links, brown section labels). Change a token
 * here, not in component CSS.
 */

/*
 * While Futura PT (Typekit) loads, and for anyone who never gets it, text shows in the closest system
 * font, each resized so a line of text is as wide as it is in Futura PT and sits on the same baseline.
 * The page then does not reflow when the real font arrives. The browser uses the first one of these
 * the device has: Futura on Apple devices, Century Gothic on Windows, otherwise Arial or Helvetica.
 *
 * Measured at 100px over one paragraph (Futura PT Book 6680 wide): Arial 7625, Apple's Futura 7910,
 * Century Gothic about 8400 (worked out from its advance widths, which match ITC Avant Garde Gothic;
 * not measured in a browser, so it may be a few percent out). Futura PT's ascent is .98 and descent .30.
 * size-adjust = 6680 / width; the ascent and descent overrides are those values divided by size-adjust.
 */
@font-face {
	font-family: "Futura Fallback Apple";
	src: local("Futura Medium"), local("Futura-Medium"), local("Futura");
	size-adjust: 84.45%;
	ascent-override: 116%;
	descent-override: 35.5%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Futura Fallback Windows";
	src: local("Century Gothic"), local("CenturyGothic");
	size-adjust: 79.5%;
	ascent-override: 123.3%;
	descent-override: 37.7%;
	line-gap-override: 0%;
}

@font-face {
	font-family: "Futura Fallback";
	src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
	size-adjust: 87.7%;
	ascent-override: 111.7%;
	descent-override: 34.2%;
	line-gap-override: 0%;
}

:root {
	--color-bg: #f1f1f2;
	--color-surface: #ffffff;
	--color-text: #565656;
	--color-muted: #656e73;
	--color-link: #0067a6;
	--color-accent: #5f3b25;
	--color-border: #d6d8da;
	--color-border-strong: #c0c5c9;
	--color-shadow: #28343c;

	--font-body: futura-pt, "Futura Fallback Apple", "Futura Fallback Windows", "Futura Fallback", sans-serif;
	--fs-sm: 0.875rem;
	--fs-md: 1rem;
	--fs-lg: 1.25rem;
	--fs-xl: 2rem;
	--lh-body: 1.5;
	/* One right arrow for the whole theme: a line with an open head, drawn in the text colour. */
	--icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h14M13 6.5l5.5 5.5-5.5 5.5'/%3E%3C/svg%3E");

	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 1rem;
	--space-4: 2rem;
	--space-5: 3rem;

	--content-max: 1100px;
	--gutter: 16px;
	--radius: 4px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: var(--fs-md);
	line-height: var(--lh-body);
}

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

a {
	color: var(--color-link);
	font-weight: 500;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid var(--color-link);
	outline-offset: 2px;
}

h1,
h2,
h3 {
	margin: 0 0 var(--space-3);
	font-weight: 400;
	line-height: 1.25;
}

h1 {
	font-size: var(--fs-xl);
}

h2 {
	font-size: var(--fs-lg);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: var(--space-3);
	top: -100px;
	background: var(--color-surface);
	padding: var(--space-2) var(--space-3);
	z-index: 100;
}

.skip-link:focus {
	top: var(--space-2);
}

/* Layout */

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main {
	flex: 1;
	width: 100%;
	max-width: var(--content-max);
	margin: 0 auto;
	padding: var(--space-3) var(--gutter) var(--space-4);
}

.content-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-bottom: 4px solid var(--color-border-strong);
	padding: var(--space-4);
	margin-bottom: var(--space-4);
}

.page-title {
	margin-bottom: var(--space-4);
}

.entry-content > * + * {
	margin-top: var(--space-3);
}

.single-media {
	margin-bottom: var(--space-4);
}

.back-link {
	margin-top: var(--space-4);
}

/*
 * Header: the wordmark scrolls away with the page; the bar of menu and search sticks to the top and
 * tightens up once it is stuck. .site-header is display: contents so the bar can stick for the whole
 * page, and the space the tightening gives up is handed back as margin so nothing below jumps.
 */

:root {
	--bar-pad: var(--space-2);
	--bar-pad-stuck: var(--space-1);
}

html {
	scroll-padding-top: 5rem;
}

.site-header {
	display: contents;
}

.site-header__brand {
	max-width: var(--content-max);
	width: 100%;
	margin: 0 auto;
	padding: var(--space-4) var(--gutter) var(--space-2);
}

/* The wordmark on the left, today's weather on the right. */
.site-header__brand {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-3);
}

.site-logo {
	display: block;
	flex: 1 1 520px;
	min-width: 0;
	max-width: 520px;
}

.site-weather {
	display: flex;
	flex: none;
	align-items: center;
	gap: var(--space-2);
	padding-bottom: 0.1rem;
	color: var(--color-muted);
	font-size: var(--fs-sm);
	line-height: 1;
	white-space: nowrap;
}

.site-weather__icon {
	color: var(--color-link);
}

.site-weather__temp {
	color: var(--color-text);
	font-size: var(--fs-lg);
	font-weight: 500;
}

.site-weather__text {
	text-transform: lowercase;
}

.site-logo img {
	display: block;
	width: min(100%, 520px);
	height: auto;
}

.site-header__bar {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	transition: margin 0.2s ease;
}

.site-header__inner {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: var(--bar-pad) var(--gutter);
	transition: padding 0.2s ease;
}

/*
 * Stuck, the bar keeps its width and borders and sits flush against the top of the viewport.
 * The space above and below it that it gives up is handed back as margin, so the page does not move.
 */
.site-header.is-condensed .site-header__bar {
	margin-bottom: calc(2 * var(--bar-pad));
}

.site-header.is-condensed .site-header__inner {
	padding-block: 0;
}

.site-bar {
	display: flex;
	align-items: stretch;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-bottom: 2px solid var(--color-border-strong);
	transition: box-shadow 0.2s ease;
}

.search-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	padding: 0;
	border: 0;
	border-left: 1px solid var(--color-border);
	background: none;
	color: var(--color-link);
	cursor: pointer;
}

.search-toggle:focus-visible {
	outline: 3px solid var(--color-link);
	outline-offset: -3px;
}

.nav-toggle {
	display: none;
	background: none;
	border: 0;
	padding: var(--space-3);
	font: inherit;
	font-weight: 500;
	color: var(--color-link);
	cursor: pointer;
}

.primary-nav {
	flex: 1;
	min-width: 0;
}

.primary-nav .menu {
	display: flex;
	flex-wrap: wrap;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu > li {
	position: relative;
	border-right: 1px solid var(--color-border);
}

.primary-nav .menu > li > a {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	height: 100%;
	padding: var(--space-3);
	color: var(--color-link);
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

/* Hover, focus and the open dropdown: a tint and a blue rule along the bottom edge. */
.primary-nav .menu > li:hover > a,
.primary-nav .menu > li:focus-within > a,
.primary-nav .menu > li.is-touch-open > a {
	background: var(--color-bg);
	box-shadow: inset 0 -3px 0 var(--color-link);
}

/* Where you are: the same rule in the brown accent. */
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current-menu-ancestor > a {
	box-shadow: inset 0 -3px 0 var(--color-accent);
}

.primary-nav .menu > .current-menu-item:hover > a,
.primary-nav .menu > .current-menu-ancestor:hover > a {
	box-shadow: inset 0 -3px 0 var(--color-link);
}

.submenu-toggle {
	display: none;
}

/*
 * The dropdown panel: a grid of the section's pages, each with a thumbnail, and that page's own
 * sub-pages listed under it. It fades in on hover or focus and waits a moment before closing, so a
 * diagonal move of the pointer does not dismiss it.
 */
.primary-nav .menu > li > .sub-menu {
	position: absolute;
	top: 100%;
	left: -1px;
	z-index: 20;
	column-width: 260px;
	column-gap: var(--space-3);
	width: min(var(--panel-room, 640px), 860px);
	max-height: calc(100vh - 7rem);
	margin: 0;
	padding: var(--space-3);
	overflow-y: auto;
	list-style: none;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	box-shadow: 0 12px 28px color-mix(in srgb, var(--color-shadow) 20%, transparent);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.2s;
}

/* Short lists get a narrow single column. */
.primary-nav .menu > li > .sub-menu:not(:has(> li:nth-child(4))) {
	column-count: 1;
	column-width: auto;
	width: min(340px, var(--panel-room, 340px));
}

.primary-nav .menu > li:hover > .sub-menu,
.primary-nav .menu > li:focus-within > .sub-menu,
.primary-nav .menu > li.is-touch-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.primary-nav .sub-menu li {
	margin: 0;
	break-inside: avoid;
}

.primary-nav .menu > li > .sub-menu > li > a {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-2);
	border-radius: var(--radius);
	color: var(--color-text);
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
	transition: background 0.12s ease, color 0.12s ease;
}

.primary-nav .menu > li > .sub-menu > li > a:hover,
.primary-nav .menu > li > .sub-menu > li > a:focus-visible {
	background: var(--color-bg);
	color: var(--color-link);
}

/* A small arrow slides in on the row you are over. */
.primary-nav .menu > li > .sub-menu > li > a::after {
	content: "";
	flex: none;
	width: 1.1em;
	height: 1.1em;
	margin-left: auto;
	background: var(--color-link);
	-webkit-mask: var(--icon-arrow) center / contain no-repeat;
	mask: var(--icon-arrow) center / contain no-repeat;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.primary-nav .menu > li > .sub-menu > li > a:hover::after,
.primary-nav .menu > li > .sub-menu > li > a:focus-visible::after {
	opacity: 1;
	transform: none;
}

.nav-item__thumb {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	overflow: hidden;
	border-radius: 3px;
	background: var(--color-bg);
}

.nav-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.primary-nav a:hover .nav-item__thumb img,
.primary-nav a:focus-visible .nav-item__thumb img {
	transform: scale(1.08);
}

.nav-item__thumb--empty {
	color: color-mix(in srgb, var(--color-muted) 55%, transparent);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
}

.primary-nav a:hover .nav-item__thumb--empty,
.primary-nav a:focus-visible .nav-item__thumb--empty {
	color: var(--color-link);
	border-color: var(--color-link);
}

/* Sub-pages, listed under their section's row. */
.primary-nav .sub-menu .sub-menu {
	margin: 0 0 var(--space-2);
	padding: 0;
	list-style: none;
}

.primary-nav .sub-menu .sub-menu .sub-menu {
	margin: 0;
	padding: 0 0 0 var(--space-3);
}

.primary-nav .sub-menu .sub-menu a {
	display: block;
	padding: 0.2rem var(--space-2);
	color: var(--color-muted);
	font-size: var(--fs-sm);
	font-weight: 400;
	text-decoration: none;
}

.primary-nav .sub-menu .sub-menu a:hover,
.primary-nav .sub-menu .sub-menu a:focus-visible {
	color: var(--color-link);
	text-decoration: underline;
}

.site-search {
	display: flex;
	align-items: center;
	flex: 0 0 240px;
	padding: 0 var(--space-3);
}

/* Search: an underlined field with a magnifier button. */
.search-form {
	position: relative;
	width: 100%;
}

.search-field {
	width: 100%;
	padding: var(--space-2) 2.75rem var(--space-2) 0;
	border: 0;
	border-bottom: 1px solid var(--color-border);
	border-radius: 0;
	background: transparent;
	color: var(--color-text);
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.search-field::placeholder {
	color: var(--color-muted);
	opacity: 0.8;
}

.search-field:focus {
	outline: none;
	border-bottom-color: var(--color-link);
	box-shadow: 0 1px 0 var(--color-link);
}

.search-submit {
	position: absolute;
	top: 50%;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	transform: translateY(-50%);
	background: none;
	border: 0;
	color: var(--color-muted);
	cursor: pointer;
}

.search-submit:hover,
.search-submit:focus-visible {
	color: var(--color-link);
}

@media (prefers-reduced-motion: reduce) {
	.site-header__bar,
	.site-header__inner,
	.site-bar,
	.primary-nav a,
	.primary-nav .menu > li > .sub-menu,
	.nav-item__thumb img,
	.primary-nav .menu-item-has-children > a::after {
		transition: none;
	}
}

/* Footer */

.site-footer {
	background: var(--color-surface);
	border-top: 1px solid var(--color-border);
	color: var(--color-muted);
	font-size: var(--fs-sm);
}

.site-footer__inner {
	max-width: var(--content-max);
	margin: 0 auto;
	padding: var(--space-4) var(--gutter);
}

.footer-links {
	margin-bottom: var(--space-4);
	text-align: center;
}

.footer-links__tagline {
	margin: 0 0 var(--space-2);
	font-size: var(--fs-lg);
	color: var(--color-accent);
}

.footer-links .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2) var(--space-3);
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links .menu li + li::before {
	content: "\2022";
	margin-right: var(--space-3);
	color: var(--color-border);
}

.footer-nav > .menu {
	display: grid;
	gap: var(--space-4);
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin: 0 0 var(--space-4);
	padding: 0;
	list-style: none;
}

.footer-nav > .menu > li > a {
	color: var(--color-accent);
	font-weight: 500;
	text-decoration: none;
}

.footer-nav .sub-menu {
	margin: var(--space-2) 0 0;
	padding: 0;
	list-style: none;
}

.footer-nav .sub-menu a {
	display: block;
	padding: var(--space-1) 0;
	color: var(--color-muted);
	font-weight: 400;
	text-decoration: none;
}

.footer-nav .sub-menu a:hover {
	color: var(--color-link);
	text-decoration: underline;
}

/* Buttons and lists */

.button {
	display: inline-block;
	background: var(--color-link);
	color: var(--color-surface);
	padding: var(--space-2) var(--space-4);
	border: 0;
	border-radius: var(--radius);
	font: inherit;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	background: color-mix(in srgb, var(--color-link) 85%, var(--color-text));
}

.publication-types .menu {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: 0 0 var(--space-4);
}

.publication-types a {
	display: inline-block;
	padding: var(--space-1) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	text-decoration: none;
}

.publication-types a:hover {
	background: var(--color-bg);
}

.publication-types a[aria-current="page"] {
	background: var(--color-link);
	border-color: var(--color-link);
	color: var(--color-surface);
}

.publication-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.publication-list__year {
	margin-top: var(--space-4);
	font-size: var(--fs-lg);
	color: var(--color-accent);
	border-bottom: 1px solid var(--color-border);
	padding-bottom: var(--space-2);
}

.publication-list__item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--space-2) var(--space-3);
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--color-border);
}

.publication-list__title {
	flex: 1 1 auto;
	text-decoration: none;
}

.publication-list__title:hover {
	text-decoration: underline;
}

.publication-list__pdf {
	text-decoration: none;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 0 var(--space-2);
}

.publication-list__pdf:hover {
	background: var(--color-bg);
}

.publication-list__type {
	font-size: var(--fs-sm);
	color: var(--color-muted);
}

/* Page layout: a main column, with the visitor sidebar beside it on wide screens. */

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--space-4);
	align-items: start;
}

.layout__main {
	margin-bottom: 0;
}

@media (min-width: 960px) {
	.layout--sidebar {
		grid-template-columns: minmax(0, 1fr) 300px;
	}
}

/* Sections */

.section + .section {
	margin-top: var(--space-4);
}

.section-label {
	margin: 0 0 var(--space-3);
	font-size: var(--fs-sm);
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-accent);
}

.intro .page-title {
	margin-bottom: var(--space-3);
}

.intro__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2) var(--space-3);
}

.intro__links li + li::before {
	content: "\2022";
	margin-right: var(--space-3);
	color: var(--color-border);
}

@media (max-width: 600px) {
	/* Bullets between wrapped links end up at the start of a line, so drop them. */
	.intro__links li + li::before {
		display: none;
	}
}

.hero {
	margin: 0;
}

.hero__media {
	display: block;
}

.hero__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
}

.hero__caption {
	margin-top: var(--space-2);
	font-size: var(--fs-sm);
	color: var(--color-muted);
}

/* Cards */

.card-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--space-3);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.card {
	display: flex;
	flex-direction: column;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
}

.card__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
}

.card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.card:hover .card__media img {
	transform: scale(1.03);
}

.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: var(--space-1);
	padding: var(--space-3);
}

.card__title {
	margin: 0;
	font-size: var(--fs-md);
	line-height: 1.3;
}

.card__title a {
	text-decoration: none;
}

.card__title a:hover {
	text-decoration: underline;
}

.card__meta {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--color-muted);
}

.card--text .card__body {
	border-left: 3px solid var(--color-link);
}

.card__excerpt {
	margin: var(--space-2) 0 0;
	font-size: var(--fs-sm);
	line-height: 1.45;
}

/* Sub-page cards at the foot of a top-level page. */
.subpages__grid {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.card--page .card__excerpt {
	flex: 1;
	color: var(--color-muted);
}

.card__more {
	margin-top: var(--space-2);
	font-size: var(--fs-sm);
	font-weight: 500;
	text-decoration: none;
}

.card__more:hover {
	text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
	.card__media img {
		transition: none;
	}

	.card:hover .card__media img {
		transform: none;
	}
}

/* Visitor sidebar: quiet text on the page, with hairline dividers. */

.visitor-sidebar {
	font-size: var(--fs-sm);
}

.visitor-sidebar p {
	margin: 0 0 var(--space-2);
}

.visitor-sidebar__block + .visitor-sidebar__block {
	margin-top: var(--space-4);
}

.visitor-sidebar__list,
.visitor-sidebar__events {
	list-style: none;
	margin: 0 0 var(--space-3);
	padding: 0;
}

.visitor-sidebar__list li,
.visitor-sidebar__events li {
	padding: var(--space-2) 0;
	border-top: 1px solid var(--color-border);
}

.visitor-sidebar__list li:first-child,
.visitor-sidebar__events li:first-child {
	padding-top: 0;
	border-top: 0;
}

.visitor-sidebar__list li > :last-child {
	margin-bottom: 0;
}

.visitor-sidebar__events li {
	display: flex;
	flex-direction: column;
}

.visitor-sidebar__date {
	color: var(--color-muted);
}

/* Hours and tour times: days on the left, times on the right. */
.visitor-sidebar__rows {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--space-1) var(--space-3);
	margin: 0 0 var(--space-2);
}

.visitor-sidebar__rows dt {
	font-weight: 700;
}

.visitor-sidebar__rows dd {
	margin: 0;
}

.visitor-sidebar__fine {
	color: var(--color-muted);
	font-size: 0.8rem;
}

.visitor-sidebar__notice {
	padding: var(--space-3);
	border-left: 4px solid var(--color-accent);
	background: var(--color-surface);
	box-shadow: 0 1px 2px color-mix(in srgb, var(--color-shadow) 18%, transparent), 0 2px 8px color-mix(in srgb, var(--color-shadow) 10%, transparent);
}

.visitor-sidebar__notice > :last-child {
	margin-bottom: 0;
}

/* Breadcrumbs */

.breadcrumbs {
	margin: 0 0 var(--space-3);
	font-size: var(--fs-sm);
	color: var(--color-muted);
}

.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1) var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.breadcrumbs li {
	display: flex;
	align-items: center;
}

.breadcrumbs li[aria-current] {
	padding: 0.4rem 0;
}

.breadcrumbs li + li::before {
	content: "/";
	margin-right: var(--space-2);
	color: var(--color-border);
}

.breadcrumbs a {
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

/* Tiles: linked pages over their images. Three tiles make a mosaic with a large first tile. */

.tiles__grid {
	display: grid;
	gap: var(--space-2);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.tile {
	position: relative;
	min-height: 200px;
	overflow: hidden;
	background: linear-gradient(135deg, color-mix(in srgb, var(--color-link) 55%, black), color-mix(in srgb, var(--color-link) 85%, black));
}

.tile__link {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	color: var(--color-surface);
	text-decoration: none;
}

.tile__link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 58%);
}

.tile__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.tile:hover .tile__image {
	transform: scale(1.04);
}

.tile__title {
	position: relative;
	z-index: 1;
	padding: var(--space-3);
	font-weight: 500;
	line-height: 1.25;
}

.tile__link:focus-visible {
	outline: 3px solid var(--color-surface);
	outline-offset: -6px;
}

.tiles--mosaic .tile--large {
	min-height: 280px;
}

@media (min-width: 700px) {
	.tiles--mosaic .tiles__grid {
		grid-template-columns: 2fr 1fr;
		grid-template-rows: 1fr 1fr;
	}

	.tiles--mosaic .tile {
		min-height: 0;
	}

	.tiles--mosaic .tile--large {
		grid-row: 1 / span 2;
		min-height: 440px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tile__image {
		transition: none;
	}

	.tile:hover .tile__image {
		transform: none;
	}
}

/* Lists of pages, side by side */

.page-lists {
	display: grid;
	gap: var(--space-4);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.page-list__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.page-list__item {
	border-bottom: 1px solid var(--color-border);
}

.page-list__item a {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) 0;
	font-size: var(--fs-lg);
	text-decoration: none;
}

.page-list__item a:hover .page-list__title,
.page-list__item a:focus-visible .page-list__title {
	text-decoration: underline;
}

.page-list__thumb {
	flex: none;
	width: 56px;
	height: 56px;
	object-fit: cover;
}

/* Address and map */

.location__body {
	display: grid;
	gap: var(--space-3);
}

.location__address {
	margin: 0 0 var(--space-3);
	font-style: normal;
}

.location__map {
	display: block;
	width: 100%;
	height: 340px;
	border: 1px solid var(--color-border);
}

@media (min-width: 700px) {
	.location__body {
		grid-template-columns: 240px 1fr;
		align-items: start;
	}
}

/* Sidebar: contextual section menu, map, and events with date badges */

.section-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.section-nav__list li {
	border-top: 1px solid var(--color-border);
}

.section-nav__list li:first-child {
	border-top: 0;
}

.section-nav__list a {
	display: block;
	padding: var(--space-2) 0;
	text-decoration: none;
}

.section-nav__list a:hover {
	text-decoration: underline;
}

.section-nav__list .is-current > a {
	font-weight: 700;
	color: var(--color-text);
}

.section-label a {
	color: inherit;
	text-decoration: none;
}

.visitor-sidebar__map {
	display: block;
	width: 100%;
	height: 170px;
	margin: 0 0 var(--space-2);
	border: 1px solid var(--color-border);
}

.visitor-sidebar__address {
	color: var(--color-muted);
}

.event-list {
	margin: 0 0 var(--space-3);
	padding: 0;
	list-style: none;
}

.event-list__item {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	padding: var(--space-2) 0;
	border-top: 1px solid var(--color-border);
}

/* Where the month changes: a hairline across the whole widget with the month's name on it. */
.event-list__month {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin: var(--space-3) 0 var(--space-2);
	color: var(--color-muted);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.event-list__month::after {
	content: "";
	flex: 1;
	border-top: 1px solid var(--color-border);
}

.event-list__month:first-child {
	margin-top: 0;
}

.event-list__month + .event-list__item {
	padding-top: 0;
	border-top: 0;
}

.event-list__item:first-child {
	padding-top: 0;
	border-top: 0;
}

/* Date badge: a white square with a soft shadow; weekday over date, centred both ways. */
.event-list__badge {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	width: 3.25rem;
	height: 3.25rem;
	background: var(--color-surface);
	border-radius: var(--radius);
	box-shadow:
		0 1px 2px color-mix(in srgb, var(--color-shadow) 18%, transparent),
		0 2px 6px color-mix(in srgb, var(--color-shadow) 10%, transparent);
	line-height: 1;
	text-align: center;
}

.event-list__weekday {
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.event-list__day {
	font-size: var(--fs-lg);
	font-weight: 700;
	color: var(--color-text);
}

.event-list__text {
	display: flex;
	flex-direction: column;
}

.event-list__text a {
	text-decoration: none;
}

.event-list__text a:hover {
	text-decoration: underline;
}

.event-list__time {
	margin-top: 0.15rem;
	font-size: 0.8rem;
	color: var(--color-accent);
}

.visitor-sidebar__note > :last-child {
	margin-bottom: 0;
}

/* Content: whatever an editor writes in the editor */

.entry-content {
	font-size: 1.125rem;
	line-height: 1.5;
	overflow-wrap: break-word;
}

/* Superscripts ("14th") must not push their line apart from the others. */
.entry-content sup,
.entry-content sub {
	line-height: 0;
}

.entry-content::after {
	content: "";
	display: block;
	clear: both;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin: var(--space-4) 0 var(--space-2);
	line-height: 1.25;
}

.entry-content h2 {
	font-size: var(--fs-lg);
	color: var(--color-accent);
}

.entry-content h3 {
	font-size: 1.1rem;
}

.entry-content h4 {
	font-size: var(--fs-md);
	font-weight: 500;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4rem;
}

.entry-content li + li {
	margin-top: 0.4rem;
}

.entry-content img,
.entry-content video {
	max-width: 100%;
	height: auto;
}

/* Floated pictures and figures keep real space between them and the words that wrap around them. */
.entry-content .alignleft,
.entry-content figure.alignleft,
.entry-content .wp-caption.alignleft {
	float: left;
	max-width: 50%;
	margin: 0.3rem var(--space-4) var(--space-3) 0;
}

.entry-content .alignright,
.entry-content figure.alignright,
.entry-content .wp-caption.alignright {
	float: right;
	max-width: 50%;
	margin: 0.3rem 0 var(--space-3) var(--space-4);
}

.entry-content .aligncenter {
	display: block;
	margin-inline: auto;
}

.entry-content figure,
.entry-content .wp-caption {
	max-width: 100%;
	margin-inline: 0;
}

.entry-content figcaption,
.entry-content .wp-caption-text {
	margin-top: var(--space-1);
	font-size: var(--fs-sm);
	color: var(--color-muted);
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-sm);
}

.entry-content th,
.entry-content td {
	padding: var(--space-2) var(--space-3);
	border: 1px solid var(--color-border);
	text-align: left;
	vertical-align: top;
}

.entry-content th {
	background: var(--color-bg);
}

.entry-content blockquote {
	margin-inline: 0;
	padding-left: var(--space-3);
	border-left: 3px solid var(--color-link);
	color: var(--color-muted);
}

.entry-content hr {
	border: 0;
	border-top: 1px solid var(--color-border);
}

.entry-content iframe {
	max-width: 100%;
}

.entry-content iframe[src*="youtube"],
.entry-content iframe[src*="vimeo"] {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

/* Posts */

.post-byline {
	margin: 0 0 var(--space-3);
	font-size: var(--fs-sm);
	color: var(--color-muted);
}

.single-media {
	margin: 0 0 var(--space-4);
}

.single-media img {
	display: block;
	width: 100%;
	height: auto;
}

.single-media__caption {
	margin-top: var(--space-2);
	font-size: var(--fs-sm);
	color: var(--color-muted);
}

.post-navigation .nav-links {
	display: grid;
	gap: var(--space-3);
	grid-template-columns: 1fr 1fr;
	margin-top: var(--space-4);
	padding-top: var(--space-3);
	border-top: 1px solid var(--color-border);
}

.post-navigation .nav-next {
	grid-column: 2;
	text-align: right;
}

.post-navigation a {
	text-decoration: none;
}

.post-nav__label {
	display: block;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-accent);
}

.post-more {
	margin-top: var(--space-5);
}

.archive-description {
	margin: 0 0 var(--space-4);
	color: var(--color-muted);
}

.search-again {
	max-width: 420px;
	margin: 0 0 var(--space-4);
}

/* Post and search result rows */

.post-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-list__item {
	display: flex;
	gap: var(--space-3);
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--color-border);
}

.post-list__item:first-child {
	padding-top: 0;
}

.post-list__media {
	flex: none;
	width: 140px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.post-list__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-list__body {
	flex: 1;
	min-width: 0;
}

.post-list__title {
	margin: 0 0 var(--space-1);
	font-size: var(--fs-lg);
	line-height: 1.3;
}

.post-list__title a {
	text-decoration: none;
}

.post-list__title a:hover {
	text-decoration: underline;
}

.post-list__meta {
	margin: 0;
	font-size: var(--fs-sm);
	color: var(--color-muted);
}

.post-list__type {
	display: inline-block;
	margin-right: var(--space-2);
	padding: 0 var(--space-2);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.post-list__excerpt {
	margin: var(--space-2) 0 0;
	font-size: var(--fs-sm);
}

/* Pagination */

.pagination {
	margin-top: var(--space-4);
}

.pagination .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-1);
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination li > .page-numbers {
	display: block;
	min-width: 2.25rem;
	padding: var(--space-1) var(--space-2);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	text-align: center;
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	background: var(--color-bg);
}

.pagination .page-numbers.current {
	background: var(--color-link);
	border-color: var(--color-link);
	color: var(--color-surface);
}

.publications__more {
	margin: var(--space-3) 0 0;
}

/* Forms (Gravity Forms) */

.form-section .gform_wrapper input[type="text"],
.form-section .gform_wrapper input[type="email"],
.form-section .gform_wrapper input[type="tel"],
.form-section .gform_wrapper input[type="url"],
.form-section .gform_wrapper select,
.form-section .gform_wrapper textarea {
	width: 100%;
	padding: var(--space-2);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
	color: var(--color-text);
	font: inherit;
}

.form-section .gform_wrapper input:focus,
.form-section .gform_wrapper textarea:focus,
.form-section .gform_wrapper select:focus {
	outline: 3px solid var(--color-link);
	outline-offset: 1px;
}

.form-section .gform_wrapper .gform_button,
.form-section .gform_wrapper input[type="submit"] {
	display: inline-block;
	padding: var(--space-2) var(--space-4);
	border: 0;
	border-radius: var(--radius);
	background: var(--color-link);
	color: var(--color-surface);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}

@media (max-width: 600px) {
	.entry-content .alignleft,
	.entry-content figure.alignleft,
	.entry-content .wp-caption.alignleft,
	.entry-content .alignright,
	.entry-content figure.alignright,
	.entry-content .wp-caption.alignright {
		display: block;
		float: none;
		max-width: 100%;
		margin: var(--space-2) auto;
	}

	.entry-content table {
		display: block;
		overflow-x: auto;
	}

	.post-list__media {
		width: 96px;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		grid-column: 1;
		text-align: left;
	}
}

/* Gallery slider (replaces RoyalSlider for [gallery]) */

.gallery--slider {
	margin: var(--space-4) 0;
}

.gallery__stage {
	position: relative;
}

.gallery__viewport {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	background: var(--color-text);
}

.gallery__viewport::-webkit-scrollbar {
	display: none;
}

.gallery__viewport:focus-visible {
	outline: 3px solid var(--color-link);
	outline-offset: 2px;
}

.gallery--slider .gallery__slide {
	position: relative;
	flex: 0 0 100%;
	margin: 0;
	scroll-snap-align: start;
}

.gallery--slider .gallery__slide img {
	display: block;
	width: 100%;
	height: min(62vw, 520px);
	object-fit: contain;
}

.gallery--slider .gallery__slide figcaption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: var(--space-4) var(--space-3) var(--space-2);
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
	color: var(--color-surface);
	font-size: var(--fs-sm);
}

.gallery__nav {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	margin-top: -1.25rem;
	padding: 0 0 0.15rem;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--color-surface) 88%, transparent);
	box-shadow: 0 1px 4px color-mix(in srgb, var(--color-shadow) 40%, transparent);
	color: var(--color-text);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

.gallery__nav--prev {
	left: var(--space-2);
}

.gallery__nav--next {
	right: var(--space-2);
}

.gallery__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.gallery__nav:focus-visible,
.gallery__thumbs button:focus-visible {
	outline: 3px solid var(--color-link);
	outline-offset: 2px;
}

/* Doubled class names so these beat the .entry-content list rules when a gallery sits in page text. */
.gallery--slider .gallery__thumbs {
	display: flex;
	gap: var(--space-1);
	margin: var(--space-2) 0 0;
	padding: 0 0 var(--space-1);
	overflow-x: auto;
	list-style: none;
}

.gallery--slider .gallery__thumbs li {
	flex: none;
	margin: 0;
}

.gallery__thumbs button {
	display: block;
	padding: 0;
	border: 2px solid transparent;
	background: none;
	opacity: 0.65;
	cursor: pointer;
}

.gallery__thumbs button[aria-current="true"] {
	border-color: var(--color-link);
	opacity: 1;
}

.gallery__thumbs img {
	display: block;
	width: 72px;
	height: 54px;
	object-fit: cover;
}

.gallery--single {
	margin: var(--space-4) 0;
}

.gallery__expand {
	position: absolute;
	top: var(--space-2);
	right: var(--space-2);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--color-surface) 88%, transparent);
	box-shadow: 0 1px 4px color-mix(in srgb, var(--color-shadow) 40%, transparent);
	color: var(--color-text);
	cursor: pointer;
}

.gallery__expand::before {
	content: "";
	width: 1.1rem;
	height: 1.1rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gallery__expand:focus-visible {
	outline: 3px solid var(--color-link);
	outline-offset: 2px;
}

.gallery img.is-zoomable {
	cursor: zoom-in;
}

/* Full-screen viewer */
html.lightbox-open {
	overflow: hidden;
}

.lightbox {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: #000;
	color: #fff;
}

.lightbox[open] {
	display: flex;
	flex-direction: column;
}

.lightbox__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-2) var(--space-3);
}

.lightbox__count {
	font-size: var(--fs-sm);
	opacity: 0.8;
}

.lightbox__close,
.lightbox__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0 0 0.15rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	font-size: 1.9rem;
	line-height: 1;
	cursor: pointer;
}

.lightbox__close:hover,
.lightbox__nav:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.28);
}

.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.lightbox__stage {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	min-height: 0;
	padding: 0 var(--space-2);
}

.lightbox__img {
	flex: 1;
	min-width: 0;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	touch-action: pan-y pinch-zoom;
}

.lightbox__nav:disabled {
	opacity: 0.25;
	cursor: default;
}

.lightbox__caption {
	margin: 0;
	padding: var(--space-2) var(--space-3) var(--space-3);
	font-size: var(--fs-sm);
	text-align: center;
}

@media (max-width: 600px) {
	/* On a phone the photo takes the whole width; swipe to move on. */
	.lightbox__nav {
		display: none;
	}

	.lightbox__stage {
		padding: 0;
	}
}


/* The events calendar sits in a section so it spaces like the others. */
.events-section {
	margin-bottom: 0;
}

/* Comfortable tap targets */

.breadcrumbs a {
	display: inline-block;
	padding: 0.4rem 0;
}

.publication-list__pdf {
	padding: var(--space-2) var(--space-3);
}

.pagination li > .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
}

.gallery__nav {
	width: 2.75rem;
	height: 2.75rem;
	margin-top: -1.375rem;
}

/* Mobile and tablet portrait: a compact fixed header with a collapsible menu */

@media (max-width: 860px) {
	.site-header__brand {
		padding-block: var(--space-3) var(--space-2);
	}

	.site-logo img {
		width: min(100%, 320px);
	}

	.site-bar {
		flex-wrap: wrap;
	}

	.nav-toggle {
		display: block;
		flex: 1;
		min-height: 2.75rem;
		text-align: left;
	}

	.nav-toggle::after {
		content: "";
		display: inline-block;
		width: 0.45em;
		height: 0.45em;
		margin-left: var(--space-2);
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-0.15em) rotate(45deg);
	}

	.search-toggle {
		display: flex;
		min-height: 2.75rem;
	}

	/* Search sits behind its icon until it is opened. */
	.site-search {
		display: none;
		flex: 0 0 100%;
		order: 3;
		padding: var(--space-2) var(--space-3) var(--space-3);
		border-top: 1px solid var(--color-border);
	}

	.site-header.search-open .site-search {
		display: flex;
	}

	/* The weather keeps its icon and temperature and drops the words on a phone. */
	.site-header__brand {
		align-items: center;
		gap: var(--space-2);
	}

	.site-weather {
		gap: 0.3rem;
		padding-bottom: 0;
	}

	.site-weather__icon {
		width: 22px;
		height: 22px;
	}

	.site-weather__temp {
		font-size: var(--fs-md);
	}

	.site-weather__text {
		display: none;
	}

	.primary-nav {
		display: none;
		flex: 0 0 100%;
		order: 2;
		max-height: calc(100vh - 7rem);
		overflow-y: auto;
		border-top: 1px solid var(--color-border);
	}

	.primary-nav.is-open {
		display: block;
	}

	.primary-nav .menu {
		flex-direction: column;
		flex-wrap: nowrap;
		height: auto;
	}

	.primary-nav .menu > li {
		display: flex;
		flex-wrap: wrap;
		border-right: 0;
		border-bottom: 1px solid var(--color-border);
	}

	.primary-nav .menu > li > a {
		flex: 1;
		min-height: 2.75rem;
		box-shadow: none;
	}

	.primary-nav .menu > li:hover > a,
	.primary-nav .menu > li:focus-within > a {
		box-shadow: none;
	}

	.primary-nav .menu > li > a::after {
		display: none;
	}

	/* Each section opens with its own button. */
	.submenu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 3rem;
		border: 0;
		border-left: 1px solid var(--color-border);
		background: none;
		color: var(--color-link);
		cursor: pointer;
	}

	.submenu-toggle::before {
		content: "";
		width: 0.5em;
		height: 0.5em;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-0.15em) rotate(45deg);
		transition: transform 0.15s ease;
	}

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

	.primary-nav .menu > li > .sub-menu {
		position: static;
		display: none;
		width: 100%;
		max-height: none;
		padding: 0 0 var(--space-2);
		overflow: visible;
		border: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: none;
		background: var(--color-bg);
	}

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

	.primary-nav .menu > li > .sub-menu,
	.primary-nav .menu > li > .sub-menu:not(:has(> li:nth-child(4))) {
		column-count: 1;
		column-width: auto;
		width: 100%;
	}

	.primary-nav .menu > li > .sub-menu > li > a::after {
		display: none;
	}

	.primary-nav .menu > li > .sub-menu > li > a {
		padding: var(--space-2) var(--space-3);
		border-radius: 0;
	}

	.nav-item__thumb {
		width: 40px;
		height: 40px;
	}

	.primary-nav .sub-menu .sub-menu a {
		padding-inline: var(--space-3);
	}

	.primary-nav .sub-menu .sub-menu a {
		padding-block: 0.4rem;
	}

	.cap-events .fc .fc-button {
		min-height: 2.75rem;
	}

	.content-card {
		padding: var(--space-3);
	}
}

/* External links: a small arrow-out-of-box after the text. */
a.is-external::after {
	content: "";
	display: inline-block;
	width: 0.8em;
	height: 0.8em;
	margin-left: 0.25em;
	vertical-align: -0.05em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The older text arrow some links already carry would double up. */
.card__more.is-external::after,
.event-list__text a.is-external::after {
	display: inline-block;
}

/* Walking tours written out on the page */

.tour__head {
	margin-bottom: var(--space-4);
}

.tour__title {
	margin: 0 0 var(--space-2);
}

.tour__intro {
	max-width: 46rem;
	font-size: var(--fs-md);
}

.tour__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: var(--space-3) 0 0;
}

.tour__download {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.tour__download::before {
	content: "";
	width: 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

.tour__size {
	font-weight: 400;
	opacity: 0.85;
}

.tour__section {
	margin: var(--space-5) 0 var(--space-3);
	padding-top: var(--space-3);
	border-top: 3px solid var(--color-accent);
	font-size: var(--fs-lg);
}

.tour-stop {
	display: grid;
	gap: var(--space-3);
	padding: var(--space-3) 0 var(--space-4);
	border-bottom: 1px solid var(--color-border);
}

.tour-stop:last-of-type {
	border-bottom: 0;
}

.tour-stop__title {
	margin: 0 0 var(--space-2);
	color: var(--color-link);
	font-size: var(--fs-md);
	font-weight: 600;
}

.tour-stop__body > :first-child {
	margin-top: 0;
}

.tour-stop__body > :last-child {
	margin-bottom: 0;
}

.tour-stop__body h3 {
	margin: var(--space-3) 0 var(--space-1);
	color: var(--color-link);
	font-size: var(--fs-md);
	font-weight: 600;
}

.tour-stop__body h3:first-child {
	margin-top: 0;
}

.tour-stop__body h3 small {
	margin-left: 0.35em;
	color: var(--color-muted);
	font-size: var(--fs-sm);
	font-weight: 400;
}

.tour-stop__media {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	align-items: flex-start;
}

.tour-stop__media figure {
	margin: 0;
}

.tour-stop__media img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 22rem;
	border-radius: var(--radius);
	cursor: zoom-in;
	background: var(--color-bg);
}

.tour-stop__media--one img {
	max-height: 26rem;
}

/* With room to spare, a stop's text and photos sit side by side. */
@media (min-width: 760px) {
	.tour-stop.has-media {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
		align-items: start;
		gap: var(--space-4);
	}
}

.tour__foot {
	margin-top: var(--space-4);
	padding-top: var(--space-3);
	border-top: 3px solid var(--color-accent);
}

.tour__outro {
	max-width: 46rem;
}

.tour__download.button--outline {
	background: transparent;
	color: var(--color-link);
	border: 2px solid var(--color-link);
}

.tour__download.button--outline:hover,
.tour__download.button--outline:focus-visible {
	background: var(--color-link);
	color: #fff;
}

/* Vocabulary lists on lesson pages */
.tour-stop__body dl {
	margin: var(--space-2) 0 0;
}

.tour-stop__body dt {
	margin-top: var(--space-2);
	font-weight: 600;
}

.tour-stop__body dt small {
	margin-left: 0.35em;
	color: var(--color-muted);
	font-weight: 400;
}

.tour-stop__body dd {
	margin: 0;
}

/* Guidelines written out from a memo: numbered rules, a highlighted notice, and a source line. */
.entry-content ol.guidelines > li {
	padding-left: 0.3rem;
}

.entry-content ol.guidelines > li + li {
	margin-top: var(--space-3);
}

.entry-content ol.guidelines ul {
	margin-top: var(--space-1);
	list-style: none;
	padding-left: 0;
}

.entry-content p.notice {
	padding: var(--space-3);
	border-left: 4px solid var(--color-accent);
	background: var(--color-bg);
}

.entry-content p.source {
	margin-top: var(--space-4);
	padding-top: var(--space-2);
	border-top: 1px solid var(--color-border);
	color: var(--color-muted);
	font-size: var(--fs-sm);
}

/* PDF viewer section: a frame on wide screens, page pictures on small ones. */
.pdf-viewer__title {
	margin: 0 0 var(--space-2);
}

.pdf-viewer__frame {
	display: none;
}

.pdf-viewer__frame iframe {
	display: block;
	width: 100%;
	height: min(85vh, 1000px);
	min-height: 520px;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
}

.pdf-viewer__pages {
	display: grid;
	gap: var(--space-3);
}

.pdf-viewer__pages figure {
	margin: 0;
}

.pdf-viewer__pages img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	cursor: zoom-in;
}

@media (min-width: 900px) {
	.pdf-viewer__frame {
		display: block;
	}

	.pdf-viewer__pages {
		display: none;
	}
}

.pdf-viewer__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: var(--space-3) 0 0;
}

.pdf-viewer__actions .button--outline {
	background: transparent;
	color: var(--color-link);
	border: 2px solid var(--color-link);
}

.pdf-viewer__note {
	margin: var(--space-2) 0 0;
	color: var(--color-muted);
	font-size: var(--fs-sm);
}

/* Previous / next at the foot of a room or team page */
.page-sequence {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--space-3);
	margin-top: var(--space-5);
	padding-top: var(--space-3);
	border-top: 3px solid var(--color-accent);
}

.page-sequence__link {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	min-width: 0;
	padding: var(--space-2);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-sequence__link:hover,
.page-sequence__link:focus-visible {
	border-color: var(--color-link);
	box-shadow: 0 2px 8px color-mix(in srgb, var(--color-shadow) 14%, transparent);
}

.page-sequence__link--next {
	flex-direction: row-reverse;
	text-align: right;
}

.page-sequence__thumb {
	flex: none;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 3px;
}

.page-sequence__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.page-sequence__label {
	color: var(--color-muted);
	font-size: var(--fs-sm);
}

.page-sequence__title {
	color: var(--color-link);
	font-weight: 500;
	line-height: 1.25;
}

.page-sequence__all {
	font-size: var(--fs-sm);
	text-align: center;
}

@media (max-width: 640px) {
	.page-sequence {
		grid-template-columns: 1fr 1fr;
	}

	.page-sequence__all {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.page-sequence__thumb {
		display: none;
	}
}

/* Home page: a full-width cover photo with a white card over its lower edge, updates below */

body {
	overflow-x: clip;
}

.home-cover {
	--home-cover-mask:
		linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 9%, #000 24%),
		radial-gradient(ellipse 58% 68% at 50% 30%, #000 42%, rgba(0, 0, 0, 0.8) 60%, rgba(0, 0, 0, 0.4) 80%, transparent 100%);
	position: relative;
	width: 100vw;
	/* Follows the window's height as well as its width, so on a laptop the quick links show without scrolling. */
	height: clamp(340px, calc(min(44vw, 50vh) + 100px), 960px);
	/* Tucks up under the nav bar, which sits above it. */
	margin: calc(-1 * var(--space-4)) calc(50% - 50vw) 0;
	overflow: hidden;
	background: var(--color-bg);
}

.home-cover__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 3%;
	/* The photo dissolves into the page colour on every side, strongest at the bottom where the card sits. */
	-webkit-mask-image: var(--home-cover-mask);
	mask-image: var(--home-cover-mask);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

.home-cover__badge {
	position: absolute;
	top: calc(var(--space-4) + var(--space-5));
	right: max(var(--gutter), calc(50% - var(--content-max) / 2 + var(--gutter)));
	z-index: 1;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--radius);
	background: color-mix(in srgb, var(--color-surface) 94%, transparent);
	color: var(--color-link);
	font-weight: 500;
	text-decoration: none;
	box-shadow: 0 2px 10px color-mix(in srgb, var(--color-shadow) 25%, transparent);
}

.home-cover__badge:hover,
.home-cover__badge:focus-visible {
	background: var(--color-surface);
	text-decoration: underline;
}

.home-card {
	position: relative;
	z-index: 1;
	margin-bottom: var(--space-4);
}

.home-card--over-cover {
	margin-top: calc(-1 * clamp(110px, 14vw, 190px));
	padding: var(--space-4) var(--space-4) var(--space-4);
}

.home-card__title {
	margin: 0 0 var(--space-2);
	font-size: clamp(1.75rem, 3.4vw, 2.5rem);
	line-height: 1.15;
}

.home-card__lead {
	max-width: none;
	/* Fill the line, and only keep the last line from being a single word. */
	text-wrap: pretty;
	margin: 0 0 var(--space-4);
	color: var(--color-muted);
	font-size: var(--fs-lg);
	line-height: 1.4;
}

.start-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: var(--space-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.start-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2);
	min-height: 2.75rem;
	padding: var(--space-1) var(--space-3);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: var(--color-surface);
	color: var(--color-link);
	font-size: var(--fs-sm);
	font-weight: 500;
	line-height: 1.25;
	text-decoration: none;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.start-links a:hover,
.start-links a:focus-visible {
	border-color: var(--color-link);
	background: var(--color-bg);
}

.start-links__arrow {
	flex: none;
	transition: transform 0.15s ease;
}

.start-links a:hover .start-links__arrow,
.start-links a:focus-visible .start-links__arrow {
	transform: translateX(3px);
}

.home-updates .layout__main > .section:first-child {
	margin-top: 0;
}

@media (max-width: 640px) {
	.home-card--over-cover {
		padding: var(--space-3);
	}

	.home-cover__badge {
		top: calc(var(--space-4) + var(--space-3));
	}
}

@media (prefers-reduced-motion: reduce) {
	.start-links a,
	.start-links__arrow {
		transition: none;
	}
}


/* The right arrow used beside link text; icon-arrow--left turns it round. */
.icon-arrow {
	display: inline-block;
	flex: none;
	width: 1.05em;
	height: 1.05em;
	vertical-align: -0.2em;
	background: currentColor;
	-webkit-mask: var(--icon-arrow) center / contain no-repeat;
	mask: var(--icon-arrow) center / contain no-repeat;
}

.icon-arrow--left {
	transform: scaleX(-1);
}

/* Lead story and a plain list of updates */
.lead-story {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: stretch;
	margin-bottom: 0;
	border: 1px solid var(--color-border);
	border-bottom-color: var(--color-border);
	background: var(--color-surface);
}

.lead-story__body {
	align-self: center;
	padding: var(--space-4);
}

.lead-story__more {
	margin: var(--space-3) 0 0;
}

/* The rest of the updates sit together in a white card, a step down from the lead story. */
.update-card {
	padding: var(--space-1) var(--space-4) var(--space-3);
	border: 1px solid var(--color-border);
	border-top: 0;
	border-bottom: 4px solid var(--color-border-strong);
	background: var(--color-surface);
}

.update-card .update-list__item:last-child {
	border-bottom: 0;
}

.update-card .feature-list__more {
	margin: 0;
	padding-top: var(--space-3);
	border-top: 1px solid var(--color-border);
}

.lead-story--text {
	grid-template-columns: minmax(0, 1fr);
}

.lead-story__media {
	display: block;
	overflow: hidden;
	min-height: 280px;
}

.lead-story__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.lead-story:hover .lead-story__media img {
	transform: scale(1.03);
}

.lead-story__date,
.update-list__meta {
	margin: 0 0 var(--space-1);
	color: var(--color-muted);
	font-size: var(--fs-sm);
}

.lead-story__title {
	margin: 0 0 var(--space-2);
	font-size: clamp(1.3rem, 2.2vw, 1.65rem);
	line-height: 1.2;
}

.lead-story__title a,
.update-list__title a {
	text-decoration: none;
}

.lead-story__title a:hover,
.update-list__title a:hover {
	text-decoration: underline;
}

.lead-story__excerpt {
	margin: 0;
	line-height: 1.5;
}

.update-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.update-list__item {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--space-3);
	padding: var(--space-3) 0;
	border-bottom: 1px solid var(--color-border);
}

/* The whole row is the link: the title's link stretches over it. */
.update-list__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.update-list__text {
	flex: 1;
}

/* The arrow slides in on the right as you move over a row. */
.update-list__arrow {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	color: var(--color-link);
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.update-list__item:hover .update-list__arrow,
.update-list__item:focus-within .update-list__arrow {
	opacity: 1;
	transform: none;
}

.update-list__item:hover .update-list__title a {
	text-decoration: underline;
}

@media (hover: none) {
	/* No hover on touch screens: show the arrow all the time, quietly. */
	.update-list__arrow {
		opacity: 0.55;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.update-list__arrow {
		transition: none;
	}
}

.update-list__thumb {
	flex: none;
	display: block;
	width: 84px;
	height: 84px;
	overflow: hidden;
	border-radius: var(--radius);
}

.update-list__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.update-list__text {
	min-width: 0;
}

.update-list__title {
	margin: 0 0 0.15rem;
	font-size: var(--fs-md);
	line-height: 1.3;
}

.update-list__meta {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.feature-list__more {
	margin: var(--space-3) 0 0;
	font-weight: 500;
}

@media (max-width: 760px) {
	.lead-story {
		grid-template-columns: minmax(0, 1fr);
	}

	.lead-story__media {
		aspect-ratio: 3 / 2;
		min-height: 0;
	}

	.lead-story__body {
		padding: var(--space-3);
	}
}

/* Find us: map beside the address at the foot of the home page */
.find-us {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: 0;
	margin: var(--space-4) 0 0;
	padding: 0;
	overflow: hidden;
}

.find-us__map {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 280px;
	border: 0;
}

.find-us__text {
	align-self: center;
	padding: var(--space-4);
}

.find-us__text .section-label {
	margin-top: 0;
}

.find-us__address {
	margin: 0 0 var(--space-2);
	font-size: var(--fs-lg);
	line-height: 1.35;
}

.find-us__note,
.find-us__phone {
	margin: 0 0 var(--space-2);
	color: var(--color-muted);
}

.find-us__directions {
	margin: var(--space-3) 0 0;
}

@media (max-width: 760px) {
	.find-us {
		grid-template-columns: minmax(0, 1fr);
	}

	.find-us__map {
		min-height: 0;
		height: 240px;
	}

	.find-us__text {
		padding: var(--space-3);
	}
}

/* Directly under a welcome card: the card already supplies the gap above. */
.find-us--tight {
	margin: 0 0 var(--space-4);
}

/* A single map or diagram: always the picture, never the PDF frame. */
.pdf-viewer--image .pdf-viewer__frame {
	display: none;
}

.pdf-viewer--image .pdf-viewer__pages {
	display: grid;
}

.pdf-viewer--image .pdf-viewer__pages img {
	max-width: 760px;
	margin-inline: auto;
}

/* Site-wide alert: a strip across the top of every page, switched on in Visitor Info */
.site-alert {
	padding: var(--space-2) var(--gutter);
	background: var(--color-surface);
	border-bottom: 3px solid var(--color-accent);
	color: var(--color-text);
	font-size: var(--fs-sm);
	text-align: center;
}

.site-alert__inner {
	max-width: var(--content-max);
	margin: 0 auto;
}

.site-alert__inner > :first-child {
	margin-top: 0;
}

.site-alert__inner > :last-child {
	margin-bottom: 0;
}

.site-alert__inner a {
	color: inherit;
	font-weight: 600;
}

.site-alert--closure {
	background: var(--color-accent);
	border-bottom-color: var(--color-shadow);
	color: #fff;
	font-size: var(--fs-md);
	font-weight: 500;
}

body.admin-bar .site-alert {
	margin-top: 0;
}
