/* Portal pages: dream / aligned secondary surfaces */
.nj-portal {
  max-width: 920px;
  margin: 18px auto 28px;
  padding: 0 16px 24px;
  box-sizing: border-box;
}

.nj-portal-card {
  background: rgba(255, 248, 232, 0.92);
  border: 1px solid rgba(189, 135, 11, 0.55);
  box-shadow: 0 10px 28px rgba(40, 18, 4, 0.18);
  padding: 28px 28px 32px;
  color: #3a2412;
  line-height: 1.85;
}

.nj-portal-head {
  text-align: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(189, 135, 11, 0.35);
}

.nj-portal-eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #8a6418;
}

.nj-portal-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #5a3208;
}

.nj-portal-lead {
  margin: 8px 0 0;
  font-size: 15px;
  color: #7a4d12;
}

.nj-portal-section {
  margin: 0 0 20px;
}

.nj-portal-section h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #6b3d0c;
}

.nj-portal-section p {
  margin: 0 0 10px;
  font-size: 15px;
}

.nj-portal-emph {
  font-weight: 700;
  color: #8b1e1e;
}

.nj-portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 24px 0 0;
}

.nj-portal-btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 4px;
  background: linear-gradient(180deg, #f0d27a 0%, #c99622 100%);
  color: #2a1606 !important;
  text-decoration: none !important;
  font-weight: 700;
  border: 1px solid #9a6f12;
}

.nj-portal-btn-ghost {
  background: transparent;
  color: #6b3d0c !important;
  border-color: rgba(154, 111, 18, 0.55);
}

.nj-portal-btn:hover,
.nj-portal-btn:focus {
  filter: brightness(1.05);
}

/* Collapse header float so banner sits flush under nav tip bar */
body.slide.slide3 #header-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

/* Portal banners: flush under header, no body-background gap */
body.slide.slide3 #banner {
  clear: both;
  display: block;
  width: 1226px;
  max-width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
  line-height: 0;
  overflow: hidden;
  background: transparent !important;
  box-sizing: border-box;
}
body.slide.slide3 #banner img {
  display: block;
  width: 1226px;
  max-width: 100%;
  height: auto !important;
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: top;
}

/* Content board flush under banner (kill float gap) */
body.slide.slide3 #pagecon.nj-portal-board,
body.slide.slide3:has(#banner) #pagecon {
  clear: both;
  float: none !important;
  width: 1226px;
  max-width: 100%;
  margin: 0 auto !important;
  padding-top: 0 !important;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .nj-portal-card {
    padding: 20px 16px 24px;
  }
  .nj-portal-head h2 {
    font-size: 22px;
  }
}
