/*
 * TMDSB – site-wide styles Elementor (free) cannot express through its controls.
 * Loaded on every front-end page. Scoped to body.tmdsb-page.
 * Page-specific styles: home.css (front page) and pages.css (all other pages).
 */

/* ---------- Base resets against theme styles ---------- */
body.tmdsb-page { background: #fff; margin: 0; overflow-x: clip; }
.tmdsb-page a { text-decoration: none; }
.tmdsb-page .elementor-widget-text-editor p { margin-block: 0; }
.tmdsb-page .elementor-widget-image img,
.tmdsb-page .elementor-widget-image a { display: block; }
.tmdsb-page .tmdsb-icon-img img { width: 100%; height: auto; }
/* Twenty Twenty-Five balances heading lines; Figma uses normal wrapping. */
.tmdsb-page .elementor-heading-title,
.tmdsb-page .elementor-widget-text-editor { text-wrap: wrap; }
/* <span> headings must not sit in a line box sized by the theme's body font */
.tmdsb-page span.elementor-heading-title { display: block; }

/* Containers that should hug their content instead of Elementor's default 100% width */
.tmdsb-page .tmdsb-nav,
.tmdsb-page .tmdsb-logo,
.tmdsb-page .tmdsb-wordmark,
.tmdsb-page .tmdsb-guides-head,
.tmdsb-page .tmdsb-backtop,
.tmdsb-page .tmdsb-tab-lists,
.tmdsb-page .tmdsb-legal { --width: auto; width: auto; }

/* 3px top accent line */
.tmdsb-page .tmdsb-topbar { border-top-color: var(--e-global-color-tmblue1, #1A63A8) !important; }

/* Stroke icons (SVG) must not inherit Elementor's fill colour */
.tmdsb-page .elementor-icon-list-icon svg,
.tmdsb-page .tmdsb-link-btn svg { fill: none !important; }

/* Keyboard focus */
.tmdsb-page a:focus-visible,
.tmdsb-page [role="button"]:focus-visible,
.tmdsb-page button:focus-visible { outline: 2px solid var(--e-global-color-tmblue1, #1A63A8); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header / mobile menu ---------- */
.tmdsb-page .tmdsb-header { position: relative; background: #fff; }
.tmdsb-page .tmdsb-logo { color: inherit; }
.tmdsb-page .tmdsb-menu-toggle .elementor-icon { display: flex; cursor: pointer; }
body.tmdsb-page:not(.elementor-editor-active) .tmdsb-mobile-menu:not(.is-open) { display: none !important; }
@media (max-width: 1024px) {
	.tmdsb-page .tmdsb-mobile-menu { border-top: 1px solid rgba(26, 99, 168, 0.15); margin-top: 14px; }
}

/* ---------- Hero titles (Home + inner page heroes): italic bronze emphasis ---------- */
.tmdsb-page .tmdsb-hero-title em { font-style: italic; color: var(--e-global-color-tmbrnz1, #B07912); }

/* ---------- Icon lists: icon→text gap comes only from Elementor's "Text Indent" ---------- */
.tmdsb-page .tmdsb-hero-bullets .elementor-icon-list-text,
.tmdsb-page .tmdsb-topic-list .elementor-icon-list-text { padding-inline-start: 0; }
.tmdsb-page .tmdsb-hero-bullets .elementor-icon-list-icon,
.tmdsb-page .tmdsb-topic-list .elementor-icon-list-icon { width: auto; min-width: 0; flex-shrink: 0; }
.tmdsb-page .tmdsb-hero-bullets .elementor-icon-list-icon svg,
.tmdsb-page .tmdsb-topic-list .elementor-icon-list-icon svg { margin: 0 !important; }
.tmdsb-page .tmdsb-hero-bullets .elementor-icon-list-items { column-gap: 24px; row-gap: 14px; }
.tmdsb-page .tmdsb-hero-bullets .elementor-icon-list-item { margin: 0 !important; }
.tmdsb-page .tmdsb-hero-bullets .elementor-icon-list-item::after { display: none !important; }

/* ---------- Stats (Home, About) ---------- */
.tmdsb-page .tmdsb-stat:not(:last-child) { border-right: 1px solid rgba(17, 17, 17, 0.1); }
.tmdsb-page .tmdsb-stats > .tmdsb-stat { flex: 1 1 0 !important; min-width: 0; }
@media (max-width: 1024px) {
	.tmdsb-page .tmdsb-stats { flex-wrap: wrap !important; }
	.tmdsb-page .tmdsb-stats > .tmdsb-stat { flex: 1 1 50% !important; }
	.tmdsb-page .tmdsb-stat:nth-child(2) { border-right: 0; }
	.tmdsb-page .tmdsb-stat:nth-child(-n+2) { border-bottom: 1px solid rgba(17, 17, 17, 0.1); }
}
@media (max-width: 767px) {
	.tmdsb-page .tmdsb-stats > .tmdsb-stat { flex-basis: 100% !important; border-right: 0 !important; }
	.tmdsb-page .tmdsb-stat:not(:last-child) { border-bottom: 1px solid rgba(17, 17, 17, 0.1); }
}

/* ---------- Network (Home, About) ---------- */
.tmdsb-page .tmdsb-network-intro strong { font-weight: 700; color: #111; }
@media (max-width: 1024px) {
	.tmdsb-page .tmdsb-network-img { width: 100% !important; }
	.tmdsb-page .tmdsb-network-img img { width: 100% !important; height: auto !important; aspect-ratio: 520 / 400; }
}

/* ---------- Benefits / testimonials responsive wrapping (Home, About) ---------- */
@media (max-width: 1024px) {
	.tmdsb-page .tmdsb-benefits > .tmdsb-benefit,
	.tmdsb-page .tmdsb-quotes > .tmdsb-quote-card { flex: 1 1 calc(50% - 10px) !important; }
}
@media (max-width: 767px) {
	.tmdsb-page .tmdsb-benefits > .tmdsb-benefit,
	.tmdsb-page .tmdsb-quotes > .tmdsb-quote-card { flex-basis: 100% !important; }
}

/* ---------- Article cards (Home) ---------- */
.tmdsb-page .tmdsb-article { min-width: 0; }
.tmdsb-page .tmdsb-article img { width: 100%; }
.tmdsb-page .tmdsb-guides-head { max-width: 100%; }

/* ---------- Link buttons with trailing icon ---------- */
.tmdsb-page .tmdsb-link-btn .elementor-button { padding: 0; }
.tmdsb-page .tmdsb-link-btn .elementor-button-icon svg { width: 16px; height: 16px; }
.tmdsb-page .tmdsb-link-btn--14 .elementor-button-icon svg { width: 14px; height: 14px; }

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

/* ---------- Inner-page hero ("Hero banner – Maryland bridge") ----------
 * Elementor version: container .tmdsb-inner-hero (image, min-height and overlay are
 * Elementor controls; this refines the overlay to the Figma 3-stop gradient).
 * PHP version: section.tmdsb-ihero (tmdsb_inner_hero()). */
.tmdsb-page .tmdsb-inner-hero.e-con::before {
	background-image: linear-gradient(90deg, rgba(14, 26, 58, 0.88) 0%, rgba(14, 26, 58, 0.55) 55%, rgba(14, 26, 58, 0.05) 100%) !important;
	opacity: 1 !important;
}
.tmdsb-page .tmdsb-inner-hero > .e-con-inner,
.tmdsb-page .tmdsb-inner-hero > .e-con { position: relative; z-index: 1; }

.tmdsb-page .tmdsb-ihero {
	position: relative; display: flex; align-items: center; box-sizing: border-box;
	min-height: var(--tmdsb-ihero-min, 340px); padding: 82px 24px;
	background-color: #0E1A3A; background-size: cover; background-position: center center;
}
.tmdsb-page .tmdsb-ihero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(14, 26, 58, 0.88) 0%, rgba(14, 26, 58, 0.55) 55%, rgba(14, 26, 58, 0.05) 100%);
}
.tmdsb-page .tmdsb-ihero__inner { position: relative; width: 100%; max-width: 1152px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.tmdsb-page .tmdsb-ihero__label {
	margin: 0; padding: 8px 16px; border-radius: 999px; background: var(--e-global-color-tmcrem1, #FBF4E2);
	font: 700 12px/1.3 "DM Sans", sans-serif; letter-spacing: 1.44px; text-transform: uppercase; color: var(--e-global-color-tmbrnz1, #B07912);
}
.tmdsb-page .tmdsb-ihero__title {
	margin: 0; font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 62px; line-height: 1.04; letter-spacing: -0.93px; color: #fff;
}
.tmdsb-page .tmdsb-ihero__subtitle { margin: 0; max-width: 600px; font: 400 19px/1.35 "DM Sans", sans-serif; color: rgba(255, 255, 255, 0.88); }
/* Article variant (Figma Article Detail): 300px, lighter overlay; title + subtitle box + breadcrumb */
.tmdsb-page .tmdsb-ihero--article { align-items: flex-end; padding-top: 40px; padding-bottom: 38px; }
.tmdsb-page .tmdsb-ihero--article::before {
	background: linear-gradient(90deg, rgba(14, 26, 58, 0.75) 0%, rgba(14, 26, 58, 0.35) 60%, rgba(14, 26, 58, 0) 100%);
}
.tmdsb-page .tmdsb-ihero--article .tmdsb-breadcrumb,
.tmdsb-page .tmdsb-inner-hero--article .tmdsb-breadcrumb { font-size: 14px; }
.tmdsb-page .tmdsb-ihero--article .tmdsb-breadcrumb a,
.tmdsb-page .tmdsb-inner-hero--article .tmdsb-breadcrumb a { color: rgba(255, 255, 255, 0.8); }
/* Elementor "TMDSB Article Layout" hero */
.tmdsb-page .tmdsb-inner-hero.tmdsb-inner-hero--article.e-con::before {
	background-image: linear-gradient(90deg, rgba(14, 26, 58, 0.75) 0%, rgba(14, 26, 58, 0.35) 60%, rgba(14, 26, 58, 0) 100%) !important;
}
@media (max-width: 1024px) {
	.tmdsb-page .tmdsb-ihero { padding: 64px 32px; }
	.tmdsb-page .tmdsb-ihero--article { padding: 40px 32px 32px; }
	.tmdsb-page .tmdsb-ihero__title { font-size: 52px; }
}
@media (max-width: 767px) {
	.tmdsb-page .tmdsb-ihero { min-height: 0; padding: 48px 20px; }
	.tmdsb-page .tmdsb-ihero__title { font-size: 40px; letter-spacing: -0.6px; }
	.tmdsb-page .tmdsb-ihero__subtitle { font-size: 17px; }
}

/* Breadcrumb (both hero versions; in Elementor it is a Text Editor with class tmdsb-breadcrumb) */
.tmdsb-page .tmdsb-breadcrumb,
.tmdsb-page .tmdsb-breadcrumb p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; font: 500 13px/normal "DM Sans", sans-serif; }
.tmdsb-page .tmdsb-breadcrumb a { color: rgba(255, 255, 255, 0.75); }
.tmdsb-page .tmdsb-breadcrumb a:hover { color: #fff; }
.tmdsb-page .tmdsb-breadcrumb__sep,
.tmdsb-page .tmdsb-breadcrumb .sep { font-weight: 400; color: rgba(255, 255, 255, 0.5); }
.tmdsb-page .tmdsb-breadcrumb__current,
.tmdsb-page .tmdsb-breadcrumb .current { font-weight: 600; color: var(--e-global-color-tmgold1, #E3A536); }

/* ---------- Article cards ([tmdsb_articles], Figma "Articles") ---------- */
.tmdsb-page .tmdsb-acards { display: grid; gap: 24px; }
.tmdsb-page .tmdsb-acards--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tmdsb-page .tmdsb-acards--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tmdsb-page .tmdsb-acard {
	display: flex; flex-direction: column; min-width: 0; overflow: hidden;
	background: #fff; border: 1px solid rgba(17, 17, 17, 0.1); border-radius: 16px;
}
.tmdsb-page .tmdsb-acard__media { display: block; height: 300px; overflow: hidden; background: var(--e-global-color-tmcrem1, #FBF4E2); }
.tmdsb-page .tmdsb-acard__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tmdsb-page .tmdsb-acard:hover .tmdsb-acard__media img { transform: scale(1.03); }
.tmdsb-page .tmdsb-acard__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
.tmdsb-page .tmdsb-acard__title { margin: 0; font: 600 22px/28px "Fraunces", Georgia, serif; color: #111; }
.tmdsb-page .tmdsb-acard__title a { color: inherit; }
.tmdsb-page .tmdsb-acard__title a:hover { color: var(--e-global-color-tmblue1, #1A63A8); }
.tmdsb-page .tmdsb-acard__excerpt { margin: 0; font: 400 15px/25px "DM Sans", sans-serif; color: #5C616B; }
.tmdsb-page .tmdsb-acard__more { font: 600 14px/normal "DM Sans", sans-serif; color: var(--e-global-color-tmcrim1, #9B1B30); }
/* Featured: image left 620 × 400, content right */
.tmdsb-page .tmdsb-acard--featured { flex-direction: row; align-items: center; }
.tmdsb-page .tmdsb-acard--featured .tmdsb-acard__media { flex: 0 0 53.82%; height: 400px; }
.tmdsb-page .tmdsb-acard--featured .tmdsb-acard__body { flex: 1 1 0; gap: 16px; padding: 40px 48px; }
.tmdsb-page .tmdsb-acard--featured .tmdsb-acard__title { font-size: 34px; line-height: 43px; }
.tmdsb-page .tmdsb-acard--featured .tmdsb-acard__excerpt { font-size: 16px; line-height: 26px; color: #111; }
.tmdsb-page .tmdsb-acard--featured .tmdsb-acard__more { font-size: 15px; }
@media (max-width: 1024px) {
	.tmdsb-page .tmdsb-acards--cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tmdsb-page .tmdsb-acard--featured .tmdsb-acard__media { height: 340px; }
	.tmdsb-page .tmdsb-acard--featured .tmdsb-acard__body { padding: 32px; }
	.tmdsb-page .tmdsb-acard--featured .tmdsb-acard__title { font-size: 28px; line-height: 1.25; }
}
@media (max-width: 767px) {
	.tmdsb-page .tmdsb-acards--cols-2,
	.tmdsb-page .tmdsb-acards--cols-3 { grid-template-columns: 1fr; }
	.tmdsb-page .tmdsb-acard--featured { flex-direction: column; align-items: stretch; }
	.tmdsb-page .tmdsb-acard--featured .tmdsb-acard__media { flex: none; height: 240px; }
	.tmdsb-page .tmdsb-acard--featured .tmdsb-acard__body { padding: 24px; }
	.tmdsb-page .tmdsb-acard__media { height: 220px; }
}

/* ---------- Rich text emphasis (Text Editor widgets with class tmdsb-rich) ---------- */
.tmdsb-page .tmdsb-rich strong { font-weight: 700; color: var(--e-global-color-tmink01, #111); }
.tmdsb-page .tmdsb-rich b.s { font-weight: 600; color: var(--e-global-color-tmink01, #111); }
.tmdsb-page .tmdsb-rich em { font-weight: 500; color: var(--e-global-color-tmink01, #111); }
.tmdsb-page .tmdsb-rich .tm-blue { font-weight: 600; color: var(--e-global-color-tmblue1, #1A63A8); }
.tmdsb-page .tmdsb-rich .tm-bronze { font-weight: 600; color: var(--e-global-color-tmbrnz1, #B07912); }
.tmdsb-page .tmdsb-rich .tm-ul { text-decoration: underline; text-underline-offset: 2px; }
.tmdsb-page .tmdsb-rich a:hover { text-decoration: underline; }

/* ---------- Pill lists (Icon List widget, inline, class tmdsb-pills tmdsb-pills--<variant>) ---------- */
.tmdsb-page .tmdsb-pills .elementor-icon-list-items { display: flex !important; flex-wrap: wrap; gap: 8px; margin: 0 !important; }
.tmdsb-page .tmdsb-pills .elementor-icon-list-item {
	margin: 0 !important; padding: 7px 14px; border: 1px solid rgba(17, 17, 17, 0.1); border-radius: 999px; background: #fff;
	display: inline-flex !important; align-items: center; gap: 8px;
}
.tmdsb-page .tmdsb-pills .elementor-icon-list-item::after { display: none !important; }
.tmdsb-page .tmdsb-pills .elementor-icon-list-text { padding: 0 !important; font: 500 13px/normal "DM Sans", sans-serif; color: #111; white-space: nowrap; }
.tmdsb-page .tmdsb-pills .elementor-icon-list-icon { display: inline-flex; align-items: center; justify-content: center; width: auto; flex-shrink: 0; }
.tmdsb-page .tmdsb-pills .elementor-icon-list-icon svg { margin: 0 !important; fill: none !important; }
/* blue: region chips */
.tmdsb-page .tmdsb-pills--blue .elementor-icon-list-item { padding: 6px 12px; border-color: rgba(26, 99, 168, 0.3); }
.tmdsb-page .tmdsb-pills--blue .elementor-icon-list-text { font-size: 12px; color: var(--e-global-color-tmblue1, #1A63A8); }
/* icon: speaker network (icon in a 30px cream circle) */
.tmdsb-page .tmdsb-pills--icon .elementor-icon-list-items { gap: 10px; }
.tmdsb-page .tmdsb-pills--icon .elementor-icon-list-item { padding: 8px 16px 8px 8px; gap: 10px; }
.tmdsb-page .tmdsb-pills--icon .elementor-icon-list-icon { width: 30px; height: 30px; border-radius: 999px; background: var(--e-global-color-tmcrem1, #FBF4E2); }
.tmdsb-page .tmdsb-pills--icon .elementor-icon-list-icon svg { width: 15px !important; height: 15px !important; }
.tmdsb-page .tmdsb-pills--icon .elementor-icon-list-text { font-size: 14px; }
/* topic: cream pill with bronze check */
.tmdsb-page .tmdsb-pills--topic .elementor-icon-list-items { gap: 10px; }
.tmdsb-page .tmdsb-pills--topic .elementor-icon-list-item { padding: 10px 16px 10px 14px; background: var(--e-global-color-tmcrem1, #FBF4E2); border-color: rgba(176, 121, 18, 0.18); }
.tmdsb-page .tmdsb-pills--topic .elementor-icon-list-icon svg { width: 14px !important; height: 14px !important; }
.tmdsb-page .tmdsb-pills--topic .elementor-icon-list-text { font-size: 14px; }
/* time: white pill with calendar icon */
.tmdsb-page .tmdsb-pills--time .elementor-icon-list-items { gap: 10px; }
.tmdsb-page .tmdsb-pills--time .elementor-icon-list-item { padding: 8px 14px; }
.tmdsb-page .tmdsb-pills--time .elementor-icon-list-icon svg { width: 14px !important; height: 14px !important; }
/* nav: link pills (404 "Popular pages") */
.tmdsb-page .tmdsb-pills--nav .elementor-icon-list-items { gap: 10px; justify-content: center; }
.tmdsb-page .tmdsb-pills--nav .elementor-icon-list-item { padding: 0; transition: border-color .15s, background-color .15s; }
.tmdsb-page .tmdsb-pills--nav .elementor-icon-list-item > a { display: inline-flex; padding: 9px 17px; }
.tmdsb-page .tmdsb-pills--nav .elementor-icon-list-icon { display: none; }
/* Figma 404: white pill, blue hairline border, blue text */
.tmdsb-page .tmdsb-pills--nav .elementor-icon-list-item { border-color: rgba(26, 99, 168, 0.35); }
.tmdsb-page .tmdsb-pills--nav .elementor-icon-list-text { font-size: 14px; color: var(--e-global-color-tmblue1, #1A63A8); }
.tmdsb-page .tmdsb-pills--nav .elementor-icon-list-item:hover { border-color: var(--e-global-color-tmblue1, #1A63A8); background: rgba(26, 99, 168, 0.06); }
/* 404 digits: navy with a gold zero */
.tmdsb-page .tmdsb-404-digits .tm-gold { color: var(--e-global-color-tmgold1, #E3A536); }
/* Privacy Policy: links inherit the dark body colour (as in Figma) */
.tmdsb-page .tmdsb-pp-text a { color: var(--e-global-color-tmblue1, #1A63A8); } /* updated Figma: e-mail shown as a blue link */
.tmdsb-page .tmdsb-pp-text a:hover { color: #15528C; }
@media (max-width: 767px) {
	.tmdsb-page .tmdsb-pills .elementor-icon-list-text { white-space: normal; }
}

/* ---------- Photo with overlapping badge (About "Company background") ---------- */
.tmdsb-page .tmdsb-imgbadge { position: relative; }
.tmdsb-page .tmdsb-imgbadge > .tmdsb-badge { position: absolute; left: 46%; top: 410px; width: auto; z-index: 2; }
@media (min-width: 1025px) {
	.tmdsb-page .tmdsb-imgbadge > .tmdsb-badge .elementor-heading-title,
	.tmdsb-page .tmdsb-nowrap .elementor-heading-title { white-space: nowrap; }
}
@media (max-width: 1024px) {
	.tmdsb-page .tmdsb-imgbadge > .tmdsb-badge { left: auto; right: 16px; top: auto; bottom: 0; }
}
@media (max-width: 767px) {
	.tmdsb-page .tmdsb-imgbadge > .tmdsb-badge { position: relative; right: auto; bottom: auto; margin: -40px 16px 0 auto; }
}

/* ---------- Testimonial cards (Figma "More testimonials") ---------- */
.tmdsb-page .tmdsb-tcard > .tmdsb-tcard-author { margin-top: auto; }
.tmdsb-page .tmdsb-tcard .tmdsb-tcard-avatar { flex-shrink: 0; }
@media (max-width: 767px) {
	.tmdsb-page .tmdsb-tgrid-row.e-con { --flex-wrap: wrap; }
}

/* ---------- Footer ---------- */
.tmdsb-page .tmdsb-info-card { color: inherit; }
/* Elementor wraps row containers on mobile; keep the icon beside the text. */
.tmdsb-page .tmdsb-info-card.e-con { --flex-wrap: nowrap; }
.tmdsb-page .tmdsb-info-card > .e-con:last-child { min-width: 0; }
.tmdsb-page .tmdsb-footer-col { min-width: 0; }
@media (max-width: 767px) {
	.tmdsb-page .tmdsb-footer-main > .tmdsb-footer-col { flex: 1 1 100% !important; }
}
