/* aieo/competition — competition landing block. */
.aieo-competition { display: block; }

.aieo-competition__hero { margin: 0 0 1.5rem; }
/* One picture, cut to its shape (the editor's help says which): 3:2, and 4:5 on a phone that has its own crop. */
.aieo-competition__picture { display: block; }
.aieo-competition__img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--wp--custom--rooster--shape--media, 12px); }
@media (max-width: 782px) {
	.aieo-competition__picture--phone .aieo-competition__img { aspect-ratio: 4 / 5; }
}

.aieo-competition__body { max-width: 760px; margin: 0 auto; }
.aieo-competition__title { margin: 0 0 .5rem; line-height: 1.15; }
.aieo-competition__desc { margin: 0 0 1.5rem; font-size: 1.05rem; line-height: 1.6; }
.aieo-competition__form { margin: 0 0 1.5rem; }

.aieo-competition__share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 1rem; }
.aieo-competition__share-label { font-weight: 600; }
.aieo-competition__share-btn {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 16px; border-radius: var(--wp--custom--rooster--shape--button, 999px); text-decoration: none;
	font-weight: 600; font-size: .9rem; color: #fff; line-height: 1;
	transition: opacity .15s ease, transform .15s ease;
}
.aieo-competition__share-btn:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
/* Facebook's own colour, held to 4.5:1 for the white label (11.3.3): its current blue (its old #1877f2 gave 4.2:1).
   Without the theme only: with it, the theme's share box draws the row. */
.aieo-competition__share-btn--facebook  { background: #0866ff; }
/* Following the shop where it has no web share (Instagram, TikTok): plain links, after the share row's buttons. */
.aieo-competition__follow-link { display: inline-flex; align-items: center; min-height: 24px; font-weight: 600; }

/* Schedule line (start / end with time) */
.aieo-competition__schedule { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 1.25rem; font-size: .95rem; color: var(--wp--preset--color--muted, #4b5563); }
.aieo-competition__sched-item strong { font-weight: 600; }

/* Schedule states */
.aieo-competition__notice { margin: 0 0 1.25rem; padding: 16px 18px; border-radius: var(--wp--custom--rooster--shape--panel, 10px); font-size: 1.05rem; line-height: 1.5; }
/* On the theme's palette (11.3.3): the page's text over the theme's surface, or over a wash of the notice's tone. */
.aieo-competition__notice--soon  { background: var(--wp--preset--color--subtle, #f4f4f5); color: inherit; border: 1px solid var(--wp--preset--color--line, #dcdcdc); }
.aieo-competition__notice--ended { background: var(--wp--preset--color--subtle, #f4f4f5); color: var(--wp--preset--color--muted, #4b5563); border: 1px solid var(--wp--preset--color--line, #dcdcdc); }
/* The answer to an entry's confirmation link (AIEO_Competition_Participants::confirmation_notice()): a success, or the link refused. */
.aieo-competition__notice--confirmed { background: color-mix(in srgb, var(--wp--preset--color--success, #15803d) 12%, transparent); color: inherit; border: 1px solid color-mix(in srgb, var(--wp--preset--color--success, #15803d) 45%, transparent); }
.aieo-competition__notice--invalid { background: color-mix(in srgb, var(--wp--preset--color--danger, #b32d2e) 10%, transparent); color: inherit; border: 1px solid color-mix(in srgb, var(--wp--preset--color--danger, #b32d2e) 45%, transparent); }
.aieo-competition__notice--announce { background: color-mix(in srgb, var(--wp--preset--color--warning, #b8860b) 12%, transparent); color: inherit; border: 1px solid color-mix(in srgb, var(--wp--preset--color--warning, #b8860b) 45%, transparent); font-weight: 600; }
.aieo-competition__admin-note { margin: 0 0 1rem; padding: 8px 12px; border-left: 3px solid var(--wp--preset--color--warning, #b8860b); background: color-mix(in srgb, var(--wp--preset--color--warning, #b8860b) 10%, transparent); color: inherit; font-size: .85rem; border-radius: var(--wp--custom--rooster--shape--panel, 4px); }

/* Winners reveal (shown once the competition has ended + winners drawn) */
.aieo-competition__winners { margin: 1.5rem 0 0; padding: 20px 22px; border-radius: var(--wp--custom--rooster--shape--panel, 12px); background: color-mix(in srgb, var(--wp--preset--color--warning, #b8860b) 8%, transparent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--warning, #b8860b) 45%, transparent); }
.aieo-competition__winners-title { margin: 0 0 .75rem; font-size: 1.4rem; line-height: 1.2; }
.aieo-competition__winners-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.aieo-competition__winner {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 16px; border-radius: var(--wp--custom--rooster--shape--chip, 999px); background: var(--wp--preset--color--bg, #fff); border: 1px solid color-mix(in srgb, var(--wp--preset--color--warning, #b8860b) 60%, transparent);
	font-weight: 600; font-size: 1rem; color: var(--wp--preset--color--warning-ink, #92400e);
}
/* The winner's trophy: Lucide's, as a mask in the text's colour (FE-I1: never an emoji). */
.aieo-competition__winner::before { content: ""; flex: none; width: 1em; height: 1em; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9H4.5a2.5 2.5 0 0 1 0-5H6'/%3E%3Cpath d='M18 9h1.5a2.5 2.5 0 0 0 0-5H18'/%3E%3Cpath d='M4 22h16'/%3E%3Cpath d='M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22'/%3E%3Cpath d='M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22'/%3E%3Cpath d='M18 2H6v7a6 6 0 0 0 12 0V2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9H4.5a2.5 2.5 0 0 1 0-5H6'/%3E%3Cpath d='M18 9h1.5a2.5 2.5 0 0 0 0-5H18'/%3E%3Cpath d='M4 22h16'/%3E%3Cpath d='M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22'/%3E%3Cpath d='M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22'/%3E%3Cpath d='M18 2H6v7a6 6 0 0 0 12 0V2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.aieo-competition__winners-title { display: flex; align-items: center; gap: .4em; }
.aieo-competition__trophy { flex: none; }
.aieo-competition__announcement { margin: 1.1rem 0 0; font-size: 1.02rem; line-height: 1.6; }
.aieo-competition__announcement :first-child { margin-top: 0; }
.aieo-competition__announcement :last-child { margin-bottom: 0; }
