/*
Theme Name: ISA Toronto
Description: Classic theme for the ISA Toronto Section in the visual language of isa.org (Montserrat and Open Sans, ISA navy, teal and orange), with the section's history on a time axis drawn to scale, by era. Keeps Canvas's menu locations and widget area IDs so existing menus and widgets carry over.
Version: 3.3.3
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: isa-toronto
*/

/* ---------- Tokens (ISA brand) ---------- */

:root {
	--navy: #003c71;          /* ISA navy */
	--navy-dark: #002b52;
	--teal: #00aab5;          /* ISA teal, for marks and bullets */
	--teal-text: #007c85;     /* teal deep enough for text on white and grey */
	--teal-light: #7fd3d9;    /* teal for text on navy */
	--orange: #e6721e;        /* ISA orange, for marks and large headings */
	--orange-button: #c25713; /* orange deep enough for white button text */
	--ink: #141414;
	--ink-soft: #4d4d4d;
	--nav: #585858;
	--grey: #f4f4f4;
	--grey-bar: #ebebeb;
	--rule: #d6d6d6;
	--utility: #4a6e8f;

	--head: "Montserrat", Arial, "Helvetica Neue", Helvetica, sans-serif;
	--body: "Open Sans", Arial, "Helvetica Neue", Helvetica, sans-serif;

	--wrap: 1080px;
	--side: 24px;
}

/* ---------- Base ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 84px; /* in-page links land below the sticky header */
}

body {
	margin: 0;
	background: #fff;
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.7;
	overflow-x: clip;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--teal-text);
	text-decoration: none;
}

a:hover {
	color: var(--navy);
	text-decoration: underline;
}

:focus-visible {
	outline: 2px solid var(--orange-button);
	outline-offset: 2px;
}

h1, h2, h3, h4 {
	font-family: var(--head);
	font-weight: 600;
	line-height: 1.25;
	color: var(--ink);
	margin: 0 0 0.5em;
}

p, ul, ol, dl, figure, table {
	margin: 0 0 1em;
}

.wrap {
	max-width: calc(var(--wrap) + 2 * var(--side));
	margin: 0 auto;
	padding: 0 var(--side);
}

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

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	z-index: 100;
	top: 8px;
	left: 8px;
	padding: 8px 14px;
	background: #fff;
	color: var(--ink);
}

.muted {
	color: var(--ink-soft);
	font-size: 14px;
}

/* Buttons: square, as on isa.org */
.button,
.search-form__button,
.mc4wp-form input[type="submit"] {
	display: inline-block;
	padding: 12px 20px;
	border: 0;
	border-radius: 0;
	background: var(--navy);
	color: #fff;
	font-family: var(--body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.button:hover,
.search-form__button:hover {
	background: var(--navy-dark);
	color: #fff;
	text-decoration: none;
}

.button--orange,
.mc4wp-form input[type="submit"] {
	background: var(--orange-button);
}

.button--orange:hover,
.mc4wp-form input[type="submit"]:hover {
	background: #a3480f;
}

.button--ghost {
	background: transparent;
	box-shadow: inset 0 0 0 2px #fff;
}

.button--ghost:hover {
	background: #fff;
	color: var(--navy);
}

.button--arrow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}

.button--arrow::after {
	content: "\2192";
}

input[type="search"],
input[type="email"],
input[type="text"] {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #9a9a9a;
	border-radius: 0;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 15px;
}

input[type="search"]:focus,
input[type="email"]:focus,
input[type="text"]:focus {
	border-color: var(--navy);
	outline: 2px solid var(--teal);
	outline-offset: 0;
}

/* Section headings: an orange line and dot run in from the left edge */
.section-title {
	position: relative;
	font-size: 28px;
	margin: 0 0 24px;
}

.section-title::before {
	content: "";
	position: absolute;
	top: 50%;
	right: calc(100% + 18px);
	width: 100vw;
	height: 2px;
	background: var(--orange);
}

.section-title::after {
	content: "";
	position: absolute;
	top: calc(50% - 4px);
	right: calc(100% + 14px);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--orange);
}

