/* ------------------------------------------------------------ */
/*  BATHURST SUSTAINABLE DEVELOPMENT - styles.css                */
/*  Websolutions.ca                                              */
/* ------------------------------------------------------------ */

:root {
    /* ----- brand colors - sampled from the client's 2016-17 outdoor panels ----- */
    --petrol: #034C5F;
    --gold: #E2BA30;
    --aqua: #E0F6F0;

    /* ----- derived tints ----- */
    --petrol-25: rgba(3, 76, 95, 0.25);

    /* ----- fixed utility tokens ----- */
    --white: #ffffff;
    --txt-color: #525252;
    --light-grey: #F8F9FA;
    --border: #D9D9D9;
    --border-light: #e9eaeb;

    /* ----- fonts ----- */
    --heading-font: "Barlow Condensed", sans-serif;
    --body-font: "Public Sans", sans-serif;
}

/* ----- base ----- */
html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--body-font);
    font-size: 18px;
    line-height: 28px;
    color: var(--txt-color);
    background-color: var(--white);
}

.main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--petrol);
}

a {
    color: var(--petrol);
}

address {
    font-style: normal;
}

/* anything a link can jump to lands below the fixed header */
[id] {
    scroll-margin-top: 136px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ----- max-width helpers ----- */
.mw-280 { max-width: 280px; }
.mw-480 { max-width: 480px; }
.mw-576 { max-width: 576px; }
.mw-768 { max-width: 768px; }
.mw-991 { width: 100%; max-width: 991px; }
.mw-1024 { width: 100%; max-width: 1024px; }

/* mobile-full, capped at laptop */
.mw-lg-576 { width: 100%; }
@media (min-width: 992px) {
    .mw-lg-576 { max-width: 576px; }
}

/* section-level vertical gap: title column to content column when they stack */
.row-gap-64 { row-gap: 64px; }

/* ----- background tints ----- */
.bg-light-grey { background-color: var(--light-grey); }
.bg-aqua { background-color: var(--aqua); }
.bg-petrol { background-color: var(--petrol); }

/* ----- section layout ----- */
.section-p {
    padding-top: 64px;
    padding-bottom: 64px;
}

.single-p {
    padding-bottom: 64px;
}

.section-divider {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.section-divider div {
    height: 1px;
    width: 100%;
    max-width: 1300px;
    padding: 0 32px;
    align-self: center;
    background-color: var(--border);
}

/* ----- section title ----- */
.section-title h2 {
    font-size: 40px;
    font-weight: 700;
    line-height: 44px;
    margin-bottom: 24px;
}

.section-title h3 {
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    margin-bottom: 16px;
}

.section-title p,
.section-title ul {
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

/* group label over a timeline block (Projects): a larger h3 */
.section-title.section-title--group h3 {
    font-size: 32px;
    line-height: 36px;
    margin-bottom: 24px;
}

/* ----- rich text (CMS / article bodies) ----- */
.rich-text-section h2 {
    font-size: 32px;
    line-height: 36px;
    margin-top: 48px;
    margin-bottom: 16px;
}

.rich-text-section h3 {
    font-size: 24px;
    line-height: 28px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.rich-text-section > :first-child {
    margin-top: 0;
}

.rich-text-section > :last-child {
    margin-bottom: 0;
}

.rich-text-section p,
.rich-text-section ul,
.rich-text-section ol {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 16px;
}

.rich-text-section li + li {
    margin-top: 4px;
}

.rich-text-section a {
    text-underline-offset: 3px;
}

.rich-text-section a:is(:hover, :focus-visible) {
    text-decoration-thickness: 2px;
}

.rich-text-section ol {
    list-style-type: decimal;
}

.rich-text-section ol ol {
    list-style-type: lower-alpha;
}

.rich-text-section ol ol ol {
    list-style-type: lower-roman;
}

.rich-text-section strong {
    color: var(--petrol);
}

/* data tables inside article bodies (the Solar Max price list) */
.rich-text-section table {
    width: 100%;
    max-width: 576px;
    margin-bottom: 24px;
    border-collapse: collapse;
    font-size: 16px;
    line-height: 24px;
}

.rich-text-section th,
.rich-text-section td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.rich-text-section th {
    font-family: var(--heading-font);
    font-size: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--petrol);
    border-bottom: 2px solid var(--petrol);
}

/* ----- buttons ----- */
.btn-bsd-primary,
.btn-bsd-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-bsd-primary {
    --bs-btn-focus-shadow-rgb: 3, 76, 95;
    --bs-btn-active-color: var(--white);
    --bs-btn-active-bg: var(--petrol);
    --bs-btn-active-border-color: var(--petrol);
    background-color: var(--petrol);
    border-color: var(--petrol);
    color: var(--white);
}

.btn-bsd-primary:is(:hover, :focus-visible) {
    background-color: var(--white);
    border-color: var(--petrol);
    color: var(--petrol);
}

.btn-bsd-secondary {
    --bs-btn-focus-shadow-rgb: 226, 186, 48;
    --bs-btn-active-color: var(--petrol);
    --bs-btn-active-bg: var(--gold);
    --bs-btn-active-border-color: var(--gold);
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--petrol);
}

.btn-bsd-secondary:is(:hover, :focus-visible) {
    background-color: var(--white);
    border-color: var(--gold);
    color: var(--petrol);
}

/* ----- nav ----- */
/* Bootstrap's nav-link focus ring, in petrol */
.bsd-nav {
    --bs-primary-rgb: 3, 76, 95;
}

.bsd-nav__quick {
    background-color: var(--petrol);
    padding: 8px 0;
    overflow: hidden;
    max-height: 50px;
    transition: max-height 0.25s ease, padding 0.25s ease;
}

.bsd-nav--scrolled .bsd-nav__quick {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.bsd-nav__quick-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

/* 2px vertical padding brings the 20px line to the 24px minimum target size */
.bsd-nav__quick-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    white-space: nowrap;
    color: var(--white);
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bsd-nav__quick-link i {
    font-size: 16px;
}

.bsd-nav__quick-link:is(:hover, :focus-visible) {
    color: var(--gold);
}

.bsd-lang {
    display: inline-flex;
    border: 1px solid var(--gold);
    border-radius: 4px;
    overflow: hidden;
}

.bsd-lang a {
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-decoration: none;
    color: var(--white);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bsd-lang a.active {
    background-color: var(--gold);
    color: var(--petrol);
}

.bsd-lang a:not(.active):is(:hover, :focus-visible) {
    color: var(--gold);
}

.bsd-nav__main {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
    padding-top: 12px;
    padding-bottom: 12px;
    transition: box-shadow 0.2s ease;
}

.bsd-nav--scrolled .bsd-nav__main {
    box-shadow: 0 4px 16px rgba(3, 76, 95, 0.12);
}

.bsd-nav__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 0;
    padding-bottom: 0;
    text-decoration: none;
}

.bsd-nav__brand img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.bsd-nav__name {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 700;
    line-height: 20px;
    color: var(--petrol);
    white-space: normal;
}

.bsd-nav__name span {
    display: block;
}

/* a gap between items so an active fill and a hover fill never touch */
.bsd-nav .navbar-nav {
    gap: 8px;
}

.bsd-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--petrol);
    transition: background-color 0.2s ease;
}

.bsd-nav .nav-link:is(:hover, :focus-visible),
.bsd-nav .nav-link.show,
.bsd-nav .nav-link.active {
    background-color: var(--aqua);
    color: var(--petrol);
}

.bsd-nav .nav-link i {
    font-size: 14px;
}

.bsd-nav .dropdown-toggle::after {
    display: none;
}

/* dropdowns: white panel under a gold tab rule; Bootstrap's pressed state in petrol */
.bsd-nav .dropdown-menu {
    --bs-dropdown-link-active-bg: var(--petrol);
    --bs-dropdown-link-active-color: var(--white);
    min-width: 280px;
    margin-top: 8px;
    padding: 8px;
    border: 0;
    border-top: 4px solid var(--gold);
    border-radius: 0 0 4px 4px;
}

.bsd-nav .dropdown-menu.show {
    animation: bsd-fade-in 0.2s ease;
}

@keyframes bsd-fade-in {
    from {
        opacity: 0;
    }
}

.bsd-nav .dropdown-menu li + li {
    margin-top: 4px;
}

.bsd-nav .dropdown-item {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    color: var(--petrol);
    white-space: normal;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bsd-nav .dropdown-item:is(:hover, :focus-visible) {
    background-color: var(--aqua);
    color: var(--petrol);
}

.bsd-nav .dropdown-item.active {
    background-color: var(--petrol);
    color: var(--white);
}

.bsd-nav .offcanvas-title {
    margin-bottom: 0;
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 700;
    color: var(--petrol);
}

.bsd-nav .navbar-toggler {
    padding: 8px 12px;
    border: 2px solid var(--petrol);
    border-radius: 4px;
    color: var(--petrol);
    font-size: 22px;
    line-height: 1;
}

.bsd-nav .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(3, 76, 95, 0.3);
}

/* the Contact button runs smaller than page buttons */
.bsd-nav .btn {
    padding: 6px 16px;
    white-space: nowrap;
}

/* ----- footer ----- */
.bsd-footer {
    background-color: var(--aqua);
    padding: 64px 0 40px;
    font-size: 16px;
    line-height: 24px;
}

.bsd-footer a {
    color: var(--petrol);
    text-decoration: none;
}

.bsd-footer a:is(:hover, :focus-visible) {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bsd-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 26px;
}

.bsd-footer__logo img {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.bsd-footer__brand p {
    margin-bottom: 16px;
}

.bsd-footer__contact a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.footer-col-title {
    margin-bottom: 12px;
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--petrol);
}

.bsd-footer ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

.bsd-footer .section-divider div {
    background-color: var(--petrol-25);
}

.bsd-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    font-size: 14px;
    line-height: 20px;
}

