
/* === CONTENT_WIDTH_FORCE v3d === */
:root {
  --dnpe-container-narrow: 1500px !important;
  --dnpe-container: 1500px !important;
  --dnpe-article-max: 1500px !important;
  --cagh-container-narrow: 1500px !important;
  --bflp-article-max: 1500px !important;
  --container-narrow: 1500px !important;
  --content-width: 1500px !important;
  --article-max-width: 1500px !important;
}
@media (min-width: 769px) {
  html body .dnpe-article,
  html body article.dnpe-article,
  html body .dnpe-hero-content,
  html body .dnpe-faq-list,
  html body .dnpe-author-box,
  html body .bflp-article,
  html body .content-article,
  html body article.content-article,
  html body .niel-section,
  html body .hero-inner,
  html body .article-content,
  html body .content-area,
  html body .cagh-article,
  html body .cagh-faq,
  html body .mb-article,
  html body .mb-faq,
  html body main,
  html body article {
    max-width: 1500px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  html body .dnpe-container,
  html body .bflp-container,
  html body .cagh-container,
  html body .mb-container {
    max-width: 1500px !important;
  }
}
/* === /CONTENT_WIDTH_FORCE v3d === */

/* === FOOTER CONTRAST FIX (burgundy bg) === */
html body .oldd-footer,
html body footer.oldd-footer {
  color: #FAF8F5 !important;
}
/* HTML uses .oldd-footer-title (CSS had .oldd-footer-heading only) */
html body .oldd-footer .oldd-footer-title,
html body .oldd-footer .oldd-footer-heading,
html body .oldd-footer h4 {
  color: #cf9f5d !important;
  font-size: 13px !important;
  font-family: Inter, system-ui, sans-serif !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  margin-bottom: 16px !important;
  font-weight: 600 !important;
}
html body .oldd-footer .oldd-footer-logo,
html body .oldd-footer .oldd-logo-text,
html body .oldd-footer .oldd-footer-name {
  color: #FAF8F5 !important;
}
html body .oldd-footer .oldd-footer-tagline {
  color: rgba(250, 248, 245, 0.82) !important;
}
html body .oldd-footer .oldd-footer-links a,
html body .oldd-footer a {
  color: rgba(250, 248, 245, 0.88) !important;
}
html body .oldd-footer .oldd-footer-links a:hover,
html body .oldd-footer a:hover {
  color: #cf9f5d !important;
}
/* HTML uses .footer-disclaimer not .oldd-footer-disclaimer p */
html body .oldd-footer .footer-disclaimer,
html body .oldd-footer .oldd-footer-disclaimer,
html body .oldd-footer .oldd-footer-disclaimer p {
  color: rgba(250, 248, 245, 0.78) !important;
  line-height: 1.7 !important;
  font-size: 14px !important;
}
html body .oldd-footer .oldd-footer-bottom,
html body .oldd-footer .oldd-footer-bottom p,
html body .oldd-footer .oldd-footer-bottom a {
  color: rgba(250, 248, 245, 0.72) !important;
}
html body .oldd-footer li {
  color: rgba(250, 248, 245, 0.88) !important;
}
/* === /FOOTER CONTRAST FIX === */

/* === TOC polish (always-on) === */
html body nav.toc-box,
html body .toc-box {
  background: linear-gradient(180deg, #faf8f5 0%, #f3efe8 100%) !important;
  border: 1px solid rgba(70, 37, 40, 0.12) !important;
  border-left: 4px solid #cf9f5d !important;
  border-radius: 12px !important;
  padding: 0 !important;
  margin: 1.5rem auto 2rem !important;
  overflow: hidden !important;
  max-width: 560px !important;
  width: 100% !important;
  box-shadow: 0 4px 18px rgba(70, 37, 40, 0.07) !important;
  font-family: Inter, system-ui, sans-serif !important;
}
html body .toc-box .toc-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 18px !important;
  cursor: pointer !important;
  user-select: none !important;
  background: rgba(70, 37, 40, 0.04) !important;
  border-bottom: 1px solid transparent !important;
  transition: background 0.2s ease !important;
}
html body .toc-box:not(.toc-collapsed) .toc-header {
  border-bottom-color: rgba(70, 37, 40, 0.1) !important;
}
html body .toc-box .toc-header:hover {
  background: rgba(207, 159, 93, 0.12) !important;
}
html body .toc-box .toc-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px !important;
  background: #462528 !important;
  color: #faf8f5 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}
html body .toc-box .toc-header strong {
  flex: 1 1 auto !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  color: #462528 !important;
  font-family: Inter, system-ui, sans-serif !important;
}
html body .toc-box .toc-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: rgba(70, 37, 40, 0.08) !important;
  color: #462528 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  transition: transform 0.25s ease, background 0.2s ease !important;
  flex-shrink: 0 !important;
}
html body .toc-box.toc-collapsed .toc-toggle {
  transform: rotate(-90deg) !important;
}
html body .toc-box:not(.toc-collapsed) .toc-toggle {
  transform: rotate(0deg) !important;
  background: rgba(207, 159, 93, 0.25) !important;
}
html body .toc-box.toc-collapsed .toc-list {
  display: none !important;
}
html body .toc-box .toc-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 10px 12px 14px !important;
  counter-reset: toc-item !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}