.orange-title {
	color: var(--orange);
	font-size: 24px;
	margin: 0 0 16px;
}

.section {
	padding: 56px 0 8px;
}

.section__more {
	margin-top: 8px;
	font-weight: 600;
}

/* ---------- Header ---------- */

.topbar {
	background: var(--grey-bar);
	font-size: 14px;
}

.topbar__inner {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.topbar__links {
	display: flex;
	flex-wrap: nowrap;
	gap: 0 18px;
	height: 44px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
}

.topbar__links a {
	color: var(--utility);
}

.notice-line {
	margin: 0;
	background: var(--orange-button);
	color: #fff;
	font-size: 15px;
	padding: 10px 0;
}

/* The whole header sticks, offset by the utility bar so only the white bar stays */
.site-header {
	position: sticky;
	top: -44px;
	z-index: 40;
}

.admin-bar .site-header {
	top: -12px;
}

.masthead {
	background: #fff;
	border-bottom: 1px solid var(--rule);
	transition: box-shadow 0.25s ease;
}

.masthead.is-stuck {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}



.masthead__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 84px;
	transition: min-height 0.25s ease;
}

.is-stuck .masthead__inner {
	min-height: 64px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-right: auto;
	text-decoration: none;
}

.brand:hover {
	text-decoration: none;
}

.brand__mark {
	transition: width 0.25s ease;
	width: 60px;
	margin: -4px -4px -4px -6px; /* the logo file has padding around the mark */
	mix-blend-mode: multiply;
}

.brand__name {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.brand__section {
	font-family: var(--head);
	font-size: 22px;
	font-weight: 700;
	color: var(--navy);
}

.brand__society {
	font-family: var(--head);
	font-size: 12px;
	font-weight: 600;
	color: var(--navy);
	opacity: 0.85;
}

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

.primary-nav .menu,
.primary-nav > div > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 4px;
}

.primary-nav li {
	position: relative;
}

.primary-nav a {
	position: relative;
	display: block;
	transition: padding 0.25s ease, color 0.15s ease;
	padding: 28px 10px;
	color: var(--nav);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav .current-menu-ancestor > a {
	color: var(--navy);
}

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

/* hover: an orange bar slides in under the item */
.primary-nav .menu > li > a::before {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 0;
	height: 3px;
	background: var(--orange);
	transform: scaleX(0);
	transition: transform 0.2s ease;
}

.primary-nav .menu > li > a:hover::before {
	transform: scaleX(1);
}

.is-stuck .brand__mark {
	width: 48px;
}

.is-stuck .primary-nav a {
	padding-top: 20px;
	padding-bottom: 20px;
}

.primary-nav .menu-item-has-children > a::after,
.primary-nav .page_item_has_children > a::after {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	margin: 0 0 3px 8px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}

.primary-nav .sub-menu,
.primary-nav .children {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 30;
	min-width: 240px;
	padding: 8px 0;
	background: #fff;
	border-top: 3px solid var(--navy);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
	display: none;
}

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.primary-nav li:hover > .children,
.primary-nav li:focus-within > .children {
	display: block;
}

.primary-nav .sub-menu a,
.primary-nav .children a {
	padding: 8px 18px;
	font-size: 14.5px;
	box-shadow: none !important;
}

.nav-toggle {
	display: none;
}

/* Round search button that opens a field */
.header-search {
	position: relative;
}

.header-search summary {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--rule);
	border-radius: 50%;
	color: var(--nav);
	cursor: pointer;
	list-style: none;
}

.header-search summary::-webkit-details-marker {
	display: none;
}

.header-search summary:hover,
.header-search[open] summary {
	border-color: var(--navy);
	color: var(--navy);
}

.header-search__panel {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	z-index: 30;
	width: 340px;
	padding: 14px;
	background: #fff;
	border-top: 3px solid var(--navy);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.search-form {
	display: flex;
}

.search-form__input {
	border-right: 0;
}

.search-form__button {
	height: 44px;
	padding: 0 16px;
}

/* ---------- Homepage: hero ---------- */

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	max-width: calc(var(--wrap) + 2 * var(--side));
	margin: 32px auto 0;
	padding: 0 var(--side);
}

