/* ClubCore explainer / annotation UI.
   Scoped under .cc-* so it never collides with the theme. */

:root {
	--cc-accent: #5b7c5a;
	--cc-accent-ink: #2f4a2e;
	--cc-paper: #fbfaf6;
	--cc-line: #e3e0d5;
	--cc-ink: #23261f;
	--cc-muted: #6b6f63;
}

/* --- Floating annotation toggle ------------------------------------------ */
.cc-annot-toggle {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border: 1px solid var(--cc-line);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
	font: 600 14px/1 system-ui, sans-serif;
	color: var(--cc-ink);
	cursor: pointer;
}
.cc-annot-toggle__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--cc-muted);
	transition: background .15s;
}
html.cc-annotated .cc-annot-toggle__dot { background: var(--cc-accent); }
html.cc-annotated .cc-annot-toggle__label::after { content: " (on)"; color: var(--cc-accent); }

/* --- Explainer panels ----------------------------------------------------- */
/* Hidden unless the visitor turns annotations on. [hidden] wins by default;
   the .cc-annotated class on <html> reveals every panel. */
html.cc-annotated [data-cc-explain][hidden] { display: block !important; }

.cc-explain {
	margin: 24px 0;
	padding: 20px 22px;
	border: 1px solid var(--cc-line);
	border-left: 4px solid var(--cc-accent);
	border-radius: 10px;
	background: var(--cc-paper);
	color: var(--cc-ink);
	font: 15px/1.55 system-ui, sans-serif;
}
.cc-explain__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cc-explain__icon { font-size: 22px; }
.cc-explain__title { margin: 0; font-size: 17px; color: var(--cc-accent-ink); }
.cc-explain__summary { margin: 4px 0 10px; color: var(--cc-muted); }
.cc-explain__how p { margin: 0 0 10px; }
.cc-explain__how code { background: #eceadf; padding: 1px 5px; border-radius: 4px; font-size: 13px; }

.cc-explain__cols { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 8px; }
.cc-explain__col h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--cc-muted); }
.cc-explain__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cc-explain__tags li {
	background: #fff;
	border: 1px solid var(--cc-line);
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 13px;
}
.cc-explain__code { list-style: none; margin: 0; padding: 0; }
.cc-explain__code li { margin: 2px 0; }
.cc-explain__code code { font-size: 12.5px; color: var(--cc-accent-ink); }
.cc-explain__foot { margin: 14px 0 0; font-size: 14px; }
.cc-explain__foot a { color: var(--cc-accent); font-weight: 600; text-decoration: none; }

/* --- /how-it-works/ index ------------------------------------------------- */
.cc-hiw__intro { font-size: 17px; line-height: 1.6; max-width: 60ch; }
.cc-hiw__group { margin: 34px 0; }
.cc-hiw__grouptitle {
	font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
	color: var(--cc-muted); border-bottom: 1px solid var(--cc-line);
	padding-bottom: 8px; margin-bottom: 18px;
}
.cc-hiw__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cc-hiw__card {
	border: 1px solid var(--cc-line);
	border-radius: 12px;
	padding: 16px 18px;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.cc-hiw__card.is-planned { opacity: .55; background: var(--cc-paper); }
.cc-hiw__card header { display: flex; align-items: center; gap: 8px; }
.cc-hiw__card h3 { margin: 0; font-size: 16px; }
.cc-hiw__icon { font-size: 20px; }
.cc-hiw__card p { color: var(--cc-muted); font-size: 14px; line-height: 1.5; flex: 1; }
.cc-hiw__tags { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.cc-hiw__tags li { font-size: 11.5px; background: var(--cc-paper); border: 1px solid var(--cc-line); border-radius: 999px; padding: 2px 8px; }
.cc-hiw__link { color: var(--cc-accent); font-weight: 600; text-decoration: none; font-size: 14px; }
.cc-hiw__soon { color: var(--cc-muted); font-size: 13px; font-style: italic; }

/* --- Shared flash message ------------------------------------------------- */
.cc-flash { padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.cc-flash--info { background: #eef3ee; border: 1px solid var(--cc-line); }
.cc-flash--success { background: #e6f4e6; border: 1px solid #b9dcb9; }
.cc-flash--error { background: #fbeaea; border: 1px solid #e3b9b9; }

@media (max-width: 640px) {
	.cc-annot-toggle { right: 10px; bottom: 10px; padding: 9px 13px; font-size: 13px; }
}

/* ==========================================================================
   Shared front-end components (plugin-owned, theme-independent)
   ========================================================================== */
.cc-panel { border: 1px solid var(--cc-line); border-radius: 10px; padding: 22px; background: #fff; margin: 16px 0; }
.cc-panel h2 { margin-top: 0; }

.cc-dash__kennel { color: var(--cc-accent); font-weight: 600; margin-top: -6px; }

/* Data tables (results, entries, registries) */
.cc-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.cc-table th, .cc-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--cc-line); }
.cc-table th { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--cc-muted); }
.cc-table tr:last-child td { border-bottom: none; }
.cc-table__wrap { overflow-x: auto; }

/* Pills / status badges */
.cc-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--cc-line); background: var(--cc-paper); }
.cc-pill--gold { background: #fff6da; border-color: #e8d48a; }
.cc-pill--ok { background: #e6f4e6; border-color: #b9dcb9; }
.cc-pill--warn { background: #fdf0e2; border-color: #e8c79a; }

/* Simple two-column meta list */
.cc-deflist { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 12px 0; }
.cc-deflist dt { color: var(--cc-muted); }
.cc-deflist dd { margin: 0; }

/* Empty-state hint */
.cc-empty { color: var(--cc-muted); font-style: italic; padding: 12px 0; }
