/* ============================================================
   Commercial Space NJ — content page styles
   Extends the existing system (Manrope + navy/blue tokens declared
   in /_astro/index.daiAUj0Y.css). New markup is namespaced .csx-*
   so the CodeStitch/Astro-scoped .cs-* rules stay untouched.
   ============================================================ */

:root {
  --csxWide: 68rem;
  --csxNarrow: 52rem;
  --csxHairline: rgba(15, 23, 50, 0.08);
  --csxCardShadow: 0 1px 3px rgba(15, 23, 50, 0.04);
  --csxCardShadowHover: 0 12px 28px rgba(15, 23, 50, 0.1);
  --csxInk: #2e3a44;
  --csxInkSoft: #55636e;
}

.csx-container {
  width: 100%;
  max-width: var(--csxWide);
  margin: 0 auto;
}

/* ---------- Page hero ---------- */
.csx-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1732 0%, #1a2450 55%, #222d62 100%);
  padding: clamp(7rem, 11vw, 9.5rem) 1rem clamp(3.5rem, 6vw, 5rem);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--royalBlue), var(--brightBlue), var(--skyBlue)) 1;
}
/* State outline watermark — the client's own NJ mark, used once per page */
.csx-hero:after {
  content: "";
  position: absolute;
  top: 50%;
  right: -2rem;
  width: min(26rem, 42vw);
  aspect-ratio: 1 / 1.6;
  transform: translateY(-50%);
  background: url("/nj.svg") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}
.csx-hero .csx-container {
  position: relative;
  z-index: 1;
}
.csx-crumbs {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.csx-crumbs a {
  color: var(--skyBlue);
}
.csx-crumbs a:hover {
  color: #fff;
}
.csx-crumbs span[aria-hidden] {
  opacity: 0.45;
}
.csx-eyebrow {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--skyBlue);
  margin: 0 0 0.75rem;
}
.csx-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 20ch;
  margin: 0 0 1.25rem;
}
.csx-lede {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  max-width: 60ch;
  margin: 0;
}
.csx-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.csx-ghost-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.csx-ghost-button:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* ---------- Quick answer ---------- */
.csx-answer-wrap {
  padding: 0 1rem;
}
.csx-answer {
  position: relative;
  z-index: 2;
  max-width: var(--csxWide);
  margin: -2.75rem auto 0;
  background-color: #fff;
  border: 1px solid var(--csxHairline);
  border-left: 3px solid var(--royalBlue);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(15, 23, 50, 0.07);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
}
.csx-answer-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royalBlue);
  margin-bottom: 0.6rem;
}
.csx-answer p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--csxInk);
  margin: 0;
  max-width: 78ch;
}

/* ---------- Prose sections ---------- */
.csx-section {
  padding: clamp(2.75rem, 5vw, 4rem) 1rem;
}
.csx-section + .csx-section {
  padding-top: 0;
}
.csx-panel {
  background-color: #fff;
  border: 1px solid var(--csxHairline);
  border-radius: 14px;
  box-shadow: var(--csxCardShadow);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.csx-h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.125rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--headerColor);
  margin: 0 0 1rem;
  max-width: 34ch;
}
.csx-h2:before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--royalBlue), var(--brightBlue));
  margin-bottom: 1rem;
}
.csx-body p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--csxInk);
  max-width: 72ch;
  margin: 0 0 1rem;
}
.csx-body p:last-child {
  margin-bottom: 0;
}
.csx-body a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(4, 70, 241, 0.35);
  text-underline-offset: 0.15em;
}
.csx-body a:hover {
  text-decoration-color: currentColor;
}

/* ---------- Figure ---------- */
.csx-figure {
  margin: 1.75rem 0 0;
  max-width: 20rem;
}
.csx-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--csxHairline);
  box-shadow: 0 12px 28px rgba(15, 23, 50, 0.12);
}

@media only screen and (min-width: 52rem) {
  .csx-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 3rem;
    align-items: start;
  }
  .csx-split .csx-h2 {
    grid-column: 1 / -1;
  }
  .csx-split .csx-figure {
    margin-top: 0;
    max-width: none;
  }
}