.hero__text {
	background: var(--navy);
	color: #fff;
	padding: 48px 44px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero__kicker {
	margin: 0 0 10px;
	color: var(--teal-light);
	font-size: 14px;
	font-weight: 600;
}

.hero__title {
	color: #fff;
	font-size: 34px;
	margin: 0 0 16px;
}

.hero__lede {
	font-size: 17px;
	line-height: 1.65;
	margin: 0 0 26px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
}

.hero__media {
	position: relative;
	margin: 0;
	background: var(--navy);
}

.hero__media {
	overflow: hidden;
}

.hero__media img {
	width: 100%;
	height: 100%;
	min-height: 360px;
	object-fit: cover;
	object-position: 50% 40%;
}

.js .hero__media img {
	animation: isa-settle 1.6s ease-out both;
}

.js .hero__text > * {
	animation: isa-rise 0.7s ease-out both;
}

.js .hero__text > :nth-child(2) { animation-delay: 0.08s; }
.js .hero__text > :nth-child(3) { animation-delay: 0.16s; }
.js .hero__text > :nth-child(4) { animation-delay: 0.24s; }

@keyframes isa-settle {
	from { transform: scale(1.06); }
	to { transform: none; }
}

@keyframes isa-rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

.hero__media figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 10px 14px;
	background: rgba(0, 43, 82, 0.86);
	color: #fff;
	font-size: 12.5px;
	line-height: 1.45;
}

/* ---------- At a glance ---------- */

.facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--rule);
}

.fact {
	padding: 22px 20px 20px;
	border-left: 1px solid var(--rule);
}

.fact:first-child {
	border-left: 0;
	padding-left: 0;
}

.fact__num {
	display: block;
	color: var(--navy);
	font-family: var(--head);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.fact__label {
	display: block;
	margin-top: 2px;
	color: var(--ink-soft);
	font-size: 14px;
	font-weight: 600;
}

/* ---------- Upcoming events panel ---------- */

.panel {
	background: var(--grey);
	padding: 32px 36px 24px;
}

.events {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 20px 48px;
}

.event__title {
	color: var(--teal-text);
	font-size: 19px;
	margin: 0 0 6px;
}

.event__when {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 8px;
}

.event__who {
	font-size: 14.5px;
	margin: 0 0 8px;
}

.event p {
	font-size: 15px;
}

.panel__more {
	grid-column: 1 / -1;
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid var(--rule);
	text-align: center;
	font-weight: 600;
}

/* Mailchimp sign-up, wherever it appears */
.widget_mc4wp_form_widget .widget-title {
	font-family: var(--head);
	font-size: 19px;
	font-weight: 600;
	color: var(--teal-text);
	margin: 0 0 12px;
}

.mc4wp-form-fields {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
}

.mc4wp-form-fields p {
	margin: 0;
}

.mc4wp-form-fields p:first-child {
	flex: 1 1 220px;
}

.mc4wp-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 600;
}

.mc4wp-form input[type="submit"] {
	height: 44px;
	padding: 0 24px;
	font-size: 15px;
}

.mc4wp-response:not(:empty) {
	margin-top: 10px;
	padding: 10px 12px;
	background: #fff;
	border-left: 4px solid var(--teal);
	font-size: 14.5px;
}

.mc4wp-error .mc4wp-response,
.mc4wp-response .mc4wp-error {
	border-left-color: var(--orange-button);
}

/* ---------- Cards ---------- */

.cards {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.card {
	display: flex;
	flex-direction: column;
}

.card__media {
	overflow: hidden;
	margin-bottom: 16px;
}

.card__img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.card:hover .card__img {
	transform: scale(1.05);
}

.button--arrow::after {
	transition: transform 0.2s ease;
}

.button--arrow:hover::after,
.card:hover .button--arrow::after {
	transform: translateX(4px);
}

.card__title {
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 10px;
}

.card__text {
	flex: 1;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--ink);
	margin-bottom: 18px;
}

.card__button {
	font-size: 14px;
}

/* ---------- Timeline: a time axis drawn to scale, then the eras ---------- */

