/* ==========================================================================
   Creative Clans — results page, winners gallery, creator, verify, certificates.
   ========================================================================== */

/* Results hero (Results.html) */
.cc-results-hero { background: var(--cc-ink); color: var(--cc-paper); padding-block: clamp(40px, 26px + 3.8vw, 64px) clamp(48px, 30px + 4.8vw, 80px); }
.cc-results-hero__inner { display: flex; flex-direction: column; gap: clamp(28px, 20px + 2vw, 44px); }
.cc-results-hero__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.cc-results-hero__copy { display: flex; flex-direction: column; gap: 14px; }
.cc-results-hero__eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cc-yellow); }
.cc-results-hero__title { font-family: var(--cc-font-display); font-size: clamp(40px, 26.6px + 3.43vw, 76px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.cc-results-hero__meta { font-size: clamp(15px, 14.3px + 0.19vw, 17px); color: var(--cc-on-dark); }

.cc-group-tabs { display: flex; flex-wrap: wrap; gap: 8px; }

.cc-group-tab {
	min-height: 46px;
	padding: 0 20px;
	border-radius: 999px;
	border: 1.5px solid var(--cc-muted);
	background: transparent;
	color: var(--cc-paper);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.cc-group-tab[aria-pressed="true"] { background: var(--cc-paper); border-color: var(--cc-paper); color: var(--cc-ink); font-weight: 800; }

.cc-grand { display: grid; gap: 28px; align-items: center; }
.cc-grand[hidden] { display: none; }

@media (min-width: 1024px) {
	.cc-grand { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; }
	.cc-grand__art { grid-column: span 7; }
	.cc-grand__info { grid-column: span 5; }
}

.cc-grand__art {
	border: 10px solid var(--cc-card);
	border-radius: var(--cc-radius-lg);
	overflow: hidden;
	background: var(--cc-card);
	max-height: 620px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cc-grand__art img,
.cc-grand__art svg { width: 100%; height: 100%; max-height: 600px; object-fit: contain; }
.cc-grand__info { display: flex; flex-direction: column; gap: 20px; }
.cc-grand__label { display: flex; align-items: center; gap: 14px; font-family: var(--cc-font-display); font-size: clamp(26px, 22px + 1vw, 34px); font-weight: 600; color: var(--cc-yellow); }
.cc-grand__title { font-family: var(--cc-font-display); font-size: clamp(34px, 24.7px + 2.38vw, 52px); line-height: 1.05; font-weight: 600; }
.cc-grand__by { font-size: clamp(17px, 16px + 0.29vw, 20px); font-weight: 700; }
.cc-grand__by a { color: var(--cc-paper); }
.cc-grand__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.cc-grand__facts > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--cc-dark-line); border-radius: 14px; }
.cc-grand__facts dt { font-size: 12px; font-weight: 700; color: var(--cc-on-dark); }
.cc-grand__facts dd { margin: 0; font-size: 17px; font-weight: 700; }
.cc-grand__facts .cc-grand__score { font-family: var(--cc-font-display); font-size: 30px; font-weight: 600; }
.cc-grand__note { margin: 0; display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 14px; background: #2a2824; }
.cc-grand__note figcaption { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cc-yellow); }
.cc-grand__note blockquote { margin: 0; font-family: var(--cc-font-display); font-style: italic; font-size: 19px; line-height: 1.45; }
.cc-grand__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cc-grand__none { color: var(--cc-on-dark); }

/* Tier rows */
.cc-tier-rows { display: flex; flex-direction: column; gap: clamp(40px, 28px + 3vw, 64px); padding-top: clamp(48px, 30px + 4.8vw, 80px); }
.cc-tier-row { display: flex; flex-direction: column; gap: 24px; }
.cc-tier-row__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--cc-line); }
.cc-tier-row__head .cc-prize-table__medal { width: 36px; height: 36px; }
.cc-tier-row__name { font-family: var(--cc-font-display); font-size: clamp(28px, 24.3px + 0.95vw, 36px); font-weight: 600; }
.cc-tier-row__band { font-size: 15px; font-weight: 700; color: var(--cc-muted); }

.cc-win-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }

@media (min-width: 768px) {
	.cc-win-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}

@media (min-width: 1100px) {
	.cc-win-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.cc-win-grid--gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
}

.cc-win-grid > li[hidden] { display: none; }
.cc-win { display: flex; flex-direction: column; gap: 10px; }
.cc-win__frame { position: relative; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--cc-line); }
.cc-win__frame img,
.cc-win__frame svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.cc-win__frame .cc-art__tier { display: inline-block; }
.cc-win__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cc-win__title { font-family: var(--cc-font-display); font-size: 18px; font-weight: 600; line-height: 1.2; }
.cc-win__score { font-size: 14px; font-weight: 800; }
.cc-win__by { margin-top: -6px; font-size: 14px; color: var(--cc-muted); }
.cc-win__by a { color: var(--cc-muted); }
.cc-win__comp { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 700; }

.cc-shortlist { display: flex; flex-direction: column; gap: 24px; padding-block: clamp(48px, 30px + 4.8vw, 80px) var(--cc-section); }
.cc-shortlist__head { display: flex; flex-direction: column; gap: 8px; }

/* Gallery page */
.cc-gallery-page { display: flex; flex-direction: column; gap: 28px; padding-bottom: var(--cc-section); }
.cc-gallery-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.cc-gallery-filters label { display: flex; flex-direction: column; gap: 6px; min-width: 180px; font-size: 14px; font-weight: 700; }

/* Verify */
.cc-verify__art { max-width: 280px; border-radius: 14px; }
.cc-verify__facts { padding-top: 0; border-top: 0; font-size: 15px; }

/* Dashboard certificates */
.cc-cert-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }

.cc-cert-card {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px;
	background: var(--cc-card);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius-lg);
}

.cc-cert-card__body { display: flex; flex-direction: column; gap: 4px; }
.cc-cert-card__award { font-family: var(--cc-font-display); font-size: 24px; font-weight: 600; }
.cc-cert-card__comp { font-size: 15px; color: var(--cc-body-2); }
.cc-cert-card__id { font-size: 13px; font-weight: 700; color: var(--cc-muted); letter-spacing: 0.04em; }
.cc-cert-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
