/*
 * meandemj6_claude — template.css
 * Version: 2.0.1
 *
 * Sections (in order):
 *   BASE       — CSS custom properties, reset, scaffolding
 *   LAYOUT     — header, hero, panels, content grid, footer
 *   TYPOGRAPHY — headings, body, links, lists
 *   NAVIGATION — all nav variants
 *   COMPONENTS — tables, languages, sidebar nav
 *   OVERRIDES  — utility classes, reduced-motion, view transitions
 */


/* =========================================================
   LAYER: BASE — Custom properties & scaffolding
   ========================================================= */



:root {

	/* ---------------------------------------
	   GLOBAL COLOURS
	--------------------------------------- */
	--white:        #fff;
	--black:        #000;
	--darker-gray:  #222;
	--dark-gray:    #333;
	--gray:         #555;
	--mid-gray:     #999;
	--light-gray:   #eee;

	/* ---------------------------------------
	   BRAND COLOURS
	   (overridable via template params → :root in index.php)
	--------------------------------------- */
	--primary-brand:    var(--black);
	--secondary-brand:  var(--gray);
	--accent-brand:  #48BEFF;
	--subtle-brand:  #F5F0E8;
	--highlight-brand:  #D4A84B;

	/* ---------------------------------------
	   TYPOGRAPHY
	--------------------------------------- */
	--sans-font-family:  'Lato', sans-serif;
	--serif-font-family: Times, serif;
	--mono-font-family:  Monaco, Menlo, Consolas, "Courier New", monospace;

	--headings-font-family:  var(--sans-font-family);
	--headings-font-weight:  400;
	--headings-font-color:   var(--primary-brand);
	--headings-line-height:  1.2em;

	/* ---------------------------------------
	   SCAFFOLDING
	--------------------------------------- */
	--body-background: var(--black);
	--body-text-color: var(--dark-gray);

	/* ---------------------------------------
	   HEADER
	--------------------------------------- */
	--headerWrapBackground: var(--white);
	--headerBackground:     var(--white);

	/* ---------------------------------------
	   HERO
	--------------------------------------- */
	--heroWrapBackground: var(--white);
	--heroBackground:     var(--white);

	/* ---------------------------------------
	   CONTENT
	--------------------------------------- */
	--contentWrapBackground: var(--white);
	--contentBackground:     var(--white);

	/* ---------------------------------------
	   NAVIGATION
	   (--nav-link-font-size overridable via template params)
	--------------------------------------- */
	--navWrap-background:            var(--nav-background);
	--nav-background:                var(--gray);
	--nav-link-color:                var(--white);
	--nav-hover-color:               var(--darker-gray);
	--nav-link-font-size:            18px;
	--nav-link-font-weight:          700;
	--nav-font-family:               var(--sans-font-family);
	--dropdown-menu-background-color: #3c3c3c;
	--nav-child-link-color:          var(--white);
	--nav-child-hover-color:         var(--black);

	/* ---------------------------------------
	   TESTIMONIALS
	--------------------------------------- */
	--testimonial-bg:           #fcaf15;
	--testimonial-text-shadow:  #bf7f00;

	/* ---------------------------------------
	   B3 PANEL GRADIENT
	--------------------------------------- */
	--b3Panel-gradient: linear-gradient(-90deg, rgba(133,148,168,1) 0%, rgba(0,142,90,1) 50%, rgba(0,142,90,1) 100%);

	/* ---------------------------------------
	   TABLE STYLES
	--------------------------------------- */
	--table-border:             var(--light-gray);
	--table-striped-cell-border: var(--table-border);
	--table-striped-thead-border: var(--table-border);
	--table-striped-thead-bg:   var(--light-gray);
	--table-striped-bg:         var(--white);

	/* ---------------------------------------
	   VIEW TRANSITIONS
	--------------------------------------- */
	--transition-page-duration: 0.25s;

	/* ---------------------------------------
	   PANEL BACKGROUNDS
	   Override per-project in custom.css by redefining these variables in :root
	--------------------------------------- */
	--announcePanel-bg:    var(--heroBackground);
	--roofPanel-bg:        var(--light-gray);
	--connectPanel-bg:     var(--light-gray);
	--t1Panel-bg:          var(--white);
	--t1Panel-module-bg:   var(--light-gray);
	--t2Panel-bg:          var(--white);
	--t2Panel-module-bg:   var(--light-gray);
	--t3Panel-bg:          var(--light-gray);
	--t3Panel-module-bg:   var(--light-gray);
	--b1Panel-bg:          var(--light-gray);
	--b2Panel-bg:          var(--light-gray);
	--b3Panel-bg:          var(--b3Panel-gradient);
	--fw1Panel-bg:         var(--light-gray);
	--footer-bg:           var(--primary-brand);

} /* :root end */


