/* Homepage only: the shared styles and all other pages remain independent. */
.home-page {
  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --home-ink: #004a63;
  --home-muted: #405b63;
  --home-rule: #c1e3df;
  margin: 0;
  color: var(--home-ink);
  background: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}
.home-page *, .home-page *::before, .home-page *::after { box-sizing: border-box; }
.home-page main { padding-top: 88px; }
.home-page h1, .home-page h2, .home-page h3, .home-page p { margin: 0; }
.home-page h2 { font-size: clamp(1.65rem, 2.5vw, 2.15rem); font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
.home-page h3 { font-weight: 600; line-height: 1.3; }
.home-container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 48px; }
.home-page section, .home-page aside { scroll-margin-top: 112px; }
.home-page a, .home-page button, .home-page input, .home-page summary { -webkit-tap-highlight-color: transparent; }
.home-page :is(a, button, input, summary):focus-visible { outline: 2px solid #004a63; outline-offset: 5px; }
.home-skip { position: fixed; left: 16px; top: -100px; z-index: 100; padding: 12px 20px; color: #fff; background: #004a63; }
.home-skip:focus { top: 12px; }

/* Reuse the shared navigation behavior; restyle it on this page alone. */
.home-page #siteNav { background: rgba(255,255,255,.97); backdrop-filter: blur(8px); border-bottom: 1px solid #e6efee; }
.home-page #siteNav > nav { height: 88px; max-width: 1440px; gap: 24px; padding-inline: 48px; }
.home-page #siteNav nav > a { gap: 16px; flex-shrink: 0; }
.home-page #siteNav .nav-mark-dark { width: 54px; height: 54px; }
.home-page #siteNav .home-wordmark {
  display: block; width: 278px; aspect-ratio: auto; background: none;
  -webkit-mask: none; mask: none; font-family: var(--font-display);
  font-size: 17px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em;
}
.home-page #siteNav [aria-current="page"] { color: #004a63; text-decoration: underline; text-decoration-color: #83c5be; text-decoration-thickness: 3px; text-underline-offset: 12px; }
.home-page #siteNav nav > div:first-of-type { gap: 25px; font-size: 14px; white-space: nowrap; }
.home-page #siteNav nav > div:last-of-type { gap: 18px; }
.home-page .lang-toggle { display: flex; gap: 8px; padding: 0 0 0 15px; border: 0; border-left: 1px solid #c1e3df; border-radius: 0; background: transparent; font-size: 12px; }
.home-page .lang-toggle .knob { display: none; }
.home-page .lang-toggle [data-opt] { padding: 7px 0; color: #60747a; font-weight: 400; }
.home-page .lang-toggle [data-opt="en"]::before { content: "/"; margin-right: 8px; color: #83c5be; }
.home-page .lang-toggle[data-lang="hu"] [data-opt="hu"],
.home-page .lang-toggle[data-lang="en"] [data-opt="en"] { color: #004a63; font-weight: 600; }
.home-page #siteNav nav > div:last-of-type > a {
  padding: 5px 0; border-radius: 0; background: transparent; box-shadow: none;
  font-size: 14px; text-decoration: underline; text-underline-offset: 5px;
}
.home-page #mobileMenu { box-shadow: none; }
.home-page #mobileMenu a { border-radius: 0; }
.home-page #menuBtn { border-radius: 0; }

.home-hero { background: linear-gradient(105deg, #fff 13%, #f6fbfa 47%, #d8efec 100%); }
.home-hero .home-container { padding-block: 48px 46px; }
.home-hero h1 { max-width: 1100px; font-size: clamp(2.4rem, 4.65vw, 4rem); font-weight: 500; line-height: 1.12; letter-spacing: -.045em; }
.home-hero h1 span { display: block; }
.home-hero h1 span:last-child { margin-top: 3px; color: #086b70; }
.home-hero .home-hero-lead { max-width: 800px; margin-top: 23px; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.5; color: #213e46; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin-top: 28px; }
.home-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 47px; padding: 11px 20px; border: 1px solid #004a63; border-radius: 0; background: #004a63; color: #fff; font: inherit; font-size: 15px; font-weight: 500; line-height: 1.4; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .18s; }
.home-button:hover { background: #003a4e; }
.home-button:disabled { cursor: wait; opacity: .6; }
.home-text-link { display: inline-flex; align-items: center; gap: 14px; width: fit-content; color: #004a63; font-weight: 500; line-height: 1.4; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.home-text-link:hover { color: #086b70; text-decoration-thickness: 2px; }
.home-arrow { flex-shrink: 0; display: inline-flex; width: 1.2em; height: 1.2em; vertical-align: middle; }
.home-arrow svg { display: block; width: 100%; height: 100%; }
.home-overview { position: relative; display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); gap: 42px; padding-block: 43px; }
.home-overview::before { content: ""; position: absolute; top: 16px; left: 48px; right: 48px; height: 1px; background: #83c5be; }
.home-section-lead { margin-top: 15px !important; color: var(--home-muted); line-height: 1.6; }
.home-groups > .home-section-lead { font-size: 17px; margin-top: 10px !important; }
.home-group-list { margin-top: 21px; }
.home-group { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.65fr) 20px; align-items: start; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--home-rule); color: #004a63; text-decoration: none; }
.home-group:first-child { padding-top: 0; }
.home-group:last-child { border-bottom: 0; }
.home-group-name { font-size: clamp(1.15rem, 1.65vw, 1.4rem); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.home-group-summary { font-size: 16px; line-height: 1.5; color: #344f57; }
.home-group .home-arrow { margin-top: 4px; }
.home-group:hover .home-group-name { color: #086b70; text-decoration-thickness: 2px; }
.home-all-groups { margin-top: 18px; font-size: 15px; }
.home-empty { padding-block: 20px; color: var(--home-muted); }
.home-mission { align-self: start; padding: 28px 30px; background: #edf7f5; }
.home-mission-rule { width: 64px; height: 4px; margin-bottom: 23px; background: #83c5be; }
.home-mission-title { margin-top: 18px !important; font-size: 20px; font-weight: 500; line-height: 1.45; }
.home-mission-lead { margin-top: 14px; font-size: 17px; line-height: 1.6; color: #344f57; }
.home-mission > .home-text-link { margin-top: 24px; }
.home-principles { margin-top: 26px; padding-top: 16px; border-top: 1px solid #c1e3df; }
.home-principles summary { cursor: pointer; font-size: 15px; font-weight: 500; }
.home-principle-list { display: grid; gap: 20px; margin-top: 20px; font-size: 15px; color: #344f57; }
.home-principle-list h3 { margin-bottom: 6px; color: #004a63; font-size: 16px; }

.home-section { padding-block: 58px; }
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.home-section-heading > div { max-width: 760px; }
.home-eyebrow { margin-bottom: 12px !important; color: #426c70; font-size: 12px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.home-events { background: #edf7f5; }
.home-page #eventGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-page #eventGrid > article { margin: 0; border: 0; border-top: 1px solid #83c5be; border-radius: 0; padding: 22px 0 0; background: transparent; box-shadow: none; }
.home-page #eventGrid > article > div:first-child { border-radius: 0; }
.home-page #eventGrid a { border-radius: 0; }
.home-page #eventGrid h3 { font-size: 20px; font-weight: 500; }
.home-newsletter-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 80px; }
.home-newsletter h2 { max-width: 650px; }
.home-newsletter-benefits { display: grid; gap: 12px; margin-top: 26px; padding-left: 20px; list-style: square; color: var(--home-muted); }
.home-newsletter-benefits li::marker { color: #004a63; }
.home-newsletter-form { padding: 30px; border: 1px solid #c1e3df; background: #fff; }
.home-download { display: flex; gap: 16px; align-items: center; padding-bottom: 22px; margin-bottom: 20px; border-bottom: 1px solid #e1efed; font-weight: 500; }
.home-file-type { display: grid; place-items: center; min-width: 44px; height: 52px; border: 1px solid #83c5be; font-size: 11px; font-weight: 600; }
.home-file-meta { margin-top: 3px !important; font-size: 13px; color: var(--home-muted); font-weight: 400; }
.home-newsletter-form > label { display: block; margin-top: 16px; margin-bottom: 7px; font-size: 14px; }
.home-newsletter-form > input { width: 100%; height: 45px; padding: 9px 12px; border: 1px solid #9bbdb9; border-radius: 0; background: #fff; font: inherit; }
.home-newsletter-form .home-consent { display: flex; align-items: start; gap: 12px; margin-block: 20px; color: #344f57; font-size: 13px; }
.home-consent input { margin-top: 4px; accent-color: #004a63; }
.home-consent a { text-decoration: underline; text-underline-offset: 3px; }
.home-newsletter-form > .home-button { width: 100%; justify-content: space-between; }
.home-form-message { margin-top: 16px !important; padding: 12px; border-left: 3px solid #004a63; background: #edf7f5; color: #004a63; font-size: 14px; }
.home-form-message[data-state="error"] { border-left-color: #9b3030; background: #fff4f1; color: #7d2929; }
.home-partners { border-top: 1px solid #e1efed; }
.home-partners h2 { font-size: 20px; text-align: center; }
.home-partner-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 48px; margin-top: 30px; padding: 0; list-style: none; }
.home-partner-list img { width: auto; max-width: 145px; max-height: 42px; object-fit: contain; }
.home-partner-list a { color: var(--home-muted); font-size: 16px; text-decoration: underline; text-underline-offset: 5px; }
.home-join { background: #edf7f5; }
.home-join-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 60px; align-items: center; }
.home-join .home-actions { align-items: start; margin-top: 0; flex-direction: column; gap: 20px; }
.home-page #toTop { border-radius: 0; box-shadow: none; }

@media (max-width: 1200px) {
  .home-page #siteNav > nav { gap: 16px; }
  .home-page #siteNav .home-wordmark { width: 230px; font-size: 15px; }
  .home-page #siteNav nav > div:first-of-type { gap: 17px; font-size: 13px; }
  .home-page #siteNav nav > div:last-of-type { gap: 12px; }
  .home-overview { gap: 30px; }
  .home-mission { padding: 25px; }
}
@media (min-width: 1101px) {
  .home-page #siteNav nav > div:first-of-type { display: flex; }
  .home-page #menuBtn, .home-page #mobileMenu { display: none; }
}
@media (max-width: 1100px) {
  .home-page #siteNav nav > div:first-of-type { display: none; }
  .home-page #menuBtn { display: inline-flex; }
  .home-page #mobileMenu:not(.hidden) { display: block; }
  .home-page #eventGrid { grid-template-columns: 1fr; gap: 28px; }
  .home-group { grid-template-columns: minmax(0, 1fr) 20px; gap: 8px 16px; }
  .home-group-summary { grid-column: 1; }
  .home-group .home-arrow { grid-column: 2; grid-row: 1; }
}
@media (max-width: 760px) {
  .home-container { padding-inline: 24px; }
  .home-page #siteNav > nav { height: 76px; padding-inline: 24px; }
  .home-page main { padding-top: 76px; }
  .home-page #siteNav .nav-mark-dark { width: 42px; height: 42px; }
  .home-page #siteNav .home-wordmark { width: 220px; font-size: 15px; }
  .home-hero .home-container { padding-block: 40px; }
  .home-hero h1 { font-size: clamp(2.25rem, 6.7vw, 3.1rem); }
  .home-hero .home-hero-lead { font-size: 18px; }
  .home-overview { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
  .home-overview::before { left: 24px; right: 24px; top: 14px; }
  .home-group { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr) 20px; gap: 14px; }
  .home-group-summary { grid-column: auto; }
  .home-group .home-arrow { grid-column: auto; grid-row: auto; }
  .home-mission { padding: 28px; }
  .home-newsletter-grid, .home-join-grid { grid-template-columns: 1fr; gap: 30px; }
  .home-section { padding-block: 42px; }
  .home-section-heading { align-items: start; flex-direction: column; gap: 18px; }
}
@media (max-width: 600px) {
  .home-page #siteNav nav > div:last-of-type > a { display: none; }
  .home-page #siteNav .home-wordmark { width: 176px; font-size: 13px; }
  .home-page #siteNav nav > a { gap: 10px; }
  .home-page #siteNav nav > div:last-of-type { gap: 7px; }
  .home-page .lang-toggle { border: 0; padding: 0; font-size: 11px; }
  .home-page #menuBtn { width: 35px; height: 40px; }
  .home-page #menuBtn svg { width: 22px; }
  .home-group { grid-template-columns: minmax(0, 1fr) 20px; gap: 9px 16px; }
  .home-group-summary { grid-column: 1; font-size: 15px; }
  .home-group .home-arrow { grid-column: 2; grid-row: 1; }
  .home-group-name { font-size: 21px; }
  .home-actions { gap: 20px; }
  .home-newsletter-form { padding: 22px; }
}
@media (max-width: 400px) {
  .home-container, .home-page #siteNav > nav { padding-inline: 18px; }
  .home-page #siteNav > nav { gap: 10px; }
  .home-page #siteNav .nav-mark-dark { width: 32px; height: 32px; }
  .home-page #siteNav .home-wordmark { width: 139px; font-size: 11.5px; }
  .home-overview::before { left: 18px; right: 18px; }
  .home-hero h1 { font-size: 34px; }
  .home-hero .home-hero-lead { font-size: 17px; }
  .home-button { padding-inline: 15px; gap: 12px; font-size: 14px; }
}
