/* RSII microsite (www.ccactuaries.org/rsii) - independent of cca_styles.css */
:root {
    --rsii-green: #4a5c50;
    --rsii-green-footer: #495b4f;
    --rsii-link: #2c7258;
    --rsii-orange: #e68a00;
    --rsii-text: #333;
    --rsii-light: #f1f1f2;
    --rsii-cream: #f3f1ea;
    --rsii-divider: #bfbfbf;
    --rsii-muted: #ebebeb;
    --rsii-serif: 'Bodoni PT', 'Libre Bodoni', 'Bodoni 72', Didot, Georgia, serif;
    --rsii-sans: 'Inter', Arial, sans-serif;
}

body.rsii {
    font-family: var(--rsii-sans);
    font-size: 18px;
    line-height: 1.35;
    color: var(--rsii-text);
    background: #fff;
}
.rsii a { color: var(--rsii-link); font-weight: 600; }
.rsii a:hover { color: var(--rsii-green); }

.rsii h1, .rsii h2, .rsii h3, .rsii h4 {
    font-family: var(--rsii-serif);
    font-weight: 500;
    color: var(--rsii-green);
}
.rsii h1 { font-size: 60px; line-height: 1.1; }
.rsii h2 { font-size: 36px; line-height: 1.2; }
.rsii h3 { font-size: 24px; }

