/* Posao Theme: header, footer, buttons, page frame. Source: the accepted mockup. */

/* Buttons */
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--pt-space-2); border: 0; border-radius: var(--pt-pill); padding: 10px 18px; font: inherit; font-weight: 700; font-size: var(--pt-text-sm); text-decoration: none; white-space: nowrap; cursor: pointer; }
.pt-btn--primary { background: var(--pt-orange-600); color: #fff; }
.pt-btn--primary:hover { background: var(--pt-orange-700); }
.pt-btn--navy { background: var(--pt-navy); color: #fff; }
.pt-btn--ghost { background: var(--pt-surface); border: 1px solid var(--pt-border); color: var(--pt-text); }

/* Logo */
.pt-logo { display: inline-flex; align-items: center; gap: var(--pt-space-2); font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; color: var(--pt-navy); flex: none; }
.pt-logo b { color: var(--pt-orange-600); font-weight: inherit; }
.pt-logo__img { display: block; height: 38px; width: auto; }
[data-theme="dark"] .pt-logo { color: #fff; }

.pt-skip:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; margin: 0; padding: 10px 14px; clip-path: none; background: var(--pt-surface); color: var(--pt-text); border-radius: var(--pt-radius-sm); box-shadow: var(--pt-shadow-lg); z-index: 1000; }

/* Header */
.pt-hdr { min-height: var(--pt-header-h); background: var(--pt-surface); border-bottom: 1px solid var(--pt-border); display: flex; align-items: center; gap: var(--pt-space-4); padding: 0 20px; position: sticky; top: 0; z-index: 900; }

.pt-search { flex: 1; min-width: 0; max-width: 620px; display: flex; align-items: center; background: var(--pt-surface-2); border: 1px solid var(--pt-border); border-radius: var(--pt-pill); padding: 4px 4px 4px 14px; gap: var(--pt-space-2); }
.pt-search:focus-within { border-color: var(--pt-navy); box-shadow: 0 0 0 3px var(--pt-navy-50); }
.pt-search input, .pt-search select { border: 0; background: none; outline: 0; min-width: 0; height: 36px; font: inherit; font-size: var(--pt-text-sm); color: var(--pt-text); }
.pt-search input { flex: 1.4; }
.pt-search select { flex: 1; border-left: 1px solid var(--pt-border); padding-left: 10px; }
.pt-search button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--pt-navy); color: #fff; border-radius: var(--pt-pill); height: 36px; padding: 0 16px; font: inherit; font-weight: 600; font-size: var(--pt-text-sm); cursor: pointer; }
.pt-search button .pt-icon { width: 16px; height: 16px; }
.pt-search-toggle { display: none; }

.pt-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; flex: none; }
.pt-nav > a:not(.pt-btn), .pt-acct > summary { text-decoration: none; font-weight: 600; font-size: var(--pt-text-sm); padding: 8px 12px; border-radius: var(--pt-pill); color: var(--pt-muted); }
.pt-nav > a:not(.pt-btn):hover, .pt-acct > summary:hover, .pt-nav > a[aria-current] { background: var(--pt-surface-2); color: var(--pt-text); }

/* Account menu: the items come from HivePress, by role */
.pt-acct { position: relative; }
.pt-acct > summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; }
.pt-acct > summary::-webkit-details-marker { display: none; }
.pt-acct > summary .pt-icon { width: 16px; height: 16px; }
.pt-acct[open] > summary { background: var(--pt-surface-2); color: var(--pt-text); }
.pt-acct ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; margin: 0; padding: 6px; list-style: none; background: var(--pt-surface); border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); box-shadow: var(--pt-shadow-lg); z-index: 950; }
.pt-acct li a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--pt-text); font-size: var(--pt-text-sm); font-weight: 500; }
.pt-acct li a:hover { background: var(--pt-surface-2); }

/* "Javi mi nove oglase": e-mail sign-up box (listing pages, home, articles) */
.pt-alert { background: var(--pt-navy-50); border: 1px solid var(--pt-border); border-radius: var(--pt-radius); padding: 18px; margin-top: 20px; scroll-margin-top: calc(var(--pt-header-h) + 16px); }
.pt-alert__head { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; margin-bottom: 12px; }
.pt-alert__head .pt-icon { width: 24px; height: 24px; color: var(--pt-navy); margin-top: 2px; }
[data-theme="dark"] .pt-alert__head .pt-icon { color: #c9cdff; }
.pt-alert h2 { font-size: 17px; margin: 0 0 2px; letter-spacing: -.01em; }
.pt-alert__head p { margin: 0; font-size: 14px; color: var(--pt-muted); }
.pt-alert__row { display: flex; gap: 8px; }
.pt-alert__row input[type="email"] { flex: 1; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--pt-border); border-radius: var(--pt-pill); font: inherit; background: var(--pt-surface); color: var(--pt-text); }
.pt-alert__row input[type="email"]:focus { outline: 0; border-color: var(--pt-navy); box-shadow: 0 0 0 3px var(--pt-surface); }
.pt-alert__row .pt-btn { flex: none; }
.pt-alert__consent { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; margin-top: 10px; font-size: 12.5px; line-height: 1.45; color: var(--pt-muted); }
.pt-alert__consent input { margin: 2px 0 0; }
.pt-alert__consent a { color: inherit; }
/* The hidden anti-spam field stays inside its form. Without a positioned parent it was placed
   against the page, at the depth of the home page's scrolling list, and made the whole page
   that tall: an empty stretch below the footer. */
