/*
 * cassiopeia_ciq: reproduces the site's former Protostar (Joomla 3) look on
 * top of Cassiopeia. Values measured on the Joomla 3 site at 1280px:
 * 940px content in a white 982px frame, 700px main column + 20px gap +
 * 220px sidebar, Helvetica 13px/18px text, Open Sans bold headings.
 * Only Open Sans regular is shipped: like Protostar, which loaded only that
 * weight, the browser synthesizes the bold used for headings.
 */

@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Open Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/open-sans-latin-ext-400-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--ciq-blue: #0088cc;
	--ciq-text: #333;
	--ciq-page-bg: #f4f6f7;
	--ciq-frame-border: rgba(0, 0, 0, 0.15);
	--cassiopeia-color-primary: var(--ciq-blue);
	--cassiopeia-color-link: var(--ciq-blue);
	--cassiopeia-color-hover: #005580;
	--link-color: var(--ciq-blue);
	--link-color-rgb: 0, 136, 204;
	--link-hover-color: #005580;
	--link-hover-color-rgb: 0, 85, 128;
	--body-color: var(--ciq-text);
	--body-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Page */
body.site {
	margin: 0;
	padding: 20px;
	border-top: 3px solid var(--ciq-blue);
	background: var(--ciq-page-bg);
	color: var(--ciq-text);
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 13px;
	line-height: 18px;
}

a,
a:not([class]) {
	color: var(--ciq-blue);
	text-decoration: none;
}
a:hover,
a:focus,
a:not([class]):hover,
a:not([class]):focus {
	color: #005580;
	text-decoration: underline;
}

p {
	margin: 0 0 9px;
}

ul,
ol {
	margin: 0 0 9px 25px;
	padding: 0;
}

h1, h2, h3, h4, h5, h6 {
	margin: 12px 0;
	color: inherit;
	font-family: "Open Sans", sans-serif;
	font-weight: 700;
	line-height: 18px;
	word-wrap: break-word;
}
h1 { font-size: 26px; line-height: 28px; }
h2 { font-size: 22px; line-height: 24px; }
h3 { font-size: 18px; line-height: 20px; }
h4 { font-size: 16.25px; }
h5 { font-size: 13px; }

hr {
	margin: 18px 0;
	border: 0;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #fff;
	opacity: 1;
	color: inherit;
}

/* White frame: the header and the content grid together form Protostar's
   .body .container box. */
.container-header,
.site-grid {
	box-sizing: border-box;
	width: 100%;
	max-width: 982px;
	margin-left: auto;
	margin-right: auto;
	background: #fff;
	border: 1px solid var(--ciq-frame-border);
	box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.container-header {
	margin-bottom: 0;
	padding: 20px 20px 0;
	border-bottom: 0;
	border-radius: 4px 4px 0 0;
	background-image: none;
	color: var(--ciq-text);
	clip-path: inset(-10px -10px 0 -10px);
}
.container-header .grid-child {
	max-width: none;
	padding: 0;
}
.container-header .navbar-brand {
	margin: 0 0 10px;
	padding: 0;
}
.container-header .brand-logo img {
	max-width: 100%;
	height: auto;
	max-height: none;
}

.site-grid {
	grid-template-columns: [full-start main-start] minmax(0, 1fr) 220px [main-end full-end];
	grid-template-areas:
		"banner banner"
		"top-a top-a"
		"top-b top-b"
		"comp side-r"
		"bot-a bot-a"
		"bot-b bot-b";
	gap: 0 20px;
	padding: 0 20px 20px;
	border-top: 0;
	border-radius: 0 0 4px 4px;
	clip-path: inset(0 -10px -10px -10px);
}
.container-component main,
.container-sidebar-right .card:first-child {
	margin-top: 0;
}
/* Cassiopeia pushes the footer to the bottom of the window; Protostar kept
   it right below the frame. */
.site-grid {
	margin-bottom: 0;
}
.site-grid > [class^="container-"],
.site-grid > [class*=" container-"] {
	padding: 0;
}
body:not(.has-sidebar-right) .site-grid {
	grid-template-areas:
		"banner banner"
		"top-a top-a"
		"top-b top-b"
		"comp comp"
		"bot-a bot-a"
		"bot-b bot-b";
}

/* Article and category titles */
.page-header {
	margin: 2px 0 10px;
	padding-bottom: 5px;
	border-bottom: 1px solid #eee;
}
.page-header h1,
.page-header h2 {
	margin: 12px 0;
	font-size: 22px;
	line-height: 24px;
}

/* Sidebar modules: Protostar's grey "well" boxes */
.site-grid .container-sidebar-right > *,
.site-grid .container-sidebar-right > .card {
	margin: 0 0 20px;
}
.container-sidebar-right .card {
	padding: 19px;
	background: #f5f5f5;
	border: 1px solid #e3e3e3;
	border-radius: 4px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05);
}
.container-sidebar-right .card-header {
	margin: 0 0 5px;
	padding: 0 0 5px;
	background: none;
	border: 0;
	border-bottom: 1px solid #eee;
	color: var(--ciq-text);
	font-family: "Open Sans", sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 20px;
}
.container-sidebar-right .card-body {
	padding: 0;
}