/* ----- skip link ----- */
.skip-to-main-content {
    position: absolute;
    left: 8px;
    top: -60px;
    z-index: 2000;
    background-color: var(--petrol);
    color: var(--white);
    padding: 10px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-to-main-content:focus-visible {
    top: 8px;
    color: var(--white);
}

/* ----- icon box ----- */
.bsd-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: var(--aqua);
    color: var(--petrol);
}

.bsd-icon-box--sm {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    font-size: 20px;
}

.bsd-icon-box--md {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    font-size: 22px;
}

/* floating icon that overflows the top of a card */
.bsd-icon-box--lg {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 4px;
    font-size: 26px;
}

/* on gold or aqua grounds: a petrol box with a gold icon */
.bsd-icon-box--petrol {
    background-color: var(--petrol);
    color: var(--gold);
}

/* ----- card link ----- */
.bsd-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    padding-bottom: 2px;
    border-bottom: 2px solid currentColor;
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--petrol);
    text-decoration: none;
    transition: border-color 0.2s ease;
}

a.bsd-card-link:is(:hover, :focus-visible) {
    border-bottom-color: var(--gold);
}

/* on petrol grounds (slab, image modal) */
.bsd-slab .bsd-card-link,
.bsd-image-modal .bsd-card-link {
    color: var(--white);
}