.timeline {
	margin-top: 56px;
	padding: 56px 0 52px;
	background: var(--grey);
}

.timeline__intro {
	max-width: 46em;
	margin: -8px 0 0;
	color: var(--ink-soft);
	font-size: 15.5px;
}

.era-1 { --era: var(--navy); }
.era-2 { --era: var(--teal-text); }
.era-3 { --era: #4a6e8f; }
.era-4 { --era: var(--orange-button); }

.axis {
	margin: 34px 0 40px;
}

.axis__line {
	position: relative;
	height: 28px;
}

.axis__line::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 13px;
	height: 2px;
	background: #cfcfcf;
}

.axis__era {
	position: absolute;
	top: 11px;
	height: 6px;
	border-radius: 3px;
	background: var(--era);
}

.axis__dot {
	position: absolute;
	top: 7px;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border: 3px solid var(--era);
	border-radius: 50%;
	background: #fff;
}

.axis__dot:hover {
	transform: scale(1.3);
}

.axis__dot.is-key {
	top: 4px;
	width: 20px;
	height: 20px;
	margin-left: -10px;
	border-color: var(--orange-button);
	background: var(--orange-button);
	box-shadow: 0 0 0 3px #fff;
}

.axis__ticks {
	position: relative;
	height: 22px;
	margin-top: 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: #6b6b6b;
	font-variant-numeric: tabular-nums;
}

.axis__ticks span {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
}

.axis__ticks .axis__start {
	left: 0;
	transform: none;
	color: var(--ink);
}

.axis__ticks .axis__end {
	right: 0;
	transform: none;
	color: var(--ink);
}

.eras {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
}

.era {
	padding-top: 14px;
	border-top: 4px solid var(--era);
}

.era__name {
	margin: 0 0 6px;
	color: var(--era);
	font-size: 19px;
	font-weight: 700;
}

.era__span {
	display: block;
	margin-top: 2px;
	color: #6b6b6b;
	font-size: 13px;
	font-weight: 600;
}

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

.milestone {
	padding: 16px 0;
	border-bottom: 1px solid var(--rule);
}

.milestone:last-child {
	border-bottom: 0;
}

.milestone__year {
	margin: 0 0 6px;
	color: var(--era);
	font-family: var(--head);
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.milestone__label {
	margin: 0 0 4px;
	color: var(--orange-button);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.milestone.is-key .milestone__year {
	color: var(--orange-button);
}

.milestone__title {
	margin: 0 0 4px;
	color: var(--ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.milestone__text {
	margin: 0;
	color: #333;
	font-size: 15px;
	line-height: 1.6;
}

.milestone:target {
	background: #fff;
	box-shadow: -10px 0 0 #fff, 10px 0 0 #fff;
}

/* ---------- Membership ---------- */

.band {
	background: var(--grey);
	margin-top: 56px;
	padding: 48px 0;
}

.timeline + .band {
	margin-top: 0;
	background: #fff;
}

.membership {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 44px;
	align-items: start;
}

.navy-panel,
.navy-box {
	background: var(--navy);
	color: #fff;
	padding: 32px;
}

.navy-panel h2,
.navy-box h3 {
	color: #fff;
}

.navy-panel h2 {
	font-size: 26px;
	margin-bottom: 18px;
}

.navy-panel__sub {
	margin: 0 0 4px;
	color: var(--teal-light);
	font-family: var(--head);
	font-size: 20px;
	font-weight: 600;
}

.navy-panel__note {
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.85);
}

.navy-panel a:not(.button),
.navy-box a:not(.button) {
	color: var(--teal-light);
}

.benefits {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 32px;
	margin: 0 0 18px;
}

.benefits dt {
	color: var(--teal-text);
	font-family: var(--head);
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 2px;
}

.benefits dd {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
}

/* ---------- Meeting record ---------- */

.record {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 48px;
}

.record__item {
	padding: 16px 0;
	border-bottom: 1px solid var(--rule);
}

/* ---------- Who runs the section ---------- */

.people__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 44px;
	align-items: start;
}

.exec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	margin-bottom: 10px;
}

.exec-table th,
.exec-table td {
	padding: 9px 0;
	border-bottom: 1px solid var(--rule);
	text-align: left;
	vertical-align: top;
}

.exec-table th {
	width: 42%;
	font-weight: 400;
	color: var(--ink-soft);
}

.exec-table td {
	font-weight: 700;
}

.people__cert {
	max-width: 320px;
	margin: 28px 0 0;
}

.people__cert img {
	border: 1px solid var(--rule);
}

.people__cert figcaption {
	margin-top: 8px;
	font-size: 13px;
	color: var(--ink-soft);
}

.grey-box {
	background: var(--grey);
	padding: 28px 30px;
}

.grey-box h3,
.navy-box h3 {
	font-size: 20px;
	margin: 0 0 14px;
}

.presidents {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 2;
	column-gap: 24px;
	font-size: 14px;
}

.presidents li {
	padding: 3px 0;
	break-inside: avoid;
}

.presidents__years {
	display: inline-block;
	min-width: 68px;
	color: var(--ink-soft);
	font-variant-numeric: tabular-nums;
}

/* ---------- Resources ---------- */

.resources {
	padding-bottom: 64px;
}

.resources__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	align-items: start;
}

