/* Savjeti — lista (Savjeti / M-Savjeti) i članak (Clanak / M-Clanak). Pravila sa najmanje dvije klase. */

/* ---------- Zajedničko ---------- */
.psb-blog .psb-blog__avatar, .psb-article .psb-blog__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--psb-line); color: var(--psb-accent); font-family: var(--psb-display); font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.psb-article .psb-blog__avatar--sm { width: 40px; height: 40px; font-size: 14px; }
.psb-article .psb-blog__avatar--lg { width: 88px; height: 88px; font-size: 30px; }
.psb-blog .psb-eyebrow { display: block; font-family: var(--psb-mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--psb-accent); }
.psb-blog .psb-blog__more, .psb-article .psb-blog__more { font-size: 15px; font-weight: 700; color: var(--psb-accent); }

/* ---------- Lista ---------- */
.psb-blog.psb-blog { padding: 40px 0 0; }
.psb-blog .psb-blog__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 36px; }
.psb-blog .psb-blog__titles { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.psb-blog .psb-blog__title { margin: 0; font-family: var(--psb-display); font-weight: 900; font-stretch: 125%; font-size: 112px; line-height: .84; text-transform: uppercase; letter-spacing: -.02em; }
.psb-blog .psb-blog__author { display: flex; align-items: center; gap: 14px; max-width: 460px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--psb-muted); }
.psb-blog .psb-blog__author strong { color: var(--psb-text); }

.psb-blog .psb-blog__feat { text-decoration: none; display: flex; flex-wrap: wrap; background: var(--psb-surface); border: 1px solid var(--psb-line); border-radius: 28px; overflow: hidden; margin-bottom: 20px; color: var(--psb-text); }
.psb-blog .psb-blog__feat-img { flex: 1.3 1 520px; min-height: 380px; position: relative; background: var(--psb-line); }
.psb-blog .psb-blog__feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.psb-blog .psb-blog__feat-body { flex: 1 1 400px; padding: 40px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; gap: 16px; min-width: 0; }
.psb-blog .psb-blog__feat-meta { font-family: var(--psb-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--psb-accent); }
.psb-blog .psb-blog__feat-title { font-family: var(--psb-display); font-weight: 900; font-stretch: 112%; font-size: 40px; line-height: .98; text-transform: uppercase; }
.psb-blog .psb-blog__feat-text { font-size: 16px; line-height: 1.6; color: var(--psb-muted); }
body.psb-site .psb-blog .psb-blog__feat:hover { color: var(--psb-text); border-color: var(--psb-line-strong); }

.psb-blog__grid.psb-blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.psb-blog-card.psb-blog-card { text-decoration: none; background: var(--psb-surface); border: 1px solid var(--psb-line); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; color: var(--psb-text); min-width: 0; }
body.psb-site .psb-blog-card.psb-blog-card:hover { color: var(--psb-text); border-color: var(--psb-line-strong); }
.psb-blog-card .psb-blog-card__img { display: block; aspect-ratio: 16 / 10; background: var(--psb-line); overflow: hidden; }
.psb-blog-card .psb-blog-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.psb-blog-card:hover .psb-blog-card__img img { transform: scale(1.03); }
.psb-blog-card .psb-blog-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.psb-blog-card .psb-blog-card__date { font-family: var(--psb-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--psb-muted-2); }
.psb-blog-card .psb-blog-card__title { font-family: var(--psb-display); font-weight: 900; font-stretch: 108%; font-size: 21px; line-height: 1.08; text-transform: uppercase; overflow-wrap: break-word; }
.psb-blog-card .psb-blog-card__text { font-size: 14px; line-height: 1.55; color: #A8A8A8; flex: 1; }
.psb-blog-card .psb-blog__more { font-size: 14px; }
.psb-blog .psb-blog__empty { color: var(--psb-muted); font-size: 16px; }

.psb-blog .psb-blog__pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin: 40px 0 0; }
.psb-blog .psb-blog__pnum { font-family: var(--psb-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--psb-muted-2); }
.psb-blog .psb-blog__pbtn { text-decoration: none; display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: var(--psb-pill); background: var(--psb-accent); color: var(--psb-on-accent); font-weight: 700; }
body.psb-site .psb-blog .psb-blog__pbtn:hover { background: var(--psb-accent-hover); color: var(--psb-on-accent); }
.psb-blog .psb-blog__pbtn--ghost { background: transparent; color: var(--psb-text); border: 1px solid var(--psb-line-strong); }
body.psb-site .psb-blog .psb-blog__pbtn--ghost:hover { background: transparent; color: var(--psb-accent); border-color: var(--psb-accent); }

