/* KRUG community polish: presentation only; shared accessible theme tokens. */
.krug-community-home{max-width:960px}
.krug-community-home .krug-welcome{margin-bottom:14px}
.krug-community-home .krug-welcome h1{font-size:clamp(1.25rem,2.2vw,1.65rem);letter-spacing:-.035em}
.krug-explore{border-block:1px solid var(--pc-border);margin:0 0 20px}
.krug-explore>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;list-style:none;cursor:pointer;padding:10px 2px;min-height:48px;font-weight:650;color:var(--pc-copy);font-size:.93rem}
.krug-explore>summary::-webkit-details-marker{display:none}
.krug-explore>summary>span{display:flex;align-items:center;gap:9px}
.krug-explore .icon{width:20px;height:20px;flex:0 0 20px}
.krug-explore[open] .krug-explore-arrow{transform:rotate(45deg)}
.krug-explore .krug-quick{margin:0 0 12px;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.krug-explore .krug-quick a{box-shadow:none;border:0;background:var(--pc-soft);padding:9px 10px;min-height:48px;font-size:.85rem;font-weight:550;color:var(--pc-copy)}
.krug-explore .krug-quick a:hover{outline:1px solid var(--pc-label);outline-offset:-1px}
.krug-explore .krug-quick .icon{color:var(--pc-label)}
.krug-community-home .krug-section-title{margin-bottom:8px}
.krug-community-home .krug-section-title h2{font-size:1.14rem;letter-spacing:-.025em}
.krug-home-sorts{gap:5px}
.krug-home-sorts button{border-color:transparent;background:transparent;min-height:44px;font-size:.83rem;padding:9px 12px;color:var(--pc-secondary)}
.krug-home-sorts button[aria-pressed=true]{background:var(--pc-soft);color:var(--pc-action);border-color:var(--pc-border);font-weight:650}
.krug-sort-hint{font-size:.77rem;line-height:1.5;color:var(--pc-secondary);margin:6px 0 12px}
.krug-community-home .krug-activity-list{display:grid;gap:10px}
html body .pc-refined .pc-conversation-card{border:1px solid color-mix(in srgb,var(--pc-border) 65%,transparent);border-radius:14px;background:var(--pc-card);box-shadow:none;padding:14px 16px;margin:0 0 10px;min-width:0;color:var(--pc-copy)}
html body .krug-community-home .pc-conversation-card{margin:0}
html body .pc-refined .pc-conversation-card:hover{background:var(--pc-card);border-color:var(--pc-border)}
.pc-conversation-card .card-tags{display:flex;gap:5px;flex-wrap:wrap;margin:0 0 7px;min-width:0}
html body .pc-conversation-card .pc-category{font-size:.72rem;line-height:1.4;padding:4px 7px;border-radius:6px;font-weight:600}
.pc-conversation-byline{display:flex;flex-wrap:wrap;gap:3px 10px;font-size:.73rem;line-height:1.5;color:var(--pc-secondary);margin-bottom:5px;overflow-wrap:anywhere}
.pc-conversation-byline time{white-space:normal}
.pc-conversation-link{display:block;color:inherit;min-height:44px}
.pc-conversation-card .pc-conversation-link h3{font-size:1.04rem;line-height:1.4;letter-spacing:-.015em;font-weight:650;margin:0 0 5px;color:var(--pc-copy);overflow-wrap:anywhere}
.pc-conversation-card .pc-conversation-link:hover h3{color:var(--pc-action)}
.pc-conversation-card .card-excerpt{margin:0;color:var(--pc-secondary);font-size:.87rem;line-height:1.5;-webkit-line-clamp:3}
.pc-conversation-actions{display:flex;align-items:center;flex-wrap:wrap;gap:2px 10px;margin:5px 0 -4px;color:var(--pc-secondary);font-size:.74rem}
.pc-conversation-actions>a,.pc-conversation-actions>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:44px;min-width:44px;padding:5px 0;line-height:1.4;color:var(--pc-secondary);border-radius:6px}
.pc-conversation-actions>a{justify-content:flex-start}
.pc-conversation-actions>[data-save]{margin-left:auto;background:transparent;border:0;padding:0}
.pc-conversation-actions>[data-save][aria-pressed=true]{color:var(--pc-action);background:var(--pc-soft)}
.pc-conversation-actions .icon{width:18px;height:18px;flex:0 0 18px;color:currentColor}
.pc-conversation-actions .pc-view-count{margin:0;font-size:inherit}
.pc-conversation-actions .krug-unanswered{color:var(--pc-label);font-size:.7rem}
.pc-useful-count{display:inline-flex;gap:4px;align-items:center}
.krug-all-activity{margin-top:5px}
.krug-community-home .krug-featured-news{border-left-width:2px;border-radius:0;padding:10px 14px;background:transparent}
.krug-community-home .krug-news-list{gap:6px}
.krug-community-home .krug-news{border-top:1px solid var(--pc-border);padding-top:14px}
.krug-community-home .krug-featured-news h3{font-size:1rem}
.pc-community-feed .page-heading p{font-size:.87rem;line-height:1.5;margin:5px 0}
.pc-community-feed .pc-filter-bar{margin:10px 0 0}
.pc-community-feed .pc-filter-options{gap:6px}
.pc-community-feed .pc-sort-chips button{border-color:transparent;background:transparent}
.pc-community-feed .pc-sort-chips button[aria-pressed=true]{background:var(--pc-soft);color:var(--pc-action);border-color:var(--pc-border)}
.pc-community-feed .pc-filter-options>[data-categories]{background:var(--pc-soft);border-color:transparent}
.pc-privacy-explanation{font-size:.9rem;line-height:1.55;margin:8px 0 12px;color:var(--pc-copy)}
.pc-privacy-explanation .pc-privacy-intro{font-size:.95rem;color:var(--pc-copy);margin:0 0 12px}
.pc-privacy-explanation details{border-top:1px solid var(--pc-border)}
.pc-privacy-explanation summary{font-weight:600;cursor:pointer;min-height:44px;padding:11px 2px;color:var(--pc-action)}
.pc-privacy-explanation details p{margin:4px 0 12px;color:var(--pc-secondary)}
.pc-privacy-explanation .fine{margin-top:14px;line-height:1.5}
html body #pc-new-post{box-sizing:border-box;width:56px;min-width:56px;max-width:56px;height:56px;min-height:56px;max-height:56px;padding:0;border-radius:50%;display:grid;place-items:center;gap:0;right:calc(12px + env(safe-area-inset-right,0px));bottom:calc(20px + env(safe-area-inset-bottom,0px))}
html body #pc-new-post[hidden]{display:none}
/* Reserve a control rail on these feeds, including while the button is hidden.
   It prevents content/focus targets from ever passing beneath the fixed plus. */
