/*
Theme Name: Mryyan Thompson
Description: Block theme for Mryyan Thompson PLLC. Quatrefoil tile mark, cobalt / ochre / terracotta palette, Newsreader and Public Sans type. Page bands take abstract accent shapes, and accent colors and tile icons can be changed per section from the block sidebar. Edit everything in Appearance → Editor.
Author: Mryyan Thompson PLLC
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mryyan-thompson
*/

/* ==========================================================================
   Base
   ========================================================================== */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--wp--preset--color--terracotta-dark);
	outline-offset: 2px;
}

/* Full-width bands sit flush against each other. */
.wp-site-blocks > * { margin-block-start: 0; }
main.wp-block-group > * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.wp-block-post-content > .alignfull + :not(.alignfull) { margin-block-start: var(--wp--preset--spacing--50); }
.wp-block-post-content > :last-child:not(.alignfull) { margin-block-end: var(--wp--preset--spacing--60); }
.wp-block-image { margin: 0; }

/* Small label above headings: sentence case, terracotta. */
.mt-eyebrow {
	font-size: 0.96875rem;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--wp--preset--color--terracotta-dark);
	margin-top: 0;
	margin-bottom: 0.625rem;
}
.mt-eyebrow + * { margin-block-start: 0; }

.mt-lede {
	font-size: clamp(1.1875rem, 1.8vw, 1.375rem);
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
	max-width: 640px;
}

/* Short accent rule. Its color follows the Accent color setting. */
.wp-block-separator.mt-rule,
.wp-block-separator.mt-rule:not(.is-style-wide):not(.is-style-dots) {
	width: 64px;
	max-width: 64px;
	height: 3px;
	border: 0;
	background-color: var(--mt-mark, var(--wp--preset--color--ochre)) !important;
	color: var(--mt-mark, var(--wp--preset--color--ochre));
	opacity: 1;
	margin: 1.5rem 0 !important;
}

.wp-block-button__link { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--cobalt);
	border: 2px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--cobalt);
	color: var(--wp--preset--color--cream);
	border-color: var(--wp--preset--color--cobalt);
}

.mt-more-link { font-weight: 600; font-size: 0.96875rem; }
.mt-more-link a, .mt-go a { text-decoration: none; }
.mt-more-link a:hover, .mt-go a:hover { text-decoration: underline; }
.mt-go { font-weight: 600; font-size: 0.9375rem; margin-top: auto; }