/* ---------------------------------------
   SCAFFOLDING
--------------------------------------- */

body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	font-family: var(--sans-font-family);
	font-size: 1.1rem;
	font-weight: 300;
	line-height: 1.5;
	color: var(--body-text-color);
	background-color: var(--body-background);
}

body.error-page #maincontent {
	margin-top: 2em;
}




/* =========================================================
   LAYER: LAYOUT — Header, hero, panels, content, footer
   ========================================================= */



/* ---------------------------------------
   IMAGE FLOATS
--------------------------------------- */

.right.item-image, .imagefloatright { float: right; margin-left: 1em; }
.left.item-image,  .imagefloatleft  { float: left;  margin-right: 1em; }

@media (max-width: 992px) {
	.right.item-image, .imagefloatright,
	.left.item-image,  .imagefloatleft { float: none; margin: 0; }
}

figcaption.caption { font-size: 0.9em; color: var(--dark-gray); padding-top: 5px; }

.mw300.item-image { max-width: 300px; }
.mw350.item-image { max-width: 350px; }
.mw400.item-image { max-width: 400px; }
.mw450.item-image { max-width: 450px; }
.mw500.item-image { max-width: 500px; }

@media (max-width: 992px) {
	.mw300.item-image,
	.mw350.item-image,
	.mw400.item-image,
	.mw450.item-image,
	.mw500.item-image { max-width: 100%; }
}

.imgBorder { border: 1px solid var(--light-gray); padding: 10px; }
.imgFrame  { border: 5px solid var(--white); box-shadow: var(--gray) 2px 5px 20px; }
.imgPad    { padding: 1em; }


/* ---------------------------------------
   HEADER
--------------------------------------- */

.headerWrap {
	width: 100%;
	margin: 0;
	padding: 1em 0;
	background: var(--headerWrapBackground);
}

header {
	display: grid;
	row-gap: 1em;
	column-gap: 1em;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	justify-items: end;
	background: var(--headerBackground);
}

header .logo { grid-column: span 3; padding: 1em; align-self: center; }

@media (min-width: 1200px) {
	header .address { grid-column: 5/13; padding: 0 1em; align-self: center; width: 100%; }
}

@media (min-width: 992px) and (max-width: 1200px) {
	header .address { grid-column: span 9; padding: 0 1em; align-self: center; width: 100%; }
}

@media (max-width: 992px) {
	header,
	header .logo,
	header .address {
		grid-template-columns: 1fr;
		grid-column: span 12;
		justify-items: center;
		width: 100%;
	}
	header .logo { text-align: center; }
}

header .address li { font-size: 1.2em; color: var(--primary-brand); font-weight: 700; }

@media (max-width: 992px) {
	.address              { padding: 0 2em; }
	.address ul,
	.address ol           { padding: 0; margin: 0 0 0 .5em; }
}


/* ---------------------------------------
   HERO
--------------------------------------- */

.heroWrap {
	width: 100%;
	margin: 0;
	padding: 0;
	background: var(--heroWrapBackground);
}

.hero {
	padding: 0;
	background: var(--heroBackground);
}


/* ---------------------------------------
   FADE SLIDESHOW (.fadeSlideshow)
   Markup: .fadeSlideshow > .fadeSlideshow-slides > img (any number).
   js/template.js adds .is-ready, cycles .is-active and builds the
   prev/next buttons and dots. Without JS the first image shows.
--------------------------------------- */
.fadeSlideshow { position: relative; overflow: hidden; background: var(--black); }