/* ---------- Članak ---------- */
.psb-article.psb-article { padding: 32px 0 0; }
.psb-article .psb-article__kicker { display: none; font-family: var(--psb-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--psb-accent); }
.psb-article .psb-article__title { margin: 0; max-width: 1100px; font-family: var(--psb-display); font-weight: 900; font-stretch: 118%; font-size: 80px; line-height: .9; text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: break-word; }
.psb-article .psb-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 28px; font-size: 14px; color: var(--psb-muted); }
.psb-article .psb-article__by { display: flex; align-items: center; gap: 10px; }
.psb-article .psb-article__by strong { color: var(--psb-text); }
.psb-article .psb-article__hero { margin-top: 36px; aspect-ratio: 21 / 8; border-radius: 28px; overflow: hidden; background: var(--psb-line); }
.psb-article .psb-article__hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.psb-article .psb-article__body { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; padding-top: 56px; }
.psb-article .psb-article__side { flex: 1 1 260px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; min-width: 0; }
.psb-toc.psb-toc { display: flex; flex-direction: column; gap: 4px; border-left: 2px solid var(--psb-line); padding-left: 18px; max-height: calc(100vh - 380px); overflow-y: auto; scrollbar-width: none; }
.psb-toc.psb-toc::-webkit-scrollbar { display: none; }
.psb-article .psb-toc__label { font-family: var(--psb-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--psb-muted-2); margin-bottom: 8px; display: block; }
.psb-toc .psb-toc__link { font-size: 14px; line-height: 1.35; text-decoration: none; padding: 6px 0; color: var(--psb-muted); }
.psb-toc .psb-toc__link.is-on { color: var(--psb-accent); font-weight: 600; }
body.psb-site .psb-toc .psb-toc__link:hover { color: var(--psb-text); }
.psb-toc .psb-toc__more { display: none; }
body.psb-site .psb-toc .psb-toc__link.is-on:hover { color: var(--psb-accent); }

