/* -----------------------------------------------------------------------
   History of the Society

   The page is built from native Beaver Builder Heading and Text Editor
   modules, so every selector below targets a module element directly.
   Two consequences worth remembering:

   1. Text Editor and Heading modules render with include_wrapper: false.
      The custom class lands ON the <h2> or on the .fl-rich-text div, not
      on a wrapper around it. There is no .fl-module-content to target.

   2. The theme hangs a clearfix ::before/::after on every .fl-module, so
      any pseudo-element on a module needs .fl-builder-content and .fl-module
      in the selector, and has to re-declare content/display/clear.

   The rows carry .wyohs-history, which is what scopes all of this. The
   milestone rail is still an HTML module.

   Sizes are px. The theme sets html{font-size:62.5%}, so rem is a trap.
   ----------------------------------------------------------------------- */

.wyohs-history {
	--measure: 680px;
}

/* Columns lay their modules out as flex items, so a module with auto side
   margins shrink-wraps to its text instead of filling the measure. Width
   100% puts it back, and the auto margins still centre it. Without this the
   hairline under a short chapter head stops at the end of the words. */

.wyohs-history .wyohs-history__lede,
.wyohs-history .wyohs-history__eyebrow,
.wyohs-history .wyohs-history__head,
.wyohs-history .wyohs-history__body,
.wyohs-history .wyohs-history__quote,
.wyohs-history .wyohs-history__attrib,
.wyohs-history .wyohs-history__next-sub,
.wyohs-history .wyohs-history__panel {
	width: 100%;
}

/* Lede ----------------------------------------------------------------- */

