/*
Theme Name: SBD Modern
Theme URI: https://www.shebitzlaw.com/
Author: ASAP WebWorks
Description: Modern, conservative-professional redesign for Shebitz Berman & Delforte, P.C. Static hero, serif headings, generous whitespace, responsive throughout. Same content and menu structure as the faithful clone.
Version: 1.0.0
License: Proprietary - client work
Text Domain: sbd-modern
*/

/* ==================================================================
 * Tokens
 * ================================================================== */

:root {
	--ink:        #12253c;   /* deep navy, the primary brand colour   */
	--ink-2:      #24405f;
	--ink-soft:   #3d5470;
	--body:       #384654;
	--muted:      #6c7a89;
	--accent:     #0f6f9e;   /* a deepened version of the firm's blue */
	--accent-dk:  #0b567b;
	--gold:       #b08d4f;   /* restrained warm accent for rules      */
	--paper:      #ffffff;
	--shell:      #f6f5f2;   /* warm off-white page ground            */
	--line:       #e3e0da;
	--line-soft:  #eeece7;

	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--wrap:  1180px;
	--radius: 3px;
	--shadow: 0 1px 2px rgba(18, 37, 60, .05), 0 8px 24px rgba(18, 37, 60, .06);
}

/* ==================================================================
 * Base
 * ================================================================== */

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

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

body {
	margin: 0;
	background: var(--paper);
	color: var(--body);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }

h1, h2, h3, h4 {
	font-family: var(--serif);
	color: var(--ink);
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 .5em;
	letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.1em; }

.m-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 28px;
}

.m-eyebrow {
	margin: 0 0 .6em;
	font-family: var(--sans);
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold);
}

.m-eyebrow--light { color: rgba(255, 255, 255, .75); }

.m-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 12px 18px;
	background: var(--paper);
	color: var(--accent);
}
.m-skip:focus { left: 12px; top: 12px; }

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

/* ==================================================================
 * Buttons
 * ================================================================== */

.m-btn {
	display: inline-block;
	padding: 13px 26px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-family: var(--sans);
	font-size: .93rem;
	font-weight: 600;
	letter-spacing: .01em;
	text-decoration: none;
	cursor: pointer;
	transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.m-btn + .m-btn { margin-left: 10px; }
.m-btn:hover { text-decoration: none; }

.m-btn--primary { background: var(--accent); color: #fff; }
.m-btn--primary:hover { background: var(--accent-dk); color: #fff; }

.m-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.m-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.m-btn--light { background: #fff; color: var(--ink); }
.m-btn--light:hover { background: var(--shell); color: var(--ink); }

/* ==================================================================
 * Header
 * ================================================================== */

.m-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.m-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	min-height: 92px;
}

.m-logo { display: block; flex: 0 0 auto; }
.m-logo img { display: block; width: 210px; height: auto; }

.m-nav { display: flex; align-items: center; gap: 26px; }

.m-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.m-nav__list > li { position: relative; }

.m-nav__list > li > a {
	display: block;
	padding: 12px 14px;
	font-size: .92rem;
	font-weight: 600;
	color: var(--ink);
	border-radius: var(--radius);
	white-space: nowrap;
}

.m-nav__list > li > a:hover { background: var(--shell); text-decoration: none; }

.m-nav__list > li.current-menu-item > a,
.m-nav__list > li.current-menu-ancestor > a,
.m-nav__list > li.current-menu-parent > a {
	color: var(--accent);
	box-shadow: inset 0 -2px 0 var(--accent);
	border-radius: 0;
}

.m-phone {
	font-size: .9rem;
	font-weight: 600;
	color: var(--ink);
	white-space: nowrap;
}
.m-phone:hover { color: var(--accent); text-decoration: none; }

/* --- Dropdowns ---------------------------------------------------
 * FIX-2: the panel is wide enough for "Developmental Disability
 * Agencies" and every row wraps instead of being clipped.
 * ---------------------------------------------------------------- */

.m-nav__list ul {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 70;
	min-width: 276px;
	max-width: 340px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .14s ease, transform .14s ease, visibility .14s;
}

.m-nav__list > li:last-child > ul { left: auto; right: 0; }

.m-nav__list li:hover > ul,
.m-nav__list li:focus-within > ul {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.m-nav__list ul a {
	display: block;
	padding: 9px 12px;
	border-radius: var(--radius);
	font-size: .89rem;
	font-weight: 500;
	line-height: 1.35;          /* wrap, do not clip */
	white-space: normal;
	color: var(--body);
}

.m-nav__list ul a:hover { background: var(--shell); color: var(--accent); text-decoration: none; }

.m-nav__list ul li.current-menu-item > a,
.m-nav__list ul li.current-menu-ancestor > a { color: var(--accent); font-weight: 600; }

/* third level: indent inside the same panel rather than fly out */
.m-nav__list ul ul {
	position: static;
	min-width: 0;
	max-width: none;
	margin: 0 0 4px 10px;
	padding: 0 0 0 10px;
	border: 0;
	border-left: 1px solid var(--line);
	border-radius: 0;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
}

.m-nav__list ul ul a { font-size: .84rem; color: var(--muted); padding: 6px 10px; }

/* --- Burger ------------------------------------------------------ */

.m-burger {
	display: none;
	align-items: center;
	gap: 9px;
	padding: 10px 14px;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink);
	font-family: var(--sans);
	font-size: .86rem;
	font-weight: 600;
	cursor: pointer;
}

.m-burger__bars,
.m-burger__bars::before,
.m-burger__bars::after {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ink);
	transition: transform .18s ease, opacity .18s ease;
}
.m-burger__bars { position: relative; }
.m-burger__bars::before,
.m-burger__bars::after { content: ""; position: absolute; left: 0; }
.m-burger__bars::before { top: -6px; }
.m-burger__bars::after { top: 6px; }

.m-burger[aria-expanded="true"] .m-burger__bars { background: transparent; }
.m-burger[aria-expanded="true"] .m-burger__bars::before { transform: translateY(6px) rotate(45deg); }
.m-burger[aria-expanded="true"] .m-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ==================================================================
 * Hero
 * ================================================================== */

.m-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 560px;
	padding: 90px 0;
	overflow: hidden;
	background: var(--ink);
}

.m-hero__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 38%;
	background-repeat: no-repeat;
}

