/* Topel studio. Mobile-first: base rules are for 360px, wider screens are added below.
   Fonts: Nunito and Source Sans 3, SIL OFL (licences in ../fonts), served locally. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../fonts/nunito-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: "Nunito"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../fonts/nunito-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: "Nunito"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../fonts/nunito-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/sourcesans3-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: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/sourcesans3-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: "Source Sans 3"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/sourcesans3-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
	--ink: #2F2438;
	--purple: #71577F;   /* logo */
	--orange: #F58634;   /* logo: backgrounds only, always with ink text */
	--link: #A84E0C;
	--warm: #FBF8F4;
	--line: #E9DFD6;
	--white: #FFFFFF;
	--radius: 16px;
	--gap: 1rem;
	--font-head: "Nunito", "Trebuchet MS", sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0; padding-bottom: 7.5rem; /* room for the mobile call bar */
	background: var(--white); color: var(--ink);
	font: 400 1.125rem/1.65 var(--font-body);
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--purple); line-height: 1.2; text-wrap: balance; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(1.85rem, 7vw, 2.75rem); font-weight: 800; margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 5vw, 1.85rem); font-weight: 700; margin: 2.25rem 0 .75rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 40; background: var(--white); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: .5rem; }
.shell { width: 100%; max-width: 70rem; margin-inline: auto; padding-inline: 1.125rem; }
.shell--text { max-width: 46rem; }

/* Buttons: ink on orange, 5.8:1 */
.button {
	display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 .4em;
	min-height: 48px; padding: .6rem 1.25rem; border: 2px solid var(--orange); border-radius: 999px;
	background: var(--orange); color: var(--ink);
	font-family: var(--font-head); font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
}
.button:hover { background: #FF9A4D; border-color: #FF9A4D; text-decoration: none; }
.button strong { font-weight: 800; white-space: nowrap; }
.button--large { min-height: 56px; padding: .8rem 1.75rem; font-size: 1.15rem; }
.button--ghost { background: var(--white); border-color: var(--purple); color: var(--purple); }
.button--ghost:hover { background: var(--warm); border-color: var(--purple); }
.place { margin: .5rem 0 0; font-size: .95rem; font-weight: 600; color: var(--purple); }

/* Header */
.header { background: var(--warm) url("../img/arc.svg") no-repeat right top; border-bottom: 1px solid var(--line); }
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); padding-block: .75rem; }
.logo { display: block; flex: 0 1 auto; padding: .25rem .5rem; border-radius: 12px; background: var(--white); }
.logo img { display: block; width: 172px; }
.header__cta { display: none; }
/* Language button and menu button: stacked on phones, so both fit beside the logo at 360px. */
.header__actions { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; flex: 0 0 auto; }
.lang-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .35rem 1rem;
	border: 2px solid var(--purple); border-radius: 999px; background: var(--purple); color: var(--white);
	font: 700 1rem var(--font-head); text-decoration: none; white-space: nowrap;
}
.lang-button:hover { background: var(--ink); border-color: var(--ink); text-decoration: none; }
.menu-toggle {
	display: none; align-items: center; gap: .5rem; min-height: 48px; padding: .5rem 1rem;
	border: 2px solid var(--purple); border-radius: 999px; background: var(--white); color: var(--purple);
	font: 700 1rem var(--font-head); cursor: pointer;
}
.js .menu-toggle { display: inline-flex; }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 18px; height: 2px; background: currentColor; content: ""; }
.menu-toggle__icon { position: relative; }
.menu-toggle__icon::before { position: absolute; top: -6px; }
.menu-toggle__icon::after { position: absolute; top: 6px; }

