/*
Theme Name: Sima 2027
Description: wordpress theme for Solomon Islands Maritime Safety Administration theme, supported with bootstrap
Author: mousie
Version: 1.1.6
Tags: responsive, bootstrap
Text Domain: simsa
*/

/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

/* bootstrap is loaded via <link> in header.php - @import removed (duplicate + render-blocking) */

@font-face{
	font-family: 'poppins';
	src:url(poppins/Poppins-Regular.otf);
}

body{
	font-family:'poppins';
	font-size:14px;
	color:#083877!important;
}

.container-fluid{
	padding:0!important;
}

.navbar{
	padding:0!important;
}

a{
	color:#083877;
}

input[type="submit"] {
	padding:5px 10px;
	color:#fff;
	background:#083877;
	border:none;	
}

input[type="text"] {
	padding:5px 10px;
}

.post-date{
	font-style:italic;
}

.bluebar, .bg-dark{
	background:#083877!important;	
}

.topbar{
	height:5px;
}

.logo{
	padding:10px 0;
}

.logo img{
	width:100%;
	height:auto;
}

span.blogname{
	display:block;
	color:#33cccc;
	font-size:40px;
	line-height:40px;
	margin-top:10px;
}

span.blogdesc{
	display:block;
	color:#083877;
	font-size:18px;
	white-space:nowrap;
}

.home{
	padding:30px 0 0 0;
	
}

/* top menu */
.topmenu{
	text-align:center;
	vertical-align:center;
	width:100%;
	height:100%;
	padding:auto;
	margin:auto;
}

.topmenu .nav li a{
	padding:10px 20px;
	display:block;
	color:#000;
}

/* Main menu */
.mainmenu{
	font-size:14px;
	font-weight:bold;
	padding:0!important;
}

.mainmenu ul{
	padding:0;
	margin:0;
}

.mainmenu .nav li a {
	padding:10px 10px;
	display:block;
	color:#fff;
	text-decoration:none;
}

.mainmenu .nav li:hover{
	background:#0c4ca3;
}

.mainmenu .nav ul.sub-menu{
	display:none;
	position:absolute;
	z-index:99;
	box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
	list-style:none;
}

.mainmenu .nav ul.sub-menu li a{
	padding:5px 10px;
	border-top:solid 1px #083877;
	background:#33cccc;
	color:#083877;
}

.mainmenu .nav ul.sub-menu li ul.sub-menu{
	position:absolute;
	left:100%;
	margin-top:-32px;
	white-space:nowrap;
}

.mainmenu .nav li:hover > ul.sub-menu{
	display:block;
}

.mainmenu ul.sub-menu li a:hover{
	color:#fff;
	background:#083877;
	text-decoration:underline;
}

/* Carousel */
.carousel-caption{
	background:#083877;	
	border:#fff 1px solid;
	left:10%;
	bottom:30%;
	right:60%;
	text-align:left;
	padding:10px;
}

.carousel-caption h4 a{
	color:#fff;
}

.carousel-item img{
	width:100%;
	height:auto;
}

.carousel-control-prev, .carousel-control-next{
	width:10%!important;
}

/* end Carousel */

.home .content{
	padding-top:30px 0 0 0;
}

/* Gallery */
.thumbnail{
	margin-bottom:50px;
	width:32%;
}

.thumbnail img{
	box-shadow: 1px 1px 5px #aaa;
}

.caption{
	position:relative;
	background:#083877;	
	border:#fff 1px solid;
	text-align:center;
	padding:10px;
	margin-top:-66px;
	width:80%;
	left:10%;
}

.caption a{
	color:#fff;
	font-size:14px;
}

/* Widget */

.widget h5.title{
	display:block;
	border-bottom:solid 2px #083877;
	padding:10px 0 0 0;
}

.widget ul{
	margin:0;
	padding:0;
}

.widget li{
	list-style:none;
	border-bottom:solid 1px #eee;
	padding-bottom:5px;
	margin-bottom:5px;
}

.widget .post-date{
	display:block;
	color:#aaa;
	font-size:11px;
}

