/* CSS Document */
/* GLOSSY PAGES ONLY */

/* ------------------- topic styles ------------------- */
.title-box {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    color: var(--b-deep-blue);
    min-height: 300px;
}
.glossy .title-box h1 {
	color: var(--b-deep-blue);
	font-size: 3.25rem;
}
#title-area {
  background-color: var(--g-accent-cyan-tint);
	background-repeat: no-repeat;
	background-position: 50% 0;
  background-size: cover;
  padding-top: var(--vertical-spacing);
  padding-bottom: var(--vertical-spacing);
}
#title-area + .content {
  padding-top: 2px;
}
#title-area.t1 {
	background-image: url("../img/themes/budget-theme-fuel.jpg");
}
#title-area.t2 {
	background-image: url("../img/themes/budget-theme-col.jpg");
}
#title-area.t3 {
	background-image: url("../img/themes/budget-theme-productivity.jpg");
}
#title-area.t4 {
	background-image: url("../img/themes/budget-theme-tax.jpg");
}
#title-area.t5 {
	background-image: url("../img/themes/budget-theme-care.jpg");
}
#title-area.t6 {
	background-image: url("../img/themes/budget-theme-security.jpg");
}

/* ------------------- right-hand navigation ------------------- */
#rh-nav {
  --rh-nav-top: 20px;
  font-family: 'Public Sans', sans-serif;
  color: #000;
  position: relative;
  z-index: 1;
  top: var(--rh-nav-top); /*44px;*/
  height: 0;
  transition: top 1s;
}
.js-is-sticky #rh-nav {
  top: var(--rh-nav-top);
}
.static-rh-nav #rh-nav {
  position: static;
  top: unset;
  height: 0;
}
.rh-box {
	display: flex;
	flex-direction: column;
	/*font-size: 17px;*//*AK*/
	font-size: 1.0625rem;/*AK*/
	font-weight: 700;
	margin: 0;
}
.rh-box a {
	background-color: #fff;
	color: var(--b-deep-blue);
  padding: 10px 16px;
	border: 1px solid var(--ui-light-grey);
	margin: 0;
}
.rh-box a:hover,
.rh-box a.disabled {
	color: var(--b-deep-blue);
	background-color: var(--tsy-mid-blue-light-tint);
  text-decoration: none;
  padding-left: 13px;
  border-left: solid 4px var(--b-mid-blue);
}
#rh-nav a:focus-visible,
#rh-nav-b a:focus-visible {
  outline-color: var(--ui-focus-light-bg) !important;
  outline-style: solid !important;
  outline-width: max(2px, 0.08em) !important;
  outline-offset: 0px !important;
  color: var(--b-deep-blue);
  background-color: var(--tsy-mid-blue-light-tint);
  border-color: var(--ui-light-grey);
  position: relative;
  z-index: 1;
}
.rh-box-h2 {
  color: #fff;
  background-color: var(--b-deep-blue);
  padding: 16px 16px;
  border: 1px solid var(--b-deep-blue);
  margin: 0;
}
.rh-box-h2 h2 {
  color: #fff;
  font-size: 17px;
  margin: 0;
}
.rh-box .list-group-item {
  border: none;
}
.rh-box .list-group-item a {
  color: var(--ui-almost-black);
}
.list-group-item,
.list-group-item.active {
  color: var(--ui-almost-black);
}
.default .list-group-item.active {
  background-color: var(--g-accent-cyan);
}

/* ------------------- cameo boxes ------------------- */
.glossy .cameo-box {
	margin-bottom: 2em;
}
.glossy .row.cameo-box {
  margin-left: 0;
  margin-right: 0;
}
.glossy .cameo-box h3 {
	font-family: 'Public Sans', sans-serif;
	font-size: 1rem;
}
.glossy .cameo-box h3, .glossy .cameo-box p, .glossy .cameo-box a {
    color: #fff;
}
.cameo-box p:last-of-type {
    margin-bottom: 0;
}
.cameo-box .col-lg-3,
.cameo-box .col-lg-4,
.cameo-box .col-lg-5,
.cameo-box .col-lg-6,
.cameo-box .col-lg-7,
.cameo-box .col-lg-8,
.cameo-box .col-lg-9,
.cameo-box .col-lg-12,
.cameo-box .col-xl-3,
.cameo-box .col-xl-4,
.cameo-box .col-xl-5,
.cameo-box .col-xl-6,
.cameo-box .col-xl-7,
.cameo-box .col-xl-8,
.cameo-box .col-xl-9,
.cameo-box .col-xl-12 {
  /* for text column */
  background-color: var(--b-deep-blue);
  padding: 40px;
}
.inner-cameo {
  /* for pair of text columns */
  background-color: var(--b-deep-blue);
  padding: 40px;
  height: 100%;
}
.cameo-box .col-lg-3:has(img),
.cameo-box .col-lg-4:has(img),
.cameo-box .col-lg-5:has(img),
.cameo-box .col-lg-6:has(img),
.cameo-box .col-lg-7:has(img),
.cameo-box .col-lg-8:has(img),
.cameo-box .col-lg-9:has(img),
.cameo-box .col-xl-3:has(img),
.cameo-box .col-xl-4:has(img),
.cameo-box .col-xl-5:has(img),
.cameo-box .col-xl-6:has(img),
.cameo-box .col-xl-7:has(img),
.cameo-box .col-xl-8:has(img),
.cameo-box .col-xl-9:has(img) {
  /* for image column */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 0;
}
.cameo-box img {
  flex-shrink: 0;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

/* ------------------- responsive styles ------------------- */
@media all and (min-width: 1600px) {
  #title-area {
    background-position: 50% 50%;
  }
}

@media all and (max-width: 991.98px) {
	.glossy .title-box h1 {
    font-size: 2.5rem;
  }
  #title-area.t6 {
    background-position: 60% 0;
  }
}

@media all and (max-width: 767.98px) {
  #title-area {
    background-position: 50% 0;
  }
  #title-area.t6 {
    background-position: 66% 0;
  }
	.cameo-box p.small {
    display: none; /* hide cameo box image credit */
  }
}

@media all and (max-width: 575.98px) {
  #title-area {
    padding-top: 0.75em;
		padding-bottom: 0.75em;
  }
  #title-area .btn {
    display: none;
  }
  .title-box {
		min-height: unset;
	}
}

/* additional non-Bootstrap breakpoint */
@media all and (max-width: 420px) {
	.glossy .title-box h1 {
		font-size: 2.25rem;
	}
  #title-area {
    background-position: 50% 0;
  }
  #title-area.t1 {
    background-position: 60% 0;
  }
}

/* extra extra small screens down to 320px wide */
@media all and (max-width: 360px) {
  .glossy .title-box h1 {
		font-size: 9.5vw;
	}
}
