/*
 * CUWCD theme on Bootstrap 5.3.
 *
 * Re-creates the look of the retired "{re}start" v4.2 theme (Bootstrap 3) on
 * top of Bootstrap 5. Values come from the old site's computed styles and the
 * rules it actually used (tools/style_spec.py). Page-specific rules live in
 * site.css, which loads after this file.
 *
 * Sections: 1 Tokens  2 Base elements  3 Grid  4 Bootstrap components
 *           5 Page frame (header, nav, banner, title bands, footer)
 *           6 Content blocks from the old theme
 */

/* 1. Tokens ---------------------------------------------------------------- */
html {
    font-size: 87.5%; /* 1rem = 14px, so Bootstrap's rem sizes match the old 14px design */
}

:root {
    --cuwcd-blue: #428bca;
    --cuwcd-blue-rgb: 66, 139, 202;
    --cuwcd-blue-dark: #2a6496;
    /* Link/button blue: Bootstrap 3.3.7's #337ab7 passes WCAG AA on white (4.56:1);
       the brand #428bca (3.6:1) stays for large headings, icons and accents. */
    --cuwcd-link: #337ab7;
    --cuwcd-link-rgb: 51, 122, 183;
    --cuwcd-link-hover: #23527c;
    --cuwcd-link-hover-rgb: 35, 82, 124;
    --cuwcd-navy: #004b8e;
    --cuwcd-border: #ccc;

    --bs-body-font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bs-body-font-size: 1rem;
    --bs-body-line-height: 1.42857143;
    --bs-body-color: #333;
    --bs-body-color-rgb: 51, 51, 51;
    --bs-primary: var(--cuwcd-link);
    --bs-primary-rgb: var(--cuwcd-link-rgb);
    --bs-link-color: var(--cuwcd-link);
    --bs-link-color-rgb: var(--cuwcd-link-rgb);
    --bs-link-hover-color: var(--cuwcd-link-hover);
    --bs-link-hover-color-rgb: var(--cuwcd-link-hover-rgb);
    --bs-border-color: var(--cuwcd-border);
    --bs-border-radius: 4px;
    --bs-focus-ring-color: rgba(var(--cuwcd-link-rgb), .35);
    --header-h: 153px; /* header height until site.js measures it */
}

@media (min-width: 992px) {
    :root { --header-h: 313px; }
}

@media (min-width: 1200px) {
    :root { --header-h: 262px; }
}

/* 2. Base elements (Bootstrap 3 / theme values) ------------------------------ */
body {
    -webkit-font-smoothing: antialiased;
}

a,
a:hover,
a:focus {
    text-decoration: none;
}

b,
strong {
    font-weight: 700; /* Bootstrap 5 uses 'bolder', which is only 400 inside light (300) text */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
    line-height: 1.1;
    margin-top: 20px;
    margin-bottom: 10px;
}

h4, h5, h6 {
    margin-top: 10px;
}

h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }

/* <small> inside headings (Bootstrap 3 rule, dropped in Bootstrap 5) */
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small,
h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small {
    font-weight: 400;
    line-height: 1;
    color: #999;
}

h1 small, h2 small, h3 small,
h1 .small, h2 .small, h3 .small {
    font-size: 65%;
}

h4 small, h5 small, h6 small,
h4 .small, h5 .small, h6 .small {
    font-size: 75%;
}

p {
    margin: 0 0 10px;
}

ul,
ol {
    margin-bottom: 10px;
}

ol {
    padding-left: 40px; /* browser default, as in Bootstrap 3 (Bootstrap 5 uses 2rem) */
}

small,
.small {
    font-size: 85%;
}

.lead {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .lead {
        font-size: 21px;
    }
}

hr {
    margin: 20px 0;
    border: 0;
    border-top: 1px solid #eee;
    opacity: 1;
}

img {
    max-width: 100%;
}

figure {
    margin: 14px 0 28px 0;
}

figure img {
    max-width: 100%;
}

/* 3. Grid: Bootstrap 3 widths and 30px gutters ------------------------------ */
.container,
.container-fluid,
.row {
    --bs-gutter-x: 30px;
}

@media (min-width: 576px) {
    .container { max-width: none; }
}

@media (min-width: 768px) {
    .container { max-width: 750px; }
}

