/* F06 tailoring — the "Za vas" label, the card ring and the "Za vas:" line. Prefix ap-. Variables from F01 only. */

.ap-foryou-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px var(--ap-sp-2); font-size: var(--ap-fs-xl); margin: 0 0 var(--ap-sp-4); }
.ap-foryou-line[hidden] { display: none; }
.ap-foryou-line b { color: var(--ap-brand-dark); }
.ap-foryou-line .ap-foryou-note { color: var(--ap-muted); font-size: var(--ap-fs-s); }

/* a post that matches: small pill at the top of its card and a thin ring */
.ap-badge-foryou { align-self: flex-start; display: inline-flex; align-items: center; min-height: 30px; padding: 0 var(--ap-sp-3); border-radius: var(--ap-radius-pill);
	background: var(--ap-brand-dark); color: var(--ap-white); font-size: calc(15px * var(--ap-scale, 1)); font-weight: 800; letter-spacing: .02em; }
.ap-foryou > .ap-card { box-shadow: 0 0 0 2px var(--ap-brand), var(--ap-shadow-card); }

/* the result box under the chooser — answers the click where it happened */
.ap-foryou-box { margin-top: var(--ap-sp-4); padding: var(--ap-sp-4); border-radius: var(--ap-radius); background: var(--ap-tint);
	box-shadow: 0 0 0 2px var(--ap-brand); }
.ap-foryou-box[hidden] { display: none; }
.ap-foryou-box-head { margin: 0 0 var(--ap-sp-2); font-size: var(--ap-fs-xl); }
.ap-foryou-box-head b { color: var(--ap-brand-dark); }
.ap-foryou-box-list { margin: 0 0 var(--ap-sp-3); padding-left: 1.2em; display: grid; gap: var(--ap-sp-2); }
.ap-foryou-box-list a { color: var(--ap-link); font-weight: 700; }
.ap-foryou-box-list a:hover { color: var(--ap-link-hover); }
.ap-foryou-box-all { font-weight: 700; color: var(--ap-link); }
.ap-foryou-box .ap-foryou-note { margin: 0; }

/* 27.10. the 4 „Za vas" boxes — different kinds, each a whole clickable card (picture or kind tile, kind, title, summary, date) */
.ap-kboxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ap-gap); margin: var(--ap-sp-3) 0; }
@media (max-width: 1099px) { .ap-kboxes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .ap-kboxes { grid-template-columns: 1fr; } }
.ap-kbox { display: flex; flex-direction: column; background: var(--ap-card); border-radius: var(--ap-radius); overflow: hidden;
	box-shadow: var(--ap-shadow-card); color: var(--ap-text); text-decoration: none; }
.ap-kbox:hover { box-shadow: 0 0 0 2px var(--ap-brand), var(--ap-shadow-card); }
.ap-kbox:hover .ap-kbox-title { text-decoration: underline; }
.ap-kbox:focus-visible { outline: 3px solid var(--ap-focus); outline-offset: 2px; }
.ap-kbox-crvena, .ap-kbox-narancasta { box-shadow: 0 0 0 2px var(--ap-warn-r), var(--ap-shadow-card); }
.ap-kbox-body { display: flex; flex-direction: column; gap: var(--ap-sp-1); padding: var(--ap-sp-3) var(--ap-sp-4) var(--ap-sp-4); flex: 1; }
.ap-kbox-title { font: 700 var(--ap-fs-l)/1.3 var(--ap-font-head); }
.ap-kbox-sum { color: var(--ap-muted); font-size: var(--ap-fs-s); }
.ap-kbox-more { margin-top: auto; padding-top: var(--ap-sp-2); font-weight: 700; color: var(--ap-link); }

/* the picture slot: the post's image, or a coloured tile naming the kind until posts have pictures */
.ap-kpic { display: flex; align-items: center; justify-content: center; height: 120px; background: var(--ap-brand-dark); color: var(--ap-on-brand);
	font: 800 var(--ap-fs-m)/1.2 var(--ap-font-head); letter-spacing: .04em; text-transform: uppercase; overflow: hidden; }
.ap-kpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-kpic.ap-k-upozorenje { background: var(--ap-warn-r); color: var(--ap-warn-r-ink); }
.ap-kind { font-size: var(--ap-fs-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ap-brand); }

/* list pages (/upozorenja/, /vijesti/, /rokovi/, /kalendar-radova/) */
.ap-popis { display: grid; gap: var(--ap-sp-3); }
.ap-popis-day { margin: var(--ap-sp-4) 0 0; font: 700 var(--ap-fs-xl)/1.2 var(--ap-font-head); }
.ap-popis-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--ap-sp-3); }
.ap-popis-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--ap-sp-4); background: var(--ap-card); border-radius: var(--ap-radius);
	overflow: hidden; box-shadow: var(--ap-shadow-card); }
@media (max-width: 599px) { .ap-popis-item { grid-template-columns: 1fr; } }
.ap-popis-item .ap-kpic { height: auto; min-height: 110px; }
.ap-popis-body { display: flex; flex-direction: column; gap: var(--ap-sp-1); padding: var(--ap-sp-3) var(--ap-sp-4) var(--ap-sp-3) 0; }
@media (max-width: 599px) { .ap-popis-body { padding: 0 var(--ap-sp-4) var(--ap-sp-4); } }
.ap-popis-title { margin: 0; font: 700 var(--ap-fs-l)/1.3 var(--ap-font-head); }
.ap-popis-title a { color: var(--ap-text); }
.ap-popis-body .ap-sum, .ap-popis-body .ap-date { margin: 0; }
.ap-popis-odabrano[hidden], .ap-popis-line[hidden] { display: none; }
.ap-popis-pinned { box-shadow: 0 0 0 3px var(--ap-brand), var(--ap-shadow-card); }
.ap-popis-seen { opacity: .6; }
.ap-foryou-row { box-shadow: 0 0 0 2px var(--ap-brand), var(--ap-shadow-card); }
.ap-popis-line { margin: 0; color: var(--ap-muted); }
#odabrano { scroll-margin-top: 140px; }
.ap-popis-izbor { background: var(--ap-card); border-radius: var(--ap-radius); box-shadow: var(--ap-shadow-card); padding: var(--ap-sp-3) var(--ap-sp-4); }
.ap-popis-izbor > summary { cursor: pointer; font-weight: 700; color: var(--ap-link); min-height: var(--ap-touch); display: flex; align-items: center; }
