/* Giving Day / Giving Tuesday site (2027). Served from
   /services/development/givingday/givingday-2027.css and pushed onto `styles`
   by /code/2027/templates/givingday_home.dt and givingday_project.dt.
   Built on the 2027 tokens (index.css). Source: tools/givingday-intake/site/. */

/* -- hero ----------------------------------------------------------- */
.gd-hero {
	background:
		radial-gradient(circle at 85% 20%, rgba(214, 168, 64, .18), transparent 45%),
		linear-gradient(135deg, var(--au-navy-deep) 0%, var(--au-navy) 100%);
	color: var(--au-white);
	padding: clamp(40px, 7vw, 88px) 16px;
}
.gd-hero-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
}
.gd-eyebrow {
	font-size: var(--text-xs);
	letter-spacing: 3px;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--au-gold);
	margin-bottom: var(--space-3);
}
.gd-hero-title {
	font-family: var(--font-display);
	font-size: clamp(2.6rem, 6vw, 4.4rem);
	line-height: 1.02;
	color: var(--au-white);
	margin-bottom: var(--space-4);
}
.gd-hero-lead + .gd-hero-lead { margin-top: var(--space-3); }
.gd-hl { color: var(--au-gold); font-weight: 700; }
.gd-hero-lead {
	font-size: var(--text-lg);
	line-height: 1.6;
	color: rgba(255, 255, 255, .88);
	max-width: 38em;
}
.gd-hero .btn-outline {
	color: var(--au-white);
	border-color: rgba(255, 255, 255, .7);
}
.gd-hero .btn-outline:hover {
	background: var(--au-white);
	color: var(--au-navy-deep);
}
.gd-hero-ctas {
	margin-top: var(--space-6);
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.gd-countdown {
	margin-top: var(--space-6);
}
.gd-countdown-label {
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--au-gold-light);
	margin-bottom: var(--space-2);
}
.gd-countdown-units {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
}
.gd-countdown-units span {
	min-width: 84px;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: var(--radius-md);
	background: rgba(255, 255, 255, .06);
	font-size: var(--text-xs);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .75);
	text-align: center;
}
.gd-countdown-units b {
	display: block;
	font-family: var(--font-display);
	font-size: 2rem;
	line-height: 1.1;
	letter-spacing: 0;
	color: var(--au-white);
	font-variant-numeric: tabular-nums;
}

.gd-hero-mosaic {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding-bottom: 40px; /* room for the offset column */
}
.gd-hero-mosaic img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius-lg);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
/* Staggered columns: the whole right column sits lower, so gaps stay even and tiles never touch. */
.gd-hero-mosaic img:nth-child(even) { transform: translateY(40px); }

/* -- total raised (Peter's giving app) ----------------------------- */
.gd-total-card {
	background: var(--au-white);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	padding: var(--space-6);
	margin-top: calc(-1 * var(--space-10));
	position: relative;
}
.gd-total-card:has(.embedb-root:empty) { display: none; }

