/*
 * RAVEN5 Trust Center: brand specifics only.
 * Layout, cards, badges, nav, buttons and icons come from the theme's Bootstrap 5 and Bootstrap Icons.
 * Everything is scoped under .r5tc (the <main> wrapper); global Bootstrap classes are not overridden.
 */

.r5tc {
	--r5tc-ink: #1E2226;
	--r5tc-ink-strong: #14171A;
	--r5tc-ink-2: #2F353B;
	--r5tc-ink-3: #424950;
	--r5tc-muted: #5F666E;
	--r5tc-line: #E3E6E9;
	--r5tc-line-soft: #EDEFF1;
	--r5tc-red: #D22630;
	--r5tc-red-dark: #B51F29;
	--r5tc-red-tint: #FDF1F2;
	--r5tc-navy: #050A14;
	color: var(--r5tc-ink);
}

/* Block-editor output inside the hub: the group wrapper the theme adds must not break Bootstrap rows */
.r5tc .wp-block-group > .wp-block-group__inner-container { display: contents; }
/* Zero-specificity reset so Bootstrap's .container (margin auto) and .row (negative gutters) still win */
:where(.r5tc .wp-block-group) { margin: 0; }
.r5tc figure.wp-block-table { margin: 0; }
/* Bootstrap's ".row > *" gutter rule hits the block wrapper (display: contents), so give it to the real columns */
:where(.r5tc .row > .wp-block-group__inner-container > *) { width: 100%; }
.r5tc .row > .wp-block-group__inner-container > * { flex-shrink: 0; max-width: 100%; padding-right: calc(var(--bs-gutter-x) * .5); padding-left: calc(var(--bs-gutter-x) * .5); margin-top: var(--bs-gutter-y); }
.r5tc .r5tc-content p { margin-bottom: 0; }
.r5tc ul.wp-block-list, .r5tc ol.wp-block-list { padding-left: 0; margin-bottom: 0; }
/* The theme gives every h1-h3 a top margin; layout spacing here comes from Bootstrap utilities instead */
.r5tc h1, .r5tc h2, .r5tc h3 { margin-top: 0; }
.r5tc h2[id], .r5tc section[id], .r5tc [id].wp-block-group { scroll-margin-top: calc(var(--r5tc-header-h, 72px) + 76px); }
/* Buttons: the mockup's square-cornered, sentence-case button (theme default is a capitalised pill) */
.r5tc .btn.btn-primary { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; margin: 0; border: 0; border-radius: 2px; background: var(--r5tc-red); color: #fff; font-size: 15px; font-weight: 600; text-transform: none !important; }
.r5tc .btn.btn-primary:hover, .r5tc .btn.btn-primary:focus-visible { background: var(--r5tc-red-dark) !important; color: #fff; }
.r5tc .r5tc-muted { color: var(--r5tc-muted); font-size: 14px; }
.r5tc .r5tc-muted-icon { color: #8A9097; }

/* Type */
.r5tc .r5tc-eyebrow, .r5tc .r5tc-content p.r5tc-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--r5tc-red-dark); margin-bottom: 8px; }
.r5tc .r5tc-eyebrow--soft, .r5tc .r5tc-content p.r5tc-eyebrow--soft { color: #FF8A91; }
.r5tc .r5tc-h2 { font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--r5tc-ink-strong); margin-bottom: 10px; }
.r5tc .r5tc-h2--lg { font-size: 28px; }
.r5tc .r5tc-h2--xl { font-size: 32px; }
.r5tc .r5tc-h2--light { color: #fff; }
.r5tc .r5tc-h3 { font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--r5tc-ink-strong); margin-bottom: 6px; }
.r5tc .r5tc-lead { font-size: 17px; line-height: 1.6; color: var(--r5tc-ink-2); max-width: 760px; }
.r5tc .r5tc-lead--light { color: #E3E6E9; }

/* Hero */
.r5tc-hero { background-color: var(--r5tc-navy); background-image: var(--r5tc-hero, none); background-position: right center; background-size: cover; background-repeat: no-repeat; }
.r5tc-hero__shade { background: linear-gradient(90deg, rgba(5,10,20,.75) 0%, rgba(5,10,20,.45) 45%, rgba(5,10,20,0) 75%); }
.r5tc-hero__inner { padding-top: 88px; padding-bottom: 128px; }
.r5tc-hero__title { max-width: 16ch; font-weight: 700; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.02em; color: #fff; margin: 0; }
.r5tc-hero__intro { font-size: 18px; line-height: 1.65; max-width: 58ch; color: #E3E6E9; }
.r5tc a.r5tc-hero__link { color: #fff; text-decoration: none; padding: 6px 0; }
.r5tc a.r5tc-hero__link:hover { text-decoration: underline; }

/* Stats strip overlaps the hero */
.r5tc .r5tc-stats { position: relative; z-index: 2; margin-top: -72px; }
.r5tc .r5tc-stat { border-top: 3px solid var(--r5tc-red); box-shadow: 0 12px 32px rgba(5,10,20,.22); }
.r5tc .r5tc-stat__value { font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--r5tc-ink-strong); }
.r5tc .r5tc-stat__label { font-size: 15px; font-weight: 600; color: var(--r5tc-ink-strong); }
.r5tc .r5tc-stat__note { font-size: 13px; color: var(--r5tc-muted); }

/* Sticky tabs (Bootstrap sticky-top + nav, offset below the theme navbar by hub.js) */
.r5tc .r5tc-tabs { top: var(--r5tc-header-h, 72px); z-index: 1019; margin-top: 40px; }
.r5tc .r5tc-tabs.border-bottom { border-bottom: 0 !important; }
.r5tc .r5tc-tabs__nav, .r5tc .r5tc-content p.r5tc-tabs__nav { display: flex; flex-wrap: nowrap; gap: 0 28px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--r5tc-line); margin: 0; }
.r5tc .r5tc-tabs__nav::-webkit-scrollbar { display: none; }
.r5tc .r5tc-tabs__nav a { white-space: nowrap; flex: none; padding: 14px 0; margin: 0 0 -1px; font-size: 16px; line-height: 1.5; color: var(--r5tc-muted); text-decoration: none; border-bottom: 2px solid transparent; }
.r5tc .r5tc-tabs__nav a:hover { color: var(--r5tc-ink-strong); }
.r5tc .r5tc-tabs__nav a.is-active { color: var(--r5tc-ink-strong); font-weight: 600; border-bottom-color: var(--r5tc-red-dark); }

/* Compliance areas */
.r5tc .r5tc-area__badge { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 2px solid var(--r5tc-red); background: var(--r5tc-red-tint); color: var(--r5tc-red-dark); font-size: 10px; font-weight: 700; padding: 0; }
.r5tc .r5tc-area__title { font-size: 16px; font-weight: 600; color: var(--r5tc-ink-strong); margin: 0; }
.r5tc .r5tc-area__sub { font-size: 13px; color: var(--r5tc-muted); margin: 0; }

/* Insurance (core table block) */
.r5tc .r5tc-ins { border: 1px solid var(--r5tc-line); border-radius: .5rem; padding: 6px 22px; }
.r5tc .r5tc-ins table { width: 100%; border: 0; margin: 0; }
.r5tc .r5tc-ins td { border: 0; border-bottom: 1px solid var(--r5tc-line-soft); padding: 14px 0; font-size: 15px; color: var(--r5tc-ink-2); vertical-align: baseline; }
.r5tc .r5tc-ins td:last-child { text-align: right; font-weight: 700; color: var(--r5tc-ink-strong); white-space: nowrap; padding-left: 16px; }
.r5tc .r5tc-ins figcaption { padding: 14px 0; font-size: 13px; line-height: 1.55; color: var(--r5tc-muted); text-align: left; margin: 0; }

/* Controls: Bootstrap Icons drawn with the icon font */
.r5tc .r5tc-pill { background: var(--r5tc-line-soft); color: var(--r5tc-ink-2); font-weight: 500; font-size: 14px; }
.r5tc .r5tc-control { padding: 0; }
.r5tc .r5tc-control .card-body { padding: 26px 28px; gap: 18px !important; }
.r5tc .r5tc-control__title { display: flex; align-items: center; gap: 14px; font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--r5tc-ink-strong); margin: 0; }
.r5tc .r5tc-control__title::before {
	content: "\f52f"; font-family: "bootstrap-icons"; font-size: 22px; line-height: 1; font-weight: 400;
	flex: none; width: 44px; height: 44px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
	background: var(--r5tc-red-tint); color: var(--r5tc-red-dark);
}
.r5tc .r5tc-icon-infrastructure .r5tc-control__title::before, .r5tc .r5tc-icon-cloud .r5tc-control__title::before { content: "\f2c1"; }
.r5tc .r5tc-icon-organization .r5tc-control__title::before, .r5tc .r5tc-icon-person .r5tc-control__title::before { content: "\f4d0"; }
.r5tc .r5tc-icon-data .r5tc-control__title::before, .r5tc .r5tc-icon-shield .r5tc-control__title::before { content: "\f52f"; }
.r5tc .r5tc-icon-promotion .r5tc-control__title::before, .r5tc .r5tc-icon-scale .r5tc-control__title::before { content: "\f154"; }
.r5tc .r5tc-icon-access .r5tc-control__title::before, .r5tc .r5tc-icon-lock .r5tc-control__title::before { content: "\f47b"; }
.r5tc .r5tc-icon-continuity .r5tc-control__title::before, .r5tc .r5tc-icon-refresh .r5tc-control__title::before { content: "\f130"; }
.r5tc .r5tc-control__list li, .r5tc .r5tc-plain__list li { position: relative; padding-left: 32px; font-size: 15px; line-height: 1.45; color: var(--r5tc-ink-2); margin-bottom: 14px; }
.r5tc .r5tc-control__list li:last-child, .r5tc .r5tc-plain__list li:last-child { margin-bottom: 0; }
.r5tc .r5tc-control__list li::before, .r5tc .r5tc-plain__list li::before {
	content: "\f26a"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 0; font-size: 20px; line-height: 1.2; color: var(--r5tc-ink-strong);
}
/* Imported '+ [N] more' placeholder lines are not shown */
.r5tc .r5tc-control__more { display: none; }

/* For entrants */
.r5tc .r5tc-entrants { background: var(--r5tc-red-tint); border-top: 1px solid #F3D6D9; border-bottom: 1px solid #F3D6D9; }
.r5tc .r5tc-entrants__copy { max-width: 760px; flex: 1 1 480px; }

/* Resources */
.r5tc .r5tc-section { scroll-margin-top: calc(var(--r5tc-header-h, 72px) + 64px); }
.r5tc #resources .card-body { padding: 28px !important; }
.r5tc #resources .card-body .row { --bs-gutter-x: 64px; }
.r5tc .r5tc-policy-list .list-group { gap: 4px; border-radius: 0; }
.r5tc .r5tc-policy-list .list-group-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; padding: 0; border: 0; background: transparent; font-size: 15px; line-height: 1.4; color: var(--r5tc-ink-2); }
.r5tc .r5tc-policy-list .list-group-item:hover { color: var(--r5tc-red-dark); background: transparent; }
.r5tc .r5tc-policy-list .list-group-item i { flex: none; font-size: 18px; line-height: 1; }
.r5tc .r5tc-doc-row, .r5tc .r5tc-content p.r5tc-doc-row { display: flex; align-items: center; min-height: 40px; margin: 0 0 4px; font-size: 15px; line-height: 1.4; color: var(--r5tc-ink-2); }
.r5tc .r5tc-doc-row a { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; color: inherit; text-decoration: none; }
.r5tc .r5tc-doc-row a:hover { color: var(--r5tc-red-dark); }
.r5tc .r5tc-doc-row a::after { content: "\f30a"; flex: none; font-family: "bootstrap-icons"; font-size: 18px; line-height: 1; color: #8A9097; }

/* In plain terms */
.r5tc .r5tc-plain { background-color: var(--r5tc-navy); background-image: var(--r5tc-hero, none); background-position: right center; background-size: cover; }
.r5tc .r5tc-plain__shade { background: linear-gradient(90deg, rgba(5,10,20,.97) 0%, rgba(5,10,20,.9) 55%, rgba(5,10,20,.78) 100%); }
.r5tc .r5tc-plain .container.py-5 { padding-top: 72px !important; padding-bottom: 72px !important; }
.r5tc .r5tc-plain__head { max-width: 760px; margin-bottom: 32px !important; }
.r5tc .r5tc-plain__card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: #E3E6E9; }
.r5tc .r5tc-plain__card .card-body { padding: 28px; gap: 18px !important; }
.r5tc .r5tc-plain__h3 { font-size: 20px; font-weight: 600; color: #fff; margin: 0; }
.r5tc .r5tc-plain__list li { font-size: 16px; line-height: 1.5; color: #E3E6E9; padding-left: 34px; }
.r5tc .r5tc-plain__list li::before { line-height: 1.2; }
.r5tc .r5tc-plain__list.r5tc-do li::before { content: "\f26a"; color: var(--r5tc-red); }
.r5tc .r5tc-plain__list.r5tc-dont li::before { content: "\f623"; color: #FF8A91; }

/* Subprocessors */
.r5tc .r5tc-sub { border-radius: 10px; }
.r5tc .r5tc-sub > .card-body { padding: 28px; gap: 18px !important; }
.r5tc .r5tc-subs { --bs-gutter-x: 20px; --bs-gutter-y: 20px; }
.r5tc .r5tc-sub .badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0 !important; border-radius: 999px; background: var(--r5tc-line-soft) !important; color: var(--r5tc-ink-2) !important; font-size: 13px; font-weight: 600; line-height: 1.2; }
.r5tc .r5tc-sub .badge .bi { margin: 0 !important; }
.r5tc .r5tc-sub .badge.r5tc-badge-muted { background: var(--r5tc-red-tint) !important; color: var(--r5tc-red-dark) !important; }
.r5tc .r5tc-section.py-5 { padding-top: 64px !important; padding-bottom: 64px !important; }
.r5tc .r5tc-sub__logo { align-self: flex-start; width: 72px; height: 72px; overflow: hidden; border: 1px solid var(--r5tc-line); border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; }
.r5tc .r5tc-sub__logo img { display: block; max-width: none; }
.r5tc .r5tc-sub__name { font-size: 20px; font-weight: 700; color: var(--r5tc-ink-strong); }
.r5tc .r5tc-sub__purpose { font-size: 15px; line-height: 1.5; color: var(--r5tc-ink-3); }
.r5tc .r5tc-badge-muted { background: var(--r5tc-red-tint); color: var(--r5tc-red-dark); font-weight: 600; }

/* Updates + FAQ */
.r5tc ol.r5tc-updates { border-left: 2px solid var(--r5tc-line); }
.r5tc .r5tc-updates li { padding: 0 0 22px 20px; font-size: 15px; line-height: 1.5; color: var(--r5tc-ink); }
.r5tc .r5tc-updates li strong { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--r5tc-muted); }
.r5tc .r5tc-faq { border-top: 1px solid var(--r5tc-line); }
.r5tc .r5tc-faq__item { border-bottom: 1px solid var(--r5tc-line); padding: 0 4px; margin: 0; }
.r5tc .r5tc-faq__item summary { cursor: pointer; padding: 18px 0; font-size: 17px; font-weight: 600; color: var(--r5tc-ink-strong); }
.r5tc .r5tc-faq__item > :not(summary) { margin: 0 0 20px; font-size: 16px; line-height: 1.65; color: var(--r5tc-ink-2); max-width: 72ch; }

/* Hover lift on cards */
.r5tc .r5tc-hov { transition: border-color .15s, box-shadow .15s, transform .15s; }
.r5tc .r5tc-hov:hover { border-color: var(--r5tc-red); box-shadow: 0 8px 24px rgba(20,23,26,.10); transform: translateY(-2px); }

/* Policy / guide page */
.r5tc-banner { background-color: var(--r5tc-navy); background-position: right 70%; background-size: cover; background-repeat: no-repeat; }
.r5tc-banner__shade { background: linear-gradient(90deg, rgba(5,10,20,.8) 0%, rgba(5,10,20,.5) 50%, rgba(5,10,20,0) 80%); }
.r5tc-banner__inner { padding-top: 30px; padding-bottom: 36px; }
.r5tc .r5tc-crumbs { --bs-breadcrumb-divider-color: #C9D1DA; font-size: 14px; }
.r5tc .r5tc-crumbs a { color: #C9D1DA; }
.r5tc .r5tc-crumbs .breadcrumb-item, .r5tc .r5tc-crumbs .breadcrumb-item.active { color: #C9D1DA; }
.r5tc .r5tc-crumbs .breadcrumb-item.active { color: #fff; }
.r5tc-banner__title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: #fff; }
.r5tc .r5tc-side__h { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--r5tc-muted); }
.r5tc .nav .nav-link { color: var(--r5tc-ink-2); }
.r5tc .nav .nav-link:hover { color: var(--r5tc-red-dark); }
.r5tc .nav .nav-link.is-current { color: var(--r5tc-ink-strong); }
.r5tc .r5tc-article__lead { padding-bottom: 28px; margin-bottom: 40px; border-bottom: 1px solid var(--r5tc-line); font-size: 18px; line-height: 1.65; color: var(--r5tc-ink-2); }
.r5tc .r5tc-article__h2 { font-size: 22px; font-weight: 700; color: var(--r5tc-ink-strong); }
.r5tc .r5tc-related__title { font-weight: 700; color: var(--r5tc-red-dark); }
.r5tc .r5tc-related__desc { color: var(--r5tc-ink-3); }

/* Policy body: normal editor content, numbered by CSS counters */
.r5tc .r5tc-prose--doc { counter-reset: r5tc-sec; }
.r5tc .r5tc-prose--doc > * { margin: 14px 0 0; }
.r5tc .r5tc-prose--doc > *:first-child { margin-top: 0; }
.r5tc .r5tc-prose--doc > h2 { margin-top: 40px; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--r5tc-ink-strong); counter-increment: r5tc-sec; scroll-margin-top: calc(var(--r5tc-header-h, 72px) + 24px); }
.r5tc .r5tc-prose--doc > h2:first-child { margin-top: 0; }
.r5tc .r5tc-prose--doc > h2::before { content: counter(r5tc-sec) ". "; }
.r5tc .r5tc-prose--doc > h2 + * { margin-top: 14px; }
.r5tc .r5tc-prose--doc p, .r5tc .r5tc-prose--doc li { font-size: 16px; line-height: 1.7; color: var(--r5tc-ink); }
.r5tc .r5tc-prose--doc ul, .r5tc .r5tc-prose--doc ol { padding-left: 22px; }
.r5tc .r5tc-prose--doc li { margin-bottom: 8px; }
.r5tc .r5tc-prose--doc a { font-weight: 600; }

@media (max-width: 991.98px) {
	.r5tc .r5tc-tabs { margin-top: 28px; }
	.r5tc .r5tc-hero__inner { padding-top: 56px; padding-bottom: 104px; }
}
@media (max-width: 575.98px) {
	.r5tc .r5tc-stats { margin-top: -64px; }
	.r5tc .r5tc-ins { padding: 4px 16px; }
	.r5tc .r5tc-h2--lg { font-size: 24px; }
	.r5tc .r5tc-h2--xl { font-size: 26px; }
	.r5tc .r5tc-prose--doc > h2 { font-size: 20px; }
	.r5tc .r5tc-article__lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.r5tc .r5tc-hov { transition: none; }
	.r5tc .r5tc-hov:hover { transform: none; }
}

/* Trust Center footer (outside .r5tc): one slim bar, as in the mockup */
body.r5tc-body .footer-container .footerLine { border-top: 0; margin-top: 0; padding: 24px 0 !important; align-items: center; }
body.r5tc-body .footer-container .socialLinks { margin-bottom: 0; align-items: center; }
body.r5tc-body .footer-container .socialLinks .bi { font-size: 18px; }
body.r5tc-body .footer-container .footerCopyright { font-size: 14px; color: rgba(255,255,255,.75); }

/* The theme sets html, body { height: 100% }, which caps the sticky navbar's travel at one screen: it scrolls
   away and leaves a gap above the sticky tabs. Let the body grow so the navbar and tabs stay stuck together. */
body.r5tc-body { height: auto; min-height: 100%; }

/* Policy page details (mockup): underlined inline links (theme strips underlines with !important), sidebar rhythm, cards */
.r5tc .r5tc-crumbs a, .r5tc .r5tc-article__lead a, .r5tc .r5tc-prose--doc a, .r5tc #questions a, .r5tc .r5tc-content .r5tc-lead a { text-decoration: underline !important; text-underline-offset: 2px; }
.r5tc .r5tc-crumbs a:hover { color: #fff; }
.r5tc aside .nav-link { padding-top: 6px !important; padding-bottom: 6px !important; font-size: 14px; line-height: 1.4; }
.r5tc aside .card { border-radius: 8px; }
.r5tc aside .card-body { padding: 20px; }
.r5tc .r5tc-related__title { font-size: 16px; }
.r5tc .r5tc-related__title .bi { font-size: 14px; }
.r5tc .r5tc-related__desc { font-size: 14px; line-height: 1.5; }
.r5tc a.card .card-body { padding: 20px; }
.r5tc #questions { border-radius: 8px; }
.r5tc #questions .card-body { padding: 24px; }
.r5tc #questions h2 { font-size: 18px; margin-bottom: 8px; }
.r5tc #questions p { font-size: 16px; line-height: 1.6; }
