/* =============================================================================
   Civil Érdek – SHARED header + 404 page for every site
   Served from https://civilerdek.hu/css/kozos.css and loaded by:
     civilerdek-site, godollo-site, kistarcsa-site, godollo-dashboard,
     kistarcsa-dashboard, hongene-terkeptar, hybern
   Change it here only (bump ?v= in the sites when you do). Markup reference:
   civilerdek-site/README.md → "Shared header and 404".
   Everything is prefixed ce- and sets its own fonts/colours, so it looks the
   same next to plain CSS, Tailwind 3/4, shadcn and the Hongene styles.
   ========================================================================== */
.ce-header, .ce-404, .ce-page {
  --ce-ink: #0f1f17;
  --ce-muted: #4b5d53;
  --ce-green: #14532d;
  --ce-green-2: #1f7a45;
  --ce-tint: #e7f0ea;
  --ce-line: #ddd8cc;
  --ce-paper: #f6f4ee;
  --ce-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------------------------------------------------------------- header */
.ce-header {
  position: relative;
  z-index: 1100;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 20px;
  width: 100%;
  height: auto;
  min-height: 72px;
  margin: 0;
  padding: 12px 24px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--ce-line);
  box-shadow: none;
  backdrop-filter: none;
  color: var(--ce-ink);
  font-family: var(--ce-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: normal;
  text-align: left;
}
.ce-header *, .ce-header *::before, .ce-header *::after { box-sizing: border-box; }

.ce-brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  color: var(--ce-green);
  text-decoration: none;
  font-family: var(--ce-font);
  letter-spacing: normal;
}
.ce-brand img { display: block; flex: none; width: 44px; height: 44px; margin: 0; }
.ce-wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.ce-name { font-size: 1.25rem; font-weight: 400; letter-spacing: -.01em; color: var(--ce-green); }
.ce-name strong { font-weight: 800; }
.ce-sub { margin-top: 2px; font-size: .8rem; font-weight: 500; letter-spacing: .01em; color: var(--ce-muted); }
.ce-brand:focus-visible, .ce-trail a:focus-visible, .ce-pill:focus-visible { outline: 3px solid var(--ce-green-2); outline-offset: 3px; border-radius: 8px; }

/* "Where am I" trail: Gödöllő › Környezeti dashboard */
.ce-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  min-width: 0;
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 1px solid var(--ce-line);
  font-size: .95rem;
  font-weight: 600;
}
.ce-trail a, .ce-trail [aria-current] { padding: 6px 10px; border-radius: 999px; line-height: 1.2; }
.ce-trail a { color: var(--ce-green); text-decoration: none; }
.ce-trail a:hover { background: var(--ce-tint); }
.ce-trail [aria-current] { color: var(--ce-ink); }
.ce-sep { color: var(--ce-muted); font-weight: 400; }

