/*
 * Ankali link in bio — same language as the anka.li cookie banner:
 * grey ground, Times masthead, Helvetica body, yellow/red venue tags,
 * green title highlight, black 1px borders, pill buttons, hard 3px shadow.
 * Override any colour in the plugin's Custom CSS box via these variables.
 */

.al {
	--al-ground: #e5e5e5;
	--al-ink: #000;
	--al-rule: #c3c4c7;
	--al-yellow: #ffe600;
	--al-red: #ff6c6c;
	--al-green: #aef5b4;
	--al-cyan: #00e0ff;
	--al-blue: #2400ff;
	--al-card: #e5e5e5;
	--al-sans: Helvetica, Arial, sans-serif;
	--al-serif: "Times New Roman", Times, Tinos, "Liberation Serif", serif;

	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	margin: 0 auto;
	padding: 0 14px 40px;
	color: var(--al-ink);
	font-family: var(--al-sans);
	font-size: 16px;
	line-height: 1.25;
}
.al *, .al *::before, .al *::after { box-sizing: border-box; }
.al a { color: inherit; }
/* No underline on tap/hover, whatever the theme says. */
.al a, .al a *,
.al a:hover, .al a:focus, .al a:active, .al a:visited,
.al a:hover *, .al a:focus *, .al a:active * { text-decoration: none !important; }

html:has(body.ankali-links-page), body.ankali-links-page {
	margin: 0;
	overflow-x: clip;                     /* the full-width green band must not cause sideways scrolling */
	background: #e5e5e5;
	-webkit-font-smoothing: antialiased;
}

/* Masthead, as on the site */
.al-head {
	margin: 0 -14px;
	padding: 12px 14px;
	border-bottom: 1px solid var(--al-rule);
}
.al-title {
	display: inline-block;
	font-family: var(--al-serif);
	font-size: 25px;
	line-height: 1.05;
	text-decoration: none;
}

/* Ants + intro on a full-width green band at the top of the page */
.al-hello {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 8px;
	padding: 18px 0;
	background: var(--al-green);
	position: relative;
	/* stretch the green edge to edge while the text stays in the column */
	box-shadow: 0 0 0 100vmax var(--al-green);
	clip-path: inset(0 -100vmax);
}
.al-hello::after {                         /* thin black line under the band, full width */
	content: "";
	position: absolute;
	left: -100vmax;
	right: -100vmax;
	bottom: 0;
	height: 1px;
	background: var(--al-ink);
}
.al-logo { flex: 0 0 auto; width: 72px; height: 72px; object-fit: contain; }
.al-bubble {
	flex: 1 1 auto;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
}

/* Sections */
.al-section { margin-top: 26px; }
.al-heading {
	margin: 0 0 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--al-ink);
	font-family: var(--al-serif) !important; /* beat the theme's heading font */
	font-size: 25px;
	font-weight: 400 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	line-height: 1.05;
}
.al-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

/* Event card: tags, date line, highlighted title — the site's listing */
.al-event {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 12px 14px 12px;
	background: var(--al-card);
	border: 1px solid var(--al-ink);
	border-radius: 8px;
	box-shadow: 3px 3px 0 var(--al-ink);
	text-decoration: none;
	transition: transform .1s, box-shadow .1s;
	-webkit-tap-highlight-color: transparent;
}
.al-event:hover, .al-event:focus-visible { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--al-ink); outline: none; }
.al-event:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--al-ink); }
.al-event.is-highlight { background: var(--al-yellow); }

.al-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.al-tag {
	padding: 2px 6px;
	border: 1px solid var(--al-ink);
	background: #fff;
	font-size: 14px;
}
.al-tag--ankali { background: var(--al-yellow); }
.al-tag--planeta-za { background: var(--al-red); }
.al-tag--pluto { background: var(--al-cyan); }

.al-when { font-size: 15px; }
.al-name { font-size: 24px; line-height: 1.12; overflow-wrap: anywhere; }
.al-name mark { background: var(--al-green); color: inherit; padding: 0 1px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.al-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.al-note { font-size: 14px; }

/* Pills: same as the banner's buttons */
.al-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 8px 16px;
	background: var(--al-yellow);
	border: 1px solid var(--al-ink);
	border-radius: 22px;
	font-size: 16px;
	white-space: nowrap;
	text-decoration: none;
}
.al-event:hover .al-pill, .al-event:focus-visible .al-pill { color: var(--al-blue); }
.al-event.is-highlight .al-pill { background: #fff; }

.al-pill--link {
	display: flex;
	justify-content: space-between;
	width: 100%;
	min-height: 48px;
	background: #fff;
	white-space: normal;
}
.al-pill--link:hover, .al-pill--link:focus-visible { color: var(--al-blue); outline: none; }
.al-pill--link.is-highlight { background: var(--al-yellow); box-shadow: 3px 3px 0 var(--al-ink); }
.al-pill-text small { font-size: 13px; margin-left: 4px; }

.al-empty { margin-top: 24px; }

.al-foot { margin-top: 36px; text-align: center; font-size: 14px; }
.al-foot a:hover { color: var(--al-blue); }

@media (prefers-reduced-motion: reduce) {
	.al-event { transition: none; }
}