.psb-article .psb-article__stack { text-decoration: none; background: var(--psb-surface); border: 1px solid var(--psb-line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; color: var(--psb-text); }
body.psb-site .psb-article .psb-article__stack:hover { color: var(--psb-text); border-color: var(--psb-accent); }
.psb-article .psb-article__stack-img { display: block; aspect-ratio: 4 / 3; background: var(--psb-tile); }
.psb-article .psb-article__stack-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.psb-article .psb-article__stack-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.psb-article .psb-article__stack-tag { font-family: var(--psb-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--psb-accent); }
.psb-article .psb-article__stack-body strong { font-size: 16px; }
.psb-article .psb-article__stack-price { font-size: 14px; color: var(--psb-muted); }
.psb-article .psb-article__stack-price s { color: var(--psb-muted-2); }

/* Tekst članka (Gutenberg / klasični editor). */
.psb-prose.psb-prose { flex: 999 1 640px; min-width: 0; max-width: 760px; font-size: 18px; line-height: 1.75; color: #D5D5D5; overflow-wrap: break-word; }
.psb-prose > :first-child { margin-top: 0; }
.psb-prose > p:first-of-type { font-size: 22px; line-height: 1.6; color: var(--psb-text); }
.psb-prose p, .psb-prose ul, .psb-prose ol, .psb-prose figure, .psb-prose table { margin: 0 0 20px; }
.psb-prose h2 { margin: 44px 0 16px; font-family: var(--psb-display); font-weight: 900; font-stretch: 112%; font-size: 34px; line-height: 1; text-transform: uppercase; color: var(--psb-text); scroll-margin-top: 110px; }
.psb-prose h3 { margin: 32px 0 12px; font-family: var(--psb-display); font-weight: 800; font-stretch: 108%; font-size: 23px; line-height: 1.15; color: var(--psb-text); }
.psb-prose h4 { margin: 24px 0 10px; font-size: 18px; color: var(--psb-text); }
.psb-prose strong, .psb-prose b { color: var(--psb-text); }
body.psb-site .psb-prose a { color: var(--psb-accent); text-decoration: underline; text-underline-offset: 3px; }
body.psb-site .psb-prose a:hover { color: var(--psb-text); }
body.psb-site .psb-prose h2 a, body.psb-site .psb-prose h3 a { color: inherit; text-decoration-color: var(--psb-accent); }
.psb-prose ul { padding-left: 22px; }
.psb-prose li { margin: 4px 0; }
.psb-prose li::marker { color: var(--psb-accent); }
/* Numerisana lista kao kartice sa 01, 02… (dizajn „Najčešće greške“). */
.psb-prose ol { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: psb-ol; }
.psb-prose ol > li { counter-increment: psb-ol; display: flex; gap: 16px; padding: 16px 18px; margin: 0; background: var(--psb-surface); border: 1px solid var(--psb-line); border-radius: 16px; }
.psb-prose ol > li::before { content: counter(psb-ol, decimal-leading-zero); font-family: var(--psb-mono); color: var(--psb-accent); font-weight: 700; flex: 0 0 auto; }
.psb-prose blockquote, .psb-prose .wp-block-quote, .psb-prose .wp-block-pullquote { margin: 28px 0; padding: 24px 28px; background: var(--psb-surface); border: 0; border-left: 4px solid var(--psb-accent); border-radius: 0 18px 18px 0; font-family: var(--psb-display); font-weight: 800; font-stretch: 105%; font-size: 24px; line-height: 1.3; color: var(--psb-text); text-align: left; }
.psb-prose blockquote p { margin: 0; }
.psb-prose blockquote cite { display: block; margin-top: 10px; font-family: var(--psb-font); font-size: 14px; font-weight: 500; font-style: normal; color: var(--psb-muted); }
.psb-prose img { max-width: 100%; height: auto; border-radius: 18px; }
.psb-prose figure { max-width: 100%; }
.psb-prose figcaption { font-size: 13px; color: var(--psb-muted-2); margin-top: 8px; }
.psb-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.psb-prose th, .psb-prose td { border: 1px solid var(--psb-line); padding: 10px 12px; text-align: left; }
.psb-prose th { background: var(--psb-surface); color: var(--psb-text); }
.psb-prose hr { border: 0; border-top: 1px solid var(--psb-line); margin: 36px 0; }
.psb-prose iframe, .psb-prose video { max-width: 100%; border-radius: 18px; }

/* Preporučeni proizvodi u tekstu. */
.psb-recs.psb-recs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 24px; }
.psb-recs .psb-recs__item { background: var(--psb-surface); border: 1px solid var(--psb-line); border-radius: 18px; padding: 12px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.psb-recs .psb-recs__img { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 12px; background: var(--psb-tile); padding: 6px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.psb-recs .psb-recs__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 0; mix-blend-mode: multiply; }
.psb-recs .psb-recs__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; }
body.psb-site .psb-prose .psb-recs .psb-recs__name { color: var(--psb-text); font-weight: 700; text-decoration: none; }
body.psb-site .psb-prose .psb-recs .psb-recs__name:hover { color: var(--psb-accent); }
.psb-recs .psb-recs__price { color: #D5D5D5; }
.psb-recs .psb-recs__price s { color: var(--psb-muted-2); }
.psb-recs .psb-recs__price .woocommerce-Price-amount { color: inherit; }
body.psb-site .psb-prose .psb-recs .psb-recs__add { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; background: var(--psb-accent); color: var(--psb-on-accent); display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 20px; font-weight: 700; }
body.psb-site .psb-prose .psb-recs .psb-recs__add:hover { background: var(--psb-accent-hover); color: var(--psb-on-accent); }
.psb-recs .psb-recs__add.loading { opacity: .6; }
.psb-recs .psb-recs__add.added::after { content: ""; }
.psb-recs .added_to_cart { display: none; }

/* Autor. */
.psb-article .psb-article__author { margin-top: 48px; background: var(--psb-surface); border: 1px solid var(--psb-line); border-radius: 24px; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; font-family: var(--psb-font); }
.psb-article .psb-article__author > div { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.psb-prose .psb-article__author .psb-toc__label { margin: 0; }
.psb-prose .psb-article__author .psb-article__author-name { margin: 0; font-size: 28px; scroll-margin-top: 0; }
.psb-prose .psb-article__author p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--psb-muted); }
body.psb-site .psb-prose .psb-article__ig { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--psb-text); }

