/* ==========================================================================
   Creative Clans — account pages, dashboard, submit flow.
   Uses the theme's design tokens (--cc-*); no build step.
   ========================================================================== */

/* ---------- Alerts ---------- */
.cc-alert {
	margin: 0 0 20px;
	padding: 14px 18px;
	border-radius: 14px;
	border: 1px solid;
	font-size: 15px;
	line-height: 1.5;
}

.cc-alert ul { margin: 6px 0 0; padding-left: 20px; }
.cc-alert:focus { outline: 3px solid var(--cc-accent); outline-offset: 2px; }
.cc-alert--error { background: #fdecea; border-color: #f0b4a8; color: #7a1f0e; }
.cc-alert--success { background: #e5f2ea; border-color: #b8dcc6; color: #0b3d2c; }
.cc-alert--info { background: #fff6dc; border-color: #ecd48f; color: #5c4400; }
.cc-alert a { color: inherit; font-weight: 700; }

/* ---------- Forms ---------- */
.cc-form { display: flex; flex-direction: column; gap: 20px; }
.cc-fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 16px; }
.cc-fieldset legend { padding: 0; margin-bottom: 4px; font-size: 17px; font-weight: 800; }
.cc-fieldset[data-cc-guardian].is-required legend::after { content: " *"; color: var(--cc-accent); }

.cc-grid-2 { display: grid; gap: 16px; }

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

.cc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cc-label { font-size: 15px; font-weight: 700; }
.cc-req { color: var(--cc-accent); }
.cc-optional { font-weight: 500; color: var(--cc-muted); font-size: 13px; }

.cc-input {
	width: 100%;
	min-height: 48px;
	padding: 11px 14px;
	border: 1.5px solid var(--cc-stone);
	border-radius: 12px;
	background: var(--cc-card);
	color: var(--cc-ink);
	font: inherit;
	font-size: 16px; /* Prevents iOS zoom. */
}

textarea.cc-input { min-height: 110px; resize: vertical; line-height: 1.5; }
.cc-input:focus { outline: none; border-color: var(--cc-ink); box-shadow: 0 0 0 3px rgb(210 64 31 / 25%); }
.cc-input[readonly] { background: var(--cc-paper); color: var(--cc-muted); }
.has-error .cc-input { border-color: #c0392b; }

.cc-hint { margin: 0; font-size: 14px; line-height: 1.5; color: var(--cc-muted); }
.cc-error { margin: 0; font-size: 14px; font-weight: 700; color: #b3261e; }

.cc-radios { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; }

.cc-radio,
.cc-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-height: 44px;
	padding: 10px 0;
	font-size: 16px;
	line-height: 1.4;
	cursor: pointer;
}

.cc-radio input,
.cc-check input {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--cc-accent);
}

.cc-check--lg { font-size: 16px; }

.cc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cc-linkbtn {
	padding: 10px 0;
	border: 0;
	background: none;
	color: var(--cc-ink);
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	cursor: pointer;
}

.cc-linkbtn:hover { color: var(--cc-accent); }

/* ---------- Auth pages ---------- */
.cc-auth { padding-block: clamp(28px, 16px + 3vw, 72px) var(--cc-section); display: flex; justify-content: center; }

.cc-auth__card {
	width: 100%;
	max-width: 480px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(24px, 16px + 2vw, 40px);
	background: var(--cc-card);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius-xl);
}

.cc-auth--wide .cc-auth__card { max-width: 820px; }

.cc-auth__title {
	font-family: var(--cc-font-display);
	font-size: clamp(32px, 26px + 1.5vw, 44px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.cc-auth__intro { color: var(--cc-body-2); line-height: 1.6; }
.cc-auth__links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.cc-auth p { line-height: 1.6; }

.cc-ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cc-ticks li { position: relative; padding-left: 30px; line-height: 1.5; }
.cc-ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--cc-green); font-weight: 800; }

.cc-consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Dashboard ---------- */
.cc-dash { padding-block: clamp(24px, 14px + 2.5vw, 56px) var(--cc-section); display: flex; flex-direction: column; gap: 20px; }

.cc-dash__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.cc-dash__title { font-family: var(--cc-font-display); font-size: clamp(34px, 26px + 2vw, 52px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.cc-dash__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cc-dash__tabs {
	display: flex;
	gap: 4px;
	overflow-x: auto;
	border-bottom: 1px solid var(--cc-line);
	scrollbar-width: none;
}

.cc-dash__tabs a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 16px 11px;
	border-bottom: 3px solid transparent;
	color: var(--cc-muted);
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.cc-dash__tabs a[aria-current="page"] { color: var(--cc-ink); border-bottom-color: var(--cc-accent); }

.cc-badge {
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--cc-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	line-height: 22px;
	text-align: center;
}

.cc-dash__panel { display: flex; flex-direction: column; gap: 20px; }
.cc-form--profile { max-width: 820px; }
.cc-inline-form { margin-top: -4px; }

.cc-empty-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 28px;
	background: var(--cc-card);
	border: 1px dashed var(--cc-stone);
	border-radius: var(--cc-radius-lg);
}

.cc-empty-card h2 { font-family: var(--cc-font-display); font-size: 26px; font-weight: 600; }
.cc-empty-line { color: var(--cc-muted); }

.cc-entry-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }

.cc-entry-card {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 16px;
	padding: 16px;
	background: var(--cc-card);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius-lg);
}

