/*
Theme Name: Morgan APS
Theme URI: https://morgan-aps.com
Author: Morgan Advanced Programmable Systems, Inc.
Description: Custom theme for morgan-aps.com. Provides the Home, About, Services, Training, Class schedule, Course catalog and News designs. Every other page keeps its existing content inside the new header and footer.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Update URI: false
Text Domain: morgan-aps
*/

/* ---------- Brand ----------
   Five brand colors. Every other shade on the site is one of them at a lower
   strength, so no other color appears.
   One font: Inter, for headings and text.
   One type scale of eight sizes. */
:root {
	--green: #37752A;     /* Morgan green: buttons, links, accents */
	--charcoal: #1E2224;  /* text, dark bands, footer */
	--slate: #50575B;     /* secondary text */
	--mist: #EEF1EC;      /* light panels and bands */
	--white: #FFFFFF;

	/* Shades made from the brand colors. */
	--ground: #F7F8F6;                           /* mist at half strength: page background */
	--line: rgba(30, 34, 36, 0.14);              /* charcoal: borders */
	--line-strong: rgba(30, 34, 36, 0.24);
	--line-soft: rgba(30, 34, 36, 0.08);
	--field: rgba(30, 34, 36, 0.5);              /* charcoal: form field borders */
	--dark-2: rgba(255, 255, 255, 0.05);         /* white: panels on charcoal */
	--dark-line: rgba(255, 255, 255, 0.14);      /* white: borders on charcoal */
	--on-dark-muted: rgba(255, 255, 255, 0.74);  /* white: secondary text on charcoal */
	--error: #B3261E;                            /* form error messages only; not a brand color */

	/* One font, Inter, for headings and text alike. (Version 1.0.0 used
	   "Space Grotesk" for headings; put that name here to bring it back.) */
	--font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-head: var(--font-body);

	/* Type scale. Headings 1 to 4, then text sizes. */
	--fs-h1: clamp(36px, 4.4vw, 52px);
	--fs-h2: clamp(28px, 3.2vw, 38px);
	--fs-h3: clamp(22px, 2.2vw, 26px);
	--fs-h4: 19px;
	--fs-body-lg: 18px;
	--fs-body: 16px;
	--fs-small: 14px;
	--fs-label: 12.5px;

	--radius: 12px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ground);
	color: var(--charcoal);
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--charcoal); text-decoration: none; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); line-height: 1.15; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.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: 8px; top: -60px; z-index: 100;
	padding: 10px 14px; background: var(--charcoal); color: var(--white); border-radius: 8px;
}
.skip-link:focus { top: 8px; color: var(--white); }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.muted { color: var(--slate); }

/* Headings: four styles, used for every heading on the site. */
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h1, h2, h3 { font-weight: 700; }
h4 { font-weight: 600; }

/* Labels: small capitals, kept to one to three words. Used above section
   headings, for table and footer headings, and nowhere else; longer text is
   written in normal sentence case. */
.eyebrow, .card__kicker, .spec__head, .schedule th, .footer-heading, .post-nav__label {
	font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600;
	letter-spacing: 0.08em; text-transform: uppercase;
}
/* Dates, course codes, counts and phone numbers: digits of even width, so they line up. */
.num, .schedule__start, .row__date, .news-item__meta, .post-list__meta, .plate__n, .spec__n,
.numbered__n, .schedule-tools__count, .cta__phone, .topbar a, .aside-block__big {
	font-variant-numeric: tabular-nums;
}

/* ---------- Shared pieces ---------- */
.eyebrow { color: var(--green); }
.eyebrow--muted { color: var(--slate); }
.section--dark .eyebrow { color: var(--on-dark-muted); }

.headline {
	font-size: var(--fs-h1); line-height: 1.06; font-weight: 700;
	letter-spacing: -0.02em; text-wrap: balance;
}
.headline--sm { font-size: var(--fs-h1); max-width: 900px; }
.section-title {
	font-size: var(--fs-h2); line-height: 1.12; font-weight: 700;
	letter-spacing: -0.015em;
}
.lead { font-size: var(--fs-h4); line-height: 1.4; font-weight: 500; text-wrap: pretty; }
.body-lg { font-size: var(--fs-body-lg); line-height: 1.6; color: var(--slate); text-wrap: pretty; }
.section--dark .body-lg { color: var(--on-dark-muted); }