/* Pročitaj još. */
.psb-article .psb-article__rel { padding-top: 88px; }
.psb-article .psb-article__rel-title { margin: 0 0 24px; font-family: var(--psb-display); font-weight: 900; font-stretch: 118%; font-size: 40px; line-height: 1; text-transform: uppercase; }
.psb-article .psb-blog__grid--rel { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.psb-blog-card--rel .psb-blog-card__img { aspect-ratio: 16 / 9; }
.psb-blog-card--rel .psb-blog-card__body { padding: 18px 20px 22px; }
.psb-blog-card--rel .psb-blog-card__title { font-size: 20px; line-height: 1.1; }

/* Traka sa paketom (samo mobitel). */
.psb-article .psb-article__bar { display: none; }

@media (max-width: 1100px) {
	.psb-article .psb-article__title { font-size: 60px; }
	.psb-blog .psb-blog__title { font-size: 88px; }
}

@media (max-width: 860px) {
	.psb-article .psb-article__side { position: static; flex-basis: 100%; }
	.psb-toc.psb-toc { max-height: none; background: var(--psb-surface); border: 1px solid var(--psb-line); border-radius: 16px; padding: 14px 16px; gap: 2px; }
	.psb-toc .psb-toc__link { padding: 8px 0; color: var(--psb-text); }
	.psb-toc .psb-toc__link.is-on { color: var(--psb-text); font-weight: 400; }
	.psb-toc.is-short .psb-toc__link:nth-of-type(n+6) { display: none; }
	.psb-toc.is-short .psb-toc__more { display: block; align-self: flex-start; margin-top: 4px; padding: 8px 0; border: 0; background: transparent; color: var(--psb-accent); font: 700 14px var(--psb-font); cursor: pointer; }
	body.psb-site .psb-toc.is-short .psb-toc__more:hover, body.psb-site .psb-toc.is-short .psb-toc__more:focus { background: transparent; color: var(--psb-accent-hover); }
	.psb-article .psb-article__side .psb-article__stack { display: none; }
}

@media (max-width: 640px) {
	/* Lista (M-Savjeti). */
	.psb-blog.psb-blog { padding-top: 24px; }
	.psb-blog .psb-blog__head { display: block; margin-bottom: 20px; }
	.psb-blog .psb-blog__title { font-size: 50px; font-stretch: 108%; margin: 10px 0 14px; }
	.psb-blog .psb-blog__titles { gap: 0; }
	.psb-blog .psb-eyebrow { font-size: 11px; }
	.psb-blog .psb-blog__author { font-size: 14px; }
	.psb-blog .psb-blog__author .psb-blog__avatar { display: none; }
	.psb-blog .psb-blog__feat { display: block; border-radius: 20px; margin-bottom: 14px; }
	.psb-blog .psb-blog__feat-img { display: block; min-height: 0; aspect-ratio: 16 / 10; }
	.psb-blog .psb-blog__feat-body { padding: 16px; gap: 8px; }
	.psb-blog .psb-blog__feat-meta { font-size: 10px; }
	.psb-blog .psb-blog__feat-title { font-size: 24px; font-stretch: 108%; line-height: 1; }
	.psb-blog .psb-blog__feat-text { font-size: 14px; line-height: 1.5; color: #A8A8A8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.psb-blog .psb-blog__feat .psb-blog__more { display: none; }
	.psb-blog .psb-blog__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
	.psb-blog .psb-blog-card { flex-direction: row; gap: 12px; border-radius: 16px; padding: 10px; }
	.psb-blog .psb-blog-card__img { width: 96px; height: 96px; aspect-ratio: auto; border-radius: 12px; flex: 0 0 auto; }
	.psb-blog .psb-blog-card__body { padding: 0; gap: 6px; min-width: 0; }
	.psb-blog .psb-blog-card__date { font-size: 10px; }
	.psb-blog .psb-blog-card__title { font-size: 15px; font-stretch: 105%; line-height: 1.12; }
	.psb-blog .psb-blog-card__text, .psb-blog .psb-blog-card .psb-blog__more { display: none; }
	.psb-blog .psb-blog__pbtn { height: 48px; padding: 0 20px; }

	/* Članak (M-Clanak). */
	.psb-article.psb-article { padding-top: 22px; }
	.psb-article .psb-crumbs { display: none; }
	.psb-article .psb-article__kicker { display: block; margin-bottom: 10px; }
	.psb-article .psb-article__title { font-size: 36px; font-stretch: 112%; line-height: .95; }
	.psb-article .psb-article__meta { margin-top: 16px; font-size: 13px; gap: 10px; }
	.psb-article .psb-article__role, .psb-article .psb-article__mins { display: none; }
	.psb-article .psb-article__hero { margin: 20px calc(-1 * var(--psb-gutter)) 0; aspect-ratio: 4 / 3; border-radius: 0; }
	.psb-article .psb-article__body { padding-top: 22px; gap: 22px; }
	.psb-prose.psb-prose { font-size: 17px; line-height: 1.7; }
	.psb-prose > p:first-of-type { font-size: 19px; line-height: 1.55; }
	.psb-prose h2 { margin: 30px 0 12px; font-size: 26px; }
	.psb-prose h3 { font-size: 20px; }
	.psb-prose blockquote, .psb-prose .wp-block-quote { padding: 18px; font-size: 19px; border-radius: 0 14px 14px 0; margin: 22px 0; }
	.psb-prose ol > li { padding: 14px 16px; gap: 12px; }
	.psb-recs.psb-recs { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.psb-recs .psb-recs__item { padding: 10px; border-radius: 14px; }
	.psb-recs .psb-recs__img { width: 56px; height: 56px; border-radius: 10px; }
	body.psb-site .psb-prose .psb-recs .psb-recs__add { width: 40px; height: 40px; }
	.psb-article .psb-article__author { margin-top: 28px; padding: 18px; border-radius: 18px; gap: 10px; }
	.psb-article .psb-article__author .psb-blog__avatar--lg { display: none; }
	.psb-prose .psb-article__author .psb-article__author-name { font-size: 22px; }
	.psb-prose .psb-article__author p { font-size: 14px; line-height: 1.6; }
	.psb-article .psb-article__rel { padding-top: 28px; padding-bottom: 24px; }
	.psb-article .psb-article__rel-title { font-size: 22px; font-stretch: 112%; margin-bottom: 12px; }
	.psb-article .psb-blog__grid--rel { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.psb-article .psb-blog-card--rel { flex-direction: row; align-items: center; gap: 12px; background: transparent; border: 0; border-top: 1px solid var(--psb-line); border-radius: 0; padding: 10px 0; }
	.psb-article .psb-blog-card--rel .psb-blog-card__img { width: 72px; height: 72px; aspect-ratio: auto; border-radius: 12px; flex: 0 0 auto; }
	.psb-article .psb-blog-card--rel .psb-blog-card__body { padding: 0; }
	.psb-article .psb-blog-card--rel .psb-blog-card__title { font-family: var(--psb-font); font-weight: 700; font-stretch: 100%; font-size: 14px; line-height: 1.35; text-transform: none; }

	/* Zelena traka sa paketom iznad donje navigacije. */
	.psb-article .psb-article__bar { position: sticky; bottom: 70px; z-index: 20; display: flex; align-items: center; gap: 10px; background: var(--psb-accent); color: var(--psb-on-accent); padding: 12px 16px 14px; text-decoration: none; margin-top: 8px; }
	body.psb-site .psb-article .psb-article__bar:hover { color: var(--psb-on-accent); background: var(--psb-accent-hover); }
	.psb-article .psb-article__bar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.psb-article .psb-article__bar-txt span { font-family: var(--psb-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.psb-article .psb-article__bar-txt strong { font-size: 15px; }
	.psb-article .psb-article__bar-btn { background: var(--psb-bg); color: var(--psb-text); font-size: 13px; font-weight: 700; padding: 12px 16px; border-radius: var(--psb-pill); flex: 0 0 auto; }
}
