/* =====================================================================
   Youth+ website
   Standalone stylesheet (no framework). Classes start with "y-".
   Look: "paper and brush". Warm paper background, the teal of the logo,
   a mint highlighter, hand-drawn rings like the brush circle of the logo,
   and cut-out shapes with thick ink outlines and hard shadows.
   ===================================================================== */

:root {
    --y-paper: #fbf8f1;
    --y-paper-2: #f3ede0;
    --y-white: #ffffff;
    --y-ink: #0f2b2b;
    --y-text: #2b4141;
    --y-muted: #5a6f6f;
    --y-line: #e2dbcb;

    --y-teal: #008181;
    --y-teal-dark: #006565;
    --y-teal-deep: #063c3c;
    --y-teal-soft: #d6ecea;
    --y-accent: #86e0bf;
    --y-accent-soft: #dcf6ec;
    --y-blue: #3f7fd9;
    --y-blue-soft: #dde9fb;
    --y-coral: #ff6b4f;
    --y-coral-dark: #d9442a;
    --y-coral-soft: #ffdcd3;
    --y-lilac-soft: #e6dfff;

    --y-border: 2px solid var(--y-ink);
    --y-shadow: 5px 5px 0 var(--y-ink);
    --y-shadow-sm: 3px 3px 0 var(--y-ink);
    --y-shadow-lg: 8px 8px 0 var(--y-ink);
    --y-radius: 18px;
    --y-radius-sm: 12px;

    --y-font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --y-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
    --y-container: 1200px;
    --y-gutter: clamp(16px, 4vw, 32px);
    --y-header: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--y-header) + 16px); }

body.y-body {
    margin: 0;
    background: var(--y-paper);
    color: var(--y-text);
    font-family: var(--y-font);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Base rules have zero specificity (:where), so every component can override them */
:where(.y-body) img { display: block; max-width: 100%; height: auto; }
:where(.y-body) a { color: var(--y-teal-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:where(.y-body) a:hover { color: var(--y-ink); }
:where(.y-body) :is(h1, h2, h3, h4) { margin: 0; color: var(--y-ink); font-family: var(--y-display); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
:where(.y-body) :is(p, ul, ol, dl, dd, figure, blockquote, address) { margin: 0; }
:where(.y-body) :is(ul, ol) { padding: 0; list-style: none; }
:where(.y-body) address { font-style: normal; }
:where(.y-body) button { font: inherit; cursor: pointer; }
.y-body :focus-visible { outline: 3px solid var(--y-coral); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--y-accent); color: var(--y-ink); }

.y-container { width: 100%; max-width: calc(var(--y-container) + 2 * var(--y-gutter)); margin-inline: auto; padding-inline: var(--y-gutter); }
.y-narrow { max-width: calc(760px + 2 * var(--y-gutter)); }
.y-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.y-skip { position: absolute; top: -100px; left: 16px; z-index: 100; padding: 10px 16px; border: var(--y-border); border-radius: 999px; background: var(--y-accent); color: var(--y-ink); font-weight: 700; }
.y-skip:focus { top: 12px; }
.y-muted { color: var(--y-muted); }
.y-mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .88em; word-break: break-all; }
.y-mt-lg { margin-top: 40px !important; }
.y-mt-xl { margin-top: 72px !important; }

.y-icon { width: 1.25em; height: 1.25em; flex: none; }
.y-icon--sm { width: 1em; height: 1em; }
.y-icon--lg { width: 44px; height: 44px; }

/* ---------- Brand touches ---------- */

/* Highlighter stroke behind a word */
.y-mark {
    padding: 0 .08em;
    background: linear-gradient(100deg, transparent .2em, var(--y-accent) .25em, var(--y-accent) calc(100% - .15em), transparent calc(100% - .1em)) no-repeat 0 82% / 100% .48em;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}
.y-mark--dark { background: none; color: var(--y-accent); }

/* A hand-drawn ring around a word, like the brush circle of the logo */
.y-circled { position: relative; display: inline-block; white-space: nowrap; }
.y-circled svg {
    position: absolute;
    top: -22%;
    left: -7%;
    width: 114%;
    height: 144%;
    overflow: visible;
    fill: none;
    stroke: var(--y-teal);
    stroke-width: 3.2;
    stroke-linecap: round;
    pointer-events: none;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: y-draw 1.4s .35s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes y-draw { to { stroke-dashoffset: 0; } }

.y-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px !important;
    color: var(--y-teal-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.y-eyebrow .y-icon { color: var(--y-coral); }
.y-eyebrow--center { display: flex; justify-content: center; }

.y-sticker {
    display: inline-flex;
    align-items: center;
    gap: .35em;
    padding: .28em .8em;
    border: var(--y-border);
    border-radius: 999px;
    background: var(--y-white);
    color: var(--y-ink) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}
a.y-sticker:hover { background: var(--y-accent); }
.y-sticker--tilt { transform: rotate(-2.5deg); background: var(--y-accent); }
/* Programmes and types of activity (the same colours as the dots of the Youth Work month grid) */
.y-sticker--youth_work { background: var(--y-ink); color: var(--y-white) !important; }
.y-sticker--erasmus { border-color: #039; background: #039; color: var(--y-white) !important; }
.y-sticker--workshops, .y-sticker--youth-exchanges { background: var(--y-teal-soft); }
.y-sticker--community-circles, .y-sticker--partnerships { background: var(--y-coral-soft); }
.y-sticker--neighbourhood-actions, .y-sticker--training-courses { background: var(--y-blue-soft); }
.y-sticker--events, .y-sticker--sport { background: var(--y-lilac-soft); }
.y-sticker--series { max-width: 100%; border-style: dashed; background: var(--y-white); white-space: normal; }
.y-sticker--upcoming { border-color: var(--y-teal); color: var(--y-teal-dark) !important; }
.y-sticker--ongoing { border-color: var(--y-teal); background: var(--y-teal); color: var(--y-white) !important; }
.y-sticker--new, .y-sticker--deadline { background: var(--y-coral); color: var(--y-white) !important; }
.y-sticker--muted { border-color: var(--y-line); background: var(--y-paper-2); color: var(--y-muted) !important; }
.y-sticker--news { border-style: dashed; background: var(--y-white); }
.y-sticker--ours { border-color: #039; background: var(--y-white); color: #039 !important; }

.y-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--y-coral);
    color: var(--y-white);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.y-initials {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    border: var(--y-border);
    border-radius: 50%;
    background: var(--y-teal);
    color: var(--y-white);
    font-family: var(--y-display);
    font-weight: 800;
}

/* ---------- Buttons and links ---------- */

.y-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 48px;
    padding: .7em 1.35em;
    border: var(--y-border);
    border-radius: 999px;
    background: var(--y-white);
    color: var(--y-ink) !important;
    box-shadow: var(--y-shadow-sm);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.y-btn:hover { transform: translate(-2px, -2px); box-shadow: var(--y-shadow); }
.y-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--y-ink); }
.y-btn--primary { background: var(--y-teal); color: var(--y-white) !important; }
.y-btn--primary:hover { background: var(--y-teal-dark); }
.y-btn--accent { background: var(--y-accent); }
.y-btn--secondary { background: transparent; }
.y-btn--subtle { min-height: 0; padding: .3em 0; border: 0; background: none; box-shadow: none; color: var(--y-teal-dark) !important; text-decoration: underline; text-underline-offset: 4px; }
.y-btn--subtle:hover { transform: none; box-shadow: none; }
.y-btn--ghost-light { border-color: var(--y-white); background: transparent; color: var(--y-white) !important; box-shadow: 3px 3px 0 rgba(255, 255, 255, .35); }
.y-btn--ghost-light:hover { box-shadow: 5px 5px 0 rgba(255, 255, 255, .5); }
.y-btn--sm { min-height: 38px; padding: .45em 1em; font-size: 14px; }
.y-btn--block { width: 100%; }

.y-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    color: var(--y-teal-dark) !important;
    font-weight: 800;
    text-decoration: none;
}
.y-link-arrow .y-icon { transition: transform .2s ease; }
.y-link-arrow:hover .y-icon { transform: translateX(4px); }
.y-link-arrow--sm { font-size: 14px; }
.y-link-arrow--back:hover .y-icon { transform: translateX(-4px); }

/* ---------- Header ---------- */

.y-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 248, 241, .92);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease;
}
.y-header.is-scrolled { border-bottom-color: var(--y-ink); }
.y-header__bar { display: flex; align-items: center; gap: 24px; height: var(--y-header); }

