/* BF Resource Center. Every value is copied from sections/BF Resource Center.dc.html (its <style> block and inline
   styles). The resource card (.rc-card) is shared with the article page's Related resources. */

.rc-hero { position: relative; overflow: hidden; padding: 180px 24px 130px; }
.rc-art { position: absolute; top: 0; bottom: 0; left: 50%; width: 1280px; max-width: 100%; transform: translateX(-50%); overflow: hidden; pointer-events: none; }
.rc-art img { position: absolute; right: -120px; top: -20px; width: 960px; max-width: none; opacity: 0.24; -webkit-mask-image: radial-gradient(ellipse 55% 55% at 60% 40%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 55% 55% at 60% 40%, #000 10%, transparent 75%); }
.rc-wrap { position: relative; max-width: 1280px; margin: 0 auto; }
.rc-headwrap { position: relative; display: inline-block; }
.rc-headwrap .bf-glitch { left: -170px; top: 26px; width: 200px; height: 50px; }
.rc-headwrap .bf-glitch span:nth-child(1) { top: 0; left: 0; width: 120px; background: #8DC63F; }
.rc-headwrap .bf-glitch span:nth-child(2) { top: 11px; left: 30px; width: 90px; background: rgba(255,255,255,0.35); }
.rc-headwrap .bf-glitch span:nth-child(3) { top: 22px; left: 10px; width: 140px; background: #29ABE2; }
.rc-headwrap h1 { text-shadow: 0 6px 40px rgba(1,21,33,0.8); white-space: nowrap; }
.rc-accent { color: #8DC63F; }
.rc-body { color: #E8F0F5; max-width: 560px; margin: 28px 0 0; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.rc-chip { cursor: pointer; white-space: nowrap; font-family: inherit; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #C4D5E0; background: transparent; border: 1px solid rgba(255,255,255,0.22); border-radius: 4px; padding: 8px 12px; transition: border-color .25s ease, background .25s ease, color .25s ease; }
.rc-chip:hover { border-color: #8DC63F; color: #FFFFFF; }
.rc-chip[data-on="true"] { color: #011521; border-color: #8DC63F; background: #8DC63F; }
.rc-feat-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 72px 0 24px; }
.rc-feat-k { font-size: 14px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #8DC63F; margin: 0; }
.rc-arrows { display: flex; gap: 10px; }
.rc-arrow { cursor: pointer; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.25); background: transparent; color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; transition: border-color .25s ease, color .25s ease, background .25s ease; }
.rc-arrow:hover { border-color: #8DC63F; color: #8DC63F; background: rgba(141,198,63,0.1); }
.rc-track { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding: 2px; margin: -2px; align-items: stretch; }
.rc-track::-webkit-scrollbar { display: none; }
.rc-fcard { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }

.rc-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.rc-select { position: relative; }
.rc-sel-btn { font-family: inherit; font-size: 14.5px; font-weight: 600; color: #FFFFFF; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.16); border-radius: 6px; padding: 12px 44px 12px 16px; outline: none; cursor: pointer; min-width: 260px; text-align: left; position: relative; transition: border-color .25s ease, box-shadow .25s ease; }
.rc-sel-btn::after { content: ''; position: absolute; right: 16px; top: 50%; width: 12px; height: 8px; transform: translateY(-50%) rotate(0deg); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238DC63F' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center; transition: transform .25s ease; }
.rc-sel-btn[aria-expanded="true"]::after { transform: translateY(-50%) rotate(180deg); }
.rc-sel-btn:hover, .rc-sel-btn[aria-expanded="true"] { border-color: #8DC63F; }
.rc-sel-btn:focus-visible { box-shadow: 0 0 0 3px rgba(141,198,63,0.18); }
.rc-sel-panel { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 100%; background: #0B3348; border: 1px solid rgba(255,255,255,0.16); border-radius: 6px; box-shadow: 0 24px 60px rgba(1,21,33,0.6); padding: 6px; display: grid; gap: 2px; }
.rc-sel-panel[hidden] { display: none; }
.rc-sel-opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font-family: inherit; font-size: 14.5px; font-weight: 600; color: #C4D5E0; background: transparent; border: 0; border-radius: 4px; padding: 10px 12px; white-space: nowrap; }
.rc-sel-opt:hover, .rc-sel-opt:focus-visible { background: rgba(141,198,63,0.12); color: #FFFFFF; outline: none; }
.rc-sel-box { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,0.35); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: background .2s ease, border-color .2s ease; }
.rc-sel-opt[data-on="true"] .rc-sel-box { background: #8DC63F; border-color: #8DC63F; }
.rc-sel-opt[data-on="true"] .rc-sel-box svg { opacity: 1; }
.rc-sel-box svg { opacity: 0; transition: opacity .2s ease; }
.rc-sel-opt span.n { margin-left: auto; font-size: 12.5px; color: #7E99AB; font-variant-numeric: tabular-nums; }
.rc-sel-foot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px 6px; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 4px; }
.rc-sel-foot button { cursor: pointer; border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 700; color: #A5D45E; padding: 4px 0; }
.rc-sel-foot button:hover { color: #D8F2A4; }
.rc-search { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.16); border-radius: 6px; padding: 0 16px; width: 360px; max-width: 100%; transition: border-color .25s ease, box-shadow .25s ease; }
.rc-search:focus-within { border-color: #8DC63F; box-shadow: 0 0 0 3px rgba(141,198,63,0.18); }
.rc-search-in { flex: 1; min-width: 0; font-family: inherit; font-size: 14.5px; color: #FFFFFF; background: transparent; border: 0; outline: none; padding: 12px 0; -webkit-appearance: none; appearance: none; }
.rc-search-in::placeholder { color: rgba(196,213,224,0.45); }
.rc-search-in::-webkit-search-cancel-button { display: none; }
.rc-clear { cursor: pointer; border: 0; background: transparent; color: #A9C2D2; font-family: inherit; font-size: 13px; font-weight: 700; padding: 6px 0; }
.rc-clear[hidden] { display: none; }
.rc-clear:hover { color: #FFFFFF; }
.rc-grid-sec { position: relative; padding: 0 24px 130px; }
.rc-meta { font-size: 14px; color: #A9C2D2; margin-bottom: 20px; }
.rc-meta b { color: #FFFFFF; font-weight: 700; }
.rc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.rc-grid .rc-card[hidden] { display: none; }

/* Resource card */
.rc-card { position: relative; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; width: 100%; aspect-ratio: 16 / 9; min-height: auto; background: #011521; border-radius: 6px; overflow: hidden; outline: 1px solid rgba(255,255,255,0); transition: outline-color .35s ease; }
.rc-card:hover { outline-color: rgba(141,198,63,0.5); }
.rc-thumb { position: absolute; inset: 0; }
.rc-card-logo { position: absolute; top: 18px; right: 20px; height: 34px; max-width: 42%; object-fit: contain; object-position: right top; z-index: 2; filter: drop-shadow(0 2px 8px rgba(1,21,33,0.6)); pointer-events: none; }
.rc-card-logo.is-white { filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(1,21,33,0.6)); } /* "Show logo in white" */
.rc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; transition: transform .8s cubic-bezier(.22,.61,.36,1), filter .5s ease; filter: contrast(1.05); }
.rc-card:hover .rc-thumb img { transform: scale(1.03); }
.rc-card-body { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px 24px 28px; }
.rc-card-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #8DC63F; }
.rc-card-t { font-size: 20px; line-height: 1.18; font-weight: 800; color: #FFFFFF; text-transform: uppercase; letter-spacing: 0.01em; max-width: 68%; text-wrap: balance; text-shadow: 0 2px 14px rgba(1,21,33,0.9), 0 0 2px rgba(1,21,33,1); }
.rc-card-cta { position: relative; padding: 0 24px 22px; font-size: 15px; font-weight: 700; color: #FFFFFF; display: inline-flex; align-items: center; gap: 8px; text-shadow: 0 2px 10px rgba(1,21,33,0.9); }
.rc-card-cta i { font-style: normal; font-size: 13px; color: #A5D45E; }

.rc-empty { text-align: center; padding: 72px 20px; border: 1px dashed rgba(255,255,255,0.18); border-radius: 6px; }
.rc-empty[hidden], .rc-more[hidden] { display: none; }
.rc-empty .bf-eyebrow { margin-bottom: 12px; }
.rc-empty .bf-b2 { color: #A9C2D2; max-width: 460px; margin: 16px auto 24px; }
.rc-empty-acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rc-more { display: flex; justify-content: center; margin-top: 48px; }
.rc-more .bf-btn { border: 0; cursor: pointer; font-family: inherit; }

@media (max-width: 1023px) {
	.rc-fcard { flex-basis: calc((100% - 20px) / 2); }
	.rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rc-tools { flex-wrap: wrap; }
	.rc-search { width: 100%; }
}

@media (min-width: 768px) and (max-width: 1023px) {
	.rc-hero { padding: 150px 32px 100px !important; }
	.rc-grid-sec { padding: 0 32px 100px !important; }
}

@media (max-width: 767px) {
	.rc-card-logo { height: 28px; top: 14px; right: 16px; }
	.rc-hero { padding: 130px 20px 80px !important; }
	.rc-grid-sec { padding: 0 20px 80px !important; }
	.rc-grid { grid-template-columns: 1fr; }
	.rc-card-t { max-width: 74%; }
	.rc-fcard { flex-basis: 82%; }
	.rc-feat-head { margin-top: 56px; }
	.rc-sel-btn { min-width: 0; width: 100%; }
	.rc-select { width: 100%; }
}