/* Header + navigation (Sitefinity navigation widget renders a ul) */
.rsii-header { background: #fff; padding: 15px 0; border-bottom: 1px solid var(--rsii-muted); }
.rsii-logo img { max-height: 90px; width: auto; }
.rsii-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; }
.rsii-nav li { position: relative; margin-left: 28px; }
.rsii-nav a { font-family: var(--rsii-serif); font-weight: 700; font-size: 18px; color: var(--rsii-green); text-decoration: none; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.rsii-nav a:hover, .rsii-nav .active > a, .rsii-nav .sfSel > a { color: var(--rsii-orange); border-bottom-color: var(--rsii-orange); }
.rsii-nav ul ul { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff; border: 1px solid var(--rsii-muted); z-index: 10; flex-direction: column; }
.rsii-nav li:hover > ul, .rsii-nav li:focus-within > ul { display: flex; }
.rsii-nav ul ul li { margin: 0; }
.rsii-nav ul ul a { display: block; padding: 8px 14px; }

/* Hero (landing only) */
.rsii-hero img { display: block; width: 100%; height: auto; }

/* Content */
.rsii-intro { padding-top: 90px; padding-bottom: 90px; max-width: 870px; }
.rsii-sub .rsii-intro { max-width: 1140px; padding-top: 60px; padding-bottom: 60px; }
.rsii-landing .rsii-intro { padding-top: 130px; }

/* Swimlane 1: hero intro (Figma 37:10) */
.rsii-lead { font-size: 24px; line-height: 1.35; margin: 30px 0; }
.rsii-tagline { font-family: var(--rsii-serif); font-weight: 700; font-style: italic; font-size: 24px; line-height: 1.35; margin: 30px 0 40px; }
.rsii-intro h1 { margin: 0; }
.rsii .btn, .rsii .btn-primary, .rsii a.btn {
    background: var(--rsii-orange); border: 0; border-radius: 0; color: #fff;
    font-family: var(--rsii-serif); font-weight: 700; font-size: 18px;
    padding: 15px 30px; line-height: 1.6;
}
.rsii .btn:hover { background: #c97700; color: #fff; }

/* Full-width colour bands (add the class to a row in the grid template) */
.rsii-rows .rsii-row-green { background: var(--rsii-green); color: #fff; padding: 90px 0; }
.rsii-rows .rsii-row-green h2, .rsii-rows .rsii-row-green a { color: #fff; }
.rsii-row-green h2 { margin-bottom: 15px; }
.rsii-row-green p { font-size: 18px; line-height: 24px; margin-bottom: 24px; }
.rsii-row-green p:last-child { margin-bottom: 0; }
.rsii-row-green strong em { font-family: var(--rsii-sans); }
/* Swimlane 3: white band, 800px column (Figma 37:34) */
/* Sitefinity renders layout columns as ".sf_colsIn.col-lg-12.container"; col-lg-12's max-width:100% beats .container's 1140px */
.rsii-rows .container { max-width: 1140px; }
.rsii-narrow, .rsii-rows .container.rsii-narrow { max-width: 830px; margin-left: auto; margin-right: auto; }
.rsii-row-white h2 { margin-bottom: 15px; }
.rsii-row-white p { font-size: 18px; line-height: 24px; margin-bottom: 24px; }
.rsii-row-white p:last-child { margin-bottom: 0; }
.rsii-subhead { font-family: var(--rsii-serif); font-weight: 700; font-style: italic; margin-bottom: 15px !important; }
.rsii-layered { position: relative; padding-top: 18px; }
.rsii-layered::before { content: ''; position: absolute; inset: 0; background: var(--rsii-cream); border-radius: 30px; }
.rsii-layered img { position: relative; display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: cover; object-position: top; border-radius: 30px; }
/* Swimlane 4: light grey band, quote + white paper (Figma 37:21) */
.rsii-divider { border: 0; border-top: 1px solid var(--rsii-divider); margin: 40px 0; }
.rsii-row-light .rsii-narrow h2 { margin-bottom: 15px; }
.rsii-quote { margin: 40px 0 0; padding: 0; border: 0; }
.rsii-quote p { font-family: var(--rsii-serif); font-style: italic; font-weight: 400; font-size: 36px; line-height: 1.2; margin: 0 0 24px; }
.rsii-attribution { font-family: var(--rsii-serif); font-size: 18px; line-height: 1.35; }
.rsii-row-light h2 { margin-bottom: 20px; }
.rsii-row-light .row p { font-size: 18px; line-height: 25px; margin-bottom: 20px; }
.rsii-row-light .row img { display: block; width: 100%; max-width: 320px; border: 1px solid #aaa; }
/* Swimlane 5: Stay Connected (Figma 37:42) reuses the white band + .rsii-narrow rules above */
.rsii-row-white p.rsii-tight { margin-bottom: 15px; }
.rsii-row-green img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 30px; }
.rsii-rows .rsii-row-light { background: var(--rsii-light); padding: 90px 0; }
.rsii-rows .rsii-row-cream { background: var(--rsii-cream); padding: 90px 0; }
.rsii-rows .rsii-row-white { padding: 90px 0; }

/* Footer */
.rsii-footer { background: var(--rsii-green-footer); color: var(--rsii-muted); padding: 45px 0; font-size: 16px; line-height: 1.5; }
.rsii-footer a { color: var(--rsii-muted); font-weight: 600; }
.rsii-footer a:hover { color: #fff; }
.rsii-footer p { margin: 0 0 4px; }
.rsii-footer-logo { width: 200px; height: 200px; object-fit: cover; border: 1px solid var(--rsii-divider); }
.rsii-linkedin { font-size: 40px; line-height: 1; }
.rsii-linkedin, .rsii-linkedin:hover { color: #fff; }

@media (max-width: 767px) {
    .rsii h1 { font-size: 36px; }
    .rsii h2 { font-size: 28px; }
    .rsii-nav ul { justify-content: center; }
    .rsii-nav li { margin: 0 12px; }
    .rsii-intro, .rsii-rows .rsii-row-green, .rsii-rows .rsii-row-light, .rsii-rows .rsii-row-cream, .rsii-rows .rsii-row-white { padding-top: 40px; padding-bottom: 40px; }
    .rsii-landing .rsii-intro { padding-top: 70px; }
}

/* Sitefinity cookie / tracking consent bar */
#tracking-consent-dialog { position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 15px 30px; padding: 15px 30px; background: var(--rsii-green); color: #fff; font-family: var(--rsii-sans); font-size: 16px; border-top: 5px solid var(--rsii-orange); box-shadow: 0 -4px 12px rgba(0, 0, 0, .2); }
#tracking-consent-dialog p { margin: 0; }
#tracking-consent-dialog p a { color: #fff; text-decoration: underline; }
#tracking-consent-dialog .btn { padding: 8px 24px; font-size: 16px; }

/* Landing header: collapse the empty strip until a navigation is added (stays visible while editing so the placeholder can be used) */
.rsii-landing .rsii-header:not(.is-editing):not(:has(.rsii-nav li)) { display: none; }

/* Navigation widget, "Pills" template: restyle Bootstrap pills + dropdowns for RSII */
.rsii-nav .nav-pills .nav-link, .rsii-nav .nav-link { border-radius: 0; background: transparent; padding: 6px 0; }
.rsii-nav .nav-pills .nav-link.active, .rsii-nav .nav-link.active { background: transparent; color: var(--rsii-orange); border-bottom-color: var(--rsii-orange); }
.rsii-nav .dropdown-menu { border-radius: 0; border: 1px solid var(--rsii-muted); padding: 6px 0; margin-top: 0; }
.rsii-nav .dropdown-item { font-family: var(--rsii-serif); font-weight: 700; font-size: 16px; color: var(--rsii-green); padding: 8px 18px; border-bottom: 0; }
.rsii-nav .dropdown-item:hover, .rsii-nav .dropdown-item.active { background: var(--rsii-light); color: var(--rsii-orange); }
.rsii-nav .dropdown-toggle::after { vertical-align: .2em; }

/* Header: sticky, compact logo, sans-serif bold nav sitting next to the logo */
html { scroll-padding-top: 110px; }
.rsii-header { position: sticky; top: 0; z-index: 100; }
.rsii-header.is-editing { position: relative; }
.rsii-logo img { max-height: 70px; }
.rsii-nav a, .rsii-nav .nav-link, .rsii-nav .dropdown-item { font-family: var(--rsii-sans); font-weight: 700; }
.rsii-nav a, .rsii-nav .nav-link { font-size: 20px; }
.rsii-nav .dropdown-item { font-size: 18px; }