.m-hero__scrim {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(10, 24, 40, .93) 0%, rgba(10, 24, 40, .78) 42%, rgba(10, 24, 40, .35) 78%, rgba(10, 24, 40, .22) 100%);
}

.m-hero__inner { position: relative; max-width: 860px; }

.m-hero__eyebrow {
	margin: 0 0 18px;
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .72);
}

.m-hero__title {
	margin: 0 0 22px;
	max-width: 14ch;
	color: #fff;
	font-size: clamp(2.4rem, 5.4vw, 4.1rem);
	line-height: 1.06;
	letter-spacing: -.02em;
}

.m-hero__lead {
	margin: 0 0 32px;
	max-width: 62ch;
	color: rgba(255, 255, 255, .9);
	font-size: clamp(1.02rem, 1.5vw, 1.2rem);
	line-height: 1.6;
}

.m-hero__actions { margin: 0; }

/* ==================================================================
 * Sections
 * ================================================================== */

.m-section { padding: 88px 0; }
.m-section--areas { background: var(--shell); }
.m-section--about { background: var(--paper); }
.m-section--news { background: var(--shell); }

.m-section__head { margin-bottom: 44px; max-width: 62ch; }

.m-section__head--row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	max-width: none;
}

.m-section__title { margin: 0; }

.m-link-more {
	flex: 0 0 auto;
	font-size: .92rem;
	font-weight: 600;
	white-space: nowrap;
}

/* --- Practice area grid ------------------------------------------ */

.m-areas {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.m-area {
	padding: 28px 26px 26px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-top: 3px solid var(--ink);
	border-radius: var(--radius);
}

.m-section--areas .m-area { box-shadow: var(--shadow); }

.m-area__title { margin: 0 0 .45em; font-size: 1.2rem; }
.m-area__title a { color: var(--ink); }
.m-area__title a:hover { color: var(--accent); text-decoration: none; }

.m-area__text { margin: 0 0 .9em; font-size: .95rem; color: var(--muted); }

.m-area__kids {
	margin: 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--line-soft);
	list-style: none;
	font-size: .88rem;
}
.m-area__kids li { padding: 3px 0; }