/* ----- badge: the gold tab with petrol type, same vocabulary as the index numbers.
   Labels document types (PDF, IMG, Article, Page) and review markers ----- */
.bsd-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 6px 8px;
    background-color: var(--gold);
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    color: var(--petrol);
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* ----- box ----- */
.bsd-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    padding: 32px;
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.bsd-box--tinted {
    background-color: var(--aqua);
    border-color: transparent;
}

.bsd-box__title {
    margin-bottom: 0;
    font-size: 24px;
    line-height: 28px;
}

.bsd-box p {
    margin-bottom: 0;
}

.bsd-box .bsd-badge,
.bsd-box .bsd-icon-box {
    align-self: flex-start;
}

/* hover changes colour only, no lift */
a.bsd-box {
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

a.bsd-box:is(:hover, :focus-visible) {
    border-color: var(--petrol);
}

a.bsd-box:is(:hover, :focus-visible) .bsd-badge {
    background-color: var(--petrol);
    color: var(--gold);
}

a.bsd-box:is(:hover, :focus-visible) .bsd-card-link {
    border-bottom-color: var(--gold);
}

/* ----- cta banner (gold by default; --petrol is the dark variant) ----- */
.bsd-cta-banner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px 24px;
    background-color: var(--gold);
    border-radius: 4px;
}

.bsd-cta-banner__heading {
    margin-bottom: 12px;
    font-family: var(--heading-font);
    font-size: 34px;
    font-weight: 700;
    line-height: 38px;
    color: var(--petrol);
}

.bsd-cta-banner__body {
    margin-bottom: 0;
    color: var(--petrol);
}

.bsd-cta-banner--petrol {
    background-color: var(--petrol);
}

.bsd-cta-banner--petrol .bsd-cta-banner__heading,
.bsd-cta-banner--petrol .bsd-cta-banner__body {
    color: var(--white);
}

/* ----- hero: padding-top = fixed header height + the same gap as padding-bottom ----- */
.bsd-hero {
    padding-top: 167px;
    padding-bottom: 56px;
}

.bsd-hero__heading {
    margin-bottom: 24px;
    font-size: 64px;
    line-height: 60px;
}

.bsd-hero__lead {
    margin-bottom: 32px;
    font-size: 20px;
    line-height: 30px;
}

