/* ===========================================================================
 * community.css — design system for the public Go Raise Dough Community site.
 *
 * Blends the grd-brand tokens (Mulish, palette in grd-brand.css) with a
 * marketing-grade hero / section / card layer.  Class prefix: .gc-*
 * Pages must also load /assets/grd-brand.css (tokens + fonts).
 *
 * Sections:  layout & containers · nav · hero · sections · find bar ·
 *            grids · raffle card · story card · article · buttons · footer ·
 *            reveal & parallax · responsive
 * ======================================================================== */

:root {
	--gc-max: 1180px;
	--gc-gap: 24px;
	--gc-radius: 18px;
	--gc-radius-sm: 12px;
	--gc-shadow: 0 24px 60px -32px rgba(0, 61, 82, 0.55);
	--gc-shadow-lg: 0 40px 90px -40px rgba(0, 61, 82, 0.65);
	--gc-ink: var(--grd-midnight-teal, #003d52);
	--gc-line: rgba(0, 61, 82, 0.10);
	--gc-haze: #f4f7f7;
}

* { box-sizing: border-box; }

.gc-page {
	margin: 0;
	/* sticky footer: fill at least the viewport and push the footer to the bottom
	   so it never floats up mid-screen on short pages */
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--grd-font-family, "Mulish", system-ui, sans-serif);
	color: var(--gc-ink);
	background: var(--grd-white, #fff);
	-webkit-font-smoothing: antialiased;
	line-height: 1.5;
}
.gc-page img { max-width: 100%; display: block; }
a { color: var(--grd-coastal-blue, #087399); }

.gc-container { max-width: var(--gc-max); margin: 0 auto; padding: 0 20px; }
.gc-section { padding: 72px 0; position: relative; }
.gc-section--tight { padding: 48px 0; }
.gc-section--haze { background: var(--gc-haze); }
.gc-section--dark { background: var(--gc-ink); color: #fff; }
.gc-section--dark a { color: var(--grd-mint-green, #a7f2c1); }

.gc-eyebrow { margin: 0 0 8px; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grd-coastal-blue, #087399); }
.gc-section--dark .gc-eyebrow { color: var(--grd-spring-green, #42e07a); }
.gc-h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.01em; }
.gc-h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; line-height: 1.12; margin: 0 0 12px; letter-spacing: -0.01em; }
.gc-h3 { font-size: 1.3rem; font-weight: 800; margin: 0 0 8px; }
.gc-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 500; color: var(--grd-dolphin-gray, #6c6f6c); max-width: 64ch; margin: 0; }
.gc-section--dark .gc-lead { color: rgba(255,255,255,0.78); }
.gc-section__head { margin-bottom: 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.gc-section__head .gc-lead { margin-top: 6px; }
.gc-morelink { font-weight: 800; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.gc-morelink:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- nav ----- */
.gc-nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,0.86); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--gc-line); }
.gc-nav__inner { max-width: var(--gc-max); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 18px; }
.gc-nav__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.gc-nav__brand img { height: 34px; width: auto; }
.gc-nav__spacer { flex: 1 1 auto; }
.gc-nav__menu { display: flex; align-items: center; gap: 26px; }
.gc-nav__links { display: flex; align-items: center; gap: 26px; }
.gc-nav__links a { color: var(--gc-ink); font-weight: 800; font-size: 0.98rem; text-decoration: none; }
.gc-nav__links a:hover { color: var(--grd-coastal-blue, #087399); }
.gc-nav__cta { display: inline-flex; align-items: center; gap: 8px; }
.gc-nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; margin-left: auto; }
.gc-nav__burger span { display: block; width: 24px; height: 2px; background: var(--gc-ink); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------------------------------------------------------------- hero ---- */
.gc-hero { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 80% -10%, #0a5572 0%, var(--gc-ink) 55%); color: #fff; }
.gc-hero__bg { position: absolute; inset: -10% -5% 0 -5%; z-index: 0; pointer-events: none; opacity: 0.5; }
.gc-hero__blob { position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.35; }
.gc-hero__blob.a { width: 420px; height: 420px; background: var(--grd-spring-green, #42e07a); top: -120px; right: -60px; }
.gc-hero__blob.b { width: 320px; height: 320px; background: var(--grd-coastal-blue, #087399); bottom: -120px; left: -40px; opacity: 0.5; }
.gc-hero__inner { position: relative; z-index: 1; max-width: var(--gc-max); margin: 0 auto; padding: 96px 20px 104px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.gc-hero__title { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 18px; }
.gc-hero__title .gc-accent { color: var(--grd-spring-green, #42e07a); }
.gc-hero__sub { font-size: clamp(1.05rem, 1.7vw, 1.35rem); color: rgba(255,255,255,0.82); max-width: 52ch; margin: 0 0 28px; }
.gc-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.gc-hero__art { position: relative; }
.gc-hero__card { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--gc-radius); padding: 22px; backdrop-filter: blur(6px); box-shadow: var(--gc-shadow-lg); }

/* inline zip finder used in hero / find page */
.gc-finder { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.gc-finder .gc-input { flex: 1 1 220px; }

/* ------------------------------------------------------------- find bar --- */
.gc-find { background: #fff; border: 1px solid var(--gc-line); border-radius: var(--gc-radius); box-shadow: var(--gc-shadow); padding: 18px; }
.gc-find__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.gc-input, .gc-select {
	font-family: inherit; font-size: 1rem; color: var(--gc-ink);
	padding: 12px 16px; border: 1px solid #cfd9d9; border-radius: 9999px; background: #fff;
	min-height: 46px;
}
.gc-input:focus, .gc-select:focus { outline: 2px solid var(--grd-spring-green, #42e07a); outline-offset: 1px; }
.gc-input { flex: 1 1 220px; min-width: 160px; }
.gc-find__row .gc-select { flex: 0 0 auto; }
.gc-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.gc-chip { border: 1px solid #cfd9d9; background: #fff; border-radius: 9999px; padding: 7px 15px; font-weight: 800; font-size: 0.85rem; cursor: pointer; color: var(--gc-ink); }
.gc-chip.is-active { background: var(--gc-ink); color: #fff; border-color: var(--gc-ink); }

/* --------------------------------------------------------------- grids ---- */
.gc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--gc-gap); }
.gc-grid--3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.gc-empty { text-align: center; padding: 48px; color: var(--grd-dolphin-gray, #91918c); font-weight: 700; }

/* ---------------------------------------------------------- raffle card --- */
.gc-rcard {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gc-line);
	border-radius: var(--gc-radius); overflow: hidden; box-shadow: var(--gc-shadow);
	text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease;
	will-change: transform;
}
.gc-rcard:hover { transform: translateY(-4px); box-shadow: var(--gc-shadow-lg); }
.gc-rcard__media { position: relative; aspect-ratio: 2.7 / 1; background: #e7eaea; overflow: hidden; }
.gc-rcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gc-rcard:hover .gc-rcard__media img { transform: scale(1.05); }
.gc-rcard__type { position: absolute; top: 12px; left: 12px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 11px; border-radius: 9999px; background: rgba(255,255,255,0.92); color: var(--gc-ink); }
.gc-rcard__live { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; padding: 5px 11px; border-radius: 9999px; background: var(--grd-spring-green, #42e07a); color: var(--gc-ink); }
.gc-rcard__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--gc-ink); display: inline-block; }
.gc-rcard__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.gc-rcard__org { font-weight: 800; font-size: 1.1rem; line-height: 1.2; margin: 0 0 4px; }
.gc-rcard__loc { font-size: 0.85rem; color: var(--grd-dolphin-gray, #91918c); font-weight: 700; margin: 0 0 14px; }
.gc-rcard__metric { margin-top: auto; }
.gc-rcard__metric .l { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--grd-dolphin-gray, #91918c); }
.gc-rcard__metric .v { font-size: 2.15rem; font-weight: 900; color: var(--grd-coastal-blue, #087399); line-height: 1.05; }
.gc-rcard__bar { height: 8px; background: #e7eaea; border-radius: 9999px; overflow: hidden; margin: 8px 0 2px; }
.gc-rcard__bar > span { display: block; height: 100%; background: var(--grd-spring-green, #42e07a); }
.gc-rcard__stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 0.82rem; font-weight: 700; color: var(--grd-dolphin-gray, #91918c); }
.gc-rcard__stats b { color: var(--grd-midnight-teal, #003d52); font-weight: 900; }
.gc-rcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }

/* --------------------------------------------------- loading skeleton --- */
/* placeholder cards shown in a .gc-grid while raffle data loads; mirrors the
   .gc-rcard shape so the layout does not jump when real cards arrive. */
.gc-skel { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gc-line); border-radius: var(--gc-radius); overflow: hidden; box-shadow: var(--gc-shadow); }
.gc-skel__media { aspect-ratio: 2.7 / 1; }
.gc-skel__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.gc-skel__line { height: 12px; border-radius: 6px; }
.gc-skel__line.title { height: 20px; width: 65%; }
.gc-skel__line.loc { width: 40%; }
.gc-skel__line.metric { height: 34px; width: 55%; margin-top: 8px; }
.gc-skel__foot { height: 40px; width: 132px; border-radius: 9999px; margin-top: 12px; }
.gc-skel__media, .gc-skel__line, .gc-skel__foot {
	background: linear-gradient(100deg, #e7eaea 30%, #f2f4f4 50%, #e7eaea 70%);
	background-size: 200% 100%;
	animation: gc-shimmer 1.3s ease-in-out infinite;
}
@keyframes gc-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ----------------------------------------------------------- story card --- */
.gc-scard {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gc-line);
	border-radius: var(--gc-radius); overflow: hidden; box-shadow: var(--gc-shadow);
	text-decoration: none; color: inherit; transition: transform .18s ease, box-shadow .18s ease;
}
.gc-scard:hover { transform: translateY(-4px); box-shadow: var(--gc-shadow-lg); }
.gc-scard__media { aspect-ratio: 3 / 2; background: #e7eaea; overflow: hidden; }
.gc-scard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gc-scard:hover .gc-scard__media img { transform: scale(1.04); }
.gc-scard__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.gc-chip-cat { align-self: flex-start; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grd-coastal-blue, #087399); background: rgba(8,115,153,0.10); padding: 4px 10px; border-radius: 9999px; margin-bottom: 10px; }
.gc-scard__title { font-size: 1.2rem; font-weight: 800; line-height: 1.22; margin: 0 0 8px; color: var(--gc-ink); }
.gc-scard--feature .gc-scard__title { color: var(--gc-ink); }   /* dark blue-green, matches the rest of the page */
.gc-scard__dek { font-size: 0.95rem; color: var(--grd-dolphin-gray, #6c6f6c); margin: 0 0 14px; }
.gc-scard__meta { margin-top: auto; font-size: 0.8rem; font-weight: 700; color: var(--grd-dolphin-gray, #91918c); display: flex; gap: 8px; flex-wrap: wrap; }
.gc-scard--feature { grid-column: 1 / -1; }
.gc-scard--feature .gc-scard__media { aspect-ratio: auto; }

@media (min-width: 760px) {
	.gc-scard--feature { flex-direction: row; max-height: 340px; }
	.gc-scard--feature .gc-scard__media { flex: 0 0 48%; aspect-ratio: auto; }
	.gc-scard--feature .gc-scard__body { padding: 26px 30px; justify-content: center; }
	.gc-scard--feature .gc-scard__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
	.gc-scard--feature .gc-scard__dek { font-size: 1.05rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ------------------------------------------------------------- article ---- */
.gc-article { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.gc-article__hero { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--gc-radius); }
.gc-article__body { font-size: 1.15rem; line-height: 1.75; color: #2a2f2f; }
.gc-article__body p { margin: 0 0 1.3em; }
.gc-article__body h2 { font-size: 1.6rem; font-weight: 900; margin: 1.6em 0 0.5em; }
.gc-article__body h3 { font-size: 1.3rem; font-weight: 800; margin: 1.4em 0 0.5em; }
.gc-article__body img { border-radius: var(--gc-radius-sm); margin: 1.5em 0; }
.gc-article__body a { color: var(--grd-coastal-blue, #087399); font-weight: 700; }
.gc-article__body blockquote { border-left: 4px solid var(--grd-spring-green, #42e07a); margin: 1.5em 0; padding: 0.4em 0 0.4em 1.2em; font-size: 1.25rem; font-style: italic; color: var(--gc-ink); }

/* detail-page widgets (raffle) */
.gc-jumbo { text-align: center; }
.gc-jumbo .l { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--grd-spring-green, #42e07a); }
.gc-jumbo .v { font-size: clamp(3rem, 9vw, 6rem); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.gc-panel { background: #fff; border: 1px solid var(--gc-line); border-radius: var(--gc-radius); box-shadow: var(--gc-shadow); padding: 24px; }
.gc-deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.gc-deck img { width: 100%; border-radius: 6px; box-shadow: 0 4px 12px -6px rgba(0,0,0,0.4); aspect-ratio: 5 / 7; object-fit: cover; }
/* undrawn slot = solid card-back tile with its slot number (mirrors the buy page board) */
.gc-deck-back { display: flex; align-items: center; justify-content: center; aspect-ratio: 5 / 7; border-radius: 6px; font-weight: 900; font-size: 1.3rem; color: #fff; background: var(--grd-coastal-blue, #087399); border: 2px solid rgba(255,255,255,0.85); box-shadow: 0 4px 12px -6px rgba(0,0,0,0.4); box-sizing: border-box; }
.gc-chartbox { width: 100%; }
.gc-panel-meta { color: var(--grd-dolphin-gray, #6c6f6c); font-size: 0.9rem; margin: 10px 0 0; }
.gc-panel h3 { margin-top: 0; }
#gc-panels { display: flex; flex-direction: column; gap: 20px; max-width: 880px; margin: 0 auto; }
/* "Relive the moment" panel: blurb on the left, Replay button aligned right */
.gc-replay-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.gc-replay-row .gc-panel-meta { flex: 1 1 240px; margin: 0; }
.gc-replay-row .gc-btn { flex: 0 0 auto; }
.gc-share { display: flex; gap: 10px; flex-wrap: wrap; }
.gc-share a, .gc-share button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gc-line); background: #fff; color: var(--gc-ink); border-radius: 9999px; padding: 9px 16px; font-weight: 800; font-size: 0.9rem; text-decoration: none; cursor: pointer; }
.gc-share a:hover, .gc-share button:hover { background: var(--gc-haze); }

/* --------------------------------------------------------------- buttons -- */
.gc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: none; cursor: pointer; font-family: inherit; font-weight: 800; font-size: 1rem; line-height: 1; padding: 14px 26px; border-radius: 9999px; text-decoration: none; transition: filter .15s ease, transform .05s ease, background-color .15s ease; }
.gc-btn:active { transform: translateY(1px); }
.gc-btn--primary { background: var(--grd-spring-green, #42e07a); color: var(--gc-ink); }
.gc-btn--primary:hover { filter: brightness(0.95); }
.gc-btn--blue { background: var(--grd-coastal-blue, #087399); color: #fff; }
.gc-btn--blue:hover { background: var(--grd-coastal-blue-dark, #065a78); }
.gc-btn--ghost { background: transparent; color: var(--gc-ink); box-shadow: inset 0 0 0 2px var(--gc-line); }
.gc-btn--ghost:hover { background: var(--gc-haze); }
.gc-btn--on-dark { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.4); }
.gc-btn--on-dark:hover { background: rgba(255,255,255,0.1); }
.gc-btn--lg { font-size: 1.15rem; padding: 18px 34px; }
.gc-btn--block { width: 100%; }

/* ---------------------------------------------------------------- footer -- */
.gc-footer { background: var(--gc-ink); color: rgba(255,255,255,0.78); padding: 56px 0 32px; margin-top: auto; }
.gc-footer a { color: var(--grd-mint-green, #a7f2c1); text-decoration: none; font-weight: 700; }
.gc-footer a:hover { color: var(--grd-spring-green, #42e07a); }
.gc-footer__grid { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.gc-footer__brand img { height: 72px; margin-bottom: 14px; }
.gc-footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.gc-footer__col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin: 0 0 12px; }
.gc-footer__col a { display: block; margin-bottom: 8px; font-weight: 700; }
.gc-footer__legal { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 36px; padding-top: 20px; font-size: 0.85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* --------------------------------------------------- reveal & parallax ---- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
	[data-reveal] { opacity: 1; transform: none; transition: none; }
	[data-parallax] { transform: none !important; }
	.gc-rcard, .gc-scard, .gc-rcard__media img, .gc-scard__media img { transition: none; }
	.gc-skel__media, .gc-skel__line, .gc-skel__foot { animation: none; }
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 900px) {
	.gc-hero__inner { grid-template-columns: 1fr; padding: 72px 20px 80px; }
	.gc-hero__art { display: none; }
}
@media (max-width: 760px) {
	.gc-section { padding: 52px 0; }
	.gc-nav__burger { display: block; }
	.gc-nav__menu {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--gc-line);
		padding: 8px 20px 18px; box-shadow: var(--gc-shadow);
	}
	.gc-nav.is-open .gc-nav__menu { display: flex; }
	.gc-nav__menu .gc-nav__links { flex-direction: column; align-items: stretch; gap: 0; }
	.gc-nav__menu .gc-nav__links a { padding: 13px 0; border-bottom: 1px solid var(--gc-line); }
	.gc-nav__menu .gc-nav__cta { margin-top: 14px; }
	.gc-nav__menu .gc-nav__cta .gc-btn { width: 100%; }
}

/* Find-a-Raffle page: tighter, smaller cards (2-up) on phones */
@media (max-width: 620px) {
	#raffle-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	#raffle-grid .gc-rcard__body { padding: 12px 12px 14px; }
	#raffle-grid .gc-rcard__org { font-size: 0.92rem; line-height: 1.15; margin-bottom: 2px; }
	#raffle-grid .gc-rcard__loc { font-size: 0.72rem; margin-bottom: 8px; }
	#raffle-grid .gc-rcard__metric .l { font-size: 0.62rem; }
	#raffle-grid .gc-rcard__metric .v { font-size: 1.3rem; }
	#raffle-grid .gc-rcard__stats { font-size: 0.7rem; gap: 4px 10px; margin-top: 8px; }
	#raffle-grid .gc-rcard__foot { margin-top: 10px; }
	#raffle-grid .gc-rcard__foot .gc-btn { width: 100%; font-size: 0.8rem; padding: 9px 10px; }
	#raffle-grid .gc-rcard__type, #raffle-grid .gc-rcard__live { font-size: 0.56rem; padding: 3px 7px; top: 8px; }
	#raffle-grid .gc-rcard__type { left: 8px; }
	#raffle-grid .gc-rcard__live { right: 8px; }
}
