/* vttech - Cassiopeia child template for vt-tech.eu / en.vt-tech.eu.
 * The whole template is this file, in sections 1-12.
 * Read CLAUDE.md, "Editing user.css", before changing anything here. */


/* 1. Palette and type tokens ------------------------------------------------ */

:root {
	/* Site palette */
	--vt-page-bg:            #D6E5F0;  /* behind the sheet                     */
	--vt-sheet-border:       #182F3F;  /* rule above the sheet                 */
	--vt-text:               #252A2C;
	--vt-link:               #4589BA;
	--vt-link-visited:       #939FA4;
	--vt-link-hover:         #BABABA;
	--vt-article-bg:         #FFFFFF;  /* article sheet                        */
	--vt-article-border:     #BDC4C7;
	--vt-rule:               #A7B0B4;  /* hairline under the article info line */
	--vt-module-border:      #737373;
	--vt-module-bg:          #E9EBEC;
	--vt-module-text:        #212527;
	--vt-heading:            #75848A;  /* in-content h1/h2                     */
	--vt-title:              #3A4245;  /* article title                        */
	--vt-accent:             #6AA1C8;  /* buttons, menu hover                  */
	--vt-accent-dark:        #254A64;  /* button + menu borders                */
	--vt-table-rule:         #919DA1;

	/* Cassiopeia's own tokens, repointed */
	--cassiopeia-color-primary: #182F3F;
	--cassiopeia-color-link:    #4589BA;
	--cassiopeia-color-hover:   #6EA3C9;
	--cassiopeia-font-family-body:     Arial, "Arial Unicode MS", Helvetica, sans-serif;
	--cassiopeia-font-family-headings: Arial, "Arial Unicode MS", Helvetica, sans-serif;
	--cassiopeia-font-weight-normal:   400;
	--cassiopeia-font-weight-headings: 400;

	/* Bootstrap 5.2+ tokens (ignored by the 5.1 build in Joomla 4.0/4.1) */
	--bs-font-sans-serif:   Arial, "Arial Unicode MS", Helvetica, sans-serif;
	--bs-body-font-family:  Arial, "Arial Unicode MS", Helvetica, sans-serif;
	--bs-body-font-size:    13px;
	--bs-body-color:        #252A2C;
	--bs-link-color:        #4589BA;
	--bs-link-hover-color:  #6EA3C9;
	--bs-border-radius:     4px;
}


/* 2. Page shell ------------------------------------------------------------- */

html {
	background: var(--vt-page-bg);
}

/* The 1200px cap goes on <body>, never on .site-grid. */
body.site {
	max-width: 1200px;
	margin: 7px auto 0;
	background: var(--vt-page-bg);
	border-top: 3px solid var(--vt-sheet-border);
	border-radius: 10px;
	color: var(--vt-text);
	font-family: Arial, "Arial Unicode MS", Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.75;
}

a {
	color: var(--vt-link);
	text-decoration: none;
}

a:visited {
	color: var(--vt-link-visited);
}

a:hover,
a:focus {
	color: var(--vt-link-hover);
	text-decoration: underline;
}


/* 3. Header + brand band ---------------------------------------------------- */

.container-header {
	background: var(--vt-page-bg);
	color: var(--vt-text);
	padding: 0;
	box-shadow: none;
	overflow: visible;   /* never clip the menu fly-out (§4) */
}

.container-header .grid-child {
	max-width: none;
	padding: 0;
	margin: 0;
}

.container-header a,
.container-header .mod-menu > li > a {
	color: inherit;
}

/* aspect-ratio, not a fixed height: the photo scales instead of being cropped. */
.container-header .navbar-brand {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	aspect-ratio: 1200 / 158;
	border-radius: 7px 7px 0 0;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100% 100%;
	background-image: url("../images/header.jpg");
	background-image: image-set(url("../images/header.webp") type("image/webp"),
	                            url("../images/header.jpg")  type("image/jpeg"));
}

.container-header .navbar-brand .brand-logo {
	display: block;
	height: 100%;
}

/* The wordmark is baked into the photo, so all three of Cassiopeia's .brand-logo
 * branches are hidden visually and kept in the accessibility tree. */
