/* MODDUS HR page styles for O udruzi, Aktualno (list + posts), Dokumenti and Pitanja.
   Builds on the tokens and components in site.css; nothing here overrides them globally. */

/* O udruzi: intro and "Zašto postojimo" */
.about-intro h2 { font-size: var(--step-3); }
.about-lead { font-size: var(--step-1); line-height: 1.5; font-weight: 600; letter-spacing: -0.01em; }
.about-intro p:not(.about-lead) { color: var(--muted); max-width: 38rem; }
.why-title { font-size: var(--step--1); font-weight: 600; color: var(--muted); letter-spacing: 0; margin-bottom: 0.75rem; }
.why { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.why li { padding: 0.9rem 0 0.9rem 1.75rem; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.08rem; position: relative; }
.why li::before { content: ""; position: absolute; left: 0; top: 1.35rem; width: 0.7rem; height: 0.7rem; border-radius: 2px; background: var(--blue); }

/* Ciljevi Mreže: the full numbered list */
.aims { list-style: none; margin: 0; padding: 0; counter-reset: aim; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 3.5rem); border-top: 2px solid var(--ink); }
.aims li { counter-increment: aim; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: 0.75rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.aims li::before { content: counter(aim, decimal-leading-zero); font-weight: 800; font-size: 1.05rem; color: var(--blue-ink); font-variant-numeric: tabular-nums; line-height: 1.6; }
@media (max-width: 48rem) { .aims { grid-template-columns: 1fr; } }

.timeline-more { margin: 2rem 0 0; }

/* O nama: in-page jump links, key facts, join actions */
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.jump a { display: inline-flex; align-items: center; min-height: 40px; padding: 0.3rem 0.95rem; border: 1px solid var(--navy-3); border-radius: 999px; color: #dbe3ec; text-decoration: none; font-size: 0.95rem; }
.jump a:hover { background: var(--navy-2); color: #fff; }
.about-facts { margin-top: 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
.about-facts .facts-wide { grid-column: 1 / -1; }
.about-facts dd.text { font-variant-numeric: normal; font-weight: 600; }
@media (max-width: 36rem) { .about-facts { grid-template-columns: 1fr; } }
.join-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Aktualno: count line, empty state, light join band */
[data-posts] [hidden] { display: none !important; }
.post-count { font-size: var(--step--1); color: var(--muted); margin: -1rem 0 1rem; min-height: 1.4em; }
.empty-state { border-top: 2px solid var(--ink); padding: 2rem 0 0.5rem; max-width: 40rem; }
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--muted); }
.join-light p { color: var(--muted); }

/* Post pages */
.post-head h1 { max-width: 30ch; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin: 0 0 1rem; color: #c3cfdc; font-size: var(--step--1); }
.post-meta .tag { background: var(--navy-3); color: #d9e4ef; }
.post-meta time { font-weight: 700; color: #fff; font-variant-numeric: normal; }
.page-head .post-source { font-size: var(--step--1); color: var(--silver); margin-top: 1rem; }
.dateline { font-size: var(--step-1); line-height: 1.5; font-weight: 500; }
.prose p { max-width: 42rem; }
.prose h2 { font-size: var(--step-2); }
.pull { margin: 0 0 1.25em; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 4px solid var(--blue); }
.pull p { font-size: 1.15rem; font-weight: 600; line-height: 1.5; color: var(--ink); }
.post-cta { margin-top: 2rem; }
.back-link { margin: clamp(2rem, 5vw, 3rem) 0 0; font-weight: 600; }
.back-link a { text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.figures { position: sticky; top: 6.5rem; background: var(--navy); color: #dbe3ec; border-radius: var(--r-panel); padding: 1.5rem; }
.figures h2 { font-size: var(--step-1); color: #fff; margin-bottom: 1rem; }
.figures dl { margin: 0; display: grid; gap: 0; }
.figures dl > div { padding: 0.9rem 0; border-top: 1px solid var(--navy-3); }
.figures dt { font-size: 0.86rem; color: var(--silver); line-height: 1.35; margin-bottom: 0.35rem; }
.figures dd { margin: 0; font-size: 0.95rem; line-height: 1.4; }
.figures b { color: #fff; font-size: var(--step-1); font-weight: 800; letter-spacing: -0.015em; white-space: nowrap; margin-right: 0.3rem; }
.fig-pair { display: block; }
.fig-pair + .fig-pair { margin-top: 0.3rem; }
.fig-pair.is-muted, .fig-pair.is-muted b { color: var(--silver); }
.figures .source { color: var(--silver); margin: 0.75rem 0 0; }
@media (max-width: 56rem) {
  .article { grid-template-columns: 1fr; }
  .figures { position: static; }
}

/* Dokumenti */
.doc-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.4rem; }
.doc-open { font-size: var(--step--1); }
@media (max-width: 40rem) {
  .doc-actions { grid-column: 1 / -1; align-items: stretch; text-align: center; }
}
.facts-org { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 1.5rem; }
.facts-org .facts-wide { grid-column: span 2; }
.facts-org .facts-full { grid-column: 1 / -1; }
.facts-org dd.text, .facts-org dd.text time, .about-facts dd.text time { font-variant-numeric: normal; }
.facts-org .copy-row { margin-top: 0.35rem; }
.facts-org .copy-row code { overflow-wrap: anywhere; }
.facts-note { margin: 1.5rem 0 0; color: var(--muted); }
@media (max-width: 52rem) {
  .facts-org { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 36rem) {
  .facts-org { grid-template-columns: 1fr; }
  .facts-org .facts-wide { grid-column: auto; }
}

/* Pitanja */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 20rem); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.faq-group { font-size: var(--step-2); margin: 0 0 1rem; }
.faq + .faq-group { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.faq-aside { position: sticky; top: 6.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 1.5rem; }
.faq-aside h2 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.faq-aside p { color: var(--muted); }
.faq-mail { font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 56rem) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
}

/* CMS objave: the PDF on top, the summary below it as the article */
.post-doc .doc { margin-bottom: clamp(2rem, 5vw, 3rem); }
.post-doc .doc-name { font-size: var(--step-1); margin: 0 0 0.15rem; }
.post-summary h2 { font-size: var(--step--1); font-weight: 700; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; margin-bottom: 0.75rem; }
.post-summary > p:first-of-type { font-size: var(--step-1); line-height: 1.5; }
/* "Pročitaj više": the longer text of the objava, closed by default */
.read-more { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.read-more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; margin-top: 1rem; padding: 0.55rem 1.1rem; border: 1.5px solid var(--blue-ink); border-radius: 999px; color: var(--blue-ink); font-weight: 700; }
.read-more summary::-webkit-details-marker { display: none; }
.read-more summary::after { content: ""; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-0.15rem) rotate(45deg); transition: transform 0.2s ease; }
.read-more[open] summary::after { transform: translateY(0.1rem) rotate(-135deg); }
.read-more summary:hover { background: var(--blue-wash); }
.read-more-close, .read-more[open] .read-more-open { display: none; }
.read-more[open] .read-more-close { display: inline; }
.read-more-body { padding-top: 1.5rem; }
.read-more-pdf { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .read-more summary::after { transition: none; } }