/* footer */
.footer{
	background:#27313d;
	color:#fff;
}

.footer h4.title{
	color:#fff;
	border-bottom:solid 2px #083877;
	padding:30px 0 0 0;
}

/* page and post */
.post, .page{
	padding:30px 0;
}

.page.title, .cat.title{
	background:#33cccc;
	padding:30px;
	height:250px; 
	padding:0!important;
	background-position: center center; 
	background-size: cover; 
	background-repeat: no-repeat;
}

.page.title h1, .cat.title h1{
	padding:20px; 
	color:#083877;
	background: rgb(255,255,255,0.7);
}


.post .title{
	border-bottom:1px solid #083877;
	padding:30px 0 10px 0;
}

.post .title:first-child{
	padding-top:0!important;
}

.post .title h1 a{
	color:#083877;
}

.post .title h1 a:hover{
	text-decoration:none;
}

.read-more{
	margin-top:10px;
	padding:10px;
	color:#fff!important;
	background:#083877;
}

.content{
	padding:10px 0 0 0;
}

.content a{
	color: #33cccc;
}

.content a:hover{
	text-decoration:underline;
}

.content .post-date{
	display:block!important;
	padding-bottom:30px!important;
}

/* navigation */
.navigation{
	border-top:1px solid #eee;
	padding-top:30px;
	padding-left:auto;
	padding-right:auto;
	margin:auto;
}

.screen-reader-text{
	display:none;
}

.page-numbers{
	padding:10px;
	background:#eee;
}

.page-numbers:hover, .page-numbers.current{
	background:#083877;
	color:#fff;
}

@media (max-width:425px){

.thumbnail{
	margin-bottom:50px;
	width:auto;
}

span.blogdesc{
	white-space:normal;
}

}


/* ==========================================================================
   Sima 2027 — menu refresh
   Logo palette sampled from the SIMA logo:
     #205080  dominant navy      #00a8d0  light blue accent
     #0880c8  mid blue           #2bb7d8  the logo's light blue, lightened 17%
   The logo's own #00a8d0 measures 4.08:1 against the #083877 body navy, under
   the 4.5:1 WCAG AA floor. #2bb7d8 is the nearest shade that clears it: 4.81:1.
   ========================================================================== */

/* --- First level: separators + rounded hover ----------------------------- */
.mainmenu .nav > li {
	display: flex;
	align-items: center;
	background: transparent;
}

.mainmenu .nav > li:not(:last-child)::after {
	content: "|";
	color: rgba(255, 255, 255, .35);
	font-weight: 400;
	pointer-events: none;
	-webkit-user-select: none;
	user-select: none;
}

/* hover moves off the <li> and onto the <a>, so the pill can be rounded
   without the separator sitting inside the highlight */
.mainmenu .nav > li:hover {
	background: transparent;
}

.mainmenu .nav > li > a {
	border-radius: 6px;
	transition: background-color .15s ease;
}

.mainmenu .nav > li > a:hover,
.mainmenu .nav > li > a:focus,
.mainmenu .nav > li.current-menu-item > a {
	background: #205080;
}

/* --- Submenus: rounded, logo blue ---------------------------------------- */
.mainmenu .nav ul.sub-menu {
	border-radius: 8px;
	overflow: hidden;
	padding: 0;
	border: 1px solid rgba(32, 80, 128, .25);
	box-shadow: 0 4px 14px rgba(8, 56, 119, .28);
}

.mainmenu .nav ul.sub-menu li a {
	background: #2bb7d8;
	color: #083877;
	border-top: 1px solid rgba(8, 56, 119, .18);
}

.mainmenu .nav ul.sub-menu li:first-child > a {
	border-top: 0;
}

.mainmenu ul.sub-menu li a:hover,
.mainmenu ul.sub-menu li a:focus {
	background: #083877;
	color: #fff;
	text-decoration: none;
}

/* nested submenu keeps its own rounding */
.mainmenu .nav ul.sub-menu li ul.sub-menu {
	border-radius: 8px;
}