@media (min-width: 720px) {
	.cc-entry-card { grid-template-columns: 140px minmax(0, 1fr); gap: 22px; padding: 20px; }
}

.cc-entry-card__thumb { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--cc-paper); display: flex; align-items: center; justify-content: center; }
.cc-entry-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cc-entry-card__placeholder { font-weight: 800; color: var(--cc-muted); }
.cc-entry-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.cc-entry-card__meta { font-size: 13px; font-weight: 700; color: var(--cc-muted); }
.cc-entry-card__title { font-family: var(--cc-font-display); font-size: 22px; font-weight: 600; line-height: 1.15; }
.cc-entry-card__note { font-size: 14px; color: var(--cc-body-2); }
.cc-entry-card__note--warn { color: #7a5800; font-weight: 700; }
.cc-entry-card__note--bad { color: #b3261e; font-weight: 700; }

/* Status tracker */
.cc-tracker {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	width: 100%;
	max-width: 520px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: cc-track;
}

.cc-tracker li {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: var(--cc-muted);
}

.cc-tracker li::before { content: ""; height: 6px; border-radius: 3px; background: var(--cc-line); }
.cc-tracker li.is-done::before { background: var(--cc-green); }
.cc-tracker li.is-done { color: var(--cc-green); }
.cc-tracker li.is-current::before { background: var(--cc-accent); }
.cc-tracker li.is-current { color: var(--cc-eyebrow); }

/* Notifications */
.cc-notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.cc-notes li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--cc-line); }
.cc-notes li.is-new { padding-left: 14px; border-left: 4px solid var(--cc-accent); }
.cc-notes__time { font-size: 13px; color: var(--cc-muted); }

/* ---------- Focused submit layout (Submit.html) ---------- */
body.cc-focus { padding-bottom: 0; }

.cc-focus-header { border-bottom: 1px solid var(--cc-line); background: var(--cc-paper); }

.cc-focus-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 68px;
	padding-block: 12px;
}

.cc-focus-header .cc-brand__mark { width: 32px; height: 32px; }
.cc-focus-header .cc-brand__name { font-size: 20px; }
.cc-focus-header__title { display: none; font-size: 15px; font-weight: 700; color: var(--cc-muted); text-align: center; }

@media (min-width: 900px) {
	.cc-focus-header__inner { min-height: 80px; padding-block: 20px; }
	.cc-focus-header__title { display: block; }
	.cc-focus-header .cc-brand__mark { width: 34px; height: 34px; }
	.cc-focus-header .cc-brand__name { font-size: 22px; }
}

