/**
 * Owl Legacy — Institute of GRIT Widget
 * All styles scoped under .olf-grit
 */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

.olf-grit {
	--grit-charcoal: #1B1A17;
	--grit-bronze: #B8862D;
	--grit-gold: #C8A24A;
	--grit-brown: #6B4A22;
	--grit-parchment: #FAF4E2;
	--grit-cream: #FFFAEC;
	--grit-line: rgba(184, 134, 45, 0.28);
	--grit-red: #811311;

	font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--grit-charcoal);
	background: var(--grit-parchment);
	padding: 88px 0;
	position: relative;
}

.olf-grit *,
.olf-grit *::before,
.olf-grit *::after {
	box-sizing: border-box;
}

.olf-grit-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 32px;
}

.olf-grit-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

/* ── LEFT COLUMN ─────────────────────────────────────────────── */
.olf-grit-logo-with-heading {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

.olf-grit-emblem {
	width: 96px;
	height: 96px;
	flex-shrink: 0;
}
.olf-grit-emblem svg,
.olf-grit-emblem img {
	width: 100%;
	height: 100%;
	display: block;
}
.olf-grit-emblem img {
	object-fit: contain;
}

.olf-grit-eyebrow {
	font-family: 'Source Sans 3', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--grit-bronze);
	margin: 4px 0 14px;
}

.olf-grit-headline {
	font-family: 'Cormorant Garamond', 'Times New Roman', serif;
	font-size: clamp(44px, 5.2vw, 66px);
	font-weight: 600;
	line-height: 1.02;
	color: var(--grit-charcoal);
	margin: 0 0 12px;
	letter-spacing: -0.012em;
}

.olf-grit-tagline {
	font-family: 'Cormorant Garamond', serif;
	font-size: clamp(20px, 2.1vw, 26px);
	font-weight: 500;
	font-style: italic;
	color: var(--grit-bronze);
	margin: 0 0 22px;
	letter-spacing: 0.005em;
}

.olf-grit-divider {
	position: relative;
	height: 12px;
	margin: 0 0 26px;
	max-width: 340px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.olf-grit-divider::before,
.olf-grit-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background:var(--grit-gold);
	opacity: .4;
}
.olf-grit-divider-diamond {
	width: 8px;
	height: 8px;
	background: var(--grit-gold);
	transform: rotate(45deg);
	margin: 0 10px;
	flex-shrink: 0;
}

.olf-grit-body {
	font-size: 16px;
	line-height: 1.65;
	color: var(--grit-charcoal);
	margin: 0 0 32px;
	max-width: 640px;
}

/* ── PILLARS ─────────────────────────────────────────────────── */
.olf-grit-pillars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0 0 36px;
}

.olf-grit-pillar {
	background: var(--grit-cream);
	border: 1.5px solid var(--grit-line);
	border-radius: 10px;
	padding: 16px 18px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.08s ease, background 0.22s ease;
}

/* Clickable variant — only when URL is set */
.olf-grit-pillar--linked {
	cursor: pointer;
}
.olf-grit-pillar--linked:hover {
	border-color: var(--grit-red);
	box-shadow: 0 6px 18px rgba(129, 19, 17, 0.12);
}
.olf-grit-pillar--linked:active {
	transform: translateY(1px);
	box-shadow: 0 2px 6px rgba(129, 19, 17, 0.18);
}
.olf-grit-pillar--linked:focus-visible {
	outline: 2px solid var(--grit-red);
	outline-offset: 2px;
}

.olf-grit-pillar-icon {
	width: 30px;
	height: 30px;
	color: var(--grit-bronze);
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	line-height: 1;
	margin-top: 2px;
	transition: color 0.22s ease;
}
.olf-grit-pillar-icon i,
.olf-grit-pillar-icon svg {
	color: inherit;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	display: inline-block;
	line-height: 1;
	transition: color 0.22s ease, fill 0.22s ease;
}
.olf-grit-pillar-icon i {
	font-size: inherit;
}
.olf-grit-pillar-icon svg {
	fill: currentColor;
}

/* Hover: icon goes red */
.olf-grit-pillar--linked:hover .olf-grit-pillar-icon,
.olf-grit-pillar--linked:hover .olf-grit-pillar-icon i {
	color: var(--grit-red);
}
.olf-grit-pillar--linked:hover .olf-grit-pillar-icon svg {
	fill: var(--grit-red);
	color: var(--grit-red);
}

.olf-grit-pillar-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1;
}
.olf-grit-pillar-title {
	font-family: 'Source Sans 3', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--grit-charcoal);
	line-height: 1.2;
}
.olf-grit-pillar-desc {
	font-family: 'Source Sans 3', sans-serif;
	font-size: 13px;
	color: var(--grit-brown);
	line-height: 1.4;
	margin-top: 2px;
}

/* Arrow CTA inside pillar */
.olf-grit-pillar-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font-family: 'Source Sans 3', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--grit-bronze);
	transition: color 0.22s ease, gap 0.22s ease;
}
.olf-grit-pillar-link-text {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.olf-grit-arrow {
	display: inline-block;
	font-size: 15px;
	line-height: 1;
	transition: transform 0.22s ease;
}

/* Hover: link turns red, arrow shifts right */
.olf-grit-pillar--linked:hover .olf-grit-pillar-link {
	color: var(--grit-red);
}
.olf-grit-pillar--linked:hover .olf-grit-arrow {
	transform: translateX(4px);
}

/* ── ATTRIBUTION ─────────────────────────────────────────────── */
.olf-grit-attribution {
	border-top: 1px solid var(--grit-line);
	padding-top: 22px;
	max-width: 640px;
}
.olf-grit-attribution-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
}
.olf-grit-owl-mark {
	width: 18px;
	height: 18px;
	color: var(--grit-bronze);
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	line-height: 1;
}
.olf-grit-owl-mark i,
.olf-grit-owl-mark svg {
	color: inherit;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	display: inline-block;
}
.olf-grit-owl-mark i {
	font-size: inherit;
}
.olf-grit-owl-mark svg {
	fill: currentColor;
}
.olf-grit-attribution-label {
	font-family: 'Source Sans 3', sans-serif;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--grit-bronze);
}
.olf-grit-attribution-body {
	font-family: 'Cormorant Garamond', serif;
	font-style: italic;
	font-size: 16px;
	line-height: 1.55;
	color: var(--grit-brown);
	margin: 0;
}

/* ── RIGHT COLUMN ────────────────────────────────────────────── */
.olf-grit-aside {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.olf-grit-card {
	background: var(--grit-cream);
	border: 1px solid var(--grit-line);
	border-left: 4px solid var(--grit-bronze);
	border-radius: 8px;
	padding: 20px 22px;
}
.olf-grit-card-title {
	font-family: 'Source Sans 3', sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--grit-charcoal);
	margin: 0 0 8px;
	letter-spacing: 0.005em;
}
.olf-grit-card-body {
	font-family: 'Source Sans 3', sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: var(--grit-charcoal);
	margin: 0;
	opacity: 0.86;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 980px) {
	.olf-grit {
		padding: 60px 0;
	}
	.olf-grit-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.olf-grit-logo-with-heading {
		grid-template-columns: 1fr;
		gap: 18px;
		text-align: center;
	}
	.olf-grit-emblem {
		width: 72px;
		height: 72px;
		margin: 0 auto;
	}
	.olf-grit-pillars {
		grid-template-columns: 1fr;
	}
	.olf-grit-body{
	  text-align: center;  
	}
}
@media (max-width: 480px) {
	.olf-grit-container {
		padding: 0 20px;
	}
	.olf-grit-headline {
		font-size: 40px;
	}
}