.fadeSlideshow-slides { display: grid; }

.fadeSlideshow-slides > img {
	grid-area: 1 / 1;
	display: block;
	width: 100%;
	height: auto;
	opacity: 0;
	transition: opacity 1.5s ease;
}

.fadeSlideshow:not(.is-ready) .fadeSlideshow-slides > img:first-child,
.fadeSlideshow-slides > img.is-active { opacity: 1; }

.fadeSlideshow-prev,
.fadeSlideshow-next {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	border: 0;
	background: rgba(0,0,0,.6);
	color: var(--white);
	cursor: pointer;
	opacity: 0;
	transition: opacity .3s;
}

.fadeSlideshow-prev { left: 0; }
.fadeSlideshow-next { right: 0; }

.fadeSlideshow-prev::before,
.fadeSlideshow-next::before {
	content: '';
	display: inline-block;
	width: .6em;
	height: .6em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
}

.fadeSlideshow-prev::before { transform: translateX(15%) rotate(135deg); }
.fadeSlideshow-next::before { transform: translateX(-15%) rotate(-45deg); }

.fadeSlideshow:hover .fadeSlideshow-prev,
.fadeSlideshow:hover .fadeSlideshow-next,
.fadeSlideshow-prev:focus-visible,
.fadeSlideshow-next:focus-visible { opacity: 1; }

.fadeSlideshow-dots {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.fadeSlideshow-dots button {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 2px solid var(--white);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.fadeSlideshow-dots button[aria-current="true"] { background: var(--white); }

@media (prefers-reduced-motion: reduce) {
	.fadeSlideshow-slides > img { transition: none; }
}


/* ---------------------------------------
   PANELS — shared structure
--------------------------------------- */

/*--- Required for Frontend Admin module edit button position ---*/
#moduleGrid > .moduleGrid-item > div { position: relative; }

/*--- PANELS COMMON FACTORS ---*/

/* Every panel wrapper */
.moduleWrap { width: 100%; margin: 0; padding: 1em 0; }

/* Inner div padding — general rule, applied after panel-specific zeros below */
#moduleGrid > .moduleGrid-item > div { padding: 1em; }

/* .moduleGrid-item auto-fits its child module divs into columns based on how
   many modules are published to the position — 1 module = full width,
   2 modules = 50/50, 3 modules = thirds, etc.
   Each module's wrapper div is set to display:block so inner layouts
   (gridContainer12col, flexContainer etc.) are not affected by the outer grid. */
@media (min-width: 1200px) {
	#moduleGrid > .moduleGrid-item {
		display: grid;
		grid-gap: 1em;
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		justify-items: space-between;
	}
}
@media (max-width: 1200px) {
	#moduleGrid > .moduleGrid-item {
		display: grid;
		grid-gap: 1em;
		grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
		justify-items: space-between;
	}
}

/* Each module wrapper div is a self-contained block within its grid cell.
   This prevents the outer auto-fit grid from interfering with inner
   gridContainer12col or flexContainer layouts inside module content. */
#moduleGrid > .moduleGrid-item > div { display: block; }

/*--- Roof panel ---*/
#roofPanel.moduleWrap { background: var(--roofPanel-bg); }
#roofPanel.moduleWrap,
#roofPanel #moduleGrid > .moduleGrid-item > div { padding: 0; }

/*--- Announcement panel ---*/
#announcePanel.moduleWrap { background: var(--announcePanel-bg); }
#announcePanel #moduleGrid > .moduleGrid-item { justify-items: center; text-align: center; }
#announcePanel #moduleGrid > .moduleGrid-item > div { background: transparent; color: var(--light-gray); font-weight: 400; }
#announcePanel.moduleWrap,
#announcePanel #moduleGrid > .moduleGrid-item > div { padding: 0; }
div#announcePanel.moduleWrap div.moduletable { padding: .5em 1em; }

@media (min-width: 1200px) {
	#announcePanel #moduleGrid > .moduleGrid-item { justify-items: end; }
}

