/* Keep the category chooser isolated from the shared page layout. */
#maincontent .new-post {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 0 40px;
  color: #132347;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

#maincontent .new-post div,
#maincontent .new-post span,
#maincontent .new-post p,
#maincontent .new-post ul {
  padding-right: 0;
  margin-bottom: 0;
  font-size: inherit;
}

#maincontent .new-post .post-intro {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  margin-bottom: 20px;
  padding: 30px 32px;
  border: 1px solid #e0eef9;
  border-radius: 16px;
  background: linear-gradient(115deg, #fff 0%, #f3faff 58%, #e8f5ff 100%);
}

#maincontent .new-post .post-intro-copy {
  position: relative;
  z-index: 1;
  max-width: 72%;
}

#maincontent .new-post .post-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  color: #123976;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .035em;
}

#maincontent .new-post .post-eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  background: #087ee4;
}

#maincontent .new-post h1 {
  margin: 0;
  padding: 0;
  color: #0c1942;
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -.035em;
}

#maincontent .new-post h1 span { color: #087de1; }

#maincontent .new-post .post-intro-description {
  margin: 14px 0 0;
  color: #5b6e8c;
  font-size: 16px;
  line-height: 1.5;
}

#maincontent .new-post .post-intro-art {
  position: absolute;
  right: -16px;
  bottom: -4px;
  width: 340px;
  height: auto;
  pointer-events: none;
}

#maincontent .new-post .post-category-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

#maincontent .new-post .post-category-card {
  --post-icon: #087fd5;
  --post-icon-bg: #dcefff;
  min-width: 0;
  padding: 22px;
  border: 1px solid #dfe8f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 7px rgb(25 65 105 / 4%);
}

#maincontent .new-post .post-category--purple { --post-icon: #8118d9; --post-icon-bg: #eee0ff; }
#maincontent .new-post .post-category--slate { --post-icon: #4268aa; --post-icon-bg: #e3ebff; }
#maincontent .new-post .post-category--rose { --post-icon: #ee294b; --post-icon-bg: #ffe3ea; }
#maincontent .new-post .post-category--orange { --post-icon: #f46c13; --post-icon-bg: #ffebdc; }
#maincontent .new-post .post-category--green { --post-icon: #079445; --post-icon-bg: #dcf8e7; }
#maincontent .new-post .post-category--teal { --post-icon: #00959b; --post-icon-bg: #dbf5f5; }

#maincontent .new-post .post-category-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

#maincontent .new-post .post-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--post-icon-bg), #fff);
  color: var(--post-icon);
  font-size: 30px;
}

#maincontent .new-post .post-category-heading h2 {
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #122349;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

#maincontent .new-post .post-heading-line { display: block; }

#maincontent .new-post .post-category-links {
  margin: 0 !important;
  padding: 0;
  list-style: none;
}

#maincontent .new-post .post-category-links li {
  margin: 0;
  padding: 0;
  border-top: 1px solid #e7eef5;
  list-style: none;
}

#maincontent .new-post .post-category-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 46px;
  padding: 10px 8px;
  border-radius: 4px;
  color: #28517b;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: none;
}

#maincontent .new-post .post-category-links a span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

#maincontent .new-post .post-category-links a::after {
  content: "";
  flex: 0 0 10.4px;
  width: 10.4px;
  height: 10.4px;
  margin-right: 4px;
  border-top: 2.6px solid #087de1;
  border-right: 2.6px solid #087de1;
  transform: rotate(45deg);
}

#maincontent .new-post .post-category-links a:hover {
  background: #f0f8ff;
  color: #0066bf;
}

#maincontent .new-post .post-category-links a:focus-visible {
  outline: 3px solid #087de1;
  outline-offset: 2px;
  background: #f0f8ff;
}

@media (max-width: 800px) {
  #maincontent .new-post .post-intro-copy { max-width: 82%; }
  #maincontent .new-post .post-intro-art { right: -35px; width: 250px; opacity: .35; }
}

@media (max-width: 600px) {
  #maincontent .new-post { padding: 14px 0 28px; }
  #maincontent .new-post .post-intro { min-height: 0; padding: 24px 20px; }
  #maincontent .new-post .post-intro-copy { max-width: 100%; }
  #maincontent .new-post h1 { font-size: 30px; }
  #maincontent .new-post .post-intro-art { width: 210px; opacity: .16; }
  #maincontent .new-post .post-category-card { padding: 16px; }
  #maincontent .new-post .post-category-heading { gap: 12px; margin-bottom: 14px; }
  #maincontent .new-post .post-category-heading h2 { font-size: 20px; }
  #maincontent .new-post .post-category-icon { flex-basis: 52px; width: 52px; height: 52px; font-size: 26px; }
  #maincontent .new-post .post-category-links a { padding: 10px 2px; }
}
