/* MAVEG Visual Editor – narrowly scoped presentation corrections requested at handoff. */

/* Keep third party translation bars from creating an empty strip above the approved header. */
html.translated-ltr,
html.translated-rtl { margin-top: 0 !important; }
body { top: 0 !important; }
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }

/* The secondary home hero action must read as an actual button. */
body.maveg-experience .maveg-hero__actions .maveg-button--ghost {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 23px;
  border: 1px solid rgba(13, 81, 52, .32);
  border-radius: 999px;
  color: #0d5134;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px rgba(13, 81, 52, .09);
  font-weight: 850;
  text-decoration: none;
}
body.maveg-experience .maveg-hero__actions .maveg-button--ghost:hover {
  color: #fff;
  border-color: #0d5134;
  background: #0d5134;
}

/* Registration level cards: reliable contrast in every nested plugin element. */
.maveg-page-tag-regisztracio .maveg-level-card {
  overflow: hidden;
}
.maveg-page-tag-regisztracio .maveg-level-card:nth-child(3),
.maveg-page-tag-regisztracio .maveg-level-card:nth-child(3) :where(h1,h2,h3,h4,p,li,span,strong,small,label) {
  color: #fff !important;
}
.maveg-page-tag-regisztracio .maveg-level-card:nth-child(3) .maveg-level-price {
  color: #b9f346 !important;
}
.maveg-page-tag-regisztracio .maveg-level-card .maveg-select-level,
.maveg-page-tag-regisztracio .maveg-level-card :where(a.button,button,input[type="submit"]) {
  min-height: 52px;
  color: #fff !important;
  border-color: #0d5134 !important;
  background: #0d5134 !important;
  font-weight: 850 !important;
}
.maveg-page-tag-regisztracio .maveg-level-card:nth-child(3) .maveg-select-level,
.maveg-page-tag-regisztracio .maveg-level-card:nth-child(3) :where(a.button,button,input[type="submit"]) {
  color: #123d2d !important;
  border-color: #b9f346 !important;
  background: #b9f346 !important;
}

/* WooCommerce related-products heading and cards should never overwhelm the product page. */
body.maveg-experience.single-product .related.products > h2,
body.maveg-native-theme.single-product .related.products > h2 {
  margin: clamp(46px, 7vw, 90px) 0 24px;
  font-size: clamp(1.9rem, 3.7vw, 3.4rem) !important;
  line-height: 1.02 !important;
}
body.maveg-experience.single-product .related.products .woocommerce-loop-product__title,
body.maveg-native-theme.single-product .related.products .woocommerce-loop-product__title {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem) !important;
  line-height: 1.15 !important;
}

/* Knowledge-base and blog card titles: compact, readable, and consistent. */
.maveg-theme-post-grid article :where(h2,h3),
.maveg-journal__grid article h3,
body.blog .entry-title,
body.archive .entry-title {
  overflow-wrap: anywhere;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem) !important;
  line-height: 1.08 !important;
}

