/**
 * FAFW Awards Page
 *
 * Fonts and base button styles come from the Elementor kit (Site Settings).
 * Brand colors are CSS variables; each Awards widget's Style → Colors panel
 * overrides them per widget (pick a kit global there if you have one).
 *
 * Helper classes for native Elementor widgets (Advanced → CSS Classes):
 *   Container:  fafw-aw-dark      white text on a dark section
 *               fafw-aw-card-box  rounded panel (stat box)
 *   Heading:    fafw-aw-eyebrow   small uppercase label
 *               fafw-aw-stat-num  big accent number
 *   Button:     fafw-aw-btn-dark / fafw-aw-btn-outline  button variants (see Buttons section)
 *   Icon list:  fafw-aw-pill      tinted pill ("Next ceremony" line)
 *   Text:       fafw-aw-links     underlined arrow links
 */

body {
	/* Brand colors = Elementor kit globals */
	--fafw-dark: var(--e-global-color-fbafb87);    /* dark green  #034836 */
	--fafw-accent: var(--e-global-color-0b937fa);  /* light green #42D886 */
	--fafw-text: var(--e-global-color-text, #1f2a24);
	--fafw-on-dark: var(--e-global-color-baa6b7b); /* white */
	--fafw-tint: #eef5f1;
	--fafw-line: #dce9e1;
	--fafw-badge: #f5d547;
	--fafw-card-bg: rgba(0, 0, 0, .22);
	--fafw-radius: 12px;
	--fafw-gap: 20px;
}

/* --fafw-header-h is measured live by awards.js (sticky header + admin bar). */
.fafw-awards-template [id] { scroll-margin-top: calc(var(--fafw-header-h, 0px) + 16px); }

/* ================= Helper classes for native widgets ================= */

.elementor .fafw-aw-eyebrow .elementor-heading-title {
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--fafw-dark);
}

.elementor .fafw-aw-dark .elementor-heading-title,
.elementor .fafw-aw-dark .elementor-widget-text-editor,
.elementor .fafw-aw-dark .elementor-icon-list-text,
.elementor .fafw-aw-dark .elementor-widget-text-editor p { color: var(--fafw-on-dark); }
.elementor .fafw-aw-dark .fafw-aw-eyebrow .elementor-heading-title,
.elementor .fafw-aw-dark .elementor-icon-list-icon i { color: var(--fafw-accent); }
.elementor .fafw-aw-dark .elementor-icon-list-icon svg { fill: var(--fafw-accent); }

.elementor .fafw-aw-stat-num .elementor-heading-title {
	font-size: clamp(48px, 6vw, 72px);
	line-height: 1;
	color: var(--fafw-accent);
}

.fafw-aw-card-box { border-radius: var(--fafw-radius); overflow: hidden; }

/* Section nav scrolls with the page (not sticky). The class may still exist on imported layouts. */
.fafw-aw-sticky { position: relative !important; top: auto; }


.elementor .fafw-aw-pill { width: auto !important; padding: 8px 14px; border-radius: 8px; background: var(--fafw-tint); }
.elementor .fafw-aw-pill .elementor-icon-list-text { font-weight: 600; color: var(--fafw-dark); }
.elementor .fafw-aw-pill .elementor-icon-list-icon i { color: var(--fafw-dark); }

