/* ============================================================
   Urban Forest Park - Career pathway hub pages
   Loaded AFTER styles/jobs.css; adds only hub-specific
   components so the header, footer and design tokens stay
   identical to the main registry.
   ============================================================ */

/* ---------- Hero ---------- */
.hub-hero {
  padding: 42px 0 32px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.hub-hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.hub-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
}
.hub-crumbs a { color: var(--ink-3); text-decoration: none; }
.hub-crumbs a:hover { color: var(--accent); text-decoration: underline; }
.hub-crumbs span[aria-hidden] { opacity: 0.5; }
.hub-hero .eyebrow { margin-bottom: 8px; }
.hub-hero h1 {
  margin: 0 0 12px;
  max-width: 900px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.hub-hero-sub {
  margin: 0 0 20px;
  max-width: 780px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-3);
}
.hub-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.hub-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; }
.hub-stats > div { display: flex; flex-direction: column; gap: 2px; }
.hub-stats dt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.hub-stats dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }

/* ---------- Main / list ---------- */
.hub-main { padding: 36px 0 8px; }
.hub-main-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.hub-main-head { max-width: 880px; margin-bottom: 22px; }
.hub-main-head h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hub-main-head p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-3); }

.hub-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.hub-card-archived { opacity: 0.9; }
.hub-card-top { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-card-title { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.hub-card-title a { color: var(--ink); text-decoration: none; }
.hub-card-title a:hover { color: var(--accent); text-decoration: underline; }
.hub-card-org { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.hub-card-elig {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 9px 11px;
  border: 1px dashed var(--border-2);
  border-radius: 8px;
  background: var(--bg-2);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
}
.hub-card-elig strong { color: var(--ink-2); font-weight: 600; }
.hub-card-sum { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.hub-card-foot { margin: auto 0 0; padding-top: 4px; }
.hub-card-foot a { font-size: 12.5px; font-weight: 700; color: var(--accent); text-decoration: none; }
.hub-card-foot a:hover { text-decoration: underline; }
.hub-empty {
  padding: 18px;
  border: 1px dashed var(--border-2);
  border-radius: var(--r);
  background: var(--bg-2);
  font-size: 13.5px;
  color: var(--ink-3);
}
.hub-empty a { color: var(--accent); }

/* ---------- Archive band ---------- */
.hub-archive { margin-top: 40px; }
.hub-archive h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--ink); }
.hub-archive-sub { margin: 0 0 18px; font-size: 13px; color: var(--ink-3); }

/* ---------- Editorial / hiring snapshot ---------- */
.hub-editorial { margin-top: 40px; max-width: 880px; }
.hub-editorial h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hub-editorial h3 {
  margin: 26px 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.hub-editorial p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-3);
}
.hub-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 18px 0 4px;
  padding: 0;
  list-style: none;
}
.hub-snapshot li {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
}
.hub-snapshot strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.hub-faq { margin-top: 46px; max-width: 880px; }
.hub-faq h2 {
  margin: 0 0 14px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hub-faq dt { margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--ink); }
.hub-faq dt:first-child { margin-top: 0; }
.hub-faq dd { margin: 5px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-3); }

/* ---------- CTA band ---------- */
.hub-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 46px;
  padding: 24px 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--accent-soft), transparent 70%), var(--card);
}
.hub-cta h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--ink); }
.hub-cta p { margin: 0; max-width: 580px; font-size: 13.5px; line-height: 1.6; color: var(--ink-3); }

