/* Shared success story detail; all overrides stay inside the story template. */
.nessa-csr-story-page {
	--story-heading-font: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, sans-serif;
	--story-shadow: 0 1px 2px rgba(17,24,39,.04), 0 18px 40px -30px rgba(17,24,39,.24);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--nc-ink);
}
.nessa-csr-story-page [hidden] { display: none !important; }
.nessa-csr-story-page .nc-wrap { max-width: 1216px; }
.nessa-csr-story-page :is(h1,h2,h3,h4,.nc-btn) { font-family: var(--story-heading-font); }
.nessa-csr-story-page :is(a,button):focus-visible { outline: 3px solid #0a7220; outline-offset: 4px; }
.nessa-csr-story-page :is(h1,h2,h3,p,li,dd,figcaption) { overflow-wrap: break-word; }

.nessa-csr-story-page .csr-detail-hero { padding: 144px 0 48px; background: radial-gradient(ellipse at 90% 35%,rgba(245,130,32,.07),transparent 50%), linear-gradient(180deg,#fff,var(--nc-mint)); }
.nessa-csr-story-page .pd-crumbs ol { flex-wrap: wrap; margin: 0 0 32px; }
.nessa-csr-story-page .pd-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--nc-body); }
.nessa-csr-story-page .pd-crumbs span { color: var(--nc-body); }
.nessa-csr-story-page .csr-detail-hero__grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 48px; }
.nessa-csr-story-page .csr-detail-hero__grid--text { grid-template-columns: minmax(0,820px); }
.nessa-csr-story-page .csr-detail-hero__copy { min-width: 0; }
.nessa-csr-story-page .csr-detail-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 0 0 20px; padding: 8px 12px; border: 1px solid #c6e6ce; border-radius: 999px; background: #fff; color: #0a7220; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.nessa-csr-story-page .csr-detail-pill > span { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--nc-orange); }
.nessa-csr-story-page .csr-detail-hero h1 { margin: 0; font-size: clamp(32px,3.1vw,44px); font-weight: 700; line-height: 1.18; letter-spacing: -.035em; text-wrap: balance; }
.nessa-csr-story-page .csr-detail-summary { max-width: 62ch; margin: 24px 0 0; color: var(--nc-body); font-size: 17px; line-height: 1.75; }
.nessa-csr-story-page .csr-detail-meta { display: flex; flex-wrap: wrap; gap: 20px 32px; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid #d4e5da; font-size: 14px; line-height: 1.6; }
.nessa-csr-story-page .csr-detail-meta > div { min-width: 0; }
.nessa-csr-story-page .csr-detail-meta dt { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; color: var(--nc-body); font-size: 12px; }
.nessa-csr-story-page .csr-detail-meta dd { margin: 0; color: var(--nc-ink); font-weight: 600; }
.nessa-csr-story-page .csr-detail-meta svg { width: 14px; height: 14px; color: #0a7220; }
.nessa-csr-story-page .csr-detail-figure { min-width: 0; margin: 0; }
.nessa-csr-story-page .csr-detail-image { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; border: 8px solid #fff; border-radius: 24px; background: #f2f6f3; box-shadow: var(--story-shadow); }
.nessa-csr-story-page .csr-detail-figure figcaption { padding: 12px 8px 0; color: var(--nc-body); font-size: 13px; line-height: 1.6; }

.nessa-csr-story-page .csr-detail-main { padding-top: 32px; padding-bottom: 64px; }
.nessa-csr-story-page .csr-detail-facts { display: flex; flex-wrap: wrap; gap: 32px; padding: 32px; border: 1px solid var(--nc-line); border-radius: 20px; background: #fff; box-shadow: var(--story-shadow); }
.nessa-csr-story-page .csr-detail-impact { flex: 1 1 240px; min-width: 0; }
.nessa-csr-story-page .csr-detail-eyebrow { margin: 0 0 12px; color: #0a7220; font-family: inherit; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
.nessa-csr-story-page .csr-detail-impact p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin: 0; }
.nessa-csr-story-page .csr-detail-impact strong { color: #0a7220; font-family: var(--story-heading-font); font-size: clamp(32px,3.5vw,44px); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; }
.nessa-csr-story-page .csr-detail-impact span { color: var(--nc-body); font-size: 16px; line-height: 1.6; }
.nessa-csr-story-page .csr-detail-partners { flex: 1.2 1 320px; min-width: 0; }
.nessa-csr-story-page .csr-detail-partners ul { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.nessa-csr-story-page .csr-detail-partners li { padding-left: 12px; border-left: 2px solid var(--nc-orange); color: var(--nc-ink); font-size: 15px; font-weight: 600; line-height: 1.7; }
.nessa-csr-story-page .csr-detail-story { max-width: 68ch; margin: 64px auto 0; font-size: 18px; }
.nessa-csr-story-page .csr-detail-section-head { margin-bottom: 28px; }
.nessa-csr-story-page .csr-detail-section-head .csr-detail-eyebrow { margin-bottom: 8px; }
.nessa-csr-story-page .csr-detail-section-head h2 { margin: 0; font-size: clamp(28px,3vw,36px); font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.nessa-csr-story-page .csr-detail-prose { min-width: 0; color: var(--nc-body); font-size: inherit; line-height: 1.75; }
.nessa-csr-story-page .csr-detail-prose > :first-child { margin-top: 0; }
.nessa-csr-story-page .csr-detail-prose > :last-child { margin-bottom: 0; }
.nessa-csr-story-page .csr-detail-prose :is(p,ul,ol,figure,blockquote) { margin: 0 0 1.5em; }
.nessa-csr-story-page .csr-detail-prose :is(ul,ol) { padding-left: 1.5em; }
.nessa-csr-story-page .csr-detail-prose li + li { margin-top: .5em; }
.nessa-csr-story-page .csr-detail-prose :is(h2,h3,h4) { margin: 1.5em 0 .75em; color: var(--nc-ink); font-weight: 700; line-height: 1.3; }
.nessa-csr-story-page .csr-detail-prose h2 { font-size: 28px; }
.nessa-csr-story-page .csr-detail-prose h3 { font-size: 24px; }
.nessa-csr-story-page .csr-detail-prose h4 { font-size: 20px; }
.nessa-csr-story-page .csr-detail-prose :is(img,video,iframe) { max-width: 100%; }
.nessa-csr-story-page .csr-detail-prose :is(img,video) { height: auto; border-radius: 12px; }
.nessa-csr-story-page .csr-detail-prose a { color: #0a7220; text-decoration: underline; text-underline-offset: 3px; }
.nessa-csr-story-page .csr-detail-prose blockquote { padding: 16px 24px; border-left: 3px solid var(--nc-orange); background: #f5fbf6; }
.nessa-csr-story-page .csr-detail-prose blockquote > :last-child { margin-bottom: 0; }
.nessa-csr-story-page .csr-detail-prose table { display: block; max-width: 100%; overflow-x: auto; }

.nessa-csr-story-page .csr-detail-gallery { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--nc-line); }
.nessa-csr-story-page .csr-detail-gallery__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 24px; }
.nessa-csr-story-page .csr-detail-gallery__item { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--nc-line); border-radius: 20px; background: #f2f6f3; box-shadow: var(--story-shadow); }
.nessa-csr-story-page .csr-detail-gallery__item > a { position: relative; display: block; }
.nessa-csr-story-page .csr-detail-gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; }
.nessa-csr-story-page .csr-detail-gallery__item figcaption { margin: 0; padding: 16px; color: var(--nc-body); background: #fff; font-size: 14px; line-height: 1.6; }
.nessa-csr-story-page .csr-detail-gallery__expand { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--nc-line); border-radius: 50%; background: #fff; color: #0a7220; transition: background 160ms ease, color 160ms ease; }
.nessa-csr-story-page .csr-detail-gallery__expand svg { width: 18px; height: 18px; }
.nessa-csr-story-page .csr-detail-gallery__item > a:is(:hover,:focus-visible) .csr-detail-gallery__expand { color: #fff; background: #0a7220; }
.nessa-csr-story-page .csr-detail-gallery__item > a:focus-visible { outline-offset: -4px; }
.nessa-csr-story-page .csr-detail-gallery__video { display: block; width: 100%; height: auto; aspect-ratio: 4/3; background: #111827; object-fit: contain; }

.nessa-csr-story-page .csr-detail-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 64px; padding: 40px; border: 1px solid var(--nc-line); border-radius: 24px; background: linear-gradient(120deg,var(--nc-peach),#fff 48%,var(--nc-mint)); }
.nessa-csr-story-page .csr-detail-cta h2 { max-width: 600px; margin: 0 0 16px; font-size: clamp(24px,2.5vw,32px); font-weight: 700; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
.nessa-csr-story-page .csr-detail-cta p:last-child { margin: 0; color: var(--nc-body); font-size: 16px; line-height: 1.75; }
.nessa-csr-story-page .csr-detail-cta .nc-btn { flex: none; max-width: 100%; min-height: 48px; padding: 12px 24px; background: linear-gradient(135deg,#ba4b0a,#a83d08); color: #fff; font-size: 14px; text-align: center; white-space: normal; }
.nessa-csr-story-page .csr-detail-cta .nc-btn:hover { background: #983708; }
.nessa-csr-story-page .csr-detail-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 24px; color: #0a7220; font-size: 14px; font-weight: 700; }
.nessa-csr-story-page .csr-detail-back svg { width: 18px; height: 18px; transform: rotate(180deg); }
.nessa-csr-story-page .csr-detail-back:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Photo viewer uses the shared NessaA11y dialog primitive. */
.nessa-csr-story-page .csr-detail-viewer { position: fixed; z-index: 10000; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(17,24,39,.88); overscroll-behavior: contain; }
.nessa-csr-story-page .csr-detail-viewer__panel { display: flex; flex-direction: column; width: 100%; max-width: 1120px; max-height: 100%; max-height: calc(100dvh - 48px); overflow-y: auto; border-radius: 20px; background: #fff; box-shadow: 0 24px 64px rgba(0,0,0,.3); }
.nessa-csr-story-page .csr-detail-viewer__header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--nc-line); }
.nessa-csr-story-page .csr-detail-viewer__header h2 { margin: 0; color: var(--nc-ink); font-size: 18px; font-weight: 700; line-height: 1.4; }
.nessa-csr-story-page .csr-detail-viewer__button { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #d4e5da; border-radius: 50%; background: #fff; color: #0a7220; cursor: pointer; }
.nessa-csr-story-page .csr-detail-viewer__button:hover { background: var(--nc-mint); }
.nessa-csr-story-page .csr-detail-viewer__button svg { width: 22px; height: 22px; }
.nessa-csr-story-page .csr-detail-viewer__stage { display: grid; flex: 0 1 auto; place-items: center; min-height: 0; padding: 16px; background: #f2f6f3; }
.nessa-csr-story-page .csr-detail-viewer__stage img { display: block; width: 100%; height: auto; max-height: 62vh; max-height: 62dvh; object-fit: contain; }
.nessa-csr-story-page .csr-detail-viewer__error { margin: 24px; color: var(--nc-body); font-size: 16px; line-height: 1.6; text-align: center; }
.nessa-csr-story-page .csr-detail-viewer__footer { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.nessa-csr-story-page .csr-detail-viewer__description { min-width: 0; }
.nessa-csr-story-page .csr-detail-viewer__description p { margin: 0 0 8px; color: var(--nc-body); font-size: 14px; line-height: 1.6; }
.nessa-csr-story-page .csr-detail-viewer__description a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #0a7220; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.nessa-csr-story-page .csr-detail-viewer__description a svg { width: 16px; height: 16px; }
.nessa-csr-story-page .csr-detail-viewer__nav { display: flex; flex: none; gap: 12px; }

@media (max-width:1023px) {
	.nessa-csr-story-page .csr-detail-hero { padding-top: 112px; }
	.nessa-csr-story-page .csr-detail-hero__grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
	.nessa-csr-story-page .csr-detail-hero h1 { max-width: 24ch; font-size: 40px; }
	.nessa-csr-story-page .csr-detail-figure { width: 100%; max-width: 720px; margin-inline: auto; }
	.nessa-csr-story-page .csr-detail-gallery__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.nessa-csr-story-page .csr-detail-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width:639px) {
	.nessa-csr-story-page .csr-detail-hero { padding-bottom: 32px; }
	.nessa-csr-story-page .pd-crumbs ol { margin-bottom: 24px; }
	.nessa-csr-story-page .csr-detail-hero h1 { font-size: 32px; }
	.nessa-csr-story-page .csr-detail-summary { font-size: 16px; }
	.nessa-csr-story-page .csr-detail-image { border-width: 4px; border-radius: 20px; }
	.nessa-csr-story-page .csr-detail-facts { flex-direction: column; gap: 24px; padding: 24px; }
	.nessa-csr-story-page :is(.csr-detail-impact,.csr-detail-partners) { flex: auto; }
	.nessa-csr-story-page .csr-detail-impact + .csr-detail-partners { padding-top: 24px; border-top: 1px solid var(--nc-line); }
	.nessa-csr-story-page .csr-detail-partners ul { flex-direction: column; gap: 12px; }
	.nessa-csr-story-page .csr-detail-story { margin-top: 48px; font-size: 17px; }
	.nessa-csr-story-page .csr-detail-main { padding-top: 24px; padding-bottom: 40px; }
	.nessa-csr-story-page .csr-detail-gallery { margin-top: 48px; padding-top: 32px; }
	.nessa-csr-story-page .csr-detail-gallery__grid { grid-template-columns: minmax(0,1fr); }
	.nessa-csr-story-page .csr-detail-cta { gap: 24px; margin-top: 48px; padding: 24px; }
	.nessa-csr-story-page .csr-detail-cta .nc-btn { width: 100%; }
	.nessa-csr-story-page .csr-detail-viewer { padding: 12px; }
	.nessa-csr-story-page .csr-detail-viewer__panel { max-height: calc(100dvh - 24px); border-radius: 16px; }
	.nessa-csr-story-page .csr-detail-viewer__header { padding: 12px; }
	.nessa-csr-story-page .csr-detail-viewer__header h2 { font-size: 16px; }
	.nessa-csr-story-page .csr-detail-viewer__stage { padding: 8px; }
	.nessa-csr-story-page .csr-detail-viewer__stage img { max-height: 55vh; max-height: 55dvh; }
	.nessa-csr-story-page .csr-detail-viewer__footer { flex-wrap: wrap; padding: 12px; }
}
@media (prefers-reduced-motion:reduce) {
	.nessa-csr-story-page :is(a,button,.csr-detail-gallery__expand) { transition: none; }
	.nessa-csr-story-page .nc-btn:hover { transform: none; }
}