/*--- Connect panel ---*/
#connectPanel.moduleWrap { background: var(--connectPanel-bg); }
#connectPanel #moduleGrid > .moduleGrid-item > div { background: var(--connectPanel-bg); }

/*--- Top panels ---*/
#t1Panel.moduleWrap { background: var(--t1Panel-bg); }
#t1Panel #moduleGrid > .moduleGrid-item > div { background: var(--t1Panel-module-bg); }

#t2Panel.moduleWrap { background: var(--t2Panel-bg); }
#t2Panel #moduleGrid > .moduleGrid-item > div { background: var(--t2Panel-module-bg); }

#t3Panel.moduleWrap { background: var(--t3Panel-bg); }
#t3Panel #moduleGrid > .moduleGrid-item > div { background: var(--t3Panel-module-bg); }

/*--- Bottom panels ---*/
#b1Panel.moduleWrap { background: var(--b1Panel-bg); }

#b2Panel.moduleWrap { background: var(--b2Panel-bg); }
#b2Panel #moduleGrid > .moduleGrid-item > div { background: var(--b2Panel-bg); }

#b3Panel.moduleWrap { background: var(--b3Panel-bg); }

/*--- Full-width panel (improvement 3: higher specificity replaces !important) ---*/
div#fw1Panel.moduleWrap { padding: 0; background: var(--fw1Panel-bg); }
div#fw1Panel #moduleGrid > .moduleGrid-item > div { padding: 0; background: var(--light-gray); }

/*--- Pic panel (improvement 4: consolidated into one place) ---*/
div#picPanel.moduleWrap { width: 100%; margin: 0; padding: 0; background: var(--b2Panel-bg); }
div#picPanel #moduleGrid > .moduleGrid-item > div { padding: 0; }


/* ---------------------------------------
   T2 PANEL — native scroll-driven animation
   Replaces AOS fade-up. No JS, no CDN dependency.
--------------------------------------- */

.t2Panel-animate {
	animation: t2FadeUp linear both;
	animation-timeline: view();
	animation-range: entry 0% entry 40%;
}

@keyframes t2FadeUp {
	from {
		opacity: 0;
		transform: translateY(2rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}


/* ---------------------------------------
   MAIN CONTENT
--------------------------------------- */

.contentWrap { width: 100%; margin: 0; padding: 0; background: var(--contentWrapBackground); }

.contentGrid {
	display: grid;
	grid-gap: 1em;
	grid-template-columns: 250px 1fr 250px;
	grid-template-areas: "content content content";
	background: var(--contentBackground);
	padding: 1em;
}

.sidebar-left  { grid-area: sidebar-l; }
.content       { grid-area: content; }
.sidebar-right { grid-area: sidebar-r; }

.has-sidebar-left.has-sidebar-right.contentGrid { grid-template-areas: "sidebar-l content sidebar-r"; }
.has-sidebar-left.contentGrid                   { grid-template-areas: "sidebar-l content content"; }
.has-sidebar-right.contentGrid                  { grid-template-areas: "content content sidebar-r"; }

@media (max-width: 992px) {
	.contentGrid,
	.has-sidebar-left.has-sidebar-right.contentGrid,
	.has-sidebar-left.contentGrid,
	.has-sidebar-right.contentGrid {
		grid-template-columns: 1fr;
		grid-template-areas: "content" "sidebar-l" "sidebar-r";
	}
}

/* Blog */
#maincontent { margin: 0; }

#maincontent .blog-items { column-gap: 2em; margin-bottom: 2em; }

#maincontent .blog-item {
	border: 2px solid var(--light-gray);
	margin-bottom: 2em;
}

#maincontent .blog-item .item-content { padding: 1em; }

div.com-content-article__body:after,
div.com-content-category-blog__item.blog-item:after {
	content: ".";
	visibility: hidden;
	display: block;
	height: 0;
	clear: both;
}

div.category-desc { margin-bottom: 2em; }

@media (min-width: 1200px) {
	.blog-items.masonry-2, .blog-items.columns-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 2em; }
	.blog-items.masonry-3, .blog-items.columns-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); column-gap: 2em; }
	.blog-items.masonry-4, .blog-items.columns-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); column-gap: 2em; }
}