html body .toc-box .toc-list li {
  padding: 0 !important;
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  counter-increment: toc-item !important;
}
html body .toc-box .toc-list a {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 9px 12px !important;
  color: #3d2a2c !important;
  text-decoration: none !important;
  border: none !important;
  border-radius: 8px !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-weight: 500 !important;
}
html body .toc-box .toc-list a::before {
  content: counter(toc-item) !important;
  flex-shrink: 0 !important;
  min-width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  background: rgba(207, 159, 93, 0.2) !important;
  color: #7a5320 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 1px !important;
}
html body .toc-box .toc-list a:hover {
  background: rgba(70, 37, 40, 0.06) !important;
  color: #462528 !important;
}
html body .toc-box .toc-list a:hover::before {
  background: #cf9f5d !important;
  color: #fff !important;
}
@media (max-width: 768px) {
  html body .toc-box {
    max-width: 100% !important;
    margin: 1rem 0 1.5rem !important;
    border-radius: 10px !important;
  }
  html body .toc-box .toc-header {
    padding: 12px 14px !important;
  }
  html body .toc-box .toc-header strong {
    font-size: 14px !important;
  }
  html body .toc-box .toc-list a {
    font-size: 13px !important;
    padding: 8px 10px !important;
  }
}
/* === /TOC polish === */

/* === ci-fig float wrap (50% content width) === */
html body .oldd-article,
html body article.oldd-article,
html body .oldd-section {
  overflow: visible;
}
html body figure.ci-fig {
  width: calc(50% - 0.7rem) !important;
  max-width: calc(50% - 0.7rem) !important;
  margin: 0.35rem 0 1rem !important;
  padding: 0 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
html body figure.ci-fig.ci-fig--left {
  float: left !important;
  margin-right: 1.25rem !important;
  margin-left: 0 !important;
  clear: left;
}
html body figure.ci-fig.ci-fig--right {
  float: right !important;
  margin-left: 1.25rem !important;
  margin-right: 0 !important;
  clear: right;
}
html body figure.ci-fig img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
}
html body figure.ci-fig figcaption {
  display: block !important;
  margin-top: 8px !important;
  padding: 0 4px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #6b7280 !important;
  font-family: Inter, system-ui, sans-serif !important;
  text-align: center !important;
}
/* clear float before next major block */
html body .oldd-section::after,
html body .oldd-article::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}
html body h2[id^="section-"] {
  clear: both;
}
@media (max-width: 768px) {
  html body figure.ci-fig,
  html body figure.ci-fig.ci-fig--left,
  html body figure.ci-fig.ci-fig--right {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1rem 0 1.25rem !important;
    clear: both !important;
  }
}
/* === /ci-fig float wrap === */