/* --- Top (secondary) menu: rounded hover --------------------------------- */
.topmenu .nav li a {
	border-radius: 6px;
	transition: background-color .15s ease;
}

.topmenu .nav li a:hover,
.topmenu .nav li a:focus {
	background: #2bb7d8;
	color: #083877;
	text-decoration: none;
}

/* --- Desktop: help 8 top-level items share one row ----------------------- */
@media (min-width: 992px) and (max-width: 1399px) {
	.mainmenu .nav > li > a {
		padding: 10px 7px;
		font-size: 13px;
	}
	.mainmenu .nav > li:not(:last-child)::after {
		font-size: 12px;
	}
}

/* --- Toggler -------------------------------------------------------------- */
.mainmenu .navbar-toggler {
	border-color: rgba(255, 255, 255, .4);
	border-radius: 6px;
	margin: 6px 0;
}

/* ==========================================================================
   Below 992px: stack the menu, make submenus tappable
   (the theme previously opened submenus on :hover only, so they were
   unreachable on any touch device)
   ========================================================================== */
@media (max-width: 991.98px) {

	.mainmenu .navbar { padding: 0 10px; }

	.mainmenu .nav {
		flex-direction: column;
		width: 100%;
	}

	/* back to block so static submenus don't become flex items */
	.mainmenu .nav > li {
		display: block;
		width: 100%;
		position: relative;
		border-bottom: 1px solid rgba(255, 255, 255, .12);
	}

	.mainmenu .nav li { position: relative; }

	/* no separators once stacked */
	.mainmenu .nav > li:not(:last-child)::after { content: none; }

	.mainmenu .nav li a {
		padding: 12px 52px 12px 14px;
		width: 100%;
		border-radius: 0;
	}

	.mainmenu .nav > li > a { border-radius: 0; }

	/* submenus flow inline instead of floating */
	.mainmenu .nav ul.sub-menu {
		display: none;
		position: static;
		width: 100%;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	/* :hover must not open them on touch */
	.mainmenu .nav li:hover > ul.sub-menu { display: none; }

	/* the caret button does */
	.mainmenu .nav li.submenu-open > ul.sub-menu { display: block; }

	.mainmenu .nav ul.sub-menu li ul.sub-menu {
		position: static;
		left: auto;
		margin-top: 0;
		white-space: normal;
		border-radius: 0;
	}

	.mainmenu .nav ul.sub-menu li a {
		padding-left: 28px;
	}

	.mainmenu .submenu-toggle {
		position: absolute;
		top: 0;
		right: 0;
		width: 48px;
		height: 46px;
		padding: 0;
		background: transparent;
		border: 0;
		border-radius: 6px;
		color: #fff;
		font-size: 16px;
		line-height: 1;
		cursor: pointer;
		transition: transform .15s ease;
	}

	.mainmenu .sub-menu .submenu-toggle {
		color: #083877;
		height: 44px;
	}

	.mainmenu li.submenu-open > .submenu-toggle {
		transform: rotate(180deg);
	}

	.topmenu .nav {
		flex-direction: column;
		align-items: center;
	}
}

/* --- Tablet band had no rules at all before ------------------------------ */
@media (min-width: 426px) and (max-width: 767.98px) {
	span.blogdesc { white-space: normal; }
}

/* ==========================================================================
   Sima 2027 — home page cards (.thumbnail / .caption)
   Rounded card with the title in a rounded box sitting inside the image.
   ========================================================================== */

.thumbnail {
	position: relative;
	border: 2px solid #2bb7d8;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 10px rgba(8, 56, 119, .18);
	margin-bottom: 30px;
	transition: box-shadow .2s ease, border-color .2s ease;
}

.thumbnail:hover {
	border-color: #205080;
	box-shadow: 0 6px 20px rgba(8, 56, 119, .30);
}

.thumbnail img,
.thumbnail .wp-post-image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
	transition: transform .35s ease;
}

.thumbnail:hover img {
	transform: scale(1.04);
}

