/* Élő Delta – Zöld Energia a Szigetközbe: projektoldal az arculati kézikönyv (1.0, 2026. október) szerint.
   Színek: 4.3 · Betűk: 5.1 (Google Fonts változat: Montserrat + Open Sans) · Motívum: 6.1 */
:root {
  --ed-blue: #105380;
  --ed-lime: #b3c831;
  --ed-lime-light: #dcee6f;
  --ed-yellow: #ffcf06;
  --ed-yellow-light: #f8df4a;
  --ed-red: #cd2a3e;
  --ed-green: #3d8a41;
  --ed-ink: #12324b;
  --ed-muted: #4c6476;
  --ed-bg: #ffffff;
  --ed-tint: #f3f8e2;
  --ed-lime-text: #5e7a12;
  --ed-line: #d9e3c4;
  --ed-head: "Montserrat", system-ui, sans-serif;
  --ed-text: "Open Sans", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ed-lime-text: #c9dc5a; --ed-ink: #e6eef5; --ed-muted: #a8bccb; --ed-bg: #0d2233; --ed-tint: #142d40; --ed-line: #24425a; } }
:root[data-theme="dark"] { --ed-lime-text: #c9dc5a; --ed-ink: #e6eef5; --ed-muted: #a8bccb; --ed-bg: #0d2233; --ed-tint: #142d40; --ed-line: #24425a; }

.elo-delta-page { background: var(--ed-bg); }
.elo-delta-page .stream .fill { stroke: var(--ed-lime); }
.ed { color: var(--ed-ink); font-family: var(--ed-text); font-size: 17px; line-height: 1.65; background: var(--ed-bg); }
.ed-wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* hero */
.ed-hero { padding-block: clamp(40px, 7vw, 96px) clamp(32px, 5vw, 64px); }
.ed-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.ed-hero-text { display: grid; gap: 18px; }
.ed-kicker { margin: 0; font: 700 13px/1.2 var(--ed-head); letter-spacing: .16em; text-transform: uppercase; color: var(--ed-lime-text); }
.ed-title { margin: 0; display: grid; gap: 6px; font-family: var(--ed-head); text-transform: uppercase; color: var(--ed-blue); line-height: 1; text-wrap: balance; }
.ed-title-main { font-weight: 800; font-size: clamp(48px, 8vw, 104px); letter-spacing: .02em; }
.ed-title-main em { font-style: normal; color: var(--ed-lime); }
.ed-title-sub { font-weight: 300; font-size: clamp(20px, 2.6vw, 32px); letter-spacing: .06em; }
.ed-lead { margin: 6px 0 0; font: 700 clamp(19px, 2vw, 23px)/1.4 var(--ed-text); color: var(--ed-ink); }
.ed-intro { margin: 0; max-width: 58ch; color: var(--ed-muted); }
.ed-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ed-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 4px; background: var(--ed-blue); color: #ffffff; text-decoration: none; font: 700 14px/1 var(--ed-head); letter-spacing: .06em; text-transform: uppercase; transition: transform .45s ease, background .45s ease; }
.ed-btn:hover { transform: translateY(-2px); background: #0b3f62; }
.ed-btn-line { background: transparent; color: var(--ed-blue); box-shadow: inset 0 0 0 2px var(--ed-blue); }
.ed-btn-line:hover { background: var(--ed-tint); }
.ed-hero-logo { margin: 0; justify-self: center; background: #ffffff; padding: clamp(20px, 3vw, 36px); border-radius: 6px; box-shadow: 0 0 0 1px var(--ed-line); }
.ed-hero-logo img { width: clamp(160px, 22vw, 260px); height: auto; display: block; }
@media (max-width: 820px) { .ed-hero-grid { grid-template-columns: minmax(0, 1fr); } .ed-hero-logo { justify-self: start; order: -1; } .ed-hero-logo img { width: 140px; } }

/* kiemelt programnévmező (2.2): kék mező, bal oldalán piros-fehér-zöld ferde négyszögek */
.ed-namefield { position: relative; display: flex; align-items: center; min-height: 64px; margin-right: max(16px, calc((100vw - 1160px) / 2)); background: var(--ed-blue); color: #ffffff; padding-left: max(120px, calc((100vw - 1160px) / 2 + 120px)); padding-right: 24px; }
.ed-tricolor { position: absolute; top: 0; bottom: 0; left: max(16px, calc((100vw - 1160px) / 2 + 16px)); display: flex; gap: 6px; }
.ed-tricolor i { width: 18px; height: 100%; transform: skewX(-24deg); }
.ed-tricolor i:nth-child(1) { background: var(--ed-red); }
.ed-tricolor i:nth-child(2) { background: #ffffff; }
.ed-tricolor i:nth-child(3) { background: var(--ed-green); }
.ed-namefield-text { font: 300 clamp(13px, 1.6vw, 18px)/1.3 var(--ed-head); letter-spacing: .08em; text-transform: uppercase; padding-block: 14px; }
.ed-namefield-text b { font-weight: 800; }
@media (max-width: 600px) { .ed-namefield { margin-right: 0; padding-left: 104px; } }

/* számok */
.ed-stats { padding-block: clamp(36px, 5vw, 64px); }
.ed-stats dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.ed-stats dl > div { padding: 6px 20px; border-left: 3px solid var(--ed-lime); display: grid; gap: 6px; align-content: start; }
.ed-stats dt { font: 800 clamp(30px, 4vw, 48px)/1 var(--ed-head); color: var(--ed-blue); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ed-stats dt small { font-size: .42em; font-weight: 700; letter-spacing: .02em; }
.ed-stats dd { margin: 0; color: var(--ed-muted); font-size: 15px; line-height: 1.4; }
@media (max-width: 760px) { .ed-stats dl { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; } }

/* terülőminta (6.1): csak díszítő sávként, szöveg mögött nem */
.ed-pattern { height: 64px; background: url("../img/elo-delta/minta-csempe.svg") 0 50% / 72px auto repeat-x; opacity: .9; animation: ed-drift 90s linear infinite; }
@keyframes ed-drift { to { background-position: 720px 50%; } }

/* szöveg (az oldal szerkeszthető tartalma) */
.ed-body { padding-block: clamp(40px, 6vw, 80px); }
.ed-content { display: grid; gap: 18px; max-width: 820px; }
.ed-content > * { margin: 0; }
.ed-content h2 { font: 800 clamp(24px, 3vw, 34px)/1.15 var(--ed-head); text-transform: uppercase; letter-spacing: .02em; color: var(--ed-blue); margin-top: clamp(24px, 4vw, 44px); display: flex; align-items: center; gap: 14px; }
.ed-content h2::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--ed-yellow); box-shadow: 0 0 0 4px var(--ed-yellow-light); }
.ed-content h2:first-child { margin-top: 0; }
.ed-content h3 { font: 300 clamp(18px, 2vw, 22px)/1.35 var(--ed-head); text-transform: uppercase; letter-spacing: .05em; color: var(--ed-blue); }
.ed-content p { color: var(--ed-muted); }
.ed-content strong { color: var(--ed-ink); }
.ed-content a { color: var(--ed-blue); }
.ed-content ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.ed-content ul li { padding: 10px 16px; border-radius: 4px; background: var(--ed-tint); box-shadow: inset 4px 0 0 var(--ed-lime); font: 700 15px/1.3 var(--ed-head); color: var(--ed-ink); }
.ed-content blockquote { margin: 0; padding: 20px 24px; background: var(--ed-tint); border-left: 0; box-shadow: inset 4px 0 0 var(--ed-yellow); font: 700 18px/1.5 var(--ed-text); color: var(--ed-ink); }
.ed-content blockquote p { color: inherit; }
.ed-content .ed-closing { padding: clamp(22px, 3vw, 32px); background: var(--ed-blue); color: #ffffff; border-radius: 4px; }
.ed-content .ed-closing p, .ed-content .ed-closing strong { color: #ffffff; }
.ed-content .ed-closing { display: grid; gap: 12px; }
.ed-content .ed-closing > * { margin: 0; }
.ed-content :where(#szeretlek-szigetkoz) { scroll-margin-top: 110px; }

/* videók: kattintásra töltődő, sütimentes YouTube-lejátszás */
.ed-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; margin: 8px 0 0; }
.ed-content > .ed-videos { max-width: none; width: min(1128px, calc(100vw - 32px)); }
.ed-video { margin: 0; display: grid; gap: 10px; align-content: start; }
.ed-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 4px; overflow: hidden; background: #0b2a40; cursor: pointer; }
.ed-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s ease, opacity .6s ease; }
.ed-play:hover img { transform: scale(1.04); opacity: .9; }
.ed-play-icon { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--ed-yellow); box-shadow: 0 6px 20px rgba(0,0,0,.35); transition: transform .45s ease; }
.ed-play-icon::after { content: ""; position: absolute; left: 27px; top: 21px; border-left: 20px solid var(--ed-blue); border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.ed-play:hover .ed-play-icon { transform: scale(1.08); }
.ed-play iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ed-video figcaption { display: grid; gap: 4px; }
.ed-video time { font: 700 12px/1 var(--ed-head); letter-spacing: .1em; text-transform: uppercase; color: var(--ed-lime-text); }
.ed-video figcaption a { font: 700 16px/1.35 var(--ed-head); color: var(--ed-ink); text-decoration: none; }
.ed-video figcaption a:hover { color: var(--ed-blue); text-decoration: underline; }
.ed-videos-note { font-size: 14px; }
.ed-videos-empty { display: grid; gap: 14px; justify-items: start; padding: 24px; background: var(--ed-tint); border-radius: 4px; }
.ed-videos-empty .ed-btn { color: #ffffff; }

/* támogatói blokk (3., 11.1) */
.ed-support { margin-block: clamp(40px, 6vw, 72px); padding: clamp(24px, 4vw, 40px); background: #ffffff; color: #12324b; border-radius: 6px; box-shadow: 0 0 0 1px var(--ed-line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ed-support-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; }
.ed-support-logos > img { width: 120px; height: auto; }
.ed-gov { display: grid; justify-items: center; gap: 8px; text-align: center; padding-left: 32px; border-left: 1px solid #d9e3c4; }
.ed-gov img { width: 110px; height: auto; }
.ed-support-text { margin: 0; max-width: 24ch; font: 400 13px/1.45 "Open Sans", system-ui, sans-serif; color: #333333; }
.ed-data { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.ed-data div { display: grid; gap: 2px; }
.ed-data .wide { grid-column: 1 / -1; }
.ed-data dt { font: 700 11px/1.3 var(--ed-head); letter-spacing: .12em; text-transform: uppercase; color: #6b8a2a; }
.ed-data dd { margin: 0; font: 400 15px/1.5 var(--ed-text); color: #12324b; }
.ed-missing { color: #a03030; font-style: italic; }
@media (max-width: 860px) { .ed-support { grid-template-columns: minmax(0, 1fr); } .ed-data { grid-template-columns: minmax(0, 1fr); } .ed-gov { padding-left: 0; border-left: 0; } }

@media (prefers-reduced-motion: reduce) { .ed-pattern { animation: none; } }