@media (min-width: 992px) {
    .container { max-width: 970px; }
}

@media (min-width: 1200px) {
    .container { max-width: 1170px; } /* also caps Bootstrap 5's 1320px tier */
}

@media (max-width: 768px) {
    .container { max-width: none; } /* old site.css: .container { width: auto } up to 768px */
}

.row > [class*="col"] {
    position: relative; /* Bootstrap 3 columns were positioned */
}

/* A former Bootstrap 3 .row now used as a plain wrapper keeps the old row's
   clearfix, so floats and child margins behave exactly as before. */
.legacy-row::before,
.legacy-row::after {
    content: " ";
    display: table;
}

.legacy-row::after {
    clear: both;
}

/* Bootstrap 3 gave containers a clearfix; it also stops children's margins
   from collapsing through the container's edges (vertical spacing relies on it). */
.container::before,
.container::after {
    content: " ";
    display: table;
}

.container::after {
    clear: both;
}

/* 4. Bootstrap components ----------------------------------------------------- */
.btn {
    --bs-btn-padding-x: 12px;
    --bs-btn-padding-y: 6px;
    --bs-btn-font-size: 14px;
    --bs-btn-font-weight: 400;
    --bs-btn-line-height: 1.42857143;
    --bs-btn-border-radius: 4px;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--cuwcd-link);
    --bs-btn-border-color: #2e6da4;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #286090;
    --bs-btn-hover-border-color: #204d74;
    --bs-btn-focus-shadow-rgb: var(--cuwcd-link-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #286090;
    --bs-btn-active-border-color: #204d74;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--cuwcd-link);
    --bs-btn-disabled-border-color: #2e6da4;
}

.dropdown-menu {
    --bs-dropdown-min-width: 250px;
    --bs-dropdown-padding-y: 5px;
    --bs-dropdown-spacer: 0;
    --bs-dropdown-font-size: 14px;
    --bs-dropdown-color: #333;
    --bs-dropdown-border-color: rgba(0, 0, 0, .15);
    --bs-dropdown-border-radius: 4px;
    --bs-dropdown-link-color: #333;
    --bs-dropdown-link-hover-color: #262626;
    --bs-dropdown-link-hover-bg: #f5f5f5;
    --bs-dropdown-link-active-color: #262626;
    --bs-dropdown-link-active-bg: #f5f5f5;
    --bs-dropdown-item-padding-x: 20px;
    --bs-dropdown-item-padding-y: 3px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}

.breadcrumb {
    --bs-breadcrumb-padding-x: 15px;
    --bs-breadcrumb-padding-y: 8px;
    --bs-breadcrumb-margin-bottom: 20px;
    --bs-breadcrumb-bg: #f5f5f5;
    --bs-breadcrumb-border-radius: 4px;
    --bs-breadcrumb-divider-color: #ccc;
    --bs-breadcrumb-item-padding-x: 5px;
    --bs-breadcrumb-item-active-color: #999;
    --bs-breadcrumb-divider: "/\00a0";
}

/* Accordion styled like the old Bootstrap 3 panels (centered grey headings, no chevron) */
.accordion {
    --bs-accordion-border-color: #ddd;
    --bs-accordion-border-radius: 4px;
    --bs-accordion-inner-border-radius: 3px;
    --bs-accordion-btn-padding-x: 10px;
    --bs-accordion-btn-padding-y: 20px;
    --bs-accordion-btn-color: #333;
    --bs-accordion-btn-bg: #f5f5f5;
    --bs-accordion-active-color: #333;
    --bs-accordion-active-bg: #f5f5f5;
    --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--cuwcd-link-rgb), .35);
    --bs-accordion-body-padding-x: 15px;
    --bs-accordion-body-padding-y: 15px;
    margin-bottom: 20px;
}

.accordion-item,
.accordion-item:not(:first-of-type) {
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}

.accordion-item + .accordion-item {
    margin-top: 5px;
}

.accordion-item > .accordion-header .accordion-button,
.accordion-item > .accordion-header .accordion-button.collapsed {
    border-radius: 3px;
}

.accordion-header {
    margin: 0;
}

.accordion-button {
    justify-content: center;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    box-shadow: none;
}

.accordion-button::after {
    display: none;
}

