/* Blog: lista és cikkoldal (a téma arculatában) */

/* ---------- Lista ---------- */
.tb-blog { padding: 40px 0 96px; }
.tb-bloghead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding-bottom: 36px; margin-bottom: 40px; border-bottom: 1px solid var(--tb-sand); }
.tb-bloghead__l { max-width: 760px; }
.tb-bloghead__title { font-size: clamp(40px, 5vw, 64px); line-height: 1; margin-top: 12px; }
.tb-bloghead__page { color: var(--tb-sage); }
.tb-bloghead__lead { margin: 18px 0 0; font-size: 19px; line-height: 1.6; max-width: 620px; }
.tb-bloghead__agi { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.4; color: var(--tb-muted); }
.tb-bloghead__agi strong { color: var(--tb-ink); }
.tb-bloghead__agi .tb-avatar { width: 64px; height: 64px; }

.tb-pcard { position: relative; display: flex; flex-direction: column; background: var(--tb-white); border: 1px solid var(--tb-sand); border-radius: var(--tb-r-md); overflow: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, border-color .2s; }
.tb-pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(47, 58, 47, .1); border-color: var(--tb-sage-soft); }
.tb-pcard__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tb-sand-pale); }
.tb-pcard__img > img, .tb-pcard__img > picture, .tb-pcard__img picture > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.tb-pcard:hover .tb-pcard__img img { transform: scale(1.04); }
.tb-pcard__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 24px 24px; }
.tb-pcard__meta { font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--tb-sage); }
.tb-pcard__title { font-size: 22px; line-height: 1.2; letter-spacing: -.4px; }
.tb-pcard__title a { text-decoration: none; color: var(--tb-ink); }
.tb-pcard__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* az egész kártya kattintható */
.tb-pcard__excerpt { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--tb-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tb-pcard__more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 15px; color: var(--tb-ink); text-decoration: none; }
.tb-pcard:hover .tb-pcard__more { color: var(--tb-sage); }

/* Kiemelt (legfrissebb) cikk */
.tb-pcard--feat { flex-direction: row; margin-bottom: 40px; border-radius: var(--tb-r-lg); background: var(--tb-sage-pale); border-color: transparent; }
.tb-pcard--feat .tb-pcard__img { flex: 1 1 58%; aspect-ratio: auto; min-height: 440px; }
.tb-pcard--feat .tb-pcard__body { flex: 1 1 42%; justify-content: center; gap: 16px; padding: clamp(28px, 4vw, 56px); }
.tb-pcard--feat .tb-pcard__title { font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -1px; }
.tb-pcard--feat .tb-pcard__excerpt { font-size: 17px; color: var(--tb-ink); -webkit-line-clamp: 4; }
.tb-pcard--feat .tb-pcard__more { margin-top: 8px; display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: var(--tb-pill); background: var(--tb-ink); color: var(--tb-bg); }
.tb-pcard--feat:hover .tb-pcard__more { background: var(--tb-sage); color: var(--tb-bg); }
.tb-pcard--feat:hover { transform: none; }

.tb-pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1280px) { .tb-pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
	.tb-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
	.tb-pcard--feat { flex-direction: column; }
	.tb-pcard--feat .tb-pcard__img { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
}
@media (max-width: 560px) {
	.tb-pgrid { grid-template-columns: 1fr; }
	.tb-pcard__body { padding: 18px 20px 20px; }
}

/* Lapozó */
.tb-pager { margin-top: 56px; }
.tb-pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tb-pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 16px; border-radius: var(--tb-pill); border: 2px solid var(--tb-sand); background: var(--tb-white); color: var(--tb-ink); font-weight: 700; text-decoration: none; }
.tb-pager a.page-numbers:hover { border-color: var(--tb-ink); }
.tb-pager .page-numbers.current { background: var(--tb-ink); border-color: var(--tb-ink); color: var(--tb-bg); }
.tb-pager .page-numbers.dots { border-color: transparent; background: none; min-width: 24px; padding: 0; }
.tb-blog__empty { font-size: 18px; }