/* ---------- Checklist ---------- */
.csx-checks {
  list-style: none;
  display: grid;
  gap: 0.875rem 2.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
}
.csx-checks li {
  position: relative;
  padding-left: 2.125rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--csxInk);
}
.csx-checks li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background-color: rgba(4, 70, 241, 0.08);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230446F1' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
@media only screen and (min-width: 52rem) {
  .csx-checks {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Definition rows (label: detail) ---------- */
.csx-defs {
  list-style: none;
  display: grid;
  gap: 1px;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--csxHairline);
}
.csx-defs li {
  border-bottom: 1px solid var(--csxHairline);
  padding: 1rem 0;
  display: grid;
  gap: 0.25rem 1.5rem;
}
.csx-defs dfn {
  font-style: normal;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--headerColor);
}
.csx-defs p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--csxInkSoft);
  margin: 0;
}
@media only screen and (min-width: 52rem) {
  .csx-defs li {
    grid-template-columns: 15rem 1fr;
  }
}

/* ---------- Cards ---------- */
.csx-cards {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin: 1.75rem 0 0;
  padding: 0;
}
.csx-cards li {
  background-color: #fff;
  border: 1px solid var(--csxHairline);
  border-radius: 14px;
  box-shadow: var(--csxCardShadow);
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.csx-cards li:hover {
  transform: translateY(-3px);
  box-shadow: var(--csxCardShadowHover);
  border-color: rgba(4, 70, 241, 0.25);
}
.csx-cards h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--headerColor);
  margin: 0 0 0.5rem;
}
.csx-cards p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--csxInkSoft);
  margin: 0;
}
.csx-panel .csx-cards li {
  box-shadow: none;
  background-color: #fbfcfe;
}
@media only screen and (min-width: 40rem) {
  .csx-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media only screen and (min-width: 64rem) {
  .csx-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- Rate rows ---------- */
.csx-rates {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  border: 1px solid var(--csxHairline);
  border-radius: 14px;
  overflow: hidden;
}
.csx-rates li {
  display: grid;
  gap: 0.25rem 1.5rem;
  padding: 1.125rem 1.25rem;
  background-color: #fff;
}
.csx-rates li:nth-child(even) {
  background-color: #f7f9fc;
}
.csx-rates li + li {
  border-top: 1px solid var(--csxHairline);
}
.csx-rate-label {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--headerColor);
}
.csx-rate-value {
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--royalBlue);
  font-variant-numeric: tabular-nums;
}
.csx-rates p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--csxInkSoft);
  margin: 0;
}
@media only screen and (min-width: 52rem) {
  .csx-rates li {
    grid-template-columns: 15rem 11rem 1fr;
    align-items: baseline;
  }
}

/* ---------- Numbered process ---------- */
.csx-steps {
  list-style: none;
  counter-reset: csxstep;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.csx-steps li {
  counter-increment: csxstep;
  position: relative;
  padding: 1.125rem 1.25rem 1.125rem 4rem;
  background-color: #fff;
  border: 1px solid var(--csxHairline);
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--csxInk);
}
.csx-steps li:before {
  content: counter(csxstep);
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royalBlue), var(--brightBlue));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.csx-steps strong {
  display: block;
  font-weight: 700;
  color: var(--headerColor);
  margin-bottom: 0.15rem;
}

/* ---------- FAQ ---------- */
.csx-faq {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
  max-width: 60rem;
}
.csx-faq details {
  background-color: #fff;
  border: 1px solid var(--csxHairline);
  border-left: 3px solid transparent;
  border-radius: 14px;
  box-shadow: var(--csxCardShadow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.csx-faq details[open] {
  border-left-color: var(--royalBlue);
  box-shadow: 0 8px 24px rgba(15, 23, 50, 0.07);
}
.csx-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.125rem 1.375rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.45;
  color: var(--headerColor);
}
.csx-faq summary::-webkit-details-marker {
  display: none;
}
.csx-faq summary:after {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230446F1' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform 0.3s ease;
}
.csx-faq details[open] summary:after {
  transform: rotate(180deg);
}
.csx-faq .csx-faq-answer {
  padding: 0 1.375rem 1.375rem;
}
.csx-faq .csx-faq-answer p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--csxInk);
  margin: 0 0 0.75rem;
  max-width: 78ch;
}
.csx-faq .csx-faq-answer p:last-child {
  margin-bottom: 0;
}
.csx-faq .csx-faq-answer a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(4, 70, 241, 0.35);
  text-underline-offset: 0.15em;
}