.accordion-body {
    border-top: 1px solid #ddd;
}

.nav-tabs {
    --bs-nav-link-padding-x: 15px;
    --bs-nav-link-padding-y: 10px;
    --bs-nav-link-color: var(--cuwcd-link);
    --bs-nav-link-hover-color: var(--cuwcd-link-hover);
    --bs-nav-tabs-border-color: #ddd;
    --bs-nav-tabs-border-radius: 4px;
    --bs-nav-tabs-link-hover-border-color: #eee #eee #ddd;
    --bs-nav-tabs-link-active-color: #555;
    --bs-nav-tabs-link-active-bg: #fff;
    --bs-nav-tabs-link-active-border-color: #ddd #ddd transparent;
}

.nav-tabs .nav-link {
    margin-right: 2px;
    line-height: 1.42857143;
}

.nav-tabs .nav-link:not(.active):hover {
    background-color: #eee;
}

/* 5. Page frame ---------------------------------------------------------------- */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1100;
    padding: 8px 16px;
    background: #fff;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--cuwcd-border);
}

.site-header .container {
    position: relative;
    display: flow-root; /* keeps the navbar's 36px margin inside the header (Bootstrap 3's clearfix did this) */
}

.site-header .navbar {
    --bs-navbar-padding-x: 0;
    --bs-navbar-padding-y: 0;
    --bs-navbar-color: #777;
    --bs-navbar-hover-color: #333;
    --bs-navbar-active-color: #333;
    --bs-navbar-nav-link-padding-x: 15px;
    margin: 36px 0;
    flex-wrap: wrap;
    align-items: flex-start;
}