.btn {
	display: inline-block; padding: 13px 22px; border: 1px solid var(--charcoal);
	border-radius: 8px; font-size: var(--fs-body); font-weight: 600; line-height: 1.3;
	color: var(--charcoal); background: transparent; cursor: pointer;
}
.btn:hover { background: var(--charcoal); color: var(--white); }
.btn--primary { background: var(--green); border-color: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }
.btn--sm { padding: 11px 18px; font-size: var(--fs-body); }

.link-line {
	display: inline-block; padding: 12px 2px; font-size: var(--fs-body); font-weight: 600;
	border-bottom: 2px solid currentColor;
}
.section--dark .link-line { color: var(--white); }
.feature__copy .link-line, .split__a .link-line { align-self: flex-start; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

.section { padding: 96px 0; }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tint { background: var(--mist); border-top: 1px solid var(--line); }
.section--dark { background: var(--charcoal); color: var(--white); }
.section-head { max-width: 720px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 44px; }

.stats {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
	gap: 24px 48px; margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line);
}
.stats--wide { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.stat__num { font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; }
.stat__label { margin-top: 4px; font-size: var(--fs-small); color: var(--slate); }

.bullets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 12px 32px; font-size: var(--fs-body); align-content: start; }
.bullets--stack { grid-template-columns: 1fr; gap: 14px; font-size: var(--fs-body); }
.bullets li { display: flex; gap: 12px; }
.bullets li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 9px; background: var(--green); }

.numbered { display: flex; flex-direction: column; gap: 12px; }
.numbered li { display: flex; gap: 14px; }
.numbered__n { font-family: var(--font-body); color: var(--green); }
.section--dark .numbered { color: var(--on-dark-muted); }
.section--dark .numbered__n { color: var(--white); }

/* ---------- Top bar and header ---------- */
.topbar { background: var(--charcoal); color: var(--on-dark-muted); font-size: var(--fs-small); }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-top: 10px; padding-bottom: 10px; }
.topbar a { color: var(--on-dark-muted); font-family: var(--font-body); }
.topbar a:hover { color: var(--white); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 14px; padding-bottom: 14px; }
.site-logo { display: block; line-height: 0; }
.site-logo img, .custom-logo-link img { height: 46px; width: auto; display: block; }
.custom-logo-link { display: block; line-height: 0; }
.site-header__menu { display: flex; flex: 1; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 30px; margin: 0 auto; font-size: var(--fs-body); font-weight: 500; }
.site-nav a { display: block; padding: 12px 0; border-bottom: 2px solid transparent; }
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current_page_ancestor > a { border-bottom-color: var(--green); font-weight: 600; }
.site-header__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.nav-toggle {
	display: none; padding: 11px 16px; border: 1px solid var(--charcoal); border-radius: 8px;
	background: var(--white); color: var(--charcoal); font: 600 var(--fs-body) var(--font-body); cursor: pointer;
}