.pt-alert__form { position: relative; }
.pt-alert__trap { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.pt-alert__msg { margin: 0 0 10px; padding: 10px 12px; border-radius: var(--pt-radius-sm); font-size: 14px; background: var(--pt-surface); }
.pt-alert__msg--ok { border-left: 4px solid var(--pt-ok); }
.pt-alert__msg--err { border-left: 4px solid var(--pt-orange-600); }
@media (max-width: 30em) {
	.pt-alert__row { flex-direction: column; }
}

/* Page frame */
.pt-site { min-height: 60vh; }
.pt-main { max-width: var(--pt-content); margin: 0 auto; padding: var(--pt-space-5) 20px; }

/* Footer */
.pt-foot { margin-top: 56px; border-top: 1px solid var(--pt-border); background: var(--pt-surface); }
.pt-foot__in { max-width: var(--pt-content); margin: 0 auto; padding: var(--pt-space-6) 20px var(--pt-space-5); }
.pt-foot__cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 28px; }
.pt-foot h2 { font-size: var(--pt-text-sm); margin: 0 0 10px; letter-spacing: 0; }
.pt-foot ul { list-style: none; margin: 0; padding: 0; }
.pt-foot li { margin-bottom: 7px; }
.pt-foot a:not(.pt-logo) { text-decoration: none; color: var(--pt-muted); font-size: var(--pt-text-sm); }
.pt-foot a:not(.pt-logo):hover { color: var(--pt-text); text-decoration: underline; }
.pt-foot__brand p { color: var(--pt-muted); font-size: var(--pt-text-sm); margin: 10px 0 0; max-width: 300px; }
.pt-foot__follow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-foot__chan { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; color: #fff; font-weight: 700; text-decoration: none; }
.pt-foot__chan .pt-icon { width: 16px; height: 16px; }
.pt-foot__chan--viber { background: #7360f2; }
.pt-foot__chan--wa { background: #128c4a; }
.pt-foot__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; border-top: 1px solid var(--pt-border); margin-top: 28px; padding-top: var(--pt-space-4); font-size: 13px; color: var(--pt-muted); }
.pt-foot__links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pt-foot__legal a:not(.pt-logo) { font-size: 13px; }

/* Phones and tablets: there is no room for the search fields in the header's row. */
@media (max-width: 63.99em) {
	/* The search is a round button in the header; it opens a full-width row with large fields. */
	.pt-hdr { flex-wrap: wrap; row-gap: 0; }
	.pt-hdr > .pt-logo, .pt-hdr > .pt-nav, .pt-search-toggle { min-height: var(--pt-header-h); }
	.pt-search-toggle { display: flex; align-items: center; margin-left: auto; color: var(--pt-navy); text-decoration: none; }
	.pt-hdr > .pt-nav { margin-left: 0; flex: none; }
	.pt-search-toggle .pt-icon { box-sizing: content-box; width: 20px; height: 20px; padding: 9px; border: 1px solid var(--pt-border); border-radius: 50%; background: var(--pt-surface-2); }
	.pt-search-toggle[aria-expanded="true"] .pt-icon { background: var(--pt-navy); border-color: var(--pt-navy); color: #fff; }
	.pt-search { display: none; order: 10; flex: 0 0 100%; max-width: none; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; border-radius: 0; background: none; }
	.pt-search:target, .pt-search.is-open { display: flex; }
	.pt-search:focus-within { box-shadow: none; }
	.pt-search input, .pt-search select { height: 46px; padding: 0 14px; border: 1px solid var(--pt-border); border-radius: var(--pt-radius-sm); background: var(--pt-surface); font-size: 16px; }
	.pt-search input { flex: 1 0 100%; }
	.pt-search input:focus, .pt-search select:focus { border-color: var(--pt-navy); box-shadow: 0 0 0 3px var(--pt-navy-50); }
	.pt-search select { flex: 1; }
	.pt-search button { flex: none; height: 46px; padding: 0 20px; font-size: 15px; }
}

/* Phone: same breakpoint as the bottom menu */
@media (max-width: 47.99em) {
	.pt-hdr { padding: 0 12px; gap: 10px; }
	.pt-logo { font-size: 18px; }
	.pt-nav > a:not(.pt-btn), .pt-acct { display: none; }
	.pt-nav .pt-btn { padding: 8px 12px; font-size: 13px; }
	.pt-logo svg { width: 22px; height: 22px; }
	.pt-logo__img { height: 32px; }
	.pt-foot__cols { grid-template-columns: 1fr 1fr; gap: 22px; }
	.pt-foot__brand { grid-column: 1 / -1; }
	.pt-foot { padding-bottom: var(--pt-bnav-h); }
}