.bsd-hero__lead:last-child {
    margin-bottom: 0;
}

/* interior text-only pages: aqua band */
.bsd-hero--page {
    background-color: var(--aqua);
}

.bsd-hero--page .bsd-hero__heading {
    font-size: 48px;
    line-height: 48px;
}

/* photo with the gold slab offset behind it. The slab sticks out bottom-right;
   with --captioned the caption sits on the slab's bottom strip instead, so
   nothing ever covers the photo */
.bsd-hero__media {
    position: relative;
    max-width: 640px;
    margin-right: 16px;
}

.bsd-hero__media::before {
    content: "";
    position: absolute;
    top: 16px;
    right: -16px;
    bottom: -16px;
    left: 16px;
    background-color: var(--gold);
}

.bsd-hero__media--captioned::before {
    bottom: 0;
}

.bsd-hero__media img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.bsd-hero__caption {
    position: relative;
    padding: 14px 0 14px 32px;
    font-family: var(--heading-font);
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
    color: var(--petrol);
}

/* ----- index list (programs, projects): numbered rows, each under a petrol rule ----- */
.bsd-index {
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.bsd-index__link {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    height: 100%;
    padding: 24px 0;
    border-top: 2px solid var(--petrol);
    color: var(--txt-color);
    text-decoration: none;
}

.bsd-index__num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--gold);
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--petrol);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bsd-index__body {
    flex: 1;
    min-width: 0;
}

.bsd-index__title {
    display: block;
    margin-bottom: 4px;
    font-family: var(--heading-font);
    font-size: 26px;
    font-weight: 700;
    line-height: 30px;
    color: var(--petrol);
}

.bsd-index__text {
    display: block;
    font-size: 16px;
    line-height: 24px;
}

.bsd-index__icon {
    flex-shrink: 0;
    margin-top: 4px;
    font-size: 20px;
    color: var(--petrol);
}

a.bsd-index__link:is(:hover, :focus-visible) .bsd-index__num {
    background-color: var(--petrol);
    color: var(--gold);
}

a.bsd-index__link:is(:hover, :focus-visible) .bsd-index__title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* years instead of numbers (projects timeline): a stacked card in a 1/2/3 grid, the
   year tab on top of the title (never beside it, it squeezes the title on phones),
   and a faint petrol hairline under each item so the group label above the block
   is not followed by a line */
.bsd-index--years .bsd-index__link {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 0 0 24px;
    border-top: 0;
    border-bottom: 1px solid var(--petrol-25);
}

.bsd-index--years .bsd-index__num {
    width: auto;
    height: auto;
    min-width: 48px;
    padding: 6px 10px;
    font-size: 16px;
    line-height: 20px;
    white-space: nowrap;
}

.bsd-index--years .bsd-index__body {
    flex: none;
    width: 100%;
}

.bsd-index--years .bsd-index__title {
    font-size: 22px;
    line-height: 26px;
}

/* ----- slab: the page's one dark section, in the client's panel petrol. Like the
   panels: white headings, gold lead, white text ----- */
.bsd-slab {
    background-color: var(--petrol);
    color: var(--white);
}

.bsd-slab .section-title h2,
.bsd-slab .section-title h3 {
    color: var(--white);
}

.bsd-slab .section-title p {
    color: var(--white);
}

.bsd-slab .section-title p.bsd-slab__lead {
    margin-bottom: 16px;
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    color: var(--gold);
}

/* ----- document rows: a file or page link with its type badge ----- */
.bsd-docs {
    margin-bottom: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--border);
}

.bsd-doc {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    color: var(--petrol);
    text-decoration: none;
}

/* no rule above the first row */
.bsd-docs > li:first-child .bsd-doc {
    border-top: 0;
}

.bsd-doc .bsd-badge {
    flex-shrink: 0;
}

.bsd-doc__title {
    flex: 1;
    min-width: 0;
    padding-top: 3px;
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
}

.bsd-doc__icon {
    flex-shrink: 0;
    margin-top: 6px;
    font-size: 16px;
}