.thumbnail .caption {
	position: absolute;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	width: auto;
	max-width: calc(100% - 28px);
	padding: 10px 18px;
	border-radius: 8px;
	background: rgba(8, 56, 119, .92);
	text-align: center;
	transition: background-color .2s ease;
}

.thumbnail .caption,
.thumbnail .caption * {
	color: #fff;
}

.thumbnail:hover .caption {
	background: #205080;
}

.thumbnail .caption a:hover,
.thumbnail .caption a:focus {
	text-decoration: underline;
}

@media (max-width: 575.98px) {
	.thumbnail .caption {
		bottom: 10px;
		padding: 8px 14px;
		font-size: 13px;
	}
}

/* ==========================================================================
   Sima 2027 — logo +10%
   The logo renders at 190px inside a 190px column (no headroom), so the
   column is widened rather than letting the image overflow its neighbour.
   Source image is 1506px wide, so there is no quality loss at the new size.
   ========================================================================== */

@media (min-width: 576px) {
	.logo.col-sm-4 {
		flex: 0 0 36.667%;
		max-width: 36.667%;
	}

	.logo.col-sm-4 + .col-sm-8 {
		flex: 0 0 63.333%;
		max-width: 63.333%;
	}
}

.logo .custom-logo,
.logo img {
	width: 100%;
	height: auto;
	max-width: none;
}

@media (max-width: 575.98px) {
	.logo .custom-logo,
	.logo img {
		width: auto;
		max-width: 209px;
	}
}

/* ==========================================================================
   Sima 2027 — heading scale
   Body text is 14px, but headings were 40 / 32 / 28 / 24px, which read as
   oversized against it. Rescaled for consistency across the site.
   ========================================================================== */

h1, .entry-title { font-size: 28px; }
h2               { font-size: 22px; }
h3               { font-size: 19px; }
h4, h4.title     { font-size: 17px; }
h5               { font-size: 15px; }
h6               { font-size: 14px; }

h1, h2, h3, h4, h5, h6 {
	color: #083877;
	line-height: 1.3;
}

@media (max-width: 575.98px) {
	h1, .entry-title { font-size: 24px; }
	h2               { font-size: 20px; }
	h3               { font-size: 18px; }
}

/* ==========================================================================
   Sima 2027 — link tones from the logo palette
   #205080 on white measures 8.3:1 (WCAG AA needs 4.5:1).
   The logo's mid blue #0880c8 measures 4.26:1 — just under AA — so it is
   not used for text; the underline carries the hover state instead.
   ========================================================================== */

.container a,
.textwidget a {
	color: #205080;
}

.container a:hover,
.container a:focus,
.textwidget a:hover,
.textwidget a:focus {
	color: #083877;
	text-decoration: underline;
}

/* menus and card captions keep their own colours */
.mainmenu a,
.mainmenu a:hover,
.topmenu a,
.thumbnail .caption a {
	color: inherit;
}

/* news / circular / procurement listing headings */
.container h2 a,
.container h3 a,
.container h4.title a {
	color: #205080;
	text-decoration: none;
}

.container h2 a:hover,
.container h3 a:hover,
.container h4.title a:hover {
	color: #083877;
	text-decoration: underline;
}

/* ==========================================================================
   Sima 2027 — mobile overflow fix
   Page content was overflowing the viewport on phones, clipping text at the
   left edge (e.g. "SIMA" rendering as "MA"). The theme previously had a
   single @media rule at 425px and no containment, so any wide element — a
   map embed, a banner, a table — dragged the whole page sideways.
   ========================================================================== */