@media (min-width: 992px) and (max-width: 1199px) {
	.blog-items.masonry-2, .blog-items.columns-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 2em; }
	.blog-items.masonry-3, .blog-items.columns-3,
	.blog-items.masonry-4, .blog-items.columns-4 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); column-gap: 2em; }
}

@media (min-width: 576px) and (max-width: 991px) {
	.blog-items.masonry-2, .blog-items.columns-2,
	.blog-items.masonry-3, .blog-items.columns-3,
	.blog-items.masonry-4, .blog-items.columns-4 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 2em; }
}

div#maincontent div.item-content div.page-header h2 { font-size: 1.2em; }
nav.pagination__wrapper { background: var(--body-background); }


/* ---------------------------------------
   FOOTER
--------------------------------------- */

footer { background: var(--footer-bg); padding: 2em 0; }

footer,
footer a,
footer a:hover,
footer a:focus { color: var(--white); }

footer a               { font-weight: 700; text-decoration: none; }
footer a:hover,
footer a:focus         { text-decoration: underline; }

#footer-copyright.moduleWrap,
#footerAddress.moduleWrap  { width: 100%; margin: 0; padding: 0; }

#footer1.moduleWrap        { width: 100%; margin: 0; padding: 2em 0; }

#footer-copyright #moduleGrid > .moduleGrid-item > div,
#footerAddress    #moduleGrid > .moduleGrid-item > div,
#footer1          #moduleGrid > .moduleGrid-item > div { padding: .5em; }

#footer1 #moduleGrid > .moduleGrid-item > .moduletable h3 {
	color: var(--white);
	font-size: 1.2em;
	line-height: 1em;
	padding-bottom: 1em;
}

#footer-copyright a { color: var(--gray); }

.gridFooterLogos {
	margin: 1em 0;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: flex-end;
	gap: 1em;
}

.contactFooter { text-align: center; }




/* =========================================================
   LAYER: TYPOGRAPHY
   ========================================================= */



h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
	margin-top: 0;
	margin-bottom: 0.5rem;
	font-weight: var(--headings-font-weight);
	line-height: var(--headings-line-height);
	color: var(--headings-font-color);
}

h1, .h1 { font-size: 36px; }
h2, .h2 { font-size: 36px; }
h3       { font-size: 30px; }
h4       { font-size: 24px; }
h5       { font-size: 20px; }
h6       { font-size: 18px; }

p { margin-bottom: 1rem !important; }

.intro     { font-size: 1.1em; }
.introText { color: var(--dark-gray); font-size: 1.5em; line-height: 1.2em; }
.strapline { font-size: 2rem; }

ul, ol { padding: .75em .75em .75em 0; margin: 0 0 0 1em; }

hr     { margin: 2em 0; border-top: 2px solid var(--gray); }
strong { font-weight: 600; }

.caption { margin-top: 10px; }
.small   { font-size: .75em; }

ul.fancy { padding: .75em 0 .75em 0; margin: 0 0 0 .5em; }

#maincontent ul.fancy li,
.moduletable ul.fancy li {
	list-style-type: '|';
	padding-inline-start: 1ch;
	color: var(--primary-brand);
	padding-bottom: 10px;
}

#maincontent ul.fancy li::marker,
.moduletable ul.fancy li::marker { color: var(--secondary-brand); font-weight: 900; }

#maincontent ul.fancy ul li::marker,
.moduletable ul.fancy ul li::marker { color: var(--secondary-brand); font-weight: 900; content: "-"; }

.page-header {
	font-family: var(--headings-font-family);
	font-weight: var(--headings-font-weight);
	margin: 20px 0;
	border-bottom: 2px solid var(--secondary-brand);
}

.page-header a { text-decoration: none; }

blockquote {
	padding-left: 1em;
	border-left: 5px solid var(--secondary-brand);
	font-weight: 400;
	font-size: 1em;
	color: var(--headings-font-color);
	margin: 20px 0;
}

#maincontent .com-content-article ul,
#maincontent .com-content-article ol { padding: 0 0 .75em 0; }