/* Page-specific buttons/links, right-aligned */
.ce-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.ce-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px var(--ce-green);
  color: var(--ce-green);
  font-family: var(--ce-font);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  background: transparent;
}
.ce-pill:hover { background: var(--ce-green); color: #fff; }

/* Social link(s), right end of the header (after ce-actions when a page has them) */
.ce-header .ce-social {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border-radius: 50%;
  color: #0866ff;
  text-decoration: none;
  transition: background .15s ease;
}
.ce-header .ce-actions ~ .ce-social { margin-left: 0; }
.ce-header .ce-social:hover { background: #e7f0fe; color: #0866ff; }
.ce-header .ce-social:focus-visible { outline: 3px solid var(--ce-green-2); outline-offset: 2px; }
.ce-header .ce-social svg { display: block; width: 28px; height: 28px; }

@media (max-width: 720px) {
  .ce-header { gap: 6px 12px; padding: 10px 16px; }
  .ce-trail { order: 3; width: 100%; padding: 6px 0 0; border-left: 0; border-top: 1px solid var(--ce-line); }
  .ce-trail a, .ce-trail [aria-current] { padding: 4px 8px; }
}

/* ---------------------------------------------------------------- 404 page */
body.ce-page { margin: 0; }
.ce-page { min-height: 100vh; background: var(--ce-paper); color: var(--ce-ink); font-family: var(--ce-font); }
.ce-404 { box-sizing: border-box; max-width: 680px; margin: 0 auto; padding: 72px 24px 96px; font-family: var(--ce-font); color: var(--ce-ink); }
.ce-404-code {
  margin: 0 0 8px;
  font-size: clamp(5rem, 20vw, 9rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--ce-green);
}
.ce-404 h1 { margin: 0 0 16px; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--ce-ink); }
.ce-404 p { margin: 0 0 28px; font-size: 1.1rem; line-height: 1.6; color: var(--ce-muted); }
.ce-404-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }
.ce-btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ce-green);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.ce-btn:hover { background: var(--ce-green-2); color: #fff; }
.ce-404-sites { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ce-404-label { margin: 0 0 10px !important; font-size: .8rem !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ce-green-2) !important; }

/* ---------------------------------------------------------------- consent popup (js/hozzajarulas.js) */
.ce-consent {
  --ce-ink: #0f1f17; --ce-muted: #4b5d53; --ce-green: #14532d; --ce-green-2: #1f7a45; --ce-line: #ddd8cc; --ce-paper: #f6f4ee;
  box-sizing: border-box;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ce-ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 24px 70px rgba(15, 31, 23, .35);
  overflow: auto;
  z-index: 2147483000;
}
.ce-consent::backdrop { background: rgba(15, 31, 23, .62); }
.ce-consent.ce-docked { position: fixed; inset: auto 16px 16px auto; margin: 0; border: 1px solid var(--ce-line); }
.ce-consent *, .ce-consent *::before, .ce-consent *::after { box-sizing: border-box; }
.ce-consent [hidden] { display: none !important; }
.ce-consent-body { padding: 24px 26px; }
.ce-consent-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ce-consent h2 { margin: 0 0 10px; font-size: 1.35rem; font-weight: 800; line-height: 1.2; color: var(--ce-ink); }
.ce-consent p { margin: 0 0 16px; font-size: .95rem; color: var(--ce-muted); }
.ce-consent a { color: var(--ce-green); font-weight: 600; }
.ce-consent-close { flex: none; width: 40px; height: 40px; margin: -6px -8px 0 0; padding: 0; border: 0; border-radius: 50%; background: var(--ce-paper); color: var(--ce-ink); font: inherit; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.ce-consent-opts { margin: 0 0 18px; border: 1px solid var(--ce-line); border-radius: 12px; }
.ce-consent-opt { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; cursor: pointer; }
.ce-consent-opt + .ce-consent-opt { border-top: 1px solid var(--ce-line); }
.ce-consent-opt input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ce-green); }
.ce-consent-opt input:disabled { cursor: not-allowed; }
.ce-consent-opt strong { display: block; font-weight: 700; color: var(--ce-ink); }
.ce-consent-opt span span { display: block; font-size: .88rem; color: var(--ce-muted); }
.ce-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ce-consent-actions button { flex: 1 1 150px; margin: 0; padding: 12px 18px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; }
.ce-c-solid { background: var(--ce-green); color: #fff; }
.ce-c-solid:hover { background: var(--ce-green-2); }
.ce-c-ghost { background: transparent; color: var(--ce-green); box-shadow: inset 0 0 0 2px var(--ce-green); }
.ce-c-ghost:hover { background: var(--ce-green); color: #fff; }
.ce-consent button:focus-visible, .ce-consent a:focus-visible, .ce-consent input:focus-visible { outline: 3px solid var(--ce-green-2); outline-offset: 2px; }
@media (max-width: 480px) { .ce-consent-body { padding: 20px 18px; } }
.ce-404-legal { margin: 40px 0 0 !important; font-size: .9rem !important; }
.ce-404-legal a { color: var(--ce-muted); }
