/* Visual style after Effective Altruism Australia: their design guidelines
   (https://effective-altruism-australia.github.io/design-guidelines/) and
   the look of their website, effectivealtruism.org.au. Teal on white and
   warm off-white, Merriweather headings, Merriweather Sans text (the site
   uses it where the written guide says Mukta; it also draws Slovak ď, ť, ľ
   properly), white cards with soft teal shadows, pill buttons, a dark teal
   footer.

   Loaded after every other stylesheet and scoped to body.ea-eaa (see
   inc/ea-dizajn.php), so it restyles the existing components without
   touching their layout rules. */

@font-face {
	font-family: "Merriweather";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/merriweather/merriweather-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Merriweather Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/merriweather-sans/merriweather-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Merriweather Sans";
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/merriweather-sans/merriweather-sans-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Merriweather";
	font-style: normal;
	font-weight: 300 900;
	font-display: swap;
	src: url("../fonts/merriweather/merriweather-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Merriweather Sans";
	font-style: normal;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/merriweather-sans/merriweather-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Merriweather Sans";
	font-style: italic;
	font-weight: 300 800;
	font-display: swap;
	src: url("../fonts/merriweather-sans/merriweather-sans-italic-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

body.ea-eaa {
	--eaa-primary: #0c869b;
	--eaa-link: #0a7184;      /* teal 700: readable as text on white */
	--eaa-teal-800: #1a6273;
	--eaa-dark: #145565;
	--eaa-deeper: #073845;
	--eaa-teal-50: #eff8f9;
	--eaa-teal-200: #b7e0e7;
	--eaa-warm: #f4efe9;
	--eaa-warm-soft: #f9f6f3;
	--eaa-ink: #151515;
	--eaa-muted: #5d5d5d;
	--eaa-border: #d1d1d1;
	--eaa-divider: #e7e7e7;
	--eaa-shadow-sm: 0 1px 3px rgba(20, 85, 101, 0.07), 0 2px 8px rgba(20, 85, 101, 0.06);
	--eaa-shadow-md: 0 4px 16px rgba(20, 85, 101, 0.12), 0 1px 4px rgba(20, 85, 101, 0.07);
	--eaa-shadow-lg: 0 8px 32px rgba(20, 85, 101, 0.16);
	--eaa-radius: 16px;
	--eaa-radius-sm: 8px;
	--eaa-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--eaa-serif: "Merriweather", Georgia, "Times New Roman", serif;
	--eaa-sans: "Merriweather Sans", Arial, Helvetica, sans-serif;

	background-color: #fff;
	color: var(--eaa-ink);
	font-family: var(--eaa-sans);
	font-size: clamp(1rem, 0.89rem + 0.47vw, 1.125rem);
	font-weight: 350;
	letter-spacing: 0;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------------------------------------------------------------- type */

/* The site's custom CSS sets one font and weight on every element (*).
   Let elements inherit instead, so the fonts below take effect. */
body.ea-eaa * {
	font-family: inherit;
}

/* Kept at the lowest specificity that still beats "*", so every component's
   own weight (bold dates, labels…) continues to win. */
html :where(body.ea-eaa) :where(p, li, span, div, a, time, label, legend, summary, td, th) {
	font-weight: inherit;
}

body.ea-eaa :is(strong, b) {
	font-weight: 700;
}

body.ea-eaa :is(code, pre, kbd, samp) {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

body.ea-eaa :is(h1, h2, h3, h4, h5, h6),
body.ea-eaa .wp-block-post-title {
	color: var(--eaa-dark);
	font-family: var(--eaa-serif);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.3;
	text-wrap: balance;
}

body.ea-eaa :is(h1, h2, h3, h4, h5, h6) * {
	font-weight: inherit;
}

body.ea-eaa h1 {
	font-size: clamp(2.25rem, 1.22rem + 4.3vw, 3.75rem);
	line-height: 1.15;
}

body.ea-eaa h2 {
	font-size: clamp(1.75rem, 1.32rem + 1.8vw, 2.25rem);
}

body.ea-eaa :is(button, input, select, textarea) {
	font-family: var(--eaa-sans);
}

/* --------------------------------------------------------------- links */

body.ea-eaa a {
	transition: color 0.15s var(--eaa-ease), background-color 0.15s var(--eaa-ease);
}

body.ea-eaa a:hover {
	background-color: transparent;
}

body.ea-eaa :is(.ea-home, .wp-block-post-content) a:not([class*="button"]):not(.ea-newsletter__subscribe) {
	color: var(--eaa-link);
}

body.ea-eaa :is(.ea-home, .wp-block-post-content) a:not([class*="button"]):not(.ea-newsletter__subscribe):hover {
	color: var(--eaa-dark);
}

/* Links that stand on their own are not underlined until hovered; links
   inside running article text keep their underline. */
body.ea-eaa .ea-home a {
	text-decoration: none;
}

body.ea-eaa .ea-home a:not([class*="button"]):not(.ea-newsletter__subscribe):hover {
	text-decoration: underline;
}

/* -------------------------------------------------------------- header */

body.ea-eaa header.wp-block-template-part {
	position: relative;
	z-index: 2;
	border-bottom: 1px solid var(--eaa-border);
	background: #fff;
}

body.ea-eaa .wp-block-site-title {
	font-family: var(--eaa-serif);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

body.ea-eaa .wp-block-site-title a {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	color: var(--eaa-ink) !important;
	text-decoration: none;
}

/* The EA lightbulb in front of the site name. */
body.ea-eaa .wp-block-site-title a::before {
	content: "";
	flex: none;
	width: 1.5em;
	height: 2.25em;
	background: url("../images/ea-logo.svg") center / contain no-repeat;
}

body.ea-eaa .wp-block-navigation {
	font-size: 0.875rem;
}

body.ea-eaa .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--eaa-ink);
	font-weight: 600;
}

body.ea-eaa .wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--eaa-link);
	text-decoration: none;
}

/* "Zapojte sa" is the menu's call to action: a teal pill, as on the
   reference site. Not inside the opened phone menu, where items are a list. */
@media (min-width: 600px) {
	body.ea-eaa header .wp-block-navigation .wp-block-navigation-item__content[href$="#zapojit-sa"] {
		padding: 0.6rem 1.25rem;
		border-radius: 999px;
		background: linear-gradient(180deg, var(--eaa-primary), var(--eaa-link));
		box-shadow: var(--eaa-shadow-sm);
		color: #fff;
	}

	body.ea-eaa header .wp-block-navigation .wp-block-navigation-item__content[href$="#zapojit-sa"]:hover {
		background: var(--eaa-dark);
		color: #fff;
	}
}

/* ---------------------------------------------------------------- hero */

body.ea-eaa main.ea-home {
	margin-block-start: 0;
	padding-block-start: clamp(3rem, 7vw, 6rem);
	background: var(--eaa-warm);
}

/* Home: headline and buttons beside a photo, as on the reference site. */
body.ea-eaa .ea-hero {
	display: grid;
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2.5rem);
}

body.ea-eaa .ea-hero__text {
	display: block;
}

body.ea-eaa .ea-hero__media {
	display: block;
	margin: 0 16px 16px 0;
}

/* Rounded photo on an offset pale-teal block. The picture is a wide shot;
   keep the child and the outstretched hand in the frame. */
body.ea-eaa .ea-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	border-radius: 24px;
	box-shadow: 16px 16px 0 var(--eaa-teal-200);
	object-fit: cover;
	object-position: 32% center;
}