.dot-list {
	margin: 0;
	padding-left: 18px;
	font-size: 15px;
	font-weight: 600;
}

.dot-list li {
	padding: 3px 0;
}

.dot-list li::marker {
	color: var(--teal);
}

.navy-box p {
	font-size: 15px;
}

.sponsors__logos img {
	max-height: 64px;
	width: auto;
	display: inline-block;
	margin: 0 16px 16px 0;
	background: #fff;
	padding: 6px;
}

/* ---------- Inner pages ---------- */

.page-hero {
	background: var(--navy);
	color: #fff;
	padding: 40px 0 44px;
}

.page-hero__crumb {
	margin: 0 0 8px;
	font-size: 14px;
}

.page-hero__crumb a {
	color: #fff;
}

.page-hero h1 {
	color: #fff;
	font-size: 34px;
	margin: 0;
}

.subnav {
	border-bottom: 1px solid var(--rule);
}

.subnav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0;
	padding: 14px 0;
	list-style: none;
}

.subnav li {
	font-size: 15px;
}

.subnav li + li::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 14px 2px;
	border-radius: 50%;
	background: #bdbdbd;
}

.subnav .is-current a {
	color: var(--ink);
	font-weight: 700;
}

.page-layout {
	display: grid;
	grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
	gap: 48px;
	padding-top: 40px;
	padding-bottom: 72px;
}

.entry-content {
	max-width: 44em;
}

.entry-content h2 {
	color: var(--orange);
	font-size: 26px;
	margin-top: 1.4em;
}

.entry-content h3 {
	font-size: 20px;
	margin-top: 1.4em;
}

.entry-content h4 {
	font-size: 17px;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.3em;
}

.entry-content li {
	margin-bottom: 0.35em;
}

.entry-content li::marker {
	color: var(--teal);
}

.entry-content img {
	margin: 8px 0;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.entry-content th,
.entry-content td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid var(--rule);
}

.entry-content blockquote {
	margin: 1.5em 0;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--teal);
	font-size: 18px;
}

.alignleft {
	float: left;
	margin: 6px 24px 12px 0;
}