/* ---------- Cikkoldal ---------- */
.tb-post { padding: 24px 0 96px; }
.tb-posthero { position: relative; display: flex; align-items: flex-end; height: clamp(340px, 38vw, 560px); border-radius: var(--tb-r-xl); overflow: hidden; background: var(--tb-sage-soft); background-image: radial-gradient(rgba(255,255,255,.3) 2.5px, transparent 3px); background-size: 22px 22px; }
.tb-posthero > .tb-posthero__img, .tb-posthero > picture, .tb-posthero picture > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }
.tb-posthero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(31, 39, 31, .82) 0%, rgba(31, 39, 31, .45) 38%, rgba(31, 39, 31, .05) 70%); pointer-events: none; }
.tb-posthero--noimg::after { display: none; }
.tb-posthero__in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; width: 100%; padding: clamp(24px, 4vw, 56px); color: #fff; }
.tb-posthero__title { max-width: 1100px; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.04; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.tb-posthero--noimg .tb-posthero__title, .tb-posthero--noimg .tb-posthero__meta { color: var(--tb-ink); text-shadow: none; }
.tb-posthero__meta { font-size: 14px; font-weight: 700; letter-spacing: .5px; color: rgba(255, 255, 255, .92); }
.tb-posthero__meta a { color: inherit; text-underline-offset: 3px; }
.tb-posthero__back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--tb-pill); background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .5); backdrop-filter: blur(6px); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.tb-posthero__back:hover { background: #fff; color: var(--tb-ink); }
.tb-posthero--noimg .tb-posthero__back { background: var(--tb-white); color: var(--tb-ink); border-color: var(--tb-sand); }

.tb-postgrid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 380px); gap: clamp(32px, 4.5vw, 80px); margin-top: clamp(32px, 4vw, 56px); align-items: start; }
.tb-postmain { min-width: 0; }

/* Cikk szövege */
.tb-postbody { font-size: 18px; line-height: 1.75; } /* a szöveg kitölti a bal hasábot */
@media (min-width: 1400px) { .tb-postbody { font-size: 19px; } }
.tb-postbody p { margin: 0 0 1.15em; }
.tb-postbody > *:first-child { margin-top: 0; }
.tb-postbody h2 { font-size: clamp(26px, 2.4vw, 34px); margin: 1.8em 0 .55em; }
.tb-postbody h3 { font-size: clamp(21px, 1.8vw, 25px); margin: 1.6em 0 .45em; letter-spacing: -.4px; }
.tb-postbody h4, .tb-postbody h5, .tb-postbody h6 { font-size: 19px; margin: 1.4em 0 .4em; letter-spacing: -.2px; }
.tb-postbody ul, .tb-postbody ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.tb-postbody li { margin-bottom: .45em; }
.tb-postbody li::marker { color: var(--tb-sage); }
.tb-postbody a { color: var(--tb-sage); font-weight: 600; text-underline-offset: 3px; }
.tb-postbody a:hover { color: var(--tb-ink); }
.tb-postbody img { height: auto; border-radius: var(--tb-r-md); }
.tb-postbody figure { margin: 1.6em 0; }
.tb-postbody figcaption { margin-top: 8px; font-size: 14px; color: var(--tb-muted); }
.tb-postbody blockquote { margin: 1.6em 0; padding: 20px 26px; border-left: 4px solid var(--tb-sage); background: var(--tb-sage-pale); border-radius: 0 var(--tb-r-sm) var(--tb-r-sm) 0; }
.tb-postbody blockquote p:last-child { margin-bottom: 0; }
.tb-postbody table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; }
.tb-postbody th, .tb-postbody td { padding: 10px 14px; border-bottom: 1px solid var(--tb-sand); text-align: left; vertical-align: top; }
.tb-postbody th { background: var(--tb-sand-pale); }
.tb-postbody hr, .tb-postbody .wp-block-separator { width: 100%; max-width: none; height: 0; border: 0; border-top: 1px solid var(--tb-sand); background: none; opacity: 1; margin: 2.4em 0 0; }
/* vonal + alcím: a két térköz ne adódjon össze */
.tb-postbody hr + h2, .tb-postbody hr + h3, .tb-postbody hr + h4 { margin-top: 1.1em; }
.tb-postbody hr:last-child, .tb-postbody h2 + hr, .tb-postbody h3 + hr { display: none; }
.tb-postbody strong, .tb-postbody b { font-weight: 700; }
.tb-postbody li > ul, .tb-postbody li > ol { margin: .45em 0 0; }
.tb-postbody .wp-block-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tb-postbody .wp-block-gallery figure { margin: 0; }
.tb-postbody .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin: 1.4em 0; }
.tb-postbody .wp-block-column { flex: 1 1 260px; min-width: 0; }