@media (max-width: 920px) {
	.nav-toggle { display: inline-block; }
	.site-header__menu { display: none; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 8px; padding-bottom: 8px; }
	.site-header__menu.is-open { display: flex; }
	.site-nav { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
	.site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
	.site-nav .current-menu-item > a { border-bottom-color: var(--green); }
	.site-header__cta { padding-top: 8px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 64px; padding-top: 80px; padding-bottom: 88px; }
.hero__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero__copy .actions { margin-top: 12px; }
.hero--page .hero__inner { display: block; padding-top: 72px; padding-bottom: 72px; }
.hero--page .hero__copy { max-width: none; }
.hero--page .body-lg { max-width: 780px; font-size: var(--fs-body-lg); }
.hero__badge { width: 250px; align-self: flex-start; margin-bottom: 4px; }

.jumps { display: flex; flex-wrap: wrap; gap: 10px; }
.jumps a { padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-small); font-weight: 500; }
.jumps a:hover { border-color: var(--charcoal); }

.stack { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.stack__label { margin-bottom: 6px; }
.plate {
	display: flex; align-items: center; gap: 14px; padding: 14px 18px;
	background: var(--white); border: 1px solid var(--line-strong); border-radius: 10px;
	box-shadow: 0 6px 16px rgba(30, 34, 36, 0.06); color: var(--charcoal);
}
a.plate:hover { border-color: var(--charcoal); color: var(--charcoal); }
.plate:nth-of-type(1) { margin-right: 12%; }
.plate:nth-of-type(2) { margin-left: 3%; margin-right: 9%; }
.plate:nth-of-type(3) { margin-left: 6%; margin-right: 6%; }
.plate:nth-of-type(4) { margin-left: 9%; margin-right: 3%; }
.plate:nth-of-type(5) { margin-left: 12%; }
.plate__n { font-family: var(--font-body); font-size: var(--fs-small); color: var(--slate); }
.plate__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.plate__title { font-weight: 600; font-size: var(--fs-body); }
.plate__sub { font-size: var(--fs-small); color: var(--slate); }
.stack__note { margin-top: 10px; font-size: var(--fs-small); color: var(--slate); }
.icon { flex: 0 0 auto; }

/* ---------- Customers ---------- */
.clients { border-bottom: 1px solid var(--line); }
.clients .wrap { display: flex; flex-direction: column; align-items: center; gap: 22px; padding-top: 44px; padding-bottom: 48px; text-align: center; }
/* Equal-width cells, so names line up in columns; a short last row stays centered. */
.clients__list { display: flex; flex-wrap: wrap; justify-content: center; width: 100%; gap: 18px 0; font-family: var(--font-head); font-size: var(--fs-body-lg); font-weight: 600; line-height: 1.3; color: var(--charcoal); }
.clients__list span { flex: 0 0 calc(100% / var(--cols, 4)); padding: 0 10px; white-space: nowrap; }
@media (max-width: 1000px) { .clients__list span { flex-basis: 33.333%; } }
@media (max-width: 640px) { .clients__list span { flex-basis: 50%; white-space: normal; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.card.card--tint { background: var(--mist); }
.catalog-lists { margin-top: 20px; }
.page-head__intro { max-width: 760px; }
.card {
	display: flex; flex-direction: column; gap: 12px; padding: 24px;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--charcoal);
}
a.card:hover { border-color: var(--charcoal); color: var(--charcoal); }
.card__top { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.card__title { font-size: var(--fs-h4); font-weight: 600; line-height: 1.3; }
.card__text { flex: 1; font-size: var(--fs-small); color: var(--slate); }
.card__more { font-size: var(--fs-small); font-weight: 600; }
.card--lg { padding: 28px; gap: 10px; }
.card--lg .card__title { font-size: var(--fs-h3); font-weight: 700; }
.card--lg .card__text { font-size: var(--fs-body); }
.card__kicker { font-family: var(--font-body); font-size: var(--fs-label); color: var(--green); text-transform: uppercase; }
/* Line up titles, text and links across the cards in a row, whatever wraps. */
@supports (grid-template-rows: subgrid) {
	.cards > .card { display: grid; grid-template-rows: subgrid; grid-row: span var(--card-rows, 4); row-gap: 12px; align-content: start; }
	.cards > .card--lg { row-gap: 10px; }
	.cards--r3 { --card-rows: 3; }
	.cards--r2 { --card-rows: 2; }
}
.section--dark .card { background: var(--dark-2); border-color: var(--dark-line); color: var(--white); }
.section--dark .card__text, .section--dark .card__kicker { color: var(--on-dark-muted); }
.section--dark .card__title { font-size: var(--fs-h4); }

/* ---------- Featured work (home page "Work" section) ---------- */
.feature { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.feature__media { flex: 1 1 440px; min-width: 0; }
.feature__media img { display: block; width: 100%; border-radius: var(--radius); }
.feature__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.feature__title { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.015em; }
.spec { border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--dark-2); }
.spec__head { padding: 16px 24px; border-bottom: 1px solid var(--dark-line); font-family: var(--font-body); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); }
.spec__row { display: flex; gap: 18px; padding: 18px 24px; border-bottom: 1px solid var(--dark-line); }
.spec__row:last-child { border-bottom: 0; }
.spec__n { font-family: var(--font-body); font-size: var(--fs-small); color: var(--on-dark-muted); padding-top: 3px; }
.spec__title { font-weight: 600; font-size: var(--fs-body-lg); color: var(--white); }
.spec__text { font-size: var(--fs-small); color: var(--on-dark-muted); }

/* ---------- About page ---------- */
.team { display: flex; flex-direction: column; gap: 20px; }
.person { display: flex; flex-wrap: wrap; gap: 28px 48px; padding: 32px; background: var(--ground); border: 1px solid var(--line); border-radius: var(--radius); }
.person__id { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.avatar {
	width: 96px; height: 96px; margin-bottom: 8px; border-radius: 50%; object-fit: cover;
	display: flex; align-items: center; justify-content: center;
	background: var(--charcoal); color: var(--white); font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 700;
}
.person__name { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; }
.person__role { font-size: var(--fs-small); color: var(--slate); }
.person__body { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.person__bio { font-size: var(--fs-body); line-height: 1.6; text-wrap: pretty; }
.person__bio p + p { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px 32px; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); }
.facts dt { margin-bottom: 4px; font-size: var(--fs-small); font-weight: 600; color: var(--charcoal); }
.facts dd { margin: 0; font-size: var(--fs-small); color: var(--slate); }
/* Alphabetical down each column, with rows lined up across the columns. */
.customer-list { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--r4), auto); grid-auto-columns: max-content; justify-content: space-between; gap: 0 24px; font-size: var(--fs-body); color: var(--on-dark-muted); }
.customer-list li { padding: 6px 0; white-space: nowrap; }
@media (max-width: 1180px) { .customer-list { grid-auto-columns: minmax(0, 1fr); } .customer-list li { white-space: normal; } }
@media (max-width: 900px) { .customer-list { grid-template-rows: repeat(var(--r2), auto); } }
@media (max-width: 520px) { .customer-list { display: block; } }

/* ---------- Training blocks ---------- */
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; }
.split__a { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split__b { flex: 1 1 520px; min-width: 0; }
.split__badge { width: 240px; margin-top: 10px; align-self: flex-start; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.panel__title { font-size: var(--fs-h4); font-weight: 600; }
.panel__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 16px 24px; font-size: var(--fs-body); }
.panel__foot a { padding: 8px 0; font-weight: 600; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.row__main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; }
.row__code { font-family: var(--font-body); font-size: var(--fs-label); color: var(--green); }
.row__title { font-weight: 600; font-size: var(--fs-body); }
.row__meta { font-size: var(--fs-small); color: var(--slate); }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; margin-top: 72px; }
.quote { margin: 0; padding: 28px; background: var(--mist); border-radius: var(--radius); display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { margin: 0; flex: 1; font-size: var(--fs-body-lg); line-height: 1.5; text-wrap: pretty; }
.quote figcaption { font-size: var(--fs-small); color: var(--slate); }
.quotes--stack { grid-template-columns: 1fr; margin-top: 0; gap: 20px; }
.section--dark .quote { background: var(--dark-2); border: 1px solid var(--dark-line); }
.section--dark .quote figcaption { color: var(--on-dark-muted); }

/* Class schedule: Start, Course, Days, City, State, Register. Course gets the room. */
.schedule-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.schedule { width: 100%; border-collapse: collapse; font-size: var(--fs-body); line-height: 1.4; }
.schedule th { padding: 14px 16px; text-align: left; font-family: var(--font-body); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); background: var(--mist); border-bottom: 1px solid var(--line); }
.schedule td { padding: 14px 16px; vertical-align: middle; border-bottom: 1px solid var(--line-soft); }
.schedule tbody tr:last-child td { border-bottom: 0; }
.schedule th:first-child, .schedule td:first-child { padding-left: 24px; }
.schedule th:last-child, .schedule td:last-child { padding-right: 24px; }
.schedule__start { width: 124px; white-space: nowrap; font-family: var(--font-body); font-size: var(--fs-small); }
.schedule__days { width: 64px; text-align: center !important; }
.schedule__city { width: 190px; }
.schedule__state { width: 76px; }
.schedule__register { width: 128px; text-align: right !important; white-space: nowrap; }
.schedule__title { display: block; font-weight: 600; font-size: var(--fs-body); }
.schedule__code { display: inline-block; margin-top: 2px; font-family: var(--font-body); font-size: var(--fs-label); color: var(--green); }
a.schedule__code { text-decoration: underline; text-underline-offset: 2px; }
.schedule__status { font-size: var(--fs-small); color: var(--slate); }
.schedule .is-shut .schedule__title, .schedule .is-shut td { color: var(--slate); }
.schedule .btn--sm { padding: 8px 16px; font-size: var(--fs-small); }
.schedule tr[hidden] { display: none; }
.schedule-more { margin-top: 24px; }
.schedule-empty { margin-top: 20px; font-size: var(--fs-body); color: var(--slate); }
.schedule-empty a { color: var(--green); text-decoration: underline; }

.schedule-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 32px; margin-bottom: 24px; }
.schedule-tools__search { flex: 1 1 320px; max-width: 460px; display: flex; flex-direction: column; gap: 8px; }
.schedule-tools__search label { font-size: var(--fs-small); font-weight: 600; }
.schedule-tools__search input { width: 100%; padding: 12px 14px; border: 1px solid var(--field); border-radius: 8px; font: 400 var(--fs-body) var(--font-body); color: var(--charcoal); background: var(--white); }
.schedule-tools__check { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: var(--fs-body); cursor: pointer; }
.schedule-tools__check input { width: 18px; height: 18px; accent-color: var(--green); }
.schedule-tools__count { margin-left: auto; padding: 12px 0; font-family: var(--font-body); font-size: var(--fs-small); color: var(--slate); }