.fafw-aw-links p { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
/* Text links on the Awards page: dark green → light green on hover.
 * Covers every Text Editor widget (with or without the fafw-aw-links class) and
 * beats both the kit link color and per-widget "Link color" settings. */
body.fafw-awards-template .elementor .elementor-widget-text-editor a,
body.fafw-awards-template .elementor .fafw-aw-links a {
	font-weight: 600;
	color: var(--e-global-color-fbafb87);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color .2s;
}
body.fafw-awards-template .elementor .elementor-widget-text-editor a:hover,
body.fafw-awards-template .elementor .elementor-widget-text-editor a:focus-visible,
body.fafw-awards-template .elementor .fafw-aw-links a:hover,
body.fafw-awards-template .elementor .fafw-aw-links a:focus-visible { color: var(--e-global-color-0b937fa); }

/* Links inside dark sections stay readable: light green → white on hover. */
body.fafw-awards-template .elementor .fafw-aw-dark .elementor-widget-text-editor a { color: var(--e-global-color-0b937fa); }
body.fafw-awards-template .elementor .fafw-aw-dark .elementor-widget-text-editor a:hover { color: var(--e-global-color-baa6b7b); }

/* ================= Buttons (every button on the Awards page) =================
 * Kit globals: fbafb87 = dark green, 0b937fa = light green, baa6b7b = white.
 * Typography: kit global "634a26e". Variants via Advanced → CSS Classes on a Button widget:
 *   (none)               light green, dark text  → hover dark green, white text
 *   fafw-aw-btn-dark     dark green, white text  → hover light green, dark text
 *   fafw-aw-btn-outline  white, dark border/text → hover dark green, white text
 * Per-widget Style settings in Elementor still override these. */
body.fafw-awards-template .elementor-button,
body.fafw-awards-template .fafw-aw-toggle button {
	font-family: var(--e-global-typography-634a26e-font-family), Sans-serif;
	font-size: var(--e-global-typography-634a26e-font-size);
	font-weight: var(--e-global-typography-634a26e-font-weight);
	text-transform: var(--e-global-typography-634a26e-text-transform);
	line-height: var(--e-global-typography-634a26e-line-height);
	letter-spacing: var(--e-global-typography-634a26e-letter-spacing);
	transition: background-color .2s, color .2s, fill .2s, box-shadow .2s;
}

/* Light green (default) */
body.fafw-awards-template .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 14px 34px;
	border: 0;
	border-radius: 999px;
	background-color: var(--e-global-color-0b937fa);
	fill: var(--e-global-color-fbafb87);
	color: var(--e-global-color-fbafb87);
	box-shadow: none;
	text-align: center;
}
body.fafw-awards-template .elementor-button:hover,
body.fafw-awards-template .elementor-button:focus-visible {
	background-color: var(--e-global-color-fbafb87);
	fill: var(--e-global-color-baa6b7b);
	color: var(--e-global-color-baa6b7b);
}

/* Dark green */
body.fafw-awards-template .fafw-aw-btn-dark .elementor-button {
	background-color: var(--e-global-color-fbafb87);
	fill: var(--e-global-color-baa6b7b);
	color: var(--e-global-color-baa6b7b);
}
body.fafw-awards-template .fafw-aw-btn-dark .elementor-button:hover,
body.fafw-awards-template .fafw-aw-btn-dark .elementor-button:focus-visible {
	background-color: var(--e-global-color-0b937fa);
	fill: var(--e-global-color-fbafb87);
	color: var(--e-global-color-fbafb87);
}

/* Outline */
body.fafw-awards-template .fafw-aw-btn-outline .elementor-button {
	background-color: var(--e-global-color-baa6b7b);
	fill: var(--e-global-color-fbafb87);
	color: var(--e-global-color-fbafb87);
	box-shadow: inset 0 0 0 2px var(--e-global-color-fbafb87);
}
body.fafw-awards-template .fafw-aw-btn-outline .elementor-button:hover,
body.fafw-awards-template .fafw-aw-btn-outline .elementor-button:focus-visible {
	background-color: var(--e-global-color-fbafb87);
	fill: var(--e-global-color-baa6b7b);
	color: var(--e-global-color-baa6b7b);
	box-shadow: inset 0 0 0 2px var(--e-global-color-fbafb87);
}

/* On dark backgrounds ("Add to calendar", outline buttons in dark sections) */
body.fafw-awards-template .fafw-aw-dark .fafw-aw-btn-outline .elementor-button,
body.fafw-awards-template .fafw-aw-cd .fafw-aw-cd__calendar {
	background-color: transparent;
	fill: var(--e-global-color-baa6b7b);
	color: var(--e-global-color-baa6b7b);
	box-shadow: inset 0 0 0 2px var(--e-global-color-baa6b7b);
}
body.fafw-awards-template .fafw-aw-dark .fafw-aw-btn-outline .elementor-button:hover,
body.fafw-awards-template .fafw-aw-cd .fafw-aw-cd__calendar:hover,
body.fafw-awards-template .fafw-aw-cd .fafw-aw-cd__calendar:focus-visible {
	background-color: var(--e-global-color-0b937fa);
	fill: var(--e-global-color-fbafb87);
	color: var(--e-global-color-fbafb87);
	box-shadow: inset 0 0 0 2px var(--e-global-color-0b937fa);
}

