/* Development tracker pages: projects, money, what works, countries, research */
.hub-head { background: var(--adm-surface); border-bottom: 1px solid var(--adm-home-border); padding: 26px 0 0; }
.hub-head h1 { font: 800 clamp(26px, 4vw, 38px)/1.1 var(--adm-body); color: var(--adm-green); letter-spacing: -.4px; margin: 4px 0 6px; }
.hub-head p { color: var(--adm-ink-soft); max-width: 720px; margin: 0 0 16px; }
.hub-tabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 14px; -webkit-overflow-scrolling: touch; }
.hub-tabs a { white-space: nowrap; padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--adm-ink-soft); border-bottom: 3px solid transparent; }
.hub-tabs a:hover { color: var(--adm-green); }
.hub-tabs a.is-active { color: var(--adm-green); border-bottom-color: var(--adm-gold); }
[data-theme="dark"] .hub-head h1, [data-theme="dark"] .hub-tabs a.is-active { color: var(--adm-gold); }

.hub-body { padding: 28px 0 56px; }
.hub-filters { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto auto; gap: 8px; margin-bottom: 22px; align-items: center; }
.hub-filters input, .hub-filters select { border: 1px solid var(--adm-home-border); border-radius: 4px; padding: 9px 10px; font-size: 13px; background: var(--adm-surface); color: var(--adm-ink); min-width: 0; }
.hub-filters button, .hub-btn { background: var(--adm-green); color: #fff !important; border: 0; border-radius: 4px; padding: 9px 16px; font-weight: 700; font-size: 13px; display: inline-block; }
.hub-filters a { font-size: 13px; color: var(--adm-ink-soft); }

.hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hub-card { background: var(--adm-surface); border: 1px solid var(--adm-home-border); border-radius: 6px; padding: 16px; display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s; }
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--adm-shadow-sm); }
.hub-card h3 { font: 800 16px/1.3 var(--adm-body); margin: 0; }
.hub-card h3 a, .hub-card h3 { color: var(--adm-ink); }
.hub-card p { font-size: 13px; color: var(--adm-ink-soft); margin: 0; }
.hub-card-top { display: flex; gap: 6px; flex-wrap: wrap; }
.hub-card--story img { width: 100%; height: 150px; object-fit: cover; border-radius: 4px; }
.hub-card--country { color: inherit; }
.hub-card--country h3 { color: var(--adm-green); font-size: 18px; }
.hub-chip { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; background: var(--adm-surface-2); color: var(--adm-ink-soft); }
.hub-status { font-size: 10px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; background: #e5effb; color: #1f6fd0; white-space: nowrap; }
.hub-status--completed, .hub-status--delivered { background: #e7f3e8; color: #2f7d32; }
.hub-status--stalled, .hub-status--cancelled, .hub-status--noevidence { background: #fbe7ec; color: #b0263f; }
.hub-status--underimplementation { background: #fbf3de; color: #a2740f; }

.hub-kv { margin: auto 0 0; display: grid; gap: 6px; border-top: 1px solid var(--adm-home-border); padding-top: 10px; }
.hub-kv > div { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.hub-kv dt { color: var(--adm-muted); font-weight: 600; }
.hub-kv dd { margin: 0; font-weight: 700; text-align: right; }
.hub-kv--inline { grid-template-columns: repeat(3, 1fr); text-align: center; }
.hub-kv--inline > div { flex-direction: column-reverse; align-items: center; gap: 0; }
.hub-kv--inline dd { font-size: 20px; color: var(--adm-green); text-align: center; }

.hub-panel { background: var(--adm-surface); border: 1px solid var(--adm-home-border); border-radius: 6px; padding: 18px; margin-bottom: 18px; }
.hub-h2 { font: 800 13px/1 var(--adm-body); text-transform: uppercase; color: var(--adm-green); margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--adm-home-border); }
.hub-h2 small { text-transform: none; color: var(--adm-muted); font-weight: 600; }
[data-theme="dark"] .hub-h2 { color: var(--adm-gold); }
.hub-desc { margin: 12px 0 0; line-height: 1.7; color: var(--adm-ink-soft); }
.hub-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--adm-home-border); font-size: 13px; }
.hub-facts dt { color: var(--adm-muted); font-weight: 600; } .hub-facts dd { margin: 0; font-weight: 700; text-align: right; }
.hub-update { padding: 10px 0; border-bottom: 1px dashed var(--adm-home-border); }
.hub-update time { font-size: 11px; font-weight: 700; color: var(--adm-muted); text-transform: uppercase; }
.hub-update p { margin: 4px 0; font-size: 14px; }

.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--adm-home-border); font-size: 13.5px; }
.hub-list li:last-child { border: 0; }
.hub-list a { font-weight: 700; color: var(--adm-ink); }
.hub-list-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hub-list-main small { color: var(--adm-muted); font-size: 11.5px; }
.hub-more { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--adm-green-2); }

