/* TM Żarówki - tabela w newsie, ramka powiązań, publiczna baza */
:root { --tmz-accent: #e10a1d; }

.tmz-table-wrap { margin: 1.5em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tmz-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; background: #fff; }
.tmz-table caption { caption-side: top; text-align: left; font-size: 13px; color: #6b6f76; padding: 0 0 8px; }
.tmz-table thead th { background: #16181d; color: #fff; font-weight: 700; text-align: left; padding: 11px 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.tmz-table thead th:first-child { border-left: 4px solid var(--tmz-accent); }
.tmz-table tbody th, .tmz-table tbody td { padding: 10px 14px; border-bottom: 1px solid #e6e8eb; text-align: left; vertical-align: middle; }
.tmz-table tbody th { font-weight: 600; color: #16181d; }
.tmz-table tbody tr:nth-child(even) td, .tmz-table tbody tr:nth-child(even) th[scope="row"] { background: #f7f8f9; }
.tmz-table tr.tmz-group th { background: #fff !important; color: var(--tmz-accent); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding-top: 18px; border-bottom: 2px solid #16181d; }
.tmz-bulb { display: inline-block; font-weight: 700; font-family: inherit; font-variant-numeric: tabular-nums; font-size: 14px; background: #fff1f2; color: #16181d; border: 1px solid #f3c4c8; border-radius: 4px; padding: 2px 8px; }
.tmz-bulb-led { background: #eef1f4; border-color: #d5dae0; color: #3a3f46; }
.tmz-extra { display: block; font-size: 12px; color: #6b6f76; margin-top: 3px; }
.tmz-note { color: #555a61; font-size: 14px; }

@media (max-width: 600px) {
	.tmz-table thead { display: none; }
	.tmz-table, .tmz-table tbody, .tmz-table tr, .tmz-table th, .tmz-table td { display: block; width: 100%; box-sizing: border-box; }
	.tmz-table tbody tr { border-bottom: 1px solid #e6e8eb; padding: 8px 0; }
	.tmz-table tbody th, .tmz-table tbody td { border: 0; padding: 3px 12px; background: none !important; }
	.tmz-table tbody td::before { content: attr(data-label) ": "; color: #6b6f76; font-size: 13px; }
	.tmz-table tr.tmz-group { padding: 0; border: 0; }
	.tmz-table caption { display: block; width: 100%; }
	.tmz-table td.tmz-note:empty { display: none; }
}

.tmz-related { margin: 2em 0; padding: 18px 20px; border-left: 4px solid var(--tmz-accent); background: #f5f6f7; }
.tmz-related-title { font-weight: 700; margin: 0 0 8px; }
.tmz-related ul { margin: 0 0 8px; padding-left: 1.2em; }
.tmz-related-base { margin: 0; }
.tmz-related a { color: var(--tmz-accent); }

/* Publiczna baza */
.tmz-base { margin: 1.5em 0; }
.tmz-search { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; background: #16181d; padding: 18px; border-radius: 6px; }
.tmz-field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.tmz-field span { color: #b9bdc4; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.tmz-field input, .tmz-field select { height: 46px; padding: 0 12px; border: 0; border-radius: 4px; font: inherit; font-size: 1rem; background: #fff; color: #16181d; width: 100%; box-sizing: border-box; }
.tmz-base, .tmz-base input, .tmz-base select, .tmz-base button, .tmz-table, .tmz-related, .tmz-crumbs { font-family: inherit; }
.tmz-field span { font-family: inherit; }

/* Baza na szerokość strony (jak Katalog modeli): od 1100 px wychodzi z wąskiej kolumny tekstu do szerokości nagłówka. */
@media (min-width: 1100px) {
	/* podwójna klasa: motyw ustawia ".entry-content > * { max-width: 100% }" i ładuje się po wtyczce */
	.entry-content > .tmz-base,
	.tmz-base.tmz-base {
		--tmz-wide: min(1208px, calc(100vw - 48px));
		width: var(--tmz-wide);
		max-width: none;
		margin-left: calc(50% - var(--tmz-wide) / 2);
		margin-right: calc(50% - var(--tmz-wide) / 2);
	}
	.tmz-search { grid-template-columns: 2fr 1fr 1fr; padding: 22px 24px; }
	.tmz-base .tmz-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
.tmz-field select:disabled { opacity: .55; }
@media (max-width: 700px) { .tmz-search { grid-template-columns: 1fr; } }

.tmz-brands { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.tmz-brand-chip { border: 1px solid #d5d8dc; background: #fff; border-radius: 999px; padding: 8px 14px; font-size: 15px; font-weight: 600; cursor: pointer; color: #16181d; }
.tmz-brand-chip small { color: #8a8f97; font-weight: 400; margin-left: 2px; }
.tmz-brand-chip, .tmz-brand-chip:visited { text-decoration: none !important; display: inline-block; color: #16181d !important; }
.tmz-brand-chip:hover { color: var(--tmz-accent) !important; }
.tmz-brand-chip.is-active { background: var(--tmz-accent); border-color: var(--tmz-accent); color: #fff !important; }
.tmz-brand-chip.is-active small { color: #ffe3e5; }
.tmz-brand-chip.is-active:hover { color: #fff !important; }
.tmz-brand-chip:hover { border-color: var(--tmz-accent); color: var(--tmz-accent); }

.tmz-h { font-size: 18px; margin: 22px 0 10px; }
.tmz-brand-name { font-size: 26px; margin: 26px 0 4px; padding-bottom: 8px; border-bottom: 3px solid #16181d; }
.tmz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tmz-gen { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid #e1e4e8; border-top: 3px solid var(--tmz-accent); border-radius: 4px; background: #fff; text-decoration: none !important; color: #16181d !important; transition: box-shadow .15s, transform .15s; }
.tmz-gen:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.tmz-gen-name { font-weight: 800; font-size: 17px; }
.tmz-gen-years { color: #6b6f76; font-size: 14px; }
.tmz-gen-hl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tmz-gen-hl span { font-size: 13px; background: #f3f4f6; border-radius: 3px; padding: 2px 7px; font-weight: 700; font-family: inherit; }
.tmz-gen-hl em { font-style: normal; font-weight: 400; color: #6b6f76; }
.tmz-gen-more { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--tmz-accent); }
.tmz-none, .tmz-empty { padding: 20px; background: #f5f6f7; border-radius: 4px; }
[hidden] { display: none !important; }

.tmz-crumbs { font-size: 13px; color: #6b6f76; margin: 0 0 1.2em; }
.tmz-crumbs a { color: #6b6f76; text-decoration: none; }
.tmz-crumbs a:hover { color: var(--tmz-accent); }
.tmz-crumbs .tmz-sep { margin: 0 4px; }
.tmz-crumbs-top { margin: 0 0 12px; }
.tmz-news { margin: 1.6em 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--tmz-accent); }
.tmz-news-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tmz-accent); margin-bottom: 4px; }
.tmz-news a { font-weight: 700; font-size: 1.15em; color: #16181d; text-decoration: none; }
.tmz-news a:hover { text-decoration: underline; }