/* Year toggle (2025 / 2026) */
body.fafw-awards-template .fafw-aw-toggle button {
	padding: 8px 22px;
	border: 0;
	border-radius: 999px;
	background-color: var(--e-global-color-baa6b7b);
	color: var(--e-global-color-fbafb87);
	box-shadow: inset 0 0 0 1.5px var(--e-global-color-fbafb87);
	cursor: pointer;
}
body.fafw-awards-template .fafw-aw-toggle button:hover,
body.fafw-awards-template .fafw-aw-toggle button:focus-visible,
body.fafw-awards-template .fafw-aw-toggle button[aria-selected="true"] {
	background-color: var(--e-global-color-fbafb87);
	color: var(--e-global-color-baa6b7b);
}
body.fafw-awards-template .fafw-aw-toggle button[aria-selected="true"]:hover {
	background-color: var(--e-global-color-0b937fa);
	color: var(--e-global-color-fbafb87);
	box-shadow: inset 0 0 0 1.5px var(--e-global-color-0b937fa);
}

/* ================= Shared widget pieces ================= */

.fafw-aw-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 32px;
}
.fafw-aw-head__main { max-width: 780px; }
.fafw-aw-kicker {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--fafw-dark);
}
.fafw-aw-title { margin: 0 0 12px; color: var(--fafw-dark); }
.fafw-aw-head__main > :last-child { margin-bottom: 0; }
.fafw-aw-lead { margin: 0; color: var(--fafw-text); }
.fafw-aw-icon { width: 20px; height: 20px; flex: none; }

.fafw-aw-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--fafw-badge);
	color: #1a1a1a;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ================= Section nav ================= */
.fafw-aw-nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.fafw-aw-nav ul::-webkit-scrollbar { display: none; }
.fafw-aw-nav a {
	display: block;
	padding: 12px 0;
	white-space: nowrap;
	font-size: 14px;
	font-weight: 600;
	color: var(--fafw-dark);
	border-bottom: 2px solid transparent;
	transition: border-color .15s;
}
.fafw-aw-nav a:hover,
.fafw-aw-nav a.is-active { border-bottom-color: var(--fafw-accent); }

/* ================= Ceremony ================= */
.fafw-aw-ceremony {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	align-items: center;
	gap: 64px;
	color: var(--fafw-on-dark);
}
.fafw-aw-ceremony .fafw-aw-kicker { color: var(--fafw-accent); }
.fafw-aw-ceremony .fafw-aw-ceremony__info .fafw-aw-title,
.fafw-aw-ceremony .fafw-aw-ceremony__info .fafw-aw-lead,
.fafw-aw-ceremony .fafw-aw-details li { color: var(--fafw-on-dark); }
.fafw-aw-ceremony .fafw-aw-lead { max-width: 560px; }

