/* ============================================================================
   FUTUREHEALTH BRAND LAYER - 2026 FutureHealth Systems identity
   ----------------------------------------------------------------------------
   Linked last in <head> by fhs_brand_2026.php, and only while the brand switch
   (fhs_brand_2026.mode) is on. Deleting the link is a complete undo for
   everything in this file.

   The retired palette is re-mapped at the source by fhs_brand_2026.php (it
   serves colour-mapped copies of the site stylesheets and rewrites inline
   styles), so this file only carries what a colour swap cannot express:
   the typeface, the navigation, Bootstrap's own defaults, and the footer.

   Guide rules followed here (fhs-partners.com/intranet/branding):
     - Orange is the one accent: a line, a button, a logo detail. Never a large
       area, never text on white.
     - On light grounds use Deep Blue, Navy or Grey. On Deep Blue or Navy, white.

   Most rules are prefixed "html body". Bootstrap and several page stylesheets
   are linked from inside <body>, after this file, so load order cannot be
   relied on; the extra specificity is what makes these win.
   ========================================================================== */

/* --- Montserrat, self-hosted (never Google Fonts) --------------------------
   A variable font: these two files cover every weight from 100 to 900.
   -------------------------------------------------------------------------- */
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('/fonts/montserrat/montserrat-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('/fonts/montserrat/montserrat-latin.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;
}

:root {
	/* Core five */
	--fh-deep-blue:  #1B2442;
	--fh-orange:     #FAAC30;
	--fh-steel-blue: #365E81;
	--fh-navy:       #082458;
	--fh-grey:       #5C5D5E;

	/* Supporting shades, from the guide's "More shades" table */
	--fh-deep-blue-mid:      #555C70;
	--fh-deep-blue-pastel:   #A4A7B3;
	--fh-deep-blue-light:    #EAEBEE;
	--fh-orange-mid:         #FBC66E;
	--fh-orange-pastel:      #FDE0B0;
	--fh-orange-light:       #FFF5E5;
	--fh-steel-blue-mid:     #718CA4;
	--fh-steel-blue-pastel:  #B4C3D0;
	--fh-steel-blue-light:   #EDF2F5;
	--fh-bright-blue:        #3C79C5;
	--fh-bright-blue-mid:    #709DD6;
	--fh-bright-blue-pastel: #AEC9E9;
	--fh-bright-blue-light:  #EAF2FB;
	--fh-navy-mid:           #526381;
	--fh-navy-pastel:        #A1ABBC;
	--fh-navy-light:         #E8EBF0;
	--fh-grey-mid:           #8D8E8E;
	--fh-grey-pastel:        #C5C5C6;
	--fh-grey-light:         #F0F0F0;
	--fh-turquoise:          #45B9E8;
	--fh-turquoise-mid:      #78CBEA;
	--fh-turquoise-pastel:   #B9E4F3;
	--fh-turquoise-light:    #EAF7FC;

	/* Not in the palette table: the tint behind the footer's top band, from
	   the approved footer design in the brand deck. */
	--fh-footer-tint: #DBE9F4;

	--fh-font: 'Montserrat', Arial, Helvetica, sans-serif;

	/* The accent for buttons. One accent site-wide for now; the IFS site uses
	   Turquoise in its logged-in areas, and switching the dashboards to match
	   means overriding these two under the dashboard body classes. */
	--fh-accent:       var(--fh-orange);
	--fh-accent-hover: var(--fh-orange-mid);
	--fh-on-accent:    var(--fh-deep-blue);
}

/* ============================================================================
   TYPOGRAPHY
   ----------------------------------------------------------------------------
   One face everywhere. The old site set Courgette, Great Vibes, Dosis, Oswald,
   Lato and Arial through ten stylesheets and hundreds of inline style
   attributes, so the family is forced. Icon fonts and monospace are excluded:
   they put their family on the element itself and would otherwise turn into
   empty boxes.
   ========================================================================== */
html body,
html body *:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.glyphicon):not([class^="vjs-"]):not([class*=" vjs-"]):not([class^="icon-"]):not([class*=" icon-"]):not(code):not(pre):not(kbd):not(samp):not(tt) {
	font-family: var(--fh-font) !important;
}