.site-header .navbar-brand {
    width: 250px;
    height: 90px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.site-header .navbar-brand img {
    display: block;
    width: 180px;
    height: 90px;
    margin: 0 6px 0 0; /* overrides site.css img { margin-top: 20px } */
}

.site-header .navbar-toggler {
    margin-top: 40px;
    padding: 9px 10px;
    border: 1px solid var(--cuwcd-border);
    border-radius: 4px;
    background: #fff;
    color: #555;
    font-size: 14px;
    line-height: 1.42857143;
}

.site-header .navbar-toggler {
    align-items: center;
    height: 50px;
}

@media (max-width: 991.98px) {
    .site-header .navbar-toggler {
        display: inline-flex; /* only where the menu is collapsed */
    }
}

.site-header .navbar-toggler .bi {
    padding: 5px;
    color: #333;
    font-size: 14px;
    -webkit-text-stroke: .8px; /* heavier bars, like the old Font Awesome icon */
}

.site-header .navbar-toggler-label {
    padding: 0 4px 4px;
    font-size: 18px;
    font-weight: 700;
    text-shadow: 1px 1px 0 #fff;
}

.site-header .navbar-nav .nav-link {
    margin: 0 3px;
    padding-top: 10px;
    padding-bottom: 10px;
    line-height: 20px;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
}

.site-header .navbar-nav .nav-link:hover,
.site-header .navbar-nav .nav-link:focus-visible,
.site-header .navbar-nav .nav-link.show {
    color: #333;
    border-bottom-color: var(--cuwcd-blue);
}

.site-header .dropdown-toggle::after {
    margin-left: 2px;
    vertical-align: middle;
    border-top-width: 4px;
    border-right-width: 4px;
    border-left-width: 4px;
}

.site-header .navbar-nav .dropdown-menu {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Menu items: uppercase with a blue underline on hover, like the top-level links
   (the old theme rule `.navbar .nav li a` styled both). */
.site-header .dropdown-item {
    width: auto;
    margin: 0 3px;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
}

.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
    color: #333;
    background-color: transparent;
    border-bottom-color: var(--cuwcd-blue);
}

.site-header .gsc-control-cse {
    margin-left: auto;
    margin-right: auto;
}

/* Social links: blue tab in the top-right corner */
.social-links {
    position: absolute;
    top: 0;
    right: 15px;
    z-index: 101;
    display: flex;
    padding: 10px;
    background: var(--cuwcd-blue);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.social-links a {
    display: block;
    margin: 0 3px;
    width: 30px;
    height: 30px;
    color: #fff;
    font-size: 30px;
    line-height: 30px;
    text-align: center;
}

.social-links a:hover,
.social-links a:focus {
    color: #f5f5f5;
}

.social-links .bi::before {
    vertical-align: top;
}

/* Collapsed menu (below 992px) */
@media (max-width: 991.98px) {
    .site-header .navbar {
        margin-bottom: 0;
    }

    .site-header .navbar-brand {
        margin-bottom: 26px;
    }

    .site-header .navbar-collapse {
        text-align: center;
        border-top: 1px solid #e7e7e7;
    }

    .site-header .navbar-nav .dropdown-menu {
        float: none;
        text-align: center;
        background-color: #eee;
        border: 0;
        box-shadow: inset 0 6px 12px rgba(0, 0, 0, .175);
    }

    .site-header .navbar-nav .nav-link {
        display: inline-block; /* centred by the menu's text-align */
        margin: 0 0 6px;
        border-bottom-width: 0;
    }

    .site-header .navbar-nav .nav-link:hover,
    .site-header .navbar-nav .nav-link:focus-visible,
    .site-header .navbar-nav .nav-link.show {
        color: var(--cuwcd-blue);
    }

    .site-header .dropdown-item {
        margin: 0 0 6px;
        border-bottom-width: 0;
    }

    .site-header .dropdown-item:hover,
    .site-header .dropdown-item:focus {
        color: var(--cuwcd-blue);
    }

    .site-header .site-search {
        padding-bottom: 15px;
    }
}

/* Expanded menu (992px and up): logo on the first row, menus on the second */
@media (min-width: 992px) {
    .site-header .navbar-collapse {
        flex-basis: 100%;
        flex-wrap: wrap;
        align-items: flex-start;
        margin-top: 27px;
        padding: 0 15px;
    }

    .site-header .navbar-nav .nav-link {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    /* Menus open on hover as well as on click/keyboard; Esc closes (site.js). */
}

@media (min-width: 992px) and (hover: hover) {
    .site-header .dropdown:hover:not(.hover-dismissed) > .dropdown-menu {
        display: block;
        top: 100%;
        left: 0;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .site-header .navbar-brand {
        margin-left: auto;
        margin-right: auto;
    }

    .site-header .navbar-nav .nav-link {
        padding-right: 5px;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        padding-left: 0;
        padding-right: 0;
    }

    .site-header .navbar-brand {
        width: 280px;
        margin-left: 15px;
    }

    .site-header .navbar-toggler {
        margin-right: 15px;
    }
}

@media (max-width: 480px) {
    .site-header .navbar-brand {
        width: 180px;
    }
}

/* Banner under the header. On wider screens the header stays put and the page
   slides up over a fixed photo; the header lets go once the photo is covered
   (it can only stick inside .masthead). site.js keeps --header-h current. */
.hero {
    --hero-h: 480px;
    position: relative;
    height: var(--hero-h);
    overflow: hidden;
    background: #fff;
}

.hero-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

@media (min-width: 769px) {
    .masthead .site-header {
        position: sticky;
        top: 0;
        z-index: 1020;
    }

    .hero {
        overflow: visible;
        clip-path: inset(0); /* clips the fixed photo to the banner box */
    }

    .hero-media {
        position: fixed;
        top: var(--header-h, 262px);
        left: 0;
        height: var(--hero-h);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero { --hero-h: 400px; }
}

@media (max-width: 768px) {
    .hero { --hero-h: 350px; }
}

@media (max-width: 480px) {
    .hero {
        --hero-h: 100vh;
        min-height: 250px;
    }
}

/* Home-page slideshow in the banner (old FlexSlider look: captions bottom-left) */
/* The .carousel itself is sized by .hero-media (100% would mean the viewport while it is fixed). */
.hero-slideshow .carousel-inner,
.hero-slideshow .carousel-item,
.hero-slideshow .carousel-item > .container {
    height: 100%;
}

.hero-slideshow .carousel-item {
    background: #fff no-repeat center center;
    background-size: cover;
}

.hero-slideshow .carousel-item > .container {
    position: relative;
}

.hero-slideshow .carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0 25% 0 0;
    padding: 60px 0;
    color: #fff;
    text-align: left;
}

.hero-slideshow .carousel-caption .slide-title {
    display: inline-block;
    margin: 0;
    padding: 16px 80px;
    background: rgba(0, 0, 0, .6);
    line-height: 1em;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
    font-size: 50px;
    font-weight: 300;
}

.hero-slideshow .carousel-caption .lead {
    display: inline-block;
    margin: 0 0 50px;
    padding: 16px 30px;
    background: rgba(0, 0, 0, .6);
    line-height: 1.25;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
    font-size: 18px;
    font-weight: 300;
}

.hero-slideshow .carousel-caption .lead.skincolored {
    background-color: rgba(var(--cuwcd-blue-rgb), .8);
}

.hero-slideshow .carousel-caption .btn {
    margin-top: 15px;
    text-shadow: none;
}

/* Arrows appear on hover/focus like the old slider; narrow so they never cover the captions. */
.hero-slideshow .carousel-control-prev,
.hero-slideshow .carousel-control-next {
    width: 50px;
    opacity: 0;
    z-index: 3;
}

.hero-slideshow:hover .carousel-control-prev,
.hero-slideshow:hover .carousel-control-next {
    opacity: .7;
}

.hero-slideshow .carousel-control-prev:focus-visible,
.hero-slideshow .carousel-control-next:focus-visible {
    opacity: 1;
}

.hero-slideshow .carousel-pause {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
    color: #fff;
    font-size: 18px;
    line-height: 32px;
}

@media (max-width: 860px) {
    .hero-slideshow .carousel-control-prev,
    .hero-slideshow .carousel-control-next {
        opacity: .8; /* the old slider always showed its arrows on small screens */
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-slideshow .carousel-caption { padding: 30px 0; }
    .hero-slideshow .carousel-caption .slide-title { font-size: 40px; }
    .hero-slideshow .carousel-caption .lead { font-size: 16px; }
}

@media (max-width: 768px) {
    .hero-slideshow .carousel-caption { padding: 20px 0; }
    .hero-slideshow .carousel-caption .slide-title { font-size: 30px; }
    .hero-slideshow .carousel-caption .lead { font-size: 16px; }
}

@media (max-width: 480px) {
    .hero-slideshow .carousel-caption {
        position: relative;
        bottom: auto;
        width: 100%;
        margin: 0;
        padding: 20px;
        text-align: center;
    }

    .hero-slideshow .carousel-caption .slide-title {
        font-size: 20px;
    }

    .hero-slideshow .carousel-caption .lead { font-size: 16px; }
}

/* Main content area */
main {
    position: relative;
    background-color: #fff;
}

main section {
    position: relative;
    background: no-repeat center center;
    background-size: cover;
}

main section .container {
    position: relative;
}

@media (max-width: 768px) {
    main .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Title band with breadcrumb */
.hgroup .container {
    margin-top: 26px;
    margin-bottom: 26px;
    padding-top: 17px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--cuwcd-border);
}

.hgroup h1 {
    font-size: 30px;
    font-weight: 300;
    line-height: 1em;
    margin: 0 0 .3em;
    padding: 0;
}

.hgroup h2 {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5em;
    margin: 0 20% 0 0;
    padding: 0;
    color: #555;
}

.hgroup .breadcrumb {
    --bs-breadcrumb-padding-y: 6px;
    --bs-breadcrumb-margin-bottom: 0;
    --bs-breadcrumb-bg: #fff;
    position: absolute;
    right: 0;
    bottom: -15px;
    font-size: 12px;
    border: 1px solid var(--cuwcd-border);
}

@media (max-width: 480px) {
    .hgroup h2 {
        margin: 0 0 6px;
    }
}

/* Blue call-to-action band */
section.call_to_action {
    text-align: center;
    padding: 35px 0 45px;
}

section.call_to_action h3,
section.call_to_action .cta-title {
    font-weight: 300;
    font-size: 50px;
    line-height: 55px;
}

section.call_to_action h4 {
    font-weight: 300;
    font-size: 26px;
    line-height: 30px;
    margin: 0 0 20px;
}

@media (max-width: 768px) {
    section.call_to_action {
        padding: 35px 0;
    }

    section.call_to_action h3,
    section.call_to_action .cta-title {
        font-size: 40px;
        line-height: 45px;
        margin-bottom: 10px;
    }

    section.call_to_action h4 {
        font-size: 20px;
        line-height: 26px;
    }
}

/* Footer */
.site-footer {
    /* On the dark footer the lighter brand blue reads better than the link blue. */
    --bs-link-color-rgb: var(--cuwcd-blue-rgb);
    --bs-link-hover-color-rgb: 42, 100, 150;
    color: #fff;
    border-top: 2px solid #fff;
    background: #222;
}

.site-footer .copyright {
    border-top: 1px solid #000;
    padding: 15px 0;
    font-weight: 300;
    color: #999;
    font-size: 13px;
}

.site-footer .footer-links,
.site-footer .footer-copy {
    padding: 0 15px;
}

.site-footer .footer-links {
    margin: 16px 0 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.1;
}

.site-footer .footer-copy {
    margin: 0 0 24px;
}

@media (min-width: 768px) {
    .site-footer .footer-links {
        margin: 26px 0 22px; /* old floated columns kept the heading's own margins */
    }
}

@media (min-width: 992px) {
    .site-footer .copyright {
        text-align: center;
    }
}

/* 6. Content blocks from the old theme ------------------------------------------ */
.padding_top { padding-top: 96px !important; }
.padding_bottom { padding-bottom: 96px !important; }

.section_header {
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    border-bottom: 1px solid var(--cuwcd-border);
    margin: 0 0 26px;
    padding: 0 0 16px;
    clear: both;
}

.section_header.centered {
    text-align: center !important;
}

.section_header.fancy {
    position: relative;
    font-size: 28px;
    line-height: 26px;
    text-align: left;
    text-transform: none;
    padding: 36px 0 16px;
    margin: 0 0 26px;
    font-weight: 700;
}

.section_header.fancy small {
    clear: both;
    display: block;
    text-transform: none;
    font-size: 16px;
    padding-top: 10px;
    font-weight: 300;
}

.section_header.skincolored {
    font-size: 30px;
    line-height: 32px;
    text-align: left;
    text-transform: none;
    letter-spacing: 0;
    word-spacing: 0;
    padding: 30px 0 16px;
    margin: 0 0 16px;
    font-weight: 300;
    color: var(--cuwcd-blue);
}

section.features_teasers_wrapper {
    margin: 35px 0 45px;
}

section.features_teasers_wrapper .feature_teaser {
    text-align: center;
}

section.features_teasers_wrapper .feature_teaser h3 {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    word-spacing: 1px;
}

.service_teaser {
    border-radius: 6px 0 0 6px;
    overflow: hidden;
    margin: 0 0 60px;
    background-color: #fff;
}

.row.service_teaser {
    margin: 0 0 60px; /* beats site.css .row { margin: 0 } now that teasers are rows */
}

.service_teaser .service_photo figure {
    border-radius: 6px 0 0 6px;
    min-height: 200px;
    background: no-repeat center center;
    background-size: cover;
    border-right: 1px solid var(--cuwcd-border);
    margin: 0;
}

.service_teaser .service_details {
    background-color: #fff;
    min-height: 200px;
    padding: 0 20px;
}

.service_teaser .service_details p {
    font-weight: 300;
}

.pricing_wrapper {
    padding: 40px 0;
}

.pricing_plan {
    box-shadow: 0 0 2px 0 rgba(0, 0, 0, .1);
    border-radius: 6px;
    text-align: center;
    border: 1px solid #e7e7e7;
    margin-bottom: 20px;
    min-height: 500px;
}

.pricing_plan h3 {
    background-color: #fff;
    padding: 30px 5px;
    margin: 0 0 30px;
    color: var(--cuwcd-blue);
    font-size: 30px;
    line-height: 1.6em;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    border-bottom: 1px solid var(--cuwcd-border);
}

.pricing_plan .the_offerings {
    padding: 0 30px;
    color: #555;
}

.pricing_plan a.btn {
    margin: 30px;
    border-radius: 30px;
    color: #fff;
}

.portfolio_strict .portfolio_item {
    text-align: center;
    padding: 0;
    height: 320px;
    overflow: hidden;
    margin-bottom: 24px;
}

.portfolio_strict .portfolio_item figure {
    height: 230px;
    position: relative;
    overflow: hidden;
    margin: 0;
    background: #fff no-repeat center center;
    background-size: cover;
}

.portfolio_strict .portfolio_item .portfolio_description {
    padding: 20px 0 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.portfolio_strict .portfolio_item .portfolio_description h3 {
    margin: 0;
    padding: 0 0 6px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
}

.portfolio_strict .portfolio_item .portfolio_description p {
    margin: 0;
    padding: 0;
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

article.post {
    padding: 0 0 40px;
    margin: 0 0 40px;
    border-bottom: 1px dashed var(--cuwcd-border);
}

article.post .post_header h3.post_title {
    line-height: 1.2em;
}

article.post .post_content figure {
    max-height: 400px;
    overflow: hidden;
}

article.post .post_content .btn {
    margin-top: 10px;
}

#sidebar {
    padding: 0 0 0 30px;
}

#sidebar aside.widget {
    margin: 0 0 40px;
}

#sidebar aside.widget h4 {
    padding: 7px 0;
}

/* Board meeting list (was the Bootstrap 3 "media" list; old theme values,
   site.css overrides heading spacing as before). Hovering the date reveals the
   photo behind it. */
.event-list {
    padding-left: 0;
    list-style: none;
}

.event-list .event {
    position: relative;
    margin-top: 15px;
    overflow: hidden;
}

.event-list .event:first-child {
    margin-top: 0;
}

.event .event-photo {
    position: absolute;
    left: 0;
    top: 0;
    width: 65px;
    height: 70px;
    margin: 0;
    border-radius: 6px 0 0 6px;
    overflow: hidden;
    background: no-repeat center center;
    background-size: cover;
}

.event h5.event-heading {
    font-weight: 300;
    text-transform: uppercase;
    padding: 0;
    margin: 0 0 0 75px;
}

.event p {
    margin: 0 0 0 75px;
}

.event a.event-date {
    float: right;
    position: relative;
    z-index: 2;
    height: 70px;
    margin: 0 0 0 10px;
    padding: 15px 10px 10px;
    background-color: #000;
    border-left: 1px solid var(--cuwcd-blue);
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 20px;
    transition: all 300ms linear;
}

.event a.event-date:hover {
    background-color: rgba(var(--cuwcd-blue-rgb), .4);
}

.event a.event-date span {
    clear: both;
    display: block;
    font-size: 13px;
    font-weight: 400;
}

#sidebar .event .event-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

#sidebar .event h5.event-heading {
    line-height: 5em;
}

#sidebar .event p {
    font-weight: 300;
    font-size: 13px;
    line-height: 1.2em;
}

#sidebar .event a.event-date {
    float: left;
    width: 70px;
    height: 70px;
    margin: 0 10px 0 0;
    padding: 15px;
    border-radius: 50%;
    background-color: rgba(var(--cuwcd-blue-rgb), .8);
}

#sidebar .event a.event-date:hover {
    opacity: 0;
}