/* -- filters + project grid ---------------------------------------- */
.gd-filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3);
	align-items: center;
	justify-content: space-between;
	margin-bottom: var(--space-6);
}
.gd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.gd-chip {
	border: 1px solid var(--au-navy-light);
	background: var(--au-white);
	color: var(--au-navy);
	border-radius: var(--radius-full);
	padding: 6px 14px;
	font: 600 var(--text-sm)/1.3 var(--font-body);
	cursor: pointer;
}
.gd-chip:hover { border-color: var(--au-gold); }
.gd-chip.is-active {
	background: var(--au-navy);
	border-color: var(--au-navy);
	color: var(--au-white);
}
.gd-search input {
	width: min(280px, 100%);
	padding: 9px 14px;
	border: 1px solid var(--au-warm-gray, #ccc);
	border-radius: var(--radius-full);
	font: var(--text-sm) var(--font-body);
	background: var(--au-white);
}
.gd-search input:focus {
	outline: none;
	border-color: var(--au-gold);
	box-shadow: 0 0 0 3px var(--au-gold-pale);
}
.gd-search { flex: 0 1 280px; }

.gd-grid > .gd-card { flex: 1 1 260px; max-width: 420px; }
.gd-card { transition: transform .15s ease, box-shadow .15s ease; }
.gd-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gd-card .card-img { aspect-ratio: 3 / 2; }
.gd-card-noimg { background: linear-gradient(135deg, var(--au-navy), var(--au-navy-light)); }
.gd-card .card-text { color: var(--au-text); }
/* Even cards: every text block gets a fixed number of lines, so titles, teasers and footers line up across a row
   whatever the department name or title length (the full text is on the project page). */
.gd-card .card-eyebrow {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.gd-card .card-title {
	font-size: 1.3rem;
	line-height: 1.25;
	height: calc(3 * 1.25em);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}
.gd-card-foot { flex-wrap: nowrap; white-space: nowrap; }
.gd-card .card-text {
	line-height: 1.6;
	min-height: calc(3 * 1.6em);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}
.gd-card-foot {
	margin-top: auto;
	padding-top: var(--space-3);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	border-top: 1px solid rgba(0, 0, 0, .08);
}
/* Not .card-cta: on a .card--linked card that class gets the click-catching overlay, and on a span it would
   sit over the title link and swallow every click. The title link's overlay makes the whole card clickable. */
.gd-cta { font-size: var(--text-sm); font-weight: 600; color: var(--au-navy); white-space: nowrap; }
.gd-card:hover .gd-cta { color: var(--au-gold); }
.gd-goal { font-size: var(--text-sm); color: var(--au-text); }
.gd-goal b { color: var(--au-navy); }
.gd-empty { text-align: center; padding: var(--space-8) 0; }
.gd-linkbtn {
	background: none;
	border: 0;
	padding: 0;
	color: var(--au-navy-light);
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

/* -- shared bits --------------------------------------------------- */
.gd-split {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: center;
}
.gd-split--even { grid-template-columns: 1fr 1fr; align-items: start; }
.gd-video {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--au-navy-deep);
	box-shadow: var(--shadow-md);
}
/* Portrait (9:16) video beside its text: a narrow fixed column, text takes the rest. */
.gd-split--portrait { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); justify-content: center; max-width: 960px; }
.gd-video--portrait { aspect-ratio: 9 / 16; width: 100%; }
.gd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gd-address { font-style: normal; margin: var(--space-4) 0; line-height: 1.6; }

/* "Give by mail" and "Give by phone": one panel, two columns with a divider (stacked on narrow screens). */
.gd-ways {
	display: grid;
	grid-template-columns: 1fr 1fr;
	max-width: 960px;
	margin: 0 auto;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--radius-lg);
	background: rgba(255, 255, 255, .04);
}
.gd-way { padding: var(--space-8); }
.gd-way + .gd-way { border-left: 1px solid rgba(255, 255, 255, .18); }
.gd-way-label {
	font-size: var(--text-xs);
	letter-spacing: 3px;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--au-gold);
	margin-bottom: var(--space-2);
}
.gd-way-title {
	font-family: var(--font-display);
	font-size: var(--text-xl);
	line-height: 1.2;
	color: var(--au-white);
	margin-bottom: var(--space-4);
}
.gd-way .gd-address { margin: 0; }
.gd-mail-details { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid rgba(255, 255, 255, .18); }
.gd-mail-details div + div { margin-top: var(--space-1); }
.gd-mail-details dt { display: inline; font-weight: 700; }
.gd-mail-details dd { display: inline; margin: 0; }
.gd-phone { margin-top: var(--space-3); font-size: var(--text-lg); font-weight: 700; }
.gd-phone a { color: var(--au-white); text-decoration: none; border-bottom: 2px solid var(--au-gold); }
.gd-phone a:hover { color: var(--au-gold-light); }
@media (max-width: 760px) {
	.gd-ways { grid-template-columns: 1fr; }
	.gd-way { padding: var(--space-6); }
	.gd-way + .gd-way { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
}

/* -- project page -------------------------------------------------- */
.gd-project-head { padding-bottom: var(--space-6); }
.gd-back { margin-bottom: var(--space-4); font-size: var(--text-sm); }
.gd-back a { text-decoration: none; font-weight: 600; }
.gd-project-head .gd-eyebrow { color: var(--au-gold); }
.gd-project-title {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	line-height: 1.08;
	color: var(--au-navy);
	max-width: 22em;
}
.gd-project-goal { margin-top: var(--space-3); font-size: var(--text-lg); }
.gd-project-goal b { color: var(--au-navy); }

.gd-project {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
}
.gd-photo, .gd-carousel {
	width: 100%;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}
.gd-photo { aspect-ratio: 3 / 2; object-fit: cover; }
.gd-carousel .carousel-slide img { object-fit: cover; }
.gd-story { margin-top: var(--space-6); font-size: var(--text-lg); line-height: 1.7; }
.gd-story p + p { margin-top: var(--space-4); }
.gd-match {
	margin-top: var(--space-6);
	padding: var(--space-4) var(--space-5);
	border-left: 4px solid var(--au-gold);
	background: var(--au-gold-pale);
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.gd-facts { margin-top: var(--space-6); }
.gd-fact { background: var(--au-cream); border-radius: var(--radius-lg); }
.gd-fact .card-body { padding: var(--space-5); }
.gd-fact .card-text + .card-text { margin-top: var(--space-2); }
.gd-project-main .gd-video { margin-top: var(--space-8); }

.gd-give { position: sticky; top: 96px; }
.gd-give-card {
	background: var(--au-white);
	border: 1px solid rgba(0, 0, 0, .08);
	border-top: 4px solid var(--au-gold);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	padding: var(--space-6);
}
.gd-give-title {
	font-size: var(--text-xs);
	letter-spacing: 3px;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--au-gold);
	margin-bottom: var(--space-2);
}
.gd-give-note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--au-text); }
.gd-jump { display: none; margin-top: var(--space-4); }
.gd-more-all { margin-top: var(--space-6); text-align: center; }