/* Segítünk: centered reading width plus obvious document actions. */
.maveg-page-segitunk .maveg-theme-page-content,
.page-id-segitunk .maveg-theme-page-content {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.maveg-page-segitunk .maveg-theme-page-content :where(.wp-block-columns,.brz-row),
.page-id-segitunk .maveg-theme-page-content :where(.wp-block-columns,.brz-row) {
  align-items: stretch;
}
.maveg-page-segitunk .maveg-theme-page-content a[href$=".pdf" i],
.maveg-page-segitunk .maveg-theme-page-content a[href*="/uploads/"],
.maveg-page-segitunk .maveg-theme-page-content a[href*="drive.google"],
.page-id-segitunk .maveg-theme-page-content a[href$=".pdf" i],
.page-id-segitunk .maveg-theme-page-content a[href*="/uploads/"],
.page-id-segitunk .maveg-theme-page-content a[href*="drive.google"] {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 999px;
  color: #fff !important;
  background: #0d5134;
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(13, 81, 52, .15);
}
.maveg-page-segitunk .maveg-theme-page-content a[href$=".pdf" i]::before,
.page-id-segitunk .maveg-theme-page-content a[href$=".pdf" i]::before {
  content: "↓";
  margin-right: 8px;
}

/* Blocks created by the visual editor inherit the approved MAVEG visual language. */
.mve-block {
  width: min(1180px, calc(100% - 40px));
  margin: clamp(48px, 7vw, 100px) auto;
  padding: clamp(30px, 6vw, 78px);
  border-radius: 30px;
  color: #123d2d;
  background: #f7f5e9;
}
.mve-block h2 { margin-top: 0; font-size: clamp(2rem, 5vw, 5rem); line-height: .96; }
.mve-block--image-text { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(26px,6vw,78px); align-items: center; }
.mve-block--image-text img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 24px; }
.mve-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.mve-card-grid article { padding: clamp(20px,3vw,34px); border-radius: 20px; background: #fff; }
.mve-block--cta,
.mve-block--bank { display: flex; align-items: center; justify-content: space-between; gap: 32px; color: #fff; background: #0d5134; }
.mve-block--cta :where(h2,p),
.mve-block--bank :where(h2,p,dt,dd) { color: inherit; }
.mve-download-grid { display: grid; gap: 10px; }
.mve-download-grid a { display: flex; justify-content: space-between; gap: 18px; padding: 18px 22px; border-radius: 14px; color: #123d2d; text-decoration: none; background: #fff; }
.mve-block--gallery > div:last-child { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.mve-block--gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.mve-block--faq details { padding: 18px 0; border-bottom: 1px solid rgba(18,61,45,.2); }

@media (max-width: 760px) {
  .mve-block--image-text,
  .mve-card-grid,
  .mve-block--gallery > div:last-child { grid-template-columns: 1fr; }
  .mve-block--cta,
  .mve-block--bank { align-items: flex-start; flex-direction: column; }
  .maveg-page-segitunk .maveg-theme-page-content,
  .page-id-segitunk .maveg-theme-page-content { width: min(100% - 24px, 1180px); }
}

/* Oct 2026 handoff corrections. IDs keep these rules ahead of the legacy builder reset. */
body.maveg-native-theme.maveg-page-tag-regisztracio #maveg-main .maveg-level-card[data-slug="szponzor"] :is(h2,h3,p,li,span,strong,small,label) {
  color: #fff !important;
}
body.maveg-native-theme.maveg-page-tag-regisztracio #maveg-main .maveg-level-card[data-slug="szponzor"] .maveg-level-price { color: #fff !important; }
body.maveg-native-theme.maveg-page-tag-regisztracio #maveg-main .maveg-level-card :is(h2,h3) {
  font-size: clamp(1.65rem, 2.6vw, 2.5rem) !important;
  line-height: 1.12 !important;
}
body.maveg-native-theme.maveg-page-tag-regisztracio #maveg-main .maveg-level-card .maveg-select-level {
  color: #fff !important;
  background: #0d5134 !important;
  border: 1px solid #0d5134 !important;
  font-family: var(--mvg-body, sans-serif) !important;
}
body.maveg-native-theme.maveg-page-tag-regisztracio #maveg-main .maveg-level-card[data-slug="szponzor"] .maveg-select-level {
  color: #0d5134 !important;
  background: #fff !important;
  border-color: #fff !important;
}
/* This is editorial benefits content, not a duplicate navigation or hero. */
body.maveg-page-tag-regisztracio #maveg-main .brz-section.maveg-legacy-hero-section {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
body.maveg-page-tag-regisztracio #maveg-main .brz-section.maveg-legacy-hero-section :is(h1,h2,h3) {
  font-size: clamp(1.55rem, 2.8vw, 2.65rem) !important;
  line-height: 1.14 !important;
}
body.maveg-page-tag-regisztracio #maveg-main .brz-section.maveg-legacy-hero-section :is(h1,h2,h3) * { font-size: inherit !important; }

