/* ----------------------------------------------------------------
	IFWJ Custom Styles
-----------------------------------------------------------------*/
:root {
    /* --cnvs-themecolor: #020082; 0F172A */
    --cnvs-themecolor: #BA0600; 
    --cnvs-themecolor-secondary: #0F172A; 
    --cnvs-themecolor-rgb: 29, 78, 216;
    --pf-dark:        #0F172A;
    --pf-dark-card:   #1E293B;
    --pf-light-bg:    #EFF6FF;
    --pf-gray-bg:     #F8FAFC;
    --pf-sky:         #0EA5E9;
    --pf-amber:       #F59E0B;
    --pf-text:        #0F172A;
    --pf-body:        #334155;
    --pf-muted:       #64748B;
    --pf-border:      #E2E8F0;
    --pf-primary-dark: #1E3A8A;
    --font-head:      'Fraunces', Georgia, serif;
    --font-body:      'Inter', system-ui, -apple-system, sans-serif;
  }
  .divider.divider-sm {
    --cnvs-divider-width: 65%;
}
  #top-bar{
    background-color: var(--cnvs-themecolor-secondary);
    color: #fff;
  }
  .logo-text-container {
    margin-left:0.6rem;
  }
.logo-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pf-text);
}
.logo-text-small {
  font-size: 0.6rem;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--pf-text);
}
.is-expanded-menu #header.sticky-header-shrink #header-wrap #logo .logo-text {
  font-size: 0.6rem;
}
.is-expanded-menu #header.sticky-header-shrink #header-wrap #logo .logo-text-small {
  font-size: 0.4rem;
}
#top-bar .social-icon {
  --cnvs-socialicon-size: 1.5rem;
}
.divider::after, .divider::before {
  border-bottom: var(--cnvs-divider-border-width) var(--cnvs-divider-border-style) #E2E8F0;
}

/* Team / people cards (bookkeeping-inspired) */
.ifwj-team-card {
	background: #fff;
	border: 1px solid var(--pf-border);
	border-radius: 16px;
	padding: 28px 22px;
	text-align: center;
	height: 100%;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ifwj-team-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.ifwj-team-avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 16px;
	display: block;
	border: 3px solid #EFF6FF;
}

.ifwj-team-avatar-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cnvs-themecolor);
	color: #fff;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	user-select: none;
}

/* Custodians coverflow (homepage)
   Visible side count: change data-max-side on .js-custodians-coverflow in index.php
   (with 13 past presidents, useful max is 6 per side)
   Full-bleed photo card; .is-active = centre highlight (featured only sets who loads first) */
.ifwj-custodians-coverflow {
	--ifwj-cf-step: 108px;
	--ifwj-cf-card: 240px;
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: 0px 0 14px;
}

.ifwj-custodians-stage {
	position: relative;
	flex: 1;
	min-width: 0;
	height: 320px;
}

.ifwj-custodians-card {
	position: absolute;
	top: 50%;
	left: 50%;
	width: var(--ifwj-cf-card);
	margin: 0;
	transform: translate(-50%, -50%);
	transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 1;
}

.ifwj-cf-card {
	position: relative;
	height: 320px;
	border-radius: 16px;
	overflow: hidden;
	background: #1E293B;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	isolation: isolate;
}

.ifwj-cf-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}

.ifwj-cf-photo--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cnvs-themecolor);
	color: #fff;
	font-size: clamp(2.5rem, 8vw, 3.5rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	object-fit: unset;
}

.ifwj-cf-overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 2.75rem 0.85rem 1rem;
	background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.72) 45%, rgba(15, 23, 42, 0) 100%);
	text-align: center;
	color: #fff;
}

.ifwj-cf-role,
.ifwj-cf-tenure {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.78);
}

.ifwj-cf-name {
	margin: 0.2rem 0 0.15rem;
	font-family: var(--font-body, 'Inter', system-ui, sans-serif);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.ifwj-cf-btn {
	display: inline-flex;
	margin-top: 0.65rem;
	font-size: 0.75rem;
	padding: 0.4rem 0.85rem;
}

.ifwj-custodians-card.is-active .ifwj-cf-card {
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.22);
}

.ifwj-custodians-nav {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	z-index: 20;
}

.ifwj-custodians-nav:hover {
	background: rgba(255, 255, 255, 0.16);
}

@media (max-width: 1199.98px) {
	.ifwj-custodians-coverflow {
		--ifwj-cf-step: 96px;
		--ifwj-cf-card: 220px;
	}
}