.m-areas--stack {
	grid-template-columns: 1fr;
	gap: 0;
	margin-top: 34px;
}
.m-areas--stack .m-area {
	border: 0;
	border-top: 1px solid var(--line);
	border-radius: 0;
	box-shadow: none;
	padding: 26px 0;
	background: transparent;
}

/* --- About ------------------------------------------------------- */

.m-about {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 62px;
	align-items: start;
}

.m-quote {
	margin: 0 0 34px;
	padding: 26px 28px;
	background: var(--shell);
	border-left: 3px solid var(--gold);
	border-radius: 0 var(--radius) var(--radius) 0;
	font-family: var(--serif);
	font-size: 1.06rem;
	font-style: italic;
	line-height: 1.55;
	color: var(--ink-soft);
}
.m-quote p:last-child { margin-bottom: 0; }

.m-attorneys-teaser h3 {
	margin: 0 0 .6em;
	padding-bottom: .5em;
	border-bottom: 1px solid var(--line);
	font-size: 1.05rem;
}
.m-attorneys-teaser ul { margin: 0; padding: 0; list-style: none; }
.m-attorneys-teaser li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.m-attorneys-teaser li:last-child { border-bottom: 0; }

/* --- Cards (chalkboard) ------------------------------------------
 * FIX-3: the chalkboard index is a responsive card grid in this
 * variant, keeping title, date and a similar excerpt length.
 * ---------------------------------------------------------------- */

.m-cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.m-card {
	display: flex;
	flex-direction: column;
	padding: 26px 24px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform .16s ease, box-shadow .16s ease;
}

.m-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(18, 37, 60, .06), 0 14px 32px rgba(18, 37, 60, .1);
}

.m-card__date {
	display: block;
	margin-bottom: 10px;
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gold);
}

.m-card__title { margin: 0 0 .6em; font-size: 1.14rem; line-height: 1.3; }
.m-card__title a { color: var(--ink); }
.m-card__title a:hover { color: var(--accent); text-decoration: none; }

.m-card__text { margin: 0 0 1.1em; font-size: .93rem; color: var(--muted); }

.m-card__more {
	margin-top: auto;
	font-size: .87rem;
	font-weight: 600;
}

.m-chalkwrap { padding: 62px 28px 88px; }

/* --- CTA band ---------------------------------------------------- */

.m-cta { padding: 70px 0; background: var(--ink); color: rgba(255, 255, 255, .82); }
.m-cta h2 { color: #fff; margin-bottom: .3em; }
.m-cta p { margin: 0; }

.m-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 34px;
}
.m-cta__actions { flex: 0 0 auto; margin: 0; }

/* ==================================================================
 * Interior pages
 * ================================================================== */

.m-pagehead {
	padding: 46px 0 42px;
	background: var(--ink);
	color: #fff;
	border-bottom: 3px solid var(--gold);
}

.m-pagehead__title { margin: 0; color: #fff; }

.m-crumbs { margin-bottom: 18px; font-size: .82rem; }
.m-crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.m-crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .38); }
.m-crumbs a { color: rgba(255, 255, 255, .72); }
.m-crumbs a:hover { color: #fff; }
.m-crumbs span { color: rgba(255, 255, 255, .55); }

.m-layout {
	display: grid;
	grid-template-columns: 268px minmax(0, 1fr);
	gap: 64px;
	padding: 62px 28px 92px;
	align-items: start;
}

.m-layout--full { grid-template-columns: minmax(0, 1fr); }
.m-layout--article { grid-template-columns: minmax(0, 1fr); max-width: 800px; }

/* --- Side menu ---------------------------------------------------
 * FIX-1: this renders the Attorneys sub-items, so the Attorneys page
 * lists the four attorneys instead of showing an empty box.
 * FIX-2: long labels wrap.
 * ---------------------------------------------------------------- */

.m-sidenav { position: sticky; top: 116px; }

.m-sidenav__title {
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--ink);
	font-size: 1.02rem;
}

.m-sidenav__list, .m-sidenav ul { margin: 0; padding: 0; list-style: none; }

.m-sidenav li { border-bottom: 1px solid var(--line-soft); }
.m-sidenav > nav > ul > li:last-child { border-bottom: 0; }

.m-sidenav a {
	display: block;
	padding: 11px 2px;
	font-size: .93rem;
	font-weight: 500;
	line-height: 1.4;       /* wraps fully */
	color: var(--body);
}
.m-sidenav a:hover { color: var(--accent); text-decoration: none; }