@media (max-width: 767.98px) {

	html,
	body {
		overflow-x: hidden;
		max-width: 100%;
	}

	.container,
	.container-fluid {
		max-width: 100%;
		padding-left: 15px;
		padding-right: 15px;
	}

	/* the blue bars are meant to run edge to edge */
	.container-fluid.bluebar {
		padding-left: 0;
		padding-right: 0;
	}

	.row {
		margin-left: 0;
		margin-right: 0;
	}

	[class*="col-"] {
		padding-left: 0;
		padding-right: 0;
	}

	img,
	iframe,
	embed,
	object,
	video {
		max-width: 100%;
		height: auto;
	}

	iframe {
		width: 100%;
	}

	/* wide tables scroll inside themselves instead of stretching the page */
	table {
		max-width: 100%;
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	/* long unbroken strings such as email addresses */
	p,
	li,
	td,
	h1, h2, h3, h4, h5, h6 {
		overflow-wrap: break-word;
		word-wrap: break-word;
	}
}

/* ==========================================================================
   Sima 2027 — header text
   The site title was printed as a 40px span beside a logo that already
   contains the organisation name, so the name appeared twice. The title is
   no longer printed (see header.php); the tagline now sits beside the logo.
   ========================================================================== */

span.blogdesc {
	display: block;
	color: #083877;
	font-size: 17px;
	line-height: 1.35;
	margin-top: 14px;
	white-space: normal;
}

@media (max-width: 767.98px) {
	span.blogdesc {
		margin-top: 8px;
		font-size: 15px;
		text-align: center;
	}

	.logo {
		text-align: center;
	}
}

/* ==========================================================================
   Sima 2027 — multi-level menu (3+ levels)
   The theme requests depth => 5 but only styled two levels, with a hardcoded
   margin-top:-32px that breaks when an item wraps. These rules are
   depth-agnostic: every nested level flies out from its parent, and
   menu-toggle.js flips a flyout leftward when it would leave the viewport.
   ========================================================================== */

@media (min-width: 992px) {

	/* each item anchors its own flyout, at any depth */
	.mainmenu .nav li {
		position: relative;
	}

	/* level 3 and deeper: sit beside the parent item, not below it */
	.mainmenu .nav ul.sub-menu ul.sub-menu {
		top: 0;
		left: 100%;
		margin-top: 0;
		white-space: normal;
		min-width: 220px;
	}

	/* when a flyout would overflow the viewport, open it to the left */
	.mainmenu .nav ul.sub-menu ul.sub-menu.flip-left {
		left: auto;
		right: 100%;
	}

	/* first level: mark items that open something */
	.mainmenu .nav > li.menu-item-has-children > a::after {
		content: "\25be";
		margin-left: 6px;
		font-size: 10px;
		vertical-align: 1px;
		opacity: .75;
	}

	/* deeper levels: a right-pointing marker, since they fly out sideways */
	.mainmenu .nav ul.sub-menu li.menu-item-has-children > a {
		padding-right: 26px;
	}

	.mainmenu .nav ul.sub-menu li.menu-item-has-children > a::after {
		content: "\25b8";
		position: absolute;
		right: 10px;
		top: 50%;
		transform: translateY(-50%);
		font-size: 11px;
		opacity: .8;
	}

	.mainmenu .nav ul.sub-menu li.menu-item-has-children > a {
		position: relative;
	}

	/* keep nested panels readable rather than one long line */
	.mainmenu .nav ul.sub-menu {
		min-width: 220px;
		max-width: 320px;
	}
}

/* --- Mobile: indent each level so depth is legible ----------------------- */
@media (max-width: 991.98px) {

	.mainmenu .nav ul.sub-menu li a {
		padding-left: 28px;
	}

	.mainmenu .nav ul.sub-menu ul.sub-menu li a {
		padding-left: 44px;
	}

	.mainmenu .nav ul.sub-menu ul.sub-menu ul.sub-menu li a {
		padding-left: 60px;
	}

	.mainmenu .nav ul.sub-menu ul.sub-menu ul.sub-menu ul.sub-menu li a {
		padding-left: 76px;
	}

	/* deeper levels sit on a slightly darker tint so nesting reads */
	.mainmenu .nav ul.sub-menu ul.sub-menu li a {
		background: #22a6c4;
	}

	.mainmenu .nav ul.sub-menu ul.sub-menu ul.sub-menu li a {
		background: #1b94b0;
	}
}

/* ==========================================================================
   Sima 2027 — menu accessibility
   A skip link for keyboard users, and a visible marker for the current page
   (the theme gave no visual or assistive signal for where you are).
   ========================================================================== */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 10px 16px;
	background: #083877;
	color: #fff;
	border-radius: 0 0 6px 0;
	text-decoration: none;
}

