/**
 * Goalie Goals resource page.
 * Prefix: igg-  ·  Uses --ig-* design system tokens (depends on ingoal-design-system).
 */

.ingoal-goalie-goals .igg {
	background: var(--ig-bg, #fff);
	color: var(--ig-text-primary, #0A0A0A);
	font-family: var(--ig-font-body, Merriweather, Georgia, serif);
}

/* Smooth in-page jumps to the contribute form; offset for the sticky header.
   This stylesheet only loads on /goalie-goals/, so html-scope is safe here. */
html { scroll-behavior: smooth; }
.ingoal-goalie-goals #igg-contribute { scroll-margin-top: 90px; }

.igg-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}
.igg-wrap--narrow { max-width: 760px; }

@media (min-width: 768px) {
	.igg-wrap { padding: 0 60px; }
}

.igg-h2 {
	font-family: var(--ig-font-heading, Inter, sans-serif);
	font-weight: 700;
	font-size: var(--ig-text-3xl, 28px);
	line-height: 1.2;
	color: var(--ig-navy, #0A1628);
	margin: 0 0 12px;
}

/* ---------- Hero ---------- */
.igg-hero {
	background: var(--ig-navy, #0A1628);
	color: #fff;
	padding: 56px 0 44px;
}
.igg-hero__eyebrow {
	font-family: var(--ig-font-ui, Inter, sans-serif);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 13px;
	font-weight: 600;
	color: var(--ig-gold, #C9A961);
	margin: 0 0 8px;
}
.igg-hero__title {
	font-family: var(--ig-font-heading, Inter, sans-serif);
	font-weight: 800;
	font-size: clamp(40px, 8vw, 64px);
	line-height: 1.02;
	margin: 0 0 14px;
	color: #fff;
}
.igg-hero__sub {
	font-size: 18px;
	line-height: 1.5;
	max-width: 640px;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 24px;
}
.igg-hero__sub em { color: var(--ig-gold, #C9A961); font-style: italic; }

.igg-dev-note {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(201, 169, 97, 0.5);
	border-left: 4px solid var(--ig-gold, #C9A961);
	border-radius: var(--ig-radius-md, 8px);
	padding: 16px 18px;
	font-size: 16px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
	max-width: 720px;
}
.igg-dev-note strong { color: #fff; }
.igg-dev-note a { color: var(--ig-gold, #C9A961); text-decoration: underline; }

.igg-stats {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	max-width: 640px;
}
@media (min-width: 600px) {
	.igg-stats { grid-template-columns: repeat(4, 1fr); }
}
.igg-stats li { text-align: center; }
.igg-stats__n {
	display: block;
	font-family: var(--ig-font-heading, Inter, sans-serif);
	font-weight: 800;
	font-size: 36px;
	line-height: 1;
	color: var(--ig-gold, #C9A961);
}
.igg-stats__l {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: rgba(255, 255, 255, 0.75);
}

/* ---------- Sections ---------- */
.igg-section { padding: 44px 0; }
.igg-section + .igg-section { border-top: 1px solid var(--ig-border-color, #e6e8ec); }

/* ---------- FAQ ---------- */
.igg-faq { background: var(--ig-ice-blue, #E8F4F8); }
.igg-faq__list { display: grid; gap: 12px; }
.igg-faq__item {
	background: #fff;
	border: 1px solid var(--ig-border-color, #e6e8ec);
	border-radius: var(--ig-radius-md, 8px);
	overflow: hidden;
}
.igg-faq__q {
	cursor: pointer;
	list-style: none;
	padding: 16px 44px 16px 18px;
	position: relative;
	font-family: var(--ig-font-ui, Inter, sans-serif);
	font-weight: 600;
	font-size: 17px;
	line-height: 1.35;
	color: var(--ig-navy, #0A1628);
}
.igg-faq__q::-webkit-details-marker { display: none; }
.igg-faq__q::after {
	content: "+";
	position: absolute;
	right: 18px;
	top: 14px;
	font-size: 22px;
	font-weight: 400;
	color: var(--ig-accent-blue, #31487A);
}
.igg-faq__item[open] .igg-faq__q::after { content: "\2013"; }
.igg-faq__a {
	padding: 0 18px 18px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--ig-text-primary, #0A0A0A);
}
.igg-faq__a p { margin: 0; }

/* ---------- League head ---------- */
.igg-league__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
	margin-bottom: 6px;
}
.igg-league__head .igg-h2 { margin: 0; display: flex; align-items: baseline; gap: 12px; }
.igg-league__count {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	background: var(--ig-accent-blue, #31487A);
	border-radius: 999px;
	min-width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 10px;
}
.igg-league__full {
	font-family: var(--ig-font-ui, Inter, sans-serif);
	font-size: 14px;
	color: var(--ig-text-secondary, #5b6470);
	margin: 0;
	width: 100%;
}
.igg-league__blurb {
	font-size: 16px;
	line-height: 1.55;
	color: var(--ig-text-secondary, #5b6470);
	max-width: 760px;
	margin: 8px 0 22px;
}

.igg-badge {
	font-family: var(--ig-font-ui, Inter, sans-serif);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 5px 10px;
	border-radius: 999px;
	white-space: nowrap;
}
.igg-badge--complete { background: #e2f3e6; color: #1d6b34; }
.igg-badge--partial  { background: #fff2d6; color: #8a5a00; }
.igg-badge--wanted   { background: #eef1f5; color: var(--ig-accent-blue, #31487A); }
.igg-badge--link {
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.15s ease, box-shadow 0.15s ease;
}
.igg-badge--link:hover,
.igg-badge--link:focus-visible {
	filter: brightness(0.96);
	box-shadow: 0 0 0 2px rgba(49, 72, 122, 0.35);
	outline: none;
}

/* ---------- Compilation ---------- */
.igg-compilation { margin: 0 0 26px; }
.igg-compilation__cap {
	font-family: var(--ig-font-ui, Inter, sans-serif);
	font-size: 14px;
	color: var(--ig-text-secondary, #5b6470);
	margin-top: 8px;
	text-align: center;
}

/* ---------- Goals list ---------- */
.igg-goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.igg-goal {
	display: flex;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--ig-border-color, #e6e8ec);
	border-radius: var(--ig-radius-md, 8px);
	padding: 16px 18px;
}
.igg-goal--playoff {
	border-left: 4px solid var(--ig-gold, #C9A961);
	background: linear-gradient(0deg, rgba(201, 169, 97, 0.05), rgba(201, 169, 97, 0.05)), #fff;
}
.igg-goal__num {
	font-family: var(--ig-font-heading, Inter, sans-serif);
	font-weight: 800;
	font-size: 20px;
	color: var(--ig-accent-blue, #31487A);
	min-width: 28px;
	text-align: right;
	opacity: 0.7;
}
.igg-goal__main { flex: 1; min-width: 0; }
.igg-goal__headline {
	margin: 0 0 4px;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 10px;
}
.igg-goal__name {
	font-family: var(--ig-font-heading, Inter, sans-serif);
	font-weight: 700;
	font-size: 19px;
	color: var(--ig-navy, #0A1628);
	text-decoration: none;
}
a.igg-goal__name:hover { color: var(--ig-accent-blue, #31487A); text-decoration: underline; }
.igg-goal__matchup {
	font-family: var(--ig-font-ui, Inter, sans-serif);
	font-size: 15px;
	color: var(--ig-text-secondary, #5b6470);
}
.igg-goal__vs { opacity: 0.6; font-style: italic; }
.igg-goal__meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-family: var(--ig-font-ui, Inter, sans-serif);
}
.igg-goal__date { font-size: 14px; color: var(--ig-text-secondary, #5b6470); }
.igg-tag {
	font-size: 12px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 999px;
	white-space: nowrap;
}
.igg-tag--shot    { background: #e7eefc; color: #25408a; }
.igg-tag--own     { background: #f0eef5; color: #5a4a78; }
.igg-tag--playoff { background: var(--ig-gold, #C9A961); color: var(--ig-navy, #0A1628); }
.igg-tag--league  {
	background: var(--ig-navy, #0A1628);
	color: #fff;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.igg-goal__notes {
	margin: 8px 0 0;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ig-text-primary, #0A0A0A);
}
.igg-goal__video { margin-top: 12px; }
.igg-goal__source { margin: 6px 0 0; }
.igg-goal__source a {
	font-family: var(--ig-font-ui, Inter, sans-serif);
	font-size: 13px;
	font-weight: 600;
	color: var(--ig-accent-blue, #31487A);
	text-decoration: none;
}
.igg-goal__source a:hover { text-decoration: underline; }

/* ---------- Empty / wanted ---------- */
.igg-empty {
	text-align: center;
	padding: 28px 18px;
	border: 1px dashed var(--ig-border-color, #cdd3db);
	border-radius: var(--ig-radius-md, 8px);
	background: #fafbfc;
}
.igg-empty p {
	margin: 0 0 14px;
	font-size: 16px;
	color: var(--ig-text-secondary, #5b6470);
}

/* ---------- Contribute / form ---------- */
.igg-contribute { background: var(--ig-navy, #0A1628); color: #fff; }
.igg-contribute .igg-h2 { color: #fff; }
.igg-contribute__lead {
	font-size: 17px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 24px;
}
.igg-contribute__lead strong { color: var(--ig-gold, #C9A961); }
.igg-contribute__alt {
	margin-top: 18px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.7);
}
.igg-contribute__alt a { color: var(--ig-gold, #C9A961); text-decoration: underline; }

.igg-form__row { margin-bottom: 16px; }
.igg-form__label {
	display: block;
	font-family: var(--ig-font-ui, Inter, sans-serif);
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 6px;
	color: rgba(255, 255, 255, 0.92);
}
.igg-form__input {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	min-height: 48px;
	font-size: 16px;
	font-family: var(--ig-font-body, Merriweather, serif);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--ig-radius-sm, 4px);
	background: rgba(255, 255, 255, 0.96);
	color: var(--ig-text-primary, #0A0A0A);
}
.igg-form__input:focus {
	outline: none;
	border-color: var(--ig-gold, #C9A961);
	box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.3);
}
.igg-form__textarea { resize: vertical; line-height: 1.5; }
.igg-form .cf-turnstile { margin: 4px 0 16px; }
.igg-form__status { margin: 14px 0 0; font-size: 15px; line-height: 1.4; min-height: 1.2em; }
.igg-form__status--ok    { color: #8fe3a6; }
.igg-form__status--error { color: #ffb3b3; }