.m-sidenav li.current-menu-item > a,
.m-sidenav li.current-menu-ancestor > a {
	color: var(--accent);
	font-weight: 700;
}

.m-sidenav ul ul {
	margin: 0 0 8px 4px;
	padding-left: 14px;
	border-left: 2px solid var(--line);
}
.m-sidenav ul ul li { border-bottom: 0; }
.m-sidenav ul ul a { padding: 7px 2px; font-size: .87rem; color: var(--muted); }

/* --- Prose ------------------------------------------------------- */

.m-content { min-width: 0; }

.m-prose { max-width: 72ch; font-size: 1.03rem; }
.m-prose h2 { margin-top: 1.7em; }
.m-prose h3 { margin-top: 1.5em; }
.m-prose ul, .m-prose ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.m-prose li { margin-bottom: .4em; }
.m-prose a { text-decoration: underline; text-underline-offset: 2px; }
.m-prose blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--gold);
	font-family: var(--serif);
	font-style: italic;
	color: var(--ink-soft);
}
.m-prose img { border-radius: var(--radius); }

.m-portrait { margin: 0 0 28px; float: right; max-width: 250px; margin-left: 32px; }
.m-portrait img { border-radius: var(--radius); }

.m-childlinks { list-style: none; padding: 0; }
.m-childlinks li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }

.m-article__date {
	margin: 0 0 1.4em;
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--gold);
}

/* --- People ------------------------------------------------------ */

.m-people { margin: 34px 0 0; padding: 0; list-style: none; }

.m-person {
	display: flex;
	gap: 28px;
	padding: 30px 0;
	border-top: 1px solid var(--line);
}

.m-person__photo { flex: 0 0 150px; }
.m-person__photo img { border-radius: var(--radius); }
.m-person__name { margin: 0 0 .35em; font-size: 1.3rem; }
.m-person__name a { color: var(--ink); }
.m-person__name a:hover { color: var(--accent); text-decoration: none; }
.m-person__bio { margin: 0 0 .8em; color: var(--muted); font-size: .96rem; }

/* --- Prev / next ------------------------------------------------- */

.m-prevnext {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin: 52px 0 26px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}
.m-prevnext__item { max-width: 46%; font-size: .93rem; font-weight: 600; }
.m-prevnext__item--next { text-align: right; margin-left: auto; }
.m-prevnext__item span {
	display: block;
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 4px;
}

.m-backlink { font-size: .92rem; font-weight: 600; }

/* --- Pagination -------------------------------------------------- */

.pagination { margin-top: 44px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 9px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-align: center;
	font-size: .9rem;
	font-weight: 600;
	color: var(--body);
}
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==================================================================
 * Contact form (markup comes from the SBD Content plugin)
 * ================================================================== */

.sbd-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.sbd-form-wrap { max-width: 720px; margin-top: 34px; }

.sbd-form .sbd-row-2 { display: flex; gap: 20px; flex-wrap: wrap; }
.sbd-form .sbd-row-2 > .sbd-field { flex: 1 1 230px; min-width: 0; }
.sbd-form .sbd-field { margin: 0 0 20px; }

.sbd-form label, .sbd-form legend {
	display: block;
	margin-bottom: 7px;
	font-family: var(--sans);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--ink);
}

.sbd-form .sbd-req { color: #b4443a; }

.sbd-form input[type="text"],
.sbd-form input[type="tel"],
.sbd-form input[type="email"],
.sbd-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	font-family: var(--sans);
	font-size: 1rem;
	color: var(--body);
	transition: border-color .14s ease, box-shadow .14s ease;
}

.sbd-form input:focus, .sbd-form textarea:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(15, 111, 158, .12);
	outline: 0;
}

.sbd-form fieldset.sbd-radios { border: 0; padding: 0; margin: 0 0 20px; }
.sbd-form .sbd-radio { display: inline-flex; align-items: center; gap: 7px; margin-right: 22px; font-weight: 500; }

.sbd-button {
	display: inline-block;
	padding: 13px 30px;
	border: 0;
	border-radius: var(--radius);
	background: var(--accent);
	color: #fff;
	font-family: var(--sans);
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .16s ease;
}
.sbd-button:hover { background: var(--accent-dk); }

