/* ===== Base / layout ===== */
* {
  box-sizing: border-box;
}

:root {
  scroll-behavior: smooth;
  --app-bg: #f2f4f7;
  --app-surface: rgba(255,255,255,0.97);
  --app-surface-strong: #ffffff;
  --app-border: rgba(222, 227, 232, 0.98);
  --app-text: #101828;
  --app-text-soft: #667085;
  --app-brand: #0b3a66;
  --app-brand-2: #e87722;
  --app-shadow: 0 16px 40px rgba(16, 24, 40, 0.10);
  --drawer-width: min(340px, calc(100vw - 24px));
}

body {
  margin: 0;
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(232,119,34,0.08), transparent 24%),
    radial-gradient(circle at top left, rgba(11,58,102,0.08), transparent 24%),
    var(--app-bg);
  color: var(--app-text);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.2px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}



img,
svg,
canvas,
video,
iframe {
  max-width: 100%;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

@media (max-width: 820px) {
  .content {
    padding: 16px 12px 20px;
  }

  .mini {
    font-size: 11.5px;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../mpw.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: grayscale(10%) blur(4px);
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

.topbar,
.page {
  position: relative;
  z-index: 1;
}

.topbar {
  width: 100%;
  background: #0b3a66;
  color: #fff;
  padding: 14px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 3px solid rgba(255, 255, 255, 0.08);
}

.topbar .brand a,
.topbar .brand a:visited {
  text-decoration: none;
  color: inherit;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand:hover,
.nav a:hover {
  color: #E87722;
}

.logo {
  height: 64px;
  display: flex;
  align-items: center;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.logoText {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.6px;
}

.brandText h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.brandText span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.9;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 8px 6px;
}

.navActive {
  background: rgba(0,0,0,1);
  padding: 6px 12px;
  border-radius: 80px;
}

.page {
  width: 100%;
  min-height: calc(100vh - 78px);
  display: flex;
  justify-content: center;
}

.content {
  width: 100%;
  max-width: 1440px;
  min-width: 0;
  padding: 32px 24px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
}

.card,
.asideBox {
  background: #fff;
  border: 1px solid #e3e6ea;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06);
  border-radius: 16px;
}

.card {
  padding: 28px;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 900;
}

.notice {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  font-size: 13px;
  margin: 12px 0 18px;
  line-height: 1.4;
  max-width: 520px;
  padding: 10px 14px;
  border-radius: 999px;
}

.aside {
  font-size: 14px;
  line-height: 1.6;
}

.asideBox {
  padding: 18px;
}

.asideTitle {
  margin: 0 0 10px;
  font-weight: 900;
  font-size: 14px;
}

.asideMeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px 0;
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid rgba(11, 58, 102, 0.25);
  background: rgba(11, 58, 102, 0.08);
  color: #0b3a66;
  font-weight: 900;
  font-size: 12px;
  border-radius: 999px;
}

.badge.ok {
  border-color: rgba(2, 122, 72, 0.25);
  background: rgba(2, 122, 72, 0.10);
  color: #027a48;
}

.badge.warn {
  border-color: rgba(180, 35, 24, 0.25);
  background: rgba(180, 35, 24, 0.08);
  color: #b42318;
}

.muted,
.mini {
  color: #667085;
  font-weight: 700;
  font-size: 12.5px;
}

.footer {
  width: 100%;
  padding: 14px 48px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: #667085;
  border-top: 1px solid #e3e6ea;
}

body.modalOpen,
body.nav-drawer-open {
  overflow: hidden;
}

p,
span,
label,
strong,
td,
th,
li {
  color: inherit;
}

@media (max-width: 900px) {
  .topbar {
    padding: 14px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .content {
    padding: 22px 18px;
  }

  .footer {
    padding: 14px 18px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px;
  }
}