.mt-todo, mark.mt-todo { background: #F6E6C3; color: var(--wp--preset--color--ink); padding: 0 4px; border-radius: 3px; }

/* ==========================================================================
   Accent colors: gold (default), blue or terracotta
   Applied to a section, a column or a single element from the block sidebar.
   ========================================================================== */
.mt-mark-gold { --mt-mark: var(--wp--preset--color--ochre); }
.mt-mark-blue { --mt-mark: var(--wp--preset--color--cobalt); }
.mt-mark-terracotta { --mt-mark: var(--wp--preset--color--terracotta); }

/* ==========================================================================
   Accent shapes for page bands
   A · Diagonal, B · Same side, D · Arcs, H · Ring corners,
   each in Gold, Terracotta, or Gold and terracotta.
   Drawn as background layers, so they never cover text and need no extra markup.
   ========================================================================== */
[class*="mt-acc-"] {
	--mt-blue: var(--wp--preset--color--cobalt);
	--mt-warm: var(--wp--preset--color--ochre);
	--mt-stripe: transparent;
	--mt-core: transparent;
	--mt-r1: clamp(64px, 17vw, 250px);
	--mt-r2: clamp(calc(clamp(48px, 6vw, 84px) - 8px), calc(50vw - 608px), 118px);
	background-repeat: no-repeat;
}
.mt-hero[class*="mt-acc-"] {
	--mt-r1: clamp(72px, 26vw, 380px);
	--mt-r2: clamp(calc(clamp(56px, 7vw, 104px) - 8px), calc(50vw - 608px), 150px);
}
.mt-tone-terracotta { --mt-warm: var(--wp--preset--color--terracotta); }
.mt-tone-gold-terracotta {
	--mt-warm: var(--wp--preset--color--terracotta);
	--mt-stripe: var(--wp--preset--color--ochre);
	--mt-core: var(--wp--preset--color--ochre);
}

/* A · Diagonal: striped blue quarter top right, warm quarter bottom left. */
.mt-acc-diagonal {
	background-image:
		radial-gradient(circle at 100% 0, var(--mt-blue) calc(var(--mt-r1) * 0.62 - 0.5px), var(--mt-stripe) calc(var(--mt-r1) * 0.62 + 0.5px) calc(var(--mt-r1) * 0.69 - 0.5px), var(--mt-blue) calc(var(--mt-r1) * 0.69 + 0.5px) calc(var(--mt-r1) - 0.5px), transparent calc(var(--mt-r1) + 0.5px)),
		radial-gradient(circle at 0 100%, var(--mt-warm) calc(var(--mt-r2) - 0.5px), transparent calc(var(--mt-r2) + 0.5px));
}

/* B · Same side: the same blue quarter, warm half circle rising from the bottom edge. */
.mt-acc-same-side {
	--mt-b-r: clamp(34px, 6vw, 84px);
	--mt-b-x: clamp(96px, 22vw, 340px);
	background-image:
		radial-gradient(circle at 100% 0, var(--mt-blue) calc(var(--mt-r1) * 0.62 - 0.5px), var(--mt-stripe) calc(var(--mt-r1) * 0.62 + 0.5px) calc(var(--mt-r1) * 0.69 - 0.5px), var(--mt-blue) calc(var(--mt-r1) * 0.69 + 0.5px) calc(var(--mt-r1) - 0.5px), transparent calc(var(--mt-r1) + 0.5px)),
		radial-gradient(circle at calc(100% - var(--mt-b-x) - var(--mt-b-r)) 100%, var(--mt-warm) calc(var(--mt-b-r) - 0.5px), transparent calc(var(--mt-b-r) + 0.5px));
}

/* D · Arcs: thin blue arcs top right, small warm corner bottom right. */
.mt-acc-arcs {
	--mt-d: clamp(40px, 11vw, 170px);
	--mt-c: clamp(28px, 4.5vw, 64px);
	background-image:
		radial-gradient(circle at 100% 0,
			var(--mt-core) calc((var(--mt-d) - 3px) * 0.7 - 0.5px),
			transparent calc((var(--mt-d) - 3px) * 0.7 + 0.5px) calc(var(--mt-d) - 3.5px),
			var(--mt-blue) calc(var(--mt-d) - 2.5px) calc(var(--mt-d) - 0.5px),
			transparent calc(var(--mt-d) + 0.5px) calc(var(--mt-d) + 21.5px),
			var(--mt-blue) calc(var(--mt-d) + 22.5px) calc(var(--mt-d) + 24.5px),
			transparent calc(var(--mt-d) + 25.5px) calc(var(--mt-d) + 46.5px),
			var(--mt-blue) calc(var(--mt-d) + 47.5px) calc(var(--mt-d) + 49.5px),
			transparent calc(var(--mt-d) + 50.5px)),
		radial-gradient(circle at 100% 100%, var(--mt-warm) calc(var(--mt-c) - 0.5px), transparent calc(var(--mt-c) + 0.5px));
}

/* H · Ring corners: blue quarter ring top right, warm quarter ring bottom left. */
.mt-acc-ring-corners {
	background-image:
		radial-gradient(circle at 100% 0, var(--mt-core) calc(var(--mt-r1) * 0.3 - 0.5px), transparent calc(var(--mt-r1) * 0.3 + 0.5px) calc(var(--mt-r1) * 0.5 - 0.5px), var(--mt-blue) calc(var(--mt-r1) * 0.5 + 0.5px) calc(var(--mt-r1) * 0.76 - 0.5px), transparent calc(var(--mt-r1) * 0.76 + 0.5px)),
		radial-gradient(circle at 0 100%, transparent calc(var(--mt-r2) * 0.44 - 0.5px), var(--mt-warm) calc(var(--mt-r2) * 0.44 + 0.5px) calc(var(--mt-r2) - 0.5px), transparent calc(var(--mt-r2) + 0.5px));
}

@media (max-width: 600px) {
	.mt-hero[class*="mt-acc-"] { --mt-r1: 64px; }
	.mt-acc-arcs { --mt-d: 26px; }
}

/* ==========================================================================
   Tile icons: hidden in any block set to hide them
   ========================================================================== */
.mt-tile-icon img { display: block; width: 36px; height: 36px; }
.mt-no-tiles .mt-tile-icon,
.mt-tile-icon.mt-no-tiles { display: none !important; }

/* ==========================================================================
   Header
   ========================================================================== */
.mt-header {
	background-color: var(--wp--preset--color--cream-light);
	border-bottom: 3px solid var(--wp--preset--color--ochre);
	padding-top: 14px;
	padding-bottom: 14px;
}
.mt-header-logo img {
	display: block;
	width: 300px;
	max-width: 62vw;
	height: auto;
}
.mt-header .wp-block-navigation {
	font-size: 0.96875rem;
	font-weight: 700;
	gap: 4px 26px;
	color: var(--wp--preset--color--cobalt); /* menu links inherit this */
}
.mt-header .wp-block-navigation a {
	color: var(--wp--preset--color--cobalt);
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}
.mt-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 6px; }
.mt-header .wp-block-navigation a[aria-current="page"] {
	color: var(--wp--preset--color--terracotta-dark);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}