a { color: var(--primary-brand); text-decoration: none; font-weight: 700; }
a:hover { color: var(--gray); }




/* =========================================================
   LAYER: NAVIGATION
   ========================================================= */

/* ---------------------------------------
   MAIN NAV (mainnav position)
   Markup: index.php #mainNavWrap. Menu: core mod_menu output
   (ul.mod-menu, li.deeper.parent, button.mod-menu__toggle-sub,
   ul.mod-menu__sub). Joomla's menu.js toggles .show-menu +
   aria-expanded on sub-menus; js/template.js toggles the
   mobile menu via aria-expanded on .mainNav-toggle.
--------------------------------------- */

#mainNavWrap { width: 100%; background: var(--navWrap-background); }

#mainNav { position: relative; }

#mainNav ul.mod-menu {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

#mainNav ul.mod-menu > li { position: relative; display: flex; align-items: center; }

#mainNav ul.mod-menu > li > a,
#mainNav ul.mod-menu > li > span,
#mainNav ul.mod-menu > li > .mod-menu__toggle-sub > span:not([class*="icon-"]) {
	display: block;
	padding: .9em .75em;
	color: var(--nav-link-color);
	font-family: var(--nav-font-family);
	font-size: var(--nav-link-font-size);
	font-weight: var(--nav-link-font-weight);
}

#mainNav ul.mod-menu > li.active > a,
#mainNav ul.mod-menu > li > a:hover,
#mainNav ul.mod-menu > li > a:focus-visible { color: var(--nav-hover-color); }

/* Sub-menu toggle (core button) — CSS chevron replaces the icon font */
#mainNav .mod-menu__toggle-sub {
	display: flex;
	align-items: center;
	padding: 0 .75em 0 0;
	background: none;
	border: 0;
	color: var(--nav-link-color);
	cursor: pointer;
}

#mainNav .mod-menu__toggle-sub [class*="icon-"] { display: none; }

#mainNav .mod-menu__toggle-sub::after {
	content: '';
	width: .45em;
	height: .45em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-25%) rotate(45deg);
	transition: transform .2s;
}

#mainNav .mod-menu__toggle-sub[aria-expanded="true"]::after { transform: translateY(25%) rotate(-135deg); }

#mainNav .mod-menu__toggle-sub:hover,
#mainNav .mod-menu__toggle-sub:focus-visible { color: var(--nav-hover-color); }

/* Sub-menu (dropdown) */
#mainNav ul.mod-menu__sub {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 1000;
	min-width: 14em;
	margin: 0;
	padding: .5em 0;
	list-style: none;
	font-size: 1rem;
	background: var(--dropdown-menu-background-color);
	box-shadow: rgba(0,0,0,0.3) 0 8px 20px;
}

#mainNav ul.mod-menu > li:last-child > ul.mod-menu__sub { left: auto; right: 0; }

#mainNav ul.mod-menu__sub.show-menu { display: block; }

#mainNav ul.mod-menu__sub a {
	display: block;
	padding: .5em 1.25em;
	color: var(--nav-child-link-color);
	font-weight: 400;
}

#mainNav ul.mod-menu__sub li.current > a,
#mainNav ul.mod-menu__sub a:hover,
#mainNav ul.mod-menu__sub a:focus-visible { color: var(--nav-child-hover-color); }

/* Mobile toggle — hidden on desktop */
.mainNav-toggle { display: none; }

/* Desktop: dropdowns also open on hover / keyboard focus */
@media (min-width: 992px) {
	#mainNav ul.mod-menu > li:hover > ul.mod-menu__sub,
	#mainNav ul.mod-menu > li:focus-within > ul.mod-menu__sub { display: block; }
}