/* Guide weights: Bold titles, SemiBold section headers, Regular body, Medium
   labels and buttons. Colours are left to the mapped stylesheets, because
   several headings sit on dark bands and must stay white. */
html body                    { font-weight: 400; }
html body h1, html body h2, html body h3,
html body .h1, html body .h2, html body .h3 { font-weight: 700; }
html body h4, html body h5, html body h6,
html body .h4, html body .h5, html body .h6 { font-weight: 600; }
html body .btn,
html body button,
html body input[type="submit"],
html body input[type="button"],
html body label              { font-weight: 500; }

/* The script faces were drawn much smaller than their point size, so text
   set for them comes out oversized and loose in Montserrat. */
html body [style*="Courgette"],
html body [style*="Great Vibes"] {
	font-weight: 700;
	letter-spacing: -.01em;
	font-size: clamp(28px, 4.4vmin, 50px) !important;
	line-height: 1.15 !important;
}
/* Several headings are set in a 300 weight, where a relative "bolder" only
   reaches 400 and the bold half of the Future<b>Health</b> wordmark vanishes. */
html body b,
html body strong {
	font-weight: 700;
}

/* ============================================================================
   LINKS
   ========================================================================== */
html body a        { color: var(--fh-steel-blue); }
html body a:hover,
html body a:focus  { color: var(--fh-deep-blue); }

/* Links sitting on a Deep Blue band (the mapped stylesheets leave them Steel
   Blue, which is unreadable there). Both spellings the mapper can emit. */
html body [style*="background-color:#1B2442"] a:not(.btn),
html body [style*="background-color: #1B2442"] a:not(.btn),
html body [style*="background:#1B2442"] a:not(.btn),
html body [style*="background: #1B2442"] a:not(.btn) {
	color: var(--fh-orange-mid);
	text-decoration: underline;
}

/* ============================================================================
   NAVIGATION - public templates (.navbar-custom)
   ----------------------------------------------------------------------------
   The new logo is Deep Blue on transparent, so the bar goes white with Navy
   links (the guide gives navigation to Navy) and a thin Orange rule: a line is
   exactly the kind of small detail Orange is for. The link colours carry
   !important because the templates set color:#FFF inline on every nav link.
   ========================================================================== */
html body .navbar-custom,
html body .navbar-custom.top-nav-collapse {
	background: #fff !important;
	border: 0 !important;
	border-bottom: 3px solid var(--fh-orange) !important;
	box-shadow: 0 1px 8px rgba(27, 36, 66, .12);
	min-height: 72px;
}
html body .navbar-custom .navbar-header img,
html body .navbar-custom .navbar-brand img {
	height: 56px !important;
	width: auto !important;
	max-width: none !important;
	margin: 8px 0 8px 4px !important;
}
html body .navbar-custom .navbar-nav > li > a,
html body .navbar-custom .nav-label,
html body .navbar-custom a {
	color: var(--fh-navy) !important;
	font-weight: 600;
	text-shadow: none !important;
	letter-spacing: .02em;
}
html body .navbar-custom .navbar-nav > li > a:hover,
html body .navbar-custom .navbar-nav > li > a:focus,
html body .navbar-custom .nav-label:hover,
html body .navbar-custom a:hover {
	color: var(--fh-steel-blue) !important;
	background: none !important;
}
html body .navbar-custom .navbar-nav > li {
	margin-top: 8px;
}
/* The bar is fixed and now about 20px taller than the old grey one, and on
   most inner pages the red notice sits inside it too. The templates clear it
   with a fixed run of <br> tags, so the page body is nudged down by the
   difference; without this the bar covers the top of the page heading. */
html body nav.navbar-custom.navbar-fixed-top + .container-fluid {
	padding-top: 20px;
}
html body .navbar-custom .navbar-toggle {
	color: var(--fh-navy) !important;
	border-color: var(--fh-navy-pastel) !important;
	margin-top: 19px;
}
html body .navbar-custom .form-control {
	border-color: var(--fh-steel-blue-pastel);
	box-shadow: none;
}
html body .navbar-custom input[type="submit"].form-control {
	background: var(--fh-deep-blue);
	border-color: var(--fh-deep-blue);
	color: #fff;
}