/* ---------- Other hubs ---------- */
.hub-others { margin: 46px 0 60px; }
.hub-others h2 { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: var(--ink); }
.hub-other-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
}
.hub-other-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.hub-other-grid a:hover { border-color: var(--accent); }
.hub-other-name { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.hub-other-cnt { flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }

/* ---------- Footer tweak (hub footer lists the current page as text) ---------- */
.footer-current { font-size: 13.5px; color: var(--footer-ink-2); opacity: 0.85; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hub-hero { padding: 30px 0 26px; }
  .hub-list { grid-template-columns: minmax(0, 1fr); }
  .hub-cta { flex-direction: column; align-items: flex-start; }
}

/* ===================== Multilingual & regional portals ===================== */
body,
button,
input,
select,
textarea {
  font-family: 'Inter', 'Noto Sans Devanagari', 'Noto Sans Tamil', 'Noto Sans Telugu',
    'Noto Sans Kannada', 'Noto Sans Bengali', 'Noto Sans Gujarati', system-ui,
    -apple-system, 'Segoe UI', sans-serif;
}
.hub-lang-note {
  margin: 14px 0 0;
  font-size: 13px;
  opacity: 0.85;
  max-width: 760px;
}
.hi-card .hi-card-en {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
}
html[data-theme="dark"] .hi-card .hi-card-en {
  color: #94a3b8;
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-top: 22px;
}
.region-card {
  background: var(--card, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 18px 20px;
}
html[data-theme="dark"] .region-card {
  background: #111827;
  border-color: #1f2937;
}
.region-card h2 {
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 6px;
}
.region-total {
  font-size: 13px;
  margin: 0 0 10px;
  opacity: 0.85;
}
.region-states {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.region-states li {
  margin: 0;
}
.region-states a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.region-cnt {
  font-size: 11.5px;
  font-weight: 700;
  background: rgba(20, 83, 45, 0.12);
  border-radius: 999px;
  padding: 1px 7px;
}
html[data-theme="dark"] .region-cnt {
  background: rgba(52, 211, 153, 0.18);
}
.region-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  opacity: 0.8;
}
.region-hub {
  margin: 12px 0 0;
  font-weight: 600;
}
.region-empty {
  font-size: 13px;
  opacity: 0.7;
}
/* end ufp-multilingual-portals */

/* ==========================================================================
   Institutional refinement — hub layer
   Editorial serif headings, tabular stats, arrow micro-interactions and
   card hover refinement for the pathway hubs and regional portals.
   ========================================================================== */
.hub-hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hub-main-head h2,
.hub-archive h2,
.hub-others h2,
.hub-cta h2,
.region-card h2,
.hub-faq h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.008em;
}

.hub-stats dd, .hub-stats dt, .region-cnt, .hub-other-cnt, .region-total {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Cards lift gently on hover. */
.hub-card { transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease; }
.hub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }

/* "View dossier & application link ->" slides toward the reader on hover. */
.hub-card-foot a { display: inline-block; transition: transform 0.16s ease, color 0.16s ease; }
.hub-card-foot a:hover { transform: translateX(2px); }

/* Region state lists — a floating arrow etches in on hover. */
.region-states a { display: inline-block; transition: color 0.16s ease; }
.region-states a::after {
  content: '\2192';
  display: inline-block;
  margin-left: 5px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.region-states a:hover::after { opacity: 0.8; transform: translateX(0); }

/* Other-pathway grid tiles — lift + border accent. */
.hub-other-grid a { transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease; }
.hub-other-grid a:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
/* end ufp-hub-refinement */

/* ==========================================================================
   SEO site matrix, About / governance and institutional error pages
   ========================================================================== */
.site-matrix {
  border-top: 1px solid var(--border, #e2e8f0);
  background: var(--bg-2, #f1f5f9);
}
.site-matrix-inner {
  max-width: var(--maxw, 1240px);
  margin: 0 auto;
  padding: 42px 22px 46px;
}
.site-matrix h2 {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  margin: 4px 0 8px;
}
.site-matrix-sub {
  max-width: 760px;
  margin: 0 0 20px;
  color: var(--ink-2, #334155);
  font-size: 14px;
  line-height: 1.65;
}
.site-matrix-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 7px 24px;
  font-size: 13px;
  line-height: 1.55;
}
.site-matrix-list a,
.site-matrix-list span {
  color: var(--ink-2, #334155);
  text-decoration: none;
}
.site-matrix-list a:hover { color: var(--accent, #065f46); text-decoration: underline; }
.site-matrix-list span { color: var(--ink-3, #64748b); font-weight: 600; }
html[data-theme="dark"] .site-matrix { background: #0b1120; }
html[data-theme="dark"] .site-matrix-sub,
html[data-theme="dark"] .site-matrix-list a,
html[data-theme="dark"] .site-matrix-list span { color: #cbd5e1; }

.about-main .hub-main-inner { max-width: 980px; }
.about-copy h2 {
  font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.25;
  margin: 38px 0 10px;
}
.about-copy h2:first-child { margin-top: 0; }
.about-copy h3 {
  font-size: 16px;
  line-height: 1.4;
  margin: 20px 0 6px;
}
.about-copy p,
.about-copy li { color: var(--ink-2, #334155); font-size: 14.5px; line-height: 1.72; }
.about-copy a { color: var(--accent, #065f46); }
.about-steps { margin: 12px 0 0; padding-left: 20px; }
.about-steps li { margin-bottom: 16px; }
.about-steps h3 { margin-top: 0; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 8px;
}
.about-card {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 16px 17px;
  background: var(--card, #fff);
}
.about-card h3 { margin-top: 0; font-size: 15px; }
.about-card p { margin: 0; font-size: 13.5px; line-height: 1.65; }
.about-person {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 18px 0 8px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 18px;
  background: var(--card, #fff);
}
.about-person img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  aspect-ratio: 586 / 626;
  object-fit: cover;
}
.about-role { font-weight: 600; color: var(--ink, #0f172a) !important; }
.about-links { padding-left: 20px; }
.about-links li { margin-bottom: 7px; }
.about-meta a { color: inherit; text-decoration: underline; }
.citation-box {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 16px;
  margin: 14px 0;
  background: var(--bg-2, #f1f5f9);
}
.citation-label { margin: 0 0 6px; font-size: 12px !important; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.citation-box pre,
.citation-embed pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--font-mono, monospace);
  font-size: 12.5px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.citation-embed { margin: 8px 0 0; }
.citation-embed summary { cursor: pointer; font-weight: 600; color: var(--accent, #065f46); }
.citation-embed pre { margin-top: 8px; padding: 12px; border: 1px solid var(--border, #e2e8f0); border-radius: 10px; background: var(--bg-2, #f1f5f9); }
.error-main { padding-top: 0; }
.error-hero { min-height: 340px; }
.error-hero .hub-hero-inner { padding-bottom: 26px; }
html[data-theme="dark"] .about-person,
html[data-theme="dark"] .about-card,
html[data-theme="dark"] .citation-box,
html[data-theme="dark"] .citation-embed pre { background: #111827; border-color: #1f2937; }
html[data-theme="dark"] .about-copy p,
html[data-theme="dark"] .about-copy li,
html[data-theme="dark"] .about-copy a { color: #cbd5e1; }
@media (max-width: 720px) {
  .about-person { grid-template-columns: 1fr; }
  .about-person img { max-width: 220px; }
  .site-matrix-inner { padding: 30px 16px 34px; }
}
/* end ufp-seo-institutional */

/* ==========================================================================
   Global opportunities hub - verified cards grouped by region.
   ========================================================================== */
.global-region-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.global-region {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.global-region:first-child {
  padding-top: 0;
  border-top: 0;
}
.global-region-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.global-region-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.global-region .region-total {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
}
.global-region-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.global-region-link:hover { text-decoration: underline; }
.global-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.global-card {
  border-left: 3px solid var(--accent);
}
.global-card-loc {
  color: var(--ink-3);
  font-weight: 500;
}
.badge-deadline {
  color: var(--amber-ink);
  background: var(--amber-bg);
  border-color: var(--amber-border);
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
}
.global-card .hub-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.global-card .hub-card-foot a[target="_blank"] {
  color: var(--ink-2);
  font-weight: 600;
}
.global-card .hub-card-foot a[target="_blank"]:hover { color: var(--accent); }
@media (max-width: 640px) {
  .global-region-head { align-items: flex-start; }
  .global-region-head h2 { font-size: 19px; }
  .global-card-grid { grid-template-columns: 1fr; }
}

/* Global sections retain the .region-card hook for QA/crawlability but use
   flat separators so the opportunity cards themselves are the visual units. */
.global-region.region-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 24px 0 0;
}
.global-region.region-card:first-child {
  border-top: 0;
  padding-top: 0;
}
.global-region-quick-links {
  gap: 3px 14px;
  margin: 2px 0 14px;
}
.global-region-quick-links a {
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.global-region-quick-links a:hover { color: var(--accent); }
html[data-theme="dark"] .global-region-quick-links a { color: #94A3B8; }
html[data-theme="dark"] .global-region-quick-links a:hover { color: #34D399; }

html[data-theme="dark"] .global-region.region-card {
  background: transparent;
  border-color: #1E293B;
}
html[data-theme="dark"] .global-region.region-card:first-child {
  border-top-color: transparent;
}

.global-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.global-card .badge {
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .global-card-grid { grid-template-columns: 1fr; }
}