.mt-header .mt-header-cta .wp-block-button__link { padding: 0 20px; font-size: 0.96875rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) {
	.mt-header .mt-header-cta { display: none; }
}

/* ==========================================================================
   Page header band and hero
   ========================================================================== */
.mt-page-header {
	background-color: var(--wp--preset--color--cream);
	padding-top: clamp(48px, 6vw, 84px) !important;
	padding-bottom: clamp(48px, 6vw, 84px) !important;
}
.mt-page-header h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 3.75rem); }
.mt-page-header .mt-lede { margin-top: 1.25rem; }
.mt-page-header .wp-block-post-date { color: var(--wp--preset--color--muted); }

.mt-hero {
	background-color: var(--wp--preset--color--cream);
	padding-top: clamp(56px, 7vw, 104px) !important;
	padding-bottom: clamp(56px, 7vw, 104px) !important;
}
.mt-hero-text { max-width: 820px; }
.mt-hero h1 { margin: 0; font-size: clamp(2.75rem, 5.6vw, 4.625rem); line-height: 1.05; }
.mt-hero .mt-lede { margin-top: 1.25rem; }
.mt-hero .wp-block-buttons { margin-top: 34px; gap: 12px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.mt-section {
	padding-top: clamp(56px, 7vw, 96px) !important;
	padding-bottom: clamp(56px, 7vw, 96px) !important;
}
.mt-section-alt { background-color: var(--wp--preset--color--cream); }

.mt-section-head { margin-bottom: 32px; gap: 16px 32px; }
.mt-section-head h2 { margin: 0; font-size: clamp(2rem, 3.6vw, 2.875rem); }
.mt-section-head p:not(.mt-eyebrow):not(.mt-more-link) { margin: 12px 0 0; max-width: 560px; color: var(--wp--preset--color--muted); }
.mt-section-head .mt-more-link { margin: 0; min-height: 44px; display: flex; align-items: center; }

/* Grids used by card sections (stay in step with the mockups' breakpoints). */
.mt-grid { display: grid; gap: 16px; }
.mt-grid > * { margin: 0 !important; min-width: 0; }
.mt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1040px) {
	.mt-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mt-grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) { .mt-grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .mt-grid-4 { grid-template-columns: minmax(0, 1fr); } }