body.ea-eaa .ea-hero__media figcaption {
	margin-top: 26px;
	color: var(--eaa-muted);
	font-size: 0.75rem;
	text-align: right;
}

/* "Efektívny" dark, "altruizmus" in the brand teal. */
body.ea-eaa .ea-home h1 {
	color: var(--eaa-primary);
	font-size: clamp(2.5rem, 1.14rem + 5.7vw, 4.5rem);
}

body.ea-eaa .ea-home h1 span {
	color: var(--eaa-dark) !important;
}

body.ea-eaa .pod_text {
	margin-top: 1rem;
	padding-inline: 0;
	color: #4f4f4f;
	font-size: 1.25rem;
	font-weight: 350;
}

body.ea-eaa .ea-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 1.75rem 0 0;
}

@media (min-width: 900px) {
	body.ea-eaa .ea-hero {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	body.ea-eaa .ea-hero__text :is(h1, .pod_text) {
		margin-inline: 0;
		text-align: left !important;
	}

	body.ea-eaa .ea-hero-actions {
		justify-content: flex-start;
	}
}

/* Pages without a photo (Obsah): centred title on the warm band. */
body.ea-eaa .ea-home > h1 {
	padding-inline: 16px;
}

body.ea-eaa .ea-kniznica-skok {
	margin-top: 1.25rem;
}

/* ------------------------------------------------------------ sections */

/* Bands meet edge to edge and alternate white / warm off-white. */
body.ea-eaa .ea-home > .header {
	margin-block-start: 0;
	background-color: #fff;
}

body.ea-eaa .ea-home > .header:nth-of-type(even) {
	background-color: var(--eaa-warm);
}

body.ea-eaa .ea-home > :is(h1, p, .ea-hero) + .header {
	margin-block-start: clamp(3rem, 7vw, 6rem);
}

body.ea-eaa .podtitulok,
body.ea-eaa .podtitulok:hover {
	background-color: transparent;
}

body.ea-eaa .podtitulok {
	padding-block: clamp(3rem, 6vw, 5.5rem);
}

/* Section title: small uppercase label, then a centred serif heading. */
body.ea-eaa .ea-eyebrow {
	display: block;
	margin-block-end: calc(0.4rem - var(--ea-flow, 1.1rem));
	color: var(--eaa-primary);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

body.ea-eaa .podtitulok > h2 {
	text-align: center !important;
}

body.ea-eaa .podtitulok :is(h3, .ea-kurzy__topic) {
	font-size: 1.25rem;
}

/* ---------------------------------------------------- component colours */

body.ea-eaa :is(.ea-kurzy, .ea-ponuky, .ea-newsletter, .ea-kniznica, .ea-prihlaska, .ea-tim, .ea-kalendar-wrap) {
	--ea-ink: var(--eaa-ink);
	--ea-muted: var(--eaa-muted);
	--ea-accent: var(--eaa-primary);
	--ea-accent-soft: var(--eaa-teal-200);
	--ea-card: #fff;
	--ea-card-hover: #fff;
	--ea-line: var(--eaa-divider);
}

/* ---------------------------------------------------------------- cards */

body.ea-eaa :is(.ea-kurz, .ea-ponuka, .ea-newsletter__issue, .ea-res, .ea-clen, .ea-day, .ea-prihlaska, .ea-prihlaska-box, .ea-kalendar__empty) {
	border: 1px solid var(--eaa-divider);
	border-radius: var(--eaa-radius);
	background-color: #fff;
	box-shadow: var(--eaa-shadow-sm);
}

body.ea-eaa :is(.ea-kurz, .ea-newsletter__issue, .ea-res, .ea-day) {
	transition: box-shadow 0.2s var(--eaa-ease), transform 0.2s var(--eaa-ease);
}

body.ea-eaa :is(.ea-kurz, .ea-newsletter__issue, .ea-res):hover {
	box-shadow: var(--eaa-shadow-md);
	transform: translateY(-2px);
}

body.ea-eaa .ea-prihlaska-box {
	padding: 28px 32px;
	box-shadow: var(--eaa-shadow-md);
}

/* A form inside the highlighted box is not a second card. */
body.ea-eaa .ea-prihlaska-box .ea-prihlaska {
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

body.ea-eaa .ea-day__date {
	border-radius: var(--eaa-radius-sm);
	background: var(--eaa-warm);
}

body.ea-eaa .ea-day--soon .ea-day__date {
	background: var(--eaa-primary);
}

/* Card titles are titles: serif, dark teal. */
body.ea-eaa :is(.ea-kurz__title, .ea-res__title, .ea-newsletter__title, .ea-ev__title, .ea-clen__name, .ea-ponuka__title, .ea-kniznica__heading) {
	color: var(--eaa-dark) !important;
	font-family: var(--eaa-serif);
	font-weight: 700;
	line-height: 1.35;
}

body.ea-eaa a:is(.ea-kurz__title, .ea-res__title, .ea-newsletter__title):hover {
	color: var(--eaa-link) !important;
}

/* The featured course is the dark teal card: the one thing on the page we
   most want people to act on. */
body.ea-eaa .ea-kurz-top {
	gap: 12px;
	padding: 32px;
	border: 0;
	border-radius: var(--eaa-radius);
	background: linear-gradient(155deg, var(--eaa-dark), var(--eaa-deeper));
	box-shadow: var(--eaa-shadow-lg);
	color: #fff;
}

body.ea-eaa .ea-kurz-top .ea-kurz-top__title {
	color: #fff;
	font-size: 1.6rem;
}

body.ea-eaa .ea-kurz-top .ea-kurz__provider {
	width: fit-content;
	padding: 0.25rem 0.7rem;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 0.75rem;
	letter-spacing: 0.02em;
	text-transform: none;
}

body.ea-eaa .ea-kurz-top .ea-kurz-top__desc {
	font-size: 1em;
}

body.ea-eaa .ea-kurz-top .ea-kurz__format {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.875rem;
}

body.ea-eaa .ea-kurz-top .ea-kurz__dates {
	font-size: 0.875rem;
	font-weight: 700;
}

body.ea-eaa .ea-kurz-top .ea-button {
	background: #fff;
	color: var(--eaa-dark);
}

body.ea-eaa .ea-kurz-top .ea-button:is(:hover, :focus-visible) {
	background: var(--eaa-teal-50);
	color: var(--eaa-deeper);
}

body.ea-eaa .ea-kurz-top a.ea-kurz-top__more {
	color: #fff !important;
	font-weight: 600;
	text-decoration: underline;
}

/* -------------------------------------------------------------- buttons */

body.ea-eaa :is(.ea-button, .ea-newsletter__subscribe, .ea-ev__button, .ea-prihlaska__submit button),
body.ea-eaa .ea-prihlaska-box > .ea-more > summary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 999px;
	background-color: var(--eaa-primary);
	box-shadow: var(--eaa-shadow-sm);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s var(--eaa-ease), box-shadow 0.15s var(--eaa-ease), transform 0.15s var(--eaa-ease);
}

body.ea-eaa :is(.ea-button, .ea-newsletter__subscribe, .ea-ev__button, .ea-prihlaska__submit button):is(:hover, :focus-visible),
body.ea-eaa .ea-prihlaska-box > .ea-more > summary:is(:hover, :focus-visible) {
	background-color: var(--eaa-dark);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

/* Smaller buttons inside cards. */
body.ea-eaa :is(.ea-ev__button, .ea-ponuka__actions .ea-button) {
	padding: 0.5rem 1.1rem;
	font-size: 0.875rem;
}

body.ea-eaa a.ea-button.ea-button--outline {
	border-color: var(--eaa-primary);
	background-color: #fff;
	box-shadow: none;
	color: var(--eaa-link);
}

body.ea-eaa a.ea-button.ea-button--outline:is(:hover, :focus-visible) {
	background-color: var(--eaa-teal-50);
	color: var(--eaa-dark);
}

/* ---------------------------------------------------------- small parts */

/* Badges: pale teal pill with an edge, so it shows on a white card. */
body.ea-eaa :is(.ea-ponuka__kind, .ea-newsletter__kind, .ea-res__lang) {
	padding: 0.2rem 0.6rem;
	border: 1px solid var(--eaa-teal-200);
	border-radius: 999px;
	background-color: var(--eaa-teal-50);
	color: var(--eaa-teal-800);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: none;
}

body.ea-eaa .ea-res__lang--cs {
	border-color: var(--eaa-dark);
	background-color: var(--eaa-dark);
	color: #fff;
}

body.ea-eaa .ea-kurz__provider {
	color: var(--eaa-primary);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
}

body.ea-eaa .ea-kniznica__nav a {
	border-color: var(--eaa-teal-200);
	background-color: var(--eaa-teal-50);
	color: var(--eaa-teal-800) !important;
	font-weight: 600;
}

body.ea-eaa .ea-kniznica__nav a:is(:hover, :focus-visible) {
	border-color: var(--eaa-primary);
	background-color: #fff;
	text-decoration: none !important;
}

body.ea-eaa .ea-more > summary,
body.ea-eaa .ea-ponuka__more > summary,
body.ea-eaa .ea-ev__more summary {
	color: var(--eaa-link);
	font-weight: 600;
}

body.ea-eaa .ea-more--block > summary {
	color: inherit;
}

body.ea-eaa .ea-more--block > summary::after {
	color: var(--eaa-primary);
}

body.ea-eaa .ea-prihlaska :is(input[type="text"], input[type="email"], select, textarea) {
	border-color: var(--eaa-border);
	border-radius: var(--eaa-radius-sm);
}

body.ea-eaa .ea-prihlaska :is(label, legend) {
	font-weight: 600;
}

body.ea-eaa .ea-clen__photo--initials {
	background: var(--eaa-teal-50);
	color: var(--eaa-dark);
	font-family: var(--eaa-serif);
	font-weight: 700;
}

/* -------------------------------------------------------------- footer */

body.ea-eaa footer.wp-block-template-part {
	margin-block-start: 0;
	background: var(--eaa-deeper);
	color: #fff;
	font-size: 0.875rem;
}

body.ea-eaa footer.wp-block-template-part :is(h1, h2, h3, h4, p, li, a, span) {
	color: #fff !important;
}

body.ea-eaa footer.wp-block-template-part h2 {
	font-size: 1.375rem;
}

body.ea-eaa footer.wp-block-template-part :is(.wp-social-link, svg) {
	color: #fff !important;
	fill: currentColor;
}

body.ea-eaa footer.wp-block-template-part a:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------- article pages */

body.ea-eaa .wp-block-post-content {
	font-size: 1.2rem;
	line-height: 1.7;
}

body.ea-eaa .wp-block-post-content :is(h2, h3, h4) {
	margin-block-start: 2.2em;
}

body.ea-eaa .wp-block-post-content .wp-block-footnotes {
	color: #3d3d3d;
	font-size: 0.8em;
	line-height: 1.6;
}

body.ea-eaa .wp-block-post-content sup.fn a {
	font-weight: 700;
	text-decoration: none;
}