.y-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.y-logo img { width: 44px; height: 44px; transition: transform .4s ease; }
.y-logo:hover img:first-child { transform: rotate(-14deg); }
.y-logo .y-logo__word { width: auto; height: 18px; }

.y-nav { margin-left: auto; }
.y-nav > ul { display: flex; align-items: center; gap: 4px; }
.y-nav > ul > li { position: relative; }
.y-nav > ul > li > a {
    position: relative;
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--y-ink);
    font-weight: 700;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}
/* Hover (and an open menu): a soft teal pill */
.y-nav > ul > li > a:hover,
.y-nav__has-menu:hover > a,
.y-nav__has-menu:focus-within > a { background-color: var(--y-teal-soft); color: var(--y-teal-dark); }
.y-nav > ul > li > a:focus-visible { outline: 2px solid var(--y-teal); outline-offset: 2px; }
/* Current page: teal text with a short line under it */
.y-nav > ul > li > a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: var(--y-teal);
    transform: translateX(-50%) scaleX(0);
    transition: transform .2s ease;
}
.y-nav > ul > li > a[aria-current] { color: var(--y-teal-dark); }
.y-nav > ul > li > a[aria-current]::after { transform: translateX(-50%) scaleX(1); }
.y-nav__has-menu > a .y-icon { transition: transform .2s ease; }
.y-nav__has-menu:hover > a .y-icon,
.y-nav__has-menu:focus-within > a .y-icon { transform: rotate(180deg); }

/* "Projects" opens the list of categories */
.y-nav__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 230px;
    padding: 8px;
    border: var(--y-border);
    border-radius: var(--y-radius-sm);
    background: var(--y-white);
    box-shadow: var(--y-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.y-nav__menu::before { content: ''; position: absolute; inset: -10px 0 auto; height: 10px; }
.y-nav__has-menu:hover .y-nav__menu,
.y-nav__has-menu:focus-within .y-nav__menu { opacity: 1; visibility: visible; transform: none; }
.y-nav__menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 8px; color: var(--y-ink); font-weight: 600; text-decoration: none; transition: background-color .15s ease, color .15s ease, padding-left .15s ease; }
.y-nav__menu ul a:hover, .y-nav__menu ul a:focus-visible { padding-left: 16px; background: var(--y-teal-soft); color: var(--y-teal-dark); }
.y-nav__menu a:hover .y-nav__count { color: var(--y-teal-dark); }
.y-nav__menu a:focus-visible { outline: 2px solid var(--y-teal); outline-offset: -2px; }
.y-nav > ul > li > a .y-icon { width: 14px; height: 14px; margin-left: 2px; vertical-align: -2px; }
.y-nav__menu--wide { min-width: 290px; padding: 10px; }
.y-nav__lead { display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 0 !important; margin-bottom: 6px; padding: 10px 12px !important; background: var(--y-teal-soft); }
.y-nav__lead:hover, .y-nav__lead:focus-visible { background: color-mix(in srgb, var(--y-teal) 22%, var(--y-white)); }
.y-nav__lead strong { font-family: var(--y-display); font-size: 17px; }
.y-nav__lead span { color: var(--y-muted); font-size: 13px; font-weight: 500; }
.y-nav__heading { margin: 10px 12px 4px !important; color: var(--y-muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.y-nav__count { color: var(--y-muted); font-size: 13px; font-weight: 700; }
.y-nav__tag { padding: 1px 8px; border: 1.5px solid var(--y-ink); border-radius: 999px; font-size: 11px; font-weight: 700; }

.y-header__actions { display: flex; align-items: center; gap: 10px; }
/* Language switch: DE on the English pages, EN on the German ones */
.y-lang { display: inline-grid; place-items: center; min-width: 40px; height: 36px; padding: 0 10px; border: var(--y-border); border-radius: 999px; background: var(--y-white); color: var(--y-ink); font-size: 13px; font-weight: 700; letter-spacing: .05em; text-decoration: none; }
.y-lang { transition: background-color .15s ease, color .15s ease; }
.y-lang:hover, .y-lang:focus-visible { background: var(--y-teal-soft); color: var(--y-teal-dark); }
.y-header__cta[aria-current] { background: var(--y-ink); color: var(--y-white) !important; }
.y-burger {
    display: none;
    width: 46px;
    height: 46px;
    place-items: center;
    border: var(--y-border);
    border-radius: 50%;
    background: var(--y-white);
    color: var(--y-ink);
    box-shadow: var(--y-shadow-sm);
}

/* Phone menu */
.y-drawer {
    position: fixed;
    inset: var(--y-header) 0 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 28px var(--y-gutter) 40px;
    overflow-y: auto;
    background: var(--y-teal-deep);
    border-top: 2px solid var(--y-ink);
}
.y-drawer[hidden] { display: none; }
.y-drawer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.y-drawer nav > a:not(.y-btn) { color: var(--y-white); font-family: var(--y-display); font-size: 34px; font-weight: 800; line-height: 1.25; text-decoration: none; transition: color .15s ease; }
.y-drawer nav > a:not(.y-btn):hover { color: color-mix(in srgb, var(--y-teal) 40%, var(--y-white)); }
.y-drawer__sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.y-drawer__sub a { padding: 6px 14px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 999px; color: var(--y-white); font-weight: 600; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; }
.y-drawer__sub a:hover { border-color: var(--y-white); background: rgba(255, 255, 255, .12); }
body.y-menu-open { overflow: hidden; }

/* ---------- Social icons ---------- */

.y-socials { display: flex; flex-wrap: wrap; gap: 10px; }
.y-socials a, .y-socials button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: var(--y-border);
    border-radius: 50%;
    background: var(--y-white);
    color: var(--y-ink);
    transition: transform .15s ease, background-color .15s ease;
}
.y-socials a:hover, .y-socials button:hover { transform: translateY(-3px); background: var(--y-accent); }
.y-socials button.is-copied { background: var(--y-teal); color: var(--y-white); }
.y-socials--light a { border-color: rgba(255, 255, 255, .55); background: transparent; color: var(--y-white); }
.y-socials--light a:hover { background: var(--y-accent); border-color: var(--y-accent); color: var(--y-ink); }

/* ---------- Home: hero ---------- */

.y-hero { padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.y-hero__grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.y-hero__text .y-sticker { margin-bottom: 26px; }
.y-hero__title { font-size: clamp(40px, 5.1vw, 70px); line-height: 1.02; letter-spacing: -.035em; }
.y-hero__lead { max-width: 560px; margin-top: 26px !important; font-size: clamp(18px, 1.6vw, 21px); }
.y-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.y-hero__art { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; width: 100%; justify-self: end; }
.y-hero__ring { position: absolute; inset: 2%; width: 96%; height: 96%; overflow: visible; fill: none; stroke: var(--y-teal); stroke-width: 2.5; stroke-dasharray: 6 10; stroke-linecap: round; opacity: .7; }
.y-hero__spark { position: absolute; width: 46px; height: 46px; color: var(--y-coral); animation: y-twinkle 3.2s ease-in-out infinite; }
.y-hero__spark--1 { top: 2%; right: 12%; }
.y-hero__spark--2 { bottom: 10%; left: 0; width: 32px; height: 32px; color: var(--y-teal); animation-delay: 1.2s; }
@keyframes y-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(.7) rotate(25deg); } }