/* ---------- Related pages ---------- */
.csx-related {
  padding: clamp(2.5rem, 5vw, 3.5rem) 1rem;
}
.csx-related h2 {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--royalBlue);
  margin: 0 0 1.25rem;
}
.csx-related-grid {
  display: grid;
  gap: 1rem;
}
.csx-related-card {
  display: block;
  background-color: #fff;
  border: 1px solid var(--csxHairline);
  border-radius: 14px;
  box-shadow: var(--csxCardShadow);
  padding: 1.375rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.csx-related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--csxCardShadowHover);
  border-color: rgba(4, 70, 241, 0.25);
}
.csx-related-card span {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--headerColor);
  margin-bottom: 0.35rem;
}
.csx-related-card em {
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--csxInkSoft);
  display: block;
}
.csx-related-card:after {
  content: "Read more →";
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--royalBlue);
}
@media only screen and (min-width: 40rem) {
  .csx-related-grid {
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  }
}

/* ---------- Footer sitemap ---------- */
.csx-sitemap {
  background-color: #0f171f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(2.5rem, 5vw, 3.25rem) 1rem;
}
.csx-sitemap .csx-container {
  max-width: 106.25rem;
  display: grid;
  gap: 2rem;
}
.csx-sitemap h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--skyBlue);
  margin: 0 0 0.875rem;
}
.csx-sitemap ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.csx-sitemap li {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
}
.csx-sitemap a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
}
.csx-sitemap a:hover {
  color: #fff;
}
.csx-sitemap address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}
.csx-sitemap address a {
  display: block;
}
@media only screen and (min-width: 48rem) {
  .csx-sitemap .csx-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

/* ---------- Nav dropdown (uses the existing nav toggle script) ---------- */
#cs-navigation .cs-dropdown {
  position: relative;
}
#cs-navigation .cs-drop-link.csx-current {
  color: #fff;
}
#cs-navigation .cs-drop-link {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
#cs-navigation .cs-drop-icon {
  width: 0.6rem;
  height: 0.6rem;
  transition: transform 0.3s ease;
  flex: none;
}
#cs-navigation .cs-dropdown.cs-active .cs-drop-icon {
  transform: rotate(180deg);
}
#cs-navigation .cs-drop-ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#cs-navigation .cs-drop-li a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
}
#cs-navigation .cs-drop-li a:hover,
#cs-navigation .cs-drop-li a.cs-active {
  color: #fff;
}

/* Mobile / tablet: dropdown sits in the flow of the slide-in menu */
@media only screen and (max-width: 63.9375rem) {
  #cs-navigation .cs-drop-ul {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height 0.3s ease, opacity 0.3s ease;
  }
  #cs-navigation .cs-dropdown.cs-active .cs-drop-ul {
    height: auto;
    opacity: 1;
    padding: 0.5rem 0 0.25rem;
  }
  #cs-navigation .cs-drop-li a {
    padding: 0.5rem 0;
    text-align: center;
    font-size: 1.0625rem;
  }
  #cs-navigation .cs-dropdown.cs-active .cs-drop-ul {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 0.75rem;
  }
}

/* Desktop: hover / focus panel */
@media only screen and (min-width: 64rem) {
  #cs-navigation .cs-drop-ul {
    position: absolute;
    top: 100%;
    left: -1rem;
    min-width: 17.5rem;
    background-color: #0f171f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 16px 32px rgba(15, 23, 31, 0.45);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 100;
  }
  #cs-navigation .cs-dropdown:hover .cs-drop-ul,
  #cs-navigation .cs-dropdown:focus-within .cs-drop-ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  #cs-navigation .cs-drop-li a {
    padding: 0.6rem 1.25rem;
  }
  #cs-navigation .cs-drop-li a:hover,
  #cs-navigation .cs-drop-li a.cs-active {
    background-color: rgba(4, 70, 241, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .csx-cards li,
  .csx-related-card,
  .csx-ghost-button,
  #cs-navigation .cs-drop-ul,
  #cs-navigation .cs-drop-icon,
  .csx-faq summary:after {
    transition: none;
  }
  .csx-cards li:hover,
  .csx-related-card:hover,
  .csx-ghost-button:hover {
    transform: none;
  }
}