.section--tight { padding: 56px 0 88px; }
.page-head__split { flex-direction: row !important; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px !important; }
.page-head__text { flex: 1 1 520px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.page-head__text .body-lg a { color: var(--green); text-decoration: underline; }
.page-head__badge { flex: 0 0 auto; width: 240px; }
.row__date { flex: 0 0 96px; font-family: var(--font-body); font-size: var(--fs-small); color: var(--slate); }
.cards .bullets a { color: var(--green); text-decoration: underline; }

/* On a phone each class becomes a small card. */
@media (max-width: 780px) {
	.schedule thead { display: none; }
	.schedule, .schedule tbody, .schedule tr, .schedule td { display: block; width: auto !important; }
	.schedule tr { padding: 16px 20px; border-bottom: 1px solid var(--line); }
	.schedule tbody tr:last-child { border-bottom: 0; }
	.schedule td { padding: 2px 0 !important; border: 0; text-align: left !important; }
	.schedule__days::before { content: "Days: "; color: var(--slate); }
	.schedule__city, .schedule__state { display: inline-block !important; }
	.schedule__city::after { content: ","; }
	.schedule__city:empty::after, .is-one-place .schedule__city::after { content: ""; }
	.is-one-place .schedule__state { display: none !important; }
	.schedule__register { margin-top: 10px; }
	.schedule-tools__count { margin-left: 0; }
}
.schedule-fallback { padding: 28px; background: var(--mist); border-radius: var(--radius); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.fineprint { margin-top: 24px; max-width: 860px; font-size: var(--fs-small); color: var(--slate); }

.tile { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); color: var(--charcoal); }
.tile:hover { border-color: var(--charcoal); color: var(--charcoal); }
.tile__title { font-size: var(--fs-h4); font-weight: 600; line-height: 1.25; }
.tile .icon { color: var(--slate); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 20px; }
.more-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; font-weight: 600; }
.more-links a { padding: 8px 0; border-bottom: 2px solid var(--charcoal); }

