/* Shared knowledge tab, merged from the former standalone file. */
.knowledge-tab{position:fixed;right:0;top:42%;z-index:40;display:flex;align-items:center;transition:transform .25s ease;font:600 14px/1.3 "DM Sans",Arial,sans-serif;color:#fffefa}
.knowledge-tab.is-collapsed{transform:translateX(112px)}
.knowledge-tab-toggle{width:30px;height:50px;padding:0;border:0;border-radius:6px 0 0 6px;background:#167d63;color:#fffefa;font:700 26px/1 Arial,sans-serif;cursor:pointer;box-shadow:-3px 2px 8px #0002}
.knowledge-tab-link{box-sizing:border-box;width:112px;min-height:156px;padding:18px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#167d63;color:#fffefa!important;text-align:center;text-decoration:none!important;border-radius:7px 0 0 7px;box-shadow:0 3px 12px #0003;font:600 14px/1.3 "DM Sans",Arial,sans-serif!important}
.knowledge-tab-link svg{width:57px;height:57px;flex-shrink:0}
.knowledge-tab-link::after{content:"";width:30px;height:3px;background:#e7f4ec}
.knowledge-tab-toggle:focus-visible,.knowledge-tab-link:focus-visible{outline:3px solid #e7f4ec;outline-offset:-3px}
@media(max-width:600px){.knowledge-tab{top:auto;bottom:90px}}
@media(prefers-reduced-motion:reduce){.knowledge-tab{transition:none}}

.knowledge-tab-toggle{background:#145f50}
.knowledge-tab-link svg{color:#e7f4ec}
.knowledge-tab-link svg path[fill="white"]{fill:#fffefa;stroke:#18332e}

/* Dark blue-green diagonal accent for the clickable knowledge-tab. */
.knowledge-tab-toggle,
.knowledge-tab-link { background: linear-gradient(135deg, #145f50 0%, #246673 55%, #2f7f8f 100%); }


.primary{border-radius:0;background:linear-gradient(135deg,#145f50,#246673 55%,#2f7f8f);font-weight:600;box-shadow:none}
.glance-card{border-radius:5px}.filter{border-radius:0}.search-box input{border-radius:0}.faq{border-radius:5px}.source{border-radius:0}.mark{border-radius:0}.empty{border-radius:0}
a,a:hover,.text-button{text-decoration:none}
.knowledge-bottom{display:flex;justify-content:space-between;gap:20px;padding-top:28px;padding-bottom:28px}
.site-footer{background:#e7eee9;padding:44px 0 24px;font:400 13px/1.6 'DM Sans',Arial,sans-serif;color:#546861}
.site-footer .container{width:min(1320px,calc(100% - 48px));margin:auto}
.site-footer .footer-links-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:40px;padding-bottom:32px;border-bottom:1px solid #cbd8d1}
.site-footer h2{font-size:13px;font-weight:700;margin:0 0 12px;color:#18332e}.site-footer ul{padding:0;margin:0;list-style:none}.site-footer li{margin:8px 0}.site-footer a{font-size:14px;font-weight:600;color:#546861;text-decoration:none}
.site-footer .footer-help{font-size:13px}.site-footer .footer-inner{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:30px;padding-top:32px}.site-footer .brand{font-size:19px;align-items:center;letter-spacing:normal}.site-footer .brand-logo{width:53px;height:52px}.site-footer .brand-title span{display:block}.site-footer .brand-name{font-size:19px;letter-spacing:2px;color:#2f7f8f}.site-footer .brand-subtitle{font-size:11px;letter-spacing:1.8px}.site-footer .footer-contact>*{display:block}.site-footer .footer-contact svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.8;vertical-align:-.1em;margin-right:.4em}.site-footer p{margin:0}.site-footer .copyright{padding-top:30px;font-size:11px}.site-footer .footer-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:800px){.site-footer .footer-links-grid,.site-footer .footer-inner{grid-template-columns:1fr;gap:24px}.knowledge-bottom{flex-wrap:wrap}}

/* R18: topic navigation without redundant text search. */
.filters{margin-top:24px}.knowledge .section-intro{max-width:760px}.answer p a{font-size:inherit!important;line-height:inherit}

/* R19: footer heading hierarchy with the same color as its menu links. */
:root body .site-footer .footer-links-grid h2{font-size:16px;font-weight:700;line-height:1.4;color:#546861}
:root body .site-footer .footer-links-grid a{color:#546861}

/* Same book/question symbol as the side tab, sized for the header. */
.masthead .brand .knowledge-header-mark{display:inline-flex;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;padding:6px;border-radius:8px;background:#167d63;color:#fff;box-sizing:border-box}
.knowledge-header-mark svg{display:block;width:30px;height:30px}
.knowledge-header-mark svg path{stroke:currentColor}
#mind-nyit[hidden]{display:none!important}

:root body .site-footer .footer-links-grid h2{text-transform:uppercase}

.back-to-top{position:fixed;right:24px;bottom:24px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#145f50;color:#fff;font:700 22px/1 Arial,sans-serif;cursor:pointer;z-index:20;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.back-to-top:hover,.back-to-top:focus{background:#167d63;color:#fff}
.back-to-top:focus-visible{outline:3px solid #2f7f8f;outline-offset:3px}
@media(max-width:420px){.back-to-top{right:14px;bottom:14px;width:40px;height:40px;font-size:20px}}

/* Keep the real certificate heading visible in the decorative card. */
.certificate-card img{object-position:center top}

.certificate-card{overflow:hidden}.certificate-card img{object-fit:cover;object-position:center top;max-width:100%}

/* R20: place the decorative ring near the certificate rather than the screen edge. */
.hero::after{display:none}
.hero-art{position:relative;isolation:isolate}
.hero-art::before{content:'';position:absolute;width:340px;height:340px;max-width:95%;right:-12px;bottom:-24px;border:46px solid #d8eee2;border-radius:50%;box-sizing:border-box;pointer-events:none;z-index:-1}
@media(max-width:760px){.hero-art::before{width:280px;height:280px;right:0;bottom:-8px;border-width:36px}}

/* R21: identical quiet back-to-top control everywhere. */
:root body .back-to-top{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#e7eee9;color:#2f7f8f;box-shadow:0 3px 10px rgba(24,51,46,.14)}
:root body .back-to-top:hover,:root body .back-to-top:focus{background:#dbe7e0;color:#2f7f8f}
:root body .back-to-top svg{display:block;width:22px;height:22px;fill:currentColor}
@media(max-width:420px){:root body .back-to-top{width:40px;height:40px}}

/* R22: hidden until 65% of the available scroll distance. */
:root body .back-to-top[hidden]{display:none!important}

/* R25: readable small labels on the light sections, preserving the green/teal palette. */
:root body .eyebrow:not(.light){color:#226b7b}
:root body .service-card:not(.featured) .card-number{color:#546861;opacity:1}
:root body .steps .step>span{color:#226b7b;opacity:1}
:root body .site-footer .brand-name{color:#226b7b}
:root body .site-footer .copyright,:root body .site-footer #footer-year{color:#546861}

/* R28: a nyíl külön marad, az aláhúzás csak a szövegen fut. */
:root body a.arrow-text-link,:root body a.arrow-text-link:hover,:root body a.arrow-text-link:focus-visible{text-decoration:none!important}
:root body a.arrow-text-link>.arrow-link-label{display:inline;position:relative;background-image:linear-gradient(currentColor,currentColor);background-position:left bottom;background-repeat:no-repeat;background-size:0% 1px;padding-bottom:3px;transition:background-size .25s ease}
:root body a.arrow-text-link:hover>.arrow-link-label,:root body a.arrow-text-link:focus-visible>.arrow-link-label{background-size:100% 1px}
:root body a.arrow-text-link>.arrow-link-icon{display:inline-block;text-decoration:none!important}
@media(prefers-reduced-motion:reduce){:root body a.arrow-text-link>.arrow-link-label{transition:none}}

/* R30: a logó a főoldalra, a Tudástár-jel a tudástár tetejére vezet. */
.masthead .wrap{flex-wrap:wrap;padding-top:12px;padding-bottom:12px}.masthead-home{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;flex-shrink:0}.masthead-home img{width:48px;height:48px}.masthead-home strong{display:block;font-size:20px;line-height:1.1;letter-spacing:.1em;color:#2c8595}.masthead-home small{display:block;margin-top:4px;font-size:10px;letter-spacing:.16em;font-weight:700}.knowledge-nav-link{display:inline-flex;align-items:center;gap:8px}.knowledge-nav-link .mark{width:32px;height:32px;border-radius:7px}.knowledge-nav-link svg{width:29px;height:29px}.masthead nav{align-items:center;flex-wrap:wrap}.masthead nav a:first-child,.masthead nav a:nth-child(2){display:inline-flex}
@media(max-width:600px){.masthead .wrap{gap:12px}.masthead nav{width:100%;justify-content:space-between;gap:10px;font-size:13px}.masthead-home img{width:42px;height:42px}.knowledge-nav-link .mark{width:26px;height:26px}.knowledge-nav-link svg{width:24px;height:24px}}

.certificate-card::after{content:"Energetikai tanúsítvány – MINTA"}

.masthead-home{font-family:"DM Sans",Arial,sans-serif}

/* A felső menü szövege alatt a főoldallal azonos befutó vonal. */
.masthead nav a{text-decoration:none}
.masthead nav .knowledge-menu-label{position:relative;display:inline-block}
.masthead nav .knowledge-menu-label::after{content:'';position:absolute;left:0;right:0;bottom:-4px;height:2px;background:#2f7f8f;transform:scaleX(0);transform-origin:left;transition:transform .2s ease;pointer-events:none}
.masthead nav a:focus-visible .knowledge-menu-label::after{transform:scaleX(1)}
@media(hover:hover) and (pointer:fine){.masthead nav a:hover .knowledge-menu-label::after{transform:scaleX(1)}}
@media(prefers-reduced-motion:reduce){.masthead nav .knowledge-menu-label::after{transition:none}}

/* A vízjeles előnézet a teljes vízjeles mintát nyitja. */
button.certificate-card{cursor:pointer;text-align:left;font:inherit;color:inherit}button.certificate-card:focus-visible{outline:3px solid #2f7f8f;outline-offset:5px}
#knowledge-certificate-dialog{position:fixed;inset:0;margin:auto;width:min(510px,calc(100vw - 24px));height:fit-content;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;padding:24px 18px 18px;border:0;border-radius:12px;overflow:auto;background:#fff;color:#183b35}
#knowledge-certificate-dialog::backdrop{background:rgba(12,35,33,.65)}
#knowledge-certificate-dialog h2{margin:0 40px 14px 0;font-size:21px;line-height:1.3;letter-spacing:-.02em}
#knowledge-certificate-dialog>img{display:block;width:100%;height:auto;max-height:calc(100vh - 130px);max-height:calc(100dvh - 130px);object-fit:contain}
#knowledge-certificate-dialog .het-example-close{position:absolute;top:7px;right:7px;width:44px;height:44px;border:0;border-radius:5px;background:#edf2ef;color:#183b35;font:700 32px/1 Arial;cursor:pointer}
body:has(#knowledge-certificate-dialog[open]){overflow:hidden}

/* R33: azonos főoldali logóméretek minden nézetben. */
.masthead-home{gap:11px;line-height:1.05}
.masthead-home img{display:block;width:53px;height:52px;object-fit:contain}
.masthead-home strong{font:800 19px/1 "Plus Jakarta Sans",sans-serif;letter-spacing:2px;margin:0;color:#2f7f8f}
.masthead-home small{font:700 11px/1.15 "DM Sans",sans-serif;letter-spacing:1.8px;margin:4px 0 0;color:#183b35}
@media(max-width:800px){.masthead-home img{width:48px;height:47px}.masthead-home strong{font-size:16px}.masthead-home small{font-size:11px;letter-spacing:1.3px}}
@media(max-width:420px){.masthead-home{gap:7px}.masthead-home img{width:42px;height:41px}.masthead-home strong{font-size:14px}.masthead-home small{font-size:8px;letter-spacing:1px}}

@media(max-width:420px){.masthead-home>span{display:none}}

.masthead .wrap{box-sizing:border-box;width:min(1320px,calc(100% - 48px));margin:auto;min-height:76px;padding-top:0;padding-bottom:0}
@media(max-width:800px){.masthead .wrap{width:calc(100% - 32px);display:grid;grid-template-columns:1fr;gap:0;min-height:68px}.masthead-home{height:68px;justify-self:start}.masthead nav{width:100%;padding:0 0 12px;justify-content:space-between;gap:10px}}
@media(max-width:420px){.masthead .wrap{width:calc(100% - 24px)}}

@media(min-width:421px) and (max-width:960px){.masthead .wrap{width:min(760px,calc(100% - 32px))}}

/* R34: a teljes tudástármenü görgetéskor is látható. */
.masthead{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.96);box-shadow:0 2px 12px rgba(0,0,0,.08)}
html{scroll-padding-top:0}
body [id]{scroll-margin-top:calc(var(--knowledge-header-height,77px) + 18px)}
@media(max-width:800px){body [id]{scroll-margin-top:calc(var(--knowledge-header-height,113px) + 18px)}}

.masthead{transition:background .25s ease,box-shadow .25s ease,backdrop-filter .25s ease}
.masthead.header-scrolled{background:rgba(255,255,255,.76);box-shadow:0 2px 16px rgba(0,0,0,.06);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
@media(prefers-reduced-motion:reduce){.masthead{transition:none}}