/* === tis lightbox === */
html body figure.ci-fig img {
  cursor: zoom-in !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
html body figure.ci-fig img:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18) !important;
  transform: translateY(-1px);
}
html body.tis-lb-open {
  overflow: hidden !important;
}
.tis-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 12, 14, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-sizing: border-box;
}
.tis-lb.is-open {
  display: flex;
  animation: tisLbIn 0.18s ease;
}
@keyframes tisLbIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.tis-lb__stage {
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.tis-lb__img {
  max-width: 100%;
  max-height: min(82vh, 900px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  background: #111;
}
.tis-lb__cap {
  margin: 0;
  max-width: 42rem;
  text-align: center;
  color: rgba(250, 248, 245, 0.9);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
.tis-lb__close {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.12);
  color: #faf8f5;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 100001;
  transition: background 0.15s ease;
}
.tis-lb__close:hover,
.tis-lb__close:focus {
  background: rgba(207, 159, 93, 0.85);
  outline: none;
}
@media (max-width: 600px) {
  .tis-lb { padding: 12px; }
  .tis-lb__close { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 24px; }
  .tis-lb__cap { font-size: 13px; }
}
/* === /tis lightbox === */
/* === net-content-imgs v1 (float + lightbox) === */
html body figure.nci-fig,
html body figure.ci-fig {
  width: calc(50% - 0.7rem) !important;
  max-width: calc(50% - 0.7rem) !important;
  margin: 0.4rem 0 1rem !important;
  padding: 0 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
html body figure.nci-fig.nci-fig--left,
html body figure.ci-fig.ci-fig--left {
  float: left !important;
  margin-right: 1.25rem !important;
  margin-left: 0 !important;
  clear: left;
}
html body figure.nci-fig.nci-fig--right,
html body figure.ci-fig.ci-fig--right {
  float: right !important;
  margin-left: 1.25rem !important;
  margin-right: 0 !important;
  clear: right;
}
html body figure.nci-fig img,
html body figure.ci-fig img {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12) !important;
  cursor: zoom-in !important;
}
html body figure.nci-fig figcaption,
html body figure.ci-fig figcaption {
  display: block !important;
  margin-top: 8px !important;
  padding: 0 4px !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #6b7280 !important;
  font-family: Inter, system-ui, sans-serif !important;
  text-align: center !important;
}
html body article::after,
html body .oldd-article::after,
html body .cagh-article::after,
html body .gnoc-article::after,
html body .dnpe-article::after,
html body .oldd-section::after,
html body section::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}
html body h2 {
  clear: both;
}

/* lightbox */
html body.nci-lb-open {
  overflow: hidden !important;
}
.nci-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 12, 14, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-sizing: border-box;
}
.nci-lb.is-open {
  display: flex;
  animation: nciLbIn 0.18s ease;
}
@keyframes nciLbIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.nci-lb__stage {
  max-width: min(1100px, 96vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.nci-lb__img {
  max-width: 100%;
  max-height: min(82vh, 900px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  object-fit: contain;
  background: #111;
}
.nci-lb__cap {
  margin: 0;
  max-width: 42rem;
  text-align: center;
  color: rgba(250, 248, 245, 0.9);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
.nci-lb__close {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(250, 248, 245, 0.12);
  color: #faf8f5;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 100001;
}
.nci-lb__close:hover {
  background: rgba(201, 162, 39, 0.85);
}

@media (max-width: 768px) {
  html body figure.nci-fig,
  html body figure.nci-fig.nci-fig--left,
  html body figure.nci-fig.nci-fig--right,
  html body figure.ci-fig,
  html body figure.ci-fig.ci-fig--left,
  html body figure.ci-fig.ci-fig--right {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 1rem 0 1.25rem !important;
    clear: both !important;
  }
  .nci-lb {
    padding: 12px;
  }
}
/* === /net-content-imgs v1 === */