/* Tablet / mobile: hamburger + push-down panel */
@media (max-width: 991.98px) {
	.mainNav-toggle {
		display: flex;
		align-items: center;
		gap: .6em;
		margin-left: auto;
		padding: .9em .75em;
		background: none;
		border: 0;
		color: var(--nav-link-color);
		font-family: var(--nav-font-family);
		font-size: var(--nav-link-font-size);
		font-weight: var(--nav-link-font-weight);
		cursor: pointer;
	}

	/* Three-bar icon → X when open */
	.mainNav-toggle-icon,
	.mainNav-toggle-icon::before,
	.mainNav-toggle-icon::after {
		display: block;
		width: 1.4em;
		height: 2px;
		background: currentColor;
		transition: transform .2s, background-color .2s;
	}

	.mainNav-toggle-icon { position: relative; }

	.mainNav-toggle-icon::before,
	.mainNav-toggle-icon::after { content: ''; position: absolute; left: 0; }

	.mainNav-toggle-icon::before { top: -.45em; }
	.mainNav-toggle-icon::after  { top: .45em; }

	.mainNav-toggle[aria-expanded="true"] .mainNav-toggle-icon { background: transparent; }
	.mainNav-toggle[aria-expanded="true"] .mainNav-toggle-icon::before { transform: translateY(.45em) rotate(45deg); }
	.mainNav-toggle[aria-expanded="true"] .mainNav-toggle-icon::after  { transform: translateY(-.45em) rotate(-45deg); }

	#mainNav { display: flex; flex-direction: column; }

	#mainNavMenu { display: none; padding-bottom: .5em; }

	.mainNav-toggle[aria-expanded="true"] + #mainNavMenu { display: block; }

	#mainNav ul.mod-menu { flex-direction: column; }

	#mainNav ul.mod-menu > li { flex-wrap: wrap; border-top: 1px solid var(--darker-gray); }

	#mainNav ul.mod-menu > li > a { flex: 1; }

	#mainNav .mod-menu__toggle-sub { padding: .9em .75em; }

	#mainNav ul.mod-menu__sub {
		position: static;
		flex-basis: 100%;
		min-width: 0;
		padding: 0 0 .5em 1em;
		background: transparent;
		box-shadow: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	#mainNav .mod-menu__toggle-sub::after,
	.mainNav-toggle-icon,
	.mainNav-toggle-icon::before,
	.mainNav-toggle-icon::after { transition: none; }
}



/* =========================================================
   LAYER: COMPONENTS — Tables, languages, sidebar nav
   ========================================================= */



.nav.sidebar-nav { flex-direction: column; }

table.table-striped {
	width: 100%;
	text-align: left;
	border-collapse: collapse;
}

table.table-striped td,
table.table-striped th { padding: 5px; }

table.table-striped tr:nth-child(even) { background: var(--table-striped-bg); }

table.table-striped thead {
	background: var(--table-striped-thead-bg);
	border-bottom: 2px solid var(--table-striped-thead-border);
}

table.table-striped thead th { font-weight: bold; text-align: left; }

div.mod-languages {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	gap: 1em;
	padding: .5em;
}

@media (max-width: 768px) { div.mod-languages { justify-content: center; } }

div.mod-languages__pretext.pretext p { margin: 10px 0; }




/* =========================================================
   LAYER: OVERRIDES — Utility classes, media helpers
   ========================================================= */



@media (max-width: 768px) { .hiddenPhone { display: none; } }

.curvedFrame { border-radius: 1em; }


/* ---------------------------------------
   VIEW TRANSITIONS
   Smooth cross-fade on same-origin navigation
   (declared in <head> via meta name="view-transition")
--------------------------------------- */

@keyframes fade-in  { from { opacity: 0; } }
@keyframes fade-out { to   { opacity: 0; } }

::view-transition-old(root) {
	animation: var(--transition-page-duration) ease-out both fade-out;
}
::view-transition-new(root) {
	animation: var(--transition-page-duration) ease-in  both fade-in;
}


/* ---------------------------------------
   REDUCED MOTION
   Disables all animations/transitions for
   users who prefer reduced motion (accessibility)
--------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration:   0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration:  0.01ms !important;
		scroll-behavior: auto !important;
	}

	/* Specifically target the t2Panel scroll animation */
	.t2Panel-animate {
		animation: none;
		opacity: 1;
		transform: none;
	}

	/* Suppress view transitions for reduced-motion users */
	::view-transition-old(root),
	::view-transition-new(root) {
		animation: none;
	}
}