.cc-focus-header__actions { display: flex; align-items: center; gap: 18px; }
.cc-focus-header__exit { font-size: 15px; font-weight: 700; color: var(--cc-muted); padding-block: 10px; }

/* Stepper */
.cc-stepper {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 6px;
	margin: 0;
	padding: 24px 0 0;
	list-style: none;
}

@media (min-width: 768px) {
	.cc-stepper { gap: 10px; padding-top: 36px; }
}

.cc-stepper li { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cc-stepper__bar { height: 6px; border-radius: 3px; background: var(--cc-line); }
.cc-stepper__label { font-size: 12px; font-weight: 800; color: var(--cc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-stepper li.is-done .cc-stepper__bar { background: var(--cc-green); }
.cc-stepper li.is-done .cc-stepper__label { color: var(--cc-green); }
.cc-stepper li.is-current .cc-stepper__bar { background: var(--cc-accent); }
.cc-stepper li.is-current .cc-stepper__label { color: var(--cc-eyebrow); }

/* Phones: bars only; the step heading already says "Step N of 6". */
@media (max-width: 767px) {
	.cc-stepper__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

@media (min-width: 768px) {
	.cc-stepper__label { font-size: 13px; }
}

/* Main grid */
.cc-submit {
	display: grid;
	gap: 28px;
	padding-block: 24px 64px;
}

@media (min-width: 1024px) {
	.cc-submit {
		grid-template-columns: repeat(12, minmax(0, 1fr));
		gap: 48px;
		padding-block: 44px 56px;
	}

	.cc-submit__main { grid-column: span 8; }
	.cc-submit__aside { grid-column: span 4; }
}

.cc-submit__main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.cc-submit__aside { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 1023px) {
	/* Preview goes under the form on phones/tablets. */
	.cc-submit__aside { order: 2; }
}

.cc-step-head { display: flex; flex-direction: column; gap: 10px; }

.cc-step-title {
	font-family: var(--cc-font-display);
	font-size: clamp(32px, 23.8px + 2.1vw, 52px);
	line-height: 1.05;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.cc-step-intro { font-size: clamp(16px, 15.3px + 0.19vw, 18px); line-height: 1.6; color: var(--cc-body-2); max-width: 680px; }

.cc-panel {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: clamp(18px, 14px + 1vw, 26px);
	background: var(--cc-card);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius-lg);
}

.cc-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cc-panel__title { font-size: 17px; font-weight: 800; }
.cc-panel__count { font-size: 14px; font-weight: 700; color: var(--cc-green); }

.cc-step-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding-top: 8px;
}

.cc-step-actions .cc-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Uploads */
.cc-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 32px 20px;
	border: 2px dashed var(--cc-stone);
	border-radius: 18px;
	text-align: center;
	color: var(--cc-accent);
}

.cc-drop.is-over { border-color: var(--cc-accent); background: #fff4ef; }
.cc-drop__text { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; color: var(--cc-ink); }
.cc-drop__or { display: none; font-weight: 700; color: var(--cc-muted); }
.cc-drop.is-droppable .cc-drop__or { display: inline; }

@media (hover: none) {
	.cc-drop.is-droppable .cc-drop__or { display: none; }
}

.cc-progress { height: 8px; margin-top: 12px; border-radius: 4px; background: var(--cc-line); overflow: hidden; }
.cc-progress__bar { display: block; width: 0; height: 100%; background: var(--cc-green); transition: width 0.2s ease; }
.cc-upload-status { margin: 8px 0 0; min-height: 1.4em; font-size: 14px; font-weight: 700; color: var(--cc-muted); }
.cc-upload-status.is-error { color: #b3261e; }

.cc-files { margin: 0; padding: 0; list-style: none; }
.cc-files--single { margin-top: 12px; }
.cc-files--single .cc-file { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.cc-files--single .cc-file__media { width: 96px; flex-shrink: 0; }

.cc-files--grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

@media (min-width: 640px) {
	.cc-files--grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.cc-file { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

.cc-file__media {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: 14px;
	overflow: hidden;
	background: #ede6d6;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cc-file__media img { width: 100%; height: 100%; object-fit: cover; }
.cc-file__type { font-weight: 800; color: var(--cc-muted); }

.cc-file__ok {
	position: absolute;
	right: 8px;
	top: 8px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--cc-green);
	display: flex;
	align-items: center;
	justify-content: center;
}

.cc-file__name { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.cc-file__meta { font-size: 13px; color: var(--cc-muted); }
.cc-file__remove { padding: 4px 0; font-size: 13px; align-self: flex-start; }

.cc-add-tile { aspect-ratio: 1 / 1; }
.cc-add-tile[hidden] { display: none; }

.cc-add-tile__btn {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 2px dashed var(--cc-stone);
	border-radius: 14px;
	background: transparent;
	color: var(--cc-ink);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.cc-add-tile__btn svg { color: var(--cc-accent); }
.cc-add-tile__btn:hover { border-color: var(--cc-accent); }

.cc-uploader--video { padding-top: 16px; border-top: 1px solid #ede6d6; }
.cc-uploader--video #cc-drop-video { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

.cc-declarations { padding: 4px 0; }

/* Sidebar */
.cc-side-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 18px;
	background: var(--cc-card);
	border: 1px solid var(--cc-line);
	border-radius: var(--cc-radius-lg);
}

@media (min-width: 1024px) {
	.cc-side-card { position: sticky; top: 24px; }
}

.cc-side-card__art {
	aspect-ratio: 4 / 5;
	border-radius: 14px;
	overflow: hidden;
	background: #ede6d6;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

@media (max-width: 1023px) {
	.cc-side-card__art { aspect-ratio: 16 / 10; }
}

.cc-side-card__art img { width: 100%; height: 100%; object-fit: contain; background: #ede6d6; }
.cc-side-card__empty { padding: 20px; font-size: 14px; font-weight: 700; color: var(--cc-muted); }
.cc-side-card__pdf { font-size: 28px; font-weight: 800; color: var(--cc-muted); }
.cc-side-card__caption { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.cc-side-card__title { font-family: var(--cc-font-display); font-size: 22px; font-weight: 600; line-height: 1.15; }
.cc-side-card__meta { font-size: 14px; color: var(--cc-muted); }

.cc-side-card__facts { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px 4px 4px; border-top: 1px solid #ede6d6; font-size: 14px; }
.cc-side-card__facts > div { display: flex; justify-content: space-between; gap: 12px; }
.cc-side-card__facts dt { color: var(--cc-muted); }
.cc-side-card__facts dd { margin: 0; font-weight: 700; text-align: right; }
.cc-consent--pending { color: var(--cc-eyebrow); font-weight: 800; }
.cc-consent--granted { color: var(--cc-green); }
.cc-consent--declined { color: #b3261e; }

.cc-blind-note {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 18px 20px;
	border-radius: 18px;
	background: var(--cc-mint);
	color: #0b3d2c;
	font-size: 14px;
	line-height: 1.5;
}

.cc-blind-note svg { flex-shrink: 0; color: var(--cc-green); }

/* Review, confirmation, share */
.cc-review__list { display: flex; flex-direction: column; margin: 0; }
.cc-review__list > div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid #ede6d6; }

@media (min-width: 640px) {
	.cc-review__list > div { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
}

.cc-review__list dt { font-size: 14px; color: var(--cc-muted); }
.cc-review__list dd { margin: 0; font-size: 15px; font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }

.cc-confirm { align-items: flex-start; }
.cc-confirm__label { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cc-eyebrow); }
.cc-confirm__code { font-family: var(--cc-font-display); font-size: clamp(34px, 28px + 1.6vw, 48px); font-weight: 600; letter-spacing: 0.02em; }

.cc-next { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.5; }
.cc-share { display: flex; flex-wrap: wrap; gap: 10px; }