.bsd-doc:is(:hover, :focus-visible) .bsd-doc__title {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bsd-doc:is(:hover, :focus-visible) .bsd-badge {
    background-color: var(--petrol);
    color: var(--gold);
}

/* larger headline rows (news list) */
.bsd-docs--lg .bsd-doc {
    padding: 20px 0;
}

.bsd-docs--lg .bsd-doc__title {
    padding-top: 1px;
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
}

/* optional subtitle under a row title (the document's own subtitle) */
.bsd-doc__meta {
    display: block;
    margin-top: 4px;
    font-family: var(--body-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--txt-color);
}

/* on the petrol slab */
.bsd-slab .bsd-docs,
.bsd-slab .bsd-doc {
    border-color: rgba(255, 255, 255, 0.25);
}

.bsd-slab .bsd-doc {
    color: var(--white);
}

.bsd-slab .bsd-doc__meta {
    color: rgba(255, 255, 255, 0.8);
}

.bsd-slab .bsd-doc:is(:hover, :focus-visible) {
    color: var(--gold);
}

.bsd-slab .bsd-doc:is(:hover, :focus-visible) .bsd-badge {
    background-color: var(--white);
    color: var(--petrol);
}

/* ----- featured item (news): photo, title, text, card link ----- */
.bsd-feature {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bsd-feature__media {
    margin-bottom: 24px;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 4px;
}

.bsd-feature__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bsd-feature__title {
    margin-bottom: 12px;
    font-size: 30px;
    line-height: 34px;
}

.bsd-feature p {
    margin-bottom: 24px;
}

/* ----- news card (News and events grid): a box with a badge, title, subtitle, card link ----- */
.bsd-news-card .bsd-box__title {
    font-size: 22px;
    line-height: 26px;
}

.bsd-news-card p {
    font-size: 16px;
    line-height: 24px;
}

/* ----- image modal: one shared lightbox for the panel JPGs (IMG rows). Fullscreen
   petrol stage, the image contained, a link to the full-size file ----- */
.bsd-image-modal .modal-content {
    background-color: var(--petrol);
    color: var(--white);
    border: 0;
    border-radius: 0;
}

.bsd-image-modal .modal-header {
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.bsd-image-modal .modal-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 700;
    line-height: 26px;
    color: var(--white);
}

.bsd-image-modal .btn-close {
    margin: 0;
}

.bsd-image-modal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    padding: 24px;
}

.bsd-image-modal__img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ----- quote (sourced definitions): statement behind a gold bar, attribution under ----- */
.bsd-quote {
    margin: 0;
    padding-left: 20px;
    border-left: 4px solid var(--gold);
}

.bsd-quote blockquote {
    margin-bottom: 8px;
    font-family: var(--heading-font);
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    color: var(--petrol);
}

.bsd-quote figcaption {
    font-size: 16px;
    line-height: 24px;
}

/* ----- reference list (citations without a live link) ----- */
.bsd-references {
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
    font-size: 16px;
    line-height: 24px;
}

.bsd-references li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

/* ----- feature additions for the 1995-2000 project pages: square media for the period photos, a small caption ----- */
.bsd-feature__media--square {
    aspect-ratio: 1 / 1;
}

.bsd-feature__caption {
    font-size: 16px;
    line-height: 24px;
    color: var(--txt-color);
}

/* ----- breadcrumb (pages two levels down, e.g. the 1995-2000 project sub-pages): Bootstrap's list, house colours ----- */
.bsd-breadcrumb {
    margin-bottom: 24px;
}

.bsd-breadcrumb .breadcrumb {
    --bs-breadcrumb-divider-color: var(--txt-color);
    font-size: 16px;
    line-height: 24px;
}

.bsd-breadcrumb a {
    color: var(--petrol);
    text-decoration: none;
}

.bsd-breadcrumb a:is(:hover, :focus-visible) {
    text-decoration: underline;
}

.bsd-breadcrumb .breadcrumb-item.active {
    color: var(--txt-color);
}

/* ----- article bodies rebuilt from the legacy popups: deeper headings, table captions, document rows inside the text ----- */
.rich-text-section h4 {
    font-size: 20px;
    line-height: 24px;
    margin-top: 32px;
    margin-bottom: 8px;
}

.rich-text-section h5 {
    font-size: 18px;
    line-height: 24px;
    margin-top: 24px;
    margin-bottom: 8px;
}

.rich-text-section caption {
    caption-side: top;
    padding-top: 0;
    padding-bottom: 12px;
    font-weight: 600;
    color: var(--petrol);
}

.rich-text-section .bsd-docs {
    margin-bottom: 24px;
}

.rich-text-section .bsd-docs li + li {
    margin-top: 0;
}

/* data tables that scroll sideways on phones keep each value on one line; section rows still wrap */
.rich-text-section .table-responsive td {
    white-space: nowrap;
}

.rich-text-section .table-responsive td[colspan] {
    white-space: normal;
}

.rich-text-section .table-responsive:focus-visible {
    outline: 2px solid var(--petrol);
    outline-offset: 4px;
}