@media (max-width: 991.98px) {
	.ifwj-custodians-coverflow {
		--ifwj-cf-step: 84px;
		--ifwj-cf-card: 200px;
	}
}

@media (max-width: 767.98px) {
	.ifwj-custodians-coverflow {
		--ifwj-cf-step: 22vw;
		--ifwj-cf-card: 52vw;
		gap: 2px;
		padding: 8px 0 20px;
	}

	.ifwj-custodians-stage {
		height: 280px;
	}

	.ifwj-custodians-card {
		max-width: 210px;
	}

	.ifwj-cf-card {
		height: 280px;
	}

	.ifwj-cf-name {
		font-size: 0.95rem;
	}

	.ifwj-custodians-nav {
		width: 34px;
		height: 34px;
		font-size: 1.35rem;
	}
}

.ifwj-team-name {
	font-family: var(--font-body, 'Inter', system-ui, sans-serif);
	font-size: 1.0625rem;
	font-weight: 700;
	color: #0F172A;
	margin-bottom: 4px;
}

.ifwj-team-role {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--cnvs-themecolor, #1D4ED8);
	margin-bottom: 0;
}

.ifwj-team-meta {
	font-size: 0.8125rem;
	color: var(--ifwj-muted);
	margin-top: 8px;
	margin-bottom: 0;
}

.ifwj-author-avatar {
	position: relative;
	width: 56px;
	height: 56px;
	flex-shrink: 0;
}

.ifwj-author-avatar--sm {
	width: 44px;
	height: 44px;
}

.ifwj-author-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ifwj-avatar-initials {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: var(--cnvs-themecolor);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-body, 'Inter', system-ui, sans-serif);
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.02em;
	flex-shrink: 0;
}

.ifwj-author-avatar--sm .ifwj-avatar-initials {
	font-size: 0.75rem;
}

.ifwj-author-avatar .ifwj-avatar-initials {
	position: absolute;
	inset: 0;
}

.ifwj-author-avatar .ifwj-avatar-img {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	display: block;
}

/* News / blog / pub cards */
.ifwj-media-card {
	background: #fff;
	border: 1px solid var(--pf-border);
	border-radius: 16px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ifwj-media-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.ifwj-media-card img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
}

.ifwj-media-card-body {
	padding: 20px 22px 22px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.ifwj-media-card-body h3 {
	font-size: 1.0625rem;
	font-weight: 700;
	color: #0F172A;
	line-height: 1.35;
	margin-bottom: 8px;
}

.ifwj-media-card-body h3 a {
	color: inherit;
	text-decoration: none;
}

.ifwj-media-card-body h3 a:hover {
	color: var(--cnvs-themecolor, #1D4ED8);
}

.ifwj-meta {
	font-size: 0.8125rem;
	color: var(--cnvs-themecolor);
	margin-bottom: 10px;
}

.ifwj-excerpt {
	font-size: 0.9rem;
	color: #475569;
	line-height: 1.65;
	margin-bottom: 0;
}

.ifwj-article-cover {
	width: 100%;
	height: 420px;
	object-fit: cover;
	object-position: center;
	border-radius: 16px;
	display: block;
	margin-bottom: 1.5rem;
	background: #F1F5F9;
}

/* Featured writeup */
.ifwj-writeup {
	background: #fff;
	border: 1px solid var(--ifwj-border);
	border-radius: 20px;
	overflow: hidden;
}
/* .ifwj-writeup img{
	height: 100%;
    min-height: 280px;
	object-fit: cover;
	display: block;
}  */
.ifwj-home-media {
	width: 100%;
	height: 350px;
	object-fit: cover;
	border-radius: 16px;
	display: block;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.ifwj-writeup .row {
	align-items: stretch;
}

@media (min-width: 992px) {
	.ifwj-writeup .col-lg-5 {
		position: relative;
		min-height: 280px;
	}

	.ifwj-writeup .ifwj-home-media {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		min-height: 0;
		object-fit: cover;
		border-radius: 0;
		box-shadow: none;
	}
}

.ifwj-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 1.75rem;
	position: relative;
	z-index: 2;
}

.ifwj-share-label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748B;
	margin-right: 4px;
}

.ifwj-share-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #E2E8F0;
	background: #fff;
	color: #0F172A;
	text-decoration: none !important;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	pointer-events: auto;
}