/* White card */
.mt-card {
	background-color: var(--wp--preset--color--white);
	border: 1px solid #E4DCCB;
	border-radius: 10px;
	padding: 24px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.mt-card > * { margin: 0 !important; }
.mt-card:hover { border-color: var(--wp--preset--color--cobalt); }
.mt-card h3 { font-size: 1.4375rem; }
.mt-card p:not(.mt-go):not(.mt-card-type) { font-size: 0.9375rem; line-height: 1.55; color: var(--wp--preset--color--muted); }
.mt-card > .mt-go { margin-top: auto !important; padding-top: 6px; }

/* "Not sure where you fit?" card */
.mt-card-alt { background-color: var(--wp--preset--color--cobalt); border-color: var(--wp--preset--color--cobalt); }
.mt-card-alt:hover { background-color: var(--wp--preset--color--cobalt-dark); border-color: var(--wp--preset--color--cobalt-dark); }
.mt-card-alt h3, .mt-card-alt a { color: var(--wp--preset--color--cream); }
.mt-card-alt p:not(.mt-go) { color: #E9E3D6 !important; }

/* Resource card label */
.mt-card-type { font-size: 0.875rem; font-weight: 600; color: var(--wp--preset--color--terracotta-dark); }
.mt-resource { padding: 26px 28px; gap: 8px; }
.mt-resource h3 { line-height: 1.25; }

/* ==========================================================================
   Shared vision
   ========================================================================== */
.mt-vision { gap: clamp(32px, 5vw, 80px) !important; align-items: center !important; }
.mt-vision h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); margin: 0; }
.mt-vision-text p:not(.mt-eyebrow) { font-size: 1.1875rem; line-height: 1.6; }
.mt-img-ph {
	aspect-ratio: 4 / 3;
	border-radius: 10px;
	background-color: #ECE3D0;
	border: 1px dashed #BFB197;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
	color: var(--wp--preset--color--muted);
	font-size: 0.9375rem;
	line-height: 1.4;
	padding: 24px;
	box-sizing: border-box;
}
.mt-img-ph > * { margin: 0 !important; }
.mt-img-ph .mt-tile-icon img { width: 56px; height: 56px; }
.mt-vision-image img { border-radius: 10px; display: block; width: 100%; height: auto; }

/* Pillars: the line above each one follows the Accent color setting. */
.mt-pillars { margin-top: clamp(40px, 5vw, 64px) !important; gap: 32px !important; }
.mt-pillar {
	border-top: 3px solid var(--mt-mark, var(--wp--preset--color--ochre));
	padding-top: 20px;
}
.mt-pillar h3 { font-size: 1.5625rem; margin: 0; }
.mt-pillar p { margin: 8px 0 0; font-size: 1rem; line-height: 1.6; color: var(--wp--preset--color--muted); }

/* ==========================================================================
   Practice areas page: index sidebar and detail cards
   ========================================================================== */
.mt-split { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 64px); align-items: flex-start; }
.mt-split > * { margin: 0 !important; }
.mt-split-aside { flex: 1 1 260px; max-width: 300px; }
.mt-split-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.mt-split-main > * { margin: 0 !important; }
.mt-split-main.mt-faq { gap: clamp(40px, 5vw, 64px); }
@media (max-width: 900px) { .mt-split-aside { max-width: none; flex-basis: 100%; } }