.team_member {
    --bs-link-color-rgb: var(--cuwcd-blue-rgb);
    --bs-link-hover-color-rgb: 42, 100, 150;
    text-align: center;
    background-color: #222;
    color: #ccc;
    padding: 40px;
    margin-top: 20px;
    border-radius: 6px;
}

.team_member h5 {
    margin: 24px 0 6px;
    font-size: 20px;
    font-weight: 600;
}

.team_member small {
    font-size: 13px;
    font-weight: 300;
}

.team_member hr {
    margin: 14px 0;
    border-top-color: #ccc;
}

.team_member p.short_bio {
    font-weight: 300;
}

@media (max-width: 768px) {
    section.features_teasers_wrapper .feature_teaser {
        margin-bottom: 40px;
    }

    .service_teaser .service_photo figure {
        min-height: 250px;
    }

    .team_member {
        margin-bottom: 30px;
    }

    section.article-text p {
        font-size: 16px;
        line-height: 1.5em;
    }

    #sidebar {
        padding: 0;
    }

    .pricing_wrapper {
        padding: 0 0 20px;
    }
}

/* Print (Bootstrap 3's print rules, plus hiding the page frame) */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after,
    a[href^="tel:"]::after {
        content: "";
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }

    .site-header,
    .hero,
    .skip-link,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-pause {
        display: none !important;
    }
}