/* ============================================================================
   LOGO SIZING outside the public navbar
   ----------------------------------------------------------------------------
   The new logo carries two extra lines under the wordmark, so it is about
   twice as tall for the same width as the old one. Where a template sized the
   old logo by width alone, or pinned it to 30px high, it is re-fitted here.
   ========================================================================== */
html body img[src*="fh-logo-2026"]:not(.fhs-footer img) {
	max-height: 72px;
	width: auto;
}
/* Dashboards: the bar must stay 50px tall, because the sidebar is fixed to
   start at 51px. The template pins the logo at 30px, which is too small to
   read the descriptor line, so the brand link gives up its padding instead. */
html body .navbar-brand:has(img[src*="fh-logo-2026"]) {
	padding: 4px 15px !important;
	height: 50px !important;
}
html body .navbar-brand img[src*="fh-logo-2026"] {
	height: 42px !important;
	max-height: 42px;
	width: auto !important;
}
/* Dashboards: the sidebar is position:fixed for the full height of the
   window, so the footer starts where the sidebar ends. Direct children of
   <body> only: the dashboard templates leave their page wrapper unclosed, so
   the browser usually nests the footer inside it, where it is already clear
   of the sidebar and a second offset pushes it 250px too far right. */
@media (min-width: 768px) {
	html body:has(.sidebar-nav) > .fhs-footer {
		margin-left: 250px !important;
		width: auto !important;
	}
}
/* Documentary cards on the shop pages: Montserrat runs wider than Arial and
   the 16px titles were clipping at the card edge. */
html body .card-fh h3 {
	font-size: 12.5px !important;
	line-height: 1.35;
	font-weight: 600;
	font-style: normal;
	letter-spacing: -.01em;
	margin-left: 0 !important;
}

/* ============================================================================
   BUTTONS AND BOOTSTRAP DEFAULTS
   ----------------------------------------------------------------------------
   Bootstrap 3 ships its own blue (#337ab7) on a dozen components and is
   linked from inside <body>, so it is re-pointed here rather than mapped.
   The primary button is where the accent earns its keep: Deep Blue text on
   it, never white (white on Orange is under 2:1).
   ========================================================================== */
/* !important throughout: the page stylesheets pin .btn-primary's fill with
   !important themselves, and a Deep Blue label on their Deep Blue fill is how
   the first preview shipped two blank buttons on the About page. */