.ifwj-share-btn:hover {
	background: #EFF6FF;
	color: var(--cnvs-themecolor, #1D4ED8);
	border-color: #BFDBFE;
}

.ifwj-share-copied {
	font-size: 0.8125rem;
	font-weight: 600;
	color: #16A34A;
	min-height: 1em;
}

.ifwj-video-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.88);
}

.ifwj-video-popup.is-open {
	display: flex;
}

.ifwj-video-popup-inner {
	position: relative;
	width: min(960px, 100%);
}

.ifwj-video-popup-close {
	position: absolute;
	top: -42px;
	right: 0;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #0F172A;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

.ifwj-video {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #0F172A;
	border-radius: 12px;
	overflow: hidden;
}

.ifwj-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ifwj-detail-layout::after {
	content: "";
	display: table;
	clear: both;
}

.ifwj-detail-photo {
	float: left;
	width: 40%;
	max-width: 42%;
	margin: 0 2rem 1.25rem 0;
}

.ifwj-detail-photo img,
.ifwj-detail-initials {
	width: 100%;
	height: auto;
	/* height: 320px; */
	object-fit: cover;
	border-radius: 16px;
	display: block;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.ifwj-detail-photo--full img {
	height: auto;
	/* max-height: 520px; */
	object-fit: contain;
	background: #F8FAFC;
}

.ifwj-detail-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cnvs-themecolor);
	color: #fff;
	font-size: clamp(2.5rem, 6vw, 4rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	object-fit: unset;
}

/* Presidents timeline photo / initials */
.feature-box-border-vertical .fbox-icon {
	z-index: 1;
}

.feature-box-border-vertical .fbox-icon a {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 50%;
}

.feature-box-border-vertical .ifwj-timeline-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px var(--pf-border);
	background: var(--cnvs-themecolor);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1;
	user-select: none;
}

.feature-box-border-vertical .feature-box.is-current .ifwj-timeline-avatar {
	box-shadow: 0 0 0 2px var(--cnvs-themecolor);
}

.ifwj-detail-article {
	background: #fff;
	border: 1px solid var(--ifwj-border, #E2E8F0);
	border-radius: 20px;
	padding: 28px 32px;
}
.ifwj-writeup .author-avatar {
	width: 50%;
	height: 50%;
	max-height: 80px;
	object-fit: cover;
	display: block;
}

.ifwj-writeup-body {
	padding: 36px 32px;
}

/* Publications */
.ifwj-pub-card {
	background: #fff;
	border: 1px solid var(--pf-border);
	border-radius: 16px;
	padding: 28px;
	height: 100%;
}

.ifwj-pub-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #EFF6FF;
	color: var(--cnvs-themecolor, #1D4ED8);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	margin-bottom: 16px;
}

/* Contact band */
.ifwj-contact-band {
	background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
}

.ifwj-map {
	border: 0;
	border-radius: 14px;
	width: 100%;
	min-height: 260px;
}

@media (max-width: 991.98px) {
	.ifwj-home-media,
	.ifwj-writeup .ifwj-home-media {
		height: 240px;
		min-height: 240px;
		position: static;
	}

	.ifwj-article-cover {
		height: 240px;
	}

	.ifwj-detail-photo {
		float: none;
		width: 100%;
		max-width: none;
		margin: 0 0 1.5rem;
	}

	.ifwj-detail-photo img,
	.ifwj-detail-initials {
		height: 240px;
	}

	.ifwj-detail-photo--full img {
		height: auto;
		/* max-height: 420px; */
	}

	.ifwj-detail-article {
		padding: 20px;
	}
}
#roi .slider-hint {
    color: var(--cnvs-themecolor);
}

/* Google Translate — themed button, no Google branding */
.ifwj-translate-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.ifwj-lang-btn {
	pointer-events: none;
	gap: 8px;
	white-space: nowrap;
}

.ifwj-translate {
	position: absolute;
	inset: 0;
	opacity: 0;
	overflow: hidden;
	z-index: 2;
}

.ifwj-translate .goog-te-gadget {
	font-size: 0 !important;
	color: transparent !important;
	width: 100%;
	height: 100%;
}

.ifwj-translate .goog-te-gadget .goog-te-combo {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	opacity: 0;
	cursor: pointer;
	font-size: 16px !important;
}

.goog-te-banner-frame,
.goog-te-balloon-frame {
	display: none !important;
}

body {
	top: 0 !important;
}

.goog-logo-link,
.goog-te-gadget-icon,
.goog-te-gadget > span {
	display: none !important;
}

.skiptranslate iframe.skiptranslate {
	display: none !important;
}