.mt-index { list-style: none; margin: 0; padding: 0; border-top: 1px solid #E4DCCB; }
.mt-index li { margin: 0; }
.mt-index a {
	display: flex;
	align-items: center;
	min-height: 50px;
	padding: 8px 0;
	border-bottom: 1px solid #E4DCCB;
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.96875rem;
}
.mt-index a:hover { color: var(--wp--preset--color--cobalt); }
@media (max-width: 900px) and (min-width: 641px) { .mt-index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }

.mt-help-box { margin-top: 28px !important; padding: 24px; background-color: var(--wp--preset--color--cream); border-radius: 10px; }
.mt-help-box > * { margin: 0 !important; }
.mt-help-box h2 { font-size: 1.375rem; }
.mt-help-box p { margin-top: 8px !important; font-size: 0.96875rem; line-height: 1.55; }
.mt-help-box p:last-child { margin-top: 14px !important; font-weight: 600; font-size: 0.9375rem; }

.mt-practice {
	background-color: var(--wp--preset--color--white);
	border: 1px solid #E4DCCB;
	border-radius: 10px;
	padding: clamp(24px, 3vw, 40px);
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 8px 26px;
	scroll-margin-top: 24px;
}
.mt-practice > * { margin: 0 !important; }
.mt-practice > .mt-tile-icon img { width: 52px; height: 52px; }
.mt-no-tiles .mt-practice,
.mt-practice.mt-no-tiles { grid-template-columns: minmax(0, 1fr); }
.mt-practice h2 { font-size: clamp(1.6875rem, 2.6vw, 2.0625rem); margin-top: 7px; }
.mt-practice-desc { margin: 12px 0 0 !important; max-width: 640px; }
.mt-ex-label { margin: 22px 0 10px !important; font-size: 0.9375rem; font-weight: 600; color: var(--wp--preset--color--muted); }
.mt-examples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.mt-examples li { position: relative; padding-left: 20px; font-size: 0.96875rem; line-height: 1.5; margin: 0; }
.mt-examples li::before {
	content: "";
	position: absolute;
	left: 1px;
	top: 0.5em;
	width: 7px;
	height: 7px;
	background: var(--mt-mark, var(--wp--preset--color--ochre));
	transform: rotate(45deg);
}
@media (max-width: 640px) {
	.mt-practice { grid-template-columns: minmax(0, 1fr); }
	.mt-examples { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   FAQ (Details blocks)
   ========================================================================== */
.mt-faq-group { scroll-margin-top: 24px; }
.mt-faq-group > h2 { font-size: clamp(1.75rem, 2.8vw, 2.125rem); margin: 0; }
.mt-faq-group > .wp-block-separator.mt-rule { margin: 18px 0 22px !important; }
.mt-faq-group > .wp-block-details { margin: 12px 0 0; }
.mt-faq-group > .wp-block-separator + .wp-block-details { margin-top: 0; }
.wp-block-details.mt-qa,
.mt-faq-group .wp-block-details {
	background-color: var(--wp--preset--color--white);
	border: 1px solid #E4DCCB;
	border-radius: 10px;
	padding: 0;
}
.mt-faq-group .wp-block-details[open] { border-color: #C9BCA2; }
.mt-faq-group .wp-block-details summary {
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-height: 68px;
	padding: 16px 24px;
	box-sizing: border-box;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.3125rem;
	font-weight: 500;
	line-height: 1.3;
}
.mt-faq-group .wp-block-details summary::-webkit-details-marker { display: none; }
.mt-faq-group .wp-block-details summary::after {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	background: currentColor;
	color: var(--wp--preset--color--cobalt);
	-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' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%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' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform 0.2s ease;
}
.mt-faq-group .wp-block-details[open] summary::after { transform: rotate(45deg); }
.mt-faq-group .wp-block-details summary:hover { color: var(--wp--preset--color--cobalt); }
.mt-faq-group .wp-block-details > :not(summary) { margin: 0 24px; max-width: 720px; }
.mt-faq-group .wp-block-details > :not(summary) + :not(summary) { margin-top: 12px; }
.mt-faq-group .wp-block-details > :last-child { margin-bottom: 24px; }
@media (prefers-reduced-motion: reduce) { .mt-faq-group .wp-block-details summary::after { transition: none; } }
@media (max-width: 640px) {
	.mt-faq-group .wp-block-details summary { font-size: 1.1875rem; padding: 14px 18px; }
	.mt-faq-group .wp-block-details > :not(summary) { margin-left: 18px; margin-right: 18px; }
}

/* ==========================================================================
   Attorneys
   ========================================================================== */
/* Home page cards */
.mt-person {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 28px;
	padding: 24px;
	background-color: var(--wp--preset--color--white);
	border: 1px solid #E4DCCB;
	border-radius: 10px;
	align-items: start;
}
.mt-person > * { margin: 0 !important; }
.mt-person .mt-headshot img { border-radius: 8px; }
.mt-person h3 { font-size: 1.875rem; margin: 0; }
.mt-person-body > * { margin: 0; }
.mt-person-body > p { margin-top: 12px; font-size: 0.96875rem; line-height: 1.6; }
.mt-person-body > .mt-areas { margin-top: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--wp--preset--color--terracotta-dark); }
.mt-person-body > .mt-go { margin-top: 6px; min-height: 44px; display: flex; align-items: center; }
@media (max-width: 560px) {
	.mt-person { grid-template-columns: minmax(0, 1fr); }
	.mt-person .mt-headshot { width: 150px; }
}

/* Name with pronouns beside it */
.mt-name-row { gap: 6px 16px !important; align-items: baseline !important; }
.mt-name-row > * { margin: 0 !important; }
.mt-pronouns { font-size: 0.9375rem; color: var(--wp--preset--color--muted); }
.mt-person .mt-pronouns { font-size: 0.90625rem; }

.mt-headshot img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; border-radius: 10px; }

/* Attorneys page profile: photo / bio / at-a-glance */
.mt-profile {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr) 300px;
	grid-template-areas: "photo main facts";
	gap: clamp(32px, 4vw, 56px);
	align-items: start;
	scroll-margin-top: 24px;
}
.mt-profile > * { margin: 0 !important; }
.mt-profile > .mt-headshot { grid-area: photo; }
.mt-profile > .mt-profile-main { grid-area: main; }
.mt-profile > .mt-facts { grid-area: facts; }
.mt-profile-main > * { margin-top: 0; }
.mt-profile .mt-name-row h2 { font-size: clamp(2.25rem, 3.8vw, 3rem); }
.mt-bio p { margin: 0 0 18px; }
.mt-bio p:first-child { font-size: 1.21875rem; line-height: 1.55; }
.mt-profile .wp-block-buttons { margin-top: 30px; }
@media (max-width: 1120px) {
	.mt-profile { grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "photo main" "facts main"; }
}
@media (max-width: 760px) {
	.mt-profile { grid-template-columns: minmax(0, 1fr); grid-template-areas: "photo" "main" "facts"; }
	.mt-profile > .mt-headshot { width: 220px; }
}

/* At-a-glance list. The only place that uses capitals for labels. */
.mt-facts {
	list-style: none;
	margin: 0;
	padding: 6px 24px;
	background-color: var(--wp--preset--color--white);
	border-top: 3px solid var(--mt-mark, var(--wp--preset--color--terracotta));
	border-radius: 0 0 10px 10px;
	font-size: 0.9375rem;
	line-height: 1.5;
}
.mt-facts li { padding: 14px 0; margin: 0; border-bottom: 1px solid #ECE5D7; }
.mt-facts li:last-child { border-bottom: 0; }
.mt-facts strong {
	display: block;
	font-size: 0.71875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 3px;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.mt-contact { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 56px); align-items: flex-start; }
.mt-contact > * { margin: 0 !important; }
.mt-form-card {
	flex: 999 1 560px;
	min-width: 0;
	background-color: var(--wp--preset--color--white);
	border: 1px solid #E4DCCB;
	border-radius: 10px;
	padding: clamp(24px, 4vw, 48px);
}
.mt-form-card h2 { font-size: clamp(1.75rem, 2.8vw, 2.125rem); margin-top: 0; }
.mt-contact-aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; }
.mt-contact-aside > * { margin: 0 !important; }
.mt-side-card { background-color: var(--wp--preset--color--white); border: 1px solid #E4DCCB; border-radius: 10px; padding: 28px; }
.mt-side-card h2 { font-size: 1.5rem; margin: 0 0 16px; }
.mt-dl { font-size: 0.96875rem; line-height: 1.5; margin: 0 0 14px; }
.mt-dl:last-child { margin-bottom: 0; }
.mt-dl strong { display: block; font-size: 0.875rem; font-weight: 600; color: var(--wp--preset--color--muted); margin-bottom: 3px; }
.mt-note-card {
	background-color: var(--wp--preset--color--white);
	border-top: 3px solid var(--mt-mark, var(--wp--preset--color--terracotta));
	border-radius: 0 0 10px 10px;
	padding: 24px 28px;
}
.mt-note-card h2 { font-size: 1.3125rem; margin: 0; }
.mt-note-card p { margin: 8px 0 0; font-size: 0.9375rem; line-height: 1.55; }
.mt-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: mt-step; font-size: 0.96875rem; line-height: 1.5; }
.mt-steps li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; counter-increment: mt-step; margin: 0; }
.mt-steps li::before {
	content: counter(mt-step);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--cobalt);
	font-weight: 700;
	font-size: 0.875rem;
}