.alignright {
	float: right;
	margin: 6px 0 12px 24px;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text,
.wp-element-caption {
	font-size: 13.5px;
	color: var(--ink-soft);
}

.entry-meta {
	font-size: 14px;
	color: var(--ink-soft);
}

.page-aside > * + * {
	margin-top: 24px;
}

.page-aside .widget {
	background: var(--grey);
	padding: 24px 26px;
}

.page-aside .widget-title {
	font-family: var(--head);
	font-size: 19px;
	font-weight: 600;
	color: var(--navy);
	margin: 0 0 12px;
}

.page-aside .navy-box h3 {
	font-size: 19px;
}

/* Search results: clearly links */
.results-count {
	color: var(--ink-soft);
	font-size: 15px;
}

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

.results li {
	padding: 20px 0;
	border-bottom: 1px solid var(--rule);
}

.results h2 {
	font-size: 20px;
	margin: 0 0 4px;
}

.results h2 a {
	color: var(--teal-text);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.results h2 a:hover {
	color: var(--navy);
	text-decoration-thickness: 2px;
}

.results__url {
	margin: 0 0 6px;
	font-size: 13.5px;
	color: #3d6b3a;
	word-break: break-all;
}

.results__excerpt p {
	margin: 0 0 8px;
	font-size: 15px;
}

.results__more {
	font-size: 14.5px;
	font-weight: 600;
}

.results__more::after {
	content: " \2192";
}

.nav-links {
	display: flex;
	gap: 16px;
	padding-top: 24px;
	font-weight: 600;
}

/* ---------- All-in-One Event Calendar (Past Events, Calendar, events) ----------
   The plugin's own scripts and layout don't run on this site, so its agenda is
   restyled here, and its script-only controls hidden. */

.ai1ec-calendar-toolbar,
.ai1ec-views-dropdown,
.ai1ec-agenda-buttons,
.ai1ec-prev-page,
.ai1ec-next-page,
.ai1ec-loading,
.ai1ec-event-toggle,
.ai1ec-sas-actions,
.ai1ec-calendar-title-short,
.ai1ec-fa {
	display: none !important;
}

.ai1ec-title-buttons {
	margin: 0 0 6px;
}

.entry-content .ai1ec-minical-trigger {
	pointer-events: none;
	color: var(--ink-soft);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
}

.ai1ec-agenda-view {
	border-top: 2px solid var(--navy);
}

.ai1ec-date {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 22px;
	padding: 18px 0;
	border-bottom: 1px solid var(--rule);
}

.entry-content .ai1ec-date-title {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas: "day month" "day weekday" "year year";
	column-gap: 8px;
	align-content: start;
	color: var(--ink-soft);
	text-decoration: none;
	pointer-events: none;
	line-height: 1.2;
}

.ai1ec-day {
	grid-area: day;
	font-family: var(--head);
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
	color: var(--navy);
}

.ai1ec-month {
	grid-area: month;
	align-self: end;
	font-weight: 700;
	color: var(--ink);
}

.ai1ec-weekday {
	grid-area: weekday;
	font-size: 13px;
}

.ai1ec-year {
	grid-area: year;
	margin-top: 6px;
	font-size: 13px;
}

.ai1ec-event + .ai1ec-event {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px dashed var(--rule);
}

.ai1ec-event-title {
	display: block;
	font-family: var(--head);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--teal-text);
}

.ai1ec-event-location {
	display: block;
	margin-top: 2px;
	font-family: var(--body);
	font-size: 14px;
	font-weight: 400;
	color: var(--ink-soft);
}

.ai1ec-event-time {
	margin: 6px 0 8px;
	font-size: 14px;
	font-weight: 700;
}

.ai1ec-allday-badge {
	margin-left: 6px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--orange-button);
}

.ai1ec-event-description {
	font-size: 15px;
}

.ai1ec-event-description::after {
	content: "";
	display: block;
	clear: both;
}

.ai1ec-event-description p {
	margin: 0 0 8px;
}

.ai1ec-event-description h4 {
	font-size: 16px;
	margin: 0 0 8px;
}

.ai1ec-event-description img,
.ai1ec-event-avatar img {
	float: right;
	max-width: 96px;
	height: auto;
	margin: 0 0 10px 20px;
	border: 1px solid var(--rule);
}

.ai1ec-read-more {
	font-size: 14.5px;
	font-weight: 600;
}

.ai1ec-read-more::after {
	content: " \2192";
}

/* Single event pages */
.ai1ec-single-event .ai1ec-hidden,
.ai1ec-single-event .ai1ec-event-footer:empty {
	display: none;
}

.ai1ec-single-event .ai1ec-actions {
	margin: 0 0 18px;
}

.entry-content .ai1ec-calendar-link {
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
}

.entry-content .ai1ec-calendar-link::before {
	content: "\2190\00a0";
}