/* Menus */
.container-sidebar-right .mod-menu {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
	display: block;
}
.container-sidebar-right .mod-menu li {
	margin: 0;
	padding: 0;
	line-height: 18px;
}
.container-sidebar-right ul.mod-menu li a {
	display: block;
	padding: 0;
	color: var(--ciq-blue);
	text-decoration: none;
}
.container-sidebar-right ul.mod-menu li a:hover,
.container-sidebar-right ul.mod-menu li a:focus {
	text-decoration: underline;
}
.container-sidebar-right .mod-menu .nav-header,
.container-sidebar-right .mod-menu .mod-menu__heading {
	display: block;
	padding: 3px 15px;
	color: #999;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
}
.container-sidebar-right .mod-menu li + li > .nav-header,
.container-sidebar-right .mod-menu li + li > .mod-menu__heading {
	margin-top: 0;
}
.container-sidebar-right ul.mod-menu ul.mod-menu__sub {
	margin: 0;
	padding: 0 0 0 5px;
	border-left: 2px solid #ddd;
	list-style: none;
	font-size: 11px;
}

/* Footer: outside the frame, as in Protostar */
.container-footer {
	box-sizing: border-box;
	width: 100%;
	max-width: 940px;
	margin: 0 auto;
	padding: 0;
	background: none;
	color: var(--ciq-text);
}
.container-footer .grid-child {
	display: block;
	max-width: none;
	margin-top: 18px;
	padding: 18px 0 0;
	border-top: 1px solid #eee;
}
.container-footer a,
.container-footer .mod-footer a {
	color: var(--ciq-blue);
	text-decoration: none;
}
.container-footer a:hover,
.container-footer a:focus {
	text-decoration: underline;
}
.container-footer .mod-footer {
	display: flex;
	justify-content: space-between;
	gap: 1em;
}
.container-footer .mod-footer .footer2 {
	order: 2;
}

/* Narrow screens: stack the columns like Protostar's responsive layout */
@media (max-width: 767.98px) {
	body.site {
		padding: 10px;
	}
	.container-header {
		padding: 10px 10px 0;
	}
	.site-grid,
	body:not(.has-sidebar-right) .site-grid {
		grid-template-columns: [full-start main-start] minmax(0, 1fr) [main-end full-end];
		grid-template-areas:
			"banner"
			"top-a"
			"top-b"
			"comp"
			"side-r"
			"bot-a"
			"bot-b";
		padding: 0 10px 10px;
	}
}

/* sigplus galleries were laid out under Bootstrap 2 (content-box sizing);
   Bootstrap 5's global border-box makes their thumbnails shrink. */
.sigplus-gallery,
.sigplus-gallery *,
.sigplus-gallery *::before,
.sigplus-gallery *::after {
	box-sizing: content-box;
}

/* Bootstrap 2 helper classes still used inside articles */
.pull-right {
	float: right;
}
.pull-left {
	float: left;
}