.hub-table { width: 100%; font-size: 13.5px; border-collapse: collapse; }
.hub-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--adm-muted); padding: 6px 8px; border-bottom: 2px solid var(--adm-home-border); }
.hub-table td { padding: 10px 8px; border-bottom: 1px solid var(--adm-home-border); vertical-align: top; }
.hub-table a { font-weight: 700; color: var(--adm-ink); }
.hub-table .text-end { text-align: right; white-space: nowrap; }

.hub-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.hub-kpis > div { background: var(--adm-green); color: #fff; border-radius: 6px; padding: 16px; }
.hub-kpis > div:nth-child(even) { background: var(--adm-green-2); }
.hub-kpis strong { display: block; font: 800 26px/1.1 var(--adm-body); }
.hub-kpis span { font-size: 12px; opacity: .85; }

.hub-bar { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; margin-bottom: 9px; }
.hub-bar i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--adm-gold) var(--w), var(--adm-surface-2) var(--w)); }
.hub-bar b { font-size: 12px; }
.hub-bar a { color: var(--adm-ink); font-weight: 600; }
.hub-bar--plain { grid-template-columns: 1fr auto; padding: 7px 0; border-bottom: 1px solid var(--adm-home-border); margin: 0; }
.hub-note { font-size: 12.5px; color: var(--adm-muted); margin: 10px 0 0; }

.hub-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--adm-border-strong); border-radius: 6px; color: var(--adm-ink-soft); }
.hub-empty h2 { font: 800 20px var(--adm-body); color: var(--adm-green); }
.hub-research { padding: 14px 0; border-bottom: 1px solid var(--adm-home-border); }
.hub-research:last-child { border: 0; }
.hub-research h3 { font: 800 16px/1.3 var(--adm-body); margin: 6px 0; }
.hub-research h3 a { color: var(--adm-ink); }
.hub-research p { font-size: 13.5px; color: var(--adm-ink-soft); margin: 0 0 4px; }
.hub-research small { color: var(--adm-muted); }

@media (max-width: 991px) {
  .hub-grid, .hub-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-filters { grid-template-columns: 1fr 1fr; }
  .hub-filters input { grid-column: 1 / -1; }
}
@media (max-width: 575px) {
  .hub-grid, .hub-grid--4 { grid-template-columns: 1fr; }
  .hub-table thead { display: none; }
  .hub-table, .hub-table tbody, .hub-table tr { display: block; width: 100%; }
  .hub-table tr { padding: 10px 0; border-bottom: 1px solid var(--adm-home-border); }
  .hub-table td { display: inline-block; border: 0; padding: 2px 10px 2px 0; font-size: 12.5px; }
  .hub-table td:first-child { display: block; font-size: 14px; padding-bottom: 4px; }
  .hub-table .text-end { text-align: left; }
  .hub-bar { grid-template-columns: 90px 1fr auto; }
}

.hub-form label { display: block; font-size: 12px; font-weight: 700; color: var(--adm-ink-soft); margin-bottom: 4px; }
.hub-form input, .hub-form textarea { width: 100%; border: 1px solid var(--adm-home-border); border-radius: 4px; padding: 10px 12px; font-size: 14px; background: var(--adm-surface); color: var(--adm-ink); }
.hub-form input:focus, .hub-form textarea:focus { outline: 2px solid var(--adm-gold); border-color: transparent; }
