/* NJProtection & Security Services post presentation system
   Scope: single WordPress posts rendered by njprotection-wp-theme
   Version: 1.0.0
*/

.single-post .nj-section {
  background:
    radial-gradient(circle at 8% 4%, rgba(160, 0, 6, 0.07), transparent 34rem),
    var(--nj-grey, #f4f4f6);
}

.single-post .nj-update-single {
  position: relative;
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 58px);
  overflow: hidden;
  background: var(--nj-white, #ffffff);
  border: 1px solid rgba(16, 16, 20, 0.12);
  border-top: 6px solid var(--nj-red, #a00006);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(16, 16, 20, 0.13);
}

.single-post .nj-update-single::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at top right, rgba(160, 0, 6, 0.10), transparent 70%);
  content: "";
  pointer-events: none;
}

.single-post .nj-update-single__date {
  position: relative;
  margin-bottom: 22px;
  color: var(--nj-red, #a00006);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.single-post .nj-update-single__content {
  position: relative;
  max-width: 76ch;
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.72;
}

.single-post .nj-update-single__content > :first-child {
  margin-top: 0;
}

.single-post .nj-update-single__content > :last-child {
  margin-bottom: 0;
}

.single-post .nj-update-single__content > p:first-child,
.single-post .nj-post-intro {
  color: var(--nj-black, #101014);
  font-size: clamp(1.18rem, 2vw, 1.38rem);
  font-weight: 650;
  line-height: 1.55;
}

.single-post .nj-update-single__content p {
  margin: 0 0 1.35em;
  color: var(--nj-charcoal, #24242a);
}

.single-post .nj-update-single__content h2,
.single-post .nj-update-single__content h3 {
  color: var(--nj-black, #101014);
  text-wrap: balance;
}

.single-post .nj-update-single__content h2 {
  margin: 2.4em 0 0.85em;
  padding-left: 18px;
  border-left: 5px solid var(--nj-red, #a00006);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.single-post .nj-update-single__content h3 {
  margin: 2em 0 0.7em;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.25;
}

.single-post .nj-update-single__content a:not(.nj-button) {
  color: var(--nj-red, #a00006);
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 0.11em;
  text-underline-offset: 0.18em;
}

.single-post .nj-update-single__content a:not(.nj-button):hover {
  color: var(--nj-red-dark, #710005);
  text-decoration-thickness: 0.16em;
}

.single-post .nj-update-single__content a:focus-visible,
.single-post .nj-update-single .nj-button:focus-visible {
  outline: 3px solid #a00006;
  outline-offset: 4px;
}

.single-post .nj-update-single__content ul,
.single-post .nj-update-single__content ol {
  margin: 1.25em 0 1.6em;
  padding: 1.15em 1.25em 1.15em 2.6em;
  background: #f7f7f8;
  border-left: 4px solid rgba(160, 0, 6, 0.72);
  border-radius: 0 14px 14px 0;
}

.single-post .nj-update-single__content li {
  margin: 0.45em 0;
  padding-left: 0.2em;
  color: var(--nj-charcoal, #24242a);
}

.single-post .nj-update-single__content li::marker {
  color: var(--nj-red, #a00006);
  font-weight: 800;
}

.single-post .nj-checklist {
  padding-left: 1.25em;
  list-style: none;
}

.single-post .nj-checklist li {
  position: relative;
  padding-left: 1.8em;
}

.single-post .nj-checklist li::before {
  position: absolute;
  left: 0;
  color: var(--nj-red, #a00006);
  content: "✓";
  font-weight: 900;
}

.single-post .nj-post-callout,
.single-post .nj-update-single__content blockquote {
  margin: 2em 0;
  padding: clamp(20px, 3vw, 30px);
  background: #fff5f5;
  border: 1px solid rgba(160, 0, 6, 0.20);
  border-left: 6px solid var(--nj-red, #a00006);
  border-radius: 16px;
  color: var(--nj-black, #101014);
  box-shadow: 0 10px 26px rgba(16, 16, 20, 0.07);
}

.single-post .nj-post-callout > :first-child,
.single-post .nj-update-single__content blockquote > :first-child {
  margin-top: 0;
}

.single-post .nj-post-callout > :last-child,
.single-post .nj-update-single__content blockquote > :last-child {
  margin-bottom: 0;
}

.single-post .nj-post-callout--caution {
  background: #fff9e8;
  border-color: #8a5a00;
}

.single-post .nj-source-list {
  background: #f2f2f4;
  border: 1px solid rgba(16, 16, 20, 0.14);
  border-left: 4px solid var(--nj-charcoal, #24242a);
}

.single-post .nj-table-wrap {
  max-width: 100%;
  margin: 1.6em 0;
  overflow-x: auto;
  border: 1px solid rgba(16, 16, 20, 0.14);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(16, 16, 20, 0.06);
  -webkit-overflow-scrolling: touch;
}

.single-post .nj-table-wrap table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border-collapse: collapse;
  background: var(--nj-white, #ffffff);
}

.single-post .nj-table-wrap th,
.single-post .nj-table-wrap td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(16, 16, 20, 0.12);
  text-align: left;
  vertical-align: top;
}

.single-post .nj-table-wrap th {
  background: var(--nj-black, #101014);
  color: var(--nj-white, #ffffff);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.single-post .nj-table-wrap tr:nth-child(even) td {
  background: #f7f7f8;
}

.single-post .nj-post-cta {
  margin: 2.4em 0 0;
  padding: clamp(24px, 4vw, 38px);
  background: var(--nj-black, #101014);
  border-radius: 18px;
  color: var(--nj-white, #ffffff);
  box-shadow: 0 18px 40px rgba(16, 16, 20, 0.20);
}

.single-post .nj-post-cta h2,
.single-post .nj-post-cta h3,
.single-post .nj-post-cta p {
  color: var(--nj-white, #ffffff);
}

.single-post .nj-post-cta h2,
.single-post .nj-post-cta h3 {
  padding-left: 0;
  border-left: 0;
}

.single-post .nj-post-cta .nj-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 0.5em;
  padding: 12px 20px;
  background: var(--nj-red, #a00006);
  border: 2px solid var(--nj-red, #a00006);
  border-radius: 999px;
  color: var(--nj-white, #ffffff);
  font-weight: 800;
  text-decoration: none;
}

.single-post .nj-post-cta .nj-button:hover {
  background: #c00008;
  border-color: #c00008;
  color: var(--nj-white, #ffffff);
}

.single-post .nj-update-single > p:last-child {
  margin: 32px 0 0;
}

@media (max-width: 720px) {
  .single-post .nj-section {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .single-post .nj-update-single {
    padding: 24px 20px 28px;
    border-top-width: 5px;
    border-radius: 16px;
  }

  .single-post .nj-update-single__content {
    font-size: 1.04rem;
    line-height: 1.67;
  }

  .single-post .nj-update-single__content h2 {
    margin-top: 2em;
    padding-left: 13px;
    border-left-width: 4px;
  }

  .single-post .nj-update-single__content ul,
  .single-post .nj-update-single__content ol {
    padding: 1em 1em 1em 2.15em;
  }

  .single-post .nj-checklist {
    padding-left: 1em;
  }

  .single-post .nj-post-callout,
  .single-post .nj-update-single__content blockquote,
  .single-post .nj-post-cta {
    border-radius: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .single-post .nj-update-single *,
  .single-post .nj-update-single *::before,
  .single-post .nj-update-single *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .single-post .nj-section {
    background: #ffffff;
  }

  .single-post .nj-update-single {
    max-width: none;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .single-post .nj-post-cta,
  .single-post .nj-update-single > p:last-child {
    display: none;
  }

  .single-post .nj-update-single__content a {
    color: #000000;
    text-decoration: underline;
  }
}
