/* ============================================================================
   Government-of-Nepal chrome — header/footer used on the login page and as a
   slim utility strip in the app shell. Nepal flag crimson (#DC143C) + blue
   (#003893) accents framing the agriculture-green product brand.
   ========================================================================== */
:root {
  --np-crimson: #dc143c;
  --np-blue: #003893;
  --np-blue-dark: #002a6e;
  --np-blue-soft: #e6ecf7;
  --np-blue-softer: #f1f5fb;
  --np-blue-line: #cdd8ee;
}

/* utility bar (top of every gov page) */
.gov-utility {
  background: var(--np-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}
.gov-utility .wrap {
  max-width: 1200px; margin: 0 auto; padding: 6px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.gov-utility a { color: #fff; text-decoration: none; opacity: .9; }
.gov-utility a:hover { opacity: 1; text-decoration: underline; }
.gov-utility .langs { display: inline-flex; gap: 8px; align-items: center; }
.gov-utility .langs b { font-weight: 700; }

/* main header — Government masthead (emblem · org · Kathmandu skyline silhouette) */
.gov-header {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f0f4fb 0%, #e6edf7 100%);
  border-bottom: 3px solid var(--np-crimson);
}
/* AITC heritage skyline silhouette on the right */
.gov-header::before {
  content: ""; position: absolute; right: 0; top: 0; bottom: 0;
  width: min(620px, 54%);
  background: url("/static/img/topbg.png") no-repeat right bottom;
  background-size: contain; opacity: .9; pointer-events: none;
}
.gov-header .wrap {
  position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 16px;
}
.gov-emblem { width: 66px; height: 66px; flex: none; object-fit: contain; display: block; }
.gov-org { min-width: 0; line-height: 1.34; }
.gov-org .gov-line { font-size: 13px; color: #3a3f47; font-weight: 500; }
.gov-org .gov-ministry { font-size: 19px; font-weight: 700; color: var(--np-blue); letter-spacing: -0.01em; }
.gov-org .gov-center { font-size: 13.5px; font-weight: 600; color: #2b3444; }
.gov-org .gov-system { font-size: 13.5px; font-weight: 600; color: var(--np-crimson); margin-top: 1px; }
.gov-org .gov-en { font-size: 11.5px; color: #6b7280; }
.gov-header .gov-right { margin-left: auto; align-self: flex-start; display: flex; align-items: center; gap: 12px; flex: none; }
.gov-header .gov-right .gov-flag { width: 34px; height: 41px; }
.gov-header .gov-right .langs { font-size: 12px; color: var(--np-blue); font-weight: 700; }
.gov-header .gov-right .langs a { color: #5b6472; font-weight: 600; }

@media (max-width: 760px) {
  .gov-header::before { opacity: .35; }
  .gov-header .gov-right { display: none; }
  .gov-org .gov-ministry { font-size: 16px; }
}

/* footer */
.gov-footer { background: var(--np-blue-dark); color: #cfd8ec; margin-top: 40px; }
.gov-footer .wrap { max-width: 1200px; margin: 0 auto; padding: 24px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.gov-footer h4 { color: #fff; font-size: 14px; font-weight: 600; margin: 0 0 10px; }
.gov-footer p, .gov-footer li { font-size: 12.5px; line-height: 1.7; margin: 0; }
.gov-footer ul { list-style: none; padding: 0; margin: 0; }
.gov-footer a { color: #cfd8ec; text-decoration: none; }
.gov-footer a:hover { color: #fff; text-decoration: underline; }
.gov-footer .gov-copy { border-top: 1px solid rgba(255,255,255,.12); }
.gov-footer .gov-copy .wrap { display: block; padding: 12px 20px; text-align: center; font-size: 12px; color: #9fb0d4; }
@media (max-width: 720px) { .gov-footer .wrap { grid-template-columns: 1fr; gap: 18px; } }

/* slim fixed strip for the authenticated app shell */
.gov-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1050; height: 30px;
  background: var(--np-blue); color: #fff; font-size: 11.5px; font-weight: 500;
  padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 2px solid var(--np-crimson);
}
.gov-strip .gov-strip-org { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.gov-strip .gov-strip-org svg { width: 15px; height: 18px; flex: none; }
.gov-strip .gov-strip-org span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gov-strip a { color: #fff; text-decoration: none; opacity: .85; }
.gov-strip a:hover { opacity: 1; }
.gov-strip .right { display: inline-flex; gap: 12px; align-items: center; flex: none; }
@media (max-width: 560px) { .gov-strip .gov-strip-org span .en { display: none; } }

/* offset the fixed shell chrome to sit below the strip */
body.has-gov-strip .app-wrapper { padding-top: 30px; }
body.has-gov-strip .sidebar { top: 30px; }
body.has-gov-strip .topbar { top: 30px; }