.ai1ec-calendar-link .ai1ec-hidden-xs::after {
	content: ": upcoming and recent meetings";
	font-weight: 400;
	color: var(--ink-soft);
}

.ai1ec-event-details {
	margin: 0 0 24px;
	padding: 8px 26px;
	background: var(--grey);
	border-left: 4px solid var(--navy);
}

.ai1ec-event-details .ai1ec-row {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr);
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--rule);
}

.ai1ec-event-details .ai1ec-row:last-child {
	border-bottom: 0;
}

.ai1ec-field-label {
	color: var(--navy);
	font-family: var(--head);
	font-size: 14px;
	font-weight: 700;
}

.ai1ec-field-value {
	font-size: 15.5px;
}

.ai1ec-contact .h-card > div + div {
	margin-top: 2px;
}

@media (max-width: 560px) {
	.ai1ec-event-details .ai1ec-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}
}

.section-title--spaced {
	margin-top: 48px;
}

.record--single {
	grid-template-columns: minmax(0, 1fr);
}

.entry-content .section-title {
	color: var(--ink);
}

.entry-content .event__title,
.entry-content .panel a {
	text-decoration: none;
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--navy);
	color: #fff;
	font-size: 13.5px;
	margin-top: 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr));
	gap: 36px;
	padding: 44px 0 30px;
}

.footer-id__name {
	font-weight: 700;
	margin-bottom: 6px;
}

.site-footer h2 {
	font-family: var(--body);
	font-size: 13.5px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 8px;
}

.site-footer address {
	font-style: normal;
	line-height: 1.6;
}

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

.footer-list li {
	padding: 2px 0;
}

.site-footer a {
	color: #fff;
}

.site-footer a:hover {
	color: var(--teal-light);
}

.colophon {
	margin: 0;
	padding: 14px 0 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.8);
}

/* ---------- Motion: reveal once on scroll (only when the script runs) ---------- */

.has-reveal .reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.6s ease var(--d, 0ms), transform 0.6s ease var(--d, 0ms);
}

.has-reveal .reveal.is-in {
	opacity: 1;
	transform: none;
}

/* the heading line draws in toward the heading, then the dot appears */
.has-reveal .section-title.reveal {
	opacity: 1;
	transform: none;
}

.has-reveal .section-title.reveal::before {
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 0.8s ease;
}

.has-reveal .section-title.reveal::after {
	transform: scale(0);
	transition: transform 0.3s ease 0.6s;
}

.has-reveal .section-title.reveal.is-in::before,
.has-reveal .section-title.reveal.is-in::after {
	transform: none;
}

/* timeline axis: the era bars sweep across, then the dots pop in */
.has-reveal .axis.reveal {
	opacity: 1;
	transform: none;
}

.has-reveal .axis.reveal .axis__era {
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.7s ease;
}

.has-reveal .axis.reveal .axis__era.era-2 { transition-delay: 0.25s; }
.has-reveal .axis.reveal .axis__era.era-3 { transition-delay: 0.5s; }
.has-reveal .axis.reveal .axis__era.era-4 { transition-delay: 0.75s; }

.has-reveal .axis.reveal .axis__dot {
	opacity: 0;
	transition: opacity 0.3s ease 0.9s, transform 0.2s ease;
}

.has-reveal .axis.reveal.is-in .axis__era {
	transform: none;
}

.has-reveal .axis.reveal.is-in .axis__dot {
	opacity: 1;
}

/* timeline links between entries and dots */
.axis__dot {
	transition: transform 0.2s ease;
}

.axis__dot.is-active {
	transform: scale(1.45);
	z-index: 2;
}

.milestone {
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.milestone.is-active {
	background: #fff;
	box-shadow: -10px 0 0 #fff, 10px 0 0 #fff;
}

/* back to top, and the reading progress bar on long pages */
.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	background: var(--navy);
	color: #fff;
	font-size: 20px;
	text-decoration: none;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.15s ease;
}