/* ==========================================================================
   Call to action
   ========================================================================== */
.mt-cta {
	background-color: var(--wp--preset--color--cobalt);
	color: var(--wp--preset--color--cream);
	padding-top: clamp(56px, 7vw, 88px) !important;
	padding-bottom: clamp(56px, 7vw, 88px) !important;
}
.mt-cta-row { gap: 28px 48px !important; }
.mt-cta-row > * { margin: 0 !important; }
.mt-cta :where(h1, h2, h3) { color: var(--wp--preset--color--cream); margin: 0; font-size: clamp(1.875rem, 3.4vw, 2.625rem); }
.mt-cta .mt-eyebrow { color: var(--wp--preset--color--ochre); }
.mt-cta p:not(.mt-eyebrow) { margin: 14px 0 0; max-width: 620px; color: #E9E3D6; }
.mt-cta .wp-block-button__link {
	background: var(--wp--preset--color--cream);
	color: var(--wp--preset--color--cobalt);
}
.mt-cta .wp-block-button__link:hover,
.mt-cta .wp-block-button__link:focus {
	background: var(--wp--preset--color--ochre);
	color: var(--wp--preset--color--ink);
}
.mt-cta a:not(.wp-block-button__link) { color: var(--wp--preset--color--cream); }

/* ==========================================================================
   Divider above the footer: two-tone bar
   ========================================================================== */
.mt-divider {
	height: 8px;
	min-height: 8px;
	padding: 0 !important;
	background: linear-gradient(90deg, var(--wp--preset--color--ochre) 0 72%, var(--wp--preset--color--terracotta) 72% 100%);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.mt-footer {
	background-color: var(--wp--preset--color--cobalt-dark);
	color: var(--wp--preset--color--cream);
	padding-top: clamp(56px, 7vw, 80px) !important;
	padding-bottom: 32px !important;
	font-size: 0.90625rem;
}
.mt-footer :where(h2, h3, h4) {
	color: var(--wp--preset--color--cream);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	margin: 0 0 10px;
}
.mt-footer p { margin: 0; }
.mt-footer a { color: var(--wp--preset--color--cream); }
.mt-footer a:hover { color: var(--wp--preset--color--ochre); }
.mt-footer-logo img { width: 280px; max-width: 100%; height: auto; display: block; }
.mt-footer .wp-block-navigation { font-size: 0.90625rem; font-weight: 400; gap: 0; margin-top: -10px; }
.mt-footer .wp-block-navigation a { min-height: 40px; display: inline-flex; align-items: center; text-decoration: underline; }
.mt-footer-legal {
	border-top: 1px solid rgba(244, 238, 225, 0.25);
	padding-top: 24px;
	margin-top: 48px !important;
	color: #D9D4C8;
	gap: 8px;
}
.mt-footer-legal p { font-size: 0.8125rem; }

/* ==========================================================================
   Tile band (optional block style for Group; not used in the patterns)
   ========================================================================== */
.wp-block-group.is-style-tile-band {
	min-height: 56px;
	padding: 0 !important;
	background-image: url("assets/images/tile-repeat.png");
	background-repeat: repeat-x;
	background-position: center;
	background-size: 56px 56px;
}

/* ==========================================================================
   Posts
   ========================================================================== */
.mt-post-list .wp-block-post {
	padding-bottom: var(--wp--preset--spacing--40);
	border-bottom: 1px solid #E4DCCB;
}
.mt-post-list .wp-block-post-title { margin-bottom: 0.25rem; }

/* ==========================================================================
   Small screens
   ========================================================================== */
@media (max-width: 860px) {
	.mt-vision { flex-wrap: wrap !important; }
	.mt-vision > .wp-block-column { flex-basis: 100% !important; }
}
@media (max-width: 781px) {
	.mt-cta .wp-block-buttons { justify-content: flex-start; }
	.mt-pillars { gap: 24px !important; }
}