.wyohs-history .wyohs-history__lede {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.wyohs-history .wyohs-history__lede p {
	font-family: var(--wyohs-body, 'Special Gothic', sans-serif);
	font-size: 21px;
	line-height: 1.6;
	color: var(--wyohs-ink, #1a1a1a);
	margin: 0;
}

/* The sand rule under the lede is a native Separator module. */

.wyohs-history .wyohs-history__rule {
	max-width: 64px;
	margin: 38px auto 0;
}

.wyohs-history .wyohs-history__rule .fl-separator {
	border-top: 2px solid var(--wyohs-sand, #d2a56c);
	margin: 0;
}

/* Chapters ------------------------------------------------------------- */

.wyohs-history .wyohs-history__eyebrow {
	max-width: var(--measure);
	margin: 0 auto 8px;
}

.wyohs-history .wyohs-history__eyebrow p {
	font-family: var(--wyohs-display, 'Special Gothic Condensed One', sans-serif);
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--wyohs-green, #4e9553);
	margin: 0;
}

/* Second and later chapters in a row get air above them. */

.wyohs-history .wyohs-history__eyebrow--gap {
	margin-top: 56px;
}

.wyohs-history .wyohs-history__head {
	max-width: var(--measure);
	margin: 0 auto 6px;
	font-family: var(--wyohs-serif, 'Young Serif', Georgia, serif);
	font-weight: 400;
	font-size: 34px;
	line-height: 1.18;
	letter-spacing: normal;
	text-transform: none;
	color: var(--wyohs-ink, #1a1a1a);
}

.fl-builder-content .wyohs-history .wyohs-history__head.fl-module::after {
	content: '';
	display: block;
	clear: none;
	width: 100%;
	height: 1px;
	background: rgba(26, 26, 26, .18);
	margin-top: 18px;
}

.wyohs-history .wyohs-history__body {
	max-width: var(--measure);
	margin: 20px auto 0;
}

.wyohs-history .wyohs-history__body p {
	font-family: var(--wyohs-body, 'Special Gothic', sans-serif);
	font-size: 17px;
	line-height: 1.65;
	color: var(--wyohs-ink, #1a1a1a);
	margin: 0 0 18px;
	text-align: left;
}

.wyohs-history .wyohs-history__body p:last-child {
	margin-bottom: 0;
}

.wyohs-history .wyohs-history__body em,
.wyohs-history .wyohs-history__body i,
.wyohs-history .wyohs-history__body cite {
	font-style: italic;
}

/* Charter quote -------------------------------------------------------- */

.wyohs-history .wyohs-history__quote {
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.wyohs-history .wyohs-history__quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	quotes: none;
	font-family: var(--wyohs-serif, 'Young Serif', Georgia, serif);
	font-weight: 400;
	font-size: 30px;
	line-height: 1.42;
	color: var(--wyohs-cream, #fff8e7);
}

/* The opening mark is drawn rather than typed, so an editor never has to
   keep a loose quotation mark in the copy. The blockquote is inside the
   module, not on it, so the theme clearfix does not reach this one. */

.wyohs-history .wyohs-history__quote blockquote::before {
	content: '“';
	display: block;
	font-size: 64px;
	line-height: .6;
	color: var(--wyohs-sand, #d2a56c);
	margin-bottom: 26px;
}

.wyohs-history .wyohs-history__quote blockquote p {
	margin: 0;
	font: inherit;
	color: inherit;
}

.wyohs-history .wyohs-history__attrib {
	text-align: center;
	margin: 30px auto 0;
}

.wyohs-history .wyohs-history__attrib p {
	font-family: var(--wyohs-display, 'Special Gothic Condensed One', sans-serif);
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--wyohs-sand, #d2a56c);
	margin: 0;
}

/* Milestone rail (still an HTML module) -------------------------------- */

.wyohs-history .wyohs-history__rail-module {
	margin-top: 56px;
}

.wyohs-history__rail {
	display: flex;
	flex-wrap: wrap;
	max-width: 1000px;
	margin: 0 auto;
	border-top: 1px solid rgba(26, 26, 26, .16);
	border-bottom: 1px solid rgba(26, 26, 26, .16);
}

.wyohs-history__milestone {
	flex: 1 1 160px;
	padding: 26px 18px;
	text-align: center;
	border-left: 1px solid rgba(26, 26, 26, .10);
}

.wyohs-history__milestone:first-child {
	border-left: 0;
}

.wyohs-history__year {
	font-family: var(--wyohs-serif, 'Young Serif', Georgia, serif);
	font-size: 30px;
	line-height: 1;
	color: var(--wyohs-navy, #1b3a5c);
	margin: 0 0 10px;
}

.wyohs-history__milestone p:last-child {
	font-family: var(--wyohs-display, 'Special Gothic Condensed One', sans-serif);
	font-size: 14px;
	line-height: 1.45;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	color: #5c5c5c;
	margin: 0;
}

/* Records panel -------------------------------------------------------- */

.wyohs-history .wyohs-history__panel {
	background: var(--wyohs-peach, #f6d7b3);
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
	padding: 44px 48px;
	text-align: left;
}

.fl-builder-content .wyohs-history .wyohs-history__panel.fl-module::before {
	display: none;
}

.wyohs-history .wyohs-history__panel-head {
	font-family: var(--wyohs-serif, 'Young Serif', Georgia, serif);
	font-weight: 400;
	font-size: 28px;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	color: var(--wyohs-ink, #1a1a1a);
	margin: 0 0 18px;
}

.wyohs-history .wyohs-history__panel-body p {
	font-family: var(--wyohs-body, 'Special Gothic', sans-serif);
	font-size: 16px;
	line-height: 1.65;
	color: var(--wyohs-ink, #1a1a1a);
	margin: 0 0 16px;
}

.wyohs-history .wyohs-history__panel-body p:last-child {
	margin-bottom: 0;
}

.wyohs-history .wyohs-history__meta-module {
	margin-top: 28px;
}

.wyohs-history__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 34px;
	padding-top: 22px;
	border-top: 2px solid rgba(26, 26, 26, .22);
}

.wyohs-history__label {
	font-family: var(--wyohs-display, 'Special Gothic Condensed One', sans-serif);
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: #6a5842;
	margin: 0 0 4px;
}

.wyohs-history__value {
	font-family: 'Special Elite', Courier, monospace;
	font-size: 17px;
	line-height: 1.5;
	color: var(--wyohs-ink, #1a1a1a);
	margin: 0;
}

.wyohs-history__value a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid var(--wyohs-sand, #d2a56c);
}

/* Inline links inside prose ------------------------------------------- */

.wyohs-history .wyohs-history__body a,
.wyohs-history .wyohs-history__panel-body a,
.wyohs-history .wyohs-history__lede a {
	color: var(--wyohs-navy, #1b3a5c);
	text-decoration: none;
	border-bottom: 1px solid var(--wyohs-sand, #d2a56c);
	transition: background-color .15s ease;
}

.wyohs-history .wyohs-history__body a:hover,
.wyohs-history .wyohs-history__panel-body a:hover,
.wyohs-history .wyohs-history__lede a:hover {
	background: rgba(210, 165, 108, .28);
}

/* Where to go next heading -------------------------------------------- */

.wyohs-history .wyohs-history__next-head {
	font-family: var(--wyohs-serif, 'Young Serif', Georgia, serif);
	font-weight: 400;
	font-size: 38px;
	line-height: 1.05;
	letter-spacing: normal;
	text-transform: none;
	color: var(--wyohs-ink, #1a1a1a);
	text-align: center;
	margin: 0 0 10px;
}

.wyohs-history .wyohs-history__next-sub {
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.wyohs-history .wyohs-history__next-sub p {
	font-family: var(--wyohs-body, 'Special Gothic', sans-serif);
	font-size: 16px;
	line-height: 1.6;
	color: #5c5c5c;
	margin: 0;
}

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

@media (max-width: 992px) {

	.wyohs-history .wyohs-history__quote blockquote {
		font-size: 24px;
	}
}

@media (max-width: 640px) {

	.wyohs-history .wyohs-history__lede {
		text-align: left;
	}

	.wyohs-history .wyohs-history__lede p {
		font-size: 19px;
	}

	.wyohs-history .wyohs-history__head {
		font-size: 27px;
	}

	.wyohs-history .wyohs-history__quote blockquote {
		font-size: 21px;
	}

	.wyohs-history .wyohs-history__quote blockquote::before {
		font-size: 48px;
		margin-bottom: 18px;
	}

	.wyohs-history .wyohs-history__panel {
		padding: 32px 26px;
	}

	.wyohs-history__milestone {
		flex: 1 1 50%;
		border-left: 0;
		border-top: 1px solid rgba(26, 26, 26, .10);
		padding: 20px 12px;
	}

	.wyohs-history__milestone:first-child,
	.wyohs-history__milestone:nth-child(2) {
		border-top: 0;
	}

	.wyohs-history .wyohs-history__next-head {
		font-size: 30px;
	}
}