.skip-link:focus {
	left: 0;
	color: #fff;
}

.mainmenu .nav a[aria-current="page"] {
	background: #205080;
}

.mainmenu .nav ul.sub-menu a[aria-current="page"] {
	background: #083877;
	color: #fff;
}

.topmenu .nav a[aria-current="page"] {
	background: #2bb7d8;
	color: #083877;
}

/* === Customizer CSS folded in (v1.1.1, 16 Nov 2026) ======================
   Everything below was developed and verified live in Appearance >
   Customize > Additional CSS. It is folded into the theme so a reinstall
   cannot lose it. The Customizer copy is identical, so keeping both
   changes nothing on screen; once this version is installed the
   Customizer box can be emptied.
   ========================================================================= */

body {
	font-size: 15px;
}

@media (min-width: 576px) {

	.logo.col-sm-4 + .col-sm-8 {
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

span.blogdesc {
	display: block;
	color: #083877;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -0.01em;
	margin-top: 0;
	max-width: 240px;
	white-space: normal;
}

@media (max-width: 575.98px) {

	span.blogdesc {
		font-size: 19px;
		max-width: none;
		margin-top: 8px;
		text-align: center;
	}
}

/* --- Top (secondary) menu ------------------------------------------------ */

.topmenu .nav li a {
	color: #205080;
	font-weight: 700;
	font-size: 14px;
}

.topmenu .nav li a:hover,
.topmenu .nav li a:focus {
	color: #083877;
}

/* --- Logo: 190 -> 209 -> 230 -> 253 -> 278 -> 306px --------------------- */

@media (min-width: 576px) {

	.logo.col-sm-4 {
		flex: 0 0 53.68%;
		max-width: 53.68%;
	}

	.logo.col-sm-4 + .col-sm-8 {
		flex: 0 0 46.32%;
		max-width: 46.32%;
	}
}

@media (max-width: 575.98px) {

	.logo .custom-logo,
	.logo img {
		width: auto;
		max-width: 306px;
	}
}

/* --- Site title: two lines, matching the logo's height exactly ----------
   The title sits to the right of the logo and is sized so the two lines
   span the same height as the logo image, top edge to bottom edge. The
   logo scales with the container, so each breakpoint needs its own size.
   Measured on the live page; the deltas against the logo are 0 or 1px:

     >= 1200px   logo 306 x 80   title 30px / 40px line box
     992-1199    logo 258 x 68   title 21px / 33.5px
     768-991     logo 193 x 51   title 15px / 25.5px

   In every band the title column is flex: 1 1 0 with min-width: 0, not
   1 1 auto. With auto its flex basis is its content width, which overflows
   the row and drops the title underneath the logo instead of beside it.

   At >= 1200 the row is also re-split 58/42 to give the lines room. 62%
   was tried and pushed the top menu onto a second line, so 58% stands.
   That widens the left column, and the logo column is a percentage of it,
   so the logo is pinned to 306px or it stretches to 355px. Those selectors
   carry .container .row deliberately: the percentage rules above appear
   later in this stylesheet, so a plain .logo.col-sm-4 loses on source
   order.
   ------------------------------------------------------------------------ */

@media (min-width: 1200px) {

	.container > .row > .col-sm-6:has(.logo) {
		flex: 0 0 58%;
		max-width: 58%;
	}

	.container > .row > .col-sm-6.topmenu {
		flex: 0 0 42%;
		max-width: 42%;
	}

	.container .row .logo.col-sm-4 {
		flex: 0 0 306px;
		max-width: 306px;
	}

	.container .row .logo.col-sm-4 + .col-sm-8 {
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
	}

	span.blogdesc {
		font-size: 30px;
		line-height: 40px;
		max-width: none;
	}
}

@media (min-width: 992px) and (max-width: 1199.98px) {

	.container .row .logo.col-sm-4 + .col-sm-8 {
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
	}

	span.blogdesc {
		font-size: 21px;
		line-height: 33.5px;
		max-width: none;
	}
}

@media (min-width: 768px) and (max-width: 991.98px) {

	.container .row .logo.col-sm-4 + .col-sm-8 {
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
	}

	span.blogdesc {
		font-size: 15px;
		line-height: 25.5px;
		max-width: none;
	}
}

/* --- Carousel slide titles ---------------------------------------------- */

.carousel-caption {
	border-radius: 8px;
	padding: 12px 18px;
	background: rgba(8, 56, 119, .92);
	right: auto;
	left: 15px;
	width: 445px;
	max-width: calc(100% - 30px);
	text-align: left;
}

@media (min-width: 576px) {
	.carousel-caption { left: calc((100% - 540px) / 2); }
}

@media (min-width: 768px) {
	.carousel-caption { left: calc((100% - 720px) / 2); }
}

@media (min-width: 992px) {
	.carousel-caption { left: calc((100% - 960px) / 2); }
}

@media (min-width: 1200px) {
	.carousel-caption { left: calc((100% - 1140px) / 2); }
}

@media (max-width: 575.98px) {

	.carousel-caption {
		padding: 9px 13px;
		border-radius: 6px;
		width: auto;
	}
}

/* --- Menu fixes ---------------------------------------------------------- */

.mainmenu .nav ul.sub-menu {
	overflow: visible;
}

.mainmenu .nav ul.sub-menu > li:first-child > a {
	border-radius: 8px 8px 0 0;
}

.mainmenu .nav ul.sub-menu > li:last-child > a {
	border-radius: 0 0 8px 8px;
}

@media (min-width: 992px) {

	.mainmenu .nav > li {
		position: relative;
	}

	.mainmenu .nav > li > ul.sub-menu {
		top: 100%;
		left: 0;
		margin-top: 0;
		z-index: 1000;
	}

	.mainmenu .nav ul.sub-menu li ul.sub-menu {
		top: 0;
		left: 100%;
		margin-top: 0;
		white-space: normal;
		z-index: 1001;
	}

	.mainmenu .nav ul.sub-menu li ul.sub-menu.flip-left {
		left: auto;
		right: 100%;
	}

	.mainmenu .nav > li > a {
		padding: 10px 8px;
	}

	.mainmenu .nav > li:not(:last-child)::after {
		margin: 0 2px;
	}
}

/* --- Submenu panel widths -----------------------------------------------
   The panels are absolutely positioned inside a containing block with no
   spare width, so shrink-to-fit collapses them to their narrowest word and
   min-width cannot grow them past that. An explicit width is the only thing
   that works here. Widths were found by measuring the real labels on the
   live page and stepping up until nothing wrapped onto a second line.
   ------------------------------------------------------------------------ */

@media (min-width: 992px) {

	.mainmenu .nav > li > ul.sub-menu {
		width: 406px;
		max-width: none;
	}

	.mainmenu .nav ul.sub-menu li ul.sub-menu {
		width: 350px;
		min-width: 0;
		max-width: none;
	}
}

/* --- Mobile menu: the whole row opens the submenu -----------------------
   Only the 48px caret at the far right used to open a submenu, so tapping
   the label did nothing. Now any parent row toggles its own submenu, at
   every level. The parent's own page is reached from inside the submenu.
   ------------------------------------------------------------------------ */

@media (max-width: 991.98px) {

	.mainmenu .nav li.menu-item-has-children > .submenu-toggle {
		left: 0;
		right: 0;
		width: auto;
		padding-right: 20px;
		text-align: right;
		border-radius: 0;
		background: rgba(255, 255, 255, .10);
	}

	.mainmenu .nav .sub-menu li.menu-item-has-children > .submenu-toggle {
		background: rgba(8, 56, 119, .07);
	}

	.mainmenu .nav .sub-menu .sub-menu > li > a {
		padding-left: 32px;
	}
}

/* --- Content links: blue and underlined --------------------------------
   #1d7c93 is the logo light blue darkened 32%: 4.82:1 on white. The lighter
   #2bb7d8 measures only 2.37:1, under the 4.5:1 needed for body text.
   ------------------------------------------------------------------------ */

.container a,
.textwidget a,
.entry-content a,
.content a,
.container h1 a,
.container h2 a,
.container h3 a,
.container h4 a,
.container h5 a,
.container h6 a {
	color: #1d7c93;
	text-decoration: underline;
}

.container a:hover,
.container a:focus,
.textwidget a:hover,
.textwidget a:focus,
.entry-content a:hover,
.entry-content a:focus,
.content a:hover,
.content a:focus,
.container h2 a:hover,
.container h3 a:hover,
.container h4 a:hover {
	color: #083877;
	text-decoration: underline;
}

.container a:has(> img),
.widget a:has(> img),
.textwidget a:has(> img) {
	text-decoration: none;
}

.mainmenu a,
.mainmenu a:hover,
.topmenu a,
.topmenu a:hover,
.thumbnail a,
.thumbnail .caption a,
.carousel a,
.navbar a,
.skip-link,
.widget a.button,
.container a.button {
	text-decoration: none;
}

/* --- Header bars: navy to blue gradient ---------------------------------
   The thin top strip and the main menu band sweep from the brand navy on
   the left to a lighter blue on the right. Both bars carry .bluebar, which
   this stylesheet sets to a flat #083877 with !important above, so these
   overrides need !important and a more specific selector to win.

   The navbar inside the menu band carries .bg-dark, also flat #083877, and
   would otherwise paint a solid block on top of the gradient, so it is made
   transparent and the gradient is drawn by the band behind it.

   The light end stops at #1278b5 on purpose. White text measures 4.80:1
   there, just over the 4.5:1 that WCAG AA needs for the 14px menu labels.
   The logo's own light blue (#00a8d0) would look closer to the reference
   but measures 2.80:1, which would leave the right-hand menu items hard to
   read.
   ------------------------------------------------------------------------ */

.container-fluid.bluebar {
	background: #083877 !important;
	background: linear-gradient(90deg,
		#083877 0%,
		#0a4b8a 40%,
		#0e63a0 72%,
		#1278b5 100%) !important;
}

.mainmenu .navbar.bg-dark,
.container-fluid.bluebar .navbar.bg-dark {
	background: transparent !important;
}

/* --- Header band: the gradient behind the logo and site title -----------
   header.php wraps the logo/title row in .headerband so the gradient can
   run the full width of the window. Both this band and the menu band below
   it are full-width elements carrying the same gradient, so the two line up
   exactly. Doing it from inside the centred .container instead needed 100vw
   (which overflows by the scrollbar width) or a box-shadow spread (which an
   ancestor's overflow clips) - both were tried on the live page first.

   The title and the top menu turn white on the gradient. Those two rules
   are scoped to .headerband deliberately: that raises their specificity
   above the navy colours set earlier in this stylesheet and above the copy
   of them in the Customizer, which loads after the theme. Scoping also
   means they do nothing until .headerband exists, so nothing breaks in the
   window between this stylesheet and the new header.php going live.
   ------------------------------------------------------------------------ */

.headerband {
	background: #083877;
	background: linear-gradient(90deg,
		#083877 0%,
		#0a4b8a 40%,
		#0e63a0 72%,
		#1278b5 100%);
}

.headerband span.blogdesc {
	color: #fff;
}

.headerband .topmenu .nav li a {
	color: #fff;
}

.headerband .topmenu .nav li a:hover,
.headerband .topmenu .nav li a:focus {
	color: #bfe3f5;
}

/* --- Carousel caption: text centred in its box --------------------------
   The caption's heading carries a bottom margin, so the text sat 13px below
   the top of the box but 21px above the bottom - 8px high. Zeroing the
   margin on the last child balances it at 13/13 without touching the
   padding, which keeps this rule clear of the copy of the caption styles in
   the Customizer. Only the last child is zeroed, so a caption with a title
   and a line of description still spaces the two apart.
   ------------------------------------------------------------------------ */

.carousel-caption > *:last-child {
	margin-bottom: 0;
}