.sbd-form-notice {
	padding: 16px 20px;
	margin-bottom: 26px;
	border-radius: var(--radius);
	border-left: 3px solid;
}
.sbd-form-notice p { margin: 0; }
.sbd-form-success { background: #eef6f0; border-color: #2f7d4f; color: #1e5734; }
.sbd-form-error { background: #fcefee; border-color: #b4443a; color: #8a3229; }
.sbd-form-error ul { margin: 10px 0 0 18px; }

/* ==================================================================
 * Footer
 * ================================================================== */

.m-footer { background: var(--ink); color: rgba(255, 255, 255, .72); font-size: .94rem; }

.m-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 54px;
	padding-top: 68px;
	padding-bottom: 54px;
}

.m-footer__logo {
	width: 210px;
	margin-bottom: 20px;
	padding: 12px 16px;
	background: #fff;
	border-radius: var(--radius);
}

.m-footer__blurb { margin: 0; max-width: 46ch; color: rgba(255, 255, 255, .66); }

.m-footer h3 {
	margin: 0 0 1em;
	color: #fff;
	font-size: .8rem;
	font-family: var(--sans);
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
}

.m-footer address { font-style: normal; line-height: 1.9; }
.m-footer a { color: rgba(255, 255, 255, .86); }
.m-footer a:hover { color: #fff; }

.m-footer__links { margin: 0; padding: 0; list-style: none; line-height: 2.1; }

.m-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }

.m-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-top: 22px;
	padding-bottom: 26px;
	font-size: .86rem;
	color: rgba(255, 255, 255, .55);
}
.m-footer__bottom-inner p { margin: 0; }
.m-footer__adv { font-style: italic; margin-left: 10px; }
.m-footer__legal a { margin-left: 20px; }
.m-footer__legal a:first-child { margin-left: 0; }

/* ==================================================================
 * Responsive
 * ================================================================== */

@media (max-width: 1080px) {
	.m-areas, .m-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.m-layout { grid-template-columns: 236px minmax(0, 1fr); gap: 44px; }
	.m-nav__list > li > a { padding: 12px 10px; font-size: .88rem; }
	.m-logo img { width: 180px; }
}

@media (max-width: 900px) {
	.m-about { grid-template-columns: minmax(0, 1fr); gap: 42px; }
	.m-footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
	.m-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.m-burger { display: inline-flex; }

	.m-nav {
		position: fixed;
		inset: 92px 0 auto 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		max-height: calc(100vh - 92px);
		padding: 12px 22px 28px;
		overflow-y: auto;
		background: var(--paper);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow);
	}

	.m-nav.is-open { display: flex; }

	.m-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.m-nav__list > li { border-bottom: 1px solid var(--line-soft); }
	.m-nav__list > li > a { padding: 14px 2px; font-size: 1rem; }

	.m-nav__list ul,
	.m-nav__list ul ul {
		position: static;
		min-width: 0;
		max-width: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		border: 0;
		border-left: 2px solid var(--line);
		border-radius: 0;
		box-shadow: none;
		margin: 0 0 10px 4px;
		padding: 0 0 0 14px;
	}

	.m-nav__actions { padding: 16px 2px 0; }

	.m-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.m-sidenav { position: static; }
	.m-cta__inner { flex-direction: column; align-items: flex-start; }
	.m-section__head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
	body { font-size: 16px; }
	.m-wrap { padding: 0 20px; }
	.m-section { padding: 58px 0; }
	.m-hero { min-height: 460px; padding: 64px 0; }
	.m-areas, .m-cards { grid-template-columns: minmax(0, 1fr); }
	.m-chalkwrap { padding: 44px 20px 64px; }
	.m-layout { padding: 44px 20px 64px; }
	.m-person { flex-direction: column; gap: 18px; }
	.m-person__photo { flex: 0 0 auto; max-width: 190px; }
	.m-portrait { float: none; margin: 0 0 24px; max-width: 100%; }
	.m-btn { display: block; text-align: center; }
	.m-btn + .m-btn { margin-left: 0; margin-top: 10px; }
	.m-footer__top { grid-template-columns: minmax(0, 1fr); }
	.m-prevnext { flex-direction: column; }
	.m-prevnext__item, .m-prevnext__item--next { max-width: none; text-align: left; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; }
	.m-card:hover { transform: none; }
}