/* „Kérdésed van?" doboz a cikk végén */
.tb-postask { display: flex; align-items: center; gap: 22px; margin-top: 48px; padding: 26px 28px; border-radius: var(--tb-r-lg); background: var(--tb-butter); }
.tb-postask .tb-avatar { width: 84px; height: 84px; }
.tb-postask__title { display: block; font-family: var(--tb-font-head); font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.tb-postask p { margin: 4px 0 14px; }
.tb-postask__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Oldalsáv */
.tb-postaside { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.tb-asidebox { padding: 22px; border-radius: var(--tb-r-md); background: var(--tb-white); border: 1px solid var(--tb-sand); }
.tb-asidebox--posts { background: var(--tb-sand-pale); border-color: transparent; }
.tb-asidebox__title { font-size: 20px; letter-spacing: -.4px; margin-bottom: 14px; }
.tb-asidebox__list { display: flex; flex-direction: column; gap: 6px; }
.tb-asidebox__more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--tb-ink); text-decoration: none; }
.tb-asidebox__more:hover { color: var(--tb-sage); }
.tb-asideitem { display: flex; align-items: center; gap: 14px; padding: 8px; margin: 0 -8px; border-radius: 16px; text-decoration: none; color: var(--tb-ink); transition: background .15s; }
.tb-asideitem:hover { background: var(--tb-sand-pale); color: var(--tb-ink); }
.tb-asidebox--posts .tb-asideitem:hover { background: var(--tb-white); }
.tb-asideitem__img { position: relative; flex: none; width: 76px; height: 76px; border-radius: 14px; overflow: hidden; background: var(--tb-sand-pale); }
.tb-asideitem__img > img, .tb-asideitem__img > picture, .tb-asideitem__img picture > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.tb-asideitem__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tb-asideitem__name { font-weight: 600; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tb-asideitem__price { font-weight: 700; font-size: 15px; }
.tb-asideitem__price del { color: var(--tb-muted); font-weight: 500; margin-right: 4px; }
.tb-asideitem__price ins { text-decoration: none; color: var(--tb-clay); }
.tb-asideitem__meta { font-size: 13px; color: var(--tb-muted); }

@media (max-width: 1000px) {
	.tb-postgrid { grid-template-columns: minmax(0, 1fr); }
	.tb-postaside { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
@media (max-width: 600px) {
	.tb-post { padding-top: 12px; }
	.tb-posthero { height: 380px; border-radius: var(--tb-r-lg); }
	.tb-postbody { font-size: 17px; }
	.tb-postask { flex-direction: column; align-items: flex-start; padding: 22px; }
}

/* ---------- Cikk-fejléc v2 (2026-11-16) ----------
 * Osztott doboz: a cím színes panelen, a borítókép mellette (mobilon fölötte) a saját arányában.
 * A borítóképek többsége négyzetes, és van, amelyikbe szöveg van égetve: így a cím soha nem kerül a képre,
 * és a széles doboz sem vágja le a kép felét. */
.tb-posthero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; height: auto; }
.tb-posthero::after { display: none; }
.tb-posthero > .tb-posthero__img, .tb-posthero > picture { position: relative; inset: auto; order: 2; width: 100%; height: 100%; min-height: 100%; aspect-ratio: 1 / 1; max-height: 560px; object-fit: cover; }
.tb-posthero > picture > img { position: static; width: 100%; height: 100%; object-fit: cover; }
.tb-posthero--contain .tb-posthero__img, .tb-posthero--contain > picture { object-fit: contain; background: var(--tb-white); }
.tb-posthero--contain picture > img { object-fit: contain; }
.tb-posthero__in { order: 1; justify-content: flex-end; gap: 16px; color: var(--tb-ink); }
.tb-posthero__back { margin-bottom: auto; background: var(--tb-white); color: var(--tb-ink); border-color: transparent; backdrop-filter: none; }
.tb-posthero__back:hover { background: var(--tb-ink); color: var(--tb-bg); }
.tb-posthero__title { color: var(--tb-ink); text-shadow: none; font-size: clamp(32px, 3.4vw, 54px); }
.tb-posthero__meta { color: var(--tb-ink); }
.tb-posthero__meta a { display: inline-block; padding: 6px 0; }
.tb-posthero--noimg { grid-template-columns: minmax(0, 1fr); min-height: 300px; }
@media (max-width: 760px) {
	.tb-posthero { grid-template-columns: minmax(0, 1fr); height: auto; }
	.tb-posthero > .tb-posthero__img, .tb-posthero > picture { order: 0; height: auto; min-height: 0; aspect-ratio: 4 / 3; max-height: none; }
	.tb-posthero--contain > .tb-posthero__img, .tb-posthero--contain > picture { aspect-ratio: 1 / 1; }
	.tb-posthero__in { padding: 22px 22px 26px; gap: 12px; }
	.tb-posthero__back { margin-bottom: 4px; }
	.tb-posthero__title { font-size: clamp(28px, 7.6vw, 36px); line-height: 1.08; }
}
/* Apró érintési célok az oldalsávban */
.tb-asidebox__more { display: inline-block; padding: 8px 0; }