html body .btn-primary,
html body .btn-primary:active,
html body .btn-primary.active,
html body .btn-primary:visited {
	background-image: none !important;
	background-color: var(--fh-accent) !important;
	border-color: var(--fh-accent) !important;
	color: var(--fh-on-accent) !important;
	text-shadow: none !important;
}
html body .btn-primary:hover,
html body .btn-primary:focus {
	background-image: none !important;
	background-color: var(--fh-accent-hover) !important;
	border-color: var(--fh-accent-hover) !important;
	color: var(--fh-on-accent) !important;
}
html body .btn-primary .glyphicon,
html body .btn-primary .fa {
	color: var(--fh-on-accent) !important;
}
html body .btn-info,
html body .btn-info:active,
html body .btn-info:visited {
	background-image: none;
	background-color: var(--fh-steel-blue);
	border-color: var(--fh-steel-blue);
	color: #fff;
}
html body .btn-info:hover,
html body .btn-info:focus {
	background-color: var(--fh-deep-blue);
	border-color: var(--fh-deep-blue);
	color: #fff;
}
html body .btn-link                      { color: var(--fh-steel-blue); }
html body .text-primary                  { color: var(--fh-deep-blue); }
html body .bg-primary                    { background-color: var(--fh-deep-blue); color: #fff; }
html body .label-primary,
html body .badge-primary                 { background-color: var(--fh-deep-blue); }
html body .progress-bar:not(.progress-bar-success):not(.progress-bar-warning):not(.progress-bar-danger):not(.progress-bar-info) {
	background-color: var(--fh-steel-blue);
}
html body .panel-primary                 { border-color: var(--fh-deep-blue); }
html body .panel-primary > .panel-heading {
	background-color: var(--fh-deep-blue);
	border-color: var(--fh-deep-blue);
	color: #fff;
}
html body .panel-primary > .panel-heading a { color: #fff; }
html body .nav-pills > li.active > a,
html body .nav-pills > li.active > a:hover,
html body .nav-pills > li.active > a:focus,
html body .list-group-item.active,
html body .list-group-item.active:hover,
html body .list-group-item.active:focus,
html body .pagination > .active > a,
html body .pagination > .active > span,
html body .dropdown-menu > .active > a,
html body .dropdown-menu > .active > a:hover {
	background-color: var(--fh-deep-blue);
	border-color: var(--fh-deep-blue);
	color: #fff;
}
html body .pagination > li > a,
html body .pagination > li > span        { color: var(--fh-steel-blue); }
html body .form-control:focus {
	border-color: var(--fh-steel-blue);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px rgba(54, 94, 129, .45);
}

/* Fills the mapper turns Orange. Their text was white or unset, which fails
   on Orange, so it is pinned to Deep Blue in the same breath. */
html body .call-to-action-bar,
html body .call-to-action-bar a,
html body .add-to-cart,
html body .like,
html body .green,
html body .orange,
html body .fhgreen-bg {
	color: var(--fh-deep-blue);
}

/* ============================================================================
   OLD FOOTER - retired
   ----------------------------------------------------------------------------
   The old footer was a logo and one line of links, written separately into
   every template. Rather than edit each template, the pieces are hidden here
   and the new footer is appended by fhs_brand_2026.php. Turning the brand off
   brings the old one straight back.
   ========================================================================== */
html body .footer-logo-img,
html body .footer-logo-img-short,
html body .dash-footer-logo-img,
html body .footer-nav,
html body .dash-footer-nav {
	display: none !important;
}
/* The bar some templates pin to the bottom of the window held nothing else. */
html body .navbar-fixed-bottom:has(.footer-nav) {
	display: none !important;
}

/* ============================================================================
   FOOTER - 2026 design (same three bands as insuranceforstudents.com)
   ----------------------------------------------------------------------------
   Light tinted band (logo, blurb, social, Explore, Contact), a Deep Blue
   family band, then a Deep Blue legal bar. Structural rules carry !important:
   the footer lands on a dozen templates with different generic list, link and
   paragraph rules, and it has to look the same on all of them.
   ========================================================================== */
html body .fhs-footer,
html body .fhs-footer * {
	box-sizing: border-box !important;
}
/* The top margin clears the blog carousel's indicator dots, which hang 25px
   below the carousel and would otherwise sit on the footer's top band. */
html body .fhs-footer {
	clear: both !important;
	position: relative;
	width: 100% !important;
	margin: 48px 0 0 !important;
	padding: 0 !important;
	text-align: left !important;
	color: var(--fh-deep-blue);
	font-size: 15px;
	line-height: 1.6;
}
html body .fhs-footer__main {
	background-color: var(--fh-footer-tint) !important;
	padding: 56px 0 48px !important;
}
html body .fhs-footer__inner {
	max-width: 1230px !important;
	margin: 0 auto !important;
	padding: 0 24px !important;
	display: grid !important;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}
html body .fhs-footer__logo {
	display: inline-block;
}
html body .fhs-footer__logo img {
	width: 300px !important;
	max-width: 100% !important;
	height: auto !important;
	display: block;
	margin: 0 !important;
}
html body .fhs-footer__blurb {
	margin: 22px 0 0 !important;
	padding: 0 !important;
	max-width: 46ch;
	font-size: 15px !important;
	line-height: 1.65 !important;
	font-weight: 400 !important;
	color: var(--fh-deep-blue) !important;
}
html body .fhs-footer ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
html body .fhs-footer li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	background: none !important;
}
/* "ul" is in the selector on purpose: the list reset just above is
   ".fhs-footer ul", which out-specifies a bare class and was zeroing this
   margin, leaving the icons hard against the blurb. */
html body .fhs-footer ul.fhs-footer__social {
	display: flex !important;
	gap: 12px;
	margin: 28px 0 0 !important;
}
html body .fhs-footer__social a {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	background-color: var(--fh-deep-blue) !important;
	color: #fff !important;
	text-decoration: none !important;
	transition: background-color .15s ease;
}
html body .fhs-footer__social a:hover,
html body .fhs-footer__social a:focus {
	background-color: var(--fh-steel-blue) !important;
	color: #fff !important;
}
html body .fhs-footer__social svg {
	width: 15px;
	height: 15px;
	display: block;
	fill: currentColor;
}
html body .fhs-footer__heading {
	margin: 0 0 18px !important;
	padding: 0 !important;
	font-size: 17px !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	color: var(--fh-deep-blue) !important;
}
html body .fhs-footer__list li {
	margin-bottom: 11px !important;
}
html body .fhs-footer__list li:last-child {
	margin-bottom: 0 !important;
}
html body .fhs-footer__list a,
html body .fhs-footer__contact a {
	color: var(--fh-deep-blue) !important;
	text-decoration: none !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
}
html body .fhs-footer__list a:hover,
html body .fhs-footer__list a:focus,
html body .fhs-footer__contact a:hover,
html body .fhs-footer__contact a:focus {
	color: var(--fh-steel-blue) !important;
	text-decoration: underline !important;
}
html body .fhs-footer__contact p {
	margin: 0 0 11px !important;
	padding: 0 !important;
	font-size: 15px !important;
	line-height: 1.5 !important;
	color: var(--fh-deep-blue) !important;
}

/* --- Family band ----------------------------------------------------------- */
html body .fhs-footer__family {
	background-color: var(--fh-deep-blue) !important;
	padding: 30px 0 26px !important;
}
html body .fhs-footer__family-inner,
html body .fhs-footer__legal-inner {
	max-width: 1230px !important;
	margin: 0 auto !important;
	padding: 0 24px !important;
}
html body .fhs-footer__family-title {
	margin: 0 0 16px !important;
	padding: 0 !important;
	font-size: 15px !important;
	line-height: 1.3 !important;
	font-weight: 600 !important;
	color: #fff !important;
}
html body .fhs-footer__family-links {
	display: flex !important;
	flex-wrap: wrap;
	gap: 14px 44px;
}
html body .fhs-footer__family-links a {
	color: var(--fh-deep-blue-pastel) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	text-decoration: none !important;
}
html body .fhs-footer__family-links a:hover,
html body .fhs-footer__family-links a:focus {
	color: var(--fh-orange) !important;
	text-decoration: underline !important;
}
/* House style: "Health" is the bold half of the FutureHealth wordmark. */
html body .fhs-footer__family-links a b,
html body .fhs-footer__legal p b {
	font-weight: 600 !important;
	color: inherit !important;
}

/* --- Legal bar ------------------------------------------------------------- */
html body .fhs-footer__legal {
	background-color: var(--fh-deep-blue) !important;
	border-top: 1px solid rgba(255, 255, 255, .14) !important;
	padding: 18px 0 22px !important;
}
html body .fhs-footer__legal-inner {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px 32px;
	align-items: center;
	justify-content: space-between;
}
html body .fhs-footer__legal-links {
	display: flex !important;
	flex-wrap: wrap;
	gap: 10px 28px;
}
html body .fhs-footer__legal a,
html body .fhs-footer__legal p {
	color: var(--fh-deep-blue-pastel) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	text-decoration: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
html body .fhs-footer__legal a:hover,
html body .fhs-footer__legal a:focus {
	color: #fff !important;
	text-decoration: underline !important;
}

@media (max-width: 900px) {
	html body .fhs-footer__inner {
		grid-template-columns: 1fr;
		gap: 34px;
	}
	html body .fhs-footer__legal-inner {
		justify-content: flex-start;
	}
}
@media print {
	html body .fhs-footer { display: none !important; }
}