.fafw-aw-details { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.fafw-aw-details li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.fafw-aw-details .fafw-aw-icon { color: var(--fafw-accent); width: 18px; height: 18px; }

.fafw-aw-cd {
	padding: clamp(20px, 3vw, 32px);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: var(--fafw-radius);
	background: var(--fafw-card-bg);
}
.fafw-aw-cd .fafw-aw-kicker { margin-bottom: 16px; }
.fafw-aw-cd__units { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fafw-aw-cd__unit { padding: 16px 8px; text-align: center; border-radius: 10px; background: rgba(255,255,255,.06); }
.fafw-aw-cd__unit b {
	display: block;
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 700;
	line-height: 1;
	color: var(--fafw-accent);
	font-variant-numeric: tabular-nums;
}
.fafw-aw-cd__unit small {
	display: block;
	margin-top: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	opacity: .8;
}
.fafw-aw-cd__warn { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff3cd; color: #664d03; font-size: 13px; line-height: 1.45; }
.fafw-aw-cd__live { margin: 14px 0 0; font-size: 22px; font-weight: 700; color: var(--fafw-accent); }
.fafw-aw-cd__actions { display: flex; flex-wrap: nowrap; align-items: stretch; gap: 16px; margin-top: 24px; }
.fafw-aw-cd__actions .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	white-space: nowrap;
	text-align: center;
	cursor: pointer;
}
.fafw-aw-cd__note { margin: 14px 0 0; font-size: 13px; opacity: .85; }
/* Livestream link: same look as the Zoom button (global light green button style), full width */
.fafw-aw-cd__stream { margin-top: 12px; }
.fafw-aw-cd__stream .fafw-aw-cd__livestream { width: 100%; }

/* Buttons: Register (filled accent, grows) + Add to calendar (outline) */
.fafw-aw-cd__actions > .fafw-aw-cd__register { flex: 1 1 auto; min-width: 0; }
.fafw-aw-cd__actions > .fafw-aw-cd__calendar { flex: 0 0 auto; }
/* Very narrow screens: stack the two buttons. */
@media (max-width: 420px) {
	.fafw-aw-cd__actions { flex-wrap: wrap; }
	.fafw-aw-cd__actions > .fafw-aw-cd__register,
	.fafw-aw-cd__actions > .fafw-aw-cd__calendar { flex: 1 1 100%; }
}

/* ================= Categories ================= */
.fafw-aw-cards {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.fafw-aw-cards__item { display: flex; }
.fafw-aw-card {
	display: block;
	width: 100%;
	padding: 24px;
	border: 1px solid var(--fafw-line);
	border-radius: var(--fafw-radius);
	background: var(--e-global-color-baa6b7b);
	color: inherit;
	text-decoration: none;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}
/* Linked cards: whole card clickable; hover = highlighted state from the design. */
.fafw-aw-card.is-link { cursor: pointer; }
.fafw-aw-card.is-link:hover,
.fafw-aw-card.is-link:focus-visible {
	border-color: var(--fafw-dark);
	box-shadow: inset 0 0 0 1px var(--fafw-dark);
	background: var(--fafw-tint);
	color: inherit;
	outline: none;
}
.fafw-aw-card__top { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; margin-bottom: 14px; }
.fafw-aw-card__icon { width: 22px; height: 22px; color: var(--fafw-dark); }
.fafw-aw-card__title { margin: 0 0 8px; font-size: 17px; line-height: 1.3; color: var(--fafw-dark); }
.fafw-aw-card__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fafw-text); }

/* ================= Champions ================= */
.fafw-aw-toggle { display: inline-flex; gap: 8px; }
.fafw-aw-toggle button:focus-visible { outline: 2px solid var(--fafw-accent); outline-offset: 2px; }

.fafw-aw-year__intro { max-width: 780px; margin-bottom: 24px; }

.fafw-aw-winners {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--fafw-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}
.fafw-aw-winner {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--fafw-line);
	border-radius: var(--fafw-radius);
	background: var(--e-global-color-baa6b7b);
	overflow: hidden;
}
.fafw-aw-winner__media { aspect-ratio: 4 / 3; background: var(--fafw-tint); }
.fafw-aw-winner__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fafw-aw-winner__body { padding: 18px; }
.fafw-aw-winner__body p { margin: 0; }
.fafw-aw-winner__category { margin-bottom: 6px !important; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fafw-dark); }
.fafw-aw-winner__name { margin: 0 0 2px; font-size: 18px; line-height: 1.3; color: var(--fafw-dark); }
.fafw-aw-winner__country { margin-bottom: 10px !important; font-size: 14px; font-weight: 600; color: var(--fafw-text); }
.fafw-aw-winner__text { font-size: 14px; line-height: 1.55; color: var(--fafw-text); }

.fafw-aw-feature {
	display: grid;
	grid-template-columns: 280px 1fr;
	margin-top: var(--fafw-gap);
	border-radius: var(--fafw-radius);
	background: var(--fafw-dark);
	color: var(--e-global-color-baa6b7b);
	overflow: hidden;
}
.fafw-aw-feature__media { min-height: 220px; background: rgba(255,255,255,.08); }
.fafw-aw-feature__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fafw-aw-feature__body { align-self: center; padding: clamp(24px, 4vw, 40px); }
.fafw-aw-feature__body .fafw-aw-badge { margin-bottom: 12px; }
.fafw-aw-feature .fafw-aw-feature__name { margin: 0 0 4px; color: var(--e-global-color-baa6b7b); }
.fafw-aw-feature .fafw-aw-feature__role { margin: 0 0 14px; font-weight: 600; color: var(--fafw-accent); }
.fafw-aw-feature .fafw-aw-feature__text { margin: 0; color: rgba(255,255,255,.92); }

.fafw-aw-empty { margin: 0; padding: 40px; text-align: center; border: 1px dashed var(--fafw-line); border-radius: var(--fafw-radius); color: var(--fafw-text); }

/* Editor-only notice */
.fafw-aw-notice { padding: 16px; border: 1px dashed #d5dadf; border-radius: 6px; background: #f9fafa; color: #6d7882; font-size: 13px; }
.fafw-aw-notice a { margin-left: 6px; }

/* ================= Responsive ================= */
@media (max-width: 1024px) {
	.fafw-aw-ceremony { grid-template-columns: 1fr; gap: 40px; }
	.fafw-aw-feature { grid-template-columns: 220px 1fr; }
}
@media (max-width: 767px) {
	.fafw-aw-feature { grid-template-columns: 1fr; }
	.fafw-aw-feature__media { aspect-ratio: 16 / 10; min-height: 0; }
	.fafw-aw-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.fafw-aw-card { transition: none; }
}