body.maveg-native-theme #maveg-main .maveg-theme-post-card :is(h2,h3),
body.maveg-experience #maveg-main .maveg-journal__grid article h3 {
  font-size: clamp(1.25rem, 1.65vw, 1.65rem) !important;
  line-height: 1.22 !important;
  letter-spacing: -.025em !important;
  overflow-wrap: break-word;
}
body.maveg-native-theme #maveg-main .maveg-theme-post-card :is(h2,h3) a { font-size: inherit !important; }
body.maveg-native-theme.single-product #maveg-main .related.products > h2 {
  font-size: clamp(1.65rem, 2.3vw, 2.35rem) !important;
  line-height: 1.15 !important;
}
body.maveg-native-theme.single-product #maveg-main .related.products .woocommerce-loop-product__title {
  font-size: clamp(1rem, 1.15vw, 1.25rem) !important;
  line-height: 1.3 !important;
  letter-spacing: -.02em !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

body.maveg-page-segitunk #maveg-main .maveg-native-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
body.maveg-page-segitunk #maveg-main .maveg-native-card-grid .maveg-native-copy { display:flex; flex-direction:column; height:100%; }
body.maveg-page-segitunk #maveg-main .maveg-native-card-grid .maveg-native-copy > p:last-child { margin-top:auto; padding-top:16px; }
body.maveg-page-segitunk #maveg-main .maveg-native-card-grid :is(h2,h3) { font-size:clamp(1.4rem,2vw,1.9rem)!important; line-height:1.2!important; }
body.maveg-page-segitunk #maveg-main .maveg-native-reports { grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); align-items:start; gap:32px; }
body.maveg-page-segitunk #maveg-main .maveg-native-reports :is(h2,h3,p,small) { color:#fff!important; }
body.maveg-page-segitunk #maveg-main .maveg-native-reports h2 { font-size:clamp(1.7rem,2.6vw,2.6rem)!important; line-height:1.15!important; }
body.maveg-page-segitunk #maveg-main .maveg-native-reports__links { display:grid; grid-template-columns:1fr; gap:12px; width:100%; }
body.maveg-page-segitunk #maveg-main .maveg-native-reports__links > br { display:none; }
body.maveg-page-segitunk #maveg-main .maveg-native-reports__links > a {
  display:flex; justify-content:space-between; gap:16px; min-width:0; min-height:56px;
  padding:16px 20px; border-radius:16px; border:1px solid #0d5134;
  color:#fff!important; background:#0d5134; font-size:15px; line-height:1.5; text-align:left;
}
body.maveg-page-segitunk #maveg-main .maveg-native-reports__links > a :is(span,small,b) { color:inherit!important; }
body.maveg-page-segitunk #maveg-main .maveg-native-reports__links > a small { display:inline-block; font-weight:400; font-size:13px; }
body.maveg-page-segitunk #maveg-main .maveg-native-reports__links > a b { flex:0 0 auto; align-self:center; font-size:12px; }
body.maveg-page-segitunk #maveg-main .maveg-native-reports .maveg-native-reports__links > a { background:#fff; color:#0d5134!important; border-color:#fff; box-shadow:none; }
body.maveg-page-segitunk #maveg-main .maveg-native-reports__links > a::before { display:none; }
body.maveg-page-segitunk #maveg-main .maveg-native-reports__links > a::after { content:none; }
body.maveg-page-segitunk #maveg-main .maveg-native-reports__links > a:hover { outline:2px solid #2b8060; outline-offset:2px; }