.credits { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; padding: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.credits > * { flex: 1 1 380px; min-width: 0; }
.credits__copy { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.credits__title { font-size: var(--fs-h3); font-weight: 700; }

.faq { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.faq__title { flex: 1 1 280px; min-width: 0; font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.015em; }
.faq__list { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary { padding: 18px 0; font-size: var(--fs-body-lg); font-weight: 600; cursor: pointer; }
.faq details p { margin: 0 0 20px; font-size: var(--fs-body); color: var(--slate); text-wrap: pretty; }
.faq details a, .fineprint a { color: var(--green); text-decoration: underline; }

/* ---------- Services page ---------- */
.disciplines { display: flex; flex-direction: column; gap: 20px; }
.discipline { display: flex; flex-wrap: wrap; gap: 28px 48px; padding: 32px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 24px; }
.discipline__intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.discipline__tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--fs-small); font-weight: 500; color: var(--green); }
.discipline__title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.2; }
.discipline__text { font-size: var(--fs-body); color: var(--slate); text-wrap: pretty; }
.discipline .bullets { flex: 2 1 520px; min-width: 0; }

/* ---------- Call to action and footer ---------- */
.cta { background: var(--mist); border-top: 1px solid var(--line); }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 64px; padding-top: 80px; padding-bottom: 80px; }
.cta__copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cta__title { font-size: var(--fs-h2); font-weight: 700; letter-spacing: -0.015em; }
.cta__phone { font-family: var(--font-body); font-size: var(--fs-body); font-weight: 500; padding: 12px 2px; }

