/*
 * custom_hero (user request of 2026-10-26): Events calendar - black marble and gold like the What's New pages
 * (plugins/custom-hero-novidades), scoped to .che so the tibiacom layout is not touched.
 */
@font-face {
	font-family: 'CH Uncial';
	src: url('../../../templates/tibiacom/fonts/UncialAntiqua-Regular.ttf') format('truetype');
	font-display: swap;
}

.che {
	--g1: #fbefc3;
	--g2: #e7c56b;
	--g3: #b8903e;
	--g4: #6b4e1c;
	--ink: #0e0c0a;
	--ink2: #17130f;
	--ink3: #241d16;
	--txt: #f1e7d0;
	--mut: #c3b291;
	--line: rgba(231, 197, 107, .28);
	--marble: url('../../../templates/tibiacom/images/header/custom-hero-marble.png');
	--ease: cubic-bezier(.2, .8, .2, 1);
	font-family: Verdana, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.5;
	color: #3b2410;
	max-width: 1100px;
	margin: 0 auto;
}
.che *, .che *::before, .che *::after { box-sizing: border-box; }

/* ------------------------------------------------------------------ month header */
.che-head {
	display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 10px; border-radius: 12px;
	background: linear-gradient(180deg, rgba(14, 12, 10, .9), rgba(23, 19, 15, .96)), var(--marble);
	border: 1px solid var(--g4); box-shadow: inset 0 0 0 1px rgba(251, 239, 195, .08), 0 4px 14px rgba(40, 20, 0, .3);
}
.che-title { flex: 1; text-align: center; }
.che-title h2 {
	margin: 0; font: 22px 'CH Uncial', Georgia, serif; color: var(--g2); letter-spacing: .03em;
	text-shadow: 0 0 10px rgba(231, 197, 107, .35), 1px 1px 0 #000;
}
.che a.che-today { color: var(--mut); font-size: 10px; text-decoration: underline; }
.che a.che-nav {
	display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid var(--g3); background: var(--ink3); color: var(--g1); font-size: 15px; text-decoration: none;
	transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.che a.che-nav:hover, .che a.che-nav:focus-visible { transform: scale(1.1); background: var(--g4); box-shadow: 0 0 12px rgba(231, 197, 107, .45); outline: none; }

.che-banner {
	margin: 0 0 10px; padding: 7px 12px; border-radius: 8px; text-align: center; font-weight: bold; color: var(--ink);
	background: linear-gradient(90deg, var(--g3), var(--g1), var(--g3)); background-size: 200% 100%;
	animation: che-shine 4s linear infinite;
}
@keyframes che-shine { to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ grid */
.che-grid {
	display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 6px; border-radius: 12px;
	background: linear-gradient(180deg, rgba(14, 12, 10, .94), rgba(23, 19, 15, .97)), var(--marble);
	border: 1px solid var(--g4);
}
.che-weekday { padding: 4px 0; text-align: center; font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: .06em; color: var(--g2); }
.che-day {
	position: relative; min-height: 74px; padding: 4px; border-radius: 8px; overflow: hidden;
	background: rgba(36, 29, 22, .92); border: 1px solid rgba(231, 197, 107, .14); color: var(--txt);
	transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
.che-day.is-out { opacity: .38; }
.che-day.is-today { border-color: var(--g2); box-shadow: inset 0 0 0 1px var(--g2), 0 0 10px rgba(231, 197, 107, .35); }
.che-day.is-today .che-day-number { background: var(--g2); color: var(--ink); }
.che-day.has-events { cursor: pointer; }
.che-day.has-events:hover, .che-day.has-events:focus-visible { transform: translateY(-2px); border-color: var(--g3); box-shadow: 0 4px 10px rgba(0, 0, 0, .45); outline: none; }
.che-day.is-selected { border-color: var(--g1); box-shadow: inset 0 0 0 2px var(--g1); }
.che-day-number {
	display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 4px;
	border-radius: 10px; font-weight: bold; font-size: 11px; color: var(--g1);
}
.che-pill {
	display: block; margin-top: 3px; padding: 1px 5px; border-radius: 4px; font-size: 9px; font-weight: bold; color: #fff;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 0 rgba(0, 0, 0, .6);
	background: linear-gradient(90deg, var(--che-dark), var(--che-light));
}
.che-more { display: block; margin-top: 2px; font-size: 9px; color: var(--mut); }
.che-note { margin: 6px 2px 14px; font-size: 10px; opacity: .85; }

/* ------------------------------------------------------------------ lists */
.che-section { margin: 14px 0 8px; font: 17px 'CH Uncial', Georgia, serif; color: #5a3a12; }
.che-list { display: grid; gap: 8px; }
.che-card {
	display: flex; border-radius: 10px; overflow: hidden; background: rgba(23, 19, 15, .95); color: var(--txt);
	border: 1px solid var(--g4); box-shadow: 0 3px 10px rgba(40, 20, 0, .25); transition: transform .25s var(--ease), box-shadow .25s;
}
.che-card:target, .che-card.is-focus { box-shadow: 0 0 0 2px var(--g2), 0 0 16px rgba(231, 197, 107, .45); }
.che-card[hidden] { display: none; }
.che-card-stripe { flex: none; width: 8px; background: linear-gradient(180deg, var(--che-light), var(--che-dark)); }
.che-card-body { flex: 1; padding: 9px 12px; }
.che-card-name { margin: 0 0 2px; font-size: 13px; color: var(--g1); }
.che-card-period { font-size: 10px; color: var(--mut); }
.che-card-text { margin: 6px 0 0; }
.che-live {
	display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 9px; font-size: 9px; vertical-align: 1px;
	background: #2e7d32; color: #fff; animation: che-pulse 1.6s ease-in-out infinite;
}
@keyframes che-pulse { 50% { box-shadow: 0 0 0 4px rgba(46, 125, 50, .25); } }
.che-effects { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.che-effects li { padding: 1px 7px; border-radius: 9px; border: 1px solid var(--g3); background: rgba(231, 197, 107, .12); color: var(--g1); font-size: 10px; font-weight: bold; }
.che-empty {
	margin: 0; padding: 14px; border-radius: 10px; text-align: center; color: var(--mut);
	background: rgba(23, 19, 15, .92); border: 1px dashed var(--g3);
}
.che-next { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.che-next li { padding: 5px 10px; border-left: 4px solid var(--che-light); border-radius: 4px; background: rgba(184, 144, 62, .12); }
.che-next span { display: block; font-size: 10px; opacity: .85; }

@media (max-width: 640px) {
	.che-day { min-height: 52px; padding: 2px; }
	.che-pill { font-size: 0; height: 5px; padding: 0; }
	.che-title h2 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.che *, .che *::before, .che *::after { animation: none !important; transition: none !important; }
}