.y-polaroid {
    position: absolute;
    width: 58%;
    padding: 10px 10px 30px;
    border: var(--y-border);
    border-radius: 6px;
    background: var(--y-white);
    box-shadow: var(--y-shadow);
}
.y-polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1.5px solid var(--y-ink); border-radius: 3px; }
/* A piece of tape holding each photo */
.y-polaroid::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 50%;
    width: 84px;
    height: 26px;
    background: rgba(134, 224, 191, .82);
    transform: translateX(-50%) rotate(-4deg);
}
.y-polaroid--1 { top: 6%; left: 2%; transform: rotate(-6deg); z-index: 2; }
.y-polaroid--2 { top: 30%; right: 0; transform: rotate(5deg); z-index: 3; }
.y-polaroid--3 { bottom: 2%; left: 14%; width: 52%; transform: rotate(-2deg); z-index: 1; }
.y-polaroid--2::before { background: rgba(0, 129, 129, .45); transform: translateX(-50%) rotate(5deg); }

.y-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(40px, 6vw, 72px) !important;
    border-top: var(--y-border);
}
.y-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 2px; padding: 22px 20px 30px 0; }
.y-stats > div + div { padding-left: 24px; border-left: 2px dashed var(--y-line); }
.y-stats dd { color: var(--y-teal); font-family: var(--y-display); font-size: clamp(40px, 5vw, 60px); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.y-stats dt { color: var(--y-muted); font-size: 15px; font-weight: 600; }

/* Moving band of topics */
.y-ticker { overflow: hidden; border-block: var(--y-border); background: var(--y-teal); color: var(--y-white); }
.y-ticker__track { display: flex; width: max-content; animation: y-ticker 46s linear infinite; }
.y-ticker:hover .y-ticker__track { animation-play-state: paused; }
.y-ticker ul { display: flex; flex: none; }
.y-ticker li { display: flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px; font-family: var(--y-display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; white-space: nowrap; }
.y-ticker .y-icon { width: 26px; height: 26px; color: var(--y-accent); }
@keyframes y-ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */

.y-section { padding-block: clamp(64px, 8vw, 112px); }
.y-section--tight { padding-block: clamp(40px, 5vw, 64px); }
.y-section--flush { padding-top: 0; }
.y-section--paper { background: var(--y-paper-2); }
.y-section--accent { background: var(--y-accent-soft); border-bottom: var(--y-border); }
.y-section--teal { background: var(--y-teal-deep); color: #d5e9e7; }
.y-section--teal :is(h2, h3) { color: var(--y-white); }
.y-section--teal .y-eyebrow { color: var(--y-accent); }

.y-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 48px); }
.y-head__title { font-size: clamp(32px, 4.4vw, 54px); }
.y-head__text { margin-top: 16px !important; color: var(--y-muted); font-size: 18px; }
.y-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; }
.y-lead { color: var(--y-ink); font-size: clamp(19px, 1.7vw, 22px); font-weight: 500; line-height: 1.5; }

/* Three things we do */
.y-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.y-pillars--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.y-pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 30px 28px 32px;
    border: var(--y-border);
    border-radius: var(--y-radius);
    box-shadow: var(--y-shadow);
}
.y-pillar--teal { background: var(--y-teal-soft); }
.y-pillar--accent { background: var(--y-accent-soft); }
.y-pillar--coral { background: var(--y-coral-soft); }
.y-pillar h3 { font-size: 27px; }
.y-pillar p { flex: 1; }
.y-pillar__num { color: transparent; font-family: var(--y-display); font-size: 64px; font-weight: 800; line-height: .9; -webkit-text-stroke: 2px var(--y-ink); }
.y-checklist { display: grid; gap: 6px; }
.y-checklist li { position: relative; padding-left: 28px; }
.y-checklist li::before { content: ''; position: absolute; top: .35em; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--y-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

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

.y-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 28px; }

.y-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: var(--y-border);
    border-radius: var(--y-radius);
    background: var(--y-white);
    box-shadow: var(--y-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.y-card:hover { transform: translate(-3px, -3px); box-shadow: var(--y-shadow-lg); }
.y-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-bottom: var(--y-border); background: var(--y-paper-2); }
.y-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.y-card:hover .y-card__media img { transform: scale(1.05); }
.y-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.y-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.y-card__title { font-size: 22px; line-height: 1.18; }
.y-card__title a { color: var(--y-ink); text-decoration: none; }
/* The whole card opens the project */
.y-card__title a::after { content: ''; position: absolute; inset: 0; }
.y-card__title a:focus-visible { outline: none; }
.y-card:has(.y-card__title a:focus-visible) { outline: 3px solid var(--y-coral); outline-offset: 3px; }
.y-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--y-muted); font-size: 14px; font-weight: 600; }
.y-card__dot { opacity: .6; }
.y-card__excerpt { display: -webkit-box; overflow: hidden; color: var(--y-text); font-size: 15.5px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.y-card__buttons { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }

/* The newest project, large */
.y-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    overflow: hidden;
    margin-bottom: 36px;
    border: var(--y-border);
    border-radius: 24px;
    background: var(--y-white);
    box-shadow: var(--y-shadow-lg);
}
.y-feature__media { display: block; min-height: 360px; border-right: var(--y-border); background: var(--y-paper-2); }
.y-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.y-feature__body { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(24px, 4vw, 48px); }
.y-feature__title { font-size: clamp(26px, 3vw, 38px); }
.y-feature__title a { color: var(--y-ink); text-decoration: none; }
.y-feature__title a:hover { text-decoration: underline; text-decoration-color: var(--y-accent); text-decoration-thickness: 6px; text-underline-offset: 2px; }

/* ---------- Home: about ---------- */

.y-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(40px, 6vw, 88px); }
.y-split--text { align-items: start; }
.y-split__media { position: relative; min-height: 440px; }
.y-split__img { position: absolute; width: 72%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--y-border); border-radius: var(--y-radius); box-shadow: var(--y-shadow); }
.y-split__img--1 { top: 0; left: 0; transform: rotate(-3deg); }
.y-split__img--2 { right: 0; bottom: 0; transform: rotate(3deg); }
.y-split__badge {
    position: absolute;
    top: 42%;
    left: 52%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 118px;
    height: 118px;
    border: var(--y-border);
    border-radius: 50%;
    background: var(--y-accent);
    color: var(--y-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    transform: translate(-50%, -50%) rotate(-12deg);
    box-shadow: var(--y-shadow-sm);
}
.y-split__badge strong { font-family: var(--y-display); font-size: 32px; font-weight: 800; }
.y-split__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.y-split__text .y-eyebrow { margin-bottom: 0 !important; }

/* ---------- Testimonials ---------- */

.y-quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.y-quote { display: flex; flex-direction: column; gap: 16px; padding: 28px; border: var(--y-border); border-radius: var(--y-radius); background: var(--y-white); color: var(--y-text); box-shadow: 5px 5px 0 var(--y-accent); }
.y-quotes--light .y-quote { box-shadow: var(--y-shadow); }
.y-quote__mark { width: 40px; height: 40px; color: var(--y-teal); }
.y-quote blockquote { flex: 1; color: var(--y-ink); font-size: 18px; line-height: 1.55; }
.y-quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.y-quote figcaption img { width: 48px; height: 48px; border: var(--y-border); border-radius: 50%; object-fit: cover; }
.y-quote figcaption > span { display: flex; flex-direction: column; color: var(--y-muted); }
.y-quote figcaption strong { color: var(--y-ink); font-size: 15px; }
.y-quote figcaption a { color: var(--y-teal-dark); font-weight: 600; }

/* ---------- Partner logos ---------- */

.y-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 44px; }
.y-logos img { max-width: 150px; max-height: 64px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.y-logos a:hover img, .y-logos img:hover { filter: none; opacity: 1; }

.y-partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; margin-top: 24px; }
.y-partners li > :is(a, div) { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border: var(--y-border); border-radius: var(--y-radius-sm); background: var(--y-white); color: var(--y-text); font-size: 14px; text-decoration: none; }
.y-partners a { transition: transform .15s, box-shadow .15s; }
.y-partners a:hover { transform: translate(-2px, -2px); box-shadow: var(--y-shadow-sm); }
.y-partners img { width: 56px; height: 56px; flex: none; object-fit: contain; }
.y-partners span:last-child { display: flex; flex-direction: column; color: var(--y-muted); }
.y-partners strong { color: var(--y-ink); font-size: 15px; line-height: 1.3; }

