/* Öko-Garancia Eszközök – a sablon színváltozóit használja (--og-*), saját tartalékkal. */
.ogt, .ogt-hub {
	--t-primary: var(--og-primary, #173a29);
	--t-accent: var(--og-accent, #3f8a2e);
	--t-lime: var(--og-lime, #c2e27c);
	--t-bg: var(--og-bg, #f4f7ef);
	--t-surface: var(--og-surface, #fff);
	--t-tint: var(--og-tint, #e9f0e0);
	--t-sage: var(--og-sage, #dbe9cf);
	--t-line: var(--og-line, #dbe4d0);
	--t-text: var(--og-text, #263029);
	--t-head: var(--og-heading, #142219);
	--t-muted: var(--og-muted, #5d6b61);
	--t-font-h: var(--og-head, system-ui, sans-serif);
	--t-font: var(--og-body, system-ui, sans-serif);
}
.ogt { margin: 0 0 2.4em; font-family: var(--t-font); color: var(--t-text); line-height: 1.5; font-size: 16px; }
.ogt *, .ogt *::before, .ogt *::after { box-sizing: border-box; }
.og-content .ogt > *, .og-content .ogt p { margin-block: 0; }
.ogt__loading { padding: 40px; text-align: center; color: var(--t-muted); background: var(--t-surface); border: 1px dashed var(--t-line); border-radius: 22px; }
.ogt.is-ready .ogt__loading { display: none; }

/* Panelek */
.ogt__panel { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: 24px; padding: 24px; box-shadow: 0 1px 2px rgba(15, 42, 29, .04), 0 14px 34px -22px rgba(15, 42, 29, .3); }
.ogt__result { margin-top: 18px; display: grid; gap: 18px; padding: 24px; border-radius: 24px; background: linear-gradient(180deg, var(--t-tint), color-mix(in srgb, var(--t-tint) 40%, var(--t-bg))); border: 1px solid var(--t-line); }
@media (max-width: 560px) { .ogt__panel, .ogt__result { padding: 16px; border-radius: 18px; } }
.ogt-lead { margin: 0 0 14px !important; color: var(--t-muted); font-size: 15px; }

/* Mezők */
.ogt-grid { display: grid; gap: 16px 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ogt-field { min-width: 0; margin: 0; padding: 0; border: 0; transition: opacity .2s; }
.ogt-field.is-wide { grid-column: 1 / -1; }
.ogt-field.is-off { opacity: .38; }
.ogt__form > .ogt-chips { margin-bottom: 18px; }
.ogt-label { display: block; font: 600 14px/1.3 var(--t-font); color: var(--t-head); margin-bottom: 7px; padding: 0; }
.ogt-control { position: relative; display: flex; align-items: center; }
.ogt-input {
	width: 100%; min-width: 0; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--t-line); background: var(--t-bg);
	font: 500 16px/1.3 var(--t-font); color: var(--t-head); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.ogt-input:focus { outline: none; border-color: var(--t-accent); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--t-accent) 18%, transparent); }
.ogt-control .ogt-input { padding-right: 76px; }
.ogt-unit { position: absolute; right: 12px; font-size: 13px; font-weight: 600; color: var(--t-muted); pointer-events: none; white-space: nowrap; }
.ogt-control--select .ogt-input { padding-right: 36px; appearance: none; -webkit-appearance: none; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233f8a2e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; }
.ogt-help { margin: 6px 0 0 !important; font-size: 12.5px; color: var(--t-muted); line-height: 1.45; }

/* Választó pirulák */
.ogt-chips__row, .ogt-months__row { display: flex; flex-wrap: wrap; gap: 8px; }
.ogt-chip { position: relative; }
.ogt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ogt-chip label { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--t-line); background: var(--t-bg); font: 600 14px/1.2 var(--t-font); color: var(--t-head); cursor: pointer; transition: all .2s; }
.ogt-chip label:hover { border-color: var(--t-accent); }
.ogt-chip input:checked + label { background: var(--t-primary); border-color: var(--t-primary); color: #fff; }
.ogt-chip input:focus-visible + label { outline: 3px solid var(--t-accent); outline-offset: 2px; }
.ogt-months .ogt-chip label { min-width: 58px; justify-content: center; text-transform: capitalize; }
.ogt-months .ogt-chip.is-now label { border-color: var(--t-accent); }

/* Lenyíló haladó beállítások */
.ogt-adv { margin-top: 18px; border-top: 1px dashed var(--t-line); padding-top: 14px; }
.ogt-adv > summary { cursor: pointer; font: 600 14px var(--t-font); color: var(--t-accent); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.ogt-adv > summary::-webkit-details-marker { display: none; }
.ogt-adv > summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--t-sage); color: var(--t-accent); font-weight: 700; transition: transform .2s; }
.ogt-adv[open] > summary::before { content: "–"; }
.ogt-adv > .ogt-grid { margin-top: 14px; }

/* Gombok */
.ogt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1.5px solid transparent; background: var(--t-lime); color: var(--t-primary) !important; font: 600 14px/1.1 var(--t-font); cursor: pointer; text-decoration: none !important; transition: transform .2s, background-color .2s, color .2s, border-color .2s; }
.ogt-btn:hover { background: var(--t-accent); color: #fff !important; transform: translateY(-1px); }
.ogt-btn--ghost { background: var(--t-surface); border-color: var(--t-line); color: var(--t-head) !important; }
.ogt-btn--ghost:hover { background: var(--t-surface); border-color: var(--t-accent); color: var(--t-accent) !important; }
.ogt-row-actions { margin-top: 12px; }
.ogt-cta { text-align: center; }

/* Készüléklista (áram) */
.ogt-devs__head, .ogt-dev { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(64px, .8fr)); gap: 8px; align-items: center; }
.ogt-devs__head { font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--t-muted); padding: 0 10px 8px; }
.ogt-devs { display: grid; gap: 6px; max-height: 640px; overflow-y: auto; padding-right: 4px; }
.ogt-dev { padding: 7px 10px; border-radius: 14px; border: 1px solid transparent; background: var(--t-bg); transition: background-color .2s, border-color .2s, opacity .2s; }
.ogt-dev:not(.is-on) { opacity: .62; }
.ogt-dev.is-on { background: color-mix(in srgb, var(--t-sage) 55%, #fff); border-color: color-mix(in srgb, var(--t-accent) 25%, transparent); opacity: 1; }
.ogt-dev__main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ogt-dev__main input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--t-accent); flex: none; cursor: pointer; }
.ogt-dev__name { font-weight: 600; font-size: 14.5px; color: var(--t-head); cursor: pointer; }
.ogt-dev .ogt-input { padding: 7px 8px; border-radius: 10px; font-size: 15px; text-align: right; background: #fff; }
.ogt-input--name { text-align: left !important; }
@media (max-width: 640px) {
	.ogt-devs__head { display: none; }
	.ogt-devs { max-height: none; }
	.ogt-dev { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 8px; padding: 10px; }
	.ogt-dev__main { grid-column: 1 / -1; }
	.ogt-dev__num { position: relative; }
	.ogt-dev__num::before { content: attr(data-l); display: block; font-size: 11px; color: var(--t-muted); margin-bottom: 2px; }
	.ogt-dev:not(.is-on) .ogt-dev__num { display: none; }
}

/* Eredmény: mutatók */
.ogt-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.ogt-kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--t-surface); border: 1px solid var(--t-line); min-width: 0; }
.ogt-kpi__label { font-size: 12.5px; font-weight: 600; color: var(--t-muted); text-transform: uppercase; letter-spacing: .04em; }
.ogt-kpi__value { font: 750 clamp(20px, 2.4vw, 26px)/1.15 var(--t-font-h); color: var(--t-head); letter-spacing: -.01em; overflow-wrap: anywhere; }
.ogt-kpi__sub { font-size: 13px; color: var(--t-muted); }
.ogt-kpi--accent { background: var(--t-primary); border-color: var(--t-primary); }
.ogt-kpi--accent .ogt-kpi__label, .ogt-kpi--accent .ogt-kpi__sub { color: #cfe3c5; }
.ogt-kpi--accent .ogt-kpi__value { color: var(--t-lime); }
.ogt-kpi--good { border-color: color-mix(in srgb, var(--t-accent) 45%, var(--t-line)); background: color-mix(in srgb, var(--t-lime) 22%, #fff); }
.ogt-kpi--warn { border-color: #e6b8a8; background: #fff4ef; }

.ogt-h { font: 700 18px/1.25 var(--t-font-h) !important; margin: 4px 0 0 !important; color: var(--t-head); }

/* Sávdiagram */
.ogt-bars { display: grid; gap: 12px; }
.ogt-bar__head { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; margin-bottom: 5px; }
.ogt-bar__name { font-weight: 600; color: var(--t-head); }
.ogt-bar__val { font-weight: 600; color: var(--t-primary); text-align: right; white-space: nowrap; }
.ogt-bar__track { height: 12px; border-radius: 99px; background: color-mix(in srgb, var(--t-line) 70%, #fff); overflow: hidden; }
.ogt-bar__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--t-accent), #7cb84c); transform-origin: 0 50%; animation: ogt-grow .7s cubic-bezier(.2, .7, .2, 1); }
.ogt-bar.is-best .ogt-bar__fill { background: linear-gradient(90deg, var(--t-primary), var(--t-accent)); }
.ogt-bar.is-best .ogt-bar__name::after { content: "legolcsóbb"; margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: var(--t-lime); color: var(--t-primary); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.ogt-bar__sub { margin-top: 4px; font-size: 12.5px; color: var(--t-muted); }
@keyframes ogt-grow { from { transform: scaleX(0); } }
@media (max-width: 520px) { .ogt-bar__head { flex-direction: column; gap: 2px; } .ogt-bar__val { text-align: left; } }

/* Határ-mérő */
.ogt-meter { padding: 14px 16px; border-radius: 16px; background: var(--t-surface); border: 1px solid var(--t-line); }
.ogt-meter__head { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--t-head); }
.ogt-meter__track { height: 14px; border-radius: 99px; background: var(--t-tint); overflow: hidden; }
.ogt-meter__track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--t-lime), var(--t-accent)); }
.ogt-meter.is-over .ogt-meter__track span { background: linear-gradient(90deg, var(--t-accent), #e0a43a 85%, #d3592f); }

/* Diagram */
.ogt-figure { margin: 0; padding: 14px; border-radius: 18px; background: var(--t-surface); border: 1px solid var(--t-line); }
.ogt-chart { width: 100%; height: auto; display: block; }
.ogt-chart rect.pos { fill: var(--t-accent); }
.ogt-chart rect.neg { fill: #e08b6a; }
.ogt-chart .zero { stroke: var(--t-head); stroke-width: 1.5; }
.ogt-chart text { font: 600 11px var(--t-font); fill: var(--t-muted); }
.ogt-figure figcaption { font-size: 12.5px; color: var(--t-muted); margin-top: 6px; text-align: center; }

/* Tippek, megjegyzések */
.ogt-tips { padding: 16px 18px 6px; border-radius: 18px; background: var(--t-surface); border: 1px solid var(--t-line); }
.ogt-tips__title { font: 700 16px var(--t-font-h) !important; margin: 0 0 8px !important; color: var(--t-head); }
.ogt .ogt-tips ul { list-style: none; margin: 0; padding: 0; }
.ogt .ogt-tips li { position: relative; padding-left: 26px; margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; }
.ogt .ogt-tips li::before { content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; background: var(--t-accent); -webkit-mask: var(--og-leaf-mask, none) no-repeat center / contain; mask: var(--og-leaf-mask, none) no-repeat center / contain; border-radius: 50% 2px; }
.ogt-note { font-size: 14px; padding: 12px 14px; border-radius: 14px; background: var(--t-surface); border-left: 4px solid var(--t-accent); }
.ogt-note--warn { border-left-color: #d3592f; background: #fff4ef; }
.ogt-note--muted { background: transparent; border: 0; padding: 0; font-size: 12.5px; color: var(--t-muted); }

/* Eredménysáv */
.ogt-resbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--t-line); }
.ogt-resbar__lbl { font-size: 12.5px; color: var(--t-muted); margin-right: auto; }

/* Hulladékkereső */
.ogt-search__input { font-size: 17px; padding: 14px 18px; border-radius: 999px; }
.ogt-binchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ogt-binchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--t-line); background: var(--t-bg); font: 600 12.5px/1.2 var(--t-font); color: var(--t-head); cursor: pointer; }
.ogt-binchip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.ogt-binchip:hover { border-color: var(--t-accent); }
.ogt-binchip.is-on { background: var(--t-primary); border-color: var(--t-primary); color: #fff; }
.ogt-count { font-size: 13px; color: var(--t-muted); }
.ogt-items { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ogt-item { position: relative; padding: 16px 16px 14px 20px; border-radius: 16px; background: var(--t-surface); border: 1px solid var(--t-line); overflow: hidden; }
.ogt-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c); }
.ogt-item__name { font: 700 16px/1.3 var(--t-font-h) !important; margin: 0 0 8px !important; color: var(--t-head); }
.ogt-item__badge { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--c); color: var(--ink); font-size: 12.5px; font-weight: 700; }
.ogt-item__tip { margin-top: 8px !important; font-size: 13.5px; color: var(--t-muted); line-height: 1.5; }
.ogt-legend { display: grid; gap: 8px; }
.ogt-legend__row { display: grid; grid-template-columns: 14px minmax(140px, 260px) 1fr; gap: 10px; align-items: center; font-size: 14px; padding: 8px 12px; background: var(--t-surface); border-radius: 12px; }
.ogt-legend__row i { width: 14px; height: 14px; border-radius: 50%; background: var(--c); }
.ogt-legend__row span { color: var(--t-muted); }
@media (max-width: 560px) { .ogt-legend__row { grid-template-columns: 14px 1fr; } .ogt-legend__row span { grid-column: 2; } }

/* Idénynaptár */
.ogt-season { display: grid; gap: 10px; }
.ogt .ogt-prods { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ogt .ogt-prod { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--t-surface); border: 1px solid var(--t-line); font-weight: 600; font-size: 14.5px; color: var(--t-head); }
.ogt .ogt-prod::before { display: none; }
.ogt-prod__e { font-size: 20px; line-height: 1; }
.ogt-prod small { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--t-tint); color: var(--t-muted); }
.ogt-prod.is-store { background: color-mix(in srgb, var(--t-tint) 60%, #fff); }
.ogt-adv--table { margin-top: 4px; }
.ogt-year-wrap { overflow-x: auto; margin-top: 12px; }
.ogt-year { border-collapse: separate; border-spacing: 2px; font-size: 12.5px; min-width: 640px; width: 100%; background: transparent !important; }
.ogt-year th, .ogt-year td { padding: 4px 6px !important; border: 0 !important; background: transparent; }
.ogt-year thead th { font-weight: 600; color: var(--t-muted); text-align: center; }
.ogt-year thead th.is-cur { color: var(--t-accent); }
.ogt-year tbody th { text-align: left; font-weight: 600; white-space: nowrap; color: var(--t-head); }
.ogt-year td { border-radius: 6px; background: color-mix(in srgb, var(--t-line) 45%, transparent); min-width: 34px; }
.ogt-year td.is-f { background: var(--t-accent); }
.ogt-year td.is-s { background: var(--t-lime); }
.ogt-year td.is-cur { box-shadow: inset 0 0 0 2px var(--t-primary); }
.ogt-legend-inline { font-size: 12.5px; color: var(--t-muted); margin-top: 8px !important; }
.ogt-legend-inline i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; }
.ogt-legend-inline i.is-f { background: var(--t-accent); }
.ogt-legend-inline i.is-s { background: var(--t-lime); }

/* Fa-erdő */
.ogt-forest { display: flex; flex-wrap: wrap; gap: 2px; padding: 16px; border-radius: 18px; background: linear-gradient(180deg, #eaf5df, #d6ebc4); font-size: 22px; line-height: 1; }
.ogt-tree { animation: ogt-pop .4s cubic-bezier(.2, .7, .2, 1.4) both; }
@keyframes ogt-pop { from { opacity: 0; transform: scale(.3) translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .ogt-tree, .ogt-bar__fill { animation: none; } }

/* Eszközgyűjtő kártyák */
.ogt-hub { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 0 0 2.2em; }
.og-content .ogt-hub__card, .ogt-hub__card {
	position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: var(--t-surface); border: 1px solid var(--t-line);
	color: var(--t-head); text-decoration: none; font-weight: 400; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s; overflow: hidden;
}
.ogt-hub__card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(15, 42, 29, .45); border-color: color-mix(in srgb, var(--t-accent) 40%, var(--t-line)); color: var(--t-head); }
.ogt-hub__icon { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50% 16px 50% 16px; background: var(--t-sage); color: var(--t-accent); margin-bottom: 4px; transition: transform .4s, background-color .25s, color .25s; }
.ogt-hub__card:hover .ogt-hub__icon { transform: rotate(-8deg); background: var(--t-accent); color: #fff; }
.ogt-tone--sun .ogt-hub__icon { background: #f6ecc6; color: #9a7413; }
.ogt-tone--sky .ogt-hub__icon { background: #d8ecee; color: #2d7c82; }
.ogt-tone--rose .ogt-hub__icon { background: #f6ddd2; color: #b2542f; }
.ogt-hub__title { font: 700 18px/1.25 var(--t-font-h); }
.ogt-hub__desc { font-size: 14.5px; color: var(--t-muted); line-height: 1.5; flex: 1; }
.ogt-hub__go { font-size: 14px; font-weight: 700; color: var(--t-accent); }

/* Nyomtatás */
#ogt-print { display: none; }
@media print {
	html.ogt-print-mode body > *:not(#ogt-print) { display: none !important; }
	html.ogt-print-mode #ogt-print { display: block; font: 12pt/1.45 system-ui, sans-serif; color: #000; }
	#ogt-print .ogt-print__head { display: flex; justify-content: space-between; border-bottom: 2px solid #3f8a2e; padding-bottom: 6px; margin-bottom: 12px; }
	#ogt-print h1 { font-size: 18pt; margin: 0 0 12px; }
	#ogt-print h2 { font-size: 13pt; margin: 16px 0 6px; }
	#ogt-print table { border-collapse: collapse; width: 100%; }
	#ogt-print th, #ogt-print td { border: 1px solid #ccc; padding: 4px 8px; text-align: left; font-size: 10pt; }
	#ogt-print .ogt-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
	#ogt-print .ogt-kpi { border: 1px solid #bbb; padding: 8px; border-radius: 8px; }
	#ogt-print .ogt-kpi--accent { background: #fff; }
	#ogt-print .ogt-kpi--accent .ogt-kpi__value, #ogt-print .ogt-kpi--accent .ogt-kpi__label, #ogt-print .ogt-kpi--accent .ogt-kpi__sub { color: #000; }
	#ogt-print .ogt-bar__track { border: 1px solid #999; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	#ogt-print .ogt-print__foot { margin-top: 16px; font-size: 9pt; color: #555; }
}

/* „További öko kalkulátorok” az eszközoldal alján */
.ogt-more { max-width: 1120px; margin: 56px auto 0; }
.ogt-more .ogt-hub { margin-bottom: 0; }
