/* ==========================================================================
   RL Consent: cookie banner + preference center styles for this site.
   Presentation rules copied from FRAMEWORK css/rl-framework.css (RL Consent
   section, master 2026-10-03), then mapped to this Bootstrap 3 / Unify site's
   colors and type, sized in px (the theme drops the root font size on phones).
   Loaded after accessibility.css. Banner markup: includes/consent.php.
   ========================================================================== */
:root { --rl-color-primary: #1e344f; --rl-color-text: #231F20; --rl-color-text-light: #231F20; --rl-color-border: #d9dde3; --rl-color-light: #eef1f4; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.rl-consent-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1090; background: #fff; color: var(--rl-color-text, #2b3644); border-top: 1px solid var(--rl-color-border, #e3e7ed); box-shadow: 0 -6px 24px rgba(15, 23, 42, .10); padding: .8rem clamp(1rem, 3vw, 2.5rem); display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; align-items: center; }
@media (prefers-reduced-motion: no-preference) {
.rl-consent-banner { animation: rl-consent-rise .45s cubic-bezier(.22,.7,.3,1); }
@keyframes rl-consent-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
}
.rl-consent-banner[hidden] { display: none; }
.rl-consent-cookie { width: 1.5rem; height: 1.5rem; color: var(--rl-color-primary, #2b5ea7); flex: none; }
.rl-consent-fab .rl-consent-cookie { width: 1.4rem; height: 1.4rem; }
.rl-consent-banner p { margin: 0; font-size: .85rem; line-height: 1.5; flex: 1 1 22rem; }
.rl-consent-banner p a { color: var(--rl-color-primary, #2b5ea7); text-decoration: underline; }
.rl-consent-banner p a .bi { font-size: .7rem; margin-left: .3rem; display: inline-block; text-decoration: none; }
.rl-consent-banner .rl-btn-sm { font-size: .72rem; padding: .35rem .9rem; }
.rl-consent-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-left: auto; }
.rl-consent-link { background: none; border: 0; color: var(--rl-color-primary, #2b5ea7); text-decoration: underline; font-size: .82rem; padding: .45rem .25rem; cursor: pointer; }
.rl-consent-fab { position: fixed; bottom: 1rem; left: 1rem; z-index: 1080; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--rl-color-primary, #2b5ea7); border: 1px solid var(--rl-color-border, #e3e7ed); border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.16); cursor: pointer; }
.rl-consent-fab[hidden] { display: none; }
.rl-consent-dialog { border: 0; border-radius: 12px; padding: 0; max-width: 62rem; width: calc(100% - 2rem); max-height: min(86vh, 60rem); }
.rl-consent-dialog::backdrop { background: rgba(15, 23, 42, .55); }
.rl-consent-dialog-inner { padding: 1.75rem 2rem 1.5rem; overflow-y: auto; max-height: min(86vh, 60rem); box-sizing: border-box; }
.rl-consent-dlg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.rl-consent-dlg-head img { height: 52px; width: auto; }
.rl-consent-close { background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--rl-color-text, #2b3644); cursor: pointer; padding: .25rem .5rem; }
.rl-consent-intro { font-size: .92rem; line-height: 1.6; margin: 0 0 .5rem; }
.rl-consent-intro a, .rl-consent-google a { color: var(--rl-color-primary, #2b5ea7); text-decoration: underline; }
.rl-consent-google { font-size: .92rem; line-height: 1.6; margin: 0 0 1.5rem; }
.rl-consent-cat { margin-top: 1.4rem; }
.rl-consent-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .4rem; }
.rl-consent-cat h3 { font-size: 1rem; margin: 0; }
.rl-consent-cat-desc { font-size: .88rem; line-height: 1.55; color: var(--rl-color-text-light, #5c6672); margin: 0 0 .8rem; }
.rl-consent-always { font-size: .88rem; font-weight: 600; white-space: nowrap; }
/* Switch-style toggle (native checkbox underneath) */
.rl-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.rl-switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.rl-switch .rl-switch-track { position: absolute; inset: 0; background: #cbd5e0; border-radius: 999px; transition: background .15s ease; pointer-events: none; }
.rl-switch .rl-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s ease; }
.rl-switch input:checked + .rl-switch-track { background: var(--rl-color-primary, #2b5ea7); }
.rl-switch input:checked + .rl-switch-track::after { transform: translateX(20px); }
.rl-switch input:focus-visible + .rl-switch-track { outline: 3px solid var(--rl-color-primary, #2b5ea7); outline-offset: 2px; }
/* Plain-English cookie tables */
.rl-consent-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.rl-consent-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rl-consent-table th { text-align: left; font-weight: 600; background: var(--rl-color-light, #eef1f4); padding: .5rem .75rem; }
.rl-consent-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--rl-color-border, #e3e7ed); vertical-align: top; }
.rl-consent-table code { font-size: .72rem; background: none; color: var(--rl-color-text-light, #5c6672); }
.rl-consent-table td strong { font-weight: 600; display: block; }
.rl-consent-dialog-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }
.rl-consent-credit { margin: 1.1rem 0 0; text-align: center; font-size: .72rem; color: #5a6572; }
.rl-consent-credit a { color: inherit; text-decoration: underline; }
.rl-consent-dialog-actions .rl-btn { margin-left: auto; }
@media (max-width: 575.98px) { .rl-consent-dialog-inner { padding: 1.25rem 1rem; } .rl-consent-dialog-actions .rl-btn { margin-left: 0; } }

/* Buttons: the component's .rl-btn classes mapped to this site's button look (.msi-but) */
.rl-btn, .rl-btn-outline { display: inline-block; font: 600 18px/1.1 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .5px; padding: 12px 18px; border: 2px solid #1e344f; border-radius: 0; cursor: pointer; text-decoration: none; }
.rl-btn { background: #1e344f; color: #fff; }
.rl-btn:hover, .rl-btn:focus-visible { background: #1f4280; border-color: #1f4280; color: #fff; }
.rl-btn-outline { background: #fff; color: #1e344f; }
.rl-btn-outline:hover, .rl-btn-outline:focus-visible { background: #1e344f; color: #fff; }
.rl-btn-sm { font-size: 17px; padding: 10px 16px; }
.rl-consent-banner, .rl-consent-dialog, .rl-consent-link, .rl-consent-close { font-family: 'Montserrat', sans-serif; }
.rl-consent-banner p, .rl-consent-intro, .rl-consent-google, .rl-consent-cat-desc, .rl-consent-table td, .rl-consent-table th, .rl-consent-credit { color: #231F20; }
.rl-consent-cat h3 { font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0; }

/* Size the consent UI for this site's type scale (px, !important to beat theme rules) */
.rl-consent-banner { padding: 18px 28px !important; gap: 12px 24px !important; }
.rl-consent-banner p { font-size: 16px !important; line-height: 1.5 !important; }
.rl-consent-cookie { width: 30px !important; height: 30px !important; }
.rl-consent-link { font-size: 15px !important; padding: 8px 4px !important; }
.rl-consent-fab { width: 52px !important; height: 52px !important; }
.rl-consent-fab .rl-consent-cookie { width: 26px !important; height: 26px !important; }
.rl-consent-dialog { max-width: 960px !important; }
.rl-consent-dialog-inner { padding: 28px 32px 24px !important; }
.rl-consent-intro, .rl-consent-google, .rl-consent-cat-desc { font-size: 16px !important; line-height: 1.6 !important; }
.rl-consent-table { font-size: 15px !important; }
.rl-consent-table th, .rl-consent-table td { padding: 9px 12px !important; }
.rl-consent-table code { font-size: 12px !important; }
.rl-consent-cat h3 { font-size: 24px !important; }
.rl-consent-always { font-size: 15px !important; }
.rl-consent-close { font-size: 28px !important; }
.rl-consent-credit { font-size: 13px !important; }
.rl-consent-banner p a .fa { font-size: 11px; margin-left: 4px; }
@media (max-width: 575.98px) { .rl-consent-banner { padding: 16px 18px !important; } .rl-consent-banner p { font-size: 15px !important; } .rl-consent-dialog-inner { padding: 20px 16px !important; } }

/* Banner buttons: the framework's .rl-consent-banner .rl-btn-sm rule is rem-based and wins ties */
.rl-consent-banner .rl-btn-sm, .rl-consent-dialog-actions .rl-btn-sm { font-size: 17px !important; padding: 10px 16px !important; line-height: 1.1 !important; }

/* The site stylesheet turns EVERY table into stacked blocks on phones and gives th a grey fill, fixed
   column widths and uppercase text (built for the employee directory). Keep the consent tables as plain tables. */
.rl-consent-dialog table.rl-consent-table { display: table !important; width: 100% !important; table-layout: auto !important; border: 0 !important; }
.rl-consent-dialog table.rl-consent-table thead { display: table-header-group !important; }
.rl-consent-dialog table.rl-consent-table tbody { display: table-row-group !important; }
.rl-consent-dialog table.rl-consent-table tr { display: table-row !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; }
.rl-consent-dialog table.rl-consent-table th, .rl-consent-dialog table.rl-consent-table td { display: table-cell !important; width: auto !important; text-align: left !important; line-height: 1.35 !important; border: 0 !important; border-bottom: 1px solid #d9dde3 !important; }
.rl-consent-dialog table.rl-consent-table th { background: #eef1f4 !important; color: #231F20 !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 15px !important; }
.rl-consent-dialog table.rl-consent-table td::before { content: none !important; }
@media (max-width: 575.98px) { .rl-consent-dialog table.rl-consent-table th, .rl-consent-dialog table.rl-consent-table td { font-size: 13px !important; padding: 7px 6px !important; } }
.rl-consent-dialog table.rl-consent-table td:last-child, .rl-consent-dialog table.rl-consent-table th:last-child { white-space: nowrap !important; }