html body #app .content.pc-community-feed{padding-right:calc(84px + env(safe-area-inset-right,0px))!important}
.pc-refined a:focus-visible,.pc-refined button:focus-visible,.pc-refined summary:focus-visible,.pc-privacy-explanation summary:focus-visible{outline:3px solid var(--pc-label);outline-offset:3px}
@media(max-width:650px){
 .krug-community-home .krug-welcome{margin-bottom:10px}
 .krug-explore{margin-bottom:16px}
 .krug-explore .krug-quick{grid-template-columns:repeat(auto-fit,minmax(min(100%,max(8rem,calc((100% - 6px)/2))),1fr))}
 .krug-community-home .krug-question{min-height:44px;padding:8px 11px}
 html body .pc-refined .pc-conversation-card{padding:12px}
 .krug-home-sorts{gap:2px}
 .krug-home-sorts button{padding:8px 10px}
 .pc-conversation-actions{column-gap:8px}
 html body #pc-new-post{bottom:calc(var(--pc-nav-height) + 12px + env(safe-area-inset-bottom,0px))}
 .mobile-nav a{display:flex;align-items:center;justify-content:center;gap:3px;min-height:48px;min-width:0;line-height:1.3;font-size:.69rem!important}
 .mobile-nav a .icon{width:23px;height:23px;flex-shrink:0}
 .mobile-nav a span{white-space:normal;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){.krug-explore-arrow{transition:none}}
/* Homepage layout has one spacing rhythm and never changes width on scroll. */
html body #app .content.krug-community-home{display:flex;flex-direction:column;gap:28px;min-width:0}
html body #app .krug-community-home>header,
html body #app .krug-community-home>section,
html body #app .krug-community-home>details{margin-block:0;min-width:0}
html body .krug-community-home .krug-activity-list,
.krug-community-home #krug-home-education{display:grid;gap:12px;min-width:0}
html body .krug-community-home .pc-conversation-card,
html body .krug-community-home .krug-education-row{border:1px solid var(--pc-border);border-radius:14px;background:var(--pc-card);padding:14px;min-width:0;margin:0;box-sizing:border-box}
/* Homepage education cards: date first; one link and one column at every width. */
html body .krug-community-home .krug-education-row{display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:center;gap:10px;color:var(--pc-copy);text-decoration:none}
.krug-community-home .krug-education-copy{gap:8px;overflow-wrap:anywhere}
.krug-community-home .krug-education-copy strong{font-size:1.0625rem;line-height:1.4;font-weight:650;color:var(--pc-copy)}
.krug-community-home .krug-education-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;min-width:0}
.krug-community-home .krug-education-date{display:inline-flex;align-items:flex-start;gap:6px;max-width:100%;min-width:0;padding:4px 7px;border-radius:6px;background:var(--pc-soft);color:var(--pc-label);font-size:.875rem;font-weight:650;line-height:1.4;font-variant-numeric:tabular-nums}
.krug-community-home .krug-education-date .icon{width:16px;height:16px;flex:0 0 16px;margin-top:2px;color:currentColor}
.krug-community-home .krug-education-date>span{min-width:0;overflow-wrap:anywhere}
.krug-community-home .krug-education-mode{font-size:.75rem;font-weight:500;line-height:1.4;color:var(--pc-secondary);border:1px solid var(--pc-border);border-radius:6px;padding:3px 6px}
.krug-community-home .krug-education-copy .krug-education-organizer{font-size:.8125rem;line-height:1.5;color:var(--pc-secondary)}
.krug-community-home .krug-education-open{display:flex;align-items:center;color:var(--pc-label)}
.krug-community-home .krug-education-open .icon{width:18px;height:18px}
html body .krug-community-home .krug-education-row:focus-visible{outline:3px solid var(--pc-label);outline-offset:3px;border-radius:14px}
@media(hover:hover){html body .krug-community-home .krug-education-row:hover{border-color:var(--pc-label)}}
html body .krug-community-home .article-cover{height:clamp(140px,24vw,180px);object-fit:cover}
@media(max-width:650px){
 /* --pc-nav-height is the measured outer height, including its safe-area inset. */
 html body #app .content.krug-community-home{gap:24px;padding-left:calc(17px + env(safe-area-inset-left,0px));padding-right:calc(17px + env(safe-area-inset-right,0px))!important;padding-bottom:calc(var(--pc-nav-height,65px) + 24px)}
 html body .krug-community-home .krug-section-title{align-items:flex-start;gap:4px 12px}
 .krug-community-home .krug-section-title h2{font-size:1.125rem;line-height:1.4;min-width:0}
}
@media(prefers-color-scheme:dark){
 body:has(.pc-refined) .topbar,body:has(.pc-refined) .mobile-nav,body:has(.pc-refined) .sidebar{background:#102735;color:var(--pc-copy);border-color:var(--pc-border)}
 body:has(.pc-refined) .logo,body:has(.pc-refined) .top-actions,body:has(.pc-refined) .mobile-nav a,body:has(.pc-refined) .nav-group a{color:var(--pc-copy)}
 body:has(.pc-refined) .mobile-nav a.active,body:has(.pc-refined) .nav-group a.active{color:var(--pc-label);background:var(--pc-soft)}
 body:has(.pc-refined) .global-search input{color:var(--pc-copy)}
 body:has(.pc-refined) .global-search input::placeholder,body:has(.pc-refined) .member-mini small,body:has(.pc-refined) .sidebar-foot,body:has(.pc-refined) .nav-label{color:var(--pc-secondary)}
 body:has(.pc-refined) .krug-pharmacy-symbol{color:var(--pc-label)}
}

/* Studentski kutak shares Education header, search and filter visuals. */
.pc-student-corner .edu-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}
.pc-student-corner .edu-filters a{display:flex;align-items:center;justify-content:center;min-width:0;text-align:center;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.pc-student-corner .edu-toolbar{margin:0 0 20px}
.pc-student-posts{display:grid;gap:12px;min-width:0}
.pc-student-posts .pc-conversation-card{margin:0}
.pc-student-corner .edu-header .button{max-width:100%;white-space:normal}