/* ---------- Inner pages: header ---------- */

.y-pagehero { padding: clamp(28px, 4vw, 48px) 0 clamp(36px, 5vw, 56px); }
.y-pagehero__title { max-width: 980px; font-size: clamp(38px, 5.4vw, 70px); letter-spacing: -.03em; }
.y-pagehero__title--project { max-width: 1040px; font-size: clamp(32px, 4.4vw, 56px); }
.y-pagehero__intro { max-width: 740px; margin-top: 22px !important; font-size: clamp(18px, 1.6vw, 21px); }
.y-pagehero .y-card__tags { margin-bottom: 18px; }

.y-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 22px; color: var(--y-muted); font-size: 14px; font-weight: 600; }
.y-crumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.y-crumbs a { color: var(--y-muted); text-decoration: none; }
.y-crumbs a:hover { color: var(--y-ink); text-decoration: underline; }
.y-crumbs [aria-current] { color: var(--y-ink); }

.y-facts-inline { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px !important; color: var(--y-muted); font-size: 15px; font-weight: 600; }
.y-facts-inline li, .y-facts-inline a { display: inline-flex; align-items: center; gap: 7px; }
.y-facts-inline a { color: inherit; text-decoration: none; }
.y-facts-inline a:hover { color: var(--y-ink); }
.y-facts-inline--lg { margin-top: 22px !important; color: var(--y-text); font-size: 17px; }
.y-facts-inline--lg .y-icon { color: var(--y-teal); }

/* ---------- Project list ---------- */

.y-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.y-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: var(--y-border);
    border-radius: 999px;
    background: var(--y-white);
    color: var(--y-ink) !important;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .15s, transform .15s;
}
.y-chip span { color: var(--y-muted); font-size: 13px; }
.y-chip:hover { background: var(--y-accent-soft); transform: translateY(-2px); }
.y-chip[aria-current] { background: var(--y-ink); color: var(--y-white) !important; }
.y-chip[aria-current] span { color: var(--y-accent); }

.y-filter { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.y-filter :is(input, select) {
    height: 50px;
    border: var(--y-border);
    border-radius: 999px;
    background: var(--y-white);
    color: var(--y-ink);
    font: inherit;
    font-size: 16px;
}
.y-filter :is(input, select):focus { outline: 3px solid var(--y-accent); outline-offset: 0; }
.y-filter__search { position: relative; flex: 1 1 320px; }
.y-filter__search .y-icon { position: absolute; top: 50%; left: 18px; color: var(--y-muted); transform: translateY(-50%); }
.y-filter__search input { width: 100%; padding: 0 20px 0 50px; }
.y-filter__select select { padding: 0 44px 0 20px; appearance: none; background: var(--y-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f2b2b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 18px no-repeat; }
.y-results { margin: -16px 0 28px !important; color: var(--y-muted); font-weight: 600; }

.y-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 52px; }
.y-pager__btn { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 10px; border: var(--y-border); border-radius: var(--y-radius-sm); background: var(--y-white); color: var(--y-ink) !important; font-weight: 700; text-decoration: none; }
a.y-pager__btn:hover { background: var(--y-accent-soft); }
.y-pager__btn.is-current { background: var(--y-teal); color: var(--y-white) !important; }
.y-pager__btn.is-disabled { opacity: .35; }

.y-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 24px; border: 2px dashed var(--y-ink); border-radius: var(--y-radius); text-align: center; }
.y-empty .y-icon { color: var(--y-teal); }
.y-empty__title { color: var(--y-ink); font-family: var(--y-display); font-size: 26px; font-weight: 800; }
.y-empty--big { padding: 72px 24px; background: var(--y-white); }
.y-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }

/* ---------- Project page ---------- */

/* Project header: the cover as a taped polaroid that keeps the proportions of the image (photo, square post or poster) */
.y-projecthero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
.y-projecthero__cover { position: relative; justify-self: center; max-width: 100%; margin: 12px 0 0; padding: 12px 12px 16px; border: var(--y-border); border-radius: 8px; background: var(--y-white); box-shadow: var(--y-shadow-lg); transform: rotate(1.5deg); }
.y-projecthero__cover::before { content: ''; position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; background: rgba(134, 224, 191, .85); transform: translateX(-50%) rotate(-3deg); }
.y-projecthero__cover img { display: block; width: auto; max-width: 100%; height: auto; max-height: 500px; border: 1.5px solid var(--y-ink); border-radius: 4px; }
.y-project { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: clamp(32px, 5vw, 64px); padding-block: 24px clamp(64px, 8vw, 104px); }
.y-project__aside { position: sticky; top: calc(var(--y-header) + 20px); display: flex; flex-direction: column; gap: 20px; }
.y-project__buttons { display: flex; flex-direction: column; gap: 12px; }

.y-callout { display: flex; gap: 12px; margin-bottom: 32px; padding: 16px 20px; border: var(--y-border); border-radius: var(--y-radius-sm); background: var(--y-accent-soft); color: var(--y-ink); }
.y-callout .y-icon { margin-top: 2px; color: var(--y-coral); }

/* Text of the project description */
.y-prose { max-width: 72ch; color: var(--y-text); font-size: 18px; line-height: 1.7; overflow-wrap: break-word; }
.y-prose > * + * { margin-top: 1.05em; }
.y-prose :is(h2, h3, h4) { margin-top: 1.7em; color: var(--y-ink); font-family: var(--y-display); font-weight: 800; line-height: 1.2; }
.y-prose h2 { font-size: 30px; }
.y-prose h3 { font-size: 24px; }
.y-prose h4 { font-size: 20px; }
.y-prose :is(ul, ol) { padding-left: 1.4em; }
.y-prose ul { list-style: disc; }
.y-prose ol { list-style: decimal; }
.y-prose li + li { margin-top: .4em; }
.y-prose li::marker { color: var(--y-teal); }
.y-prose strong { color: var(--y-ink); }
.y-prose a { color: var(--y-teal-dark); font-weight: 600; }
.y-prose img { height: auto; border-radius: var(--y-radius-sm); }
.y-prose iframe { max-width: 100%; border: 0; border-radius: var(--y-radius-sm); }
.y-prose blockquote { padding: 4px 0 4px 20px; border-left: 4px solid var(--y-accent); color: var(--y-ink); font-size: 20px; }
.y-prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.y-prose :is(td, th) { padding: 8px 10px; border: 1px solid var(--y-line); text-align: left; }
.y-prose hr { border: 0; border-top: 2px dashed var(--y-line); }

.y-block { margin-top: 64px; }
.y-block__title { margin-bottom: 22px !important; font-size: clamp(26px, 2.8vw, 34px); }

.y-docs { display: grid; gap: 12px; }
.y-docs a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: var(--y-border);
    border-radius: var(--y-radius-sm);
    background: var(--y-white);
    color: var(--y-ink);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.y-docs a:hover { transform: translate(-2px, -2px); box-shadow: var(--y-shadow-sm); }
