/* Posao Theme: guide index, topic lists, article, plain pages. Source: the accepted mockup. */

/* Shared small parts */
.pt-crumb { font-size: 13px; color: var(--pt-muted); display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--pt-space-3); }
.pt-crumb a { text-decoration: none; color: var(--pt-muted); }
.pt-crumb a:hover { text-decoration: underline; color: var(--pt-text); }
.pt-panel { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 20px; box-shadow: var(--pt-shadow); }
.pt-tag { align-self: flex-start; font-size: 12px; font-weight: 600; border-radius: 6px; padding: 2px 8px; background: var(--pt-surface-2); color: var(--pt-muted); }
.pt-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--pt-muted); font-size: 13px; }
.pt-chips { display: flex; gap: var(--pt-space-2); flex-wrap: wrap; justify-content: center; margin: 20px 0 24px; }
.pt-chip { border: 1px solid var(--pt-border); background: var(--pt-surface); border-radius: var(--pt-pill); padding: 6px 12px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--pt-text); }
.pt-chip:hover { border-color: var(--pt-navy); }
.pt-chip[aria-current] { background: var(--pt-navy-50); border-color: var(--pt-navy); color: var(--pt-navy); }
[data-theme="dark"] .pt-chip[aria-current] { color: #c9cdff; }

/* Guide index */
.pt-bl-head { text-align: center; padding: 18px 0 8px; }
.pt-bl-head h1 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.03em; line-height: 1.1; margin: 0 0 8px; }
.pt-bl-head p, .pt-bl-head__desc { color: var(--pt-muted); margin: 0 auto; max-width: 620px; }

