/* Podjetja in zavodi — gradi na style.css, obcina.css in proracun.css. */

/* ---------- Struktura: občina → vrste → subjekti ---------- */
.org { display: grid; gap: 0.9rem; }
.org-root {
  justify-self: center; display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--blue-fill); color: var(--on-blue); font-weight: 700;
  border-radius: 999px; padding: 0.55rem 1.2rem; box-shadow: var(--shadow-sm);
}
.org-cols {
  position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(0.6rem, 2vw, 0.9rem); padding-top: 0.9rem;
}
/* Povezovalna črta od korena do vrst (le na širših zaslonih). */
.org-cols::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 0.9rem;
  border: 2px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0;
}
.org-col {
  display: flex; flex-direction: column; gap: 0.35rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0.85rem 0.9rem; box-shadow: var(--shadow-sm);
}
.org-col > a.org-head { text-decoration: none; color: inherit; }
.org-col > a.org-head:hover .theme-name { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.org-count { font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.org-list { list-style: none; margin: 0.2rem 0 0; padding: 0; display: grid; gap: 0.25rem; }
.org-list a {
  display: block; font-size: 0.82rem; font-weight: 600; color: var(--blue-deep); text-decoration: none;
  background: var(--tint); border-radius: 8px; padding: 0.3rem 0.55rem;
}
.org-list a:hover { background: var(--tint-2); color: var(--blue); }
@media (max-width: 560px) { .org-cols::before { display: none; } }

/* ---------- Subjekt ---------- */
.ent-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.6rem 1.5rem; margin-bottom: 0.8rem; }
.ent-head h2 { margin: 0; font-size: clamp(1.35rem, 3.8vw, 1.7rem); letter-spacing: -0.015em; }
.ent-head .ent-form { margin: 0.2rem 0 0; font-size: 0.82rem; color: var(--ink-3); }
.ent-about { margin: 0 0 1rem; max-width: 70ch; color: var(--ink-2); }
.ent-web { font-size: 0.82rem; font-weight: 700; color: var(--blue-deep); text-decoration: none; background: var(--tint); border-radius: 999px; padding: 0.42rem 0.95rem; white-space: nowrap; }
.ent-web:hover { background: var(--tint-2); color: var(--blue); }

.owners { display: flex; height: 30px; gap: 2px; border-radius: 8px; overflow: hidden; }
.owners span {
  display: flex; align-items: center; justify-content: center; min-width: 2.5rem;
  font-size: 0.78rem; font-weight: 700; color: #fff; background: var(--seg);
}
.owners-legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin: 0.5rem 0 0; padding: 0; list-style: none; font-size: 0.82rem; color: var(--ink-2); }
.owners-legend li { display: inline-flex; align-items: center; gap: 0.35rem; }
.owners-legend li::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 3px; background: var(--seg); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; font-size: 0.88rem; }
.facts dt { color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 0; color: var(--ink); }
.facts ul { margin: 0; padding-left: 1rem; }

.budget-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.budget-links a {
  font-size: 0.78rem; font-weight: 700; color: var(--blue-deep); text-decoration: none;
  background: var(--tint); border-radius: 999px; padding: 0.35rem 0.8rem;
}
.budget-links a::after { content: " →"; }
.budget-links a:hover { background: var(--tint-2); color: var(--blue); }

.src-note { margin: 0.4rem 0 0; font-size: 0.78rem; color: var(--ink-3); }
.src-note a { color: var(--blue-deep); }
.jkp-sec { margin: 1.1rem 0 0.5rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--blue-deep); }

/* ---------- Koliko plača gospodinjstvo ---------- */
.bill-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(0.7rem, 2vw, 1rem); margin-bottom: 0.8rem; }
.bill-card { display: flex; flex-direction: column; gap: 0.35rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; box-shadow: var(--shadow-sm); }
.bill-bar { height: 16px; margin-top: 0.4rem; }
.bill-bar span { min-width: 4px; }
.bill-card .data-table { margin-top: 0.4rem; }
.bill-card td:first-child { white-space: normal; }
.cmp-chart { height: clamp(300px, 55vw, 380px); }
.nr-table tr.hl td { font-weight: 700; color: var(--ink); background: var(--tint-2); }
.two-charts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.7rem, 2vw, 1rem); }
@media (max-width: 700px) { .two-charts { grid-template-columns: 1fr; } }