.y-docs__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 10px; background: var(--y-teal-soft); color: var(--y-teal-dark); }
.y-docs__name { display: flex; flex: 1; flex-direction: column; font-weight: 700; line-height: 1.3; }
.y-docs__name small { color: var(--y-muted); font-size: 13px; font-weight: 600; }
.y-docs__go { color: var(--y-teal); }

.y-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr)); gap: 14px; }
.y-gallery__item { display: block; aspect-ratio: 1; overflow: hidden; border: var(--y-border); border-radius: var(--y-radius-sm); background: var(--y-paper-2); }
.y-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.y-gallery__item:hover img { transform: scale(1.06); }

/* Facts box next to the description */
.y-facts, .y-share { padding: 22px 24px; border: var(--y-border); border-radius: var(--y-radius); background: var(--y-white); }
.y-facts { box-shadow: var(--y-shadow); }
.y-facts__title { margin-bottom: 12px !important; color: var(--y-teal-dark); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.y-facts dl > div { padding: 12px 0; border-top: 2px dashed var(--y-line); }
.y-facts dl > div:first-child { padding-top: 0; border-top: 0; }
.y-facts dt { color: var(--y-muted); font-size: 13px; font-weight: 700; }
.y-facts dd { margin-top: 2px !important; color: var(--y-ink); font-weight: 600; }
.y-facts dd .y-link-arrow { margin-top: 6px; }
.y-taglist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px !important; }
.y-taglist li > *, .y-taglist li:not(:has(a)) { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--y-paper-2); color: var(--y-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.y-taglist a:hover { background: var(--y-accent); }

.y-eu { display: flex; flex-direction: column; gap: 10px; color: var(--y-muted); font-size: 12px; line-height: 1.5; }
.y-eu__logo { width: 230px; height: auto; color: var(--y-ink); }

/* Photo viewer */
.y-lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 30, 30, .95); }
.y-lightbox[open] { display: grid; place-items: center; }
.y-lightbox::backdrop { background: rgba(6, 30, 30, .6); }
.y-lightbox img { max-width: min(92vw, 1600px); max-height: 84vh; border: 2px solid var(--y-white); border-radius: 8px; object-fit: contain; }
.y-lightbox__count { position: absolute; top: 24px; left: 50%; color: var(--y-white); font-weight: 700; transform: translateX(-50%); }
.y-lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--y-white); border-radius: 50%; background: rgba(15, 43, 43, .6); color: var(--y-white); }
.y-lightbox__btn:hover { background: var(--y-accent); border-color: var(--y-accent); color: var(--y-ink); }
.y-lightbox__close { top: 16px; right: 16px; }
.y-lightbox__prev { top: 50%; left: 16px; transform: translateY(-50%); }
.y-lightbox__next { top: 50%; right: 16px; transform: translateY(-50%); }
body.y-lightbox-open { overflow: hidden; }

/* ---------- Open calls ---------- */

.y-calls { display: grid; gap: 24px; margin-bottom: 28px; }
.y-call {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    overflow: hidden;
    border: var(--y-border);
    border-radius: 22px;
    background: var(--y-white);
    box-shadow: var(--y-shadow);
}
.y-call__main { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 3vw, 34px); }
.y-call__title { font-size: clamp(24px, 2.6vw, 32px); }
.y-call__text { color: var(--y-text); }
/* Ticket stub with a dashed tear line and two notches */
.y-call__side { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 28px; border-left: 2px dashed var(--y-ink); background: var(--y-accent-soft); }
.y-call__side::before, .y-call__side::after { content: ''; position: absolute; left: -15px; width: 28px; height: 28px; border: var(--y-border); border-radius: 50%; background: var(--y-paper); }
.y-call__side::before { top: -16px; }
.y-call__side::after { bottom: -16px; }
.y-section--accent .y-call__side::before, .y-section--accent .y-call__side::after { background: var(--y-accent-soft); }
.y-call__deadline { display: flex; flex-direction: column; color: var(--y-muted); font-size: 14px; font-weight: 700; }
.y-call__deadline strong { color: var(--y-ink); font-family: var(--y-display); font-size: 30px; font-weight: 800; line-height: 1.1; }
.y-call__buttons { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.y-call.is-urgent .y-call__side { background: var(--y-coral-soft); }

.y-past { display: grid; }
.y-past li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 16px 0; border-top: 2px dashed var(--y-line); }
.y-past__title { flex: 1 1 300px; color: var(--y-ink); font-weight: 700; }
.y-past__meta { color: var(--y-muted); font-size: 15px; }

/* ---------- About ---------- */

.y-mission { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding-top: 40px; border-top: var(--y-border); }
.y-mission__text { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.y-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px !important; }
.y-pills li { padding: 7px 14px; border: var(--y-border); border-radius: 999px; background: var(--y-white); color: var(--y-ink); font-size: 14px; font-weight: 700; }
.y-pills li:nth-child(3n+1) { background: var(--y-teal-soft); }
.y-pills li:nth-child(3n+2) { background: var(--y-accent-soft); }
.y-pills li:nth-child(3n) { background: var(--y-coral-soft); }

.y-purposes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: purpose; }
.y-purposes li { position: relative; padding: 24px 24px 26px; border: var(--y-border); border-radius: var(--y-radius); background: var(--y-white); counter-increment: purpose; }
.y-purposes li::before { content: counter(purpose, decimal-leading-zero); display: block; margin-bottom: 10px; color: var(--y-teal); font-family: var(--y-display); font-size: 30px; font-weight: 800; line-height: 1; }
.y-purposes h3 { margin-bottom: 8px; font-size: 21px; }
.y-purposes p { color: var(--y-text); font-size: 16px; }

.y-team__group { margin: 40px 0 20px; color: var(--y-teal-dark); font-family: var(--y-font); font-size: 14px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.y-team__group:first-of-type { margin-top: 0; }
.y-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.y-person a { display: flex; flex-direction: column; gap: 4px; color: var(--y-ink); text-decoration: none; }
.y-person img, .y-person__initials { width: 100%; aspect-ratio: 1; margin-bottom: 12px; border: var(--y-border); border-radius: var(--y-radius); object-fit: cover; box-shadow: var(--y-shadow); transition: transform .2s, box-shadow .2s; }
.y-person a:hover :is(img, .y-person__initials) { transform: translate(-3px, -3px) rotate(-1deg); box-shadow: var(--y-shadow-lg); }
.y-person__initials { display: grid; place-items: center; background: var(--y-teal); color: var(--y-white); font-family: var(--y-display); font-size: 64px; font-weight: 800; }
.y-person:nth-child(3n+2) .y-person__initials { background: var(--y-coral); }
.y-person:nth-child(3n) .y-person__initials { background: var(--y-accent); color: var(--y-ink); }
.y-person__initials--lg { width: 100%; font-size: 96px; }
.y-person__name { font-family: var(--y-display); font-size: 22px; font-weight: 800; line-height: 1.2; }
.y-person__role { color: var(--y-muted); font-weight: 600; }

/* Call to action band */
.y-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(28px, 4vw, 48px);
    border: var(--y-border);
    border-radius: 26px;
    background: var(--y-teal-deep);
    color: #d5e9e7;
    box-shadow: 8px 8px 0 var(--y-accent);
}
.y-banner h2 { margin-bottom: 8px; color: var(--y-white); font-size: clamp(28px, 3.4vw, 42px); }
.y-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.y-banner p a { color: var(--y-accent); }

/* Impressum and privacy policy */
.y-legal { font-size: 17px; }
.y-legal h2 { margin-top: 36px; font-size: 24px; }
.y-legal h2:first-child { margin-top: 0; }
.y-legal h3 { margin-top: 26px; font-size: 19px; }
.y-legal__more { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--y-line); color: var(--y-muted); font-size: 15px; }