.to-top.is-shown {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.to-top:hover {
	background: var(--orange-button);
	color: #fff;
	text-decoration: none;
}

.progress {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	z-index: 60;
	height: 3px;
	background: var(--orange);
	transform: scaleX(0);
	transform-origin: left center;
}

.admin-bar .progress {
	top: 32px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.eras {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 28px;
	}

	.cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-grid {
		grid-template-columns: 1fr 1fr;
	}

	.primary-nav a {
		padding-left: 7px;
		padding-right: 7px;
		font-size: 14.5px;
	}
}

@media (max-width: 900px) {
	:root {
		--side: 16px;
	}

	.section {
		padding-top: 40px;
	}

	.section-title {
		font-size: 24px;
		margin-left: 18px;
	}

	.masthead__inner {
		flex-wrap: wrap;
		gap: 12px;
		min-height: 0;
		padding-top: 12px;
		padding-bottom: 12px;
	}

	.primary-nav {
		order: 3;
		width: 100%;
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: 10px;
		padding: 10px 14px;
		border: 1px solid var(--rule);
		background: #fff;
		color: var(--navy);
		font: inherit;
		font-weight: 600;
		cursor: pointer;
	}

	.nav-toggle__bars,
	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		display: block;
		width: 18px;
		height: 2px;
		background: currentColor;
	}

	.nav-toggle__bars {
		position: relative;
	}

	.nav-toggle__bars::before,
	.nav-toggle__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.nav-toggle__bars::before {
		top: -6px;
	}

	.nav-toggle__bars::after {
		top: 6px;
	}

	.primary-nav .menu,
	.primary-nav > div > ul {
		display: none;
		flex-direction: column;
		margin-top: 10px;
		border-top: 1px solid var(--rule);
	}

	.primary-nav.is-open .menu,
	.primary-nav.is-open > div > ul {
		display: flex;
	}

	.primary-nav a {
		padding: 12px 0;
		border-bottom: 1px solid var(--rule);
	}

	.primary-nav .current-menu-item > a,
	.primary-nav .current_page_item > a {
		box-shadow: inset 4px 0 0 var(--orange);
		padding-left: 12px;
	}

	.primary-nav .sub-menu,
	.primary-nav .children {
		position: static;
		display: block;
		box-shadow: none;
		border: 0;
		padding: 0 0 0 16px;
		min-width: 0;
	}

	.header-search__panel {
		width: min(340px, calc(100vw - 32px));
	}

	.hero {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 0;
		padding: 0;
	}

	.hero__text {
		padding: 32px var(--side) 32px;
	}

	.hero__title {
		font-size: 28px;
	}

	.hero__media img {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fact:nth-child(3) {
		border-left: 0;
		padding-left: 0;
	}

	.fact:nth-child(n + 3) {
		border-top: 1px solid var(--rule);
	}

	.site-header {
		position: static;
	}

	.events,
	.membership,
	.people__grid,
	.record,
	.page-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.panel {
		padding: 24px 20px 18px;
	}

	.timeline {
		padding: 40px 0 32px;
	}

	.eras {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px 28px;
	}

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

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

	.page-hero {
		padding: 28px 0 30px;
	}

	.page-hero h1 {
		font-size: 28px;
	}
}

@media (max-width: 560px) {
	.topbar__links--right {
		display: none;
	}

	.brand__mark {
		width: 50px;
	}

	.brand__section {
		font-size: 19px;
	}

	.brand__society {
		font-size: 11px;
	}

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

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

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

	.axis__ticks .is-minor,
	.axis__ticks .axis__tick:nth-child(3) {
		display: none;
	}

	.axis__dot {
		top: 9px;
		width: 10px;
		height: 10px;
		margin-left: -5px;
		border-width: 2px;
	}

	.axis__dot.is-key {
		top: 7px;
		width: 14px;
		height: 14px;
		margin-left: -7px;
		box-shadow: 0 0 0 2px #fff;
	}

	.presidents {
		columns: 1;
	}

	.ai1ec-date {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}

	.entry-content .ai1ec-date-title {
		grid-template-columns: auto auto auto 1fr;
		grid-template-areas: "day month weekday year";
		align-items: baseline;
	}

	.ai1ec-year {
		margin: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.topbar,
	.primary-nav,
	.header-search,
	.page-aside,
	.site-footer {
		display: none;
	}
}