/* Compact first-party consent, outside the splash and never a full-screen overlay. */
body .maveg-cookie-panel, body .maveg-cookie-panel * { box-sizing:border-box; }
body .maveg-cookie-panel {
  position:fixed; z-index:2147483000; bottom:max(12px,env(safe-area-inset-bottom)); left:12px;
  width:min(460px,calc(100vw - 24px)); max-height:24vh; max-height:24svh; overflow:auto;
  padding:12px 14px; border:1px solid #d6e0d8; border-radius:18px; background:#fffef9; color:#17372d;
  box-shadow:0 8px 32px rgba(7,47,32,.18); font:13px/1.45 Manrope,Arial,sans-serif; text-align:left;
}
body .maveg-cookie-panel[hidden], body .maveg-cookie-settings[hidden], iframe[data-mve-consent][hidden] { display:none!important; }
body .maveg-cookie-panel strong { color:#17372d!important; font-size:14px!important; }
body .maveg-cookie-panel p { margin:0 0 8px!important; padding:0!important; color:#17372d!important; font:inherit!important; }
body .maveg-cookie-panel .maveg-cookie-actions { display:flex; gap:8px; }
body .maveg-cookie-panel button {
  flex:1; min-height:40px; margin:0; padding:8px 10px; border:1px solid #0d5134!important;
  border-radius:10px; color:#0d5134!important; background:#fff!important; cursor:pointer;
  font:700 12px/1.3 Manrope,Arial,sans-serif!important; text-transform:none!important; letter-spacing:0!important;
}
body .maveg-cookie-panel .maveg-cookie-links { display:flex; justify-content:space-between; gap:12px; margin-top:8px; }
body .maveg-cookie-panel .maveg-cookie-links button { flex:none; min-height:20px; padding:0; border:0!important; border-radius:0; background:transparent!important; font-size:11px!important; text-decoration:underline; }
body .maveg-cookie-panel .maveg-cookie-links a { color:#0d5134!important; font-size:11px; }
body .maveg-cookie-panel label { display:flex; align-items:center; gap:10px; margin:7px 0; color:#17372d!important; font:inherit!important; }
body .maveg-cookie-panel input[type="checkbox"] { width:18px; height:18px; margin:0; accent-color:#0d5134; }
body .maveg-cookie-panel :is(button,a,input):focus-visible { outline:3px solid #2788aa; outline-offset:2px; }
body .maveg-cookie-settings {
  position:fixed; z-index:2147482999; left:12px; bottom:max(10px,env(safe-area-inset-bottom));
  min-height:32px; padding:6px 12px; border:1px solid #cedbd2; border-radius:999px;
  background:#fffef9; color:#0d5134; font:700 11px/1.4 Manrope,Arial,sans-serif; cursor:pointer;
}
body .maveg-media-consent { display:grid; place-content:center; justify-items:center; gap:12px; aspect-ratio:16/9; padding:22px; border-radius:20px; color:#17372d; background:#f1f4e8; text-align:center; }
body .maveg-media-consent p { margin:0; font-size:14px; color:#17372d!important; }
body .maveg-media-consent button { min-height:44px; border:1px solid #0d5134; border-radius:999px; padding:10px 18px; color:#fff!important; background:#0d5134; font:700 13px/1.3 Manrope,Arial,sans-serif; cursor:pointer; }
@media (max-width:760px) {
  body.maveg-page-segitunk #maveg-main .maveg-theme-page-content { width:100%; margin-inline:0; padding:24px 0; }
  body.maveg-page-segitunk #maveg-main :is(.maveg-native-card-grid,.maveg-native-reports) { grid-template-columns:1fr; }
  body.maveg-page-segitunk #maveg-main .maveg-native-reports { padding:18px; gap:22px; }
  body.maveg-page-segitunk #maveg-main .maveg-native-reports__links > a { padding:14px; gap:10px; }
  body .maveg-cookie-panel { padding:8px 10px; font-size:12px; line-height:1.35; }
  body .maveg-cookie-panel p { margin-bottom:4px!important; }
  body .maveg-cookie-panel .maveg-cookie-links { margin-top:4px; }
  body .maveg-cookie-panel .maveg-cookie-links button { min-height:18px; }
}