/* ---------- Erasmus+ ---------- */

.y-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.y-steps li { position: relative; padding: 64px 26px 28px; border: var(--y-border); border-radius: var(--y-radius); background: var(--y-white); counter-increment: step; }
.y-steps li::before { content: counter(step); position: absolute; top: -22px; left: 24px; display: grid; place-items: center; width: 56px; height: 56px; border: var(--y-border); border-radius: 50%; background: var(--y-accent); color: var(--y-ink); font-family: var(--y-display); font-size: 26px; font-weight: 800; }
.y-steps h3 { margin-bottom: 8px; font-size: 24px; }
/* As many steps as there are (1-3), e.g. "From Neu-Isenburg and back" on an exchange */
.y-steps--fit { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 40px; }
.y-steps--fit h3 { font-size: 21px; }
.y-journey .y-sessions { margin-top: 28px; }

.y-faq details { border-bottom: var(--y-border); }
.y-faq details:first-child { border-top: var(--y-border); }
.y-faq summary {
    position: relative;
    padding: 20px 48px 20px 0;
    color: var(--y-ink);
    font-family: var(--y-display);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
}
.y-faq summary::-webkit-details-marker { display: none; }
.y-faq summary::after { content: '+'; position: absolute; top: 50%; right: 4px; display: grid; place-items: center; width: 32px; height: 32px; border: var(--y-border); border-radius: 50%; font-family: var(--y-font); font-size: 22px; line-height: 1; transform: translateY(-50%); transition: transform .2s, background-color .2s; }
.y-faq details[open] summary::after { background: var(--y-accent); transform: translateY(-50%) rotate(45deg); }
.y-faq details p { padding: 0 48px 22px 0; }

/* ---------- Contact ---------- */