/* -- narrow screens ------------------------------------------------ */
@media (max-width: 900px) {
	.gd-hero-inner, .gd-split, .gd-split--even, .gd-project { grid-template-columns: 1fr; }
	.gd-hero-mosaic { display: none; }
	.gd-give { position: static; }
	.gd-video--portrait { max-width: 340px; margin: 0 auto; }
	.gd-jump { display: inline-flex; }
}
@media (max-width: 600px) {
	.gd-countdown-units span { min-width: 0; flex: 1 1 0; padding: 8px 4px; }
	.gd-countdown-units b { font-size: 1.5rem; }
	.gd-search { flex-basis: 100%; }
	.gd-search input { width: 100%; }
}
.gd-card[hidden] { display: none; }

/* floating "Your gifts" button (cart from Peter's donate widget) */
.gd-cart {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 18px 10px 10px;
	background: var(--au-navy-deep);
	color: var(--au-white);
	border-radius: var(--radius-full);
	box-shadow: var(--shadow-xl);
	text-decoration: none;
	font: 600 var(--text-sm)/1.2 var(--font-body);
	border: 2px solid var(--au-gold);
}
.gd-cart[hidden] { display: none; }
.gd-cart:hover { background: var(--au-navy); color: var(--au-white); }
.gd-cart-count {
	display: grid;
	place-items: center;
	min-width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--au-gold);
	color: var(--au-navy-deep);
	font-weight: 700;
}
.gd-cart-go { color: var(--au-gold-light); }
@media (max-width: 600px) {
	.gd-cart { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
}