.container-header .navbar-brand .brand-logo > *,
.container-header .navbar-brand .site-title,
.container-header .navbar-brand .site-description {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.container-header .container-nav {
	position: relative;
	z-index: 500;
	background: var(--vt-page-bg);
	padding: 3px;
	margin: 0;
	border: 0;
	overflow: visible;
}


/* 4. Top menu --------------------------------------------------------------- */

.container-header .mod-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > .mod-menu__heading {
	display: block;
	height: 28px;
	padding: 0 22px;
	border: 1px solid var(--vt-accent-dark);
	border-radius: 5px;
	background: #DBDBDB;
	color: #1C374A;
	font-size: 13px;
	font-weight: 700;
	line-height: 26px;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
}

.container-header .mod-menu > li {
	margin: 2px 0 2px 4px;
}

.container-header .mod-menu > li:first-child {
	margin-left: 2px;
}

/* Clears Cassiopeia's .metismenu-item padding: .5em 1em, which is 17.6px there. */
.container-header .metismenu.mod-menu > li {
	padding: 0;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus {
	background: var(--vt-accent);
	color: #000;
	text-decoration: none;
}

.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a,
.container-header .mod-menu > li > a.active {
	background: #ADCCE1;
	color: #000;
}

.container-header .mod-menu ul {
	padding: 4px;
	border: 1px dotted var(--vt-accent-dark);
	border-radius: 6px;
	background: #E0E0E0;
	list-style: none;
}

.container-header .mod-menu ul li + li {
	border-top: 1px dotted #FFFFFF;
}

.container-header .mod-menu ul a {
	display: block;
	min-height: 24px;
	min-width: 7em;
	padding: 0 8px;
	border-radius: 6px;
	color: #000;
	font-size: 13px;
	font-weight: 400;
	line-height: 24px;
	text-align: left;
	text-transform: none;
}

.container-header .mod-menu ul a:hover,
.container-header .mod-menu ul a:focus {
	background: #93BBD7;
	color: #000;
	text-decoration: none;
}

/* The .mod-menu rules above serve mod_menu's plain _:default layout; the
 * .metismenu ones below restate them a notch above Cassiopeia's metismenu block.
 * Keep the two in sync. font-size is the em basis for min-width. */
.container-header .metismenu.mod-menu .mm-collapse {
	padding: 4px;
	border: 1px dotted var(--vt-accent-dark);
	border-radius: 6px;
	background: #E0E0E0;
	box-shadow: none;
	font-size: 13px;
}

/* Cassiopeia flexes these rows, which shrink-wraps the hover highlight. */
.container-header .metismenu.mod-menu .mm-collapse > li {
	display: block;
	padding: 0;
}

.container-header .metismenu.mod-menu .mm-collapse > li > a {
	display: block;
}

/* Desktop fly-out, asserted here because Cassiopeia has no hover option; below
 * 992px metismenu's accordion is left alone. Needs mod_menu's Show Sub-menu
 * Items = Yes and End Level = All, or there is no child <ul> to open. */
@media (min-width: 992px) {
	.container-header .mod-menu li {
		position: relative;
	}

	/* As li + li, to tie Cassiopeia's .metismenu > li + li { margin-left: 0 }. */
	.container-header .mod-menu > li + li {
		margin-left: 4px;
	}

	.container-header .mod-menu ul {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 500;
		display: none;
		min-width: 12em;
	}

	.container-header .mod-menu ul ul {
		top: 0;
		left: 100%;
	}

	.container-header .mod-menu li:hover > ul,
	.container-header .mod-menu li:focus-within > ul {
		display: block;
	}

	/* Restates Cassiopeia's .mm-collapse:not(.mm-show) gate. Dropping
	 * :not(.mm-show) is deliberate - it re-closes a tap-latched panel. */
	.container-header .metismenu.mod-menu .mm-collapse {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 500;
		display: none;
		min-width: 12em;
	}

	/* Level 2+ flies right; repaints because Cassiopeia's own rule does too. */
	.container-header .metismenu.mod-menu .mm-collapse > li.parent > ul {
		position: absolute;
		top: 0;
		left: 100%;
		margin: 0;
		background: #E0E0E0;
		box-shadow: none;
	}

	/* !important beats the inline height/overflow metismenu's JS writes here. */
	.container-header .metismenu.mod-menu li:hover > ul,
	.container-header .metismenu.mod-menu li:focus-within > ul {
		display: block;
		height: auto !important;
		overflow: visible !important;
	}

	/* Hover drives the fly-out, so the toggler is redundant and its click would
	 * latch .mm-show open. Two selectors: Cassiopeia re-shows the nested ones. */
	.container-header .metismenu.mod-menu .mm-toggler,
	.container-header .metismenu.mod-menu .mm-collapse > li.parent .mm-toggler {
		display: none;
	}
}


/* 5. Component area --------------------------------------------------------- */
/* One sheet wraps the whole component output, so it goes on <main> rather than
 * on each article. */

.container-component > main,
.container-component main {
	display: block;
	margin: 7px 0;
	padding: 10px 14px;
	background: var(--vt-article-bg);
	border: 1px solid var(--vt-article-border);
	border-radius: 6px;
}

main .page-header h1,
main .page-header h2,
main .item-title,
main .com-content-article__title {
	margin: 5px 0;
	color: var(--vt-title);
	font-size: 24px;
	font-weight: 400;
	line-height: 1.2;
}

main .page-header h1 a,
main .item-title a {
	color: #8C8C8C;
	text-decoration: none;
}

main .page-header h1 a:visited,
main .item-title a:visited {
	color: #96A2A6;
}

main .page-header h1 a:hover,
main .item-title a:hover {
	color: #B8B8B8;
}

main .article-info {
	margin: 0 0 5px;
	padding: 1px 0;
	border-bottom: 1px solid var(--vt-rule);
	color: #4D575B;
	font-size: 12px;
}

main .article-info a {
	color: #1A1D1E;
}

main .article-info a:hover {
	color: #757575;
	text-decoration: underline;
}


/* 6. Content typography, lists, tables, blockquote -------------------------- */

main h1 { margin: 10px 0 0; color: var(--vt-heading); font-size: 26px; font-weight: 400; line-height: 1.2; }
main h2 { margin: 10px 0 0; color: var(--vt-heading); font-size: 22px; font-weight: 400; line-height: 1.2; }
main h3 { margin: 10px 0 0; color: #939FA4;           font-size: 20px; font-weight: 400; line-height: 1.2; }
main h4 { margin: 10px 0 0; color: var(--vt-text);    font-size: 18px; font-weight: 400; line-height: 1.2; }
main h5 { margin: 10px 0 0; color: var(--vt-text);    font-size: 15px; font-weight: 400; line-height: 1.2; }
main h6 { margin: 10px 0 0; color: #596469;           font-size: 13px; font-weight: 400; line-height: 1.2; }

main p {
	margin: 13px 0;
}

main ul {
	margin: 1em 0 1em 11px;
	padding-left: 13px;
	list-style-image: url("../images/postbullets.png");
}

main li {
	margin: 3px 0 0;
	color: var(--vt-title);
}

main li ul,
main li ol {
	margin: 0.5em 0 0.5em 11px;
}

/* Structural lists keep Cassiopeia's reset. */
main .nav,
main .mod-menu,
main .mod-list,
main .list-unstyled,
main .pagination,
main .breadcrumb,
main nav ul {
	margin-left: 0;
	padding-left: 0;
	list-style: none;
}

main table {
	border-collapse: collapse;
	margin: 1px;
}

main table th,
main table td {
	padding: 2px;
	border: 1px dotted var(--vt-table-rule);
	vertical-align: top;
	text-align: left;
}

main table th {
	padding: 7px;
	text-align: center;
	vertical-align: middle;
}

blockquote {
	margin: 0 0 0 10px;
	padding: 6px 6px 6px 34px;
	background: #BDC4C7 url("../images/postquote.png") no-repeat left top;
	border: 1px dotted var(--vt-rule);
	color: #0D0D0D;
	font-style: italic;
	overflow: auto;
}

blockquote p {
	margin: 5px 0;
}

/* JComments */
#jc,
.comments-list {
	margin-top: 25px;
	border-top: 1px dotted var(--vt-accent);
}


/* 7. Modules - card chrome -------------------------------------------------- */
/* Only the positions listed here get chrome; .moduletable covers Joomla's html5
 * chrome. The gradients are paired with their PNG - see CLAUDE.md. */

:is(.container-top-a, .container-top-b,
    .container-bottom-a, .container-bottom-b,
    .container-below-top, .container-component,
    .container-sidebar-left, .container-sidebar-right) > .card,
div.moduletable {
	margin: 7px 0;
	border: 0;
	border-radius: 4px;
	background: none;
}

:is(.container-top-a, .container-top-b,
    .container-bottom-a, .container-bottom-b,
    .container-below-top, .container-component,
    .container-sidebar-left, .container-sidebar-right) > .card > .card-header,
div.moduletable > h3 {
	margin: 0;
	padding: 7px 5px;
	border: 1px solid var(--vt-module-border);
	border-bottom: none;
	border-radius: 4px 4px 0 0;
	background:
		url("../images/blockheader.png") repeat-x left top,
		linear-gradient(to bottom, #BED6E7 0%, #A5C6DE 50%, #8DB7D5 100%);
	color: #262626;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
}

:is(.container-top-a, .container-top-b,
    .container-bottom-a, .container-bottom-b,
    .container-below-top, .container-component,
    .container-sidebar-left, .container-sidebar-right) > .card > .card-header > * {
	margin: 0 5px;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
}

:is(.container-top-a, .container-top-b,
    .container-bottom-a, .container-bottom-b,
    .container-below-top, .container-component,
    .container-sidebar-left, .container-sidebar-right) > .card > .card-body,
div.moduletable > div {
	padding: 5px;
	border: 1px solid var(--vt-module-border);
	border-radius: 0 0 4px 4px;
	background: var(--vt-module-bg);
	color: var(--vt-module-text);
	font-size: 13px;
	line-height: 1.75;
}

/* A module with no title has no .card-header - round the whole body. */
.card > .card-body:first-child {
	border-radius: 4px;
}

.card-body a          { color: #757575; }
.card-body a:visited  { color: #9EA9AD; }
.card-body a:hover    { color: #A6A6A6; text-decoration: none; }

.card-body ul {
	margin: 0;
	padding-left: 12px;
	list-style-image: url("../images/blockbullets.png");
}

.card-body li {
	margin: 5px 0 0 10px;
	color: #101213;
}

.card-body img {
	border: 1px solid var(--vt-table-rule);
	margin: 10px;
	max-width: 100%;
	height: auto;
}


/* 8. Sidebar modules and sidebar menu --------------------------------------- */

:is(.container-sidebar-left, .container-sidebar-right) > .card > .card-header {
	padding: 10px 0;
	background:
		url("../images/vmenublockheader.png") no-repeat left top,
		linear-gradient(to bottom,
			#97BDD9  0%,
			#A8C9DF 20%,
			#97BDD9 50%,
			#8DB7D5 80%,
			#97BDD9 100%);
	color: #122430;
	font-size: 16px;
}

:is(.container-sidebar-left, .container-sidebar-right) > .card > .card-header > * {
	margin: 0 10px;
}

:is(.container-sidebar-left, .container-sidebar-right) > .card > .card-body {
	background: #FFFFFF;
	padding: 0;
}

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu > li {
	margin-top: 4px;
}

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu > li:first-child {
	margin-top: 0;
}

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu > li > a {
	display: block;
	min-height: 34px;
	padding: 0 15px;
	border-radius: 4px;
	color: var(--vt-heading);
	font-size: 13px;
	line-height: 34px;
	text-decoration: none;
}

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu > li > a::before {
	content: url("../images/vmenuitemicon.png");
	position: relative;
	bottom: 2px;
	display: inline-block;
	margin-right: 5px;
	font-size: 0;
	line-height: 0;
	vertical-align: middle;
}

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu > li > a:hover {
	background: linear-gradient(to bottom,
		#BABABA 0%, #C9C9C9 20%, #BABABA 50%, #B0B0B0 80%, #BABABA 100%);
	color: #444D50;
	text-decoration: none;
}

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu > li > a:hover::before {
	content: url("../images/vmenuhovereditemicon.png");
}

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu > li.active > a,
:is(.container-sidebar-left, .container-sidebar-right) .mod-menu > li.current > a {
	color: #808080;
}

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu > li.active > a::before,
:is(.container-sidebar-left, .container-sidebar-right) .mod-menu > li.current > a::before {
	content: url("../images/vmenuactiveitemicon.png");
}

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu ul {
	margin: 4px 0;
	padding: 0;
	list-style: none;
}

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu ul a {
	display: block;
	min-height: 24px;
	padding: 0 27px;
	color: var(--vt-heading);
	font-size: 13px;
	line-height: 24px;
	text-decoration: none;
}

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu ul ul a { padding-left: 54px; }
:is(.container-sidebar-left, .container-sidebar-right) .mod-menu ul ul ul a { padding-left: 81px; }

:is(.container-sidebar-left, .container-sidebar-right) .mod-menu ul a:hover {
	background: rgba(199, 199, 199, 0.4);
	color: #A3A3A3;
}


/* 9. Breadcrumbs and pagination --------------------------------------------- */

.breadcrumb {
	margin: 7px 0;
	padding: 6px 10px;
	background: var(--vt-article-bg);
	border: 1px solid var(--vt-article-border);
	border-radius: 6px;
	font-size: 12px;
}

.pagination {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 10px 0;
	padding: 5px;
	background: linear-gradient(to bottom, #FFFFFF 0%, #98A8B9 100%);
	border: 1px solid var(--vt-accent);
	border-radius: 2px;
}

.pagination .page-link,
.pagination .page-item > span {
	padding: 7px;
	background: linear-gradient(to bottom, #FFFFFF 0%, #84B1D2 100%);
	border: 1px solid #C7DCEA;
	border-radius: 2px;
	color: #11212D;
	text-decoration: none;
}

.pagination .page-link:hover {
	background: linear-gradient(to bottom, #CFE0ED 0%, #5795C1 100%);
	border-color: #C7DCEA;
	color: #122430;
}

.pagination .page-item.active .page-link,
.pagination .page-item.active > span {
	background: linear-gradient(to bottom, #E5E8EB 0%, #8796A6 100%);
	border-color: #C7DCEA;
	color: #FFFFFF;
}


/* 10. Forms and buttons ----------------------------------------------------- */

.btn,
button,
input[type="submit"],
input[type="button"],
.button {
	height: auto;
	min-height: 26px;
	padding: 0 10px;
	background: var(--vt-accent);
	border: 1px dotted var(--vt-accent-dark);
	border-radius: 6px;
	color: #171A1C;
	font-size: 13px;
	font-weight: 400;
	line-height: 24px;
	text-decoration: none;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
	background: #4486B6;
	border-color: var(--vt-accent-dark);
	color: #E0E0E0;
}

.btn:active,
.btn.active {
	background: #828282;
	color: #1A1D1E;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="number"],
select,
textarea,
.form-control {
	padding: 4px 6px;
	background: #FFFFFF;
	border: 1px solid var(--vt-rule);
	border-radius: 4px;
	color: var(--vt-text);
	font-size: 13px;
}

/* Cassiopeia's search box sits in the header band. */
.container-search input {
	max-width: 220px;
}


/* 11. Footer ---------------------------------------------------------------- */

.container-footer {
	margin: 20px 0 0;
	padding: 25px;
	background: #FFFFFF;
	border-top: 1px dotted var(--vt-article-border);
	border-radius: 10px;
	color: #000000;
	font-size: 13px;
	line-height: 1.75;
	text-align: center;
}

.container-footer .grid-child {
	max-width: none;
	padding: 0;
}

.container-footer p {
	padding: 0;
	text-align: center;
}

.container-footer a          { color: var(--vt-link); text-decoration: none; }
.container-footer a:visited  { color: var(--vt-link-visited); }
.container-footer a:hover    { color: #6EA3C9; text-decoration: underline; }

.container-footer img {
	border: 0;
	margin: 0;
	max-width: 100%;
	height: auto;
}

/* Counter / analytics modules live here and must not get card chrome. */
.container-footer .card,
.container-footer .moduletable {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}


/* 12. Responsive ------------------------------------------------------------ */
/* Cassiopeia's breakpoints do the layout work; these only stop the chrome above
 * from misbehaving once the sheet stops being 1200px wide. */

@media (max-width: 1199px) {
	body.site {
		margin-top: 1%;
		border-radius: 0;
	}

	.container-header .navbar-brand {
		border-radius: 0;
	}
}

@media (max-width: 991px) {
	/* Menu buttons stack; let them fill the bar instead of floating at 28px. */
	.container-header .mod-menu > li {
		margin: 1px 0;
	}

	.container-header .mod-menu > li > a {
		height: auto;
		padding: 4px 12px;
		line-height: 1.5;
		text-align: left;
	}
}

@media (max-width: 480px) {
	.container-component > main,
	.container-component main {
		padding: 8px;
		border-radius: 0;
	}

	.container-footer {
		padding: 15px;
	}
}

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

/* No height: auto here - an iframe has no intrinsic ratio and would collapse to
 * the 150px default. Video embeds get the ratio explicitly instead, matched by
 * host so maps and forms keep the height they ask for. */
main iframe {
	max-width: 100%;
}

main iframe[src*="youtube.com"],
main iframe[src*="youtube-nocookie.com"],
main iframe[src*="youtu.be"],
main iframe[src*="player.vimeo.com"] {
	height: auto;
	aspect-ratio: 16 / 9;
}