.site-footer { background: var(--charcoal); color: var(--on-dark-muted); font-size: var(--fs-body); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 48px; padding-top: 64px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 40px 32px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col--brand { gap: 10px; }
.footer-brand { font-family: var(--font-head); font-size: var(--fs-body-lg); font-weight: 700; color: var(--white); line-height: 1.25; }
.footer-heading { margin-bottom: 8px; font-family: var(--font-body); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); }
.site-footer a { padding: 5px 0; color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--white); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid var(--dark-line); font-size: var(--fs-small); }

/* ---------- Ordinary pages (existing content) ---------- */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-top: 48px; padding-bottom: 44px; display: flex; flex-direction: column; gap: 12px; }
.page-head__crumb { font-family: var(--font-body); font-size: var(--fs-small); color: var(--slate); }
.page-head__crumb a { color: var(--green); }
.page-head__title { font-size: var(--fs-h1); font-weight: 700; letter-spacing: -0.02em; }
.page-body { padding: 56px 0 88px; }
.page-body--builder { padding: 24px 0 56px; }
.section--white + .cta { border-top: 0; }
.entry--plain { max-width: 860px; }
.entry { font-size: var(--fs-body); line-height: 1.65; }
.entry p, .entry ul, .entry ol, .entry table, .entry blockquote { margin: 0 0 1.1em; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry ul { list-style: disc; }
.entry li { margin-bottom: 0.35em; }
.entry h1, .entry h2, .entry h3, .entry h4 { margin: 1.4em 0 0.5em; letter-spacing: -0.01em; }
/* Headings inside page text use heading styles 3 and 4. */
.entry h1, .entry h2 { font-weight: 700; }
.entry h3, .entry h4 { font-weight: 600; }
.entry h1 { font-size: var(--fs-h3); }
.entry h2 { font-size: var(--fs-h3); }
.entry h3 { font-size: var(--fs-h4); }
.entry h4 { font-size: var(--fs-h4); }
.entry > :first-child, .entry .fl-rich-text > :first-child, .entry .fl-module-content > :first-child { margin-top: 0; }
.entry a:not(.fl-button):not(.btn) { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.entry a:not(.fl-button):not(.btn):hover { color: var(--charcoal); }
.entry table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.entry th, .entry td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry blockquote { padding: 4px 0 4px 20px; border-left: 3px solid var(--line-strong); color: var(--slate); }
/* Colors, fonts and sizes typed into the old pages by hand give way to the
   brand ones, so every page uses the same palette and type. */
.entry [style*="color"]:not(.fl-button):not(.btn),
.entry font[color] { color: inherit !important; }
.entry [style*="font-family"], .entry font[face] { font-family: inherit !important; }
.entry [style*="font-size"], .entry font[size] { font-size: inherit !important; }
.entry input[type="text"], .entry input[type="email"], .entry input[type="tel"], .entry input[type="number"], .entry select, .entry textarea {
	max-width: 100%; padding: 12px 14px; border: 1px solid var(--field); border-radius: 8px;
	font: 400 var(--fs-body) var(--font-body); color: var(--charcoal); background: var(--white);
}
.entry input[type="submit"], .entry input[type="button"], .entry button[type="submit"] {
	padding: 13px 22px; border: 1px solid var(--green); border-radius: 8px; background: var(--green);
	color: var(--white); font: 600 var(--fs-body) var(--font-body); cursor: pointer;
}
.entry input[type="submit"]:hover, .entry input[type="button"]:hover, .entry button[type="submit"]:hover { background: var(--charcoal); border-color: var(--charcoal); }

/* Preformatted text in existing pages (the address on Location) reads as normal text. */
.entry pre { margin: 0 0 1.1em; font: inherit; white-space: pre-line; }

/* Standard WordPress alignment classes, used by images in existing page content. */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.alignnone { display: block; }
.entry img.aligncenter, .entry img.alignnone { margin-bottom: 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { margin-top: 6px; font-size: var(--fs-small); color: var(--slate); text-align: center; }
.entry::after { content: ""; display: table; clear: both; }

/* ---------- Pages with a form: the form in a panel, details beside it ---------- */
.form-page { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 64px; }
.form-page__main { flex: 1 1 560px; min-width: 0; padding: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.form-page__aside { flex: 0 1 340px; min-width: 0; display: flex; flex-direction: column; }
/* When the form sits inside a page-builder layout, drop the builder's own spacing. */
.form-page__main [class^="fl-"], .form-page__main [class*=" fl-"] { padding: 0 !important; margin: 0 !important; }
.aside-block { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 0; border-top: 1px solid var(--line-strong); font-size: var(--fs-body); }
.aside-block:first-child { padding-top: 0; border-top: 0; }
.aside-block .eyebrow { margin-bottom: 4px; }
.aside-block__big { font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 700; }
.aside-block__link { font-weight: 600; border-bottom: 2px solid currentColor; padding: 4px 0; }
.aside-block .bullets a { color: var(--green); text-decoration: underline; }

/* Ninja Forms, matched to the theme. */
.nf-form-cont .nf-form-title, .nf-form-cont .nf-form-title h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; }
.nf-form-cont .nf-form-fields-required { margin-bottom: 24px; font-size: var(--fs-small); color: var(--slate); }
.nf-form-cont .nf-input-limit { font-size: var(--fs-label); color: var(--slate); }
.nf-form-cont .nf-field-label label, .nf-form-cont .nf-field-label .nf-label-span { font-size: var(--fs-body); font-weight: 600; }
.nf-form-cont .nf-field-element input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]),
.nf-form-cont .nf-field-element select,
.nf-form-cont .nf-field-element textarea { width: 100%; }
.nf-form-cont .nf-field-container { margin-bottom: 22px; }
.nf-form-cont .list-radio-wrap ul, .nf-form-cont .list-checkbox-wrap ul { padding-left: 0; list-style: none; }
.nf-form-cont .nf-error-msg, .nf-form-cont .ninja-forms-req-symbol { color: var(--error); }
/* The confirmation shown in place of the form once it has been sent. */
.nf-form-cont .nf-response-msg > :first-child { margin-top: 0; }
.nf-form-cont .nf-response-msg > :last-child { margin-bottom: 0; }

@media (max-width: 600px) {
	.form-page__main { padding: 24px; }
}

/* Pages built with Beaver Builder lay themselves out; give them the full width. */
/* Keep builder rows in line with the header (rows carry 20px of their own padding). */
.entry--builder { max-width: 1200px; margin: 0 auto; padding: 0 12px; }
/* Existing page text: headings line up with the text under them, and lines
   stay a readable length instead of running the full width of the page. */
.entry--builder .fl-rich-text :is(h1, h2, h3, h4) { text-align: left !important; }
.entry--builder .fl-rich-text > :is(p, ul, ol):not([style*="center"]) { max-width: 880px; }
/* Anything a plugin adds after the builder layout, such as a Ninja Forms form. */
.entry--builder > *:not(.fl-builder-content) { max-width: 800px; padding-left: 20px; padding-right: 20px; }
.entry--builder .fl-builder-content a.fl-button,
.entry--builder .fl-builder-content a.fl-button:visited {
	background: var(--green) !important; border: 1px solid var(--green) !important; border-radius: 8px !important;
}
.entry--builder .fl-builder-content a.fl-button:hover { background: var(--charcoal) !important; border-color: var(--charcoal) !important; }
.entry--builder .fl-builder-content a.fl-button, .entry--builder .fl-builder-content a.fl-button * { color: var(--white) !important; text-decoration: none; }

/* ---------- News ---------- */
.news { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong); }
.news-item { display: flex; flex-wrap: wrap; gap: 12px 48px; padding: 36px 0; border-bottom: 1px solid var(--line-strong); }
.news-item__meta { flex: 0 0 200px; display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 8px 12px; font-family: var(--font-body); font-size: var(--fs-small); color: var(--slate); }
.news-item__tag { padding: 2px 9px; border: 1px solid var(--line-strong); border-radius: 999px; font-family: var(--font-body); font-size: var(--fs-label); font-weight: 500; color: var(--charcoal); background: var(--white); }
.news-item__main { flex: 1 1 480px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.news-item__title { font-size: var(--fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.news-item__title a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.news-item__summary { font-size: var(--fs-body); line-height: 1.6; color: var(--slate); text-wrap: pretty; }
.news-item__more { padding: 8px 0; font-size: var(--fs-body); font-weight: 600; border-bottom: 2px solid currentColor; }
.news-item--lead { padding: 44px 0; }
.news-item--lead .news-item__title { font-size: var(--fs-h2); line-height: 1.15; }
.news-item--lead .news-item__summary { font-size: var(--fs-body-lg); }

.article-head .news-item__meta { flex: none; margin-top: 4px; }
.entry--article { max-width: 720px; font-size: var(--fs-body-lg); line-height: 1.7; }
.post-nav { max-width: 720px; margin-top: 56px; border-top: 1px solid var(--line-strong); }
.post-nav__link { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.post-nav__label { flex: 0 0 72px; padding-top: 3px; font-family: var(--font-body); font-size: var(--fs-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.post-nav__title { flex: 1 1 300px; min-width: 0; font-weight: 600; }

.post-list { display: flex; flex-direction: column; gap: 32px; }
.post-list__title { font-size: var(--fs-h3); }
.post-list__meta { font-family: var(--font-body); font-size: var(--fs-small); color: var(--slate); }

@media (max-width: 600px) {
	.wrap { padding-left: 20px; padding-right: 20px; }
	.section { padding: 64px 0; }
	.hero__inner { padding-top: 56px; padding-bottom: 64px; }
	.discipline, .credits, .person { padding: 24px; }
	/* Figures stack as even rows on a phone: number on the left, label beside it. */
	.stats, .stats--wide { grid-template-columns: 1fr; gap: 14px; }
	.stats > div { display: flex; align-items: baseline; gap: 16px; }
	.stat__num { flex: 0 0 116px; font-size: var(--fs-h3); }
	.stat__label { margin-top: 0; }
	.quotes { margin-top: 48px; }
	.plate:nth-of-type(n) { margin-left: 0; margin-right: 0; }
}