.y-contact { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.y-contact__mail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(28px, 4vw, 44px);
    border: var(--y-border);
    border-radius: 26px;
    background: var(--y-teal);
    color: var(--y-white);
    text-decoration: none;
    box-shadow: var(--y-shadow-lg);
    transition: transform .2s, box-shadow .2s;
}
.y-contact__mail:hover { color: var(--y-white); transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--y-ink); }
.y-contact__mail .y-contact__label { color: var(--y-accent); }
.y-contact__mail .y-link-arrow { color: var(--y-accent) !important; }
.y-contact__value { font-family: var(--y-display); font-size: clamp(24px, 3.4vw, 40px); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.y-contact__cards { display: grid; gap: 16px; }
.y-contact__card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 24px; border: var(--y-border); border-radius: var(--y-radius); background: var(--y-white); }
.y-contact__card address { color: var(--y-ink); font-size: 18px; font-weight: 600; }
.y-contact__label { display: inline-flex; align-items: center; gap: 8px; color: var(--y-teal-dark); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.y-contact__socials { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.y-contact__socials a { display: inline-flex; align-items: center; gap: 6px; color: var(--y-ink); font-weight: 700; }


/* ---------- Team member ---------- */

.y-member { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
.y-member__photo img, .y-member__photo .y-person__initials { width: 100%; aspect-ratio: 1; border: var(--y-border); border-radius: 26px; object-fit: cover; box-shadow: var(--y-shadow-lg); transform: rotate(-2deg); }
.y-member__text .y-sticker { margin-bottom: 18px; }
.y-member__text .y-crumbs ol { margin-bottom: 18px; }

/* ---------- 404 ---------- */

.y-notfound { padding: clamp(56px, 10vw, 120px) 0; text-align: center; }
.y-notfound .y-pagehero__title { margin-inline: auto; }
.y-notfound .y-pagehero__intro { margin-inline: auto; }
.y-notfound .y-hero__actions { justify-content: center; }
.y-notfound__code { display: flex; align-items: center; justify-content: center; gap: .05em; color: var(--y-teal); font-family: var(--y-display); font-size: clamp(110px, 20vw, 220px); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.y-notfound__code .y-icon { width: .8em; height: .8em; color: var(--y-coral); animation: y-spin 12s linear infinite; }
@keyframes y-spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */

.y-footer { padding: clamp(56px, 7vw, 88px) 0 28px; border-top: var(--y-border); background: var(--y-teal-deep); color: #bfd9d6; font-size: 16px; }
.y-footer a { color: var(--y-white); text-decoration: none; }
.y-footer a:hover { color: var(--y-accent); }
.y-footer__cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: 48px; border-bottom: 2px solid rgba(255, 255, 255, .16); }
.y-footer__big { max-width: 640px; color: var(--y-white); font-family: var(--y-display); font-size: clamp(34px, 5vw, 62px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.y-footer__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.y-footer__cta-actions .y-btn--accent { color: var(--y-ink) !important; }
.y-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 36px; padding: 48px 0; }
.y-footer__brand { display: flex; flex-direction: column; gap: 18px; max-width: 340px; }
.y-footer__brand img { width: 78px; height: auto; }
.y-footer__title { margin-bottom: 14px !important; color: var(--y-accent); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.y-footer ul { display: grid; gap: 8px; }
.y-footer address { margin-bottom: 10px; }
.y-footer p + p { margin-top: 4px; }
.y-footer .y-socials { margin-top: 16px; }
.y-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 2px solid rgba(255, 255, 255, .16); color: #8fb3af; font-size: 14px; }

/* ---------- Programmes: Youth Work and Erasmus+ ---------- */

/* Colours of the types of activity */
.y-dot--workshops, .y-dot--youth-exchanges { --dot: var(--y-teal); }
.y-dot--community-circles, .y-dot--partnerships { --dot: var(--y-coral); }
.y-dot--neighbourhood-actions, .y-dot--training-courses { --dot: var(--y-blue); }
.y-dot--events, .y-dot--sport { --dot: #7a5cf0; }

.y-dot { display: inline-block; width: 14px; height: 14px; flex: none; border: 2px solid var(--y-ink); border-radius: 50%; background: var(--dot, var(--y-teal)); }
a.y-dot { transition: transform .15s ease; }
a.y-dot:hover, a.y-dot:focus-visible { transform: scale(1.35); }
/* The months after the first of a post about a period */
.y-dot--cont { border-style: dashed; background: color-mix(in srgb, var(--dot, var(--y-teal)) 45%, var(--y-white)); }

/* Big live numbers at the top of a programme page */
.y-pulse { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.y-pulse > li { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 20px 22px; border: var(--y-border); border-radius: var(--y-radius); background: var(--y-white); }
.y-pulse strong { color: var(--y-teal); font-family: var(--y-display); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.y-pulse strong small { color: var(--y-muted); font-size: 22px; }
.y-pulse span { color: var(--y-muted); font-size: 15px; font-weight: 600; }
.y-pulse__wide { grid-column: span 2; }
.y-pulse__wide a { color: var(--y-ink); font-family: var(--y-display); font-size: 21px; font-weight: 800; line-height: 1.2; text-decoration: none; }
.y-pulse__wide a:hover { text-decoration: underline; text-decoration-color: var(--y-accent); text-decoration-thickness: 5px; }
.y-pulse__label { color: var(--y-teal-dark) !important; font-size: 12px !important; font-weight: 800 !important; letter-spacing: .12em; text-transform: uppercase; }
.y-pulse__next { background: var(--y-accent-soft) !important; box-shadow: var(--y-shadow-sm); }

/* Month grid: one row per year, one cell per month, one dot per activity */
.y-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--y-text); font-size: 14px; font-weight: 600; }
.y-legend li { display: inline-flex; align-items: center; gap: 8px; }
/* position: relative keeps the hidden screen reader texts inside the scrolling box (otherwise the page gets wider) */
.y-rhythm { position: relative; display: grid; gap: 8px; padding: 22px; overflow-x: auto; border: var(--y-border); border-radius: var(--y-radius); background: var(--y-white); box-shadow: var(--y-shadow); }
.y-rhythm__row { display: grid; grid-template-columns: 64px repeat(12, minmax(46px, 1fr)); gap: 6px; min-width: 680px; }
.y-rhythm__row--head span { color: var(--y-muted); font-size: 12px; font-weight: 700; text-align: center; text-transform: uppercase; }
.y-rhythm__year { align-self: center; color: var(--y-ink); font-family: var(--y-display); font-size: 20px; font-weight: 800; }
.y-rhythm__cell { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px; min-height: 52px; padding: 6px; border-radius: 10px; background: var(--y-paper); }
.y-rhythm__cell.has-items { background: var(--y-paper-2); }
.y-rhythm__cell.is-future { background: repeating-linear-gradient(45deg, transparent 0 6px, var(--y-paper) 6px 12px); opacity: .6; }

/* Series cards */
.y-series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px; }
.y-series-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border: var(--y-border); border-radius: var(--y-radius); background: var(--y-white); box-shadow: var(--y-shadow); transition: transform .2s ease, box-shadow .2s ease; }
.y-series-card:hover { transform: translate(-3px, -3px); box-shadow: var(--y-shadow-lg); }
.y-series-card.is-running { box-shadow: 5px 5px 0 var(--y-teal); }
.y-series-card__photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; height: 210px; border-bottom: var(--y-border); background: var(--y-ink); }
.y-series-card__photos img { width: 100%; height: 100%; object-fit: cover; }
.y-series-card__photos img:first-child { grid-row: span 2; }
.y-series-card__photos img:only-child { grid-column: span 2; }
.y-series-card__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 20px 22px 24px; }
.y-series-card .y-card__title a::after { content: ''; position: absolute; inset: 0; }

/* Type cards with their number of activities */
.y-formats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.y-format {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: var(--y-border);
    border-radius: var(--y-radius);
    background: var(--y-white);
    color: var(--y-text) !important;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
a.y-format:hover { transform: translate(-3px, -3px); box-shadow: var(--y-shadow); }
.y-format::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 10px; border-bottom: var(--y-border); border-radius: 16px 16px 0 0; background: var(--dot, var(--y-teal)); }
.y-format--workshops, .y-format--youth-exchanges { --dot: var(--y-teal); }
.y-format--community-circles, .y-format--partnerships { --dot: var(--y-coral); }
.y-format--neighbourhood-actions, .y-format--training-courses { --dot: var(--y-blue); }
.y-format--events, .y-format--sport { --dot: #9d86f5; }
.y-format--soon { border-style: dashed; background: transparent; }
.y-format--soon::before { background: var(--y-paper-2); }
.y-format__count { margin-top: 10px; color: var(--y-ink); font-family: var(--y-display); font-size: 48px; font-weight: 800; line-height: 1; }
.y-format__name { color: var(--y-ink); font-family: var(--y-display); font-size: 22px; font-weight: 800; line-height: 1.2; }
.y-format__text { flex: 1; font-size: 15px; }
.y-format__note { color: var(--y-muted); font-size: 14px; }

/* Timeline of all activities */
.y-timeline + .y-timeline { margin-top: 44px; }
.y-timeline__year { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: var(--y-border); font-size: 34px; }
.y-timeline__year span { color: var(--y-muted); font-family: var(--y-font); font-size: 15px; font-weight: 700; letter-spacing: 0; }
.y-timeline__list { display: grid; gap: 12px; }
.y-timeline__item { position: relative; display: grid; grid-template-columns: 64px 112px minmax(0, 1fr); align-items: center; gap: 18px; padding: 10px 14px 10px 10px; border: var(--y-border); border-radius: 14px; background: var(--y-white); transition: transform .15s ease, box-shadow .15s ease; }
.y-timeline__item:hover { transform: translate(-2px, -2px); box-shadow: var(--y-shadow-sm); }
.y-timeline__item time { display: flex; flex-direction: column; align-items: center; color: var(--y-muted); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.y-timeline__item time strong { color: var(--y-ink); font-family: var(--y-display); font-size: 30px; line-height: 1; }
.y-timeline__item img { width: 112px; height: 80px; border: 1.5px solid var(--y-ink); border-radius: 8px; object-fit: cover; }
.y-timeline__item .y-card__tags { position: relative; z-index: 1; margin-bottom: 6px; }
.y-timeline__title { font-size: 19px; line-height: 1.25; }
.y-timeline__title a { color: var(--y-ink); text-decoration: none; }
.y-timeline__title a::after { content: ''; position: absolute; inset: 0; }

/* Type page */
.y-countline { margin-top: 18px !important; color: var(--y-muted); font-size: 18px; font-weight: 600; }
.y-countline strong { padding: 0 .15em; background: linear-gradient(transparent 55%, var(--y-accent) 55%); color: var(--y-ink); }
.y-filterbar { display: grid; gap: 10px; margin-bottom: 32px; padding: 16px 18px; border: 2px dashed var(--y-line); border-radius: var(--y-radius); }
.y-filterbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.y-filterbar__label { min-width: 52px; color: var(--y-muted); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.y-tag { padding: 4px 12px; border: 1.5px solid var(--y-line); border-radius: 999px; background: var(--y-white); color: var(--y-ink) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
.y-tag:hover { border-color: var(--y-ink); }
.y-tag[aria-current] { border-color: var(--y-ink); background: var(--y-ink); color: var(--y-white) !important; }
.y-card__series { display: flex; align-items: center; gap: 6px; color: var(--y-teal-dark); font-size: 14px; font-weight: 700; }
.y-card__series .y-icon { color: var(--y-coral); }

/* Sessions of a series, activities of a project */
.y-sessions { display: grid; gap: 24px; counter-reset: session; }
.y-session { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; padding: 18px; border: var(--y-border); border-radius: var(--y-radius); background: var(--y-white); box-shadow: var(--y-shadow); }
.y-session__number { position: absolute; top: -16px; left: -12px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: var(--y-border); border-radius: 50%; background: var(--y-accent); color: var(--y-ink); font-family: var(--y-display); font-size: 20px; font-weight: 800; }
.y-session__media { display: block; overflow: hidden; border: 1.5px solid var(--y-ink); border-radius: 12px; aspect-ratio: 4 / 3; }
.y-session__media img { width: 100%; height: 100%; object-fit: cover; }
.y-session__body { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.y-session__title { font-size: clamp(22px, 2.4vw, 28px); }
.y-session__title a { color: var(--y-ink); text-decoration: none; }
.y-session__title a:hover { text-decoration: underline; text-decoration-color: var(--y-accent); text-decoration-thickness: 5px; }
.y-sessions--compact .y-session { grid-template-columns: 160px minmax(0, 1fr); box-shadow: none; }
.y-sessions--compact .y-session__title { font-size: 20px; }

.y-series-nav { margin-top: 56px; padding: 22px; border: var(--y-border); border-radius: var(--y-radius); background: var(--y-teal-soft); }
.y-series-nav__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 16px !important; color: var(--y-muted); font-size: 14px; font-weight: 700; }
.y-series-nav__head a { color: var(--y-ink); font-family: var(--y-display); font-size: 20px; font-weight: 800; }
.y-series-nav__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.y-series-nav__links a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: var(--y-border); border-radius: 12px; background: var(--y-white); color: var(--y-ink); font-weight: 700; line-height: 1.3; text-decoration: none; }
.y-series-nav__links a:hover { box-shadow: var(--y-shadow-sm); }
.y-series-nav__links a.is-next { grid-column: 2; justify-content: flex-end; text-align: right; }
.y-series-nav__links small { display: block; color: var(--y-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.y-callout--soft { background: var(--y-teal-soft); }
.y-callout--soft .y-icon { color: var(--y-teal-dark); }

.y-eu__funder { display: inline-block; color: var(--y-ink); }
.y-eu__funder img { max-width: 200px; max-height: 70px; }

/* Countries of the Erasmus+ projects */
.y-countries { display: flex; flex-wrap: wrap; gap: 10px; }
.y-countries li { padding: 8px 16px; border: var(--y-border); border-radius: 999px; background: var(--y-white); color: var(--y-ink); font-weight: 700; }
.y-countries li:nth-child(4n+1) { background: var(--y-teal-soft); }
.y-countries li:nth-child(4n+3) { background: var(--y-accent-soft); }

/* Home: the two programmes */
.y-programmes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.y-programme { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(24px, 3.5vw, 40px); border: var(--y-border); border-radius: 26px; box-shadow: var(--y-shadow-lg); }
.y-programme--youth { background: var(--y-teal-soft); }
.y-programme--erasmus { background: var(--y-accent-soft); }
.y-programme__place { color: var(--y-teal-dark); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.y-programme h3 { font-size: clamp(32px, 3.6vw, 44px); }
.y-programme h3 a { color: var(--y-ink); text-decoration: none; }
.y-programme > p { max-width: 520px; }
.y-programme__latest { color: var(--y-text); font-size: 15px; }
.y-programme__latest a { color: var(--y-ink); font-weight: 700; }
.y-programme__types { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px !important; }
.y-programme__types a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: var(--y-border); border-radius: 999px; background: var(--y-white); color: var(--y-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.y-programme__types a:hover { background: var(--y-accent); }
.y-programme__types a span { color: var(--y-muted); font-size: 12px; }
.y-programme__types a.is-series { border-style: dashed; }
.y-programme__types a.is-series .y-icon { color: var(--y-coral); }
.y-programme__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--y-text); font-weight: 600; }
.y-programme__facts strong { color: var(--y-ink); font-family: var(--y-display); font-size: 34px; font-weight: 800; }
.y-programme .y-btn { margin-top: auto; }

/* Activities per year as bars */
.y-years { display: flex; align-items: stretch; gap: 10px; width: 100%; height: 150px; padding: 12px 14px 8px; border: var(--y-border); border-radius: 14px; background: var(--y-white); }
.y-years__col { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.y-years__count { color: var(--y-ink); font-family: var(--y-display); font-size: 18px; font-weight: 800; line-height: 1; }
.y-years__bar { width: 100%; max-width: 56px; height: calc(var(--h) * .7); border: 1.5px solid var(--y-ink); border-radius: 6px 6px 2px 2px; background: var(--y-teal); }
.y-years__col:last-child .y-years__bar { background: repeating-linear-gradient(-45deg, var(--y-teal) 0 6px, #2c9b9b 6px 12px); }
.y-years__label { color: var(--y-muted); font-size: 13px; font-weight: 700; }

.y-footer__inline { display: flex !important; flex-wrap: wrap; gap: 6px 16px !important; font-size: 15px; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1080px) {
    .y-nav > ul > li > a { padding: 8px 10px; }
    .y-project { grid-template-columns: minmax(0, 1fr) 300px; }
    .y-purposes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .y-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    :root { --y-header: 68px; }
    .y-nav { display: none; }
    .y-header__actions { margin-left: auto; }
    .y-burger { display: grid; }
    .y-hero__grid, .y-split, .y-feature, .y-contact, .y-member { grid-template-columns: minmax(0, 1fr); }
    .y-hero__art { max-width: 480px; justify-self: center; }
    .y-pillars, .y-steps { grid-template-columns: minmax(0, 1fr); }
    .y-steps { gap: 40px; }
    .y-feature__media { min-height: 0; aspect-ratio: 16 / 10; border-right: 0; border-bottom: var(--y-border); }
    .y-split__media { min-height: 360px; }
    .y-project { grid-template-columns: minmax(0, 1fr); padding-top: 36px; }
    .y-projecthero { grid-template-columns: minmax(0, 1fr); }
    .y-projecthero__cover { padding: 8px 8px 12px; transform: rotate(1deg); }
    .y-projecthero__cover img { max-height: 420px; }
    .y-project__aside { position: static; order: -1; }
    .y-call { grid-template-columns: minmax(0, 1fr); }
    .y-call__side { border-top: 2px dashed var(--y-ink); border-left: 0; }
    .y-call__side::before { top: -15px; left: -16px; }
    .y-call__side::after { top: -15px; right: -16px; bottom: auto; left: auto; }
    .y-mission { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .y-member { justify-items: start; }
    .y-member__photo { width: min(240px, 70%); }
}

@media (max-width: 640px) {
    body.y-body { font-size: 16px; }
    .y-logo .y-logo__word { display: none; }
    .y-header__cta { padding-inline: .9em; }
    .y-lang { min-width: 36px; height: 34px; padding: 0 8px; }
    .y-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .y-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
    .y-stats > div:nth-child(n+3) { border-top: 2px dashed var(--y-line); }
    .y-purposes { grid-template-columns: minmax(0, 1fr); }
    .y-footer__grid { grid-template-columns: minmax(0, 1fr); }
    .y-polaroid { padding: 7px 7px 20px; }
    .y-polaroid::before { width: 60px; height: 20px; }
    .y-split__badge { width: 96px; height: 96px; }
    .y-split__badge strong { font-size: 26px; }
    .y-prose { font-size: 17px; }
    .y-faq summary { font-size: 19px; }
    .y-lightbox__prev, .y-lightbox__next { top: auto; bottom: 20px; transform: none; }
    .y-lightbox__prev { left: calc(50% - 64px); }
    .y-lightbox__next { right: calc(50% - 64px); }
}

@media (max-width: 960px) {
    .y-programmes { grid-template-columns: minmax(0, 1fr); }
    .y-session { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 640px) {
    .y-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .y-pulse > li { padding: 16px; }
    .y-pulse__wide { grid-column: span 2; }
    .y-pulse strong { font-size: 36px; }
    .y-rhythm { padding: 14px; }
    .y-session, .y-sessions--compact .y-session { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 14px; }
    .y-timeline__item { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; }
    .y-timeline__item img { display: none; }
    .y-timeline__item time strong { font-size: 24px; }
    .y-timeline__year { font-size: 28px; }
    .y-series-nav__links { grid-template-columns: minmax(0, 1fr); }
    .y-series-nav__links a.is-next { grid-column: auto; }
}

/* Less movement for people who asked for it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .y-circled svg { stroke-dashoffset: 0; }
    .y-ticker__track { flex-wrap: wrap; width: auto; }
    .y-ticker ul[aria-hidden] { display: none; }
    .y-ticker ul { flex-wrap: wrap; }
}

@media print {
    .y-header, .y-footer, .y-ticker, .y-share, .y-project__buttons, .y-lightbox { display: none !important; }
    body.y-body { background: #fff; }
}

/* Hidden cards and buttons of the list filters */
.y-body [hidden] { display: none !important; }
.y-filterbar .y-tag { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.y-filterbar .y-tag span { color: var(--y-muted); font-size: 12px; }
.y-filterbar .y-tag[aria-pressed="true"] { border-color: var(--y-ink); background: var(--y-ink); color: var(--y-white) !important; }
.y-filterbar .y-tag[aria-pressed="true"] span { color: var(--y-accent); }
.y-filterbar .y-filter__search { flex: none; max-width: 420px; margin-top: 4px; }
.y-filterbar .y-filter__search input { width: 100%; height: 46px; padding: 0 20px 0 50px; border: var(--y-border); border-radius: 999px; background: var(--y-white); font: inherit; font-size: 15px; }
.y-linkbtn { padding: 0; border: 0; background: none; color: var(--y-teal-dark); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