.pt-bl-feat { display: grid; grid-template-columns: 1.1fr 1fr; padding: 0; overflow: hidden; text-decoration: none; color: inherit; }
.pt-bl-feat:hover { border-color: var(--pt-navy); }
.pt-bl-feat__img { min-height: 260px; background: var(--pt-navy-50); display: block; }
.pt-bl-feat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-bl-feat__tx { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.pt-bl-feat__title { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.pt-bl-feat__ex { color: var(--pt-muted); }

.pt-bl-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.pt-bl-tools a { text-decoration: none; color: inherit; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 16px; }
.pt-bl-tools a:hover { border-color: var(--pt-navy); }
.pt-bl-tools i { width: 44px; height: 44px; border-radius: 12px; background: var(--pt-orange-50); color: var(--pt-orange-600); display: grid; place-items: center; }
.pt-bl-tools i .pt-icon { width: 22px; height: 22px; }
.pt-bl-tools b { display: block; }
.pt-bl-tools small { color: var(--pt-muted); font-size: 13px; }

.pt-bl-sec { font-size: 20px; letter-spacing: -.02em; margin: 36px 0 14px; }
.pt-bl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pt-acard { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); overflow: hidden; box-shadow: var(--pt-shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.pt-acard:hover { border-color: var(--pt-navy); }
.pt-acard__img { height: 150px; background: var(--pt-navy-50); display: block; }
.pt-acard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pt-acard__bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pt-acard__title { font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.pt-acard .pt-meta { margin-top: auto; font-size: 12.5px; }

.pt-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 26px; }
.pt-pager .page-numbers { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--pt-border); background: var(--pt-surface); display: grid; place-items: center; text-decoration: none; font-weight: 700; font-size: 14px; padding: 0 12px; color: var(--pt-text); }
.pt-pager .page-numbers.current { background: var(--pt-navy); border-color: var(--pt-navy); color: #fff; }
.pt-pager .page-numbers.dots { border: 0; background: none; }

.pt-bcta { margin-top: 52px; background: var(--pt-navy); color: #fff; border-radius: 22px; padding: 36px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pt-bcta h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -.02em; }
.pt-bcta p { margin: 0; color: #d5d8f0; }
.pt-bcta .pt-btn { height: 48px; padding: 0 22px; font-size: 15px; }

/* Article */
.pt-art-head { max-width: 820px; }
.pt-art-head h1 { font-size: clamp(26px, 3.6vw, 42px); letter-spacing: -.03em; line-height: 1.12; margin: 12px 0 14px; }
.pt-art-head__lead { font-size: 18px; color: var(--pt-muted); margin: 0 0 16px; line-height: 1.5; }
.pt-byline { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13.5px; color: var(--pt-muted); }
.pt-byline__who { display: inline-flex; align-items: center; gap: 8px; color: var(--pt-text); font-weight: 600; }
.pt-byline__who i { width: 32px; height: 32px; border-radius: 50%; background: var(--pt-navy); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; }
/* Cover images carry text, so they are shown whole, never cropped. */
.pt-art-hero { margin: 20px 0 24px; border-radius: var(--pt-radius); overflow: hidden; max-width: 820px; }
.pt-art-hero img { width: 100%; height: auto; display: block; }

.pt-art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.pt-art { font-size: 17px; line-height: 1.75; max-width: 720px; min-width: 0; }
.pt-art h2 { font-size: 24px; letter-spacing: -.02em; line-height: 1.25; margin: 34px 0 10px; scroll-margin-top: calc(var(--pt-header-h) + 16px); }
.pt-art h3 { font-size: 18px; margin: 22px 0 6px; }
.pt-art p { margin: 0 0 16px; }
.pt-art ul, .pt-art ol { margin: 0 0 16px; padding-left: 22px; }
.pt-art li { margin-bottom: 6px; }
.pt-art li::marker { color: var(--pt-orange); }
.pt-art a:not(.pt-btn):not(.pt-panel) { color: var(--pt-navy); font-weight: 600; }
[data-theme="dark"] .pt-art a:not(.pt-btn):not(.pt-panel) { color: #c9cdff; }
.pt-art img { border-radius: var(--pt-radius-sm); }
.pt-art figure { margin: 0 0 18px; }
.pt-art table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.pt-art th, .pt-art td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--pt-border); }
.pt-art th { background: var(--pt-surface-2); font-size: 13px; }
.pt-art .wp-block-table { overflow-x: auto; }
.pt-art blockquote { margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid var(--pt-orange); background: var(--pt-surface); border-radius: 0 var(--pt-radius-sm) var(--pt-radius-sm) 0; }

.pt-inl { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; background: var(--pt-navy); color: #fff; border-radius: var(--pt-radius); padding: 18px 20px; margin: 26px 0; font-size: 15px; line-height: 1.4; }
.pt-inl b { display: block; font-size: 17px; }
.pt-inl span { color: #d5d8f0; }

.pt-author { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; margin-top: 30px; }
.pt-author i { width: 56px; height: 56px; border-radius: 50%; background: var(--pt-navy); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; }
.pt-author p { margin: 4px 0 0; font-size: 14.5px; color: var(--pt-muted); line-height: 1.55; }
.pt-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.pt-pn a { text-decoration: none; color: inherit; padding: 16px; }
.pt-pn a:hover { border-color: var(--pt-navy); }
.pt-pn small { display: block; color: var(--pt-muted); font-size: 12.5px; margin-bottom: 4px; }
.pt-pn b { font-size: 15px; line-height: 1.3; display: block; }
.pt-pn a:last-child { text-align: right; }

.pt-art-aside { display: grid; gap: 16px; position: sticky; top: calc(var(--pt-header-h) + 16px); }
.pt-toc h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--pt-muted); margin: 0 0 10px; }
.pt-toc ol { margin: 0; padding-left: 18px; font-size: 14.5px; max-height: 40vh; overflow-y: auto; }
.pt-toc li { margin-bottom: 8px; }
.pt-toc a { text-decoration: none; color: var(--pt-text); }
.pt-toc a:hover { text-decoration: underline; }
.pt-sidejobs h2 { font-size: 16px; margin: 0 0 10px; }
.pt-sidejobs ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.pt-sidejobs li a { display: block; padding: 10px 12px; border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); text-decoration: none; color: inherit; }
.pt-sidejobs li a:hover { border-color: var(--pt-orange); }
.pt-sidejobs li b { display: block; font-size: 14px; line-height: 1.3; }
.pt-sidejobs li small { color: var(--pt-muted); font-size: 12.5px; }
.pt-sidejobs .pt-btn { width: 100%; }
.pt-sidejobs .pt-btn .pt-icon { width: 16px; height: 16px; }

.pt-mtoc, .pt-jobbar { display: none; }

/* Plain pages */
.pt-page h1 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; }
.pt-404 { text-align: center; padding-top: var(--pt-space-7); }
.pt-404__links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
/* An expired ad's address (404.php): the ad's title and open ads like it. */
.pt-expired__ad { font-weight: 700; font-size: 17px; color: var(--pt-muted); margin: -6px 0 12px; }
.pt-jobs.pt-expired__jobs { max-width: 760px; margin: 20px auto 24px; text-align: left; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 47.99em) { .pt-jobs.pt-expired__jobs { grid-template-columns: 1fr; } }

@media (max-width: 900px) {
	.pt-bl-feat { grid-template-columns: 1fr; }
	.pt-bl-feat__img { min-height: 160px; }
	.pt-bl-feat__tx { padding: 18px; }
	.pt-bl-tools, .pt-bl-grid { grid-template-columns: 1fr; }
	.pt-art-grid { grid-template-columns: 1fr; gap: 20px; }
	.pt-art { font-size: 16.5px; }
	.pt-art-aside { position: static; }
	.pt-art-aside .pt-toc { display: none; }
	.pt-mtoc { display: block; background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); padding: 12px 14px; margin: 0 0 20px; font-size: 15px; }
	.pt-mtoc summary { font-weight: 700; cursor: pointer; }
	.pt-mtoc ol { margin: 10px 0 0; padding-left: 20px; }
	.pt-inl { grid-template-columns: 1fr; }
	.pt-pn { grid-template-columns: 1fr; }
	.pt-pn a:last-child { text-align: left; }
	.pt-bcta { padding: 24px 20px; }
}

/* Phone: a fixed link to the jobs, above the bottom menu */
@media (max-width: 47.99em) {
	.pt-jobbar { display: flex; align-items: center; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: calc(var(--pt-bnav-h) + 10px + env(safe-area-inset-bottom)); z-index: 800; background: var(--pt-orange-600); color: #fff; border-radius: var(--pt-pill); padding: 12px 16px; font-weight: 700; font-size: 15px; text-decoration: none; box-shadow: var(--pt-shadow-lg); }
	.pt-jobbar span { flex: 1; }
	.single-post .pt-foot { padding-bottom: calc(var(--pt-bnav-h) + 64px); }
}

/* Comments */
.pt-comments { margin-top: 36px; }
.pt-comments__list { list-style: none; margin: 0 0 20px; padding: 0; }
.pt-comments__list .comment-body { background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); padding: 14px 16px; margin-bottom: 10px; font-size: 15px; }
.pt-comments__list .children { list-style: none; padding-left: 20px; }
.pt-comments textarea, .pt-comments input[type="text"], .pt-comments input[type="email"], .pt-comments input[type="url"] { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); font: inherit; background: var(--pt-surface); color: var(--pt-text); }
.pt-comments input[type="submit"] { border: 0; border-radius: var(--pt-pill); padding: 10px 18px; font: inherit; font-weight: 700; background: var(--pt-navy); color: #fff; cursor: pointer; }