/* Menu, mobile */
.nav { padding-bottom: .75rem; }
.js .nav { display: none; }
.js .nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav__row--service { margin-top: .5rem; border-top: 2px solid var(--line); padding-top: .25rem; }
.nav__row > li { border-bottom: 1px solid var(--line); }
.nav__row > li:last-child { border-bottom: 0; }
.nav__head { display: flex; align-items: stretch; justify-content: space-between; }
.nav a, .nav__soon, .nav__more--label { display: flex; align-items: center; gap: .4rem; min-height: 48px; padding: .35rem .25rem; }
.nav a, .nav__more--label { color: var(--ink); font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.nav a:hover { color: var(--purple); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--purple); box-shadow: inset 0 -3px 0 var(--orange); }
.nav__soon { color: #6B6072; font-family: var(--font-head); font-weight: 600; }
.nav__soon small, .card small { font: 600 .72rem/1 var(--font-body); padding: .2rem .45rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: #6B6072; }
.nav__more { flex: 0 0 auto; min-width: 48px; border: 0; background: transparent; cursor: pointer; font-size: 1.05rem; text-align: left; }
.nav__more--label { flex: 1; justify-content: space-between; }
.nav__more::after { content: ""; display: inline-block; flex: none; width: 9px; height: 9px; margin: 0 auto; border: solid var(--purple); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nav__more--label::after { margin: 0 1.1rem 0 0; }
.nav__more[aria-expanded="true"]::after { transform: rotate(225deg); }
html:not(.js) .nav__more:not(.nav__more--label) { display: none; }
.nav__sub { padding: 0 0 .5rem 1rem !important; }
.js .has-sub > .nav__sub { display: none; }
.js .has-sub.is-open > .nav__sub { display: block; }

/* Page */
.page-head { padding-block: 1.75rem .25rem; }
.page-home .page-head { padding-top: 1rem; text-align: center; }
.page-home .page-head h1 { margin-bottom: .75rem; }
.page-home .page-head > .place { margin-top: .35rem; }
.page-home .prose > p:first-child { margin-top: .75rem; }
.lang-switch { margin: 0 0 .75rem; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem 1rem; border: 2px solid var(--purple); border-radius: 999px; color: var(--purple); font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.lang-switch a:hover { background: var(--warm); }
.page-home .page-head .button { width: 100%; max-width: 24rem; }

/* Prose: everything the TinyMCE toolbar can produce. No classes required from the editor. */
.prose { overflow-wrap: break-word; }
.prose::after { content: ""; display: block; clear: both; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table, .prose figure { margin: 0 0 1.15rem; }
.prose p:empty { display: none; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: .4rem; }
.prose li::marker { color: var(--purple); }
.prose strong, .prose b { font-weight: 700; }
/* Small photos are never stretched: width attribute = file width / 1.5 or less. Floats start at tablet width. */
.prose img { display: block; margin: 1.25rem auto; border-radius: var(--radius); float: none !important; }
.prose p:has(> img + img) { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--gap); }
.prose p:has(> img + img) img { flex: 0 1 auto; max-width: min(100%, 20rem); margin: 0; }
.prose figure { text-align: center; }
.prose figcaption { font-size: .95rem; color: #6B6072; }
.prose blockquote { padding: .75rem 1.25rem; border-left: 4px solid var(--orange); background: var(--warm); border-radius: 0 var(--radius) var(--radius) 0; }
.prose table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .75rem; text-align: left; vertical-align: top; }
.prose hr { border: 0; border-top: 2px solid var(--line); margin: 2rem 0; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.prose pre { overflow-x: auto; background: var(--warm); padding: 1rem; border-radius: 8px; }

/* Map link on the contact page: a plain link in the editor (no class to keep in TinyMCE), shown as a light button. */
.prose a[href^="https://www.google.com/maps"] {
	display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0 .35em; min-height: 48px; padding: .5rem 1.25rem;
	border: 2px solid var(--purple); border-radius: 999px; background: var(--white); color: var(--purple);
	font-family: var(--font-head); font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none;
}
.prose a[href^="https://www.google.com/maps"]:hover { background: var(--warm); }

/* 404 */
.not-found { padding-bottom: 1.5rem; text-align: center; }
.not-found__code { margin: 0 0 .5rem; color: var(--purple); font: 800 clamp(4.5rem, 24vw, 7rem)/1 var(--font-head); }
.not-found__code::after { content: ""; display: block; width: 4.5rem; height: 6px; margin: .75rem auto 0; border-radius: 3px; background: var(--orange); }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 1.5rem 0; }
.not-found > .button { width: 100%; max-width: 24rem; }

/* Home: a plain bulleted list becomes a grid of cards (the age groups). */
.page-home .prose ul { display: grid; grid-template-columns: 1fr; gap: .75rem; padding: 0; list-style: none; }
.page-home .prose ul li { margin: 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-top: 5px solid var(--orange); border-radius: var(--radius); background: var(--warm); }

.programs { text-align: center; }
.cards { display: grid; grid-template-columns: 1fr; gap: .75rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.card { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; min-height: 72px; padding: .75rem; border: 1px solid var(--line); border-radius: var(--radius); font: 700 1.1rem var(--font-head); color: var(--purple); }
.card a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; color: var(--purple); }
.card:has(a):hover { background: var(--warm); border-color: var(--orange); }

.contact-band { max-width: 46rem; margin-top: 2.5rem; margin-bottom: 2rem; padding-block: 1.5rem; background: var(--warm); border-block: 1px solid var(--line); text-align: center; }
.contact-band h2 { margin-top: 0; }
.contact-band__actions { display: flex; flex-direction: column; align-items: center; gap: .75rem; }

.footer { background: var(--warm) url("../img/arc.svg") no-repeat right bottom; border-top: 1px solid var(--line); padding-block: 2rem; text-align: center; color: var(--purple); }

/* Mobile call bar */
.call-bar { position: fixed; inset: auto 0 0 0; z-index: 30; padding: .35rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgb(47 36 56 / .12); }
.call-bar .place { margin: 0 0 .35rem; text-align: center; font-size: .85rem; }
.call-bar__actions { display: flex; gap: .5rem; }
.call-bar .button:first-child { flex: 3; }
.call-bar .button:last-child { flex: 1; }
.call-bar__number { white-space: nowrap; }

@media (min-width: 37.5rem) {
	.page-home .page-head { padding-top: 1.75rem; }
	.page-home .page-head h1 { margin-bottom: 1rem; }
	.logo img { width: 210px; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.page-home .prose ul { grid-template-columns: repeat(2, 1fr); }
	.contact-band { border: 1px solid var(--line); border-radius: var(--radius); }
	.contact-band__actions { flex-direction: row; justify-content: center; flex-wrap: wrap; }
	.prose img[style*="float: right"], .prose img.align-right { float: right !important; margin: .35rem 0 1rem 1.5rem; max-width: 46%; }
	.prose img[style*="float: left"], .prose img.align-left { float: left !important; margin: .35rem 1.5rem 1rem 0; max-width: 46%; }
}

@media (min-width: 64rem) {
	body { padding-bottom: 0; }
	.call-bar { display: none; }
	.menu-toggle, .js .menu-toggle { display: none; }
	.header__actions { flex-direction: row; margin-left: auto; align-self: flex-start; }
	.lang-button { min-height: 48px; padding-inline: 1.25rem; }
	.logo img { width: 250px; }
	.header__bar { padding-block: 1.25rem .75rem; }
	.header__cta { display: flex; flex-direction: column; align-items: flex-end; align-self: flex-start; }
	.nav, .js .nav, .js .nav.is-open { display: flex; flex-direction: column-reverse; padding-bottom: .25rem; }
	.nav__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.5rem; }
	.nav__row--service { justify-content: flex-end; margin: 0; padding: 0; border: 0; font-size: .95rem; }
	.nav__row--primary { border-top: 1px solid var(--line); }
	.nav__row > li { position: relative; border: 0; }
	.nav__head { align-items: center; }
	.nav__more { min-width: 32px; }
	.nav__more--label { gap: .55rem; font-size: 1.125rem; }
	.nav__row--service .nav__more--label { font-size: .95rem; }
	.nav__more--label::after { margin: -4px 0 0; }
	.nav__more--label[aria-expanded="true"]::after { margin-top: 4px; }
	.nav__sub { position: absolute; top: 100%; left: -.75rem; z-index: 35; display: none; min-width: 17rem; padding: .4rem 1rem !important; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgb(47 36 56 / .14); }
	.nav__row--service .nav__sub { left: auto; right: 0; }
	html:not(.js) .has-sub:hover > .nav__sub, html:not(.js) .has-sub:focus-within > .nav__sub, .js .has-sub.is-open > .nav__sub { display: block; }
	.cards { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: no-preference) {
	.button, .card { transition: background-color .15s ease, border-color .15s ease; }
	.nav__more::after { transition: transform .15s ease; }
}
